Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for xcb-util-renderutil 0.3.10.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxcb-render-util/-/issues>.
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
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || 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 [email protected] and
279 $0: https://gitlab.freedesktop.org/xorg/lib/libxcb-render-util/-/issues
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='xcb-util-renderutil'
624 PACKAGE_TARNAME='xcb-util-renderutil'
625 PACKAGE_VERSION='0.3.10'
626 PACKAGE_STRING='xcb-util-renderutil 0.3.10'
627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxcb-render-util/-/issues'
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 XCB_RENDER_LIBS
668 XCB_RENDER_CFLAGS
669 HAVE_DOXYGEN_FALSE
670 HAVE_DOXYGEN_TRUE
671 HAVE_DOT_FALSE
672 HAVE_DOT_TRUE
673 HAVE_DOT
674 DOT
675 DOXYGEN
676 ENABLE_DEVEL_DOCS_FALSE
677 ENABLE_DEVEL_DOCS_TRUE
678 MAN_SUBSTS
679 XORG_MAN_PAGE
680 ADMIN_MAN_DIR
681 DRIVER_MAN_DIR
682 MISC_MAN_DIR
683 FILE_MAN_DIR
684 LIB_MAN_DIR
685 APP_MAN_DIR
686 ADMIN_MAN_SUFFIX
687 DRIVER_MAN_SUFFIX
688 MISC_MAN_SUFFIX
689 FILE_MAN_SUFFIX
690 LIB_MAN_SUFFIX
691 APP_MAN_SUFFIX
692 INSTALL_CMD
693 CHANGELOG_CMD
694 STRICT_CFLAGS
695 CWARNFLAGS
696 BASE_CFLAGS
697 XCB_LIBS
698 XCB_CFLAGS
699 PKG_CONFIG_LIBDIR
700 PKG_CONFIG_PATH
701 PKG_CONFIG
702 pkgconfigdir
703 xcbincludedir
704 LT_SYS_LIBRARY_PATH
705 OTOOL64
706 OTOOL
707 LIPO
708 NMEDIT
709 DSYMUTIL
710 MANIFEST_TOOL
711 RANLIB
712 ac_ct_AR
713 AR
714 DLLTOOL
715 OBJDUMP
716 FILECMD
717 LN_S
718 NM
719 ac_ct_DUMPBIN
720 DUMPBIN
721 LD
722 FGREP
723 EGREP
724 GREP
725 SED
726 am__fastdepCC_FALSE
727 am__fastdepCC_TRUE
728 CCDEPMODE
729 am__nodep
730 AMDEPBACKSLASH
731 AMDEP_FALSE
732 AMDEP_TRUE
733 am__include
734 DEPDIR
735 OBJEXT
736 EXEEXT
737 ac_ct_CC
738 CPPFLAGS
739 LDFLAGS
740 CFLAGS
741 CC
742 host_os
743 host_vendor
744 host_cpu
745 host
746 build_os
747 build_vendor
748 build_cpu
749 build
750 LIBTOOL
751 AM_BACKSLASH
752 AM_DEFAULT_VERBOSITY
753 AM_DEFAULT_V
754 AM_V
755 CSCOPE
756 ETAGS
757 CTAGS
758 am__untar
759 am__tar
760 AMTAR
761 am__leading_dot
762 SET_MAKE
763 AWK
764 mkdir_p
765 MKDIR_P
766 INSTALL_STRIP_PROGRAM
767 STRIP
768 install_sh
769 MAKEINFO
770 AUTOHEADER
771 AUTOMAKE
772 AUTOCONF
773 ACLOCAL
774 VERSION
775 PACKAGE
776 CYGPATH_W
777 am__isrc
778 INSTALL_DATA
779 INSTALL_SCRIPT
780 INSTALL_PROGRAM
781 target_alias
782 host_alias
783 build_alias
784 LIBS
785 ECHO_T
786 ECHO_N
787 ECHO_C
788 DEFS
789 mandir
790 localedir
791 libdir
792 psdir
793 pdfdir
794 dvidir
795 htmldir
796 infodir
797 docdir
798 oldincludedir
799 includedir
800 runstatedir
801 localstatedir
802 sharedstatedir
803 sysconfdir
804 datadir
805 datarootdir
806 libexecdir
807 sbindir
808 bindir
809 program_transform_name
810 prefix
811 exec_prefix
812 PACKAGE_URL
813 PACKAGE_BUGREPORT
814 PACKAGE_STRING
815 PACKAGE_VERSION
816 PACKAGE_TARNAME
817 PACKAGE_NAME
818 PATH_SEPARATOR
819 SHELL
820 am__quote'
821 ac_subst_files=''
822 ac_user_opts='
823 enable_option_checking
824 enable_silent_rules
825 enable_shared
826 enable_static
827 with_pic
828 enable_fast_install
829 with_aix_soname
830 enable_dependency_tracking
831 with_gnu_ld
832 with_sysroot
833 enable_libtool_lock
834 enable_selective_werror
835 enable_strict_compilation
836 enable_devel_docs
837 with_doxygen
838 '
839 ac_precious_vars='build_alias
840 host_alias
841 target_alias
842 CC
843 CFLAGS
844 LDFLAGS
845 LIBS
846 CPPFLAGS
847 LT_SYS_LIBRARY_PATH
848 PKG_CONFIG
849 PKG_CONFIG_PATH
850 PKG_CONFIG_LIBDIR
851 XCB_CFLAGS
852 XCB_LIBS
853 DOXYGEN
854 DOT
855 XCB_RENDER_CFLAGS
856 XCB_RENDER_LIBS'
857
858
859 # Initialize some variables set by options.
860 ac_init_help=
861 ac_init_version=false
862 ac_unrecognized_opts=
863 ac_unrecognized_sep=
864 # The variables have the same names as the options, with
865 # dashes changed to underlines.
866 cache_file=/dev/null
867 exec_prefix=NONE
868 no_create=
869 no_recursion=
870 prefix=NONE
871 program_prefix=NONE
872 program_suffix=NONE
873 program_transform_name=s,x,x,
874 silent=
875 site=
876 srcdir=
877 verbose=
878 x_includes=NONE
879 x_libraries=NONE
880
881 # Installation directory options.
882 # These are left unexpanded so users can "make install exec_prefix=/foo"
883 # and all the variables that are supposed to be based on exec_prefix
884 # by default will actually change.
885 # Use braces instead of parens because sh, perl, etc. also accept them.
886 # (The list follows the same order as the GNU Coding Standards.)
887 bindir='${exec_prefix}/bin'
888 sbindir='${exec_prefix}/sbin'
889 libexecdir='${exec_prefix}/libexec'
890 datarootdir='${prefix}/share'
891 datadir='${datarootdir}'
892 sysconfdir='${prefix}/etc'
893 sharedstatedir='${prefix}/com'
894 localstatedir='${prefix}/var'
895 runstatedir='${localstatedir}/run'
896 includedir='${prefix}/include'
897 oldincludedir='/usr/include'
898 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
899 infodir='${datarootdir}/info'
900 htmldir='${docdir}'
901 dvidir='${docdir}'
902 pdfdir='${docdir}'
903 psdir='${docdir}'
904 libdir='${exec_prefix}/lib'
905 localedir='${datarootdir}/locale'
906 mandir='${datarootdir}/man'
907
908 ac_prev=
909 ac_dashdash=
910 for ac_option
911 do
912 # If the previous option needs an argument, assign it.
913 if test -n "$ac_prev"; then
914 eval $ac_prev=\$ac_option
915 ac_prev=
916 continue
917 fi
918
919 case $ac_option in
920 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
921 *=) ac_optarg= ;;
922 *) ac_optarg=yes ;;
923 esac
924
925 case $ac_dashdash$ac_option in
926 --)
927 ac_dashdash=yes ;;
928
929 -bindir | --bindir | --bindi | --bind | --bin | --bi)
930 ac_prev=bindir ;;
931 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
932 bindir=$ac_optarg ;;
933
934 -build | --build | --buil | --bui | --bu)
935 ac_prev=build_alias ;;
936 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
937 build_alias=$ac_optarg ;;
938
939 -cache-file | --cache-file | --cache-fil | --cache-fi \
940 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
941 ac_prev=cache_file ;;
942 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
943 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
944 cache_file=$ac_optarg ;;
945
946 --config-cache | -C)
947 cache_file=config.cache ;;
948
949 -datadir | --datadir | --datadi | --datad)
950 ac_prev=datadir ;;
951 -datadir=* | --datadir=* | --datadi=* | --datad=*)
952 datadir=$ac_optarg ;;
953
954 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
955 | --dataroo | --dataro | --datar)
956 ac_prev=datarootdir ;;
957 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
958 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
959 datarootdir=$ac_optarg ;;
960
961 -disable-* | --disable-*)
962 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
963 # Reject names that are not valid shell variable names.
964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965 as_fn_error $? "invalid feature name: \`$ac_useropt'"
966 ac_useropt_orig=$ac_useropt
967 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
968 case $ac_user_opts in
969 *"
970 "enable_$ac_useropt"
971 "*) ;;
972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
973 ac_unrecognized_sep=', ';;
974 esac
975 eval enable_$ac_useropt=no ;;
976
977 -docdir | --docdir | --docdi | --doc | --do)
978 ac_prev=docdir ;;
979 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
980 docdir=$ac_optarg ;;
981
982 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
983 ac_prev=dvidir ;;
984 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
985 dvidir=$ac_optarg ;;
986
987 -enable-* | --enable-*)
988 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
989 # Reject names that are not valid shell variable names.
990 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
991 as_fn_error $? "invalid feature name: \`$ac_useropt'"
992 ac_useropt_orig=$ac_useropt
993 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
994 case $ac_user_opts in
995 *"
996 "enable_$ac_useropt"
997 "*) ;;
998 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
999 ac_unrecognized_sep=', ';;
1000 esac
1001 eval enable_$ac_useropt=\$ac_optarg ;;
1002
1003 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1004 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1005 | --exec | --exe | --ex)
1006 ac_prev=exec_prefix ;;
1007 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1008 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1009 | --exec=* | --exe=* | --ex=*)
1010 exec_prefix=$ac_optarg ;;
1011
1012 -gas | --gas | --ga | --g)
1013 # Obsolete; use --with-gas.
1014 with_gas=yes ;;
1015
1016 -help | --help | --hel | --he | -h)
1017 ac_init_help=long ;;
1018 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1019 ac_init_help=recursive ;;
1020 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1021 ac_init_help=short ;;
1022
1023 -host | --host | --hos | --ho)
1024 ac_prev=host_alias ;;
1025 -host=* | --host=* | --hos=* | --ho=*)
1026 host_alias=$ac_optarg ;;
1027
1028 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1029 ac_prev=htmldir ;;
1030 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1031 | --ht=*)
1032 htmldir=$ac_optarg ;;
1033
1034 -includedir | --includedir | --includedi | --included | --include \
1035 | --includ | --inclu | --incl | --inc)
1036 ac_prev=includedir ;;
1037 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1038 | --includ=* | --inclu=* | --incl=* | --inc=*)
1039 includedir=$ac_optarg ;;
1040
1041 -infodir | --infodir | --infodi | --infod | --info | --inf)
1042 ac_prev=infodir ;;
1043 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1044 infodir=$ac_optarg ;;
1045
1046 -libdir | --libdir | --libdi | --libd)
1047 ac_prev=libdir ;;
1048 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1049 libdir=$ac_optarg ;;
1050
1051 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1052 | --libexe | --libex | --libe)
1053 ac_prev=libexecdir ;;
1054 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1055 | --libexe=* | --libex=* | --libe=*)
1056 libexecdir=$ac_optarg ;;
1057
1058 -localedir | --localedir | --localedi | --localed | --locale)
1059 ac_prev=localedir ;;
1060 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1061 localedir=$ac_optarg ;;
1062
1063 -localstatedir | --localstatedir | --localstatedi | --localstated \
1064 | --localstate | --localstat | --localsta | --localst | --locals)
1065 ac_prev=localstatedir ;;
1066 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1067 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1068 localstatedir=$ac_optarg ;;
1069
1070 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1071 ac_prev=mandir ;;
1072 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1073 mandir=$ac_optarg ;;
1074
1075 -nfp | --nfp | --nf)
1076 # Obsolete; use --without-fp.
1077 with_fp=no ;;
1078
1079 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1080 | --no-cr | --no-c | -n)
1081 no_create=yes ;;
1082
1083 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1084 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1085 no_recursion=yes ;;
1086
1087 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1088 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1089 | --oldin | --oldi | --old | --ol | --o)
1090 ac_prev=oldincludedir ;;
1091 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1092 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1093 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1094 oldincludedir=$ac_optarg ;;
1095
1096 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1097 ac_prev=prefix ;;
1098 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1099 prefix=$ac_optarg ;;
1100
1101 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1102 | --program-pre | --program-pr | --program-p)
1103 ac_prev=program_prefix ;;
1104 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1105 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1106 program_prefix=$ac_optarg ;;
1107
1108 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1109 | --program-suf | --program-su | --program-s)
1110 ac_prev=program_suffix ;;
1111 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1112 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1113 program_suffix=$ac_optarg ;;
1114
1115 -program-transform-name | --program-transform-name \
1116 | --program-transform-nam | --program-transform-na \
1117 | --program-transform-n | --program-transform- \
1118 | --program-transform | --program-transfor \
1119 | --program-transfo | --program-transf \
1120 | --program-trans | --program-tran \
1121 | --progr-tra | --program-tr | --program-t)
1122 ac_prev=program_transform_name ;;
1123 -program-transform-name=* | --program-transform-name=* \
1124 | --program-transform-nam=* | --program-transform-na=* \
1125 | --program-transform-n=* | --program-transform-=* \
1126 | --program-transform=* | --program-transfor=* \
1127 | --program-transfo=* | --program-transf=* \
1128 | --program-trans=* | --program-tran=* \
1129 | --progr-tra=* | --program-tr=* | --program-t=*)
1130 program_transform_name=$ac_optarg ;;
1131
1132 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1133 ac_prev=pdfdir ;;
1134 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1135 pdfdir=$ac_optarg ;;
1136
1137 -psdir | --psdir | --psdi | --psd | --ps)
1138 ac_prev=psdir ;;
1139 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1140 psdir=$ac_optarg ;;
1141
1142 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1143 | -silent | --silent | --silen | --sile | --sil)
1144 silent=yes ;;
1145
1146 -runstatedir | --runstatedir | --runstatedi | --runstated \
1147 | --runstate | --runstat | --runsta | --runst | --runs \
1148 | --run | --ru | --r)
1149 ac_prev=runstatedir ;;
1150 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1151 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1152 | --run=* | --ru=* | --r=*)
1153 runstatedir=$ac_optarg ;;
1154
1155 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1156 ac_prev=sbindir ;;
1157 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1158 | --sbi=* | --sb=*)
1159 sbindir=$ac_optarg ;;
1160
1161 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1162 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1163 | --sharedst | --shareds | --shared | --share | --shar \
1164 | --sha | --sh)
1165 ac_prev=sharedstatedir ;;
1166 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1167 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1168 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1169 | --sha=* | --sh=*)
1170 sharedstatedir=$ac_optarg ;;
1171
1172 -site | --site | --sit)
1173 ac_prev=site ;;
1174 -site=* | --site=* | --sit=*)
1175 site=$ac_optarg ;;
1176
1177 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1178 ac_prev=srcdir ;;
1179 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1180 srcdir=$ac_optarg ;;
1181
1182 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1183 | --syscon | --sysco | --sysc | --sys | --sy)
1184 ac_prev=sysconfdir ;;
1185 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1186 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1187 sysconfdir=$ac_optarg ;;
1188
1189 -target | --target | --targe | --targ | --tar | --ta | --t)
1190 ac_prev=target_alias ;;
1191 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1192 target_alias=$ac_optarg ;;
1193
1194 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1195 verbose=yes ;;
1196
1197 -version | --version | --versio | --versi | --vers | -V)
1198 ac_init_version=: ;;
1199
1200 -with-* | --with-*)
1201 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204 as_fn_error $? "invalid package name: \`$ac_useropt'"
1205 ac_useropt_orig=$ac_useropt
1206 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in
1208 *"
1209 "with_$ac_useropt"
1210 "*) ;;
1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1212 ac_unrecognized_sep=', ';;
1213 esac
1214 eval with_$ac_useropt=\$ac_optarg ;;
1215
1216 -without-* | --without-*)
1217 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220 as_fn_error $? "invalid package name: \`$ac_useropt'"
1221 ac_useropt_orig=$ac_useropt
1222 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 case $ac_user_opts in
1224 *"
1225 "with_$ac_useropt"
1226 "*) ;;
1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1228 ac_unrecognized_sep=', ';;
1229 esac
1230 eval with_$ac_useropt=no ;;
1231
1232 --x)
1233 # Obsolete; use --with-x.
1234 with_x=yes ;;
1235
1236 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1237 | --x-incl | --x-inc | --x-in | --x-i)
1238 ac_prev=x_includes ;;
1239 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1240 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1241 x_includes=$ac_optarg ;;
1242
1243 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1244 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1245 ac_prev=x_libraries ;;
1246 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1247 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1248 x_libraries=$ac_optarg ;;
1249
1250 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1251 Try \`$0 --help' for more information"
1252 ;;
1253
1254 *=*)
1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256 # Reject names that are not valid shell variable names.
1257 case $ac_envvar in #(
1258 '' | [0-9]* | *[!_$as_cr_alnum]* )
1259 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1260 esac
1261 eval $ac_envvar=\$ac_optarg
1262 export $ac_envvar ;;
1263
1264 *)
1265 # FIXME: should be removed in autoconf 3.0.
1266 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1267 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1269 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1270 ;;
1271
1272 esac
1273 done
1274
1275 if test -n "$ac_prev"; then
1276 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1277 as_fn_error $? "missing argument to $ac_option"
1278 fi
1279
1280 if test -n "$ac_unrecognized_opts"; then
1281 case $enable_option_checking in
1282 no) ;;
1283 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1284 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1285 esac
1286 fi
1287
1288 # Check all directory arguments for consistency.
1289 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1290 datadir sysconfdir sharedstatedir localstatedir includedir \
1291 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1292 libdir localedir mandir runstatedir
1293 do
1294 eval ac_val=\$$ac_var
1295 # Remove trailing slashes.
1296 case $ac_val in
1297 */ )
1298 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1299 eval $ac_var=\$ac_val;;
1300 esac
1301 # Be sure to have absolute directory names.
1302 case $ac_val in
1303 [\\/$]* | ?:[\\/]* ) continue;;
1304 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1305 esac
1306 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1307 done
1308
1309 # There might be people who depend on the old broken behavior: `$host'
1310 # used to hold the argument of --host etc.
1311 # FIXME: To remove some day.
1312 build=$build_alias
1313 host=$host_alias
1314 target=$target_alias
1315
1316 # FIXME: To remove some day.
1317 if test "x$host_alias" != x; then
1318 if test "x$build_alias" = x; then
1319 cross_compiling=maybe
1320 elif test "x$build_alias" != "x$host_alias"; then
1321 cross_compiling=yes
1322 fi
1323 fi
1324
1325 ac_tool_prefix=
1326 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1327
1328 test "$silent" = yes && exec 6>/dev/null
1329
1330
1331 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1332 ac_ls_di=`ls -di .` &&
1333 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1334 as_fn_error $? "working directory cannot be determined"
1335 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1336 as_fn_error $? "pwd does not report name of working directory"
1337
1338
1339 # Find the source files, if location was not specified.
1340 if test -z "$srcdir"; then
1341 ac_srcdir_defaulted=yes
1342 # Try the directory containing this script, then the parent directory.
1343 ac_confdir=`$as_dirname -- "$as_myself" ||
1344 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1345 X"$as_myself" : 'X\(//\)[^/]' \| \
1346 X"$as_myself" : 'X\(//\)$' \| \
1347 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1348 printf "%s\n" X"$as_myself" |
1349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\/\)[^/].*/{
1354 s//\1/
1355 q
1356 }
1357 /^X\(\/\/\)$/{
1358 s//\1/
1359 q
1360 }
1361 /^X\(\/\).*/{
1362 s//\1/
1363 q
1364 }
1365 s/.*/./; q'`
1366 srcdir=$ac_confdir
1367 if test ! -r "$srcdir/$ac_unique_file"; then
1368 srcdir=..
1369 fi
1370 else
1371 ac_srcdir_defaulted=no
1372 fi
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1374 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1375 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1376 fi
1377 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1378 ac_abs_confdir=`(
1379 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1380 pwd)`
1381 # When building in place, set srcdir=.
1382 if test "$ac_abs_confdir" = "$ac_pwd"; then
1383 srcdir=.
1384 fi
1385 # Remove unnecessary trailing slashes from srcdir.
1386 # Double slashes in file names in object file debugging info
1387 # mess up M-x gdb in Emacs.
1388 case $srcdir in
1389 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1390 esac
1391 for ac_var in $ac_precious_vars; do
1392 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1393 eval ac_env_${ac_var}_value=\$${ac_var}
1394 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1395 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1396 done
1397
1398 #
1399 # Report the --help message.
1400 #
1401 if test "$ac_init_help" = "long"; then
1402 # Omit some internal or obsolete options to make the list less imposing.
1403 # This message is too long to be a string in the A/UX 3.1 sh.
1404 cat <<_ACEOF
1405 \`configure' configures xcb-util-renderutil 0.3.10 to adapt to many kinds of systems.
1406
1407 Usage: $0 [OPTION]... [VAR=VALUE]...
1408
1409 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1410 VAR=VALUE. See below for descriptions of some of the useful variables.
1411
1412 Defaults for the options are specified in brackets.
1413
1414 Configuration:
1415 -h, --help display this help and exit
1416 --help=short display options specific to this package
1417 --help=recursive display the short help of all the included packages
1418 -V, --version display version information and exit
1419 -q, --quiet, --silent do not print \`checking ...' messages
1420 --cache-file=FILE cache test results in FILE [disabled]
1421 -C, --config-cache alias for \`--cache-file=config.cache'
1422 -n, --no-create do not create output files
1423 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1424
1425 Installation directories:
1426 --prefix=PREFIX install architecture-independent files in PREFIX
1427 [$ac_default_prefix]
1428 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1429 [PREFIX]
1430
1431 By default, \`make install' will install all the files in
1432 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1433 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1434 for instance \`--prefix=\$HOME'.
1435
1436 For better control, use the options below.
1437
1438 Fine tuning of the installation directories:
1439 --bindir=DIR user executables [EPREFIX/bin]
1440 --sbindir=DIR system admin executables [EPREFIX/sbin]
1441 --libexecdir=DIR program executables [EPREFIX/libexec]
1442 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1443 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1444 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1445 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1446 --libdir=DIR object code libraries [EPREFIX/lib]
1447 --includedir=DIR C header files [PREFIX/include]
1448 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1449 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1450 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1451 --infodir=DIR info documentation [DATAROOTDIR/info]
1452 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1453 --mandir=DIR man documentation [DATAROOTDIR/man]
1454 --docdir=DIR documentation root
1455 [DATAROOTDIR/doc/xcb-util-renderutil]
1456 --htmldir=DIR html documentation [DOCDIR]
1457 --dvidir=DIR dvi documentation [DOCDIR]
1458 --pdfdir=DIR pdf documentation [DOCDIR]
1459 --psdir=DIR ps documentation [DOCDIR]
1460 _ACEOF
1461
1462 cat <<\_ACEOF
1463
1464 Program names:
1465 --program-prefix=PREFIX prepend PREFIX to installed program names
1466 --program-suffix=SUFFIX append SUFFIX to installed program names
1467 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1468
1469 System types:
1470 --build=BUILD configure for building on BUILD [guessed]
1471 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1472 _ACEOF
1473 fi
1474
1475 if test -n "$ac_init_help"; then
1476 case $ac_init_help in
1477 short | recursive ) echo "Configuration of xcb-util-renderutil 0.3.10:";;
1478 esac
1479 cat <<\_ACEOF
1480
1481 Optional Features:
1482 --disable-option-checking ignore unrecognized --enable/--with options
1483 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1484 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1485 --enable-silent-rules less verbose build output (undo: "make V=1")
1486 --disable-silent-rules verbose build output (undo: "make V=0")
1487 --enable-shared[=PKGS] build shared libraries [default=yes]
1488 --enable-static[=PKGS] build static libraries [default=yes]
1489 --enable-fast-install[=PKGS]
1490 optimize for fast installation [default=yes]
1491 --enable-dependency-tracking
1492 do not reject slow dependency extractors
1493 --disable-dependency-tracking
1494 speeds up one-time build
1495 --disable-libtool-lock avoid locking (might break parallel builds)
1496 --disable-selective-werror
1497 Turn off selective compiler errors. (default:
1498 enabled)
1499 --enable-strict-compilation
1500 Enable all warnings from compiler and make them
1501 errors (default: disabled)
1502 --enable-devel-docs Enable building the developer documentation
1503 (default: yes)
1504
1505 Optional Packages:
1506 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1507 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1508 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1509 both]
1510 --with-aix-soname=aix|svr4|both
1511 shared library versioning (aka "SONAME") variant to
1512 provide on AIX, [default=aix].
1513 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1514 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1515 compiler's sysroot if not specified).
1516 --with-doxygen Use doxygen to regenerate documentation (default:
1517 auto)
1518
1519 Some influential environment variables:
1520 CC C compiler command
1521 CFLAGS C compiler flags
1522 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1523 nonstandard directory <lib dir>
1524 LIBS libraries to pass to the linker, e.g. -l<library>
1525 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1526 you have headers in a nonstandard directory <include dir>
1527 LT_SYS_LIBRARY_PATH
1528 User-defined run-time library search path.
1529 PKG_CONFIG path to pkg-config utility
1530 PKG_CONFIG_PATH
1531 directories to add to pkg-config's search path
1532 PKG_CONFIG_LIBDIR
1533 path overriding pkg-config's built-in search path
1534 XCB_CFLAGS C compiler flags for XCB, overriding pkg-config
1535 XCB_LIBS linker flags for XCB, overriding pkg-config
1536 DOXYGEN Path to doxygen command
1537 DOT Path to the dot graphics utility
1538 XCB_RENDER_CFLAGS
1539 C compiler flags for XCB_RENDER, overriding pkg-config
1540 XCB_RENDER_LIBS
1541 linker flags for XCB_RENDER, overriding pkg-config
1542
1543 Use these variables to override the choices made by `configure' or to help
1544 it to find libraries and programs with nonstandard names/locations.
1545
1546 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxcb-render-util/-/issues>.
1547 _ACEOF
1548 ac_status=$?
1549 fi
1550
1551 if test "$ac_init_help" = "recursive"; then
1552 # If there are subdirs, report their specific --help.
1553 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1554 test -d "$ac_dir" ||
1555 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1556 continue
1557 ac_builddir=.
1558
1559 case "$ac_dir" in
1560 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561 *)
1562 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1563 # A ".." for each directory in $ac_dir_suffix.
1564 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1565 case $ac_top_builddir_sub in
1566 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1568 esac ;;
1569 esac
1570 ac_abs_top_builddir=$ac_pwd
1571 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1572 # for backward compatibility:
1573 ac_top_builddir=$ac_top_build_prefix
1574
1575 case $srcdir in
1576 .) # We are building in place.
1577 ac_srcdir=.
1578 ac_top_srcdir=$ac_top_builddir_sub
1579 ac_abs_top_srcdir=$ac_pwd ;;
1580 [\\/]* | ?:[\\/]* ) # Absolute name.
1581 ac_srcdir=$srcdir$ac_dir_suffix;
1582 ac_top_srcdir=$srcdir
1583 ac_abs_top_srcdir=$srcdir ;;
1584 *) # Relative name.
1585 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1586 ac_top_srcdir=$ac_top_build_prefix$srcdir
1587 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1588 esac
1589 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1590
1591 cd "$ac_dir" || { ac_status=$?; continue; }
1592 # Check for configure.gnu first; this name is used for a wrapper for
1593 # Metaconfig's "Configure" on case-insensitive file systems.
1594 if test -f "$ac_srcdir/configure.gnu"; then
1595 echo &&
1596 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1597 elif test -f "$ac_srcdir/configure"; then
1598 echo &&
1599 $SHELL "$ac_srcdir/configure" --help=recursive
1600 else
1601 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1602 fi || ac_status=$?
1603 cd "$ac_pwd" || { ac_status=$?; break; }
1604 done
1605 fi
1606
1607 test -n "$ac_init_help" && exit $ac_status
1608 if $ac_init_version; then
1609 cat <<\_ACEOF
1610 xcb-util-renderutil configure 0.3.10
1611 generated by GNU Autoconf 2.71
1612
1613 Copyright (C) 2021 Free Software Foundation, Inc.
1614 This configure script is free software; the Free Software Foundation
1615 gives unlimited permission to copy, distribute and modify it.
1616 _ACEOF
1617 exit
1618 fi
1619
1620 ## ------------------------ ##
1621 ## Autoconf initialization. ##
1622 ## ------------------------ ##
1623
1624 # ac_fn_c_try_compile LINENO
1625 # --------------------------
1626 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1627 ac_fn_c_try_compile ()
1628 {
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 rm -f conftest.$ac_objext conftest.beam
1631 if { { ac_try="$ac_compile"
1632 case "(($ac_try" in
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634 *) ac_try_echo=$ac_try;;
1635 esac
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 printf "%s\n" "$ac_try_echo"; } >&5
1638 (eval "$ac_compile") 2>conftest.err
1639 ac_status=$?
1640 if test -s conftest.err; then
1641 grep -v '^ *+' conftest.err >conftest.er1
1642 cat conftest.er1 >&5
1643 mv -f conftest.er1 conftest.err
1644 fi
1645 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; } && {
1647 test -z "$ac_c_werror_flag" ||
1648 test ! -s conftest.err
1649 } && test -s conftest.$ac_objext
1650 then :
1651 ac_retval=0
1652 else $as_nop
1653 printf "%s\n" "$as_me: failed program was:" >&5
1654 sed 's/^/| /' conftest.$ac_ext >&5
1655
1656 ac_retval=1
1657 fi
1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659 as_fn_set_status $ac_retval
1660
1661 } # ac_fn_c_try_compile
1662
1663 # ac_fn_c_try_link LINENO
1664 # -----------------------
1665 # Try to link conftest.$ac_ext, and return whether this succeeded.
1666 ac_fn_c_try_link ()
1667 {
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1670 if { { ac_try="$ac_link"
1671 case "(($ac_try" in
1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673 *) ac_try_echo=$ac_try;;
1674 esac
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 printf "%s\n" "$ac_try_echo"; } >&5
1677 (eval "$ac_link") 2>conftest.err
1678 ac_status=$?
1679 if test -s conftest.err; then
1680 grep -v '^ *+' conftest.err >conftest.er1
1681 cat conftest.er1 >&5
1682 mv -f conftest.er1 conftest.err
1683 fi
1684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } && {
1686 test -z "$ac_c_werror_flag" ||
1687 test ! -s conftest.err
1688 } && test -s conftest$ac_exeext && {
1689 test "$cross_compiling" = yes ||
1690 test -x conftest$ac_exeext
1691 }
1692 then :
1693 ac_retval=0
1694 else $as_nop
1695 printf "%s\n" "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1697
1698 ac_retval=1
1699 fi
1700 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1701 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1702 # interfere with the next link command; also delete a directory that is
1703 # left behind by Apple's compiler. We do this before executing the actions.
1704 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 as_fn_set_status $ac_retval
1707
1708 } # ac_fn_c_try_link
1709
1710 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1711 # -------------------------------------------------------
1712 # Tests whether HEADER exists and can be compiled using the include files in
1713 # INCLUDES, setting the cache variable VAR accordingly.
1714 ac_fn_c_check_header_compile ()
1715 {
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1718 printf %s "checking for $2... " >&6; }
1719 if eval test \${$3+y}
1720 then :
1721 printf %s "(cached) " >&6
1722 else $as_nop
1723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724 /* end confdefs.h. */
1725 $4
1726 #include <$2>
1727 _ACEOF
1728 if ac_fn_c_try_compile "$LINENO"
1729 then :
1730 eval "$3=yes"
1731 else $as_nop
1732 eval "$3=no"
1733 fi
1734 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1735 fi
1736 eval ac_res=\$$3
1737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738 printf "%s\n" "$ac_res" >&6; }
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740
1741 } # ac_fn_c_check_header_compile
1742
1743 # ac_fn_c_check_func LINENO FUNC VAR
1744 # ----------------------------------
1745 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1746 ac_fn_c_check_func ()
1747 {
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1750 printf %s "checking for $2... " >&6; }
1751 if eval test \${$3+y}
1752 then :
1753 printf %s "(cached) " >&6
1754 else $as_nop
1755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756 /* end confdefs.h. */
1757 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1759 #define $2 innocuous_$2
1760
1761 /* System header to define __stub macros and hopefully few prototypes,
1762 which can conflict with char $2 (); below. */
1763
1764 #include <limits.h>
1765 #undef $2
1766
1767 /* Override any GCC internal prototype to avoid an error.
1768 Use char because int might match the return type of a GCC
1769 builtin and then its argument prototype would still apply. */
1770 #ifdef __cplusplus
1771 extern "C"
1772 #endif
1773 char $2 ();
1774 /* The GNU C library defines this for functions which it implements
1775 to always fail with ENOSYS. Some functions are actually named
1776 something starting with __ and the normal name is an alias. */
1777 #if defined __stub_$2 || defined __stub___$2
1778 choke me
1779 #endif
1780
1781 int
1782 main (void)
1783 {
1784 return $2 ();
1785 ;
1786 return 0;
1787 }
1788 _ACEOF
1789 if ac_fn_c_try_link "$LINENO"
1790 then :
1791 eval "$3=yes"
1792 else $as_nop
1793 eval "$3=no"
1794 fi
1795 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1796 conftest$ac_exeext conftest.$ac_ext
1797 fi
1798 eval ac_res=\$$3
1799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800 printf "%s\n" "$ac_res" >&6; }
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802
1803 } # ac_fn_c_check_func
1804
1805 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1806 # ------------------------------------------------------------------
1807 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1808 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1809 ac_fn_check_decl ()
1810 {
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 as_decl_name=`echo $2|sed 's/ *(.*//'`
1813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1814 printf %s "checking whether $as_decl_name is declared... " >&6; }
1815 if eval test \${$3+y}
1816 then :
1817 printf %s "(cached) " >&6
1818 else $as_nop
1819 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1820 eval ac_save_FLAGS=\$$6
1821 as_fn_append $6 " $5"
1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823 /* end confdefs.h. */
1824 $4
1825 int
1826 main (void)
1827 {
1828 #ifndef $as_decl_name
1829 #ifdef __cplusplus
1830 (void) $as_decl_use;
1831 #else
1832 (void) $as_decl_name;
1833 #endif
1834 #endif
1835
1836 ;
1837 return 0;
1838 }
1839 _ACEOF
1840 if ac_fn_c_try_compile "$LINENO"
1841 then :
1842 eval "$3=yes"
1843 else $as_nop
1844 eval "$3=no"
1845 fi
1846 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1847 eval $6=\$ac_save_FLAGS
1848
1849 fi
1850 eval ac_res=\$$3
1851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1852 printf "%s\n" "$ac_res" >&6; }
1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854
1855 } # ac_fn_check_decl
1856 ac_configure_args_raw=
1857 for ac_arg
1858 do
1859 case $ac_arg in
1860 *\'*)
1861 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1862 esac
1863 as_fn_append ac_configure_args_raw " '$ac_arg'"
1864 done
1865
1866 case $ac_configure_args_raw in
1867 *$as_nl*)
1868 ac_safe_unquote= ;;
1869 *)
1870 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1871 ac_unsafe_a="$ac_unsafe_z#~"
1872 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1873 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1874 esac
1875
1876 cat >config.log <<_ACEOF
1877 This file contains any messages produced by compilers while
1878 running configure, to aid debugging if configure makes a mistake.
1879
1880 It was created by xcb-util-renderutil $as_me 0.3.10, which was
1881 generated by GNU Autoconf 2.71. Invocation command line was
1882
1883 $ $0$ac_configure_args_raw
1884
1885 _ACEOF
1886 exec 5>>config.log
1887 {
1888 cat <<_ASUNAME
1889 ## --------- ##
1890 ## Platform. ##
1891 ## --------- ##
1892
1893 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1894 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1895 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1896 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1897 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1898
1899 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1900 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1901
1902 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1903 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1904 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1905 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1906 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1907 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1908 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1909
1910 _ASUNAME
1911
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 for as_dir in $PATH
1914 do
1915 IFS=$as_save_IFS
1916 case $as_dir in #(((
1917 '') as_dir=./ ;;
1918 */) ;;
1919 *) as_dir=$as_dir/ ;;
1920 esac
1921 printf "%s\n" "PATH: $as_dir"
1922 done
1923 IFS=$as_save_IFS
1924
1925 } >&5
1926
1927 cat >&5 <<_ACEOF
1928
1929
1930 ## ----------- ##
1931 ## Core tests. ##
1932 ## ----------- ##
1933
1934 _ACEOF
1935
1936
1937 # Keep a trace of the command line.
1938 # Strip out --no-create and --no-recursion so they do not pile up.
1939 # Strip out --silent because we don't want to record it for future runs.
1940 # Also quote any args containing shell meta-characters.
1941 # Make two passes to allow for proper duplicate-argument suppression.
1942 ac_configure_args=
1943 ac_configure_args0=
1944 ac_configure_args1=
1945 ac_must_keep_next=false
1946 for ac_pass in 1 2
1947 do
1948 for ac_arg
1949 do
1950 case $ac_arg in
1951 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1952 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1953 | -silent | --silent | --silen | --sile | --sil)
1954 continue ;;
1955 *\'*)
1956 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1957 esac
1958 case $ac_pass in
1959 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1960 2)
1961 as_fn_append ac_configure_args1 " '$ac_arg'"
1962 if test $ac_must_keep_next = true; then
1963 ac_must_keep_next=false # Got value, back to normal.
1964 else
1965 case $ac_arg in
1966 *=* | --config-cache | -C | -disable-* | --disable-* \
1967 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1968 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1969 | -with-* | --with-* | -without-* | --without-* | --x)
1970 case "$ac_configure_args0 " in
1971 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1972 esac
1973 ;;
1974 -* ) ac_must_keep_next=true ;;
1975 esac
1976 fi
1977 as_fn_append ac_configure_args " '$ac_arg'"
1978 ;;
1979 esac
1980 done
1981 done
1982 { ac_configure_args0=; unset ac_configure_args0;}
1983 { ac_configure_args1=; unset ac_configure_args1;}
1984
1985 # When interrupted or exit'd, cleanup temporary files, and complete
1986 # config.log. We remove comments because anyway the quotes in there
1987 # would cause problems or look ugly.
1988 # WARNING: Use '\'' to represent an apostrophe within the trap.
1989 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1990 trap 'exit_status=$?
1991 # Sanitize IFS.
1992 IFS=" "" $as_nl"
1993 # Save into config.log some information that might help in debugging.
1994 {
1995 echo
1996
1997 printf "%s\n" "## ---------------- ##
1998 ## Cache variables. ##
1999 ## ---------------- ##"
2000 echo
2001 # The following way of writing the cache mishandles newlines in values,
2002 (
2003 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2004 eval ac_val=\$$ac_var
2005 case $ac_val in #(
2006 *${as_nl}*)
2007 case $ac_var in #(
2008 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2009 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2010 esac
2011 case $ac_var in #(
2012 _ | IFS | as_nl) ;; #(
2013 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2014 *) { eval $ac_var=; unset $ac_var;} ;;
2015 esac ;;
2016 esac
2017 done
2018 (set) 2>&1 |
2019 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2020 *${as_nl}ac_space=\ *)
2021 sed -n \
2022 "s/'\''/'\''\\\\'\'''\''/g;
2023 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2024 ;; #(
2025 *)
2026 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2027 ;;
2028 esac |
2029 sort
2030 )
2031 echo
2032
2033 printf "%s\n" "## ----------------- ##
2034 ## Output variables. ##
2035 ## ----------------- ##"
2036 echo
2037 for ac_var in $ac_subst_vars
2038 do
2039 eval ac_val=\$$ac_var
2040 case $ac_val in
2041 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2042 esac
2043 printf "%s\n" "$ac_var='\''$ac_val'\''"
2044 done | sort
2045 echo
2046
2047 if test -n "$ac_subst_files"; then
2048 printf "%s\n" "## ------------------- ##
2049 ## File substitutions. ##
2050 ## ------------------- ##"
2051 echo
2052 for ac_var in $ac_subst_files
2053 do
2054 eval ac_val=\$$ac_var
2055 case $ac_val in
2056 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2057 esac
2058 printf "%s\n" "$ac_var='\''$ac_val'\''"
2059 done | sort
2060 echo
2061 fi
2062
2063 if test -s confdefs.h; then
2064 printf "%s\n" "## ----------- ##
2065 ## confdefs.h. ##
2066 ## ----------- ##"
2067 echo
2068 cat confdefs.h
2069 echo
2070 fi
2071 test "$ac_signal" != 0 &&
2072 printf "%s\n" "$as_me: caught signal $ac_signal"
2073 printf "%s\n" "$as_me: exit $exit_status"
2074 } >&5
2075 rm -f core *.core core.conftest.* &&
2076 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2077 exit $exit_status
2078 ' 0
2079 for ac_signal in 1 2 13 15; do
2080 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2081 done
2082 ac_signal=0
2083
2084 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2085 rm -f -r conftest* confdefs.h
2086
2087 printf "%s\n" "/* confdefs.h */" > confdefs.h
2088
2089 # Predefined preprocessor variables.
2090
2091 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2092
2093 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2094
2095 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2096
2097 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2098
2099 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2100
2101 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2102
2103
2104 # Let the site file select an alternate cache file if it wants to.
2105 # Prefer an explicitly selected file to automatically selected ones.
2106 if test -n "$CONFIG_SITE"; then
2107 ac_site_files="$CONFIG_SITE"
2108 elif test "x$prefix" != xNONE; then
2109 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2110 else
2111 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2112 fi
2113
2114 for ac_site_file in $ac_site_files
2115 do
2116 case $ac_site_file in #(
2117 */*) :
2118 ;; #(
2119 *) :
2120 ac_site_file=./$ac_site_file ;;
2121 esac
2122 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2124 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2125 sed 's/^/| /' "$ac_site_file" >&5
2126 . "$ac_site_file" \
2127 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2128 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2129 as_fn_error $? "failed to load site script $ac_site_file
2130 See \`config.log' for more details" "$LINENO" 5; }
2131 fi
2132 done
2133
2134 if test -r "$cache_file"; then
2135 # Some versions of bash will fail to source /dev/null (special files
2136 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2137 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2139 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2140 case $cache_file in
2141 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2142 *) . "./$cache_file";;
2143 esac
2144 fi
2145 else
2146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2147 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2148 >$cache_file
2149 fi
2150
2151 # Test code for whether the C compiler supports C89 (global declarations)
2152 ac_c_conftest_c89_globals='
2153 /* Does the compiler advertise C89 conformance?
2154 Do not test the value of __STDC__, because some compilers set it to 0
2155 while being otherwise adequately conformant. */
2156 #if !defined __STDC__
2157 # error "Compiler does not advertise C89 conformance"
2158 #endif
2159
2160 #include <stddef.h>
2161 #include <stdarg.h>
2162 struct stat;
2163 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2164 struct buf { int x; };
2165 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2166 static char *e (p, i)
2167 char **p;
2168 int i;
2169 {
2170 return p[i];
2171 }
2172 static char *f (char * (*g) (char **, int), char **p, ...)
2173 {
2174 char *s;
2175 va_list v;
2176 va_start (v,p);
2177 s = g (p, va_arg (v,int));
2178 va_end (v);
2179 return s;
2180 }
2181
2182 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2183 function prototypes and stuff, but not \xHH hex character constants.
2184 These do not provoke an error unfortunately, instead are silently treated
2185 as an "x". The following induces an error, until -std is added to get
2186 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2187 array size at least. It is necessary to write \x00 == 0 to get something
2188 that is true only with -std. */
2189 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2190
2191 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2192 inside strings and character constants. */
2193 #define FOO(x) '\''x'\''
2194 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2195
2196 int test (int i, double x);
2197 struct s1 {int (*f) (int a);};
2198 struct s2 {int (*f) (double a);};
2199 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2200 int, int);'
2201
2202 # Test code for whether the C compiler supports C89 (body of main).
2203 ac_c_conftest_c89_main='
2204 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2205 '
2206
2207 # Test code for whether the C compiler supports C99 (global declarations)
2208 ac_c_conftest_c99_globals='
2209 // Does the compiler advertise C99 conformance?
2210 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2211 # error "Compiler does not advertise C99 conformance"
2212 #endif
2213
2214 #include <stdbool.h>
2215 extern int puts (const char *);
2216 extern int printf (const char *, ...);
2217 extern int dprintf (int, const char *, ...);
2218 extern void *malloc (size_t);
2219
2220 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2221 // dprintf is used instead of fprintf to avoid needing to declare
2222 // FILE and stderr.
2223 #define debug(...) dprintf (2, __VA_ARGS__)
2224 #define showlist(...) puts (#__VA_ARGS__)
2225 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2226 static void
2227 test_varargs_macros (void)
2228 {
2229 int x = 1234;
2230 int y = 5678;
2231 debug ("Flag");
2232 debug ("X = %d\n", x);
2233 showlist (The first, second, and third items.);
2234 report (x>y, "x is %d but y is %d", x, y);
2235 }
2236
2237 // Check long long types.
2238 #define BIG64 18446744073709551615ull
2239 #define BIG32 4294967295ul
2240 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2241 #if !BIG_OK
2242 #error "your preprocessor is broken"
2243 #endif
2244 #if BIG_OK
2245 #else
2246 #error "your preprocessor is broken"
2247 #endif
2248 static long long int bignum = -9223372036854775807LL;
2249 static unsigned long long int ubignum = BIG64;
2250
2251 struct incomplete_array
2252 {
2253 int datasize;
2254 double data[];
2255 };
2256
2257 struct named_init {
2258 int number;
2259 const wchar_t *name;
2260 double average;
2261 };
2262
2263 typedef const char *ccp;
2264
2265 static inline int
2266 test_restrict (ccp restrict text)
2267 {
2268 // See if C++-style comments work.
2269 // Iterate through items via the restricted pointer.
2270 // Also check for declarations in for loops.
2271 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2272 continue;
2273 return 0;
2274 }
2275
2276 // Check varargs and va_copy.
2277 static bool
2278 test_varargs (const char *format, ...)
2279 {
2280 va_list args;
2281 va_start (args, format);
2282 va_list args_copy;
2283 va_copy (args_copy, args);
2284
2285 const char *str = "";
2286 int number = 0;
2287 float fnumber = 0;
2288
2289 while (*format)
2290 {
2291 switch (*format++)
2292 {
2293 case '\''s'\'': // string
2294 str = va_arg (args_copy, const char *);
2295 break;
2296 case '\''d'\'': // int
2297 number = va_arg (args_copy, int);
2298 break;
2299 case '\''f'\'': // float
2300 fnumber = va_arg (args_copy, double);
2301 break;
2302 default:
2303 break;
2304 }
2305 }
2306 va_end (args_copy);
2307 va_end (args);
2308
2309 return *str && number && fnumber;
2310 }
2311 '
2312
2313 # Test code for whether the C compiler supports C99 (body of main).
2314 ac_c_conftest_c99_main='
2315 // Check bool.
2316 _Bool success = false;
2317 success |= (argc != 0);
2318
2319 // Check restrict.
2320 if (test_restrict ("String literal") == 0)
2321 success = true;
2322 char *restrict newvar = "Another string";
2323
2324 // Check varargs.
2325 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2326 test_varargs_macros ();
2327
2328 // Check flexible array members.
2329 struct incomplete_array *ia =
2330 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2331 ia->datasize = 10;
2332 for (int i = 0; i < ia->datasize; ++i)
2333 ia->data[i] = i * 1.234;
2334
2335 // Check named initializers.
2336 struct named_init ni = {
2337 .number = 34,
2338 .name = L"Test wide string",
2339 .average = 543.34343,
2340 };
2341
2342 ni.number = 58;
2343
2344 int dynamic_array[ni.number];
2345 dynamic_array[0] = argv[0][0];
2346 dynamic_array[ni.number - 1] = 543;
2347
2348 // work around unused variable warnings
2349 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2350 || dynamic_array[ni.number - 1] != 543);
2351 '
2352
2353 # Test code for whether the C compiler supports C11 (global declarations)
2354 ac_c_conftest_c11_globals='
2355 // Does the compiler advertise C11 conformance?
2356 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2357 # error "Compiler does not advertise C11 conformance"
2358 #endif
2359
2360 // Check _Alignas.
2361 char _Alignas (double) aligned_as_double;
2362 char _Alignas (0) no_special_alignment;
2363 extern char aligned_as_int;
2364 char _Alignas (0) _Alignas (int) aligned_as_int;
2365
2366 // Check _Alignof.
2367 enum
2368 {
2369 int_alignment = _Alignof (int),
2370 int_array_alignment = _Alignof (int[100]),
2371 char_alignment = _Alignof (char)
2372 };
2373 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2374
2375 // Check _Noreturn.
2376 int _Noreturn does_not_return (void) { for (;;) continue; }
2377
2378 // Check _Static_assert.
2379 struct test_static_assert
2380 {
2381 int x;
2382 _Static_assert (sizeof (int) <= sizeof (long int),
2383 "_Static_assert does not work in struct");
2384 long int y;
2385 };
2386
2387 // Check UTF-8 literals.
2388 #define u8 syntax error!
2389 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2390
2391 // Check duplicate typedefs.
2392 typedef long *long_ptr;
2393 typedef long int *long_ptr;
2394 typedef long_ptr long_ptr;
2395
2396 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2397 struct anonymous
2398 {
2399 union {
2400 struct { int i; int j; };
2401 struct { int k; long int l; } w;
2402 };
2403 int m;
2404 } v1;
2405 '
2406
2407 # Test code for whether the C compiler supports C11 (body of main).
2408 ac_c_conftest_c11_main='
2409 _Static_assert ((offsetof (struct anonymous, i)
2410 == offsetof (struct anonymous, w.k)),
2411 "Anonymous union alignment botch");
2412 v1.i = 2;
2413 v1.w.k = 5;
2414 ok |= v1.i != 5;
2415 '
2416
2417 # Test code for whether the C compiler supports C11 (complete).
2418 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2419 ${ac_c_conftest_c99_globals}
2420 ${ac_c_conftest_c11_globals}
2421
2422 int
2423 main (int argc, char **argv)
2424 {
2425 int ok = 0;
2426 ${ac_c_conftest_c89_main}
2427 ${ac_c_conftest_c99_main}
2428 ${ac_c_conftest_c11_main}
2429 return ok;
2430 }
2431 "
2432
2433 # Test code for whether the C compiler supports C99 (complete).
2434 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2435 ${ac_c_conftest_c99_globals}
2436
2437 int
2438 main (int argc, char **argv)
2439 {
2440 int ok = 0;
2441 ${ac_c_conftest_c89_main}
2442 ${ac_c_conftest_c99_main}
2443 return ok;
2444 }
2445 "
2446
2447 # Test code for whether the C compiler supports C89 (complete).
2448 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2449
2450 int
2451 main (int argc, char **argv)
2452 {
2453 int ok = 0;
2454 ${ac_c_conftest_c89_main}
2455 return ok;
2456 }
2457 "
2458
2459 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2460 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2461 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2462 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2463 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2464 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2465 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2466 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2467 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2468
2469 # Auxiliary files required by this configure script.
2470 ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2471
2472 # Locations in which to look for auxiliary files.
2473 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2474
2475 # Search for a directory containing all of the required auxiliary files,
2476 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2477 # If we don't find one directory that contains all the files we need,
2478 # we report the set of missing files from the *first* directory in
2479 # $ac_aux_dir_candidates and give up.
2480 ac_missing_aux_files=""
2481 ac_first_candidate=:
2482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 as_found=false
2485 for as_dir in $ac_aux_dir_candidates
2486 do
2487 IFS=$as_save_IFS
2488 case $as_dir in #(((
2489 '') as_dir=./ ;;
2490 */) ;;
2491 *) as_dir=$as_dir/ ;;
2492 esac
2493 as_found=:
2494
2495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2496 ac_aux_dir_found=yes
2497 ac_install_sh=
2498 for ac_aux in $ac_aux_files
2499 do
2500 # As a special case, if "install-sh" is required, that requirement
2501 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2502 # and $ac_install_sh is set appropriately for whichever one is found.
2503 if test x"$ac_aux" = x"install-sh"
2504 then
2505 if test -f "${as_dir}install-sh"; then
2506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2507 ac_install_sh="${as_dir}install-sh -c"
2508 elif test -f "${as_dir}install.sh"; then
2509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2510 ac_install_sh="${as_dir}install.sh -c"
2511 elif test -f "${as_dir}shtool"; then
2512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2513 ac_install_sh="${as_dir}shtool install -c"
2514 else
2515 ac_aux_dir_found=no
2516 if $ac_first_candidate; then
2517 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2518 else
2519 break
2520 fi
2521 fi
2522 else
2523 if test -f "${as_dir}${ac_aux}"; then
2524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2525 else
2526 ac_aux_dir_found=no
2527 if $ac_first_candidate; then
2528 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2529 else
2530 break
2531 fi
2532 fi
2533 fi
2534 done
2535 if test "$ac_aux_dir_found" = yes; then
2536 ac_aux_dir="$as_dir"
2537 break
2538 fi
2539 ac_first_candidate=false
2540
2541 as_found=false
2542 done
2543 IFS=$as_save_IFS
2544 if $as_found
2545 then :
2546
2547 else $as_nop
2548 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2549 fi
2550
2551
2552 # These three variables are undocumented and unsupported,
2553 # and are intended to be withdrawn in a future Autoconf release.
2554 # They can cause serious problems if a builder's source tree is in a directory
2555 # whose full name contains unusual characters.
2556 if test -f "${ac_aux_dir}config.guess"; then
2557 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2558 fi
2559 if test -f "${ac_aux_dir}config.sub"; then
2560 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2561 fi
2562 if test -f "$ac_aux_dir/configure"; then
2563 ac_configure="$SHELL ${ac_aux_dir}configure"
2564 fi
2565
2566 # Check that the precious variables saved in the cache have kept the same
2567 # value.
2568 ac_cache_corrupted=false
2569 for ac_var in $ac_precious_vars; do
2570 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2571 eval ac_new_set=\$ac_env_${ac_var}_set
2572 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2573 eval ac_new_val=\$ac_env_${ac_var}_value
2574 case $ac_old_set,$ac_new_set in
2575 set,)
2576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2577 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2578 ac_cache_corrupted=: ;;
2579 ,set)
2580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2581 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2582 ac_cache_corrupted=: ;;
2583 ,);;
2584 *)
2585 if test "x$ac_old_val" != "x$ac_new_val"; then
2586 # differences in whitespace do not lead to failure.
2587 ac_old_val_w=`echo x $ac_old_val`
2588 ac_new_val_w=`echo x $ac_new_val`
2589 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2591 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2592 ac_cache_corrupted=:
2593 else
2594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2595 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2596 eval $ac_var=\$ac_old_val
2597 fi
2598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2599 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2601 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2602 fi;;
2603 esac
2604 # Pass precious variables to config.status.
2605 if test "$ac_new_set" = set; then
2606 case $ac_new_val in
2607 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2608 *) ac_arg=$ac_var=$ac_new_val ;;
2609 esac
2610 case " $ac_configure_args " in
2611 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2612 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2613 esac
2614 fi
2615 done
2616 if $ac_cache_corrupted; then
2617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2618 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2620 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2621 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2622 and start over" "$LINENO" 5
2623 fi
2624 ## -------------------- ##
2625 ## Main body of script. ##
2626 ## -------------------- ##
2627
2628 ac_ext=c
2629 ac_cpp='$CPP $CPPFLAGS'
2630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2633
2634
2635
2636 ac_config_headers="$ac_config_headers config.h"
2637
2638
2639 am__api_version='1.16'
2640
2641
2642
2643 # Find a good install program. We prefer a C program (faster),
2644 # so one script is as good as another. But avoid the broken or
2645 # incompatible versions:
2646 # SysV /etc/install, /usr/sbin/install
2647 # SunOS /usr/etc/install
2648 # IRIX /sbin/install
2649 # AIX /bin/install
2650 # AmigaOS /C/install, which installs bootblocks on floppy discs
2651 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2652 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2653 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2654 # OS/2's system install, which has a completely different semantic
2655 # ./install, which can be erroneously created by make from ./install.sh.
2656 # Reject install programs that cannot install multiple files.
2657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2658 printf %s "checking for a BSD-compatible install... " >&6; }
2659 if test -z "$INSTALL"; then
2660 if test ${ac_cv_path_install+y}
2661 then :
2662 printf %s "(cached) " >&6
2663 else $as_nop
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 for as_dir in $PATH
2666 do
2667 IFS=$as_save_IFS
2668 case $as_dir in #(((
2669 '') as_dir=./ ;;
2670 */) ;;
2671 *) as_dir=$as_dir/ ;;
2672 esac
2673 # Account for fact that we put trailing slashes in our PATH walk.
2674 case $as_dir in #((
2675 ./ | /[cC]/* | \
2676 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2677 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2678 /usr/ucb/* ) ;;
2679 *)
2680 # OSF1 and SCO ODT 3.0 have their own names for install.
2681 # Don't use installbsd from OSF since it installs stuff as root
2682 # by default.
2683 for ac_prog in ginstall scoinst install; do
2684 for ac_exec_ext in '' $ac_executable_extensions; do
2685 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2686 if test $ac_prog = install &&
2687 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2688 # AIX install. It has an incompatible calling convention.
2689 :
2690 elif test $ac_prog = install &&
2691 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2692 # program-specific install script used by HP pwplus--don't use.
2693 :
2694 else
2695 rm -rf conftest.one conftest.two conftest.dir
2696 echo one > conftest.one
2697 echo two > conftest.two
2698 mkdir conftest.dir
2699 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2700 test -s conftest.one && test -s conftest.two &&
2701 test -s conftest.dir/conftest.one &&
2702 test -s conftest.dir/conftest.two
2703 then
2704 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2705 break 3
2706 fi
2707 fi
2708 fi
2709 done
2710 done
2711 ;;
2712 esac
2713
2714 done
2715 IFS=$as_save_IFS
2716
2717 rm -rf conftest.one conftest.two conftest.dir
2718
2719 fi
2720 if test ${ac_cv_path_install+y}; then
2721 INSTALL=$ac_cv_path_install
2722 else
2723 # As a last resort, use the slow shell script. Don't cache a
2724 # value for INSTALL within a source directory, because that will
2725 # break other packages using the cache if that directory is
2726 # removed, or if the value is a relative name.
2727 INSTALL=$ac_install_sh
2728 fi
2729 fi
2730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2731 printf "%s\n" "$INSTALL" >&6; }
2732
2733 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2734 # It thinks the first close brace ends the variable substitution.
2735 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2736
2737 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2738
2739 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2740
2741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2742 printf %s "checking whether build environment is sane... " >&6; }
2743 # Reject unsafe characters in $srcdir or the absolute working directory
2744 # name. Accept space and tab only in the latter.
2745 am_lf='
2746 '
2747 case `pwd` in
2748 *[\\\"\#\$\&\'\`$am_lf]*)
2749 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2750 esac
2751 case $srcdir in
2752 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2753 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2754 esac
2755
2756 # Do 'set' in a subshell so we don't clobber the current shell's
2757 # arguments. Must try -L first in case configure is actually a
2758 # symlink; some systems play weird games with the mod time of symlinks
2759 # (eg FreeBSD returns the mod time of the symlink's containing
2760 # directory).
2761 if (
2762 am_has_slept=no
2763 for am_try in 1 2; do
2764 echo "timestamp, slept: $am_has_slept" > conftest.file
2765 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2766 if test "$*" = "X"; then
2767 # -L didn't work.
2768 set X `ls -t "$srcdir/configure" conftest.file`
2769 fi
2770 if test "$*" != "X $srcdir/configure conftest.file" \
2771 && test "$*" != "X conftest.file $srcdir/configure"; then
2772
2773 # If neither matched, then we have a broken ls. This can happen
2774 # if, for instance, CONFIG_SHELL is bash and it inherits a
2775 # broken ls alias from the environment. This has actually
2776 # happened. Such a system could not be considered "sane".
2777 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2778 alias in your environment" "$LINENO" 5
2779 fi
2780 if test "$2" = conftest.file || test $am_try -eq 2; then
2781 break
2782 fi
2783 # Just in case.
2784 sleep 1
2785 am_has_slept=yes
2786 done
2787 test "$2" = conftest.file
2788 )
2789 then
2790 # Ok.
2791 :
2792 else
2793 as_fn_error $? "newly created file is older than distributed files!
2794 Check your system clock" "$LINENO" 5
2795 fi
2796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2797 printf "%s\n" "yes" >&6; }
2798 # If we didn't sleep, we still need to ensure time stamps of config.status and
2799 # generated files are strictly newer.
2800 am_sleep_pid=
2801 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2802 ( sleep 1 ) &
2803 am_sleep_pid=$!
2804 fi
2805
2806 rm -f conftest.file
2807
2808 test "$program_prefix" != NONE &&
2809 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2810 # Use a double $ so make ignores it.
2811 test "$program_suffix" != NONE &&
2812 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2813 # Double any \ or $.
2814 # By default was `s,x,x', remove it if useless.
2815 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2816 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2817
2818
2819 # Expand $ac_aux_dir to an absolute path.
2820 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2821
2822
2823 if test x"${MISSING+set}" != xset; then
2824 MISSING="\${SHELL} '$am_aux_dir/missing'"
2825 fi
2826 # Use eval to expand $SHELL
2827 if eval "$MISSING --is-lightweight"; then
2828 am_missing_run="$MISSING "
2829 else
2830 am_missing_run=
2831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2832 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2833 fi
2834
2835 if test x"${install_sh+set}" != xset; then
2836 case $am_aux_dir in
2837 *\ * | *\ *)
2838 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2839 *)
2840 install_sh="\${SHELL} $am_aux_dir/install-sh"
2841 esac
2842 fi
2843
2844 # Installed binaries are usually stripped using 'strip' when the user
2845 # run "make install-strip". However 'strip' might not be the right
2846 # tool to use in cross-compilation environments, therefore Automake
2847 # will honor the 'STRIP' environment variable to overrule this program.
2848 if test "$cross_compiling" != no; then
2849 if test -n "$ac_tool_prefix"; then
2850 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2851 set dummy ${ac_tool_prefix}strip; ac_word=$2
2852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2853 printf %s "checking for $ac_word... " >&6; }
2854 if test ${ac_cv_prog_STRIP+y}
2855 then :
2856 printf %s "(cached) " >&6
2857 else $as_nop
2858 if test -n "$STRIP"; then
2859 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2860 else
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 for as_dir in $PATH
2863 do
2864 IFS=$as_save_IFS
2865 case $as_dir in #(((
2866 '') as_dir=./ ;;
2867 */) ;;
2868 *) as_dir=$as_dir/ ;;
2869 esac
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2872 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2874 break 2
2875 fi
2876 done
2877 done
2878 IFS=$as_save_IFS
2879
2880 fi
2881 fi
2882 STRIP=$ac_cv_prog_STRIP
2883 if test -n "$STRIP"; then
2884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2885 printf "%s\n" "$STRIP" >&6; }
2886 else
2887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888 printf "%s\n" "no" >&6; }
2889 fi
2890
2891
2892 fi
2893 if test -z "$ac_cv_prog_STRIP"; then
2894 ac_ct_STRIP=$STRIP
2895 # Extract the first word of "strip", so it can be a program name with args.
2896 set dummy strip; ac_word=$2
2897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898 printf %s "checking for $ac_word... " >&6; }
2899 if test ${ac_cv_prog_ac_ct_STRIP+y}
2900 then :
2901 printf %s "(cached) " >&6
2902 else $as_nop
2903 if test -n "$ac_ct_STRIP"; then
2904 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2905 else
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 for as_dir in $PATH
2908 do
2909 IFS=$as_save_IFS
2910 case $as_dir in #(((
2911 '') as_dir=./ ;;
2912 */) ;;
2913 *) as_dir=$as_dir/ ;;
2914 esac
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2917 ac_cv_prog_ac_ct_STRIP="strip"
2918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2919 break 2
2920 fi
2921 done
2922 done
2923 IFS=$as_save_IFS
2924
2925 fi
2926 fi
2927 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2928 if test -n "$ac_ct_STRIP"; then
2929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2930 printf "%s\n" "$ac_ct_STRIP" >&6; }
2931 else
2932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933 printf "%s\n" "no" >&6; }
2934 fi
2935
2936 if test "x$ac_ct_STRIP" = x; then
2937 STRIP=":"
2938 else
2939 case $cross_compiling:$ac_tool_warned in
2940 yes:)
2941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2942 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2943 ac_tool_warned=yes ;;
2944 esac
2945 STRIP=$ac_ct_STRIP
2946 fi
2947 else
2948 STRIP="$ac_cv_prog_STRIP"
2949 fi
2950
2951 fi
2952 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2953
2954
2955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2956 printf %s "checking for a race-free mkdir -p... " >&6; }
2957 if test -z "$MKDIR_P"; then
2958 if test ${ac_cv_path_mkdir+y}
2959 then :
2960 printf %s "(cached) " >&6
2961 else $as_nop
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2964 do
2965 IFS=$as_save_IFS
2966 case $as_dir in #(((
2967 '') as_dir=./ ;;
2968 */) ;;
2969 *) as_dir=$as_dir/ ;;
2970 esac
2971 for ac_prog in mkdir gmkdir; do
2972 for ac_exec_ext in '' $ac_executable_extensions; do
2973 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2974 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2975 'mkdir ('*'coreutils) '* | \
2976 'BusyBox '* | \
2977 'mkdir (fileutils) '4.1*)
2978 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2979 break 3;;
2980 esac
2981 done
2982 done
2983 done
2984 IFS=$as_save_IFS
2985
2986 fi
2987
2988 test -d ./--version && rmdir ./--version
2989 if test ${ac_cv_path_mkdir+y}; then
2990 MKDIR_P="$ac_cv_path_mkdir -p"
2991 else
2992 # As a last resort, use the slow shell script. Don't cache a
2993 # value for MKDIR_P within a source directory, because that will
2994 # break other packages using the cache if that directory is
2995 # removed, or if the value is a relative name.
2996 MKDIR_P="$ac_install_sh -d"
2997 fi
2998 fi
2999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3000 printf "%s\n" "$MKDIR_P" >&6; }
3001
3002 for ac_prog in gawk mawk nawk awk
3003 do
3004 # Extract the first word of "$ac_prog", so it can be a program name with args.
3005 set dummy $ac_prog; ac_word=$2
3006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3007 printf %s "checking for $ac_word... " >&6; }
3008 if test ${ac_cv_prog_AWK+y}
3009 then :
3010 printf %s "(cached) " >&6
3011 else $as_nop
3012 if test -n "$AWK"; then
3013 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3014 else
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 for as_dir in $PATH
3017 do
3018 IFS=$as_save_IFS
3019 case $as_dir in #(((
3020 '') as_dir=./ ;;
3021 */) ;;
3022 *) as_dir=$as_dir/ ;;
3023 esac
3024 for ac_exec_ext in '' $ac_executable_extensions; do
3025 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3026 ac_cv_prog_AWK="$ac_prog"
3027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3028 break 2
3029 fi
3030 done
3031 done
3032 IFS=$as_save_IFS
3033
3034 fi
3035 fi
3036 AWK=$ac_cv_prog_AWK
3037 if test -n "$AWK"; then
3038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3039 printf "%s\n" "$AWK" >&6; }
3040 else
3041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042 printf "%s\n" "no" >&6; }
3043 fi
3044
3045
3046 test -n "$AWK" && break
3047 done
3048
3049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3050 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3051 set x ${MAKE-make}
3052 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3053 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3054 then :
3055 printf %s "(cached) " >&6
3056 else $as_nop
3057 cat >conftest.make <<\_ACEOF
3058 SHELL = /bin/sh
3059 all:
3060 @echo '@@@%%%=$(MAKE)=@@@%%%'
3061 _ACEOF
3062 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3063 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3064 *@@@%%%=?*=@@@%%%*)
3065 eval ac_cv_prog_make_${ac_make}_set=yes;;
3066 *)
3067 eval ac_cv_prog_make_${ac_make}_set=no;;
3068 esac
3069 rm -f conftest.make
3070 fi
3071 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3073 printf "%s\n" "yes" >&6; }
3074 SET_MAKE=
3075 else
3076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077 printf "%s\n" "no" >&6; }
3078 SET_MAKE="MAKE=${MAKE-make}"
3079 fi
3080
3081 rm -rf .tst 2>/dev/null
3082 mkdir .tst 2>/dev/null
3083 if test -d .tst; then
3084 am__leading_dot=.
3085 else
3086 am__leading_dot=_
3087 fi
3088 rmdir .tst 2>/dev/null
3089
3090 # Check whether --enable-silent-rules was given.
3091 if test ${enable_silent_rules+y}
3092 then :
3093 enableval=$enable_silent_rules;
3094 fi
3095
3096 case $enable_silent_rules in # (((
3097 yes) AM_DEFAULT_VERBOSITY=0;;
3098 no) AM_DEFAULT_VERBOSITY=1;;
3099 *) AM_DEFAULT_VERBOSITY=1;;
3100 esac
3101 am_make=${MAKE-make}
3102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3103 printf %s "checking whether $am_make supports nested variables... " >&6; }
3104 if test ${am_cv_make_support_nested_variables+y}
3105 then :
3106 printf %s "(cached) " >&6
3107 else $as_nop
3108 if printf "%s\n" 'TRUE=$(BAR$(V))
3109 BAR0=false
3110 BAR1=true
3111 V=1
3112 am__doit:
3113 @$(TRUE)
3114 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3115 am_cv_make_support_nested_variables=yes
3116 else
3117 am_cv_make_support_nested_variables=no
3118 fi
3119 fi
3120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3121 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3122 if test $am_cv_make_support_nested_variables = yes; then
3123 AM_V='$(V)'
3124 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3125 else
3126 AM_V=$AM_DEFAULT_VERBOSITY
3127 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3128 fi
3129 AM_BACKSLASH='\'
3130
3131 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3132 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3133 # is not polluted with repeated "-I."
3134 am__isrc=' -I$(srcdir)'
3135 # test to see if srcdir already configured
3136 if test -f $srcdir/config.status; then
3137 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3138 fi
3139 fi
3140
3141 # test whether we have cygpath
3142 if test -z "$CYGPATH_W"; then
3143 if (cygpath --version) >/dev/null 2>/dev/null; then
3144 CYGPATH_W='cygpath -w'
3145 else
3146 CYGPATH_W=echo
3147 fi
3148 fi
3149
3150
3151 # Define the identity of the package.
3152 PACKAGE='xcb-util-renderutil'
3153 VERSION='0.3.10'
3154
3155
3156 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3157
3158
3159 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3160
3161 # Some tools Automake needs.
3162
3163 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3164
3165
3166 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3167
3168
3169 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3170
3171
3172 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3173
3174
3175 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3176
3177 # For better backward compatibility. To be removed once Automake 1.9.x
3178 # dies out for good. For more background, see:
3179 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3180 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3181 mkdir_p='$(MKDIR_P)'
3182
3183 # We need awk for the "check" target (and possibly the TAP driver). The
3184 # system "awk" is bad on some platforms.
3185 # Always define AMTAR for backward compatibility. Yes, it's still used
3186 # in the wild :-( We should find a proper way to deprecate it ...
3187 AMTAR='$${TAR-tar}'
3188
3189
3190 # We'll loop over all known methods to create a tar archive until one works.
3191 _am_tools='gnutar pax cpio none'
3192
3193 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3194
3195
3196
3197
3198
3199 # Variables for tags utilities; see am/tags.am
3200 if test -z "$CTAGS"; then
3201 CTAGS=ctags
3202 fi
3203
3204 if test -z "$ETAGS"; then
3205 ETAGS=etags
3206 fi
3207
3208 if test -z "$CSCOPE"; then
3209 CSCOPE=cscope
3210 fi
3211
3212
3213
3214 # POSIX will say in a future version that running "rm -f" with no argument
3215 # is OK; and we want to be able to make that assumption in our Makefile
3216 # recipes. So use an aggressive probe to check that the usage we want is
3217 # actually supported "in the wild" to an acceptable degree.
3218 # See automake bug#10828.
3219 # To make any issue more visible, cause the running configure to be aborted
3220 # by default if the 'rm' program in use doesn't match our expectations; the
3221 # user can still override this though.
3222 if rm -f && rm -fr && rm -rf; then : OK; else
3223 cat >&2 <<'END'
3224 Oops!
3225
3226 Your 'rm' program seems unable to run without file operands specified
3227 on the command line, even when the '-f' option is present. This is contrary
3228 to the behaviour of most rm programs out there, and not conforming with
3229 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3230
3231 Please tell [email protected] about your system, including the value
3232 of your $PATH and any error possibly output before this message. This
3233 can help us improve future automake versions.
3234
3235 END
3236 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3237 echo 'Configuration will proceed anyway, since you have set the' >&2
3238 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3239 echo >&2
3240 else
3241 cat >&2 <<'END'
3242 Aborting the configuration process, to ensure you take notice of the issue.
3243
3244 You can download and install GNU coreutils to get an 'rm' implementation
3245 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3246
3247 If you want to complete the configuration process using your problematic
3248 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3249 to "yes", and re-run configure.
3250
3251 END
3252 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3253 fi
3254 fi
3255
3256
3257 case `pwd` in
3258 *\ * | *\ *)
3259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3260 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3261 esac
3262
3263
3264
3265 macro_version='2.4.7'
3266 macro_revision='2.4.7'
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281 ltmain=$ac_aux_dir/ltmain.sh
3282
3283
3284
3285 # Make sure we can run config.sub.
3286 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3287 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3288
3289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3290 printf %s "checking build system type... " >&6; }
3291 if test ${ac_cv_build+y}
3292 then :
3293 printf %s "(cached) " >&6
3294 else $as_nop
3295 ac_build_alias=$build_alias
3296 test "x$ac_build_alias" = x &&
3297 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3298 test "x$ac_build_alias" = x &&
3299 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3300 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3301 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3302
3303 fi
3304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3305 printf "%s\n" "$ac_cv_build" >&6; }
3306 case $ac_cv_build in
3307 *-*-*) ;;
3308 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3309 esac
3310 build=$ac_cv_build
3311 ac_save_IFS=$IFS; IFS='-'
3312 set x $ac_cv_build
3313 shift
3314 build_cpu=$1
3315 build_vendor=$2
3316 shift; shift
3317 # Remember, the first character of IFS is used to create $*,
3318 # except with old shells:
3319 build_os=$*
3320 IFS=$ac_save_IFS
3321 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3322
3323
3324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3325 printf %s "checking host system type... " >&6; }
3326 if test ${ac_cv_host+y}
3327 then :
3328 printf %s "(cached) " >&6
3329 else $as_nop
3330 if test "x$host_alias" = x; then
3331 ac_cv_host=$ac_cv_build
3332 else
3333 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3334 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3335 fi
3336
3337 fi
3338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3339 printf "%s\n" "$ac_cv_host" >&6; }
3340 case $ac_cv_host in
3341 *-*-*) ;;
3342 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3343 esac
3344 host=$ac_cv_host
3345 ac_save_IFS=$IFS; IFS='-'
3346 set x $ac_cv_host
3347 shift
3348 host_cpu=$1
3349 host_vendor=$2
3350 shift; shift
3351 # Remember, the first character of IFS is used to create $*,
3352 # except with old shells:
3353 host_os=$*
3354 IFS=$ac_save_IFS
3355 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3356
3357
3358 # Backslashify metacharacters that are still active within
3359 # double-quoted strings.
3360 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3361
3362 # Same as above, but do not quote variable references.
3363 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3364
3365 # Sed substitution to delay expansion of an escaped shell variable in a
3366 # double_quote_subst'ed string.
3367 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3368
3369 # Sed substitution to delay expansion of an escaped single quote.
3370 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3371
3372 # Sed substitution to avoid accidental globbing in evaled expressions
3373 no_glob_subst='s/\*/\\\*/g'
3374
3375 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3376 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3377 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3378
3379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3380 printf %s "checking how to print strings... " >&6; }
3381 # Test print first, because it will be a builtin if present.
3382 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3383 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3384 ECHO='print -r --'
3385 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3386 ECHO='printf %s\n'
3387 else
3388 # Use this function as a fallback that always works.
3389 func_fallback_echo ()
3390 {
3391 eval 'cat <<_LTECHO_EOF
3392 $1
3393 _LTECHO_EOF'
3394 }
3395 ECHO='func_fallback_echo'
3396 fi
3397
3398 # func_echo_all arg...
3399 # Invoke $ECHO with all args, space-separated.
3400 func_echo_all ()
3401 {
3402 $ECHO ""
3403 }
3404
3405 case $ECHO in
3406 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3407 printf "%s\n" "printf" >&6; } ;;
3408 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3409 printf "%s\n" "print -r" >&6; } ;;
3410 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3411 printf "%s\n" "cat" >&6; } ;;
3412 esac
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436 DEPDIR="${am__leading_dot}deps"
3437
3438 ac_config_commands="$ac_config_commands depfiles"
3439
3440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3441 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3442 cat > confinc.mk << 'END'
3443 am__doit:
3444 @echo this is the am__doit target >confinc.out
3445 .PHONY: am__doit
3446 END
3447 am__include="#"
3448 am__quote=
3449 # BSD make does it like this.
3450 echo '.include "confinc.mk" # ignored' > confmf.BSD
3451 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3452 echo 'include confinc.mk # ignored' > confmf.GNU
3453 _am_result=no
3454 for s in GNU BSD; do
3455 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3456 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3457 ac_status=$?
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); }
3460 case $?:`cat confinc.out 2>/dev/null` in #(
3461 '0:this is the am__doit target') :
3462 case $s in #(
3463 BSD) :
3464 am__include='.include' am__quote='"' ;; #(
3465 *) :
3466 am__include='include' am__quote='' ;;
3467 esac ;; #(
3468 *) :
3469 ;;
3470 esac
3471 if test "$am__include" != "#"; then
3472 _am_result="yes ($s style)"
3473 break
3474 fi
3475 done
3476 rm -f confinc.* confmf.*
3477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3478 printf "%s\n" "${_am_result}" >&6; }
3479
3480 # Check whether --enable-dependency-tracking was given.
3481 if test ${enable_dependency_tracking+y}
3482 then :
3483 enableval=$enable_dependency_tracking;
3484 fi
3485
3486 if test "x$enable_dependency_tracking" != xno; then
3487 am_depcomp="$ac_aux_dir/depcomp"
3488 AMDEPBACKSLASH='\'
3489 am__nodep='_no'
3490 fi
3491 if test "x$enable_dependency_tracking" != xno; then
3492 AMDEP_TRUE=
3493 AMDEP_FALSE='#'
3494 else
3495 AMDEP_TRUE='#'
3496 AMDEP_FALSE=
3497 fi
3498
3499
3500 ac_ext=c
3501 ac_cpp='$CPP $CPPFLAGS'
3502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3505 if test -n "$ac_tool_prefix"; then
3506 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3507 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3509 printf %s "checking for $ac_word... " >&6; }
3510 if test ${ac_cv_prog_CC+y}
3511 then :
3512 printf %s "(cached) " >&6
3513 else $as_nop
3514 if test -n "$CC"; then
3515 ac_cv_prog_CC="$CC" # Let the user override the test.
3516 else
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518 for as_dir in $PATH
3519 do
3520 IFS=$as_save_IFS
3521 case $as_dir in #(((
3522 '') as_dir=./ ;;
3523 */) ;;
3524 *) as_dir=$as_dir/ ;;
3525 esac
3526 for ac_exec_ext in '' $ac_executable_extensions; do
3527 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3528 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3529 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3530 break 2
3531 fi
3532 done
3533 done
3534 IFS=$as_save_IFS
3535
3536 fi
3537 fi
3538 CC=$ac_cv_prog_CC
3539 if test -n "$CC"; then
3540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3541 printf "%s\n" "$CC" >&6; }
3542 else
3543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3544 printf "%s\n" "no" >&6; }
3545 fi
3546
3547
3548 fi
3549 if test -z "$ac_cv_prog_CC"; then
3550 ac_ct_CC=$CC
3551 # Extract the first word of "gcc", so it can be a program name with args.
3552 set dummy gcc; ac_word=$2
3553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554 printf %s "checking for $ac_word... " >&6; }
3555 if test ${ac_cv_prog_ac_ct_CC+y}
3556 then :
3557 printf %s "(cached) " >&6
3558 else $as_nop
3559 if test -n "$ac_ct_CC"; then
3560 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3561 else
3562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563 for as_dir in $PATH
3564 do
3565 IFS=$as_save_IFS
3566 case $as_dir in #(((
3567 '') as_dir=./ ;;
3568 */) ;;
3569 *) as_dir=$as_dir/ ;;
3570 esac
3571 for ac_exec_ext in '' $ac_executable_extensions; do
3572 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3573 ac_cv_prog_ac_ct_CC="gcc"
3574 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3575 break 2
3576 fi
3577 done
3578 done
3579 IFS=$as_save_IFS
3580
3581 fi
3582 fi
3583 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3584 if test -n "$ac_ct_CC"; then
3585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3586 printf "%s\n" "$ac_ct_CC" >&6; }
3587 else
3588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3589 printf "%s\n" "no" >&6; }
3590 fi
3591
3592 if test "x$ac_ct_CC" = x; then
3593 CC=""
3594 else
3595 case $cross_compiling:$ac_tool_warned in
3596 yes:)
3597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3598 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3599 ac_tool_warned=yes ;;
3600 esac
3601 CC=$ac_ct_CC
3602 fi
3603 else
3604 CC="$ac_cv_prog_CC"
3605 fi
3606
3607 if test -z "$CC"; then
3608 if test -n "$ac_tool_prefix"; then
3609 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3610 set dummy ${ac_tool_prefix}cc; ac_word=$2
3611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3612 printf %s "checking for $ac_word... " >&6; }
3613 if test ${ac_cv_prog_CC+y}
3614 then :
3615 printf %s "(cached) " >&6
3616 else $as_nop
3617 if test -n "$CC"; then
3618 ac_cv_prog_CC="$CC" # Let the user override the test.
3619 else
3620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3621 for as_dir in $PATH
3622 do
3623 IFS=$as_save_IFS
3624 case $as_dir in #(((
3625 '') as_dir=./ ;;
3626 */) ;;
3627 *) as_dir=$as_dir/ ;;
3628 esac
3629 for ac_exec_ext in '' $ac_executable_extensions; do
3630 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3631 ac_cv_prog_CC="${ac_tool_prefix}cc"
3632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3633 break 2
3634 fi
3635 done
3636 done
3637 IFS=$as_save_IFS
3638
3639 fi
3640 fi
3641 CC=$ac_cv_prog_CC
3642 if test -n "$CC"; then
3643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3644 printf "%s\n" "$CC" >&6; }
3645 else
3646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3647 printf "%s\n" "no" >&6; }
3648 fi
3649
3650
3651 fi
3652 fi
3653 if test -z "$CC"; then
3654 # Extract the first word of "cc", so it can be a program name with args.
3655 set dummy cc; ac_word=$2
3656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3657 printf %s "checking for $ac_word... " >&6; }
3658 if test ${ac_cv_prog_CC+y}
3659 then :
3660 printf %s "(cached) " >&6
3661 else $as_nop
3662 if test -n "$CC"; then
3663 ac_cv_prog_CC="$CC" # Let the user override the test.
3664 else
3665 ac_prog_rejected=no
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 for as_dir in $PATH
3668 do
3669 IFS=$as_save_IFS
3670 case $as_dir in #(((
3671 '') as_dir=./ ;;
3672 */) ;;
3673 *) as_dir=$as_dir/ ;;
3674 esac
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3677 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3678 ac_prog_rejected=yes
3679 continue
3680 fi
3681 ac_cv_prog_CC="cc"
3682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3683 break 2
3684 fi
3685 done
3686 done
3687 IFS=$as_save_IFS
3688
3689 if test $ac_prog_rejected = yes; then
3690 # We found a bogon in the path, so make sure we never use it.
3691 set dummy $ac_cv_prog_CC
3692 shift
3693 if test $# != 0; then
3694 # We chose a different compiler from the bogus one.
3695 # However, it has the same basename, so the bogon will be chosen
3696 # first if we set CC to just the basename; use the full file name.
3697 shift
3698 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3699 fi
3700 fi
3701 fi
3702 fi
3703 CC=$ac_cv_prog_CC
3704 if test -n "$CC"; then
3705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3706 printf "%s\n" "$CC" >&6; }
3707 else
3708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3709 printf "%s\n" "no" >&6; }
3710 fi
3711
3712
3713 fi
3714 if test -z "$CC"; then
3715 if test -n "$ac_tool_prefix"; then
3716 for ac_prog in cl.exe
3717 do
3718 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3719 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3721 printf %s "checking for $ac_word... " >&6; }
3722 if test ${ac_cv_prog_CC+y}
3723 then :
3724 printf %s "(cached) " >&6
3725 else $as_nop
3726 if test -n "$CC"; then
3727 ac_cv_prog_CC="$CC" # Let the user override the test.
3728 else
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 for as_dir in $PATH
3731 do
3732 IFS=$as_save_IFS
3733 case $as_dir in #(((
3734 '') as_dir=./ ;;
3735 */) ;;
3736 *) as_dir=$as_dir/ ;;
3737 esac
3738 for ac_exec_ext in '' $ac_executable_extensions; do
3739 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3740 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3742 break 2
3743 fi
3744 done
3745 done
3746 IFS=$as_save_IFS
3747
3748 fi
3749 fi
3750 CC=$ac_cv_prog_CC
3751 if test -n "$CC"; then
3752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3753 printf "%s\n" "$CC" >&6; }
3754 else
3755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3756 printf "%s\n" "no" >&6; }
3757 fi
3758
3759
3760 test -n "$CC" && break
3761 done
3762 fi
3763 if test -z "$CC"; then
3764 ac_ct_CC=$CC
3765 for ac_prog in cl.exe
3766 do
3767 # Extract the first word of "$ac_prog", so it can be a program name with args.
3768 set dummy $ac_prog; ac_word=$2
3769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3770 printf %s "checking for $ac_word... " >&6; }
3771 if test ${ac_cv_prog_ac_ct_CC+y}
3772 then :
3773 printf %s "(cached) " >&6
3774 else $as_nop
3775 if test -n "$ac_ct_CC"; then
3776 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3777 else
3778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779 for as_dir in $PATH
3780 do
3781 IFS=$as_save_IFS
3782 case $as_dir in #(((
3783 '') as_dir=./ ;;
3784 */) ;;
3785 *) as_dir=$as_dir/ ;;
3786 esac
3787 for ac_exec_ext in '' $ac_executable_extensions; do
3788 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3789 ac_cv_prog_ac_ct_CC="$ac_prog"
3790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3791 break 2
3792 fi
3793 done
3794 done
3795 IFS=$as_save_IFS
3796
3797 fi
3798 fi
3799 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3800 if test -n "$ac_ct_CC"; then
3801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3802 printf "%s\n" "$ac_ct_CC" >&6; }
3803 else
3804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3805 printf "%s\n" "no" >&6; }
3806 fi
3807
3808
3809 test -n "$ac_ct_CC" && break
3810 done
3811
3812 if test "x$ac_ct_CC" = x; then
3813 CC=""
3814 else
3815 case $cross_compiling:$ac_tool_warned in
3816 yes:)
3817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3818 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3819 ac_tool_warned=yes ;;
3820 esac
3821 CC=$ac_ct_CC
3822 fi
3823 fi
3824
3825 fi
3826 if test -z "$CC"; then
3827 if test -n "$ac_tool_prefix"; then
3828 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3829 set dummy ${ac_tool_prefix}clang; ac_word=$2
3830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3831 printf %s "checking for $ac_word... " >&6; }
3832 if test ${ac_cv_prog_CC+y}
3833 then :
3834 printf %s "(cached) " >&6
3835 else $as_nop
3836 if test -n "$CC"; then
3837 ac_cv_prog_CC="$CC" # Let the user override the test.
3838 else
3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840 for as_dir in $PATH
3841 do
3842 IFS=$as_save_IFS
3843 case $as_dir in #(((
3844 '') as_dir=./ ;;
3845 */) ;;
3846 *) as_dir=$as_dir/ ;;
3847 esac
3848 for ac_exec_ext in '' $ac_executable_extensions; do
3849 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3850 ac_cv_prog_CC="${ac_tool_prefix}clang"
3851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3852 break 2
3853 fi
3854 done
3855 done
3856 IFS=$as_save_IFS
3857
3858 fi
3859 fi
3860 CC=$ac_cv_prog_CC
3861 if test -n "$CC"; then
3862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3863 printf "%s\n" "$CC" >&6; }
3864 else
3865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3866 printf "%s\n" "no" >&6; }
3867 fi
3868
3869
3870 fi
3871 if test -z "$ac_cv_prog_CC"; then
3872 ac_ct_CC=$CC
3873 # Extract the first word of "clang", so it can be a program name with args.
3874 set dummy clang; ac_word=$2
3875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3876 printf %s "checking for $ac_word... " >&6; }
3877 if test ${ac_cv_prog_ac_ct_CC+y}
3878 then :
3879 printf %s "(cached) " >&6
3880 else $as_nop
3881 if test -n "$ac_ct_CC"; then
3882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3883 else
3884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 for as_dir in $PATH
3886 do
3887 IFS=$as_save_IFS
3888 case $as_dir in #(((
3889 '') as_dir=./ ;;
3890 */) ;;
3891 *) as_dir=$as_dir/ ;;
3892 esac
3893 for ac_exec_ext in '' $ac_executable_extensions; do
3894 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3895 ac_cv_prog_ac_ct_CC="clang"
3896 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3897 break 2
3898 fi
3899 done
3900 done
3901 IFS=$as_save_IFS
3902
3903 fi
3904 fi
3905 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3906 if test -n "$ac_ct_CC"; then
3907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3908 printf "%s\n" "$ac_ct_CC" >&6; }
3909 else
3910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3911 printf "%s\n" "no" >&6; }
3912 fi
3913
3914 if test "x$ac_ct_CC" = x; then
3915 CC=""
3916 else
3917 case $cross_compiling:$ac_tool_warned in
3918 yes:)
3919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3920 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3921 ac_tool_warned=yes ;;
3922 esac
3923 CC=$ac_ct_CC
3924 fi
3925 else
3926 CC="$ac_cv_prog_CC"
3927 fi
3928
3929 fi
3930
3931
3932 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3933 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3934 as_fn_error $? "no acceptable C compiler found in \$PATH
3935 See \`config.log' for more details" "$LINENO" 5; }
3936
3937 # Provide some information about the compiler.
3938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3939 set X $ac_compile
3940 ac_compiler=$2
3941 for ac_option in --version -v -V -qversion -version; do
3942 { { ac_try="$ac_compiler $ac_option >&5"
3943 case "(($ac_try" in
3944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3945 *) ac_try_echo=$ac_try;;
3946 esac
3947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3948 printf "%s\n" "$ac_try_echo"; } >&5
3949 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3950 ac_status=$?
3951 if test -s conftest.err; then
3952 sed '10a\
3953 ... rest of stderr output deleted ...
3954 10q' conftest.err >conftest.er1
3955 cat conftest.er1 >&5
3956 fi
3957 rm -f conftest.er1 conftest.err
3958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3959 test $ac_status = 0; }
3960 done
3961
3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963 /* end confdefs.h. */
3964
3965 int
3966 main (void)
3967 {
3968
3969 ;
3970 return 0;
3971 }
3972 _ACEOF
3973 ac_clean_files_save=$ac_clean_files
3974 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3975 # Try to create an executable without -o first, disregard a.out.
3976 # It will help us diagnose broken compilers, and finding out an intuition
3977 # of exeext.
3978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3979 printf %s "checking whether the C compiler works... " >&6; }
3980 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3981
3982 # The possible output files:
3983 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3984
3985 ac_rmfiles=
3986 for ac_file in $ac_files
3987 do
3988 case $ac_file in
3989 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3990 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3991 esac
3992 done
3993 rm -f $ac_rmfiles
3994
3995 if { { ac_try="$ac_link_default"
3996 case "(($ac_try" in
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
3999 esac
4000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4001 printf "%s\n" "$ac_try_echo"; } >&5
4002 (eval "$ac_link_default") 2>&5
4003 ac_status=$?
4004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4005 test $ac_status = 0; }
4006 then :
4007 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4008 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4009 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4010 # so that the user can short-circuit this test for compilers unknown to
4011 # Autoconf.
4012 for ac_file in $ac_files ''
4013 do
4014 test -f "$ac_file" || continue
4015 case $ac_file in
4016 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4017 ;;
4018 [ab].out )
4019 # We found the default executable, but exeext='' is most
4020 # certainly right.
4021 break;;
4022 *.* )
4023 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4024 then :; else
4025 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4026 fi
4027 # We set ac_cv_exeext here because the later test for it is not
4028 # safe: cross compilers may not add the suffix if given an `-o'
4029 # argument, so we may need to know it at that point already.
4030 # Even if this section looks crufty: it has the advantage of
4031 # actually working.
4032 break;;
4033 * )
4034 break;;
4035 esac
4036 done
4037 test "$ac_cv_exeext" = no && ac_cv_exeext=
4038
4039 else $as_nop
4040 ac_file=''
4041 fi
4042 if test -z "$ac_file"
4043 then :
4044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4045 printf "%s\n" "no" >&6; }
4046 printf "%s\n" "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4048
4049 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4050 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4051 as_fn_error 77 "C compiler cannot create executables
4052 See \`config.log' for more details" "$LINENO" 5; }
4053 else $as_nop
4054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4055 printf "%s\n" "yes" >&6; }
4056 fi
4057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4058 printf %s "checking for C compiler default output file name... " >&6; }
4059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4060 printf "%s\n" "$ac_file" >&6; }
4061 ac_exeext=$ac_cv_exeext
4062
4063 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4064 ac_clean_files=$ac_clean_files_save
4065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4066 printf %s "checking for suffix of executables... " >&6; }
4067 if { { ac_try="$ac_link"
4068 case "(($ac_try" in
4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4071 esac
4072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4073 printf "%s\n" "$ac_try_echo"; } >&5
4074 (eval "$ac_link") 2>&5
4075 ac_status=$?
4076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4077 test $ac_status = 0; }
4078 then :
4079 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4080 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4081 # work properly (i.e., refer to `conftest.exe'), while it won't with
4082 # `rm'.
4083 for ac_file in conftest.exe conftest conftest.*; do
4084 test -f "$ac_file" || continue
4085 case $ac_file in
4086 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4087 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4088 break;;
4089 * ) break;;
4090 esac
4091 done
4092 else $as_nop
4093 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4094 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4095 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4096 See \`config.log' for more details" "$LINENO" 5; }
4097 fi
4098 rm -f conftest conftest$ac_cv_exeext
4099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4100 printf "%s\n" "$ac_cv_exeext" >&6; }
4101
4102 rm -f conftest.$ac_ext
4103 EXEEXT=$ac_cv_exeext
4104 ac_exeext=$EXEEXT
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4107 #include <stdio.h>
4108 int
4109 main (void)
4110 {
4111 FILE *f = fopen ("conftest.out", "w");
4112 return ferror (f) || fclose (f) != 0;
4113
4114 ;
4115 return 0;
4116 }
4117 _ACEOF
4118 ac_clean_files="$ac_clean_files conftest.out"
4119 # Check that the compiler produces executables we can run. If not, either
4120 # the compiler is broken, or we cross compile.
4121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4122 printf %s "checking whether we are cross compiling... " >&6; }
4123 if test "$cross_compiling" != yes; then
4124 { { ac_try="$ac_link"
4125 case "(($ac_try" in
4126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4127 *) ac_try_echo=$ac_try;;
4128 esac
4129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4130 printf "%s\n" "$ac_try_echo"; } >&5
4131 (eval "$ac_link") 2>&5
4132 ac_status=$?
4133 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4134 test $ac_status = 0; }
4135 if { ac_try='./conftest$ac_cv_exeext'
4136 { { case "(($ac_try" in
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4139 esac
4140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4141 printf "%s\n" "$ac_try_echo"; } >&5
4142 (eval "$ac_try") 2>&5
4143 ac_status=$?
4144 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4145 test $ac_status = 0; }; }; then
4146 cross_compiling=no
4147 else
4148 if test "$cross_compiling" = maybe; then
4149 cross_compiling=yes
4150 else
4151 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4152 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4153 as_fn_error 77 "cannot run C compiled programs.
4154 If you meant to cross compile, use \`--host'.
4155 See \`config.log' for more details" "$LINENO" 5; }
4156 fi
4157 fi
4158 fi
4159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4160 printf "%s\n" "$cross_compiling" >&6; }
4161
4162 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4163 ac_clean_files=$ac_clean_files_save
4164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4165 printf %s "checking for suffix of object files... " >&6; }
4166 if test ${ac_cv_objext+y}
4167 then :
4168 printf %s "(cached) " >&6
4169 else $as_nop
4170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h. */
4172
4173 int
4174 main (void)
4175 {
4176
4177 ;
4178 return 0;
4179 }
4180 _ACEOF
4181 rm -f conftest.o conftest.obj
4182 if { { ac_try="$ac_compile"
4183 case "(($ac_try" in
4184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4185 *) ac_try_echo=$ac_try;;
4186 esac
4187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4188 printf "%s\n" "$ac_try_echo"; } >&5
4189 (eval "$ac_compile") 2>&5
4190 ac_status=$?
4191 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4192 test $ac_status = 0; }
4193 then :
4194 for ac_file in conftest.o conftest.obj conftest.*; do
4195 test -f "$ac_file" || continue;
4196 case $ac_file in
4197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4198 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4199 break;;
4200 esac
4201 done
4202 else $as_nop
4203 printf "%s\n" "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.$ac_ext >&5
4205
4206 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4207 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4208 as_fn_error $? "cannot compute suffix of object files: cannot compile
4209 See \`config.log' for more details" "$LINENO" 5; }
4210 fi
4211 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4212 fi
4213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4214 printf "%s\n" "$ac_cv_objext" >&6; }
4215 OBJEXT=$ac_cv_objext
4216 ac_objext=$OBJEXT
4217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4218 printf %s "checking whether the compiler supports GNU C... " >&6; }
4219 if test ${ac_cv_c_compiler_gnu+y}
4220 then :
4221 printf %s "(cached) " >&6
4222 else $as_nop
4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h. */
4225
4226 int
4227 main (void)
4228 {
4229 #ifndef __GNUC__
4230 choke me
4231 #endif
4232
4233 ;
4234 return 0;
4235 }
4236 _ACEOF
4237 if ac_fn_c_try_compile "$LINENO"
4238 then :
4239 ac_compiler_gnu=yes
4240 else $as_nop
4241 ac_compiler_gnu=no
4242 fi
4243 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4244 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4245
4246 fi
4247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4248 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4250
4251 if test $ac_compiler_gnu = yes; then
4252 GCC=yes
4253 else
4254 GCC=
4255 fi
4256 ac_test_CFLAGS=${CFLAGS+y}
4257 ac_save_CFLAGS=$CFLAGS
4258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4259 printf %s "checking whether $CC accepts -g... " >&6; }
4260 if test ${ac_cv_prog_cc_g+y}
4261 then :
4262 printf %s "(cached) " >&6
4263 else $as_nop
4264 ac_save_c_werror_flag=$ac_c_werror_flag
4265 ac_c_werror_flag=yes
4266 ac_cv_prog_cc_g=no
4267 CFLAGS="-g"
4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h. */
4270
4271 int
4272 main (void)
4273 {
4274
4275 ;
4276 return 0;
4277 }
4278 _ACEOF
4279 if ac_fn_c_try_compile "$LINENO"
4280 then :
4281 ac_cv_prog_cc_g=yes
4282 else $as_nop
4283 CFLAGS=""
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4286
4287 int
4288 main (void)
4289 {
4290
4291 ;
4292 return 0;
4293 }
4294 _ACEOF
4295 if ac_fn_c_try_compile "$LINENO"
4296 then :
4297
4298 else $as_nop
4299 ac_c_werror_flag=$ac_save_c_werror_flag
4300 CFLAGS="-g"
4301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4302 /* end confdefs.h. */
4303
4304 int
4305 main (void)
4306 {
4307
4308 ;
4309 return 0;
4310 }
4311 _ACEOF
4312 if ac_fn_c_try_compile "$LINENO"
4313 then :
4314 ac_cv_prog_cc_g=yes
4315 fi
4316 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4317 fi
4318 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4319 fi
4320 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4321 ac_c_werror_flag=$ac_save_c_werror_flag
4322 fi
4323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4324 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4325 if test $ac_test_CFLAGS; then
4326 CFLAGS=$ac_save_CFLAGS
4327 elif test $ac_cv_prog_cc_g = yes; then
4328 if test "$GCC" = yes; then
4329 CFLAGS="-g -O2"
4330 else
4331 CFLAGS="-g"
4332 fi
4333 else
4334 if test "$GCC" = yes; then
4335 CFLAGS="-O2"
4336 else
4337 CFLAGS=
4338 fi
4339 fi
4340 ac_prog_cc_stdc=no
4341 if test x$ac_prog_cc_stdc = xno
4342 then :
4343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4344 printf %s "checking for $CC option to enable C11 features... " >&6; }
4345 if test ${ac_cv_prog_cc_c11+y}
4346 then :
4347 printf %s "(cached) " >&6
4348 else $as_nop
4349 ac_cv_prog_cc_c11=no
4350 ac_save_CC=$CC
4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h. */
4353 $ac_c_conftest_c11_program
4354 _ACEOF
4355 for ac_arg in '' -std=gnu11
4356 do
4357 CC="$ac_save_CC $ac_arg"
4358 if ac_fn_c_try_compile "$LINENO"
4359 then :
4360 ac_cv_prog_cc_c11=$ac_arg
4361 fi
4362 rm -f core conftest.err conftest.$ac_objext conftest.beam
4363 test "x$ac_cv_prog_cc_c11" != "xno" && break
4364 done
4365 rm -f conftest.$ac_ext
4366 CC=$ac_save_CC
4367 fi
4368
4369 if test "x$ac_cv_prog_cc_c11" = xno
4370 then :
4371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4372 printf "%s\n" "unsupported" >&6; }
4373 else $as_nop
4374 if test "x$ac_cv_prog_cc_c11" = x
4375 then :
4376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4377 printf "%s\n" "none needed" >&6; }
4378 else $as_nop
4379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4380 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4381 CC="$CC $ac_cv_prog_cc_c11"
4382 fi
4383 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4384 ac_prog_cc_stdc=c11
4385 fi
4386 fi
4387 if test x$ac_prog_cc_stdc = xno
4388 then :
4389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4390 printf %s "checking for $CC option to enable C99 features... " >&6; }
4391 if test ${ac_cv_prog_cc_c99+y}
4392 then :
4393 printf %s "(cached) " >&6
4394 else $as_nop
4395 ac_cv_prog_cc_c99=no
4396 ac_save_CC=$CC
4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398 /* end confdefs.h. */
4399 $ac_c_conftest_c99_program
4400 _ACEOF
4401 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4402 do
4403 CC="$ac_save_CC $ac_arg"
4404 if ac_fn_c_try_compile "$LINENO"
4405 then :
4406 ac_cv_prog_cc_c99=$ac_arg
4407 fi
4408 rm -f core conftest.err conftest.$ac_objext conftest.beam
4409 test "x$ac_cv_prog_cc_c99" != "xno" && break
4410 done
4411 rm -f conftest.$ac_ext
4412 CC=$ac_save_CC
4413 fi
4414
4415 if test "x$ac_cv_prog_cc_c99" = xno
4416 then :
4417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4418 printf "%s\n" "unsupported" >&6; }
4419 else $as_nop
4420 if test "x$ac_cv_prog_cc_c99" = x
4421 then :
4422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4423 printf "%s\n" "none needed" >&6; }
4424 else $as_nop
4425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4426 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4427 CC="$CC $ac_cv_prog_cc_c99"
4428 fi
4429 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4430 ac_prog_cc_stdc=c99
4431 fi
4432 fi
4433 if test x$ac_prog_cc_stdc = xno
4434 then :
4435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4436 printf %s "checking for $CC option to enable C89 features... " >&6; }
4437 if test ${ac_cv_prog_cc_c89+y}
4438 then :
4439 printf %s "(cached) " >&6
4440 else $as_nop
4441 ac_cv_prog_cc_c89=no
4442 ac_save_CC=$CC
4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444 /* end confdefs.h. */
4445 $ac_c_conftest_c89_program
4446 _ACEOF
4447 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4448 do
4449 CC="$ac_save_CC $ac_arg"
4450 if ac_fn_c_try_compile "$LINENO"
4451 then :
4452 ac_cv_prog_cc_c89=$ac_arg
4453 fi
4454 rm -f core conftest.err conftest.$ac_objext conftest.beam
4455 test "x$ac_cv_prog_cc_c89" != "xno" && break
4456 done
4457 rm -f conftest.$ac_ext
4458 CC=$ac_save_CC
4459 fi
4460
4461 if test "x$ac_cv_prog_cc_c89" = xno
4462 then :
4463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4464 printf "%s\n" "unsupported" >&6; }
4465 else $as_nop
4466 if test "x$ac_cv_prog_cc_c89" = x
4467 then :
4468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4469 printf "%s\n" "none needed" >&6; }
4470 else $as_nop
4471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4472 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4473 CC="$CC $ac_cv_prog_cc_c89"
4474 fi
4475 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4476 ac_prog_cc_stdc=c89
4477 fi
4478 fi
4479
4480 ac_ext=c
4481 ac_cpp='$CPP $CPPFLAGS'
4482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4485
4486
4487 ac_ext=c
4488 ac_cpp='$CPP $CPPFLAGS'
4489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4493 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4494 if test ${am_cv_prog_cc_c_o+y}
4495 then :
4496 printf %s "(cached) " >&6
4497 else $as_nop
4498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h. */
4500
4501 int
4502 main (void)
4503 {
4504
4505 ;
4506 return 0;
4507 }
4508 _ACEOF
4509 # Make sure it works both with $CC and with simple cc.
4510 # Following AC_PROG_CC_C_O, we do the test twice because some
4511 # compilers refuse to overwrite an existing .o file with -o,
4512 # though they will create one.
4513 am_cv_prog_cc_c_o=yes
4514 for am_i in 1 2; do
4515 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4516 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4517 ac_status=$?
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); } \
4520 && test -f conftest2.$ac_objext; then
4521 : OK
4522 else
4523 am_cv_prog_cc_c_o=no
4524 break
4525 fi
4526 done
4527 rm -f core conftest*
4528 unset am_i
4529 fi
4530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4531 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4532 if test "$am_cv_prog_cc_c_o" != yes; then
4533 # Losing compiler, so override with the script.
4534 # FIXME: It is wrong to rewrite CC.
4535 # But if we don't then we get into trouble of one sort or another.
4536 # A longer-term fix would be to have automake use am__CC in this case,
4537 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4538 CC="$am_aux_dir/compile $CC"
4539 fi
4540 ac_ext=c
4541 ac_cpp='$CPP $CPPFLAGS'
4542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4545
4546
4547 depcc="$CC" am_compiler_list=
4548
4549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4550 printf %s "checking dependency style of $depcc... " >&6; }
4551 if test ${am_cv_CC_dependencies_compiler_type+y}
4552 then :
4553 printf %s "(cached) " >&6
4554 else $as_nop
4555 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4556 # We make a subdir and do the tests there. Otherwise we can end up
4557 # making bogus files that we don't know about and never remove. For
4558 # instance it was reported that on HP-UX the gcc test will end up
4559 # making a dummy file named 'D' -- because '-MD' means "put the output
4560 # in D".
4561 rm -rf conftest.dir
4562 mkdir conftest.dir
4563 # Copy depcomp to subdir because otherwise we won't find it if we're
4564 # using a relative directory.
4565 cp "$am_depcomp" conftest.dir
4566 cd conftest.dir
4567 # We will build objects and dependencies in a subdirectory because
4568 # it helps to detect inapplicable dependency modes. For instance
4569 # both Tru64's cc and ICC support -MD to output dependencies as a
4570 # side effect of compilation, but ICC will put the dependencies in
4571 # the current directory while Tru64 will put them in the object
4572 # directory.
4573 mkdir sub
4574
4575 am_cv_CC_dependencies_compiler_type=none
4576 if test "$am_compiler_list" = ""; then
4577 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4578 fi
4579 am__universal=false
4580 case " $depcc " in #(
4581 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4582 esac
4583
4584 for depmode in $am_compiler_list; do
4585 # Setup a source with many dependencies, because some compilers
4586 # like to wrap large dependency lists on column 80 (with \), and
4587 # we should not choose a depcomp mode which is confused by this.
4588 #
4589 # We need to recreate these files for each test, as the compiler may
4590 # overwrite some of them when testing with obscure command lines.
4591 # This happens at least with the AIX C compiler.
4592 : > sub/conftest.c
4593 for i in 1 2 3 4 5 6; do
4594 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4595 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4596 # Solaris 10 /bin/sh.
4597 echo '/* dummy */' > sub/conftst$i.h
4598 done
4599 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4600
4601 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4602 # mode. It turns out that the SunPro C++ compiler does not properly
4603 # handle '-M -o', and we need to detect this. Also, some Intel
4604 # versions had trouble with output in subdirs.
4605 am__obj=sub/conftest.${OBJEXT-o}
4606 am__minus_obj="-o $am__obj"
4607 case $depmode in
4608 gcc)
4609 # This depmode causes a compiler race in universal mode.
4610 test "$am__universal" = false || continue
4611 ;;
4612 nosideeffect)
4613 # After this tag, mechanisms are not by side-effect, so they'll
4614 # only be used when explicitly requested.
4615 if test "x$enable_dependency_tracking" = xyes; then
4616 continue
4617 else
4618 break
4619 fi
4620 ;;
4621 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4622 # This compiler won't grok '-c -o', but also, the minuso test has
4623 # not run yet. These depmodes are late enough in the game, and
4624 # so weak that their functioning should not be impacted.
4625 am__obj=conftest.${OBJEXT-o}
4626 am__minus_obj=
4627 ;;
4628 none) break ;;
4629 esac
4630 if depmode=$depmode \
4631 source=sub/conftest.c object=$am__obj \
4632 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4633 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4634 >/dev/null 2>conftest.err &&
4635 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4636 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4637 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4638 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4639 # icc doesn't choke on unknown options, it will just issue warnings
4640 # or remarks (even with -Werror). So we grep stderr for any message
4641 # that says an option was ignored or not supported.
4642 # When given -MP, icc 7.0 and 7.1 complain thusly:
4643 # icc: Command line warning: ignoring option '-M'; no argument required
4644 # The diagnosis changed in icc 8.0:
4645 # icc: Command line remark: option '-MP' not supported
4646 if (grep 'ignoring option' conftest.err ||
4647 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4648 am_cv_CC_dependencies_compiler_type=$depmode
4649 break
4650 fi
4651 fi
4652 done
4653
4654 cd ..
4655 rm -rf conftest.dir
4656 else
4657 am_cv_CC_dependencies_compiler_type=none
4658 fi
4659
4660 fi
4661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4662 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4663 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4664
4665 if
4666 test "x$enable_dependency_tracking" != xno \
4667 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4668 am__fastdepCC_TRUE=
4669 am__fastdepCC_FALSE='#'
4670 else
4671 am__fastdepCC_TRUE='#'
4672 am__fastdepCC_FALSE=
4673 fi
4674
4675
4676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4677 printf %s "checking for a sed that does not truncate output... " >&6; }
4678 if test ${ac_cv_path_SED+y}
4679 then :
4680 printf %s "(cached) " >&6
4681 else $as_nop
4682 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4683 for ac_i in 1 2 3 4 5 6 7; do
4684 ac_script="$ac_script$as_nl$ac_script"
4685 done
4686 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4687 { ac_script=; unset ac_script;}
4688 if test -z "$SED"; then
4689 ac_path_SED_found=false
4690 # Loop through the user's path and test for each of PROGNAME-LIST
4691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 for as_dir in $PATH
4693 do
4694 IFS=$as_save_IFS
4695 case $as_dir in #(((
4696 '') as_dir=./ ;;
4697 */) ;;
4698 *) as_dir=$as_dir/ ;;
4699 esac
4700 for ac_prog in sed gsed
4701 do
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4704 as_fn_executable_p "$ac_path_SED" || continue
4705 # Check for GNU ac_path_SED and select it if it is found.
4706 # Check for GNU $ac_path_SED
4707 case `"$ac_path_SED" --version 2>&1` in
4708 *GNU*)
4709 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4710 *)
4711 ac_count=0
4712 printf %s 0123456789 >"conftest.in"
4713 while :
4714 do
4715 cat "conftest.in" "conftest.in" >"conftest.tmp"
4716 mv "conftest.tmp" "conftest.in"
4717 cp "conftest.in" "conftest.nl"
4718 printf "%s\n" '' >> "conftest.nl"
4719 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4720 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4721 as_fn_arith $ac_count + 1 && ac_count=$as_val
4722 if test $ac_count -gt ${ac_path_SED_max-0}; then
4723 # Best one so far, save it but keep looking for a better one
4724 ac_cv_path_SED="$ac_path_SED"
4725 ac_path_SED_max=$ac_count
4726 fi
4727 # 10*(2^10) chars as input seems more than enough
4728 test $ac_count -gt 10 && break
4729 done
4730 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4731 esac
4732
4733 $ac_path_SED_found && break 3
4734 done
4735 done
4736 done
4737 IFS=$as_save_IFS
4738 if test -z "$ac_cv_path_SED"; then
4739 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4740 fi
4741 else
4742 ac_cv_path_SED=$SED
4743 fi
4744
4745 fi
4746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4747 printf "%s\n" "$ac_cv_path_SED" >&6; }
4748 SED="$ac_cv_path_SED"
4749 rm -f conftest.sed
4750
4751 test -z "$SED" && SED=sed
4752 Xsed="$SED -e 1s/^X//"
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4765 printf %s "checking for grep that handles long lines and -e... " >&6; }
4766 if test ${ac_cv_path_GREP+y}
4767 then :
4768 printf %s "(cached) " >&6
4769 else $as_nop
4770 if test -z "$GREP"; then
4771 ac_path_GREP_found=false
4772 # Loop through the user's path and test for each of PROGNAME-LIST
4773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4775 do
4776 IFS=$as_save_IFS
4777 case $as_dir in #(((
4778 '') as_dir=./ ;;
4779 */) ;;
4780 *) as_dir=$as_dir/ ;;
4781 esac
4782 for ac_prog in grep ggrep
4783 do
4784 for ac_exec_ext in '' $ac_executable_extensions; do
4785 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4786 as_fn_executable_p "$ac_path_GREP" || continue
4787 # Check for GNU ac_path_GREP and select it if it is found.
4788 # Check for GNU $ac_path_GREP
4789 case `"$ac_path_GREP" --version 2>&1` in
4790 *GNU*)
4791 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4792 *)
4793 ac_count=0
4794 printf %s 0123456789 >"conftest.in"
4795 while :
4796 do
4797 cat "conftest.in" "conftest.in" >"conftest.tmp"
4798 mv "conftest.tmp" "conftest.in"
4799 cp "conftest.in" "conftest.nl"
4800 printf "%s\n" 'GREP' >> "conftest.nl"
4801 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4802 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4803 as_fn_arith $ac_count + 1 && ac_count=$as_val
4804 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4805 # Best one so far, save it but keep looking for a better one
4806 ac_cv_path_GREP="$ac_path_GREP"
4807 ac_path_GREP_max=$ac_count
4808 fi
4809 # 10*(2^10) chars as input seems more than enough
4810 test $ac_count -gt 10 && break
4811 done
4812 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4813 esac
4814
4815 $ac_path_GREP_found && break 3
4816 done
4817 done
4818 done
4819 IFS=$as_save_IFS
4820 if test -z "$ac_cv_path_GREP"; then
4821 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4822 fi
4823 else
4824 ac_cv_path_GREP=$GREP
4825 fi
4826
4827 fi
4828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4829 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4830 GREP="$ac_cv_path_GREP"
4831
4832
4833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4834 printf %s "checking for egrep... " >&6; }
4835 if test ${ac_cv_path_EGREP+y}
4836 then :
4837 printf %s "(cached) " >&6
4838 else $as_nop
4839 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4840 then ac_cv_path_EGREP="$GREP -E"
4841 else
4842 if test -z "$EGREP"; then
4843 ac_path_EGREP_found=false
4844 # Loop through the user's path and test for each of PROGNAME-LIST
4845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4847 do
4848 IFS=$as_save_IFS
4849 case $as_dir in #(((
4850 '') as_dir=./ ;;
4851 */) ;;
4852 *) as_dir=$as_dir/ ;;
4853 esac
4854 for ac_prog in egrep
4855 do
4856 for ac_exec_ext in '' $ac_executable_extensions; do
4857 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4858 as_fn_executable_p "$ac_path_EGREP" || continue
4859 # Check for GNU ac_path_EGREP and select it if it is found.
4860 # Check for GNU $ac_path_EGREP
4861 case `"$ac_path_EGREP" --version 2>&1` in
4862 *GNU*)
4863 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4864 *)
4865 ac_count=0
4866 printf %s 0123456789 >"conftest.in"
4867 while :
4868 do
4869 cat "conftest.in" "conftest.in" >"conftest.tmp"
4870 mv "conftest.tmp" "conftest.in"
4871 cp "conftest.in" "conftest.nl"
4872 printf "%s\n" 'EGREP' >> "conftest.nl"
4873 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4874 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4875 as_fn_arith $ac_count + 1 && ac_count=$as_val
4876 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4877 # Best one so far, save it but keep looking for a better one
4878 ac_cv_path_EGREP="$ac_path_EGREP"
4879 ac_path_EGREP_max=$ac_count
4880 fi
4881 # 10*(2^10) chars as input seems more than enough
4882 test $ac_count -gt 10 && break
4883 done
4884 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4885 esac
4886
4887 $ac_path_EGREP_found && break 3
4888 done
4889 done
4890 done
4891 IFS=$as_save_IFS
4892 if test -z "$ac_cv_path_EGREP"; then
4893 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4894 fi
4895 else
4896 ac_cv_path_EGREP=$EGREP
4897 fi
4898
4899 fi
4900 fi
4901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4902 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4903 EGREP="$ac_cv_path_EGREP"
4904
4905
4906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4907 printf %s "checking for fgrep... " >&6; }
4908 if test ${ac_cv_path_FGREP+y}
4909 then :
4910 printf %s "(cached) " >&6
4911 else $as_nop
4912 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4913 then ac_cv_path_FGREP="$GREP -F"
4914 else
4915 if test -z "$FGREP"; then
4916 ac_path_FGREP_found=false
4917 # Loop through the user's path and test for each of PROGNAME-LIST
4918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4920 do
4921 IFS=$as_save_IFS
4922 case $as_dir in #(((
4923 '') as_dir=./ ;;
4924 */) ;;
4925 *) as_dir=$as_dir/ ;;
4926 esac
4927 for ac_prog in fgrep
4928 do
4929 for ac_exec_ext in '' $ac_executable_extensions; do
4930 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4931 as_fn_executable_p "$ac_path_FGREP" || continue
4932 # Check for GNU ac_path_FGREP and select it if it is found.
4933 # Check for GNU $ac_path_FGREP
4934 case `"$ac_path_FGREP" --version 2>&1` in
4935 *GNU*)
4936 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4937 *)
4938 ac_count=0
4939 printf %s 0123456789 >"conftest.in"
4940 while :
4941 do
4942 cat "conftest.in" "conftest.in" >"conftest.tmp"
4943 mv "conftest.tmp" "conftest.in"
4944 cp "conftest.in" "conftest.nl"
4945 printf "%s\n" 'FGREP' >> "conftest.nl"
4946 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4947 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4948 as_fn_arith $ac_count + 1 && ac_count=$as_val
4949 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4950 # Best one so far, save it but keep looking for a better one
4951 ac_cv_path_FGREP="$ac_path_FGREP"
4952 ac_path_FGREP_max=$ac_count
4953 fi
4954 # 10*(2^10) chars as input seems more than enough
4955 test $ac_count -gt 10 && break
4956 done
4957 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4958 esac
4959
4960 $ac_path_FGREP_found && break 3
4961 done
4962 done
4963 done
4964 IFS=$as_save_IFS
4965 if test -z "$ac_cv_path_FGREP"; then
4966 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4967 fi
4968 else
4969 ac_cv_path_FGREP=$FGREP
4970 fi
4971
4972 fi
4973 fi
4974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4975 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4976 FGREP="$ac_cv_path_FGREP"
4977
4978
4979 test -z "$GREP" && GREP=grep
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999 # Check whether --with-gnu-ld was given.
5000 if test ${with_gnu_ld+y}
5001 then :
5002 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5003 else $as_nop
5004 with_gnu_ld=no
5005 fi
5006
5007 ac_prog=ld
5008 if test yes = "$GCC"; then
5009 # Check if gcc -print-prog-name=ld gives a path.
5010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5011 printf %s "checking for ld used by $CC... " >&6; }
5012 case $host in
5013 *-*-mingw*)
5014 # gcc leaves a trailing carriage return, which upsets mingw
5015 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5016 *)
5017 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5018 esac
5019 case $ac_prog in
5020 # Accept absolute paths.
5021 [\\/]* | ?:[\\/]*)
5022 re_direlt='/[^/][^/]*/\.\./'
5023 # Canonicalize the pathname of ld
5024 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5025 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5026 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5027 done
5028 test -z "$LD" && LD=$ac_prog
5029 ;;
5030 "")
5031 # If it fails, then pretend we aren't using GCC.
5032 ac_prog=ld
5033 ;;
5034 *)
5035 # If it is relative, then search for the first ld in PATH.
5036 with_gnu_ld=unknown
5037 ;;
5038 esac
5039 elif test yes = "$with_gnu_ld"; then
5040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5041 printf %s "checking for GNU ld... " >&6; }
5042 else
5043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5044 printf %s "checking for non-GNU ld... " >&6; }
5045 fi
5046 if test ${lt_cv_path_LD+y}
5047 then :
5048 printf %s "(cached) " >&6
5049 else $as_nop
5050 if test -z "$LD"; then
5051 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5052 for ac_dir in $PATH; do
5053 IFS=$lt_save_ifs
5054 test -z "$ac_dir" && ac_dir=.
5055 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5056 lt_cv_path_LD=$ac_dir/$ac_prog
5057 # Check to see if the program is GNU ld. I'd rather use --version,
5058 # but apparently some variants of GNU ld only accept -v.
5059 # Break only if it was the GNU/non-GNU ld that we prefer.
5060 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5061 *GNU* | *'with BFD'*)
5062 test no != "$with_gnu_ld" && break
5063 ;;
5064 *)
5065 test yes != "$with_gnu_ld" && break
5066 ;;
5067 esac
5068 fi
5069 done
5070 IFS=$lt_save_ifs
5071 else
5072 lt_cv_path_LD=$LD # Let the user override the test with a path.
5073 fi
5074 fi
5075
5076 LD=$lt_cv_path_LD
5077 if test -n "$LD"; then
5078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5079 printf "%s\n" "$LD" >&6; }
5080 else
5081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5082 printf "%s\n" "no" >&6; }
5083 fi
5084 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5086 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5087 if test ${lt_cv_prog_gnu_ld+y}
5088 then :
5089 printf %s "(cached) " >&6
5090 else $as_nop
5091 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5092 case `$LD -v 2>&1 </dev/null` in
5093 *GNU* | *'with BFD'*)
5094 lt_cv_prog_gnu_ld=yes
5095 ;;
5096 *)
5097 lt_cv_prog_gnu_ld=no
5098 ;;
5099 esac
5100 fi
5101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5102 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5103 with_gnu_ld=$lt_cv_prog_gnu_ld
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5114 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5115 if test ${lt_cv_path_NM+y}
5116 then :
5117 printf %s "(cached) " >&6
5118 else $as_nop
5119 if test -n "$NM"; then
5120 # Let the user override the test.
5121 lt_cv_path_NM=$NM
5122 else
5123 lt_nm_to_check=${ac_tool_prefix}nm
5124 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5125 lt_nm_to_check="$lt_nm_to_check nm"
5126 fi
5127 for lt_tmp_nm in $lt_nm_to_check; do
5128 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5129 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5130 IFS=$lt_save_ifs
5131 test -z "$ac_dir" && ac_dir=.
5132 tmp_nm=$ac_dir/$lt_tmp_nm
5133 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5134 # Check to see if the nm accepts a BSD-compat flag.
5135 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5136 # nm: unknown option "B" ignored
5137 # Tru64's nm complains that /dev/null is an invalid object file
5138 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5139 case $build_os in
5140 mingw*) lt_bad_file=conftest.nm/nofile ;;
5141 *) lt_bad_file=/dev/null ;;
5142 esac
5143 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5144 *$lt_bad_file* | *'Invalid file or object type'*)
5145 lt_cv_path_NM="$tmp_nm -B"
5146 break 2
5147 ;;
5148 *)
5149 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5150 */dev/null*)
5151 lt_cv_path_NM="$tmp_nm -p"
5152 break 2
5153 ;;
5154 *)
5155 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5156 continue # so that we can try to find one that supports BSD flags
5157 ;;
5158 esac
5159 ;;
5160 esac
5161 fi
5162 done
5163 IFS=$lt_save_ifs
5164 done
5165 : ${lt_cv_path_NM=no}
5166 fi
5167 fi
5168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5169 printf "%s\n" "$lt_cv_path_NM" >&6; }
5170 if test no != "$lt_cv_path_NM"; then
5171 NM=$lt_cv_path_NM
5172 else
5173 # Didn't find any BSD compatible name lister, look for dumpbin.
5174 if test -n "$DUMPBIN"; then :
5175 # Let the user override the test.
5176 else
5177 if test -n "$ac_tool_prefix"; then
5178 for ac_prog in dumpbin "link -dump"
5179 do
5180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5181 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5183 printf %s "checking for $ac_word... " >&6; }
5184 if test ${ac_cv_prog_DUMPBIN+y}
5185 then :
5186 printf %s "(cached) " >&6
5187 else $as_nop
5188 if test -n "$DUMPBIN"; then
5189 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5190 else
5191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192 for as_dir in $PATH
5193 do
5194 IFS=$as_save_IFS
5195 case $as_dir in #(((
5196 '') as_dir=./ ;;
5197 */) ;;
5198 *) as_dir=$as_dir/ ;;
5199 esac
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5202 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5203 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5204 break 2
5205 fi
5206 done
5207 done
5208 IFS=$as_save_IFS
5209
5210 fi
5211 fi
5212 DUMPBIN=$ac_cv_prog_DUMPBIN
5213 if test -n "$DUMPBIN"; then
5214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5215 printf "%s\n" "$DUMPBIN" >&6; }
5216 else
5217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218 printf "%s\n" "no" >&6; }
5219 fi
5220
5221
5222 test -n "$DUMPBIN" && break
5223 done
5224 fi
5225 if test -z "$DUMPBIN"; then
5226 ac_ct_DUMPBIN=$DUMPBIN
5227 for ac_prog in dumpbin "link -dump"
5228 do
5229 # Extract the first word of "$ac_prog", so it can be a program name with args.
5230 set dummy $ac_prog; ac_word=$2
5231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5232 printf %s "checking for $ac_word... " >&6; }
5233 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5234 then :
5235 printf %s "(cached) " >&6
5236 else $as_nop
5237 if test -n "$ac_ct_DUMPBIN"; then
5238 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5239 else
5240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 for as_dir in $PATH
5242 do
5243 IFS=$as_save_IFS
5244 case $as_dir in #(((
5245 '') as_dir=./ ;;
5246 */) ;;
5247 *) as_dir=$as_dir/ ;;
5248 esac
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5251 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5252 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5253 break 2
5254 fi
5255 done
5256 done
5257 IFS=$as_save_IFS
5258
5259 fi
5260 fi
5261 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5262 if test -n "$ac_ct_DUMPBIN"; then
5263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5264 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5265 else
5266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267 printf "%s\n" "no" >&6; }
5268 fi
5269
5270
5271 test -n "$ac_ct_DUMPBIN" && break
5272 done
5273
5274 if test "x$ac_ct_DUMPBIN" = x; then
5275 DUMPBIN=":"
5276 else
5277 case $cross_compiling:$ac_tool_warned in
5278 yes:)
5279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5280 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5281 ac_tool_warned=yes ;;
5282 esac
5283 DUMPBIN=$ac_ct_DUMPBIN
5284 fi
5285 fi
5286
5287 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5288 *COFF*)
5289 DUMPBIN="$DUMPBIN -symbols -headers"
5290 ;;
5291 *)
5292 DUMPBIN=:
5293 ;;
5294 esac
5295 fi
5296
5297 if test : != "$DUMPBIN"; then
5298 NM=$DUMPBIN
5299 fi
5300 fi
5301 test -z "$NM" && NM=nm
5302
5303
5304
5305
5306
5307
5308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5309 printf %s "checking the name lister ($NM) interface... " >&6; }
5310 if test ${lt_cv_nm_interface+y}
5311 then :
5312 printf %s "(cached) " >&6
5313 else $as_nop
5314 lt_cv_nm_interface="BSD nm"
5315 echo "int some_variable = 0;" > conftest.$ac_ext
5316 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5317 (eval "$ac_compile" 2>conftest.err)
5318 cat conftest.err >&5
5319 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5320 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5321 cat conftest.err >&5
5322 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5323 cat conftest.out >&5
5324 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5325 lt_cv_nm_interface="MS dumpbin"
5326 fi
5327 rm -f conftest*
5328 fi
5329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5330 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5331
5332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5333 printf %s "checking whether ln -s works... " >&6; }
5334 LN_S=$as_ln_s
5335 if test "$LN_S" = "ln -s"; then
5336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5337 printf "%s\n" "yes" >&6; }
5338 else
5339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5340 printf "%s\n" "no, using $LN_S" >&6; }
5341 fi
5342
5343 # find the maximum length of command line arguments
5344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5345 printf %s "checking the maximum length of command line arguments... " >&6; }
5346 if test ${lt_cv_sys_max_cmd_len+y}
5347 then :
5348 printf %s "(cached) " >&6
5349 else $as_nop
5350 i=0
5351 teststring=ABCD
5352
5353 case $build_os in
5354 msdosdjgpp*)
5355 # On DJGPP, this test can blow up pretty badly due to problems in libc
5356 # (any single argument exceeding 2000 bytes causes a buffer overrun
5357 # during glob expansion). Even if it were fixed, the result of this
5358 # check would be larger than it should be.
5359 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5360 ;;
5361
5362 gnu*)
5363 # Under GNU Hurd, this test is not required because there is
5364 # no limit to the length of command line arguments.
5365 # Libtool will interpret -1 as no limit whatsoever
5366 lt_cv_sys_max_cmd_len=-1;
5367 ;;
5368
5369 cygwin* | mingw* | cegcc*)
5370 # On Win9x/ME, this test blows up -- it succeeds, but takes
5371 # about 5 minutes as the teststring grows exponentially.
5372 # Worse, since 9x/ME are not pre-emptively multitasking,
5373 # you end up with a "frozen" computer, even though with patience
5374 # the test eventually succeeds (with a max line length of 256k).
5375 # Instead, let's just punt: use the minimum linelength reported by
5376 # all of the supported platforms: 8192 (on NT/2K/XP).
5377 lt_cv_sys_max_cmd_len=8192;
5378 ;;
5379
5380 mint*)
5381 # On MiNT this can take a long time and run out of memory.
5382 lt_cv_sys_max_cmd_len=8192;
5383 ;;
5384
5385 amigaos*)
5386 # On AmigaOS with pdksh, this test takes hours, literally.
5387 # So we just punt and use a minimum line length of 8192.
5388 lt_cv_sys_max_cmd_len=8192;
5389 ;;
5390
5391 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5392 # This has been around since 386BSD, at least. Likely further.
5393 if test -x /sbin/sysctl; then
5394 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5395 elif test -x /usr/sbin/sysctl; then
5396 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5397 else
5398 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5399 fi
5400 # And add a safety zone
5401 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5402 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5403 ;;
5404
5405 interix*)
5406 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5407 lt_cv_sys_max_cmd_len=196608
5408 ;;
5409
5410 os2*)
5411 # The test takes a long time on OS/2.
5412 lt_cv_sys_max_cmd_len=8192
5413 ;;
5414
5415 osf*)
5416 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5417 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5418 # nice to cause kernel panics so lets avoid the loop below.
5419 # First set a reasonable default.
5420 lt_cv_sys_max_cmd_len=16384
5421 #
5422 if test -x /sbin/sysconfig; then
5423 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5424 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5425 esac
5426 fi
5427 ;;
5428 sco3.2v5*)
5429 lt_cv_sys_max_cmd_len=102400
5430 ;;
5431 sysv5* | sco5v6* | sysv4.2uw2*)
5432 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5433 if test -n "$kargmax"; then
5434 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5435 else
5436 lt_cv_sys_max_cmd_len=32768
5437 fi
5438 ;;
5439 *)
5440 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5441 if test -n "$lt_cv_sys_max_cmd_len" && \
5442 test undefined != "$lt_cv_sys_max_cmd_len"; then
5443 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5444 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5445 else
5446 # Make teststring a little bigger before we do anything with it.
5447 # a 1K string should be a reasonable start.
5448 for i in 1 2 3 4 5 6 7 8; do
5449 teststring=$teststring$teststring
5450 done
5451 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5452 # If test is not a shell built-in, we'll probably end up computing a
5453 # maximum length that is only half of the actual maximum length, but
5454 # we can't tell.
5455 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5456 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5457 test 17 != "$i" # 1/2 MB should be enough
5458 do
5459 i=`expr $i + 1`
5460 teststring=$teststring$teststring
5461 done
5462 # Only check the string length outside the loop.
5463 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5464 teststring=
5465 # Add a significant safety factor because C++ compilers can tack on
5466 # massive amounts of additional arguments before passing them to the
5467 # linker. It appears as though 1/2 is a usable value.
5468 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5469 fi
5470 ;;
5471 esac
5472
5473 fi
5474
5475 if test -n "$lt_cv_sys_max_cmd_len"; then
5476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5477 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5478 else
5479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5480 printf "%s\n" "none" >&6; }
5481 fi
5482 max_cmd_len=$lt_cv_sys_max_cmd_len
5483
5484
5485
5486
5487
5488
5489 : ${CP="cp -f"}
5490 : ${MV="mv -f"}
5491 : ${RM="rm -f"}
5492
5493 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5494 lt_unset=unset
5495 else
5496 lt_unset=false
5497 fi
5498
5499
5500
5501
5502
5503 # test EBCDIC or ASCII
5504 case `echo X|tr X '\101'` in
5505 A) # ASCII based system
5506 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5507 lt_SP2NL='tr \040 \012'
5508 lt_NL2SP='tr \015\012 \040\040'
5509 ;;
5510 *) # EBCDIC based system
5511 lt_SP2NL='tr \100 \n'
5512 lt_NL2SP='tr \r\n \100\100'
5513 ;;
5514 esac
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5525 printf %s "checking how to convert $build file names to $host format... " >&6; }
5526 if test ${lt_cv_to_host_file_cmd+y}
5527 then :
5528 printf %s "(cached) " >&6
5529 else $as_nop
5530 case $host in
5531 *-*-mingw* )
5532 case $build in
5533 *-*-mingw* ) # actually msys
5534 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5535 ;;
5536 *-*-cygwin* )
5537 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5538 ;;
5539 * ) # otherwise, assume *nix
5540 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5541 ;;
5542 esac
5543 ;;
5544 *-*-cygwin* )
5545 case $build in
5546 *-*-mingw* ) # actually msys
5547 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5548 ;;
5549 *-*-cygwin* )
5550 lt_cv_to_host_file_cmd=func_convert_file_noop
5551 ;;
5552 * ) # otherwise, assume *nix
5553 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5554 ;;
5555 esac
5556 ;;
5557 * ) # unhandled hosts (and "normal" native builds)
5558 lt_cv_to_host_file_cmd=func_convert_file_noop
5559 ;;
5560 esac
5561
5562 fi
5563
5564 to_host_file_cmd=$lt_cv_to_host_file_cmd
5565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5566 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5567
5568
5569
5570
5571
5572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5573 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5574 if test ${lt_cv_to_tool_file_cmd+y}
5575 then :
5576 printf %s "(cached) " >&6
5577 else $as_nop
5578 #assume ordinary cross tools, or native build.
5579 lt_cv_to_tool_file_cmd=func_convert_file_noop
5580 case $host in
5581 *-*-mingw* )
5582 case $build in
5583 *-*-mingw* ) # actually msys
5584 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5585 ;;
5586 esac
5587 ;;
5588 esac
5589
5590 fi
5591
5592 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5594 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5595
5596
5597
5598
5599
5600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5601 printf %s "checking for $LD option to reload object files... " >&6; }
5602 if test ${lt_cv_ld_reload_flag+y}
5603 then :
5604 printf %s "(cached) " >&6
5605 else $as_nop
5606 lt_cv_ld_reload_flag='-r'
5607 fi
5608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5609 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5610 reload_flag=$lt_cv_ld_reload_flag
5611 case $reload_flag in
5612 "" | " "*) ;;
5613 *) reload_flag=" $reload_flag" ;;
5614 esac
5615 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5616 case $host_os in
5617 cygwin* | mingw* | pw32* | cegcc*)
5618 if test yes != "$GCC"; then
5619 reload_cmds=false
5620 fi
5621 ;;
5622 darwin*)
5623 if test yes = "$GCC"; then
5624 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5625 else
5626 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5627 fi
5628 ;;
5629 esac
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639 if test -n "$ac_tool_prefix"; then
5640 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5641 set dummy ${ac_tool_prefix}file; ac_word=$2
5642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5643 printf %s "checking for $ac_word... " >&6; }
5644 if test ${ac_cv_prog_FILECMD+y}
5645 then :
5646 printf %s "(cached) " >&6
5647 else $as_nop
5648 if test -n "$FILECMD"; then
5649 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5650 else
5651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652 for as_dir in $PATH
5653 do
5654 IFS=$as_save_IFS
5655 case $as_dir in #(((
5656 '') as_dir=./ ;;
5657 */) ;;
5658 *) as_dir=$as_dir/ ;;
5659 esac
5660 for ac_exec_ext in '' $ac_executable_extensions; do
5661 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5662 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5663 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5664 break 2
5665 fi
5666 done
5667 done
5668 IFS=$as_save_IFS
5669
5670 fi
5671 fi
5672 FILECMD=$ac_cv_prog_FILECMD
5673 if test -n "$FILECMD"; then
5674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5675 printf "%s\n" "$FILECMD" >&6; }
5676 else
5677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678 printf "%s\n" "no" >&6; }
5679 fi
5680
5681
5682 fi
5683 if test -z "$ac_cv_prog_FILECMD"; then
5684 ac_ct_FILECMD=$FILECMD
5685 # Extract the first word of "file", so it can be a program name with args.
5686 set dummy file; ac_word=$2
5687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688 printf %s "checking for $ac_word... " >&6; }
5689 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5690 then :
5691 printf %s "(cached) " >&6
5692 else $as_nop
5693 if test -n "$ac_ct_FILECMD"; then
5694 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5695 else
5696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697 for as_dir in $PATH
5698 do
5699 IFS=$as_save_IFS
5700 case $as_dir in #(((
5701 '') as_dir=./ ;;
5702 */) ;;
5703 *) as_dir=$as_dir/ ;;
5704 esac
5705 for ac_exec_ext in '' $ac_executable_extensions; do
5706 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5707 ac_cv_prog_ac_ct_FILECMD="file"
5708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5709 break 2
5710 fi
5711 done
5712 done
5713 IFS=$as_save_IFS
5714
5715 fi
5716 fi
5717 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5718 if test -n "$ac_ct_FILECMD"; then
5719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5720 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5721 else
5722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5723 printf "%s\n" "no" >&6; }
5724 fi
5725
5726 if test "x$ac_ct_FILECMD" = x; then
5727 FILECMD=":"
5728 else
5729 case $cross_compiling:$ac_tool_warned in
5730 yes:)
5731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5732 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5733 ac_tool_warned=yes ;;
5734 esac
5735 FILECMD=$ac_ct_FILECMD
5736 fi
5737 else
5738 FILECMD="$ac_cv_prog_FILECMD"
5739 fi
5740
5741
5742
5743
5744
5745
5746
5747 if test -n "$ac_tool_prefix"; then
5748 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5749 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5751 printf %s "checking for $ac_word... " >&6; }
5752 if test ${ac_cv_prog_OBJDUMP+y}
5753 then :
5754 printf %s "(cached) " >&6
5755 else $as_nop
5756 if test -n "$OBJDUMP"; then
5757 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5758 else
5759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5760 for as_dir in $PATH
5761 do
5762 IFS=$as_save_IFS
5763 case $as_dir in #(((
5764 '') as_dir=./ ;;
5765 */) ;;
5766 *) as_dir=$as_dir/ ;;
5767 esac
5768 for ac_exec_ext in '' $ac_executable_extensions; do
5769 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5770 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5772 break 2
5773 fi
5774 done
5775 done
5776 IFS=$as_save_IFS
5777
5778 fi
5779 fi
5780 OBJDUMP=$ac_cv_prog_OBJDUMP
5781 if test -n "$OBJDUMP"; then
5782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5783 printf "%s\n" "$OBJDUMP" >&6; }
5784 else
5785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786 printf "%s\n" "no" >&6; }
5787 fi
5788
5789
5790 fi
5791 if test -z "$ac_cv_prog_OBJDUMP"; then
5792 ac_ct_OBJDUMP=$OBJDUMP
5793 # Extract the first word of "objdump", so it can be a program name with args.
5794 set dummy objdump; ac_word=$2
5795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5796 printf %s "checking for $ac_word... " >&6; }
5797 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5798 then :
5799 printf %s "(cached) " >&6
5800 else $as_nop
5801 if test -n "$ac_ct_OBJDUMP"; then
5802 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5803 else
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805 for as_dir in $PATH
5806 do
5807 IFS=$as_save_IFS
5808 case $as_dir in #(((
5809 '') as_dir=./ ;;
5810 */) ;;
5811 *) as_dir=$as_dir/ ;;
5812 esac
5813 for ac_exec_ext in '' $ac_executable_extensions; do
5814 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5815 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5816 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5817 break 2
5818 fi
5819 done
5820 done
5821 IFS=$as_save_IFS
5822
5823 fi
5824 fi
5825 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5826 if test -n "$ac_ct_OBJDUMP"; then
5827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5828 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5829 else
5830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5831 printf "%s\n" "no" >&6; }
5832 fi
5833
5834 if test "x$ac_ct_OBJDUMP" = x; then
5835 OBJDUMP="false"
5836 else
5837 case $cross_compiling:$ac_tool_warned in
5838 yes:)
5839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5840 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5841 ac_tool_warned=yes ;;
5842 esac
5843 OBJDUMP=$ac_ct_OBJDUMP
5844 fi
5845 else
5846 OBJDUMP="$ac_cv_prog_OBJDUMP"
5847 fi
5848
5849 test -z "$OBJDUMP" && OBJDUMP=objdump
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5860 printf %s "checking how to recognize dependent libraries... " >&6; }
5861 if test ${lt_cv_deplibs_check_method+y}
5862 then :
5863 printf %s "(cached) " >&6
5864 else $as_nop
5865 lt_cv_file_magic_cmd='$MAGIC_CMD'
5866 lt_cv_file_magic_test_file=
5867 lt_cv_deplibs_check_method='unknown'
5868 # Need to set the preceding variable on all platforms that support
5869 # interlibrary dependencies.
5870 # 'none' -- dependencies not supported.
5871 # 'unknown' -- same as none, but documents that we really don't know.
5872 # 'pass_all' -- all dependencies passed with no checks.
5873 # 'test_compile' -- check by making test program.
5874 # 'file_magic [[regex]]' -- check by looking for files in library path
5875 # that responds to the $file_magic_cmd with a given extended regex.
5876 # If you have 'file' or equivalent on your system and you're not sure
5877 # whether 'pass_all' will *always* work, you probably want this one.
5878
5879 case $host_os in
5880 aix[4-9]*)
5881 lt_cv_deplibs_check_method=pass_all
5882 ;;
5883
5884 beos*)
5885 lt_cv_deplibs_check_method=pass_all
5886 ;;
5887
5888 bsdi[45]*)
5889 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5890 lt_cv_file_magic_cmd='$FILECMD -L'
5891 lt_cv_file_magic_test_file=/shlib/libc.so
5892 ;;
5893
5894 cygwin*)
5895 # func_win32_libid is a shell function defined in ltmain.sh
5896 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5897 lt_cv_file_magic_cmd='func_win32_libid'
5898 ;;
5899
5900 mingw* | pw32*)
5901 # Base MSYS/MinGW do not provide the 'file' command needed by
5902 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5903 # unless we find 'file', for example because we are cross-compiling.
5904 if ( file / ) >/dev/null 2>&1; then
5905 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5906 lt_cv_file_magic_cmd='func_win32_libid'
5907 else
5908 # Keep this pattern in sync with the one in func_win32_libid.
5909 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5910 lt_cv_file_magic_cmd='$OBJDUMP -f'
5911 fi
5912 ;;
5913
5914 cegcc*)
5915 # use the weaker test based on 'objdump'. See mingw*.
5916 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5917 lt_cv_file_magic_cmd='$OBJDUMP -f'
5918 ;;
5919
5920 darwin* | rhapsody*)
5921 lt_cv_deplibs_check_method=pass_all
5922 ;;
5923
5924 freebsd* | dragonfly* | midnightbsd*)
5925 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5926 case $host_cpu in
5927 i*86 )
5928 # Not sure whether the presence of OpenBSD here was a mistake.
5929 # Let's accept both of them until this is cleared up.
5930 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5931 lt_cv_file_magic_cmd=$FILECMD
5932 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5933 ;;
5934 esac
5935 else
5936 lt_cv_deplibs_check_method=pass_all
5937 fi
5938 ;;
5939
5940 haiku*)
5941 lt_cv_deplibs_check_method=pass_all
5942 ;;
5943
5944 hpux10.20* | hpux11*)
5945 lt_cv_file_magic_cmd=$FILECMD
5946 case $host_cpu in
5947 ia64*)
5948 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5949 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5950 ;;
5951 hppa*64*)
5952 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]'
5953 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5954 ;;
5955 *)
5956 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5957 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5958 ;;
5959 esac
5960 ;;
5961
5962 interix[3-9]*)
5963 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5964 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5965 ;;
5966
5967 irix5* | irix6* | nonstopux*)
5968 case $LD in
5969 *-32|*"-32 ") libmagic=32-bit;;
5970 *-n32|*"-n32 ") libmagic=N32;;
5971 *-64|*"-64 ") libmagic=64-bit;;
5972 *) libmagic=never-match;;
5973 esac
5974 lt_cv_deplibs_check_method=pass_all
5975 ;;
5976
5977 # This must be glibc/ELF.
5978 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5979 lt_cv_deplibs_check_method=pass_all
5980 ;;
5981
5982 netbsd*)
5983 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5984 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5985 else
5986 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5987 fi
5988 ;;
5989
5990 newos6*)
5991 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5992 lt_cv_file_magic_cmd=$FILECMD
5993 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5994 ;;
5995
5996 *nto* | *qnx*)
5997 lt_cv_deplibs_check_method=pass_all
5998 ;;
5999
6000 openbsd* | bitrig*)
6001 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6002 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6003 else
6004 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6005 fi
6006 ;;
6007
6008 osf3* | osf4* | osf5*)
6009 lt_cv_deplibs_check_method=pass_all
6010 ;;
6011
6012 rdos*)
6013 lt_cv_deplibs_check_method=pass_all
6014 ;;
6015
6016 solaris*)
6017 lt_cv_deplibs_check_method=pass_all
6018 ;;
6019
6020 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6021 lt_cv_deplibs_check_method=pass_all
6022 ;;
6023
6024 sysv4 | sysv4.3*)
6025 case $host_vendor in
6026 motorola)
6027 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]'
6028 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6029 ;;
6030 ncr)
6031 lt_cv_deplibs_check_method=pass_all
6032 ;;
6033 sequent)
6034 lt_cv_file_magic_cmd='/bin/file'
6035 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6036 ;;
6037 sni)
6038 lt_cv_file_magic_cmd='/bin/file'
6039 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6040 lt_cv_file_magic_test_file=/lib/libc.so
6041 ;;
6042 siemens)
6043 lt_cv_deplibs_check_method=pass_all
6044 ;;
6045 pc)
6046 lt_cv_deplibs_check_method=pass_all
6047 ;;
6048 esac
6049 ;;
6050
6051 tpf*)
6052 lt_cv_deplibs_check_method=pass_all
6053 ;;
6054 os2*)
6055 lt_cv_deplibs_check_method=pass_all
6056 ;;
6057 esac
6058
6059 fi
6060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6061 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6062
6063 file_magic_glob=
6064 want_nocaseglob=no
6065 if test "$build" = "$host"; then
6066 case $host_os in
6067 mingw* | pw32*)
6068 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6069 want_nocaseglob=yes
6070 else
6071 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6072 fi
6073 ;;
6074 esac
6075 fi
6076
6077 file_magic_cmd=$lt_cv_file_magic_cmd
6078 deplibs_check_method=$lt_cv_deplibs_check_method
6079 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102 if test -n "$ac_tool_prefix"; then
6103 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6104 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6106 printf %s "checking for $ac_word... " >&6; }
6107 if test ${ac_cv_prog_DLLTOOL+y}
6108 then :
6109 printf %s "(cached) " >&6
6110 else $as_nop
6111 if test -n "$DLLTOOL"; then
6112 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6113 else
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 for as_dir in $PATH
6116 do
6117 IFS=$as_save_IFS
6118 case $as_dir in #(((
6119 '') as_dir=./ ;;
6120 */) ;;
6121 *) as_dir=$as_dir/ ;;
6122 esac
6123 for ac_exec_ext in '' $ac_executable_extensions; do
6124 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6125 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6126 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6127 break 2
6128 fi
6129 done
6130 done
6131 IFS=$as_save_IFS
6132
6133 fi
6134 fi
6135 DLLTOOL=$ac_cv_prog_DLLTOOL
6136 if test -n "$DLLTOOL"; then
6137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6138 printf "%s\n" "$DLLTOOL" >&6; }
6139 else
6140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6141 printf "%s\n" "no" >&6; }
6142 fi
6143
6144
6145 fi
6146 if test -z "$ac_cv_prog_DLLTOOL"; then
6147 ac_ct_DLLTOOL=$DLLTOOL
6148 # Extract the first word of "dlltool", so it can be a program name with args.
6149 set dummy dlltool; ac_word=$2
6150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6151 printf %s "checking for $ac_word... " >&6; }
6152 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6153 then :
6154 printf %s "(cached) " >&6
6155 else $as_nop
6156 if test -n "$ac_ct_DLLTOOL"; then
6157 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6158 else
6159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160 for as_dir in $PATH
6161 do
6162 IFS=$as_save_IFS
6163 case $as_dir in #(((
6164 '') as_dir=./ ;;
6165 */) ;;
6166 *) as_dir=$as_dir/ ;;
6167 esac
6168 for ac_exec_ext in '' $ac_executable_extensions; do
6169 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6170 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6172 break 2
6173 fi
6174 done
6175 done
6176 IFS=$as_save_IFS
6177
6178 fi
6179 fi
6180 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6181 if test -n "$ac_ct_DLLTOOL"; then
6182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6183 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6184 else
6185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6186 printf "%s\n" "no" >&6; }
6187 fi
6188
6189 if test "x$ac_ct_DLLTOOL" = x; then
6190 DLLTOOL="false"
6191 else
6192 case $cross_compiling:$ac_tool_warned in
6193 yes:)
6194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6195 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6196 ac_tool_warned=yes ;;
6197 esac
6198 DLLTOOL=$ac_ct_DLLTOOL
6199 fi
6200 else
6201 DLLTOOL="$ac_cv_prog_DLLTOOL"
6202 fi
6203
6204 test -z "$DLLTOOL" && DLLTOOL=dlltool
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6216 printf %s "checking how to associate runtime and link libraries... " >&6; }
6217 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6218 then :
6219 printf %s "(cached) " >&6
6220 else $as_nop
6221 lt_cv_sharedlib_from_linklib_cmd='unknown'
6222
6223 case $host_os in
6224 cygwin* | mingw* | pw32* | cegcc*)
6225 # two different shell functions defined in ltmain.sh;
6226 # decide which one to use based on capabilities of $DLLTOOL
6227 case `$DLLTOOL --help 2>&1` in
6228 *--identify-strict*)
6229 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6230 ;;
6231 *)
6232 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6233 ;;
6234 esac
6235 ;;
6236 *)
6237 # fallback: assume linklib IS sharedlib
6238 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6239 ;;
6240 esac
6241
6242 fi
6243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6244 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6245 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6246 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6247
6248
6249
6250
6251
6252
6253
6254
6255 if test -n "$ac_tool_prefix"; then
6256 for ac_prog in ar
6257 do
6258 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6259 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6261 printf %s "checking for $ac_word... " >&6; }
6262 if test ${ac_cv_prog_AR+y}
6263 then :
6264 printf %s "(cached) " >&6
6265 else $as_nop
6266 if test -n "$AR"; then
6267 ac_cv_prog_AR="$AR" # Let the user override the test.
6268 else
6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270 for as_dir in $PATH
6271 do
6272 IFS=$as_save_IFS
6273 case $as_dir in #(((
6274 '') as_dir=./ ;;
6275 */) ;;
6276 *) as_dir=$as_dir/ ;;
6277 esac
6278 for ac_exec_ext in '' $ac_executable_extensions; do
6279 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6280 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6282 break 2
6283 fi
6284 done
6285 done
6286 IFS=$as_save_IFS
6287
6288 fi
6289 fi
6290 AR=$ac_cv_prog_AR
6291 if test -n "$AR"; then
6292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6293 printf "%s\n" "$AR" >&6; }
6294 else
6295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6296 printf "%s\n" "no" >&6; }
6297 fi
6298
6299
6300 test -n "$AR" && break
6301 done
6302 fi
6303 if test -z "$AR"; then
6304 ac_ct_AR=$AR
6305 for ac_prog in ar
6306 do
6307 # Extract the first word of "$ac_prog", so it can be a program name with args.
6308 set dummy $ac_prog; ac_word=$2
6309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6310 printf %s "checking for $ac_word... " >&6; }
6311 if test ${ac_cv_prog_ac_ct_AR+y}
6312 then :
6313 printf %s "(cached) " >&6
6314 else $as_nop
6315 if test -n "$ac_ct_AR"; then
6316 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6317 else
6318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319 for as_dir in $PATH
6320 do
6321 IFS=$as_save_IFS
6322 case $as_dir in #(((
6323 '') as_dir=./ ;;
6324 */) ;;
6325 *) as_dir=$as_dir/ ;;
6326 esac
6327 for ac_exec_ext in '' $ac_executable_extensions; do
6328 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6329 ac_cv_prog_ac_ct_AR="$ac_prog"
6330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6331 break 2
6332 fi
6333 done
6334 done
6335 IFS=$as_save_IFS
6336
6337 fi
6338 fi
6339 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6340 if test -n "$ac_ct_AR"; then
6341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6342 printf "%s\n" "$ac_ct_AR" >&6; }
6343 else
6344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6345 printf "%s\n" "no" >&6; }
6346 fi
6347
6348
6349 test -n "$ac_ct_AR" && break
6350 done
6351
6352 if test "x$ac_ct_AR" = x; then
6353 AR="false"
6354 else
6355 case $cross_compiling:$ac_tool_warned in
6356 yes:)
6357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6358 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6359 ac_tool_warned=yes ;;
6360 esac
6361 AR=$ac_ct_AR
6362 fi
6363 fi
6364
6365 : ${AR=ar}
6366
6367
6368
6369
6370
6371
6372 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6373 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6374 # higher priority because thats what people were doing historically (setting
6375 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6376 # variable obsoleted/removed.
6377
6378 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6379 lt_ar_flags=$AR_FLAGS
6380
6381
6382
6383
6384
6385
6386 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6387 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6388
6389
6390
6391
6392
6393
6394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6395 printf %s "checking for archiver @FILE support... " >&6; }
6396 if test ${lt_cv_ar_at_file+y}
6397 then :
6398 printf %s "(cached) " >&6
6399 else $as_nop
6400 lt_cv_ar_at_file=no
6401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6402 /* end confdefs.h. */
6403
6404 int
6405 main (void)
6406 {
6407
6408 ;
6409 return 0;
6410 }
6411 _ACEOF
6412 if ac_fn_c_try_compile "$LINENO"
6413 then :
6414 echo conftest.$ac_objext > conftest.lst
6415 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6417 (eval $lt_ar_try) 2>&5
6418 ac_status=$?
6419 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6420 test $ac_status = 0; }
6421 if test 0 -eq "$ac_status"; then
6422 # Ensure the archiver fails upon bogus file names.
6423 rm -f conftest.$ac_objext libconftest.a
6424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6425 (eval $lt_ar_try) 2>&5
6426 ac_status=$?
6427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6428 test $ac_status = 0; }
6429 if test 0 -ne "$ac_status"; then
6430 lt_cv_ar_at_file=@
6431 fi
6432 fi
6433 rm -f conftest.* libconftest.a
6434
6435 fi
6436 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6437
6438 fi
6439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6440 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6441
6442 if test no = "$lt_cv_ar_at_file"; then
6443 archiver_list_spec=
6444 else
6445 archiver_list_spec=$lt_cv_ar_at_file
6446 fi
6447
6448
6449
6450
6451
6452
6453
6454 if test -n "$ac_tool_prefix"; then
6455 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6456 set dummy ${ac_tool_prefix}strip; ac_word=$2
6457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6458 printf %s "checking for $ac_word... " >&6; }
6459 if test ${ac_cv_prog_STRIP+y}
6460 then :
6461 printf %s "(cached) " >&6
6462 else $as_nop
6463 if test -n "$STRIP"; then
6464 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6465 else
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 for as_dir in $PATH
6468 do
6469 IFS=$as_save_IFS
6470 case $as_dir in #(((
6471 '') as_dir=./ ;;
6472 */) ;;
6473 *) as_dir=$as_dir/ ;;
6474 esac
6475 for ac_exec_ext in '' $ac_executable_extensions; do
6476 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6477 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6479 break 2
6480 fi
6481 done
6482 done
6483 IFS=$as_save_IFS
6484
6485 fi
6486 fi
6487 STRIP=$ac_cv_prog_STRIP
6488 if test -n "$STRIP"; then
6489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6490 printf "%s\n" "$STRIP" >&6; }
6491 else
6492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6493 printf "%s\n" "no" >&6; }
6494 fi
6495
6496
6497 fi
6498 if test -z "$ac_cv_prog_STRIP"; then
6499 ac_ct_STRIP=$STRIP
6500 # Extract the first word of "strip", so it can be a program name with args.
6501 set dummy strip; ac_word=$2
6502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6503 printf %s "checking for $ac_word... " >&6; }
6504 if test ${ac_cv_prog_ac_ct_STRIP+y}
6505 then :
6506 printf %s "(cached) " >&6
6507 else $as_nop
6508 if test -n "$ac_ct_STRIP"; then
6509 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6510 else
6511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512 for as_dir in $PATH
6513 do
6514 IFS=$as_save_IFS
6515 case $as_dir in #(((
6516 '') as_dir=./ ;;
6517 */) ;;
6518 *) as_dir=$as_dir/ ;;
6519 esac
6520 for ac_exec_ext in '' $ac_executable_extensions; do
6521 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6522 ac_cv_prog_ac_ct_STRIP="strip"
6523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6524 break 2
6525 fi
6526 done
6527 done
6528 IFS=$as_save_IFS
6529
6530 fi
6531 fi
6532 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6533 if test -n "$ac_ct_STRIP"; then
6534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6535 printf "%s\n" "$ac_ct_STRIP" >&6; }
6536 else
6537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6538 printf "%s\n" "no" >&6; }
6539 fi
6540
6541 if test "x$ac_ct_STRIP" = x; then
6542 STRIP=":"
6543 else
6544 case $cross_compiling:$ac_tool_warned in
6545 yes:)
6546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6547 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6548 ac_tool_warned=yes ;;
6549 esac
6550 STRIP=$ac_ct_STRIP
6551 fi
6552 else
6553 STRIP="$ac_cv_prog_STRIP"
6554 fi
6555
6556 test -z "$STRIP" && STRIP=:
6557
6558
6559
6560
6561
6562
6563 if test -n "$ac_tool_prefix"; then
6564 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6565 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6567 printf %s "checking for $ac_word... " >&6; }
6568 if test ${ac_cv_prog_RANLIB+y}
6569 then :
6570 printf %s "(cached) " >&6
6571 else $as_nop
6572 if test -n "$RANLIB"; then
6573 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6574 else
6575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576 for as_dir in $PATH
6577 do
6578 IFS=$as_save_IFS
6579 case $as_dir in #(((
6580 '') as_dir=./ ;;
6581 */) ;;
6582 *) as_dir=$as_dir/ ;;
6583 esac
6584 for ac_exec_ext in '' $ac_executable_extensions; do
6585 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6586 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6588 break 2
6589 fi
6590 done
6591 done
6592 IFS=$as_save_IFS
6593
6594 fi
6595 fi
6596 RANLIB=$ac_cv_prog_RANLIB
6597 if test -n "$RANLIB"; then
6598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6599 printf "%s\n" "$RANLIB" >&6; }
6600 else
6601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6602 printf "%s\n" "no" >&6; }
6603 fi
6604
6605
6606 fi
6607 if test -z "$ac_cv_prog_RANLIB"; then
6608 ac_ct_RANLIB=$RANLIB
6609 # Extract the first word of "ranlib", so it can be a program name with args.
6610 set dummy ranlib; ac_word=$2
6611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6612 printf %s "checking for $ac_word... " >&6; }
6613 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6614 then :
6615 printf %s "(cached) " >&6
6616 else $as_nop
6617 if test -n "$ac_ct_RANLIB"; then
6618 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6619 else
6620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 for as_dir in $PATH
6622 do
6623 IFS=$as_save_IFS
6624 case $as_dir in #(((
6625 '') as_dir=./ ;;
6626 */) ;;
6627 *) as_dir=$as_dir/ ;;
6628 esac
6629 for ac_exec_ext in '' $ac_executable_extensions; do
6630 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6631 ac_cv_prog_ac_ct_RANLIB="ranlib"
6632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6633 break 2
6634 fi
6635 done
6636 done
6637 IFS=$as_save_IFS
6638
6639 fi
6640 fi
6641 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6642 if test -n "$ac_ct_RANLIB"; then
6643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6644 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6645 else
6646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6647 printf "%s\n" "no" >&6; }
6648 fi
6649
6650 if test "x$ac_ct_RANLIB" = x; then
6651 RANLIB=":"
6652 else
6653 case $cross_compiling:$ac_tool_warned in
6654 yes:)
6655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6656 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6657 ac_tool_warned=yes ;;
6658 esac
6659 RANLIB=$ac_ct_RANLIB
6660 fi
6661 else
6662 RANLIB="$ac_cv_prog_RANLIB"
6663 fi
6664
6665 test -z "$RANLIB" && RANLIB=:
6666
6667
6668
6669
6670
6671
6672 # Determine commands to create old-style static archives.
6673 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6674 old_postinstall_cmds='chmod 644 $oldlib'
6675 old_postuninstall_cmds=
6676
6677 if test -n "$RANLIB"; then
6678 case $host_os in
6679 bitrig* | openbsd*)
6680 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6681 ;;
6682 *)
6683 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6684 ;;
6685 esac
6686 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6687 fi
6688
6689 case $host_os in
6690 darwin*)
6691 lock_old_archive_extraction=yes ;;
6692 *)
6693 lock_old_archive_extraction=no ;;
6694 esac
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734 # If no C compiler was specified, use CC.
6735 LTCC=${LTCC-"$CC"}
6736
6737 # If no C compiler flags were specified, use CFLAGS.
6738 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6739
6740 # Allow CC to be a program name with arguments.
6741 compiler=$CC
6742
6743
6744 # Check for command to grab the raw symbol name followed by C symbol from nm.
6745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6746 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6747 if test ${lt_cv_sys_global_symbol_pipe+y}
6748 then :
6749 printf %s "(cached) " >&6
6750 else $as_nop
6751
6752 # These are sane defaults that work on at least a few old systems.
6753 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6754
6755 # Character class describing NM global symbol codes.
6756 symcode='[BCDEGRST]'
6757
6758 # Regexp to match symbols that can be accessed directly from C.
6759 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6760
6761 # Define system-specific variables.
6762 case $host_os in
6763 aix*)
6764 symcode='[BCDT]'
6765 ;;
6766 cygwin* | mingw* | pw32* | cegcc*)
6767 symcode='[ABCDGISTW]'
6768 ;;
6769 hpux*)
6770 if test ia64 = "$host_cpu"; then
6771 symcode='[ABCDEGRST]'
6772 fi
6773 ;;
6774 irix* | nonstopux*)
6775 symcode='[BCDEGRST]'
6776 ;;
6777 osf*)
6778 symcode='[BCDEGQRST]'
6779 ;;
6780 solaris*)
6781 symcode='[BDRT]'
6782 ;;
6783 sco3.2v5*)
6784 symcode='[DT]'
6785 ;;
6786 sysv4.2uw2*)
6787 symcode='[DT]'
6788 ;;
6789 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6790 symcode='[ABDT]'
6791 ;;
6792 sysv4)
6793 symcode='[DFNSTU]'
6794 ;;
6795 esac
6796
6797 # If we're using GNU nm, then use its standard symbol codes.
6798 case `$NM -V 2>&1` in
6799 *GNU* | *'with BFD'*)
6800 symcode='[ABCDGIRSTW]' ;;
6801 esac
6802
6803 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6804 # Gets list of data symbols to import.
6805 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6806 # Adjust the below global symbol transforms to fixup imported variables.
6807 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6808 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6809 lt_c_name_lib_hook="\
6810 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6811 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6812 else
6813 # Disable hooks by default.
6814 lt_cv_sys_global_symbol_to_import=
6815 lt_cdecl_hook=
6816 lt_c_name_hook=
6817 lt_c_name_lib_hook=
6818 fi
6819
6820 # Transform an extracted symbol line into a proper C declaration.
6821 # Some systems (esp. on ia64) link data and code symbols differently,
6822 # so use this general approach.
6823 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6824 $lt_cdecl_hook\
6825 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6826 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6827
6828 # Transform an extracted symbol line into symbol name and symbol address
6829 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6830 $lt_c_name_hook\
6831 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6832 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6833
6834 # Transform an extracted symbol line into symbol name with lib prefix and
6835 # symbol address.
6836 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6837 $lt_c_name_lib_hook\
6838 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6839 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6840 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6841
6842 # Handle CRLF in mingw tool chain
6843 opt_cr=
6844 case $build_os in
6845 mingw*)
6846 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6847 ;;
6848 esac
6849
6850 # Try without a prefix underscore, then with it.
6851 for ac_symprfx in "" "_"; do
6852
6853 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6854 symxfrm="\\1 $ac_symprfx\\2 \\2"
6855
6856 # Write the raw and C identifiers.
6857 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6858 # Fake it for dumpbin and say T for any non-static function,
6859 # D for any global variable and I for any imported variable.
6860 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6861 # which start with @ or ?.
6862 lt_cv_sys_global_symbol_pipe="$AWK '"\
6863 " {last_section=section; section=\$ 3};"\
6864 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6865 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6866 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6867 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6868 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6869 " \$ 0!~/External *\|/{next};"\
6870 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6871 " {if(hide[section]) next};"\
6872 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6873 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6874 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6875 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6876 " ' prfx=^$ac_symprfx"
6877 else
6878 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6879 fi
6880 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6881
6882 # Check to see that the pipe works correctly.
6883 pipe_works=no
6884
6885 rm -f conftest*
6886 cat > conftest.$ac_ext <<_LT_EOF
6887 #ifdef __cplusplus
6888 extern "C" {
6889 #endif
6890 char nm_test_var;
6891 void nm_test_func(void);
6892 void nm_test_func(void){}
6893 #ifdef __cplusplus
6894 }
6895 #endif
6896 int main(){nm_test_var='a';nm_test_func();return(0);}
6897 _LT_EOF
6898
6899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6900 (eval $ac_compile) 2>&5
6901 ac_status=$?
6902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6903 test $ac_status = 0; }; then
6904 # Now try to grab the symbols.
6905 nlist=conftest.nm
6906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6907 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6908 ac_status=$?
6909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6910 test $ac_status = 0; } && test -s "$nlist"; then
6911 # Try sorting and uniquifying the output.
6912 if sort "$nlist" | uniq > "$nlist"T; then
6913 mv -f "$nlist"T "$nlist"
6914 else
6915 rm -f "$nlist"T
6916 fi
6917
6918 # Make sure that we snagged all the symbols we need.
6919 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6920 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6921 cat <<_LT_EOF > conftest.$ac_ext
6922 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6923 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6924 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6925 relocations are performed -- see ld's documentation on pseudo-relocs. */
6926 # define LT_DLSYM_CONST
6927 #elif defined __osf__
6928 /* This system does not cope well with relocations in const data. */
6929 # define LT_DLSYM_CONST
6930 #else
6931 # define LT_DLSYM_CONST const
6932 #endif
6933
6934 #ifdef __cplusplus
6935 extern "C" {
6936 #endif
6937
6938 _LT_EOF
6939 # Now generate the symbol file.
6940 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6941
6942 cat <<_LT_EOF >> conftest.$ac_ext
6943
6944 /* The mapping between symbol names and symbols. */
6945 LT_DLSYM_CONST struct {
6946 const char *name;
6947 void *address;
6948 }
6949 lt__PROGRAM__LTX_preloaded_symbols[] =
6950 {
6951 { "@PROGRAM@", (void *) 0 },
6952 _LT_EOF
6953 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6954 cat <<\_LT_EOF >> conftest.$ac_ext
6955 {0, (void *) 0}
6956 };
6957
6958 /* This works around a problem in FreeBSD linker */
6959 #ifdef FREEBSD_WORKAROUND
6960 static const void *lt_preloaded_setup() {
6961 return lt__PROGRAM__LTX_preloaded_symbols;
6962 }
6963 #endif
6964
6965 #ifdef __cplusplus
6966 }
6967 #endif
6968 _LT_EOF
6969 # Now try linking the two files.
6970 mv conftest.$ac_objext conftstm.$ac_objext
6971 lt_globsym_save_LIBS=$LIBS
6972 lt_globsym_save_CFLAGS=$CFLAGS
6973 LIBS=conftstm.$ac_objext
6974 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6975 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6976 (eval $ac_link) 2>&5
6977 ac_status=$?
6978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6979 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6980 pipe_works=yes
6981 fi
6982 LIBS=$lt_globsym_save_LIBS
6983 CFLAGS=$lt_globsym_save_CFLAGS
6984 else
6985 echo "cannot find nm_test_func in $nlist" >&5
6986 fi
6987 else
6988 echo "cannot find nm_test_var in $nlist" >&5
6989 fi
6990 else
6991 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6992 fi
6993 else
6994 echo "$progname: failed program was:" >&5
6995 cat conftest.$ac_ext >&5
6996 fi
6997 rm -rf conftest* conftst*
6998
6999 # Do not use the global_symbol_pipe unless it works.
7000 if test yes = "$pipe_works"; then
7001 break
7002 else
7003 lt_cv_sys_global_symbol_pipe=
7004 fi
7005 done
7006
7007 fi
7008
7009 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7010 lt_cv_sys_global_symbol_to_cdecl=
7011 fi
7012 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7014 printf "%s\n" "failed" >&6; }
7015 else
7016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7017 printf "%s\n" "ok" >&6; }
7018 fi
7019
7020 # Response file support.
7021 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7022 nm_file_list_spec='@'
7023 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7024 nm_file_list_spec='@'
7025 fi
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7064 printf %s "checking for sysroot... " >&6; }
7065
7066 # Check whether --with-sysroot was given.
7067 if test ${with_sysroot+y}
7068 then :
7069 withval=$with_sysroot;
7070 else $as_nop
7071 with_sysroot=no
7072 fi
7073
7074
7075 lt_sysroot=
7076 case $with_sysroot in #(
7077 yes)
7078 if test yes = "$GCC"; then
7079 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7080 fi
7081 ;; #(
7082 /*)
7083 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7084 ;; #(
7085 no|'')
7086 ;; #(
7087 *)
7088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7089 printf "%s\n" "$with_sysroot" >&6; }
7090 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7091 ;;
7092 esac
7093
7094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7095 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7096
7097
7098
7099
7100
7101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7102 printf %s "checking for a working dd... " >&6; }
7103 if test ${ac_cv_path_lt_DD+y}
7104 then :
7105 printf %s "(cached) " >&6
7106 else $as_nop
7107 printf 0123456789abcdef0123456789abcdef >conftest.i
7108 cat conftest.i conftest.i >conftest2.i
7109 : ${lt_DD:=$DD}
7110 if test -z "$lt_DD"; then
7111 ac_path_lt_DD_found=false
7112 # Loop through the user's path and test for each of PROGNAME-LIST
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 for as_dir in $PATH
7115 do
7116 IFS=$as_save_IFS
7117 case $as_dir in #(((
7118 '') as_dir=./ ;;
7119 */) ;;
7120 *) as_dir=$as_dir/ ;;
7121 esac
7122 for ac_prog in dd
7123 do
7124 for ac_exec_ext in '' $ac_executable_extensions; do
7125 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7126 as_fn_executable_p "$ac_path_lt_DD" || continue
7127 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7128 cmp -s conftest.i conftest.out \
7129 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7130 fi
7131 $ac_path_lt_DD_found && break 3
7132 done
7133 done
7134 done
7135 IFS=$as_save_IFS
7136 if test -z "$ac_cv_path_lt_DD"; then
7137 :
7138 fi
7139 else
7140 ac_cv_path_lt_DD=$lt_DD
7141 fi
7142
7143 rm -f conftest.i conftest2.i conftest.out
7144 fi
7145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7146 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7147
7148
7149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7150 printf %s "checking how to truncate binary pipes... " >&6; }
7151 if test ${lt_cv_truncate_bin+y}
7152 then :
7153 printf %s "(cached) " >&6
7154 else $as_nop
7155 printf 0123456789abcdef0123456789abcdef >conftest.i
7156 cat conftest.i conftest.i >conftest2.i
7157 lt_cv_truncate_bin=
7158 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7159 cmp -s conftest.i conftest.out \
7160 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7161 fi
7162 rm -f conftest.i conftest2.i conftest.out
7163 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7164 fi
7165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7166 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7167
7168
7169
7170
7171
7172
7173
7174 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7175 func_cc_basename ()
7176 {
7177 for cc_temp in $*""; do
7178 case $cc_temp in
7179 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7180 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7181 \-*) ;;
7182 *) break;;
7183 esac
7184 done
7185 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7186 }
7187
7188 # Check whether --enable-libtool-lock was given.
7189 if test ${enable_libtool_lock+y}
7190 then :
7191 enableval=$enable_libtool_lock;
7192 fi
7193
7194 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7195
7196 # Some flags need to be propagated to the compiler or linker for good
7197 # libtool support.
7198 case $host in
7199 ia64-*-hpux*)
7200 # Find out what ABI is being produced by ac_compile, and set mode
7201 # options accordingly.
7202 echo 'int i;' > conftest.$ac_ext
7203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7204 (eval $ac_compile) 2>&5
7205 ac_status=$?
7206 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7207 test $ac_status = 0; }; then
7208 case `$FILECMD conftest.$ac_objext` in
7209 *ELF-32*)
7210 HPUX_IA64_MODE=32
7211 ;;
7212 *ELF-64*)
7213 HPUX_IA64_MODE=64
7214 ;;
7215 esac
7216 fi
7217 rm -rf conftest*
7218 ;;
7219 *-*-irix6*)
7220 # Find out what ABI is being produced by ac_compile, and set linker
7221 # options accordingly.
7222 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7224 (eval $ac_compile) 2>&5
7225 ac_status=$?
7226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7227 test $ac_status = 0; }; then
7228 if test yes = "$lt_cv_prog_gnu_ld"; then
7229 case `$FILECMD conftest.$ac_objext` in
7230 *32-bit*)
7231 LD="${LD-ld} -melf32bsmip"
7232 ;;
7233 *N32*)
7234 LD="${LD-ld} -melf32bmipn32"
7235 ;;
7236 *64-bit*)
7237 LD="${LD-ld} -melf64bmip"
7238 ;;
7239 esac
7240 else
7241 case `$FILECMD conftest.$ac_objext` in
7242 *32-bit*)
7243 LD="${LD-ld} -32"
7244 ;;
7245 *N32*)
7246 LD="${LD-ld} -n32"
7247 ;;
7248 *64-bit*)
7249 LD="${LD-ld} -64"
7250 ;;
7251 esac
7252 fi
7253 fi
7254 rm -rf conftest*
7255 ;;
7256
7257 mips64*-*linux*)
7258 # Find out what ABI is being produced by ac_compile, and set linker
7259 # options accordingly.
7260 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7262 (eval $ac_compile) 2>&5
7263 ac_status=$?
7264 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7265 test $ac_status = 0; }; then
7266 emul=elf
7267 case `$FILECMD conftest.$ac_objext` in
7268 *32-bit*)
7269 emul="${emul}32"
7270 ;;
7271 *64-bit*)
7272 emul="${emul}64"
7273 ;;
7274 esac
7275 case `$FILECMD conftest.$ac_objext` in
7276 *MSB*)
7277 emul="${emul}btsmip"
7278 ;;
7279 *LSB*)
7280 emul="${emul}ltsmip"
7281 ;;
7282 esac
7283 case `$FILECMD conftest.$ac_objext` in
7284 *N32*)
7285 emul="${emul}n32"
7286 ;;
7287 esac
7288 LD="${LD-ld} -m $emul"
7289 fi
7290 rm -rf conftest*
7291 ;;
7292
7293 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7294 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7295 # Find out what ABI is being produced by ac_compile, and set linker
7296 # options accordingly. Note that the listed cases only cover the
7297 # situations where additional linker options are needed (such as when
7298 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7299 # vice versa); the common cases where no linker options are needed do
7300 # not appear in the list.
7301 echo 'int i;' > conftest.$ac_ext
7302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7303 (eval $ac_compile) 2>&5
7304 ac_status=$?
7305 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7306 test $ac_status = 0; }; then
7307 case `$FILECMD conftest.o` in
7308 *32-bit*)
7309 case $host in
7310 x86_64-*kfreebsd*-gnu)
7311 LD="${LD-ld} -m elf_i386_fbsd"
7312 ;;
7313 x86_64-*linux*)
7314 case `$FILECMD conftest.o` in
7315 *x86-64*)
7316 LD="${LD-ld} -m elf32_x86_64"
7317 ;;
7318 *)
7319 LD="${LD-ld} -m elf_i386"
7320 ;;
7321 esac
7322 ;;
7323 powerpc64le-*linux*)
7324 LD="${LD-ld} -m elf32lppclinux"
7325 ;;
7326 powerpc64-*linux*)
7327 LD="${LD-ld} -m elf32ppclinux"
7328 ;;
7329 s390x-*linux*)
7330 LD="${LD-ld} -m elf_s390"
7331 ;;
7332 sparc64-*linux*)
7333 LD="${LD-ld} -m elf32_sparc"
7334 ;;
7335 esac
7336 ;;
7337 *64-bit*)
7338 case $host in
7339 x86_64-*kfreebsd*-gnu)
7340 LD="${LD-ld} -m elf_x86_64_fbsd"
7341 ;;
7342 x86_64-*linux*)
7343 LD="${LD-ld} -m elf_x86_64"
7344 ;;
7345 powerpcle-*linux*)
7346 LD="${LD-ld} -m elf64lppc"
7347 ;;
7348 powerpc-*linux*)
7349 LD="${LD-ld} -m elf64ppc"
7350 ;;
7351 s390*-*linux*|s390*-*tpf*)
7352 LD="${LD-ld} -m elf64_s390"
7353 ;;
7354 sparc*-*linux*)
7355 LD="${LD-ld} -m elf64_sparc"
7356 ;;
7357 esac
7358 ;;
7359 esac
7360 fi
7361 rm -rf conftest*
7362 ;;
7363
7364 *-*-sco3.2v5*)
7365 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7366 SAVE_CFLAGS=$CFLAGS
7367 CFLAGS="$CFLAGS -belf"
7368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7369 printf %s "checking whether the C compiler needs -belf... " >&6; }
7370 if test ${lt_cv_cc_needs_belf+y}
7371 then :
7372 printf %s "(cached) " >&6
7373 else $as_nop
7374 ac_ext=c
7375 ac_cpp='$CPP $CPPFLAGS'
7376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7379
7380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7381 /* end confdefs.h. */
7382
7383 int
7384 main (void)
7385 {
7386
7387 ;
7388 return 0;
7389 }
7390 _ACEOF
7391 if ac_fn_c_try_link "$LINENO"
7392 then :
7393 lt_cv_cc_needs_belf=yes
7394 else $as_nop
7395 lt_cv_cc_needs_belf=no
7396 fi
7397 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7398 conftest$ac_exeext conftest.$ac_ext
7399 ac_ext=c
7400 ac_cpp='$CPP $CPPFLAGS'
7401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7404
7405 fi
7406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7407 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7408 if test yes != "$lt_cv_cc_needs_belf"; then
7409 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7410 CFLAGS=$SAVE_CFLAGS
7411 fi
7412 ;;
7413 *-*solaris*)
7414 # Find out what ABI is being produced by ac_compile, and set linker
7415 # options accordingly.
7416 echo 'int i;' > conftest.$ac_ext
7417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7418 (eval $ac_compile) 2>&5
7419 ac_status=$?
7420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7421 test $ac_status = 0; }; then
7422 case `$FILECMD conftest.o` in
7423 *64-bit*)
7424 case $lt_cv_prog_gnu_ld in
7425 yes*)
7426 case $host in
7427 i?86-*-solaris*|x86_64-*-solaris*)
7428 LD="${LD-ld} -m elf_x86_64"
7429 ;;
7430 sparc*-*-solaris*)
7431 LD="${LD-ld} -m elf64_sparc"
7432 ;;
7433 esac
7434 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7435 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7436 LD=${LD-ld}_sol2
7437 fi
7438 ;;
7439 *)
7440 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7441 LD="${LD-ld} -64"
7442 fi
7443 ;;
7444 esac
7445 ;;
7446 esac
7447 fi
7448 rm -rf conftest*
7449 ;;
7450 esac
7451
7452 need_locks=$enable_libtool_lock
7453
7454 if test -n "$ac_tool_prefix"; then
7455 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7456 set dummy ${ac_tool_prefix}mt; ac_word=$2
7457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7458 printf %s "checking for $ac_word... " >&6; }
7459 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7460 then :
7461 printf %s "(cached) " >&6
7462 else $as_nop
7463 if test -n "$MANIFEST_TOOL"; then
7464 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7465 else
7466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 for as_dir in $PATH
7468 do
7469 IFS=$as_save_IFS
7470 case $as_dir in #(((
7471 '') as_dir=./ ;;
7472 */) ;;
7473 *) as_dir=$as_dir/ ;;
7474 esac
7475 for ac_exec_ext in '' $ac_executable_extensions; do
7476 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7477 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7479 break 2
7480 fi
7481 done
7482 done
7483 IFS=$as_save_IFS
7484
7485 fi
7486 fi
7487 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7488 if test -n "$MANIFEST_TOOL"; then
7489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7490 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7491 else
7492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493 printf "%s\n" "no" >&6; }
7494 fi
7495
7496
7497 fi
7498 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7499 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7500 # Extract the first word of "mt", so it can be a program name with args.
7501 set dummy mt; ac_word=$2
7502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7503 printf %s "checking for $ac_word... " >&6; }
7504 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7505 then :
7506 printf %s "(cached) " >&6
7507 else $as_nop
7508 if test -n "$ac_ct_MANIFEST_TOOL"; then
7509 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7510 else
7511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512 for as_dir in $PATH
7513 do
7514 IFS=$as_save_IFS
7515 case $as_dir in #(((
7516 '') as_dir=./ ;;
7517 */) ;;
7518 *) as_dir=$as_dir/ ;;
7519 esac
7520 for ac_exec_ext in '' $ac_executable_extensions; do
7521 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7522 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7524 break 2
7525 fi
7526 done
7527 done
7528 IFS=$as_save_IFS
7529
7530 fi
7531 fi
7532 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7533 if test -n "$ac_ct_MANIFEST_TOOL"; then
7534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7535 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7536 else
7537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7538 printf "%s\n" "no" >&6; }
7539 fi
7540
7541 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7542 MANIFEST_TOOL=":"
7543 else
7544 case $cross_compiling:$ac_tool_warned in
7545 yes:)
7546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7547 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7548 ac_tool_warned=yes ;;
7549 esac
7550 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7551 fi
7552 else
7553 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7554 fi
7555
7556 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7558 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7559 if test ${lt_cv_path_mainfest_tool+y}
7560 then :
7561 printf %s "(cached) " >&6
7562 else $as_nop
7563 lt_cv_path_mainfest_tool=no
7564 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7565 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7566 cat conftest.err >&5
7567 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7568 lt_cv_path_mainfest_tool=yes
7569 fi
7570 rm -f conftest*
7571 fi
7572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7573 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7574 if test yes != "$lt_cv_path_mainfest_tool"; then
7575 MANIFEST_TOOL=:
7576 fi
7577
7578
7579
7580
7581
7582
7583 case $host_os in
7584 rhapsody* | darwin*)
7585 if test -n "$ac_tool_prefix"; then
7586 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7587 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7589 printf %s "checking for $ac_word... " >&6; }
7590 if test ${ac_cv_prog_DSYMUTIL+y}
7591 then :
7592 printf %s "(cached) " >&6
7593 else $as_nop
7594 if test -n "$DSYMUTIL"; then
7595 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7596 else
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 for as_dir in $PATH
7599 do
7600 IFS=$as_save_IFS
7601 case $as_dir in #(((
7602 '') as_dir=./ ;;
7603 */) ;;
7604 *) as_dir=$as_dir/ ;;
7605 esac
7606 for ac_exec_ext in '' $ac_executable_extensions; do
7607 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7608 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7610 break 2
7611 fi
7612 done
7613 done
7614 IFS=$as_save_IFS
7615
7616 fi
7617 fi
7618 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7619 if test -n "$DSYMUTIL"; then
7620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7621 printf "%s\n" "$DSYMUTIL" >&6; }
7622 else
7623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7624 printf "%s\n" "no" >&6; }
7625 fi
7626
7627
7628 fi
7629 if test -z "$ac_cv_prog_DSYMUTIL"; then
7630 ac_ct_DSYMUTIL=$DSYMUTIL
7631 # Extract the first word of "dsymutil", so it can be a program name with args.
7632 set dummy dsymutil; ac_word=$2
7633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7634 printf %s "checking for $ac_word... " >&6; }
7635 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7636 then :
7637 printf %s "(cached) " >&6
7638 else $as_nop
7639 if test -n "$ac_ct_DSYMUTIL"; then
7640 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7641 else
7642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643 for as_dir in $PATH
7644 do
7645 IFS=$as_save_IFS
7646 case $as_dir in #(((
7647 '') as_dir=./ ;;
7648 */) ;;
7649 *) as_dir=$as_dir/ ;;
7650 esac
7651 for ac_exec_ext in '' $ac_executable_extensions; do
7652 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7653 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7655 break 2
7656 fi
7657 done
7658 done
7659 IFS=$as_save_IFS
7660
7661 fi
7662 fi
7663 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7664 if test -n "$ac_ct_DSYMUTIL"; then
7665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7666 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7667 else
7668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7669 printf "%s\n" "no" >&6; }
7670 fi
7671
7672 if test "x$ac_ct_DSYMUTIL" = x; then
7673 DSYMUTIL=":"
7674 else
7675 case $cross_compiling:$ac_tool_warned in
7676 yes:)
7677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7678 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7679 ac_tool_warned=yes ;;
7680 esac
7681 DSYMUTIL=$ac_ct_DSYMUTIL
7682 fi
7683 else
7684 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7685 fi
7686
7687 if test -n "$ac_tool_prefix"; then
7688 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7689 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7691 printf %s "checking for $ac_word... " >&6; }
7692 if test ${ac_cv_prog_NMEDIT+y}
7693 then :
7694 printf %s "(cached) " >&6
7695 else $as_nop
7696 if test -n "$NMEDIT"; then
7697 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7698 else
7699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7700 for as_dir in $PATH
7701 do
7702 IFS=$as_save_IFS
7703 case $as_dir in #(((
7704 '') as_dir=./ ;;
7705 */) ;;
7706 *) as_dir=$as_dir/ ;;
7707 esac
7708 for ac_exec_ext in '' $ac_executable_extensions; do
7709 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7710 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7712 break 2
7713 fi
7714 done
7715 done
7716 IFS=$as_save_IFS
7717
7718 fi
7719 fi
7720 NMEDIT=$ac_cv_prog_NMEDIT
7721 if test -n "$NMEDIT"; then
7722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7723 printf "%s\n" "$NMEDIT" >&6; }
7724 else
7725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7726 printf "%s\n" "no" >&6; }
7727 fi
7728
7729
7730 fi
7731 if test -z "$ac_cv_prog_NMEDIT"; then
7732 ac_ct_NMEDIT=$NMEDIT
7733 # Extract the first word of "nmedit", so it can be a program name with args.
7734 set dummy nmedit; ac_word=$2
7735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7736 printf %s "checking for $ac_word... " >&6; }
7737 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7738 then :
7739 printf %s "(cached) " >&6
7740 else $as_nop
7741 if test -n "$ac_ct_NMEDIT"; then
7742 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7743 else
7744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7745 for as_dir in $PATH
7746 do
7747 IFS=$as_save_IFS
7748 case $as_dir in #(((
7749 '') as_dir=./ ;;
7750 */) ;;
7751 *) as_dir=$as_dir/ ;;
7752 esac
7753 for ac_exec_ext in '' $ac_executable_extensions; do
7754 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7755 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7757 break 2
7758 fi
7759 done
7760 done
7761 IFS=$as_save_IFS
7762
7763 fi
7764 fi
7765 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7766 if test -n "$ac_ct_NMEDIT"; then
7767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7768 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7769 else
7770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7771 printf "%s\n" "no" >&6; }
7772 fi
7773
7774 if test "x$ac_ct_NMEDIT" = x; then
7775 NMEDIT=":"
7776 else
7777 case $cross_compiling:$ac_tool_warned in
7778 yes:)
7779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7780 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7781 ac_tool_warned=yes ;;
7782 esac
7783 NMEDIT=$ac_ct_NMEDIT
7784 fi
7785 else
7786 NMEDIT="$ac_cv_prog_NMEDIT"
7787 fi
7788
7789 if test -n "$ac_tool_prefix"; then
7790 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7791 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7793 printf %s "checking for $ac_word... " >&6; }
7794 if test ${ac_cv_prog_LIPO+y}
7795 then :
7796 printf %s "(cached) " >&6
7797 else $as_nop
7798 if test -n "$LIPO"; then
7799 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7800 else
7801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802 for as_dir in $PATH
7803 do
7804 IFS=$as_save_IFS
7805 case $as_dir in #(((
7806 '') as_dir=./ ;;
7807 */) ;;
7808 *) as_dir=$as_dir/ ;;
7809 esac
7810 for ac_exec_ext in '' $ac_executable_extensions; do
7811 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7812 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7813 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7814 break 2
7815 fi
7816 done
7817 done
7818 IFS=$as_save_IFS
7819
7820 fi
7821 fi
7822 LIPO=$ac_cv_prog_LIPO
7823 if test -n "$LIPO"; then
7824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7825 printf "%s\n" "$LIPO" >&6; }
7826 else
7827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7828 printf "%s\n" "no" >&6; }
7829 fi
7830
7831
7832 fi
7833 if test -z "$ac_cv_prog_LIPO"; then
7834 ac_ct_LIPO=$LIPO
7835 # Extract the first word of "lipo", so it can be a program name with args.
7836 set dummy lipo; ac_word=$2
7837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7838 printf %s "checking for $ac_word... " >&6; }
7839 if test ${ac_cv_prog_ac_ct_LIPO+y}
7840 then :
7841 printf %s "(cached) " >&6
7842 else $as_nop
7843 if test -n "$ac_ct_LIPO"; then
7844 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7845 else
7846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7847 for as_dir in $PATH
7848 do
7849 IFS=$as_save_IFS
7850 case $as_dir in #(((
7851 '') as_dir=./ ;;
7852 */) ;;
7853 *) as_dir=$as_dir/ ;;
7854 esac
7855 for ac_exec_ext in '' $ac_executable_extensions; do
7856 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7857 ac_cv_prog_ac_ct_LIPO="lipo"
7858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7859 break 2
7860 fi
7861 done
7862 done
7863 IFS=$as_save_IFS
7864
7865 fi
7866 fi
7867 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7868 if test -n "$ac_ct_LIPO"; then
7869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7870 printf "%s\n" "$ac_ct_LIPO" >&6; }
7871 else
7872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873 printf "%s\n" "no" >&6; }
7874 fi
7875
7876 if test "x$ac_ct_LIPO" = x; then
7877 LIPO=":"
7878 else
7879 case $cross_compiling:$ac_tool_warned in
7880 yes:)
7881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7882 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7883 ac_tool_warned=yes ;;
7884 esac
7885 LIPO=$ac_ct_LIPO
7886 fi
7887 else
7888 LIPO="$ac_cv_prog_LIPO"
7889 fi
7890
7891 if test -n "$ac_tool_prefix"; then
7892 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7893 set dummy ${ac_tool_prefix}otool; ac_word=$2
7894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7895 printf %s "checking for $ac_word... " >&6; }
7896 if test ${ac_cv_prog_OTOOL+y}
7897 then :
7898 printf %s "(cached) " >&6
7899 else $as_nop
7900 if test -n "$OTOOL"; then
7901 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7902 else
7903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7904 for as_dir in $PATH
7905 do
7906 IFS=$as_save_IFS
7907 case $as_dir in #(((
7908 '') as_dir=./ ;;
7909 */) ;;
7910 *) as_dir=$as_dir/ ;;
7911 esac
7912 for ac_exec_ext in '' $ac_executable_extensions; do
7913 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7914 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7916 break 2
7917 fi
7918 done
7919 done
7920 IFS=$as_save_IFS
7921
7922 fi
7923 fi
7924 OTOOL=$ac_cv_prog_OTOOL
7925 if test -n "$OTOOL"; then
7926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7927 printf "%s\n" "$OTOOL" >&6; }
7928 else
7929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7930 printf "%s\n" "no" >&6; }
7931 fi
7932
7933
7934 fi
7935 if test -z "$ac_cv_prog_OTOOL"; then
7936 ac_ct_OTOOL=$OTOOL
7937 # Extract the first word of "otool", so it can be a program name with args.
7938 set dummy otool; ac_word=$2
7939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940 printf %s "checking for $ac_word... " >&6; }
7941 if test ${ac_cv_prog_ac_ct_OTOOL+y}
7942 then :
7943 printf %s "(cached) " >&6
7944 else $as_nop
7945 if test -n "$ac_ct_OTOOL"; then
7946 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7947 else
7948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949 for as_dir in $PATH
7950 do
7951 IFS=$as_save_IFS
7952 case $as_dir in #(((
7953 '') as_dir=./ ;;
7954 */) ;;
7955 *) as_dir=$as_dir/ ;;
7956 esac
7957 for ac_exec_ext in '' $ac_executable_extensions; do
7958 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7959 ac_cv_prog_ac_ct_OTOOL="otool"
7960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7961 break 2
7962 fi
7963 done
7964 done
7965 IFS=$as_save_IFS
7966
7967 fi
7968 fi
7969 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7970 if test -n "$ac_ct_OTOOL"; then
7971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7972 printf "%s\n" "$ac_ct_OTOOL" >&6; }
7973 else
7974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7975 printf "%s\n" "no" >&6; }
7976 fi
7977
7978 if test "x$ac_ct_OTOOL" = x; then
7979 OTOOL=":"
7980 else
7981 case $cross_compiling:$ac_tool_warned in
7982 yes:)
7983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7984 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7985 ac_tool_warned=yes ;;
7986 esac
7987 OTOOL=$ac_ct_OTOOL
7988 fi
7989 else
7990 OTOOL="$ac_cv_prog_OTOOL"
7991 fi
7992
7993 if test -n "$ac_tool_prefix"; then
7994 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7995 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7997 printf %s "checking for $ac_word... " >&6; }
7998 if test ${ac_cv_prog_OTOOL64+y}
7999 then :
8000 printf %s "(cached) " >&6
8001 else $as_nop
8002 if test -n "$OTOOL64"; then
8003 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8004 else
8005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006 for as_dir in $PATH
8007 do
8008 IFS=$as_save_IFS
8009 case $as_dir in #(((
8010 '') as_dir=./ ;;
8011 */) ;;
8012 *) as_dir=$as_dir/ ;;
8013 esac
8014 for ac_exec_ext in '' $ac_executable_extensions; do
8015 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8016 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8018 break 2
8019 fi
8020 done
8021 done
8022 IFS=$as_save_IFS
8023
8024 fi
8025 fi
8026 OTOOL64=$ac_cv_prog_OTOOL64
8027 if test -n "$OTOOL64"; then
8028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8029 printf "%s\n" "$OTOOL64" >&6; }
8030 else
8031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8032 printf "%s\n" "no" >&6; }
8033 fi
8034
8035
8036 fi
8037 if test -z "$ac_cv_prog_OTOOL64"; then
8038 ac_ct_OTOOL64=$OTOOL64
8039 # Extract the first word of "otool64", so it can be a program name with args.
8040 set dummy otool64; ac_word=$2
8041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8042 printf %s "checking for $ac_word... " >&6; }
8043 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8044 then :
8045 printf %s "(cached) " >&6
8046 else $as_nop
8047 if test -n "$ac_ct_OTOOL64"; then
8048 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8049 else
8050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8051 for as_dir in $PATH
8052 do
8053 IFS=$as_save_IFS
8054 case $as_dir in #(((
8055 '') as_dir=./ ;;
8056 */) ;;
8057 *) as_dir=$as_dir/ ;;
8058 esac
8059 for ac_exec_ext in '' $ac_executable_extensions; do
8060 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8061 ac_cv_prog_ac_ct_OTOOL64="otool64"
8062 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8063 break 2
8064 fi
8065 done
8066 done
8067 IFS=$as_save_IFS
8068
8069 fi
8070 fi
8071 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8072 if test -n "$ac_ct_OTOOL64"; then
8073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8074 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8075 else
8076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8077 printf "%s\n" "no" >&6; }
8078 fi
8079
8080 if test "x$ac_ct_OTOOL64" = x; then
8081 OTOOL64=":"
8082 else
8083 case $cross_compiling:$ac_tool_warned in
8084 yes:)
8085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8086 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8087 ac_tool_warned=yes ;;
8088 esac
8089 OTOOL64=$ac_ct_OTOOL64
8090 fi
8091 else
8092 OTOOL64="$ac_cv_prog_OTOOL64"
8093 fi
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8122 printf %s "checking for -single_module linker flag... " >&6; }
8123 if test ${lt_cv_apple_cc_single_mod+y}
8124 then :
8125 printf %s "(cached) " >&6
8126 else $as_nop
8127 lt_cv_apple_cc_single_mod=no
8128 if test -z "$LT_MULTI_MODULE"; then
8129 # By default we will add the -single_module flag. You can override
8130 # by either setting the environment variable LT_MULTI_MODULE
8131 # non-empty at configure time, or by adding -multi_module to the
8132 # link flags.
8133 rm -rf libconftest.dylib*
8134 echo "int foo(void){return 1;}" > conftest.c
8135 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8136 -dynamiclib -Wl,-single_module conftest.c" >&5
8137 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8138 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8139 _lt_result=$?
8140 # If there is a non-empty error log, and "single_module"
8141 # appears in it, assume the flag caused a linker warning
8142 if test -s conftest.err && $GREP single_module conftest.err; then
8143 cat conftest.err >&5
8144 # Otherwise, if the output was created with a 0 exit code from
8145 # the compiler, it worked.
8146 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8147 lt_cv_apple_cc_single_mod=yes
8148 else
8149 cat conftest.err >&5
8150 fi
8151 rm -rf libconftest.dylib*
8152 rm -f conftest.*
8153 fi
8154 fi
8155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8156 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8157
8158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8159 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8160 if test ${lt_cv_ld_exported_symbols_list+y}
8161 then :
8162 printf %s "(cached) " >&6
8163 else $as_nop
8164 lt_cv_ld_exported_symbols_list=no
8165 save_LDFLAGS=$LDFLAGS
8166 echo "_main" > conftest.sym
8167 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8169 /* end confdefs.h. */
8170
8171 int
8172 main (void)
8173 {
8174
8175 ;
8176 return 0;
8177 }
8178 _ACEOF
8179 if ac_fn_c_try_link "$LINENO"
8180 then :
8181 lt_cv_ld_exported_symbols_list=yes
8182 else $as_nop
8183 lt_cv_ld_exported_symbols_list=no
8184 fi
8185 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8186 conftest$ac_exeext conftest.$ac_ext
8187 LDFLAGS=$save_LDFLAGS
8188
8189 fi
8190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8191 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8192
8193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8194 printf %s "checking for -force_load linker flag... " >&6; }
8195 if test ${lt_cv_ld_force_load+y}
8196 then :
8197 printf %s "(cached) " >&6
8198 else $as_nop
8199 lt_cv_ld_force_load=no
8200 cat > conftest.c << _LT_EOF
8201 int forced_loaded() { return 2;}
8202 _LT_EOF
8203 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8204 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8205 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8206 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8207 echo "$RANLIB libconftest.a" >&5
8208 $RANLIB libconftest.a 2>&5
8209 cat > conftest.c << _LT_EOF
8210 int main() { return 0;}
8211 _LT_EOF
8212 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8213 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8214 _lt_result=$?
8215 if test -s conftest.err && $GREP force_load conftest.err; then
8216 cat conftest.err >&5
8217 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8218 lt_cv_ld_force_load=yes
8219 else
8220 cat conftest.err >&5
8221 fi
8222 rm -f conftest.err libconftest.a conftest conftest.c
8223 rm -rf conftest.dSYM
8224
8225 fi
8226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8227 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8228 case $host_os in
8229 rhapsody* | darwin1.[012])
8230 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8231 darwin1.*)
8232 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8233 darwin*)
8234 case $MACOSX_DEPLOYMENT_TARGET,$host in
8235 10.[012],*|,*powerpc*-darwin[5-8]*)
8236 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8237 *)
8238 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8239 esac
8240 ;;
8241 esac
8242 if test yes = "$lt_cv_apple_cc_single_mod"; then
8243 _lt_dar_single_mod='$single_module'
8244 fi
8245 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8246 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8247 else
8248 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8249 fi
8250 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8251 _lt_dsymutil='~$DSYMUTIL $lib || :'
8252 else
8253 _lt_dsymutil=
8254 fi
8255 ;;
8256 esac
8257
8258 # func_munge_path_list VARIABLE PATH
8259 # -----------------------------------
8260 # VARIABLE is name of variable containing _space_ separated list of
8261 # directories to be munged by the contents of PATH, which is string
8262 # having a format:
8263 # "DIR[:DIR]:"
8264 # string "DIR[ DIR]" will be prepended to VARIABLE
8265 # ":DIR[:DIR]"
8266 # string "DIR[ DIR]" will be appended to VARIABLE
8267 # "DIRP[:DIRP]::[DIRA:]DIRA"
8268 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8269 # "DIRA[ DIRA]" will be appended to VARIABLE
8270 # "DIR[:DIR]"
8271 # VARIABLE will be replaced by "DIR[ DIR]"
8272 func_munge_path_list ()
8273 {
8274 case x$2 in
8275 x)
8276 ;;
8277 *:)
8278 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8279 ;;
8280 x:*)
8281 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8282 ;;
8283 *::*)
8284 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8285 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8286 ;;
8287 *)
8288 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8289 ;;
8290 esac
8291 }
8292
8293 ac_header= ac_cache=
8294 for ac_item in $ac_header_c_list
8295 do
8296 if test $ac_cache; then
8297 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8298 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8299 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8300 fi
8301 ac_header= ac_cache=
8302 elif test $ac_header; then
8303 ac_cache=$ac_item
8304 else
8305 ac_header=$ac_item
8306 fi
8307 done
8308
8309
8310
8311
8312
8313
8314
8315
8316 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8317 then :
8318
8319 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8320
8321 fi
8322 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8323 "
8324 if test "x$ac_cv_header_dlfcn_h" = xyes
8325 then :
8326 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8327
8328 fi
8329
8330
8331
8332
8333
8334 # Set options
8335
8336
8337
8338 enable_dlopen=no
8339
8340
8341 enable_win32_dll=no
8342
8343
8344 # Check whether --enable-shared was given.
8345 if test ${enable_shared+y}
8346 then :
8347 enableval=$enable_shared; p=${PACKAGE-default}
8348 case $enableval in
8349 yes) enable_shared=yes ;;
8350 no) enable_shared=no ;;
8351 *)
8352 enable_shared=no
8353 # Look at the argument we got. We use all the common list separators.
8354 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8355 for pkg in $enableval; do
8356 IFS=$lt_save_ifs
8357 if test "X$pkg" = "X$p"; then
8358 enable_shared=yes
8359 fi
8360 done
8361 IFS=$lt_save_ifs
8362 ;;
8363 esac
8364 else $as_nop
8365 enable_shared=yes
8366 fi
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376 # Check whether --enable-static was given.
8377 if test ${enable_static+y}
8378 then :
8379 enableval=$enable_static; p=${PACKAGE-default}
8380 case $enableval in
8381 yes) enable_static=yes ;;
8382 no) enable_static=no ;;
8383 *)
8384 enable_static=no
8385 # Look at the argument we got. We use all the common list separators.
8386 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8387 for pkg in $enableval; do
8388 IFS=$lt_save_ifs
8389 if test "X$pkg" = "X$p"; then
8390 enable_static=yes
8391 fi
8392 done
8393 IFS=$lt_save_ifs
8394 ;;
8395 esac
8396 else $as_nop
8397 enable_static=yes
8398 fi
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409 # Check whether --with-pic was given.
8410 if test ${with_pic+y}
8411 then :
8412 withval=$with_pic; lt_p=${PACKAGE-default}
8413 case $withval in
8414 yes|no) pic_mode=$withval ;;
8415 *)
8416 pic_mode=default
8417 # Look at the argument we got. We use all the common list separators.
8418 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8419 for lt_pkg in $withval; do
8420 IFS=$lt_save_ifs
8421 if test "X$lt_pkg" = "X$lt_p"; then
8422 pic_mode=yes
8423 fi
8424 done
8425 IFS=$lt_save_ifs
8426 ;;
8427 esac
8428 else $as_nop
8429 pic_mode=default
8430 fi
8431
8432
8433
8434
8435
8436
8437
8438
8439 # Check whether --enable-fast-install was given.
8440 if test ${enable_fast_install+y}
8441 then :
8442 enableval=$enable_fast_install; p=${PACKAGE-default}
8443 case $enableval in
8444 yes) enable_fast_install=yes ;;
8445 no) enable_fast_install=no ;;
8446 *)
8447 enable_fast_install=no
8448 # Look at the argument we got. We use all the common list separators.
8449 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8450 for pkg in $enableval; do
8451 IFS=$lt_save_ifs
8452 if test "X$pkg" = "X$p"; then
8453 enable_fast_install=yes
8454 fi
8455 done
8456 IFS=$lt_save_ifs
8457 ;;
8458 esac
8459 else $as_nop
8460 enable_fast_install=yes
8461 fi
8462
8463
8464
8465
8466
8467
8468
8469
8470 shared_archive_member_spec=
8471 case $host,$enable_shared in
8472 power*-*-aix[5-9]*,yes)
8473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8474 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8475
8476 # Check whether --with-aix-soname was given.
8477 if test ${with_aix_soname+y}
8478 then :
8479 withval=$with_aix_soname; case $withval in
8480 aix|svr4|both)
8481 ;;
8482 *)
8483 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8484 ;;
8485 esac
8486 lt_cv_with_aix_soname=$with_aix_soname
8487 else $as_nop
8488 if test ${lt_cv_with_aix_soname+y}
8489 then :
8490 printf %s "(cached) " >&6
8491 else $as_nop
8492 lt_cv_with_aix_soname=aix
8493 fi
8494
8495 with_aix_soname=$lt_cv_with_aix_soname
8496 fi
8497
8498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8499 printf "%s\n" "$with_aix_soname" >&6; }
8500 if test aix != "$with_aix_soname"; then
8501 # For the AIX way of multilib, we name the shared archive member
8502 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8503 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8504 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8505 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8506 if test 64 = "${OBJECT_MODE-32}"; then
8507 shared_archive_member_spec=shr_64
8508 else
8509 shared_archive_member_spec=shr
8510 fi
8511 fi
8512 ;;
8513 *)
8514 with_aix_soname=aix
8515 ;;
8516 esac
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527 # This can be used to rebuild libtool when needed
8528 LIBTOOL_DEPS=$ltmain
8529
8530 # Always use our own libtool.
8531 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562 test -z "$LN_S" && LN_S="ln -s"
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577 if test -n "${ZSH_VERSION+set}"; then
8578 setopt NO_GLOB_SUBST
8579 fi
8580
8581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8582 printf %s "checking for objdir... " >&6; }
8583 if test ${lt_cv_objdir+y}
8584 then :
8585 printf %s "(cached) " >&6
8586 else $as_nop
8587 rm -f .libs 2>/dev/null
8588 mkdir .libs 2>/dev/null
8589 if test -d .libs; then
8590 lt_cv_objdir=.libs
8591 else
8592 # MS-DOS does not allow filenames that begin with a dot.
8593 lt_cv_objdir=_libs
8594 fi
8595 rmdir .libs 2>/dev/null
8596 fi
8597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8598 printf "%s\n" "$lt_cv_objdir" >&6; }
8599 objdir=$lt_cv_objdir
8600
8601
8602
8603
8604
8605 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8606
8607
8608
8609
8610 case $host_os in
8611 aix3*)
8612 # AIX sometimes has problems with the GCC collect2 program. For some
8613 # reason, if we set the COLLECT_NAMES environment variable, the problems
8614 # vanish in a puff of smoke.
8615 if test set != "${COLLECT_NAMES+set}"; then
8616 COLLECT_NAMES=
8617 export COLLECT_NAMES
8618 fi
8619 ;;
8620 esac
8621
8622 # Global variables:
8623 ofile=libtool
8624 can_build_shared=yes
8625
8626 # All known linkers require a '.a' archive for static linking (except MSVC and
8627 # ICC, which need '.lib').
8628 libext=a
8629
8630 with_gnu_ld=$lt_cv_prog_gnu_ld
8631
8632 old_CC=$CC
8633 old_CFLAGS=$CFLAGS
8634
8635 # Set sane defaults for various variables
8636 test -z "$CC" && CC=cc
8637 test -z "$LTCC" && LTCC=$CC
8638 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8639 test -z "$LD" && LD=ld
8640 test -z "$ac_objext" && ac_objext=o
8641
8642 func_cc_basename $compiler
8643 cc_basename=$func_cc_basename_result
8644
8645
8646 # Only perform the check for file, if the check method requires it
8647 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8648 case $deplibs_check_method in
8649 file_magic*)
8650 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8652 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8653 if test ${lt_cv_path_MAGIC_CMD+y}
8654 then :
8655 printf %s "(cached) " >&6
8656 else $as_nop
8657 case $MAGIC_CMD in
8658 [\\/*] | ?:[\\/]*)
8659 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8660 ;;
8661 *)
8662 lt_save_MAGIC_CMD=$MAGIC_CMD
8663 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8664 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8665 for ac_dir in $ac_dummy; do
8666 IFS=$lt_save_ifs
8667 test -z "$ac_dir" && ac_dir=.
8668 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8669 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8670 if test -n "$file_magic_test_file"; then
8671 case $deplibs_check_method in
8672 "file_magic "*)
8673 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8674 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8675 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8676 $EGREP "$file_magic_regex" > /dev/null; then
8677 :
8678 else
8679 cat <<_LT_EOF 1>&2
8680
8681 *** Warning: the command libtool uses to detect shared libraries,
8682 *** $file_magic_cmd, produces output that libtool cannot recognize.
8683 *** The result is that libtool may fail to recognize shared libraries
8684 *** as such. This will affect the creation of libtool libraries that
8685 *** depend on shared libraries, but programs linked with such libtool
8686 *** libraries will work regardless of this problem. Nevertheless, you
8687 *** may want to report the problem to your system manager and/or to
8688 *** [email protected]
8689
8690 _LT_EOF
8691 fi ;;
8692 esac
8693 fi
8694 break
8695 fi
8696 done
8697 IFS=$lt_save_ifs
8698 MAGIC_CMD=$lt_save_MAGIC_CMD
8699 ;;
8700 esac
8701 fi
8702
8703 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8704 if test -n "$MAGIC_CMD"; then
8705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8706 printf "%s\n" "$MAGIC_CMD" >&6; }
8707 else
8708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8709 printf "%s\n" "no" >&6; }
8710 fi
8711
8712
8713
8714
8715
8716 if test -z "$lt_cv_path_MAGIC_CMD"; then
8717 if test -n "$ac_tool_prefix"; then
8718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8719 printf %s "checking for file... " >&6; }
8720 if test ${lt_cv_path_MAGIC_CMD+y}
8721 then :
8722 printf %s "(cached) " >&6
8723 else $as_nop
8724 case $MAGIC_CMD in
8725 [\\/*] | ?:[\\/]*)
8726 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8727 ;;
8728 *)
8729 lt_save_MAGIC_CMD=$MAGIC_CMD
8730 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8731 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8732 for ac_dir in $ac_dummy; do
8733 IFS=$lt_save_ifs
8734 test -z "$ac_dir" && ac_dir=.
8735 if test -f "$ac_dir/file"; then
8736 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8737 if test -n "$file_magic_test_file"; then
8738 case $deplibs_check_method in
8739 "file_magic "*)
8740 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8741 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8742 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8743 $EGREP "$file_magic_regex" > /dev/null; then
8744 :
8745 else
8746 cat <<_LT_EOF 1>&2
8747
8748 *** Warning: the command libtool uses to detect shared libraries,
8749 *** $file_magic_cmd, produces output that libtool cannot recognize.
8750 *** The result is that libtool may fail to recognize shared libraries
8751 *** as such. This will affect the creation of libtool libraries that
8752 *** depend on shared libraries, but programs linked with such libtool
8753 *** libraries will work regardless of this problem. Nevertheless, you
8754 *** may want to report the problem to your system manager and/or to
8755 *** [email protected]
8756
8757 _LT_EOF
8758 fi ;;
8759 esac
8760 fi
8761 break
8762 fi
8763 done
8764 IFS=$lt_save_ifs
8765 MAGIC_CMD=$lt_save_MAGIC_CMD
8766 ;;
8767 esac
8768 fi
8769
8770 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8771 if test -n "$MAGIC_CMD"; then
8772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8773 printf "%s\n" "$MAGIC_CMD" >&6; }
8774 else
8775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8776 printf "%s\n" "no" >&6; }
8777 fi
8778
8779
8780 else
8781 MAGIC_CMD=:
8782 fi
8783 fi
8784
8785 fi
8786 ;;
8787 esac
8788
8789 # Use C for the default configuration in the libtool script
8790
8791 lt_save_CC=$CC
8792 ac_ext=c
8793 ac_cpp='$CPP $CPPFLAGS'
8794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8797
8798
8799 # Source file extension for C test sources.
8800 ac_ext=c
8801
8802 # Object file extension for compiled C test sources.
8803 objext=o
8804 objext=$objext
8805
8806 # Code to be used in simple compile tests
8807 lt_simple_compile_test_code="int some_variable = 0;"
8808
8809 # Code to be used in simple link tests
8810 lt_simple_link_test_code='int main(){return(0);}'
8811
8812
8813
8814
8815
8816
8817
8818 # If no C compiler was specified, use CC.
8819 LTCC=${LTCC-"$CC"}
8820
8821 # If no C compiler flags were specified, use CFLAGS.
8822 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8823
8824 # Allow CC to be a program name with arguments.
8825 compiler=$CC
8826
8827 # Save the default compiler, since it gets overwritten when the other
8828 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8829 compiler_DEFAULT=$CC
8830
8831 # save warnings/boilerplate of simple test code
8832 ac_outfile=conftest.$ac_objext
8833 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8834 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8835 _lt_compiler_boilerplate=`cat conftest.err`
8836 $RM conftest*
8837
8838 ac_outfile=conftest.$ac_objext
8839 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8840 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8841 _lt_linker_boilerplate=`cat conftest.err`
8842 $RM -r conftest*
8843
8844
8845 ## CAVEAT EMPTOR:
8846 ## There is no encapsulation within the following macros, do not change
8847 ## the running order or otherwise move them around unless you know exactly
8848 ## what you are doing...
8849 if test -n "$compiler"; then
8850
8851 lt_prog_compiler_no_builtin_flag=
8852
8853 if test yes = "$GCC"; then
8854 case $cc_basename in
8855 nvcc*)
8856 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8857 *)
8858 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8859 esac
8860
8861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8862 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8863 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8864 then :
8865 printf %s "(cached) " >&6
8866 else $as_nop
8867 lt_cv_prog_compiler_rtti_exceptions=no
8868 ac_outfile=conftest.$ac_objext
8869 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8870 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8871 # Insert the option either (1) after the last *FLAGS variable, or
8872 # (2) before a word containing "conftest.", or (3) at the end.
8873 # Note that $ac_compile itself does not contain backslashes and begins
8874 # with a dollar sign (not a hyphen), so the echo should work correctly.
8875 # The option is referenced via a variable to avoid confusing sed.
8876 lt_compile=`echo "$ac_compile" | $SED \
8877 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8878 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8879 -e 's:$: $lt_compiler_flag:'`
8880 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8881 (eval "$lt_compile" 2>conftest.err)
8882 ac_status=$?
8883 cat conftest.err >&5
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 if (exit $ac_status) && test -s "$ac_outfile"; then
8886 # The compiler can only warn and ignore the option if not recognized
8887 # So say no if there are warnings other than the usual output.
8888 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8889 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8890 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8891 lt_cv_prog_compiler_rtti_exceptions=yes
8892 fi
8893 fi
8894 $RM conftest*
8895
8896 fi
8897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8898 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8899
8900 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8901 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8902 else
8903 :
8904 fi
8905
8906 fi
8907
8908
8909
8910
8911
8912
8913 lt_prog_compiler_wl=
8914 lt_prog_compiler_pic=
8915 lt_prog_compiler_static=
8916
8917
8918 if test yes = "$GCC"; then
8919 lt_prog_compiler_wl='-Wl,'
8920 lt_prog_compiler_static='-static'
8921
8922 case $host_os in
8923 aix*)
8924 # All AIX code is PIC.
8925 if test ia64 = "$host_cpu"; then
8926 # AIX 5 now supports IA64 processor
8927 lt_prog_compiler_static='-Bstatic'
8928 fi
8929 lt_prog_compiler_pic='-fPIC'
8930 ;;
8931
8932 amigaos*)
8933 case $host_cpu in
8934 powerpc)
8935 # see comment about AmigaOS4 .so support
8936 lt_prog_compiler_pic='-fPIC'
8937 ;;
8938 m68k)
8939 # FIXME: we need at least 68020 code to build shared libraries, but
8940 # adding the '-m68020' flag to GCC prevents building anything better,
8941 # like '-m68040'.
8942 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8943 ;;
8944 esac
8945 ;;
8946
8947 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8948 # PIC is the default for these OSes.
8949 ;;
8950
8951 mingw* | cygwin* | pw32* | os2* | cegcc*)
8952 # This hack is so that the source file can tell whether it is being
8953 # built for inclusion in a dll (and should export symbols for example).
8954 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8955 # (--disable-auto-import) libraries
8956 lt_prog_compiler_pic='-DDLL_EXPORT'
8957 case $host_os in
8958 os2*)
8959 lt_prog_compiler_static='$wl-static'
8960 ;;
8961 esac
8962 ;;
8963
8964 darwin* | rhapsody*)
8965 # PIC is the default on this platform
8966 # Common symbols not allowed in MH_DYLIB files
8967 lt_prog_compiler_pic='-fno-common'
8968 ;;
8969
8970 haiku*)
8971 # PIC is the default for Haiku.
8972 # The "-static" flag exists, but is broken.
8973 lt_prog_compiler_static=
8974 ;;
8975
8976 hpux*)
8977 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8978 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8979 # sets the default TLS model and affects inlining.
8980 case $host_cpu in
8981 hppa*64*)
8982 # +Z the default
8983 ;;
8984 *)
8985 lt_prog_compiler_pic='-fPIC'
8986 ;;
8987 esac
8988 ;;
8989
8990 interix[3-9]*)
8991 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8992 # Instead, we relocate shared libraries at runtime.
8993 ;;
8994
8995 msdosdjgpp*)
8996 # Just because we use GCC doesn't mean we suddenly get shared libraries
8997 # on systems that don't support them.
8998 lt_prog_compiler_can_build_shared=no
8999 enable_shared=no
9000 ;;
9001
9002 *nto* | *qnx*)
9003 # QNX uses GNU C++, but need to define -shared option too, otherwise
9004 # it will coredump.
9005 lt_prog_compiler_pic='-fPIC -shared'
9006 ;;
9007
9008 sysv4*MP*)
9009 if test -d /usr/nec; then
9010 lt_prog_compiler_pic=-Kconform_pic
9011 fi
9012 ;;
9013
9014 *)
9015 lt_prog_compiler_pic='-fPIC'
9016 ;;
9017 esac
9018
9019 case $cc_basename in
9020 nvcc*) # Cuda Compiler Driver 2.2
9021 lt_prog_compiler_wl='-Xlinker '
9022 if test -n "$lt_prog_compiler_pic"; then
9023 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9024 fi
9025 ;;
9026 esac
9027 else
9028 # PORTME Check for flag to pass linker flags through the system compiler.
9029 case $host_os in
9030 aix*)
9031 lt_prog_compiler_wl='-Wl,'
9032 if test ia64 = "$host_cpu"; then
9033 # AIX 5 now supports IA64 processor
9034 lt_prog_compiler_static='-Bstatic'
9035 else
9036 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9037 fi
9038 ;;
9039
9040 darwin* | rhapsody*)
9041 # PIC is the default on this platform
9042 # Common symbols not allowed in MH_DYLIB files
9043 lt_prog_compiler_pic='-fno-common'
9044 case $cc_basename in
9045 nagfor*)
9046 # NAG Fortran compiler
9047 lt_prog_compiler_wl='-Wl,-Wl,,'
9048 lt_prog_compiler_pic='-PIC'
9049 lt_prog_compiler_static='-Bstatic'
9050 ;;
9051 esac
9052 ;;
9053
9054 mingw* | cygwin* | pw32* | os2* | cegcc*)
9055 # This hack is so that the source file can tell whether it is being
9056 # built for inclusion in a dll (and should export symbols for example).
9057 lt_prog_compiler_pic='-DDLL_EXPORT'
9058 case $host_os in
9059 os2*)
9060 lt_prog_compiler_static='$wl-static'
9061 ;;
9062 esac
9063 ;;
9064
9065 hpux9* | hpux10* | hpux11*)
9066 lt_prog_compiler_wl='-Wl,'
9067 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9068 # not for PA HP-UX.
9069 case $host_cpu in
9070 hppa*64*|ia64*)
9071 # +Z the default
9072 ;;
9073 *)
9074 lt_prog_compiler_pic='+Z'
9075 ;;
9076 esac
9077 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9078 lt_prog_compiler_static='$wl-a ${wl}archive'
9079 ;;
9080
9081 irix5* | irix6* | nonstopux*)
9082 lt_prog_compiler_wl='-Wl,'
9083 # PIC (with -KPIC) is the default.
9084 lt_prog_compiler_static='-non_shared'
9085 ;;
9086
9087 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9088 case $cc_basename in
9089 # old Intel for x86_64, which still supported -KPIC.
9090 ecc*)
9091 lt_prog_compiler_wl='-Wl,'
9092 lt_prog_compiler_pic='-KPIC'
9093 lt_prog_compiler_static='-static'
9094 ;;
9095 # icc used to be incompatible with GCC.
9096 # ICC 10 doesn't accept -KPIC any more.
9097 icc* | ifort*)
9098 lt_prog_compiler_wl='-Wl,'
9099 lt_prog_compiler_pic='-fPIC'
9100 lt_prog_compiler_static='-static'
9101 ;;
9102 # Lahey Fortran 8.1.
9103 lf95*)
9104 lt_prog_compiler_wl='-Wl,'
9105 lt_prog_compiler_pic='--shared'
9106 lt_prog_compiler_static='--static'
9107 ;;
9108 nagfor*)
9109 # NAG Fortran compiler
9110 lt_prog_compiler_wl='-Wl,-Wl,,'
9111 lt_prog_compiler_pic='-PIC'
9112 lt_prog_compiler_static='-Bstatic'
9113 ;;
9114 tcc*)
9115 # Fabrice Bellard et al's Tiny C Compiler
9116 lt_prog_compiler_wl='-Wl,'
9117 lt_prog_compiler_pic='-fPIC'
9118 lt_prog_compiler_static='-static'
9119 ;;
9120 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9121 # Portland Group compilers (*not* the Pentium gcc compiler,
9122 # which looks to be a dead project)
9123 lt_prog_compiler_wl='-Wl,'
9124 lt_prog_compiler_pic='-fpic'
9125 lt_prog_compiler_static='-Bstatic'
9126 ;;
9127 ccc*)
9128 lt_prog_compiler_wl='-Wl,'
9129 # All Alpha code is PIC.
9130 lt_prog_compiler_static='-non_shared'
9131 ;;
9132 xl* | bgxl* | bgf* | mpixl*)
9133 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9134 lt_prog_compiler_wl='-Wl,'
9135 lt_prog_compiler_pic='-qpic'
9136 lt_prog_compiler_static='-qstaticlink'
9137 ;;
9138 *)
9139 case `$CC -V 2>&1 | $SED 5q` in
9140 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9141 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9142 lt_prog_compiler_pic='-KPIC'
9143 lt_prog_compiler_static='-Bstatic'
9144 lt_prog_compiler_wl=''
9145 ;;
9146 *Sun\ F* | *Sun*Fortran*)
9147 lt_prog_compiler_pic='-KPIC'
9148 lt_prog_compiler_static='-Bstatic'
9149 lt_prog_compiler_wl='-Qoption ld '
9150 ;;
9151 *Sun\ C*)
9152 # Sun C 5.9
9153 lt_prog_compiler_pic='-KPIC'
9154 lt_prog_compiler_static='-Bstatic'
9155 lt_prog_compiler_wl='-Wl,'
9156 ;;
9157 *Intel*\ [CF]*Compiler*)
9158 lt_prog_compiler_wl='-Wl,'
9159 lt_prog_compiler_pic='-fPIC'
9160 lt_prog_compiler_static='-static'
9161 ;;
9162 *Portland\ Group*)
9163 lt_prog_compiler_wl='-Wl,'
9164 lt_prog_compiler_pic='-fpic'
9165 lt_prog_compiler_static='-Bstatic'
9166 ;;
9167 esac
9168 ;;
9169 esac
9170 ;;
9171
9172 newsos6)
9173 lt_prog_compiler_pic='-KPIC'
9174 lt_prog_compiler_static='-Bstatic'
9175 ;;
9176
9177 *nto* | *qnx*)
9178 # QNX uses GNU C++, but need to define -shared option too, otherwise
9179 # it will coredump.
9180 lt_prog_compiler_pic='-fPIC -shared'
9181 ;;
9182
9183 osf3* | osf4* | osf5*)
9184 lt_prog_compiler_wl='-Wl,'
9185 # All OSF/1 code is PIC.
9186 lt_prog_compiler_static='-non_shared'
9187 ;;
9188
9189 rdos*)
9190 lt_prog_compiler_static='-non_shared'
9191 ;;
9192
9193 solaris*)
9194 lt_prog_compiler_pic='-KPIC'
9195 lt_prog_compiler_static='-Bstatic'
9196 case $cc_basename in
9197 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9198 lt_prog_compiler_wl='-Qoption ld ';;
9199 *)
9200 lt_prog_compiler_wl='-Wl,';;
9201 esac
9202 ;;
9203
9204 sunos4*)
9205 lt_prog_compiler_wl='-Qoption ld '
9206 lt_prog_compiler_pic='-PIC'
9207 lt_prog_compiler_static='-Bstatic'
9208 ;;
9209
9210 sysv4 | sysv4.2uw2* | sysv4.3*)
9211 lt_prog_compiler_wl='-Wl,'
9212 lt_prog_compiler_pic='-KPIC'
9213 lt_prog_compiler_static='-Bstatic'
9214 ;;
9215
9216 sysv4*MP*)
9217 if test -d /usr/nec; then
9218 lt_prog_compiler_pic='-Kconform_pic'
9219 lt_prog_compiler_static='-Bstatic'
9220 fi
9221 ;;
9222
9223 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9224 lt_prog_compiler_wl='-Wl,'
9225 lt_prog_compiler_pic='-KPIC'
9226 lt_prog_compiler_static='-Bstatic'
9227 ;;
9228
9229 unicos*)
9230 lt_prog_compiler_wl='-Wl,'
9231 lt_prog_compiler_can_build_shared=no
9232 ;;
9233
9234 uts4*)
9235 lt_prog_compiler_pic='-pic'
9236 lt_prog_compiler_static='-Bstatic'
9237 ;;
9238
9239 *)
9240 lt_prog_compiler_can_build_shared=no
9241 ;;
9242 esac
9243 fi
9244
9245 case $host_os in
9246 # For platforms that do not support PIC, -DPIC is meaningless:
9247 *djgpp*)
9248 lt_prog_compiler_pic=
9249 ;;
9250 *)
9251 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9252 ;;
9253 esac
9254
9255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9256 printf %s "checking for $compiler option to produce PIC... " >&6; }
9257 if test ${lt_cv_prog_compiler_pic+y}
9258 then :
9259 printf %s "(cached) " >&6
9260 else $as_nop
9261 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9262 fi
9263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9264 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9265 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9266
9267 #
9268 # Check to make sure the PIC flag actually works.
9269 #
9270 if test -n "$lt_prog_compiler_pic"; then
9271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9272 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9273 if test ${lt_cv_prog_compiler_pic_works+y}
9274 then :
9275 printf %s "(cached) " >&6
9276 else $as_nop
9277 lt_cv_prog_compiler_pic_works=no
9278 ac_outfile=conftest.$ac_objext
9279 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9280 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9281 # Insert the option either (1) after the last *FLAGS variable, or
9282 # (2) before a word containing "conftest.", or (3) at the end.
9283 # Note that $ac_compile itself does not contain backslashes and begins
9284 # with a dollar sign (not a hyphen), so the echo should work correctly.
9285 # The option is referenced via a variable to avoid confusing sed.
9286 lt_compile=`echo "$ac_compile" | $SED \
9287 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9288 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9289 -e 's:$: $lt_compiler_flag:'`
9290 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9291 (eval "$lt_compile" 2>conftest.err)
9292 ac_status=$?
9293 cat conftest.err >&5
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 if (exit $ac_status) && test -s "$ac_outfile"; then
9296 # The compiler can only warn and ignore the option if not recognized
9297 # So say no if there are warnings other than the usual output.
9298 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9299 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9300 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9301 lt_cv_prog_compiler_pic_works=yes
9302 fi
9303 fi
9304 $RM conftest*
9305
9306 fi
9307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9308 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9309
9310 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9311 case $lt_prog_compiler_pic in
9312 "" | " "*) ;;
9313 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9314 esac
9315 else
9316 lt_prog_compiler_pic=
9317 lt_prog_compiler_can_build_shared=no
9318 fi
9319
9320 fi
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332 #
9333 # Check to make sure the static flag actually works.
9334 #
9335 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9337 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9338 if test ${lt_cv_prog_compiler_static_works+y}
9339 then :
9340 printf %s "(cached) " >&6
9341 else $as_nop
9342 lt_cv_prog_compiler_static_works=no
9343 save_LDFLAGS=$LDFLAGS
9344 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9345 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9346 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9347 # The linker can only warn and ignore the option if not recognized
9348 # So say no if there are warnings
9349 if test -s conftest.err; then
9350 # Append any errors to the config.log.
9351 cat conftest.err 1>&5
9352 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9353 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9354 if diff conftest.exp conftest.er2 >/dev/null; then
9355 lt_cv_prog_compiler_static_works=yes
9356 fi
9357 else
9358 lt_cv_prog_compiler_static_works=yes
9359 fi
9360 fi
9361 $RM -r conftest*
9362 LDFLAGS=$save_LDFLAGS
9363
9364 fi
9365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9366 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9367
9368 if test yes = "$lt_cv_prog_compiler_static_works"; then
9369 :
9370 else
9371 lt_prog_compiler_static=
9372 fi
9373
9374
9375
9376
9377
9378
9379
9380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9381 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9382 if test ${lt_cv_prog_compiler_c_o+y}
9383 then :
9384 printf %s "(cached) " >&6
9385 else $as_nop
9386 lt_cv_prog_compiler_c_o=no
9387 $RM -r conftest 2>/dev/null
9388 mkdir conftest
9389 cd conftest
9390 mkdir out
9391 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9392
9393 lt_compiler_flag="-o out/conftest2.$ac_objext"
9394 # Insert the option either (1) after the last *FLAGS variable, or
9395 # (2) before a word containing "conftest.", or (3) at the end.
9396 # Note that $ac_compile itself does not contain backslashes and begins
9397 # with a dollar sign (not a hyphen), so the echo should work correctly.
9398 lt_compile=`echo "$ac_compile" | $SED \
9399 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9400 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9401 -e 's:$: $lt_compiler_flag:'`
9402 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9403 (eval "$lt_compile" 2>out/conftest.err)
9404 ac_status=$?
9405 cat out/conftest.err >&5
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9408 then
9409 # The compiler can only warn and ignore the option if not recognized
9410 # So say no if there are warnings
9411 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9412 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9413 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9414 lt_cv_prog_compiler_c_o=yes
9415 fi
9416 fi
9417 chmod u+w . 2>&5
9418 $RM conftest*
9419 # SGI C++ compiler will create directory out/ii_files/ for
9420 # template instantiation
9421 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9422 $RM out/* && rmdir out
9423 cd ..
9424 $RM -r conftest
9425 $RM conftest*
9426
9427 fi
9428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9429 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9430
9431
9432
9433
9434
9435
9436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9437 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9438 if test ${lt_cv_prog_compiler_c_o+y}
9439 then :
9440 printf %s "(cached) " >&6
9441 else $as_nop
9442 lt_cv_prog_compiler_c_o=no
9443 $RM -r conftest 2>/dev/null
9444 mkdir conftest
9445 cd conftest
9446 mkdir out
9447 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9448
9449 lt_compiler_flag="-o out/conftest2.$ac_objext"
9450 # Insert the option either (1) after the last *FLAGS variable, or
9451 # (2) before a word containing "conftest.", or (3) at the end.
9452 # Note that $ac_compile itself does not contain backslashes and begins
9453 # with a dollar sign (not a hyphen), so the echo should work correctly.
9454 lt_compile=`echo "$ac_compile" | $SED \
9455 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9456 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9457 -e 's:$: $lt_compiler_flag:'`
9458 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9459 (eval "$lt_compile" 2>out/conftest.err)
9460 ac_status=$?
9461 cat out/conftest.err >&5
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9464 then
9465 # The compiler can only warn and ignore the option if not recognized
9466 # So say no if there are warnings
9467 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9468 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9469 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9470 lt_cv_prog_compiler_c_o=yes
9471 fi
9472 fi
9473 chmod u+w . 2>&5
9474 $RM conftest*
9475 # SGI C++ compiler will create directory out/ii_files/ for
9476 # template instantiation
9477 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9478 $RM out/* && rmdir out
9479 cd ..
9480 $RM -r conftest
9481 $RM conftest*
9482
9483 fi
9484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9485 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9486
9487
9488
9489
9490 hard_links=nottested
9491 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9492 # do not overwrite the value of need_locks provided by the user
9493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9494 printf %s "checking if we can lock with hard links... " >&6; }
9495 hard_links=yes
9496 $RM conftest*
9497 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9498 touch conftest.a
9499 ln conftest.a conftest.b 2>&5 || hard_links=no
9500 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9502 printf "%s\n" "$hard_links" >&6; }
9503 if test no = "$hard_links"; then
9504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9505 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9506 need_locks=warn
9507 fi
9508 else
9509 need_locks=no
9510 fi
9511
9512
9513
9514
9515
9516
9517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9518 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9519
9520 runpath_var=
9521 allow_undefined_flag=
9522 always_export_symbols=no
9523 archive_cmds=
9524 archive_expsym_cmds=
9525 compiler_needs_object=no
9526 enable_shared_with_static_runtimes=no
9527 export_dynamic_flag_spec=
9528 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9529 hardcode_automatic=no
9530 hardcode_direct=no
9531 hardcode_direct_absolute=no
9532 hardcode_libdir_flag_spec=
9533 hardcode_libdir_separator=
9534 hardcode_minus_L=no
9535 hardcode_shlibpath_var=unsupported
9536 inherit_rpath=no
9537 link_all_deplibs=unknown
9538 module_cmds=
9539 module_expsym_cmds=
9540 old_archive_from_new_cmds=
9541 old_archive_from_expsyms_cmds=
9542 thread_safe_flag_spec=
9543 whole_archive_flag_spec=
9544 # include_expsyms should be a list of space-separated symbols to be *always*
9545 # included in the symbol list
9546 include_expsyms=
9547 # exclude_expsyms can be an extended regexp of symbols to exclude
9548 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9549 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9550 # as well as any symbol that contains 'd'.
9551 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9552 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9553 # platforms (ab)use it in PIC code, but their linkers get confused if
9554 # the symbol is explicitly referenced. Since portable code cannot
9555 # rely on this symbol name, it's probably fine to never include it in
9556 # preloaded symbol tables.
9557 # Exclude shared library initialization/finalization symbols.
9558 extract_expsyms_cmds=
9559
9560 case $host_os in
9561 cygwin* | mingw* | pw32* | cegcc*)
9562 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9563 # When not using gcc, we currently assume that we are using
9564 # Microsoft Visual C++ or Intel C++ Compiler.
9565 if test yes != "$GCC"; then
9566 with_gnu_ld=no
9567 fi
9568 ;;
9569 interix*)
9570 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9571 with_gnu_ld=yes
9572 ;;
9573 openbsd* | bitrig*)
9574 with_gnu_ld=no
9575 ;;
9576 esac
9577
9578 ld_shlibs=yes
9579
9580 # On some targets, GNU ld is compatible enough with the native linker
9581 # that we're better off using the native interface for both.
9582 lt_use_gnu_ld_interface=no
9583 if test yes = "$with_gnu_ld"; then
9584 case $host_os in
9585 aix*)
9586 # The AIX port of GNU ld has always aspired to compatibility
9587 # with the native linker. However, as the warning in the GNU ld
9588 # block says, versions before 2.19.5* couldn't really create working
9589 # shared libraries, regardless of the interface used.
9590 case `$LD -v 2>&1` in
9591 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9592 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9593 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9594 *)
9595 lt_use_gnu_ld_interface=yes
9596 ;;
9597 esac
9598 ;;
9599 *)
9600 lt_use_gnu_ld_interface=yes
9601 ;;
9602 esac
9603 fi
9604
9605 if test yes = "$lt_use_gnu_ld_interface"; then
9606 # If archive_cmds runs LD, not CC, wlarc should be empty
9607 wlarc='$wl'
9608
9609 # Set some defaults for GNU ld with shared library support. These
9610 # are reset later if shared libraries are not supported. Putting them
9611 # here allows them to be overridden if necessary.
9612 runpath_var=LD_RUN_PATH
9613 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9614 export_dynamic_flag_spec='$wl--export-dynamic'
9615 # ancient GNU ld didn't support --whole-archive et. al.
9616 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9617 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9618 else
9619 whole_archive_flag_spec=
9620 fi
9621 supports_anon_versioning=no
9622 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9623 *GNU\ gold*) supports_anon_versioning=yes ;;
9624 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9625 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9626 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9627 *\ 2.11.*) ;; # other 2.11 versions
9628 *) supports_anon_versioning=yes ;;
9629 esac
9630
9631 # See if GNU ld supports shared libraries.
9632 case $host_os in
9633 aix[3-9]*)
9634 # On AIX/PPC, the GNU linker is very broken
9635 if test ia64 != "$host_cpu"; then
9636 ld_shlibs=no
9637 cat <<_LT_EOF 1>&2
9638
9639 *** Warning: the GNU linker, at least up to release 2.19, is reported
9640 *** to be unable to reliably create shared libraries on AIX.
9641 *** Therefore, libtool is disabling shared libraries support. If you
9642 *** really care for shared libraries, you may want to install binutils
9643 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9644 *** You will then need to restart the configuration process.
9645
9646 _LT_EOF
9647 fi
9648 ;;
9649
9650 amigaos*)
9651 case $host_cpu in
9652 powerpc)
9653 # see comment about AmigaOS4 .so support
9654 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9655 archive_expsym_cmds=''
9656 ;;
9657 m68k)
9658 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)'
9659 hardcode_libdir_flag_spec='-L$libdir'
9660 hardcode_minus_L=yes
9661 ;;
9662 esac
9663 ;;
9664
9665 beos*)
9666 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9667 allow_undefined_flag=unsupported
9668 # Joseph Beckenbach <[email protected]> says some releases of gcc
9669 # support --undefined. This deserves some investigation. FIXME
9670 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9671 else
9672 ld_shlibs=no
9673 fi
9674 ;;
9675
9676 cygwin* | mingw* | pw32* | cegcc*)
9677 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9678 # as there is no search path for DLLs.
9679 hardcode_libdir_flag_spec='-L$libdir'
9680 export_dynamic_flag_spec='$wl--export-all-symbols'
9681 allow_undefined_flag=unsupported
9682 always_export_symbols=no
9683 enable_shared_with_static_runtimes=yes
9684 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'
9685 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9686
9687 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9688 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9689 # If the export-symbols file already is a .def file, use it as
9690 # is; otherwise, prepend EXPORTS...
9691 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9692 cp $export_symbols $output_objdir/$soname.def;
9693 else
9694 echo EXPORTS > $output_objdir/$soname.def;
9695 cat $export_symbols >> $output_objdir/$soname.def;
9696 fi~
9697 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9698 else
9699 ld_shlibs=no
9700 fi
9701 ;;
9702
9703 haiku*)
9704 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9705 link_all_deplibs=yes
9706 ;;
9707
9708 os2*)
9709 hardcode_libdir_flag_spec='-L$libdir'
9710 hardcode_minus_L=yes
9711 allow_undefined_flag=unsupported
9712 shrext_cmds=.dll
9713 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9714 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9715 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9716 $ECHO EXPORTS >> $output_objdir/$libname.def~
9717 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9718 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9719 emximp -o $lib $output_objdir/$libname.def'
9720 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9721 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9722 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9723 $ECHO EXPORTS >> $output_objdir/$libname.def~
9724 prefix_cmds="$SED"~
9725 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9726 prefix_cmds="$prefix_cmds -e 1d";
9727 fi~
9728 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9729 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9730 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9731 emximp -o $lib $output_objdir/$libname.def'
9732 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9733 enable_shared_with_static_runtimes=yes
9734 file_list_spec='@'
9735 ;;
9736
9737 interix[3-9]*)
9738 hardcode_direct=no
9739 hardcode_shlibpath_var=no
9740 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9741 export_dynamic_flag_spec='$wl-E'
9742 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9743 # Instead, shared libraries are loaded at an image base (0x10000000 by
9744 # default) and relocated if they conflict, which is a slow very memory
9745 # consuming and fragmenting process. To avoid this, we pick a random,
9746 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9747 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9748 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9749 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'
9750 ;;
9751
9752 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9753 tmp_diet=no
9754 if test linux-dietlibc = "$host_os"; then
9755 case $cc_basename in
9756 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9757 esac
9758 fi
9759 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9760 && test no = "$tmp_diet"
9761 then
9762 tmp_addflag=' $pic_flag'
9763 tmp_sharedflag='-shared'
9764 case $cc_basename,$host_cpu in
9765 pgcc*) # Portland Group C compiler
9766 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'
9767 tmp_addflag=' $pic_flag'
9768 ;;
9769 pgf77* | pgf90* | pgf95* | pgfortran*)
9770 # Portland Group f77 and f90 compilers
9771 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'
9772 tmp_addflag=' $pic_flag -Mnomain' ;;
9773 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9774 tmp_addflag=' -i_dynamic' ;;
9775 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9776 tmp_addflag=' -i_dynamic -nofor_main' ;;
9777 ifc* | ifort*) # Intel Fortran compiler
9778 tmp_addflag=' -nofor_main' ;;
9779 lf95*) # Lahey Fortran 8.1
9780 whole_archive_flag_spec=
9781 tmp_sharedflag='--shared' ;;
9782 nagfor*) # NAGFOR 5.3
9783 tmp_sharedflag='-Wl,-shared' ;;
9784 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9785 tmp_sharedflag='-qmkshrobj'
9786 tmp_addflag= ;;
9787 nvcc*) # Cuda Compiler Driver 2.2
9788 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'
9789 compiler_needs_object=yes
9790 ;;
9791 esac
9792 case `$CC -V 2>&1 | $SED 5q` in
9793 *Sun\ C*) # Sun C 5.9
9794 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'
9795 compiler_needs_object=yes
9796 tmp_sharedflag='-G' ;;
9797 *Sun\ F*) # Sun Fortran 8.3
9798 tmp_sharedflag='-G' ;;
9799 esac
9800 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9801
9802 if test yes = "$supports_anon_versioning"; then
9803 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9804 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9805 echo "local: *; };" >> $output_objdir/$libname.ver~
9806 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9807 fi
9808
9809 case $cc_basename in
9810 tcc*)
9811 export_dynamic_flag_spec='-rdynamic'
9812 ;;
9813 xlf* | bgf* | bgxlf* | mpixlf*)
9814 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9815 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9816 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9817 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9818 if test yes = "$supports_anon_versioning"; then
9819 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9820 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9821 echo "local: *; };" >> $output_objdir/$libname.ver~
9822 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9823 fi
9824 ;;
9825 esac
9826 else
9827 ld_shlibs=no
9828 fi
9829 ;;
9830
9831 netbsd*)
9832 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9833 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9834 wlarc=
9835 else
9836 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9837 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9838 fi
9839 ;;
9840
9841 solaris*)
9842 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9843 ld_shlibs=no
9844 cat <<_LT_EOF 1>&2
9845
9846 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9847 *** create shared libraries on Solaris systems. Therefore, libtool
9848 *** is disabling shared libraries support. We urge you to upgrade GNU
9849 *** binutils to release 2.9.1 or newer. Another option is to modify
9850 *** your PATH or compiler configuration so that the native linker is
9851 *** used, and then restart.
9852
9853 _LT_EOF
9854 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9855 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9856 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9857 else
9858 ld_shlibs=no
9859 fi
9860 ;;
9861
9862 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9863 case `$LD -v 2>&1` in
9864 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9865 ld_shlibs=no
9866 cat <<_LT_EOF 1>&2
9867
9868 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9869 *** reliably create shared libraries on SCO systems. Therefore, libtool
9870 *** is disabling shared libraries support. We urge you to upgrade GNU
9871 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9872 *** your PATH or compiler configuration so that the native linker is
9873 *** used, and then restart.
9874
9875 _LT_EOF
9876 ;;
9877 *)
9878 # For security reasons, it is highly recommended that you always
9879 # use absolute paths for naming shared libraries, and exclude the
9880 # DT_RUNPATH tag from executables and libraries. But doing so
9881 # requires that you compile everything twice, which is a pain.
9882 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9883 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9884 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9885 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9886 else
9887 ld_shlibs=no
9888 fi
9889 ;;
9890 esac
9891 ;;
9892
9893 sunos4*)
9894 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9895 wlarc=
9896 hardcode_direct=yes
9897 hardcode_shlibpath_var=no
9898 ;;
9899
9900 *)
9901 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9902 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9903 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9904 else
9905 ld_shlibs=no
9906 fi
9907 ;;
9908 esac
9909
9910 if test no = "$ld_shlibs"; then
9911 runpath_var=
9912 hardcode_libdir_flag_spec=
9913 export_dynamic_flag_spec=
9914 whole_archive_flag_spec=
9915 fi
9916 else
9917 # PORTME fill in a description of your system's linker (not GNU ld)
9918 case $host_os in
9919 aix3*)
9920 allow_undefined_flag=unsupported
9921 always_export_symbols=yes
9922 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'
9923 # Note: this linker hardcodes the directories in LIBPATH if there
9924 # are no directories specified by -L.
9925 hardcode_minus_L=yes
9926 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9927 # Neither direct hardcoding nor static linking is supported with a
9928 # broken collect2.
9929 hardcode_direct=unsupported
9930 fi
9931 ;;
9932
9933 aix[4-9]*)
9934 if test ia64 = "$host_cpu"; then
9935 # On IA64, the linker does run time linking by default, so we don't
9936 # have to do anything special.
9937 aix_use_runtimelinking=no
9938 exp_sym_flag='-Bexport'
9939 no_entry_flag=
9940 else
9941 # If we're using GNU nm, then we don't want the "-C" option.
9942 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9943 # Without the "-l" option, or with the "-B" option, AIX nm treats
9944 # weak defined symbols like other global defined symbols, whereas
9945 # GNU nm marks them as "W".
9946 # While the 'weak' keyword is ignored in the Export File, we need
9947 # it in the Import File for the 'aix-soname' feature, so we have
9948 # to replace the "-B" option with "-P" for AIX nm.
9949 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9950 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'
9951 else
9952 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'
9953 fi
9954 aix_use_runtimelinking=no
9955
9956 # Test if we are trying to use run time linking or normal
9957 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9958 # have runtime linking enabled, and use it for executables.
9959 # For shared libraries, we enable/disable runtime linking
9960 # depending on the kind of the shared library created -
9961 # when "with_aix_soname,aix_use_runtimelinking" is:
9962 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9963 # "aix,yes" lib.so shared, rtl:yes, for executables
9964 # lib.a static archive
9965 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9966 # lib.a(lib.so.V) shared, rtl:no, for executables
9967 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9968 # lib.a(lib.so.V) shared, rtl:no
9969 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9970 # lib.a static archive
9971 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9972 for ld_flag in $LDFLAGS; do
9973 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9974 aix_use_runtimelinking=yes
9975 break
9976 fi
9977 done
9978 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9979 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9980 # so we don't have lib.a shared libs to link our executables.
9981 # We have to force runtime linking in this case.
9982 aix_use_runtimelinking=yes
9983 LDFLAGS="$LDFLAGS -Wl,-brtl"
9984 fi
9985 ;;
9986 esac
9987
9988 exp_sym_flag='-bexport'
9989 no_entry_flag='-bnoentry'
9990 fi
9991
9992 # When large executables or shared objects are built, AIX ld can
9993 # have problems creating the table of contents. If linking a library
9994 # or program results in "error TOC overflow" add -mminimal-toc to
9995 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9996 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9997
9998 archive_cmds=''
9999 hardcode_direct=yes
10000 hardcode_direct_absolute=yes
10001 hardcode_libdir_separator=':'
10002 link_all_deplibs=yes
10003 file_list_spec='$wl-f,'
10004 case $with_aix_soname,$aix_use_runtimelinking in
10005 aix,*) ;; # traditional, no import file
10006 svr4,* | *,yes) # use import file
10007 # The Import File defines what to hardcode.
10008 hardcode_direct=no
10009 hardcode_direct_absolute=no
10010 ;;
10011 esac
10012
10013 if test yes = "$GCC"; then
10014 case $host_os in aix4.[012]|aix4.[012].*)
10015 # We only want to do this on AIX 4.2 and lower, the check
10016 # below for broken collect2 doesn't work under 4.3+
10017 collect2name=`$CC -print-prog-name=collect2`
10018 if test -f "$collect2name" &&
10019 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10020 then
10021 # We have reworked collect2
10022 :
10023 else
10024 # We have old collect2
10025 hardcode_direct=unsupported
10026 # It fails to find uninstalled libraries when the uninstalled
10027 # path is not listed in the libpath. Setting hardcode_minus_L
10028 # to unsupported forces relinking
10029 hardcode_minus_L=yes
10030 hardcode_libdir_flag_spec='-L$libdir'
10031 hardcode_libdir_separator=
10032 fi
10033 ;;
10034 esac
10035 shared_flag='-shared'
10036 if test yes = "$aix_use_runtimelinking"; then
10037 shared_flag="$shared_flag "'$wl-G'
10038 fi
10039 # Need to ensure runtime linking is disabled for the traditional
10040 # shared library, or the linker may eventually find shared libraries
10041 # /with/ Import File - we do not want to mix them.
10042 shared_flag_aix='-shared'
10043 shared_flag_svr4='-shared $wl-G'
10044 else
10045 # not using gcc
10046 if test ia64 = "$host_cpu"; then
10047 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10048 # chokes on -Wl,-G. The following line is correct:
10049 shared_flag='-G'
10050 else
10051 if test yes = "$aix_use_runtimelinking"; then
10052 shared_flag='$wl-G'
10053 else
10054 shared_flag='$wl-bM:SRE'
10055 fi
10056 shared_flag_aix='$wl-bM:SRE'
10057 shared_flag_svr4='$wl-G'
10058 fi
10059 fi
10060
10061 export_dynamic_flag_spec='$wl-bexpall'
10062 # It seems that -bexpall does not export symbols beginning with
10063 # underscore (_), so it is better to generate a list of symbols to export.
10064 always_export_symbols=yes
10065 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10066 # Warning - without using the other runtime loading flags (-brtl),
10067 # -berok will link without error, but may produce a broken library.
10068 allow_undefined_flag='-berok'
10069 # Determine the default libpath from the value encoded in an
10070 # empty executable.
10071 if test set = "${lt_cv_aix_libpath+set}"; then
10072 aix_libpath=$lt_cv_aix_libpath
10073 else
10074 if test ${lt_cv_aix_libpath_+y}
10075 then :
10076 printf %s "(cached) " >&6
10077 else $as_nop
10078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10079 /* end confdefs.h. */
10080
10081 int
10082 main (void)
10083 {
10084
10085 ;
10086 return 0;
10087 }
10088 _ACEOF
10089 if ac_fn_c_try_link "$LINENO"
10090 then :
10091
10092 lt_aix_libpath_sed='
10093 /Import File Strings/,/^$/ {
10094 /^0/ {
10095 s/^0 *\([^ ]*\) *$/\1/
10096 p
10097 }
10098 }'
10099 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10100 # Check for a 64-bit object if we didn't find anything.
10101 if test -z "$lt_cv_aix_libpath_"; then
10102 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10103 fi
10104 fi
10105 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10106 conftest$ac_exeext conftest.$ac_ext
10107 if test -z "$lt_cv_aix_libpath_"; then
10108 lt_cv_aix_libpath_=/usr/lib:/lib
10109 fi
10110
10111 fi
10112
10113 aix_libpath=$lt_cv_aix_libpath_
10114 fi
10115
10116 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10117 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
10118 else
10119 if test ia64 = "$host_cpu"; then
10120 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10121 allow_undefined_flag="-z nodefs"
10122 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"
10123 else
10124 # Determine the default libpath from the value encoded in an
10125 # empty executable.
10126 if test set = "${lt_cv_aix_libpath+set}"; then
10127 aix_libpath=$lt_cv_aix_libpath
10128 else
10129 if test ${lt_cv_aix_libpath_+y}
10130 then :
10131 printf %s "(cached) " >&6
10132 else $as_nop
10133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10134 /* end confdefs.h. */
10135
10136 int
10137 main (void)
10138 {
10139
10140 ;
10141 return 0;
10142 }
10143 _ACEOF
10144 if ac_fn_c_try_link "$LINENO"
10145 then :
10146
10147 lt_aix_libpath_sed='
10148 /Import File Strings/,/^$/ {
10149 /^0/ {
10150 s/^0 *\([^ ]*\) *$/\1/
10151 p
10152 }
10153 }'
10154 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10155 # Check for a 64-bit object if we didn't find anything.
10156 if test -z "$lt_cv_aix_libpath_"; then
10157 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10158 fi
10159 fi
10160 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10161 conftest$ac_exeext conftest.$ac_ext
10162 if test -z "$lt_cv_aix_libpath_"; then
10163 lt_cv_aix_libpath_=/usr/lib:/lib
10164 fi
10165
10166 fi
10167
10168 aix_libpath=$lt_cv_aix_libpath_
10169 fi
10170
10171 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10172 # Warning - without using the other run time loading flags,
10173 # -berok will link without error, but may produce a broken library.
10174 no_undefined_flag=' $wl-bernotok'
10175 allow_undefined_flag=' $wl-berok'
10176 if test yes = "$with_gnu_ld"; then
10177 # We only use this code for GNU lds that support --whole-archive.
10178 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10179 else
10180 # Exported symbols can be pulled into shared objects from archives
10181 whole_archive_flag_spec='$convenience'
10182 fi
10183 archive_cmds_need_lc=yes
10184 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10185 # -brtl affects multiple linker settings, -berok does not and is overridden later
10186 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10187 if test svr4 != "$with_aix_soname"; then
10188 # This is similar to how AIX traditionally builds its shared libraries.
10189 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'
10190 fi
10191 if test aix != "$with_aix_soname"; then
10192 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'
10193 else
10194 # used by -dlpreopen to get the symbols
10195 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10196 fi
10197 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10198 fi
10199 fi
10200 ;;
10201
10202 amigaos*)
10203 case $host_cpu in
10204 powerpc)
10205 # see comment about AmigaOS4 .so support
10206 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10207 archive_expsym_cmds=''
10208 ;;
10209 m68k)
10210 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)'
10211 hardcode_libdir_flag_spec='-L$libdir'
10212 hardcode_minus_L=yes
10213 ;;
10214 esac
10215 ;;
10216
10217 bsdi[45]*)
10218 export_dynamic_flag_spec=-rdynamic
10219 ;;
10220
10221 cygwin* | mingw* | pw32* | cegcc*)
10222 # When not using gcc, we currently assume that we are using
10223 # Microsoft Visual C++ or Intel C++ Compiler.
10224 # hardcode_libdir_flag_spec is actually meaningless, as there is
10225 # no search path for DLLs.
10226 case $cc_basename in
10227 cl* | icl*)
10228 # Native MSVC or ICC
10229 hardcode_libdir_flag_spec=' '
10230 allow_undefined_flag=unsupported
10231 always_export_symbols=yes
10232 file_list_spec='@'
10233 # Tell ltmain to make .lib files, not .a files.
10234 libext=lib
10235 # Tell ltmain to make .dll files, not .so files.
10236 shrext_cmds=.dll
10237 # FIXME: Setting linknames here is a bad hack.
10238 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10239 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10240 cp "$export_symbols" "$output_objdir/$soname.def";
10241 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10242 else
10243 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10244 fi~
10245 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10246 linknames='
10247 # The linker will not automatically build a static lib if we build a DLL.
10248 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10249 enable_shared_with_static_runtimes=yes
10250 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10251 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10252 # Don't use ranlib
10253 old_postinstall_cmds='chmod 644 $oldlib'
10254 postlink_cmds='lt_outputfile="@OUTPUT@"~
10255 lt_tool_outputfile="@TOOL_OUTPUT@"~
10256 case $lt_outputfile in
10257 *.exe|*.EXE) ;;
10258 *)
10259 lt_outputfile=$lt_outputfile.exe
10260 lt_tool_outputfile=$lt_tool_outputfile.exe
10261 ;;
10262 esac~
10263 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10264 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10265 $RM "$lt_outputfile.manifest";
10266 fi'
10267 ;;
10268 *)
10269 # Assume MSVC and ICC wrapper
10270 hardcode_libdir_flag_spec=' '
10271 allow_undefined_flag=unsupported
10272 # Tell ltmain to make .lib files, not .a files.
10273 libext=lib
10274 # Tell ltmain to make .dll files, not .so files.
10275 shrext_cmds=.dll
10276 # FIXME: Setting linknames here is a bad hack.
10277 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10278 # The linker will automatically build a .lib file if we build a DLL.
10279 old_archive_from_new_cmds='true'
10280 # FIXME: Should let the user specify the lib program.
10281 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10282 enable_shared_with_static_runtimes=yes
10283 ;;
10284 esac
10285 ;;
10286
10287 darwin* | rhapsody*)
10288
10289
10290 archive_cmds_need_lc=no
10291 hardcode_direct=no
10292 hardcode_automatic=yes
10293 hardcode_shlibpath_var=unsupported
10294 if test yes = "$lt_cv_ld_force_load"; then
10295 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\"`'
10296
10297 else
10298 whole_archive_flag_spec=''
10299 fi
10300 link_all_deplibs=yes
10301 allow_undefined_flag=$_lt_dar_allow_undefined
10302 case $cc_basename in
10303 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10304 *) _lt_dar_can_shared=$GCC ;;
10305 esac
10306 if test yes = "$_lt_dar_can_shared"; then
10307 output_verbose_link_cmd=func_echo_all
10308 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10309 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10310 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"
10311 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"
10312
10313 else
10314 ld_shlibs=no
10315 fi
10316
10317 ;;
10318
10319 dgux*)
10320 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10321 hardcode_libdir_flag_spec='-L$libdir'
10322 hardcode_shlibpath_var=no
10323 ;;
10324
10325 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10326 # support. Future versions do this automatically, but an explicit c++rt0.o
10327 # does not break anything, and helps significantly (at the cost of a little
10328 # extra space).
10329 freebsd2.2*)
10330 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10331 hardcode_libdir_flag_spec='-R$libdir'
10332 hardcode_direct=yes
10333 hardcode_shlibpath_var=no
10334 ;;
10335
10336 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10337 freebsd2.*)
10338 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10339 hardcode_direct=yes
10340 hardcode_minus_L=yes
10341 hardcode_shlibpath_var=no
10342 ;;
10343
10344 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10345 freebsd* | dragonfly* | midnightbsd*)
10346 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10347 hardcode_libdir_flag_spec='-R$libdir'
10348 hardcode_direct=yes
10349 hardcode_shlibpath_var=no
10350 ;;
10351
10352 hpux9*)
10353 if test yes = "$GCC"; then
10354 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'
10355 else
10356 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'
10357 fi
10358 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10359 hardcode_libdir_separator=:
10360 hardcode_direct=yes
10361
10362 # hardcode_minus_L: Not really in the search PATH,
10363 # but as the default location of the library.
10364 hardcode_minus_L=yes
10365 export_dynamic_flag_spec='$wl-E'
10366 ;;
10367
10368 hpux10*)
10369 if test yes,no = "$GCC,$with_gnu_ld"; then
10370 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10371 else
10372 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10373 fi
10374 if test no = "$with_gnu_ld"; then
10375 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10376 hardcode_libdir_separator=:
10377 hardcode_direct=yes
10378 hardcode_direct_absolute=yes
10379 export_dynamic_flag_spec='$wl-E'
10380 # hardcode_minus_L: Not really in the search PATH,
10381 # but as the default location of the library.
10382 hardcode_minus_L=yes
10383 fi
10384 ;;
10385
10386 hpux11*)
10387 if test yes,no = "$GCC,$with_gnu_ld"; then
10388 case $host_cpu in
10389 hppa*64*)
10390 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10391 ;;
10392 ia64*)
10393 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10394 ;;
10395 *)
10396 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10397 ;;
10398 esac
10399 else
10400 case $host_cpu in
10401 hppa*64*)
10402 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10403 ;;
10404 ia64*)
10405 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10406 ;;
10407 *)
10408
10409 # Older versions of the 11.00 compiler do not understand -b yet
10410 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10412 printf %s "checking if $CC understands -b... " >&6; }
10413 if test ${lt_cv_prog_compiler__b+y}
10414 then :
10415 printf %s "(cached) " >&6
10416 else $as_nop
10417 lt_cv_prog_compiler__b=no
10418 save_LDFLAGS=$LDFLAGS
10419 LDFLAGS="$LDFLAGS -b"
10420 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10421 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10422 # The linker can only warn and ignore the option if not recognized
10423 # So say no if there are warnings
10424 if test -s conftest.err; then
10425 # Append any errors to the config.log.
10426 cat conftest.err 1>&5
10427 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10428 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10429 if diff conftest.exp conftest.er2 >/dev/null; then
10430 lt_cv_prog_compiler__b=yes
10431 fi
10432 else
10433 lt_cv_prog_compiler__b=yes
10434 fi
10435 fi
10436 $RM -r conftest*
10437 LDFLAGS=$save_LDFLAGS
10438
10439 fi
10440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10441 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10442
10443 if test yes = "$lt_cv_prog_compiler__b"; then
10444 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10445 else
10446 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10447 fi
10448
10449 ;;
10450 esac
10451 fi
10452 if test no = "$with_gnu_ld"; then
10453 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10454 hardcode_libdir_separator=:
10455
10456 case $host_cpu in
10457 hppa*64*|ia64*)
10458 hardcode_direct=no
10459 hardcode_shlibpath_var=no
10460 ;;
10461 *)
10462 hardcode_direct=yes
10463 hardcode_direct_absolute=yes
10464 export_dynamic_flag_spec='$wl-E'
10465
10466 # hardcode_minus_L: Not really in the search PATH,
10467 # but as the default location of the library.
10468 hardcode_minus_L=yes
10469 ;;
10470 esac
10471 fi
10472 ;;
10473
10474 irix5* | irix6* | nonstopux*)
10475 if test yes = "$GCC"; then
10476 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'
10477 # Try to use the -exported_symbol ld option, if it does not
10478 # work, assume that -exports_file does not work either and
10479 # implicitly export all symbols.
10480 # This should be the same for all languages, so no per-tag cache variable.
10481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10482 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10483 if test ${lt_cv_irix_exported_symbol+y}
10484 then :
10485 printf %s "(cached) " >&6
10486 else $as_nop
10487 save_LDFLAGS=$LDFLAGS
10488 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10490 /* end confdefs.h. */
10491 int foo (void) { return 0; }
10492 _ACEOF
10493 if ac_fn_c_try_link "$LINENO"
10494 then :
10495 lt_cv_irix_exported_symbol=yes
10496 else $as_nop
10497 lt_cv_irix_exported_symbol=no
10498 fi
10499 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10500 conftest$ac_exeext conftest.$ac_ext
10501 LDFLAGS=$save_LDFLAGS
10502 fi
10503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10504 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10505 if test yes = "$lt_cv_irix_exported_symbol"; then
10506 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'
10507 fi
10508 else
10509 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'
10510 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'
10511 fi
10512 archive_cmds_need_lc='no'
10513 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10514 hardcode_libdir_separator=:
10515 inherit_rpath=yes
10516 link_all_deplibs=yes
10517 ;;
10518
10519 linux*)
10520 case $cc_basename in
10521 tcc*)
10522 # Fabrice Bellard et al's Tiny C Compiler
10523 ld_shlibs=yes
10524 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10525 ;;
10526 esac
10527 ;;
10528
10529 netbsd*)
10530 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10531 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10532 else
10533 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10534 fi
10535 hardcode_libdir_flag_spec='-R$libdir'
10536 hardcode_direct=yes
10537 hardcode_shlibpath_var=no
10538 ;;
10539
10540 newsos6)
10541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10542 hardcode_direct=yes
10543 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10544 hardcode_libdir_separator=:
10545 hardcode_shlibpath_var=no
10546 ;;
10547
10548 *nto* | *qnx*)
10549 ;;
10550
10551 openbsd* | bitrig*)
10552 if test -f /usr/libexec/ld.so; then
10553 hardcode_direct=yes
10554 hardcode_shlibpath_var=no
10555 hardcode_direct_absolute=yes
10556 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10557 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10558 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10559 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10560 export_dynamic_flag_spec='$wl-E'
10561 else
10562 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10563 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10564 fi
10565 else
10566 ld_shlibs=no
10567 fi
10568 ;;
10569
10570 os2*)
10571 hardcode_libdir_flag_spec='-L$libdir'
10572 hardcode_minus_L=yes
10573 allow_undefined_flag=unsupported
10574 shrext_cmds=.dll
10575 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10576 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10577 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10578 $ECHO EXPORTS >> $output_objdir/$libname.def~
10579 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10580 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10581 emximp -o $lib $output_objdir/$libname.def'
10582 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10583 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10584 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10585 $ECHO EXPORTS >> $output_objdir/$libname.def~
10586 prefix_cmds="$SED"~
10587 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10588 prefix_cmds="$prefix_cmds -e 1d";
10589 fi~
10590 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10591 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10592 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10593 emximp -o $lib $output_objdir/$libname.def'
10594 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10595 enable_shared_with_static_runtimes=yes
10596 file_list_spec='@'
10597 ;;
10598
10599 osf3*)
10600 if test yes = "$GCC"; then
10601 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10602 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'
10603 else
10604 allow_undefined_flag=' -expect_unresolved \*'
10605 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'
10606 fi
10607 archive_cmds_need_lc='no'
10608 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10609 hardcode_libdir_separator=:
10610 ;;
10611
10612 osf4* | osf5*) # as osf3* with the addition of -msym flag
10613 if test yes = "$GCC"; then
10614 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10615 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'
10616 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10617 else
10618 allow_undefined_flag=' -expect_unresolved \*'
10619 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'
10620 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~
10621 $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'
10622
10623 # Both c and cxx compiler support -rpath directly
10624 hardcode_libdir_flag_spec='-rpath $libdir'
10625 fi
10626 archive_cmds_need_lc='no'
10627 hardcode_libdir_separator=:
10628 ;;
10629
10630 solaris*)
10631 no_undefined_flag=' -z defs'
10632 if test yes = "$GCC"; then
10633 wlarc='$wl'
10634 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10635 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10636 $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'
10637 else
10638 case `$CC -V 2>&1` in
10639 *"Compilers 5.0"*)
10640 wlarc=''
10641 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10642 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10643 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10644 ;;
10645 *)
10646 wlarc='$wl'
10647 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10648 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10649 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10650 ;;
10651 esac
10652 fi
10653 hardcode_libdir_flag_spec='-R$libdir'
10654 hardcode_shlibpath_var=no
10655 case $host_os in
10656 solaris2.[0-5] | solaris2.[0-5].*) ;;
10657 *)
10658 # The compiler driver will combine and reorder linker options,
10659 # but understands '-z linker_flag'. GCC discards it without '$wl',
10660 # but is careful enough not to reorder.
10661 # Supported since Solaris 2.6 (maybe 2.5.1?)
10662 if test yes = "$GCC"; then
10663 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10664 else
10665 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10666 fi
10667 ;;
10668 esac
10669 link_all_deplibs=yes
10670 ;;
10671
10672 sunos4*)
10673 if test sequent = "$host_vendor"; then
10674 # Use $CC to link under sequent, because it throws in some extra .o
10675 # files that make .init and .fini sections work.
10676 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10677 else
10678 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10679 fi
10680 hardcode_libdir_flag_spec='-L$libdir'
10681 hardcode_direct=yes
10682 hardcode_minus_L=yes
10683 hardcode_shlibpath_var=no
10684 ;;
10685
10686 sysv4)
10687 case $host_vendor in
10688 sni)
10689 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10690 hardcode_direct=yes # is this really true???
10691 ;;
10692 siemens)
10693 ## LD is ld it makes a PLAMLIB
10694 ## CC just makes a GrossModule.
10695 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10696 reload_cmds='$CC -r -o $output$reload_objs'
10697 hardcode_direct=no
10698 ;;
10699 motorola)
10700 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10701 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10702 ;;
10703 esac
10704 runpath_var='LD_RUN_PATH'
10705 hardcode_shlibpath_var=no
10706 ;;
10707
10708 sysv4.3*)
10709 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10710 hardcode_shlibpath_var=no
10711 export_dynamic_flag_spec='-Bexport'
10712 ;;
10713
10714 sysv4*MP*)
10715 if test -d /usr/nec; then
10716 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10717 hardcode_shlibpath_var=no
10718 runpath_var=LD_RUN_PATH
10719 hardcode_runpath_var=yes
10720 ld_shlibs=yes
10721 fi
10722 ;;
10723
10724 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10725 no_undefined_flag='$wl-z,text'
10726 archive_cmds_need_lc=no
10727 hardcode_shlibpath_var=no
10728 runpath_var='LD_RUN_PATH'
10729
10730 if test yes = "$GCC"; then
10731 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10732 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10733 else
10734 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10735 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10736 fi
10737 ;;
10738
10739 sysv5* | sco3.2v5* | sco5v6*)
10740 # Note: We CANNOT use -z defs as we might desire, because we do not
10741 # link with -lc, and that would cause any symbols used from libc to
10742 # always be unresolved, which means just about no library would
10743 # ever link correctly. If we're not using GNU ld we use -z text
10744 # though, which does catch some bad symbols but isn't as heavy-handed
10745 # as -z defs.
10746 no_undefined_flag='$wl-z,text'
10747 allow_undefined_flag='$wl-z,nodefs'
10748 archive_cmds_need_lc=no
10749 hardcode_shlibpath_var=no
10750 hardcode_libdir_flag_spec='$wl-R,$libdir'
10751 hardcode_libdir_separator=':'
10752 link_all_deplibs=yes
10753 export_dynamic_flag_spec='$wl-Bexport'
10754 runpath_var='LD_RUN_PATH'
10755
10756 if test yes = "$GCC"; then
10757 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10758 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10759 else
10760 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10761 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10762 fi
10763 ;;
10764
10765 uts4*)
10766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10767 hardcode_libdir_flag_spec='-L$libdir'
10768 hardcode_shlibpath_var=no
10769 ;;
10770
10771 *)
10772 ld_shlibs=no
10773 ;;
10774 esac
10775
10776 if test sni = "$host_vendor"; then
10777 case $host in
10778 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10779 export_dynamic_flag_spec='$wl-Blargedynsym'
10780 ;;
10781 esac
10782 fi
10783 fi
10784
10785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10786 printf "%s\n" "$ld_shlibs" >&6; }
10787 test no = "$ld_shlibs" && can_build_shared=no
10788
10789 with_gnu_ld=$with_gnu_ld
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805 #
10806 # Do we need to explicitly link libc?
10807 #
10808 case "x$archive_cmds_need_lc" in
10809 x|xyes)
10810 # Assume -lc should be added
10811 archive_cmds_need_lc=yes
10812
10813 if test yes,yes = "$GCC,$enable_shared"; then
10814 case $archive_cmds in
10815 *'~'*)
10816 # FIXME: we may have to deal with multi-command sequences.
10817 ;;
10818 '$CC '*)
10819 # Test whether the compiler implicitly links with -lc since on some
10820 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10821 # to ld, don't add -lc before -lgcc.
10822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10823 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10824 if test ${lt_cv_archive_cmds_need_lc+y}
10825 then :
10826 printf %s "(cached) " >&6
10827 else $as_nop
10828 $RM conftest*
10829 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10830
10831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10832 (eval $ac_compile) 2>&5
10833 ac_status=$?
10834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10835 test $ac_status = 0; } 2>conftest.err; then
10836 soname=conftest
10837 lib=conftest
10838 libobjs=conftest.$ac_objext
10839 deplibs=
10840 wl=$lt_prog_compiler_wl
10841 pic_flag=$lt_prog_compiler_pic
10842 compiler_flags=-v
10843 linker_flags=-v
10844 verstring=
10845 output_objdir=.
10846 libname=conftest
10847 lt_save_allow_undefined_flag=$allow_undefined_flag
10848 allow_undefined_flag=
10849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10850 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10851 ac_status=$?
10852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10853 test $ac_status = 0; }
10854 then
10855 lt_cv_archive_cmds_need_lc=no
10856 else
10857 lt_cv_archive_cmds_need_lc=yes
10858 fi
10859 allow_undefined_flag=$lt_save_allow_undefined_flag
10860 else
10861 cat conftest.err 1>&5
10862 fi
10863 $RM conftest*
10864
10865 fi
10866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10867 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10868 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10869 ;;
10870 esac
10871 fi
10872 ;;
10873 esac
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11027 printf %s "checking dynamic linker characteristics... " >&6; }
11028
11029 if test yes = "$GCC"; then
11030 case $host_os in
11031 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11032 *) lt_awk_arg='/^libraries:/' ;;
11033 esac
11034 case $host_os in
11035 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11036 *) lt_sed_strip_eq='s|=/|/|g' ;;
11037 esac
11038 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11039 case $lt_search_path_spec in
11040 *\;*)
11041 # if the path contains ";" then we assume it to be the separator
11042 # otherwise default to the standard path separator (i.e. ":") - it is
11043 # assumed that no part of a normal pathname contains ";" but that should
11044 # okay in the real world where ";" in dirpaths is itself problematic.
11045 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11046 ;;
11047 *)
11048 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11049 ;;
11050 esac
11051 # Ok, now we have the path, separated by spaces, we can step through it
11052 # and add multilib dir if necessary...
11053 lt_tmp_lt_search_path_spec=
11054 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11055 # ...but if some path component already ends with the multilib dir we assume
11056 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11057 case "$lt_multi_os_dir; $lt_search_path_spec " in
11058 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11059 lt_multi_os_dir=
11060 ;;
11061 esac
11062 for lt_sys_path in $lt_search_path_spec; do
11063 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11064 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11065 elif test -n "$lt_multi_os_dir"; then
11066 test -d "$lt_sys_path" && \
11067 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11068 fi
11069 done
11070 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11071 BEGIN {RS = " "; FS = "/|\n";} {
11072 lt_foo = "";
11073 lt_count = 0;
11074 for (lt_i = NF; lt_i > 0; lt_i--) {
11075 if ($lt_i != "" && $lt_i != ".") {
11076 if ($lt_i == "..") {
11077 lt_count++;
11078 } else {
11079 if (lt_count == 0) {
11080 lt_foo = "/" $lt_i lt_foo;
11081 } else {
11082 lt_count--;
11083 }
11084 }
11085 }
11086 }
11087 if (lt_foo != "") { lt_freq[lt_foo]++; }
11088 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11089 }'`
11090 # AWK program above erroneously prepends '/' to C:/dos/paths
11091 # for these hosts.
11092 case $host_os in
11093 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11094 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11095 esac
11096 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11097 else
11098 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11099 fi
11100 library_names_spec=
11101 libname_spec='lib$name'
11102 soname_spec=
11103 shrext_cmds=.so
11104 postinstall_cmds=
11105 postuninstall_cmds=
11106 finish_cmds=
11107 finish_eval=
11108 shlibpath_var=
11109 shlibpath_overrides_runpath=unknown
11110 version_type=none
11111 dynamic_linker="$host_os ld.so"
11112 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11113 need_lib_prefix=unknown
11114 hardcode_into_libs=no
11115
11116 # when you set need_version to no, make sure it does not cause -set_version
11117 # flags to be left without arguments
11118 need_version=unknown
11119
11120
11121
11122 case $host_os in
11123 aix3*)
11124 version_type=linux # correct to gnu/linux during the next big refactor
11125 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11126 shlibpath_var=LIBPATH
11127
11128 # AIX 3 has no versioning support, so we append a major version to the name.
11129 soname_spec='$libname$release$shared_ext$major'
11130 ;;
11131
11132 aix[4-9]*)
11133 version_type=linux # correct to gnu/linux during the next big refactor
11134 need_lib_prefix=no
11135 need_version=no
11136 hardcode_into_libs=yes
11137 if test ia64 = "$host_cpu"; then
11138 # AIX 5 supports IA64
11139 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11140 shlibpath_var=LD_LIBRARY_PATH
11141 else
11142 # With GCC up to 2.95.x, collect2 would create an import file
11143 # for dependence libraries. The import file would start with
11144 # the line '#! .'. This would cause the generated library to
11145 # depend on '.', always an invalid library. This was fixed in
11146 # development snapshots of GCC prior to 3.0.
11147 case $host_os in
11148 aix4 | aix4.[01] | aix4.[01].*)
11149 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11150 echo ' yes '
11151 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11152 :
11153 else
11154 can_build_shared=no
11155 fi
11156 ;;
11157 esac
11158 # Using Import Files as archive members, it is possible to support
11159 # filename-based versioning of shared library archives on AIX. While
11160 # this would work for both with and without runtime linking, it will
11161 # prevent static linking of such archives. So we do filename-based
11162 # shared library versioning with .so extension only, which is used
11163 # when both runtime linking and shared linking is enabled.
11164 # Unfortunately, runtime linking may impact performance, so we do
11165 # not want this to be the default eventually. Also, we use the
11166 # versioned .so libs for executables only if there is the -brtl
11167 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11168 # To allow for filename-based versioning support, we need to create
11169 # libNAME.so.V as an archive file, containing:
11170 # *) an Import File, referring to the versioned filename of the
11171 # archive as well as the shared archive member, telling the
11172 # bitwidth (32 or 64) of that shared object, and providing the
11173 # list of exported symbols of that shared object, eventually
11174 # decorated with the 'weak' keyword
11175 # *) the shared object with the F_LOADONLY flag set, to really avoid
11176 # it being seen by the linker.
11177 # At run time we better use the real file rather than another symlink,
11178 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11179
11180 case $with_aix_soname,$aix_use_runtimelinking in
11181 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11182 # soname into executable. Probably we can add versioning support to
11183 # collect2, so additional links can be useful in future.
11184 aix,yes) # traditional libtool
11185 dynamic_linker='AIX unversionable lib.so'
11186 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11187 # instead of lib<name>.a to let people know that these are not
11188 # typical AIX shared libraries.
11189 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11190 ;;
11191 aix,no) # traditional AIX only
11192 dynamic_linker='AIX lib.a(lib.so.V)'
11193 # We preserve .a as extension for shared libraries through AIX4.2
11194 # and later when we are not doing run time linking.
11195 library_names_spec='$libname$release.a $libname.a'
11196 soname_spec='$libname$release$shared_ext$major'
11197 ;;
11198 svr4,*) # full svr4 only
11199 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11200 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11201 # We do not specify a path in Import Files, so LIBPATH fires.
11202 shlibpath_overrides_runpath=yes
11203 ;;
11204 *,yes) # both, prefer svr4
11205 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11206 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11207 # unpreferred sharedlib libNAME.a needs extra handling
11208 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"'
11209 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"'
11210 # We do not specify a path in Import Files, so LIBPATH fires.
11211 shlibpath_overrides_runpath=yes
11212 ;;
11213 *,no) # both, prefer aix
11214 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11215 library_names_spec='$libname$release.a $libname.a'
11216 soname_spec='$libname$release$shared_ext$major'
11217 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11218 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)'
11219 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"'
11220 ;;
11221 esac
11222 shlibpath_var=LIBPATH
11223 fi
11224 ;;
11225
11226 amigaos*)
11227 case $host_cpu in
11228 powerpc)
11229 # Since July 2007 AmigaOS4 officially supports .so libraries.
11230 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11231 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11232 ;;
11233 m68k)
11234 library_names_spec='$libname.ixlibrary $libname.a'
11235 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11236 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'
11237 ;;
11238 esac
11239 ;;
11240
11241 beos*)
11242 library_names_spec='$libname$shared_ext'
11243 dynamic_linker="$host_os ld.so"
11244 shlibpath_var=LIBRARY_PATH
11245 ;;
11246
11247 bsdi[45]*)
11248 version_type=linux # correct to gnu/linux during the next big refactor
11249 need_version=no
11250 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11251 soname_spec='$libname$release$shared_ext$major'
11252 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11253 shlibpath_var=LD_LIBRARY_PATH
11254 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11255 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11256 # the default ld.so.conf also contains /usr/contrib/lib and
11257 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11258 # libtool to hard-code these into programs
11259 ;;
11260
11261 cygwin* | mingw* | pw32* | cegcc*)
11262 version_type=windows
11263 shrext_cmds=.dll
11264 need_version=no
11265 need_lib_prefix=no
11266
11267 case $GCC,$cc_basename in
11268 yes,*)
11269 # gcc
11270 library_names_spec='$libname.dll.a'
11271 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11272 postinstall_cmds='base_file=`basename \$file`~
11273 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11274 dldir=$destdir/`dirname \$dlpath`~
11275 test -d \$dldir || mkdir -p \$dldir~
11276 $install_prog $dir/$dlname \$dldir/$dlname~
11277 chmod a+x \$dldir/$dlname~
11278 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11279 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11280 fi'
11281 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11282 dlpath=$dir/\$dldll~
11283 $RM \$dlpath'
11284 shlibpath_overrides_runpath=yes
11285
11286 case $host_os in
11287 cygwin*)
11288 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11289 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11290
11291 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11292 ;;
11293 mingw* | cegcc*)
11294 # MinGW DLLs use traditional 'lib' prefix
11295 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11296 ;;
11297 pw32*)
11298 # pw32 DLLs use 'pw' prefix rather than 'lib'
11299 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11300 ;;
11301 esac
11302 dynamic_linker='Win32 ld.exe'
11303 ;;
11304
11305 *,cl* | *,icl*)
11306 # Native MSVC or ICC
11307 libname_spec='$name'
11308 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11309 library_names_spec='$libname.dll.lib'
11310
11311 case $build_os in
11312 mingw*)
11313 sys_lib_search_path_spec=
11314 lt_save_ifs=$IFS
11315 IFS=';'
11316 for lt_path in $LIB
11317 do
11318 IFS=$lt_save_ifs
11319 # Let DOS variable expansion print the short 8.3 style file name.
11320 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11321 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11322 done
11323 IFS=$lt_save_ifs
11324 # Convert to MSYS style.
11325 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11326 ;;
11327 cygwin*)
11328 # Convert to unix form, then to dos form, then back to unix form
11329 # but this time dos style (no spaces!) so that the unix form looks
11330 # like /cygdrive/c/PROGRA~1:/cygdr...
11331 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11332 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11333 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11334 ;;
11335 *)
11336 sys_lib_search_path_spec=$LIB
11337 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11338 # It is most probably a Windows format PATH.
11339 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11340 else
11341 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11342 fi
11343 # FIXME: find the short name or the path components, as spaces are
11344 # common. (e.g. "Program Files" -> "PROGRA~1")
11345 ;;
11346 esac
11347
11348 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11349 postinstall_cmds='base_file=`basename \$file`~
11350 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11351 dldir=$destdir/`dirname \$dlpath`~
11352 test -d \$dldir || mkdir -p \$dldir~
11353 $install_prog $dir/$dlname \$dldir/$dlname'
11354 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11355 dlpath=$dir/\$dldll~
11356 $RM \$dlpath'
11357 shlibpath_overrides_runpath=yes
11358 dynamic_linker='Win32 link.exe'
11359 ;;
11360
11361 *)
11362 # Assume MSVC and ICC wrapper
11363 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11364 dynamic_linker='Win32 ld.exe'
11365 ;;
11366 esac
11367 # FIXME: first we should search . and the directory the executable is in
11368 shlibpath_var=PATH
11369 ;;
11370
11371 darwin* | rhapsody*)
11372 dynamic_linker="$host_os dyld"
11373 version_type=darwin
11374 need_lib_prefix=no
11375 need_version=no
11376 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11377 soname_spec='$libname$release$major$shared_ext'
11378 shlibpath_overrides_runpath=yes
11379 shlibpath_var=DYLD_LIBRARY_PATH
11380 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11381
11382 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11383 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11384 ;;
11385
11386 dgux*)
11387 version_type=linux # correct to gnu/linux during the next big refactor
11388 need_lib_prefix=no
11389 need_version=no
11390 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11391 soname_spec='$libname$release$shared_ext$major'
11392 shlibpath_var=LD_LIBRARY_PATH
11393 ;;
11394
11395 freebsd* | dragonfly* | midnightbsd*)
11396 # DragonFly does not have aout. When/if they implement a new
11397 # versioning mechanism, adjust this.
11398 if test -x /usr/bin/objformat; then
11399 objformat=`/usr/bin/objformat`
11400 else
11401 case $host_os in
11402 freebsd[23].*) objformat=aout ;;
11403 *) objformat=elf ;;
11404 esac
11405 fi
11406 version_type=freebsd-$objformat
11407 case $version_type in
11408 freebsd-elf*)
11409 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11410 soname_spec='$libname$release$shared_ext$major'
11411 need_version=no
11412 need_lib_prefix=no
11413 ;;
11414 freebsd-*)
11415 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11416 need_version=yes
11417 ;;
11418 esac
11419 shlibpath_var=LD_LIBRARY_PATH
11420 case $host_os in
11421 freebsd2.*)
11422 shlibpath_overrides_runpath=yes
11423 ;;
11424 freebsd3.[01]* | freebsdelf3.[01]*)
11425 shlibpath_overrides_runpath=yes
11426 hardcode_into_libs=yes
11427 ;;
11428 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11429 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11430 shlibpath_overrides_runpath=no
11431 hardcode_into_libs=yes
11432 ;;
11433 *) # from 4.6 on, and DragonFly
11434 shlibpath_overrides_runpath=yes
11435 hardcode_into_libs=yes
11436 ;;
11437 esac
11438 ;;
11439
11440 haiku*)
11441 version_type=linux # correct to gnu/linux during the next big refactor
11442 need_lib_prefix=no
11443 need_version=no
11444 dynamic_linker="$host_os runtime_loader"
11445 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11446 soname_spec='$libname$release$shared_ext$major'
11447 shlibpath_var=LIBRARY_PATH
11448 shlibpath_overrides_runpath=no
11449 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11450 hardcode_into_libs=yes
11451 ;;
11452
11453 hpux9* | hpux10* | hpux11*)
11454 # Give a soname corresponding to the major version so that dld.sl refuses to
11455 # link against other versions.
11456 version_type=sunos
11457 need_lib_prefix=no
11458 need_version=no
11459 case $host_cpu in
11460 ia64*)
11461 shrext_cmds='.so'
11462 hardcode_into_libs=yes
11463 dynamic_linker="$host_os dld.so"
11464 shlibpath_var=LD_LIBRARY_PATH
11465 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11466 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11467 soname_spec='$libname$release$shared_ext$major'
11468 if test 32 = "$HPUX_IA64_MODE"; then
11469 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11470 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11471 else
11472 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11473 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11474 fi
11475 ;;
11476 hppa*64*)
11477 shrext_cmds='.sl'
11478 hardcode_into_libs=yes
11479 dynamic_linker="$host_os dld.sl"
11480 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11481 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11482 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11483 soname_spec='$libname$release$shared_ext$major'
11484 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11485 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11486 ;;
11487 *)
11488 shrext_cmds='.sl'
11489 dynamic_linker="$host_os dld.sl"
11490 shlibpath_var=SHLIB_PATH
11491 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11492 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11493 soname_spec='$libname$release$shared_ext$major'
11494 ;;
11495 esac
11496 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11497 postinstall_cmds='chmod 555 $lib'
11498 # or fails outright, so override atomically:
11499 install_override_mode=555
11500 ;;
11501
11502 interix[3-9]*)
11503 version_type=linux # correct to gnu/linux during the next big refactor
11504 need_lib_prefix=no
11505 need_version=no
11506 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11507 soname_spec='$libname$release$shared_ext$major'
11508 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11509 shlibpath_var=LD_LIBRARY_PATH
11510 shlibpath_overrides_runpath=no
11511 hardcode_into_libs=yes
11512 ;;
11513
11514 irix5* | irix6* | nonstopux*)
11515 case $host_os in
11516 nonstopux*) version_type=nonstopux ;;
11517 *)
11518 if test yes = "$lt_cv_prog_gnu_ld"; then
11519 version_type=linux # correct to gnu/linux during the next big refactor
11520 else
11521 version_type=irix
11522 fi ;;
11523 esac
11524 need_lib_prefix=no
11525 need_version=no
11526 soname_spec='$libname$release$shared_ext$major'
11527 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11528 case $host_os in
11529 irix5* | nonstopux*)
11530 libsuff= shlibsuff=
11531 ;;
11532 *)
11533 case $LD in # libtool.m4 will add one of these switches to LD
11534 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11535 libsuff= shlibsuff= libmagic=32-bit;;
11536 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11537 libsuff=32 shlibsuff=N32 libmagic=N32;;
11538 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11539 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11540 *) libsuff= shlibsuff= libmagic=never-match;;
11541 esac
11542 ;;
11543 esac
11544 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11545 shlibpath_overrides_runpath=no
11546 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11547 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11548 hardcode_into_libs=yes
11549 ;;
11550
11551 # No shared lib support for Linux oldld, aout, or coff.
11552 linux*oldld* | linux*aout* | linux*coff*)
11553 dynamic_linker=no
11554 ;;
11555
11556 linux*android*)
11557 version_type=none # Android doesn't support versioned libraries.
11558 need_lib_prefix=no
11559 need_version=no
11560 library_names_spec='$libname$release$shared_ext'
11561 soname_spec='$libname$release$shared_ext'
11562 finish_cmds=
11563 shlibpath_var=LD_LIBRARY_PATH
11564 shlibpath_overrides_runpath=yes
11565
11566 # This implies no fast_install, which is unacceptable.
11567 # Some rework will be needed to allow for fast_install
11568 # before this can be enabled.
11569 hardcode_into_libs=yes
11570
11571 dynamic_linker='Android linker'
11572 # Don't embed -rpath directories since the linker doesn't support them.
11573 hardcode_libdir_flag_spec='-L$libdir'
11574 ;;
11575
11576 # This must be glibc/ELF.
11577 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11578 version_type=linux # correct to gnu/linux during the next big refactor
11579 need_lib_prefix=no
11580 need_version=no
11581 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11582 soname_spec='$libname$release$shared_ext$major'
11583 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11584 shlibpath_var=LD_LIBRARY_PATH
11585 shlibpath_overrides_runpath=no
11586
11587 # Some binutils ld are patched to set DT_RUNPATH
11588 if test ${lt_cv_shlibpath_overrides_runpath+y}
11589 then :
11590 printf %s "(cached) " >&6
11591 else $as_nop
11592 lt_cv_shlibpath_overrides_runpath=no
11593 save_LDFLAGS=$LDFLAGS
11594 save_libdir=$libdir
11595 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11596 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11598 /* end confdefs.h. */
11599
11600 int
11601 main (void)
11602 {
11603
11604 ;
11605 return 0;
11606 }
11607 _ACEOF
11608 if ac_fn_c_try_link "$LINENO"
11609 then :
11610 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11611 then :
11612 lt_cv_shlibpath_overrides_runpath=yes
11613 fi
11614 fi
11615 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11616 conftest$ac_exeext conftest.$ac_ext
11617 LDFLAGS=$save_LDFLAGS
11618 libdir=$save_libdir
11619
11620 fi
11621
11622 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11623
11624 # This implies no fast_install, which is unacceptable.
11625 # Some rework will be needed to allow for fast_install
11626 # before this can be enabled.
11627 hardcode_into_libs=yes
11628
11629 # Ideally, we could use ldconfig to report *all* directores which are
11630 # searched for libraries, however this is still not possible. Aside from not
11631 # being certain /sbin/ldconfig is available, command
11632 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11633 # even though it is searched at run-time. Try to do the best guess by
11634 # appending ld.so.conf contents (and includes) to the search path.
11635 if test -f /etc/ld.so.conf; then
11636 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' ' '`
11637 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11638 fi
11639
11640 # We used to test for /lib/ld.so.1 and disable shared libraries on
11641 # powerpc, because MkLinux only supported shared libraries with the
11642 # GNU dynamic linker. Since this was broken with cross compilers,
11643 # most powerpc-linux boxes support dynamic linking these days and
11644 # people can always --disable-shared, the test was removed, and we
11645 # assume the GNU/Linux dynamic linker is in use.
11646 dynamic_linker='GNU/Linux ld.so'
11647 ;;
11648
11649 netbsd*)
11650 version_type=sunos
11651 need_lib_prefix=no
11652 need_version=no
11653 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11654 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11655 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11656 dynamic_linker='NetBSD (a.out) ld.so'
11657 else
11658 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11659 soname_spec='$libname$release$shared_ext$major'
11660 dynamic_linker='NetBSD ld.elf_so'
11661 fi
11662 shlibpath_var=LD_LIBRARY_PATH
11663 shlibpath_overrides_runpath=yes
11664 hardcode_into_libs=yes
11665 ;;
11666
11667 newsos6)
11668 version_type=linux # correct to gnu/linux during the next big refactor
11669 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11670 shlibpath_var=LD_LIBRARY_PATH
11671 shlibpath_overrides_runpath=yes
11672 ;;
11673
11674 *nto* | *qnx*)
11675 version_type=qnx
11676 need_lib_prefix=no
11677 need_version=no
11678 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11679 soname_spec='$libname$release$shared_ext$major'
11680 shlibpath_var=LD_LIBRARY_PATH
11681 shlibpath_overrides_runpath=no
11682 hardcode_into_libs=yes
11683 dynamic_linker='ldqnx.so'
11684 ;;
11685
11686 openbsd* | bitrig*)
11687 version_type=sunos
11688 sys_lib_dlsearch_path_spec=/usr/lib
11689 need_lib_prefix=no
11690 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11691 need_version=no
11692 else
11693 need_version=yes
11694 fi
11695 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11696 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11697 shlibpath_var=LD_LIBRARY_PATH
11698 shlibpath_overrides_runpath=yes
11699 ;;
11700
11701 os2*)
11702 libname_spec='$name'
11703 version_type=windows
11704 shrext_cmds=.dll
11705 need_version=no
11706 need_lib_prefix=no
11707 # OS/2 can only load a DLL with a base name of 8 characters or less.
11708 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11709 v=$($ECHO $release$versuffix | tr -d .-);
11710 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11711 $ECHO $n$v`$shared_ext'
11712 library_names_spec='${libname}_dll.$libext'
11713 dynamic_linker='OS/2 ld.exe'
11714 shlibpath_var=BEGINLIBPATH
11715 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11716 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11717 postinstall_cmds='base_file=`basename \$file`~
11718 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11719 dldir=$destdir/`dirname \$dlpath`~
11720 test -d \$dldir || mkdir -p \$dldir~
11721 $install_prog $dir/$dlname \$dldir/$dlname~
11722 chmod a+x \$dldir/$dlname~
11723 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11724 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11725 fi'
11726 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11727 dlpath=$dir/\$dldll~
11728 $RM \$dlpath'
11729 ;;
11730
11731 osf3* | osf4* | osf5*)
11732 version_type=osf
11733 need_lib_prefix=no
11734 need_version=no
11735 soname_spec='$libname$release$shared_ext$major'
11736 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11737 shlibpath_var=LD_LIBRARY_PATH
11738 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11739 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11740 ;;
11741
11742 rdos*)
11743 dynamic_linker=no
11744 ;;
11745
11746 solaris*)
11747 version_type=linux # correct to gnu/linux during the next big refactor
11748 need_lib_prefix=no
11749 need_version=no
11750 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11751 soname_spec='$libname$release$shared_ext$major'
11752 shlibpath_var=LD_LIBRARY_PATH
11753 shlibpath_overrides_runpath=yes
11754 hardcode_into_libs=yes
11755 # ldd complains unless libraries are executable
11756 postinstall_cmds='chmod +x $lib'
11757 ;;
11758
11759 sunos4*)
11760 version_type=sunos
11761 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11762 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11763 shlibpath_var=LD_LIBRARY_PATH
11764 shlibpath_overrides_runpath=yes
11765 if test yes = "$with_gnu_ld"; then
11766 need_lib_prefix=no
11767 fi
11768 need_version=yes
11769 ;;
11770
11771 sysv4 | sysv4.3*)
11772 version_type=linux # correct to gnu/linux during the next big refactor
11773 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11774 soname_spec='$libname$release$shared_ext$major'
11775 shlibpath_var=LD_LIBRARY_PATH
11776 case $host_vendor in
11777 sni)
11778 shlibpath_overrides_runpath=no
11779 need_lib_prefix=no
11780 runpath_var=LD_RUN_PATH
11781 ;;
11782 siemens)
11783 need_lib_prefix=no
11784 ;;
11785 motorola)
11786 need_lib_prefix=no
11787 need_version=no
11788 shlibpath_overrides_runpath=no
11789 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11790 ;;
11791 esac
11792 ;;
11793
11794 sysv4*MP*)
11795 if test -d /usr/nec; then
11796 version_type=linux # correct to gnu/linux during the next big refactor
11797 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11798 soname_spec='$libname$shared_ext.$major'
11799 shlibpath_var=LD_LIBRARY_PATH
11800 fi
11801 ;;
11802
11803 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11804 version_type=sco
11805 need_lib_prefix=no
11806 need_version=no
11807 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11808 soname_spec='$libname$release$shared_ext$major'
11809 shlibpath_var=LD_LIBRARY_PATH
11810 shlibpath_overrides_runpath=yes
11811 hardcode_into_libs=yes
11812 if test yes = "$with_gnu_ld"; then
11813 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11814 else
11815 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11816 case $host_os in
11817 sco3.2v5*)
11818 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11819 ;;
11820 esac
11821 fi
11822 sys_lib_dlsearch_path_spec='/usr/lib'
11823 ;;
11824
11825 tpf*)
11826 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11827 version_type=linux # correct to gnu/linux during the next big refactor
11828 need_lib_prefix=no
11829 need_version=no
11830 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11831 shlibpath_var=LD_LIBRARY_PATH
11832 shlibpath_overrides_runpath=no
11833 hardcode_into_libs=yes
11834 ;;
11835
11836 uts4*)
11837 version_type=linux # correct to gnu/linux during the next big refactor
11838 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11839 soname_spec='$libname$release$shared_ext$major'
11840 shlibpath_var=LD_LIBRARY_PATH
11841 ;;
11842
11843 *)
11844 dynamic_linker=no
11845 ;;
11846 esac
11847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11848 printf "%s\n" "$dynamic_linker" >&6; }
11849 test no = "$dynamic_linker" && can_build_shared=no
11850
11851 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11852 if test yes = "$GCC"; then
11853 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11854 fi
11855
11856 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11857 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11858 fi
11859
11860 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11861 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11862 fi
11863
11864 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11865 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11866
11867 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11868 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11869
11870 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11871 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11970 printf %s "checking how to hardcode library paths into programs... " >&6; }
11971 hardcode_action=
11972 if test -n "$hardcode_libdir_flag_spec" ||
11973 test -n "$runpath_var" ||
11974 test yes = "$hardcode_automatic"; then
11975
11976 # We can hardcode non-existent directories.
11977 if test no != "$hardcode_direct" &&
11978 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11979 # have to relink, otherwise we might link with an installed library
11980 # when we should be linking with a yet-to-be-installed one
11981 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11982 test no != "$hardcode_minus_L"; then
11983 # Linking always hardcodes the temporary library directory.
11984 hardcode_action=relink
11985 else
11986 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11987 hardcode_action=immediate
11988 fi
11989 else
11990 # We cannot hardcode anything, or else we can only hardcode existing
11991 # directories.
11992 hardcode_action=unsupported
11993 fi
11994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11995 printf "%s\n" "$hardcode_action" >&6; }
11996
11997 if test relink = "$hardcode_action" ||
11998 test yes = "$inherit_rpath"; then
11999 # Fast installation is not supported
12000 enable_fast_install=no
12001 elif test yes = "$shlibpath_overrides_runpath" ||
12002 test no = "$enable_shared"; then
12003 # Fast installation is not necessary
12004 enable_fast_install=needless
12005 fi
12006
12007
12008
12009
12010
12011
12012 if test yes != "$enable_dlopen"; then
12013 enable_dlopen=unknown
12014 enable_dlopen_self=unknown
12015 enable_dlopen_self_static=unknown
12016 else
12017 lt_cv_dlopen=no
12018 lt_cv_dlopen_libs=
12019
12020 case $host_os in
12021 beos*)
12022 lt_cv_dlopen=load_add_on
12023 lt_cv_dlopen_libs=
12024 lt_cv_dlopen_self=yes
12025 ;;
12026
12027 mingw* | pw32* | cegcc*)
12028 lt_cv_dlopen=LoadLibrary
12029 lt_cv_dlopen_libs=
12030 ;;
12031
12032 cygwin*)
12033 lt_cv_dlopen=dlopen
12034 lt_cv_dlopen_libs=
12035 ;;
12036
12037 darwin*)
12038 # if libdl is installed we need to link against it
12039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12040 printf %s "checking for dlopen in -ldl... " >&6; }
12041 if test ${ac_cv_lib_dl_dlopen+y}
12042 then :
12043 printf %s "(cached) " >&6
12044 else $as_nop
12045 ac_check_lib_save_LIBS=$LIBS
12046 LIBS="-ldl $LIBS"
12047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12048 /* end confdefs.h. */
12049
12050 /* Override any GCC internal prototype to avoid an error.
12051 Use char because int might match the return type of a GCC
12052 builtin and then its argument prototype would still apply. */
12053 char dlopen ();
12054 int
12055 main (void)
12056 {
12057 return dlopen ();
12058 ;
12059 return 0;
12060 }
12061 _ACEOF
12062 if ac_fn_c_try_link "$LINENO"
12063 then :
12064 ac_cv_lib_dl_dlopen=yes
12065 else $as_nop
12066 ac_cv_lib_dl_dlopen=no
12067 fi
12068 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12069 conftest$ac_exeext conftest.$ac_ext
12070 LIBS=$ac_check_lib_save_LIBS
12071 fi
12072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12073 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12074 if test "x$ac_cv_lib_dl_dlopen" = xyes
12075 then :
12076 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12077 else $as_nop
12078
12079 lt_cv_dlopen=dyld
12080 lt_cv_dlopen_libs=
12081 lt_cv_dlopen_self=yes
12082
12083 fi
12084
12085 ;;
12086
12087 tpf*)
12088 # Don't try to run any link tests for TPF. We know it's impossible
12089 # because TPF is a cross-compiler, and we know how we open DSOs.
12090 lt_cv_dlopen=dlopen
12091 lt_cv_dlopen_libs=
12092 lt_cv_dlopen_self=no
12093 ;;
12094
12095 *)
12096 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12097 if test "x$ac_cv_func_shl_load" = xyes
12098 then :
12099 lt_cv_dlopen=shl_load
12100 else $as_nop
12101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12102 printf %s "checking for shl_load in -ldld... " >&6; }
12103 if test ${ac_cv_lib_dld_shl_load+y}
12104 then :
12105 printf %s "(cached) " >&6
12106 else $as_nop
12107 ac_check_lib_save_LIBS=$LIBS
12108 LIBS="-ldld $LIBS"
12109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12110 /* end confdefs.h. */
12111
12112 /* Override any GCC internal prototype to avoid an error.
12113 Use char because int might match the return type of a GCC
12114 builtin and then its argument prototype would still apply. */
12115 char shl_load ();
12116 int
12117 main (void)
12118 {
12119 return shl_load ();
12120 ;
12121 return 0;
12122 }
12123 _ACEOF
12124 if ac_fn_c_try_link "$LINENO"
12125 then :
12126 ac_cv_lib_dld_shl_load=yes
12127 else $as_nop
12128 ac_cv_lib_dld_shl_load=no
12129 fi
12130 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12131 conftest$ac_exeext conftest.$ac_ext
12132 LIBS=$ac_check_lib_save_LIBS
12133 fi
12134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12135 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12136 if test "x$ac_cv_lib_dld_shl_load" = xyes
12137 then :
12138 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12139 else $as_nop
12140 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12141 if test "x$ac_cv_func_dlopen" = xyes
12142 then :
12143 lt_cv_dlopen=dlopen
12144 else $as_nop
12145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12146 printf %s "checking for dlopen in -ldl... " >&6; }
12147 if test ${ac_cv_lib_dl_dlopen+y}
12148 then :
12149 printf %s "(cached) " >&6
12150 else $as_nop
12151 ac_check_lib_save_LIBS=$LIBS
12152 LIBS="-ldl $LIBS"
12153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12154 /* end confdefs.h. */
12155
12156 /* Override any GCC internal prototype to avoid an error.
12157 Use char because int might match the return type of a GCC
12158 builtin and then its argument prototype would still apply. */
12159 char dlopen ();
12160 int
12161 main (void)
12162 {
12163 return dlopen ();
12164 ;
12165 return 0;
12166 }
12167 _ACEOF
12168 if ac_fn_c_try_link "$LINENO"
12169 then :
12170 ac_cv_lib_dl_dlopen=yes
12171 else $as_nop
12172 ac_cv_lib_dl_dlopen=no
12173 fi
12174 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12175 conftest$ac_exeext conftest.$ac_ext
12176 LIBS=$ac_check_lib_save_LIBS
12177 fi
12178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12179 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12180 if test "x$ac_cv_lib_dl_dlopen" = xyes
12181 then :
12182 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12183 else $as_nop
12184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12185 printf %s "checking for dlopen in -lsvld... " >&6; }
12186 if test ${ac_cv_lib_svld_dlopen+y}
12187 then :
12188 printf %s "(cached) " >&6
12189 else $as_nop
12190 ac_check_lib_save_LIBS=$LIBS
12191 LIBS="-lsvld $LIBS"
12192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12193 /* end confdefs.h. */
12194
12195 /* Override any GCC internal prototype to avoid an error.
12196 Use char because int might match the return type of a GCC
12197 builtin and then its argument prototype would still apply. */
12198 char dlopen ();
12199 int
12200 main (void)
12201 {
12202 return dlopen ();
12203 ;
12204 return 0;
12205 }
12206 _ACEOF
12207 if ac_fn_c_try_link "$LINENO"
12208 then :
12209 ac_cv_lib_svld_dlopen=yes
12210 else $as_nop
12211 ac_cv_lib_svld_dlopen=no
12212 fi
12213 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12214 conftest$ac_exeext conftest.$ac_ext
12215 LIBS=$ac_check_lib_save_LIBS
12216 fi
12217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12218 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12219 if test "x$ac_cv_lib_svld_dlopen" = xyes
12220 then :
12221 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12222 else $as_nop
12223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12224 printf %s "checking for dld_link in -ldld... " >&6; }
12225 if test ${ac_cv_lib_dld_dld_link+y}
12226 then :
12227 printf %s "(cached) " >&6
12228 else $as_nop
12229 ac_check_lib_save_LIBS=$LIBS
12230 LIBS="-ldld $LIBS"
12231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12232 /* end confdefs.h. */
12233
12234 /* Override any GCC internal prototype to avoid an error.
12235 Use char because int might match the return type of a GCC
12236 builtin and then its argument prototype would still apply. */
12237 char dld_link ();
12238 int
12239 main (void)
12240 {
12241 return dld_link ();
12242 ;
12243 return 0;
12244 }
12245 _ACEOF
12246 if ac_fn_c_try_link "$LINENO"
12247 then :
12248 ac_cv_lib_dld_dld_link=yes
12249 else $as_nop
12250 ac_cv_lib_dld_dld_link=no
12251 fi
12252 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12253 conftest$ac_exeext conftest.$ac_ext
12254 LIBS=$ac_check_lib_save_LIBS
12255 fi
12256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12257 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12258 if test "x$ac_cv_lib_dld_dld_link" = xyes
12259 then :
12260 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12261 fi
12262
12263
12264 fi
12265
12266
12267 fi
12268
12269
12270 fi
12271
12272
12273 fi
12274
12275
12276 fi
12277
12278 ;;
12279 esac
12280
12281 if test no = "$lt_cv_dlopen"; then
12282 enable_dlopen=no
12283 else
12284 enable_dlopen=yes
12285 fi
12286
12287 case $lt_cv_dlopen in
12288 dlopen)
12289 save_CPPFLAGS=$CPPFLAGS
12290 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12291
12292 save_LDFLAGS=$LDFLAGS
12293 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12294
12295 save_LIBS=$LIBS
12296 LIBS="$lt_cv_dlopen_libs $LIBS"
12297
12298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12299 printf %s "checking whether a program can dlopen itself... " >&6; }
12300 if test ${lt_cv_dlopen_self+y}
12301 then :
12302 printf %s "(cached) " >&6
12303 else $as_nop
12304 if test yes = "$cross_compiling"; then :
12305 lt_cv_dlopen_self=cross
12306 else
12307 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12308 lt_status=$lt_dlunknown
12309 cat > conftest.$ac_ext <<_LT_EOF
12310 #line $LINENO "configure"
12311 #include "confdefs.h"
12312
12313 #if HAVE_DLFCN_H
12314 #include <dlfcn.h>
12315 #endif
12316
12317 #include <stdio.h>
12318
12319 #ifdef RTLD_GLOBAL
12320 # define LT_DLGLOBAL RTLD_GLOBAL
12321 #else
12322 # ifdef DL_GLOBAL
12323 # define LT_DLGLOBAL DL_GLOBAL
12324 # else
12325 # define LT_DLGLOBAL 0
12326 # endif
12327 #endif
12328
12329 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12330 find out it does not work in some platform. */
12331 #ifndef LT_DLLAZY_OR_NOW
12332 # ifdef RTLD_LAZY
12333 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12334 # else
12335 # ifdef DL_LAZY
12336 # define LT_DLLAZY_OR_NOW DL_LAZY
12337 # else
12338 # ifdef RTLD_NOW
12339 # define LT_DLLAZY_OR_NOW RTLD_NOW
12340 # else
12341 # ifdef DL_NOW
12342 # define LT_DLLAZY_OR_NOW DL_NOW
12343 # else
12344 # define LT_DLLAZY_OR_NOW 0
12345 # endif
12346 # endif
12347 # endif
12348 # endif
12349 #endif
12350
12351 /* When -fvisibility=hidden is used, assume the code has been annotated
12352 correspondingly for the symbols needed. */
12353 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12354 int fnord () __attribute__((visibility("default")));
12355 #endif
12356
12357 int fnord () { return 42; }
12358 int main ()
12359 {
12360 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12361 int status = $lt_dlunknown;
12362
12363 if (self)
12364 {
12365 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12366 else
12367 {
12368 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12369 else puts (dlerror ());
12370 }
12371 /* dlclose (self); */
12372 }
12373 else
12374 puts (dlerror ());
12375
12376 return status;
12377 }
12378 _LT_EOF
12379 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12380 (eval $ac_link) 2>&5
12381 ac_status=$?
12382 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12383 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12384 (./conftest; exit; ) >&5 2>/dev/null
12385 lt_status=$?
12386 case x$lt_status in
12387 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12388 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12389 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12390 esac
12391 else :
12392 # compilation failed
12393 lt_cv_dlopen_self=no
12394 fi
12395 fi
12396 rm -fr conftest*
12397
12398
12399 fi
12400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12401 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12402
12403 if test yes = "$lt_cv_dlopen_self"; then
12404 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12406 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12407 if test ${lt_cv_dlopen_self_static+y}
12408 then :
12409 printf %s "(cached) " >&6
12410 else $as_nop
12411 if test yes = "$cross_compiling"; then :
12412 lt_cv_dlopen_self_static=cross
12413 else
12414 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12415 lt_status=$lt_dlunknown
12416 cat > conftest.$ac_ext <<_LT_EOF
12417 #line $LINENO "configure"
12418 #include "confdefs.h"
12419
12420 #if HAVE_DLFCN_H
12421 #include <dlfcn.h>
12422 #endif
12423
12424 #include <stdio.h>
12425
12426 #ifdef RTLD_GLOBAL
12427 # define LT_DLGLOBAL RTLD_GLOBAL
12428 #else
12429 # ifdef DL_GLOBAL
12430 # define LT_DLGLOBAL DL_GLOBAL
12431 # else
12432 # define LT_DLGLOBAL 0
12433 # endif
12434 #endif
12435
12436 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12437 find out it does not work in some platform. */
12438 #ifndef LT_DLLAZY_OR_NOW
12439 # ifdef RTLD_LAZY
12440 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12441 # else
12442 # ifdef DL_LAZY
12443 # define LT_DLLAZY_OR_NOW DL_LAZY
12444 # else
12445 # ifdef RTLD_NOW
12446 # define LT_DLLAZY_OR_NOW RTLD_NOW
12447 # else
12448 # ifdef DL_NOW
12449 # define LT_DLLAZY_OR_NOW DL_NOW
12450 # else
12451 # define LT_DLLAZY_OR_NOW 0
12452 # endif
12453 # endif
12454 # endif
12455 # endif
12456 #endif
12457
12458 /* When -fvisibility=hidden is used, assume the code has been annotated
12459 correspondingly for the symbols needed. */
12460 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12461 int fnord () __attribute__((visibility("default")));
12462 #endif
12463
12464 int fnord () { return 42; }
12465 int main ()
12466 {
12467 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12468 int status = $lt_dlunknown;
12469
12470 if (self)
12471 {
12472 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12473 else
12474 {
12475 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12476 else puts (dlerror ());
12477 }
12478 /* dlclose (self); */
12479 }
12480 else
12481 puts (dlerror ());
12482
12483 return status;
12484 }
12485 _LT_EOF
12486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12487 (eval $ac_link) 2>&5
12488 ac_status=$?
12489 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12490 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12491 (./conftest; exit; ) >&5 2>/dev/null
12492 lt_status=$?
12493 case x$lt_status in
12494 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12495 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12496 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12497 esac
12498 else :
12499 # compilation failed
12500 lt_cv_dlopen_self_static=no
12501 fi
12502 fi
12503 rm -fr conftest*
12504
12505
12506 fi
12507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12508 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12509 fi
12510
12511 CPPFLAGS=$save_CPPFLAGS
12512 LDFLAGS=$save_LDFLAGS
12513 LIBS=$save_LIBS
12514 ;;
12515 esac
12516
12517 case $lt_cv_dlopen_self in
12518 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12519 *) enable_dlopen_self=unknown ;;
12520 esac
12521
12522 case $lt_cv_dlopen_self_static in
12523 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12524 *) enable_dlopen_self_static=unknown ;;
12525 esac
12526 fi
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544 striplib=
12545 old_striplib=
12546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12547 printf %s "checking whether stripping libraries is possible... " >&6; }
12548 if test -z "$STRIP"; then
12549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12550 printf "%s\n" "no" >&6; }
12551 else
12552 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12553 old_striplib="$STRIP --strip-debug"
12554 striplib="$STRIP --strip-unneeded"
12555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12556 printf "%s\n" "yes" >&6; }
12557 else
12558 case $host_os in
12559 darwin*)
12560 # FIXME - insert some real tests, host_os isn't really good enough
12561 striplib="$STRIP -x"
12562 old_striplib="$STRIP -S"
12563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12564 printf "%s\n" "yes" >&6; }
12565 ;;
12566 freebsd*)
12567 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12568 old_striplib="$STRIP --strip-debug"
12569 striplib="$STRIP --strip-unneeded"
12570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12571 printf "%s\n" "yes" >&6; }
12572 else
12573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12574 printf "%s\n" "no" >&6; }
12575 fi
12576 ;;
12577 *)
12578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12579 printf "%s\n" "no" >&6; }
12580 ;;
12581 esac
12582 fi
12583 fi
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596 # Report what library types will actually be built
12597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12598 printf %s "checking if libtool supports shared libraries... " >&6; }
12599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12600 printf "%s\n" "$can_build_shared" >&6; }
12601
12602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12603 printf %s "checking whether to build shared libraries... " >&6; }
12604 test no = "$can_build_shared" && enable_shared=no
12605
12606 # On AIX, shared libraries and static libraries use the same namespace, and
12607 # are all built from PIC.
12608 case $host_os in
12609 aix3*)
12610 test yes = "$enable_shared" && enable_static=no
12611 if test -n "$RANLIB"; then
12612 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12613 postinstall_cmds='$RANLIB $lib'
12614 fi
12615 ;;
12616
12617 aix[4-9]*)
12618 if test ia64 != "$host_cpu"; then
12619 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12620 yes,aix,yes) ;; # shared object as lib.so file only
12621 yes,svr4,*) ;; # shared object as lib.so archive member only
12622 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12623 esac
12624 fi
12625 ;;
12626 esac
12627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12628 printf "%s\n" "$enable_shared" >&6; }
12629
12630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12631 printf %s "checking whether to build static libraries... " >&6; }
12632 # Make sure either enable_shared or enable_static is yes.
12633 test yes = "$enable_shared" || enable_static=yes
12634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12635 printf "%s\n" "$enable_static" >&6; }
12636
12637
12638
12639
12640 fi
12641 ac_ext=c
12642 ac_cpp='$CPP $CPPFLAGS'
12643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12646
12647 CC=$lt_save_CC
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663 ac_config_commands="$ac_config_commands libtool"
12664
12665
12666
12667
12668 # Only expand once:
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12679 if test -n "$ac_tool_prefix"; then
12680 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12681 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12683 printf %s "checking for $ac_word... " >&6; }
12684 if test ${ac_cv_path_PKG_CONFIG+y}
12685 then :
12686 printf %s "(cached) " >&6
12687 else $as_nop
12688 case $PKG_CONFIG in
12689 [\\/]* | ?:[\\/]*)
12690 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12691 ;;
12692 *)
12693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12694 for as_dir in $PATH
12695 do
12696 IFS=$as_save_IFS
12697 case $as_dir in #(((
12698 '') as_dir=./ ;;
12699 */) ;;
12700 *) as_dir=$as_dir/ ;;
12701 esac
12702 for ac_exec_ext in '' $ac_executable_extensions; do
12703 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12704 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12706 break 2
12707 fi
12708 done
12709 done
12710 IFS=$as_save_IFS
12711
12712 ;;
12713 esac
12714 fi
12715 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12716 if test -n "$PKG_CONFIG"; then
12717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12718 printf "%s\n" "$PKG_CONFIG" >&6; }
12719 else
12720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12721 printf "%s\n" "no" >&6; }
12722 fi
12723
12724
12725 fi
12726 if test -z "$ac_cv_path_PKG_CONFIG"; then
12727 ac_pt_PKG_CONFIG=$PKG_CONFIG
12728 # Extract the first word of "pkg-config", so it can be a program name with args.
12729 set dummy pkg-config; ac_word=$2
12730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12731 printf %s "checking for $ac_word... " >&6; }
12732 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
12733 then :
12734 printf %s "(cached) " >&6
12735 else $as_nop
12736 case $ac_pt_PKG_CONFIG in
12737 [\\/]* | ?:[\\/]*)
12738 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12739 ;;
12740 *)
12741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12742 for as_dir in $PATH
12743 do
12744 IFS=$as_save_IFS
12745 case $as_dir in #(((
12746 '') as_dir=./ ;;
12747 */) ;;
12748 *) as_dir=$as_dir/ ;;
12749 esac
12750 for ac_exec_ext in '' $ac_executable_extensions; do
12751 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12752 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12754 break 2
12755 fi
12756 done
12757 done
12758 IFS=$as_save_IFS
12759
12760 ;;
12761 esac
12762 fi
12763 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12764 if test -n "$ac_pt_PKG_CONFIG"; then
12765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12766 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
12767 else
12768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12769 printf "%s\n" "no" >&6; }
12770 fi
12771
12772 if test "x$ac_pt_PKG_CONFIG" = x; then
12773 PKG_CONFIG=""
12774 else
12775 case $cross_compiling:$ac_tool_warned in
12776 yes:)
12777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12778 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12779 ac_tool_warned=yes ;;
12780 esac
12781 PKG_CONFIG=$ac_pt_PKG_CONFIG
12782 fi
12783 else
12784 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12785 fi
12786
12787 fi
12788 if test -n "$PKG_CONFIG"; then
12789 _pkg_min_version=0.9.0
12790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12791 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12792 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12794 printf "%s\n" "yes" >&6; }
12795 else
12796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12797 printf "%s\n" "no" >&6; }
12798 PKG_CONFIG=""
12799 fi
12800 fi
12801
12802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12803 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12804 if test ${ac_cv_c_undeclared_builtin_options+y}
12805 then :
12806 printf %s "(cached) " >&6
12807 else $as_nop
12808 ac_save_CFLAGS=$CFLAGS
12809 ac_cv_c_undeclared_builtin_options='cannot detect'
12810 for ac_arg in '' -fno-builtin; do
12811 CFLAGS="$ac_save_CFLAGS $ac_arg"
12812 # This test program should *not* compile successfully.
12813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12814 /* end confdefs.h. */
12815
12816 int
12817 main (void)
12818 {
12819 (void) strchr;
12820 ;
12821 return 0;
12822 }
12823 _ACEOF
12824 if ac_fn_c_try_compile "$LINENO"
12825 then :
12826
12827 else $as_nop
12828 # This test program should compile successfully.
12829 # No library function is consistently available on
12830 # freestanding implementations, so test against a dummy
12831 # declaration. Include always-available headers on the
12832 # off chance that they somehow elicit warnings.
12833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12834 /* end confdefs.h. */
12835 #include <float.h>
12836 #include <limits.h>
12837 #include <stdarg.h>
12838 #include <stddef.h>
12839 extern void ac_decl (int, char *);
12840
12841 int
12842 main (void)
12843 {
12844 (void) ac_decl (0, (char *) 0);
12845 (void) ac_decl;
12846
12847 ;
12848 return 0;
12849 }
12850 _ACEOF
12851 if ac_fn_c_try_compile "$LINENO"
12852 then :
12853 if test x"$ac_arg" = x
12854 then :
12855 ac_cv_c_undeclared_builtin_options='none needed'
12856 else $as_nop
12857 ac_cv_c_undeclared_builtin_options=$ac_arg
12858 fi
12859 break
12860 fi
12861 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12862 fi
12863 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12864 done
12865 CFLAGS=$ac_save_CFLAGS
12866
12867 fi
12868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12869 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12870 case $ac_cv_c_undeclared_builtin_options in #(
12871 'cannot detect') :
12872 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12873 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12874 as_fn_error $? "cannot make $CC report undeclared builtins
12875 See \`config.log' for more details" "$LINENO" 5; } ;; #(
12876 'none needed') :
12877 ac_c_undeclared_builtin_options='' ;; #(
12878 *) :
12879 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12880 esac
12881
12882
12883
12884
12885
12886 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12887 if test "x$ac_cv_have_decl___clang__" = xyes
12888 then :
12889 CLANGCC="yes"
12890 else $as_nop
12891 CLANGCC="no"
12892 fi
12893 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12894 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
12895 then :
12896 INTELCC="yes"
12897 else $as_nop
12898 INTELCC="no"
12899 fi
12900 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12901 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
12902 then :
12903 SUNCC="yes"
12904 else $as_nop
12905 SUNCC="no"
12906 fi
12907
12908
12909
12910
12911
12912
12913 # Define header files and pkgconfig paths
12914 xcbincludedir='${includedir}/xcb'
12915
12916 pkgconfigdir='${libdir}/pkgconfig'
12917
12918
12919 # Check xcb version
12920
12921 pkg_failed=no
12922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XCB" >&5
12923 printf %s "checking for XCB... " >&6; }
12924
12925 if test -n "$XCB_CFLAGS"; then
12926 pkg_cv_XCB_CFLAGS="$XCB_CFLAGS"
12927 elif test -n "$PKG_CONFIG"; then
12928 if test -n "$PKG_CONFIG" && \
12929 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.4\""; } >&5
12930 ($PKG_CONFIG --exists --print-errors "xcb >= 1.4") 2>&5
12931 ac_status=$?
12932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12933 test $ac_status = 0; }; then
12934 pkg_cv_XCB_CFLAGS=`$PKG_CONFIG --cflags "xcb >= 1.4" 2>/dev/null`
12935 test "x$?" != "x0" && pkg_failed=yes
12936 else
12937 pkg_failed=yes
12938 fi
12939 else
12940 pkg_failed=untried
12941 fi
12942 if test -n "$XCB_LIBS"; then
12943 pkg_cv_XCB_LIBS="$XCB_LIBS"
12944 elif test -n "$PKG_CONFIG"; then
12945 if test -n "$PKG_CONFIG" && \
12946 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.4\""; } >&5
12947 ($PKG_CONFIG --exists --print-errors "xcb >= 1.4") 2>&5
12948 ac_status=$?
12949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12950 test $ac_status = 0; }; then
12951 pkg_cv_XCB_LIBS=`$PKG_CONFIG --libs "xcb >= 1.4" 2>/dev/null`
12952 test "x$?" != "x0" && pkg_failed=yes
12953 else
12954 pkg_failed=yes
12955 fi
12956 else
12957 pkg_failed=untried
12958 fi
12959
12960
12961
12962 if test $pkg_failed = yes; then
12963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12964 printf "%s\n" "no" >&6; }
12965
12966 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12967 _pkg_short_errors_supported=yes
12968 else
12969 _pkg_short_errors_supported=no
12970 fi
12971 if test $_pkg_short_errors_supported = yes; then
12972 XCB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb >= 1.4" 2>&1`
12973 else
12974 XCB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb >= 1.4" 2>&1`
12975 fi
12976 # Put the nasty error message in config.log where it belongs
12977 echo "$XCB_PKG_ERRORS" >&5
12978
12979 as_fn_error $? "Package requirements (xcb >= 1.4) were not met:
12980
12981 $XCB_PKG_ERRORS
12982
12983 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12984 installed software in a non-standard prefix.
12985
12986 Alternatively, you may set the environment variables XCB_CFLAGS
12987 and XCB_LIBS to avoid the need to call pkg-config.
12988 See the pkg-config man page for more details." "$LINENO" 5
12989 elif test $pkg_failed = untried; then
12990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12991 printf "%s\n" "no" >&6; }
12992 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12993 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12994 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12995 is in your PATH or set the PKG_CONFIG environment variable to the full
12996 path to pkg-config.
12997
12998 Alternatively, you may set the environment variables XCB_CFLAGS
12999 and XCB_LIBS to avoid the need to call pkg-config.
13000 See the pkg-config man page for more details.
13001
13002 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13003 See \`config.log' for more details" "$LINENO" 5; }
13004 else
13005 XCB_CFLAGS=$pkg_cv_XCB_CFLAGS
13006 XCB_LIBS=$pkg_cv_XCB_LIBS
13007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13008 printf "%s\n" "yes" >&6; }
13009
13010 fi
13011
13012 # Check version of xcb-proto that xcb was compiled against
13013 xcbproto_required=1.6
13014
13015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libxcb was compiled against xcb-proto >= $xcbproto_required" >&5
13016 printf %s "checking whether libxcb was compiled against xcb-proto >= $xcbproto_required... " >&6; }
13017 xcbproto_version=`$PKG_CONFIG --variable=xcbproto_version xcb`
13018
13019 for ac_prog in gawk mawk nawk awk
13020 do
13021 # Extract the first word of "$ac_prog", so it can be a program name with args.
13022 set dummy $ac_prog; ac_word=$2
13023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13024 printf %s "checking for $ac_word... " >&6; }
13025 if test ${ac_cv_prog_AWK+y}
13026 then :
13027 printf %s "(cached) " >&6
13028 else $as_nop
13029 if test -n "$AWK"; then
13030 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13031 else
13032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13033 for as_dir in $PATH
13034 do
13035 IFS=$as_save_IFS
13036 case $as_dir in #(((
13037 '') as_dir=./ ;;
13038 */) ;;
13039 *) as_dir=$as_dir/ ;;
13040 esac
13041 for ac_exec_ext in '' $ac_executable_extensions; do
13042 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13043 ac_cv_prog_AWK="$ac_prog"
13044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13045 break 2
13046 fi
13047 done
13048 done
13049 IFS=$as_save_IFS
13050
13051 fi
13052 fi
13053 AWK=$ac_cv_prog_AWK
13054 if test -n "$AWK"; then
13055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13056 printf "%s\n" "$AWK" >&6; }
13057 else
13058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13059 printf "%s\n" "no" >&6; }
13060 fi
13061
13062
13063 test -n "$AWK" && break
13064 done
13065
13066
13067 # Used to indicate true or false condition
13068 ax_compare_version=false
13069
13070 # Convert the two version strings to be compared into a format that
13071 # allows a simple string comparison. The end result is that a version
13072 # string of the form 1.12.5-r617 will be converted to the form
13073 # 0001001200050617. In other words, each number is zero padded to four
13074 # digits, and non digits are removed.
13075
13076 ax_compare_version_A=`echo "$xcbproto_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
13077 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
13078 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
13079 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
13080 -e 's/[^0-9]//g'`
13081
13082
13083 ax_compare_version_B=`echo "$xcbproto_required" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
13084 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
13085 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
13086 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
13087 -e 's/[^0-9]//g'`
13088
13089
13090 ax_compare_version=`echo "x$ax_compare_version_A
13091 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
13092
13093
13094
13095 if test "$ax_compare_version" = "true" ; then
13096 xcbproto_ok="yes"
13097 else xcbproto_ok="no"
13098 fi
13099
13100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xcbproto_ok" >&5
13101 printf "%s\n" "$xcbproto_ok" >&6; }
13102
13103 if test $xcbproto_ok = no; then
13104 as_fn_error $? "libxcb was compiled against xcb-proto $xcbproto_version; it needs to be compiled against version $xcbproto_required or higher" "$LINENO" 5
13105 fi
13106
13107 # Call macros from Xorg util-macros
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125 # Check whether --enable-selective-werror was given.
13126 if test ${enable_selective_werror+y}
13127 then :
13128 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13129 else $as_nop
13130 SELECTIVE_WERROR=yes
13131 fi
13132
13133
13134
13135
13136
13137 # -v is too short to test reliably with XORG_TESTSET_CFLAG
13138 if test "x$SUNCC" = "xyes"; then
13139 BASE_CFLAGS="-v"
13140 else
13141 BASE_CFLAGS=""
13142 fi
13143
13144 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158 xorg_testset_save_CFLAGS="$CFLAGS"
13159
13160 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13161 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13163 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13164 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13165 then :
13166 printf %s "(cached) " >&6
13167 else $as_nop
13168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13169 /* end confdefs.h. */
13170 int i;
13171 _ACEOF
13172 if ac_fn_c_try_compile "$LINENO"
13173 then :
13174 xorg_cv_cc_flag_unknown_warning_option=yes
13175 else $as_nop
13176 xorg_cv_cc_flag_unknown_warning_option=no
13177 fi
13178 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13179 fi
13180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13181 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13182 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13183 CFLAGS="$xorg_testset_save_CFLAGS"
13184 fi
13185
13186 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13188 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13189 fi
13190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13192 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13193 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13194 then :
13195 printf %s "(cached) " >&6
13196 else $as_nop
13197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13198 /* end confdefs.h. */
13199 int i;
13200 _ACEOF
13201 if ac_fn_c_try_compile "$LINENO"
13202 then :
13203 xorg_cv_cc_flag_unused_command_line_argument=yes
13204 else $as_nop
13205 xorg_cv_cc_flag_unused_command_line_argument=no
13206 fi
13207 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13208 fi
13209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13210 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13211 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13212 CFLAGS="$xorg_testset_save_CFLAGS"
13213 fi
13214
13215 found="no"
13216
13217 if test $found = "no" ; then
13218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13219 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13220 fi
13221
13222 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13224 fi
13225
13226 CFLAGS="$CFLAGS -Wall"
13227
13228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13229 printf %s "checking if $CC supports -Wall... " >&6; }
13230 cacheid=xorg_cv_cc_flag__Wall
13231 if eval test \${$cacheid+y}
13232 then :
13233 printf %s "(cached) " >&6
13234 else $as_nop
13235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13236 /* end confdefs.h. */
13237 int i;
13238 int
13239 main (void)
13240 {
13241
13242 ;
13243 return 0;
13244 }
13245 _ACEOF
13246 if ac_fn_c_try_link "$LINENO"
13247 then :
13248 eval $cacheid=yes
13249 else $as_nop
13250 eval $cacheid=no
13251 fi
13252 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13253 conftest$ac_exeext conftest.$ac_ext
13254 fi
13255
13256
13257 CFLAGS="$xorg_testset_save_CFLAGS"
13258
13259 eval supported=\$$cacheid
13260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13261 printf "%s\n" "$supported" >&6; }
13262 if test "$supported" = "yes" ; then
13263 BASE_CFLAGS="$BASE_CFLAGS -Wall"
13264 found="yes"
13265 fi
13266 fi
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282 xorg_testset_save_CFLAGS="$CFLAGS"
13283
13284 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13285 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13287 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13288 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13289 then :
13290 printf %s "(cached) " >&6
13291 else $as_nop
13292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13293 /* end confdefs.h. */
13294 int i;
13295 _ACEOF
13296 if ac_fn_c_try_compile "$LINENO"
13297 then :
13298 xorg_cv_cc_flag_unknown_warning_option=yes
13299 else $as_nop
13300 xorg_cv_cc_flag_unknown_warning_option=no
13301 fi
13302 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13303 fi
13304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13305 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13306 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13307 CFLAGS="$xorg_testset_save_CFLAGS"
13308 fi
13309
13310 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13313 fi
13314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13316 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13317 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13318 then :
13319 printf %s "(cached) " >&6
13320 else $as_nop
13321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13322 /* end confdefs.h. */
13323 int i;
13324 _ACEOF
13325 if ac_fn_c_try_compile "$LINENO"
13326 then :
13327 xorg_cv_cc_flag_unused_command_line_argument=yes
13328 else $as_nop
13329 xorg_cv_cc_flag_unused_command_line_argument=no
13330 fi
13331 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13332 fi
13333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13334 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13335 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13336 CFLAGS="$xorg_testset_save_CFLAGS"
13337 fi
13338
13339 found="no"
13340
13341 if test $found = "no" ; then
13342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13344 fi
13345
13346 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13348 fi
13349
13350 CFLAGS="$CFLAGS -Wpointer-arith"
13351
13352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13353 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13354 cacheid=xorg_cv_cc_flag__Wpointer_arith
13355 if eval test \${$cacheid+y}
13356 then :
13357 printf %s "(cached) " >&6
13358 else $as_nop
13359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13360 /* end confdefs.h. */
13361 int i;
13362 int
13363 main (void)
13364 {
13365
13366 ;
13367 return 0;
13368 }
13369 _ACEOF
13370 if ac_fn_c_try_link "$LINENO"
13371 then :
13372 eval $cacheid=yes
13373 else $as_nop
13374 eval $cacheid=no
13375 fi
13376 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13377 conftest$ac_exeext conftest.$ac_ext
13378 fi
13379
13380
13381 CFLAGS="$xorg_testset_save_CFLAGS"
13382
13383 eval supported=\$$cacheid
13384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13385 printf "%s\n" "$supported" >&6; }
13386 if test "$supported" = "yes" ; then
13387 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13388 found="yes"
13389 fi
13390 fi
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406 xorg_testset_save_CFLAGS="$CFLAGS"
13407
13408 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13411 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13412 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13413 then :
13414 printf %s "(cached) " >&6
13415 else $as_nop
13416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13417 /* end confdefs.h. */
13418 int i;
13419 _ACEOF
13420 if ac_fn_c_try_compile "$LINENO"
13421 then :
13422 xorg_cv_cc_flag_unknown_warning_option=yes
13423 else $as_nop
13424 xorg_cv_cc_flag_unknown_warning_option=no
13425 fi
13426 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13427 fi
13428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13429 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13430 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13431 CFLAGS="$xorg_testset_save_CFLAGS"
13432 fi
13433
13434 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13437 fi
13438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13440 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13441 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13442 then :
13443 printf %s "(cached) " >&6
13444 else $as_nop
13445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13446 /* end confdefs.h. */
13447 int i;
13448 _ACEOF
13449 if ac_fn_c_try_compile "$LINENO"
13450 then :
13451 xorg_cv_cc_flag_unused_command_line_argument=yes
13452 else $as_nop
13453 xorg_cv_cc_flag_unused_command_line_argument=no
13454 fi
13455 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13456 fi
13457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13458 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13459 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13460 CFLAGS="$xorg_testset_save_CFLAGS"
13461 fi
13462
13463 found="no"
13464
13465 if test $found = "no" ; then
13466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13468 fi
13469
13470 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13472 fi
13473
13474 CFLAGS="$CFLAGS -Wmissing-declarations"
13475
13476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13477 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13478 cacheid=xorg_cv_cc_flag__Wmissing_declarations
13479 if eval test \${$cacheid+y}
13480 then :
13481 printf %s "(cached) " >&6
13482 else $as_nop
13483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13484 /* end confdefs.h. */
13485 int i;
13486 int
13487 main (void)
13488 {
13489
13490 ;
13491 return 0;
13492 }
13493 _ACEOF
13494 if ac_fn_c_try_link "$LINENO"
13495 then :
13496 eval $cacheid=yes
13497 else $as_nop
13498 eval $cacheid=no
13499 fi
13500 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13501 conftest$ac_exeext conftest.$ac_ext
13502 fi
13503
13504
13505 CFLAGS="$xorg_testset_save_CFLAGS"
13506
13507 eval supported=\$$cacheid
13508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13509 printf "%s\n" "$supported" >&6; }
13510 if test "$supported" = "yes" ; then
13511 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13512 found="yes"
13513 fi
13514 fi
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530 xorg_testset_save_CFLAGS="$CFLAGS"
13531
13532 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13533 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13535 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13536 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13537 then :
13538 printf %s "(cached) " >&6
13539 else $as_nop
13540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13541 /* end confdefs.h. */
13542 int i;
13543 _ACEOF
13544 if ac_fn_c_try_compile "$LINENO"
13545 then :
13546 xorg_cv_cc_flag_unknown_warning_option=yes
13547 else $as_nop
13548 xorg_cv_cc_flag_unknown_warning_option=no
13549 fi
13550 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13551 fi
13552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13553 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13554 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13555 CFLAGS="$xorg_testset_save_CFLAGS"
13556 fi
13557
13558 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13561 fi
13562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13564 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13565 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13566 then :
13567 printf %s "(cached) " >&6
13568 else $as_nop
13569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13570 /* end confdefs.h. */
13571 int i;
13572 _ACEOF
13573 if ac_fn_c_try_compile "$LINENO"
13574 then :
13575 xorg_cv_cc_flag_unused_command_line_argument=yes
13576 else $as_nop
13577 xorg_cv_cc_flag_unused_command_line_argument=no
13578 fi
13579 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13580 fi
13581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13582 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13583 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13584 CFLAGS="$xorg_testset_save_CFLAGS"
13585 fi
13586
13587 found="no"
13588
13589 if test $found = "no" ; then
13590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13592 fi
13593
13594 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13596 fi
13597
13598 CFLAGS="$CFLAGS -Wformat=2"
13599
13600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13601 printf %s "checking if $CC supports -Wformat=2... " >&6; }
13602 cacheid=xorg_cv_cc_flag__Wformat_2
13603 if eval test \${$cacheid+y}
13604 then :
13605 printf %s "(cached) " >&6
13606 else $as_nop
13607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13608 /* end confdefs.h. */
13609 int i;
13610 int
13611 main (void)
13612 {
13613
13614 ;
13615 return 0;
13616 }
13617 _ACEOF
13618 if ac_fn_c_try_link "$LINENO"
13619 then :
13620 eval $cacheid=yes
13621 else $as_nop
13622 eval $cacheid=no
13623 fi
13624 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13625 conftest$ac_exeext conftest.$ac_ext
13626 fi
13627
13628
13629 CFLAGS="$xorg_testset_save_CFLAGS"
13630
13631 eval supported=\$$cacheid
13632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13633 printf "%s\n" "$supported" >&6; }
13634 if test "$supported" = "yes" ; then
13635 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13636 found="yes"
13637 fi
13638 fi
13639
13640 if test $found = "no" ; then
13641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13642 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13643 fi
13644
13645 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13647 fi
13648
13649 CFLAGS="$CFLAGS -Wformat"
13650
13651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13652 printf %s "checking if $CC supports -Wformat... " >&6; }
13653 cacheid=xorg_cv_cc_flag__Wformat
13654 if eval test \${$cacheid+y}
13655 then :
13656 printf %s "(cached) " >&6
13657 else $as_nop
13658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13659 /* end confdefs.h. */
13660 int i;
13661 int
13662 main (void)
13663 {
13664
13665 ;
13666 return 0;
13667 }
13668 _ACEOF
13669 if ac_fn_c_try_link "$LINENO"
13670 then :
13671 eval $cacheid=yes
13672 else $as_nop
13673 eval $cacheid=no
13674 fi
13675 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13676 conftest$ac_exeext conftest.$ac_ext
13677 fi
13678
13679
13680 CFLAGS="$xorg_testset_save_CFLAGS"
13681
13682 eval supported=\$$cacheid
13683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13684 printf "%s\n" "$supported" >&6; }
13685 if test "$supported" = "yes" ; then
13686 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13687 found="yes"
13688 fi
13689 fi
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707 xorg_testset_save_CFLAGS="$CFLAGS"
13708
13709 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13710 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13712 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13713 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13714 then :
13715 printf %s "(cached) " >&6
13716 else $as_nop
13717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13718 /* end confdefs.h. */
13719 int i;
13720 _ACEOF
13721 if ac_fn_c_try_compile "$LINENO"
13722 then :
13723 xorg_cv_cc_flag_unknown_warning_option=yes
13724 else $as_nop
13725 xorg_cv_cc_flag_unknown_warning_option=no
13726 fi
13727 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13728 fi
13729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13730 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13731 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13732 CFLAGS="$xorg_testset_save_CFLAGS"
13733 fi
13734
13735 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13738 fi
13739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13741 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13742 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13743 then :
13744 printf %s "(cached) " >&6
13745 else $as_nop
13746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13747 /* end confdefs.h. */
13748 int i;
13749 _ACEOF
13750 if ac_fn_c_try_compile "$LINENO"
13751 then :
13752 xorg_cv_cc_flag_unused_command_line_argument=yes
13753 else $as_nop
13754 xorg_cv_cc_flag_unused_command_line_argument=no
13755 fi
13756 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13757 fi
13758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13759 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13760 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13761 CFLAGS="$xorg_testset_save_CFLAGS"
13762 fi
13763
13764 found="no"
13765
13766 if test $found = "no" ; then
13767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13769 fi
13770
13771 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13773 fi
13774
13775 CFLAGS="$CFLAGS -Wstrict-prototypes"
13776
13777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13778 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13779 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13780 if eval test \${$cacheid+y}
13781 then :
13782 printf %s "(cached) " >&6
13783 else $as_nop
13784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13785 /* end confdefs.h. */
13786 int i;
13787 int
13788 main (void)
13789 {
13790
13791 ;
13792 return 0;
13793 }
13794 _ACEOF
13795 if ac_fn_c_try_link "$LINENO"
13796 then :
13797 eval $cacheid=yes
13798 else $as_nop
13799 eval $cacheid=no
13800 fi
13801 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13802 conftest$ac_exeext conftest.$ac_ext
13803 fi
13804
13805
13806 CFLAGS="$xorg_testset_save_CFLAGS"
13807
13808 eval supported=\$$cacheid
13809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13810 printf "%s\n" "$supported" >&6; }
13811 if test "$supported" = "yes" ; then
13812 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13813 found="yes"
13814 fi
13815 fi
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831 xorg_testset_save_CFLAGS="$CFLAGS"
13832
13833 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13836 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13837 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13838 then :
13839 printf %s "(cached) " >&6
13840 else $as_nop
13841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13842 /* end confdefs.h. */
13843 int i;
13844 _ACEOF
13845 if ac_fn_c_try_compile "$LINENO"
13846 then :
13847 xorg_cv_cc_flag_unknown_warning_option=yes
13848 else $as_nop
13849 xorg_cv_cc_flag_unknown_warning_option=no
13850 fi
13851 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13852 fi
13853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13854 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13855 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13856 CFLAGS="$xorg_testset_save_CFLAGS"
13857 fi
13858
13859 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13862 fi
13863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13865 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13866 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13867 then :
13868 printf %s "(cached) " >&6
13869 else $as_nop
13870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13871 /* end confdefs.h. */
13872 int i;
13873 _ACEOF
13874 if ac_fn_c_try_compile "$LINENO"
13875 then :
13876 xorg_cv_cc_flag_unused_command_line_argument=yes
13877 else $as_nop
13878 xorg_cv_cc_flag_unused_command_line_argument=no
13879 fi
13880 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13881 fi
13882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13883 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13884 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13885 CFLAGS="$xorg_testset_save_CFLAGS"
13886 fi
13887
13888 found="no"
13889
13890 if test $found = "no" ; then
13891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13893 fi
13894
13895 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13897 fi
13898
13899 CFLAGS="$CFLAGS -Wmissing-prototypes"
13900
13901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13902 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
13903 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13904 if eval test \${$cacheid+y}
13905 then :
13906 printf %s "(cached) " >&6
13907 else $as_nop
13908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13909 /* end confdefs.h. */
13910 int i;
13911 int
13912 main (void)
13913 {
13914
13915 ;
13916 return 0;
13917 }
13918 _ACEOF
13919 if ac_fn_c_try_link "$LINENO"
13920 then :
13921 eval $cacheid=yes
13922 else $as_nop
13923 eval $cacheid=no
13924 fi
13925 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13926 conftest$ac_exeext conftest.$ac_ext
13927 fi
13928
13929
13930 CFLAGS="$xorg_testset_save_CFLAGS"
13931
13932 eval supported=\$$cacheid
13933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13934 printf "%s\n" "$supported" >&6; }
13935 if test "$supported" = "yes" ; then
13936 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13937 found="yes"
13938 fi
13939 fi
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955 xorg_testset_save_CFLAGS="$CFLAGS"
13956
13957 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13960 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13961 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13962 then :
13963 printf %s "(cached) " >&6
13964 else $as_nop
13965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13966 /* end confdefs.h. */
13967 int i;
13968 _ACEOF
13969 if ac_fn_c_try_compile "$LINENO"
13970 then :
13971 xorg_cv_cc_flag_unknown_warning_option=yes
13972 else $as_nop
13973 xorg_cv_cc_flag_unknown_warning_option=no
13974 fi
13975 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13976 fi
13977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13978 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13979 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13980 CFLAGS="$xorg_testset_save_CFLAGS"
13981 fi
13982
13983 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13986 fi
13987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13989 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13990 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13991 then :
13992 printf %s "(cached) " >&6
13993 else $as_nop
13994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13995 /* end confdefs.h. */
13996 int i;
13997 _ACEOF
13998 if ac_fn_c_try_compile "$LINENO"
13999 then :
14000 xorg_cv_cc_flag_unused_command_line_argument=yes
14001 else $as_nop
14002 xorg_cv_cc_flag_unused_command_line_argument=no
14003 fi
14004 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14005 fi
14006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14007 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14008 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14009 CFLAGS="$xorg_testset_save_CFLAGS"
14010 fi
14011
14012 found="no"
14013
14014 if test $found = "no" ; then
14015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14017 fi
14018
14019 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14021 fi
14022
14023 CFLAGS="$CFLAGS -Wnested-externs"
14024
14025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14026 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
14027 cacheid=xorg_cv_cc_flag__Wnested_externs
14028 if eval test \${$cacheid+y}
14029 then :
14030 printf %s "(cached) " >&6
14031 else $as_nop
14032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14033 /* end confdefs.h. */
14034 int i;
14035 int
14036 main (void)
14037 {
14038
14039 ;
14040 return 0;
14041 }
14042 _ACEOF
14043 if ac_fn_c_try_link "$LINENO"
14044 then :
14045 eval $cacheid=yes
14046 else $as_nop
14047 eval $cacheid=no
14048 fi
14049 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14050 conftest$ac_exeext conftest.$ac_ext
14051 fi
14052
14053
14054 CFLAGS="$xorg_testset_save_CFLAGS"
14055
14056 eval supported=\$$cacheid
14057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14058 printf "%s\n" "$supported" >&6; }
14059 if test "$supported" = "yes" ; then
14060 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
14061 found="yes"
14062 fi
14063 fi
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079 xorg_testset_save_CFLAGS="$CFLAGS"
14080
14081 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14084 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14085 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14086 then :
14087 printf %s "(cached) " >&6
14088 else $as_nop
14089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14090 /* end confdefs.h. */
14091 int i;
14092 _ACEOF
14093 if ac_fn_c_try_compile "$LINENO"
14094 then :
14095 xorg_cv_cc_flag_unknown_warning_option=yes
14096 else $as_nop
14097 xorg_cv_cc_flag_unknown_warning_option=no
14098 fi
14099 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14100 fi
14101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14102 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14103 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14104 CFLAGS="$xorg_testset_save_CFLAGS"
14105 fi
14106
14107 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14110 fi
14111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14113 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14114 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14115 then :
14116 printf %s "(cached) " >&6
14117 else $as_nop
14118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14119 /* end confdefs.h. */
14120 int i;
14121 _ACEOF
14122 if ac_fn_c_try_compile "$LINENO"
14123 then :
14124 xorg_cv_cc_flag_unused_command_line_argument=yes
14125 else $as_nop
14126 xorg_cv_cc_flag_unused_command_line_argument=no
14127 fi
14128 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14129 fi
14130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14131 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14132 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14133 CFLAGS="$xorg_testset_save_CFLAGS"
14134 fi
14135
14136 found="no"
14137
14138 if test $found = "no" ; then
14139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14141 fi
14142
14143 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14145 fi
14146
14147 CFLAGS="$CFLAGS -Wbad-function-cast"
14148
14149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14150 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
14151 cacheid=xorg_cv_cc_flag__Wbad_function_cast
14152 if eval test \${$cacheid+y}
14153 then :
14154 printf %s "(cached) " >&6
14155 else $as_nop
14156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14157 /* end confdefs.h. */
14158 int i;
14159 int
14160 main (void)
14161 {
14162
14163 ;
14164 return 0;
14165 }
14166 _ACEOF
14167 if ac_fn_c_try_link "$LINENO"
14168 then :
14169 eval $cacheid=yes
14170 else $as_nop
14171 eval $cacheid=no
14172 fi
14173 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14174 conftest$ac_exeext conftest.$ac_ext
14175 fi
14176
14177
14178 CFLAGS="$xorg_testset_save_CFLAGS"
14179
14180 eval supported=\$$cacheid
14181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14182 printf "%s\n" "$supported" >&6; }
14183 if test "$supported" = "yes" ; then
14184 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14185 found="yes"
14186 fi
14187 fi
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203 xorg_testset_save_CFLAGS="$CFLAGS"
14204
14205 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14206 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14208 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14209 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14210 then :
14211 printf %s "(cached) " >&6
14212 else $as_nop
14213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14214 /* end confdefs.h. */
14215 int i;
14216 _ACEOF
14217 if ac_fn_c_try_compile "$LINENO"
14218 then :
14219 xorg_cv_cc_flag_unknown_warning_option=yes
14220 else $as_nop
14221 xorg_cv_cc_flag_unknown_warning_option=no
14222 fi
14223 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14224 fi
14225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14226 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14227 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14228 CFLAGS="$xorg_testset_save_CFLAGS"
14229 fi
14230
14231 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14234 fi
14235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14237 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14238 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14239 then :
14240 printf %s "(cached) " >&6
14241 else $as_nop
14242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14243 /* end confdefs.h. */
14244 int i;
14245 _ACEOF
14246 if ac_fn_c_try_compile "$LINENO"
14247 then :
14248 xorg_cv_cc_flag_unused_command_line_argument=yes
14249 else $as_nop
14250 xorg_cv_cc_flag_unused_command_line_argument=no
14251 fi
14252 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14253 fi
14254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14255 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14256 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14257 CFLAGS="$xorg_testset_save_CFLAGS"
14258 fi
14259
14260 found="no"
14261
14262 if test $found = "no" ; then
14263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14265 fi
14266
14267 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14269 fi
14270
14271 CFLAGS="$CFLAGS -Wold-style-definition"
14272
14273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14274 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14275 cacheid=xorg_cv_cc_flag__Wold_style_definition
14276 if eval test \${$cacheid+y}
14277 then :
14278 printf %s "(cached) " >&6
14279 else $as_nop
14280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14281 /* end confdefs.h. */
14282 int i;
14283 int
14284 main (void)
14285 {
14286
14287 ;
14288 return 0;
14289 }
14290 _ACEOF
14291 if ac_fn_c_try_link "$LINENO"
14292 then :
14293 eval $cacheid=yes
14294 else $as_nop
14295 eval $cacheid=no
14296 fi
14297 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14298 conftest$ac_exeext conftest.$ac_ext
14299 fi
14300
14301
14302 CFLAGS="$xorg_testset_save_CFLAGS"
14303
14304 eval supported=\$$cacheid
14305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14306 printf "%s\n" "$supported" >&6; }
14307 if test "$supported" = "yes" ; then
14308 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14309 found="yes"
14310 fi
14311 fi
14312
14313 if test $found = "no" ; then
14314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14315 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14316 fi
14317
14318 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14320 fi
14321
14322 CFLAGS="$CFLAGS -fd"
14323
14324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14325 printf %s "checking if $CC supports -fd... " >&6; }
14326 cacheid=xorg_cv_cc_flag__fd
14327 if eval test \${$cacheid+y}
14328 then :
14329 printf %s "(cached) " >&6
14330 else $as_nop
14331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14332 /* end confdefs.h. */
14333 int i;
14334 int
14335 main (void)
14336 {
14337
14338 ;
14339 return 0;
14340 }
14341 _ACEOF
14342 if ac_fn_c_try_link "$LINENO"
14343 then :
14344 eval $cacheid=yes
14345 else $as_nop
14346 eval $cacheid=no
14347 fi
14348 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14349 conftest$ac_exeext conftest.$ac_ext
14350 fi
14351
14352
14353 CFLAGS="$xorg_testset_save_CFLAGS"
14354
14355 eval supported=\$$cacheid
14356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14357 printf "%s\n" "$supported" >&6; }
14358 if test "$supported" = "yes" ; then
14359 BASE_CFLAGS="$BASE_CFLAGS -fd"
14360 found="yes"
14361 fi
14362 fi
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378 xorg_testset_save_CFLAGS="$CFLAGS"
14379
14380 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14383 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14384 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14385 then :
14386 printf %s "(cached) " >&6
14387 else $as_nop
14388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14389 /* end confdefs.h. */
14390 int i;
14391 _ACEOF
14392 if ac_fn_c_try_compile "$LINENO"
14393 then :
14394 xorg_cv_cc_flag_unknown_warning_option=yes
14395 else $as_nop
14396 xorg_cv_cc_flag_unknown_warning_option=no
14397 fi
14398 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14399 fi
14400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14401 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14402 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14403 CFLAGS="$xorg_testset_save_CFLAGS"
14404 fi
14405
14406 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14408 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14409 fi
14410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14412 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14413 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14414 then :
14415 printf %s "(cached) " >&6
14416 else $as_nop
14417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14418 /* end confdefs.h. */
14419 int i;
14420 _ACEOF
14421 if ac_fn_c_try_compile "$LINENO"
14422 then :
14423 xorg_cv_cc_flag_unused_command_line_argument=yes
14424 else $as_nop
14425 xorg_cv_cc_flag_unused_command_line_argument=no
14426 fi
14427 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14428 fi
14429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14430 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14431 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14432 CFLAGS="$xorg_testset_save_CFLAGS"
14433 fi
14434
14435 found="no"
14436
14437 if test $found = "no" ; then
14438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14440 fi
14441
14442 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14444 fi
14445
14446 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14447
14448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14449 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14450 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14451 if eval test \${$cacheid+y}
14452 then :
14453 printf %s "(cached) " >&6
14454 else $as_nop
14455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14456 /* end confdefs.h. */
14457 int i;
14458 int
14459 main (void)
14460 {
14461
14462 ;
14463 return 0;
14464 }
14465 _ACEOF
14466 if ac_fn_c_try_link "$LINENO"
14467 then :
14468 eval $cacheid=yes
14469 else $as_nop
14470 eval $cacheid=no
14471 fi
14472 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14473 conftest$ac_exeext conftest.$ac_ext
14474 fi
14475
14476
14477 CFLAGS="$xorg_testset_save_CFLAGS"
14478
14479 eval supported=\$$cacheid
14480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14481 printf "%s\n" "$supported" >&6; }
14482 if test "$supported" = "yes" ; then
14483 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14484 found="yes"
14485 fi
14486 fi
14487
14488
14489
14490
14491
14492 # This chunk adds additional warnings that could catch undesired effects.
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506 xorg_testset_save_CFLAGS="$CFLAGS"
14507
14508 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14511 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14512 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14513 then :
14514 printf %s "(cached) " >&6
14515 else $as_nop
14516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14517 /* end confdefs.h. */
14518 int i;
14519 _ACEOF
14520 if ac_fn_c_try_compile "$LINENO"
14521 then :
14522 xorg_cv_cc_flag_unknown_warning_option=yes
14523 else $as_nop
14524 xorg_cv_cc_flag_unknown_warning_option=no
14525 fi
14526 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14527 fi
14528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14529 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14530 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14531 CFLAGS="$xorg_testset_save_CFLAGS"
14532 fi
14533
14534 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14537 fi
14538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14540 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14541 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14542 then :
14543 printf %s "(cached) " >&6
14544 else $as_nop
14545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14546 /* end confdefs.h. */
14547 int i;
14548 _ACEOF
14549 if ac_fn_c_try_compile "$LINENO"
14550 then :
14551 xorg_cv_cc_flag_unused_command_line_argument=yes
14552 else $as_nop
14553 xorg_cv_cc_flag_unused_command_line_argument=no
14554 fi
14555 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14556 fi
14557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14558 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14559 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14560 CFLAGS="$xorg_testset_save_CFLAGS"
14561 fi
14562
14563 found="no"
14564
14565 if test $found = "no" ; then
14566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14567 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14568 fi
14569
14570 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14572 fi
14573
14574 CFLAGS="$CFLAGS -Wunused"
14575
14576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14577 printf %s "checking if $CC supports -Wunused... " >&6; }
14578 cacheid=xorg_cv_cc_flag__Wunused
14579 if eval test \${$cacheid+y}
14580 then :
14581 printf %s "(cached) " >&6
14582 else $as_nop
14583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14584 /* end confdefs.h. */
14585 int i;
14586 int
14587 main (void)
14588 {
14589
14590 ;
14591 return 0;
14592 }
14593 _ACEOF
14594 if ac_fn_c_try_link "$LINENO"
14595 then :
14596 eval $cacheid=yes
14597 else $as_nop
14598 eval $cacheid=no
14599 fi
14600 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14601 conftest$ac_exeext conftest.$ac_ext
14602 fi
14603
14604
14605 CFLAGS="$xorg_testset_save_CFLAGS"
14606
14607 eval supported=\$$cacheid
14608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14609 printf "%s\n" "$supported" >&6; }
14610 if test "$supported" = "yes" ; then
14611 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14612 found="yes"
14613 fi
14614 fi
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630 xorg_testset_save_CFLAGS="$CFLAGS"
14631
14632 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14635 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14636 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14637 then :
14638 printf %s "(cached) " >&6
14639 else $as_nop
14640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14641 /* end confdefs.h. */
14642 int i;
14643 _ACEOF
14644 if ac_fn_c_try_compile "$LINENO"
14645 then :
14646 xorg_cv_cc_flag_unknown_warning_option=yes
14647 else $as_nop
14648 xorg_cv_cc_flag_unknown_warning_option=no
14649 fi
14650 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14651 fi
14652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14653 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14654 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14655 CFLAGS="$xorg_testset_save_CFLAGS"
14656 fi
14657
14658 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14661 fi
14662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14664 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14665 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14666 then :
14667 printf %s "(cached) " >&6
14668 else $as_nop
14669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14670 /* end confdefs.h. */
14671 int i;
14672 _ACEOF
14673 if ac_fn_c_try_compile "$LINENO"
14674 then :
14675 xorg_cv_cc_flag_unused_command_line_argument=yes
14676 else $as_nop
14677 xorg_cv_cc_flag_unused_command_line_argument=no
14678 fi
14679 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14680 fi
14681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14682 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14683 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14684 CFLAGS="$xorg_testset_save_CFLAGS"
14685 fi
14686
14687 found="no"
14688
14689 if test $found = "no" ; then
14690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14692 fi
14693
14694 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14696 fi
14697
14698 CFLAGS="$CFLAGS -Wuninitialized"
14699
14700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14701 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14702 cacheid=xorg_cv_cc_flag__Wuninitialized
14703 if eval test \${$cacheid+y}
14704 then :
14705 printf %s "(cached) " >&6
14706 else $as_nop
14707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14708 /* end confdefs.h. */
14709 int i;
14710 int
14711 main (void)
14712 {
14713
14714 ;
14715 return 0;
14716 }
14717 _ACEOF
14718 if ac_fn_c_try_link "$LINENO"
14719 then :
14720 eval $cacheid=yes
14721 else $as_nop
14722 eval $cacheid=no
14723 fi
14724 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14725 conftest$ac_exeext conftest.$ac_ext
14726 fi
14727
14728
14729 CFLAGS="$xorg_testset_save_CFLAGS"
14730
14731 eval supported=\$$cacheid
14732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14733 printf "%s\n" "$supported" >&6; }
14734 if test "$supported" = "yes" ; then
14735 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14736 found="yes"
14737 fi
14738 fi
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754 xorg_testset_save_CFLAGS="$CFLAGS"
14755
14756 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14759 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14760 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14761 then :
14762 printf %s "(cached) " >&6
14763 else $as_nop
14764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14765 /* end confdefs.h. */
14766 int i;
14767 _ACEOF
14768 if ac_fn_c_try_compile "$LINENO"
14769 then :
14770 xorg_cv_cc_flag_unknown_warning_option=yes
14771 else $as_nop
14772 xorg_cv_cc_flag_unknown_warning_option=no
14773 fi
14774 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14775 fi
14776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14777 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14778 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14779 CFLAGS="$xorg_testset_save_CFLAGS"
14780 fi
14781
14782 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14785 fi
14786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14788 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14789 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14790 then :
14791 printf %s "(cached) " >&6
14792 else $as_nop
14793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14794 /* end confdefs.h. */
14795 int i;
14796 _ACEOF
14797 if ac_fn_c_try_compile "$LINENO"
14798 then :
14799 xorg_cv_cc_flag_unused_command_line_argument=yes
14800 else $as_nop
14801 xorg_cv_cc_flag_unused_command_line_argument=no
14802 fi
14803 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14804 fi
14805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14806 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14807 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14808 CFLAGS="$xorg_testset_save_CFLAGS"
14809 fi
14810
14811 found="no"
14812
14813 if test $found = "no" ; then
14814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14816 fi
14817
14818 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14820 fi
14821
14822 CFLAGS="$CFLAGS -Wshadow"
14823
14824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14825 printf %s "checking if $CC supports -Wshadow... " >&6; }
14826 cacheid=xorg_cv_cc_flag__Wshadow
14827 if eval test \${$cacheid+y}
14828 then :
14829 printf %s "(cached) " >&6
14830 else $as_nop
14831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14832 /* end confdefs.h. */
14833 int i;
14834 int
14835 main (void)
14836 {
14837
14838 ;
14839 return 0;
14840 }
14841 _ACEOF
14842 if ac_fn_c_try_link "$LINENO"
14843 then :
14844 eval $cacheid=yes
14845 else $as_nop
14846 eval $cacheid=no
14847 fi
14848 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14849 conftest$ac_exeext conftest.$ac_ext
14850 fi
14851
14852
14853 CFLAGS="$xorg_testset_save_CFLAGS"
14854
14855 eval supported=\$$cacheid
14856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14857 printf "%s\n" "$supported" >&6; }
14858 if test "$supported" = "yes" ; then
14859 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14860 found="yes"
14861 fi
14862 fi
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878 xorg_testset_save_CFLAGS="$CFLAGS"
14879
14880 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14883 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14884 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14885 then :
14886 printf %s "(cached) " >&6
14887 else $as_nop
14888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14889 /* end confdefs.h. */
14890 int i;
14891 _ACEOF
14892 if ac_fn_c_try_compile "$LINENO"
14893 then :
14894 xorg_cv_cc_flag_unknown_warning_option=yes
14895 else $as_nop
14896 xorg_cv_cc_flag_unknown_warning_option=no
14897 fi
14898 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14899 fi
14900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14901 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14902 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14903 CFLAGS="$xorg_testset_save_CFLAGS"
14904 fi
14905
14906 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14909 fi
14910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14912 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14913 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14914 then :
14915 printf %s "(cached) " >&6
14916 else $as_nop
14917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14918 /* end confdefs.h. */
14919 int i;
14920 _ACEOF
14921 if ac_fn_c_try_compile "$LINENO"
14922 then :
14923 xorg_cv_cc_flag_unused_command_line_argument=yes
14924 else $as_nop
14925 xorg_cv_cc_flag_unused_command_line_argument=no
14926 fi
14927 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14928 fi
14929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14930 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14931 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14932 CFLAGS="$xorg_testset_save_CFLAGS"
14933 fi
14934
14935 found="no"
14936
14937 if test $found = "no" ; then
14938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14940 fi
14941
14942 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14944 fi
14945
14946 CFLAGS="$CFLAGS -Wmissing-noreturn"
14947
14948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14949 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
14950 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14951 if eval test \${$cacheid+y}
14952 then :
14953 printf %s "(cached) " >&6
14954 else $as_nop
14955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14956 /* end confdefs.h. */
14957 int i;
14958 int
14959 main (void)
14960 {
14961
14962 ;
14963 return 0;
14964 }
14965 _ACEOF
14966 if ac_fn_c_try_link "$LINENO"
14967 then :
14968 eval $cacheid=yes
14969 else $as_nop
14970 eval $cacheid=no
14971 fi
14972 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14973 conftest$ac_exeext conftest.$ac_ext
14974 fi
14975
14976
14977 CFLAGS="$xorg_testset_save_CFLAGS"
14978
14979 eval supported=\$$cacheid
14980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14981 printf "%s\n" "$supported" >&6; }
14982 if test "$supported" = "yes" ; then
14983 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14984 found="yes"
14985 fi
14986 fi
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002 xorg_testset_save_CFLAGS="$CFLAGS"
15003
15004 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15005 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15007 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15008 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15009 then :
15010 printf %s "(cached) " >&6
15011 else $as_nop
15012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15013 /* end confdefs.h. */
15014 int i;
15015 _ACEOF
15016 if ac_fn_c_try_compile "$LINENO"
15017 then :
15018 xorg_cv_cc_flag_unknown_warning_option=yes
15019 else $as_nop
15020 xorg_cv_cc_flag_unknown_warning_option=no
15021 fi
15022 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15023 fi
15024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15025 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15026 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15027 CFLAGS="$xorg_testset_save_CFLAGS"
15028 fi
15029
15030 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15031 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15032 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15033 fi
15034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15036 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15037 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15038 then :
15039 printf %s "(cached) " >&6
15040 else $as_nop
15041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15042 /* end confdefs.h. */
15043 int i;
15044 _ACEOF
15045 if ac_fn_c_try_compile "$LINENO"
15046 then :
15047 xorg_cv_cc_flag_unused_command_line_argument=yes
15048 else $as_nop
15049 xorg_cv_cc_flag_unused_command_line_argument=no
15050 fi
15051 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15052 fi
15053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15054 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15055 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15056 CFLAGS="$xorg_testset_save_CFLAGS"
15057 fi
15058
15059 found="no"
15060
15061 if test $found = "no" ; then
15062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15063 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15064 fi
15065
15066 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15068 fi
15069
15070 CFLAGS="$CFLAGS -Wmissing-format-attribute"
15071
15072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15073 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15074 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15075 if eval test \${$cacheid+y}
15076 then :
15077 printf %s "(cached) " >&6
15078 else $as_nop
15079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15080 /* end confdefs.h. */
15081 int i;
15082 int
15083 main (void)
15084 {
15085
15086 ;
15087 return 0;
15088 }
15089 _ACEOF
15090 if ac_fn_c_try_link "$LINENO"
15091 then :
15092 eval $cacheid=yes
15093 else $as_nop
15094 eval $cacheid=no
15095 fi
15096 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15097 conftest$ac_exeext conftest.$ac_ext
15098 fi
15099
15100
15101 CFLAGS="$xorg_testset_save_CFLAGS"
15102
15103 eval supported=\$$cacheid
15104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15105 printf "%s\n" "$supported" >&6; }
15106 if test "$supported" = "yes" ; then
15107 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15108 found="yes"
15109 fi
15110 fi
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126 xorg_testset_save_CFLAGS="$CFLAGS"
15127
15128 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15129 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15131 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15132 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15133 then :
15134 printf %s "(cached) " >&6
15135 else $as_nop
15136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15137 /* end confdefs.h. */
15138 int i;
15139 _ACEOF
15140 if ac_fn_c_try_compile "$LINENO"
15141 then :
15142 xorg_cv_cc_flag_unknown_warning_option=yes
15143 else $as_nop
15144 xorg_cv_cc_flag_unknown_warning_option=no
15145 fi
15146 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15147 fi
15148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15149 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15150 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15151 CFLAGS="$xorg_testset_save_CFLAGS"
15152 fi
15153
15154 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15155 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15156 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15157 fi
15158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15160 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15161 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15162 then :
15163 printf %s "(cached) " >&6
15164 else $as_nop
15165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15166 /* end confdefs.h. */
15167 int i;
15168 _ACEOF
15169 if ac_fn_c_try_compile "$LINENO"
15170 then :
15171 xorg_cv_cc_flag_unused_command_line_argument=yes
15172 else $as_nop
15173 xorg_cv_cc_flag_unused_command_line_argument=no
15174 fi
15175 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15176 fi
15177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15178 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15179 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15180 CFLAGS="$xorg_testset_save_CFLAGS"
15181 fi
15182
15183 found="no"
15184
15185 if test $found = "no" ; then
15186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15188 fi
15189
15190 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15192 fi
15193
15194 CFLAGS="$CFLAGS -Wredundant-decls"
15195
15196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15197 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15198 cacheid=xorg_cv_cc_flag__Wredundant_decls
15199 if eval test \${$cacheid+y}
15200 then :
15201 printf %s "(cached) " >&6
15202 else $as_nop
15203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15204 /* end confdefs.h. */
15205 int i;
15206 int
15207 main (void)
15208 {
15209
15210 ;
15211 return 0;
15212 }
15213 _ACEOF
15214 if ac_fn_c_try_link "$LINENO"
15215 then :
15216 eval $cacheid=yes
15217 else $as_nop
15218 eval $cacheid=no
15219 fi
15220 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15221 conftest$ac_exeext conftest.$ac_ext
15222 fi
15223
15224
15225 CFLAGS="$xorg_testset_save_CFLAGS"
15226
15227 eval supported=\$$cacheid
15228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15229 printf "%s\n" "$supported" >&6; }
15230 if test "$supported" = "yes" ; then
15231 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15232 found="yes"
15233 fi
15234 fi
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250 xorg_testset_save_CFLAGS="$CFLAGS"
15251
15252 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15255 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15256 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15257 then :
15258 printf %s "(cached) " >&6
15259 else $as_nop
15260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15261 /* end confdefs.h. */
15262 int i;
15263 _ACEOF
15264 if ac_fn_c_try_compile "$LINENO"
15265 then :
15266 xorg_cv_cc_flag_unknown_warning_option=yes
15267 else $as_nop
15268 xorg_cv_cc_flag_unknown_warning_option=no
15269 fi
15270 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15271 fi
15272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15273 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15274 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15275 CFLAGS="$xorg_testset_save_CFLAGS"
15276 fi
15277
15278 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15280 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15281 fi
15282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15284 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15285 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15286 then :
15287 printf %s "(cached) " >&6
15288 else $as_nop
15289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15290 /* end confdefs.h. */
15291 int i;
15292 _ACEOF
15293 if ac_fn_c_try_compile "$LINENO"
15294 then :
15295 xorg_cv_cc_flag_unused_command_line_argument=yes
15296 else $as_nop
15297 xorg_cv_cc_flag_unused_command_line_argument=no
15298 fi
15299 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15300 fi
15301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15302 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15303 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15304 CFLAGS="$xorg_testset_save_CFLAGS"
15305 fi
15306
15307 found="no"
15308
15309 if test $found = "no" ; then
15310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15312 fi
15313
15314 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15316 fi
15317
15318 CFLAGS="$CFLAGS -Wlogical-op"
15319
15320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15321 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15322 cacheid=xorg_cv_cc_flag__Wlogical_op
15323 if eval test \${$cacheid+y}
15324 then :
15325 printf %s "(cached) " >&6
15326 else $as_nop
15327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15328 /* end confdefs.h. */
15329 int i;
15330 int
15331 main (void)
15332 {
15333
15334 ;
15335 return 0;
15336 }
15337 _ACEOF
15338 if ac_fn_c_try_link "$LINENO"
15339 then :
15340 eval $cacheid=yes
15341 else $as_nop
15342 eval $cacheid=no
15343 fi
15344 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15345 conftest$ac_exeext conftest.$ac_ext
15346 fi
15347
15348
15349 CFLAGS="$xorg_testset_save_CFLAGS"
15350
15351 eval supported=\$$cacheid
15352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15353 printf "%s\n" "$supported" >&6; }
15354 if test "$supported" = "yes" ; then
15355 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15356 found="yes"
15357 fi
15358 fi
15359
15360
15361
15362 # These are currently disabled because they are noisy. They will be enabled
15363 # in the future once the codebase is sufficiently modernized to silence
15364 # them. For now, I don't want them to drown out the other warnings.
15365 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15366 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15367 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15368
15369 # Turn some warnings into errors, so we don't accidently get successful builds
15370 # when there are problems that should be fixed.
15371
15372 if test "x$SELECTIVE_WERROR" = "xyes" ; then
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386 xorg_testset_save_CFLAGS="$CFLAGS"
15387
15388 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15391 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15392 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15393 then :
15394 printf %s "(cached) " >&6
15395 else $as_nop
15396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15397 /* end confdefs.h. */
15398 int i;
15399 _ACEOF
15400 if ac_fn_c_try_compile "$LINENO"
15401 then :
15402 xorg_cv_cc_flag_unknown_warning_option=yes
15403 else $as_nop
15404 xorg_cv_cc_flag_unknown_warning_option=no
15405 fi
15406 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15407 fi
15408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15409 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15410 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15411 CFLAGS="$xorg_testset_save_CFLAGS"
15412 fi
15413
15414 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15417 fi
15418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15420 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15421 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15422 then :
15423 printf %s "(cached) " >&6
15424 else $as_nop
15425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15426 /* end confdefs.h. */
15427 int i;
15428 _ACEOF
15429 if ac_fn_c_try_compile "$LINENO"
15430 then :
15431 xorg_cv_cc_flag_unused_command_line_argument=yes
15432 else $as_nop
15433 xorg_cv_cc_flag_unused_command_line_argument=no
15434 fi
15435 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15436 fi
15437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15438 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15439 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15440 CFLAGS="$xorg_testset_save_CFLAGS"
15441 fi
15442
15443 found="no"
15444
15445 if test $found = "no" ; then
15446 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15448 fi
15449
15450 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15452 fi
15453
15454 CFLAGS="$CFLAGS -Werror=implicit"
15455
15456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15457 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15458 cacheid=xorg_cv_cc_flag__Werror_implicit
15459 if eval test \${$cacheid+y}
15460 then :
15461 printf %s "(cached) " >&6
15462 else $as_nop
15463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15464 /* end confdefs.h. */
15465 int i;
15466 int
15467 main (void)
15468 {
15469
15470 ;
15471 return 0;
15472 }
15473 _ACEOF
15474 if ac_fn_c_try_link "$LINENO"
15475 then :
15476 eval $cacheid=yes
15477 else $as_nop
15478 eval $cacheid=no
15479 fi
15480 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15481 conftest$ac_exeext conftest.$ac_ext
15482 fi
15483
15484
15485 CFLAGS="$xorg_testset_save_CFLAGS"
15486
15487 eval supported=\$$cacheid
15488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15489 printf "%s\n" "$supported" >&6; }
15490 if test "$supported" = "yes" ; then
15491 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15492 found="yes"
15493 fi
15494 fi
15495
15496 if test $found = "no" ; then
15497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15499 fi
15500
15501 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15503 fi
15504
15505 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15506
15507 { 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
15508 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15509 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15510 if eval test \${$cacheid+y}
15511 then :
15512 printf %s "(cached) " >&6
15513 else $as_nop
15514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15515 /* end confdefs.h. */
15516 int i;
15517 int
15518 main (void)
15519 {
15520
15521 ;
15522 return 0;
15523 }
15524 _ACEOF
15525 if ac_fn_c_try_link "$LINENO"
15526 then :
15527 eval $cacheid=yes
15528 else $as_nop
15529 eval $cacheid=no
15530 fi
15531 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15532 conftest$ac_exeext conftest.$ac_ext
15533 fi
15534
15535
15536 CFLAGS="$xorg_testset_save_CFLAGS"
15537
15538 eval supported=\$$cacheid
15539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15540 printf "%s\n" "$supported" >&6; }
15541 if test "$supported" = "yes" ; then
15542 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15543 found="yes"
15544 fi
15545 fi
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561 xorg_testset_save_CFLAGS="$CFLAGS"
15562
15563 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15566 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15567 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15568 then :
15569 printf %s "(cached) " >&6
15570 else $as_nop
15571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15572 /* end confdefs.h. */
15573 int i;
15574 _ACEOF
15575 if ac_fn_c_try_compile "$LINENO"
15576 then :
15577 xorg_cv_cc_flag_unknown_warning_option=yes
15578 else $as_nop
15579 xorg_cv_cc_flag_unknown_warning_option=no
15580 fi
15581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15582 fi
15583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15584 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15585 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15586 CFLAGS="$xorg_testset_save_CFLAGS"
15587 fi
15588
15589 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15592 fi
15593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15595 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15596 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15597 then :
15598 printf %s "(cached) " >&6
15599 else $as_nop
15600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15601 /* end confdefs.h. */
15602 int i;
15603 _ACEOF
15604 if ac_fn_c_try_compile "$LINENO"
15605 then :
15606 xorg_cv_cc_flag_unused_command_line_argument=yes
15607 else $as_nop
15608 xorg_cv_cc_flag_unused_command_line_argument=no
15609 fi
15610 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15611 fi
15612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15613 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15614 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15615 CFLAGS="$xorg_testset_save_CFLAGS"
15616 fi
15617
15618 found="no"
15619
15620 if test $found = "no" ; then
15621 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15622 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15623 fi
15624
15625 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15627 fi
15628
15629 CFLAGS="$CFLAGS -Werror=nonnull"
15630
15631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15632 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15633 cacheid=xorg_cv_cc_flag__Werror_nonnull
15634 if eval test \${$cacheid+y}
15635 then :
15636 printf %s "(cached) " >&6
15637 else $as_nop
15638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15639 /* end confdefs.h. */
15640 int i;
15641 int
15642 main (void)
15643 {
15644
15645 ;
15646 return 0;
15647 }
15648 _ACEOF
15649 if ac_fn_c_try_link "$LINENO"
15650 then :
15651 eval $cacheid=yes
15652 else $as_nop
15653 eval $cacheid=no
15654 fi
15655 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15656 conftest$ac_exeext conftest.$ac_ext
15657 fi
15658
15659
15660 CFLAGS="$xorg_testset_save_CFLAGS"
15661
15662 eval supported=\$$cacheid
15663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15664 printf "%s\n" "$supported" >&6; }
15665 if test "$supported" = "yes" ; then
15666 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15667 found="yes"
15668 fi
15669 fi
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685 xorg_testset_save_CFLAGS="$CFLAGS"
15686
15687 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15688 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15690 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15691 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15692 then :
15693 printf %s "(cached) " >&6
15694 else $as_nop
15695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15696 /* end confdefs.h. */
15697 int i;
15698 _ACEOF
15699 if ac_fn_c_try_compile "$LINENO"
15700 then :
15701 xorg_cv_cc_flag_unknown_warning_option=yes
15702 else $as_nop
15703 xorg_cv_cc_flag_unknown_warning_option=no
15704 fi
15705 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15706 fi
15707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15708 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15709 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15710 CFLAGS="$xorg_testset_save_CFLAGS"
15711 fi
15712
15713 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15714 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15715 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15716 fi
15717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15719 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15720 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15721 then :
15722 printf %s "(cached) " >&6
15723 else $as_nop
15724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15725 /* end confdefs.h. */
15726 int i;
15727 _ACEOF
15728 if ac_fn_c_try_compile "$LINENO"
15729 then :
15730 xorg_cv_cc_flag_unused_command_line_argument=yes
15731 else $as_nop
15732 xorg_cv_cc_flag_unused_command_line_argument=no
15733 fi
15734 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15735 fi
15736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15737 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15738 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15739 CFLAGS="$xorg_testset_save_CFLAGS"
15740 fi
15741
15742 found="no"
15743
15744 if test $found = "no" ; then
15745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15746 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15747 fi
15748
15749 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15751 fi
15752
15753 CFLAGS="$CFLAGS -Werror=init-self"
15754
15755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15756 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15757 cacheid=xorg_cv_cc_flag__Werror_init_self
15758 if eval test \${$cacheid+y}
15759 then :
15760 printf %s "(cached) " >&6
15761 else $as_nop
15762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15763 /* end confdefs.h. */
15764 int i;
15765 int
15766 main (void)
15767 {
15768
15769 ;
15770 return 0;
15771 }
15772 _ACEOF
15773 if ac_fn_c_try_link "$LINENO"
15774 then :
15775 eval $cacheid=yes
15776 else $as_nop
15777 eval $cacheid=no
15778 fi
15779 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15780 conftest$ac_exeext conftest.$ac_ext
15781 fi
15782
15783
15784 CFLAGS="$xorg_testset_save_CFLAGS"
15785
15786 eval supported=\$$cacheid
15787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15788 printf "%s\n" "$supported" >&6; }
15789 if test "$supported" = "yes" ; then
15790 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15791 found="yes"
15792 fi
15793 fi
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809 xorg_testset_save_CFLAGS="$CFLAGS"
15810
15811 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15812 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15814 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15815 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15816 then :
15817 printf %s "(cached) " >&6
15818 else $as_nop
15819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15820 /* end confdefs.h. */
15821 int i;
15822 _ACEOF
15823 if ac_fn_c_try_compile "$LINENO"
15824 then :
15825 xorg_cv_cc_flag_unknown_warning_option=yes
15826 else $as_nop
15827 xorg_cv_cc_flag_unknown_warning_option=no
15828 fi
15829 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15830 fi
15831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15832 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15833 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15834 CFLAGS="$xorg_testset_save_CFLAGS"
15835 fi
15836
15837 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15839 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15840 fi
15841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15843 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15844 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15845 then :
15846 printf %s "(cached) " >&6
15847 else $as_nop
15848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15849 /* end confdefs.h. */
15850 int i;
15851 _ACEOF
15852 if ac_fn_c_try_compile "$LINENO"
15853 then :
15854 xorg_cv_cc_flag_unused_command_line_argument=yes
15855 else $as_nop
15856 xorg_cv_cc_flag_unused_command_line_argument=no
15857 fi
15858 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15859 fi
15860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15861 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15862 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15863 CFLAGS="$xorg_testset_save_CFLAGS"
15864 fi
15865
15866 found="no"
15867
15868 if test $found = "no" ; then
15869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15870 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15871 fi
15872
15873 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15875 fi
15876
15877 CFLAGS="$CFLAGS -Werror=main"
15878
15879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15880 printf %s "checking if $CC supports -Werror=main... " >&6; }
15881 cacheid=xorg_cv_cc_flag__Werror_main
15882 if eval test \${$cacheid+y}
15883 then :
15884 printf %s "(cached) " >&6
15885 else $as_nop
15886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15887 /* end confdefs.h. */
15888 int i;
15889 int
15890 main (void)
15891 {
15892
15893 ;
15894 return 0;
15895 }
15896 _ACEOF
15897 if ac_fn_c_try_link "$LINENO"
15898 then :
15899 eval $cacheid=yes
15900 else $as_nop
15901 eval $cacheid=no
15902 fi
15903 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15904 conftest$ac_exeext conftest.$ac_ext
15905 fi
15906
15907
15908 CFLAGS="$xorg_testset_save_CFLAGS"
15909
15910 eval supported=\$$cacheid
15911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15912 printf "%s\n" "$supported" >&6; }
15913 if test "$supported" = "yes" ; then
15914 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15915 found="yes"
15916 fi
15917 fi
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933 xorg_testset_save_CFLAGS="$CFLAGS"
15934
15935 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15936 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15938 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15939 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15940 then :
15941 printf %s "(cached) " >&6
15942 else $as_nop
15943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15944 /* end confdefs.h. */
15945 int i;
15946 _ACEOF
15947 if ac_fn_c_try_compile "$LINENO"
15948 then :
15949 xorg_cv_cc_flag_unknown_warning_option=yes
15950 else $as_nop
15951 xorg_cv_cc_flag_unknown_warning_option=no
15952 fi
15953 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15954 fi
15955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15956 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15957 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15958 CFLAGS="$xorg_testset_save_CFLAGS"
15959 fi
15960
15961 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15964 fi
15965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15967 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15968 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15969 then :
15970 printf %s "(cached) " >&6
15971 else $as_nop
15972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15973 /* end confdefs.h. */
15974 int i;
15975 _ACEOF
15976 if ac_fn_c_try_compile "$LINENO"
15977 then :
15978 xorg_cv_cc_flag_unused_command_line_argument=yes
15979 else $as_nop
15980 xorg_cv_cc_flag_unused_command_line_argument=no
15981 fi
15982 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15983 fi
15984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15985 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15986 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15987 CFLAGS="$xorg_testset_save_CFLAGS"
15988 fi
15989
15990 found="no"
15991
15992 if test $found = "no" ; then
15993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15994 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15995 fi
15996
15997 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15999 fi
16000
16001 CFLAGS="$CFLAGS -Werror=missing-braces"
16002
16003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
16004 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
16005 cacheid=xorg_cv_cc_flag__Werror_missing_braces
16006 if eval test \${$cacheid+y}
16007 then :
16008 printf %s "(cached) " >&6
16009 else $as_nop
16010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16011 /* end confdefs.h. */
16012 int i;
16013 int
16014 main (void)
16015 {
16016
16017 ;
16018 return 0;
16019 }
16020 _ACEOF
16021 if ac_fn_c_try_link "$LINENO"
16022 then :
16023 eval $cacheid=yes
16024 else $as_nop
16025 eval $cacheid=no
16026 fi
16027 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16028 conftest$ac_exeext conftest.$ac_ext
16029 fi
16030
16031
16032 CFLAGS="$xorg_testset_save_CFLAGS"
16033
16034 eval supported=\$$cacheid
16035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16036 printf "%s\n" "$supported" >&6; }
16037 if test "$supported" = "yes" ; then
16038 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16039 found="yes"
16040 fi
16041 fi
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057 xorg_testset_save_CFLAGS="$CFLAGS"
16058
16059 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16062 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16063 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16064 then :
16065 printf %s "(cached) " >&6
16066 else $as_nop
16067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16068 /* end confdefs.h. */
16069 int i;
16070 _ACEOF
16071 if ac_fn_c_try_compile "$LINENO"
16072 then :
16073 xorg_cv_cc_flag_unknown_warning_option=yes
16074 else $as_nop
16075 xorg_cv_cc_flag_unknown_warning_option=no
16076 fi
16077 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16078 fi
16079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16080 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16081 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16082 CFLAGS="$xorg_testset_save_CFLAGS"
16083 fi
16084
16085 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16086 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16087 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16088 fi
16089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16091 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16092 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16093 then :
16094 printf %s "(cached) " >&6
16095 else $as_nop
16096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16097 /* end confdefs.h. */
16098 int i;
16099 _ACEOF
16100 if ac_fn_c_try_compile "$LINENO"
16101 then :
16102 xorg_cv_cc_flag_unused_command_line_argument=yes
16103 else $as_nop
16104 xorg_cv_cc_flag_unused_command_line_argument=no
16105 fi
16106 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16107 fi
16108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16109 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16110 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16111 CFLAGS="$xorg_testset_save_CFLAGS"
16112 fi
16113
16114 found="no"
16115
16116 if test $found = "no" ; then
16117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16118 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16119 fi
16120
16121 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16123 fi
16124
16125 CFLAGS="$CFLAGS -Werror=sequence-point"
16126
16127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16128 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
16129 cacheid=xorg_cv_cc_flag__Werror_sequence_point
16130 if eval test \${$cacheid+y}
16131 then :
16132 printf %s "(cached) " >&6
16133 else $as_nop
16134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16135 /* end confdefs.h. */
16136 int i;
16137 int
16138 main (void)
16139 {
16140
16141 ;
16142 return 0;
16143 }
16144 _ACEOF
16145 if ac_fn_c_try_link "$LINENO"
16146 then :
16147 eval $cacheid=yes
16148 else $as_nop
16149 eval $cacheid=no
16150 fi
16151 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16152 conftest$ac_exeext conftest.$ac_ext
16153 fi
16154
16155
16156 CFLAGS="$xorg_testset_save_CFLAGS"
16157
16158 eval supported=\$$cacheid
16159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16160 printf "%s\n" "$supported" >&6; }
16161 if test "$supported" = "yes" ; then
16162 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16163 found="yes"
16164 fi
16165 fi
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181 xorg_testset_save_CFLAGS="$CFLAGS"
16182
16183 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16186 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16187 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16188 then :
16189 printf %s "(cached) " >&6
16190 else $as_nop
16191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16192 /* end confdefs.h. */
16193 int i;
16194 _ACEOF
16195 if ac_fn_c_try_compile "$LINENO"
16196 then :
16197 xorg_cv_cc_flag_unknown_warning_option=yes
16198 else $as_nop
16199 xorg_cv_cc_flag_unknown_warning_option=no
16200 fi
16201 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16202 fi
16203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16204 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16205 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16206 CFLAGS="$xorg_testset_save_CFLAGS"
16207 fi
16208
16209 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16212 fi
16213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16215 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16216 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16217 then :
16218 printf %s "(cached) " >&6
16219 else $as_nop
16220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16221 /* end confdefs.h. */
16222 int i;
16223 _ACEOF
16224 if ac_fn_c_try_compile "$LINENO"
16225 then :
16226 xorg_cv_cc_flag_unused_command_line_argument=yes
16227 else $as_nop
16228 xorg_cv_cc_flag_unused_command_line_argument=no
16229 fi
16230 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16231 fi
16232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16233 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16234 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16235 CFLAGS="$xorg_testset_save_CFLAGS"
16236 fi
16237
16238 found="no"
16239
16240 if test $found = "no" ; then
16241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16243 fi
16244
16245 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16247 fi
16248
16249 CFLAGS="$CFLAGS -Werror=return-type"
16250
16251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16252 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16253 cacheid=xorg_cv_cc_flag__Werror_return_type
16254 if eval test \${$cacheid+y}
16255 then :
16256 printf %s "(cached) " >&6
16257 else $as_nop
16258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16259 /* end confdefs.h. */
16260 int i;
16261 int
16262 main (void)
16263 {
16264
16265 ;
16266 return 0;
16267 }
16268 _ACEOF
16269 if ac_fn_c_try_link "$LINENO"
16270 then :
16271 eval $cacheid=yes
16272 else $as_nop
16273 eval $cacheid=no
16274 fi
16275 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16276 conftest$ac_exeext conftest.$ac_ext
16277 fi
16278
16279
16280 CFLAGS="$xorg_testset_save_CFLAGS"
16281
16282 eval supported=\$$cacheid
16283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16284 printf "%s\n" "$supported" >&6; }
16285 if test "$supported" = "yes" ; then
16286 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16287 found="yes"
16288 fi
16289 fi
16290
16291 if test $found = "no" ; then
16292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16294 fi
16295
16296 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16298 fi
16299
16300 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16301
16302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16303 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16304 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16305 if eval test \${$cacheid+y}
16306 then :
16307 printf %s "(cached) " >&6
16308 else $as_nop
16309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16310 /* end confdefs.h. */
16311 int i;
16312 int
16313 main (void)
16314 {
16315
16316 ;
16317 return 0;
16318 }
16319 _ACEOF
16320 if ac_fn_c_try_link "$LINENO"
16321 then :
16322 eval $cacheid=yes
16323 else $as_nop
16324 eval $cacheid=no
16325 fi
16326 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16327 conftest$ac_exeext conftest.$ac_ext
16328 fi
16329
16330
16331 CFLAGS="$xorg_testset_save_CFLAGS"
16332
16333 eval supported=\$$cacheid
16334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16335 printf "%s\n" "$supported" >&6; }
16336 if test "$supported" = "yes" ; then
16337 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16338 found="yes"
16339 fi
16340 fi
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356 xorg_testset_save_CFLAGS="$CFLAGS"
16357
16358 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16359 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16361 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16362 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16363 then :
16364 printf %s "(cached) " >&6
16365 else $as_nop
16366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16367 /* end confdefs.h. */
16368 int i;
16369 _ACEOF
16370 if ac_fn_c_try_compile "$LINENO"
16371 then :
16372 xorg_cv_cc_flag_unknown_warning_option=yes
16373 else $as_nop
16374 xorg_cv_cc_flag_unknown_warning_option=no
16375 fi
16376 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16377 fi
16378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16379 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16380 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16381 CFLAGS="$xorg_testset_save_CFLAGS"
16382 fi
16383
16384 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16386 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16387 fi
16388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16390 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16391 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16392 then :
16393 printf %s "(cached) " >&6
16394 else $as_nop
16395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16396 /* end confdefs.h. */
16397 int i;
16398 _ACEOF
16399 if ac_fn_c_try_compile "$LINENO"
16400 then :
16401 xorg_cv_cc_flag_unused_command_line_argument=yes
16402 else $as_nop
16403 xorg_cv_cc_flag_unused_command_line_argument=no
16404 fi
16405 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16406 fi
16407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16408 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16409 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16410 CFLAGS="$xorg_testset_save_CFLAGS"
16411 fi
16412
16413 found="no"
16414
16415 if test $found = "no" ; then
16416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16417 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16418 fi
16419
16420 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16422 fi
16423
16424 CFLAGS="$CFLAGS -Werror=trigraphs"
16425
16426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16427 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16428 cacheid=xorg_cv_cc_flag__Werror_trigraphs
16429 if eval test \${$cacheid+y}
16430 then :
16431 printf %s "(cached) " >&6
16432 else $as_nop
16433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16434 /* end confdefs.h. */
16435 int i;
16436 int
16437 main (void)
16438 {
16439
16440 ;
16441 return 0;
16442 }
16443 _ACEOF
16444 if ac_fn_c_try_link "$LINENO"
16445 then :
16446 eval $cacheid=yes
16447 else $as_nop
16448 eval $cacheid=no
16449 fi
16450 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16451 conftest$ac_exeext conftest.$ac_ext
16452 fi
16453
16454
16455 CFLAGS="$xorg_testset_save_CFLAGS"
16456
16457 eval supported=\$$cacheid
16458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16459 printf "%s\n" "$supported" >&6; }
16460 if test "$supported" = "yes" ; then
16461 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16462 found="yes"
16463 fi
16464 fi
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480 xorg_testset_save_CFLAGS="$CFLAGS"
16481
16482 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16483 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16485 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16486 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16487 then :
16488 printf %s "(cached) " >&6
16489 else $as_nop
16490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16491 /* end confdefs.h. */
16492 int i;
16493 _ACEOF
16494 if ac_fn_c_try_compile "$LINENO"
16495 then :
16496 xorg_cv_cc_flag_unknown_warning_option=yes
16497 else $as_nop
16498 xorg_cv_cc_flag_unknown_warning_option=no
16499 fi
16500 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16501 fi
16502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16503 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16504 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16505 CFLAGS="$xorg_testset_save_CFLAGS"
16506 fi
16507
16508 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16509 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16510 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16511 fi
16512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16514 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16515 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16516 then :
16517 printf %s "(cached) " >&6
16518 else $as_nop
16519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16520 /* end confdefs.h. */
16521 int i;
16522 _ACEOF
16523 if ac_fn_c_try_compile "$LINENO"
16524 then :
16525 xorg_cv_cc_flag_unused_command_line_argument=yes
16526 else $as_nop
16527 xorg_cv_cc_flag_unused_command_line_argument=no
16528 fi
16529 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16530 fi
16531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16532 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16533 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16534 CFLAGS="$xorg_testset_save_CFLAGS"
16535 fi
16536
16537 found="no"
16538
16539 if test $found = "no" ; then
16540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16542 fi
16543
16544 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16546 fi
16547
16548 CFLAGS="$CFLAGS -Werror=array-bounds"
16549
16550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16551 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16552 cacheid=xorg_cv_cc_flag__Werror_array_bounds
16553 if eval test \${$cacheid+y}
16554 then :
16555 printf %s "(cached) " >&6
16556 else $as_nop
16557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16558 /* end confdefs.h. */
16559 int i;
16560 int
16561 main (void)
16562 {
16563
16564 ;
16565 return 0;
16566 }
16567 _ACEOF
16568 if ac_fn_c_try_link "$LINENO"
16569 then :
16570 eval $cacheid=yes
16571 else $as_nop
16572 eval $cacheid=no
16573 fi
16574 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16575 conftest$ac_exeext conftest.$ac_ext
16576 fi
16577
16578
16579 CFLAGS="$xorg_testset_save_CFLAGS"
16580
16581 eval supported=\$$cacheid
16582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16583 printf "%s\n" "$supported" >&6; }
16584 if test "$supported" = "yes" ; then
16585 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16586 found="yes"
16587 fi
16588 fi
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604 xorg_testset_save_CFLAGS="$CFLAGS"
16605
16606 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16609 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16610 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16611 then :
16612 printf %s "(cached) " >&6
16613 else $as_nop
16614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16615 /* end confdefs.h. */
16616 int i;
16617 _ACEOF
16618 if ac_fn_c_try_compile "$LINENO"
16619 then :
16620 xorg_cv_cc_flag_unknown_warning_option=yes
16621 else $as_nop
16622 xorg_cv_cc_flag_unknown_warning_option=no
16623 fi
16624 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16625 fi
16626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16627 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16628 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16629 CFLAGS="$xorg_testset_save_CFLAGS"
16630 fi
16631
16632 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16635 fi
16636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16638 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16639 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16640 then :
16641 printf %s "(cached) " >&6
16642 else $as_nop
16643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16644 /* end confdefs.h. */
16645 int i;
16646 _ACEOF
16647 if ac_fn_c_try_compile "$LINENO"
16648 then :
16649 xorg_cv_cc_flag_unused_command_line_argument=yes
16650 else $as_nop
16651 xorg_cv_cc_flag_unused_command_line_argument=no
16652 fi
16653 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16654 fi
16655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16656 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16657 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16658 CFLAGS="$xorg_testset_save_CFLAGS"
16659 fi
16660
16661 found="no"
16662
16663 if test $found = "no" ; then
16664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16666 fi
16667
16668 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16670 fi
16671
16672 CFLAGS="$CFLAGS -Werror=write-strings"
16673
16674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16675 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16676 cacheid=xorg_cv_cc_flag__Werror_write_strings
16677 if eval test \${$cacheid+y}
16678 then :
16679 printf %s "(cached) " >&6
16680 else $as_nop
16681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16682 /* end confdefs.h. */
16683 int i;
16684 int
16685 main (void)
16686 {
16687
16688 ;
16689 return 0;
16690 }
16691 _ACEOF
16692 if ac_fn_c_try_link "$LINENO"
16693 then :
16694 eval $cacheid=yes
16695 else $as_nop
16696 eval $cacheid=no
16697 fi
16698 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16699 conftest$ac_exeext conftest.$ac_ext
16700 fi
16701
16702
16703 CFLAGS="$xorg_testset_save_CFLAGS"
16704
16705 eval supported=\$$cacheid
16706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16707 printf "%s\n" "$supported" >&6; }
16708 if test "$supported" = "yes" ; then
16709 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16710 found="yes"
16711 fi
16712 fi
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728 xorg_testset_save_CFLAGS="$CFLAGS"
16729
16730 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16731 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16733 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16734 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16735 then :
16736 printf %s "(cached) " >&6
16737 else $as_nop
16738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16739 /* end confdefs.h. */
16740 int i;
16741 _ACEOF
16742 if ac_fn_c_try_compile "$LINENO"
16743 then :
16744 xorg_cv_cc_flag_unknown_warning_option=yes
16745 else $as_nop
16746 xorg_cv_cc_flag_unknown_warning_option=no
16747 fi
16748 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16749 fi
16750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16751 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16752 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16753 CFLAGS="$xorg_testset_save_CFLAGS"
16754 fi
16755
16756 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16758 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16759 fi
16760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16762 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16763 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16764 then :
16765 printf %s "(cached) " >&6
16766 else $as_nop
16767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16768 /* end confdefs.h. */
16769 int i;
16770 _ACEOF
16771 if ac_fn_c_try_compile "$LINENO"
16772 then :
16773 xorg_cv_cc_flag_unused_command_line_argument=yes
16774 else $as_nop
16775 xorg_cv_cc_flag_unused_command_line_argument=no
16776 fi
16777 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16778 fi
16779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16780 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16781 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16782 CFLAGS="$xorg_testset_save_CFLAGS"
16783 fi
16784
16785 found="no"
16786
16787 if test $found = "no" ; then
16788 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16789 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16790 fi
16791
16792 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16794 fi
16795
16796 CFLAGS="$CFLAGS -Werror=address"
16797
16798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16799 printf %s "checking if $CC supports -Werror=address... " >&6; }
16800 cacheid=xorg_cv_cc_flag__Werror_address
16801 if eval test \${$cacheid+y}
16802 then :
16803 printf %s "(cached) " >&6
16804 else $as_nop
16805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16806 /* end confdefs.h. */
16807 int i;
16808 int
16809 main (void)
16810 {
16811
16812 ;
16813 return 0;
16814 }
16815 _ACEOF
16816 if ac_fn_c_try_link "$LINENO"
16817 then :
16818 eval $cacheid=yes
16819 else $as_nop
16820 eval $cacheid=no
16821 fi
16822 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16823 conftest$ac_exeext conftest.$ac_ext
16824 fi
16825
16826
16827 CFLAGS="$xorg_testset_save_CFLAGS"
16828
16829 eval supported=\$$cacheid
16830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16831 printf "%s\n" "$supported" >&6; }
16832 if test "$supported" = "yes" ; then
16833 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16834 found="yes"
16835 fi
16836 fi
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852 xorg_testset_save_CFLAGS="$CFLAGS"
16853
16854 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16857 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16858 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16859 then :
16860 printf %s "(cached) " >&6
16861 else $as_nop
16862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16863 /* end confdefs.h. */
16864 int i;
16865 _ACEOF
16866 if ac_fn_c_try_compile "$LINENO"
16867 then :
16868 xorg_cv_cc_flag_unknown_warning_option=yes
16869 else $as_nop
16870 xorg_cv_cc_flag_unknown_warning_option=no
16871 fi
16872 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16873 fi
16874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16875 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16876 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16877 CFLAGS="$xorg_testset_save_CFLAGS"
16878 fi
16879
16880 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16882 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16883 fi
16884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16886 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16887 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16888 then :
16889 printf %s "(cached) " >&6
16890 else $as_nop
16891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16892 /* end confdefs.h. */
16893 int i;
16894 _ACEOF
16895 if ac_fn_c_try_compile "$LINENO"
16896 then :
16897 xorg_cv_cc_flag_unused_command_line_argument=yes
16898 else $as_nop
16899 xorg_cv_cc_flag_unused_command_line_argument=no
16900 fi
16901 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16902 fi
16903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16904 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16905 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16906 CFLAGS="$xorg_testset_save_CFLAGS"
16907 fi
16908
16909 found="no"
16910
16911 if test $found = "no" ; then
16912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16914 fi
16915
16916 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16918 fi
16919
16920 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16921
16922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16923 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16924 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16925 if eval test \${$cacheid+y}
16926 then :
16927 printf %s "(cached) " >&6
16928 else $as_nop
16929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16930 /* end confdefs.h. */
16931 int i;
16932 int
16933 main (void)
16934 {
16935
16936 ;
16937 return 0;
16938 }
16939 _ACEOF
16940 if ac_fn_c_try_link "$LINENO"
16941 then :
16942 eval $cacheid=yes
16943 else $as_nop
16944 eval $cacheid=no
16945 fi
16946 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16947 conftest$ac_exeext conftest.$ac_ext
16948 fi
16949
16950
16951 CFLAGS="$xorg_testset_save_CFLAGS"
16952
16953 eval supported=\$$cacheid
16954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16955 printf "%s\n" "$supported" >&6; }
16956 if test "$supported" = "yes" ; then
16957 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16958 found="yes"
16959 fi
16960 fi
16961
16962 if test $found = "no" ; then
16963 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16964 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16965 fi
16966
16967 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16969 fi
16970
16971 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16972
16973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16974 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16975 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16976 if eval test \${$cacheid+y}
16977 then :
16978 printf %s "(cached) " >&6
16979 else $as_nop
16980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16981 /* end confdefs.h. */
16982 int i;
16983 int
16984 main (void)
16985 {
16986
16987 ;
16988 return 0;
16989 }
16990 _ACEOF
16991 if ac_fn_c_try_link "$LINENO"
16992 then :
16993 eval $cacheid=yes
16994 else $as_nop
16995 eval $cacheid=no
16996 fi
16997 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16998 conftest$ac_exeext conftest.$ac_ext
16999 fi
17000
17001
17002 CFLAGS="$xorg_testset_save_CFLAGS"
17003
17004 eval supported=\$$cacheid
17005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17006 printf "%s\n" "$supported" >&6; }
17007 if test "$supported" = "yes" ; then
17008 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17009 found="yes"
17010 fi
17011 fi
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027 xorg_testset_save_CFLAGS="$CFLAGS"
17028
17029 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17030 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17032 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17033 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17034 then :
17035 printf %s "(cached) " >&6
17036 else $as_nop
17037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17038 /* end confdefs.h. */
17039 int i;
17040 _ACEOF
17041 if ac_fn_c_try_compile "$LINENO"
17042 then :
17043 xorg_cv_cc_flag_unknown_warning_option=yes
17044 else $as_nop
17045 xorg_cv_cc_flag_unknown_warning_option=no
17046 fi
17047 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17048 fi
17049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17050 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17051 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17052 CFLAGS="$xorg_testset_save_CFLAGS"
17053 fi
17054
17055 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17057 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17058 fi
17059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17061 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17062 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17063 then :
17064 printf %s "(cached) " >&6
17065 else $as_nop
17066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17067 /* end confdefs.h. */
17068 int i;
17069 _ACEOF
17070 if ac_fn_c_try_compile "$LINENO"
17071 then :
17072 xorg_cv_cc_flag_unused_command_line_argument=yes
17073 else $as_nop
17074 xorg_cv_cc_flag_unused_command_line_argument=no
17075 fi
17076 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17077 fi
17078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17079 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17080 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17081 CFLAGS="$xorg_testset_save_CFLAGS"
17082 fi
17083
17084 found="no"
17085
17086 if test $found = "no" ; then
17087 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17088 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17089 fi
17090
17091 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17093 fi
17094
17095 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
17096
17097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
17098 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
17099 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
17100 if eval test \${$cacheid+y}
17101 then :
17102 printf %s "(cached) " >&6
17103 else $as_nop
17104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17105 /* end confdefs.h. */
17106 int i;
17107 int
17108 main (void)
17109 {
17110
17111 ;
17112 return 0;
17113 }
17114 _ACEOF
17115 if ac_fn_c_try_link "$LINENO"
17116 then :
17117 eval $cacheid=yes
17118 else $as_nop
17119 eval $cacheid=no
17120 fi
17121 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17122 conftest$ac_exeext conftest.$ac_ext
17123 fi
17124
17125
17126 CFLAGS="$xorg_testset_save_CFLAGS"
17127
17128 eval supported=\$$cacheid
17129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17130 printf "%s\n" "$supported" >&6; }
17131 if test "$supported" = "yes" ; then
17132 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17133 found="yes"
17134 fi
17135 fi
17136
17137 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17138 else
17139 { 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
17140 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;}
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154 xorg_testset_save_CFLAGS="$CFLAGS"
17155
17156 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17159 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17160 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17161 then :
17162 printf %s "(cached) " >&6
17163 else $as_nop
17164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17165 /* end confdefs.h. */
17166 int i;
17167 _ACEOF
17168 if ac_fn_c_try_compile "$LINENO"
17169 then :
17170 xorg_cv_cc_flag_unknown_warning_option=yes
17171 else $as_nop
17172 xorg_cv_cc_flag_unknown_warning_option=no
17173 fi
17174 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17175 fi
17176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17177 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17178 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17179 CFLAGS="$xorg_testset_save_CFLAGS"
17180 fi
17181
17182 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17185 fi
17186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17188 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17189 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17190 then :
17191 printf %s "(cached) " >&6
17192 else $as_nop
17193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17194 /* end confdefs.h. */
17195 int i;
17196 _ACEOF
17197 if ac_fn_c_try_compile "$LINENO"
17198 then :
17199 xorg_cv_cc_flag_unused_command_line_argument=yes
17200 else $as_nop
17201 xorg_cv_cc_flag_unused_command_line_argument=no
17202 fi
17203 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17204 fi
17205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17206 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17207 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17208 CFLAGS="$xorg_testset_save_CFLAGS"
17209 fi
17210
17211 found="no"
17212
17213 if test $found = "no" ; then
17214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17216 fi
17217
17218 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17220 fi
17221
17222 CFLAGS="$CFLAGS -Wimplicit"
17223
17224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17225 printf %s "checking if $CC supports -Wimplicit... " >&6; }
17226 cacheid=xorg_cv_cc_flag__Wimplicit
17227 if eval test \${$cacheid+y}
17228 then :
17229 printf %s "(cached) " >&6
17230 else $as_nop
17231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17232 /* end confdefs.h. */
17233 int i;
17234 int
17235 main (void)
17236 {
17237
17238 ;
17239 return 0;
17240 }
17241 _ACEOF
17242 if ac_fn_c_try_link "$LINENO"
17243 then :
17244 eval $cacheid=yes
17245 else $as_nop
17246 eval $cacheid=no
17247 fi
17248 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17249 conftest$ac_exeext conftest.$ac_ext
17250 fi
17251
17252
17253 CFLAGS="$xorg_testset_save_CFLAGS"
17254
17255 eval supported=\$$cacheid
17256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17257 printf "%s\n" "$supported" >&6; }
17258 if test "$supported" = "yes" ; then
17259 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17260 found="yes"
17261 fi
17262 fi
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278 xorg_testset_save_CFLAGS="$CFLAGS"
17279
17280 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17281 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17283 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17284 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17285 then :
17286 printf %s "(cached) " >&6
17287 else $as_nop
17288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17289 /* end confdefs.h. */
17290 int i;
17291 _ACEOF
17292 if ac_fn_c_try_compile "$LINENO"
17293 then :
17294 xorg_cv_cc_flag_unknown_warning_option=yes
17295 else $as_nop
17296 xorg_cv_cc_flag_unknown_warning_option=no
17297 fi
17298 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17299 fi
17300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17301 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17302 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17303 CFLAGS="$xorg_testset_save_CFLAGS"
17304 fi
17305
17306 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17307 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17308 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17309 fi
17310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17312 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17313 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17314 then :
17315 printf %s "(cached) " >&6
17316 else $as_nop
17317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17318 /* end confdefs.h. */
17319 int i;
17320 _ACEOF
17321 if ac_fn_c_try_compile "$LINENO"
17322 then :
17323 xorg_cv_cc_flag_unused_command_line_argument=yes
17324 else $as_nop
17325 xorg_cv_cc_flag_unused_command_line_argument=no
17326 fi
17327 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17328 fi
17329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17330 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17331 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17332 CFLAGS="$xorg_testset_save_CFLAGS"
17333 fi
17334
17335 found="no"
17336
17337 if test $found = "no" ; then
17338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17339 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17340 fi
17341
17342 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17344 fi
17345
17346 CFLAGS="$CFLAGS -Wnonnull"
17347
17348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17349 printf %s "checking if $CC supports -Wnonnull... " >&6; }
17350 cacheid=xorg_cv_cc_flag__Wnonnull
17351 if eval test \${$cacheid+y}
17352 then :
17353 printf %s "(cached) " >&6
17354 else $as_nop
17355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17356 /* end confdefs.h. */
17357 int i;
17358 int
17359 main (void)
17360 {
17361
17362 ;
17363 return 0;
17364 }
17365 _ACEOF
17366 if ac_fn_c_try_link "$LINENO"
17367 then :
17368 eval $cacheid=yes
17369 else $as_nop
17370 eval $cacheid=no
17371 fi
17372 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17373 conftest$ac_exeext conftest.$ac_ext
17374 fi
17375
17376
17377 CFLAGS="$xorg_testset_save_CFLAGS"
17378
17379 eval supported=\$$cacheid
17380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17381 printf "%s\n" "$supported" >&6; }
17382 if test "$supported" = "yes" ; then
17383 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17384 found="yes"
17385 fi
17386 fi
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402 xorg_testset_save_CFLAGS="$CFLAGS"
17403
17404 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17407 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17408 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17409 then :
17410 printf %s "(cached) " >&6
17411 else $as_nop
17412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17413 /* end confdefs.h. */
17414 int i;
17415 _ACEOF
17416 if ac_fn_c_try_compile "$LINENO"
17417 then :
17418 xorg_cv_cc_flag_unknown_warning_option=yes
17419 else $as_nop
17420 xorg_cv_cc_flag_unknown_warning_option=no
17421 fi
17422 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17423 fi
17424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17425 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17426 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17427 CFLAGS="$xorg_testset_save_CFLAGS"
17428 fi
17429
17430 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17432 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17433 fi
17434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17436 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17437 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17438 then :
17439 printf %s "(cached) " >&6
17440 else $as_nop
17441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17442 /* end confdefs.h. */
17443 int i;
17444 _ACEOF
17445 if ac_fn_c_try_compile "$LINENO"
17446 then :
17447 xorg_cv_cc_flag_unused_command_line_argument=yes
17448 else $as_nop
17449 xorg_cv_cc_flag_unused_command_line_argument=no
17450 fi
17451 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17452 fi
17453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17454 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17455 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17456 CFLAGS="$xorg_testset_save_CFLAGS"
17457 fi
17458
17459 found="no"
17460
17461 if test $found = "no" ; then
17462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17464 fi
17465
17466 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17468 fi
17469
17470 CFLAGS="$CFLAGS -Winit-self"
17471
17472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17473 printf %s "checking if $CC supports -Winit-self... " >&6; }
17474 cacheid=xorg_cv_cc_flag__Winit_self
17475 if eval test \${$cacheid+y}
17476 then :
17477 printf %s "(cached) " >&6
17478 else $as_nop
17479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17480 /* end confdefs.h. */
17481 int i;
17482 int
17483 main (void)
17484 {
17485
17486 ;
17487 return 0;
17488 }
17489 _ACEOF
17490 if ac_fn_c_try_link "$LINENO"
17491 then :
17492 eval $cacheid=yes
17493 else $as_nop
17494 eval $cacheid=no
17495 fi
17496 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17497 conftest$ac_exeext conftest.$ac_ext
17498 fi
17499
17500
17501 CFLAGS="$xorg_testset_save_CFLAGS"
17502
17503 eval supported=\$$cacheid
17504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17505 printf "%s\n" "$supported" >&6; }
17506 if test "$supported" = "yes" ; then
17507 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17508 found="yes"
17509 fi
17510 fi
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526 xorg_testset_save_CFLAGS="$CFLAGS"
17527
17528 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17531 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17532 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17533 then :
17534 printf %s "(cached) " >&6
17535 else $as_nop
17536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17537 /* end confdefs.h. */
17538 int i;
17539 _ACEOF
17540 if ac_fn_c_try_compile "$LINENO"
17541 then :
17542 xorg_cv_cc_flag_unknown_warning_option=yes
17543 else $as_nop
17544 xorg_cv_cc_flag_unknown_warning_option=no
17545 fi
17546 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17547 fi
17548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17549 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17550 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17551 CFLAGS="$xorg_testset_save_CFLAGS"
17552 fi
17553
17554 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17557 fi
17558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17560 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17561 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17562 then :
17563 printf %s "(cached) " >&6
17564 else $as_nop
17565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17566 /* end confdefs.h. */
17567 int i;
17568 _ACEOF
17569 if ac_fn_c_try_compile "$LINENO"
17570 then :
17571 xorg_cv_cc_flag_unused_command_line_argument=yes
17572 else $as_nop
17573 xorg_cv_cc_flag_unused_command_line_argument=no
17574 fi
17575 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17576 fi
17577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17578 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17579 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17580 CFLAGS="$xorg_testset_save_CFLAGS"
17581 fi
17582
17583 found="no"
17584
17585 if test $found = "no" ; then
17586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17588 fi
17589
17590 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17592 fi
17593
17594 CFLAGS="$CFLAGS -Wmain"
17595
17596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17597 printf %s "checking if $CC supports -Wmain... " >&6; }
17598 cacheid=xorg_cv_cc_flag__Wmain
17599 if eval test \${$cacheid+y}
17600 then :
17601 printf %s "(cached) " >&6
17602 else $as_nop
17603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17604 /* end confdefs.h. */
17605 int i;
17606 int
17607 main (void)
17608 {
17609
17610 ;
17611 return 0;
17612 }
17613 _ACEOF
17614 if ac_fn_c_try_link "$LINENO"
17615 then :
17616 eval $cacheid=yes
17617 else $as_nop
17618 eval $cacheid=no
17619 fi
17620 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17621 conftest$ac_exeext conftest.$ac_ext
17622 fi
17623
17624
17625 CFLAGS="$xorg_testset_save_CFLAGS"
17626
17627 eval supported=\$$cacheid
17628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17629 printf "%s\n" "$supported" >&6; }
17630 if test "$supported" = "yes" ; then
17631 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17632 found="yes"
17633 fi
17634 fi
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650 xorg_testset_save_CFLAGS="$CFLAGS"
17651
17652 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17653 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17655 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17656 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17657 then :
17658 printf %s "(cached) " >&6
17659 else $as_nop
17660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17661 /* end confdefs.h. */
17662 int i;
17663 _ACEOF
17664 if ac_fn_c_try_compile "$LINENO"
17665 then :
17666 xorg_cv_cc_flag_unknown_warning_option=yes
17667 else $as_nop
17668 xorg_cv_cc_flag_unknown_warning_option=no
17669 fi
17670 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17671 fi
17672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17673 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17674 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17675 CFLAGS="$xorg_testset_save_CFLAGS"
17676 fi
17677
17678 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17680 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17681 fi
17682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17684 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17685 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17686 then :
17687 printf %s "(cached) " >&6
17688 else $as_nop
17689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17690 /* end confdefs.h. */
17691 int i;
17692 _ACEOF
17693 if ac_fn_c_try_compile "$LINENO"
17694 then :
17695 xorg_cv_cc_flag_unused_command_line_argument=yes
17696 else $as_nop
17697 xorg_cv_cc_flag_unused_command_line_argument=no
17698 fi
17699 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17700 fi
17701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17702 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17703 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17704 CFLAGS="$xorg_testset_save_CFLAGS"
17705 fi
17706
17707 found="no"
17708
17709 if test $found = "no" ; then
17710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17711 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17712 fi
17713
17714 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17716 fi
17717
17718 CFLAGS="$CFLAGS -Wmissing-braces"
17719
17720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17721 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17722 cacheid=xorg_cv_cc_flag__Wmissing_braces
17723 if eval test \${$cacheid+y}
17724 then :
17725 printf %s "(cached) " >&6
17726 else $as_nop
17727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17728 /* end confdefs.h. */
17729 int i;
17730 int
17731 main (void)
17732 {
17733
17734 ;
17735 return 0;
17736 }
17737 _ACEOF
17738 if ac_fn_c_try_link "$LINENO"
17739 then :
17740 eval $cacheid=yes
17741 else $as_nop
17742 eval $cacheid=no
17743 fi
17744 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17745 conftest$ac_exeext conftest.$ac_ext
17746 fi
17747
17748
17749 CFLAGS="$xorg_testset_save_CFLAGS"
17750
17751 eval supported=\$$cacheid
17752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17753 printf "%s\n" "$supported" >&6; }
17754 if test "$supported" = "yes" ; then
17755 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17756 found="yes"
17757 fi
17758 fi
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774 xorg_testset_save_CFLAGS="$CFLAGS"
17775
17776 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17779 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17780 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17781 then :
17782 printf %s "(cached) " >&6
17783 else $as_nop
17784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17785 /* end confdefs.h. */
17786 int i;
17787 _ACEOF
17788 if ac_fn_c_try_compile "$LINENO"
17789 then :
17790 xorg_cv_cc_flag_unknown_warning_option=yes
17791 else $as_nop
17792 xorg_cv_cc_flag_unknown_warning_option=no
17793 fi
17794 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17795 fi
17796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17797 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17798 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17799 CFLAGS="$xorg_testset_save_CFLAGS"
17800 fi
17801
17802 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17803 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17804 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17805 fi
17806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17808 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17809 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17810 then :
17811 printf %s "(cached) " >&6
17812 else $as_nop
17813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17814 /* end confdefs.h. */
17815 int i;
17816 _ACEOF
17817 if ac_fn_c_try_compile "$LINENO"
17818 then :
17819 xorg_cv_cc_flag_unused_command_line_argument=yes
17820 else $as_nop
17821 xorg_cv_cc_flag_unused_command_line_argument=no
17822 fi
17823 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17824 fi
17825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17826 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17827 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17828 CFLAGS="$xorg_testset_save_CFLAGS"
17829 fi
17830
17831 found="no"
17832
17833 if test $found = "no" ; then
17834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17835 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17836 fi
17837
17838 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17840 fi
17841
17842 CFLAGS="$CFLAGS -Wsequence-point"
17843
17844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17845 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
17846 cacheid=xorg_cv_cc_flag__Wsequence_point
17847 if eval test \${$cacheid+y}
17848 then :
17849 printf %s "(cached) " >&6
17850 else $as_nop
17851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17852 /* end confdefs.h. */
17853 int i;
17854 int
17855 main (void)
17856 {
17857
17858 ;
17859 return 0;
17860 }
17861 _ACEOF
17862 if ac_fn_c_try_link "$LINENO"
17863 then :
17864 eval $cacheid=yes
17865 else $as_nop
17866 eval $cacheid=no
17867 fi
17868 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17869 conftest$ac_exeext conftest.$ac_ext
17870 fi
17871
17872
17873 CFLAGS="$xorg_testset_save_CFLAGS"
17874
17875 eval supported=\$$cacheid
17876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17877 printf "%s\n" "$supported" >&6; }
17878 if test "$supported" = "yes" ; then
17879 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17880 found="yes"
17881 fi
17882 fi
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898 xorg_testset_save_CFLAGS="$CFLAGS"
17899
17900 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17903 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17904 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17905 then :
17906 printf %s "(cached) " >&6
17907 else $as_nop
17908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17909 /* end confdefs.h. */
17910 int i;
17911 _ACEOF
17912 if ac_fn_c_try_compile "$LINENO"
17913 then :
17914 xorg_cv_cc_flag_unknown_warning_option=yes
17915 else $as_nop
17916 xorg_cv_cc_flag_unknown_warning_option=no
17917 fi
17918 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17919 fi
17920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17921 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17922 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17923 CFLAGS="$xorg_testset_save_CFLAGS"
17924 fi
17925
17926 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17928 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17929 fi
17930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17932 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17933 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17934 then :
17935 printf %s "(cached) " >&6
17936 else $as_nop
17937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17938 /* end confdefs.h. */
17939 int i;
17940 _ACEOF
17941 if ac_fn_c_try_compile "$LINENO"
17942 then :
17943 xorg_cv_cc_flag_unused_command_line_argument=yes
17944 else $as_nop
17945 xorg_cv_cc_flag_unused_command_line_argument=no
17946 fi
17947 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17948 fi
17949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17950 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17951 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17952 CFLAGS="$xorg_testset_save_CFLAGS"
17953 fi
17954
17955 found="no"
17956
17957 if test $found = "no" ; then
17958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17960 fi
17961
17962 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17964 fi
17965
17966 CFLAGS="$CFLAGS -Wreturn-type"
17967
17968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17969 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
17970 cacheid=xorg_cv_cc_flag__Wreturn_type
17971 if eval test \${$cacheid+y}
17972 then :
17973 printf %s "(cached) " >&6
17974 else $as_nop
17975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17976 /* end confdefs.h. */
17977 int i;
17978 int
17979 main (void)
17980 {
17981
17982 ;
17983 return 0;
17984 }
17985 _ACEOF
17986 if ac_fn_c_try_link "$LINENO"
17987 then :
17988 eval $cacheid=yes
17989 else $as_nop
17990 eval $cacheid=no
17991 fi
17992 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17993 conftest$ac_exeext conftest.$ac_ext
17994 fi
17995
17996
17997 CFLAGS="$xorg_testset_save_CFLAGS"
17998
17999 eval supported=\$$cacheid
18000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18001 printf "%s\n" "$supported" >&6; }
18002 if test "$supported" = "yes" ; then
18003 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
18004 found="yes"
18005 fi
18006 fi
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022 xorg_testset_save_CFLAGS="$CFLAGS"
18023
18024 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18027 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18028 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18029 then :
18030 printf %s "(cached) " >&6
18031 else $as_nop
18032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18033 /* end confdefs.h. */
18034 int i;
18035 _ACEOF
18036 if ac_fn_c_try_compile "$LINENO"
18037 then :
18038 xorg_cv_cc_flag_unknown_warning_option=yes
18039 else $as_nop
18040 xorg_cv_cc_flag_unknown_warning_option=no
18041 fi
18042 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18043 fi
18044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18045 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18046 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18047 CFLAGS="$xorg_testset_save_CFLAGS"
18048 fi
18049
18050 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18051 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18052 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18053 fi
18054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18056 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18057 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18058 then :
18059 printf %s "(cached) " >&6
18060 else $as_nop
18061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18062 /* end confdefs.h. */
18063 int i;
18064 _ACEOF
18065 if ac_fn_c_try_compile "$LINENO"
18066 then :
18067 xorg_cv_cc_flag_unused_command_line_argument=yes
18068 else $as_nop
18069 xorg_cv_cc_flag_unused_command_line_argument=no
18070 fi
18071 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18072 fi
18073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18074 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18075 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18076 CFLAGS="$xorg_testset_save_CFLAGS"
18077 fi
18078
18079 found="no"
18080
18081 if test $found = "no" ; then
18082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18084 fi
18085
18086 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18088 fi
18089
18090 CFLAGS="$CFLAGS -Wtrigraphs"
18091
18092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
18093 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
18094 cacheid=xorg_cv_cc_flag__Wtrigraphs
18095 if eval test \${$cacheid+y}
18096 then :
18097 printf %s "(cached) " >&6
18098 else $as_nop
18099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18100 /* end confdefs.h. */
18101 int i;
18102 int
18103 main (void)
18104 {
18105
18106 ;
18107 return 0;
18108 }
18109 _ACEOF
18110 if ac_fn_c_try_link "$LINENO"
18111 then :
18112 eval $cacheid=yes
18113 else $as_nop
18114 eval $cacheid=no
18115 fi
18116 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18117 conftest$ac_exeext conftest.$ac_ext
18118 fi
18119
18120
18121 CFLAGS="$xorg_testset_save_CFLAGS"
18122
18123 eval supported=\$$cacheid
18124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18125 printf "%s\n" "$supported" >&6; }
18126 if test "$supported" = "yes" ; then
18127 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
18128 found="yes"
18129 fi
18130 fi
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146 xorg_testset_save_CFLAGS="$CFLAGS"
18147
18148 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18151 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18152 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18153 then :
18154 printf %s "(cached) " >&6
18155 else $as_nop
18156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18157 /* end confdefs.h. */
18158 int i;
18159 _ACEOF
18160 if ac_fn_c_try_compile "$LINENO"
18161 then :
18162 xorg_cv_cc_flag_unknown_warning_option=yes
18163 else $as_nop
18164 xorg_cv_cc_flag_unknown_warning_option=no
18165 fi
18166 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18167 fi
18168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18169 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18170 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18171 CFLAGS="$xorg_testset_save_CFLAGS"
18172 fi
18173
18174 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18177 fi
18178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18180 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18181 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18182 then :
18183 printf %s "(cached) " >&6
18184 else $as_nop
18185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18186 /* end confdefs.h. */
18187 int i;
18188 _ACEOF
18189 if ac_fn_c_try_compile "$LINENO"
18190 then :
18191 xorg_cv_cc_flag_unused_command_line_argument=yes
18192 else $as_nop
18193 xorg_cv_cc_flag_unused_command_line_argument=no
18194 fi
18195 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18196 fi
18197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18198 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18199 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18200 CFLAGS="$xorg_testset_save_CFLAGS"
18201 fi
18202
18203 found="no"
18204
18205 if test $found = "no" ; then
18206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18207 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18208 fi
18209
18210 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18212 fi
18213
18214 CFLAGS="$CFLAGS -Warray-bounds"
18215
18216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18217 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18218 cacheid=xorg_cv_cc_flag__Warray_bounds
18219 if eval test \${$cacheid+y}
18220 then :
18221 printf %s "(cached) " >&6
18222 else $as_nop
18223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18224 /* end confdefs.h. */
18225 int i;
18226 int
18227 main (void)
18228 {
18229
18230 ;
18231 return 0;
18232 }
18233 _ACEOF
18234 if ac_fn_c_try_link "$LINENO"
18235 then :
18236 eval $cacheid=yes
18237 else $as_nop
18238 eval $cacheid=no
18239 fi
18240 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18241 conftest$ac_exeext conftest.$ac_ext
18242 fi
18243
18244
18245 CFLAGS="$xorg_testset_save_CFLAGS"
18246
18247 eval supported=\$$cacheid
18248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18249 printf "%s\n" "$supported" >&6; }
18250 if test "$supported" = "yes" ; then
18251 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18252 found="yes"
18253 fi
18254 fi
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270 xorg_testset_save_CFLAGS="$CFLAGS"
18271
18272 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18273 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18275 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18276 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18277 then :
18278 printf %s "(cached) " >&6
18279 else $as_nop
18280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18281 /* end confdefs.h. */
18282 int i;
18283 _ACEOF
18284 if ac_fn_c_try_compile "$LINENO"
18285 then :
18286 xorg_cv_cc_flag_unknown_warning_option=yes
18287 else $as_nop
18288 xorg_cv_cc_flag_unknown_warning_option=no
18289 fi
18290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18291 fi
18292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18293 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18294 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18295 CFLAGS="$xorg_testset_save_CFLAGS"
18296 fi
18297
18298 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18301 fi
18302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18304 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18305 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18306 then :
18307 printf %s "(cached) " >&6
18308 else $as_nop
18309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18310 /* end confdefs.h. */
18311 int i;
18312 _ACEOF
18313 if ac_fn_c_try_compile "$LINENO"
18314 then :
18315 xorg_cv_cc_flag_unused_command_line_argument=yes
18316 else $as_nop
18317 xorg_cv_cc_flag_unused_command_line_argument=no
18318 fi
18319 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18320 fi
18321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18322 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18323 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18324 CFLAGS="$xorg_testset_save_CFLAGS"
18325 fi
18326
18327 found="no"
18328
18329 if test $found = "no" ; then
18330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18331 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18332 fi
18333
18334 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18336 fi
18337
18338 CFLAGS="$CFLAGS -Wwrite-strings"
18339
18340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18341 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18342 cacheid=xorg_cv_cc_flag__Wwrite_strings
18343 if eval test \${$cacheid+y}
18344 then :
18345 printf %s "(cached) " >&6
18346 else $as_nop
18347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18348 /* end confdefs.h. */
18349 int i;
18350 int
18351 main (void)
18352 {
18353
18354 ;
18355 return 0;
18356 }
18357 _ACEOF
18358 if ac_fn_c_try_link "$LINENO"
18359 then :
18360 eval $cacheid=yes
18361 else $as_nop
18362 eval $cacheid=no
18363 fi
18364 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18365 conftest$ac_exeext conftest.$ac_ext
18366 fi
18367
18368
18369 CFLAGS="$xorg_testset_save_CFLAGS"
18370
18371 eval supported=\$$cacheid
18372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18373 printf "%s\n" "$supported" >&6; }
18374 if test "$supported" = "yes" ; then
18375 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18376 found="yes"
18377 fi
18378 fi
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394 xorg_testset_save_CFLAGS="$CFLAGS"
18395
18396 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18399 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18400 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18401 then :
18402 printf %s "(cached) " >&6
18403 else $as_nop
18404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18405 /* end confdefs.h. */
18406 int i;
18407 _ACEOF
18408 if ac_fn_c_try_compile "$LINENO"
18409 then :
18410 xorg_cv_cc_flag_unknown_warning_option=yes
18411 else $as_nop
18412 xorg_cv_cc_flag_unknown_warning_option=no
18413 fi
18414 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18415 fi
18416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18417 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18418 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18419 CFLAGS="$xorg_testset_save_CFLAGS"
18420 fi
18421
18422 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18424 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18425 fi
18426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18428 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18429 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18430 then :
18431 printf %s "(cached) " >&6
18432 else $as_nop
18433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18434 /* end confdefs.h. */
18435 int i;
18436 _ACEOF
18437 if ac_fn_c_try_compile "$LINENO"
18438 then :
18439 xorg_cv_cc_flag_unused_command_line_argument=yes
18440 else $as_nop
18441 xorg_cv_cc_flag_unused_command_line_argument=no
18442 fi
18443 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18444 fi
18445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18446 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18447 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18448 CFLAGS="$xorg_testset_save_CFLAGS"
18449 fi
18450
18451 found="no"
18452
18453 if test $found = "no" ; then
18454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18455 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18456 fi
18457
18458 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18460 fi
18461
18462 CFLAGS="$CFLAGS -Waddress"
18463
18464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18465 printf %s "checking if $CC supports -Waddress... " >&6; }
18466 cacheid=xorg_cv_cc_flag__Waddress
18467 if eval test \${$cacheid+y}
18468 then :
18469 printf %s "(cached) " >&6
18470 else $as_nop
18471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18472 /* end confdefs.h. */
18473 int i;
18474 int
18475 main (void)
18476 {
18477
18478 ;
18479 return 0;
18480 }
18481 _ACEOF
18482 if ac_fn_c_try_link "$LINENO"
18483 then :
18484 eval $cacheid=yes
18485 else $as_nop
18486 eval $cacheid=no
18487 fi
18488 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18489 conftest$ac_exeext conftest.$ac_ext
18490 fi
18491
18492
18493 CFLAGS="$xorg_testset_save_CFLAGS"
18494
18495 eval supported=\$$cacheid
18496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18497 printf "%s\n" "$supported" >&6; }
18498 if test "$supported" = "yes" ; then
18499 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18500 found="yes"
18501 fi
18502 fi
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518 xorg_testset_save_CFLAGS="$CFLAGS"
18519
18520 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18521 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18523 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18524 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18525 then :
18526 printf %s "(cached) " >&6
18527 else $as_nop
18528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18529 /* end confdefs.h. */
18530 int i;
18531 _ACEOF
18532 if ac_fn_c_try_compile "$LINENO"
18533 then :
18534 xorg_cv_cc_flag_unknown_warning_option=yes
18535 else $as_nop
18536 xorg_cv_cc_flag_unknown_warning_option=no
18537 fi
18538 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18539 fi
18540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18541 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18542 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18543 CFLAGS="$xorg_testset_save_CFLAGS"
18544 fi
18545
18546 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18548 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18549 fi
18550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18552 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18553 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18554 then :
18555 printf %s "(cached) " >&6
18556 else $as_nop
18557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18558 /* end confdefs.h. */
18559 int i;
18560 _ACEOF
18561 if ac_fn_c_try_compile "$LINENO"
18562 then :
18563 xorg_cv_cc_flag_unused_command_line_argument=yes
18564 else $as_nop
18565 xorg_cv_cc_flag_unused_command_line_argument=no
18566 fi
18567 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18568 fi
18569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18570 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18571 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18572 CFLAGS="$xorg_testset_save_CFLAGS"
18573 fi
18574
18575 found="no"
18576
18577 if test $found = "no" ; then
18578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18580 fi
18581
18582 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18584 fi
18585
18586 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18587
18588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18589 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18590 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18591 if eval test \${$cacheid+y}
18592 then :
18593 printf %s "(cached) " >&6
18594 else $as_nop
18595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18596 /* end confdefs.h. */
18597 int i;
18598 int
18599 main (void)
18600 {
18601
18602 ;
18603 return 0;
18604 }
18605 _ACEOF
18606 if ac_fn_c_try_link "$LINENO"
18607 then :
18608 eval $cacheid=yes
18609 else $as_nop
18610 eval $cacheid=no
18611 fi
18612 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18613 conftest$ac_exeext conftest.$ac_ext
18614 fi
18615
18616
18617 CFLAGS="$xorg_testset_save_CFLAGS"
18618
18619 eval supported=\$$cacheid
18620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18621 printf "%s\n" "$supported" >&6; }
18622 if test "$supported" = "yes" ; then
18623 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18624 found="yes"
18625 fi
18626 fi
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642 xorg_testset_save_CFLAGS="$CFLAGS"
18643
18644 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18645 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18647 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18648 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18649 then :
18650 printf %s "(cached) " >&6
18651 else $as_nop
18652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18653 /* end confdefs.h. */
18654 int i;
18655 _ACEOF
18656 if ac_fn_c_try_compile "$LINENO"
18657 then :
18658 xorg_cv_cc_flag_unknown_warning_option=yes
18659 else $as_nop
18660 xorg_cv_cc_flag_unknown_warning_option=no
18661 fi
18662 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18663 fi
18664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18665 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18666 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18667 CFLAGS="$xorg_testset_save_CFLAGS"
18668 fi
18669
18670 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18673 fi
18674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18676 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18677 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18678 then :
18679 printf %s "(cached) " >&6
18680 else $as_nop
18681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18682 /* end confdefs.h. */
18683 int i;
18684 _ACEOF
18685 if ac_fn_c_try_compile "$LINENO"
18686 then :
18687 xorg_cv_cc_flag_unused_command_line_argument=yes
18688 else $as_nop
18689 xorg_cv_cc_flag_unused_command_line_argument=no
18690 fi
18691 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18692 fi
18693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18694 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18695 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18696 CFLAGS="$xorg_testset_save_CFLAGS"
18697 fi
18698
18699 found="no"
18700
18701 if test $found = "no" ; then
18702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18704 fi
18705
18706 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18708 fi
18709
18710 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18711
18712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18713 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18714 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18715 if eval test \${$cacheid+y}
18716 then :
18717 printf %s "(cached) " >&6
18718 else $as_nop
18719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18720 /* end confdefs.h. */
18721 int i;
18722 int
18723 main (void)
18724 {
18725
18726 ;
18727 return 0;
18728 }
18729 _ACEOF
18730 if ac_fn_c_try_link "$LINENO"
18731 then :
18732 eval $cacheid=yes
18733 else $as_nop
18734 eval $cacheid=no
18735 fi
18736 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18737 conftest$ac_exeext conftest.$ac_ext
18738 fi
18739
18740
18741 CFLAGS="$xorg_testset_save_CFLAGS"
18742
18743 eval supported=\$$cacheid
18744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18745 printf "%s\n" "$supported" >&6; }
18746 if test "$supported" = "yes" ; then
18747 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18748 found="yes"
18749 fi
18750 fi
18751
18752
18753 fi
18754
18755
18756
18757
18758
18759
18760
18761 CWARNFLAGS="$BASE_CFLAGS"
18762 if test "x$GCC" = xyes ; then
18763 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18764 fi
18765
18766
18767
18768
18769
18770
18771
18772
18773 # Check whether --enable-strict-compilation was given.
18774 if test ${enable_strict_compilation+y}
18775 then :
18776 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18777 else $as_nop
18778 STRICT_COMPILE=no
18779 fi
18780
18781
18782
18783
18784
18785
18786 STRICT_CFLAGS=""
18787
18788
18789
18790
18791
18792
18793
18794
18795
18796
18797
18798
18799
18800 xorg_testset_save_CFLAGS="$CFLAGS"
18801
18802 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18805 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18806 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18807 then :
18808 printf %s "(cached) " >&6
18809 else $as_nop
18810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18811 /* end confdefs.h. */
18812 int i;
18813 _ACEOF
18814 if ac_fn_c_try_compile "$LINENO"
18815 then :
18816 xorg_cv_cc_flag_unknown_warning_option=yes
18817 else $as_nop
18818 xorg_cv_cc_flag_unknown_warning_option=no
18819 fi
18820 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18821 fi
18822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18823 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18824 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18825 CFLAGS="$xorg_testset_save_CFLAGS"
18826 fi
18827
18828 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18830 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18831 fi
18832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18834 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18835 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18836 then :
18837 printf %s "(cached) " >&6
18838 else $as_nop
18839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18840 /* end confdefs.h. */
18841 int i;
18842 _ACEOF
18843 if ac_fn_c_try_compile "$LINENO"
18844 then :
18845 xorg_cv_cc_flag_unused_command_line_argument=yes
18846 else $as_nop
18847 xorg_cv_cc_flag_unused_command_line_argument=no
18848 fi
18849 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18850 fi
18851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18852 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18853 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18854 CFLAGS="$xorg_testset_save_CFLAGS"
18855 fi
18856
18857 found="no"
18858
18859 if test $found = "no" ; then
18860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18862 fi
18863
18864 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18866 fi
18867
18868 CFLAGS="$CFLAGS -pedantic"
18869
18870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18871 printf %s "checking if $CC supports -pedantic... " >&6; }
18872 cacheid=xorg_cv_cc_flag__pedantic
18873 if eval test \${$cacheid+y}
18874 then :
18875 printf %s "(cached) " >&6
18876 else $as_nop
18877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18878 /* end confdefs.h. */
18879 int i;
18880 int
18881 main (void)
18882 {
18883
18884 ;
18885 return 0;
18886 }
18887 _ACEOF
18888 if ac_fn_c_try_link "$LINENO"
18889 then :
18890 eval $cacheid=yes
18891 else $as_nop
18892 eval $cacheid=no
18893 fi
18894 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18895 conftest$ac_exeext conftest.$ac_ext
18896 fi
18897
18898
18899 CFLAGS="$xorg_testset_save_CFLAGS"
18900
18901 eval supported=\$$cacheid
18902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18903 printf "%s\n" "$supported" >&6; }
18904 if test "$supported" = "yes" ; then
18905 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18906 found="yes"
18907 fi
18908 fi
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924 xorg_testset_save_CFLAGS="$CFLAGS"
18925
18926 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18927 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18929 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18930 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18931 then :
18932 printf %s "(cached) " >&6
18933 else $as_nop
18934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18935 /* end confdefs.h. */
18936 int i;
18937 _ACEOF
18938 if ac_fn_c_try_compile "$LINENO"
18939 then :
18940 xorg_cv_cc_flag_unknown_warning_option=yes
18941 else $as_nop
18942 xorg_cv_cc_flag_unknown_warning_option=no
18943 fi
18944 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18945 fi
18946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18947 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18948 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18949 CFLAGS="$xorg_testset_save_CFLAGS"
18950 fi
18951
18952 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18955 fi
18956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18958 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18959 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18960 then :
18961 printf %s "(cached) " >&6
18962 else $as_nop
18963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18964 /* end confdefs.h. */
18965 int i;
18966 _ACEOF
18967 if ac_fn_c_try_compile "$LINENO"
18968 then :
18969 xorg_cv_cc_flag_unused_command_line_argument=yes
18970 else $as_nop
18971 xorg_cv_cc_flag_unused_command_line_argument=no
18972 fi
18973 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18974 fi
18975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18976 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18977 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18978 CFLAGS="$xorg_testset_save_CFLAGS"
18979 fi
18980
18981 found="no"
18982
18983 if test $found = "no" ; then
18984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18986 fi
18987
18988 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18990 fi
18991
18992 CFLAGS="$CFLAGS -Werror"
18993
18994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18995 printf %s "checking if $CC supports -Werror... " >&6; }
18996 cacheid=xorg_cv_cc_flag__Werror
18997 if eval test \${$cacheid+y}
18998 then :
18999 printf %s "(cached) " >&6
19000 else $as_nop
19001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19002 /* end confdefs.h. */
19003 int i;
19004 int
19005 main (void)
19006 {
19007
19008 ;
19009 return 0;
19010 }
19011 _ACEOF
19012 if ac_fn_c_try_link "$LINENO"
19013 then :
19014 eval $cacheid=yes
19015 else $as_nop
19016 eval $cacheid=no
19017 fi
19018 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19019 conftest$ac_exeext conftest.$ac_ext
19020 fi
19021
19022
19023 CFLAGS="$xorg_testset_save_CFLAGS"
19024
19025 eval supported=\$$cacheid
19026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19027 printf "%s\n" "$supported" >&6; }
19028 if test "$supported" = "yes" ; then
19029 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
19030 found="yes"
19031 fi
19032 fi
19033
19034 if test $found = "no" ; then
19035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19036 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19037 fi
19038
19039 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19041 fi
19042
19043 CFLAGS="$CFLAGS -errwarn"
19044
19045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
19046 printf %s "checking if $CC supports -errwarn... " >&6; }
19047 cacheid=xorg_cv_cc_flag__errwarn
19048 if eval test \${$cacheid+y}
19049 then :
19050 printf %s "(cached) " >&6
19051 else $as_nop
19052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19053 /* end confdefs.h. */
19054 int i;
19055 int
19056 main (void)
19057 {
19058
19059 ;
19060 return 0;
19061 }
19062 _ACEOF
19063 if ac_fn_c_try_link "$LINENO"
19064 then :
19065 eval $cacheid=yes
19066 else $as_nop
19067 eval $cacheid=no
19068 fi
19069 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19070 conftest$ac_exeext conftest.$ac_ext
19071 fi
19072
19073
19074 CFLAGS="$xorg_testset_save_CFLAGS"
19075
19076 eval supported=\$$cacheid
19077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19078 printf "%s\n" "$supported" >&6; }
19079 if test "$supported" = "yes" ; then
19080 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
19081 found="yes"
19082 fi
19083 fi
19084
19085
19086
19087 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
19088 # activate it with -Werror, so we add it here explicitly.
19089
19090
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100
19101
19102 xorg_testset_save_CFLAGS="$CFLAGS"
19103
19104 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19107 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19108 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19109 then :
19110 printf %s "(cached) " >&6
19111 else $as_nop
19112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19113 /* end confdefs.h. */
19114 int i;
19115 _ACEOF
19116 if ac_fn_c_try_compile "$LINENO"
19117 then :
19118 xorg_cv_cc_flag_unknown_warning_option=yes
19119 else $as_nop
19120 xorg_cv_cc_flag_unknown_warning_option=no
19121 fi
19122 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19123 fi
19124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19125 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19126 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19127 CFLAGS="$xorg_testset_save_CFLAGS"
19128 fi
19129
19130 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19132 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19133 fi
19134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19136 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19137 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19138 then :
19139 printf %s "(cached) " >&6
19140 else $as_nop
19141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19142 /* end confdefs.h. */
19143 int i;
19144 _ACEOF
19145 if ac_fn_c_try_compile "$LINENO"
19146 then :
19147 xorg_cv_cc_flag_unused_command_line_argument=yes
19148 else $as_nop
19149 xorg_cv_cc_flag_unused_command_line_argument=no
19150 fi
19151 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19152 fi
19153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19154 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19155 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19156 CFLAGS="$xorg_testset_save_CFLAGS"
19157 fi
19158
19159 found="no"
19160
19161 if test $found = "no" ; then
19162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19163 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19164 fi
19165
19166 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19168 fi
19169
19170 CFLAGS="$CFLAGS -Werror=attributes"
19171
19172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19173 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19174 cacheid=xorg_cv_cc_flag__Werror_attributes
19175 if eval test \${$cacheid+y}
19176 then :
19177 printf %s "(cached) " >&6
19178 else $as_nop
19179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19180 /* end confdefs.h. */
19181 int i;
19182 int
19183 main (void)
19184 {
19185
19186 ;
19187 return 0;
19188 }
19189 _ACEOF
19190 if ac_fn_c_try_link "$LINENO"
19191 then :
19192 eval $cacheid=yes
19193 else $as_nop
19194 eval $cacheid=no
19195 fi
19196 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19197 conftest$ac_exeext conftest.$ac_ext
19198 fi
19199
19200
19201 CFLAGS="$xorg_testset_save_CFLAGS"
19202
19203 eval supported=\$$cacheid
19204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19205 printf "%s\n" "$supported" >&6; }
19206 if test "$supported" = "yes" ; then
19207 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19208 found="yes"
19209 fi
19210 fi
19211
19212
19213
19214 if test "x$STRICT_COMPILE" = "xyes"; then
19215 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19216 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19217 fi
19218
19219
19220
19221
19222
19223
19224 cat >>confdefs.h <<_ACEOF
19225 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19226 _ACEOF
19227
19228 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19229 if test "x$PVM" = "x"; then
19230 PVM="0"
19231 fi
19232
19233 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19234
19235 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19236 if test "x$PVP" = "x"; then
19237 PVP="0"
19238 fi
19239
19240 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19241
19242
19243
19244 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19245 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19246 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19247 touch \$(top_srcdir)/ChangeLog; \
19248 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19249
19250
19251
19252
19253 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19254 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19255 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19256 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19257 touch \$(top_srcdir)/INSTALL; \
19258 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19259
19260
19261
19262
19263
19264
19265 case $host_os in
19266 solaris*)
19267 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19268 # check for a man page file found in later versions that use
19269 # traditional section numbers instead
19270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19271 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19272 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19273 then :
19274 printf %s "(cached) " >&6
19275 else $as_nop
19276 test "$cross_compiling" = yes &&
19277 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19278 if test -r "/usr/share/man/man7/attributes.7"; then
19279 ac_cv_file__usr_share_man_man7_attributes_7=yes
19280 else
19281 ac_cv_file__usr_share_man_man7_attributes_7=no
19282 fi
19283 fi
19284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19285 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19286 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19287 then :
19288 SYSV_MAN_SECTIONS=false
19289 else $as_nop
19290 SYSV_MAN_SECTIONS=true
19291 fi
19292
19293 ;;
19294 *) SYSV_MAN_SECTIONS=false ;;
19295 esac
19296
19297 if test x$APP_MAN_SUFFIX = x ; then
19298 APP_MAN_SUFFIX=1
19299 fi
19300 if test x$APP_MAN_DIR = x ; then
19301 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19302 fi
19303
19304 if test x$LIB_MAN_SUFFIX = x ; then
19305 LIB_MAN_SUFFIX=3
19306 fi
19307 if test x$LIB_MAN_DIR = x ; then
19308 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19309 fi
19310
19311 if test x$FILE_MAN_SUFFIX = x ; then
19312 case $SYSV_MAN_SECTIONS in
19313 true) FILE_MAN_SUFFIX=4 ;;
19314 *) FILE_MAN_SUFFIX=5 ;;
19315 esac
19316 fi
19317 if test x$FILE_MAN_DIR = x ; then
19318 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19319 fi
19320
19321 if test x$MISC_MAN_SUFFIX = x ; then
19322 case $SYSV_MAN_SECTIONS in
19323 true) MISC_MAN_SUFFIX=5 ;;
19324 *) MISC_MAN_SUFFIX=7 ;;
19325 esac
19326 fi
19327 if test x$MISC_MAN_DIR = x ; then
19328 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19329 fi
19330
19331 if test x$DRIVER_MAN_SUFFIX = x ; then
19332 case $SYSV_MAN_SECTIONS in
19333 true) DRIVER_MAN_SUFFIX=7 ;;
19334 *) DRIVER_MAN_SUFFIX=4 ;;
19335 esac
19336 fi
19337 if test x$DRIVER_MAN_DIR = x ; then
19338 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19339 fi
19340
19341 if test x$ADMIN_MAN_SUFFIX = x ; then
19342 case $SYSV_MAN_SECTIONS in
19343 true) ADMIN_MAN_SUFFIX=1m ;;
19344 *) ADMIN_MAN_SUFFIX=8 ;;
19345 esac
19346 fi
19347 if test x$ADMIN_MAN_DIR = x ; then
19348 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19349 fi
19350
19351
19352
19353
19354
19355
19356
19357
19358
19359
19360
19361
19362
19363
19364
19365 XORG_MAN_PAGE="X Version 11"
19366
19367 MAN_SUBSTS="\
19368 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19369 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19370 -e 's|__xservername__|Xorg|g' \
19371 -e 's|__xconfigfile__|xorg.conf|g' \
19372 -e 's|__projectroot__|\$(prefix)|g' \
19373 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
19374 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19375 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19376 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19377 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19378 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19379 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19380
19381
19382
19383 # Check whether --enable-silent-rules was given.
19384 if test ${enable_silent_rules+y}
19385 then :
19386 enableval=$enable_silent_rules;
19387 fi
19388
19389 case $enable_silent_rules in # (((
19390 yes) AM_DEFAULT_VERBOSITY=0;;
19391 no) AM_DEFAULT_VERBOSITY=1;;
19392 *) AM_DEFAULT_VERBOSITY=0;;
19393 esac
19394 am_make=${MAKE-make}
19395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19396 printf %s "checking whether $am_make supports nested variables... " >&6; }
19397 if test ${am_cv_make_support_nested_variables+y}
19398 then :
19399 printf %s "(cached) " >&6
19400 else $as_nop
19401 if printf "%s\n" 'TRUE=$(BAR$(V))
19402 BAR0=false
19403 BAR1=true
19404 V=1
19405 am__doit:
19406 @$(TRUE)
19407 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19408 am_cv_make_support_nested_variables=yes
19409 else
19410 am_cv_make_support_nested_variables=no
19411 fi
19412 fi
19413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19414 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19415 if test $am_cv_make_support_nested_variables = yes; then
19416 AM_V='$(V)'
19417 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19418 else
19419 AM_V=$AM_DEFAULT_VERBOSITY
19420 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19421 fi
19422 AM_BACKSLASH='\'
19423
19424
19425
19426
19427 # Check whether --enable-devel-docs was given.
19428 if test ${enable_devel_docs+y}
19429 then :
19430 enableval=$enable_devel_docs; build_devel_docs=$enableval
19431 else $as_nop
19432 build_devel_docs=yes
19433 fi
19434
19435
19436 if test x$build_devel_docs = xyes; then
19437 ENABLE_DEVEL_DOCS_TRUE=
19438 ENABLE_DEVEL_DOCS_FALSE='#'
19439 else
19440 ENABLE_DEVEL_DOCS_TRUE='#'
19441 ENABLE_DEVEL_DOCS_FALSE=
19442 fi
19443
19444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5
19445 printf %s "checking whether to build developer documentation... " >&6; }
19446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5
19447 printf "%s\n" "$build_devel_docs" >&6; }
19448
19449
19450
19451
19452
19453
19454 # Check whether --with-doxygen was given.
19455 if test ${with_doxygen+y}
19456 then :
19457 withval=$with_doxygen; use_doxygen=$withval
19458 else $as_nop
19459 use_doxygen=auto
19460 fi
19461
19462
19463
19464 if test "x$use_doxygen" = x"auto"; then
19465 # Extract the first word of "doxygen", so it can be a program name with args.
19466 set dummy doxygen; ac_word=$2
19467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19468 printf %s "checking for $ac_word... " >&6; }
19469 if test ${ac_cv_path_DOXYGEN+y}
19470 then :
19471 printf %s "(cached) " >&6
19472 else $as_nop
19473 case $DOXYGEN in
19474 [\\/]* | ?:[\\/]*)
19475 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
19476 ;;
19477 *)
19478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19479 for as_dir in $PATH
19480 do
19481 IFS=$as_save_IFS
19482 case $as_dir in #(((
19483 '') as_dir=./ ;;
19484 */) ;;
19485 *) as_dir=$as_dir/ ;;
19486 esac
19487 for ac_exec_ext in '' $ac_executable_extensions; do
19488 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19489 ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
19490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19491 break 2
19492 fi
19493 done
19494 done
19495 IFS=$as_save_IFS
19496
19497 ;;
19498 esac
19499 fi
19500 DOXYGEN=$ac_cv_path_DOXYGEN
19501 if test -n "$DOXYGEN"; then
19502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
19503 printf "%s\n" "$DOXYGEN" >&6; }
19504 else
19505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19506 printf "%s\n" "no" >&6; }
19507 fi
19508
19509
19510 if test "x$DOXYGEN" = "x"; then
19511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5
19512 printf "%s\n" "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;}
19513 have_doxygen=no
19514 else
19515 have_doxygen=yes
19516 fi
19517 elif test "x$use_doxygen" = x"yes" ; then
19518 # Extract the first word of "doxygen", so it can be a program name with args.
19519 set dummy doxygen; ac_word=$2
19520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19521 printf %s "checking for $ac_word... " >&6; }
19522 if test ${ac_cv_path_DOXYGEN+y}
19523 then :
19524 printf %s "(cached) " >&6
19525 else $as_nop
19526 case $DOXYGEN in
19527 [\\/]* | ?:[\\/]*)
19528 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
19529 ;;
19530 *)
19531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19532 for as_dir in $PATH
19533 do
19534 IFS=$as_save_IFS
19535 case $as_dir in #(((
19536 '') as_dir=./ ;;
19537 */) ;;
19538 *) as_dir=$as_dir/ ;;
19539 esac
19540 for ac_exec_ext in '' $ac_executable_extensions; do
19541 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19542 ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
19543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19544 break 2
19545 fi
19546 done
19547 done
19548 IFS=$as_save_IFS
19549
19550 ;;
19551 esac
19552 fi
19553 DOXYGEN=$ac_cv_path_DOXYGEN
19554 if test -n "$DOXYGEN"; then
19555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
19556 printf "%s\n" "$DOXYGEN" >&6; }
19557 else
19558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19559 printf "%s\n" "no" >&6; }
19560 fi
19561
19562
19563 if test "x$DOXYGEN" = "x"; then
19564 as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5
19565 fi
19566 have_doxygen=yes
19567 elif test "x$use_doxygen" = x"no" ; then
19568 if test "x$DOXYGEN" != "x"; then
19569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5
19570 printf "%s\n" "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;}
19571 fi
19572 have_doxygen=no
19573 else
19574 as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5
19575 fi
19576
19577
19578 HAVE_DOT=no
19579 if test "x$have_doxygen" = "xyes"; then
19580 # Extract the first word of "dot", so it can be a program name with args.
19581 set dummy dot; ac_word=$2
19582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19583 printf %s "checking for $ac_word... " >&6; }
19584 if test ${ac_cv_path_DOT+y}
19585 then :
19586 printf %s "(cached) " >&6
19587 else $as_nop
19588 case $DOT in
19589 [\\/]* | ?:[\\/]*)
19590 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
19591 ;;
19592 *)
19593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19594 for as_dir in $PATH
19595 do
19596 IFS=$as_save_IFS
19597 case $as_dir in #(((
19598 '') as_dir=./ ;;
19599 */) ;;
19600 *) as_dir=$as_dir/ ;;
19601 esac
19602 for ac_exec_ext in '' $ac_executable_extensions; do
19603 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19604 ac_cv_path_DOT="$as_dir$ac_word$ac_exec_ext"
19605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19606 break 2
19607 fi
19608 done
19609 done
19610 IFS=$as_save_IFS
19611
19612 ;;
19613 esac
19614 fi
19615 DOT=$ac_cv_path_DOT
19616 if test -n "$DOT"; then
19617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
19618 printf "%s\n" "$DOT" >&6; }
19619 else
19620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19621 printf "%s\n" "no" >&6; }
19622 fi
19623
19624
19625 if test "x$DOT" != "x"; then
19626 HAVE_DOT=yes
19627 fi
19628 fi
19629
19630
19631 if test "$HAVE_DOT" = "yes"; then
19632 HAVE_DOT_TRUE=
19633 HAVE_DOT_FALSE='#'
19634 else
19635 HAVE_DOT_TRUE='#'
19636 HAVE_DOT_FALSE=
19637 fi
19638
19639 if test "$have_doxygen" = yes; then
19640 HAVE_DOXYGEN_TRUE=
19641 HAVE_DOXYGEN_FALSE='#'
19642 else
19643 HAVE_DOXYGEN_TRUE='#'
19644 HAVE_DOXYGEN_FALSE=
19645 fi
19646
19647
19648
19649
19650
19651 pkg_failed=no
19652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XCB_RENDER" >&5
19653 printf %s "checking for XCB_RENDER... " >&6; }
19654
19655 if test -n "$XCB_RENDER_CFLAGS"; then
19656 pkg_cv_XCB_RENDER_CFLAGS="$XCB_RENDER_CFLAGS"
19657 elif test -n "$PKG_CONFIG"; then
19658 if test -n "$PKG_CONFIG" && \
19659 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-render\""; } >&5
19660 ($PKG_CONFIG --exists --print-errors "xcb-render") 2>&5
19661 ac_status=$?
19662 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19663 test $ac_status = 0; }; then
19664 pkg_cv_XCB_RENDER_CFLAGS=`$PKG_CONFIG --cflags "xcb-render" 2>/dev/null`
19665 test "x$?" != "x0" && pkg_failed=yes
19666 else
19667 pkg_failed=yes
19668 fi
19669 else
19670 pkg_failed=untried
19671 fi
19672 if test -n "$XCB_RENDER_LIBS"; then
19673 pkg_cv_XCB_RENDER_LIBS="$XCB_RENDER_LIBS"
19674 elif test -n "$PKG_CONFIG"; then
19675 if test -n "$PKG_CONFIG" && \
19676 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-render\""; } >&5
19677 ($PKG_CONFIG --exists --print-errors "xcb-render") 2>&5
19678 ac_status=$?
19679 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19680 test $ac_status = 0; }; then
19681 pkg_cv_XCB_RENDER_LIBS=`$PKG_CONFIG --libs "xcb-render" 2>/dev/null`
19682 test "x$?" != "x0" && pkg_failed=yes
19683 else
19684 pkg_failed=yes
19685 fi
19686 else
19687 pkg_failed=untried
19688 fi
19689
19690
19691
19692 if test $pkg_failed = yes; then
19693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19694 printf "%s\n" "no" >&6; }
19695
19696 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19697 _pkg_short_errors_supported=yes
19698 else
19699 _pkg_short_errors_supported=no
19700 fi
19701 if test $_pkg_short_errors_supported = yes; then
19702 XCB_RENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb-render" 2>&1`
19703 else
19704 XCB_RENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-render" 2>&1`
19705 fi
19706 # Put the nasty error message in config.log where it belongs
19707 echo "$XCB_RENDER_PKG_ERRORS" >&5
19708
19709 as_fn_error $? "Package requirements (xcb-render) were not met:
19710
19711 $XCB_RENDER_PKG_ERRORS
19712
19713 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19714 installed software in a non-standard prefix.
19715
19716 Alternatively, you may set the environment variables XCB_RENDER_CFLAGS
19717 and XCB_RENDER_LIBS to avoid the need to call pkg-config.
19718 See the pkg-config man page for more details." "$LINENO" 5
19719 elif test $pkg_failed = untried; then
19720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19721 printf "%s\n" "no" >&6; }
19722 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19723 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19724 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19725 is in your PATH or set the PKG_CONFIG environment variable to the full
19726 path to pkg-config.
19727
19728 Alternatively, you may set the environment variables XCB_RENDER_CFLAGS
19729 and XCB_RENDER_LIBS to avoid the need to call pkg-config.
19730 See the pkg-config man page for more details.
19731
19732 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19733 See \`config.log' for more details" "$LINENO" 5; }
19734 else
19735 XCB_RENDER_CFLAGS=$pkg_cv_XCB_RENDER_CFLAGS
19736 XCB_RENDER_LIBS=$pkg_cv_XCB_RENDER_LIBS
19737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19738 printf "%s\n" "yes" >&6; }
19739
19740 fi
19741
19742 ac_config_files="$ac_config_files Makefile renderutil/Makefile renderutil/xcb-renderutil.pc"
19743
19744 cat >confcache <<\_ACEOF
19745 # This file is a shell script that caches the results of configure
19746 # tests run on this system so they can be shared between configure
19747 # scripts and configure runs, see configure's option --config-cache.
19748 # It is not useful on other systems. If it contains results you don't
19749 # want to keep, you may remove or edit it.
19750 #
19751 # config.status only pays attention to the cache file if you give it
19752 # the --recheck option to rerun configure.
19753 #
19754 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19755 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19756 # following values.
19757
19758 _ACEOF
19759
19760 # The following way of writing the cache mishandles newlines in values,
19761 # but we know of no workaround that is simple, portable, and efficient.
19762 # So, we kill variables containing newlines.
19763 # Ultrix sh set writes to stderr and can't be redirected directly,
19764 # and sets the high bit in the cache file unless we assign to the vars.
19765 (
19766 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19767 eval ac_val=\$$ac_var
19768 case $ac_val in #(
19769 *${as_nl}*)
19770 case $ac_var in #(
19771 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19772 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19773 esac
19774 case $ac_var in #(
19775 _ | IFS | as_nl) ;; #(
19776 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19777 *) { eval $ac_var=; unset $ac_var;} ;;
19778 esac ;;
19779 esac
19780 done
19781
19782 (set) 2>&1 |
19783 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19784 *${as_nl}ac_space=\ *)
19785 # `set' does not quote correctly, so add quotes: double-quote
19786 # substitution turns \\\\ into \\, and sed turns \\ into \.
19787 sed -n \
19788 "s/'/'\\\\''/g;
19789 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19790 ;; #(
19791 *)
19792 # `set' quotes correctly as required by POSIX, so do not add quotes.
19793 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19794 ;;
19795 esac |
19796 sort
19797 ) |
19798 sed '
19799 /^ac_cv_env_/b end
19800 t clear
19801 :clear
19802 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19803 t end
19804 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19805 :end' >>confcache
19806 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19807 if test -w "$cache_file"; then
19808 if test "x$cache_file" != "x/dev/null"; then
19809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19810 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19811 if test ! -f "$cache_file" || test -h "$cache_file"; then
19812 cat confcache >"$cache_file"
19813 else
19814 case $cache_file in #(
19815 */* | ?:*)
19816 mv -f confcache "$cache_file"$$ &&
19817 mv -f "$cache_file"$$ "$cache_file" ;; #(
19818 *)
19819 mv -f confcache "$cache_file" ;;
19820 esac
19821 fi
19822 fi
19823 else
19824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19825 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19826 fi
19827 fi
19828 rm -f confcache
19829
19830 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19831 # Let make expand exec_prefix.
19832 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19833
19834 DEFS=-DHAVE_CONFIG_H
19835
19836 ac_libobjs=
19837 ac_ltlibobjs=
19838 U=
19839 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19840 # 1. Remove the extension, and $U if already installed.
19841 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19842 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19843 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19844 # will be set to the directory where LIBOBJS objects are built.
19845 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19846 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19847 done
19848 LIBOBJS=$ac_libobjs
19849
19850 LTLIBOBJS=$ac_ltlibobjs
19851
19852
19853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19854 printf %s "checking that generated files are newer than configure... " >&6; }
19855 if test -n "$am_sleep_pid"; then
19856 # Hide warnings about reused PIDs.
19857 wait $am_sleep_pid 2>/dev/null
19858 fi
19859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19860 printf "%s\n" "done" >&6; }
19861 if test -n "$EXEEXT"; then
19862 am__EXEEXT_TRUE=
19863 am__EXEEXT_FALSE='#'
19864 else
19865 am__EXEEXT_TRUE='#'
19866 am__EXEEXT_FALSE=
19867 fi
19868
19869 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19870 as_fn_error $? "conditional \"AMDEP\" was never defined.
19871 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19872 fi
19873 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19874 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19875 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19876 fi
19877 if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then
19878 as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined.
19879 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19880 fi
19881 if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then
19882 as_fn_error $? "conditional \"HAVE_DOT\" was never defined.
19883 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19884 fi
19885 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
19886 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
19887 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19888 fi
19889
19890 : "${CONFIG_STATUS=./config.status}"
19891 ac_write_fail=0
19892 ac_clean_files_save=$ac_clean_files
19893 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19895 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19896 as_write_fail=0
19897 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19898 #! $SHELL
19899 # Generated by $as_me.
19900 # Run this file to recreate the current configuration.
19901 # Compiler output produced by configure, useful for debugging
19902 # configure, is in config.log if it exists.
19903
19904 debug=false
19905 ac_cs_recheck=false
19906 ac_cs_silent=false
19907
19908 SHELL=\${CONFIG_SHELL-$SHELL}
19909 export SHELL
19910 _ASEOF
19911 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19912 ## -------------------- ##
19913 ## M4sh Initialization. ##
19914 ## -------------------- ##
19915
19916 # Be more Bourne compatible
19917 DUALCASE=1; export DUALCASE # for MKS sh
19918 as_nop=:
19919 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19920 then :
19921 emulate sh
19922 NULLCMD=:
19923 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19924 # is contrary to our usage. Disable this feature.
19925 alias -g '${1+"$@"}'='"$@"'
19926 setopt NO_GLOB_SUBST
19927 else $as_nop
19928 case `(set -o) 2>/dev/null` in #(
19929 *posix*) :
19930 set -o posix ;; #(
19931 *) :
19932 ;;
19933 esac
19934 fi
19935
19936
19937
19938 # Reset variables that may have inherited troublesome values from
19939 # the environment.
19940
19941 # IFS needs to be set, to space, tab, and newline, in precisely that order.
19942 # (If _AS_PATH_WALK were called with IFS unset, it would have the
19943 # side effect of setting IFS to empty, thus disabling word splitting.)
19944 # Quoting is to prevent editors from complaining about space-tab.
19945 as_nl='
19946 '
19947 export as_nl
19948 IFS=" "" $as_nl"
19949
19950 PS1='$ '
19951 PS2='> '
19952 PS4='+ '
19953
19954 # Ensure predictable behavior from utilities with locale-dependent output.
19955 LC_ALL=C
19956 export LC_ALL
19957 LANGUAGE=C
19958 export LANGUAGE
19959
19960 # We cannot yet rely on "unset" to work, but we need these variables
19961 # to be unset--not just set to an empty or harmless value--now, to
19962 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
19963 # also avoids known problems related to "unset" and subshell syntax
19964 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19965 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19966 do eval test \${$as_var+y} \
19967 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19968 done
19969
19970 # Ensure that fds 0, 1, and 2 are open.
19971 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19972 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19973 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
19974
19975 # The user is always right.
19976 if ${PATH_SEPARATOR+false} :; then
19977 PATH_SEPARATOR=:
19978 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19979 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19980 PATH_SEPARATOR=';'
19981 }
19982 fi
19983
19984
19985 # Find who we are. Look in the path if we contain no directory separator.
19986 as_myself=
19987 case $0 in #((
19988 *[\\/]* ) as_myself=$0 ;;
19989 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19990 for as_dir in $PATH
19991 do
19992 IFS=$as_save_IFS
19993 case $as_dir in #(((
19994 '') as_dir=./ ;;
19995 */) ;;
19996 *) as_dir=$as_dir/ ;;
19997 esac
19998 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19999 done
20000 IFS=$as_save_IFS
20001
20002 ;;
20003 esac
20004 # We did not find ourselves, most probably we were run as `sh COMMAND'
20005 # in which case we are not to be found in the path.
20006 if test "x$as_myself" = x; then
20007 as_myself=$0
20008 fi
20009 if test ! -f "$as_myself"; then
20010 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20011 exit 1
20012 fi
20013
20014
20015
20016 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20017 # ----------------------------------------
20018 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20019 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20020 # script with STATUS, using 1 if that was 0.
20021 as_fn_error ()
20022 {
20023 as_status=$1; test $as_status -eq 0 && as_status=1
20024 if test "$4"; then
20025 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20027 fi
20028 printf "%s\n" "$as_me: error: $2" >&2
20029 as_fn_exit $as_status
20030 } # as_fn_error
20031
20032
20033
20034 # as_fn_set_status STATUS
20035 # -----------------------
20036 # Set $? to STATUS, without forking.
20037 as_fn_set_status ()
20038 {
20039 return $1
20040 } # as_fn_set_status
20041
20042 # as_fn_exit STATUS
20043 # -----------------
20044 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20045 as_fn_exit ()
20046 {
20047 set +e
20048 as_fn_set_status $1
20049 exit $1
20050 } # as_fn_exit
20051
20052 # as_fn_unset VAR
20053 # ---------------
20054 # Portably unset VAR.
20055 as_fn_unset ()
20056 {
20057 { eval $1=; unset $1;}
20058 }
20059 as_unset=as_fn_unset
20060
20061 # as_fn_append VAR VALUE
20062 # ----------------------
20063 # Append the text in VALUE to the end of the definition contained in VAR. Take
20064 # advantage of any shell optimizations that allow amortized linear growth over
20065 # repeated appends, instead of the typical quadratic growth present in naive
20066 # implementations.
20067 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20068 then :
20069 eval 'as_fn_append ()
20070 {
20071 eval $1+=\$2
20072 }'
20073 else $as_nop
20074 as_fn_append ()
20075 {
20076 eval $1=\$$1\$2
20077 }
20078 fi # as_fn_append
20079
20080 # as_fn_arith ARG...
20081 # ------------------
20082 # Perform arithmetic evaluation on the ARGs, and store the result in the
20083 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20084 # must be portable across $(()) and expr.
20085 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20086 then :
20087 eval 'as_fn_arith ()
20088 {
20089 as_val=$(( $* ))
20090 }'
20091 else $as_nop
20092 as_fn_arith ()
20093 {
20094 as_val=`expr "$@" || test $? -eq 1`
20095 }
20096 fi # as_fn_arith
20097
20098
20099 if expr a : '\(a\)' >/dev/null 2>&1 &&
20100 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20101 as_expr=expr
20102 else
20103 as_expr=false
20104 fi
20105
20106 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20107 as_basename=basename
20108 else
20109 as_basename=false
20110 fi
20111
20112 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20113 as_dirname=dirname
20114 else
20115 as_dirname=false
20116 fi
20117
20118 as_me=`$as_basename -- "$0" ||
20119 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20120 X"$0" : 'X\(//\)$' \| \
20121 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20122 printf "%s\n" X/"$0" |
20123 sed '/^.*\/\([^/][^/]*\)\/*$/{
20124 s//\1/
20125 q
20126 }
20127 /^X\/\(\/\/\)$/{
20128 s//\1/
20129 q
20130 }
20131 /^X\/\(\/\).*/{
20132 s//\1/
20133 q
20134 }
20135 s/.*/./; q'`
20136
20137 # Avoid depending upon Character Ranges.
20138 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20139 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20140 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20141 as_cr_digits='0123456789'
20142 as_cr_alnum=$as_cr_Letters$as_cr_digits
20143
20144
20145 # Determine whether it's possible to make 'echo' print without a newline.
20146 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20147 # for compatibility with existing Makefiles.
20148 ECHO_C= ECHO_N= ECHO_T=
20149 case `echo -n x` in #(((((
20150 -n*)
20151 case `echo 'xy\c'` in
20152 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20153 xy) ECHO_C='\c';;
20154 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20155 ECHO_T=' ';;
20156 esac;;
20157 *)
20158 ECHO_N='-n';;
20159 esac
20160
20161 # For backward compatibility with old third-party macros, we provide
20162 # the shell variables $as_echo and $as_echo_n. New code should use
20163 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20164 as_echo='printf %s\n'
20165 as_echo_n='printf %s'
20166
20167 rm -f conf$$ conf$$.exe conf$$.file
20168 if test -d conf$$.dir; then
20169 rm -f conf$$.dir/conf$$.file
20170 else
20171 rm -f conf$$.dir
20172 mkdir conf$$.dir 2>/dev/null
20173 fi
20174 if (echo >conf$$.file) 2>/dev/null; then
20175 if ln -s conf$$.file conf$$ 2>/dev/null; then
20176 as_ln_s='ln -s'
20177 # ... but there are two gotchas:
20178 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20179 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20180 # In both cases, we have to default to `cp -pR'.
20181 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20182 as_ln_s='cp -pR'
20183 elif ln conf$$.file conf$$ 2>/dev/null; then
20184 as_ln_s=ln
20185 else
20186 as_ln_s='cp -pR'
20187 fi
20188 else
20189 as_ln_s='cp -pR'
20190 fi
20191 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20192 rmdir conf$$.dir 2>/dev/null
20193
20194
20195 # as_fn_mkdir_p
20196 # -------------
20197 # Create "$as_dir" as a directory, including parents if necessary.
20198 as_fn_mkdir_p ()
20199 {
20200
20201 case $as_dir in #(
20202 -*) as_dir=./$as_dir;;
20203 esac
20204 test -d "$as_dir" || eval $as_mkdir_p || {
20205 as_dirs=
20206 while :; do
20207 case $as_dir in #(
20208 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20209 *) as_qdir=$as_dir;;
20210 esac
20211 as_dirs="'$as_qdir' $as_dirs"
20212 as_dir=`$as_dirname -- "$as_dir" ||
20213 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20214 X"$as_dir" : 'X\(//\)[^/]' \| \
20215 X"$as_dir" : 'X\(//\)$' \| \
20216 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20217 printf "%s\n" X"$as_dir" |
20218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20219 s//\1/
20220 q
20221 }
20222 /^X\(\/\/\)[^/].*/{
20223 s//\1/
20224 q
20225 }
20226 /^X\(\/\/\)$/{
20227 s//\1/
20228 q
20229 }
20230 /^X\(\/\).*/{
20231 s//\1/
20232 q
20233 }
20234 s/.*/./; q'`
20235 test -d "$as_dir" && break
20236 done
20237 test -z "$as_dirs" || eval "mkdir $as_dirs"
20238 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20239
20240
20241 } # as_fn_mkdir_p
20242 if mkdir -p . 2>/dev/null; then
20243 as_mkdir_p='mkdir -p "$as_dir"'
20244 else
20245 test -d ./-p && rmdir ./-p
20246 as_mkdir_p=false
20247 fi
20248
20249
20250 # as_fn_executable_p FILE
20251 # -----------------------
20252 # Test if FILE is an executable regular file.
20253 as_fn_executable_p ()
20254 {
20255 test -f "$1" && test -x "$1"
20256 } # as_fn_executable_p
20257 as_test_x='test -x'
20258 as_executable_p=as_fn_executable_p
20259
20260 # Sed expression to map a string onto a valid CPP name.
20261 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20262
20263 # Sed expression to map a string onto a valid variable name.
20264 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20265
20266
20267 exec 6>&1
20268 ## ----------------------------------- ##
20269 ## Main body of $CONFIG_STATUS script. ##
20270 ## ----------------------------------- ##
20271 _ASEOF
20272 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20273
20274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20275 # Save the log message, to keep $0 and so on meaningful, and to
20276 # report actual input values of CONFIG_FILES etc. instead of their
20277 # values after options handling.
20278 ac_log="
20279 This file was extended by xcb-util-renderutil $as_me 0.3.10, which was
20280 generated by GNU Autoconf 2.71. Invocation command line was
20281
20282 CONFIG_FILES = $CONFIG_FILES
20283 CONFIG_HEADERS = $CONFIG_HEADERS
20284 CONFIG_LINKS = $CONFIG_LINKS
20285 CONFIG_COMMANDS = $CONFIG_COMMANDS
20286 $ $0 $@
20287
20288 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20289 "
20290
20291 _ACEOF
20292
20293 case $ac_config_files in *"
20294 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20295 esac
20296
20297 case $ac_config_headers in *"
20298 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20299 esac
20300
20301
20302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20303 # Files that config.status was made for.
20304 config_files="$ac_config_files"
20305 config_headers="$ac_config_headers"
20306 config_commands="$ac_config_commands"
20307
20308 _ACEOF
20309
20310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20311 ac_cs_usage="\
20312 \`$as_me' instantiates files and other configuration actions
20313 from templates according to the current configuration. Unless the files
20314 and actions are specified as TAGs, all are instantiated by default.
20315
20316 Usage: $0 [OPTION]... [TAG]...
20317
20318 -h, --help print this help, then exit
20319 -V, --version print version number and configuration settings, then exit
20320 --config print configuration, then exit
20321 -q, --quiet, --silent
20322 do not print progress messages
20323 -d, --debug don't remove temporary files
20324 --recheck update $as_me by reconfiguring in the same conditions
20325 --file=FILE[:TEMPLATE]
20326 instantiate the configuration file FILE
20327 --header=FILE[:TEMPLATE]
20328 instantiate the configuration header FILE
20329
20330 Configuration files:
20331 $config_files
20332
20333 Configuration headers:
20334 $config_headers
20335
20336 Configuration commands:
20337 $config_commands
20338
20339 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxcb-render-util/-/issues>."
20340
20341 _ACEOF
20342 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20343 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20345 ac_cs_config='$ac_cs_config_escaped'
20346 ac_cs_version="\\
20347 xcb-util-renderutil config.status 0.3.10
20348 configured by $0, generated by GNU Autoconf 2.71,
20349 with options \\"\$ac_cs_config\\"
20350
20351 Copyright (C) 2021 Free Software Foundation, Inc.
20352 This config.status script is free software; the Free Software Foundation
20353 gives unlimited permission to copy, distribute and modify it."
20354
20355 ac_pwd='$ac_pwd'
20356 srcdir='$srcdir'
20357 INSTALL='$INSTALL'
20358 MKDIR_P='$MKDIR_P'
20359 AWK='$AWK'
20360 test -n "\$AWK" || AWK=awk
20361 _ACEOF
20362
20363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20364 # The default lists apply if the user does not specify any file.
20365 ac_need_defaults=:
20366 while test $# != 0
20367 do
20368 case $1 in
20369 --*=?*)
20370 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20371 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20372 ac_shift=:
20373 ;;
20374 --*=)
20375 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20376 ac_optarg=
20377 ac_shift=:
20378 ;;
20379 *)
20380 ac_option=$1
20381 ac_optarg=$2
20382 ac_shift=shift
20383 ;;
20384 esac
20385
20386 case $ac_option in
20387 # Handling of the options.
20388 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20389 ac_cs_recheck=: ;;
20390 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20391 printf "%s\n" "$ac_cs_version"; exit ;;
20392 --config | --confi | --conf | --con | --co | --c )
20393 printf "%s\n" "$ac_cs_config"; exit ;;
20394 --debug | --debu | --deb | --de | --d | -d )
20395 debug=: ;;
20396 --file | --fil | --fi | --f )
20397 $ac_shift
20398 case $ac_optarg in
20399 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20400 '') as_fn_error $? "missing file argument" ;;
20401 esac
20402 as_fn_append CONFIG_FILES " '$ac_optarg'"
20403 ac_need_defaults=false;;
20404 --header | --heade | --head | --hea )
20405 $ac_shift
20406 case $ac_optarg in
20407 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20408 esac
20409 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20410 ac_need_defaults=false;;
20411 --he | --h)
20412 # Conflict between --help and --header
20413 as_fn_error $? "ambiguous option: \`$1'
20414 Try \`$0 --help' for more information.";;
20415 --help | --hel | -h )
20416 printf "%s\n" "$ac_cs_usage"; exit ;;
20417 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20418 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20419 ac_cs_silent=: ;;
20420
20421 # This is an error.
20422 -*) as_fn_error $? "unrecognized option: \`$1'
20423 Try \`$0 --help' for more information." ;;
20424
20425 *) as_fn_append ac_config_targets " $1"
20426 ac_need_defaults=false ;;
20427
20428 esac
20429 shift
20430 done
20431
20432 ac_configure_extra_args=
20433
20434 if $ac_cs_silent; then
20435 exec 6>/dev/null
20436 ac_configure_extra_args="$ac_configure_extra_args --silent"
20437 fi
20438
20439 _ACEOF
20440 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20441 if \$ac_cs_recheck; then
20442 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20443 shift
20444 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20445 CONFIG_SHELL='$SHELL'
20446 export CONFIG_SHELL
20447 exec "\$@"
20448 fi
20449
20450 _ACEOF
20451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20452 exec 5>>config.log
20453 {
20454 echo
20455 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20456 ## Running $as_me. ##
20457 _ASBOX
20458 printf "%s\n" "$ac_log"
20459 } >&5
20460
20461 _ACEOF
20462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20463 #
20464 # INIT-COMMANDS
20465 #
20466 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20467
20468
20469 # The HP-UX ksh and POSIX shell print the target directory to stdout
20470 # if CDPATH is set.
20471 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20472
20473 sed_quote_subst='$sed_quote_subst'
20474 double_quote_subst='$double_quote_subst'
20475 delay_variable_subst='$delay_variable_subst'
20476 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20477 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20478 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20479 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20480 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20481 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20482 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20483 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20484 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20485 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20486 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20487 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20488 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20489 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20490 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20491 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20492 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20493 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20494 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20495 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20496 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20497 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20498 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20499 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20500 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20501 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20502 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20503 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20504 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20505 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20506 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20507 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20508 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20509 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20510 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20511 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20512 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20513 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20514 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20515 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20516 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20517 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20518 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20519 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20520 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20521 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20522 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20523 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20524 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20525 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20526 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20527 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20528 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20529 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20530 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20531 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20532 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20533 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20534 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20535 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20536 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"`'
20537 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20538 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20539 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20540 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20541 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20542 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20543 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20544 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20545 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20546 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20547 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20548 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20549 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20550 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20551 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20552 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20553 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20554 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20555 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20556 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20557 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20558 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20559 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20560 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20561 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20562 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20563 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20564 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20565 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20566 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20567 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20568 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20569 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20570 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20571 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20572 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20573 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20574 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20575 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20576 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20577 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20578 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20579 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20580 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20581 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20582 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20583 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20584 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20585 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20586 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20587 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20588 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20589 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20590 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20591 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20592 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20593 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20594 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20595 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20596 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20597 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20598 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20599 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20600 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20601 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20602 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20603 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20604 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20605 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20606 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20607 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20608 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20609 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20610 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20611 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20612 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20613
20614 LTCC='$LTCC'
20615 LTCFLAGS='$LTCFLAGS'
20616 compiler='$compiler_DEFAULT'
20617
20618 # A function that is used when there is no print builtin or printf.
20619 func_fallback_echo ()
20620 {
20621 eval 'cat <<_LTECHO_EOF
20622 \$1
20623 _LTECHO_EOF'
20624 }
20625
20626 # Quote evaled strings.
20627 for var in SHELL \
20628 ECHO \
20629 PATH_SEPARATOR \
20630 SED \
20631 GREP \
20632 EGREP \
20633 FGREP \
20634 LD \
20635 NM \
20636 LN_S \
20637 lt_SP2NL \
20638 lt_NL2SP \
20639 reload_flag \
20640 FILECMD \
20641 OBJDUMP \
20642 deplibs_check_method \
20643 file_magic_cmd \
20644 file_magic_glob \
20645 want_nocaseglob \
20646 DLLTOOL \
20647 sharedlib_from_linklib_cmd \
20648 AR \
20649 archiver_list_spec \
20650 STRIP \
20651 RANLIB \
20652 CC \
20653 CFLAGS \
20654 compiler \
20655 lt_cv_sys_global_symbol_pipe \
20656 lt_cv_sys_global_symbol_to_cdecl \
20657 lt_cv_sys_global_symbol_to_import \
20658 lt_cv_sys_global_symbol_to_c_name_address \
20659 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20660 lt_cv_nm_interface \
20661 nm_file_list_spec \
20662 lt_cv_truncate_bin \
20663 lt_prog_compiler_no_builtin_flag \
20664 lt_prog_compiler_pic \
20665 lt_prog_compiler_wl \
20666 lt_prog_compiler_static \
20667 lt_cv_prog_compiler_c_o \
20668 need_locks \
20669 MANIFEST_TOOL \
20670 DSYMUTIL \
20671 NMEDIT \
20672 LIPO \
20673 OTOOL \
20674 OTOOL64 \
20675 shrext_cmds \
20676 export_dynamic_flag_spec \
20677 whole_archive_flag_spec \
20678 compiler_needs_object \
20679 with_gnu_ld \
20680 allow_undefined_flag \
20681 no_undefined_flag \
20682 hardcode_libdir_flag_spec \
20683 hardcode_libdir_separator \
20684 exclude_expsyms \
20685 include_expsyms \
20686 file_list_spec \
20687 variables_saved_for_relink \
20688 libname_spec \
20689 library_names_spec \
20690 soname_spec \
20691 install_override_mode \
20692 finish_eval \
20693 old_striplib \
20694 striplib; do
20695 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20696 *[\\\\\\\`\\"\\\$]*)
20697 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20698 ;;
20699 *)
20700 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20701 ;;
20702 esac
20703 done
20704
20705 # Double-quote double-evaled strings.
20706 for var in reload_cmds \
20707 old_postinstall_cmds \
20708 old_postuninstall_cmds \
20709 old_archive_cmds \
20710 extract_expsyms_cmds \
20711 old_archive_from_new_cmds \
20712 old_archive_from_expsyms_cmds \
20713 archive_cmds \
20714 archive_expsym_cmds \
20715 module_cmds \
20716 module_expsym_cmds \
20717 export_symbols_cmds \
20718 prelink_cmds \
20719 postlink_cmds \
20720 postinstall_cmds \
20721 postuninstall_cmds \
20722 finish_cmds \
20723 sys_lib_search_path_spec \
20724 configure_time_dlsearch_path \
20725 configure_time_lt_sys_library_path; do
20726 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20727 *[\\\\\\\`\\"\\\$]*)
20728 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20729 ;;
20730 *)
20731 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20732 ;;
20733 esac
20734 done
20735
20736 ac_aux_dir='$ac_aux_dir'
20737
20738 # See if we are running on zsh, and set the options that allow our
20739 # commands through without removal of \ escapes INIT.
20740 if test -n "\${ZSH_VERSION+set}"; then
20741 setopt NO_GLOB_SUBST
20742 fi
20743
20744
20745 PACKAGE='$PACKAGE'
20746 VERSION='$VERSION'
20747 RM='$RM'
20748 ofile='$ofile'
20749
20750
20751
20752
20753 _ACEOF
20754
20755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20756
20757 # Handling of arguments.
20758 for ac_config_target in $ac_config_targets
20759 do
20760 case $ac_config_target in
20761 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20762 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20763 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20764 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20765 "renderutil/Makefile") CONFIG_FILES="$CONFIG_FILES renderutil/Makefile" ;;
20766 "renderutil/xcb-renderutil.pc") CONFIG_FILES="$CONFIG_FILES renderutil/xcb-renderutil.pc" ;;
20767
20768 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20769 esac
20770 done
20771
20772
20773 # If the user did not use the arguments to specify the items to instantiate,
20774 # then the envvar interface is used. Set only those that are not.
20775 # We use the long form for the default assignment because of an extremely
20776 # bizarre bug on SunOS 4.1.3.
20777 if $ac_need_defaults; then
20778 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20779 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20780 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20781 fi
20782
20783 # Have a temporary directory for convenience. Make it in the build tree
20784 # simply because there is no reason against having it here, and in addition,
20785 # creating and moving files from /tmp can sometimes cause problems.
20786 # Hook for its removal unless debugging.
20787 # Note that there is a small window in which the directory will not be cleaned:
20788 # after its creation but before its name has been assigned to `$tmp'.
20789 $debug ||
20790 {
20791 tmp= ac_tmp=
20792 trap 'exit_status=$?
20793 : "${ac_tmp:=$tmp}"
20794 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20795 ' 0
20796 trap 'as_fn_exit 1' 1 2 13 15
20797 }
20798 # Create a (secure) tmp directory for tmp files.
20799
20800 {
20801 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20802 test -d "$tmp"
20803 } ||
20804 {
20805 tmp=./conf$$-$RANDOM
20806 (umask 077 && mkdir "$tmp")
20807 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20808 ac_tmp=$tmp
20809
20810 # Set up the scripts for CONFIG_FILES section.
20811 # No need to generate them if there are no CONFIG_FILES.
20812 # This happens for instance with `./config.status config.h'.
20813 if test -n "$CONFIG_FILES"; then
20814
20815
20816 ac_cr=`echo X | tr X '\015'`
20817 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20818 # But we know of no other shell where ac_cr would be empty at this
20819 # point, so we can use a bashism as a fallback.
20820 if test "x$ac_cr" = x; then
20821 eval ac_cr=\$\'\\r\'
20822 fi
20823 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20824 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20825 ac_cs_awk_cr='\\r'
20826 else
20827 ac_cs_awk_cr=$ac_cr
20828 fi
20829
20830 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20831 _ACEOF
20832
20833
20834 {
20835 echo "cat >conf$$subs.awk <<_ACEOF" &&
20836 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20837 echo "_ACEOF"
20838 } >conf$$subs.sh ||
20839 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20840 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20841 ac_delim='%!_!# '
20842 for ac_last_try in false false false false false :; do
20843 . ./conf$$subs.sh ||
20844 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20845
20846 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20847 if test $ac_delim_n = $ac_delim_num; then
20848 break
20849 elif $ac_last_try; then
20850 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20851 else
20852 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20853 fi
20854 done
20855 rm -f conf$$subs.sh
20856
20857 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20858 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20859 _ACEOF
20860 sed -n '
20861 h
20862 s/^/S["/; s/!.*/"]=/
20863 p
20864 g
20865 s/^[^!]*!//
20866 :repl
20867 t repl
20868 s/'"$ac_delim"'$//
20869 t delim
20870 :nl
20871 h
20872 s/\(.\{148\}\)..*/\1/
20873 t more1
20874 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20875 p
20876 n
20877 b repl
20878 :more1
20879 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20880 p
20881 g
20882 s/.\{148\}//
20883 t nl
20884 :delim
20885 h
20886 s/\(.\{148\}\)..*/\1/
20887 t more2
20888 s/["\\]/\\&/g; s/^/"/; s/$/"/
20889 p
20890 b
20891 :more2
20892 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20893 p
20894 g
20895 s/.\{148\}//
20896 t delim
20897 ' <conf$$subs.awk | sed '
20898 /^[^""]/{
20899 N
20900 s/\n//
20901 }
20902 ' >>$CONFIG_STATUS || ac_write_fail=1
20903 rm -f conf$$subs.awk
20904 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20905 _ACAWK
20906 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20907 for (key in S) S_is_set[key] = 1
20908 FS = ""
20909
20910 }
20911 {
20912 line = $ 0
20913 nfields = split(line, field, "@")
20914 substed = 0
20915 len = length(field[1])
20916 for (i = 2; i < nfields; i++) {
20917 key = field[i]
20918 keylen = length(key)
20919 if (S_is_set[key]) {
20920 value = S[key]
20921 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20922 len += length(value) + length(field[++i])
20923 substed = 1
20924 } else
20925 len += 1 + keylen
20926 }
20927
20928 print line
20929 }
20930
20931 _ACAWK
20932 _ACEOF
20933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20934 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20935 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20936 else
20937 cat
20938 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20939 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20940 _ACEOF
20941
20942 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20943 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20944 # trailing colons and then remove the whole line if VPATH becomes empty
20945 # (actually we leave an empty line to preserve line numbers).
20946 if test "x$srcdir" = x.; then
20947 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20948 h
20949 s///
20950 s/^/:/
20951 s/[ ]*$/:/
20952 s/:\$(srcdir):/:/g
20953 s/:\${srcdir}:/:/g
20954 s/:@srcdir@:/:/g
20955 s/^:*//
20956 s/:*$//
20957 x
20958 s/\(=[ ]*\).*/\1/
20959 G
20960 s/\n//
20961 s/^[^=]*=[ ]*$//
20962 }'
20963 fi
20964
20965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20966 fi # test -n "$CONFIG_FILES"
20967
20968 # Set up the scripts for CONFIG_HEADERS section.
20969 # No need to generate them if there are no CONFIG_HEADERS.
20970 # This happens for instance with `./config.status Makefile'.
20971 if test -n "$CONFIG_HEADERS"; then
20972 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20973 BEGIN {
20974 _ACEOF
20975
20976 # Transform confdefs.h into an awk script `defines.awk', embedded as
20977 # here-document in config.status, that substitutes the proper values into
20978 # config.h.in to produce config.h.
20979
20980 # Create a delimiter string that does not exist in confdefs.h, to ease
20981 # handling of long lines.
20982 ac_delim='%!_!# '
20983 for ac_last_try in false false :; do
20984 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20985 if test -z "$ac_tt"; then
20986 break
20987 elif $ac_last_try; then
20988 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20989 else
20990 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20991 fi
20992 done
20993
20994 # For the awk script, D is an array of macro values keyed by name,
20995 # likewise P contains macro parameters if any. Preserve backslash
20996 # newline sequences.
20997
20998 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20999 sed -n '
21000 s/.\{148\}/&'"$ac_delim"'/g
21001 t rset
21002 :rset
21003 s/^[ ]*#[ ]*define[ ][ ]*/ /
21004 t def
21005 d
21006 :def
21007 s/\\$//
21008 t bsnl
21009 s/["\\]/\\&/g
21010 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21011 D["\1"]=" \3"/p
21012 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21013 d
21014 :bsnl
21015 s/["\\]/\\&/g
21016 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21017 D["\1"]=" \3\\\\\\n"\\/p
21018 t cont
21019 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21020 t cont
21021 d
21022 :cont
21023 n
21024 s/.\{148\}/&'"$ac_delim"'/g
21025 t clear
21026 :clear
21027 s/\\$//
21028 t bsnlc
21029 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21030 d
21031 :bsnlc
21032 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21033 b cont
21034 ' <confdefs.h | sed '
21035 s/'"$ac_delim"'/"\\\
21036 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21037
21038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21039 for (key in D) D_is_set[key] = 1
21040 FS = ""
21041 }
21042 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21043 line = \$ 0
21044 split(line, arg, " ")
21045 if (arg[1] == "#") {
21046 defundef = arg[2]
21047 mac1 = arg[3]
21048 } else {
21049 defundef = substr(arg[1], 2)
21050 mac1 = arg[2]
21051 }
21052 split(mac1, mac2, "(") #)
21053 macro = mac2[1]
21054 prefix = substr(line, 1, index(line, defundef) - 1)
21055 if (D_is_set[macro]) {
21056 # Preserve the white space surrounding the "#".
21057 print prefix "define", macro P[macro] D[macro]
21058 next
21059 } else {
21060 # Replace #undef with comments. This is necessary, for example,
21061 # in the case of _POSIX_SOURCE, which is predefined and required
21062 # on some systems where configure will not decide to define it.
21063 if (defundef == "undef") {
21064 print "/*", prefix defundef, macro, "*/"
21065 next
21066 }
21067 }
21068 }
21069 { print }
21070 _ACAWK
21071 _ACEOF
21072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21073 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21074 fi # test -n "$CONFIG_HEADERS"
21075
21076
21077 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21078 shift
21079 for ac_tag
21080 do
21081 case $ac_tag in
21082 :[FHLC]) ac_mode=$ac_tag; continue;;
21083 esac
21084 case $ac_mode$ac_tag in
21085 :[FHL]*:*);;
21086 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21087 :[FH]-) ac_tag=-:-;;
21088 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21089 esac
21090 ac_save_IFS=$IFS
21091 IFS=:
21092 set x $ac_tag
21093 IFS=$ac_save_IFS
21094 shift
21095 ac_file=$1
21096 shift
21097
21098 case $ac_mode in
21099 :L) ac_source=$1;;
21100 :[FH])
21101 ac_file_inputs=
21102 for ac_f
21103 do
21104 case $ac_f in
21105 -) ac_f="$ac_tmp/stdin";;
21106 *) # Look for the file first in the build tree, then in the source tree
21107 # (if the path is not absolute). The absolute path cannot be DOS-style,
21108 # because $ac_f cannot contain `:'.
21109 test -f "$ac_f" ||
21110 case $ac_f in
21111 [\\/$]*) false;;
21112 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21113 esac ||
21114 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21115 esac
21116 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21117 as_fn_append ac_file_inputs " '$ac_f'"
21118 done
21119
21120 # Let's still pretend it is `configure' which instantiates (i.e., don't
21121 # use $as_me), people would be surprised to read:
21122 # /* config.h. Generated by config.status. */
21123 configure_input='Generated from '`
21124 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21125 `' by configure.'
21126 if test x"$ac_file" != x-; then
21127 configure_input="$ac_file. $configure_input"
21128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21129 printf "%s\n" "$as_me: creating $ac_file" >&6;}
21130 fi
21131 # Neutralize special characters interpreted by sed in replacement strings.
21132 case $configure_input in #(
21133 *\&* | *\|* | *\\* )
21134 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21135 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21136 *) ac_sed_conf_input=$configure_input;;
21137 esac
21138
21139 case $ac_tag in
21140 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21141 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21142 esac
21143 ;;
21144 esac
21145
21146 ac_dir=`$as_dirname -- "$ac_file" ||
21147 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21148 X"$ac_file" : 'X\(//\)[^/]' \| \
21149 X"$ac_file" : 'X\(//\)$' \| \
21150 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21151 printf "%s\n" X"$ac_file" |
21152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21153 s//\1/
21154 q
21155 }
21156 /^X\(\/\/\)[^/].*/{
21157 s//\1/
21158 q
21159 }
21160 /^X\(\/\/\)$/{
21161 s//\1/
21162 q
21163 }
21164 /^X\(\/\).*/{
21165 s//\1/
21166 q
21167 }
21168 s/.*/./; q'`
21169 as_dir="$ac_dir"; as_fn_mkdir_p
21170 ac_builddir=.
21171
21172 case "$ac_dir" in
21173 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21174 *)
21175 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21176 # A ".." for each directory in $ac_dir_suffix.
21177 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21178 case $ac_top_builddir_sub in
21179 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21180 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21181 esac ;;
21182 esac
21183 ac_abs_top_builddir=$ac_pwd
21184 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21185 # for backward compatibility:
21186 ac_top_builddir=$ac_top_build_prefix
21187
21188 case $srcdir in
21189 .) # We are building in place.
21190 ac_srcdir=.
21191 ac_top_srcdir=$ac_top_builddir_sub
21192 ac_abs_top_srcdir=$ac_pwd ;;
21193 [\\/]* | ?:[\\/]* ) # Absolute name.
21194 ac_srcdir=$srcdir$ac_dir_suffix;
21195 ac_top_srcdir=$srcdir
21196 ac_abs_top_srcdir=$srcdir ;;
21197 *) # Relative name.
21198 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21199 ac_top_srcdir=$ac_top_build_prefix$srcdir
21200 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21201 esac
21202 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21203
21204
21205 case $ac_mode in
21206 :F)
21207 #
21208 # CONFIG_FILE
21209 #
21210
21211 case $INSTALL in
21212 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21213 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21214 esac
21215 ac_MKDIR_P=$MKDIR_P
21216 case $MKDIR_P in
21217 [\\/$]* | ?:[\\/]* ) ;;
21218 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21219 esac
21220 _ACEOF
21221
21222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21223 # If the template does not know about datarootdir, expand it.
21224 # FIXME: This hack should be removed a few years after 2.60.
21225 ac_datarootdir_hack=; ac_datarootdir_seen=
21226 ac_sed_dataroot='
21227 /datarootdir/ {
21228 p
21229 q
21230 }
21231 /@datadir@/p
21232 /@docdir@/p
21233 /@infodir@/p
21234 /@localedir@/p
21235 /@mandir@/p'
21236 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21237 *datarootdir*) ac_datarootdir_seen=yes;;
21238 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21240 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21241 _ACEOF
21242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21243 ac_datarootdir_hack='
21244 s&@datadir@&$datadir&g
21245 s&@docdir@&$docdir&g
21246 s&@infodir@&$infodir&g
21247 s&@localedir@&$localedir&g
21248 s&@mandir@&$mandir&g
21249 s&\\\${datarootdir}&$datarootdir&g' ;;
21250 esac
21251 _ACEOF
21252
21253 # Neutralize VPATH when `$srcdir' = `.'.
21254 # Shell code in configure.ac might set extrasub.
21255 # FIXME: do we really want to maintain this feature?
21256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21257 ac_sed_extra="$ac_vpsub
21258 $extrasub
21259 _ACEOF
21260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21261 :t
21262 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21263 s|@configure_input@|$ac_sed_conf_input|;t t
21264 s&@top_builddir@&$ac_top_builddir_sub&;t t
21265 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21266 s&@srcdir@&$ac_srcdir&;t t
21267 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21268 s&@top_srcdir@&$ac_top_srcdir&;t t
21269 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21270 s&@builddir@&$ac_builddir&;t t
21271 s&@abs_builddir@&$ac_abs_builddir&;t t
21272 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21273 s&@INSTALL@&$ac_INSTALL&;t t
21274 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21275 $ac_datarootdir_hack
21276 "
21277 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21278 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21279
21280 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21281 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21282 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21283 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21285 which seems to be undefined. Please make sure it is defined" >&5
21286 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21287 which seems to be undefined. Please make sure it is defined" >&2;}
21288
21289 rm -f "$ac_tmp/stdin"
21290 case $ac_file in
21291 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21292 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21293 esac \
21294 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21295 ;;
21296 :H)
21297 #
21298 # CONFIG_HEADER
21299 #
21300 if test x"$ac_file" != x-; then
21301 {
21302 printf "%s\n" "/* $configure_input */" >&1 \
21303 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21304 } >"$ac_tmp/config.h" \
21305 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21306 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21308 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21309 else
21310 rm -f "$ac_file"
21311 mv "$ac_tmp/config.h" "$ac_file" \
21312 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21313 fi
21314 else
21315 printf "%s\n" "/* $configure_input */" >&1 \
21316 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21317 || as_fn_error $? "could not create -" "$LINENO" 5
21318 fi
21319 # Compute "$ac_file"'s index in $config_headers.
21320 _am_arg="$ac_file"
21321 _am_stamp_count=1
21322 for _am_header in $config_headers :; do
21323 case $_am_header in
21324 $_am_arg | $_am_arg:* )
21325 break ;;
21326 * )
21327 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21328 esac
21329 done
21330 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21331 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21332 X"$_am_arg" : 'X\(//\)[^/]' \| \
21333 X"$_am_arg" : 'X\(//\)$' \| \
21334 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21335 printf "%s\n" X"$_am_arg" |
21336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21337 s//\1/
21338 q
21339 }
21340 /^X\(\/\/\)[^/].*/{
21341 s//\1/
21342 q
21343 }
21344 /^X\(\/\/\)$/{
21345 s//\1/
21346 q
21347 }
21348 /^X\(\/\).*/{
21349 s//\1/
21350 q
21351 }
21352 s/.*/./; q'`/stamp-h$_am_stamp_count
21353 ;;
21354
21355 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21356 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21357 ;;
21358 esac
21359
21360
21361 case $ac_file$ac_mode in
21362 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21363 # Older Autoconf quotes --file arguments for eval, but not when files
21364 # are listed without --file. Let's play safe and only enable the eval
21365 # if we detect the quoting.
21366 # TODO: see whether this extra hack can be removed once we start
21367 # requiring Autoconf 2.70 or later.
21368 case $CONFIG_FILES in #(
21369 *\'*) :
21370 eval set x "$CONFIG_FILES" ;; #(
21371 *) :
21372 set x $CONFIG_FILES ;; #(
21373 *) :
21374 ;;
21375 esac
21376 shift
21377 # Used to flag and report bootstrapping failures.
21378 am_rc=0
21379 for am_mf
21380 do
21381 # Strip MF so we end up with the name of the file.
21382 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21383 # Check whether this is an Automake generated Makefile which includes
21384 # dependency-tracking related rules and includes.
21385 # Grep'ing the whole file directly is not great: AIX grep has a line
21386 # limit of 2048, but all sed's we know have understand at least 4000.
21387 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21388 || continue
21389 am_dirpart=`$as_dirname -- "$am_mf" ||
21390 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21391 X"$am_mf" : 'X\(//\)[^/]' \| \
21392 X"$am_mf" : 'X\(//\)$' \| \
21393 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21394 printf "%s\n" X"$am_mf" |
21395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21396 s//\1/
21397 q
21398 }
21399 /^X\(\/\/\)[^/].*/{
21400 s//\1/
21401 q
21402 }
21403 /^X\(\/\/\)$/{
21404 s//\1/
21405 q
21406 }
21407 /^X\(\/\).*/{
21408 s//\1/
21409 q
21410 }
21411 s/.*/./; q'`
21412 am_filepart=`$as_basename -- "$am_mf" ||
21413 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21414 X"$am_mf" : 'X\(//\)$' \| \
21415 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21416 printf "%s\n" X/"$am_mf" |
21417 sed '/^.*\/\([^/][^/]*\)\/*$/{
21418 s//\1/
21419 q
21420 }
21421 /^X\/\(\/\/\)$/{
21422 s//\1/
21423 q
21424 }
21425 /^X\/\(\/\).*/{
21426 s//\1/
21427 q
21428 }
21429 s/.*/./; q'`
21430 { echo "$as_me:$LINENO: cd "$am_dirpart" \
21431 && sed -e '/# am--include-marker/d' "$am_filepart" \
21432 | $MAKE -f - am--depfiles" >&5
21433 (cd "$am_dirpart" \
21434 && sed -e '/# am--include-marker/d' "$am_filepart" \
21435 | $MAKE -f - am--depfiles) >&5 2>&5
21436 ac_status=$?
21437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438 (exit $ac_status); } || am_rc=$?
21439 done
21440 if test $am_rc -ne 0; then
21441 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21442 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21443 as_fn_error $? "Something went wrong bootstrapping makefile fragments
21444 for automatic dependency tracking. If GNU make was not used, consider
21445 re-running the configure script with MAKE=\"gmake\" (or whatever is
21446 necessary). You can also try re-running configure with the
21447 '--disable-dependency-tracking' option to at least be able to build
21448 the package (albeit without support for automatic dependency tracking).
21449 See \`config.log' for more details" "$LINENO" 5; }
21450 fi
21451 { am_dirpart=; unset am_dirpart;}
21452 { am_filepart=; unset am_filepart;}
21453 { am_mf=; unset am_mf;}
21454 { am_rc=; unset am_rc;}
21455 rm -f conftest-deps.mk
21456 }
21457 ;;
21458 "libtool":C)
21459
21460 # See if we are running on zsh, and set the options that allow our
21461 # commands through without removal of \ escapes.
21462 if test -n "${ZSH_VERSION+set}"; then
21463 setopt NO_GLOB_SUBST
21464 fi
21465
21466 cfgfile=${ofile}T
21467 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21468 $RM "$cfgfile"
21469
21470 cat <<_LT_EOF >> "$cfgfile"
21471 #! $SHELL
21472 # Generated automatically by $as_me ($PACKAGE) $VERSION
21473 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21474 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21475
21476 # Provide generalized library-building support services.
21477 # Written by Gordon Matzigkeit, 1996
21478
21479 # Copyright (C) 2014 Free Software Foundation, Inc.
21480 # This is free software; see the source for copying conditions. There is NO
21481 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21482
21483 # GNU Libtool is free software; you can redistribute it and/or modify
21484 # it under the terms of the GNU General Public License as published by
21485 # the Free Software Foundation; either version 2 of of the License, or
21486 # (at your option) any later version.
21487 #
21488 # As a special exception to the GNU General Public License, if you
21489 # distribute this file as part of a program or library that is built
21490 # using GNU Libtool, you may include this file under the same
21491 # distribution terms that you use for the rest of that program.
21492 #
21493 # GNU Libtool is distributed in the hope that it will be useful, but
21494 # WITHOUT ANY WARRANTY; without even the implied warranty of
21495 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21496 # GNU General Public License for more details.
21497 #
21498 # You should have received a copy of the GNU General Public License
21499 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21500
21501
21502 # The names of the tagged configurations supported by this script.
21503 available_tags=''
21504
21505 # Configured defaults for sys_lib_dlsearch_path munging.
21506 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21507
21508 # ### BEGIN LIBTOOL CONFIG
21509
21510 # Which release of libtool.m4 was used?
21511 macro_version=$macro_version
21512 macro_revision=$macro_revision
21513
21514 # Whether or not to build shared libraries.
21515 build_libtool_libs=$enable_shared
21516
21517 # Whether or not to build static libraries.
21518 build_old_libs=$enable_static
21519
21520 # What type of objects to build.
21521 pic_mode=$pic_mode
21522
21523 # Whether or not to optimize for fast installation.
21524 fast_install=$enable_fast_install
21525
21526 # Shared archive member basename,for filename based shared library versioning on AIX.
21527 shared_archive_member_spec=$shared_archive_member_spec
21528
21529 # Shell to use when invoking shell scripts.
21530 SHELL=$lt_SHELL
21531
21532 # An echo program that protects backslashes.
21533 ECHO=$lt_ECHO
21534
21535 # The PATH separator for the build system.
21536 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21537
21538 # The host system.
21539 host_alias=$host_alias
21540 host=$host
21541 host_os=$host_os
21542
21543 # The build system.
21544 build_alias=$build_alias
21545 build=$build
21546 build_os=$build_os
21547
21548 # A sed program that does not truncate output.
21549 SED=$lt_SED
21550
21551 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21552 Xsed="\$SED -e 1s/^X//"
21553
21554 # A grep program that handles long lines.
21555 GREP=$lt_GREP
21556
21557 # An ERE matcher.
21558 EGREP=$lt_EGREP
21559
21560 # A literal string matcher.
21561 FGREP=$lt_FGREP
21562
21563 # A BSD- or MS-compatible name lister.
21564 NM=$lt_NM
21565
21566 # Whether we need soft or hard links.
21567 LN_S=$lt_LN_S
21568
21569 # What is the maximum length of a command?
21570 max_cmd_len=$max_cmd_len
21571
21572 # Object file suffix (normally "o").
21573 objext=$ac_objext
21574
21575 # Executable file suffix (normally "").
21576 exeext=$exeext
21577
21578 # whether the shell understands "unset".
21579 lt_unset=$lt_unset
21580
21581 # turn spaces into newlines.
21582 SP2NL=$lt_lt_SP2NL
21583
21584 # turn newlines into spaces.
21585 NL2SP=$lt_lt_NL2SP
21586
21587 # convert \$build file names to \$host format.
21588 to_host_file_cmd=$lt_cv_to_host_file_cmd
21589
21590 # convert \$build files to toolchain format.
21591 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21592
21593 # A file(cmd) program that detects file types.
21594 FILECMD=$lt_FILECMD
21595
21596 # An object symbol dumper.
21597 OBJDUMP=$lt_OBJDUMP
21598
21599 # Method to check whether dependent libraries are shared objects.
21600 deplibs_check_method=$lt_deplibs_check_method
21601
21602 # Command to use when deplibs_check_method = "file_magic".
21603 file_magic_cmd=$lt_file_magic_cmd
21604
21605 # How to find potential files when deplibs_check_method = "file_magic".
21606 file_magic_glob=$lt_file_magic_glob
21607
21608 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21609 want_nocaseglob=$lt_want_nocaseglob
21610
21611 # DLL creation program.
21612 DLLTOOL=$lt_DLLTOOL
21613
21614 # Command to associate shared and link libraries.
21615 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21616
21617 # The archiver.
21618 AR=$lt_AR
21619
21620 # Flags to create an archive (by configure).
21621 lt_ar_flags=$lt_ar_flags
21622
21623 # Flags to create an archive.
21624 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21625
21626 # How to feed a file listing to the archiver.
21627 archiver_list_spec=$lt_archiver_list_spec
21628
21629 # A symbol stripping program.
21630 STRIP=$lt_STRIP
21631
21632 # Commands used to install an old-style archive.
21633 RANLIB=$lt_RANLIB
21634 old_postinstall_cmds=$lt_old_postinstall_cmds
21635 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21636
21637 # Whether to use a lock for old archive extraction.
21638 lock_old_archive_extraction=$lock_old_archive_extraction
21639
21640 # A C compiler.
21641 LTCC=$lt_CC
21642
21643 # LTCC compiler flags.
21644 LTCFLAGS=$lt_CFLAGS
21645
21646 # Take the output of nm and produce a listing of raw symbols and C names.
21647 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21648
21649 # Transform the output of nm in a proper C declaration.
21650 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21651
21652 # Transform the output of nm into a list of symbols to manually relocate.
21653 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21654
21655 # Transform the output of nm in a C name address pair.
21656 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21657
21658 # Transform the output of nm in a C name address pair when lib prefix is needed.
21659 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21660
21661 # The name lister interface.
21662 nm_interface=$lt_lt_cv_nm_interface
21663
21664 # Specify filename containing input files for \$NM.
21665 nm_file_list_spec=$lt_nm_file_list_spec
21666
21667 # The root where to search for dependent libraries,and where our libraries should be installed.
21668 lt_sysroot=$lt_sysroot
21669
21670 # Command to truncate a binary pipe.
21671 lt_truncate_bin=$lt_lt_cv_truncate_bin
21672
21673 # The name of the directory that contains temporary libtool files.
21674 objdir=$objdir
21675
21676 # Used to examine libraries when file_magic_cmd begins with "file".
21677 MAGIC_CMD=$MAGIC_CMD
21678
21679 # Must we lock files when doing compilation?
21680 need_locks=$lt_need_locks
21681
21682 # Manifest tool.
21683 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21684
21685 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21686 DSYMUTIL=$lt_DSYMUTIL
21687
21688 # Tool to change global to local symbols on Mac OS X.
21689 NMEDIT=$lt_NMEDIT
21690
21691 # Tool to manipulate fat objects and archives on Mac OS X.
21692 LIPO=$lt_LIPO
21693
21694 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21695 OTOOL=$lt_OTOOL
21696
21697 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21698 OTOOL64=$lt_OTOOL64
21699
21700 # Old archive suffix (normally "a").
21701 libext=$libext
21702
21703 # Shared library suffix (normally ".so").
21704 shrext_cmds=$lt_shrext_cmds
21705
21706 # The commands to extract the exported symbol list from a shared archive.
21707 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21708
21709 # Variables whose values should be saved in libtool wrapper scripts and
21710 # restored at link time.
21711 variables_saved_for_relink=$lt_variables_saved_for_relink
21712
21713 # Do we need the "lib" prefix for modules?
21714 need_lib_prefix=$need_lib_prefix
21715
21716 # Do we need a version for libraries?
21717 need_version=$need_version
21718
21719 # Library versioning type.
21720 version_type=$version_type
21721
21722 # Shared library runtime path variable.
21723 runpath_var=$runpath_var
21724
21725 # Shared library path variable.
21726 shlibpath_var=$shlibpath_var
21727
21728 # Is shlibpath searched before the hard-coded library search path?
21729 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21730
21731 # Format of library name prefix.
21732 libname_spec=$lt_libname_spec
21733
21734 # List of archive names. First name is the real one, the rest are links.
21735 # The last name is the one that the linker finds with -lNAME
21736 library_names_spec=$lt_library_names_spec
21737
21738 # The coded name of the library, if different from the real name.
21739 soname_spec=$lt_soname_spec
21740
21741 # Permission mode override for installation of shared libraries.
21742 install_override_mode=$lt_install_override_mode
21743
21744 # Command to use after installation of a shared archive.
21745 postinstall_cmds=$lt_postinstall_cmds
21746
21747 # Command to use after uninstallation of a shared archive.
21748 postuninstall_cmds=$lt_postuninstall_cmds
21749
21750 # Commands used to finish a libtool library installation in a directory.
21751 finish_cmds=$lt_finish_cmds
21752
21753 # As "finish_cmds", except a single script fragment to be evaled but
21754 # not shown.
21755 finish_eval=$lt_finish_eval
21756
21757 # Whether we should hardcode library paths into libraries.
21758 hardcode_into_libs=$hardcode_into_libs
21759
21760 # Compile-time system search path for libraries.
21761 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21762
21763 # Detected run-time system search path for libraries.
21764 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21765
21766 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21767 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21768
21769 # Whether dlopen is supported.
21770 dlopen_support=$enable_dlopen
21771
21772 # Whether dlopen of programs is supported.
21773 dlopen_self=$enable_dlopen_self
21774
21775 # Whether dlopen of statically linked programs is supported.
21776 dlopen_self_static=$enable_dlopen_self_static
21777
21778 # Commands to strip libraries.
21779 old_striplib=$lt_old_striplib
21780 striplib=$lt_striplib
21781
21782
21783 # The linker used to build libraries.
21784 LD=$lt_LD
21785
21786 # How to create reloadable object files.
21787 reload_flag=$lt_reload_flag
21788 reload_cmds=$lt_reload_cmds
21789
21790 # Commands used to build an old-style archive.
21791 old_archive_cmds=$lt_old_archive_cmds
21792
21793 # A language specific compiler.
21794 CC=$lt_compiler
21795
21796 # Is the compiler the GNU compiler?
21797 with_gcc=$GCC
21798
21799 # Compiler flag to turn off builtin functions.
21800 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21801
21802 # Additional compiler flags for building library objects.
21803 pic_flag=$lt_lt_prog_compiler_pic
21804
21805 # How to pass a linker flag through the compiler.
21806 wl=$lt_lt_prog_compiler_wl
21807
21808 # Compiler flag to prevent dynamic linking.
21809 link_static_flag=$lt_lt_prog_compiler_static
21810
21811 # Does compiler simultaneously support -c and -o options?
21812 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21813
21814 # Whether or not to add -lc for building shared libraries.
21815 build_libtool_need_lc=$archive_cmds_need_lc
21816
21817 # Whether or not to disallow shared libs when runtime libs are static.
21818 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21819
21820 # Compiler flag to allow reflexive dlopens.
21821 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21822
21823 # Compiler flag to generate shared objects directly from archives.
21824 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21825
21826 # Whether the compiler copes with passing no objects directly.
21827 compiler_needs_object=$lt_compiler_needs_object
21828
21829 # Create an old-style archive from a shared archive.
21830 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21831
21832 # Create a temporary old-style archive to link instead of a shared archive.
21833 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21834
21835 # Commands used to build a shared archive.
21836 archive_cmds=$lt_archive_cmds
21837 archive_expsym_cmds=$lt_archive_expsym_cmds
21838
21839 # Commands used to build a loadable module if different from building
21840 # a shared archive.
21841 module_cmds=$lt_module_cmds
21842 module_expsym_cmds=$lt_module_expsym_cmds
21843
21844 # Whether we are building with GNU ld or not.
21845 with_gnu_ld=$lt_with_gnu_ld
21846
21847 # Flag that allows shared libraries with undefined symbols to be built.
21848 allow_undefined_flag=$lt_allow_undefined_flag
21849
21850 # Flag that enforces no undefined symbols.
21851 no_undefined_flag=$lt_no_undefined_flag
21852
21853 # Flag to hardcode \$libdir into a binary during linking.
21854 # This must work even if \$libdir does not exist
21855 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21856
21857 # Whether we need a single "-rpath" flag with a separated argument.
21858 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21859
21860 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21861 # DIR into the resulting binary.
21862 hardcode_direct=$hardcode_direct
21863
21864 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21865 # DIR into the resulting binary and the resulting library dependency is
21866 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21867 # library is relocated.
21868 hardcode_direct_absolute=$hardcode_direct_absolute
21869
21870 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21871 # into the resulting binary.
21872 hardcode_minus_L=$hardcode_minus_L
21873
21874 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21875 # into the resulting binary.
21876 hardcode_shlibpath_var=$hardcode_shlibpath_var
21877
21878 # Set to "yes" if building a shared library automatically hardcodes DIR
21879 # into the library and all subsequent libraries and executables linked
21880 # against it.
21881 hardcode_automatic=$hardcode_automatic
21882
21883 # Set to yes if linker adds runtime paths of dependent libraries
21884 # to runtime path list.
21885 inherit_rpath=$inherit_rpath
21886
21887 # Whether libtool must link a program against all its dependency libraries.
21888 link_all_deplibs=$link_all_deplibs
21889
21890 # Set to "yes" if exported symbols are required.
21891 always_export_symbols=$always_export_symbols
21892
21893 # The commands to list exported symbols.
21894 export_symbols_cmds=$lt_export_symbols_cmds
21895
21896 # Symbols that should not be listed in the preloaded symbols.
21897 exclude_expsyms=$lt_exclude_expsyms
21898
21899 # Symbols that must always be exported.
21900 include_expsyms=$lt_include_expsyms
21901
21902 # Commands necessary for linking programs (against libraries) with templates.
21903 prelink_cmds=$lt_prelink_cmds
21904
21905 # Commands necessary for finishing linking programs.
21906 postlink_cmds=$lt_postlink_cmds
21907
21908 # Specify filename containing input files.
21909 file_list_spec=$lt_file_list_spec
21910
21911 # How to hardcode a shared library path into an executable.
21912 hardcode_action=$hardcode_action
21913
21914 # ### END LIBTOOL CONFIG
21915
21916 _LT_EOF
21917
21918 cat <<'_LT_EOF' >> "$cfgfile"
21919
21920 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21921
21922 # func_munge_path_list VARIABLE PATH
21923 # -----------------------------------
21924 # VARIABLE is name of variable containing _space_ separated list of
21925 # directories to be munged by the contents of PATH, which is string
21926 # having a format:
21927 # "DIR[:DIR]:"
21928 # string "DIR[ DIR]" will be prepended to VARIABLE
21929 # ":DIR[:DIR]"
21930 # string "DIR[ DIR]" will be appended to VARIABLE
21931 # "DIRP[:DIRP]::[DIRA:]DIRA"
21932 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21933 # "DIRA[ DIRA]" will be appended to VARIABLE
21934 # "DIR[:DIR]"
21935 # VARIABLE will be replaced by "DIR[ DIR]"
21936 func_munge_path_list ()
21937 {
21938 case x$2 in
21939 x)
21940 ;;
21941 *:)
21942 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21943 ;;
21944 x:*)
21945 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21946 ;;
21947 *::*)
21948 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21949 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21950 ;;
21951 *)
21952 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21953 ;;
21954 esac
21955 }
21956
21957
21958 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21959 func_cc_basename ()
21960 {
21961 for cc_temp in $*""; do
21962 case $cc_temp in
21963 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21964 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21965 \-*) ;;
21966 *) break;;
21967 esac
21968 done
21969 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21970 }
21971
21972
21973 # ### END FUNCTIONS SHARED WITH CONFIGURE
21974
21975 _LT_EOF
21976
21977 case $host_os in
21978 aix3*)
21979 cat <<\_LT_EOF >> "$cfgfile"
21980 # AIX sometimes has problems with the GCC collect2 program. For some
21981 # reason, if we set the COLLECT_NAMES environment variable, the problems
21982 # vanish in a puff of smoke.
21983 if test set != "${COLLECT_NAMES+set}"; then
21984 COLLECT_NAMES=
21985 export COLLECT_NAMES
21986 fi
21987 _LT_EOF
21988 ;;
21989 esac
21990
21991
21992
21993 ltmain=$ac_aux_dir/ltmain.sh
21994
21995
21996 # We use sed instead of cat because bash on DJGPP gets confused if
21997 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21998 # text mode, it properly converts lines to CR/LF. This bash problem
21999 # is reportedly fixed, but why not run on old versions too?
22000 $SED '$q' "$ltmain" >> "$cfgfile" \
22001 || (rm -f "$cfgfile"; exit 1)
22002
22003 mv -f "$cfgfile" "$ofile" ||
22004 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22005 chmod +x "$ofile"
22006
22007 ;;
22008
22009 esac
22010 done # for ac_tag
22011
22012
22013 as_fn_exit 0
22014 _ACEOF
22015 ac_clean_files=$ac_clean_files_save
22016
22017 test $ac_write_fail = 0 ||
22018 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22019
22020
22021 # configure is writing to config.log, and then calls config.status.
22022 # config.status does its own redirection, appending to config.log.
22023 # Unfortunately, on DOS this fails, as config.log is still kept open
22024 # by configure, so config.status won't be able to write to it; its
22025 # output is simply discarded. So we exec the FD to /dev/null,
22026 # effectively closing config.log, so it can be properly (re)opened and
22027 # appended to by config.status. When coming back to configure, we
22028 # need to make the FD available again.
22029 if test "$no_create" != yes; then
22030 ac_cs_success=:
22031 ac_config_status_args=
22032 test "$silent" = yes &&
22033 ac_config_status_args="$ac_config_status_args --quiet"
22034 exec 5>/dev/null
22035 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22036 exec 5>>config.log
22037 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22038 # would make configure fail if this is the last instruction.
22039 $ac_cs_success || as_fn_exit 1
22040 fi
22041 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22043 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22044 fi
22045
22046