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 0.4.1.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxcb-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-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'
624 PACKAGE_TARNAME='xcb-util'
625 PACKAGE_VERSION='0.4.1'
626 PACKAGE_STRING='xcb-util 0.4.1'
627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxcb-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_func_c_list=
664 ac_subst_vars='am__EXEEXT_FALSE
665 am__EXEEXT_TRUE
666 LTLIBOBJS
667 LIBOBJS
668 HAVE_DOXYGEN_FALSE
669 HAVE_DOXYGEN_TRUE
670 HAVE_DOT_FALSE
671 HAVE_DOT_TRUE
672 HAVE_DOT
673 DOT
674 DOXYGEN
675 ENABLE_DEVEL_DOCS_FALSE
676 ENABLE_DEVEL_DOCS_TRUE
677 MAN_SUBSTS
678 XORG_MAN_PAGE
679 ADMIN_MAN_DIR
680 DRIVER_MAN_DIR
681 MISC_MAN_DIR
682 FILE_MAN_DIR
683 LIB_MAN_DIR
684 APP_MAN_DIR
685 ADMIN_MAN_SUFFIX
686 DRIVER_MAN_SUFFIX
687 MISC_MAN_SUFFIX
688 FILE_MAN_SUFFIX
689 LIB_MAN_SUFFIX
690 APP_MAN_SUFFIX
691 INSTALL_CMD
692 CHANGELOG_CMD
693 STRICT_CFLAGS
694 CWARNFLAGS
695 BASE_CFLAGS
696 XCB_LIBS
697 XCB_CFLAGS
698 PKG_CONFIG_LIBDIR
699 PKG_CONFIG_PATH
700 PKG_CONFIG
701 pkgconfigdir
702 xcbincludedir
703 LT_SYS_LIBRARY_PATH
704 OTOOL64
705 OTOOL
706 LIPO
707 NMEDIT
708 DSYMUTIL
709 MANIFEST_TOOL
710 RANLIB
711 ac_ct_AR
712 AR
713 DLLTOOL
714 OBJDUMP
715 FILECMD
716 LN_S
717 NM
718 ac_ct_DUMPBIN
719 DUMPBIN
720 LD
721 FGREP
722 EGREP
723 GREP
724 SED
725 am__fastdepCC_FALSE
726 am__fastdepCC_TRUE
727 CCDEPMODE
728 am__nodep
729 AMDEPBACKSLASH
730 AMDEP_FALSE
731 AMDEP_TRUE
732 am__include
733 DEPDIR
734 OBJEXT
735 EXEEXT
736 ac_ct_CC
737 CPPFLAGS
738 LDFLAGS
739 CFLAGS
740 CC
741 host_os
742 host_vendor
743 host_cpu
744 host
745 build_os
746 build_vendor
747 build_cpu
748 build
749 LIBTOOL
750 AM_BACKSLASH
751 AM_DEFAULT_VERBOSITY
752 AM_DEFAULT_V
753 AM_V
754 CSCOPE
755 ETAGS
756 CTAGS
757 am__untar
758 am__tar
759 AMTAR
760 am__leading_dot
761 SET_MAKE
762 AWK
763 mkdir_p
764 MKDIR_P
765 INSTALL_STRIP_PROGRAM
766 STRIP
767 install_sh
768 MAKEINFO
769 AUTOHEADER
770 AUTOMAKE
771 AUTOCONF
772 ACLOCAL
773 VERSION
774 PACKAGE
775 CYGPATH_W
776 am__isrc
777 INSTALL_DATA
778 INSTALL_SCRIPT
779 INSTALL_PROGRAM
780 target_alias
781 host_alias
782 build_alias
783 LIBS
784 ECHO_T
785 ECHO_N
786 ECHO_C
787 DEFS
788 mandir
789 localedir
790 libdir
791 psdir
792 pdfdir
793 dvidir
794 htmldir
795 infodir
796 docdir
797 oldincludedir
798 includedir
799 runstatedir
800 localstatedir
801 sharedstatedir
802 sysconfdir
803 datadir
804 datarootdir
805 libexecdir
806 sbindir
807 bindir
808 program_transform_name
809 prefix
810 exec_prefix
811 PACKAGE_URL
812 PACKAGE_BUGREPORT
813 PACKAGE_STRING
814 PACKAGE_VERSION
815 PACKAGE_TARNAME
816 PACKAGE_NAME
817 PATH_SEPARATOR
818 SHELL
819 am__quote'
820 ac_subst_files=''
821 ac_user_opts='
822 enable_option_checking
823 enable_silent_rules
824 enable_shared
825 enable_static
826 with_pic
827 enable_fast_install
828 with_aix_soname
829 enable_dependency_tracking
830 with_gnu_ld
831 with_sysroot
832 enable_libtool_lock
833 enable_selective_werror
834 enable_strict_compilation
835 enable_devel_docs
836 with_doxygen
837 '
838 ac_precious_vars='build_alias
839 host_alias
840 target_alias
841 CC
842 CFLAGS
843 LDFLAGS
844 LIBS
845 CPPFLAGS
846 LT_SYS_LIBRARY_PATH
847 PKG_CONFIG
848 PKG_CONFIG_PATH
849 PKG_CONFIG_LIBDIR
850 XCB_CFLAGS
851 XCB_LIBS
852 DOXYGEN
853 DOT'
854
855
856 # Initialize some variables set by options.
857 ac_init_help=
858 ac_init_version=false
859 ac_unrecognized_opts=
860 ac_unrecognized_sep=
861 # The variables have the same names as the options, with
862 # dashes changed to underlines.
863 cache_file=/dev/null
864 exec_prefix=NONE
865 no_create=
866 no_recursion=
867 prefix=NONE
868 program_prefix=NONE
869 program_suffix=NONE
870 program_transform_name=s,x,x,
871 silent=
872 site=
873 srcdir=
874 verbose=
875 x_includes=NONE
876 x_libraries=NONE
877
878 # Installation directory options.
879 # These are left unexpanded so users can "make install exec_prefix=/foo"
880 # and all the variables that are supposed to be based on exec_prefix
881 # by default will actually change.
882 # Use braces instead of parens because sh, perl, etc. also accept them.
883 # (The list follows the same order as the GNU Coding Standards.)
884 bindir='${exec_prefix}/bin'
885 sbindir='${exec_prefix}/sbin'
886 libexecdir='${exec_prefix}/libexec'
887 datarootdir='${prefix}/share'
888 datadir='${datarootdir}'
889 sysconfdir='${prefix}/etc'
890 sharedstatedir='${prefix}/com'
891 localstatedir='${prefix}/var'
892 runstatedir='${localstatedir}/run'
893 includedir='${prefix}/include'
894 oldincludedir='/usr/include'
895 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
896 infodir='${datarootdir}/info'
897 htmldir='${docdir}'
898 dvidir='${docdir}'
899 pdfdir='${docdir}'
900 psdir='${docdir}'
901 libdir='${exec_prefix}/lib'
902 localedir='${datarootdir}/locale'
903 mandir='${datarootdir}/man'
904
905 ac_prev=
906 ac_dashdash=
907 for ac_option
908 do
909 # If the previous option needs an argument, assign it.
910 if test -n "$ac_prev"; then
911 eval $ac_prev=\$ac_option
912 ac_prev=
913 continue
914 fi
915
916 case $ac_option in
917 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
918 *=) ac_optarg= ;;
919 *) ac_optarg=yes ;;
920 esac
921
922 case $ac_dashdash$ac_option in
923 --)
924 ac_dashdash=yes ;;
925
926 -bindir | --bindir | --bindi | --bind | --bin | --bi)
927 ac_prev=bindir ;;
928 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
929 bindir=$ac_optarg ;;
930
931 -build | --build | --buil | --bui | --bu)
932 ac_prev=build_alias ;;
933 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
934 build_alias=$ac_optarg ;;
935
936 -cache-file | --cache-file | --cache-fil | --cache-fi \
937 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
938 ac_prev=cache_file ;;
939 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
940 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
941 cache_file=$ac_optarg ;;
942
943 --config-cache | -C)
944 cache_file=config.cache ;;
945
946 -datadir | --datadir | --datadi | --datad)
947 ac_prev=datadir ;;
948 -datadir=* | --datadir=* | --datadi=* | --datad=*)
949 datadir=$ac_optarg ;;
950
951 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
952 | --dataroo | --dataro | --datar)
953 ac_prev=datarootdir ;;
954 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
955 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
956 datarootdir=$ac_optarg ;;
957
958 -disable-* | --disable-*)
959 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962 as_fn_error $? "invalid feature name: \`$ac_useropt'"
963 ac_useropt_orig=$ac_useropt
964 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
966 *"
967 "enable_$ac_useropt"
968 "*) ;;
969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
970 ac_unrecognized_sep=', ';;
971 esac
972 eval enable_$ac_useropt=no ;;
973
974 -docdir | --docdir | --docdi | --doc | --do)
975 ac_prev=docdir ;;
976 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
977 docdir=$ac_optarg ;;
978
979 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
980 ac_prev=dvidir ;;
981 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
982 dvidir=$ac_optarg ;;
983
984 -enable-* | --enable-*)
985 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
986 # Reject names that are not valid shell variable names.
987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
988 as_fn_error $? "invalid feature name: \`$ac_useropt'"
989 ac_useropt_orig=$ac_useropt
990 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
992 *"
993 "enable_$ac_useropt"
994 "*) ;;
995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
996 ac_unrecognized_sep=', ';;
997 esac
998 eval enable_$ac_useropt=\$ac_optarg ;;
999
1000 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1001 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1002 | --exec | --exe | --ex)
1003 ac_prev=exec_prefix ;;
1004 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1005 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1006 | --exec=* | --exe=* | --ex=*)
1007 exec_prefix=$ac_optarg ;;
1008
1009 -gas | --gas | --ga | --g)
1010 # Obsolete; use --with-gas.
1011 with_gas=yes ;;
1012
1013 -help | --help | --hel | --he | -h)
1014 ac_init_help=long ;;
1015 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1016 ac_init_help=recursive ;;
1017 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1018 ac_init_help=short ;;
1019
1020 -host | --host | --hos | --ho)
1021 ac_prev=host_alias ;;
1022 -host=* | --host=* | --hos=* | --ho=*)
1023 host_alias=$ac_optarg ;;
1024
1025 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1026 ac_prev=htmldir ;;
1027 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1028 | --ht=*)
1029 htmldir=$ac_optarg ;;
1030
1031 -includedir | --includedir | --includedi | --included | --include \
1032 | --includ | --inclu | --incl | --inc)
1033 ac_prev=includedir ;;
1034 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1035 | --includ=* | --inclu=* | --incl=* | --inc=*)
1036 includedir=$ac_optarg ;;
1037
1038 -infodir | --infodir | --infodi | --infod | --info | --inf)
1039 ac_prev=infodir ;;
1040 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1041 infodir=$ac_optarg ;;
1042
1043 -libdir | --libdir | --libdi | --libd)
1044 ac_prev=libdir ;;
1045 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1046 libdir=$ac_optarg ;;
1047
1048 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1049 | --libexe | --libex | --libe)
1050 ac_prev=libexecdir ;;
1051 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1052 | --libexe=* | --libex=* | --libe=*)
1053 libexecdir=$ac_optarg ;;
1054
1055 -localedir | --localedir | --localedi | --localed | --locale)
1056 ac_prev=localedir ;;
1057 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1058 localedir=$ac_optarg ;;
1059
1060 -localstatedir | --localstatedir | --localstatedi | --localstated \
1061 | --localstate | --localstat | --localsta | --localst | --locals)
1062 ac_prev=localstatedir ;;
1063 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1064 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1065 localstatedir=$ac_optarg ;;
1066
1067 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1068 ac_prev=mandir ;;
1069 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1070 mandir=$ac_optarg ;;
1071
1072 -nfp | --nfp | --nf)
1073 # Obsolete; use --without-fp.
1074 with_fp=no ;;
1075
1076 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1077 | --no-cr | --no-c | -n)
1078 no_create=yes ;;
1079
1080 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1081 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1082 no_recursion=yes ;;
1083
1084 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1085 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1086 | --oldin | --oldi | --old | --ol | --o)
1087 ac_prev=oldincludedir ;;
1088 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1089 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1090 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1091 oldincludedir=$ac_optarg ;;
1092
1093 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1094 ac_prev=prefix ;;
1095 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1096 prefix=$ac_optarg ;;
1097
1098 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1099 | --program-pre | --program-pr | --program-p)
1100 ac_prev=program_prefix ;;
1101 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1102 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1103 program_prefix=$ac_optarg ;;
1104
1105 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1106 | --program-suf | --program-su | --program-s)
1107 ac_prev=program_suffix ;;
1108 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1109 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1110 program_suffix=$ac_optarg ;;
1111
1112 -program-transform-name | --program-transform-name \
1113 | --program-transform-nam | --program-transform-na \
1114 | --program-transform-n | --program-transform- \
1115 | --program-transform | --program-transfor \
1116 | --program-transfo | --program-transf \
1117 | --program-trans | --program-tran \
1118 | --progr-tra | --program-tr | --program-t)
1119 ac_prev=program_transform_name ;;
1120 -program-transform-name=* | --program-transform-name=* \
1121 | --program-transform-nam=* | --program-transform-na=* \
1122 | --program-transform-n=* | --program-transform-=* \
1123 | --program-transform=* | --program-transfor=* \
1124 | --program-transfo=* | --program-transf=* \
1125 | --program-trans=* | --program-tran=* \
1126 | --progr-tra=* | --program-tr=* | --program-t=*)
1127 program_transform_name=$ac_optarg ;;
1128
1129 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1130 ac_prev=pdfdir ;;
1131 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1132 pdfdir=$ac_optarg ;;
1133
1134 -psdir | --psdir | --psdi | --psd | --ps)
1135 ac_prev=psdir ;;
1136 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1137 psdir=$ac_optarg ;;
1138
1139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1140 | -silent | --silent | --silen | --sile | --sil)
1141 silent=yes ;;
1142
1143 -runstatedir | --runstatedir | --runstatedi | --runstated \
1144 | --runstate | --runstat | --runsta | --runst | --runs \
1145 | --run | --ru | --r)
1146 ac_prev=runstatedir ;;
1147 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1148 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1149 | --run=* | --ru=* | --r=*)
1150 runstatedir=$ac_optarg ;;
1151
1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153 ac_prev=sbindir ;;
1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155 | --sbi=* | --sb=*)
1156 sbindir=$ac_optarg ;;
1157
1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160 | --sharedst | --shareds | --shared | --share | --shar \
1161 | --sha | --sh)
1162 ac_prev=sharedstatedir ;;
1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166 | --sha=* | --sh=*)
1167 sharedstatedir=$ac_optarg ;;
1168
1169 -site | --site | --sit)
1170 ac_prev=site ;;
1171 -site=* | --site=* | --sit=*)
1172 site=$ac_optarg ;;
1173
1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175 ac_prev=srcdir ;;
1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177 srcdir=$ac_optarg ;;
1178
1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180 | --syscon | --sysco | --sysc | --sys | --sy)
1181 ac_prev=sysconfdir ;;
1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184 sysconfdir=$ac_optarg ;;
1185
1186 -target | --target | --targe | --targ | --tar | --ta | --t)
1187 ac_prev=target_alias ;;
1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189 target_alias=$ac_optarg ;;
1190
1191 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192 verbose=yes ;;
1193
1194 -version | --version | --versio | --versi | --vers | -V)
1195 ac_init_version=: ;;
1196
1197 -with-* | --with-*)
1198 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 as_fn_error $? "invalid package name: \`$ac_useropt'"
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1205 *"
1206 "with_$ac_useropt"
1207 "*) ;;
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1210 esac
1211 eval with_$ac_useropt=\$ac_optarg ;;
1212
1213 -without-* | --without-*)
1214 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217 as_fn_error $? "invalid package name: \`$ac_useropt'"
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1221 *"
1222 "with_$ac_useropt"
1223 "*) ;;
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1226 esac
1227 eval with_$ac_useropt=no ;;
1228
1229 --x)
1230 # Obsolete; use --with-x.
1231 with_x=yes ;;
1232
1233 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234 | --x-incl | --x-inc | --x-in | --x-i)
1235 ac_prev=x_includes ;;
1236 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238 x_includes=$ac_optarg ;;
1239
1240 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242 ac_prev=x_libraries ;;
1243 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245 x_libraries=$ac_optarg ;;
1246
1247 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1248 Try \`$0 --help' for more information"
1249 ;;
1250
1251 *=*)
1252 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1253 # Reject names that are not valid shell variable names.
1254 case $ac_envvar in #(
1255 '' | [0-9]* | *[!_$as_cr_alnum]* )
1256 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1257 esac
1258 eval $ac_envvar=\$ac_optarg
1259 export $ac_envvar ;;
1260
1261 *)
1262 # FIXME: should be removed in autoconf 3.0.
1263 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1266 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1267 ;;
1268
1269 esac
1270 done
1271
1272 if test -n "$ac_prev"; then
1273 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1274 as_fn_error $? "missing argument to $ac_option"
1275 fi
1276
1277 if test -n "$ac_unrecognized_opts"; then
1278 case $enable_option_checking in
1279 no) ;;
1280 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1281 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1282 esac
1283 fi
1284
1285 # Check all directory arguments for consistency.
1286 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287 datadir sysconfdir sharedstatedir localstatedir includedir \
1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289 libdir localedir mandir runstatedir
1290 do
1291 eval ac_val=\$$ac_var
1292 # Remove trailing slashes.
1293 case $ac_val in
1294 */ )
1295 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1296 eval $ac_var=\$ac_val;;
1297 esac
1298 # Be sure to have absolute directory names.
1299 case $ac_val in
1300 [\\/$]* | ?:[\\/]* ) continue;;
1301 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1302 esac
1303 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1304 done
1305
1306 # There might be people who depend on the old broken behavior: `$host'
1307 # used to hold the argument of --host etc.
1308 # FIXME: To remove some day.
1309 build=$build_alias
1310 host=$host_alias
1311 target=$target_alias
1312
1313 # FIXME: To remove some day.
1314 if test "x$host_alias" != x; then
1315 if test "x$build_alias" = x; then
1316 cross_compiling=maybe
1317 elif test "x$build_alias" != "x$host_alias"; then
1318 cross_compiling=yes
1319 fi
1320 fi
1321
1322 ac_tool_prefix=
1323 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1324
1325 test "$silent" = yes && exec 6>/dev/null
1326
1327
1328 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1329 ac_ls_di=`ls -di .` &&
1330 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1331 as_fn_error $? "working directory cannot be determined"
1332 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1333 as_fn_error $? "pwd does not report name of working directory"
1334
1335
1336 # Find the source files, if location was not specified.
1337 if test -z "$srcdir"; then
1338 ac_srcdir_defaulted=yes
1339 # Try the directory containing this script, then the parent directory.
1340 ac_confdir=`$as_dirname -- "$as_myself" ||
1341 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1342 X"$as_myself" : 'X\(//\)[^/]' \| \
1343 X"$as_myself" : 'X\(//\)$' \| \
1344 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1345 printf "%s\n" X"$as_myself" |
1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\/\)[^/].*/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\/\)$/{
1355 s//\1/
1356 q
1357 }
1358 /^X\(\/\).*/{
1359 s//\1/
1360 q
1361 }
1362 s/.*/./; q'`
1363 srcdir=$ac_confdir
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 srcdir=..
1366 fi
1367 else
1368 ac_srcdir_defaulted=no
1369 fi
1370 if test ! -r "$srcdir/$ac_unique_file"; then
1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1372 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1373 fi
1374 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1375 ac_abs_confdir=`(
1376 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1377 pwd)`
1378 # When building in place, set srcdir=.
1379 if test "$ac_abs_confdir" = "$ac_pwd"; then
1380 srcdir=.
1381 fi
1382 # Remove unnecessary trailing slashes from srcdir.
1383 # Double slashes in file names in object file debugging info
1384 # mess up M-x gdb in Emacs.
1385 case $srcdir in
1386 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387 esac
1388 for ac_var in $ac_precious_vars; do
1389 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_env_${ac_var}_value=\$${ac_var}
1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393 done
1394
1395 #
1396 # Report the --help message.
1397 #
1398 if test "$ac_init_help" = "long"; then
1399 # Omit some internal or obsolete options to make the list less imposing.
1400 # This message is too long to be a string in the A/UX 3.1 sh.
1401 cat <<_ACEOF
1402 \`configure' configures xcb-util 0.4.1 to adapt to many kinds of systems.
1403
1404 Usage: $0 [OPTION]... [VAR=VALUE]...
1405
1406 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407 VAR=VALUE. See below for descriptions of some of the useful variables.
1408
1409 Defaults for the options are specified in brackets.
1410
1411 Configuration:
1412 -h, --help display this help and exit
1413 --help=short display options specific to this package
1414 --help=recursive display the short help of all the included packages
1415 -V, --version display version information and exit
1416 -q, --quiet, --silent do not print \`checking ...' messages
1417 --cache-file=FILE cache test results in FILE [disabled]
1418 -C, --config-cache alias for \`--cache-file=config.cache'
1419 -n, --no-create do not create output files
1420 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1421
1422 Installation directories:
1423 --prefix=PREFIX install architecture-independent files in PREFIX
1424 [$ac_default_prefix]
1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1426 [PREFIX]
1427
1428 By default, \`make install' will install all the files in
1429 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1430 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431 for instance \`--prefix=\$HOME'.
1432
1433 For better control, use the options below.
1434
1435 Fine tuning of the installation directories:
1436 --bindir=DIR user executables [EPREFIX/bin]
1437 --sbindir=DIR system admin executables [EPREFIX/sbin]
1438 --libexecdir=DIR program executables [EPREFIX/libexec]
1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1442 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1443 --libdir=DIR object code libraries [EPREFIX/lib]
1444 --includedir=DIR C header files [PREFIX/include]
1445 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1446 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1447 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1448 --infodir=DIR info documentation [DATAROOTDIR/info]
1449 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1450 --mandir=DIR man documentation [DATAROOTDIR/man]
1451 --docdir=DIR documentation root [DATAROOTDIR/doc/xcb-util]
1452 --htmldir=DIR html documentation [DOCDIR]
1453 --dvidir=DIR dvi documentation [DOCDIR]
1454 --pdfdir=DIR pdf documentation [DOCDIR]
1455 --psdir=DIR ps documentation [DOCDIR]
1456 _ACEOF
1457
1458 cat <<\_ACEOF
1459
1460 Program names:
1461 --program-prefix=PREFIX prepend PREFIX to installed program names
1462 --program-suffix=SUFFIX append SUFFIX to installed program names
1463 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1464
1465 System types:
1466 --build=BUILD configure for building on BUILD [guessed]
1467 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1468 _ACEOF
1469 fi
1470
1471 if test -n "$ac_init_help"; then
1472 case $ac_init_help in
1473 short | recursive ) echo "Configuration of xcb-util 0.4.1:";;
1474 esac
1475 cat <<\_ACEOF
1476
1477 Optional Features:
1478 --disable-option-checking ignore unrecognized --enable/--with options
1479 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1480 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1481 --enable-silent-rules less verbose build output (undo: "make V=1")
1482 --disable-silent-rules verbose build output (undo: "make V=0")
1483 --enable-shared[=PKGS] build shared libraries [default=yes]
1484 --enable-static[=PKGS] build static libraries [default=yes]
1485 --enable-fast-install[=PKGS]
1486 optimize for fast installation [default=yes]
1487 --enable-dependency-tracking
1488 do not reject slow dependency extractors
1489 --disable-dependency-tracking
1490 speeds up one-time build
1491 --disable-libtool-lock avoid locking (might break parallel builds)
1492 --disable-selective-werror
1493 Turn off selective compiler errors. (default:
1494 enabled)
1495 --enable-strict-compilation
1496 Enable all warnings from compiler and make them
1497 errors (default: disabled)
1498 --enable-devel-docs Enable building the developer documentation
1499 (default: yes)
1500
1501 Optional Packages:
1502 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1503 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1504 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1505 both]
1506 --with-aix-soname=aix|svr4|both
1507 shared library versioning (aka "SONAME") variant to
1508 provide on AIX, [default=aix].
1509 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1510 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1511 compiler's sysroot if not specified).
1512 --with-doxygen Use doxygen to regenerate documentation (default:
1513 auto)
1514
1515 Some influential environment variables:
1516 CC C compiler command
1517 CFLAGS C compiler flags
1518 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1519 nonstandard directory <lib dir>
1520 LIBS libraries to pass to the linker, e.g. -l<library>
1521 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1522 you have headers in a nonstandard directory <include dir>
1523 LT_SYS_LIBRARY_PATH
1524 User-defined run-time library search path.
1525 PKG_CONFIG path to pkg-config utility
1526 PKG_CONFIG_PATH
1527 directories to add to pkg-config's search path
1528 PKG_CONFIG_LIBDIR
1529 path overriding pkg-config's built-in search path
1530 XCB_CFLAGS C compiler flags for XCB, overriding pkg-config
1531 XCB_LIBS linker flags for XCB, overriding pkg-config
1532 DOXYGEN Path to doxygen command
1533 DOT Path to the dot graphics utility
1534
1535 Use these variables to override the choices made by `configure' or to help
1536 it to find libraries and programs with nonstandard names/locations.
1537
1538 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxcb-util/-/issues>.
1539 _ACEOF
1540 ac_status=$?
1541 fi
1542
1543 if test "$ac_init_help" = "recursive"; then
1544 # If there are subdirs, report their specific --help.
1545 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1546 test -d "$ac_dir" ||
1547 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1548 continue
1549 ac_builddir=.
1550
1551 case "$ac_dir" in
1552 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 *)
1554 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1555 # A ".." for each directory in $ac_dir_suffix.
1556 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1557 case $ac_top_builddir_sub in
1558 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1560 esac ;;
1561 esac
1562 ac_abs_top_builddir=$ac_pwd
1563 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1564 # for backward compatibility:
1565 ac_top_builddir=$ac_top_build_prefix
1566
1567 case $srcdir in
1568 .) # We are building in place.
1569 ac_srcdir=.
1570 ac_top_srcdir=$ac_top_builddir_sub
1571 ac_abs_top_srcdir=$ac_pwd ;;
1572 [\\/]* | ?:[\\/]* ) # Absolute name.
1573 ac_srcdir=$srcdir$ac_dir_suffix;
1574 ac_top_srcdir=$srcdir
1575 ac_abs_top_srcdir=$srcdir ;;
1576 *) # Relative name.
1577 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1578 ac_top_srcdir=$ac_top_build_prefix$srcdir
1579 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1580 esac
1581 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1582
1583 cd "$ac_dir" || { ac_status=$?; continue; }
1584 # Check for configure.gnu first; this name is used for a wrapper for
1585 # Metaconfig's "Configure" on case-insensitive file systems.
1586 if test -f "$ac_srcdir/configure.gnu"; then
1587 echo &&
1588 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1589 elif test -f "$ac_srcdir/configure"; then
1590 echo &&
1591 $SHELL "$ac_srcdir/configure" --help=recursive
1592 else
1593 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1594 fi || ac_status=$?
1595 cd "$ac_pwd" || { ac_status=$?; break; }
1596 done
1597 fi
1598
1599 test -n "$ac_init_help" && exit $ac_status
1600 if $ac_init_version; then
1601 cat <<\_ACEOF
1602 xcb-util configure 0.4.1
1603 generated by GNU Autoconf 2.71
1604
1605 Copyright (C) 2021 Free Software Foundation, Inc.
1606 This configure script is free software; the Free Software Foundation
1607 gives unlimited permission to copy, distribute and modify it.
1608 _ACEOF
1609 exit
1610 fi
1611
1612 ## ------------------------ ##
1613 ## Autoconf initialization. ##
1614 ## ------------------------ ##
1615
1616 # ac_fn_c_try_compile LINENO
1617 # --------------------------
1618 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1619 ac_fn_c_try_compile ()
1620 {
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 rm -f conftest.$ac_objext conftest.beam
1623 if { { ac_try="$ac_compile"
1624 case "(($ac_try" in
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1627 esac
1628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 printf "%s\n" "$ac_try_echo"; } >&5
1630 (eval "$ac_compile") 2>conftest.err
1631 ac_status=$?
1632 if test -s conftest.err; then
1633 grep -v '^ *+' conftest.err >conftest.er1
1634 cat conftest.er1 >&5
1635 mv -f conftest.er1 conftest.err
1636 fi
1637 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; } && {
1639 test -z "$ac_c_werror_flag" ||
1640 test ! -s conftest.err
1641 } && test -s conftest.$ac_objext
1642 then :
1643 ac_retval=0
1644 else $as_nop
1645 printf "%s\n" "$as_me: failed program was:" >&5
1646 sed 's/^/| /' conftest.$ac_ext >&5
1647
1648 ac_retval=1
1649 fi
1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651 as_fn_set_status $ac_retval
1652
1653 } # ac_fn_c_try_compile
1654
1655 # ac_fn_c_try_link LINENO
1656 # -----------------------
1657 # Try to link conftest.$ac_ext, and return whether this succeeded.
1658 ac_fn_c_try_link ()
1659 {
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1662 if { { ac_try="$ac_link"
1663 case "(($ac_try" in
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1666 esac
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 printf "%s\n" "$ac_try_echo"; } >&5
1669 (eval "$ac_link") 2>conftest.err
1670 ac_status=$?
1671 if test -s conftest.err; then
1672 grep -v '^ *+' conftest.err >conftest.er1
1673 cat conftest.er1 >&5
1674 mv -f conftest.er1 conftest.err
1675 fi
1676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; } && {
1678 test -z "$ac_c_werror_flag" ||
1679 test ! -s conftest.err
1680 } && test -s conftest$ac_exeext && {
1681 test "$cross_compiling" = yes ||
1682 test -x conftest$ac_exeext
1683 }
1684 then :
1685 ac_retval=0
1686 else $as_nop
1687 printf "%s\n" "$as_me: failed program was:" >&5
1688 sed 's/^/| /' conftest.$ac_ext >&5
1689
1690 ac_retval=1
1691 fi
1692 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1693 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1694 # interfere with the next link command; also delete a directory that is
1695 # left behind by Apple's compiler. We do this before executing the actions.
1696 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698 as_fn_set_status $ac_retval
1699
1700 } # ac_fn_c_try_link
1701
1702 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1703 # -------------------------------------------------------
1704 # Tests whether HEADER exists and can be compiled using the include files in
1705 # INCLUDES, setting the cache variable VAR accordingly.
1706 ac_fn_c_check_header_compile ()
1707 {
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1710 printf %s "checking for $2... " >&6; }
1711 if eval test \${$3+y}
1712 then :
1713 printf %s "(cached) " >&6
1714 else $as_nop
1715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h. */
1717 $4
1718 #include <$2>
1719 _ACEOF
1720 if ac_fn_c_try_compile "$LINENO"
1721 then :
1722 eval "$3=yes"
1723 else $as_nop
1724 eval "$3=no"
1725 fi
1726 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1727 fi
1728 eval ac_res=\$$3
1729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1730 printf "%s\n" "$ac_res" >&6; }
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732
1733 } # ac_fn_c_check_header_compile
1734
1735 # ac_fn_c_check_func LINENO FUNC VAR
1736 # ----------------------------------
1737 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1738 ac_fn_c_check_func ()
1739 {
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742 printf %s "checking for $2... " >&6; }
1743 if eval test \${$3+y}
1744 then :
1745 printf %s "(cached) " >&6
1746 else $as_nop
1747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748 /* end confdefs.h. */
1749 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1751 #define $2 innocuous_$2
1752
1753 /* System header to define __stub macros and hopefully few prototypes,
1754 which can conflict with char $2 (); below. */
1755
1756 #include <limits.h>
1757 #undef $2
1758
1759 /* Override any GCC internal prototype to avoid an error.
1760 Use char because int might match the return type of a GCC
1761 builtin and then its argument prototype would still apply. */
1762 #ifdef __cplusplus
1763 extern "C"
1764 #endif
1765 char $2 ();
1766 /* The GNU C library defines this for functions which it implements
1767 to always fail with ENOSYS. Some functions are actually named
1768 something starting with __ and the normal name is an alias. */
1769 #if defined __stub_$2 || defined __stub___$2
1770 choke me
1771 #endif
1772
1773 int
1774 main (void)
1775 {
1776 return $2 ();
1777 ;
1778 return 0;
1779 }
1780 _ACEOF
1781 if ac_fn_c_try_link "$LINENO"
1782 then :
1783 eval "$3=yes"
1784 else $as_nop
1785 eval "$3=no"
1786 fi
1787 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1788 conftest$ac_exeext conftest.$ac_ext
1789 fi
1790 eval ac_res=\$$3
1791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 printf "%s\n" "$ac_res" >&6; }
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794
1795 } # ac_fn_c_check_func
1796
1797 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1798 # ------------------------------------------------------------------
1799 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1800 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1801 ac_fn_check_decl ()
1802 {
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 as_decl_name=`echo $2|sed 's/ *(.*//'`
1805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1806 printf %s "checking whether $as_decl_name is declared... " >&6; }
1807 if eval test \${$3+y}
1808 then :
1809 printf %s "(cached) " >&6
1810 else $as_nop
1811 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1812 eval ac_save_FLAGS=\$$6
1813 as_fn_append $6 " $5"
1814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815 /* end confdefs.h. */
1816 $4
1817 int
1818 main (void)
1819 {
1820 #ifndef $as_decl_name
1821 #ifdef __cplusplus
1822 (void) $as_decl_use;
1823 #else
1824 (void) $as_decl_name;
1825 #endif
1826 #endif
1827
1828 ;
1829 return 0;
1830 }
1831 _ACEOF
1832 if ac_fn_c_try_compile "$LINENO"
1833 then :
1834 eval "$3=yes"
1835 else $as_nop
1836 eval "$3=no"
1837 fi
1838 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1839 eval $6=\$ac_save_FLAGS
1840
1841 fi
1842 eval ac_res=\$$3
1843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1844 printf "%s\n" "$ac_res" >&6; }
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846
1847 } # ac_fn_check_decl
1848 ac_configure_args_raw=
1849 for ac_arg
1850 do
1851 case $ac_arg in
1852 *\'*)
1853 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1854 esac
1855 as_fn_append ac_configure_args_raw " '$ac_arg'"
1856 done
1857
1858 case $ac_configure_args_raw in
1859 *$as_nl*)
1860 ac_safe_unquote= ;;
1861 *)
1862 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1863 ac_unsafe_a="$ac_unsafe_z#~"
1864 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1865 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1866 esac
1867
1868 cat >config.log <<_ACEOF
1869 This file contains any messages produced by compilers while
1870 running configure, to aid debugging if configure makes a mistake.
1871
1872 It was created by xcb-util $as_me 0.4.1, which was
1873 generated by GNU Autoconf 2.71. Invocation command line was
1874
1875 $ $0$ac_configure_args_raw
1876
1877 _ACEOF
1878 exec 5>>config.log
1879 {
1880 cat <<_ASUNAME
1881 ## --------- ##
1882 ## Platform. ##
1883 ## --------- ##
1884
1885 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1886 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1887 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1888 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1889 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1890
1891 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1892 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1893
1894 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1895 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1896 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1897 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1898 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1899 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1900 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1901
1902 _ASUNAME
1903
1904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905 for as_dir in $PATH
1906 do
1907 IFS=$as_save_IFS
1908 case $as_dir in #(((
1909 '') as_dir=./ ;;
1910 */) ;;
1911 *) as_dir=$as_dir/ ;;
1912 esac
1913 printf "%s\n" "PATH: $as_dir"
1914 done
1915 IFS=$as_save_IFS
1916
1917 } >&5
1918
1919 cat >&5 <<_ACEOF
1920
1921
1922 ## ----------- ##
1923 ## Core tests. ##
1924 ## ----------- ##
1925
1926 _ACEOF
1927
1928
1929 # Keep a trace of the command line.
1930 # Strip out --no-create and --no-recursion so they do not pile up.
1931 # Strip out --silent because we don't want to record it for future runs.
1932 # Also quote any args containing shell meta-characters.
1933 # Make two passes to allow for proper duplicate-argument suppression.
1934 ac_configure_args=
1935 ac_configure_args0=
1936 ac_configure_args1=
1937 ac_must_keep_next=false
1938 for ac_pass in 1 2
1939 do
1940 for ac_arg
1941 do
1942 case $ac_arg in
1943 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1944 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1945 | -silent | --silent | --silen | --sile | --sil)
1946 continue ;;
1947 *\'*)
1948 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1949 esac
1950 case $ac_pass in
1951 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1952 2)
1953 as_fn_append ac_configure_args1 " '$ac_arg'"
1954 if test $ac_must_keep_next = true; then
1955 ac_must_keep_next=false # Got value, back to normal.
1956 else
1957 case $ac_arg in
1958 *=* | --config-cache | -C | -disable-* | --disable-* \
1959 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1960 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1961 | -with-* | --with-* | -without-* | --without-* | --x)
1962 case "$ac_configure_args0 " in
1963 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1964 esac
1965 ;;
1966 -* ) ac_must_keep_next=true ;;
1967 esac
1968 fi
1969 as_fn_append ac_configure_args " '$ac_arg'"
1970 ;;
1971 esac
1972 done
1973 done
1974 { ac_configure_args0=; unset ac_configure_args0;}
1975 { ac_configure_args1=; unset ac_configure_args1;}
1976
1977 # When interrupted or exit'd, cleanup temporary files, and complete
1978 # config.log. We remove comments because anyway the quotes in there
1979 # would cause problems or look ugly.
1980 # WARNING: Use '\'' to represent an apostrophe within the trap.
1981 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1982 trap 'exit_status=$?
1983 # Sanitize IFS.
1984 IFS=" "" $as_nl"
1985 # Save into config.log some information that might help in debugging.
1986 {
1987 echo
1988
1989 printf "%s\n" "## ---------------- ##
1990 ## Cache variables. ##
1991 ## ---------------- ##"
1992 echo
1993 # The following way of writing the cache mishandles newlines in values,
1994 (
1995 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1996 eval ac_val=\$$ac_var
1997 case $ac_val in #(
1998 *${as_nl}*)
1999 case $ac_var in #(
2000 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2001 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2002 esac
2003 case $ac_var in #(
2004 _ | IFS | as_nl) ;; #(
2005 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2006 *) { eval $ac_var=; unset $ac_var;} ;;
2007 esac ;;
2008 esac
2009 done
2010 (set) 2>&1 |
2011 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2012 *${as_nl}ac_space=\ *)
2013 sed -n \
2014 "s/'\''/'\''\\\\'\'''\''/g;
2015 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2016 ;; #(
2017 *)
2018 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2019 ;;
2020 esac |
2021 sort
2022 )
2023 echo
2024
2025 printf "%s\n" "## ----------------- ##
2026 ## Output variables. ##
2027 ## ----------------- ##"
2028 echo
2029 for ac_var in $ac_subst_vars
2030 do
2031 eval ac_val=\$$ac_var
2032 case $ac_val in
2033 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2034 esac
2035 printf "%s\n" "$ac_var='\''$ac_val'\''"
2036 done | sort
2037 echo
2038
2039 if test -n "$ac_subst_files"; then
2040 printf "%s\n" "## ------------------- ##
2041 ## File substitutions. ##
2042 ## ------------------- ##"
2043 echo
2044 for ac_var in $ac_subst_files
2045 do
2046 eval ac_val=\$$ac_var
2047 case $ac_val in
2048 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2049 esac
2050 printf "%s\n" "$ac_var='\''$ac_val'\''"
2051 done | sort
2052 echo
2053 fi
2054
2055 if test -s confdefs.h; then
2056 printf "%s\n" "## ----------- ##
2057 ## confdefs.h. ##
2058 ## ----------- ##"
2059 echo
2060 cat confdefs.h
2061 echo
2062 fi
2063 test "$ac_signal" != 0 &&
2064 printf "%s\n" "$as_me: caught signal $ac_signal"
2065 printf "%s\n" "$as_me: exit $exit_status"
2066 } >&5
2067 rm -f core *.core core.conftest.* &&
2068 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2069 exit $exit_status
2070 ' 0
2071 for ac_signal in 1 2 13 15; do
2072 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2073 done
2074 ac_signal=0
2075
2076 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2077 rm -f -r conftest* confdefs.h
2078
2079 printf "%s\n" "/* confdefs.h */" > confdefs.h
2080
2081 # Predefined preprocessor variables.
2082
2083 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2084
2085 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2086
2087 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2088
2089 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2090
2091 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2092
2093 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2094
2095
2096 # Let the site file select an alternate cache file if it wants to.
2097 # Prefer an explicitly selected file to automatically selected ones.
2098 if test -n "$CONFIG_SITE"; then
2099 ac_site_files="$CONFIG_SITE"
2100 elif test "x$prefix" != xNONE; then
2101 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2102 else
2103 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2104 fi
2105
2106 for ac_site_file in $ac_site_files
2107 do
2108 case $ac_site_file in #(
2109 */*) :
2110 ;; #(
2111 *) :
2112 ac_site_file=./$ac_site_file ;;
2113 esac
2114 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2116 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2117 sed 's/^/| /' "$ac_site_file" >&5
2118 . "$ac_site_file" \
2119 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2120 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2121 as_fn_error $? "failed to load site script $ac_site_file
2122 See \`config.log' for more details" "$LINENO" 5; }
2123 fi
2124 done
2125
2126 if test -r "$cache_file"; then
2127 # Some versions of bash will fail to source /dev/null (special files
2128 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2129 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2131 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2132 case $cache_file in
2133 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2134 *) . "./$cache_file";;
2135 esac
2136 fi
2137 else
2138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2139 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2140 >$cache_file
2141 fi
2142
2143 # Test code for whether the C compiler supports C89 (global declarations)
2144 ac_c_conftest_c89_globals='
2145 /* Does the compiler advertise C89 conformance?
2146 Do not test the value of __STDC__, because some compilers set it to 0
2147 while being otherwise adequately conformant. */
2148 #if !defined __STDC__
2149 # error "Compiler does not advertise C89 conformance"
2150 #endif
2151
2152 #include <stddef.h>
2153 #include <stdarg.h>
2154 struct stat;
2155 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2156 struct buf { int x; };
2157 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2158 static char *e (p, i)
2159 char **p;
2160 int i;
2161 {
2162 return p[i];
2163 }
2164 static char *f (char * (*g) (char **, int), char **p, ...)
2165 {
2166 char *s;
2167 va_list v;
2168 va_start (v,p);
2169 s = g (p, va_arg (v,int));
2170 va_end (v);
2171 return s;
2172 }
2173
2174 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2175 function prototypes and stuff, but not \xHH hex character constants.
2176 These do not provoke an error unfortunately, instead are silently treated
2177 as an "x". The following induces an error, until -std is added to get
2178 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2179 array size at least. It is necessary to write \x00 == 0 to get something
2180 that is true only with -std. */
2181 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2182
2183 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2184 inside strings and character constants. */
2185 #define FOO(x) '\''x'\''
2186 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2187
2188 int test (int i, double x);
2189 struct s1 {int (*f) (int a);};
2190 struct s2 {int (*f) (double a);};
2191 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2192 int, int);'
2193
2194 # Test code for whether the C compiler supports C89 (body of main).
2195 ac_c_conftest_c89_main='
2196 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2197 '
2198
2199 # Test code for whether the C compiler supports C99 (global declarations)
2200 ac_c_conftest_c99_globals='
2201 // Does the compiler advertise C99 conformance?
2202 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2203 # error "Compiler does not advertise C99 conformance"
2204 #endif
2205
2206 #include <stdbool.h>
2207 extern int puts (const char *);
2208 extern int printf (const char *, ...);
2209 extern int dprintf (int, const char *, ...);
2210 extern void *malloc (size_t);
2211
2212 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2213 // dprintf is used instead of fprintf to avoid needing to declare
2214 // FILE and stderr.
2215 #define debug(...) dprintf (2, __VA_ARGS__)
2216 #define showlist(...) puts (#__VA_ARGS__)
2217 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2218 static void
2219 test_varargs_macros (void)
2220 {
2221 int x = 1234;
2222 int y = 5678;
2223 debug ("Flag");
2224 debug ("X = %d\n", x);
2225 showlist (The first, second, and third items.);
2226 report (x>y, "x is %d but y is %d", x, y);
2227 }
2228
2229 // Check long long types.
2230 #define BIG64 18446744073709551615ull
2231 #define BIG32 4294967295ul
2232 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2233 #if !BIG_OK
2234 #error "your preprocessor is broken"
2235 #endif
2236 #if BIG_OK
2237 #else
2238 #error "your preprocessor is broken"
2239 #endif
2240 static long long int bignum = -9223372036854775807LL;
2241 static unsigned long long int ubignum = BIG64;
2242
2243 struct incomplete_array
2244 {
2245 int datasize;
2246 double data[];
2247 };
2248
2249 struct named_init {
2250 int number;
2251 const wchar_t *name;
2252 double average;
2253 };
2254
2255 typedef const char *ccp;
2256
2257 static inline int
2258 test_restrict (ccp restrict text)
2259 {
2260 // See if C++-style comments work.
2261 // Iterate through items via the restricted pointer.
2262 // Also check for declarations in for loops.
2263 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2264 continue;
2265 return 0;
2266 }
2267
2268 // Check varargs and va_copy.
2269 static bool
2270 test_varargs (const char *format, ...)
2271 {
2272 va_list args;
2273 va_start (args, format);
2274 va_list args_copy;
2275 va_copy (args_copy, args);
2276
2277 const char *str = "";
2278 int number = 0;
2279 float fnumber = 0;
2280
2281 while (*format)
2282 {
2283 switch (*format++)
2284 {
2285 case '\''s'\'': // string
2286 str = va_arg (args_copy, const char *);
2287 break;
2288 case '\''d'\'': // int
2289 number = va_arg (args_copy, int);
2290 break;
2291 case '\''f'\'': // float
2292 fnumber = va_arg (args_copy, double);
2293 break;
2294 default:
2295 break;
2296 }
2297 }
2298 va_end (args_copy);
2299 va_end (args);
2300
2301 return *str && number && fnumber;
2302 }
2303 '
2304
2305 # Test code for whether the C compiler supports C99 (body of main).
2306 ac_c_conftest_c99_main='
2307 // Check bool.
2308 _Bool success = false;
2309 success |= (argc != 0);
2310
2311 // Check restrict.
2312 if (test_restrict ("String literal") == 0)
2313 success = true;
2314 char *restrict newvar = "Another string";
2315
2316 // Check varargs.
2317 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2318 test_varargs_macros ();
2319
2320 // Check flexible array members.
2321 struct incomplete_array *ia =
2322 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2323 ia->datasize = 10;
2324 for (int i = 0; i < ia->datasize; ++i)
2325 ia->data[i] = i * 1.234;
2326
2327 // Check named initializers.
2328 struct named_init ni = {
2329 .number = 34,
2330 .name = L"Test wide string",
2331 .average = 543.34343,
2332 };
2333
2334 ni.number = 58;
2335
2336 int dynamic_array[ni.number];
2337 dynamic_array[0] = argv[0][0];
2338 dynamic_array[ni.number - 1] = 543;
2339
2340 // work around unused variable warnings
2341 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2342 || dynamic_array[ni.number - 1] != 543);
2343 '
2344
2345 # Test code for whether the C compiler supports C11 (global declarations)
2346 ac_c_conftest_c11_globals='
2347 // Does the compiler advertise C11 conformance?
2348 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2349 # error "Compiler does not advertise C11 conformance"
2350 #endif
2351
2352 // Check _Alignas.
2353 char _Alignas (double) aligned_as_double;
2354 char _Alignas (0) no_special_alignment;
2355 extern char aligned_as_int;
2356 char _Alignas (0) _Alignas (int) aligned_as_int;
2357
2358 // Check _Alignof.
2359 enum
2360 {
2361 int_alignment = _Alignof (int),
2362 int_array_alignment = _Alignof (int[100]),
2363 char_alignment = _Alignof (char)
2364 };
2365 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2366
2367 // Check _Noreturn.
2368 int _Noreturn does_not_return (void) { for (;;) continue; }
2369
2370 // Check _Static_assert.
2371 struct test_static_assert
2372 {
2373 int x;
2374 _Static_assert (sizeof (int) <= sizeof (long int),
2375 "_Static_assert does not work in struct");
2376 long int y;
2377 };
2378
2379 // Check UTF-8 literals.
2380 #define u8 syntax error!
2381 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2382
2383 // Check duplicate typedefs.
2384 typedef long *long_ptr;
2385 typedef long int *long_ptr;
2386 typedef long_ptr long_ptr;
2387
2388 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2389 struct anonymous
2390 {
2391 union {
2392 struct { int i; int j; };
2393 struct { int k; long int l; } w;
2394 };
2395 int m;
2396 } v1;
2397 '
2398
2399 # Test code for whether the C compiler supports C11 (body of main).
2400 ac_c_conftest_c11_main='
2401 _Static_assert ((offsetof (struct anonymous, i)
2402 == offsetof (struct anonymous, w.k)),
2403 "Anonymous union alignment botch");
2404 v1.i = 2;
2405 v1.w.k = 5;
2406 ok |= v1.i != 5;
2407 '
2408
2409 # Test code for whether the C compiler supports C11 (complete).
2410 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2411 ${ac_c_conftest_c99_globals}
2412 ${ac_c_conftest_c11_globals}
2413
2414 int
2415 main (int argc, char **argv)
2416 {
2417 int ok = 0;
2418 ${ac_c_conftest_c89_main}
2419 ${ac_c_conftest_c99_main}
2420 ${ac_c_conftest_c11_main}
2421 return ok;
2422 }
2423 "
2424
2425 # Test code for whether the C compiler supports C99 (complete).
2426 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2427 ${ac_c_conftest_c99_globals}
2428
2429 int
2430 main (int argc, char **argv)
2431 {
2432 int ok = 0;
2433 ${ac_c_conftest_c89_main}
2434 ${ac_c_conftest_c99_main}
2435 return ok;
2436 }
2437 "
2438
2439 # Test code for whether the C compiler supports C89 (complete).
2440 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2441
2442 int
2443 main (int argc, char **argv)
2444 {
2445 int ok = 0;
2446 ${ac_c_conftest_c89_main}
2447 return ok;
2448 }
2449 "
2450
2451 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2452 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2453 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2454 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2455 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2456 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2457 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2458 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2459 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2460 as_fn_append ac_func_c_list " vasprintf HAVE_VASPRINTF"
2461
2462 # Auxiliary files required by this configure script.
2463 ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2464
2465 # Locations in which to look for auxiliary files.
2466 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2467
2468 # Search for a directory containing all of the required auxiliary files,
2469 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2470 # If we don't find one directory that contains all the files we need,
2471 # we report the set of missing files from the *first* directory in
2472 # $ac_aux_dir_candidates and give up.
2473 ac_missing_aux_files=""
2474 ac_first_candidate=:
2475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 as_found=false
2478 for as_dir in $ac_aux_dir_candidates
2479 do
2480 IFS=$as_save_IFS
2481 case $as_dir in #(((
2482 '') as_dir=./ ;;
2483 */) ;;
2484 *) as_dir=$as_dir/ ;;
2485 esac
2486 as_found=:
2487
2488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2489 ac_aux_dir_found=yes
2490 ac_install_sh=
2491 for ac_aux in $ac_aux_files
2492 do
2493 # As a special case, if "install-sh" is required, that requirement
2494 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2495 # and $ac_install_sh is set appropriately for whichever one is found.
2496 if test x"$ac_aux" = x"install-sh"
2497 then
2498 if test -f "${as_dir}install-sh"; then
2499 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2500 ac_install_sh="${as_dir}install-sh -c"
2501 elif test -f "${as_dir}install.sh"; then
2502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2503 ac_install_sh="${as_dir}install.sh -c"
2504 elif test -f "${as_dir}shtool"; then
2505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2506 ac_install_sh="${as_dir}shtool install -c"
2507 else
2508 ac_aux_dir_found=no
2509 if $ac_first_candidate; then
2510 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2511 else
2512 break
2513 fi
2514 fi
2515 else
2516 if test -f "${as_dir}${ac_aux}"; then
2517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2518 else
2519 ac_aux_dir_found=no
2520 if $ac_first_candidate; then
2521 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2522 else
2523 break
2524 fi
2525 fi
2526 fi
2527 done
2528 if test "$ac_aux_dir_found" = yes; then
2529 ac_aux_dir="$as_dir"
2530 break
2531 fi
2532 ac_first_candidate=false
2533
2534 as_found=false
2535 done
2536 IFS=$as_save_IFS
2537 if $as_found
2538 then :
2539
2540 else $as_nop
2541 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2542 fi
2543
2544
2545 # These three variables are undocumented and unsupported,
2546 # and are intended to be withdrawn in a future Autoconf release.
2547 # They can cause serious problems if a builder's source tree is in a directory
2548 # whose full name contains unusual characters.
2549 if test -f "${ac_aux_dir}config.guess"; then
2550 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2551 fi
2552 if test -f "${ac_aux_dir}config.sub"; then
2553 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2554 fi
2555 if test -f "$ac_aux_dir/configure"; then
2556 ac_configure="$SHELL ${ac_aux_dir}configure"
2557 fi
2558
2559 # Check that the precious variables saved in the cache have kept the same
2560 # value.
2561 ac_cache_corrupted=false
2562 for ac_var in $ac_precious_vars; do
2563 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2564 eval ac_new_set=\$ac_env_${ac_var}_set
2565 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2566 eval ac_new_val=\$ac_env_${ac_var}_value
2567 case $ac_old_set,$ac_new_set in
2568 set,)
2569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2570 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2571 ac_cache_corrupted=: ;;
2572 ,set)
2573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2574 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2575 ac_cache_corrupted=: ;;
2576 ,);;
2577 *)
2578 if test "x$ac_old_val" != "x$ac_new_val"; then
2579 # differences in whitespace do not lead to failure.
2580 ac_old_val_w=`echo x $ac_old_val`
2581 ac_new_val_w=`echo x $ac_new_val`
2582 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2584 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2585 ac_cache_corrupted=:
2586 else
2587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2588 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2589 eval $ac_var=\$ac_old_val
2590 fi
2591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2592 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2594 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2595 fi;;
2596 esac
2597 # Pass precious variables to config.status.
2598 if test "$ac_new_set" = set; then
2599 case $ac_new_val in
2600 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2601 *) ac_arg=$ac_var=$ac_new_val ;;
2602 esac
2603 case " $ac_configure_args " in
2604 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2605 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2606 esac
2607 fi
2608 done
2609 if $ac_cache_corrupted; then
2610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2611 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2613 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2614 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2615 and start over" "$LINENO" 5
2616 fi
2617 ## -------------------- ##
2618 ## Main body of script. ##
2619 ## -------------------- ##
2620
2621 ac_ext=c
2622 ac_cpp='$CPP $CPPFLAGS'
2623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2626
2627
2628
2629 ac_config_headers="$ac_config_headers config.h"
2630
2631
2632 am__api_version='1.16'
2633
2634
2635
2636 # Find a good install program. We prefer a C program (faster),
2637 # so one script is as good as another. But avoid the broken or
2638 # incompatible versions:
2639 # SysV /etc/install, /usr/sbin/install
2640 # SunOS /usr/etc/install
2641 # IRIX /sbin/install
2642 # AIX /bin/install
2643 # AmigaOS /C/install, which installs bootblocks on floppy discs
2644 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2645 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2646 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2647 # OS/2's system install, which has a completely different semantic
2648 # ./install, which can be erroneously created by make from ./install.sh.
2649 # Reject install programs that cannot install multiple files.
2650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2651 printf %s "checking for a BSD-compatible install... " >&6; }
2652 if test -z "$INSTALL"; then
2653 if test ${ac_cv_path_install+y}
2654 then :
2655 printf %s "(cached) " >&6
2656 else $as_nop
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 for as_dir in $PATH
2659 do
2660 IFS=$as_save_IFS
2661 case $as_dir in #(((
2662 '') as_dir=./ ;;
2663 */) ;;
2664 *) as_dir=$as_dir/ ;;
2665 esac
2666 # Account for fact that we put trailing slashes in our PATH walk.
2667 case $as_dir in #((
2668 ./ | /[cC]/* | \
2669 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2670 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2671 /usr/ucb/* ) ;;
2672 *)
2673 # OSF1 and SCO ODT 3.0 have their own names for install.
2674 # Don't use installbsd from OSF since it installs stuff as root
2675 # by default.
2676 for ac_prog in ginstall scoinst install; do
2677 for ac_exec_ext in '' $ac_executable_extensions; do
2678 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2679 if test $ac_prog = install &&
2680 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2681 # AIX install. It has an incompatible calling convention.
2682 :
2683 elif test $ac_prog = install &&
2684 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2685 # program-specific install script used by HP pwplus--don't use.
2686 :
2687 else
2688 rm -rf conftest.one conftest.two conftest.dir
2689 echo one > conftest.one
2690 echo two > conftest.two
2691 mkdir conftest.dir
2692 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2693 test -s conftest.one && test -s conftest.two &&
2694 test -s conftest.dir/conftest.one &&
2695 test -s conftest.dir/conftest.two
2696 then
2697 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2698 break 3
2699 fi
2700 fi
2701 fi
2702 done
2703 done
2704 ;;
2705 esac
2706
2707 done
2708 IFS=$as_save_IFS
2709
2710 rm -rf conftest.one conftest.two conftest.dir
2711
2712 fi
2713 if test ${ac_cv_path_install+y}; then
2714 INSTALL=$ac_cv_path_install
2715 else
2716 # As a last resort, use the slow shell script. Don't cache a
2717 # value for INSTALL within a source directory, because that will
2718 # break other packages using the cache if that directory is
2719 # removed, or if the value is a relative name.
2720 INSTALL=$ac_install_sh
2721 fi
2722 fi
2723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2724 printf "%s\n" "$INSTALL" >&6; }
2725
2726 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2727 # It thinks the first close brace ends the variable substitution.
2728 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2729
2730 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2731
2732 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2733
2734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2735 printf %s "checking whether build environment is sane... " >&6; }
2736 # Reject unsafe characters in $srcdir or the absolute working directory
2737 # name. Accept space and tab only in the latter.
2738 am_lf='
2739 '
2740 case `pwd` in
2741 *[\\\"\#\$\&\'\`$am_lf]*)
2742 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2743 esac
2744 case $srcdir in
2745 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2746 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2747 esac
2748
2749 # Do 'set' in a subshell so we don't clobber the current shell's
2750 # arguments. Must try -L first in case configure is actually a
2751 # symlink; some systems play weird games with the mod time of symlinks
2752 # (eg FreeBSD returns the mod time of the symlink's containing
2753 # directory).
2754 if (
2755 am_has_slept=no
2756 for am_try in 1 2; do
2757 echo "timestamp, slept: $am_has_slept" > conftest.file
2758 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2759 if test "$*" = "X"; then
2760 # -L didn't work.
2761 set X `ls -t "$srcdir/configure" conftest.file`
2762 fi
2763 if test "$*" != "X $srcdir/configure conftest.file" \
2764 && test "$*" != "X conftest.file $srcdir/configure"; then
2765
2766 # If neither matched, then we have a broken ls. This can happen
2767 # if, for instance, CONFIG_SHELL is bash and it inherits a
2768 # broken ls alias from the environment. This has actually
2769 # happened. Such a system could not be considered "sane".
2770 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2771 alias in your environment" "$LINENO" 5
2772 fi
2773 if test "$2" = conftest.file || test $am_try -eq 2; then
2774 break
2775 fi
2776 # Just in case.
2777 sleep 1
2778 am_has_slept=yes
2779 done
2780 test "$2" = conftest.file
2781 )
2782 then
2783 # Ok.
2784 :
2785 else
2786 as_fn_error $? "newly created file is older than distributed files!
2787 Check your system clock" "$LINENO" 5
2788 fi
2789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2790 printf "%s\n" "yes" >&6; }
2791 # If we didn't sleep, we still need to ensure time stamps of config.status and
2792 # generated files are strictly newer.
2793 am_sleep_pid=
2794 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2795 ( sleep 1 ) &
2796 am_sleep_pid=$!
2797 fi
2798
2799 rm -f conftest.file
2800
2801 test "$program_prefix" != NONE &&
2802 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2803 # Use a double $ so make ignores it.
2804 test "$program_suffix" != NONE &&
2805 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2806 # Double any \ or $.
2807 # By default was `s,x,x', remove it if useless.
2808 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2809 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2810
2811
2812 # Expand $ac_aux_dir to an absolute path.
2813 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2814
2815
2816 if test x"${MISSING+set}" != xset; then
2817 MISSING="\${SHELL} '$am_aux_dir/missing'"
2818 fi
2819 # Use eval to expand $SHELL
2820 if eval "$MISSING --is-lightweight"; then
2821 am_missing_run="$MISSING "
2822 else
2823 am_missing_run=
2824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2825 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2826 fi
2827
2828 if test x"${install_sh+set}" != xset; then
2829 case $am_aux_dir in
2830 *\ * | *\ *)
2831 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2832 *)
2833 install_sh="\${SHELL} $am_aux_dir/install-sh"
2834 esac
2835 fi
2836
2837 # Installed binaries are usually stripped using 'strip' when the user
2838 # run "make install-strip". However 'strip' might not be the right
2839 # tool to use in cross-compilation environments, therefore Automake
2840 # will honor the 'STRIP' environment variable to overrule this program.
2841 if test "$cross_compiling" != no; then
2842 if test -n "$ac_tool_prefix"; then
2843 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2844 set dummy ${ac_tool_prefix}strip; ac_word=$2
2845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2846 printf %s "checking for $ac_word... " >&6; }
2847 if test ${ac_cv_prog_STRIP+y}
2848 then :
2849 printf %s "(cached) " >&6
2850 else $as_nop
2851 if test -n "$STRIP"; then
2852 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2853 else
2854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855 for as_dir in $PATH
2856 do
2857 IFS=$as_save_IFS
2858 case $as_dir in #(((
2859 '') as_dir=./ ;;
2860 */) ;;
2861 *) as_dir=$as_dir/ ;;
2862 esac
2863 for ac_exec_ext in '' $ac_executable_extensions; do
2864 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2865 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2866 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2867 break 2
2868 fi
2869 done
2870 done
2871 IFS=$as_save_IFS
2872
2873 fi
2874 fi
2875 STRIP=$ac_cv_prog_STRIP
2876 if test -n "$STRIP"; then
2877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2878 printf "%s\n" "$STRIP" >&6; }
2879 else
2880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881 printf "%s\n" "no" >&6; }
2882 fi
2883
2884
2885 fi
2886 if test -z "$ac_cv_prog_STRIP"; then
2887 ac_ct_STRIP=$STRIP
2888 # Extract the first word of "strip", so it can be a program name with args.
2889 set dummy strip; ac_word=$2
2890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891 printf %s "checking for $ac_word... " >&6; }
2892 if test ${ac_cv_prog_ac_ct_STRIP+y}
2893 then :
2894 printf %s "(cached) " >&6
2895 else $as_nop
2896 if test -n "$ac_ct_STRIP"; then
2897 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2898 else
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 for as_dir in $PATH
2901 do
2902 IFS=$as_save_IFS
2903 case $as_dir in #(((
2904 '') as_dir=./ ;;
2905 */) ;;
2906 *) as_dir=$as_dir/ ;;
2907 esac
2908 for ac_exec_ext in '' $ac_executable_extensions; do
2909 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2910 ac_cv_prog_ac_ct_STRIP="strip"
2911 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2912 break 2
2913 fi
2914 done
2915 done
2916 IFS=$as_save_IFS
2917
2918 fi
2919 fi
2920 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2921 if test -n "$ac_ct_STRIP"; then
2922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2923 printf "%s\n" "$ac_ct_STRIP" >&6; }
2924 else
2925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2926 printf "%s\n" "no" >&6; }
2927 fi
2928
2929 if test "x$ac_ct_STRIP" = x; then
2930 STRIP=":"
2931 else
2932 case $cross_compiling:$ac_tool_warned in
2933 yes:)
2934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2935 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2936 ac_tool_warned=yes ;;
2937 esac
2938 STRIP=$ac_ct_STRIP
2939 fi
2940 else
2941 STRIP="$ac_cv_prog_STRIP"
2942 fi
2943
2944 fi
2945 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2946
2947
2948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2949 printf %s "checking for a race-free mkdir -p... " >&6; }
2950 if test -z "$MKDIR_P"; then
2951 if test ${ac_cv_path_mkdir+y}
2952 then :
2953 printf %s "(cached) " >&6
2954 else $as_nop
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2957 do
2958 IFS=$as_save_IFS
2959 case $as_dir in #(((
2960 '') as_dir=./ ;;
2961 */) ;;
2962 *) as_dir=$as_dir/ ;;
2963 esac
2964 for ac_prog in mkdir gmkdir; do
2965 for ac_exec_ext in '' $ac_executable_extensions; do
2966 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2967 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2968 'mkdir ('*'coreutils) '* | \
2969 'BusyBox '* | \
2970 'mkdir (fileutils) '4.1*)
2971 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2972 break 3;;
2973 esac
2974 done
2975 done
2976 done
2977 IFS=$as_save_IFS
2978
2979 fi
2980
2981 test -d ./--version && rmdir ./--version
2982 if test ${ac_cv_path_mkdir+y}; then
2983 MKDIR_P="$ac_cv_path_mkdir -p"
2984 else
2985 # As a last resort, use the slow shell script. Don't cache a
2986 # value for MKDIR_P within a source directory, because that will
2987 # break other packages using the cache if that directory is
2988 # removed, or if the value is a relative name.
2989 MKDIR_P="$ac_install_sh -d"
2990 fi
2991 fi
2992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2993 printf "%s\n" "$MKDIR_P" >&6; }
2994
2995 for ac_prog in gawk mawk nawk awk
2996 do
2997 # Extract the first word of "$ac_prog", so it can be a program name with args.
2998 set dummy $ac_prog; ac_word=$2
2999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3000 printf %s "checking for $ac_word... " >&6; }
3001 if test ${ac_cv_prog_AWK+y}
3002 then :
3003 printf %s "(cached) " >&6
3004 else $as_nop
3005 if test -n "$AWK"; then
3006 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3007 else
3008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009 for as_dir in $PATH
3010 do
3011 IFS=$as_save_IFS
3012 case $as_dir in #(((
3013 '') as_dir=./ ;;
3014 */) ;;
3015 *) as_dir=$as_dir/ ;;
3016 esac
3017 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3019 ac_cv_prog_AWK="$ac_prog"
3020 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3021 break 2
3022 fi
3023 done
3024 done
3025 IFS=$as_save_IFS
3026
3027 fi
3028 fi
3029 AWK=$ac_cv_prog_AWK
3030 if test -n "$AWK"; then
3031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3032 printf "%s\n" "$AWK" >&6; }
3033 else
3034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035 printf "%s\n" "no" >&6; }
3036 fi
3037
3038
3039 test -n "$AWK" && break
3040 done
3041
3042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3043 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3044 set x ${MAKE-make}
3045 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3046 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3047 then :
3048 printf %s "(cached) " >&6
3049 else $as_nop
3050 cat >conftest.make <<\_ACEOF
3051 SHELL = /bin/sh
3052 all:
3053 @echo '@@@%%%=$(MAKE)=@@@%%%'
3054 _ACEOF
3055 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3056 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3057 *@@@%%%=?*=@@@%%%*)
3058 eval ac_cv_prog_make_${ac_make}_set=yes;;
3059 *)
3060 eval ac_cv_prog_make_${ac_make}_set=no;;
3061 esac
3062 rm -f conftest.make
3063 fi
3064 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3066 printf "%s\n" "yes" >&6; }
3067 SET_MAKE=
3068 else
3069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070 printf "%s\n" "no" >&6; }
3071 SET_MAKE="MAKE=${MAKE-make}"
3072 fi
3073
3074 rm -rf .tst 2>/dev/null
3075 mkdir .tst 2>/dev/null
3076 if test -d .tst; then
3077 am__leading_dot=.
3078 else
3079 am__leading_dot=_
3080 fi
3081 rmdir .tst 2>/dev/null
3082
3083 # Check whether --enable-silent-rules was given.
3084 if test ${enable_silent_rules+y}
3085 then :
3086 enableval=$enable_silent_rules;
3087 fi
3088
3089 case $enable_silent_rules in # (((
3090 yes) AM_DEFAULT_VERBOSITY=0;;
3091 no) AM_DEFAULT_VERBOSITY=1;;
3092 *) AM_DEFAULT_VERBOSITY=1;;
3093 esac
3094 am_make=${MAKE-make}
3095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3096 printf %s "checking whether $am_make supports nested variables... " >&6; }
3097 if test ${am_cv_make_support_nested_variables+y}
3098 then :
3099 printf %s "(cached) " >&6
3100 else $as_nop
3101 if printf "%s\n" 'TRUE=$(BAR$(V))
3102 BAR0=false
3103 BAR1=true
3104 V=1
3105 am__doit:
3106 @$(TRUE)
3107 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3108 am_cv_make_support_nested_variables=yes
3109 else
3110 am_cv_make_support_nested_variables=no
3111 fi
3112 fi
3113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3114 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3115 if test $am_cv_make_support_nested_variables = yes; then
3116 AM_V='$(V)'
3117 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3118 else
3119 AM_V=$AM_DEFAULT_VERBOSITY
3120 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3121 fi
3122 AM_BACKSLASH='\'
3123
3124 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3125 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3126 # is not polluted with repeated "-I."
3127 am__isrc=' -I$(srcdir)'
3128 # test to see if srcdir already configured
3129 if test -f $srcdir/config.status; then
3130 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3131 fi
3132 fi
3133
3134 # test whether we have cygpath
3135 if test -z "$CYGPATH_W"; then
3136 if (cygpath --version) >/dev/null 2>/dev/null; then
3137 CYGPATH_W='cygpath -w'
3138 else
3139 CYGPATH_W=echo
3140 fi
3141 fi
3142
3143
3144 # Define the identity of the package.
3145 PACKAGE='xcb-util'
3146 VERSION='0.4.1'
3147
3148
3149 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3150
3151
3152 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3153
3154 # Some tools Automake needs.
3155
3156 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3157
3158
3159 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3160
3161
3162 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3163
3164
3165 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3166
3167
3168 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3169
3170 # For better backward compatibility. To be removed once Automake 1.9.x
3171 # dies out for good. For more background, see:
3172 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3173 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3174 mkdir_p='$(MKDIR_P)'
3175
3176 # We need awk for the "check" target (and possibly the TAP driver). The
3177 # system "awk" is bad on some platforms.
3178 # Always define AMTAR for backward compatibility. Yes, it's still used
3179 # in the wild :-( We should find a proper way to deprecate it ...
3180 AMTAR='$${TAR-tar}'
3181
3182
3183 # We'll loop over all known methods to create a tar archive until one works.
3184 _am_tools='gnutar pax cpio none'
3185
3186 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3187
3188
3189
3190
3191
3192 # Variables for tags utilities; see am/tags.am
3193 if test -z "$CTAGS"; then
3194 CTAGS=ctags
3195 fi
3196
3197 if test -z "$ETAGS"; then
3198 ETAGS=etags
3199 fi
3200
3201 if test -z "$CSCOPE"; then
3202 CSCOPE=cscope
3203 fi
3204
3205
3206
3207 # POSIX will say in a future version that running "rm -f" with no argument
3208 # is OK; and we want to be able to make that assumption in our Makefile
3209 # recipes. So use an aggressive probe to check that the usage we want is
3210 # actually supported "in the wild" to an acceptable degree.
3211 # See automake bug#10828.
3212 # To make any issue more visible, cause the running configure to be aborted
3213 # by default if the 'rm' program in use doesn't match our expectations; the
3214 # user can still override this though.
3215 if rm -f && rm -fr && rm -rf; then : OK; else
3216 cat >&2 <<'END'
3217 Oops!
3218
3219 Your 'rm' program seems unable to run without file operands specified
3220 on the command line, even when the '-f' option is present. This is contrary
3221 to the behaviour of most rm programs out there, and not conforming with
3222 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3223
3224 Please tell [email protected] about your system, including the value
3225 of your $PATH and any error possibly output before this message. This
3226 can help us improve future automake versions.
3227
3228 END
3229 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3230 echo 'Configuration will proceed anyway, since you have set the' >&2
3231 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3232 echo >&2
3233 else
3234 cat >&2 <<'END'
3235 Aborting the configuration process, to ensure you take notice of the issue.
3236
3237 You can download and install GNU coreutils to get an 'rm' implementation
3238 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3239
3240 If you want to complete the configuration process using your problematic
3241 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3242 to "yes", and re-run configure.
3243
3244 END
3245 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3246 fi
3247 fi
3248
3249
3250 case `pwd` in
3251 *\ * | *\ *)
3252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3253 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3254 esac
3255
3256
3257
3258 macro_version='2.4.7'
3259 macro_revision='2.4.7'
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274 ltmain=$ac_aux_dir/ltmain.sh
3275
3276
3277
3278 # Make sure we can run config.sub.
3279 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3280 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3281
3282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3283 printf %s "checking build system type... " >&6; }
3284 if test ${ac_cv_build+y}
3285 then :
3286 printf %s "(cached) " >&6
3287 else $as_nop
3288 ac_build_alias=$build_alias
3289 test "x$ac_build_alias" = x &&
3290 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3291 test "x$ac_build_alias" = x &&
3292 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3293 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3294 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3295
3296 fi
3297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3298 printf "%s\n" "$ac_cv_build" >&6; }
3299 case $ac_cv_build in
3300 *-*-*) ;;
3301 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3302 esac
3303 build=$ac_cv_build
3304 ac_save_IFS=$IFS; IFS='-'
3305 set x $ac_cv_build
3306 shift
3307 build_cpu=$1
3308 build_vendor=$2
3309 shift; shift
3310 # Remember, the first character of IFS is used to create $*,
3311 # except with old shells:
3312 build_os=$*
3313 IFS=$ac_save_IFS
3314 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3315
3316
3317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3318 printf %s "checking host system type... " >&6; }
3319 if test ${ac_cv_host+y}
3320 then :
3321 printf %s "(cached) " >&6
3322 else $as_nop
3323 if test "x$host_alias" = x; then
3324 ac_cv_host=$ac_cv_build
3325 else
3326 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3327 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3328 fi
3329
3330 fi
3331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3332 printf "%s\n" "$ac_cv_host" >&6; }
3333 case $ac_cv_host in
3334 *-*-*) ;;
3335 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3336 esac
3337 host=$ac_cv_host
3338 ac_save_IFS=$IFS; IFS='-'
3339 set x $ac_cv_host
3340 shift
3341 host_cpu=$1
3342 host_vendor=$2
3343 shift; shift
3344 # Remember, the first character of IFS is used to create $*,
3345 # except with old shells:
3346 host_os=$*
3347 IFS=$ac_save_IFS
3348 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3349
3350
3351 # Backslashify metacharacters that are still active within
3352 # double-quoted strings.
3353 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3354
3355 # Same as above, but do not quote variable references.
3356 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3357
3358 # Sed substitution to delay expansion of an escaped shell variable in a
3359 # double_quote_subst'ed string.
3360 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3361
3362 # Sed substitution to delay expansion of an escaped single quote.
3363 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3364
3365 # Sed substitution to avoid accidental globbing in evaled expressions
3366 no_glob_subst='s/\*/\\\*/g'
3367
3368 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3369 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3370 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3371
3372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3373 printf %s "checking how to print strings... " >&6; }
3374 # Test print first, because it will be a builtin if present.
3375 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3376 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3377 ECHO='print -r --'
3378 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3379 ECHO='printf %s\n'
3380 else
3381 # Use this function as a fallback that always works.
3382 func_fallback_echo ()
3383 {
3384 eval 'cat <<_LTECHO_EOF
3385 $1
3386 _LTECHO_EOF'
3387 }
3388 ECHO='func_fallback_echo'
3389 fi
3390
3391 # func_echo_all arg...
3392 # Invoke $ECHO with all args, space-separated.
3393 func_echo_all ()
3394 {
3395 $ECHO ""
3396 }
3397
3398 case $ECHO in
3399 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3400 printf "%s\n" "printf" >&6; } ;;
3401 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3402 printf "%s\n" "print -r" >&6; } ;;
3403 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3404 printf "%s\n" "cat" >&6; } ;;
3405 esac
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429 DEPDIR="${am__leading_dot}deps"
3430
3431 ac_config_commands="$ac_config_commands depfiles"
3432
3433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3434 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3435 cat > confinc.mk << 'END'
3436 am__doit:
3437 @echo this is the am__doit target >confinc.out
3438 .PHONY: am__doit
3439 END
3440 am__include="#"
3441 am__quote=
3442 # BSD make does it like this.
3443 echo '.include "confinc.mk" # ignored' > confmf.BSD
3444 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3445 echo 'include confinc.mk # ignored' > confmf.GNU
3446 _am_result=no
3447 for s in GNU BSD; do
3448 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3449 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3450 ac_status=$?
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); }
3453 case $?:`cat confinc.out 2>/dev/null` in #(
3454 '0:this is the am__doit target') :
3455 case $s in #(
3456 BSD) :
3457 am__include='.include' am__quote='"' ;; #(
3458 *) :
3459 am__include='include' am__quote='' ;;
3460 esac ;; #(
3461 *) :
3462 ;;
3463 esac
3464 if test "$am__include" != "#"; then
3465 _am_result="yes ($s style)"
3466 break
3467 fi
3468 done
3469 rm -f confinc.* confmf.*
3470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3471 printf "%s\n" "${_am_result}" >&6; }
3472
3473 # Check whether --enable-dependency-tracking was given.
3474 if test ${enable_dependency_tracking+y}
3475 then :
3476 enableval=$enable_dependency_tracking;
3477 fi
3478
3479 if test "x$enable_dependency_tracking" != xno; then
3480 am_depcomp="$ac_aux_dir/depcomp"
3481 AMDEPBACKSLASH='\'
3482 am__nodep='_no'
3483 fi
3484 if test "x$enable_dependency_tracking" != xno; then
3485 AMDEP_TRUE=
3486 AMDEP_FALSE='#'
3487 else
3488 AMDEP_TRUE='#'
3489 AMDEP_FALSE=
3490 fi
3491
3492
3493 ac_ext=c
3494 ac_cpp='$CPP $CPPFLAGS'
3495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3498 if test -n "$ac_tool_prefix"; then
3499 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3500 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3502 printf %s "checking for $ac_word... " >&6; }
3503 if test ${ac_cv_prog_CC+y}
3504 then :
3505 printf %s "(cached) " >&6
3506 else $as_nop
3507 if test -n "$CC"; then
3508 ac_cv_prog_CC="$CC" # Let the user override the test.
3509 else
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 for as_dir in $PATH
3512 do
3513 IFS=$as_save_IFS
3514 case $as_dir in #(((
3515 '') as_dir=./ ;;
3516 */) ;;
3517 *) as_dir=$as_dir/ ;;
3518 esac
3519 for ac_exec_ext in '' $ac_executable_extensions; do
3520 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3521 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3523 break 2
3524 fi
3525 done
3526 done
3527 IFS=$as_save_IFS
3528
3529 fi
3530 fi
3531 CC=$ac_cv_prog_CC
3532 if test -n "$CC"; then
3533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3534 printf "%s\n" "$CC" >&6; }
3535 else
3536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3537 printf "%s\n" "no" >&6; }
3538 fi
3539
3540
3541 fi
3542 if test -z "$ac_cv_prog_CC"; then
3543 ac_ct_CC=$CC
3544 # Extract the first word of "gcc", so it can be a program name with args.
3545 set dummy gcc; ac_word=$2
3546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3547 printf %s "checking for $ac_word... " >&6; }
3548 if test ${ac_cv_prog_ac_ct_CC+y}
3549 then :
3550 printf %s "(cached) " >&6
3551 else $as_nop
3552 if test -n "$ac_ct_CC"; then
3553 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3554 else
3555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 for as_dir in $PATH
3557 do
3558 IFS=$as_save_IFS
3559 case $as_dir in #(((
3560 '') as_dir=./ ;;
3561 */) ;;
3562 *) as_dir=$as_dir/ ;;
3563 esac
3564 for ac_exec_ext in '' $ac_executable_extensions; do
3565 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3566 ac_cv_prog_ac_ct_CC="gcc"
3567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3568 break 2
3569 fi
3570 done
3571 done
3572 IFS=$as_save_IFS
3573
3574 fi
3575 fi
3576 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3577 if test -n "$ac_ct_CC"; then
3578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3579 printf "%s\n" "$ac_ct_CC" >&6; }
3580 else
3581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582 printf "%s\n" "no" >&6; }
3583 fi
3584
3585 if test "x$ac_ct_CC" = x; then
3586 CC=""
3587 else
3588 case $cross_compiling:$ac_tool_warned in
3589 yes:)
3590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3591 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3592 ac_tool_warned=yes ;;
3593 esac
3594 CC=$ac_ct_CC
3595 fi
3596 else
3597 CC="$ac_cv_prog_CC"
3598 fi
3599
3600 if test -z "$CC"; then
3601 if test -n "$ac_tool_prefix"; then
3602 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3603 set dummy ${ac_tool_prefix}cc; ac_word=$2
3604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3605 printf %s "checking for $ac_word... " >&6; }
3606 if test ${ac_cv_prog_CC+y}
3607 then :
3608 printf %s "(cached) " >&6
3609 else $as_nop
3610 if test -n "$CC"; then
3611 ac_cv_prog_CC="$CC" # Let the user override the test.
3612 else
3613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614 for as_dir in $PATH
3615 do
3616 IFS=$as_save_IFS
3617 case $as_dir in #(((
3618 '') as_dir=./ ;;
3619 */) ;;
3620 *) as_dir=$as_dir/ ;;
3621 esac
3622 for ac_exec_ext in '' $ac_executable_extensions; do
3623 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3624 ac_cv_prog_CC="${ac_tool_prefix}cc"
3625 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3626 break 2
3627 fi
3628 done
3629 done
3630 IFS=$as_save_IFS
3631
3632 fi
3633 fi
3634 CC=$ac_cv_prog_CC
3635 if test -n "$CC"; then
3636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3637 printf "%s\n" "$CC" >&6; }
3638 else
3639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3640 printf "%s\n" "no" >&6; }
3641 fi
3642
3643
3644 fi
3645 fi
3646 if test -z "$CC"; then
3647 # Extract the first word of "cc", so it can be a program name with args.
3648 set dummy cc; ac_word=$2
3649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3650 printf %s "checking for $ac_word... " >&6; }
3651 if test ${ac_cv_prog_CC+y}
3652 then :
3653 printf %s "(cached) " >&6
3654 else $as_nop
3655 if test -n "$CC"; then
3656 ac_cv_prog_CC="$CC" # Let the user override the test.
3657 else
3658 ac_prog_rejected=no
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH
3661 do
3662 IFS=$as_save_IFS
3663 case $as_dir in #(((
3664 '') as_dir=./ ;;
3665 */) ;;
3666 *) as_dir=$as_dir/ ;;
3667 esac
3668 for ac_exec_ext in '' $ac_executable_extensions; do
3669 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3670 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3671 ac_prog_rejected=yes
3672 continue
3673 fi
3674 ac_cv_prog_CC="cc"
3675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3676 break 2
3677 fi
3678 done
3679 done
3680 IFS=$as_save_IFS
3681
3682 if test $ac_prog_rejected = yes; then
3683 # We found a bogon in the path, so make sure we never use it.
3684 set dummy $ac_cv_prog_CC
3685 shift
3686 if test $# != 0; then
3687 # We chose a different compiler from the bogus one.
3688 # However, it has the same basename, so the bogon will be chosen
3689 # first if we set CC to just the basename; use the full file name.
3690 shift
3691 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3692 fi
3693 fi
3694 fi
3695 fi
3696 CC=$ac_cv_prog_CC
3697 if test -n "$CC"; then
3698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3699 printf "%s\n" "$CC" >&6; }
3700 else
3701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3702 printf "%s\n" "no" >&6; }
3703 fi
3704
3705
3706 fi
3707 if test -z "$CC"; then
3708 if test -n "$ac_tool_prefix"; then
3709 for ac_prog in cl.exe
3710 do
3711 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3712 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3714 printf %s "checking for $ac_word... " >&6; }
3715 if test ${ac_cv_prog_CC+y}
3716 then :
3717 printf %s "(cached) " >&6
3718 else $as_nop
3719 if test -n "$CC"; then
3720 ac_cv_prog_CC="$CC" # Let the user override the test.
3721 else
3722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723 for as_dir in $PATH
3724 do
3725 IFS=$as_save_IFS
3726 case $as_dir in #(((
3727 '') as_dir=./ ;;
3728 */) ;;
3729 *) as_dir=$as_dir/ ;;
3730 esac
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3733 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3735 break 2
3736 fi
3737 done
3738 done
3739 IFS=$as_save_IFS
3740
3741 fi
3742 fi
3743 CC=$ac_cv_prog_CC
3744 if test -n "$CC"; then
3745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3746 printf "%s\n" "$CC" >&6; }
3747 else
3748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3749 printf "%s\n" "no" >&6; }
3750 fi
3751
3752
3753 test -n "$CC" && break
3754 done
3755 fi
3756 if test -z "$CC"; then
3757 ac_ct_CC=$CC
3758 for ac_prog in cl.exe
3759 do
3760 # Extract the first word of "$ac_prog", so it can be a program name with args.
3761 set dummy $ac_prog; ac_word=$2
3762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3763 printf %s "checking for $ac_word... " >&6; }
3764 if test ${ac_cv_prog_ac_ct_CC+y}
3765 then :
3766 printf %s "(cached) " >&6
3767 else $as_nop
3768 if test -n "$ac_ct_CC"; then
3769 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3770 else
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 for as_dir in $PATH
3773 do
3774 IFS=$as_save_IFS
3775 case $as_dir in #(((
3776 '') as_dir=./ ;;
3777 */) ;;
3778 *) as_dir=$as_dir/ ;;
3779 esac
3780 for ac_exec_ext in '' $ac_executable_extensions; do
3781 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3782 ac_cv_prog_ac_ct_CC="$ac_prog"
3783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3784 break 2
3785 fi
3786 done
3787 done
3788 IFS=$as_save_IFS
3789
3790 fi
3791 fi
3792 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3793 if test -n "$ac_ct_CC"; then
3794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3795 printf "%s\n" "$ac_ct_CC" >&6; }
3796 else
3797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3798 printf "%s\n" "no" >&6; }
3799 fi
3800
3801
3802 test -n "$ac_ct_CC" && break
3803 done
3804
3805 if test "x$ac_ct_CC" = x; then
3806 CC=""
3807 else
3808 case $cross_compiling:$ac_tool_warned in
3809 yes:)
3810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3811 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3812 ac_tool_warned=yes ;;
3813 esac
3814 CC=$ac_ct_CC
3815 fi
3816 fi
3817
3818 fi
3819 if test -z "$CC"; then
3820 if test -n "$ac_tool_prefix"; then
3821 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3822 set dummy ${ac_tool_prefix}clang; ac_word=$2
3823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3824 printf %s "checking for $ac_word... " >&6; }
3825 if test ${ac_cv_prog_CC+y}
3826 then :
3827 printf %s "(cached) " >&6
3828 else $as_nop
3829 if test -n "$CC"; then
3830 ac_cv_prog_CC="$CC" # Let the user override the test.
3831 else
3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833 for as_dir in $PATH
3834 do
3835 IFS=$as_save_IFS
3836 case $as_dir in #(((
3837 '') as_dir=./ ;;
3838 */) ;;
3839 *) as_dir=$as_dir/ ;;
3840 esac
3841 for ac_exec_ext in '' $ac_executable_extensions; do
3842 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3843 ac_cv_prog_CC="${ac_tool_prefix}clang"
3844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3845 break 2
3846 fi
3847 done
3848 done
3849 IFS=$as_save_IFS
3850
3851 fi
3852 fi
3853 CC=$ac_cv_prog_CC
3854 if test -n "$CC"; then
3855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3856 printf "%s\n" "$CC" >&6; }
3857 else
3858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3859 printf "%s\n" "no" >&6; }
3860 fi
3861
3862
3863 fi
3864 if test -z "$ac_cv_prog_CC"; then
3865 ac_ct_CC=$CC
3866 # Extract the first word of "clang", so it can be a program name with args.
3867 set dummy clang; ac_word=$2
3868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3869 printf %s "checking for $ac_word... " >&6; }
3870 if test ${ac_cv_prog_ac_ct_CC+y}
3871 then :
3872 printf %s "(cached) " >&6
3873 else $as_nop
3874 if test -n "$ac_ct_CC"; then
3875 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3876 else
3877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878 for as_dir in $PATH
3879 do
3880 IFS=$as_save_IFS
3881 case $as_dir in #(((
3882 '') as_dir=./ ;;
3883 */) ;;
3884 *) as_dir=$as_dir/ ;;
3885 esac
3886 for ac_exec_ext in '' $ac_executable_extensions; do
3887 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3888 ac_cv_prog_ac_ct_CC="clang"
3889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3890 break 2
3891 fi
3892 done
3893 done
3894 IFS=$as_save_IFS
3895
3896 fi
3897 fi
3898 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3899 if test -n "$ac_ct_CC"; then
3900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3901 printf "%s\n" "$ac_ct_CC" >&6; }
3902 else
3903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3904 printf "%s\n" "no" >&6; }
3905 fi
3906
3907 if test "x$ac_ct_CC" = x; then
3908 CC=""
3909 else
3910 case $cross_compiling:$ac_tool_warned in
3911 yes:)
3912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3913 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3914 ac_tool_warned=yes ;;
3915 esac
3916 CC=$ac_ct_CC
3917 fi
3918 else
3919 CC="$ac_cv_prog_CC"
3920 fi
3921
3922 fi
3923
3924
3925 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3926 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3927 as_fn_error $? "no acceptable C compiler found in \$PATH
3928 See \`config.log' for more details" "$LINENO" 5; }
3929
3930 # Provide some information about the compiler.
3931 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3932 set X $ac_compile
3933 ac_compiler=$2
3934 for ac_option in --version -v -V -qversion -version; do
3935 { { ac_try="$ac_compiler $ac_option >&5"
3936 case "(($ac_try" in
3937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938 *) ac_try_echo=$ac_try;;
3939 esac
3940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3941 printf "%s\n" "$ac_try_echo"; } >&5
3942 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3943 ac_status=$?
3944 if test -s conftest.err; then
3945 sed '10a\
3946 ... rest of stderr output deleted ...
3947 10q' conftest.err >conftest.er1
3948 cat conftest.er1 >&5
3949 fi
3950 rm -f conftest.er1 conftest.err
3951 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3952 test $ac_status = 0; }
3953 done
3954
3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h. */
3957
3958 int
3959 main (void)
3960 {
3961
3962 ;
3963 return 0;
3964 }
3965 _ACEOF
3966 ac_clean_files_save=$ac_clean_files
3967 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3968 # Try to create an executable without -o first, disregard a.out.
3969 # It will help us diagnose broken compilers, and finding out an intuition
3970 # of exeext.
3971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3972 printf %s "checking whether the C compiler works... " >&6; }
3973 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3974
3975 # The possible output files:
3976 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3977
3978 ac_rmfiles=
3979 for ac_file in $ac_files
3980 do
3981 case $ac_file in
3982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3983 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3984 esac
3985 done
3986 rm -f $ac_rmfiles
3987
3988 if { { ac_try="$ac_link_default"
3989 case "(($ac_try" in
3990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3991 *) ac_try_echo=$ac_try;;
3992 esac
3993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3994 printf "%s\n" "$ac_try_echo"; } >&5
3995 (eval "$ac_link_default") 2>&5
3996 ac_status=$?
3997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3998 test $ac_status = 0; }
3999 then :
4000 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4001 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4002 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4003 # so that the user can short-circuit this test for compilers unknown to
4004 # Autoconf.
4005 for ac_file in $ac_files ''
4006 do
4007 test -f "$ac_file" || continue
4008 case $ac_file in
4009 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4010 ;;
4011 [ab].out )
4012 # We found the default executable, but exeext='' is most
4013 # certainly right.
4014 break;;
4015 *.* )
4016 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4017 then :; else
4018 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4019 fi
4020 # We set ac_cv_exeext here because the later test for it is not
4021 # safe: cross compilers may not add the suffix if given an `-o'
4022 # argument, so we may need to know it at that point already.
4023 # Even if this section looks crufty: it has the advantage of
4024 # actually working.
4025 break;;
4026 * )
4027 break;;
4028 esac
4029 done
4030 test "$ac_cv_exeext" = no && ac_cv_exeext=
4031
4032 else $as_nop
4033 ac_file=''
4034 fi
4035 if test -z "$ac_file"
4036 then :
4037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4038 printf "%s\n" "no" >&6; }
4039 printf "%s\n" "$as_me: failed program was:" >&5
4040 sed 's/^/| /' conftest.$ac_ext >&5
4041
4042 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4043 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4044 as_fn_error 77 "C compiler cannot create executables
4045 See \`config.log' for more details" "$LINENO" 5; }
4046 else $as_nop
4047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4048 printf "%s\n" "yes" >&6; }
4049 fi
4050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4051 printf %s "checking for C compiler default output file name... " >&6; }
4052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4053 printf "%s\n" "$ac_file" >&6; }
4054 ac_exeext=$ac_cv_exeext
4055
4056 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4057 ac_clean_files=$ac_clean_files_save
4058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4059 printf %s "checking for suffix of executables... " >&6; }
4060 if { { ac_try="$ac_link"
4061 case "(($ac_try" in
4062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4063 *) ac_try_echo=$ac_try;;
4064 esac
4065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4066 printf "%s\n" "$ac_try_echo"; } >&5
4067 (eval "$ac_link") 2>&5
4068 ac_status=$?
4069 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4070 test $ac_status = 0; }
4071 then :
4072 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4073 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4074 # work properly (i.e., refer to `conftest.exe'), while it won't with
4075 # `rm'.
4076 for ac_file in conftest.exe conftest conftest.*; do
4077 test -f "$ac_file" || continue
4078 case $ac_file in
4079 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4080 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4081 break;;
4082 * ) break;;
4083 esac
4084 done
4085 else $as_nop
4086 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4087 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4088 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4089 See \`config.log' for more details" "$LINENO" 5; }
4090 fi
4091 rm -f conftest conftest$ac_cv_exeext
4092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4093 printf "%s\n" "$ac_cv_exeext" >&6; }
4094
4095 rm -f conftest.$ac_ext
4096 EXEEXT=$ac_cv_exeext
4097 ac_exeext=$EXEEXT
4098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099 /* end confdefs.h. */
4100 #include <stdio.h>
4101 int
4102 main (void)
4103 {
4104 FILE *f = fopen ("conftest.out", "w");
4105 return ferror (f) || fclose (f) != 0;
4106
4107 ;
4108 return 0;
4109 }
4110 _ACEOF
4111 ac_clean_files="$ac_clean_files conftest.out"
4112 # Check that the compiler produces executables we can run. If not, either
4113 # the compiler is broken, or we cross compile.
4114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4115 printf %s "checking whether we are cross compiling... " >&6; }
4116 if test "$cross_compiling" != yes; then
4117 { { ac_try="$ac_link"
4118 case "(($ac_try" in
4119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120 *) ac_try_echo=$ac_try;;
4121 esac
4122 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4123 printf "%s\n" "$ac_try_echo"; } >&5
4124 (eval "$ac_link") 2>&5
4125 ac_status=$?
4126 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4127 test $ac_status = 0; }
4128 if { ac_try='./conftest$ac_cv_exeext'
4129 { { case "(($ac_try" in
4130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131 *) ac_try_echo=$ac_try;;
4132 esac
4133 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4134 printf "%s\n" "$ac_try_echo"; } >&5
4135 (eval "$ac_try") 2>&5
4136 ac_status=$?
4137 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4138 test $ac_status = 0; }; }; then
4139 cross_compiling=no
4140 else
4141 if test "$cross_compiling" = maybe; then
4142 cross_compiling=yes
4143 else
4144 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4145 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4146 as_fn_error 77 "cannot run C compiled programs.
4147 If you meant to cross compile, use \`--host'.
4148 See \`config.log' for more details" "$LINENO" 5; }
4149 fi
4150 fi
4151 fi
4152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4153 printf "%s\n" "$cross_compiling" >&6; }
4154
4155 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4156 ac_clean_files=$ac_clean_files_save
4157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4158 printf %s "checking for suffix of object files... " >&6; }
4159 if test ${ac_cv_objext+y}
4160 then :
4161 printf %s "(cached) " >&6
4162 else $as_nop
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h. */
4165
4166 int
4167 main (void)
4168 {
4169
4170 ;
4171 return 0;
4172 }
4173 _ACEOF
4174 rm -f conftest.o conftest.obj
4175 if { { ac_try="$ac_compile"
4176 case "(($ac_try" in
4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178 *) ac_try_echo=$ac_try;;
4179 esac
4180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4181 printf "%s\n" "$ac_try_echo"; } >&5
4182 (eval "$ac_compile") 2>&5
4183 ac_status=$?
4184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4185 test $ac_status = 0; }
4186 then :
4187 for ac_file in conftest.o conftest.obj conftest.*; do
4188 test -f "$ac_file" || continue;
4189 case $ac_file in
4190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4191 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4192 break;;
4193 esac
4194 done
4195 else $as_nop
4196 printf "%s\n" "$as_me: failed program was:" >&5
4197 sed 's/^/| /' conftest.$ac_ext >&5
4198
4199 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4200 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4201 as_fn_error $? "cannot compute suffix of object files: cannot compile
4202 See \`config.log' for more details" "$LINENO" 5; }
4203 fi
4204 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4205 fi
4206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4207 printf "%s\n" "$ac_cv_objext" >&6; }
4208 OBJEXT=$ac_cv_objext
4209 ac_objext=$OBJEXT
4210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4211 printf %s "checking whether the compiler supports GNU C... " >&6; }
4212 if test ${ac_cv_c_compiler_gnu+y}
4213 then :
4214 printf %s "(cached) " >&6
4215 else $as_nop
4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217 /* end confdefs.h. */
4218
4219 int
4220 main (void)
4221 {
4222 #ifndef __GNUC__
4223 choke me
4224 #endif
4225
4226 ;
4227 return 0;
4228 }
4229 _ACEOF
4230 if ac_fn_c_try_compile "$LINENO"
4231 then :
4232 ac_compiler_gnu=yes
4233 else $as_nop
4234 ac_compiler_gnu=no
4235 fi
4236 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4237 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4238
4239 fi
4240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4241 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4243
4244 if test $ac_compiler_gnu = yes; then
4245 GCC=yes
4246 else
4247 GCC=
4248 fi
4249 ac_test_CFLAGS=${CFLAGS+y}
4250 ac_save_CFLAGS=$CFLAGS
4251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4252 printf %s "checking whether $CC accepts -g... " >&6; }
4253 if test ${ac_cv_prog_cc_g+y}
4254 then :
4255 printf %s "(cached) " >&6
4256 else $as_nop
4257 ac_save_c_werror_flag=$ac_c_werror_flag
4258 ac_c_werror_flag=yes
4259 ac_cv_prog_cc_g=no
4260 CFLAGS="-g"
4261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262 /* end confdefs.h. */
4263
4264 int
4265 main (void)
4266 {
4267
4268 ;
4269 return 0;
4270 }
4271 _ACEOF
4272 if ac_fn_c_try_compile "$LINENO"
4273 then :
4274 ac_cv_prog_cc_g=yes
4275 else $as_nop
4276 CFLAGS=""
4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h. */
4279
4280 int
4281 main (void)
4282 {
4283
4284 ;
4285 return 0;
4286 }
4287 _ACEOF
4288 if ac_fn_c_try_compile "$LINENO"
4289 then :
4290
4291 else $as_nop
4292 ac_c_werror_flag=$ac_save_c_werror_flag
4293 CFLAGS="-g"
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4296
4297 int
4298 main (void)
4299 {
4300
4301 ;
4302 return 0;
4303 }
4304 _ACEOF
4305 if ac_fn_c_try_compile "$LINENO"
4306 then :
4307 ac_cv_prog_cc_g=yes
4308 fi
4309 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4310 fi
4311 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4312 fi
4313 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4314 ac_c_werror_flag=$ac_save_c_werror_flag
4315 fi
4316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4317 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4318 if test $ac_test_CFLAGS; then
4319 CFLAGS=$ac_save_CFLAGS
4320 elif test $ac_cv_prog_cc_g = yes; then
4321 if test "$GCC" = yes; then
4322 CFLAGS="-g -O2"
4323 else
4324 CFLAGS="-g"
4325 fi
4326 else
4327 if test "$GCC" = yes; then
4328 CFLAGS="-O2"
4329 else
4330 CFLAGS=
4331 fi
4332 fi
4333 ac_prog_cc_stdc=no
4334 if test x$ac_prog_cc_stdc = xno
4335 then :
4336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4337 printf %s "checking for $CC option to enable C11 features... " >&6; }
4338 if test ${ac_cv_prog_cc_c11+y}
4339 then :
4340 printf %s "(cached) " >&6
4341 else $as_nop
4342 ac_cv_prog_cc_c11=no
4343 ac_save_CC=$CC
4344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345 /* end confdefs.h. */
4346 $ac_c_conftest_c11_program
4347 _ACEOF
4348 for ac_arg in '' -std=gnu11
4349 do
4350 CC="$ac_save_CC $ac_arg"
4351 if ac_fn_c_try_compile "$LINENO"
4352 then :
4353 ac_cv_prog_cc_c11=$ac_arg
4354 fi
4355 rm -f core conftest.err conftest.$ac_objext conftest.beam
4356 test "x$ac_cv_prog_cc_c11" != "xno" && break
4357 done
4358 rm -f conftest.$ac_ext
4359 CC=$ac_save_CC
4360 fi
4361
4362 if test "x$ac_cv_prog_cc_c11" = xno
4363 then :
4364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4365 printf "%s\n" "unsupported" >&6; }
4366 else $as_nop
4367 if test "x$ac_cv_prog_cc_c11" = x
4368 then :
4369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4370 printf "%s\n" "none needed" >&6; }
4371 else $as_nop
4372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4373 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4374 CC="$CC $ac_cv_prog_cc_c11"
4375 fi
4376 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4377 ac_prog_cc_stdc=c11
4378 fi
4379 fi
4380 if test x$ac_prog_cc_stdc = xno
4381 then :
4382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4383 printf %s "checking for $CC option to enable C99 features... " >&6; }
4384 if test ${ac_cv_prog_cc_c99+y}
4385 then :
4386 printf %s "(cached) " >&6
4387 else $as_nop
4388 ac_cv_prog_cc_c99=no
4389 ac_save_CC=$CC
4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h. */
4392 $ac_c_conftest_c99_program
4393 _ACEOF
4394 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4395 do
4396 CC="$ac_save_CC $ac_arg"
4397 if ac_fn_c_try_compile "$LINENO"
4398 then :
4399 ac_cv_prog_cc_c99=$ac_arg
4400 fi
4401 rm -f core conftest.err conftest.$ac_objext conftest.beam
4402 test "x$ac_cv_prog_cc_c99" != "xno" && break
4403 done
4404 rm -f conftest.$ac_ext
4405 CC=$ac_save_CC
4406 fi
4407
4408 if test "x$ac_cv_prog_cc_c99" = xno
4409 then :
4410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4411 printf "%s\n" "unsupported" >&6; }
4412 else $as_nop
4413 if test "x$ac_cv_prog_cc_c99" = x
4414 then :
4415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4416 printf "%s\n" "none needed" >&6; }
4417 else $as_nop
4418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4419 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4420 CC="$CC $ac_cv_prog_cc_c99"
4421 fi
4422 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4423 ac_prog_cc_stdc=c99
4424 fi
4425 fi
4426 if test x$ac_prog_cc_stdc = xno
4427 then :
4428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4429 printf %s "checking for $CC option to enable C89 features... " >&6; }
4430 if test ${ac_cv_prog_cc_c89+y}
4431 then :
4432 printf %s "(cached) " >&6
4433 else $as_nop
4434 ac_cv_prog_cc_c89=no
4435 ac_save_CC=$CC
4436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h. */
4438 $ac_c_conftest_c89_program
4439 _ACEOF
4440 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4441 do
4442 CC="$ac_save_CC $ac_arg"
4443 if ac_fn_c_try_compile "$LINENO"
4444 then :
4445 ac_cv_prog_cc_c89=$ac_arg
4446 fi
4447 rm -f core conftest.err conftest.$ac_objext conftest.beam
4448 test "x$ac_cv_prog_cc_c89" != "xno" && break
4449 done
4450 rm -f conftest.$ac_ext
4451 CC=$ac_save_CC
4452 fi
4453
4454 if test "x$ac_cv_prog_cc_c89" = xno
4455 then :
4456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4457 printf "%s\n" "unsupported" >&6; }
4458 else $as_nop
4459 if test "x$ac_cv_prog_cc_c89" = x
4460 then :
4461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4462 printf "%s\n" "none needed" >&6; }
4463 else $as_nop
4464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4465 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4466 CC="$CC $ac_cv_prog_cc_c89"
4467 fi
4468 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4469 ac_prog_cc_stdc=c89
4470 fi
4471 fi
4472
4473 ac_ext=c
4474 ac_cpp='$CPP $CPPFLAGS'
4475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4478
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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4486 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4487 if test ${am_cv_prog_cc_c_o+y}
4488 then :
4489 printf %s "(cached) " >&6
4490 else $as_nop
4491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492 /* end confdefs.h. */
4493
4494 int
4495 main (void)
4496 {
4497
4498 ;
4499 return 0;
4500 }
4501 _ACEOF
4502 # Make sure it works both with $CC and with simple cc.
4503 # Following AC_PROG_CC_C_O, we do the test twice because some
4504 # compilers refuse to overwrite an existing .o file with -o,
4505 # though they will create one.
4506 am_cv_prog_cc_c_o=yes
4507 for am_i in 1 2; do
4508 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4509 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4510 ac_status=$?
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); } \
4513 && test -f conftest2.$ac_objext; then
4514 : OK
4515 else
4516 am_cv_prog_cc_c_o=no
4517 break
4518 fi
4519 done
4520 rm -f core conftest*
4521 unset am_i
4522 fi
4523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4524 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4525 if test "$am_cv_prog_cc_c_o" != yes; then
4526 # Losing compiler, so override with the script.
4527 # FIXME: It is wrong to rewrite CC.
4528 # But if we don't then we get into trouble of one sort or another.
4529 # A longer-term fix would be to have automake use am__CC in this case,
4530 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4531 CC="$am_aux_dir/compile $CC"
4532 fi
4533 ac_ext=c
4534 ac_cpp='$CPP $CPPFLAGS'
4535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4538
4539
4540 depcc="$CC" am_compiler_list=
4541
4542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4543 printf %s "checking dependency style of $depcc... " >&6; }
4544 if test ${am_cv_CC_dependencies_compiler_type+y}
4545 then :
4546 printf %s "(cached) " >&6
4547 else $as_nop
4548 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4549 # We make a subdir and do the tests there. Otherwise we can end up
4550 # making bogus files that we don't know about and never remove. For
4551 # instance it was reported that on HP-UX the gcc test will end up
4552 # making a dummy file named 'D' -- because '-MD' means "put the output
4553 # in D".
4554 rm -rf conftest.dir
4555 mkdir conftest.dir
4556 # Copy depcomp to subdir because otherwise we won't find it if we're
4557 # using a relative directory.
4558 cp "$am_depcomp" conftest.dir
4559 cd conftest.dir
4560 # We will build objects and dependencies in a subdirectory because
4561 # it helps to detect inapplicable dependency modes. For instance
4562 # both Tru64's cc and ICC support -MD to output dependencies as a
4563 # side effect of compilation, but ICC will put the dependencies in
4564 # the current directory while Tru64 will put them in the object
4565 # directory.
4566 mkdir sub
4567
4568 am_cv_CC_dependencies_compiler_type=none
4569 if test "$am_compiler_list" = ""; then
4570 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4571 fi
4572 am__universal=false
4573 case " $depcc " in #(
4574 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4575 esac
4576
4577 for depmode in $am_compiler_list; do
4578 # Setup a source with many dependencies, because some compilers
4579 # like to wrap large dependency lists on column 80 (with \), and
4580 # we should not choose a depcomp mode which is confused by this.
4581 #
4582 # We need to recreate these files for each test, as the compiler may
4583 # overwrite some of them when testing with obscure command lines.
4584 # This happens at least with the AIX C compiler.
4585 : > sub/conftest.c
4586 for i in 1 2 3 4 5 6; do
4587 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4588 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4589 # Solaris 10 /bin/sh.
4590 echo '/* dummy */' > sub/conftst$i.h
4591 done
4592 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4593
4594 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4595 # mode. It turns out that the SunPro C++ compiler does not properly
4596 # handle '-M -o', and we need to detect this. Also, some Intel
4597 # versions had trouble with output in subdirs.
4598 am__obj=sub/conftest.${OBJEXT-o}
4599 am__minus_obj="-o $am__obj"
4600 case $depmode in
4601 gcc)
4602 # This depmode causes a compiler race in universal mode.
4603 test "$am__universal" = false || continue
4604 ;;
4605 nosideeffect)
4606 # After this tag, mechanisms are not by side-effect, so they'll
4607 # only be used when explicitly requested.
4608 if test "x$enable_dependency_tracking" = xyes; then
4609 continue
4610 else
4611 break
4612 fi
4613 ;;
4614 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4615 # This compiler won't grok '-c -o', but also, the minuso test has
4616 # not run yet. These depmodes are late enough in the game, and
4617 # so weak that their functioning should not be impacted.
4618 am__obj=conftest.${OBJEXT-o}
4619 am__minus_obj=
4620 ;;
4621 none) break ;;
4622 esac
4623 if depmode=$depmode \
4624 source=sub/conftest.c object=$am__obj \
4625 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4626 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4627 >/dev/null 2>conftest.err &&
4628 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4629 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4630 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4631 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4632 # icc doesn't choke on unknown options, it will just issue warnings
4633 # or remarks (even with -Werror). So we grep stderr for any message
4634 # that says an option was ignored or not supported.
4635 # When given -MP, icc 7.0 and 7.1 complain thusly:
4636 # icc: Command line warning: ignoring option '-M'; no argument required
4637 # The diagnosis changed in icc 8.0:
4638 # icc: Command line remark: option '-MP' not supported
4639 if (grep 'ignoring option' conftest.err ||
4640 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4641 am_cv_CC_dependencies_compiler_type=$depmode
4642 break
4643 fi
4644 fi
4645 done
4646
4647 cd ..
4648 rm -rf conftest.dir
4649 else
4650 am_cv_CC_dependencies_compiler_type=none
4651 fi
4652
4653 fi
4654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4655 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4656 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4657
4658 if
4659 test "x$enable_dependency_tracking" != xno \
4660 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4661 am__fastdepCC_TRUE=
4662 am__fastdepCC_FALSE='#'
4663 else
4664 am__fastdepCC_TRUE='#'
4665 am__fastdepCC_FALSE=
4666 fi
4667
4668
4669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4670 printf %s "checking for a sed that does not truncate output... " >&6; }
4671 if test ${ac_cv_path_SED+y}
4672 then :
4673 printf %s "(cached) " >&6
4674 else $as_nop
4675 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4676 for ac_i in 1 2 3 4 5 6 7; do
4677 ac_script="$ac_script$as_nl$ac_script"
4678 done
4679 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4680 { ac_script=; unset ac_script;}
4681 if test -z "$SED"; then
4682 ac_path_SED_found=false
4683 # Loop through the user's path and test for each of PROGNAME-LIST
4684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685 for as_dir in $PATH
4686 do
4687 IFS=$as_save_IFS
4688 case $as_dir in #(((
4689 '') as_dir=./ ;;
4690 */) ;;
4691 *) as_dir=$as_dir/ ;;
4692 esac
4693 for ac_prog in sed gsed
4694 do
4695 for ac_exec_ext in '' $ac_executable_extensions; do
4696 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4697 as_fn_executable_p "$ac_path_SED" || continue
4698 # Check for GNU ac_path_SED and select it if it is found.
4699 # Check for GNU $ac_path_SED
4700 case `"$ac_path_SED" --version 2>&1` in
4701 *GNU*)
4702 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4703 *)
4704 ac_count=0
4705 printf %s 0123456789 >"conftest.in"
4706 while :
4707 do
4708 cat "conftest.in" "conftest.in" >"conftest.tmp"
4709 mv "conftest.tmp" "conftest.in"
4710 cp "conftest.in" "conftest.nl"
4711 printf "%s\n" '' >> "conftest.nl"
4712 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4713 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4714 as_fn_arith $ac_count + 1 && ac_count=$as_val
4715 if test $ac_count -gt ${ac_path_SED_max-0}; then
4716 # Best one so far, save it but keep looking for a better one
4717 ac_cv_path_SED="$ac_path_SED"
4718 ac_path_SED_max=$ac_count
4719 fi
4720 # 10*(2^10) chars as input seems more than enough
4721 test $ac_count -gt 10 && break
4722 done
4723 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4724 esac
4725
4726 $ac_path_SED_found && break 3
4727 done
4728 done
4729 done
4730 IFS=$as_save_IFS
4731 if test -z "$ac_cv_path_SED"; then
4732 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4733 fi
4734 else
4735 ac_cv_path_SED=$SED
4736 fi
4737
4738 fi
4739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4740 printf "%s\n" "$ac_cv_path_SED" >&6; }
4741 SED="$ac_cv_path_SED"
4742 rm -f conftest.sed
4743
4744 test -z "$SED" && SED=sed
4745 Xsed="$SED -e 1s/^X//"
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4758 printf %s "checking for grep that handles long lines and -e... " >&6; }
4759 if test ${ac_cv_path_GREP+y}
4760 then :
4761 printf %s "(cached) " >&6
4762 else $as_nop
4763 if test -z "$GREP"; then
4764 ac_path_GREP_found=false
4765 # Loop through the user's path and test for each of PROGNAME-LIST
4766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4768 do
4769 IFS=$as_save_IFS
4770 case $as_dir in #(((
4771 '') as_dir=./ ;;
4772 */) ;;
4773 *) as_dir=$as_dir/ ;;
4774 esac
4775 for ac_prog in grep ggrep
4776 do
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4779 as_fn_executable_p "$ac_path_GREP" || continue
4780 # Check for GNU ac_path_GREP and select it if it is found.
4781 # Check for GNU $ac_path_GREP
4782 case `"$ac_path_GREP" --version 2>&1` in
4783 *GNU*)
4784 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4785 *)
4786 ac_count=0
4787 printf %s 0123456789 >"conftest.in"
4788 while :
4789 do
4790 cat "conftest.in" "conftest.in" >"conftest.tmp"
4791 mv "conftest.tmp" "conftest.in"
4792 cp "conftest.in" "conftest.nl"
4793 printf "%s\n" 'GREP' >> "conftest.nl"
4794 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4795 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4796 as_fn_arith $ac_count + 1 && ac_count=$as_val
4797 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4798 # Best one so far, save it but keep looking for a better one
4799 ac_cv_path_GREP="$ac_path_GREP"
4800 ac_path_GREP_max=$ac_count
4801 fi
4802 # 10*(2^10) chars as input seems more than enough
4803 test $ac_count -gt 10 && break
4804 done
4805 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4806 esac
4807
4808 $ac_path_GREP_found && break 3
4809 done
4810 done
4811 done
4812 IFS=$as_save_IFS
4813 if test -z "$ac_cv_path_GREP"; then
4814 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4815 fi
4816 else
4817 ac_cv_path_GREP=$GREP
4818 fi
4819
4820 fi
4821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4822 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4823 GREP="$ac_cv_path_GREP"
4824
4825
4826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4827 printf %s "checking for egrep... " >&6; }
4828 if test ${ac_cv_path_EGREP+y}
4829 then :
4830 printf %s "(cached) " >&6
4831 else $as_nop
4832 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4833 then ac_cv_path_EGREP="$GREP -E"
4834 else
4835 if test -z "$EGREP"; then
4836 ac_path_EGREP_found=false
4837 # Loop through the user's path and test for each of PROGNAME-LIST
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4840 do
4841 IFS=$as_save_IFS
4842 case $as_dir in #(((
4843 '') as_dir=./ ;;
4844 */) ;;
4845 *) as_dir=$as_dir/ ;;
4846 esac
4847 for ac_prog in egrep
4848 do
4849 for ac_exec_ext in '' $ac_executable_extensions; do
4850 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4851 as_fn_executable_p "$ac_path_EGREP" || continue
4852 # Check for GNU ac_path_EGREP and select it if it is found.
4853 # Check for GNU $ac_path_EGREP
4854 case `"$ac_path_EGREP" --version 2>&1` in
4855 *GNU*)
4856 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4857 *)
4858 ac_count=0
4859 printf %s 0123456789 >"conftest.in"
4860 while :
4861 do
4862 cat "conftest.in" "conftest.in" >"conftest.tmp"
4863 mv "conftest.tmp" "conftest.in"
4864 cp "conftest.in" "conftest.nl"
4865 printf "%s\n" 'EGREP' >> "conftest.nl"
4866 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4867 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4868 as_fn_arith $ac_count + 1 && ac_count=$as_val
4869 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4870 # Best one so far, save it but keep looking for a better one
4871 ac_cv_path_EGREP="$ac_path_EGREP"
4872 ac_path_EGREP_max=$ac_count
4873 fi
4874 # 10*(2^10) chars as input seems more than enough
4875 test $ac_count -gt 10 && break
4876 done
4877 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4878 esac
4879
4880 $ac_path_EGREP_found && break 3
4881 done
4882 done
4883 done
4884 IFS=$as_save_IFS
4885 if test -z "$ac_cv_path_EGREP"; then
4886 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4887 fi
4888 else
4889 ac_cv_path_EGREP=$EGREP
4890 fi
4891
4892 fi
4893 fi
4894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4895 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4896 EGREP="$ac_cv_path_EGREP"
4897
4898
4899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4900 printf %s "checking for fgrep... " >&6; }
4901 if test ${ac_cv_path_FGREP+y}
4902 then :
4903 printf %s "(cached) " >&6
4904 else $as_nop
4905 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4906 then ac_cv_path_FGREP="$GREP -F"
4907 else
4908 if test -z "$FGREP"; then
4909 ac_path_FGREP_found=false
4910 # Loop through the user's path and test for each of PROGNAME-LIST
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4913 do
4914 IFS=$as_save_IFS
4915 case $as_dir in #(((
4916 '') as_dir=./ ;;
4917 */) ;;
4918 *) as_dir=$as_dir/ ;;
4919 esac
4920 for ac_prog in fgrep
4921 do
4922 for ac_exec_ext in '' $ac_executable_extensions; do
4923 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4924 as_fn_executable_p "$ac_path_FGREP" || continue
4925 # Check for GNU ac_path_FGREP and select it if it is found.
4926 # Check for GNU $ac_path_FGREP
4927 case `"$ac_path_FGREP" --version 2>&1` in
4928 *GNU*)
4929 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4930 *)
4931 ac_count=0
4932 printf %s 0123456789 >"conftest.in"
4933 while :
4934 do
4935 cat "conftest.in" "conftest.in" >"conftest.tmp"
4936 mv "conftest.tmp" "conftest.in"
4937 cp "conftest.in" "conftest.nl"
4938 printf "%s\n" 'FGREP' >> "conftest.nl"
4939 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4940 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4941 as_fn_arith $ac_count + 1 && ac_count=$as_val
4942 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4943 # Best one so far, save it but keep looking for a better one
4944 ac_cv_path_FGREP="$ac_path_FGREP"
4945 ac_path_FGREP_max=$ac_count
4946 fi
4947 # 10*(2^10) chars as input seems more than enough
4948 test $ac_count -gt 10 && break
4949 done
4950 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4951 esac
4952
4953 $ac_path_FGREP_found && break 3
4954 done
4955 done
4956 done
4957 IFS=$as_save_IFS
4958 if test -z "$ac_cv_path_FGREP"; then
4959 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4960 fi
4961 else
4962 ac_cv_path_FGREP=$FGREP
4963 fi
4964
4965 fi
4966 fi
4967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4968 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4969 FGREP="$ac_cv_path_FGREP"
4970
4971
4972 test -z "$GREP" && GREP=grep
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992 # Check whether --with-gnu-ld was given.
4993 if test ${with_gnu_ld+y}
4994 then :
4995 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4996 else $as_nop
4997 with_gnu_ld=no
4998 fi
4999
5000 ac_prog=ld
5001 if test yes = "$GCC"; then
5002 # Check if gcc -print-prog-name=ld gives a path.
5003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5004 printf %s "checking for ld used by $CC... " >&6; }
5005 case $host in
5006 *-*-mingw*)
5007 # gcc leaves a trailing carriage return, which upsets mingw
5008 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5009 *)
5010 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5011 esac
5012 case $ac_prog in
5013 # Accept absolute paths.
5014 [\\/]* | ?:[\\/]*)
5015 re_direlt='/[^/][^/]*/\.\./'
5016 # Canonicalize the pathname of ld
5017 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5018 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5019 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5020 done
5021 test -z "$LD" && LD=$ac_prog
5022 ;;
5023 "")
5024 # If it fails, then pretend we aren't using GCC.
5025 ac_prog=ld
5026 ;;
5027 *)
5028 # If it is relative, then search for the first ld in PATH.
5029 with_gnu_ld=unknown
5030 ;;
5031 esac
5032 elif test yes = "$with_gnu_ld"; then
5033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5034 printf %s "checking for GNU ld... " >&6; }
5035 else
5036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5037 printf %s "checking for non-GNU ld... " >&6; }
5038 fi
5039 if test ${lt_cv_path_LD+y}
5040 then :
5041 printf %s "(cached) " >&6
5042 else $as_nop
5043 if test -z "$LD"; then
5044 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5045 for ac_dir in $PATH; do
5046 IFS=$lt_save_ifs
5047 test -z "$ac_dir" && ac_dir=.
5048 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5049 lt_cv_path_LD=$ac_dir/$ac_prog
5050 # Check to see if the program is GNU ld. I'd rather use --version,
5051 # but apparently some variants of GNU ld only accept -v.
5052 # Break only if it was the GNU/non-GNU ld that we prefer.
5053 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5054 *GNU* | *'with BFD'*)
5055 test no != "$with_gnu_ld" && break
5056 ;;
5057 *)
5058 test yes != "$with_gnu_ld" && break
5059 ;;
5060 esac
5061 fi
5062 done
5063 IFS=$lt_save_ifs
5064 else
5065 lt_cv_path_LD=$LD # Let the user override the test with a path.
5066 fi
5067 fi
5068
5069 LD=$lt_cv_path_LD
5070 if test -n "$LD"; then
5071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5072 printf "%s\n" "$LD" >&6; }
5073 else
5074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075 printf "%s\n" "no" >&6; }
5076 fi
5077 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5079 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5080 if test ${lt_cv_prog_gnu_ld+y}
5081 then :
5082 printf %s "(cached) " >&6
5083 else $as_nop
5084 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5085 case `$LD -v 2>&1 </dev/null` in
5086 *GNU* | *'with BFD'*)
5087 lt_cv_prog_gnu_ld=yes
5088 ;;
5089 *)
5090 lt_cv_prog_gnu_ld=no
5091 ;;
5092 esac
5093 fi
5094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5095 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5096 with_gnu_ld=$lt_cv_prog_gnu_ld
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5107 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5108 if test ${lt_cv_path_NM+y}
5109 then :
5110 printf %s "(cached) " >&6
5111 else $as_nop
5112 if test -n "$NM"; then
5113 # Let the user override the test.
5114 lt_cv_path_NM=$NM
5115 else
5116 lt_nm_to_check=${ac_tool_prefix}nm
5117 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5118 lt_nm_to_check="$lt_nm_to_check nm"
5119 fi
5120 for lt_tmp_nm in $lt_nm_to_check; do
5121 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5122 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5123 IFS=$lt_save_ifs
5124 test -z "$ac_dir" && ac_dir=.
5125 tmp_nm=$ac_dir/$lt_tmp_nm
5126 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5127 # Check to see if the nm accepts a BSD-compat flag.
5128 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5129 # nm: unknown option "B" ignored
5130 # Tru64's nm complains that /dev/null is an invalid object file
5131 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5132 case $build_os in
5133 mingw*) lt_bad_file=conftest.nm/nofile ;;
5134 *) lt_bad_file=/dev/null ;;
5135 esac
5136 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5137 *$lt_bad_file* | *'Invalid file or object type'*)
5138 lt_cv_path_NM="$tmp_nm -B"
5139 break 2
5140 ;;
5141 *)
5142 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5143 */dev/null*)
5144 lt_cv_path_NM="$tmp_nm -p"
5145 break 2
5146 ;;
5147 *)
5148 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5149 continue # so that we can try to find one that supports BSD flags
5150 ;;
5151 esac
5152 ;;
5153 esac
5154 fi
5155 done
5156 IFS=$lt_save_ifs
5157 done
5158 : ${lt_cv_path_NM=no}
5159 fi
5160 fi
5161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5162 printf "%s\n" "$lt_cv_path_NM" >&6; }
5163 if test no != "$lt_cv_path_NM"; then
5164 NM=$lt_cv_path_NM
5165 else
5166 # Didn't find any BSD compatible name lister, look for dumpbin.
5167 if test -n "$DUMPBIN"; then :
5168 # Let the user override the test.
5169 else
5170 if test -n "$ac_tool_prefix"; then
5171 for ac_prog in dumpbin "link -dump"
5172 do
5173 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5174 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5176 printf %s "checking for $ac_word... " >&6; }
5177 if test ${ac_cv_prog_DUMPBIN+y}
5178 then :
5179 printf %s "(cached) " >&6
5180 else $as_nop
5181 if test -n "$DUMPBIN"; then
5182 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5183 else
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 for as_dir in $PATH
5186 do
5187 IFS=$as_save_IFS
5188 case $as_dir in #(((
5189 '') as_dir=./ ;;
5190 */) ;;
5191 *) as_dir=$as_dir/ ;;
5192 esac
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5195 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5196 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5197 break 2
5198 fi
5199 done
5200 done
5201 IFS=$as_save_IFS
5202
5203 fi
5204 fi
5205 DUMPBIN=$ac_cv_prog_DUMPBIN
5206 if test -n "$DUMPBIN"; then
5207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5208 printf "%s\n" "$DUMPBIN" >&6; }
5209 else
5210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 printf "%s\n" "no" >&6; }
5212 fi
5213
5214
5215 test -n "$DUMPBIN" && break
5216 done
5217 fi
5218 if test -z "$DUMPBIN"; then
5219 ac_ct_DUMPBIN=$DUMPBIN
5220 for ac_prog in dumpbin "link -dump"
5221 do
5222 # Extract the first word of "$ac_prog", so it can be a program name with args.
5223 set dummy $ac_prog; ac_word=$2
5224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5225 printf %s "checking for $ac_word... " >&6; }
5226 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5227 then :
5228 printf %s "(cached) " >&6
5229 else $as_nop
5230 if test -n "$ac_ct_DUMPBIN"; then
5231 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5232 else
5233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 for as_dir in $PATH
5235 do
5236 IFS=$as_save_IFS
5237 case $as_dir in #(((
5238 '') as_dir=./ ;;
5239 */) ;;
5240 *) as_dir=$as_dir/ ;;
5241 esac
5242 for ac_exec_ext in '' $ac_executable_extensions; do
5243 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5244 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5246 break 2
5247 fi
5248 done
5249 done
5250 IFS=$as_save_IFS
5251
5252 fi
5253 fi
5254 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5255 if test -n "$ac_ct_DUMPBIN"; then
5256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5257 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5258 else
5259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5260 printf "%s\n" "no" >&6; }
5261 fi
5262
5263
5264 test -n "$ac_ct_DUMPBIN" && break
5265 done
5266
5267 if test "x$ac_ct_DUMPBIN" = x; then
5268 DUMPBIN=":"
5269 else
5270 case $cross_compiling:$ac_tool_warned in
5271 yes:)
5272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5273 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5274 ac_tool_warned=yes ;;
5275 esac
5276 DUMPBIN=$ac_ct_DUMPBIN
5277 fi
5278 fi
5279
5280 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5281 *COFF*)
5282 DUMPBIN="$DUMPBIN -symbols -headers"
5283 ;;
5284 *)
5285 DUMPBIN=:
5286 ;;
5287 esac
5288 fi
5289
5290 if test : != "$DUMPBIN"; then
5291 NM=$DUMPBIN
5292 fi
5293 fi
5294 test -z "$NM" && NM=nm
5295
5296
5297
5298
5299
5300
5301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5302 printf %s "checking the name lister ($NM) interface... " >&6; }
5303 if test ${lt_cv_nm_interface+y}
5304 then :
5305 printf %s "(cached) " >&6
5306 else $as_nop
5307 lt_cv_nm_interface="BSD nm"
5308 echo "int some_variable = 0;" > conftest.$ac_ext
5309 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5310 (eval "$ac_compile" 2>conftest.err)
5311 cat conftest.err >&5
5312 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5313 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5314 cat conftest.err >&5
5315 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5316 cat conftest.out >&5
5317 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5318 lt_cv_nm_interface="MS dumpbin"
5319 fi
5320 rm -f conftest*
5321 fi
5322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5323 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5324
5325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5326 printf %s "checking whether ln -s works... " >&6; }
5327 LN_S=$as_ln_s
5328 if test "$LN_S" = "ln -s"; then
5329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5330 printf "%s\n" "yes" >&6; }
5331 else
5332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5333 printf "%s\n" "no, using $LN_S" >&6; }
5334 fi
5335
5336 # find the maximum length of command line arguments
5337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5338 printf %s "checking the maximum length of command line arguments... " >&6; }
5339 if test ${lt_cv_sys_max_cmd_len+y}
5340 then :
5341 printf %s "(cached) " >&6
5342 else $as_nop
5343 i=0
5344 teststring=ABCD
5345
5346 case $build_os in
5347 msdosdjgpp*)
5348 # On DJGPP, this test can blow up pretty badly due to problems in libc
5349 # (any single argument exceeding 2000 bytes causes a buffer overrun
5350 # during glob expansion). Even if it were fixed, the result of this
5351 # check would be larger than it should be.
5352 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5353 ;;
5354
5355 gnu*)
5356 # Under GNU Hurd, this test is not required because there is
5357 # no limit to the length of command line arguments.
5358 # Libtool will interpret -1 as no limit whatsoever
5359 lt_cv_sys_max_cmd_len=-1;
5360 ;;
5361
5362 cygwin* | mingw* | cegcc*)
5363 # On Win9x/ME, this test blows up -- it succeeds, but takes
5364 # about 5 minutes as the teststring grows exponentially.
5365 # Worse, since 9x/ME are not pre-emptively multitasking,
5366 # you end up with a "frozen" computer, even though with patience
5367 # the test eventually succeeds (with a max line length of 256k).
5368 # Instead, let's just punt: use the minimum linelength reported by
5369 # all of the supported platforms: 8192 (on NT/2K/XP).
5370 lt_cv_sys_max_cmd_len=8192;
5371 ;;
5372
5373 mint*)
5374 # On MiNT this can take a long time and run out of memory.
5375 lt_cv_sys_max_cmd_len=8192;
5376 ;;
5377
5378 amigaos*)
5379 # On AmigaOS with pdksh, this test takes hours, literally.
5380 # So we just punt and use a minimum line length of 8192.
5381 lt_cv_sys_max_cmd_len=8192;
5382 ;;
5383
5384 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5385 # This has been around since 386BSD, at least. Likely further.
5386 if test -x /sbin/sysctl; then
5387 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5388 elif test -x /usr/sbin/sysctl; then
5389 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5390 else
5391 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5392 fi
5393 # And add a safety zone
5394 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5395 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5396 ;;
5397
5398 interix*)
5399 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5400 lt_cv_sys_max_cmd_len=196608
5401 ;;
5402
5403 os2*)
5404 # The test takes a long time on OS/2.
5405 lt_cv_sys_max_cmd_len=8192
5406 ;;
5407
5408 osf*)
5409 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5410 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5411 # nice to cause kernel panics so lets avoid the loop below.
5412 # First set a reasonable default.
5413 lt_cv_sys_max_cmd_len=16384
5414 #
5415 if test -x /sbin/sysconfig; then
5416 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5417 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5418 esac
5419 fi
5420 ;;
5421 sco3.2v5*)
5422 lt_cv_sys_max_cmd_len=102400
5423 ;;
5424 sysv5* | sco5v6* | sysv4.2uw2*)
5425 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5426 if test -n "$kargmax"; then
5427 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5428 else
5429 lt_cv_sys_max_cmd_len=32768
5430 fi
5431 ;;
5432 *)
5433 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5434 if test -n "$lt_cv_sys_max_cmd_len" && \
5435 test undefined != "$lt_cv_sys_max_cmd_len"; then
5436 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5437 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5438 else
5439 # Make teststring a little bigger before we do anything with it.
5440 # a 1K string should be a reasonable start.
5441 for i in 1 2 3 4 5 6 7 8; do
5442 teststring=$teststring$teststring
5443 done
5444 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5445 # If test is not a shell built-in, we'll probably end up computing a
5446 # maximum length that is only half of the actual maximum length, but
5447 # we can't tell.
5448 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5449 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5450 test 17 != "$i" # 1/2 MB should be enough
5451 do
5452 i=`expr $i + 1`
5453 teststring=$teststring$teststring
5454 done
5455 # Only check the string length outside the loop.
5456 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5457 teststring=
5458 # Add a significant safety factor because C++ compilers can tack on
5459 # massive amounts of additional arguments before passing them to the
5460 # linker. It appears as though 1/2 is a usable value.
5461 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5462 fi
5463 ;;
5464 esac
5465
5466 fi
5467
5468 if test -n "$lt_cv_sys_max_cmd_len"; then
5469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5470 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5471 else
5472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5473 printf "%s\n" "none" >&6; }
5474 fi
5475 max_cmd_len=$lt_cv_sys_max_cmd_len
5476
5477
5478
5479
5480
5481
5482 : ${CP="cp -f"}
5483 : ${MV="mv -f"}
5484 : ${RM="rm -f"}
5485
5486 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5487 lt_unset=unset
5488 else
5489 lt_unset=false
5490 fi
5491
5492
5493
5494
5495
5496 # test EBCDIC or ASCII
5497 case `echo X|tr X '\101'` in
5498 A) # ASCII based system
5499 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5500 lt_SP2NL='tr \040 \012'
5501 lt_NL2SP='tr \015\012 \040\040'
5502 ;;
5503 *) # EBCDIC based system
5504 lt_SP2NL='tr \100 \n'
5505 lt_NL2SP='tr \r\n \100\100'
5506 ;;
5507 esac
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5518 printf %s "checking how to convert $build file names to $host format... " >&6; }
5519 if test ${lt_cv_to_host_file_cmd+y}
5520 then :
5521 printf %s "(cached) " >&6
5522 else $as_nop
5523 case $host in
5524 *-*-mingw* )
5525 case $build in
5526 *-*-mingw* ) # actually msys
5527 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5528 ;;
5529 *-*-cygwin* )
5530 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5531 ;;
5532 * ) # otherwise, assume *nix
5533 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5534 ;;
5535 esac
5536 ;;
5537 *-*-cygwin* )
5538 case $build in
5539 *-*-mingw* ) # actually msys
5540 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5541 ;;
5542 *-*-cygwin* )
5543 lt_cv_to_host_file_cmd=func_convert_file_noop
5544 ;;
5545 * ) # otherwise, assume *nix
5546 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5547 ;;
5548 esac
5549 ;;
5550 * ) # unhandled hosts (and "normal" native builds)
5551 lt_cv_to_host_file_cmd=func_convert_file_noop
5552 ;;
5553 esac
5554
5555 fi
5556
5557 to_host_file_cmd=$lt_cv_to_host_file_cmd
5558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5559 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5560
5561
5562
5563
5564
5565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5566 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5567 if test ${lt_cv_to_tool_file_cmd+y}
5568 then :
5569 printf %s "(cached) " >&6
5570 else $as_nop
5571 #assume ordinary cross tools, or native build.
5572 lt_cv_to_tool_file_cmd=func_convert_file_noop
5573 case $host in
5574 *-*-mingw* )
5575 case $build in
5576 *-*-mingw* ) # actually msys
5577 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5578 ;;
5579 esac
5580 ;;
5581 esac
5582
5583 fi
5584
5585 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5587 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5588
5589
5590
5591
5592
5593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5594 printf %s "checking for $LD option to reload object files... " >&6; }
5595 if test ${lt_cv_ld_reload_flag+y}
5596 then :
5597 printf %s "(cached) " >&6
5598 else $as_nop
5599 lt_cv_ld_reload_flag='-r'
5600 fi
5601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5602 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5603 reload_flag=$lt_cv_ld_reload_flag
5604 case $reload_flag in
5605 "" | " "*) ;;
5606 *) reload_flag=" $reload_flag" ;;
5607 esac
5608 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5609 case $host_os in
5610 cygwin* | mingw* | pw32* | cegcc*)
5611 if test yes != "$GCC"; then
5612 reload_cmds=false
5613 fi
5614 ;;
5615 darwin*)
5616 if test yes = "$GCC"; then
5617 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5618 else
5619 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5620 fi
5621 ;;
5622 esac
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632 if test -n "$ac_tool_prefix"; then
5633 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5634 set dummy ${ac_tool_prefix}file; ac_word=$2
5635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5636 printf %s "checking for $ac_word... " >&6; }
5637 if test ${ac_cv_prog_FILECMD+y}
5638 then :
5639 printf %s "(cached) " >&6
5640 else $as_nop
5641 if test -n "$FILECMD"; then
5642 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5643 else
5644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 for as_dir in $PATH
5646 do
5647 IFS=$as_save_IFS
5648 case $as_dir in #(((
5649 '') as_dir=./ ;;
5650 */) ;;
5651 *) as_dir=$as_dir/ ;;
5652 esac
5653 for ac_exec_ext in '' $ac_executable_extensions; do
5654 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5655 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5656 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5657 break 2
5658 fi
5659 done
5660 done
5661 IFS=$as_save_IFS
5662
5663 fi
5664 fi
5665 FILECMD=$ac_cv_prog_FILECMD
5666 if test -n "$FILECMD"; then
5667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5668 printf "%s\n" "$FILECMD" >&6; }
5669 else
5670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671 printf "%s\n" "no" >&6; }
5672 fi
5673
5674
5675 fi
5676 if test -z "$ac_cv_prog_FILECMD"; then
5677 ac_ct_FILECMD=$FILECMD
5678 # Extract the first word of "file", so it can be a program name with args.
5679 set dummy file; ac_word=$2
5680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5681 printf %s "checking for $ac_word... " >&6; }
5682 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5683 then :
5684 printf %s "(cached) " >&6
5685 else $as_nop
5686 if test -n "$ac_ct_FILECMD"; then
5687 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5688 else
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690 for as_dir in $PATH
5691 do
5692 IFS=$as_save_IFS
5693 case $as_dir in #(((
5694 '') as_dir=./ ;;
5695 */) ;;
5696 *) as_dir=$as_dir/ ;;
5697 esac
5698 for ac_exec_ext in '' $ac_executable_extensions; do
5699 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5700 ac_cv_prog_ac_ct_FILECMD="file"
5701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5702 break 2
5703 fi
5704 done
5705 done
5706 IFS=$as_save_IFS
5707
5708 fi
5709 fi
5710 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5711 if test -n "$ac_ct_FILECMD"; then
5712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5713 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5714 else
5715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5716 printf "%s\n" "no" >&6; }
5717 fi
5718
5719 if test "x$ac_ct_FILECMD" = x; then
5720 FILECMD=":"
5721 else
5722 case $cross_compiling:$ac_tool_warned in
5723 yes:)
5724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5725 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5726 ac_tool_warned=yes ;;
5727 esac
5728 FILECMD=$ac_ct_FILECMD
5729 fi
5730 else
5731 FILECMD="$ac_cv_prog_FILECMD"
5732 fi
5733
5734
5735
5736
5737
5738
5739
5740 if test -n "$ac_tool_prefix"; then
5741 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5742 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5744 printf %s "checking for $ac_word... " >&6; }
5745 if test ${ac_cv_prog_OBJDUMP+y}
5746 then :
5747 printf %s "(cached) " >&6
5748 else $as_nop
5749 if test -n "$OBJDUMP"; then
5750 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5751 else
5752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753 for as_dir in $PATH
5754 do
5755 IFS=$as_save_IFS
5756 case $as_dir in #(((
5757 '') as_dir=./ ;;
5758 */) ;;
5759 *) as_dir=$as_dir/ ;;
5760 esac
5761 for ac_exec_ext in '' $ac_executable_extensions; do
5762 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5763 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5765 break 2
5766 fi
5767 done
5768 done
5769 IFS=$as_save_IFS
5770
5771 fi
5772 fi
5773 OBJDUMP=$ac_cv_prog_OBJDUMP
5774 if test -n "$OBJDUMP"; then
5775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5776 printf "%s\n" "$OBJDUMP" >&6; }
5777 else
5778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5779 printf "%s\n" "no" >&6; }
5780 fi
5781
5782
5783 fi
5784 if test -z "$ac_cv_prog_OBJDUMP"; then
5785 ac_ct_OBJDUMP=$OBJDUMP
5786 # Extract the first word of "objdump", so it can be a program name with args.
5787 set dummy objdump; ac_word=$2
5788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5789 printf %s "checking for $ac_word... " >&6; }
5790 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5791 then :
5792 printf %s "(cached) " >&6
5793 else $as_nop
5794 if test -n "$ac_ct_OBJDUMP"; then
5795 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5796 else
5797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798 for as_dir in $PATH
5799 do
5800 IFS=$as_save_IFS
5801 case $as_dir in #(((
5802 '') as_dir=./ ;;
5803 */) ;;
5804 *) as_dir=$as_dir/ ;;
5805 esac
5806 for ac_exec_ext in '' $ac_executable_extensions; do
5807 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5808 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5810 break 2
5811 fi
5812 done
5813 done
5814 IFS=$as_save_IFS
5815
5816 fi
5817 fi
5818 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5819 if test -n "$ac_ct_OBJDUMP"; then
5820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5821 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5822 else
5823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5824 printf "%s\n" "no" >&6; }
5825 fi
5826
5827 if test "x$ac_ct_OBJDUMP" = x; then
5828 OBJDUMP="false"
5829 else
5830 case $cross_compiling:$ac_tool_warned in
5831 yes:)
5832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5833 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5834 ac_tool_warned=yes ;;
5835 esac
5836 OBJDUMP=$ac_ct_OBJDUMP
5837 fi
5838 else
5839 OBJDUMP="$ac_cv_prog_OBJDUMP"
5840 fi
5841
5842 test -z "$OBJDUMP" && OBJDUMP=objdump
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5853 printf %s "checking how to recognize dependent libraries... " >&6; }
5854 if test ${lt_cv_deplibs_check_method+y}
5855 then :
5856 printf %s "(cached) " >&6
5857 else $as_nop
5858 lt_cv_file_magic_cmd='$MAGIC_CMD'
5859 lt_cv_file_magic_test_file=
5860 lt_cv_deplibs_check_method='unknown'
5861 # Need to set the preceding variable on all platforms that support
5862 # interlibrary dependencies.
5863 # 'none' -- dependencies not supported.
5864 # 'unknown' -- same as none, but documents that we really don't know.
5865 # 'pass_all' -- all dependencies passed with no checks.
5866 # 'test_compile' -- check by making test program.
5867 # 'file_magic [[regex]]' -- check by looking for files in library path
5868 # that responds to the $file_magic_cmd with a given extended regex.
5869 # If you have 'file' or equivalent on your system and you're not sure
5870 # whether 'pass_all' will *always* work, you probably want this one.
5871
5872 case $host_os in
5873 aix[4-9]*)
5874 lt_cv_deplibs_check_method=pass_all
5875 ;;
5876
5877 beos*)
5878 lt_cv_deplibs_check_method=pass_all
5879 ;;
5880
5881 bsdi[45]*)
5882 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5883 lt_cv_file_magic_cmd='$FILECMD -L'
5884 lt_cv_file_magic_test_file=/shlib/libc.so
5885 ;;
5886
5887 cygwin*)
5888 # func_win32_libid is a shell function defined in ltmain.sh
5889 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5890 lt_cv_file_magic_cmd='func_win32_libid'
5891 ;;
5892
5893 mingw* | pw32*)
5894 # Base MSYS/MinGW do not provide the 'file' command needed by
5895 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5896 # unless we find 'file', for example because we are cross-compiling.
5897 if ( file / ) >/dev/null 2>&1; then
5898 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5899 lt_cv_file_magic_cmd='func_win32_libid'
5900 else
5901 # Keep this pattern in sync with the one in func_win32_libid.
5902 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5903 lt_cv_file_magic_cmd='$OBJDUMP -f'
5904 fi
5905 ;;
5906
5907 cegcc*)
5908 # use the weaker test based on 'objdump'. See mingw*.
5909 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5910 lt_cv_file_magic_cmd='$OBJDUMP -f'
5911 ;;
5912
5913 darwin* | rhapsody*)
5914 lt_cv_deplibs_check_method=pass_all
5915 ;;
5916
5917 freebsd* | dragonfly* | midnightbsd*)
5918 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5919 case $host_cpu in
5920 i*86 )
5921 # Not sure whether the presence of OpenBSD here was a mistake.
5922 # Let's accept both of them until this is cleared up.
5923 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5924 lt_cv_file_magic_cmd=$FILECMD
5925 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5926 ;;
5927 esac
5928 else
5929 lt_cv_deplibs_check_method=pass_all
5930 fi
5931 ;;
5932
5933 haiku*)
5934 lt_cv_deplibs_check_method=pass_all
5935 ;;
5936
5937 hpux10.20* | hpux11*)
5938 lt_cv_file_magic_cmd=$FILECMD
5939 case $host_cpu in
5940 ia64*)
5941 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5942 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5943 ;;
5944 hppa*64*)
5945 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]'
5946 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5947 ;;
5948 *)
5949 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5950 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5951 ;;
5952 esac
5953 ;;
5954
5955 interix[3-9]*)
5956 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5957 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5958 ;;
5959
5960 irix5* | irix6* | nonstopux*)
5961 case $LD in
5962 *-32|*"-32 ") libmagic=32-bit;;
5963 *-n32|*"-n32 ") libmagic=N32;;
5964 *-64|*"-64 ") libmagic=64-bit;;
5965 *) libmagic=never-match;;
5966 esac
5967 lt_cv_deplibs_check_method=pass_all
5968 ;;
5969
5970 # This must be glibc/ELF.
5971 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5972 lt_cv_deplibs_check_method=pass_all
5973 ;;
5974
5975 netbsd*)
5976 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5977 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5978 else
5979 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5980 fi
5981 ;;
5982
5983 newos6*)
5984 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5985 lt_cv_file_magic_cmd=$FILECMD
5986 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5987 ;;
5988
5989 *nto* | *qnx*)
5990 lt_cv_deplibs_check_method=pass_all
5991 ;;
5992
5993 openbsd* | bitrig*)
5994 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5995 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5996 else
5997 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5998 fi
5999 ;;
6000
6001 osf3* | osf4* | osf5*)
6002 lt_cv_deplibs_check_method=pass_all
6003 ;;
6004
6005 rdos*)
6006 lt_cv_deplibs_check_method=pass_all
6007 ;;
6008
6009 solaris*)
6010 lt_cv_deplibs_check_method=pass_all
6011 ;;
6012
6013 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6014 lt_cv_deplibs_check_method=pass_all
6015 ;;
6016
6017 sysv4 | sysv4.3*)
6018 case $host_vendor in
6019 motorola)
6020 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]'
6021 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6022 ;;
6023 ncr)
6024 lt_cv_deplibs_check_method=pass_all
6025 ;;
6026 sequent)
6027 lt_cv_file_magic_cmd='/bin/file'
6028 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6029 ;;
6030 sni)
6031 lt_cv_file_magic_cmd='/bin/file'
6032 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6033 lt_cv_file_magic_test_file=/lib/libc.so
6034 ;;
6035 siemens)
6036 lt_cv_deplibs_check_method=pass_all
6037 ;;
6038 pc)
6039 lt_cv_deplibs_check_method=pass_all
6040 ;;
6041 esac
6042 ;;
6043
6044 tpf*)
6045 lt_cv_deplibs_check_method=pass_all
6046 ;;
6047 os2*)
6048 lt_cv_deplibs_check_method=pass_all
6049 ;;
6050 esac
6051
6052 fi
6053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6054 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6055
6056 file_magic_glob=
6057 want_nocaseglob=no
6058 if test "$build" = "$host"; then
6059 case $host_os in
6060 mingw* | pw32*)
6061 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6062 want_nocaseglob=yes
6063 else
6064 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6065 fi
6066 ;;
6067 esac
6068 fi
6069
6070 file_magic_cmd=$lt_cv_file_magic_cmd
6071 deplibs_check_method=$lt_cv_deplibs_check_method
6072 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095 if test -n "$ac_tool_prefix"; then
6096 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6097 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6099 printf %s "checking for $ac_word... " >&6; }
6100 if test ${ac_cv_prog_DLLTOOL+y}
6101 then :
6102 printf %s "(cached) " >&6
6103 else $as_nop
6104 if test -n "$DLLTOOL"; then
6105 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6106 else
6107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108 for as_dir in $PATH
6109 do
6110 IFS=$as_save_IFS
6111 case $as_dir in #(((
6112 '') as_dir=./ ;;
6113 */) ;;
6114 *) as_dir=$as_dir/ ;;
6115 esac
6116 for ac_exec_ext in '' $ac_executable_extensions; do
6117 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6118 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6119 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6120 break 2
6121 fi
6122 done
6123 done
6124 IFS=$as_save_IFS
6125
6126 fi
6127 fi
6128 DLLTOOL=$ac_cv_prog_DLLTOOL
6129 if test -n "$DLLTOOL"; then
6130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6131 printf "%s\n" "$DLLTOOL" >&6; }
6132 else
6133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6134 printf "%s\n" "no" >&6; }
6135 fi
6136
6137
6138 fi
6139 if test -z "$ac_cv_prog_DLLTOOL"; then
6140 ac_ct_DLLTOOL=$DLLTOOL
6141 # Extract the first word of "dlltool", so it can be a program name with args.
6142 set dummy dlltool; ac_word=$2
6143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6144 printf %s "checking for $ac_word... " >&6; }
6145 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6146 then :
6147 printf %s "(cached) " >&6
6148 else $as_nop
6149 if test -n "$ac_ct_DLLTOOL"; then
6150 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6151 else
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 for as_dir in $PATH
6154 do
6155 IFS=$as_save_IFS
6156 case $as_dir in #(((
6157 '') as_dir=./ ;;
6158 */) ;;
6159 *) as_dir=$as_dir/ ;;
6160 esac
6161 for ac_exec_ext in '' $ac_executable_extensions; do
6162 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6163 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6164 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6165 break 2
6166 fi
6167 done
6168 done
6169 IFS=$as_save_IFS
6170
6171 fi
6172 fi
6173 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6174 if test -n "$ac_ct_DLLTOOL"; then
6175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6176 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6177 else
6178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6179 printf "%s\n" "no" >&6; }
6180 fi
6181
6182 if test "x$ac_ct_DLLTOOL" = x; then
6183 DLLTOOL="false"
6184 else
6185 case $cross_compiling:$ac_tool_warned in
6186 yes:)
6187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6188 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6189 ac_tool_warned=yes ;;
6190 esac
6191 DLLTOOL=$ac_ct_DLLTOOL
6192 fi
6193 else
6194 DLLTOOL="$ac_cv_prog_DLLTOOL"
6195 fi
6196
6197 test -z "$DLLTOOL" && DLLTOOL=dlltool
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6209 printf %s "checking how to associate runtime and link libraries... " >&6; }
6210 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6211 then :
6212 printf %s "(cached) " >&6
6213 else $as_nop
6214 lt_cv_sharedlib_from_linklib_cmd='unknown'
6215
6216 case $host_os in
6217 cygwin* | mingw* | pw32* | cegcc*)
6218 # two different shell functions defined in ltmain.sh;
6219 # decide which one to use based on capabilities of $DLLTOOL
6220 case `$DLLTOOL --help 2>&1` in
6221 *--identify-strict*)
6222 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6223 ;;
6224 *)
6225 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6226 ;;
6227 esac
6228 ;;
6229 *)
6230 # fallback: assume linklib IS sharedlib
6231 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6232 ;;
6233 esac
6234
6235 fi
6236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6237 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6238 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6239 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6240
6241
6242
6243
6244
6245
6246
6247
6248 if test -n "$ac_tool_prefix"; then
6249 for ac_prog in ar
6250 do
6251 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6252 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6254 printf %s "checking for $ac_word... " >&6; }
6255 if test ${ac_cv_prog_AR+y}
6256 then :
6257 printf %s "(cached) " >&6
6258 else $as_nop
6259 if test -n "$AR"; then
6260 ac_cv_prog_AR="$AR" # Let the user override the test.
6261 else
6262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 for as_dir in $PATH
6264 do
6265 IFS=$as_save_IFS
6266 case $as_dir in #(((
6267 '') as_dir=./ ;;
6268 */) ;;
6269 *) as_dir=$as_dir/ ;;
6270 esac
6271 for ac_exec_ext in '' $ac_executable_extensions; do
6272 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6273 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6275 break 2
6276 fi
6277 done
6278 done
6279 IFS=$as_save_IFS
6280
6281 fi
6282 fi
6283 AR=$ac_cv_prog_AR
6284 if test -n "$AR"; then
6285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6286 printf "%s\n" "$AR" >&6; }
6287 else
6288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6289 printf "%s\n" "no" >&6; }
6290 fi
6291
6292
6293 test -n "$AR" && break
6294 done
6295 fi
6296 if test -z "$AR"; then
6297 ac_ct_AR=$AR
6298 for ac_prog in ar
6299 do
6300 # Extract the first word of "$ac_prog", so it can be a program name with args.
6301 set dummy $ac_prog; ac_word=$2
6302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303 printf %s "checking for $ac_word... " >&6; }
6304 if test ${ac_cv_prog_ac_ct_AR+y}
6305 then :
6306 printf %s "(cached) " >&6
6307 else $as_nop
6308 if test -n "$ac_ct_AR"; then
6309 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6310 else
6311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312 for as_dir in $PATH
6313 do
6314 IFS=$as_save_IFS
6315 case $as_dir in #(((
6316 '') as_dir=./ ;;
6317 */) ;;
6318 *) as_dir=$as_dir/ ;;
6319 esac
6320 for ac_exec_ext in '' $ac_executable_extensions; do
6321 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6322 ac_cv_prog_ac_ct_AR="$ac_prog"
6323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6324 break 2
6325 fi
6326 done
6327 done
6328 IFS=$as_save_IFS
6329
6330 fi
6331 fi
6332 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6333 if test -n "$ac_ct_AR"; then
6334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6335 printf "%s\n" "$ac_ct_AR" >&6; }
6336 else
6337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338 printf "%s\n" "no" >&6; }
6339 fi
6340
6341
6342 test -n "$ac_ct_AR" && break
6343 done
6344
6345 if test "x$ac_ct_AR" = x; then
6346 AR="false"
6347 else
6348 case $cross_compiling:$ac_tool_warned in
6349 yes:)
6350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6351 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6352 ac_tool_warned=yes ;;
6353 esac
6354 AR=$ac_ct_AR
6355 fi
6356 fi
6357
6358 : ${AR=ar}
6359
6360
6361
6362
6363
6364
6365 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6366 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6367 # higher priority because thats what people were doing historically (setting
6368 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6369 # variable obsoleted/removed.
6370
6371 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6372 lt_ar_flags=$AR_FLAGS
6373
6374
6375
6376
6377
6378
6379 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6380 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6381
6382
6383
6384
6385
6386
6387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6388 printf %s "checking for archiver @FILE support... " >&6; }
6389 if test ${lt_cv_ar_at_file+y}
6390 then :
6391 printf %s "(cached) " >&6
6392 else $as_nop
6393 lt_cv_ar_at_file=no
6394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6395 /* end confdefs.h. */
6396
6397 int
6398 main (void)
6399 {
6400
6401 ;
6402 return 0;
6403 }
6404 _ACEOF
6405 if ac_fn_c_try_compile "$LINENO"
6406 then :
6407 echo conftest.$ac_objext > conftest.lst
6408 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6410 (eval $lt_ar_try) 2>&5
6411 ac_status=$?
6412 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6413 test $ac_status = 0; }
6414 if test 0 -eq "$ac_status"; then
6415 # Ensure the archiver fails upon bogus file names.
6416 rm -f conftest.$ac_objext libconftest.a
6417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6418 (eval $lt_ar_try) 2>&5
6419 ac_status=$?
6420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6421 test $ac_status = 0; }
6422 if test 0 -ne "$ac_status"; then
6423 lt_cv_ar_at_file=@
6424 fi
6425 fi
6426 rm -f conftest.* libconftest.a
6427
6428 fi
6429 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6430
6431 fi
6432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6433 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6434
6435 if test no = "$lt_cv_ar_at_file"; then
6436 archiver_list_spec=
6437 else
6438 archiver_list_spec=$lt_cv_ar_at_file
6439 fi
6440
6441
6442
6443
6444
6445
6446
6447 if test -n "$ac_tool_prefix"; then
6448 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6449 set dummy ${ac_tool_prefix}strip; ac_word=$2
6450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6451 printf %s "checking for $ac_word... " >&6; }
6452 if test ${ac_cv_prog_STRIP+y}
6453 then :
6454 printf %s "(cached) " >&6
6455 else $as_nop
6456 if test -n "$STRIP"; then
6457 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6458 else
6459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460 for as_dir in $PATH
6461 do
6462 IFS=$as_save_IFS
6463 case $as_dir in #(((
6464 '') as_dir=./ ;;
6465 */) ;;
6466 *) as_dir=$as_dir/ ;;
6467 esac
6468 for ac_exec_ext in '' $ac_executable_extensions; do
6469 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6470 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6472 break 2
6473 fi
6474 done
6475 done
6476 IFS=$as_save_IFS
6477
6478 fi
6479 fi
6480 STRIP=$ac_cv_prog_STRIP
6481 if test -n "$STRIP"; then
6482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6483 printf "%s\n" "$STRIP" >&6; }
6484 else
6485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6486 printf "%s\n" "no" >&6; }
6487 fi
6488
6489
6490 fi
6491 if test -z "$ac_cv_prog_STRIP"; then
6492 ac_ct_STRIP=$STRIP
6493 # Extract the first word of "strip", so it can be a program name with args.
6494 set dummy strip; ac_word=$2
6495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6496 printf %s "checking for $ac_word... " >&6; }
6497 if test ${ac_cv_prog_ac_ct_STRIP+y}
6498 then :
6499 printf %s "(cached) " >&6
6500 else $as_nop
6501 if test -n "$ac_ct_STRIP"; then
6502 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6503 else
6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505 for as_dir in $PATH
6506 do
6507 IFS=$as_save_IFS
6508 case $as_dir in #(((
6509 '') as_dir=./ ;;
6510 */) ;;
6511 *) as_dir=$as_dir/ ;;
6512 esac
6513 for ac_exec_ext in '' $ac_executable_extensions; do
6514 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6515 ac_cv_prog_ac_ct_STRIP="strip"
6516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6517 break 2
6518 fi
6519 done
6520 done
6521 IFS=$as_save_IFS
6522
6523 fi
6524 fi
6525 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6526 if test -n "$ac_ct_STRIP"; then
6527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6528 printf "%s\n" "$ac_ct_STRIP" >&6; }
6529 else
6530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6531 printf "%s\n" "no" >&6; }
6532 fi
6533
6534 if test "x$ac_ct_STRIP" = x; then
6535 STRIP=":"
6536 else
6537 case $cross_compiling:$ac_tool_warned in
6538 yes:)
6539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6540 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6541 ac_tool_warned=yes ;;
6542 esac
6543 STRIP=$ac_ct_STRIP
6544 fi
6545 else
6546 STRIP="$ac_cv_prog_STRIP"
6547 fi
6548
6549 test -z "$STRIP" && STRIP=:
6550
6551
6552
6553
6554
6555
6556 if test -n "$ac_tool_prefix"; then
6557 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6558 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6560 printf %s "checking for $ac_word... " >&6; }
6561 if test ${ac_cv_prog_RANLIB+y}
6562 then :
6563 printf %s "(cached) " >&6
6564 else $as_nop
6565 if test -n "$RANLIB"; then
6566 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6567 else
6568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569 for as_dir in $PATH
6570 do
6571 IFS=$as_save_IFS
6572 case $as_dir in #(((
6573 '') as_dir=./ ;;
6574 */) ;;
6575 *) as_dir=$as_dir/ ;;
6576 esac
6577 for ac_exec_ext in '' $ac_executable_extensions; do
6578 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6579 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6580 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6581 break 2
6582 fi
6583 done
6584 done
6585 IFS=$as_save_IFS
6586
6587 fi
6588 fi
6589 RANLIB=$ac_cv_prog_RANLIB
6590 if test -n "$RANLIB"; then
6591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6592 printf "%s\n" "$RANLIB" >&6; }
6593 else
6594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6595 printf "%s\n" "no" >&6; }
6596 fi
6597
6598
6599 fi
6600 if test -z "$ac_cv_prog_RANLIB"; then
6601 ac_ct_RANLIB=$RANLIB
6602 # Extract the first word of "ranlib", so it can be a program name with args.
6603 set dummy ranlib; ac_word=$2
6604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6605 printf %s "checking for $ac_word... " >&6; }
6606 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6607 then :
6608 printf %s "(cached) " >&6
6609 else $as_nop
6610 if test -n "$ac_ct_RANLIB"; then
6611 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6612 else
6613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614 for as_dir in $PATH
6615 do
6616 IFS=$as_save_IFS
6617 case $as_dir in #(((
6618 '') as_dir=./ ;;
6619 */) ;;
6620 *) as_dir=$as_dir/ ;;
6621 esac
6622 for ac_exec_ext in '' $ac_executable_extensions; do
6623 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6624 ac_cv_prog_ac_ct_RANLIB="ranlib"
6625 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6626 break 2
6627 fi
6628 done
6629 done
6630 IFS=$as_save_IFS
6631
6632 fi
6633 fi
6634 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6635 if test -n "$ac_ct_RANLIB"; then
6636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6637 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6638 else
6639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6640 printf "%s\n" "no" >&6; }
6641 fi
6642
6643 if test "x$ac_ct_RANLIB" = x; then
6644 RANLIB=":"
6645 else
6646 case $cross_compiling:$ac_tool_warned in
6647 yes:)
6648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6649 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6650 ac_tool_warned=yes ;;
6651 esac
6652 RANLIB=$ac_ct_RANLIB
6653 fi
6654 else
6655 RANLIB="$ac_cv_prog_RANLIB"
6656 fi
6657
6658 test -z "$RANLIB" && RANLIB=:
6659
6660
6661
6662
6663
6664
6665 # Determine commands to create old-style static archives.
6666 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6667 old_postinstall_cmds='chmod 644 $oldlib'
6668 old_postuninstall_cmds=
6669
6670 if test -n "$RANLIB"; then
6671 case $host_os in
6672 bitrig* | openbsd*)
6673 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6674 ;;
6675 *)
6676 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6677 ;;
6678 esac
6679 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6680 fi
6681
6682 case $host_os in
6683 darwin*)
6684 lock_old_archive_extraction=yes ;;
6685 *)
6686 lock_old_archive_extraction=no ;;
6687 esac
6688
6689
6690
6691
6692
6693
6694
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 # If no C compiler was specified, use CC.
6728 LTCC=${LTCC-"$CC"}
6729
6730 # If no C compiler flags were specified, use CFLAGS.
6731 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6732
6733 # Allow CC to be a program name with arguments.
6734 compiler=$CC
6735
6736
6737 # Check for command to grab the raw symbol name followed by C symbol from nm.
6738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6739 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6740 if test ${lt_cv_sys_global_symbol_pipe+y}
6741 then :
6742 printf %s "(cached) " >&6
6743 else $as_nop
6744
6745 # These are sane defaults that work on at least a few old systems.
6746 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6747
6748 # Character class describing NM global symbol codes.
6749 symcode='[BCDEGRST]'
6750
6751 # Regexp to match symbols that can be accessed directly from C.
6752 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6753
6754 # Define system-specific variables.
6755 case $host_os in
6756 aix*)
6757 symcode='[BCDT]'
6758 ;;
6759 cygwin* | mingw* | pw32* | cegcc*)
6760 symcode='[ABCDGISTW]'
6761 ;;
6762 hpux*)
6763 if test ia64 = "$host_cpu"; then
6764 symcode='[ABCDEGRST]'
6765 fi
6766 ;;
6767 irix* | nonstopux*)
6768 symcode='[BCDEGRST]'
6769 ;;
6770 osf*)
6771 symcode='[BCDEGQRST]'
6772 ;;
6773 solaris*)
6774 symcode='[BDRT]'
6775 ;;
6776 sco3.2v5*)
6777 symcode='[DT]'
6778 ;;
6779 sysv4.2uw2*)
6780 symcode='[DT]'
6781 ;;
6782 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6783 symcode='[ABDT]'
6784 ;;
6785 sysv4)
6786 symcode='[DFNSTU]'
6787 ;;
6788 esac
6789
6790 # If we're using GNU nm, then use its standard symbol codes.
6791 case `$NM -V 2>&1` in
6792 *GNU* | *'with BFD'*)
6793 symcode='[ABCDGIRSTW]' ;;
6794 esac
6795
6796 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6797 # Gets list of data symbols to import.
6798 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6799 # Adjust the below global symbol transforms to fixup imported variables.
6800 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6801 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6802 lt_c_name_lib_hook="\
6803 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6804 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6805 else
6806 # Disable hooks by default.
6807 lt_cv_sys_global_symbol_to_import=
6808 lt_cdecl_hook=
6809 lt_c_name_hook=
6810 lt_c_name_lib_hook=
6811 fi
6812
6813 # Transform an extracted symbol line into a proper C declaration.
6814 # Some systems (esp. on ia64) link data and code symbols differently,
6815 # so use this general approach.
6816 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6817 $lt_cdecl_hook\
6818 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6819 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6820
6821 # Transform an extracted symbol line into symbol name and symbol address
6822 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6823 $lt_c_name_hook\
6824 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6825 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6826
6827 # Transform an extracted symbol line into symbol name with lib prefix and
6828 # symbol address.
6829 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6830 $lt_c_name_lib_hook\
6831 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6832 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6833 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6834
6835 # Handle CRLF in mingw tool chain
6836 opt_cr=
6837 case $build_os in
6838 mingw*)
6839 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6840 ;;
6841 esac
6842
6843 # Try without a prefix underscore, then with it.
6844 for ac_symprfx in "" "_"; do
6845
6846 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6847 symxfrm="\\1 $ac_symprfx\\2 \\2"
6848
6849 # Write the raw and C identifiers.
6850 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6851 # Fake it for dumpbin and say T for any non-static function,
6852 # D for any global variable and I for any imported variable.
6853 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6854 # which start with @ or ?.
6855 lt_cv_sys_global_symbol_pipe="$AWK '"\
6856 " {last_section=section; section=\$ 3};"\
6857 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6858 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6859 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6860 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6861 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6862 " \$ 0!~/External *\|/{next};"\
6863 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6864 " {if(hide[section]) next};"\
6865 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6866 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6867 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6868 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6869 " ' prfx=^$ac_symprfx"
6870 else
6871 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6872 fi
6873 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6874
6875 # Check to see that the pipe works correctly.
6876 pipe_works=no
6877
6878 rm -f conftest*
6879 cat > conftest.$ac_ext <<_LT_EOF
6880 #ifdef __cplusplus
6881 extern "C" {
6882 #endif
6883 char nm_test_var;
6884 void nm_test_func(void);
6885 void nm_test_func(void){}
6886 #ifdef __cplusplus
6887 }
6888 #endif
6889 int main(){nm_test_var='a';nm_test_func();return(0);}
6890 _LT_EOF
6891
6892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6893 (eval $ac_compile) 2>&5
6894 ac_status=$?
6895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6896 test $ac_status = 0; }; then
6897 # Now try to grab the symbols.
6898 nlist=conftest.nm
6899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6900 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6901 ac_status=$?
6902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6903 test $ac_status = 0; } && test -s "$nlist"; then
6904 # Try sorting and uniquifying the output.
6905 if sort "$nlist" | uniq > "$nlist"T; then
6906 mv -f "$nlist"T "$nlist"
6907 else
6908 rm -f "$nlist"T
6909 fi
6910
6911 # Make sure that we snagged all the symbols we need.
6912 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6913 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6914 cat <<_LT_EOF > conftest.$ac_ext
6915 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6916 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6917 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6918 relocations are performed -- see ld's documentation on pseudo-relocs. */
6919 # define LT_DLSYM_CONST
6920 #elif defined __osf__
6921 /* This system does not cope well with relocations in const data. */
6922 # define LT_DLSYM_CONST
6923 #else
6924 # define LT_DLSYM_CONST const
6925 #endif
6926
6927 #ifdef __cplusplus
6928 extern "C" {
6929 #endif
6930
6931 _LT_EOF
6932 # Now generate the symbol file.
6933 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6934
6935 cat <<_LT_EOF >> conftest.$ac_ext
6936
6937 /* The mapping between symbol names and symbols. */
6938 LT_DLSYM_CONST struct {
6939 const char *name;
6940 void *address;
6941 }
6942 lt__PROGRAM__LTX_preloaded_symbols[] =
6943 {
6944 { "@PROGRAM@", (void *) 0 },
6945 _LT_EOF
6946 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6947 cat <<\_LT_EOF >> conftest.$ac_ext
6948 {0, (void *) 0}
6949 };
6950
6951 /* This works around a problem in FreeBSD linker */
6952 #ifdef FREEBSD_WORKAROUND
6953 static const void *lt_preloaded_setup() {
6954 return lt__PROGRAM__LTX_preloaded_symbols;
6955 }
6956 #endif
6957
6958 #ifdef __cplusplus
6959 }
6960 #endif
6961 _LT_EOF
6962 # Now try linking the two files.
6963 mv conftest.$ac_objext conftstm.$ac_objext
6964 lt_globsym_save_LIBS=$LIBS
6965 lt_globsym_save_CFLAGS=$CFLAGS
6966 LIBS=conftstm.$ac_objext
6967 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6968 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6969 (eval $ac_link) 2>&5
6970 ac_status=$?
6971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6972 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6973 pipe_works=yes
6974 fi
6975 LIBS=$lt_globsym_save_LIBS
6976 CFLAGS=$lt_globsym_save_CFLAGS
6977 else
6978 echo "cannot find nm_test_func in $nlist" >&5
6979 fi
6980 else
6981 echo "cannot find nm_test_var in $nlist" >&5
6982 fi
6983 else
6984 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6985 fi
6986 else
6987 echo "$progname: failed program was:" >&5
6988 cat conftest.$ac_ext >&5
6989 fi
6990 rm -rf conftest* conftst*
6991
6992 # Do not use the global_symbol_pipe unless it works.
6993 if test yes = "$pipe_works"; then
6994 break
6995 else
6996 lt_cv_sys_global_symbol_pipe=
6997 fi
6998 done
6999
7000 fi
7001
7002 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7003 lt_cv_sys_global_symbol_to_cdecl=
7004 fi
7005 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7007 printf "%s\n" "failed" >&6; }
7008 else
7009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7010 printf "%s\n" "ok" >&6; }
7011 fi
7012
7013 # Response file support.
7014 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7015 nm_file_list_spec='@'
7016 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7017 nm_file_list_spec='@'
7018 fi
7019
7020
7021
7022
7023
7024
7025
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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7057 printf %s "checking for sysroot... " >&6; }
7058
7059 # Check whether --with-sysroot was given.
7060 if test ${with_sysroot+y}
7061 then :
7062 withval=$with_sysroot;
7063 else $as_nop
7064 with_sysroot=no
7065 fi
7066
7067
7068 lt_sysroot=
7069 case $with_sysroot in #(
7070 yes)
7071 if test yes = "$GCC"; then
7072 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7073 fi
7074 ;; #(
7075 /*)
7076 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7077 ;; #(
7078 no|'')
7079 ;; #(
7080 *)
7081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7082 printf "%s\n" "$with_sysroot" >&6; }
7083 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7084 ;;
7085 esac
7086
7087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7088 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7089
7090
7091
7092
7093
7094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7095 printf %s "checking for a working dd... " >&6; }
7096 if test ${ac_cv_path_lt_DD+y}
7097 then :
7098 printf %s "(cached) " >&6
7099 else $as_nop
7100 printf 0123456789abcdef0123456789abcdef >conftest.i
7101 cat conftest.i conftest.i >conftest2.i
7102 : ${lt_DD:=$DD}
7103 if test -z "$lt_DD"; then
7104 ac_path_lt_DD_found=false
7105 # Loop through the user's path and test for each of PROGNAME-LIST
7106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107 for as_dir in $PATH
7108 do
7109 IFS=$as_save_IFS
7110 case $as_dir in #(((
7111 '') as_dir=./ ;;
7112 */) ;;
7113 *) as_dir=$as_dir/ ;;
7114 esac
7115 for ac_prog in dd
7116 do
7117 for ac_exec_ext in '' $ac_executable_extensions; do
7118 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7119 as_fn_executable_p "$ac_path_lt_DD" || continue
7120 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7121 cmp -s conftest.i conftest.out \
7122 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7123 fi
7124 $ac_path_lt_DD_found && break 3
7125 done
7126 done
7127 done
7128 IFS=$as_save_IFS
7129 if test -z "$ac_cv_path_lt_DD"; then
7130 :
7131 fi
7132 else
7133 ac_cv_path_lt_DD=$lt_DD
7134 fi
7135
7136 rm -f conftest.i conftest2.i conftest.out
7137 fi
7138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7139 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7140
7141
7142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7143 printf %s "checking how to truncate binary pipes... " >&6; }
7144 if test ${lt_cv_truncate_bin+y}
7145 then :
7146 printf %s "(cached) " >&6
7147 else $as_nop
7148 printf 0123456789abcdef0123456789abcdef >conftest.i
7149 cat conftest.i conftest.i >conftest2.i
7150 lt_cv_truncate_bin=
7151 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7152 cmp -s conftest.i conftest.out \
7153 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7154 fi
7155 rm -f conftest.i conftest2.i conftest.out
7156 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7157 fi
7158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7159 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7160
7161
7162
7163
7164
7165
7166
7167 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7168 func_cc_basename ()
7169 {
7170 for cc_temp in $*""; do
7171 case $cc_temp in
7172 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7173 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7174 \-*) ;;
7175 *) break;;
7176 esac
7177 done
7178 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7179 }
7180
7181 # Check whether --enable-libtool-lock was given.
7182 if test ${enable_libtool_lock+y}
7183 then :
7184 enableval=$enable_libtool_lock;
7185 fi
7186
7187 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7188
7189 # Some flags need to be propagated to the compiler or linker for good
7190 # libtool support.
7191 case $host in
7192 ia64-*-hpux*)
7193 # Find out what ABI is being produced by ac_compile, and set mode
7194 # options accordingly.
7195 echo 'int i;' > conftest.$ac_ext
7196 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7197 (eval $ac_compile) 2>&5
7198 ac_status=$?
7199 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7200 test $ac_status = 0; }; then
7201 case `$FILECMD conftest.$ac_objext` in
7202 *ELF-32*)
7203 HPUX_IA64_MODE=32
7204 ;;
7205 *ELF-64*)
7206 HPUX_IA64_MODE=64
7207 ;;
7208 esac
7209 fi
7210 rm -rf conftest*
7211 ;;
7212 *-*-irix6*)
7213 # Find out what ABI is being produced by ac_compile, and set linker
7214 # options accordingly.
7215 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7217 (eval $ac_compile) 2>&5
7218 ac_status=$?
7219 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7220 test $ac_status = 0; }; then
7221 if test yes = "$lt_cv_prog_gnu_ld"; then
7222 case `$FILECMD conftest.$ac_objext` in
7223 *32-bit*)
7224 LD="${LD-ld} -melf32bsmip"
7225 ;;
7226 *N32*)
7227 LD="${LD-ld} -melf32bmipn32"
7228 ;;
7229 *64-bit*)
7230 LD="${LD-ld} -melf64bmip"
7231 ;;
7232 esac
7233 else
7234 case `$FILECMD conftest.$ac_objext` in
7235 *32-bit*)
7236 LD="${LD-ld} -32"
7237 ;;
7238 *N32*)
7239 LD="${LD-ld} -n32"
7240 ;;
7241 *64-bit*)
7242 LD="${LD-ld} -64"
7243 ;;
7244 esac
7245 fi
7246 fi
7247 rm -rf conftest*
7248 ;;
7249
7250 mips64*-*linux*)
7251 # Find out what ABI is being produced by ac_compile, and set linker
7252 # options accordingly.
7253 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7254 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7255 (eval $ac_compile) 2>&5
7256 ac_status=$?
7257 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7258 test $ac_status = 0; }; then
7259 emul=elf
7260 case `$FILECMD conftest.$ac_objext` in
7261 *32-bit*)
7262 emul="${emul}32"
7263 ;;
7264 *64-bit*)
7265 emul="${emul}64"
7266 ;;
7267 esac
7268 case `$FILECMD conftest.$ac_objext` in
7269 *MSB*)
7270 emul="${emul}btsmip"
7271 ;;
7272 *LSB*)
7273 emul="${emul}ltsmip"
7274 ;;
7275 esac
7276 case `$FILECMD conftest.$ac_objext` in
7277 *N32*)
7278 emul="${emul}n32"
7279 ;;
7280 esac
7281 LD="${LD-ld} -m $emul"
7282 fi
7283 rm -rf conftest*
7284 ;;
7285
7286 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7287 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7288 # Find out what ABI is being produced by ac_compile, and set linker
7289 # options accordingly. Note that the listed cases only cover the
7290 # situations where additional linker options are needed (such as when
7291 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7292 # vice versa); the common cases where no linker options are needed do
7293 # not appear in the list.
7294 echo 'int i;' > conftest.$ac_ext
7295 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7296 (eval $ac_compile) 2>&5
7297 ac_status=$?
7298 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7299 test $ac_status = 0; }; then
7300 case `$FILECMD conftest.o` in
7301 *32-bit*)
7302 case $host in
7303 x86_64-*kfreebsd*-gnu)
7304 LD="${LD-ld} -m elf_i386_fbsd"
7305 ;;
7306 x86_64-*linux*)
7307 case `$FILECMD conftest.o` in
7308 *x86-64*)
7309 LD="${LD-ld} -m elf32_x86_64"
7310 ;;
7311 *)
7312 LD="${LD-ld} -m elf_i386"
7313 ;;
7314 esac
7315 ;;
7316 powerpc64le-*linux*)
7317 LD="${LD-ld} -m elf32lppclinux"
7318 ;;
7319 powerpc64-*linux*)
7320 LD="${LD-ld} -m elf32ppclinux"
7321 ;;
7322 s390x-*linux*)
7323 LD="${LD-ld} -m elf_s390"
7324 ;;
7325 sparc64-*linux*)
7326 LD="${LD-ld} -m elf32_sparc"
7327 ;;
7328 esac
7329 ;;
7330 *64-bit*)
7331 case $host in
7332 x86_64-*kfreebsd*-gnu)
7333 LD="${LD-ld} -m elf_x86_64_fbsd"
7334 ;;
7335 x86_64-*linux*)
7336 LD="${LD-ld} -m elf_x86_64"
7337 ;;
7338 powerpcle-*linux*)
7339 LD="${LD-ld} -m elf64lppc"
7340 ;;
7341 powerpc-*linux*)
7342 LD="${LD-ld} -m elf64ppc"
7343 ;;
7344 s390*-*linux*|s390*-*tpf*)
7345 LD="${LD-ld} -m elf64_s390"
7346 ;;
7347 sparc*-*linux*)
7348 LD="${LD-ld} -m elf64_sparc"
7349 ;;
7350 esac
7351 ;;
7352 esac
7353 fi
7354 rm -rf conftest*
7355 ;;
7356
7357 *-*-sco3.2v5*)
7358 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7359 SAVE_CFLAGS=$CFLAGS
7360 CFLAGS="$CFLAGS -belf"
7361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7362 printf %s "checking whether the C compiler needs -belf... " >&6; }
7363 if test ${lt_cv_cc_needs_belf+y}
7364 then :
7365 printf %s "(cached) " >&6
7366 else $as_nop
7367 ac_ext=c
7368 ac_cpp='$CPP $CPPFLAGS'
7369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7372
7373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7374 /* end confdefs.h. */
7375
7376 int
7377 main (void)
7378 {
7379
7380 ;
7381 return 0;
7382 }
7383 _ACEOF
7384 if ac_fn_c_try_link "$LINENO"
7385 then :
7386 lt_cv_cc_needs_belf=yes
7387 else $as_nop
7388 lt_cv_cc_needs_belf=no
7389 fi
7390 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7391 conftest$ac_exeext conftest.$ac_ext
7392 ac_ext=c
7393 ac_cpp='$CPP $CPPFLAGS'
7394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7397
7398 fi
7399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7400 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7401 if test yes != "$lt_cv_cc_needs_belf"; then
7402 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7403 CFLAGS=$SAVE_CFLAGS
7404 fi
7405 ;;
7406 *-*solaris*)
7407 # Find out what ABI is being produced by ac_compile, and set linker
7408 # options accordingly.
7409 echo 'int i;' > conftest.$ac_ext
7410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7411 (eval $ac_compile) 2>&5
7412 ac_status=$?
7413 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7414 test $ac_status = 0; }; then
7415 case `$FILECMD conftest.o` in
7416 *64-bit*)
7417 case $lt_cv_prog_gnu_ld in
7418 yes*)
7419 case $host in
7420 i?86-*-solaris*|x86_64-*-solaris*)
7421 LD="${LD-ld} -m elf_x86_64"
7422 ;;
7423 sparc*-*-solaris*)
7424 LD="${LD-ld} -m elf64_sparc"
7425 ;;
7426 esac
7427 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7428 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7429 LD=${LD-ld}_sol2
7430 fi
7431 ;;
7432 *)
7433 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7434 LD="${LD-ld} -64"
7435 fi
7436 ;;
7437 esac
7438 ;;
7439 esac
7440 fi
7441 rm -rf conftest*
7442 ;;
7443 esac
7444
7445 need_locks=$enable_libtool_lock
7446
7447 if test -n "$ac_tool_prefix"; then
7448 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7449 set dummy ${ac_tool_prefix}mt; ac_word=$2
7450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7451 printf %s "checking for $ac_word... " >&6; }
7452 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7453 then :
7454 printf %s "(cached) " >&6
7455 else $as_nop
7456 if test -n "$MANIFEST_TOOL"; then
7457 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7458 else
7459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460 for as_dir in $PATH
7461 do
7462 IFS=$as_save_IFS
7463 case $as_dir in #(((
7464 '') as_dir=./ ;;
7465 */) ;;
7466 *) as_dir=$as_dir/ ;;
7467 esac
7468 for ac_exec_ext in '' $ac_executable_extensions; do
7469 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7470 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7472 break 2
7473 fi
7474 done
7475 done
7476 IFS=$as_save_IFS
7477
7478 fi
7479 fi
7480 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7481 if test -n "$MANIFEST_TOOL"; then
7482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7483 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7484 else
7485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486 printf "%s\n" "no" >&6; }
7487 fi
7488
7489
7490 fi
7491 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7492 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7493 # Extract the first word of "mt", so it can be a program name with args.
7494 set dummy mt; ac_word=$2
7495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7496 printf %s "checking for $ac_word... " >&6; }
7497 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7498 then :
7499 printf %s "(cached) " >&6
7500 else $as_nop
7501 if test -n "$ac_ct_MANIFEST_TOOL"; then
7502 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7503 else
7504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 for as_dir in $PATH
7506 do
7507 IFS=$as_save_IFS
7508 case $as_dir in #(((
7509 '') as_dir=./ ;;
7510 */) ;;
7511 *) as_dir=$as_dir/ ;;
7512 esac
7513 for ac_exec_ext in '' $ac_executable_extensions; do
7514 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7515 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7517 break 2
7518 fi
7519 done
7520 done
7521 IFS=$as_save_IFS
7522
7523 fi
7524 fi
7525 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7526 if test -n "$ac_ct_MANIFEST_TOOL"; then
7527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7528 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7529 else
7530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7531 printf "%s\n" "no" >&6; }
7532 fi
7533
7534 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7535 MANIFEST_TOOL=":"
7536 else
7537 case $cross_compiling:$ac_tool_warned in
7538 yes:)
7539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7540 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7541 ac_tool_warned=yes ;;
7542 esac
7543 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7544 fi
7545 else
7546 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7547 fi
7548
7549 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7551 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7552 if test ${lt_cv_path_mainfest_tool+y}
7553 then :
7554 printf %s "(cached) " >&6
7555 else $as_nop
7556 lt_cv_path_mainfest_tool=no
7557 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7558 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7559 cat conftest.err >&5
7560 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7561 lt_cv_path_mainfest_tool=yes
7562 fi
7563 rm -f conftest*
7564 fi
7565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7566 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7567 if test yes != "$lt_cv_path_mainfest_tool"; then
7568 MANIFEST_TOOL=:
7569 fi
7570
7571
7572
7573
7574
7575
7576 case $host_os in
7577 rhapsody* | darwin*)
7578 if test -n "$ac_tool_prefix"; then
7579 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7580 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7582 printf %s "checking for $ac_word... " >&6; }
7583 if test ${ac_cv_prog_DSYMUTIL+y}
7584 then :
7585 printf %s "(cached) " >&6
7586 else $as_nop
7587 if test -n "$DSYMUTIL"; then
7588 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7589 else
7590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591 for as_dir in $PATH
7592 do
7593 IFS=$as_save_IFS
7594 case $as_dir in #(((
7595 '') as_dir=./ ;;
7596 */) ;;
7597 *) as_dir=$as_dir/ ;;
7598 esac
7599 for ac_exec_ext in '' $ac_executable_extensions; do
7600 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7601 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7603 break 2
7604 fi
7605 done
7606 done
7607 IFS=$as_save_IFS
7608
7609 fi
7610 fi
7611 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7612 if test -n "$DSYMUTIL"; then
7613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7614 printf "%s\n" "$DSYMUTIL" >&6; }
7615 else
7616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7617 printf "%s\n" "no" >&6; }
7618 fi
7619
7620
7621 fi
7622 if test -z "$ac_cv_prog_DSYMUTIL"; then
7623 ac_ct_DSYMUTIL=$DSYMUTIL
7624 # Extract the first word of "dsymutil", so it can be a program name with args.
7625 set dummy dsymutil; ac_word=$2
7626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7627 printf %s "checking for $ac_word... " >&6; }
7628 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7629 then :
7630 printf %s "(cached) " >&6
7631 else $as_nop
7632 if test -n "$ac_ct_DSYMUTIL"; then
7633 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7634 else
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636 for as_dir in $PATH
7637 do
7638 IFS=$as_save_IFS
7639 case $as_dir in #(((
7640 '') as_dir=./ ;;
7641 */) ;;
7642 *) as_dir=$as_dir/ ;;
7643 esac
7644 for ac_exec_ext in '' $ac_executable_extensions; do
7645 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7646 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7648 break 2
7649 fi
7650 done
7651 done
7652 IFS=$as_save_IFS
7653
7654 fi
7655 fi
7656 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7657 if test -n "$ac_ct_DSYMUTIL"; then
7658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7659 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7660 else
7661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662 printf "%s\n" "no" >&6; }
7663 fi
7664
7665 if test "x$ac_ct_DSYMUTIL" = x; then
7666 DSYMUTIL=":"
7667 else
7668 case $cross_compiling:$ac_tool_warned in
7669 yes:)
7670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7671 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7672 ac_tool_warned=yes ;;
7673 esac
7674 DSYMUTIL=$ac_ct_DSYMUTIL
7675 fi
7676 else
7677 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7678 fi
7679
7680 if test -n "$ac_tool_prefix"; then
7681 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7682 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7684 printf %s "checking for $ac_word... " >&6; }
7685 if test ${ac_cv_prog_NMEDIT+y}
7686 then :
7687 printf %s "(cached) " >&6
7688 else $as_nop
7689 if test -n "$NMEDIT"; then
7690 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7691 else
7692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7693 for as_dir in $PATH
7694 do
7695 IFS=$as_save_IFS
7696 case $as_dir in #(((
7697 '') as_dir=./ ;;
7698 */) ;;
7699 *) as_dir=$as_dir/ ;;
7700 esac
7701 for ac_exec_ext in '' $ac_executable_extensions; do
7702 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7703 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7705 break 2
7706 fi
7707 done
7708 done
7709 IFS=$as_save_IFS
7710
7711 fi
7712 fi
7713 NMEDIT=$ac_cv_prog_NMEDIT
7714 if test -n "$NMEDIT"; then
7715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7716 printf "%s\n" "$NMEDIT" >&6; }
7717 else
7718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7719 printf "%s\n" "no" >&6; }
7720 fi
7721
7722
7723 fi
7724 if test -z "$ac_cv_prog_NMEDIT"; then
7725 ac_ct_NMEDIT=$NMEDIT
7726 # Extract the first word of "nmedit", so it can be a program name with args.
7727 set dummy nmedit; ac_word=$2
7728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7729 printf %s "checking for $ac_word... " >&6; }
7730 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7731 then :
7732 printf %s "(cached) " >&6
7733 else $as_nop
7734 if test -n "$ac_ct_NMEDIT"; then
7735 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7736 else
7737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7738 for as_dir in $PATH
7739 do
7740 IFS=$as_save_IFS
7741 case $as_dir in #(((
7742 '') as_dir=./ ;;
7743 */) ;;
7744 *) as_dir=$as_dir/ ;;
7745 esac
7746 for ac_exec_ext in '' $ac_executable_extensions; do
7747 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7748 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7749 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7750 break 2
7751 fi
7752 done
7753 done
7754 IFS=$as_save_IFS
7755
7756 fi
7757 fi
7758 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7759 if test -n "$ac_ct_NMEDIT"; then
7760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7761 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7762 else
7763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7764 printf "%s\n" "no" >&6; }
7765 fi
7766
7767 if test "x$ac_ct_NMEDIT" = x; then
7768 NMEDIT=":"
7769 else
7770 case $cross_compiling:$ac_tool_warned in
7771 yes:)
7772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7773 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7774 ac_tool_warned=yes ;;
7775 esac
7776 NMEDIT=$ac_ct_NMEDIT
7777 fi
7778 else
7779 NMEDIT="$ac_cv_prog_NMEDIT"
7780 fi
7781
7782 if test -n "$ac_tool_prefix"; then
7783 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7784 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7786 printf %s "checking for $ac_word... " >&6; }
7787 if test ${ac_cv_prog_LIPO+y}
7788 then :
7789 printf %s "(cached) " >&6
7790 else $as_nop
7791 if test -n "$LIPO"; then
7792 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7793 else
7794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795 for as_dir in $PATH
7796 do
7797 IFS=$as_save_IFS
7798 case $as_dir in #(((
7799 '') as_dir=./ ;;
7800 */) ;;
7801 *) as_dir=$as_dir/ ;;
7802 esac
7803 for ac_exec_ext in '' $ac_executable_extensions; do
7804 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7805 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7807 break 2
7808 fi
7809 done
7810 done
7811 IFS=$as_save_IFS
7812
7813 fi
7814 fi
7815 LIPO=$ac_cv_prog_LIPO
7816 if test -n "$LIPO"; then
7817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7818 printf "%s\n" "$LIPO" >&6; }
7819 else
7820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7821 printf "%s\n" "no" >&6; }
7822 fi
7823
7824
7825 fi
7826 if test -z "$ac_cv_prog_LIPO"; then
7827 ac_ct_LIPO=$LIPO
7828 # Extract the first word of "lipo", so it can be a program name with args.
7829 set dummy lipo; ac_word=$2
7830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7831 printf %s "checking for $ac_word... " >&6; }
7832 if test ${ac_cv_prog_ac_ct_LIPO+y}
7833 then :
7834 printf %s "(cached) " >&6
7835 else $as_nop
7836 if test -n "$ac_ct_LIPO"; then
7837 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7838 else
7839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840 for as_dir in $PATH
7841 do
7842 IFS=$as_save_IFS
7843 case $as_dir in #(((
7844 '') as_dir=./ ;;
7845 */) ;;
7846 *) as_dir=$as_dir/ ;;
7847 esac
7848 for ac_exec_ext in '' $ac_executable_extensions; do
7849 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7850 ac_cv_prog_ac_ct_LIPO="lipo"
7851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7852 break 2
7853 fi
7854 done
7855 done
7856 IFS=$as_save_IFS
7857
7858 fi
7859 fi
7860 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7861 if test -n "$ac_ct_LIPO"; then
7862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7863 printf "%s\n" "$ac_ct_LIPO" >&6; }
7864 else
7865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7866 printf "%s\n" "no" >&6; }
7867 fi
7868
7869 if test "x$ac_ct_LIPO" = x; then
7870 LIPO=":"
7871 else
7872 case $cross_compiling:$ac_tool_warned in
7873 yes:)
7874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7875 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7876 ac_tool_warned=yes ;;
7877 esac
7878 LIPO=$ac_ct_LIPO
7879 fi
7880 else
7881 LIPO="$ac_cv_prog_LIPO"
7882 fi
7883
7884 if test -n "$ac_tool_prefix"; then
7885 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7886 set dummy ${ac_tool_prefix}otool; ac_word=$2
7887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7888 printf %s "checking for $ac_word... " >&6; }
7889 if test ${ac_cv_prog_OTOOL+y}
7890 then :
7891 printf %s "(cached) " >&6
7892 else $as_nop
7893 if test -n "$OTOOL"; then
7894 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7895 else
7896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897 for as_dir in $PATH
7898 do
7899 IFS=$as_save_IFS
7900 case $as_dir in #(((
7901 '') as_dir=./ ;;
7902 */) ;;
7903 *) as_dir=$as_dir/ ;;
7904 esac
7905 for ac_exec_ext in '' $ac_executable_extensions; do
7906 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7907 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7909 break 2
7910 fi
7911 done
7912 done
7913 IFS=$as_save_IFS
7914
7915 fi
7916 fi
7917 OTOOL=$ac_cv_prog_OTOOL
7918 if test -n "$OTOOL"; then
7919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7920 printf "%s\n" "$OTOOL" >&6; }
7921 else
7922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7923 printf "%s\n" "no" >&6; }
7924 fi
7925
7926
7927 fi
7928 if test -z "$ac_cv_prog_OTOOL"; then
7929 ac_ct_OTOOL=$OTOOL
7930 # Extract the first word of "otool", so it can be a program name with args.
7931 set dummy otool; ac_word=$2
7932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7933 printf %s "checking for $ac_word... " >&6; }
7934 if test ${ac_cv_prog_ac_ct_OTOOL+y}
7935 then :
7936 printf %s "(cached) " >&6
7937 else $as_nop
7938 if test -n "$ac_ct_OTOOL"; then
7939 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7940 else
7941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942 for as_dir in $PATH
7943 do
7944 IFS=$as_save_IFS
7945 case $as_dir in #(((
7946 '') as_dir=./ ;;
7947 */) ;;
7948 *) as_dir=$as_dir/ ;;
7949 esac
7950 for ac_exec_ext in '' $ac_executable_extensions; do
7951 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7952 ac_cv_prog_ac_ct_OTOOL="otool"
7953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7954 break 2
7955 fi
7956 done
7957 done
7958 IFS=$as_save_IFS
7959
7960 fi
7961 fi
7962 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7963 if test -n "$ac_ct_OTOOL"; then
7964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7965 printf "%s\n" "$ac_ct_OTOOL" >&6; }
7966 else
7967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7968 printf "%s\n" "no" >&6; }
7969 fi
7970
7971 if test "x$ac_ct_OTOOL" = x; then
7972 OTOOL=":"
7973 else
7974 case $cross_compiling:$ac_tool_warned in
7975 yes:)
7976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7977 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7978 ac_tool_warned=yes ;;
7979 esac
7980 OTOOL=$ac_ct_OTOOL
7981 fi
7982 else
7983 OTOOL="$ac_cv_prog_OTOOL"
7984 fi
7985
7986 if test -n "$ac_tool_prefix"; then
7987 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7988 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7990 printf %s "checking for $ac_word... " >&6; }
7991 if test ${ac_cv_prog_OTOOL64+y}
7992 then :
7993 printf %s "(cached) " >&6
7994 else $as_nop
7995 if test -n "$OTOOL64"; then
7996 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7997 else
7998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999 for as_dir in $PATH
8000 do
8001 IFS=$as_save_IFS
8002 case $as_dir in #(((
8003 '') as_dir=./ ;;
8004 */) ;;
8005 *) as_dir=$as_dir/ ;;
8006 esac
8007 for ac_exec_ext in '' $ac_executable_extensions; do
8008 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8009 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8011 break 2
8012 fi
8013 done
8014 done
8015 IFS=$as_save_IFS
8016
8017 fi
8018 fi
8019 OTOOL64=$ac_cv_prog_OTOOL64
8020 if test -n "$OTOOL64"; then
8021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8022 printf "%s\n" "$OTOOL64" >&6; }
8023 else
8024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025 printf "%s\n" "no" >&6; }
8026 fi
8027
8028
8029 fi
8030 if test -z "$ac_cv_prog_OTOOL64"; then
8031 ac_ct_OTOOL64=$OTOOL64
8032 # Extract the first word of "otool64", so it can be a program name with args.
8033 set dummy otool64; ac_word=$2
8034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035 printf %s "checking for $ac_word... " >&6; }
8036 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8037 then :
8038 printf %s "(cached) " >&6
8039 else $as_nop
8040 if test -n "$ac_ct_OTOOL64"; then
8041 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8042 else
8043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8044 for as_dir in $PATH
8045 do
8046 IFS=$as_save_IFS
8047 case $as_dir in #(((
8048 '') as_dir=./ ;;
8049 */) ;;
8050 *) as_dir=$as_dir/ ;;
8051 esac
8052 for ac_exec_ext in '' $ac_executable_extensions; do
8053 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8054 ac_cv_prog_ac_ct_OTOOL64="otool64"
8055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8056 break 2
8057 fi
8058 done
8059 done
8060 IFS=$as_save_IFS
8061
8062 fi
8063 fi
8064 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8065 if test -n "$ac_ct_OTOOL64"; then
8066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8067 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8068 else
8069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8070 printf "%s\n" "no" >&6; }
8071 fi
8072
8073 if test "x$ac_ct_OTOOL64" = x; then
8074 OTOOL64=":"
8075 else
8076 case $cross_compiling:$ac_tool_warned in
8077 yes:)
8078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8079 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8080 ac_tool_warned=yes ;;
8081 esac
8082 OTOOL64=$ac_ct_OTOOL64
8083 fi
8084 else
8085 OTOOL64="$ac_cv_prog_OTOOL64"
8086 fi
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8115 printf %s "checking for -single_module linker flag... " >&6; }
8116 if test ${lt_cv_apple_cc_single_mod+y}
8117 then :
8118 printf %s "(cached) " >&6
8119 else $as_nop
8120 lt_cv_apple_cc_single_mod=no
8121 if test -z "$LT_MULTI_MODULE"; then
8122 # By default we will add the -single_module flag. You can override
8123 # by either setting the environment variable LT_MULTI_MODULE
8124 # non-empty at configure time, or by adding -multi_module to the
8125 # link flags.
8126 rm -rf libconftest.dylib*
8127 echo "int foo(void){return 1;}" > conftest.c
8128 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8129 -dynamiclib -Wl,-single_module conftest.c" >&5
8130 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8131 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8132 _lt_result=$?
8133 # If there is a non-empty error log, and "single_module"
8134 # appears in it, assume the flag caused a linker warning
8135 if test -s conftest.err && $GREP single_module conftest.err; then
8136 cat conftest.err >&5
8137 # Otherwise, if the output was created with a 0 exit code from
8138 # the compiler, it worked.
8139 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8140 lt_cv_apple_cc_single_mod=yes
8141 else
8142 cat conftest.err >&5
8143 fi
8144 rm -rf libconftest.dylib*
8145 rm -f conftest.*
8146 fi
8147 fi
8148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8149 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8150
8151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8152 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8153 if test ${lt_cv_ld_exported_symbols_list+y}
8154 then :
8155 printf %s "(cached) " >&6
8156 else $as_nop
8157 lt_cv_ld_exported_symbols_list=no
8158 save_LDFLAGS=$LDFLAGS
8159 echo "_main" > conftest.sym
8160 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162 /* end confdefs.h. */
8163
8164 int
8165 main (void)
8166 {
8167
8168 ;
8169 return 0;
8170 }
8171 _ACEOF
8172 if ac_fn_c_try_link "$LINENO"
8173 then :
8174 lt_cv_ld_exported_symbols_list=yes
8175 else $as_nop
8176 lt_cv_ld_exported_symbols_list=no
8177 fi
8178 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8179 conftest$ac_exeext conftest.$ac_ext
8180 LDFLAGS=$save_LDFLAGS
8181
8182 fi
8183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8184 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8185
8186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8187 printf %s "checking for -force_load linker flag... " >&6; }
8188 if test ${lt_cv_ld_force_load+y}
8189 then :
8190 printf %s "(cached) " >&6
8191 else $as_nop
8192 lt_cv_ld_force_load=no
8193 cat > conftest.c << _LT_EOF
8194 int forced_loaded() { return 2;}
8195 _LT_EOF
8196 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8197 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8198 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8199 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8200 echo "$RANLIB libconftest.a" >&5
8201 $RANLIB libconftest.a 2>&5
8202 cat > conftest.c << _LT_EOF
8203 int main() { return 0;}
8204 _LT_EOF
8205 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8206 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8207 _lt_result=$?
8208 if test -s conftest.err && $GREP force_load conftest.err; then
8209 cat conftest.err >&5
8210 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8211 lt_cv_ld_force_load=yes
8212 else
8213 cat conftest.err >&5
8214 fi
8215 rm -f conftest.err libconftest.a conftest conftest.c
8216 rm -rf conftest.dSYM
8217
8218 fi
8219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8220 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8221 case $host_os in
8222 rhapsody* | darwin1.[012])
8223 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8224 darwin1.*)
8225 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8226 darwin*)
8227 case $MACOSX_DEPLOYMENT_TARGET,$host in
8228 10.[012],*|,*powerpc*-darwin[5-8]*)
8229 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8230 *)
8231 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8232 esac
8233 ;;
8234 esac
8235 if test yes = "$lt_cv_apple_cc_single_mod"; then
8236 _lt_dar_single_mod='$single_module'
8237 fi
8238 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8239 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8240 else
8241 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8242 fi
8243 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8244 _lt_dsymutil='~$DSYMUTIL $lib || :'
8245 else
8246 _lt_dsymutil=
8247 fi
8248 ;;
8249 esac
8250
8251 # func_munge_path_list VARIABLE PATH
8252 # -----------------------------------
8253 # VARIABLE is name of variable containing _space_ separated list of
8254 # directories to be munged by the contents of PATH, which is string
8255 # having a format:
8256 # "DIR[:DIR]:"
8257 # string "DIR[ DIR]" will be prepended to VARIABLE
8258 # ":DIR[:DIR]"
8259 # string "DIR[ DIR]" will be appended to VARIABLE
8260 # "DIRP[:DIRP]::[DIRA:]DIRA"
8261 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8262 # "DIRA[ DIRA]" will be appended to VARIABLE
8263 # "DIR[:DIR]"
8264 # VARIABLE will be replaced by "DIR[ DIR]"
8265 func_munge_path_list ()
8266 {
8267 case x$2 in
8268 x)
8269 ;;
8270 *:)
8271 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8272 ;;
8273 x:*)
8274 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8275 ;;
8276 *::*)
8277 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8278 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8279 ;;
8280 *)
8281 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8282 ;;
8283 esac
8284 }
8285
8286 ac_header= ac_cache=
8287 for ac_item in $ac_header_c_list
8288 do
8289 if test $ac_cache; then
8290 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8291 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8292 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8293 fi
8294 ac_header= ac_cache=
8295 elif test $ac_header; then
8296 ac_cache=$ac_item
8297 else
8298 ac_header=$ac_item
8299 fi
8300 done
8301
8302
8303
8304
8305
8306
8307
8308
8309 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8310 then :
8311
8312 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8313
8314 fi
8315 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8316 "
8317 if test "x$ac_cv_header_dlfcn_h" = xyes
8318 then :
8319 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8320
8321 fi
8322
8323
8324
8325
8326
8327 # Set options
8328
8329
8330
8331 enable_dlopen=no
8332
8333
8334 enable_win32_dll=no
8335
8336
8337 # Check whether --enable-shared was given.
8338 if test ${enable_shared+y}
8339 then :
8340 enableval=$enable_shared; p=${PACKAGE-default}
8341 case $enableval in
8342 yes) enable_shared=yes ;;
8343 no) enable_shared=no ;;
8344 *)
8345 enable_shared=no
8346 # Look at the argument we got. We use all the common list separators.
8347 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8348 for pkg in $enableval; do
8349 IFS=$lt_save_ifs
8350 if test "X$pkg" = "X$p"; then
8351 enable_shared=yes
8352 fi
8353 done
8354 IFS=$lt_save_ifs
8355 ;;
8356 esac
8357 else $as_nop
8358 enable_shared=yes
8359 fi
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369 # Check whether --enable-static was given.
8370 if test ${enable_static+y}
8371 then :
8372 enableval=$enable_static; p=${PACKAGE-default}
8373 case $enableval in
8374 yes) enable_static=yes ;;
8375 no) enable_static=no ;;
8376 *)
8377 enable_static=no
8378 # Look at the argument we got. We use all the common list separators.
8379 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8380 for pkg in $enableval; do
8381 IFS=$lt_save_ifs
8382 if test "X$pkg" = "X$p"; then
8383 enable_static=yes
8384 fi
8385 done
8386 IFS=$lt_save_ifs
8387 ;;
8388 esac
8389 else $as_nop
8390 enable_static=yes
8391 fi
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402 # Check whether --with-pic was given.
8403 if test ${with_pic+y}
8404 then :
8405 withval=$with_pic; lt_p=${PACKAGE-default}
8406 case $withval in
8407 yes|no) pic_mode=$withval ;;
8408 *)
8409 pic_mode=default
8410 # Look at the argument we got. We use all the common list separators.
8411 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8412 for lt_pkg in $withval; do
8413 IFS=$lt_save_ifs
8414 if test "X$lt_pkg" = "X$lt_p"; then
8415 pic_mode=yes
8416 fi
8417 done
8418 IFS=$lt_save_ifs
8419 ;;
8420 esac
8421 else $as_nop
8422 pic_mode=default
8423 fi
8424
8425
8426
8427
8428
8429
8430
8431
8432 # Check whether --enable-fast-install was given.
8433 if test ${enable_fast_install+y}
8434 then :
8435 enableval=$enable_fast_install; p=${PACKAGE-default}
8436 case $enableval in
8437 yes) enable_fast_install=yes ;;
8438 no) enable_fast_install=no ;;
8439 *)
8440 enable_fast_install=no
8441 # Look at the argument we got. We use all the common list separators.
8442 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8443 for pkg in $enableval; do
8444 IFS=$lt_save_ifs
8445 if test "X$pkg" = "X$p"; then
8446 enable_fast_install=yes
8447 fi
8448 done
8449 IFS=$lt_save_ifs
8450 ;;
8451 esac
8452 else $as_nop
8453 enable_fast_install=yes
8454 fi
8455
8456
8457
8458
8459
8460
8461
8462
8463 shared_archive_member_spec=
8464 case $host,$enable_shared in
8465 power*-*-aix[5-9]*,yes)
8466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8467 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8468
8469 # Check whether --with-aix-soname was given.
8470 if test ${with_aix_soname+y}
8471 then :
8472 withval=$with_aix_soname; case $withval in
8473 aix|svr4|both)
8474 ;;
8475 *)
8476 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8477 ;;
8478 esac
8479 lt_cv_with_aix_soname=$with_aix_soname
8480 else $as_nop
8481 if test ${lt_cv_with_aix_soname+y}
8482 then :
8483 printf %s "(cached) " >&6
8484 else $as_nop
8485 lt_cv_with_aix_soname=aix
8486 fi
8487
8488 with_aix_soname=$lt_cv_with_aix_soname
8489 fi
8490
8491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8492 printf "%s\n" "$with_aix_soname" >&6; }
8493 if test aix != "$with_aix_soname"; then
8494 # For the AIX way of multilib, we name the shared archive member
8495 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8496 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8497 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8498 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8499 if test 64 = "${OBJECT_MODE-32}"; then
8500 shared_archive_member_spec=shr_64
8501 else
8502 shared_archive_member_spec=shr
8503 fi
8504 fi
8505 ;;
8506 *)
8507 with_aix_soname=aix
8508 ;;
8509 esac
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520 # This can be used to rebuild libtool when needed
8521 LIBTOOL_DEPS=$ltmain
8522
8523 # Always use our own libtool.
8524 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555 test -z "$LN_S" && LN_S="ln -s"
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570 if test -n "${ZSH_VERSION+set}"; then
8571 setopt NO_GLOB_SUBST
8572 fi
8573
8574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8575 printf %s "checking for objdir... " >&6; }
8576 if test ${lt_cv_objdir+y}
8577 then :
8578 printf %s "(cached) " >&6
8579 else $as_nop
8580 rm -f .libs 2>/dev/null
8581 mkdir .libs 2>/dev/null
8582 if test -d .libs; then
8583 lt_cv_objdir=.libs
8584 else
8585 # MS-DOS does not allow filenames that begin with a dot.
8586 lt_cv_objdir=_libs
8587 fi
8588 rmdir .libs 2>/dev/null
8589 fi
8590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8591 printf "%s\n" "$lt_cv_objdir" >&6; }
8592 objdir=$lt_cv_objdir
8593
8594
8595
8596
8597
8598 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8599
8600
8601
8602
8603 case $host_os in
8604 aix3*)
8605 # AIX sometimes has problems with the GCC collect2 program. For some
8606 # reason, if we set the COLLECT_NAMES environment variable, the problems
8607 # vanish in a puff of smoke.
8608 if test set != "${COLLECT_NAMES+set}"; then
8609 COLLECT_NAMES=
8610 export COLLECT_NAMES
8611 fi
8612 ;;
8613 esac
8614
8615 # Global variables:
8616 ofile=libtool
8617 can_build_shared=yes
8618
8619 # All known linkers require a '.a' archive for static linking (except MSVC and
8620 # ICC, which need '.lib').
8621 libext=a
8622
8623 with_gnu_ld=$lt_cv_prog_gnu_ld
8624
8625 old_CC=$CC
8626 old_CFLAGS=$CFLAGS
8627
8628 # Set sane defaults for various variables
8629 test -z "$CC" && CC=cc
8630 test -z "$LTCC" && LTCC=$CC
8631 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8632 test -z "$LD" && LD=ld
8633 test -z "$ac_objext" && ac_objext=o
8634
8635 func_cc_basename $compiler
8636 cc_basename=$func_cc_basename_result
8637
8638
8639 # Only perform the check for file, if the check method requires it
8640 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8641 case $deplibs_check_method in
8642 file_magic*)
8643 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8645 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8646 if test ${lt_cv_path_MAGIC_CMD+y}
8647 then :
8648 printf %s "(cached) " >&6
8649 else $as_nop
8650 case $MAGIC_CMD in
8651 [\\/*] | ?:[\\/]*)
8652 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8653 ;;
8654 *)
8655 lt_save_MAGIC_CMD=$MAGIC_CMD
8656 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8657 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8658 for ac_dir in $ac_dummy; do
8659 IFS=$lt_save_ifs
8660 test -z "$ac_dir" && ac_dir=.
8661 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8662 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8663 if test -n "$file_magic_test_file"; then
8664 case $deplibs_check_method in
8665 "file_magic "*)
8666 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8667 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8668 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8669 $EGREP "$file_magic_regex" > /dev/null; then
8670 :
8671 else
8672 cat <<_LT_EOF 1>&2
8673
8674 *** Warning: the command libtool uses to detect shared libraries,
8675 *** $file_magic_cmd, produces output that libtool cannot recognize.
8676 *** The result is that libtool may fail to recognize shared libraries
8677 *** as such. This will affect the creation of libtool libraries that
8678 *** depend on shared libraries, but programs linked with such libtool
8679 *** libraries will work regardless of this problem. Nevertheless, you
8680 *** may want to report the problem to your system manager and/or to
8681 *** [email protected]
8682
8683 _LT_EOF
8684 fi ;;
8685 esac
8686 fi
8687 break
8688 fi
8689 done
8690 IFS=$lt_save_ifs
8691 MAGIC_CMD=$lt_save_MAGIC_CMD
8692 ;;
8693 esac
8694 fi
8695
8696 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8697 if test -n "$MAGIC_CMD"; then
8698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8699 printf "%s\n" "$MAGIC_CMD" >&6; }
8700 else
8701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8702 printf "%s\n" "no" >&6; }
8703 fi
8704
8705
8706
8707
8708
8709 if test -z "$lt_cv_path_MAGIC_CMD"; then
8710 if test -n "$ac_tool_prefix"; then
8711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8712 printf %s "checking for file... " >&6; }
8713 if test ${lt_cv_path_MAGIC_CMD+y}
8714 then :
8715 printf %s "(cached) " >&6
8716 else $as_nop
8717 case $MAGIC_CMD in
8718 [\\/*] | ?:[\\/]*)
8719 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8720 ;;
8721 *)
8722 lt_save_MAGIC_CMD=$MAGIC_CMD
8723 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8724 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8725 for ac_dir in $ac_dummy; do
8726 IFS=$lt_save_ifs
8727 test -z "$ac_dir" && ac_dir=.
8728 if test -f "$ac_dir/file"; then
8729 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8730 if test -n "$file_magic_test_file"; then
8731 case $deplibs_check_method in
8732 "file_magic "*)
8733 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8734 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8735 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8736 $EGREP "$file_magic_regex" > /dev/null; then
8737 :
8738 else
8739 cat <<_LT_EOF 1>&2
8740
8741 *** Warning: the command libtool uses to detect shared libraries,
8742 *** $file_magic_cmd, produces output that libtool cannot recognize.
8743 *** The result is that libtool may fail to recognize shared libraries
8744 *** as such. This will affect the creation of libtool libraries that
8745 *** depend on shared libraries, but programs linked with such libtool
8746 *** libraries will work regardless of this problem. Nevertheless, you
8747 *** may want to report the problem to your system manager and/or to
8748 *** [email protected]
8749
8750 _LT_EOF
8751 fi ;;
8752 esac
8753 fi
8754 break
8755 fi
8756 done
8757 IFS=$lt_save_ifs
8758 MAGIC_CMD=$lt_save_MAGIC_CMD
8759 ;;
8760 esac
8761 fi
8762
8763 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8764 if test -n "$MAGIC_CMD"; then
8765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8766 printf "%s\n" "$MAGIC_CMD" >&6; }
8767 else
8768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8769 printf "%s\n" "no" >&6; }
8770 fi
8771
8772
8773 else
8774 MAGIC_CMD=:
8775 fi
8776 fi
8777
8778 fi
8779 ;;
8780 esac
8781
8782 # Use C for the default configuration in the libtool script
8783
8784 lt_save_CC=$CC
8785 ac_ext=c
8786 ac_cpp='$CPP $CPPFLAGS'
8787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8790
8791
8792 # Source file extension for C test sources.
8793 ac_ext=c
8794
8795 # Object file extension for compiled C test sources.
8796 objext=o
8797 objext=$objext
8798
8799 # Code to be used in simple compile tests
8800 lt_simple_compile_test_code="int some_variable = 0;"
8801
8802 # Code to be used in simple link tests
8803 lt_simple_link_test_code='int main(){return(0);}'
8804
8805
8806
8807
8808
8809
8810
8811 # If no C compiler was specified, use CC.
8812 LTCC=${LTCC-"$CC"}
8813
8814 # If no C compiler flags were specified, use CFLAGS.
8815 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8816
8817 # Allow CC to be a program name with arguments.
8818 compiler=$CC
8819
8820 # Save the default compiler, since it gets overwritten when the other
8821 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8822 compiler_DEFAULT=$CC
8823
8824 # save warnings/boilerplate of simple test code
8825 ac_outfile=conftest.$ac_objext
8826 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8827 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8828 _lt_compiler_boilerplate=`cat conftest.err`
8829 $RM conftest*
8830
8831 ac_outfile=conftest.$ac_objext
8832 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8833 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8834 _lt_linker_boilerplate=`cat conftest.err`
8835 $RM -r conftest*
8836
8837
8838 ## CAVEAT EMPTOR:
8839 ## There is no encapsulation within the following macros, do not change
8840 ## the running order or otherwise move them around unless you know exactly
8841 ## what you are doing...
8842 if test -n "$compiler"; then
8843
8844 lt_prog_compiler_no_builtin_flag=
8845
8846 if test yes = "$GCC"; then
8847 case $cc_basename in
8848 nvcc*)
8849 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8850 *)
8851 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8852 esac
8853
8854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8855 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8856 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8857 then :
8858 printf %s "(cached) " >&6
8859 else $as_nop
8860 lt_cv_prog_compiler_rtti_exceptions=no
8861 ac_outfile=conftest.$ac_objext
8862 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8863 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8864 # Insert the option either (1) after the last *FLAGS variable, or
8865 # (2) before a word containing "conftest.", or (3) at the end.
8866 # Note that $ac_compile itself does not contain backslashes and begins
8867 # with a dollar sign (not a hyphen), so the echo should work correctly.
8868 # The option is referenced via a variable to avoid confusing sed.
8869 lt_compile=`echo "$ac_compile" | $SED \
8870 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8871 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8872 -e 's:$: $lt_compiler_flag:'`
8873 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8874 (eval "$lt_compile" 2>conftest.err)
8875 ac_status=$?
8876 cat conftest.err >&5
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 if (exit $ac_status) && test -s "$ac_outfile"; then
8879 # The compiler can only warn and ignore the option if not recognized
8880 # So say no if there are warnings other than the usual output.
8881 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8882 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8883 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8884 lt_cv_prog_compiler_rtti_exceptions=yes
8885 fi
8886 fi
8887 $RM conftest*
8888
8889 fi
8890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8891 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8892
8893 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8894 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8895 else
8896 :
8897 fi
8898
8899 fi
8900
8901
8902
8903
8904
8905
8906 lt_prog_compiler_wl=
8907 lt_prog_compiler_pic=
8908 lt_prog_compiler_static=
8909
8910
8911 if test yes = "$GCC"; then
8912 lt_prog_compiler_wl='-Wl,'
8913 lt_prog_compiler_static='-static'
8914
8915 case $host_os in
8916 aix*)
8917 # All AIX code is PIC.
8918 if test ia64 = "$host_cpu"; then
8919 # AIX 5 now supports IA64 processor
8920 lt_prog_compiler_static='-Bstatic'
8921 fi
8922 lt_prog_compiler_pic='-fPIC'
8923 ;;
8924
8925 amigaos*)
8926 case $host_cpu in
8927 powerpc)
8928 # see comment about AmigaOS4 .so support
8929 lt_prog_compiler_pic='-fPIC'
8930 ;;
8931 m68k)
8932 # FIXME: we need at least 68020 code to build shared libraries, but
8933 # adding the '-m68020' flag to GCC prevents building anything better,
8934 # like '-m68040'.
8935 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8936 ;;
8937 esac
8938 ;;
8939
8940 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8941 # PIC is the default for these OSes.
8942 ;;
8943
8944 mingw* | cygwin* | pw32* | os2* | cegcc*)
8945 # This hack is so that the source file can tell whether it is being
8946 # built for inclusion in a dll (and should export symbols for example).
8947 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8948 # (--disable-auto-import) libraries
8949 lt_prog_compiler_pic='-DDLL_EXPORT'
8950 case $host_os in
8951 os2*)
8952 lt_prog_compiler_static='$wl-static'
8953 ;;
8954 esac
8955 ;;
8956
8957 darwin* | rhapsody*)
8958 # PIC is the default on this platform
8959 # Common symbols not allowed in MH_DYLIB files
8960 lt_prog_compiler_pic='-fno-common'
8961 ;;
8962
8963 haiku*)
8964 # PIC is the default for Haiku.
8965 # The "-static" flag exists, but is broken.
8966 lt_prog_compiler_static=
8967 ;;
8968
8969 hpux*)
8970 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8971 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8972 # sets the default TLS model and affects inlining.
8973 case $host_cpu in
8974 hppa*64*)
8975 # +Z the default
8976 ;;
8977 *)
8978 lt_prog_compiler_pic='-fPIC'
8979 ;;
8980 esac
8981 ;;
8982
8983 interix[3-9]*)
8984 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8985 # Instead, we relocate shared libraries at runtime.
8986 ;;
8987
8988 msdosdjgpp*)
8989 # Just because we use GCC doesn't mean we suddenly get shared libraries
8990 # on systems that don't support them.
8991 lt_prog_compiler_can_build_shared=no
8992 enable_shared=no
8993 ;;
8994
8995 *nto* | *qnx*)
8996 # QNX uses GNU C++, but need to define -shared option too, otherwise
8997 # it will coredump.
8998 lt_prog_compiler_pic='-fPIC -shared'
8999 ;;
9000
9001 sysv4*MP*)
9002 if test -d /usr/nec; then
9003 lt_prog_compiler_pic=-Kconform_pic
9004 fi
9005 ;;
9006
9007 *)
9008 lt_prog_compiler_pic='-fPIC'
9009 ;;
9010 esac
9011
9012 case $cc_basename in
9013 nvcc*) # Cuda Compiler Driver 2.2
9014 lt_prog_compiler_wl='-Xlinker '
9015 if test -n "$lt_prog_compiler_pic"; then
9016 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9017 fi
9018 ;;
9019 esac
9020 else
9021 # PORTME Check for flag to pass linker flags through the system compiler.
9022 case $host_os in
9023 aix*)
9024 lt_prog_compiler_wl='-Wl,'
9025 if test ia64 = "$host_cpu"; then
9026 # AIX 5 now supports IA64 processor
9027 lt_prog_compiler_static='-Bstatic'
9028 else
9029 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9030 fi
9031 ;;
9032
9033 darwin* | rhapsody*)
9034 # PIC is the default on this platform
9035 # Common symbols not allowed in MH_DYLIB files
9036 lt_prog_compiler_pic='-fno-common'
9037 case $cc_basename in
9038 nagfor*)
9039 # NAG Fortran compiler
9040 lt_prog_compiler_wl='-Wl,-Wl,,'
9041 lt_prog_compiler_pic='-PIC'
9042 lt_prog_compiler_static='-Bstatic'
9043 ;;
9044 esac
9045 ;;
9046
9047 mingw* | cygwin* | pw32* | os2* | cegcc*)
9048 # This hack is so that the source file can tell whether it is being
9049 # built for inclusion in a dll (and should export symbols for example).
9050 lt_prog_compiler_pic='-DDLL_EXPORT'
9051 case $host_os in
9052 os2*)
9053 lt_prog_compiler_static='$wl-static'
9054 ;;
9055 esac
9056 ;;
9057
9058 hpux9* | hpux10* | hpux11*)
9059 lt_prog_compiler_wl='-Wl,'
9060 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9061 # not for PA HP-UX.
9062 case $host_cpu in
9063 hppa*64*|ia64*)
9064 # +Z the default
9065 ;;
9066 *)
9067 lt_prog_compiler_pic='+Z'
9068 ;;
9069 esac
9070 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9071 lt_prog_compiler_static='$wl-a ${wl}archive'
9072 ;;
9073
9074 irix5* | irix6* | nonstopux*)
9075 lt_prog_compiler_wl='-Wl,'
9076 # PIC (with -KPIC) is the default.
9077 lt_prog_compiler_static='-non_shared'
9078 ;;
9079
9080 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9081 case $cc_basename in
9082 # old Intel for x86_64, which still supported -KPIC.
9083 ecc*)
9084 lt_prog_compiler_wl='-Wl,'
9085 lt_prog_compiler_pic='-KPIC'
9086 lt_prog_compiler_static='-static'
9087 ;;
9088 # icc used to be incompatible with GCC.
9089 # ICC 10 doesn't accept -KPIC any more.
9090 icc* | ifort*)
9091 lt_prog_compiler_wl='-Wl,'
9092 lt_prog_compiler_pic='-fPIC'
9093 lt_prog_compiler_static='-static'
9094 ;;
9095 # Lahey Fortran 8.1.
9096 lf95*)
9097 lt_prog_compiler_wl='-Wl,'
9098 lt_prog_compiler_pic='--shared'
9099 lt_prog_compiler_static='--static'
9100 ;;
9101 nagfor*)
9102 # NAG Fortran compiler
9103 lt_prog_compiler_wl='-Wl,-Wl,,'
9104 lt_prog_compiler_pic='-PIC'
9105 lt_prog_compiler_static='-Bstatic'
9106 ;;
9107 tcc*)
9108 # Fabrice Bellard et al's Tiny C Compiler
9109 lt_prog_compiler_wl='-Wl,'
9110 lt_prog_compiler_pic='-fPIC'
9111 lt_prog_compiler_static='-static'
9112 ;;
9113 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9114 # Portland Group compilers (*not* the Pentium gcc compiler,
9115 # which looks to be a dead project)
9116 lt_prog_compiler_wl='-Wl,'
9117 lt_prog_compiler_pic='-fpic'
9118 lt_prog_compiler_static='-Bstatic'
9119 ;;
9120 ccc*)
9121 lt_prog_compiler_wl='-Wl,'
9122 # All Alpha code is PIC.
9123 lt_prog_compiler_static='-non_shared'
9124 ;;
9125 xl* | bgxl* | bgf* | mpixl*)
9126 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9127 lt_prog_compiler_wl='-Wl,'
9128 lt_prog_compiler_pic='-qpic'
9129 lt_prog_compiler_static='-qstaticlink'
9130 ;;
9131 *)
9132 case `$CC -V 2>&1 | $SED 5q` in
9133 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9134 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9135 lt_prog_compiler_pic='-KPIC'
9136 lt_prog_compiler_static='-Bstatic'
9137 lt_prog_compiler_wl=''
9138 ;;
9139 *Sun\ F* | *Sun*Fortran*)
9140 lt_prog_compiler_pic='-KPIC'
9141 lt_prog_compiler_static='-Bstatic'
9142 lt_prog_compiler_wl='-Qoption ld '
9143 ;;
9144 *Sun\ C*)
9145 # Sun C 5.9
9146 lt_prog_compiler_pic='-KPIC'
9147 lt_prog_compiler_static='-Bstatic'
9148 lt_prog_compiler_wl='-Wl,'
9149 ;;
9150 *Intel*\ [CF]*Compiler*)
9151 lt_prog_compiler_wl='-Wl,'
9152 lt_prog_compiler_pic='-fPIC'
9153 lt_prog_compiler_static='-static'
9154 ;;
9155 *Portland\ Group*)
9156 lt_prog_compiler_wl='-Wl,'
9157 lt_prog_compiler_pic='-fpic'
9158 lt_prog_compiler_static='-Bstatic'
9159 ;;
9160 esac
9161 ;;
9162 esac
9163 ;;
9164
9165 newsos6)
9166 lt_prog_compiler_pic='-KPIC'
9167 lt_prog_compiler_static='-Bstatic'
9168 ;;
9169
9170 *nto* | *qnx*)
9171 # QNX uses GNU C++, but need to define -shared option too, otherwise
9172 # it will coredump.
9173 lt_prog_compiler_pic='-fPIC -shared'
9174 ;;
9175
9176 osf3* | osf4* | osf5*)
9177 lt_prog_compiler_wl='-Wl,'
9178 # All OSF/1 code is PIC.
9179 lt_prog_compiler_static='-non_shared'
9180 ;;
9181
9182 rdos*)
9183 lt_prog_compiler_static='-non_shared'
9184 ;;
9185
9186 solaris*)
9187 lt_prog_compiler_pic='-KPIC'
9188 lt_prog_compiler_static='-Bstatic'
9189 case $cc_basename in
9190 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9191 lt_prog_compiler_wl='-Qoption ld ';;
9192 *)
9193 lt_prog_compiler_wl='-Wl,';;
9194 esac
9195 ;;
9196
9197 sunos4*)
9198 lt_prog_compiler_wl='-Qoption ld '
9199 lt_prog_compiler_pic='-PIC'
9200 lt_prog_compiler_static='-Bstatic'
9201 ;;
9202
9203 sysv4 | sysv4.2uw2* | sysv4.3*)
9204 lt_prog_compiler_wl='-Wl,'
9205 lt_prog_compiler_pic='-KPIC'
9206 lt_prog_compiler_static='-Bstatic'
9207 ;;
9208
9209 sysv4*MP*)
9210 if test -d /usr/nec; then
9211 lt_prog_compiler_pic='-Kconform_pic'
9212 lt_prog_compiler_static='-Bstatic'
9213 fi
9214 ;;
9215
9216 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9217 lt_prog_compiler_wl='-Wl,'
9218 lt_prog_compiler_pic='-KPIC'
9219 lt_prog_compiler_static='-Bstatic'
9220 ;;
9221
9222 unicos*)
9223 lt_prog_compiler_wl='-Wl,'
9224 lt_prog_compiler_can_build_shared=no
9225 ;;
9226
9227 uts4*)
9228 lt_prog_compiler_pic='-pic'
9229 lt_prog_compiler_static='-Bstatic'
9230 ;;
9231
9232 *)
9233 lt_prog_compiler_can_build_shared=no
9234 ;;
9235 esac
9236 fi
9237
9238 case $host_os in
9239 # For platforms that do not support PIC, -DPIC is meaningless:
9240 *djgpp*)
9241 lt_prog_compiler_pic=
9242 ;;
9243 *)
9244 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9245 ;;
9246 esac
9247
9248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9249 printf %s "checking for $compiler option to produce PIC... " >&6; }
9250 if test ${lt_cv_prog_compiler_pic+y}
9251 then :
9252 printf %s "(cached) " >&6
9253 else $as_nop
9254 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9255 fi
9256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9257 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9258 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9259
9260 #
9261 # Check to make sure the PIC flag actually works.
9262 #
9263 if test -n "$lt_prog_compiler_pic"; then
9264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9265 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9266 if test ${lt_cv_prog_compiler_pic_works+y}
9267 then :
9268 printf %s "(cached) " >&6
9269 else $as_nop
9270 lt_cv_prog_compiler_pic_works=no
9271 ac_outfile=conftest.$ac_objext
9272 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9273 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9274 # Insert the option either (1) after the last *FLAGS variable, or
9275 # (2) before a word containing "conftest.", or (3) at the end.
9276 # Note that $ac_compile itself does not contain backslashes and begins
9277 # with a dollar sign (not a hyphen), so the echo should work correctly.
9278 # The option is referenced via a variable to avoid confusing sed.
9279 lt_compile=`echo "$ac_compile" | $SED \
9280 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9281 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9282 -e 's:$: $lt_compiler_flag:'`
9283 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9284 (eval "$lt_compile" 2>conftest.err)
9285 ac_status=$?
9286 cat conftest.err >&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 if (exit $ac_status) && test -s "$ac_outfile"; then
9289 # The compiler can only warn and ignore the option if not recognized
9290 # So say no if there are warnings other than the usual output.
9291 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9292 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9293 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9294 lt_cv_prog_compiler_pic_works=yes
9295 fi
9296 fi
9297 $RM conftest*
9298
9299 fi
9300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9301 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9302
9303 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9304 case $lt_prog_compiler_pic in
9305 "" | " "*) ;;
9306 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9307 esac
9308 else
9309 lt_prog_compiler_pic=
9310 lt_prog_compiler_can_build_shared=no
9311 fi
9312
9313 fi
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325 #
9326 # Check to make sure the static flag actually works.
9327 #
9328 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9330 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9331 if test ${lt_cv_prog_compiler_static_works+y}
9332 then :
9333 printf %s "(cached) " >&6
9334 else $as_nop
9335 lt_cv_prog_compiler_static_works=no
9336 save_LDFLAGS=$LDFLAGS
9337 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9338 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9339 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9340 # The linker can only warn and ignore the option if not recognized
9341 # So say no if there are warnings
9342 if test -s conftest.err; then
9343 # Append any errors to the config.log.
9344 cat conftest.err 1>&5
9345 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9346 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9347 if diff conftest.exp conftest.er2 >/dev/null; then
9348 lt_cv_prog_compiler_static_works=yes
9349 fi
9350 else
9351 lt_cv_prog_compiler_static_works=yes
9352 fi
9353 fi
9354 $RM -r conftest*
9355 LDFLAGS=$save_LDFLAGS
9356
9357 fi
9358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9359 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9360
9361 if test yes = "$lt_cv_prog_compiler_static_works"; then
9362 :
9363 else
9364 lt_prog_compiler_static=
9365 fi
9366
9367
9368
9369
9370
9371
9372
9373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9374 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9375 if test ${lt_cv_prog_compiler_c_o+y}
9376 then :
9377 printf %s "(cached) " >&6
9378 else $as_nop
9379 lt_cv_prog_compiler_c_o=no
9380 $RM -r conftest 2>/dev/null
9381 mkdir conftest
9382 cd conftest
9383 mkdir out
9384 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9385
9386 lt_compiler_flag="-o out/conftest2.$ac_objext"
9387 # Insert the option either (1) after the last *FLAGS variable, or
9388 # (2) before a word containing "conftest.", or (3) at the end.
9389 # Note that $ac_compile itself does not contain backslashes and begins
9390 # with a dollar sign (not a hyphen), so the echo should work correctly.
9391 lt_compile=`echo "$ac_compile" | $SED \
9392 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9393 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9394 -e 's:$: $lt_compiler_flag:'`
9395 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9396 (eval "$lt_compile" 2>out/conftest.err)
9397 ac_status=$?
9398 cat out/conftest.err >&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9401 then
9402 # The compiler can only warn and ignore the option if not recognized
9403 # So say no if there are warnings
9404 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9405 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9406 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9407 lt_cv_prog_compiler_c_o=yes
9408 fi
9409 fi
9410 chmod u+w . 2>&5
9411 $RM conftest*
9412 # SGI C++ compiler will create directory out/ii_files/ for
9413 # template instantiation
9414 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9415 $RM out/* && rmdir out
9416 cd ..
9417 $RM -r conftest
9418 $RM conftest*
9419
9420 fi
9421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9422 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9423
9424
9425
9426
9427
9428
9429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9430 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9431 if test ${lt_cv_prog_compiler_c_o+y}
9432 then :
9433 printf %s "(cached) " >&6
9434 else $as_nop
9435 lt_cv_prog_compiler_c_o=no
9436 $RM -r conftest 2>/dev/null
9437 mkdir conftest
9438 cd conftest
9439 mkdir out
9440 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9441
9442 lt_compiler_flag="-o out/conftest2.$ac_objext"
9443 # Insert the option either (1) after the last *FLAGS variable, or
9444 # (2) before a word containing "conftest.", or (3) at the end.
9445 # Note that $ac_compile itself does not contain backslashes and begins
9446 # with a dollar sign (not a hyphen), so the echo should work correctly.
9447 lt_compile=`echo "$ac_compile" | $SED \
9448 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9449 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9450 -e 's:$: $lt_compiler_flag:'`
9451 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9452 (eval "$lt_compile" 2>out/conftest.err)
9453 ac_status=$?
9454 cat out/conftest.err >&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9457 then
9458 # The compiler can only warn and ignore the option if not recognized
9459 # So say no if there are warnings
9460 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9461 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9462 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9463 lt_cv_prog_compiler_c_o=yes
9464 fi
9465 fi
9466 chmod u+w . 2>&5
9467 $RM conftest*
9468 # SGI C++ compiler will create directory out/ii_files/ for
9469 # template instantiation
9470 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9471 $RM out/* && rmdir out
9472 cd ..
9473 $RM -r conftest
9474 $RM conftest*
9475
9476 fi
9477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9478 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9479
9480
9481
9482
9483 hard_links=nottested
9484 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9485 # do not overwrite the value of need_locks provided by the user
9486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9487 printf %s "checking if we can lock with hard links... " >&6; }
9488 hard_links=yes
9489 $RM conftest*
9490 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9491 touch conftest.a
9492 ln conftest.a conftest.b 2>&5 || hard_links=no
9493 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9495 printf "%s\n" "$hard_links" >&6; }
9496 if test no = "$hard_links"; then
9497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9498 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9499 need_locks=warn
9500 fi
9501 else
9502 need_locks=no
9503 fi
9504
9505
9506
9507
9508
9509
9510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9511 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9512
9513 runpath_var=
9514 allow_undefined_flag=
9515 always_export_symbols=no
9516 archive_cmds=
9517 archive_expsym_cmds=
9518 compiler_needs_object=no
9519 enable_shared_with_static_runtimes=no
9520 export_dynamic_flag_spec=
9521 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9522 hardcode_automatic=no
9523 hardcode_direct=no
9524 hardcode_direct_absolute=no
9525 hardcode_libdir_flag_spec=
9526 hardcode_libdir_separator=
9527 hardcode_minus_L=no
9528 hardcode_shlibpath_var=unsupported
9529 inherit_rpath=no
9530 link_all_deplibs=unknown
9531 module_cmds=
9532 module_expsym_cmds=
9533 old_archive_from_new_cmds=
9534 old_archive_from_expsyms_cmds=
9535 thread_safe_flag_spec=
9536 whole_archive_flag_spec=
9537 # include_expsyms should be a list of space-separated symbols to be *always*
9538 # included in the symbol list
9539 include_expsyms=
9540 # exclude_expsyms can be an extended regexp of symbols to exclude
9541 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9542 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9543 # as well as any symbol that contains 'd'.
9544 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9545 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9546 # platforms (ab)use it in PIC code, but their linkers get confused if
9547 # the symbol is explicitly referenced. Since portable code cannot
9548 # rely on this symbol name, it's probably fine to never include it in
9549 # preloaded symbol tables.
9550 # Exclude shared library initialization/finalization symbols.
9551 extract_expsyms_cmds=
9552
9553 case $host_os in
9554 cygwin* | mingw* | pw32* | cegcc*)
9555 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9556 # When not using gcc, we currently assume that we are using
9557 # Microsoft Visual C++ or Intel C++ Compiler.
9558 if test yes != "$GCC"; then
9559 with_gnu_ld=no
9560 fi
9561 ;;
9562 interix*)
9563 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9564 with_gnu_ld=yes
9565 ;;
9566 openbsd* | bitrig*)
9567 with_gnu_ld=no
9568 ;;
9569 esac
9570
9571 ld_shlibs=yes
9572
9573 # On some targets, GNU ld is compatible enough with the native linker
9574 # that we're better off using the native interface for both.
9575 lt_use_gnu_ld_interface=no
9576 if test yes = "$with_gnu_ld"; then
9577 case $host_os in
9578 aix*)
9579 # The AIX port of GNU ld has always aspired to compatibility
9580 # with the native linker. However, as the warning in the GNU ld
9581 # block says, versions before 2.19.5* couldn't really create working
9582 # shared libraries, regardless of the interface used.
9583 case `$LD -v 2>&1` in
9584 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9585 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9586 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9587 *)
9588 lt_use_gnu_ld_interface=yes
9589 ;;
9590 esac
9591 ;;
9592 *)
9593 lt_use_gnu_ld_interface=yes
9594 ;;
9595 esac
9596 fi
9597
9598 if test yes = "$lt_use_gnu_ld_interface"; then
9599 # If archive_cmds runs LD, not CC, wlarc should be empty
9600 wlarc='$wl'
9601
9602 # Set some defaults for GNU ld with shared library support. These
9603 # are reset later if shared libraries are not supported. Putting them
9604 # here allows them to be overridden if necessary.
9605 runpath_var=LD_RUN_PATH
9606 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9607 export_dynamic_flag_spec='$wl--export-dynamic'
9608 # ancient GNU ld didn't support --whole-archive et. al.
9609 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9610 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9611 else
9612 whole_archive_flag_spec=
9613 fi
9614 supports_anon_versioning=no
9615 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9616 *GNU\ gold*) supports_anon_versioning=yes ;;
9617 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9618 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9619 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9620 *\ 2.11.*) ;; # other 2.11 versions
9621 *) supports_anon_versioning=yes ;;
9622 esac
9623
9624 # See if GNU ld supports shared libraries.
9625 case $host_os in
9626 aix[3-9]*)
9627 # On AIX/PPC, the GNU linker is very broken
9628 if test ia64 != "$host_cpu"; then
9629 ld_shlibs=no
9630 cat <<_LT_EOF 1>&2
9631
9632 *** Warning: the GNU linker, at least up to release 2.19, is reported
9633 *** to be unable to reliably create shared libraries on AIX.
9634 *** Therefore, libtool is disabling shared libraries support. If you
9635 *** really care for shared libraries, you may want to install binutils
9636 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9637 *** You will then need to restart the configuration process.
9638
9639 _LT_EOF
9640 fi
9641 ;;
9642
9643 amigaos*)
9644 case $host_cpu in
9645 powerpc)
9646 # see comment about AmigaOS4 .so support
9647 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9648 archive_expsym_cmds=''
9649 ;;
9650 m68k)
9651 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)'
9652 hardcode_libdir_flag_spec='-L$libdir'
9653 hardcode_minus_L=yes
9654 ;;
9655 esac
9656 ;;
9657
9658 beos*)
9659 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9660 allow_undefined_flag=unsupported
9661 # Joseph Beckenbach <[email protected]> says some releases of gcc
9662 # support --undefined. This deserves some investigation. FIXME
9663 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9664 else
9665 ld_shlibs=no
9666 fi
9667 ;;
9668
9669 cygwin* | mingw* | pw32* | cegcc*)
9670 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9671 # as there is no search path for DLLs.
9672 hardcode_libdir_flag_spec='-L$libdir'
9673 export_dynamic_flag_spec='$wl--export-all-symbols'
9674 allow_undefined_flag=unsupported
9675 always_export_symbols=no
9676 enable_shared_with_static_runtimes=yes
9677 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'
9678 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9679
9680 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9681 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9682 # If the export-symbols file already is a .def file, use it as
9683 # is; otherwise, prepend EXPORTS...
9684 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9685 cp $export_symbols $output_objdir/$soname.def;
9686 else
9687 echo EXPORTS > $output_objdir/$soname.def;
9688 cat $export_symbols >> $output_objdir/$soname.def;
9689 fi~
9690 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9691 else
9692 ld_shlibs=no
9693 fi
9694 ;;
9695
9696 haiku*)
9697 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9698 link_all_deplibs=yes
9699 ;;
9700
9701 os2*)
9702 hardcode_libdir_flag_spec='-L$libdir'
9703 hardcode_minus_L=yes
9704 allow_undefined_flag=unsupported
9705 shrext_cmds=.dll
9706 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9707 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9708 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9709 $ECHO EXPORTS >> $output_objdir/$libname.def~
9710 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9711 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9712 emximp -o $lib $output_objdir/$libname.def'
9713 archive_expsym_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 prefix_cmds="$SED"~
9718 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9719 prefix_cmds="$prefix_cmds -e 1d";
9720 fi~
9721 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9722 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9723 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9724 emximp -o $lib $output_objdir/$libname.def'
9725 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9726 enable_shared_with_static_runtimes=yes
9727 file_list_spec='@'
9728 ;;
9729
9730 interix[3-9]*)
9731 hardcode_direct=no
9732 hardcode_shlibpath_var=no
9733 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9734 export_dynamic_flag_spec='$wl-E'
9735 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9736 # Instead, shared libraries are loaded at an image base (0x10000000 by
9737 # default) and relocated if they conflict, which is a slow very memory
9738 # consuming and fragmenting process. To avoid this, we pick a random,
9739 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9740 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9741 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9742 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'
9743 ;;
9744
9745 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9746 tmp_diet=no
9747 if test linux-dietlibc = "$host_os"; then
9748 case $cc_basename in
9749 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9750 esac
9751 fi
9752 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9753 && test no = "$tmp_diet"
9754 then
9755 tmp_addflag=' $pic_flag'
9756 tmp_sharedflag='-shared'
9757 case $cc_basename,$host_cpu in
9758 pgcc*) # Portland Group C compiler
9759 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'
9760 tmp_addflag=' $pic_flag'
9761 ;;
9762 pgf77* | pgf90* | pgf95* | pgfortran*)
9763 # Portland Group f77 and f90 compilers
9764 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'
9765 tmp_addflag=' $pic_flag -Mnomain' ;;
9766 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9767 tmp_addflag=' -i_dynamic' ;;
9768 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9769 tmp_addflag=' -i_dynamic -nofor_main' ;;
9770 ifc* | ifort*) # Intel Fortran compiler
9771 tmp_addflag=' -nofor_main' ;;
9772 lf95*) # Lahey Fortran 8.1
9773 whole_archive_flag_spec=
9774 tmp_sharedflag='--shared' ;;
9775 nagfor*) # NAGFOR 5.3
9776 tmp_sharedflag='-Wl,-shared' ;;
9777 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9778 tmp_sharedflag='-qmkshrobj'
9779 tmp_addflag= ;;
9780 nvcc*) # Cuda Compiler Driver 2.2
9781 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'
9782 compiler_needs_object=yes
9783 ;;
9784 esac
9785 case `$CC -V 2>&1 | $SED 5q` in
9786 *Sun\ C*) # Sun C 5.9
9787 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'
9788 compiler_needs_object=yes
9789 tmp_sharedflag='-G' ;;
9790 *Sun\ F*) # Sun Fortran 8.3
9791 tmp_sharedflag='-G' ;;
9792 esac
9793 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9794
9795 if test yes = "$supports_anon_versioning"; then
9796 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9797 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9798 echo "local: *; };" >> $output_objdir/$libname.ver~
9799 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9800 fi
9801
9802 case $cc_basename in
9803 tcc*)
9804 export_dynamic_flag_spec='-rdynamic'
9805 ;;
9806 xlf* | bgf* | bgxlf* | mpixlf*)
9807 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9808 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9809 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9810 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9811 if test yes = "$supports_anon_versioning"; then
9812 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9813 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9814 echo "local: *; };" >> $output_objdir/$libname.ver~
9815 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9816 fi
9817 ;;
9818 esac
9819 else
9820 ld_shlibs=no
9821 fi
9822 ;;
9823
9824 netbsd*)
9825 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9826 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9827 wlarc=
9828 else
9829 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9830 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9831 fi
9832 ;;
9833
9834 solaris*)
9835 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9836 ld_shlibs=no
9837 cat <<_LT_EOF 1>&2
9838
9839 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9840 *** create shared libraries on Solaris systems. Therefore, libtool
9841 *** is disabling shared libraries support. We urge you to upgrade GNU
9842 *** binutils to release 2.9.1 or newer. Another option is to modify
9843 *** your PATH or compiler configuration so that the native linker is
9844 *** used, and then restart.
9845
9846 _LT_EOF
9847 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9848 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9849 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9850 else
9851 ld_shlibs=no
9852 fi
9853 ;;
9854
9855 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9856 case `$LD -v 2>&1` in
9857 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9858 ld_shlibs=no
9859 cat <<_LT_EOF 1>&2
9860
9861 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9862 *** reliably create shared libraries on SCO systems. Therefore, libtool
9863 *** is disabling shared libraries support. We urge you to upgrade GNU
9864 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9865 *** your PATH or compiler configuration so that the native linker is
9866 *** used, and then restart.
9867
9868 _LT_EOF
9869 ;;
9870 *)
9871 # For security reasons, it is highly recommended that you always
9872 # use absolute paths for naming shared libraries, and exclude the
9873 # DT_RUNPATH tag from executables and libraries. But doing so
9874 # requires that you compile everything twice, which is a pain.
9875 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9876 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9877 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9878 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9879 else
9880 ld_shlibs=no
9881 fi
9882 ;;
9883 esac
9884 ;;
9885
9886 sunos4*)
9887 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9888 wlarc=
9889 hardcode_direct=yes
9890 hardcode_shlibpath_var=no
9891 ;;
9892
9893 *)
9894 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9895 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9896 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9897 else
9898 ld_shlibs=no
9899 fi
9900 ;;
9901 esac
9902
9903 if test no = "$ld_shlibs"; then
9904 runpath_var=
9905 hardcode_libdir_flag_spec=
9906 export_dynamic_flag_spec=
9907 whole_archive_flag_spec=
9908 fi
9909 else
9910 # PORTME fill in a description of your system's linker (not GNU ld)
9911 case $host_os in
9912 aix3*)
9913 allow_undefined_flag=unsupported
9914 always_export_symbols=yes
9915 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'
9916 # Note: this linker hardcodes the directories in LIBPATH if there
9917 # are no directories specified by -L.
9918 hardcode_minus_L=yes
9919 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9920 # Neither direct hardcoding nor static linking is supported with a
9921 # broken collect2.
9922 hardcode_direct=unsupported
9923 fi
9924 ;;
9925
9926 aix[4-9]*)
9927 if test ia64 = "$host_cpu"; then
9928 # On IA64, the linker does run time linking by default, so we don't
9929 # have to do anything special.
9930 aix_use_runtimelinking=no
9931 exp_sym_flag='-Bexport'
9932 no_entry_flag=
9933 else
9934 # If we're using GNU nm, then we don't want the "-C" option.
9935 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9936 # Without the "-l" option, or with the "-B" option, AIX nm treats
9937 # weak defined symbols like other global defined symbols, whereas
9938 # GNU nm marks them as "W".
9939 # While the 'weak' keyword is ignored in the Export File, we need
9940 # it in the Import File for the 'aix-soname' feature, so we have
9941 # to replace the "-B" option with "-P" for AIX nm.
9942 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9943 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'
9944 else
9945 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'
9946 fi
9947 aix_use_runtimelinking=no
9948
9949 # Test if we are trying to use run time linking or normal
9950 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9951 # have runtime linking enabled, and use it for executables.
9952 # For shared libraries, we enable/disable runtime linking
9953 # depending on the kind of the shared library created -
9954 # when "with_aix_soname,aix_use_runtimelinking" is:
9955 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9956 # "aix,yes" lib.so shared, rtl:yes, for executables
9957 # lib.a static archive
9958 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9959 # lib.a(lib.so.V) shared, rtl:no, for executables
9960 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9961 # lib.a(lib.so.V) shared, rtl:no
9962 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9963 # lib.a static archive
9964 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9965 for ld_flag in $LDFLAGS; do
9966 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9967 aix_use_runtimelinking=yes
9968 break
9969 fi
9970 done
9971 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9972 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9973 # so we don't have lib.a shared libs to link our executables.
9974 # We have to force runtime linking in this case.
9975 aix_use_runtimelinking=yes
9976 LDFLAGS="$LDFLAGS -Wl,-brtl"
9977 fi
9978 ;;
9979 esac
9980
9981 exp_sym_flag='-bexport'
9982 no_entry_flag='-bnoentry'
9983 fi
9984
9985 # When large executables or shared objects are built, AIX ld can
9986 # have problems creating the table of contents. If linking a library
9987 # or program results in "error TOC overflow" add -mminimal-toc to
9988 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9989 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9990
9991 archive_cmds=''
9992 hardcode_direct=yes
9993 hardcode_direct_absolute=yes
9994 hardcode_libdir_separator=':'
9995 link_all_deplibs=yes
9996 file_list_spec='$wl-f,'
9997 case $with_aix_soname,$aix_use_runtimelinking in
9998 aix,*) ;; # traditional, no import file
9999 svr4,* | *,yes) # use import file
10000 # The Import File defines what to hardcode.
10001 hardcode_direct=no
10002 hardcode_direct_absolute=no
10003 ;;
10004 esac
10005
10006 if test yes = "$GCC"; then
10007 case $host_os in aix4.[012]|aix4.[012].*)
10008 # We only want to do this on AIX 4.2 and lower, the check
10009 # below for broken collect2 doesn't work under 4.3+
10010 collect2name=`$CC -print-prog-name=collect2`
10011 if test -f "$collect2name" &&
10012 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10013 then
10014 # We have reworked collect2
10015 :
10016 else
10017 # We have old collect2
10018 hardcode_direct=unsupported
10019 # It fails to find uninstalled libraries when the uninstalled
10020 # path is not listed in the libpath. Setting hardcode_minus_L
10021 # to unsupported forces relinking
10022 hardcode_minus_L=yes
10023 hardcode_libdir_flag_spec='-L$libdir'
10024 hardcode_libdir_separator=
10025 fi
10026 ;;
10027 esac
10028 shared_flag='-shared'
10029 if test yes = "$aix_use_runtimelinking"; then
10030 shared_flag="$shared_flag "'$wl-G'
10031 fi
10032 # Need to ensure runtime linking is disabled for the traditional
10033 # shared library, or the linker may eventually find shared libraries
10034 # /with/ Import File - we do not want to mix them.
10035 shared_flag_aix='-shared'
10036 shared_flag_svr4='-shared $wl-G'
10037 else
10038 # not using gcc
10039 if test ia64 = "$host_cpu"; then
10040 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10041 # chokes on -Wl,-G. The following line is correct:
10042 shared_flag='-G'
10043 else
10044 if test yes = "$aix_use_runtimelinking"; then
10045 shared_flag='$wl-G'
10046 else
10047 shared_flag='$wl-bM:SRE'
10048 fi
10049 shared_flag_aix='$wl-bM:SRE'
10050 shared_flag_svr4='$wl-G'
10051 fi
10052 fi
10053
10054 export_dynamic_flag_spec='$wl-bexpall'
10055 # It seems that -bexpall does not export symbols beginning with
10056 # underscore (_), so it is better to generate a list of symbols to export.
10057 always_export_symbols=yes
10058 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10059 # Warning - without using the other runtime loading flags (-brtl),
10060 # -berok will link without error, but may produce a broken library.
10061 allow_undefined_flag='-berok'
10062 # Determine the default libpath from the value encoded in an
10063 # empty executable.
10064 if test set = "${lt_cv_aix_libpath+set}"; then
10065 aix_libpath=$lt_cv_aix_libpath
10066 else
10067 if test ${lt_cv_aix_libpath_+y}
10068 then :
10069 printf %s "(cached) " >&6
10070 else $as_nop
10071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10072 /* end confdefs.h. */
10073
10074 int
10075 main (void)
10076 {
10077
10078 ;
10079 return 0;
10080 }
10081 _ACEOF
10082 if ac_fn_c_try_link "$LINENO"
10083 then :
10084
10085 lt_aix_libpath_sed='
10086 /Import File Strings/,/^$/ {
10087 /^0/ {
10088 s/^0 *\([^ ]*\) *$/\1/
10089 p
10090 }
10091 }'
10092 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10093 # Check for a 64-bit object if we didn't find anything.
10094 if test -z "$lt_cv_aix_libpath_"; then
10095 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10096 fi
10097 fi
10098 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10099 conftest$ac_exeext conftest.$ac_ext
10100 if test -z "$lt_cv_aix_libpath_"; then
10101 lt_cv_aix_libpath_=/usr/lib:/lib
10102 fi
10103
10104 fi
10105
10106 aix_libpath=$lt_cv_aix_libpath_
10107 fi
10108
10109 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10110 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
10111 else
10112 if test ia64 = "$host_cpu"; then
10113 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10114 allow_undefined_flag="-z nodefs"
10115 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"
10116 else
10117 # Determine the default libpath from the value encoded in an
10118 # empty executable.
10119 if test set = "${lt_cv_aix_libpath+set}"; then
10120 aix_libpath=$lt_cv_aix_libpath
10121 else
10122 if test ${lt_cv_aix_libpath_+y}
10123 then :
10124 printf %s "(cached) " >&6
10125 else $as_nop
10126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10127 /* end confdefs.h. */
10128
10129 int
10130 main (void)
10131 {
10132
10133 ;
10134 return 0;
10135 }
10136 _ACEOF
10137 if ac_fn_c_try_link "$LINENO"
10138 then :
10139
10140 lt_aix_libpath_sed='
10141 /Import File Strings/,/^$/ {
10142 /^0/ {
10143 s/^0 *\([^ ]*\) *$/\1/
10144 p
10145 }
10146 }'
10147 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10148 # Check for a 64-bit object if we didn't find anything.
10149 if test -z "$lt_cv_aix_libpath_"; then
10150 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10151 fi
10152 fi
10153 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10154 conftest$ac_exeext conftest.$ac_ext
10155 if test -z "$lt_cv_aix_libpath_"; then
10156 lt_cv_aix_libpath_=/usr/lib:/lib
10157 fi
10158
10159 fi
10160
10161 aix_libpath=$lt_cv_aix_libpath_
10162 fi
10163
10164 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10165 # Warning - without using the other run time loading flags,
10166 # -berok will link without error, but may produce a broken library.
10167 no_undefined_flag=' $wl-bernotok'
10168 allow_undefined_flag=' $wl-berok'
10169 if test yes = "$with_gnu_ld"; then
10170 # We only use this code for GNU lds that support --whole-archive.
10171 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10172 else
10173 # Exported symbols can be pulled into shared objects from archives
10174 whole_archive_flag_spec='$convenience'
10175 fi
10176 archive_cmds_need_lc=yes
10177 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10178 # -brtl affects multiple linker settings, -berok does not and is overridden later
10179 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10180 if test svr4 != "$with_aix_soname"; then
10181 # This is similar to how AIX traditionally builds its shared libraries.
10182 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'
10183 fi
10184 if test aix != "$with_aix_soname"; then
10185 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'
10186 else
10187 # used by -dlpreopen to get the symbols
10188 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10189 fi
10190 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10191 fi
10192 fi
10193 ;;
10194
10195 amigaos*)
10196 case $host_cpu in
10197 powerpc)
10198 # see comment about AmigaOS4 .so support
10199 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10200 archive_expsym_cmds=''
10201 ;;
10202 m68k)
10203 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)'
10204 hardcode_libdir_flag_spec='-L$libdir'
10205 hardcode_minus_L=yes
10206 ;;
10207 esac
10208 ;;
10209
10210 bsdi[45]*)
10211 export_dynamic_flag_spec=-rdynamic
10212 ;;
10213
10214 cygwin* | mingw* | pw32* | cegcc*)
10215 # When not using gcc, we currently assume that we are using
10216 # Microsoft Visual C++ or Intel C++ Compiler.
10217 # hardcode_libdir_flag_spec is actually meaningless, as there is
10218 # no search path for DLLs.
10219 case $cc_basename in
10220 cl* | icl*)
10221 # Native MSVC or ICC
10222 hardcode_libdir_flag_spec=' '
10223 allow_undefined_flag=unsupported
10224 always_export_symbols=yes
10225 file_list_spec='@'
10226 # Tell ltmain to make .lib files, not .a files.
10227 libext=lib
10228 # Tell ltmain to make .dll files, not .so files.
10229 shrext_cmds=.dll
10230 # FIXME: Setting linknames here is a bad hack.
10231 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10232 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10233 cp "$export_symbols" "$output_objdir/$soname.def";
10234 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10235 else
10236 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10237 fi~
10238 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10239 linknames='
10240 # The linker will not automatically build a static lib if we build a DLL.
10241 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10242 enable_shared_with_static_runtimes=yes
10243 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10244 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10245 # Don't use ranlib
10246 old_postinstall_cmds='chmod 644 $oldlib'
10247 postlink_cmds='lt_outputfile="@OUTPUT@"~
10248 lt_tool_outputfile="@TOOL_OUTPUT@"~
10249 case $lt_outputfile in
10250 *.exe|*.EXE) ;;
10251 *)
10252 lt_outputfile=$lt_outputfile.exe
10253 lt_tool_outputfile=$lt_tool_outputfile.exe
10254 ;;
10255 esac~
10256 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10257 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10258 $RM "$lt_outputfile.manifest";
10259 fi'
10260 ;;
10261 *)
10262 # Assume MSVC and ICC wrapper
10263 hardcode_libdir_flag_spec=' '
10264 allow_undefined_flag=unsupported
10265 # Tell ltmain to make .lib files, not .a files.
10266 libext=lib
10267 # Tell ltmain to make .dll files, not .so files.
10268 shrext_cmds=.dll
10269 # FIXME: Setting linknames here is a bad hack.
10270 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10271 # The linker will automatically build a .lib file if we build a DLL.
10272 old_archive_from_new_cmds='true'
10273 # FIXME: Should let the user specify the lib program.
10274 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10275 enable_shared_with_static_runtimes=yes
10276 ;;
10277 esac
10278 ;;
10279
10280 darwin* | rhapsody*)
10281
10282
10283 archive_cmds_need_lc=no
10284 hardcode_direct=no
10285 hardcode_automatic=yes
10286 hardcode_shlibpath_var=unsupported
10287 if test yes = "$lt_cv_ld_force_load"; then
10288 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\"`'
10289
10290 else
10291 whole_archive_flag_spec=''
10292 fi
10293 link_all_deplibs=yes
10294 allow_undefined_flag=$_lt_dar_allow_undefined
10295 case $cc_basename in
10296 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10297 *) _lt_dar_can_shared=$GCC ;;
10298 esac
10299 if test yes = "$_lt_dar_can_shared"; then
10300 output_verbose_link_cmd=func_echo_all
10301 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10302 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10303 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"
10304 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"
10305
10306 else
10307 ld_shlibs=no
10308 fi
10309
10310 ;;
10311
10312 dgux*)
10313 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10314 hardcode_libdir_flag_spec='-L$libdir'
10315 hardcode_shlibpath_var=no
10316 ;;
10317
10318 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10319 # support. Future versions do this automatically, but an explicit c++rt0.o
10320 # does not break anything, and helps significantly (at the cost of a little
10321 # extra space).
10322 freebsd2.2*)
10323 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10324 hardcode_libdir_flag_spec='-R$libdir'
10325 hardcode_direct=yes
10326 hardcode_shlibpath_var=no
10327 ;;
10328
10329 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10330 freebsd2.*)
10331 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10332 hardcode_direct=yes
10333 hardcode_minus_L=yes
10334 hardcode_shlibpath_var=no
10335 ;;
10336
10337 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10338 freebsd* | dragonfly* | midnightbsd*)
10339 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10340 hardcode_libdir_flag_spec='-R$libdir'
10341 hardcode_direct=yes
10342 hardcode_shlibpath_var=no
10343 ;;
10344
10345 hpux9*)
10346 if test yes = "$GCC"; then
10347 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'
10348 else
10349 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'
10350 fi
10351 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10352 hardcode_libdir_separator=:
10353 hardcode_direct=yes
10354
10355 # hardcode_minus_L: Not really in the search PATH,
10356 # but as the default location of the library.
10357 hardcode_minus_L=yes
10358 export_dynamic_flag_spec='$wl-E'
10359 ;;
10360
10361 hpux10*)
10362 if test yes,no = "$GCC,$with_gnu_ld"; then
10363 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10364 else
10365 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10366 fi
10367 if test no = "$with_gnu_ld"; then
10368 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10369 hardcode_libdir_separator=:
10370 hardcode_direct=yes
10371 hardcode_direct_absolute=yes
10372 export_dynamic_flag_spec='$wl-E'
10373 # hardcode_minus_L: Not really in the search PATH,
10374 # but as the default location of the library.
10375 hardcode_minus_L=yes
10376 fi
10377 ;;
10378
10379 hpux11*)
10380 if test yes,no = "$GCC,$with_gnu_ld"; then
10381 case $host_cpu in
10382 hppa*64*)
10383 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10384 ;;
10385 ia64*)
10386 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10387 ;;
10388 *)
10389 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10390 ;;
10391 esac
10392 else
10393 case $host_cpu in
10394 hppa*64*)
10395 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10396 ;;
10397 ia64*)
10398 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10399 ;;
10400 *)
10401
10402 # Older versions of the 11.00 compiler do not understand -b yet
10403 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10405 printf %s "checking if $CC understands -b... " >&6; }
10406 if test ${lt_cv_prog_compiler__b+y}
10407 then :
10408 printf %s "(cached) " >&6
10409 else $as_nop
10410 lt_cv_prog_compiler__b=no
10411 save_LDFLAGS=$LDFLAGS
10412 LDFLAGS="$LDFLAGS -b"
10413 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10414 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10415 # The linker can only warn and ignore the option if not recognized
10416 # So say no if there are warnings
10417 if test -s conftest.err; then
10418 # Append any errors to the config.log.
10419 cat conftest.err 1>&5
10420 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10421 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10422 if diff conftest.exp conftest.er2 >/dev/null; then
10423 lt_cv_prog_compiler__b=yes
10424 fi
10425 else
10426 lt_cv_prog_compiler__b=yes
10427 fi
10428 fi
10429 $RM -r conftest*
10430 LDFLAGS=$save_LDFLAGS
10431
10432 fi
10433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10434 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10435
10436 if test yes = "$lt_cv_prog_compiler__b"; then
10437 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10438 else
10439 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10440 fi
10441
10442 ;;
10443 esac
10444 fi
10445 if test no = "$with_gnu_ld"; then
10446 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10447 hardcode_libdir_separator=:
10448
10449 case $host_cpu in
10450 hppa*64*|ia64*)
10451 hardcode_direct=no
10452 hardcode_shlibpath_var=no
10453 ;;
10454 *)
10455 hardcode_direct=yes
10456 hardcode_direct_absolute=yes
10457 export_dynamic_flag_spec='$wl-E'
10458
10459 # hardcode_minus_L: Not really in the search PATH,
10460 # but as the default location of the library.
10461 hardcode_minus_L=yes
10462 ;;
10463 esac
10464 fi
10465 ;;
10466
10467 irix5* | irix6* | nonstopux*)
10468 if test yes = "$GCC"; then
10469 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'
10470 # Try to use the -exported_symbol ld option, if it does not
10471 # work, assume that -exports_file does not work either and
10472 # implicitly export all symbols.
10473 # This should be the same for all languages, so no per-tag cache variable.
10474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10475 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10476 if test ${lt_cv_irix_exported_symbol+y}
10477 then :
10478 printf %s "(cached) " >&6
10479 else $as_nop
10480 save_LDFLAGS=$LDFLAGS
10481 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10483 /* end confdefs.h. */
10484 int foo (void) { return 0; }
10485 _ACEOF
10486 if ac_fn_c_try_link "$LINENO"
10487 then :
10488 lt_cv_irix_exported_symbol=yes
10489 else $as_nop
10490 lt_cv_irix_exported_symbol=no
10491 fi
10492 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10493 conftest$ac_exeext conftest.$ac_ext
10494 LDFLAGS=$save_LDFLAGS
10495 fi
10496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10497 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10498 if test yes = "$lt_cv_irix_exported_symbol"; then
10499 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'
10500 fi
10501 else
10502 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'
10503 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'
10504 fi
10505 archive_cmds_need_lc='no'
10506 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10507 hardcode_libdir_separator=:
10508 inherit_rpath=yes
10509 link_all_deplibs=yes
10510 ;;
10511
10512 linux*)
10513 case $cc_basename in
10514 tcc*)
10515 # Fabrice Bellard et al's Tiny C Compiler
10516 ld_shlibs=yes
10517 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10518 ;;
10519 esac
10520 ;;
10521
10522 netbsd*)
10523 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10524 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10525 else
10526 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10527 fi
10528 hardcode_libdir_flag_spec='-R$libdir'
10529 hardcode_direct=yes
10530 hardcode_shlibpath_var=no
10531 ;;
10532
10533 newsos6)
10534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10535 hardcode_direct=yes
10536 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10537 hardcode_libdir_separator=:
10538 hardcode_shlibpath_var=no
10539 ;;
10540
10541 *nto* | *qnx*)
10542 ;;
10543
10544 openbsd* | bitrig*)
10545 if test -f /usr/libexec/ld.so; then
10546 hardcode_direct=yes
10547 hardcode_shlibpath_var=no
10548 hardcode_direct_absolute=yes
10549 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10550 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10551 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10552 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10553 export_dynamic_flag_spec='$wl-E'
10554 else
10555 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10556 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10557 fi
10558 else
10559 ld_shlibs=no
10560 fi
10561 ;;
10562
10563 os2*)
10564 hardcode_libdir_flag_spec='-L$libdir'
10565 hardcode_minus_L=yes
10566 allow_undefined_flag=unsupported
10567 shrext_cmds=.dll
10568 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10569 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10570 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10571 $ECHO EXPORTS >> $output_objdir/$libname.def~
10572 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10573 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10574 emximp -o $lib $output_objdir/$libname.def'
10575 archive_expsym_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 prefix_cmds="$SED"~
10580 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10581 prefix_cmds="$prefix_cmds -e 1d";
10582 fi~
10583 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10584 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10585 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10586 emximp -o $lib $output_objdir/$libname.def'
10587 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10588 enable_shared_with_static_runtimes=yes
10589 file_list_spec='@'
10590 ;;
10591
10592 osf3*)
10593 if test yes = "$GCC"; then
10594 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10595 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'
10596 else
10597 allow_undefined_flag=' -expect_unresolved \*'
10598 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'
10599 fi
10600 archive_cmds_need_lc='no'
10601 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10602 hardcode_libdir_separator=:
10603 ;;
10604
10605 osf4* | osf5*) # as osf3* with the addition of -msym flag
10606 if test yes = "$GCC"; then
10607 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10608 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'
10609 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10610 else
10611 allow_undefined_flag=' -expect_unresolved \*'
10612 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'
10613 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~
10614 $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'
10615
10616 # Both c and cxx compiler support -rpath directly
10617 hardcode_libdir_flag_spec='-rpath $libdir'
10618 fi
10619 archive_cmds_need_lc='no'
10620 hardcode_libdir_separator=:
10621 ;;
10622
10623 solaris*)
10624 no_undefined_flag=' -z defs'
10625 if test yes = "$GCC"; then
10626 wlarc='$wl'
10627 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10628 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10629 $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'
10630 else
10631 case `$CC -V 2>&1` in
10632 *"Compilers 5.0"*)
10633 wlarc=''
10634 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10635 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10636 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10637 ;;
10638 *)
10639 wlarc='$wl'
10640 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10641 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10642 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10643 ;;
10644 esac
10645 fi
10646 hardcode_libdir_flag_spec='-R$libdir'
10647 hardcode_shlibpath_var=no
10648 case $host_os in
10649 solaris2.[0-5] | solaris2.[0-5].*) ;;
10650 *)
10651 # The compiler driver will combine and reorder linker options,
10652 # but understands '-z linker_flag'. GCC discards it without '$wl',
10653 # but is careful enough not to reorder.
10654 # Supported since Solaris 2.6 (maybe 2.5.1?)
10655 if test yes = "$GCC"; then
10656 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10657 else
10658 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10659 fi
10660 ;;
10661 esac
10662 link_all_deplibs=yes
10663 ;;
10664
10665 sunos4*)
10666 if test sequent = "$host_vendor"; then
10667 # Use $CC to link under sequent, because it throws in some extra .o
10668 # files that make .init and .fini sections work.
10669 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10670 else
10671 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10672 fi
10673 hardcode_libdir_flag_spec='-L$libdir'
10674 hardcode_direct=yes
10675 hardcode_minus_L=yes
10676 hardcode_shlibpath_var=no
10677 ;;
10678
10679 sysv4)
10680 case $host_vendor in
10681 sni)
10682 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10683 hardcode_direct=yes # is this really true???
10684 ;;
10685 siemens)
10686 ## LD is ld it makes a PLAMLIB
10687 ## CC just makes a GrossModule.
10688 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10689 reload_cmds='$CC -r -o $output$reload_objs'
10690 hardcode_direct=no
10691 ;;
10692 motorola)
10693 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10694 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10695 ;;
10696 esac
10697 runpath_var='LD_RUN_PATH'
10698 hardcode_shlibpath_var=no
10699 ;;
10700
10701 sysv4.3*)
10702 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10703 hardcode_shlibpath_var=no
10704 export_dynamic_flag_spec='-Bexport'
10705 ;;
10706
10707 sysv4*MP*)
10708 if test -d /usr/nec; then
10709 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10710 hardcode_shlibpath_var=no
10711 runpath_var=LD_RUN_PATH
10712 hardcode_runpath_var=yes
10713 ld_shlibs=yes
10714 fi
10715 ;;
10716
10717 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10718 no_undefined_flag='$wl-z,text'
10719 archive_cmds_need_lc=no
10720 hardcode_shlibpath_var=no
10721 runpath_var='LD_RUN_PATH'
10722
10723 if test yes = "$GCC"; then
10724 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10725 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10726 else
10727 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10728 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10729 fi
10730 ;;
10731
10732 sysv5* | sco3.2v5* | sco5v6*)
10733 # Note: We CANNOT use -z defs as we might desire, because we do not
10734 # link with -lc, and that would cause any symbols used from libc to
10735 # always be unresolved, which means just about no library would
10736 # ever link correctly. If we're not using GNU ld we use -z text
10737 # though, which does catch some bad symbols but isn't as heavy-handed
10738 # as -z defs.
10739 no_undefined_flag='$wl-z,text'
10740 allow_undefined_flag='$wl-z,nodefs'
10741 archive_cmds_need_lc=no
10742 hardcode_shlibpath_var=no
10743 hardcode_libdir_flag_spec='$wl-R,$libdir'
10744 hardcode_libdir_separator=':'
10745 link_all_deplibs=yes
10746 export_dynamic_flag_spec='$wl-Bexport'
10747 runpath_var='LD_RUN_PATH'
10748
10749 if test yes = "$GCC"; then
10750 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10751 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10752 else
10753 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10754 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10755 fi
10756 ;;
10757
10758 uts4*)
10759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10760 hardcode_libdir_flag_spec='-L$libdir'
10761 hardcode_shlibpath_var=no
10762 ;;
10763
10764 *)
10765 ld_shlibs=no
10766 ;;
10767 esac
10768
10769 if test sni = "$host_vendor"; then
10770 case $host in
10771 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10772 export_dynamic_flag_spec='$wl-Blargedynsym'
10773 ;;
10774 esac
10775 fi
10776 fi
10777
10778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10779 printf "%s\n" "$ld_shlibs" >&6; }
10780 test no = "$ld_shlibs" && can_build_shared=no
10781
10782 with_gnu_ld=$with_gnu_ld
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798 #
10799 # Do we need to explicitly link libc?
10800 #
10801 case "x$archive_cmds_need_lc" in
10802 x|xyes)
10803 # Assume -lc should be added
10804 archive_cmds_need_lc=yes
10805
10806 if test yes,yes = "$GCC,$enable_shared"; then
10807 case $archive_cmds in
10808 *'~'*)
10809 # FIXME: we may have to deal with multi-command sequences.
10810 ;;
10811 '$CC '*)
10812 # Test whether the compiler implicitly links with -lc since on some
10813 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10814 # to ld, don't add -lc before -lgcc.
10815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10816 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10817 if test ${lt_cv_archive_cmds_need_lc+y}
10818 then :
10819 printf %s "(cached) " >&6
10820 else $as_nop
10821 $RM conftest*
10822 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10823
10824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10825 (eval $ac_compile) 2>&5
10826 ac_status=$?
10827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10828 test $ac_status = 0; } 2>conftest.err; then
10829 soname=conftest
10830 lib=conftest
10831 libobjs=conftest.$ac_objext
10832 deplibs=
10833 wl=$lt_prog_compiler_wl
10834 pic_flag=$lt_prog_compiler_pic
10835 compiler_flags=-v
10836 linker_flags=-v
10837 verstring=
10838 output_objdir=.
10839 libname=conftest
10840 lt_save_allow_undefined_flag=$allow_undefined_flag
10841 allow_undefined_flag=
10842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10843 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10844 ac_status=$?
10845 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10846 test $ac_status = 0; }
10847 then
10848 lt_cv_archive_cmds_need_lc=no
10849 else
10850 lt_cv_archive_cmds_need_lc=yes
10851 fi
10852 allow_undefined_flag=$lt_save_allow_undefined_flag
10853 else
10854 cat conftest.err 1>&5
10855 fi
10856 $RM conftest*
10857
10858 fi
10859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10860 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10861 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10862 ;;
10863 esac
10864 fi
10865 ;;
10866 esac
10867
10868
10869
10870
10871
10872
10873
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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11020 printf %s "checking dynamic linker characteristics... " >&6; }
11021
11022 if test yes = "$GCC"; then
11023 case $host_os in
11024 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11025 *) lt_awk_arg='/^libraries:/' ;;
11026 esac
11027 case $host_os in
11028 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11029 *) lt_sed_strip_eq='s|=/|/|g' ;;
11030 esac
11031 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11032 case $lt_search_path_spec in
11033 *\;*)
11034 # if the path contains ";" then we assume it to be the separator
11035 # otherwise default to the standard path separator (i.e. ":") - it is
11036 # assumed that no part of a normal pathname contains ";" but that should
11037 # okay in the real world where ";" in dirpaths is itself problematic.
11038 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11039 ;;
11040 *)
11041 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11042 ;;
11043 esac
11044 # Ok, now we have the path, separated by spaces, we can step through it
11045 # and add multilib dir if necessary...
11046 lt_tmp_lt_search_path_spec=
11047 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11048 # ...but if some path component already ends with the multilib dir we assume
11049 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11050 case "$lt_multi_os_dir; $lt_search_path_spec " in
11051 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11052 lt_multi_os_dir=
11053 ;;
11054 esac
11055 for lt_sys_path in $lt_search_path_spec; do
11056 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11057 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11058 elif test -n "$lt_multi_os_dir"; then
11059 test -d "$lt_sys_path" && \
11060 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11061 fi
11062 done
11063 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11064 BEGIN {RS = " "; FS = "/|\n";} {
11065 lt_foo = "";
11066 lt_count = 0;
11067 for (lt_i = NF; lt_i > 0; lt_i--) {
11068 if ($lt_i != "" && $lt_i != ".") {
11069 if ($lt_i == "..") {
11070 lt_count++;
11071 } else {
11072 if (lt_count == 0) {
11073 lt_foo = "/" $lt_i lt_foo;
11074 } else {
11075 lt_count--;
11076 }
11077 }
11078 }
11079 }
11080 if (lt_foo != "") { lt_freq[lt_foo]++; }
11081 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11082 }'`
11083 # AWK program above erroneously prepends '/' to C:/dos/paths
11084 # for these hosts.
11085 case $host_os in
11086 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11087 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11088 esac
11089 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11090 else
11091 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11092 fi
11093 library_names_spec=
11094 libname_spec='lib$name'
11095 soname_spec=
11096 shrext_cmds=.so
11097 postinstall_cmds=
11098 postuninstall_cmds=
11099 finish_cmds=
11100 finish_eval=
11101 shlibpath_var=
11102 shlibpath_overrides_runpath=unknown
11103 version_type=none
11104 dynamic_linker="$host_os ld.so"
11105 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11106 need_lib_prefix=unknown
11107 hardcode_into_libs=no
11108
11109 # when you set need_version to no, make sure it does not cause -set_version
11110 # flags to be left without arguments
11111 need_version=unknown
11112
11113
11114
11115 case $host_os in
11116 aix3*)
11117 version_type=linux # correct to gnu/linux during the next big refactor
11118 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11119 shlibpath_var=LIBPATH
11120
11121 # AIX 3 has no versioning support, so we append a major version to the name.
11122 soname_spec='$libname$release$shared_ext$major'
11123 ;;
11124
11125 aix[4-9]*)
11126 version_type=linux # correct to gnu/linux during the next big refactor
11127 need_lib_prefix=no
11128 need_version=no
11129 hardcode_into_libs=yes
11130 if test ia64 = "$host_cpu"; then
11131 # AIX 5 supports IA64
11132 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11133 shlibpath_var=LD_LIBRARY_PATH
11134 else
11135 # With GCC up to 2.95.x, collect2 would create an import file
11136 # for dependence libraries. The import file would start with
11137 # the line '#! .'. This would cause the generated library to
11138 # depend on '.', always an invalid library. This was fixed in
11139 # development snapshots of GCC prior to 3.0.
11140 case $host_os in
11141 aix4 | aix4.[01] | aix4.[01].*)
11142 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11143 echo ' yes '
11144 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11145 :
11146 else
11147 can_build_shared=no
11148 fi
11149 ;;
11150 esac
11151 # Using Import Files as archive members, it is possible to support
11152 # filename-based versioning of shared library archives on AIX. While
11153 # this would work for both with and without runtime linking, it will
11154 # prevent static linking of such archives. So we do filename-based
11155 # shared library versioning with .so extension only, which is used
11156 # when both runtime linking and shared linking is enabled.
11157 # Unfortunately, runtime linking may impact performance, so we do
11158 # not want this to be the default eventually. Also, we use the
11159 # versioned .so libs for executables only if there is the -brtl
11160 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11161 # To allow for filename-based versioning support, we need to create
11162 # libNAME.so.V as an archive file, containing:
11163 # *) an Import File, referring to the versioned filename of the
11164 # archive as well as the shared archive member, telling the
11165 # bitwidth (32 or 64) of that shared object, and providing the
11166 # list of exported symbols of that shared object, eventually
11167 # decorated with the 'weak' keyword
11168 # *) the shared object with the F_LOADONLY flag set, to really avoid
11169 # it being seen by the linker.
11170 # At run time we better use the real file rather than another symlink,
11171 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11172
11173 case $with_aix_soname,$aix_use_runtimelinking in
11174 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11175 # soname into executable. Probably we can add versioning support to
11176 # collect2, so additional links can be useful in future.
11177 aix,yes) # traditional libtool
11178 dynamic_linker='AIX unversionable lib.so'
11179 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11180 # instead of lib<name>.a to let people know that these are not
11181 # typical AIX shared libraries.
11182 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11183 ;;
11184 aix,no) # traditional AIX only
11185 dynamic_linker='AIX lib.a(lib.so.V)'
11186 # We preserve .a as extension for shared libraries through AIX4.2
11187 # and later when we are not doing run time linking.
11188 library_names_spec='$libname$release.a $libname.a'
11189 soname_spec='$libname$release$shared_ext$major'
11190 ;;
11191 svr4,*) # full svr4 only
11192 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11193 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11194 # We do not specify a path in Import Files, so LIBPATH fires.
11195 shlibpath_overrides_runpath=yes
11196 ;;
11197 *,yes) # both, prefer svr4
11198 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11199 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11200 # unpreferred sharedlib libNAME.a needs extra handling
11201 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"'
11202 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"'
11203 # We do not specify a path in Import Files, so LIBPATH fires.
11204 shlibpath_overrides_runpath=yes
11205 ;;
11206 *,no) # both, prefer aix
11207 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11208 library_names_spec='$libname$release.a $libname.a'
11209 soname_spec='$libname$release$shared_ext$major'
11210 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11211 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)'
11212 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"'
11213 ;;
11214 esac
11215 shlibpath_var=LIBPATH
11216 fi
11217 ;;
11218
11219 amigaos*)
11220 case $host_cpu in
11221 powerpc)
11222 # Since July 2007 AmigaOS4 officially supports .so libraries.
11223 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11224 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11225 ;;
11226 m68k)
11227 library_names_spec='$libname.ixlibrary $libname.a'
11228 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11229 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'
11230 ;;
11231 esac
11232 ;;
11233
11234 beos*)
11235 library_names_spec='$libname$shared_ext'
11236 dynamic_linker="$host_os ld.so"
11237 shlibpath_var=LIBRARY_PATH
11238 ;;
11239
11240 bsdi[45]*)
11241 version_type=linux # correct to gnu/linux during the next big refactor
11242 need_version=no
11243 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11244 soname_spec='$libname$release$shared_ext$major'
11245 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11246 shlibpath_var=LD_LIBRARY_PATH
11247 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11248 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11249 # the default ld.so.conf also contains /usr/contrib/lib and
11250 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11251 # libtool to hard-code these into programs
11252 ;;
11253
11254 cygwin* | mingw* | pw32* | cegcc*)
11255 version_type=windows
11256 shrext_cmds=.dll
11257 need_version=no
11258 need_lib_prefix=no
11259
11260 case $GCC,$cc_basename in
11261 yes,*)
11262 # gcc
11263 library_names_spec='$libname.dll.a'
11264 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11265 postinstall_cmds='base_file=`basename \$file`~
11266 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11267 dldir=$destdir/`dirname \$dlpath`~
11268 test -d \$dldir || mkdir -p \$dldir~
11269 $install_prog $dir/$dlname \$dldir/$dlname~
11270 chmod a+x \$dldir/$dlname~
11271 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11272 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11273 fi'
11274 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11275 dlpath=$dir/\$dldll~
11276 $RM \$dlpath'
11277 shlibpath_overrides_runpath=yes
11278
11279 case $host_os in
11280 cygwin*)
11281 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11282 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11283
11284 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11285 ;;
11286 mingw* | cegcc*)
11287 # MinGW DLLs use traditional 'lib' prefix
11288 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11289 ;;
11290 pw32*)
11291 # pw32 DLLs use 'pw' prefix rather than 'lib'
11292 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11293 ;;
11294 esac
11295 dynamic_linker='Win32 ld.exe'
11296 ;;
11297
11298 *,cl* | *,icl*)
11299 # Native MSVC or ICC
11300 libname_spec='$name'
11301 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11302 library_names_spec='$libname.dll.lib'
11303
11304 case $build_os in
11305 mingw*)
11306 sys_lib_search_path_spec=
11307 lt_save_ifs=$IFS
11308 IFS=';'
11309 for lt_path in $LIB
11310 do
11311 IFS=$lt_save_ifs
11312 # Let DOS variable expansion print the short 8.3 style file name.
11313 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11314 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11315 done
11316 IFS=$lt_save_ifs
11317 # Convert to MSYS style.
11318 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11319 ;;
11320 cygwin*)
11321 # Convert to unix form, then to dos form, then back to unix form
11322 # but this time dos style (no spaces!) so that the unix form looks
11323 # like /cygdrive/c/PROGRA~1:/cygdr...
11324 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11325 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11326 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11327 ;;
11328 *)
11329 sys_lib_search_path_spec=$LIB
11330 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11331 # It is most probably a Windows format PATH.
11332 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11333 else
11334 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11335 fi
11336 # FIXME: find the short name or the path components, as spaces are
11337 # common. (e.g. "Program Files" -> "PROGRA~1")
11338 ;;
11339 esac
11340
11341 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11342 postinstall_cmds='base_file=`basename \$file`~
11343 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11344 dldir=$destdir/`dirname \$dlpath`~
11345 test -d \$dldir || mkdir -p \$dldir~
11346 $install_prog $dir/$dlname \$dldir/$dlname'
11347 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11348 dlpath=$dir/\$dldll~
11349 $RM \$dlpath'
11350 shlibpath_overrides_runpath=yes
11351 dynamic_linker='Win32 link.exe'
11352 ;;
11353
11354 *)
11355 # Assume MSVC and ICC wrapper
11356 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11357 dynamic_linker='Win32 ld.exe'
11358 ;;
11359 esac
11360 # FIXME: first we should search . and the directory the executable is in
11361 shlibpath_var=PATH
11362 ;;
11363
11364 darwin* | rhapsody*)
11365 dynamic_linker="$host_os dyld"
11366 version_type=darwin
11367 need_lib_prefix=no
11368 need_version=no
11369 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11370 soname_spec='$libname$release$major$shared_ext'
11371 shlibpath_overrides_runpath=yes
11372 shlibpath_var=DYLD_LIBRARY_PATH
11373 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11374
11375 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11376 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11377 ;;
11378
11379 dgux*)
11380 version_type=linux # correct to gnu/linux during the next big refactor
11381 need_lib_prefix=no
11382 need_version=no
11383 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11384 soname_spec='$libname$release$shared_ext$major'
11385 shlibpath_var=LD_LIBRARY_PATH
11386 ;;
11387
11388 freebsd* | dragonfly* | midnightbsd*)
11389 # DragonFly does not have aout. When/if they implement a new
11390 # versioning mechanism, adjust this.
11391 if test -x /usr/bin/objformat; then
11392 objformat=`/usr/bin/objformat`
11393 else
11394 case $host_os in
11395 freebsd[23].*) objformat=aout ;;
11396 *) objformat=elf ;;
11397 esac
11398 fi
11399 version_type=freebsd-$objformat
11400 case $version_type in
11401 freebsd-elf*)
11402 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11403 soname_spec='$libname$release$shared_ext$major'
11404 need_version=no
11405 need_lib_prefix=no
11406 ;;
11407 freebsd-*)
11408 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11409 need_version=yes
11410 ;;
11411 esac
11412 shlibpath_var=LD_LIBRARY_PATH
11413 case $host_os in
11414 freebsd2.*)
11415 shlibpath_overrides_runpath=yes
11416 ;;
11417 freebsd3.[01]* | freebsdelf3.[01]*)
11418 shlibpath_overrides_runpath=yes
11419 hardcode_into_libs=yes
11420 ;;
11421 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11422 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11423 shlibpath_overrides_runpath=no
11424 hardcode_into_libs=yes
11425 ;;
11426 *) # from 4.6 on, and DragonFly
11427 shlibpath_overrides_runpath=yes
11428 hardcode_into_libs=yes
11429 ;;
11430 esac
11431 ;;
11432
11433 haiku*)
11434 version_type=linux # correct to gnu/linux during the next big refactor
11435 need_lib_prefix=no
11436 need_version=no
11437 dynamic_linker="$host_os runtime_loader"
11438 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11439 soname_spec='$libname$release$shared_ext$major'
11440 shlibpath_var=LIBRARY_PATH
11441 shlibpath_overrides_runpath=no
11442 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11443 hardcode_into_libs=yes
11444 ;;
11445
11446 hpux9* | hpux10* | hpux11*)
11447 # Give a soname corresponding to the major version so that dld.sl refuses to
11448 # link against other versions.
11449 version_type=sunos
11450 need_lib_prefix=no
11451 need_version=no
11452 case $host_cpu in
11453 ia64*)
11454 shrext_cmds='.so'
11455 hardcode_into_libs=yes
11456 dynamic_linker="$host_os dld.so"
11457 shlibpath_var=LD_LIBRARY_PATH
11458 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11459 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11460 soname_spec='$libname$release$shared_ext$major'
11461 if test 32 = "$HPUX_IA64_MODE"; then
11462 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11463 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11464 else
11465 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11466 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11467 fi
11468 ;;
11469 hppa*64*)
11470 shrext_cmds='.sl'
11471 hardcode_into_libs=yes
11472 dynamic_linker="$host_os dld.sl"
11473 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11474 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11475 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11476 soname_spec='$libname$release$shared_ext$major'
11477 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11478 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11479 ;;
11480 *)
11481 shrext_cmds='.sl'
11482 dynamic_linker="$host_os dld.sl"
11483 shlibpath_var=SHLIB_PATH
11484 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11485 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11486 soname_spec='$libname$release$shared_ext$major'
11487 ;;
11488 esac
11489 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11490 postinstall_cmds='chmod 555 $lib'
11491 # or fails outright, so override atomically:
11492 install_override_mode=555
11493 ;;
11494
11495 interix[3-9]*)
11496 version_type=linux # correct to gnu/linux during the next big refactor
11497 need_lib_prefix=no
11498 need_version=no
11499 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11500 soname_spec='$libname$release$shared_ext$major'
11501 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11502 shlibpath_var=LD_LIBRARY_PATH
11503 shlibpath_overrides_runpath=no
11504 hardcode_into_libs=yes
11505 ;;
11506
11507 irix5* | irix6* | nonstopux*)
11508 case $host_os in
11509 nonstopux*) version_type=nonstopux ;;
11510 *)
11511 if test yes = "$lt_cv_prog_gnu_ld"; then
11512 version_type=linux # correct to gnu/linux during the next big refactor
11513 else
11514 version_type=irix
11515 fi ;;
11516 esac
11517 need_lib_prefix=no
11518 need_version=no
11519 soname_spec='$libname$release$shared_ext$major'
11520 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11521 case $host_os in
11522 irix5* | nonstopux*)
11523 libsuff= shlibsuff=
11524 ;;
11525 *)
11526 case $LD in # libtool.m4 will add one of these switches to LD
11527 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11528 libsuff= shlibsuff= libmagic=32-bit;;
11529 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11530 libsuff=32 shlibsuff=N32 libmagic=N32;;
11531 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11532 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11533 *) libsuff= shlibsuff= libmagic=never-match;;
11534 esac
11535 ;;
11536 esac
11537 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11538 shlibpath_overrides_runpath=no
11539 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11540 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11541 hardcode_into_libs=yes
11542 ;;
11543
11544 # No shared lib support for Linux oldld, aout, or coff.
11545 linux*oldld* | linux*aout* | linux*coff*)
11546 dynamic_linker=no
11547 ;;
11548
11549 linux*android*)
11550 version_type=none # Android doesn't support versioned libraries.
11551 need_lib_prefix=no
11552 need_version=no
11553 library_names_spec='$libname$release$shared_ext'
11554 soname_spec='$libname$release$shared_ext'
11555 finish_cmds=
11556 shlibpath_var=LD_LIBRARY_PATH
11557 shlibpath_overrides_runpath=yes
11558
11559 # This implies no fast_install, which is unacceptable.
11560 # Some rework will be needed to allow for fast_install
11561 # before this can be enabled.
11562 hardcode_into_libs=yes
11563
11564 dynamic_linker='Android linker'
11565 # Don't embed -rpath directories since the linker doesn't support them.
11566 hardcode_libdir_flag_spec='-L$libdir'
11567 ;;
11568
11569 # This must be glibc/ELF.
11570 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11571 version_type=linux # correct to gnu/linux during the next big refactor
11572 need_lib_prefix=no
11573 need_version=no
11574 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11575 soname_spec='$libname$release$shared_ext$major'
11576 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11577 shlibpath_var=LD_LIBRARY_PATH
11578 shlibpath_overrides_runpath=no
11579
11580 # Some binutils ld are patched to set DT_RUNPATH
11581 if test ${lt_cv_shlibpath_overrides_runpath+y}
11582 then :
11583 printf %s "(cached) " >&6
11584 else $as_nop
11585 lt_cv_shlibpath_overrides_runpath=no
11586 save_LDFLAGS=$LDFLAGS
11587 save_libdir=$libdir
11588 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11589 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11591 /* end confdefs.h. */
11592
11593 int
11594 main (void)
11595 {
11596
11597 ;
11598 return 0;
11599 }
11600 _ACEOF
11601 if ac_fn_c_try_link "$LINENO"
11602 then :
11603 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11604 then :
11605 lt_cv_shlibpath_overrides_runpath=yes
11606 fi
11607 fi
11608 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11609 conftest$ac_exeext conftest.$ac_ext
11610 LDFLAGS=$save_LDFLAGS
11611 libdir=$save_libdir
11612
11613 fi
11614
11615 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11616
11617 # This implies no fast_install, which is unacceptable.
11618 # Some rework will be needed to allow for fast_install
11619 # before this can be enabled.
11620 hardcode_into_libs=yes
11621
11622 # Ideally, we could use ldconfig to report *all* directores which are
11623 # searched for libraries, however this is still not possible. Aside from not
11624 # being certain /sbin/ldconfig is available, command
11625 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11626 # even though it is searched at run-time. Try to do the best guess by
11627 # appending ld.so.conf contents (and includes) to the search path.
11628 if test -f /etc/ld.so.conf; then
11629 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' ' '`
11630 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11631 fi
11632
11633 # We used to test for /lib/ld.so.1 and disable shared libraries on
11634 # powerpc, because MkLinux only supported shared libraries with the
11635 # GNU dynamic linker. Since this was broken with cross compilers,
11636 # most powerpc-linux boxes support dynamic linking these days and
11637 # people can always --disable-shared, the test was removed, and we
11638 # assume the GNU/Linux dynamic linker is in use.
11639 dynamic_linker='GNU/Linux ld.so'
11640 ;;
11641
11642 netbsd*)
11643 version_type=sunos
11644 need_lib_prefix=no
11645 need_version=no
11646 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11647 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11648 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11649 dynamic_linker='NetBSD (a.out) ld.so'
11650 else
11651 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11652 soname_spec='$libname$release$shared_ext$major'
11653 dynamic_linker='NetBSD ld.elf_so'
11654 fi
11655 shlibpath_var=LD_LIBRARY_PATH
11656 shlibpath_overrides_runpath=yes
11657 hardcode_into_libs=yes
11658 ;;
11659
11660 newsos6)
11661 version_type=linux # correct to gnu/linux during the next big refactor
11662 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11663 shlibpath_var=LD_LIBRARY_PATH
11664 shlibpath_overrides_runpath=yes
11665 ;;
11666
11667 *nto* | *qnx*)
11668 version_type=qnx
11669 need_lib_prefix=no
11670 need_version=no
11671 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11672 soname_spec='$libname$release$shared_ext$major'
11673 shlibpath_var=LD_LIBRARY_PATH
11674 shlibpath_overrides_runpath=no
11675 hardcode_into_libs=yes
11676 dynamic_linker='ldqnx.so'
11677 ;;
11678
11679 openbsd* | bitrig*)
11680 version_type=sunos
11681 sys_lib_dlsearch_path_spec=/usr/lib
11682 need_lib_prefix=no
11683 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11684 need_version=no
11685 else
11686 need_version=yes
11687 fi
11688 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11689 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11690 shlibpath_var=LD_LIBRARY_PATH
11691 shlibpath_overrides_runpath=yes
11692 ;;
11693
11694 os2*)
11695 libname_spec='$name'
11696 version_type=windows
11697 shrext_cmds=.dll
11698 need_version=no
11699 need_lib_prefix=no
11700 # OS/2 can only load a DLL with a base name of 8 characters or less.
11701 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11702 v=$($ECHO $release$versuffix | tr -d .-);
11703 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11704 $ECHO $n$v`$shared_ext'
11705 library_names_spec='${libname}_dll.$libext'
11706 dynamic_linker='OS/2 ld.exe'
11707 shlibpath_var=BEGINLIBPATH
11708 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11709 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11710 postinstall_cmds='base_file=`basename \$file`~
11711 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11712 dldir=$destdir/`dirname \$dlpath`~
11713 test -d \$dldir || mkdir -p \$dldir~
11714 $install_prog $dir/$dlname \$dldir/$dlname~
11715 chmod a+x \$dldir/$dlname~
11716 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11717 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11718 fi'
11719 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11720 dlpath=$dir/\$dldll~
11721 $RM \$dlpath'
11722 ;;
11723
11724 osf3* | osf4* | osf5*)
11725 version_type=osf
11726 need_lib_prefix=no
11727 need_version=no
11728 soname_spec='$libname$release$shared_ext$major'
11729 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11730 shlibpath_var=LD_LIBRARY_PATH
11731 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11732 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11733 ;;
11734
11735 rdos*)
11736 dynamic_linker=no
11737 ;;
11738
11739 solaris*)
11740 version_type=linux # correct to gnu/linux during the next big refactor
11741 need_lib_prefix=no
11742 need_version=no
11743 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11744 soname_spec='$libname$release$shared_ext$major'
11745 shlibpath_var=LD_LIBRARY_PATH
11746 shlibpath_overrides_runpath=yes
11747 hardcode_into_libs=yes
11748 # ldd complains unless libraries are executable
11749 postinstall_cmds='chmod +x $lib'
11750 ;;
11751
11752 sunos4*)
11753 version_type=sunos
11754 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11755 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11756 shlibpath_var=LD_LIBRARY_PATH
11757 shlibpath_overrides_runpath=yes
11758 if test yes = "$with_gnu_ld"; then
11759 need_lib_prefix=no
11760 fi
11761 need_version=yes
11762 ;;
11763
11764 sysv4 | sysv4.3*)
11765 version_type=linux # correct to gnu/linux during the next big refactor
11766 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11767 soname_spec='$libname$release$shared_ext$major'
11768 shlibpath_var=LD_LIBRARY_PATH
11769 case $host_vendor in
11770 sni)
11771 shlibpath_overrides_runpath=no
11772 need_lib_prefix=no
11773 runpath_var=LD_RUN_PATH
11774 ;;
11775 siemens)
11776 need_lib_prefix=no
11777 ;;
11778 motorola)
11779 need_lib_prefix=no
11780 need_version=no
11781 shlibpath_overrides_runpath=no
11782 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11783 ;;
11784 esac
11785 ;;
11786
11787 sysv4*MP*)
11788 if test -d /usr/nec; then
11789 version_type=linux # correct to gnu/linux during the next big refactor
11790 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11791 soname_spec='$libname$shared_ext.$major'
11792 shlibpath_var=LD_LIBRARY_PATH
11793 fi
11794 ;;
11795
11796 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11797 version_type=sco
11798 need_lib_prefix=no
11799 need_version=no
11800 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11801 soname_spec='$libname$release$shared_ext$major'
11802 shlibpath_var=LD_LIBRARY_PATH
11803 shlibpath_overrides_runpath=yes
11804 hardcode_into_libs=yes
11805 if test yes = "$with_gnu_ld"; then
11806 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11807 else
11808 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11809 case $host_os in
11810 sco3.2v5*)
11811 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11812 ;;
11813 esac
11814 fi
11815 sys_lib_dlsearch_path_spec='/usr/lib'
11816 ;;
11817
11818 tpf*)
11819 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11820 version_type=linux # correct to gnu/linux during the next big refactor
11821 need_lib_prefix=no
11822 need_version=no
11823 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11824 shlibpath_var=LD_LIBRARY_PATH
11825 shlibpath_overrides_runpath=no
11826 hardcode_into_libs=yes
11827 ;;
11828
11829 uts4*)
11830 version_type=linux # correct to gnu/linux during the next big refactor
11831 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11832 soname_spec='$libname$release$shared_ext$major'
11833 shlibpath_var=LD_LIBRARY_PATH
11834 ;;
11835
11836 *)
11837 dynamic_linker=no
11838 ;;
11839 esac
11840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11841 printf "%s\n" "$dynamic_linker" >&6; }
11842 test no = "$dynamic_linker" && can_build_shared=no
11843
11844 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11845 if test yes = "$GCC"; then
11846 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11847 fi
11848
11849 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11850 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11851 fi
11852
11853 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11854 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11855 fi
11856
11857 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11858 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11859
11860 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11861 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11862
11863 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11864 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11865
11866
11867
11868
11869
11870
11871
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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11963 printf %s "checking how to hardcode library paths into programs... " >&6; }
11964 hardcode_action=
11965 if test -n "$hardcode_libdir_flag_spec" ||
11966 test -n "$runpath_var" ||
11967 test yes = "$hardcode_automatic"; then
11968
11969 # We can hardcode non-existent directories.
11970 if test no != "$hardcode_direct" &&
11971 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11972 # have to relink, otherwise we might link with an installed library
11973 # when we should be linking with a yet-to-be-installed one
11974 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11975 test no != "$hardcode_minus_L"; then
11976 # Linking always hardcodes the temporary library directory.
11977 hardcode_action=relink
11978 else
11979 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11980 hardcode_action=immediate
11981 fi
11982 else
11983 # We cannot hardcode anything, or else we can only hardcode existing
11984 # directories.
11985 hardcode_action=unsupported
11986 fi
11987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11988 printf "%s\n" "$hardcode_action" >&6; }
11989
11990 if test relink = "$hardcode_action" ||
11991 test yes = "$inherit_rpath"; then
11992 # Fast installation is not supported
11993 enable_fast_install=no
11994 elif test yes = "$shlibpath_overrides_runpath" ||
11995 test no = "$enable_shared"; then
11996 # Fast installation is not necessary
11997 enable_fast_install=needless
11998 fi
11999
12000
12001
12002
12003
12004
12005 if test yes != "$enable_dlopen"; then
12006 enable_dlopen=unknown
12007 enable_dlopen_self=unknown
12008 enable_dlopen_self_static=unknown
12009 else
12010 lt_cv_dlopen=no
12011 lt_cv_dlopen_libs=
12012
12013 case $host_os in
12014 beos*)
12015 lt_cv_dlopen=load_add_on
12016 lt_cv_dlopen_libs=
12017 lt_cv_dlopen_self=yes
12018 ;;
12019
12020 mingw* | pw32* | cegcc*)
12021 lt_cv_dlopen=LoadLibrary
12022 lt_cv_dlopen_libs=
12023 ;;
12024
12025 cygwin*)
12026 lt_cv_dlopen=dlopen
12027 lt_cv_dlopen_libs=
12028 ;;
12029
12030 darwin*)
12031 # if libdl is installed we need to link against it
12032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12033 printf %s "checking for dlopen in -ldl... " >&6; }
12034 if test ${ac_cv_lib_dl_dlopen+y}
12035 then :
12036 printf %s "(cached) " >&6
12037 else $as_nop
12038 ac_check_lib_save_LIBS=$LIBS
12039 LIBS="-ldl $LIBS"
12040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12041 /* end confdefs.h. */
12042
12043 /* Override any GCC internal prototype to avoid an error.
12044 Use char because int might match the return type of a GCC
12045 builtin and then its argument prototype would still apply. */
12046 char dlopen ();
12047 int
12048 main (void)
12049 {
12050 return dlopen ();
12051 ;
12052 return 0;
12053 }
12054 _ACEOF
12055 if ac_fn_c_try_link "$LINENO"
12056 then :
12057 ac_cv_lib_dl_dlopen=yes
12058 else $as_nop
12059 ac_cv_lib_dl_dlopen=no
12060 fi
12061 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12062 conftest$ac_exeext conftest.$ac_ext
12063 LIBS=$ac_check_lib_save_LIBS
12064 fi
12065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12066 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12067 if test "x$ac_cv_lib_dl_dlopen" = xyes
12068 then :
12069 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12070 else $as_nop
12071
12072 lt_cv_dlopen=dyld
12073 lt_cv_dlopen_libs=
12074 lt_cv_dlopen_self=yes
12075
12076 fi
12077
12078 ;;
12079
12080 tpf*)
12081 # Don't try to run any link tests for TPF. We know it's impossible
12082 # because TPF is a cross-compiler, and we know how we open DSOs.
12083 lt_cv_dlopen=dlopen
12084 lt_cv_dlopen_libs=
12085 lt_cv_dlopen_self=no
12086 ;;
12087
12088 *)
12089 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12090 if test "x$ac_cv_func_shl_load" = xyes
12091 then :
12092 lt_cv_dlopen=shl_load
12093 else $as_nop
12094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12095 printf %s "checking for shl_load in -ldld... " >&6; }
12096 if test ${ac_cv_lib_dld_shl_load+y}
12097 then :
12098 printf %s "(cached) " >&6
12099 else $as_nop
12100 ac_check_lib_save_LIBS=$LIBS
12101 LIBS="-ldld $LIBS"
12102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12103 /* end confdefs.h. */
12104
12105 /* Override any GCC internal prototype to avoid an error.
12106 Use char because int might match the return type of a GCC
12107 builtin and then its argument prototype would still apply. */
12108 char shl_load ();
12109 int
12110 main (void)
12111 {
12112 return shl_load ();
12113 ;
12114 return 0;
12115 }
12116 _ACEOF
12117 if ac_fn_c_try_link "$LINENO"
12118 then :
12119 ac_cv_lib_dld_shl_load=yes
12120 else $as_nop
12121 ac_cv_lib_dld_shl_load=no
12122 fi
12123 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12124 conftest$ac_exeext conftest.$ac_ext
12125 LIBS=$ac_check_lib_save_LIBS
12126 fi
12127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12128 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12129 if test "x$ac_cv_lib_dld_shl_load" = xyes
12130 then :
12131 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12132 else $as_nop
12133 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12134 if test "x$ac_cv_func_dlopen" = xyes
12135 then :
12136 lt_cv_dlopen=dlopen
12137 else $as_nop
12138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12139 printf %s "checking for dlopen in -ldl... " >&6; }
12140 if test ${ac_cv_lib_dl_dlopen+y}
12141 then :
12142 printf %s "(cached) " >&6
12143 else $as_nop
12144 ac_check_lib_save_LIBS=$LIBS
12145 LIBS="-ldl $LIBS"
12146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12147 /* end confdefs.h. */
12148
12149 /* Override any GCC internal prototype to avoid an error.
12150 Use char because int might match the return type of a GCC
12151 builtin and then its argument prototype would still apply. */
12152 char dlopen ();
12153 int
12154 main (void)
12155 {
12156 return dlopen ();
12157 ;
12158 return 0;
12159 }
12160 _ACEOF
12161 if ac_fn_c_try_link "$LINENO"
12162 then :
12163 ac_cv_lib_dl_dlopen=yes
12164 else $as_nop
12165 ac_cv_lib_dl_dlopen=no
12166 fi
12167 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12168 conftest$ac_exeext conftest.$ac_ext
12169 LIBS=$ac_check_lib_save_LIBS
12170 fi
12171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12172 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12173 if test "x$ac_cv_lib_dl_dlopen" = xyes
12174 then :
12175 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12176 else $as_nop
12177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12178 printf %s "checking for dlopen in -lsvld... " >&6; }
12179 if test ${ac_cv_lib_svld_dlopen+y}
12180 then :
12181 printf %s "(cached) " >&6
12182 else $as_nop
12183 ac_check_lib_save_LIBS=$LIBS
12184 LIBS="-lsvld $LIBS"
12185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12186 /* end confdefs.h. */
12187
12188 /* Override any GCC internal prototype to avoid an error.
12189 Use char because int might match the return type of a GCC
12190 builtin and then its argument prototype would still apply. */
12191 char dlopen ();
12192 int
12193 main (void)
12194 {
12195 return dlopen ();
12196 ;
12197 return 0;
12198 }
12199 _ACEOF
12200 if ac_fn_c_try_link "$LINENO"
12201 then :
12202 ac_cv_lib_svld_dlopen=yes
12203 else $as_nop
12204 ac_cv_lib_svld_dlopen=no
12205 fi
12206 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12207 conftest$ac_exeext conftest.$ac_ext
12208 LIBS=$ac_check_lib_save_LIBS
12209 fi
12210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12211 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12212 if test "x$ac_cv_lib_svld_dlopen" = xyes
12213 then :
12214 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12215 else $as_nop
12216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12217 printf %s "checking for dld_link in -ldld... " >&6; }
12218 if test ${ac_cv_lib_dld_dld_link+y}
12219 then :
12220 printf %s "(cached) " >&6
12221 else $as_nop
12222 ac_check_lib_save_LIBS=$LIBS
12223 LIBS="-ldld $LIBS"
12224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12225 /* end confdefs.h. */
12226
12227 /* Override any GCC internal prototype to avoid an error.
12228 Use char because int might match the return type of a GCC
12229 builtin and then its argument prototype would still apply. */
12230 char dld_link ();
12231 int
12232 main (void)
12233 {
12234 return dld_link ();
12235 ;
12236 return 0;
12237 }
12238 _ACEOF
12239 if ac_fn_c_try_link "$LINENO"
12240 then :
12241 ac_cv_lib_dld_dld_link=yes
12242 else $as_nop
12243 ac_cv_lib_dld_dld_link=no
12244 fi
12245 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12246 conftest$ac_exeext conftest.$ac_ext
12247 LIBS=$ac_check_lib_save_LIBS
12248 fi
12249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12250 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12251 if test "x$ac_cv_lib_dld_dld_link" = xyes
12252 then :
12253 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12254 fi
12255
12256
12257 fi
12258
12259
12260 fi
12261
12262
12263 fi
12264
12265
12266 fi
12267
12268
12269 fi
12270
12271 ;;
12272 esac
12273
12274 if test no = "$lt_cv_dlopen"; then
12275 enable_dlopen=no
12276 else
12277 enable_dlopen=yes
12278 fi
12279
12280 case $lt_cv_dlopen in
12281 dlopen)
12282 save_CPPFLAGS=$CPPFLAGS
12283 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12284
12285 save_LDFLAGS=$LDFLAGS
12286 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12287
12288 save_LIBS=$LIBS
12289 LIBS="$lt_cv_dlopen_libs $LIBS"
12290
12291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12292 printf %s "checking whether a program can dlopen itself... " >&6; }
12293 if test ${lt_cv_dlopen_self+y}
12294 then :
12295 printf %s "(cached) " >&6
12296 else $as_nop
12297 if test yes = "$cross_compiling"; then :
12298 lt_cv_dlopen_self=cross
12299 else
12300 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12301 lt_status=$lt_dlunknown
12302 cat > conftest.$ac_ext <<_LT_EOF
12303 #line $LINENO "configure"
12304 #include "confdefs.h"
12305
12306 #if HAVE_DLFCN_H
12307 #include <dlfcn.h>
12308 #endif
12309
12310 #include <stdio.h>
12311
12312 #ifdef RTLD_GLOBAL
12313 # define LT_DLGLOBAL RTLD_GLOBAL
12314 #else
12315 # ifdef DL_GLOBAL
12316 # define LT_DLGLOBAL DL_GLOBAL
12317 # else
12318 # define LT_DLGLOBAL 0
12319 # endif
12320 #endif
12321
12322 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12323 find out it does not work in some platform. */
12324 #ifndef LT_DLLAZY_OR_NOW
12325 # ifdef RTLD_LAZY
12326 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12327 # else
12328 # ifdef DL_LAZY
12329 # define LT_DLLAZY_OR_NOW DL_LAZY
12330 # else
12331 # ifdef RTLD_NOW
12332 # define LT_DLLAZY_OR_NOW RTLD_NOW
12333 # else
12334 # ifdef DL_NOW
12335 # define LT_DLLAZY_OR_NOW DL_NOW
12336 # else
12337 # define LT_DLLAZY_OR_NOW 0
12338 # endif
12339 # endif
12340 # endif
12341 # endif
12342 #endif
12343
12344 /* When -fvisibility=hidden is used, assume the code has been annotated
12345 correspondingly for the symbols needed. */
12346 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12347 int fnord () __attribute__((visibility("default")));
12348 #endif
12349
12350 int fnord () { return 42; }
12351 int main ()
12352 {
12353 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12354 int status = $lt_dlunknown;
12355
12356 if (self)
12357 {
12358 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12359 else
12360 {
12361 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12362 else puts (dlerror ());
12363 }
12364 /* dlclose (self); */
12365 }
12366 else
12367 puts (dlerror ());
12368
12369 return status;
12370 }
12371 _LT_EOF
12372 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12373 (eval $ac_link) 2>&5
12374 ac_status=$?
12375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12376 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12377 (./conftest; exit; ) >&5 2>/dev/null
12378 lt_status=$?
12379 case x$lt_status in
12380 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12381 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12382 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12383 esac
12384 else :
12385 # compilation failed
12386 lt_cv_dlopen_self=no
12387 fi
12388 fi
12389 rm -fr conftest*
12390
12391
12392 fi
12393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12394 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12395
12396 if test yes = "$lt_cv_dlopen_self"; then
12397 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12399 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12400 if test ${lt_cv_dlopen_self_static+y}
12401 then :
12402 printf %s "(cached) " >&6
12403 else $as_nop
12404 if test yes = "$cross_compiling"; then :
12405 lt_cv_dlopen_self_static=cross
12406 else
12407 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12408 lt_status=$lt_dlunknown
12409 cat > conftest.$ac_ext <<_LT_EOF
12410 #line $LINENO "configure"
12411 #include "confdefs.h"
12412
12413 #if HAVE_DLFCN_H
12414 #include <dlfcn.h>
12415 #endif
12416
12417 #include <stdio.h>
12418
12419 #ifdef RTLD_GLOBAL
12420 # define LT_DLGLOBAL RTLD_GLOBAL
12421 #else
12422 # ifdef DL_GLOBAL
12423 # define LT_DLGLOBAL DL_GLOBAL
12424 # else
12425 # define LT_DLGLOBAL 0
12426 # endif
12427 #endif
12428
12429 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12430 find out it does not work in some platform. */
12431 #ifndef LT_DLLAZY_OR_NOW
12432 # ifdef RTLD_LAZY
12433 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12434 # else
12435 # ifdef DL_LAZY
12436 # define LT_DLLAZY_OR_NOW DL_LAZY
12437 # else
12438 # ifdef RTLD_NOW
12439 # define LT_DLLAZY_OR_NOW RTLD_NOW
12440 # else
12441 # ifdef DL_NOW
12442 # define LT_DLLAZY_OR_NOW DL_NOW
12443 # else
12444 # define LT_DLLAZY_OR_NOW 0
12445 # endif
12446 # endif
12447 # endif
12448 # endif
12449 #endif
12450
12451 /* When -fvisibility=hidden is used, assume the code has been annotated
12452 correspondingly for the symbols needed. */
12453 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12454 int fnord () __attribute__((visibility("default")));
12455 #endif
12456
12457 int fnord () { return 42; }
12458 int main ()
12459 {
12460 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12461 int status = $lt_dlunknown;
12462
12463 if (self)
12464 {
12465 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12466 else
12467 {
12468 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12469 else puts (dlerror ());
12470 }
12471 /* dlclose (self); */
12472 }
12473 else
12474 puts (dlerror ());
12475
12476 return status;
12477 }
12478 _LT_EOF
12479 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12480 (eval $ac_link) 2>&5
12481 ac_status=$?
12482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12483 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12484 (./conftest; exit; ) >&5 2>/dev/null
12485 lt_status=$?
12486 case x$lt_status in
12487 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12488 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12489 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12490 esac
12491 else :
12492 # compilation failed
12493 lt_cv_dlopen_self_static=no
12494 fi
12495 fi
12496 rm -fr conftest*
12497
12498
12499 fi
12500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12501 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12502 fi
12503
12504 CPPFLAGS=$save_CPPFLAGS
12505 LDFLAGS=$save_LDFLAGS
12506 LIBS=$save_LIBS
12507 ;;
12508 esac
12509
12510 case $lt_cv_dlopen_self in
12511 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12512 *) enable_dlopen_self=unknown ;;
12513 esac
12514
12515 case $lt_cv_dlopen_self_static in
12516 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12517 *) enable_dlopen_self_static=unknown ;;
12518 esac
12519 fi
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537 striplib=
12538 old_striplib=
12539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12540 printf %s "checking whether stripping libraries is possible... " >&6; }
12541 if test -z "$STRIP"; then
12542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12543 printf "%s\n" "no" >&6; }
12544 else
12545 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12546 old_striplib="$STRIP --strip-debug"
12547 striplib="$STRIP --strip-unneeded"
12548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12549 printf "%s\n" "yes" >&6; }
12550 else
12551 case $host_os in
12552 darwin*)
12553 # FIXME - insert some real tests, host_os isn't really good enough
12554 striplib="$STRIP -x"
12555 old_striplib="$STRIP -S"
12556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12557 printf "%s\n" "yes" >&6; }
12558 ;;
12559 freebsd*)
12560 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12561 old_striplib="$STRIP --strip-debug"
12562 striplib="$STRIP --strip-unneeded"
12563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12564 printf "%s\n" "yes" >&6; }
12565 else
12566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12567 printf "%s\n" "no" >&6; }
12568 fi
12569 ;;
12570 *)
12571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12572 printf "%s\n" "no" >&6; }
12573 ;;
12574 esac
12575 fi
12576 fi
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589 # Report what library types will actually be built
12590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12591 printf %s "checking if libtool supports shared libraries... " >&6; }
12592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12593 printf "%s\n" "$can_build_shared" >&6; }
12594
12595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12596 printf %s "checking whether to build shared libraries... " >&6; }
12597 test no = "$can_build_shared" && enable_shared=no
12598
12599 # On AIX, shared libraries and static libraries use the same namespace, and
12600 # are all built from PIC.
12601 case $host_os in
12602 aix3*)
12603 test yes = "$enable_shared" && enable_static=no
12604 if test -n "$RANLIB"; then
12605 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12606 postinstall_cmds='$RANLIB $lib'
12607 fi
12608 ;;
12609
12610 aix[4-9]*)
12611 if test ia64 != "$host_cpu"; then
12612 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12613 yes,aix,yes) ;; # shared object as lib.so file only
12614 yes,svr4,*) ;; # shared object as lib.so archive member only
12615 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12616 esac
12617 fi
12618 ;;
12619 esac
12620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12621 printf "%s\n" "$enable_shared" >&6; }
12622
12623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12624 printf %s "checking whether to build static libraries... " >&6; }
12625 # Make sure either enable_shared or enable_static is yes.
12626 test yes = "$enable_shared" || enable_static=yes
12627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12628 printf "%s\n" "$enable_static" >&6; }
12629
12630
12631
12632
12633 fi
12634 ac_ext=c
12635 ac_cpp='$CPP $CPPFLAGS'
12636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12639
12640 CC=$lt_save_CC
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656 ac_config_commands="$ac_config_commands libtool"
12657
12658
12659
12660
12661 # Only expand once:
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12672 if test -n "$ac_tool_prefix"; then
12673 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12674 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12676 printf %s "checking for $ac_word... " >&6; }
12677 if test ${ac_cv_path_PKG_CONFIG+y}
12678 then :
12679 printf %s "(cached) " >&6
12680 else $as_nop
12681 case $PKG_CONFIG in
12682 [\\/]* | ?:[\\/]*)
12683 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12684 ;;
12685 *)
12686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12687 for as_dir in $PATH
12688 do
12689 IFS=$as_save_IFS
12690 case $as_dir in #(((
12691 '') as_dir=./ ;;
12692 */) ;;
12693 *) as_dir=$as_dir/ ;;
12694 esac
12695 for ac_exec_ext in '' $ac_executable_extensions; do
12696 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12697 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12699 break 2
12700 fi
12701 done
12702 done
12703 IFS=$as_save_IFS
12704
12705 ;;
12706 esac
12707 fi
12708 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12709 if test -n "$PKG_CONFIG"; then
12710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12711 printf "%s\n" "$PKG_CONFIG" >&6; }
12712 else
12713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12714 printf "%s\n" "no" >&6; }
12715 fi
12716
12717
12718 fi
12719 if test -z "$ac_cv_path_PKG_CONFIG"; then
12720 ac_pt_PKG_CONFIG=$PKG_CONFIG
12721 # Extract the first word of "pkg-config", so it can be a program name with args.
12722 set dummy pkg-config; ac_word=$2
12723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12724 printf %s "checking for $ac_word... " >&6; }
12725 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
12726 then :
12727 printf %s "(cached) " >&6
12728 else $as_nop
12729 case $ac_pt_PKG_CONFIG in
12730 [\\/]* | ?:[\\/]*)
12731 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12732 ;;
12733 *)
12734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12735 for as_dir in $PATH
12736 do
12737 IFS=$as_save_IFS
12738 case $as_dir in #(((
12739 '') as_dir=./ ;;
12740 */) ;;
12741 *) as_dir=$as_dir/ ;;
12742 esac
12743 for ac_exec_ext in '' $ac_executable_extensions; do
12744 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12745 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12746 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12747 break 2
12748 fi
12749 done
12750 done
12751 IFS=$as_save_IFS
12752
12753 ;;
12754 esac
12755 fi
12756 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12757 if test -n "$ac_pt_PKG_CONFIG"; then
12758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12759 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
12760 else
12761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12762 printf "%s\n" "no" >&6; }
12763 fi
12764
12765 if test "x$ac_pt_PKG_CONFIG" = x; then
12766 PKG_CONFIG=""
12767 else
12768 case $cross_compiling:$ac_tool_warned in
12769 yes:)
12770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12771 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12772 ac_tool_warned=yes ;;
12773 esac
12774 PKG_CONFIG=$ac_pt_PKG_CONFIG
12775 fi
12776 else
12777 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12778 fi
12779
12780 fi
12781 if test -n "$PKG_CONFIG"; then
12782 _pkg_min_version=0.9.0
12783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12784 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12785 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12787 printf "%s\n" "yes" >&6; }
12788 else
12789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12790 printf "%s\n" "no" >&6; }
12791 PKG_CONFIG=""
12792 fi
12793 fi
12794
12795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12796 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12797 if test ${ac_cv_c_undeclared_builtin_options+y}
12798 then :
12799 printf %s "(cached) " >&6
12800 else $as_nop
12801 ac_save_CFLAGS=$CFLAGS
12802 ac_cv_c_undeclared_builtin_options='cannot detect'
12803 for ac_arg in '' -fno-builtin; do
12804 CFLAGS="$ac_save_CFLAGS $ac_arg"
12805 # This test program should *not* compile successfully.
12806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12807 /* end confdefs.h. */
12808
12809 int
12810 main (void)
12811 {
12812 (void) strchr;
12813 ;
12814 return 0;
12815 }
12816 _ACEOF
12817 if ac_fn_c_try_compile "$LINENO"
12818 then :
12819
12820 else $as_nop
12821 # This test program should compile successfully.
12822 # No library function is consistently available on
12823 # freestanding implementations, so test against a dummy
12824 # declaration. Include always-available headers on the
12825 # off chance that they somehow elicit warnings.
12826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12827 /* end confdefs.h. */
12828 #include <float.h>
12829 #include <limits.h>
12830 #include <stdarg.h>
12831 #include <stddef.h>
12832 extern void ac_decl (int, char *);
12833
12834 int
12835 main (void)
12836 {
12837 (void) ac_decl (0, (char *) 0);
12838 (void) ac_decl;
12839
12840 ;
12841 return 0;
12842 }
12843 _ACEOF
12844 if ac_fn_c_try_compile "$LINENO"
12845 then :
12846 if test x"$ac_arg" = x
12847 then :
12848 ac_cv_c_undeclared_builtin_options='none needed'
12849 else $as_nop
12850 ac_cv_c_undeclared_builtin_options=$ac_arg
12851 fi
12852 break
12853 fi
12854 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12855 fi
12856 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12857 done
12858 CFLAGS=$ac_save_CFLAGS
12859
12860 fi
12861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12862 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12863 case $ac_cv_c_undeclared_builtin_options in #(
12864 'cannot detect') :
12865 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12866 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12867 as_fn_error $? "cannot make $CC report undeclared builtins
12868 See \`config.log' for more details" "$LINENO" 5; } ;; #(
12869 'none needed') :
12870 ac_c_undeclared_builtin_options='' ;; #(
12871 *) :
12872 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12873 esac
12874
12875
12876
12877
12878
12879 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12880 if test "x$ac_cv_have_decl___clang__" = xyes
12881 then :
12882 CLANGCC="yes"
12883 else $as_nop
12884 CLANGCC="no"
12885 fi
12886 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12887 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
12888 then :
12889 INTELCC="yes"
12890 else $as_nop
12891 INTELCC="no"
12892 fi
12893 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12894 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
12895 then :
12896 SUNCC="yes"
12897 else $as_nop
12898 SUNCC="no"
12899 fi
12900
12901
12902
12903
12904
12905
12906 # Define header files and pkgconfig paths
12907 xcbincludedir='${includedir}/xcb'
12908
12909 pkgconfigdir='${libdir}/pkgconfig'
12910
12911
12912 # Check xcb version
12913
12914 pkg_failed=no
12915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XCB" >&5
12916 printf %s "checking for XCB... " >&6; }
12917
12918 if test -n "$XCB_CFLAGS"; then
12919 pkg_cv_XCB_CFLAGS="$XCB_CFLAGS"
12920 elif test -n "$PKG_CONFIG"; then
12921 if test -n "$PKG_CONFIG" && \
12922 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.4\""; } >&5
12923 ($PKG_CONFIG --exists --print-errors "xcb >= 1.4") 2>&5
12924 ac_status=$?
12925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12926 test $ac_status = 0; }; then
12927 pkg_cv_XCB_CFLAGS=`$PKG_CONFIG --cflags "xcb >= 1.4" 2>/dev/null`
12928 test "x$?" != "x0" && pkg_failed=yes
12929 else
12930 pkg_failed=yes
12931 fi
12932 else
12933 pkg_failed=untried
12934 fi
12935 if test -n "$XCB_LIBS"; then
12936 pkg_cv_XCB_LIBS="$XCB_LIBS"
12937 elif test -n "$PKG_CONFIG"; then
12938 if test -n "$PKG_CONFIG" && \
12939 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.4\""; } >&5
12940 ($PKG_CONFIG --exists --print-errors "xcb >= 1.4") 2>&5
12941 ac_status=$?
12942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12943 test $ac_status = 0; }; then
12944 pkg_cv_XCB_LIBS=`$PKG_CONFIG --libs "xcb >= 1.4" 2>/dev/null`
12945 test "x$?" != "x0" && pkg_failed=yes
12946 else
12947 pkg_failed=yes
12948 fi
12949 else
12950 pkg_failed=untried
12951 fi
12952
12953
12954
12955 if test $pkg_failed = yes; then
12956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12957 printf "%s\n" "no" >&6; }
12958
12959 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12960 _pkg_short_errors_supported=yes
12961 else
12962 _pkg_short_errors_supported=no
12963 fi
12964 if test $_pkg_short_errors_supported = yes; then
12965 XCB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb >= 1.4" 2>&1`
12966 else
12967 XCB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb >= 1.4" 2>&1`
12968 fi
12969 # Put the nasty error message in config.log where it belongs
12970 echo "$XCB_PKG_ERRORS" >&5
12971
12972 as_fn_error $? "Package requirements (xcb >= 1.4) were not met:
12973
12974 $XCB_PKG_ERRORS
12975
12976 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12977 installed software in a non-standard prefix.
12978
12979 Alternatively, you may set the environment variables XCB_CFLAGS
12980 and XCB_LIBS to avoid the need to call pkg-config.
12981 See the pkg-config man page for more details." "$LINENO" 5
12982 elif test $pkg_failed = untried; then
12983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12984 printf "%s\n" "no" >&6; }
12985 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12986 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12987 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12988 is in your PATH or set the PKG_CONFIG environment variable to the full
12989 path to pkg-config.
12990
12991 Alternatively, you may set the environment variables XCB_CFLAGS
12992 and XCB_LIBS to avoid the need to call pkg-config.
12993 See the pkg-config man page for more details.
12994
12995 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12996 See \`config.log' for more details" "$LINENO" 5; }
12997 else
12998 XCB_CFLAGS=$pkg_cv_XCB_CFLAGS
12999 XCB_LIBS=$pkg_cv_XCB_LIBS
13000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13001 printf "%s\n" "yes" >&6; }
13002
13003 fi
13004
13005 # Check version of xcb-proto that xcb was compiled against
13006 xcbproto_required=1.6
13007
13008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libxcb was compiled against xcb-proto >= $xcbproto_required" >&5
13009 printf %s "checking whether libxcb was compiled against xcb-proto >= $xcbproto_required... " >&6; }
13010 xcbproto_version=`$PKG_CONFIG --variable=xcbproto_version xcb`
13011
13012 for ac_prog in gawk mawk nawk awk
13013 do
13014 # Extract the first word of "$ac_prog", so it can be a program name with args.
13015 set dummy $ac_prog; ac_word=$2
13016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13017 printf %s "checking for $ac_word... " >&6; }
13018 if test ${ac_cv_prog_AWK+y}
13019 then :
13020 printf %s "(cached) " >&6
13021 else $as_nop
13022 if test -n "$AWK"; then
13023 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13024 else
13025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13026 for as_dir in $PATH
13027 do
13028 IFS=$as_save_IFS
13029 case $as_dir in #(((
13030 '') as_dir=./ ;;
13031 */) ;;
13032 *) as_dir=$as_dir/ ;;
13033 esac
13034 for ac_exec_ext in '' $ac_executable_extensions; do
13035 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13036 ac_cv_prog_AWK="$ac_prog"
13037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13038 break 2
13039 fi
13040 done
13041 done
13042 IFS=$as_save_IFS
13043
13044 fi
13045 fi
13046 AWK=$ac_cv_prog_AWK
13047 if test -n "$AWK"; then
13048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13049 printf "%s\n" "$AWK" >&6; }
13050 else
13051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13052 printf "%s\n" "no" >&6; }
13053 fi
13054
13055
13056 test -n "$AWK" && break
13057 done
13058
13059
13060 # Used to indicate true or false condition
13061 ax_compare_version=false
13062
13063 # Convert the two version strings to be compared into a format that
13064 # allows a simple string comparison. The end result is that a version
13065 # string of the form 1.12.5-r617 will be converted to the form
13066 # 0001001200050617. In other words, each number is zero padded to four
13067 # digits, and non digits are removed.
13068
13069 ax_compare_version_A=`echo "$xcbproto_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
13070 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
13071 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
13072 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
13073 -e 's/[^0-9]//g'`
13074
13075
13076 ax_compare_version_B=`echo "$xcbproto_required" | 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=`echo "x$ax_compare_version_A
13084 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"`
13085
13086
13087
13088 if test "$ax_compare_version" = "true" ; then
13089 xcbproto_ok="yes"
13090 else xcbproto_ok="no"
13091 fi
13092
13093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xcbproto_ok" >&5
13094 printf "%s\n" "$xcbproto_ok" >&6; }
13095
13096 if test $xcbproto_ok = no; then
13097 as_fn_error $? "libxcb was compiled against xcb-proto $xcbproto_version; it needs to be compiled against version $xcbproto_required or higher" "$LINENO" 5
13098 fi
13099
13100 # Call macros from Xorg util-macros
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118 # Check whether --enable-selective-werror was given.
13119 if test ${enable_selective_werror+y}
13120 then :
13121 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13122 else $as_nop
13123 SELECTIVE_WERROR=yes
13124 fi
13125
13126
13127
13128
13129
13130 # -v is too short to test reliably with XORG_TESTSET_CFLAG
13131 if test "x$SUNCC" = "xyes"; then
13132 BASE_CFLAGS="-v"
13133 else
13134 BASE_CFLAGS=""
13135 fi
13136
13137 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151 xorg_testset_save_CFLAGS="$CFLAGS"
13152
13153 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13154 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13156 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13157 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13158 then :
13159 printf %s "(cached) " >&6
13160 else $as_nop
13161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13162 /* end confdefs.h. */
13163 int i;
13164 _ACEOF
13165 if ac_fn_c_try_compile "$LINENO"
13166 then :
13167 xorg_cv_cc_flag_unknown_warning_option=yes
13168 else $as_nop
13169 xorg_cv_cc_flag_unknown_warning_option=no
13170 fi
13171 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13172 fi
13173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13174 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13175 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13176 CFLAGS="$xorg_testset_save_CFLAGS"
13177 fi
13178
13179 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13181 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13182 fi
13183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13185 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13186 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13187 then :
13188 printf %s "(cached) " >&6
13189 else $as_nop
13190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13191 /* end confdefs.h. */
13192 int i;
13193 _ACEOF
13194 if ac_fn_c_try_compile "$LINENO"
13195 then :
13196 xorg_cv_cc_flag_unused_command_line_argument=yes
13197 else $as_nop
13198 xorg_cv_cc_flag_unused_command_line_argument=no
13199 fi
13200 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13201 fi
13202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13203 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13204 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13205 CFLAGS="$xorg_testset_save_CFLAGS"
13206 fi
13207
13208 found="no"
13209
13210 if test $found = "no" ; then
13211 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13212 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13213 fi
13214
13215 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13217 fi
13218
13219 CFLAGS="$CFLAGS -Wall"
13220
13221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13222 printf %s "checking if $CC supports -Wall... " >&6; }
13223 cacheid=xorg_cv_cc_flag__Wall
13224 if eval test \${$cacheid+y}
13225 then :
13226 printf %s "(cached) " >&6
13227 else $as_nop
13228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13229 /* end confdefs.h. */
13230 int i;
13231 int
13232 main (void)
13233 {
13234
13235 ;
13236 return 0;
13237 }
13238 _ACEOF
13239 if ac_fn_c_try_link "$LINENO"
13240 then :
13241 eval $cacheid=yes
13242 else $as_nop
13243 eval $cacheid=no
13244 fi
13245 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13246 conftest$ac_exeext conftest.$ac_ext
13247 fi
13248
13249
13250 CFLAGS="$xorg_testset_save_CFLAGS"
13251
13252 eval supported=\$$cacheid
13253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13254 printf "%s\n" "$supported" >&6; }
13255 if test "$supported" = "yes" ; then
13256 BASE_CFLAGS="$BASE_CFLAGS -Wall"
13257 found="yes"
13258 fi
13259 fi
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275 xorg_testset_save_CFLAGS="$CFLAGS"
13276
13277 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13278 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13280 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13281 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13282 then :
13283 printf %s "(cached) " >&6
13284 else $as_nop
13285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13286 /* end confdefs.h. */
13287 int i;
13288 _ACEOF
13289 if ac_fn_c_try_compile "$LINENO"
13290 then :
13291 xorg_cv_cc_flag_unknown_warning_option=yes
13292 else $as_nop
13293 xorg_cv_cc_flag_unknown_warning_option=no
13294 fi
13295 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13296 fi
13297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13298 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13299 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13300 CFLAGS="$xorg_testset_save_CFLAGS"
13301 fi
13302
13303 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13306 fi
13307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13309 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13310 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13311 then :
13312 printf %s "(cached) " >&6
13313 else $as_nop
13314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13315 /* end confdefs.h. */
13316 int i;
13317 _ACEOF
13318 if ac_fn_c_try_compile "$LINENO"
13319 then :
13320 xorg_cv_cc_flag_unused_command_line_argument=yes
13321 else $as_nop
13322 xorg_cv_cc_flag_unused_command_line_argument=no
13323 fi
13324 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13325 fi
13326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13327 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13328 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13329 CFLAGS="$xorg_testset_save_CFLAGS"
13330 fi
13331
13332 found="no"
13333
13334 if test $found = "no" ; then
13335 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13336 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13337 fi
13338
13339 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13341 fi
13342
13343 CFLAGS="$CFLAGS -Wpointer-arith"
13344
13345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13346 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13347 cacheid=xorg_cv_cc_flag__Wpointer_arith
13348 if eval test \${$cacheid+y}
13349 then :
13350 printf %s "(cached) " >&6
13351 else $as_nop
13352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13353 /* end confdefs.h. */
13354 int i;
13355 int
13356 main (void)
13357 {
13358
13359 ;
13360 return 0;
13361 }
13362 _ACEOF
13363 if ac_fn_c_try_link "$LINENO"
13364 then :
13365 eval $cacheid=yes
13366 else $as_nop
13367 eval $cacheid=no
13368 fi
13369 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13370 conftest$ac_exeext conftest.$ac_ext
13371 fi
13372
13373
13374 CFLAGS="$xorg_testset_save_CFLAGS"
13375
13376 eval supported=\$$cacheid
13377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13378 printf "%s\n" "$supported" >&6; }
13379 if test "$supported" = "yes" ; then
13380 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13381 found="yes"
13382 fi
13383 fi
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399 xorg_testset_save_CFLAGS="$CFLAGS"
13400
13401 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13402 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13404 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13405 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13406 then :
13407 printf %s "(cached) " >&6
13408 else $as_nop
13409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13410 /* end confdefs.h. */
13411 int i;
13412 _ACEOF
13413 if ac_fn_c_try_compile "$LINENO"
13414 then :
13415 xorg_cv_cc_flag_unknown_warning_option=yes
13416 else $as_nop
13417 xorg_cv_cc_flag_unknown_warning_option=no
13418 fi
13419 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13420 fi
13421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13422 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13423 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13424 CFLAGS="$xorg_testset_save_CFLAGS"
13425 fi
13426
13427 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13429 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13430 fi
13431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13433 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13434 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13435 then :
13436 printf %s "(cached) " >&6
13437 else $as_nop
13438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13439 /* end confdefs.h. */
13440 int i;
13441 _ACEOF
13442 if ac_fn_c_try_compile "$LINENO"
13443 then :
13444 xorg_cv_cc_flag_unused_command_line_argument=yes
13445 else $as_nop
13446 xorg_cv_cc_flag_unused_command_line_argument=no
13447 fi
13448 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13449 fi
13450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13451 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13452 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13453 CFLAGS="$xorg_testset_save_CFLAGS"
13454 fi
13455
13456 found="no"
13457
13458 if test $found = "no" ; then
13459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13460 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13461 fi
13462
13463 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13465 fi
13466
13467 CFLAGS="$CFLAGS -Wmissing-declarations"
13468
13469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13470 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13471 cacheid=xorg_cv_cc_flag__Wmissing_declarations
13472 if eval test \${$cacheid+y}
13473 then :
13474 printf %s "(cached) " >&6
13475 else $as_nop
13476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13477 /* end confdefs.h. */
13478 int i;
13479 int
13480 main (void)
13481 {
13482
13483 ;
13484 return 0;
13485 }
13486 _ACEOF
13487 if ac_fn_c_try_link "$LINENO"
13488 then :
13489 eval $cacheid=yes
13490 else $as_nop
13491 eval $cacheid=no
13492 fi
13493 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13494 conftest$ac_exeext conftest.$ac_ext
13495 fi
13496
13497
13498 CFLAGS="$xorg_testset_save_CFLAGS"
13499
13500 eval supported=\$$cacheid
13501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13502 printf "%s\n" "$supported" >&6; }
13503 if test "$supported" = "yes" ; then
13504 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13505 found="yes"
13506 fi
13507 fi
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523 xorg_testset_save_CFLAGS="$CFLAGS"
13524
13525 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13526 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13528 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13529 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13530 then :
13531 printf %s "(cached) " >&6
13532 else $as_nop
13533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13534 /* end confdefs.h. */
13535 int i;
13536 _ACEOF
13537 if ac_fn_c_try_compile "$LINENO"
13538 then :
13539 xorg_cv_cc_flag_unknown_warning_option=yes
13540 else $as_nop
13541 xorg_cv_cc_flag_unknown_warning_option=no
13542 fi
13543 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13544 fi
13545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13546 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13547 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13548 CFLAGS="$xorg_testset_save_CFLAGS"
13549 fi
13550
13551 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13554 fi
13555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13557 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13558 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13559 then :
13560 printf %s "(cached) " >&6
13561 else $as_nop
13562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13563 /* end confdefs.h. */
13564 int i;
13565 _ACEOF
13566 if ac_fn_c_try_compile "$LINENO"
13567 then :
13568 xorg_cv_cc_flag_unused_command_line_argument=yes
13569 else $as_nop
13570 xorg_cv_cc_flag_unused_command_line_argument=no
13571 fi
13572 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13573 fi
13574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13575 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13576 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13577 CFLAGS="$xorg_testset_save_CFLAGS"
13578 fi
13579
13580 found="no"
13581
13582 if test $found = "no" ; then
13583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13584 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13585 fi
13586
13587 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13589 fi
13590
13591 CFLAGS="$CFLAGS -Wformat=2"
13592
13593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13594 printf %s "checking if $CC supports -Wformat=2... " >&6; }
13595 cacheid=xorg_cv_cc_flag__Wformat_2
13596 if eval test \${$cacheid+y}
13597 then :
13598 printf %s "(cached) " >&6
13599 else $as_nop
13600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13601 /* end confdefs.h. */
13602 int i;
13603 int
13604 main (void)
13605 {
13606
13607 ;
13608 return 0;
13609 }
13610 _ACEOF
13611 if ac_fn_c_try_link "$LINENO"
13612 then :
13613 eval $cacheid=yes
13614 else $as_nop
13615 eval $cacheid=no
13616 fi
13617 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13618 conftest$ac_exeext conftest.$ac_ext
13619 fi
13620
13621
13622 CFLAGS="$xorg_testset_save_CFLAGS"
13623
13624 eval supported=\$$cacheid
13625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13626 printf "%s\n" "$supported" >&6; }
13627 if test "$supported" = "yes" ; then
13628 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13629 found="yes"
13630 fi
13631 fi
13632
13633 if test $found = "no" ; then
13634 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13635 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13636 fi
13637
13638 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13640 fi
13641
13642 CFLAGS="$CFLAGS -Wformat"
13643
13644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13645 printf %s "checking if $CC supports -Wformat... " >&6; }
13646 cacheid=xorg_cv_cc_flag__Wformat
13647 if eval test \${$cacheid+y}
13648 then :
13649 printf %s "(cached) " >&6
13650 else $as_nop
13651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13652 /* end confdefs.h. */
13653 int i;
13654 int
13655 main (void)
13656 {
13657
13658 ;
13659 return 0;
13660 }
13661 _ACEOF
13662 if ac_fn_c_try_link "$LINENO"
13663 then :
13664 eval $cacheid=yes
13665 else $as_nop
13666 eval $cacheid=no
13667 fi
13668 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13669 conftest$ac_exeext conftest.$ac_ext
13670 fi
13671
13672
13673 CFLAGS="$xorg_testset_save_CFLAGS"
13674
13675 eval supported=\$$cacheid
13676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13677 printf "%s\n" "$supported" >&6; }
13678 if test "$supported" = "yes" ; then
13679 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13680 found="yes"
13681 fi
13682 fi
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700 xorg_testset_save_CFLAGS="$CFLAGS"
13701
13702 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13705 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13706 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13707 then :
13708 printf %s "(cached) " >&6
13709 else $as_nop
13710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13711 /* end confdefs.h. */
13712 int i;
13713 _ACEOF
13714 if ac_fn_c_try_compile "$LINENO"
13715 then :
13716 xorg_cv_cc_flag_unknown_warning_option=yes
13717 else $as_nop
13718 xorg_cv_cc_flag_unknown_warning_option=no
13719 fi
13720 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13721 fi
13722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13723 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13724 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13725 CFLAGS="$xorg_testset_save_CFLAGS"
13726 fi
13727
13728 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13731 fi
13732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13734 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13735 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13736 then :
13737 printf %s "(cached) " >&6
13738 else $as_nop
13739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13740 /* end confdefs.h. */
13741 int i;
13742 _ACEOF
13743 if ac_fn_c_try_compile "$LINENO"
13744 then :
13745 xorg_cv_cc_flag_unused_command_line_argument=yes
13746 else $as_nop
13747 xorg_cv_cc_flag_unused_command_line_argument=no
13748 fi
13749 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13750 fi
13751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13752 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13753 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13754 CFLAGS="$xorg_testset_save_CFLAGS"
13755 fi
13756
13757 found="no"
13758
13759 if test $found = "no" ; then
13760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13762 fi
13763
13764 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13766 fi
13767
13768 CFLAGS="$CFLAGS -Wstrict-prototypes"
13769
13770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13771 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13772 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13773 if eval test \${$cacheid+y}
13774 then :
13775 printf %s "(cached) " >&6
13776 else $as_nop
13777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13778 /* end confdefs.h. */
13779 int i;
13780 int
13781 main (void)
13782 {
13783
13784 ;
13785 return 0;
13786 }
13787 _ACEOF
13788 if ac_fn_c_try_link "$LINENO"
13789 then :
13790 eval $cacheid=yes
13791 else $as_nop
13792 eval $cacheid=no
13793 fi
13794 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13795 conftest$ac_exeext conftest.$ac_ext
13796 fi
13797
13798
13799 CFLAGS="$xorg_testset_save_CFLAGS"
13800
13801 eval supported=\$$cacheid
13802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13803 printf "%s\n" "$supported" >&6; }
13804 if test "$supported" = "yes" ; then
13805 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13806 found="yes"
13807 fi
13808 fi
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824 xorg_testset_save_CFLAGS="$CFLAGS"
13825
13826 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13827 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13829 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13830 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13831 then :
13832 printf %s "(cached) " >&6
13833 else $as_nop
13834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13835 /* end confdefs.h. */
13836 int i;
13837 _ACEOF
13838 if ac_fn_c_try_compile "$LINENO"
13839 then :
13840 xorg_cv_cc_flag_unknown_warning_option=yes
13841 else $as_nop
13842 xorg_cv_cc_flag_unknown_warning_option=no
13843 fi
13844 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13845 fi
13846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13847 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13848 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13849 CFLAGS="$xorg_testset_save_CFLAGS"
13850 fi
13851
13852 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13855 fi
13856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13858 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13859 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13860 then :
13861 printf %s "(cached) " >&6
13862 else $as_nop
13863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13864 /* end confdefs.h. */
13865 int i;
13866 _ACEOF
13867 if ac_fn_c_try_compile "$LINENO"
13868 then :
13869 xorg_cv_cc_flag_unused_command_line_argument=yes
13870 else $as_nop
13871 xorg_cv_cc_flag_unused_command_line_argument=no
13872 fi
13873 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13874 fi
13875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13876 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13877 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13878 CFLAGS="$xorg_testset_save_CFLAGS"
13879 fi
13880
13881 found="no"
13882
13883 if test $found = "no" ; then
13884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13886 fi
13887
13888 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13890 fi
13891
13892 CFLAGS="$CFLAGS -Wmissing-prototypes"
13893
13894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13895 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
13896 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13897 if eval test \${$cacheid+y}
13898 then :
13899 printf %s "(cached) " >&6
13900 else $as_nop
13901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13902 /* end confdefs.h. */
13903 int i;
13904 int
13905 main (void)
13906 {
13907
13908 ;
13909 return 0;
13910 }
13911 _ACEOF
13912 if ac_fn_c_try_link "$LINENO"
13913 then :
13914 eval $cacheid=yes
13915 else $as_nop
13916 eval $cacheid=no
13917 fi
13918 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13919 conftest$ac_exeext conftest.$ac_ext
13920 fi
13921
13922
13923 CFLAGS="$xorg_testset_save_CFLAGS"
13924
13925 eval supported=\$$cacheid
13926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13927 printf "%s\n" "$supported" >&6; }
13928 if test "$supported" = "yes" ; then
13929 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13930 found="yes"
13931 fi
13932 fi
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948 xorg_testset_save_CFLAGS="$CFLAGS"
13949
13950 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13951 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13953 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13954 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13955 then :
13956 printf %s "(cached) " >&6
13957 else $as_nop
13958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13959 /* end confdefs.h. */
13960 int i;
13961 _ACEOF
13962 if ac_fn_c_try_compile "$LINENO"
13963 then :
13964 xorg_cv_cc_flag_unknown_warning_option=yes
13965 else $as_nop
13966 xorg_cv_cc_flag_unknown_warning_option=no
13967 fi
13968 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13969 fi
13970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13971 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13972 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13973 CFLAGS="$xorg_testset_save_CFLAGS"
13974 fi
13975
13976 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13979 fi
13980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13982 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13983 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13984 then :
13985 printf %s "(cached) " >&6
13986 else $as_nop
13987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13988 /* end confdefs.h. */
13989 int i;
13990 _ACEOF
13991 if ac_fn_c_try_compile "$LINENO"
13992 then :
13993 xorg_cv_cc_flag_unused_command_line_argument=yes
13994 else $as_nop
13995 xorg_cv_cc_flag_unused_command_line_argument=no
13996 fi
13997 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13998 fi
13999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14000 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14001 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14002 CFLAGS="$xorg_testset_save_CFLAGS"
14003 fi
14004
14005 found="no"
14006
14007 if test $found = "no" ; then
14008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14009 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14010 fi
14011
14012 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14014 fi
14015
14016 CFLAGS="$CFLAGS -Wnested-externs"
14017
14018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14019 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
14020 cacheid=xorg_cv_cc_flag__Wnested_externs
14021 if eval test \${$cacheid+y}
14022 then :
14023 printf %s "(cached) " >&6
14024 else $as_nop
14025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14026 /* end confdefs.h. */
14027 int i;
14028 int
14029 main (void)
14030 {
14031
14032 ;
14033 return 0;
14034 }
14035 _ACEOF
14036 if ac_fn_c_try_link "$LINENO"
14037 then :
14038 eval $cacheid=yes
14039 else $as_nop
14040 eval $cacheid=no
14041 fi
14042 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14043 conftest$ac_exeext conftest.$ac_ext
14044 fi
14045
14046
14047 CFLAGS="$xorg_testset_save_CFLAGS"
14048
14049 eval supported=\$$cacheid
14050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14051 printf "%s\n" "$supported" >&6; }
14052 if test "$supported" = "yes" ; then
14053 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
14054 found="yes"
14055 fi
14056 fi
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072 xorg_testset_save_CFLAGS="$CFLAGS"
14073
14074 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14077 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14078 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14079 then :
14080 printf %s "(cached) " >&6
14081 else $as_nop
14082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14083 /* end confdefs.h. */
14084 int i;
14085 _ACEOF
14086 if ac_fn_c_try_compile "$LINENO"
14087 then :
14088 xorg_cv_cc_flag_unknown_warning_option=yes
14089 else $as_nop
14090 xorg_cv_cc_flag_unknown_warning_option=no
14091 fi
14092 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14093 fi
14094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14095 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14096 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14097 CFLAGS="$xorg_testset_save_CFLAGS"
14098 fi
14099
14100 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14103 fi
14104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14106 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14107 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14108 then :
14109 printf %s "(cached) " >&6
14110 else $as_nop
14111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14112 /* end confdefs.h. */
14113 int i;
14114 _ACEOF
14115 if ac_fn_c_try_compile "$LINENO"
14116 then :
14117 xorg_cv_cc_flag_unused_command_line_argument=yes
14118 else $as_nop
14119 xorg_cv_cc_flag_unused_command_line_argument=no
14120 fi
14121 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14122 fi
14123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14124 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14125 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14126 CFLAGS="$xorg_testset_save_CFLAGS"
14127 fi
14128
14129 found="no"
14130
14131 if test $found = "no" ; then
14132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14134 fi
14135
14136 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14138 fi
14139
14140 CFLAGS="$CFLAGS -Wbad-function-cast"
14141
14142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14143 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
14144 cacheid=xorg_cv_cc_flag__Wbad_function_cast
14145 if eval test \${$cacheid+y}
14146 then :
14147 printf %s "(cached) " >&6
14148 else $as_nop
14149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14150 /* end confdefs.h. */
14151 int i;
14152 int
14153 main (void)
14154 {
14155
14156 ;
14157 return 0;
14158 }
14159 _ACEOF
14160 if ac_fn_c_try_link "$LINENO"
14161 then :
14162 eval $cacheid=yes
14163 else $as_nop
14164 eval $cacheid=no
14165 fi
14166 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14167 conftest$ac_exeext conftest.$ac_ext
14168 fi
14169
14170
14171 CFLAGS="$xorg_testset_save_CFLAGS"
14172
14173 eval supported=\$$cacheid
14174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14175 printf "%s\n" "$supported" >&6; }
14176 if test "$supported" = "yes" ; then
14177 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14178 found="yes"
14179 fi
14180 fi
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196 xorg_testset_save_CFLAGS="$CFLAGS"
14197
14198 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14201 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14202 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14203 then :
14204 printf %s "(cached) " >&6
14205 else $as_nop
14206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14207 /* end confdefs.h. */
14208 int i;
14209 _ACEOF
14210 if ac_fn_c_try_compile "$LINENO"
14211 then :
14212 xorg_cv_cc_flag_unknown_warning_option=yes
14213 else $as_nop
14214 xorg_cv_cc_flag_unknown_warning_option=no
14215 fi
14216 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14217 fi
14218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14219 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14220 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14221 CFLAGS="$xorg_testset_save_CFLAGS"
14222 fi
14223
14224 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14227 fi
14228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14230 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14231 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14232 then :
14233 printf %s "(cached) " >&6
14234 else $as_nop
14235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14236 /* end confdefs.h. */
14237 int i;
14238 _ACEOF
14239 if ac_fn_c_try_compile "$LINENO"
14240 then :
14241 xorg_cv_cc_flag_unused_command_line_argument=yes
14242 else $as_nop
14243 xorg_cv_cc_flag_unused_command_line_argument=no
14244 fi
14245 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14246 fi
14247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14248 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14249 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14250 CFLAGS="$xorg_testset_save_CFLAGS"
14251 fi
14252
14253 found="no"
14254
14255 if test $found = "no" ; then
14256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14258 fi
14259
14260 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14262 fi
14263
14264 CFLAGS="$CFLAGS -Wold-style-definition"
14265
14266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14267 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14268 cacheid=xorg_cv_cc_flag__Wold_style_definition
14269 if eval test \${$cacheid+y}
14270 then :
14271 printf %s "(cached) " >&6
14272 else $as_nop
14273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14274 /* end confdefs.h. */
14275 int i;
14276 int
14277 main (void)
14278 {
14279
14280 ;
14281 return 0;
14282 }
14283 _ACEOF
14284 if ac_fn_c_try_link "$LINENO"
14285 then :
14286 eval $cacheid=yes
14287 else $as_nop
14288 eval $cacheid=no
14289 fi
14290 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14291 conftest$ac_exeext conftest.$ac_ext
14292 fi
14293
14294
14295 CFLAGS="$xorg_testset_save_CFLAGS"
14296
14297 eval supported=\$$cacheid
14298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14299 printf "%s\n" "$supported" >&6; }
14300 if test "$supported" = "yes" ; then
14301 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14302 found="yes"
14303 fi
14304 fi
14305
14306 if test $found = "no" ; then
14307 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14308 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14309 fi
14310
14311 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14313 fi
14314
14315 CFLAGS="$CFLAGS -fd"
14316
14317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14318 printf %s "checking if $CC supports -fd... " >&6; }
14319 cacheid=xorg_cv_cc_flag__fd
14320 if eval test \${$cacheid+y}
14321 then :
14322 printf %s "(cached) " >&6
14323 else $as_nop
14324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14325 /* end confdefs.h. */
14326 int i;
14327 int
14328 main (void)
14329 {
14330
14331 ;
14332 return 0;
14333 }
14334 _ACEOF
14335 if ac_fn_c_try_link "$LINENO"
14336 then :
14337 eval $cacheid=yes
14338 else $as_nop
14339 eval $cacheid=no
14340 fi
14341 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14342 conftest$ac_exeext conftest.$ac_ext
14343 fi
14344
14345
14346 CFLAGS="$xorg_testset_save_CFLAGS"
14347
14348 eval supported=\$$cacheid
14349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14350 printf "%s\n" "$supported" >&6; }
14351 if test "$supported" = "yes" ; then
14352 BASE_CFLAGS="$BASE_CFLAGS -fd"
14353 found="yes"
14354 fi
14355 fi
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371 xorg_testset_save_CFLAGS="$CFLAGS"
14372
14373 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14374 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14376 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14377 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14378 then :
14379 printf %s "(cached) " >&6
14380 else $as_nop
14381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14382 /* end confdefs.h. */
14383 int i;
14384 _ACEOF
14385 if ac_fn_c_try_compile "$LINENO"
14386 then :
14387 xorg_cv_cc_flag_unknown_warning_option=yes
14388 else $as_nop
14389 xorg_cv_cc_flag_unknown_warning_option=no
14390 fi
14391 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14392 fi
14393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14394 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14395 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14396 CFLAGS="$xorg_testset_save_CFLAGS"
14397 fi
14398
14399 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14400 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14401 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14402 fi
14403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14405 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14406 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14407 then :
14408 printf %s "(cached) " >&6
14409 else $as_nop
14410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14411 /* end confdefs.h. */
14412 int i;
14413 _ACEOF
14414 if ac_fn_c_try_compile "$LINENO"
14415 then :
14416 xorg_cv_cc_flag_unused_command_line_argument=yes
14417 else $as_nop
14418 xorg_cv_cc_flag_unused_command_line_argument=no
14419 fi
14420 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14421 fi
14422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14423 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14424 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14425 CFLAGS="$xorg_testset_save_CFLAGS"
14426 fi
14427
14428 found="no"
14429
14430 if test $found = "no" ; then
14431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14432 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14433 fi
14434
14435 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14437 fi
14438
14439 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14440
14441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14442 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14443 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14444 if eval test \${$cacheid+y}
14445 then :
14446 printf %s "(cached) " >&6
14447 else $as_nop
14448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14449 /* end confdefs.h. */
14450 int i;
14451 int
14452 main (void)
14453 {
14454
14455 ;
14456 return 0;
14457 }
14458 _ACEOF
14459 if ac_fn_c_try_link "$LINENO"
14460 then :
14461 eval $cacheid=yes
14462 else $as_nop
14463 eval $cacheid=no
14464 fi
14465 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14466 conftest$ac_exeext conftest.$ac_ext
14467 fi
14468
14469
14470 CFLAGS="$xorg_testset_save_CFLAGS"
14471
14472 eval supported=\$$cacheid
14473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14474 printf "%s\n" "$supported" >&6; }
14475 if test "$supported" = "yes" ; then
14476 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14477 found="yes"
14478 fi
14479 fi
14480
14481
14482
14483
14484
14485 # This chunk adds additional warnings that could catch undesired effects.
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499 xorg_testset_save_CFLAGS="$CFLAGS"
14500
14501 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14504 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14505 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14506 then :
14507 printf %s "(cached) " >&6
14508 else $as_nop
14509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14510 /* end confdefs.h. */
14511 int i;
14512 _ACEOF
14513 if ac_fn_c_try_compile "$LINENO"
14514 then :
14515 xorg_cv_cc_flag_unknown_warning_option=yes
14516 else $as_nop
14517 xorg_cv_cc_flag_unknown_warning_option=no
14518 fi
14519 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14520 fi
14521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14522 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14523 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14524 CFLAGS="$xorg_testset_save_CFLAGS"
14525 fi
14526
14527 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14530 fi
14531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14533 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14534 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14535 then :
14536 printf %s "(cached) " >&6
14537 else $as_nop
14538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14539 /* end confdefs.h. */
14540 int i;
14541 _ACEOF
14542 if ac_fn_c_try_compile "$LINENO"
14543 then :
14544 xorg_cv_cc_flag_unused_command_line_argument=yes
14545 else $as_nop
14546 xorg_cv_cc_flag_unused_command_line_argument=no
14547 fi
14548 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14549 fi
14550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14551 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14552 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14553 CFLAGS="$xorg_testset_save_CFLAGS"
14554 fi
14555
14556 found="no"
14557
14558 if test $found = "no" ; then
14559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14561 fi
14562
14563 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14565 fi
14566
14567 CFLAGS="$CFLAGS -Wunused"
14568
14569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14570 printf %s "checking if $CC supports -Wunused... " >&6; }
14571 cacheid=xorg_cv_cc_flag__Wunused
14572 if eval test \${$cacheid+y}
14573 then :
14574 printf %s "(cached) " >&6
14575 else $as_nop
14576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14577 /* end confdefs.h. */
14578 int i;
14579 int
14580 main (void)
14581 {
14582
14583 ;
14584 return 0;
14585 }
14586 _ACEOF
14587 if ac_fn_c_try_link "$LINENO"
14588 then :
14589 eval $cacheid=yes
14590 else $as_nop
14591 eval $cacheid=no
14592 fi
14593 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14594 conftest$ac_exeext conftest.$ac_ext
14595 fi
14596
14597
14598 CFLAGS="$xorg_testset_save_CFLAGS"
14599
14600 eval supported=\$$cacheid
14601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14602 printf "%s\n" "$supported" >&6; }
14603 if test "$supported" = "yes" ; then
14604 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14605 found="yes"
14606 fi
14607 fi
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623 xorg_testset_save_CFLAGS="$CFLAGS"
14624
14625 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14628 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14629 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14630 then :
14631 printf %s "(cached) " >&6
14632 else $as_nop
14633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14634 /* end confdefs.h. */
14635 int i;
14636 _ACEOF
14637 if ac_fn_c_try_compile "$LINENO"
14638 then :
14639 xorg_cv_cc_flag_unknown_warning_option=yes
14640 else $as_nop
14641 xorg_cv_cc_flag_unknown_warning_option=no
14642 fi
14643 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14644 fi
14645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14646 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14647 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14648 CFLAGS="$xorg_testset_save_CFLAGS"
14649 fi
14650
14651 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14653 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14654 fi
14655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14657 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14658 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14659 then :
14660 printf %s "(cached) " >&6
14661 else $as_nop
14662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14663 /* end confdefs.h. */
14664 int i;
14665 _ACEOF
14666 if ac_fn_c_try_compile "$LINENO"
14667 then :
14668 xorg_cv_cc_flag_unused_command_line_argument=yes
14669 else $as_nop
14670 xorg_cv_cc_flag_unused_command_line_argument=no
14671 fi
14672 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14673 fi
14674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14675 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14676 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14677 CFLAGS="$xorg_testset_save_CFLAGS"
14678 fi
14679
14680 found="no"
14681
14682 if test $found = "no" ; then
14683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14684 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14685 fi
14686
14687 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14689 fi
14690
14691 CFLAGS="$CFLAGS -Wuninitialized"
14692
14693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14694 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14695 cacheid=xorg_cv_cc_flag__Wuninitialized
14696 if eval test \${$cacheid+y}
14697 then :
14698 printf %s "(cached) " >&6
14699 else $as_nop
14700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14701 /* end confdefs.h. */
14702 int i;
14703 int
14704 main (void)
14705 {
14706
14707 ;
14708 return 0;
14709 }
14710 _ACEOF
14711 if ac_fn_c_try_link "$LINENO"
14712 then :
14713 eval $cacheid=yes
14714 else $as_nop
14715 eval $cacheid=no
14716 fi
14717 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14718 conftest$ac_exeext conftest.$ac_ext
14719 fi
14720
14721
14722 CFLAGS="$xorg_testset_save_CFLAGS"
14723
14724 eval supported=\$$cacheid
14725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14726 printf "%s\n" "$supported" >&6; }
14727 if test "$supported" = "yes" ; then
14728 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14729 found="yes"
14730 fi
14731 fi
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747 xorg_testset_save_CFLAGS="$CFLAGS"
14748
14749 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14752 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14753 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14754 then :
14755 printf %s "(cached) " >&6
14756 else $as_nop
14757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14758 /* end confdefs.h. */
14759 int i;
14760 _ACEOF
14761 if ac_fn_c_try_compile "$LINENO"
14762 then :
14763 xorg_cv_cc_flag_unknown_warning_option=yes
14764 else $as_nop
14765 xorg_cv_cc_flag_unknown_warning_option=no
14766 fi
14767 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14768 fi
14769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14770 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14771 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14772 CFLAGS="$xorg_testset_save_CFLAGS"
14773 fi
14774
14775 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14778 fi
14779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14781 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14782 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14783 then :
14784 printf %s "(cached) " >&6
14785 else $as_nop
14786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14787 /* end confdefs.h. */
14788 int i;
14789 _ACEOF
14790 if ac_fn_c_try_compile "$LINENO"
14791 then :
14792 xorg_cv_cc_flag_unused_command_line_argument=yes
14793 else $as_nop
14794 xorg_cv_cc_flag_unused_command_line_argument=no
14795 fi
14796 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14797 fi
14798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14799 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14800 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14801 CFLAGS="$xorg_testset_save_CFLAGS"
14802 fi
14803
14804 found="no"
14805
14806 if test $found = "no" ; then
14807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14808 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14809 fi
14810
14811 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14813 fi
14814
14815 CFLAGS="$CFLAGS -Wshadow"
14816
14817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14818 printf %s "checking if $CC supports -Wshadow... " >&6; }
14819 cacheid=xorg_cv_cc_flag__Wshadow
14820 if eval test \${$cacheid+y}
14821 then :
14822 printf %s "(cached) " >&6
14823 else $as_nop
14824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14825 /* end confdefs.h. */
14826 int i;
14827 int
14828 main (void)
14829 {
14830
14831 ;
14832 return 0;
14833 }
14834 _ACEOF
14835 if ac_fn_c_try_link "$LINENO"
14836 then :
14837 eval $cacheid=yes
14838 else $as_nop
14839 eval $cacheid=no
14840 fi
14841 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14842 conftest$ac_exeext conftest.$ac_ext
14843 fi
14844
14845
14846 CFLAGS="$xorg_testset_save_CFLAGS"
14847
14848 eval supported=\$$cacheid
14849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14850 printf "%s\n" "$supported" >&6; }
14851 if test "$supported" = "yes" ; then
14852 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14853 found="yes"
14854 fi
14855 fi
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871 xorg_testset_save_CFLAGS="$CFLAGS"
14872
14873 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14876 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14877 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14878 then :
14879 printf %s "(cached) " >&6
14880 else $as_nop
14881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14882 /* end confdefs.h. */
14883 int i;
14884 _ACEOF
14885 if ac_fn_c_try_compile "$LINENO"
14886 then :
14887 xorg_cv_cc_flag_unknown_warning_option=yes
14888 else $as_nop
14889 xorg_cv_cc_flag_unknown_warning_option=no
14890 fi
14891 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14892 fi
14893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14894 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14895 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14896 CFLAGS="$xorg_testset_save_CFLAGS"
14897 fi
14898
14899 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14902 fi
14903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14905 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14906 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14907 then :
14908 printf %s "(cached) " >&6
14909 else $as_nop
14910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14911 /* end confdefs.h. */
14912 int i;
14913 _ACEOF
14914 if ac_fn_c_try_compile "$LINENO"
14915 then :
14916 xorg_cv_cc_flag_unused_command_line_argument=yes
14917 else $as_nop
14918 xorg_cv_cc_flag_unused_command_line_argument=no
14919 fi
14920 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14921 fi
14922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14923 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14924 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14925 CFLAGS="$xorg_testset_save_CFLAGS"
14926 fi
14927
14928 found="no"
14929
14930 if test $found = "no" ; then
14931 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14932 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14933 fi
14934
14935 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14937 fi
14938
14939 CFLAGS="$CFLAGS -Wmissing-noreturn"
14940
14941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14942 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
14943 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14944 if eval test \${$cacheid+y}
14945 then :
14946 printf %s "(cached) " >&6
14947 else $as_nop
14948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14949 /* end confdefs.h. */
14950 int i;
14951 int
14952 main (void)
14953 {
14954
14955 ;
14956 return 0;
14957 }
14958 _ACEOF
14959 if ac_fn_c_try_link "$LINENO"
14960 then :
14961 eval $cacheid=yes
14962 else $as_nop
14963 eval $cacheid=no
14964 fi
14965 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14966 conftest$ac_exeext conftest.$ac_ext
14967 fi
14968
14969
14970 CFLAGS="$xorg_testset_save_CFLAGS"
14971
14972 eval supported=\$$cacheid
14973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14974 printf "%s\n" "$supported" >&6; }
14975 if test "$supported" = "yes" ; then
14976 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14977 found="yes"
14978 fi
14979 fi
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995 xorg_testset_save_CFLAGS="$CFLAGS"
14996
14997 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14998 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15000 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15001 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15002 then :
15003 printf %s "(cached) " >&6
15004 else $as_nop
15005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15006 /* end confdefs.h. */
15007 int i;
15008 _ACEOF
15009 if ac_fn_c_try_compile "$LINENO"
15010 then :
15011 xorg_cv_cc_flag_unknown_warning_option=yes
15012 else $as_nop
15013 xorg_cv_cc_flag_unknown_warning_option=no
15014 fi
15015 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15016 fi
15017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15018 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15019 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15020 CFLAGS="$xorg_testset_save_CFLAGS"
15021 fi
15022
15023 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15026 fi
15027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15029 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15030 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15031 then :
15032 printf %s "(cached) " >&6
15033 else $as_nop
15034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15035 /* end confdefs.h. */
15036 int i;
15037 _ACEOF
15038 if ac_fn_c_try_compile "$LINENO"
15039 then :
15040 xorg_cv_cc_flag_unused_command_line_argument=yes
15041 else $as_nop
15042 xorg_cv_cc_flag_unused_command_line_argument=no
15043 fi
15044 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15045 fi
15046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15047 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15048 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15049 CFLAGS="$xorg_testset_save_CFLAGS"
15050 fi
15051
15052 found="no"
15053
15054 if test $found = "no" ; then
15055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15057 fi
15058
15059 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15061 fi
15062
15063 CFLAGS="$CFLAGS -Wmissing-format-attribute"
15064
15065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15066 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15067 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15068 if eval test \${$cacheid+y}
15069 then :
15070 printf %s "(cached) " >&6
15071 else $as_nop
15072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15073 /* end confdefs.h. */
15074 int i;
15075 int
15076 main (void)
15077 {
15078
15079 ;
15080 return 0;
15081 }
15082 _ACEOF
15083 if ac_fn_c_try_link "$LINENO"
15084 then :
15085 eval $cacheid=yes
15086 else $as_nop
15087 eval $cacheid=no
15088 fi
15089 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15090 conftest$ac_exeext conftest.$ac_ext
15091 fi
15092
15093
15094 CFLAGS="$xorg_testset_save_CFLAGS"
15095
15096 eval supported=\$$cacheid
15097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15098 printf "%s\n" "$supported" >&6; }
15099 if test "$supported" = "yes" ; then
15100 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15101 found="yes"
15102 fi
15103 fi
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119 xorg_testset_save_CFLAGS="$CFLAGS"
15120
15121 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15122 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15124 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15125 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15126 then :
15127 printf %s "(cached) " >&6
15128 else $as_nop
15129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15130 /* end confdefs.h. */
15131 int i;
15132 _ACEOF
15133 if ac_fn_c_try_compile "$LINENO"
15134 then :
15135 xorg_cv_cc_flag_unknown_warning_option=yes
15136 else $as_nop
15137 xorg_cv_cc_flag_unknown_warning_option=no
15138 fi
15139 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15140 fi
15141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15142 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15143 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15144 CFLAGS="$xorg_testset_save_CFLAGS"
15145 fi
15146
15147 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15148 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15150 fi
15151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15153 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15154 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15155 then :
15156 printf %s "(cached) " >&6
15157 else $as_nop
15158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15159 /* end confdefs.h. */
15160 int i;
15161 _ACEOF
15162 if ac_fn_c_try_compile "$LINENO"
15163 then :
15164 xorg_cv_cc_flag_unused_command_line_argument=yes
15165 else $as_nop
15166 xorg_cv_cc_flag_unused_command_line_argument=no
15167 fi
15168 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15169 fi
15170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15171 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15172 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15173 CFLAGS="$xorg_testset_save_CFLAGS"
15174 fi
15175
15176 found="no"
15177
15178 if test $found = "no" ; then
15179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15180 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15181 fi
15182
15183 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15184 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15185 fi
15186
15187 CFLAGS="$CFLAGS -Wredundant-decls"
15188
15189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15190 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15191 cacheid=xorg_cv_cc_flag__Wredundant_decls
15192 if eval test \${$cacheid+y}
15193 then :
15194 printf %s "(cached) " >&6
15195 else $as_nop
15196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15197 /* end confdefs.h. */
15198 int i;
15199 int
15200 main (void)
15201 {
15202
15203 ;
15204 return 0;
15205 }
15206 _ACEOF
15207 if ac_fn_c_try_link "$LINENO"
15208 then :
15209 eval $cacheid=yes
15210 else $as_nop
15211 eval $cacheid=no
15212 fi
15213 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15214 conftest$ac_exeext conftest.$ac_ext
15215 fi
15216
15217
15218 CFLAGS="$xorg_testset_save_CFLAGS"
15219
15220 eval supported=\$$cacheid
15221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15222 printf "%s\n" "$supported" >&6; }
15223 if test "$supported" = "yes" ; then
15224 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15225 found="yes"
15226 fi
15227 fi
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243 xorg_testset_save_CFLAGS="$CFLAGS"
15244
15245 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15248 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15249 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15250 then :
15251 printf %s "(cached) " >&6
15252 else $as_nop
15253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15254 /* end confdefs.h. */
15255 int i;
15256 _ACEOF
15257 if ac_fn_c_try_compile "$LINENO"
15258 then :
15259 xorg_cv_cc_flag_unknown_warning_option=yes
15260 else $as_nop
15261 xorg_cv_cc_flag_unknown_warning_option=no
15262 fi
15263 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15264 fi
15265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15266 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15267 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15268 CFLAGS="$xorg_testset_save_CFLAGS"
15269 fi
15270
15271 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15272 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15273 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15274 fi
15275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15277 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15278 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15279 then :
15280 printf %s "(cached) " >&6
15281 else $as_nop
15282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15283 /* end confdefs.h. */
15284 int i;
15285 _ACEOF
15286 if ac_fn_c_try_compile "$LINENO"
15287 then :
15288 xorg_cv_cc_flag_unused_command_line_argument=yes
15289 else $as_nop
15290 xorg_cv_cc_flag_unused_command_line_argument=no
15291 fi
15292 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15293 fi
15294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15295 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15296 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15297 CFLAGS="$xorg_testset_save_CFLAGS"
15298 fi
15299
15300 found="no"
15301
15302 if test $found = "no" ; then
15303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15305 fi
15306
15307 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15309 fi
15310
15311 CFLAGS="$CFLAGS -Wlogical-op"
15312
15313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15314 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15315 cacheid=xorg_cv_cc_flag__Wlogical_op
15316 if eval test \${$cacheid+y}
15317 then :
15318 printf %s "(cached) " >&6
15319 else $as_nop
15320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15321 /* end confdefs.h. */
15322 int i;
15323 int
15324 main (void)
15325 {
15326
15327 ;
15328 return 0;
15329 }
15330 _ACEOF
15331 if ac_fn_c_try_link "$LINENO"
15332 then :
15333 eval $cacheid=yes
15334 else $as_nop
15335 eval $cacheid=no
15336 fi
15337 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15338 conftest$ac_exeext conftest.$ac_ext
15339 fi
15340
15341
15342 CFLAGS="$xorg_testset_save_CFLAGS"
15343
15344 eval supported=\$$cacheid
15345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15346 printf "%s\n" "$supported" >&6; }
15347 if test "$supported" = "yes" ; then
15348 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15349 found="yes"
15350 fi
15351 fi
15352
15353
15354
15355 # These are currently disabled because they are noisy. They will be enabled
15356 # in the future once the codebase is sufficiently modernized to silence
15357 # them. For now, I don't want them to drown out the other warnings.
15358 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15359 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15360 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15361
15362 # Turn some warnings into errors, so we don't accidentally get successful builds
15363 # when there are problems that should be fixed.
15364
15365 if test "x$SELECTIVE_WERROR" = "xyes" ; then
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379 xorg_testset_save_CFLAGS="$CFLAGS"
15380
15381 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15382 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15384 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15385 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15386 then :
15387 printf %s "(cached) " >&6
15388 else $as_nop
15389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15390 /* end confdefs.h. */
15391 int i;
15392 _ACEOF
15393 if ac_fn_c_try_compile "$LINENO"
15394 then :
15395 xorg_cv_cc_flag_unknown_warning_option=yes
15396 else $as_nop
15397 xorg_cv_cc_flag_unknown_warning_option=no
15398 fi
15399 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15400 fi
15401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15402 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15403 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15404 CFLAGS="$xorg_testset_save_CFLAGS"
15405 fi
15406
15407 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15410 fi
15411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15413 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15414 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15415 then :
15416 printf %s "(cached) " >&6
15417 else $as_nop
15418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15419 /* end confdefs.h. */
15420 int i;
15421 _ACEOF
15422 if ac_fn_c_try_compile "$LINENO"
15423 then :
15424 xorg_cv_cc_flag_unused_command_line_argument=yes
15425 else $as_nop
15426 xorg_cv_cc_flag_unused_command_line_argument=no
15427 fi
15428 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15429 fi
15430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15431 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15432 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15433 CFLAGS="$xorg_testset_save_CFLAGS"
15434 fi
15435
15436 found="no"
15437
15438 if test $found = "no" ; then
15439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15441 fi
15442
15443 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15445 fi
15446
15447 CFLAGS="$CFLAGS -Werror=implicit"
15448
15449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15450 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15451 cacheid=xorg_cv_cc_flag__Werror_implicit
15452 if eval test \${$cacheid+y}
15453 then :
15454 printf %s "(cached) " >&6
15455 else $as_nop
15456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15457 /* end confdefs.h. */
15458 int i;
15459 int
15460 main (void)
15461 {
15462
15463 ;
15464 return 0;
15465 }
15466 _ACEOF
15467 if ac_fn_c_try_link "$LINENO"
15468 then :
15469 eval $cacheid=yes
15470 else $as_nop
15471 eval $cacheid=no
15472 fi
15473 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15474 conftest$ac_exeext conftest.$ac_ext
15475 fi
15476
15477
15478 CFLAGS="$xorg_testset_save_CFLAGS"
15479
15480 eval supported=\$$cacheid
15481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15482 printf "%s\n" "$supported" >&6; }
15483 if test "$supported" = "yes" ; then
15484 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15485 found="yes"
15486 fi
15487 fi
15488
15489 if test $found = "no" ; then
15490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15491 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15492 fi
15493
15494 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15496 fi
15497
15498 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15499
15500 { 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
15501 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15502 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15503 if eval test \${$cacheid+y}
15504 then :
15505 printf %s "(cached) " >&6
15506 else $as_nop
15507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15508 /* end confdefs.h. */
15509 int i;
15510 int
15511 main (void)
15512 {
15513
15514 ;
15515 return 0;
15516 }
15517 _ACEOF
15518 if ac_fn_c_try_link "$LINENO"
15519 then :
15520 eval $cacheid=yes
15521 else $as_nop
15522 eval $cacheid=no
15523 fi
15524 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15525 conftest$ac_exeext conftest.$ac_ext
15526 fi
15527
15528
15529 CFLAGS="$xorg_testset_save_CFLAGS"
15530
15531 eval supported=\$$cacheid
15532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15533 printf "%s\n" "$supported" >&6; }
15534 if test "$supported" = "yes" ; then
15535 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15536 found="yes"
15537 fi
15538 fi
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554 xorg_testset_save_CFLAGS="$CFLAGS"
15555
15556 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15557 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15559 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15560 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15561 then :
15562 printf %s "(cached) " >&6
15563 else $as_nop
15564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15565 /* end confdefs.h. */
15566 int i;
15567 _ACEOF
15568 if ac_fn_c_try_compile "$LINENO"
15569 then :
15570 xorg_cv_cc_flag_unknown_warning_option=yes
15571 else $as_nop
15572 xorg_cv_cc_flag_unknown_warning_option=no
15573 fi
15574 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15575 fi
15576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15577 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15578 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15579 CFLAGS="$xorg_testset_save_CFLAGS"
15580 fi
15581
15582 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15584 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15585 fi
15586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15588 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15589 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15590 then :
15591 printf %s "(cached) " >&6
15592 else $as_nop
15593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15594 /* end confdefs.h. */
15595 int i;
15596 _ACEOF
15597 if ac_fn_c_try_compile "$LINENO"
15598 then :
15599 xorg_cv_cc_flag_unused_command_line_argument=yes
15600 else $as_nop
15601 xorg_cv_cc_flag_unused_command_line_argument=no
15602 fi
15603 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15604 fi
15605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15606 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15607 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15608 CFLAGS="$xorg_testset_save_CFLAGS"
15609 fi
15610
15611 found="no"
15612
15613 if test $found = "no" ; then
15614 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15615 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15616 fi
15617
15618 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15620 fi
15621
15622 CFLAGS="$CFLAGS -Werror=nonnull"
15623
15624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15625 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15626 cacheid=xorg_cv_cc_flag__Werror_nonnull
15627 if eval test \${$cacheid+y}
15628 then :
15629 printf %s "(cached) " >&6
15630 else $as_nop
15631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15632 /* end confdefs.h. */
15633 int i;
15634 int
15635 main (void)
15636 {
15637
15638 ;
15639 return 0;
15640 }
15641 _ACEOF
15642 if ac_fn_c_try_link "$LINENO"
15643 then :
15644 eval $cacheid=yes
15645 else $as_nop
15646 eval $cacheid=no
15647 fi
15648 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15649 conftest$ac_exeext conftest.$ac_ext
15650 fi
15651
15652
15653 CFLAGS="$xorg_testset_save_CFLAGS"
15654
15655 eval supported=\$$cacheid
15656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15657 printf "%s\n" "$supported" >&6; }
15658 if test "$supported" = "yes" ; then
15659 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15660 found="yes"
15661 fi
15662 fi
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678 xorg_testset_save_CFLAGS="$CFLAGS"
15679
15680 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15681 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15683 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15684 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15685 then :
15686 printf %s "(cached) " >&6
15687 else $as_nop
15688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15689 /* end confdefs.h. */
15690 int i;
15691 _ACEOF
15692 if ac_fn_c_try_compile "$LINENO"
15693 then :
15694 xorg_cv_cc_flag_unknown_warning_option=yes
15695 else $as_nop
15696 xorg_cv_cc_flag_unknown_warning_option=no
15697 fi
15698 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15699 fi
15700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15701 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15702 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15703 CFLAGS="$xorg_testset_save_CFLAGS"
15704 fi
15705
15706 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15708 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15709 fi
15710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15712 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15713 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15714 then :
15715 printf %s "(cached) " >&6
15716 else $as_nop
15717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15718 /* end confdefs.h. */
15719 int i;
15720 _ACEOF
15721 if ac_fn_c_try_compile "$LINENO"
15722 then :
15723 xorg_cv_cc_flag_unused_command_line_argument=yes
15724 else $as_nop
15725 xorg_cv_cc_flag_unused_command_line_argument=no
15726 fi
15727 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15728 fi
15729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15730 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15731 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15732 CFLAGS="$xorg_testset_save_CFLAGS"
15733 fi
15734
15735 found="no"
15736
15737 if test $found = "no" ; then
15738 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15739 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15740 fi
15741
15742 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15744 fi
15745
15746 CFLAGS="$CFLAGS -Werror=init-self"
15747
15748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15749 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15750 cacheid=xorg_cv_cc_flag__Werror_init_self
15751 if eval test \${$cacheid+y}
15752 then :
15753 printf %s "(cached) " >&6
15754 else $as_nop
15755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15756 /* end confdefs.h. */
15757 int i;
15758 int
15759 main (void)
15760 {
15761
15762 ;
15763 return 0;
15764 }
15765 _ACEOF
15766 if ac_fn_c_try_link "$LINENO"
15767 then :
15768 eval $cacheid=yes
15769 else $as_nop
15770 eval $cacheid=no
15771 fi
15772 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15773 conftest$ac_exeext conftest.$ac_ext
15774 fi
15775
15776
15777 CFLAGS="$xorg_testset_save_CFLAGS"
15778
15779 eval supported=\$$cacheid
15780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15781 printf "%s\n" "$supported" >&6; }
15782 if test "$supported" = "yes" ; then
15783 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15784 found="yes"
15785 fi
15786 fi
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802 xorg_testset_save_CFLAGS="$CFLAGS"
15803
15804 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15805 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15807 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15808 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15809 then :
15810 printf %s "(cached) " >&6
15811 else $as_nop
15812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15813 /* end confdefs.h. */
15814 int i;
15815 _ACEOF
15816 if ac_fn_c_try_compile "$LINENO"
15817 then :
15818 xorg_cv_cc_flag_unknown_warning_option=yes
15819 else $as_nop
15820 xorg_cv_cc_flag_unknown_warning_option=no
15821 fi
15822 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15823 fi
15824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15825 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15826 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15827 CFLAGS="$xorg_testset_save_CFLAGS"
15828 fi
15829
15830 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15833 fi
15834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15836 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15837 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15838 then :
15839 printf %s "(cached) " >&6
15840 else $as_nop
15841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15842 /* end confdefs.h. */
15843 int i;
15844 _ACEOF
15845 if ac_fn_c_try_compile "$LINENO"
15846 then :
15847 xorg_cv_cc_flag_unused_command_line_argument=yes
15848 else $as_nop
15849 xorg_cv_cc_flag_unused_command_line_argument=no
15850 fi
15851 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15852 fi
15853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15854 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15855 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15856 CFLAGS="$xorg_testset_save_CFLAGS"
15857 fi
15858
15859 found="no"
15860
15861 if test $found = "no" ; then
15862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15864 fi
15865
15866 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15868 fi
15869
15870 CFLAGS="$CFLAGS -Werror=main"
15871
15872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15873 printf %s "checking if $CC supports -Werror=main... " >&6; }
15874 cacheid=xorg_cv_cc_flag__Werror_main
15875 if eval test \${$cacheid+y}
15876 then :
15877 printf %s "(cached) " >&6
15878 else $as_nop
15879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15880 /* end confdefs.h. */
15881 int i;
15882 int
15883 main (void)
15884 {
15885
15886 ;
15887 return 0;
15888 }
15889 _ACEOF
15890 if ac_fn_c_try_link "$LINENO"
15891 then :
15892 eval $cacheid=yes
15893 else $as_nop
15894 eval $cacheid=no
15895 fi
15896 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15897 conftest$ac_exeext conftest.$ac_ext
15898 fi
15899
15900
15901 CFLAGS="$xorg_testset_save_CFLAGS"
15902
15903 eval supported=\$$cacheid
15904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15905 printf "%s\n" "$supported" >&6; }
15906 if test "$supported" = "yes" ; then
15907 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15908 found="yes"
15909 fi
15910 fi
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926 xorg_testset_save_CFLAGS="$CFLAGS"
15927
15928 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15929 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15931 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15932 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15933 then :
15934 printf %s "(cached) " >&6
15935 else $as_nop
15936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15937 /* end confdefs.h. */
15938 int i;
15939 _ACEOF
15940 if ac_fn_c_try_compile "$LINENO"
15941 then :
15942 xorg_cv_cc_flag_unknown_warning_option=yes
15943 else $as_nop
15944 xorg_cv_cc_flag_unknown_warning_option=no
15945 fi
15946 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15947 fi
15948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15949 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15950 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15951 CFLAGS="$xorg_testset_save_CFLAGS"
15952 fi
15953
15954 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15956 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15957 fi
15958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15960 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15961 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15962 then :
15963 printf %s "(cached) " >&6
15964 else $as_nop
15965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15966 /* end confdefs.h. */
15967 int i;
15968 _ACEOF
15969 if ac_fn_c_try_compile "$LINENO"
15970 then :
15971 xorg_cv_cc_flag_unused_command_line_argument=yes
15972 else $as_nop
15973 xorg_cv_cc_flag_unused_command_line_argument=no
15974 fi
15975 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15976 fi
15977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15978 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15979 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15980 CFLAGS="$xorg_testset_save_CFLAGS"
15981 fi
15982
15983 found="no"
15984
15985 if test $found = "no" ; then
15986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15988 fi
15989
15990 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15992 fi
15993
15994 CFLAGS="$CFLAGS -Werror=missing-braces"
15995
15996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15997 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
15998 cacheid=xorg_cv_cc_flag__Werror_missing_braces
15999 if eval test \${$cacheid+y}
16000 then :
16001 printf %s "(cached) " >&6
16002 else $as_nop
16003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16004 /* end confdefs.h. */
16005 int i;
16006 int
16007 main (void)
16008 {
16009
16010 ;
16011 return 0;
16012 }
16013 _ACEOF
16014 if ac_fn_c_try_link "$LINENO"
16015 then :
16016 eval $cacheid=yes
16017 else $as_nop
16018 eval $cacheid=no
16019 fi
16020 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16021 conftest$ac_exeext conftest.$ac_ext
16022 fi
16023
16024
16025 CFLAGS="$xorg_testset_save_CFLAGS"
16026
16027 eval supported=\$$cacheid
16028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16029 printf "%s\n" "$supported" >&6; }
16030 if test "$supported" = "yes" ; then
16031 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16032 found="yes"
16033 fi
16034 fi
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050 xorg_testset_save_CFLAGS="$CFLAGS"
16051
16052 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16053 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16055 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16056 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16057 then :
16058 printf %s "(cached) " >&6
16059 else $as_nop
16060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16061 /* end confdefs.h. */
16062 int i;
16063 _ACEOF
16064 if ac_fn_c_try_compile "$LINENO"
16065 then :
16066 xorg_cv_cc_flag_unknown_warning_option=yes
16067 else $as_nop
16068 xorg_cv_cc_flag_unknown_warning_option=no
16069 fi
16070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16071 fi
16072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16073 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16074 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16075 CFLAGS="$xorg_testset_save_CFLAGS"
16076 fi
16077
16078 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16080 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16081 fi
16082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16084 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16085 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16086 then :
16087 printf %s "(cached) " >&6
16088 else $as_nop
16089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16090 /* end confdefs.h. */
16091 int i;
16092 _ACEOF
16093 if ac_fn_c_try_compile "$LINENO"
16094 then :
16095 xorg_cv_cc_flag_unused_command_line_argument=yes
16096 else $as_nop
16097 xorg_cv_cc_flag_unused_command_line_argument=no
16098 fi
16099 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16100 fi
16101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16102 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16103 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16104 CFLAGS="$xorg_testset_save_CFLAGS"
16105 fi
16106
16107 found="no"
16108
16109 if test $found = "no" ; then
16110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16112 fi
16113
16114 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16116 fi
16117
16118 CFLAGS="$CFLAGS -Werror=sequence-point"
16119
16120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16121 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
16122 cacheid=xorg_cv_cc_flag__Werror_sequence_point
16123 if eval test \${$cacheid+y}
16124 then :
16125 printf %s "(cached) " >&6
16126 else $as_nop
16127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16128 /* end confdefs.h. */
16129 int i;
16130 int
16131 main (void)
16132 {
16133
16134 ;
16135 return 0;
16136 }
16137 _ACEOF
16138 if ac_fn_c_try_link "$LINENO"
16139 then :
16140 eval $cacheid=yes
16141 else $as_nop
16142 eval $cacheid=no
16143 fi
16144 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16145 conftest$ac_exeext conftest.$ac_ext
16146 fi
16147
16148
16149 CFLAGS="$xorg_testset_save_CFLAGS"
16150
16151 eval supported=\$$cacheid
16152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16153 printf "%s\n" "$supported" >&6; }
16154 if test "$supported" = "yes" ; then
16155 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16156 found="yes"
16157 fi
16158 fi
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174 xorg_testset_save_CFLAGS="$CFLAGS"
16175
16176 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16177 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16179 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16180 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16181 then :
16182 printf %s "(cached) " >&6
16183 else $as_nop
16184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16185 /* end confdefs.h. */
16186 int i;
16187 _ACEOF
16188 if ac_fn_c_try_compile "$LINENO"
16189 then :
16190 xorg_cv_cc_flag_unknown_warning_option=yes
16191 else $as_nop
16192 xorg_cv_cc_flag_unknown_warning_option=no
16193 fi
16194 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16195 fi
16196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16197 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16198 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16199 CFLAGS="$xorg_testset_save_CFLAGS"
16200 fi
16201
16202 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16205 fi
16206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16208 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16209 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16210 then :
16211 printf %s "(cached) " >&6
16212 else $as_nop
16213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16214 /* end confdefs.h. */
16215 int i;
16216 _ACEOF
16217 if ac_fn_c_try_compile "$LINENO"
16218 then :
16219 xorg_cv_cc_flag_unused_command_line_argument=yes
16220 else $as_nop
16221 xorg_cv_cc_flag_unused_command_line_argument=no
16222 fi
16223 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16224 fi
16225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16226 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16227 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16228 CFLAGS="$xorg_testset_save_CFLAGS"
16229 fi
16230
16231 found="no"
16232
16233 if test $found = "no" ; then
16234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16235 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16236 fi
16237
16238 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16240 fi
16241
16242 CFLAGS="$CFLAGS -Werror=return-type"
16243
16244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16245 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16246 cacheid=xorg_cv_cc_flag__Werror_return_type
16247 if eval test \${$cacheid+y}
16248 then :
16249 printf %s "(cached) " >&6
16250 else $as_nop
16251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16252 /* end confdefs.h. */
16253 int i;
16254 int
16255 main (void)
16256 {
16257
16258 ;
16259 return 0;
16260 }
16261 _ACEOF
16262 if ac_fn_c_try_link "$LINENO"
16263 then :
16264 eval $cacheid=yes
16265 else $as_nop
16266 eval $cacheid=no
16267 fi
16268 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16269 conftest$ac_exeext conftest.$ac_ext
16270 fi
16271
16272
16273 CFLAGS="$xorg_testset_save_CFLAGS"
16274
16275 eval supported=\$$cacheid
16276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16277 printf "%s\n" "$supported" >&6; }
16278 if test "$supported" = "yes" ; then
16279 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16280 found="yes"
16281 fi
16282 fi
16283
16284 if test $found = "no" ; then
16285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16286 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16287 fi
16288
16289 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16291 fi
16292
16293 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16294
16295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16296 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16297 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16298 if eval test \${$cacheid+y}
16299 then :
16300 printf %s "(cached) " >&6
16301 else $as_nop
16302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16303 /* end confdefs.h. */
16304 int i;
16305 int
16306 main (void)
16307 {
16308
16309 ;
16310 return 0;
16311 }
16312 _ACEOF
16313 if ac_fn_c_try_link "$LINENO"
16314 then :
16315 eval $cacheid=yes
16316 else $as_nop
16317 eval $cacheid=no
16318 fi
16319 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16320 conftest$ac_exeext conftest.$ac_ext
16321 fi
16322
16323
16324 CFLAGS="$xorg_testset_save_CFLAGS"
16325
16326 eval supported=\$$cacheid
16327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16328 printf "%s\n" "$supported" >&6; }
16329 if test "$supported" = "yes" ; then
16330 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16331 found="yes"
16332 fi
16333 fi
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349 xorg_testset_save_CFLAGS="$CFLAGS"
16350
16351 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16352 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16354 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16355 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16356 then :
16357 printf %s "(cached) " >&6
16358 else $as_nop
16359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16360 /* end confdefs.h. */
16361 int i;
16362 _ACEOF
16363 if ac_fn_c_try_compile "$LINENO"
16364 then :
16365 xorg_cv_cc_flag_unknown_warning_option=yes
16366 else $as_nop
16367 xorg_cv_cc_flag_unknown_warning_option=no
16368 fi
16369 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16370 fi
16371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16372 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16373 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16374 CFLAGS="$xorg_testset_save_CFLAGS"
16375 fi
16376
16377 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16379 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16380 fi
16381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16383 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16384 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16385 then :
16386 printf %s "(cached) " >&6
16387 else $as_nop
16388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16389 /* end confdefs.h. */
16390 int i;
16391 _ACEOF
16392 if ac_fn_c_try_compile "$LINENO"
16393 then :
16394 xorg_cv_cc_flag_unused_command_line_argument=yes
16395 else $as_nop
16396 xorg_cv_cc_flag_unused_command_line_argument=no
16397 fi
16398 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16399 fi
16400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16401 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16402 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16403 CFLAGS="$xorg_testset_save_CFLAGS"
16404 fi
16405
16406 found="no"
16407
16408 if test $found = "no" ; then
16409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16410 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16411 fi
16412
16413 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16415 fi
16416
16417 CFLAGS="$CFLAGS -Werror=trigraphs"
16418
16419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16420 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16421 cacheid=xorg_cv_cc_flag__Werror_trigraphs
16422 if eval test \${$cacheid+y}
16423 then :
16424 printf %s "(cached) " >&6
16425 else $as_nop
16426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16427 /* end confdefs.h. */
16428 int i;
16429 int
16430 main (void)
16431 {
16432
16433 ;
16434 return 0;
16435 }
16436 _ACEOF
16437 if ac_fn_c_try_link "$LINENO"
16438 then :
16439 eval $cacheid=yes
16440 else $as_nop
16441 eval $cacheid=no
16442 fi
16443 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16444 conftest$ac_exeext conftest.$ac_ext
16445 fi
16446
16447
16448 CFLAGS="$xorg_testset_save_CFLAGS"
16449
16450 eval supported=\$$cacheid
16451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16452 printf "%s\n" "$supported" >&6; }
16453 if test "$supported" = "yes" ; then
16454 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16455 found="yes"
16456 fi
16457 fi
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473 xorg_testset_save_CFLAGS="$CFLAGS"
16474
16475 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16476 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16478 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16479 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16480 then :
16481 printf %s "(cached) " >&6
16482 else $as_nop
16483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16484 /* end confdefs.h. */
16485 int i;
16486 _ACEOF
16487 if ac_fn_c_try_compile "$LINENO"
16488 then :
16489 xorg_cv_cc_flag_unknown_warning_option=yes
16490 else $as_nop
16491 xorg_cv_cc_flag_unknown_warning_option=no
16492 fi
16493 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16494 fi
16495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16496 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16497 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16498 CFLAGS="$xorg_testset_save_CFLAGS"
16499 fi
16500
16501 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16503 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16504 fi
16505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16507 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16508 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16509 then :
16510 printf %s "(cached) " >&6
16511 else $as_nop
16512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16513 /* end confdefs.h. */
16514 int i;
16515 _ACEOF
16516 if ac_fn_c_try_compile "$LINENO"
16517 then :
16518 xorg_cv_cc_flag_unused_command_line_argument=yes
16519 else $as_nop
16520 xorg_cv_cc_flag_unused_command_line_argument=no
16521 fi
16522 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16523 fi
16524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16525 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16526 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16527 CFLAGS="$xorg_testset_save_CFLAGS"
16528 fi
16529
16530 found="no"
16531
16532 if test $found = "no" ; then
16533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16535 fi
16536
16537 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16539 fi
16540
16541 CFLAGS="$CFLAGS -Werror=array-bounds"
16542
16543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16544 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16545 cacheid=xorg_cv_cc_flag__Werror_array_bounds
16546 if eval test \${$cacheid+y}
16547 then :
16548 printf %s "(cached) " >&6
16549 else $as_nop
16550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16551 /* end confdefs.h. */
16552 int i;
16553 int
16554 main (void)
16555 {
16556
16557 ;
16558 return 0;
16559 }
16560 _ACEOF
16561 if ac_fn_c_try_link "$LINENO"
16562 then :
16563 eval $cacheid=yes
16564 else $as_nop
16565 eval $cacheid=no
16566 fi
16567 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16568 conftest$ac_exeext conftest.$ac_ext
16569 fi
16570
16571
16572 CFLAGS="$xorg_testset_save_CFLAGS"
16573
16574 eval supported=\$$cacheid
16575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16576 printf "%s\n" "$supported" >&6; }
16577 if test "$supported" = "yes" ; then
16578 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16579 found="yes"
16580 fi
16581 fi
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597 xorg_testset_save_CFLAGS="$CFLAGS"
16598
16599 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16600 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16602 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16603 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16604 then :
16605 printf %s "(cached) " >&6
16606 else $as_nop
16607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16608 /* end confdefs.h. */
16609 int i;
16610 _ACEOF
16611 if ac_fn_c_try_compile "$LINENO"
16612 then :
16613 xorg_cv_cc_flag_unknown_warning_option=yes
16614 else $as_nop
16615 xorg_cv_cc_flag_unknown_warning_option=no
16616 fi
16617 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16618 fi
16619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16620 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16621 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16622 CFLAGS="$xorg_testset_save_CFLAGS"
16623 fi
16624
16625 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16628 fi
16629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16631 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16632 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16633 then :
16634 printf %s "(cached) " >&6
16635 else $as_nop
16636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16637 /* end confdefs.h. */
16638 int i;
16639 _ACEOF
16640 if ac_fn_c_try_compile "$LINENO"
16641 then :
16642 xorg_cv_cc_flag_unused_command_line_argument=yes
16643 else $as_nop
16644 xorg_cv_cc_flag_unused_command_line_argument=no
16645 fi
16646 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16647 fi
16648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16649 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16650 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16651 CFLAGS="$xorg_testset_save_CFLAGS"
16652 fi
16653
16654 found="no"
16655
16656 if test $found = "no" ; then
16657 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16659 fi
16660
16661 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16663 fi
16664
16665 CFLAGS="$CFLAGS -Werror=write-strings"
16666
16667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16668 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16669 cacheid=xorg_cv_cc_flag__Werror_write_strings
16670 if eval test \${$cacheid+y}
16671 then :
16672 printf %s "(cached) " >&6
16673 else $as_nop
16674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16675 /* end confdefs.h. */
16676 int i;
16677 int
16678 main (void)
16679 {
16680
16681 ;
16682 return 0;
16683 }
16684 _ACEOF
16685 if ac_fn_c_try_link "$LINENO"
16686 then :
16687 eval $cacheid=yes
16688 else $as_nop
16689 eval $cacheid=no
16690 fi
16691 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16692 conftest$ac_exeext conftest.$ac_ext
16693 fi
16694
16695
16696 CFLAGS="$xorg_testset_save_CFLAGS"
16697
16698 eval supported=\$$cacheid
16699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16700 printf "%s\n" "$supported" >&6; }
16701 if test "$supported" = "yes" ; then
16702 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16703 found="yes"
16704 fi
16705 fi
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721 xorg_testset_save_CFLAGS="$CFLAGS"
16722
16723 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16724 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16726 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16727 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16728 then :
16729 printf %s "(cached) " >&6
16730 else $as_nop
16731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16732 /* end confdefs.h. */
16733 int i;
16734 _ACEOF
16735 if ac_fn_c_try_compile "$LINENO"
16736 then :
16737 xorg_cv_cc_flag_unknown_warning_option=yes
16738 else $as_nop
16739 xorg_cv_cc_flag_unknown_warning_option=no
16740 fi
16741 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16742 fi
16743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16744 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16745 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16746 CFLAGS="$xorg_testset_save_CFLAGS"
16747 fi
16748
16749 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16752 fi
16753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16755 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16756 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16757 then :
16758 printf %s "(cached) " >&6
16759 else $as_nop
16760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16761 /* end confdefs.h. */
16762 int i;
16763 _ACEOF
16764 if ac_fn_c_try_compile "$LINENO"
16765 then :
16766 xorg_cv_cc_flag_unused_command_line_argument=yes
16767 else $as_nop
16768 xorg_cv_cc_flag_unused_command_line_argument=no
16769 fi
16770 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16771 fi
16772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16773 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16774 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16775 CFLAGS="$xorg_testset_save_CFLAGS"
16776 fi
16777
16778 found="no"
16779
16780 if test $found = "no" ; then
16781 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16783 fi
16784
16785 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16787 fi
16788
16789 CFLAGS="$CFLAGS -Werror=address"
16790
16791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16792 printf %s "checking if $CC supports -Werror=address... " >&6; }
16793 cacheid=xorg_cv_cc_flag__Werror_address
16794 if eval test \${$cacheid+y}
16795 then :
16796 printf %s "(cached) " >&6
16797 else $as_nop
16798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16799 /* end confdefs.h. */
16800 int i;
16801 int
16802 main (void)
16803 {
16804
16805 ;
16806 return 0;
16807 }
16808 _ACEOF
16809 if ac_fn_c_try_link "$LINENO"
16810 then :
16811 eval $cacheid=yes
16812 else $as_nop
16813 eval $cacheid=no
16814 fi
16815 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16816 conftest$ac_exeext conftest.$ac_ext
16817 fi
16818
16819
16820 CFLAGS="$xorg_testset_save_CFLAGS"
16821
16822 eval supported=\$$cacheid
16823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16824 printf "%s\n" "$supported" >&6; }
16825 if test "$supported" = "yes" ; then
16826 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16827 found="yes"
16828 fi
16829 fi
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845 xorg_testset_save_CFLAGS="$CFLAGS"
16846
16847 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16848 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16850 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16851 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16852 then :
16853 printf %s "(cached) " >&6
16854 else $as_nop
16855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16856 /* end confdefs.h. */
16857 int i;
16858 _ACEOF
16859 if ac_fn_c_try_compile "$LINENO"
16860 then :
16861 xorg_cv_cc_flag_unknown_warning_option=yes
16862 else $as_nop
16863 xorg_cv_cc_flag_unknown_warning_option=no
16864 fi
16865 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16866 fi
16867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16868 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16869 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16870 CFLAGS="$xorg_testset_save_CFLAGS"
16871 fi
16872
16873 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16875 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16876 fi
16877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16879 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16880 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16881 then :
16882 printf %s "(cached) " >&6
16883 else $as_nop
16884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16885 /* end confdefs.h. */
16886 int i;
16887 _ACEOF
16888 if ac_fn_c_try_compile "$LINENO"
16889 then :
16890 xorg_cv_cc_flag_unused_command_line_argument=yes
16891 else $as_nop
16892 xorg_cv_cc_flag_unused_command_line_argument=no
16893 fi
16894 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16895 fi
16896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16897 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16898 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16899 CFLAGS="$xorg_testset_save_CFLAGS"
16900 fi
16901
16902 found="no"
16903
16904 if test $found = "no" ; then
16905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16906 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16907 fi
16908
16909 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16911 fi
16912
16913 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16914
16915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16916 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16917 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16918 if eval test \${$cacheid+y}
16919 then :
16920 printf %s "(cached) " >&6
16921 else $as_nop
16922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16923 /* end confdefs.h. */
16924 int i;
16925 int
16926 main (void)
16927 {
16928
16929 ;
16930 return 0;
16931 }
16932 _ACEOF
16933 if ac_fn_c_try_link "$LINENO"
16934 then :
16935 eval $cacheid=yes
16936 else $as_nop
16937 eval $cacheid=no
16938 fi
16939 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16940 conftest$ac_exeext conftest.$ac_ext
16941 fi
16942
16943
16944 CFLAGS="$xorg_testset_save_CFLAGS"
16945
16946 eval supported=\$$cacheid
16947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16948 printf "%s\n" "$supported" >&6; }
16949 if test "$supported" = "yes" ; then
16950 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16951 found="yes"
16952 fi
16953 fi
16954
16955 if test $found = "no" ; then
16956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16957 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16958 fi
16959
16960 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16962 fi
16963
16964 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16965
16966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16967 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16968 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16969 if eval test \${$cacheid+y}
16970 then :
16971 printf %s "(cached) " >&6
16972 else $as_nop
16973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16974 /* end confdefs.h. */
16975 int i;
16976 int
16977 main (void)
16978 {
16979
16980 ;
16981 return 0;
16982 }
16983 _ACEOF
16984 if ac_fn_c_try_link "$LINENO"
16985 then :
16986 eval $cacheid=yes
16987 else $as_nop
16988 eval $cacheid=no
16989 fi
16990 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16991 conftest$ac_exeext conftest.$ac_ext
16992 fi
16993
16994
16995 CFLAGS="$xorg_testset_save_CFLAGS"
16996
16997 eval supported=\$$cacheid
16998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16999 printf "%s\n" "$supported" >&6; }
17000 if test "$supported" = "yes" ; then
17001 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17002 found="yes"
17003 fi
17004 fi
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020 xorg_testset_save_CFLAGS="$CFLAGS"
17021
17022 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17025 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17026 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17027 then :
17028 printf %s "(cached) " >&6
17029 else $as_nop
17030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17031 /* end confdefs.h. */
17032 int i;
17033 _ACEOF
17034 if ac_fn_c_try_compile "$LINENO"
17035 then :
17036 xorg_cv_cc_flag_unknown_warning_option=yes
17037 else $as_nop
17038 xorg_cv_cc_flag_unknown_warning_option=no
17039 fi
17040 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17041 fi
17042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17043 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17044 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17045 CFLAGS="$xorg_testset_save_CFLAGS"
17046 fi
17047
17048 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17050 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17051 fi
17052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17054 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17055 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17056 then :
17057 printf %s "(cached) " >&6
17058 else $as_nop
17059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17060 /* end confdefs.h. */
17061 int i;
17062 _ACEOF
17063 if ac_fn_c_try_compile "$LINENO"
17064 then :
17065 xorg_cv_cc_flag_unused_command_line_argument=yes
17066 else $as_nop
17067 xorg_cv_cc_flag_unused_command_line_argument=no
17068 fi
17069 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17070 fi
17071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17072 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17073 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17074 CFLAGS="$xorg_testset_save_CFLAGS"
17075 fi
17076
17077 found="no"
17078
17079 if test $found = "no" ; then
17080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17082 fi
17083
17084 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17086 fi
17087
17088 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
17089
17090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
17091 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
17092 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
17093 if eval test \${$cacheid+y}
17094 then :
17095 printf %s "(cached) " >&6
17096 else $as_nop
17097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17098 /* end confdefs.h. */
17099 int i;
17100 int
17101 main (void)
17102 {
17103
17104 ;
17105 return 0;
17106 }
17107 _ACEOF
17108 if ac_fn_c_try_link "$LINENO"
17109 then :
17110 eval $cacheid=yes
17111 else $as_nop
17112 eval $cacheid=no
17113 fi
17114 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17115 conftest$ac_exeext conftest.$ac_ext
17116 fi
17117
17118
17119 CFLAGS="$xorg_testset_save_CFLAGS"
17120
17121 eval supported=\$$cacheid
17122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17123 printf "%s\n" "$supported" >&6; }
17124 if test "$supported" = "yes" ; then
17125 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17126 found="yes"
17127 fi
17128 fi
17129
17130 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17131 else
17132 { 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
17133 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;}
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147 xorg_testset_save_CFLAGS="$CFLAGS"
17148
17149 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17150 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17152 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17153 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17154 then :
17155 printf %s "(cached) " >&6
17156 else $as_nop
17157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17158 /* end confdefs.h. */
17159 int i;
17160 _ACEOF
17161 if ac_fn_c_try_compile "$LINENO"
17162 then :
17163 xorg_cv_cc_flag_unknown_warning_option=yes
17164 else $as_nop
17165 xorg_cv_cc_flag_unknown_warning_option=no
17166 fi
17167 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17168 fi
17169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17170 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17171 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17172 CFLAGS="$xorg_testset_save_CFLAGS"
17173 fi
17174
17175 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17177 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17178 fi
17179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17181 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17182 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17183 then :
17184 printf %s "(cached) " >&6
17185 else $as_nop
17186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17187 /* end confdefs.h. */
17188 int i;
17189 _ACEOF
17190 if ac_fn_c_try_compile "$LINENO"
17191 then :
17192 xorg_cv_cc_flag_unused_command_line_argument=yes
17193 else $as_nop
17194 xorg_cv_cc_flag_unused_command_line_argument=no
17195 fi
17196 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17197 fi
17198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17199 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17200 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17201 CFLAGS="$xorg_testset_save_CFLAGS"
17202 fi
17203
17204 found="no"
17205
17206 if test $found = "no" ; then
17207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17209 fi
17210
17211 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17213 fi
17214
17215 CFLAGS="$CFLAGS -Wimplicit"
17216
17217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17218 printf %s "checking if $CC supports -Wimplicit... " >&6; }
17219 cacheid=xorg_cv_cc_flag__Wimplicit
17220 if eval test \${$cacheid+y}
17221 then :
17222 printf %s "(cached) " >&6
17223 else $as_nop
17224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17225 /* end confdefs.h. */
17226 int i;
17227 int
17228 main (void)
17229 {
17230
17231 ;
17232 return 0;
17233 }
17234 _ACEOF
17235 if ac_fn_c_try_link "$LINENO"
17236 then :
17237 eval $cacheid=yes
17238 else $as_nop
17239 eval $cacheid=no
17240 fi
17241 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17242 conftest$ac_exeext conftest.$ac_ext
17243 fi
17244
17245
17246 CFLAGS="$xorg_testset_save_CFLAGS"
17247
17248 eval supported=\$$cacheid
17249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17250 printf "%s\n" "$supported" >&6; }
17251 if test "$supported" = "yes" ; then
17252 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17253 found="yes"
17254 fi
17255 fi
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271 xorg_testset_save_CFLAGS="$CFLAGS"
17272
17273 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17274 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17276 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17277 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17278 then :
17279 printf %s "(cached) " >&6
17280 else $as_nop
17281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17282 /* end confdefs.h. */
17283 int i;
17284 _ACEOF
17285 if ac_fn_c_try_compile "$LINENO"
17286 then :
17287 xorg_cv_cc_flag_unknown_warning_option=yes
17288 else $as_nop
17289 xorg_cv_cc_flag_unknown_warning_option=no
17290 fi
17291 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17292 fi
17293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17294 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17295 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17296 CFLAGS="$xorg_testset_save_CFLAGS"
17297 fi
17298
17299 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17300 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17301 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17302 fi
17303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17305 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17306 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17307 then :
17308 printf %s "(cached) " >&6
17309 else $as_nop
17310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17311 /* end confdefs.h. */
17312 int i;
17313 _ACEOF
17314 if ac_fn_c_try_compile "$LINENO"
17315 then :
17316 xorg_cv_cc_flag_unused_command_line_argument=yes
17317 else $as_nop
17318 xorg_cv_cc_flag_unused_command_line_argument=no
17319 fi
17320 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17321 fi
17322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17323 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17324 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17325 CFLAGS="$xorg_testset_save_CFLAGS"
17326 fi
17327
17328 found="no"
17329
17330 if test $found = "no" ; then
17331 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17333 fi
17334
17335 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17337 fi
17338
17339 CFLAGS="$CFLAGS -Wnonnull"
17340
17341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17342 printf %s "checking if $CC supports -Wnonnull... " >&6; }
17343 cacheid=xorg_cv_cc_flag__Wnonnull
17344 if eval test \${$cacheid+y}
17345 then :
17346 printf %s "(cached) " >&6
17347 else $as_nop
17348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17349 /* end confdefs.h. */
17350 int i;
17351 int
17352 main (void)
17353 {
17354
17355 ;
17356 return 0;
17357 }
17358 _ACEOF
17359 if ac_fn_c_try_link "$LINENO"
17360 then :
17361 eval $cacheid=yes
17362 else $as_nop
17363 eval $cacheid=no
17364 fi
17365 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17366 conftest$ac_exeext conftest.$ac_ext
17367 fi
17368
17369
17370 CFLAGS="$xorg_testset_save_CFLAGS"
17371
17372 eval supported=\$$cacheid
17373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17374 printf "%s\n" "$supported" >&6; }
17375 if test "$supported" = "yes" ; then
17376 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17377 found="yes"
17378 fi
17379 fi
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395 xorg_testset_save_CFLAGS="$CFLAGS"
17396
17397 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17398 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17400 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17401 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17402 then :
17403 printf %s "(cached) " >&6
17404 else $as_nop
17405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17406 /* end confdefs.h. */
17407 int i;
17408 _ACEOF
17409 if ac_fn_c_try_compile "$LINENO"
17410 then :
17411 xorg_cv_cc_flag_unknown_warning_option=yes
17412 else $as_nop
17413 xorg_cv_cc_flag_unknown_warning_option=no
17414 fi
17415 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17416 fi
17417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17418 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17419 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17420 CFLAGS="$xorg_testset_save_CFLAGS"
17421 fi
17422
17423 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17424 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17425 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17426 fi
17427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17429 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17430 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17431 then :
17432 printf %s "(cached) " >&6
17433 else $as_nop
17434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17435 /* end confdefs.h. */
17436 int i;
17437 _ACEOF
17438 if ac_fn_c_try_compile "$LINENO"
17439 then :
17440 xorg_cv_cc_flag_unused_command_line_argument=yes
17441 else $as_nop
17442 xorg_cv_cc_flag_unused_command_line_argument=no
17443 fi
17444 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17445 fi
17446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17447 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17448 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17449 CFLAGS="$xorg_testset_save_CFLAGS"
17450 fi
17451
17452 found="no"
17453
17454 if test $found = "no" ; then
17455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17456 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17457 fi
17458
17459 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17461 fi
17462
17463 CFLAGS="$CFLAGS -Winit-self"
17464
17465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17466 printf %s "checking if $CC supports -Winit-self... " >&6; }
17467 cacheid=xorg_cv_cc_flag__Winit_self
17468 if eval test \${$cacheid+y}
17469 then :
17470 printf %s "(cached) " >&6
17471 else $as_nop
17472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17473 /* end confdefs.h. */
17474 int i;
17475 int
17476 main (void)
17477 {
17478
17479 ;
17480 return 0;
17481 }
17482 _ACEOF
17483 if ac_fn_c_try_link "$LINENO"
17484 then :
17485 eval $cacheid=yes
17486 else $as_nop
17487 eval $cacheid=no
17488 fi
17489 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17490 conftest$ac_exeext conftest.$ac_ext
17491 fi
17492
17493
17494 CFLAGS="$xorg_testset_save_CFLAGS"
17495
17496 eval supported=\$$cacheid
17497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17498 printf "%s\n" "$supported" >&6; }
17499 if test "$supported" = "yes" ; then
17500 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17501 found="yes"
17502 fi
17503 fi
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519 xorg_testset_save_CFLAGS="$CFLAGS"
17520
17521 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17522 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17524 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17525 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17526 then :
17527 printf %s "(cached) " >&6
17528 else $as_nop
17529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17530 /* end confdefs.h. */
17531 int i;
17532 _ACEOF
17533 if ac_fn_c_try_compile "$LINENO"
17534 then :
17535 xorg_cv_cc_flag_unknown_warning_option=yes
17536 else $as_nop
17537 xorg_cv_cc_flag_unknown_warning_option=no
17538 fi
17539 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17540 fi
17541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17542 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17543 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17544 CFLAGS="$xorg_testset_save_CFLAGS"
17545 fi
17546
17547 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17548 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17549 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17550 fi
17551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17553 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17554 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17555 then :
17556 printf %s "(cached) " >&6
17557 else $as_nop
17558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17559 /* end confdefs.h. */
17560 int i;
17561 _ACEOF
17562 if ac_fn_c_try_compile "$LINENO"
17563 then :
17564 xorg_cv_cc_flag_unused_command_line_argument=yes
17565 else $as_nop
17566 xorg_cv_cc_flag_unused_command_line_argument=no
17567 fi
17568 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17569 fi
17570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17571 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17572 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17573 CFLAGS="$xorg_testset_save_CFLAGS"
17574 fi
17575
17576 found="no"
17577
17578 if test $found = "no" ; then
17579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17580 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17581 fi
17582
17583 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17585 fi
17586
17587 CFLAGS="$CFLAGS -Wmain"
17588
17589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17590 printf %s "checking if $CC supports -Wmain... " >&6; }
17591 cacheid=xorg_cv_cc_flag__Wmain
17592 if eval test \${$cacheid+y}
17593 then :
17594 printf %s "(cached) " >&6
17595 else $as_nop
17596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17597 /* end confdefs.h. */
17598 int i;
17599 int
17600 main (void)
17601 {
17602
17603 ;
17604 return 0;
17605 }
17606 _ACEOF
17607 if ac_fn_c_try_link "$LINENO"
17608 then :
17609 eval $cacheid=yes
17610 else $as_nop
17611 eval $cacheid=no
17612 fi
17613 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17614 conftest$ac_exeext conftest.$ac_ext
17615 fi
17616
17617
17618 CFLAGS="$xorg_testset_save_CFLAGS"
17619
17620 eval supported=\$$cacheid
17621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17622 printf "%s\n" "$supported" >&6; }
17623 if test "$supported" = "yes" ; then
17624 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17625 found="yes"
17626 fi
17627 fi
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643 xorg_testset_save_CFLAGS="$CFLAGS"
17644
17645 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17646 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17648 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17649 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17650 then :
17651 printf %s "(cached) " >&6
17652 else $as_nop
17653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17654 /* end confdefs.h. */
17655 int i;
17656 _ACEOF
17657 if ac_fn_c_try_compile "$LINENO"
17658 then :
17659 xorg_cv_cc_flag_unknown_warning_option=yes
17660 else $as_nop
17661 xorg_cv_cc_flag_unknown_warning_option=no
17662 fi
17663 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17664 fi
17665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17666 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17667 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17668 CFLAGS="$xorg_testset_save_CFLAGS"
17669 fi
17670
17671 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17672 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17673 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17674 fi
17675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17677 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17678 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17679 then :
17680 printf %s "(cached) " >&6
17681 else $as_nop
17682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17683 /* end confdefs.h. */
17684 int i;
17685 _ACEOF
17686 if ac_fn_c_try_compile "$LINENO"
17687 then :
17688 xorg_cv_cc_flag_unused_command_line_argument=yes
17689 else $as_nop
17690 xorg_cv_cc_flag_unused_command_line_argument=no
17691 fi
17692 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17693 fi
17694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17695 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17696 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17697 CFLAGS="$xorg_testset_save_CFLAGS"
17698 fi
17699
17700 found="no"
17701
17702 if test $found = "no" ; then
17703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17704 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17705 fi
17706
17707 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17709 fi
17710
17711 CFLAGS="$CFLAGS -Wmissing-braces"
17712
17713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17714 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17715 cacheid=xorg_cv_cc_flag__Wmissing_braces
17716 if eval test \${$cacheid+y}
17717 then :
17718 printf %s "(cached) " >&6
17719 else $as_nop
17720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17721 /* end confdefs.h. */
17722 int i;
17723 int
17724 main (void)
17725 {
17726
17727 ;
17728 return 0;
17729 }
17730 _ACEOF
17731 if ac_fn_c_try_link "$LINENO"
17732 then :
17733 eval $cacheid=yes
17734 else $as_nop
17735 eval $cacheid=no
17736 fi
17737 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17738 conftest$ac_exeext conftest.$ac_ext
17739 fi
17740
17741
17742 CFLAGS="$xorg_testset_save_CFLAGS"
17743
17744 eval supported=\$$cacheid
17745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17746 printf "%s\n" "$supported" >&6; }
17747 if test "$supported" = "yes" ; then
17748 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17749 found="yes"
17750 fi
17751 fi
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767 xorg_testset_save_CFLAGS="$CFLAGS"
17768
17769 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17772 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17773 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17774 then :
17775 printf %s "(cached) " >&6
17776 else $as_nop
17777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17778 /* end confdefs.h. */
17779 int i;
17780 _ACEOF
17781 if ac_fn_c_try_compile "$LINENO"
17782 then :
17783 xorg_cv_cc_flag_unknown_warning_option=yes
17784 else $as_nop
17785 xorg_cv_cc_flag_unknown_warning_option=no
17786 fi
17787 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17788 fi
17789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17790 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17791 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17792 CFLAGS="$xorg_testset_save_CFLAGS"
17793 fi
17794
17795 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17796 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17797 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17798 fi
17799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17801 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17802 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17803 then :
17804 printf %s "(cached) " >&6
17805 else $as_nop
17806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17807 /* end confdefs.h. */
17808 int i;
17809 _ACEOF
17810 if ac_fn_c_try_compile "$LINENO"
17811 then :
17812 xorg_cv_cc_flag_unused_command_line_argument=yes
17813 else $as_nop
17814 xorg_cv_cc_flag_unused_command_line_argument=no
17815 fi
17816 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17817 fi
17818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17819 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17820 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17821 CFLAGS="$xorg_testset_save_CFLAGS"
17822 fi
17823
17824 found="no"
17825
17826 if test $found = "no" ; then
17827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17828 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17829 fi
17830
17831 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17833 fi
17834
17835 CFLAGS="$CFLAGS -Wsequence-point"
17836
17837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17838 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
17839 cacheid=xorg_cv_cc_flag__Wsequence_point
17840 if eval test \${$cacheid+y}
17841 then :
17842 printf %s "(cached) " >&6
17843 else $as_nop
17844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17845 /* end confdefs.h. */
17846 int i;
17847 int
17848 main (void)
17849 {
17850
17851 ;
17852 return 0;
17853 }
17854 _ACEOF
17855 if ac_fn_c_try_link "$LINENO"
17856 then :
17857 eval $cacheid=yes
17858 else $as_nop
17859 eval $cacheid=no
17860 fi
17861 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17862 conftest$ac_exeext conftest.$ac_ext
17863 fi
17864
17865
17866 CFLAGS="$xorg_testset_save_CFLAGS"
17867
17868 eval supported=\$$cacheid
17869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17870 printf "%s\n" "$supported" >&6; }
17871 if test "$supported" = "yes" ; then
17872 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17873 found="yes"
17874 fi
17875 fi
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891 xorg_testset_save_CFLAGS="$CFLAGS"
17892
17893 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17896 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17897 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17898 then :
17899 printf %s "(cached) " >&6
17900 else $as_nop
17901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17902 /* end confdefs.h. */
17903 int i;
17904 _ACEOF
17905 if ac_fn_c_try_compile "$LINENO"
17906 then :
17907 xorg_cv_cc_flag_unknown_warning_option=yes
17908 else $as_nop
17909 xorg_cv_cc_flag_unknown_warning_option=no
17910 fi
17911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17912 fi
17913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17914 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17915 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17916 CFLAGS="$xorg_testset_save_CFLAGS"
17917 fi
17918
17919 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17922 fi
17923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17925 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17926 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17927 then :
17928 printf %s "(cached) " >&6
17929 else $as_nop
17930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17931 /* end confdefs.h. */
17932 int i;
17933 _ACEOF
17934 if ac_fn_c_try_compile "$LINENO"
17935 then :
17936 xorg_cv_cc_flag_unused_command_line_argument=yes
17937 else $as_nop
17938 xorg_cv_cc_flag_unused_command_line_argument=no
17939 fi
17940 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17941 fi
17942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17943 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17944 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17945 CFLAGS="$xorg_testset_save_CFLAGS"
17946 fi
17947
17948 found="no"
17949
17950 if test $found = "no" ; then
17951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17952 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17953 fi
17954
17955 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17957 fi
17958
17959 CFLAGS="$CFLAGS -Wreturn-type"
17960
17961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17962 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
17963 cacheid=xorg_cv_cc_flag__Wreturn_type
17964 if eval test \${$cacheid+y}
17965 then :
17966 printf %s "(cached) " >&6
17967 else $as_nop
17968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17969 /* end confdefs.h. */
17970 int i;
17971 int
17972 main (void)
17973 {
17974
17975 ;
17976 return 0;
17977 }
17978 _ACEOF
17979 if ac_fn_c_try_link "$LINENO"
17980 then :
17981 eval $cacheid=yes
17982 else $as_nop
17983 eval $cacheid=no
17984 fi
17985 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17986 conftest$ac_exeext conftest.$ac_ext
17987 fi
17988
17989
17990 CFLAGS="$xorg_testset_save_CFLAGS"
17991
17992 eval supported=\$$cacheid
17993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17994 printf "%s\n" "$supported" >&6; }
17995 if test "$supported" = "yes" ; then
17996 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17997 found="yes"
17998 fi
17999 fi
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015 xorg_testset_save_CFLAGS="$CFLAGS"
18016
18017 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18020 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18021 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18022 then :
18023 printf %s "(cached) " >&6
18024 else $as_nop
18025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18026 /* end confdefs.h. */
18027 int i;
18028 _ACEOF
18029 if ac_fn_c_try_compile "$LINENO"
18030 then :
18031 xorg_cv_cc_flag_unknown_warning_option=yes
18032 else $as_nop
18033 xorg_cv_cc_flag_unknown_warning_option=no
18034 fi
18035 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18036 fi
18037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18038 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18039 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18040 CFLAGS="$xorg_testset_save_CFLAGS"
18041 fi
18042
18043 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18045 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18046 fi
18047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18049 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18050 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18051 then :
18052 printf %s "(cached) " >&6
18053 else $as_nop
18054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18055 /* end confdefs.h. */
18056 int i;
18057 _ACEOF
18058 if ac_fn_c_try_compile "$LINENO"
18059 then :
18060 xorg_cv_cc_flag_unused_command_line_argument=yes
18061 else $as_nop
18062 xorg_cv_cc_flag_unused_command_line_argument=no
18063 fi
18064 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18065 fi
18066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18067 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18068 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18069 CFLAGS="$xorg_testset_save_CFLAGS"
18070 fi
18071
18072 found="no"
18073
18074 if test $found = "no" ; then
18075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18077 fi
18078
18079 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18081 fi
18082
18083 CFLAGS="$CFLAGS -Wtrigraphs"
18084
18085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
18086 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
18087 cacheid=xorg_cv_cc_flag__Wtrigraphs
18088 if eval test \${$cacheid+y}
18089 then :
18090 printf %s "(cached) " >&6
18091 else $as_nop
18092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18093 /* end confdefs.h. */
18094 int i;
18095 int
18096 main (void)
18097 {
18098
18099 ;
18100 return 0;
18101 }
18102 _ACEOF
18103 if ac_fn_c_try_link "$LINENO"
18104 then :
18105 eval $cacheid=yes
18106 else $as_nop
18107 eval $cacheid=no
18108 fi
18109 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18110 conftest$ac_exeext conftest.$ac_ext
18111 fi
18112
18113
18114 CFLAGS="$xorg_testset_save_CFLAGS"
18115
18116 eval supported=\$$cacheid
18117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18118 printf "%s\n" "$supported" >&6; }
18119 if test "$supported" = "yes" ; then
18120 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
18121 found="yes"
18122 fi
18123 fi
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139 xorg_testset_save_CFLAGS="$CFLAGS"
18140
18141 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18142 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18144 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18145 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18146 then :
18147 printf %s "(cached) " >&6
18148 else $as_nop
18149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18150 /* end confdefs.h. */
18151 int i;
18152 _ACEOF
18153 if ac_fn_c_try_compile "$LINENO"
18154 then :
18155 xorg_cv_cc_flag_unknown_warning_option=yes
18156 else $as_nop
18157 xorg_cv_cc_flag_unknown_warning_option=no
18158 fi
18159 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18160 fi
18161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18162 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18163 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18164 CFLAGS="$xorg_testset_save_CFLAGS"
18165 fi
18166
18167 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18170 fi
18171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18173 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18174 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18175 then :
18176 printf %s "(cached) " >&6
18177 else $as_nop
18178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18179 /* end confdefs.h. */
18180 int i;
18181 _ACEOF
18182 if ac_fn_c_try_compile "$LINENO"
18183 then :
18184 xorg_cv_cc_flag_unused_command_line_argument=yes
18185 else $as_nop
18186 xorg_cv_cc_flag_unused_command_line_argument=no
18187 fi
18188 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18189 fi
18190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18191 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18192 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18193 CFLAGS="$xorg_testset_save_CFLAGS"
18194 fi
18195
18196 found="no"
18197
18198 if test $found = "no" ; then
18199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18201 fi
18202
18203 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18205 fi
18206
18207 CFLAGS="$CFLAGS -Warray-bounds"
18208
18209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18210 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18211 cacheid=xorg_cv_cc_flag__Warray_bounds
18212 if eval test \${$cacheid+y}
18213 then :
18214 printf %s "(cached) " >&6
18215 else $as_nop
18216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18217 /* end confdefs.h. */
18218 int i;
18219 int
18220 main (void)
18221 {
18222
18223 ;
18224 return 0;
18225 }
18226 _ACEOF
18227 if ac_fn_c_try_link "$LINENO"
18228 then :
18229 eval $cacheid=yes
18230 else $as_nop
18231 eval $cacheid=no
18232 fi
18233 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18234 conftest$ac_exeext conftest.$ac_ext
18235 fi
18236
18237
18238 CFLAGS="$xorg_testset_save_CFLAGS"
18239
18240 eval supported=\$$cacheid
18241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18242 printf "%s\n" "$supported" >&6; }
18243 if test "$supported" = "yes" ; then
18244 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18245 found="yes"
18246 fi
18247 fi
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263 xorg_testset_save_CFLAGS="$CFLAGS"
18264
18265 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18266 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18268 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18269 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18270 then :
18271 printf %s "(cached) " >&6
18272 else $as_nop
18273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18274 /* end confdefs.h. */
18275 int i;
18276 _ACEOF
18277 if ac_fn_c_try_compile "$LINENO"
18278 then :
18279 xorg_cv_cc_flag_unknown_warning_option=yes
18280 else $as_nop
18281 xorg_cv_cc_flag_unknown_warning_option=no
18282 fi
18283 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18284 fi
18285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18286 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18287 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18288 CFLAGS="$xorg_testset_save_CFLAGS"
18289 fi
18290
18291 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18294 fi
18295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18297 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18298 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18299 then :
18300 printf %s "(cached) " >&6
18301 else $as_nop
18302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18303 /* end confdefs.h. */
18304 int i;
18305 _ACEOF
18306 if ac_fn_c_try_compile "$LINENO"
18307 then :
18308 xorg_cv_cc_flag_unused_command_line_argument=yes
18309 else $as_nop
18310 xorg_cv_cc_flag_unused_command_line_argument=no
18311 fi
18312 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18313 fi
18314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18315 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18316 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18317 CFLAGS="$xorg_testset_save_CFLAGS"
18318 fi
18319
18320 found="no"
18321
18322 if test $found = "no" ; then
18323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18324 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18325 fi
18326
18327 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18329 fi
18330
18331 CFLAGS="$CFLAGS -Wwrite-strings"
18332
18333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18334 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18335 cacheid=xorg_cv_cc_flag__Wwrite_strings
18336 if eval test \${$cacheid+y}
18337 then :
18338 printf %s "(cached) " >&6
18339 else $as_nop
18340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18341 /* end confdefs.h. */
18342 int i;
18343 int
18344 main (void)
18345 {
18346
18347 ;
18348 return 0;
18349 }
18350 _ACEOF
18351 if ac_fn_c_try_link "$LINENO"
18352 then :
18353 eval $cacheid=yes
18354 else $as_nop
18355 eval $cacheid=no
18356 fi
18357 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18358 conftest$ac_exeext conftest.$ac_ext
18359 fi
18360
18361
18362 CFLAGS="$xorg_testset_save_CFLAGS"
18363
18364 eval supported=\$$cacheid
18365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18366 printf "%s\n" "$supported" >&6; }
18367 if test "$supported" = "yes" ; then
18368 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18369 found="yes"
18370 fi
18371 fi
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387 xorg_testset_save_CFLAGS="$CFLAGS"
18388
18389 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18390 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18392 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18393 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18394 then :
18395 printf %s "(cached) " >&6
18396 else $as_nop
18397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18398 /* end confdefs.h. */
18399 int i;
18400 _ACEOF
18401 if ac_fn_c_try_compile "$LINENO"
18402 then :
18403 xorg_cv_cc_flag_unknown_warning_option=yes
18404 else $as_nop
18405 xorg_cv_cc_flag_unknown_warning_option=no
18406 fi
18407 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18408 fi
18409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18410 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18411 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18412 CFLAGS="$xorg_testset_save_CFLAGS"
18413 fi
18414
18415 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18417 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18418 fi
18419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18421 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18422 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18423 then :
18424 printf %s "(cached) " >&6
18425 else $as_nop
18426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18427 /* end confdefs.h. */
18428 int i;
18429 _ACEOF
18430 if ac_fn_c_try_compile "$LINENO"
18431 then :
18432 xorg_cv_cc_flag_unused_command_line_argument=yes
18433 else $as_nop
18434 xorg_cv_cc_flag_unused_command_line_argument=no
18435 fi
18436 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18437 fi
18438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18439 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18440 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18441 CFLAGS="$xorg_testset_save_CFLAGS"
18442 fi
18443
18444 found="no"
18445
18446 if test $found = "no" ; then
18447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18448 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18449 fi
18450
18451 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18453 fi
18454
18455 CFLAGS="$CFLAGS -Waddress"
18456
18457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18458 printf %s "checking if $CC supports -Waddress... " >&6; }
18459 cacheid=xorg_cv_cc_flag__Waddress
18460 if eval test \${$cacheid+y}
18461 then :
18462 printf %s "(cached) " >&6
18463 else $as_nop
18464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18465 /* end confdefs.h. */
18466 int i;
18467 int
18468 main (void)
18469 {
18470
18471 ;
18472 return 0;
18473 }
18474 _ACEOF
18475 if ac_fn_c_try_link "$LINENO"
18476 then :
18477 eval $cacheid=yes
18478 else $as_nop
18479 eval $cacheid=no
18480 fi
18481 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18482 conftest$ac_exeext conftest.$ac_ext
18483 fi
18484
18485
18486 CFLAGS="$xorg_testset_save_CFLAGS"
18487
18488 eval supported=\$$cacheid
18489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18490 printf "%s\n" "$supported" >&6; }
18491 if test "$supported" = "yes" ; then
18492 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18493 found="yes"
18494 fi
18495 fi
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511 xorg_testset_save_CFLAGS="$CFLAGS"
18512
18513 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18514 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18516 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18517 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18518 then :
18519 printf %s "(cached) " >&6
18520 else $as_nop
18521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18522 /* end confdefs.h. */
18523 int i;
18524 _ACEOF
18525 if ac_fn_c_try_compile "$LINENO"
18526 then :
18527 xorg_cv_cc_flag_unknown_warning_option=yes
18528 else $as_nop
18529 xorg_cv_cc_flag_unknown_warning_option=no
18530 fi
18531 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18532 fi
18533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18534 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18535 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18536 CFLAGS="$xorg_testset_save_CFLAGS"
18537 fi
18538
18539 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18542 fi
18543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18545 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18546 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18547 then :
18548 printf %s "(cached) " >&6
18549 else $as_nop
18550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18551 /* end confdefs.h. */
18552 int i;
18553 _ACEOF
18554 if ac_fn_c_try_compile "$LINENO"
18555 then :
18556 xorg_cv_cc_flag_unused_command_line_argument=yes
18557 else $as_nop
18558 xorg_cv_cc_flag_unused_command_line_argument=no
18559 fi
18560 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18561 fi
18562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18563 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18564 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18565 CFLAGS="$xorg_testset_save_CFLAGS"
18566 fi
18567
18568 found="no"
18569
18570 if test $found = "no" ; then
18571 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18572 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18573 fi
18574
18575 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18577 fi
18578
18579 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18580
18581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18582 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18583 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18584 if eval test \${$cacheid+y}
18585 then :
18586 printf %s "(cached) " >&6
18587 else $as_nop
18588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18589 /* end confdefs.h. */
18590 int i;
18591 int
18592 main (void)
18593 {
18594
18595 ;
18596 return 0;
18597 }
18598 _ACEOF
18599 if ac_fn_c_try_link "$LINENO"
18600 then :
18601 eval $cacheid=yes
18602 else $as_nop
18603 eval $cacheid=no
18604 fi
18605 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18606 conftest$ac_exeext conftest.$ac_ext
18607 fi
18608
18609
18610 CFLAGS="$xorg_testset_save_CFLAGS"
18611
18612 eval supported=\$$cacheid
18613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18614 printf "%s\n" "$supported" >&6; }
18615 if test "$supported" = "yes" ; then
18616 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18617 found="yes"
18618 fi
18619 fi
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635 xorg_testset_save_CFLAGS="$CFLAGS"
18636
18637 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18640 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18641 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18642 then :
18643 printf %s "(cached) " >&6
18644 else $as_nop
18645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18646 /* end confdefs.h. */
18647 int i;
18648 _ACEOF
18649 if ac_fn_c_try_compile "$LINENO"
18650 then :
18651 xorg_cv_cc_flag_unknown_warning_option=yes
18652 else $as_nop
18653 xorg_cv_cc_flag_unknown_warning_option=no
18654 fi
18655 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18656 fi
18657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18658 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18659 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18660 CFLAGS="$xorg_testset_save_CFLAGS"
18661 fi
18662
18663 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18666 fi
18667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18669 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18670 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18671 then :
18672 printf %s "(cached) " >&6
18673 else $as_nop
18674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18675 /* end confdefs.h. */
18676 int i;
18677 _ACEOF
18678 if ac_fn_c_try_compile "$LINENO"
18679 then :
18680 xorg_cv_cc_flag_unused_command_line_argument=yes
18681 else $as_nop
18682 xorg_cv_cc_flag_unused_command_line_argument=no
18683 fi
18684 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18685 fi
18686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18687 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18688 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18689 CFLAGS="$xorg_testset_save_CFLAGS"
18690 fi
18691
18692 found="no"
18693
18694 if test $found = "no" ; then
18695 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18696 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18697 fi
18698
18699 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18701 fi
18702
18703 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18704
18705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18706 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18707 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18708 if eval test \${$cacheid+y}
18709 then :
18710 printf %s "(cached) " >&6
18711 else $as_nop
18712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18713 /* end confdefs.h. */
18714 int i;
18715 int
18716 main (void)
18717 {
18718
18719 ;
18720 return 0;
18721 }
18722 _ACEOF
18723 if ac_fn_c_try_link "$LINENO"
18724 then :
18725 eval $cacheid=yes
18726 else $as_nop
18727 eval $cacheid=no
18728 fi
18729 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18730 conftest$ac_exeext conftest.$ac_ext
18731 fi
18732
18733
18734 CFLAGS="$xorg_testset_save_CFLAGS"
18735
18736 eval supported=\$$cacheid
18737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18738 printf "%s\n" "$supported" >&6; }
18739 if test "$supported" = "yes" ; then
18740 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18741 found="yes"
18742 fi
18743 fi
18744
18745
18746 fi
18747
18748
18749
18750
18751
18752
18753
18754 CWARNFLAGS="$BASE_CFLAGS"
18755 if test "x$GCC" = xyes ; then
18756 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18757 fi
18758
18759
18760
18761
18762
18763
18764
18765
18766 # Check whether --enable-strict-compilation was given.
18767 if test ${enable_strict_compilation+y}
18768 then :
18769 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18770 else $as_nop
18771 STRICT_COMPILE=no
18772 fi
18773
18774
18775
18776
18777
18778
18779 STRICT_CFLAGS=""
18780
18781
18782
18783
18784
18785
18786
18787
18788
18789
18790
18791
18792
18793 xorg_testset_save_CFLAGS="$CFLAGS"
18794
18795 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18798 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18799 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18800 then :
18801 printf %s "(cached) " >&6
18802 else $as_nop
18803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18804 /* end confdefs.h. */
18805 int i;
18806 _ACEOF
18807 if ac_fn_c_try_compile "$LINENO"
18808 then :
18809 xorg_cv_cc_flag_unknown_warning_option=yes
18810 else $as_nop
18811 xorg_cv_cc_flag_unknown_warning_option=no
18812 fi
18813 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18814 fi
18815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18816 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18817 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18818 CFLAGS="$xorg_testset_save_CFLAGS"
18819 fi
18820
18821 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18824 fi
18825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18827 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18828 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18829 then :
18830 printf %s "(cached) " >&6
18831 else $as_nop
18832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18833 /* end confdefs.h. */
18834 int i;
18835 _ACEOF
18836 if ac_fn_c_try_compile "$LINENO"
18837 then :
18838 xorg_cv_cc_flag_unused_command_line_argument=yes
18839 else $as_nop
18840 xorg_cv_cc_flag_unused_command_line_argument=no
18841 fi
18842 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18843 fi
18844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18845 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18846 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18847 CFLAGS="$xorg_testset_save_CFLAGS"
18848 fi
18849
18850 found="no"
18851
18852 if test $found = "no" ; then
18853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18855 fi
18856
18857 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18859 fi
18860
18861 CFLAGS="$CFLAGS -pedantic"
18862
18863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18864 printf %s "checking if $CC supports -pedantic... " >&6; }
18865 cacheid=xorg_cv_cc_flag__pedantic
18866 if eval test \${$cacheid+y}
18867 then :
18868 printf %s "(cached) " >&6
18869 else $as_nop
18870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18871 /* end confdefs.h. */
18872 int i;
18873 int
18874 main (void)
18875 {
18876
18877 ;
18878 return 0;
18879 }
18880 _ACEOF
18881 if ac_fn_c_try_link "$LINENO"
18882 then :
18883 eval $cacheid=yes
18884 else $as_nop
18885 eval $cacheid=no
18886 fi
18887 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18888 conftest$ac_exeext conftest.$ac_ext
18889 fi
18890
18891
18892 CFLAGS="$xorg_testset_save_CFLAGS"
18893
18894 eval supported=\$$cacheid
18895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18896 printf "%s\n" "$supported" >&6; }
18897 if test "$supported" = "yes" ; then
18898 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18899 found="yes"
18900 fi
18901 fi
18902
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917 xorg_testset_save_CFLAGS="$CFLAGS"
18918
18919 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18922 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18923 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18924 then :
18925 printf %s "(cached) " >&6
18926 else $as_nop
18927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18928 /* end confdefs.h. */
18929 int i;
18930 _ACEOF
18931 if ac_fn_c_try_compile "$LINENO"
18932 then :
18933 xorg_cv_cc_flag_unknown_warning_option=yes
18934 else $as_nop
18935 xorg_cv_cc_flag_unknown_warning_option=no
18936 fi
18937 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18938 fi
18939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18940 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18941 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18942 CFLAGS="$xorg_testset_save_CFLAGS"
18943 fi
18944
18945 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18948 fi
18949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18951 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18952 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18953 then :
18954 printf %s "(cached) " >&6
18955 else $as_nop
18956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18957 /* end confdefs.h. */
18958 int i;
18959 _ACEOF
18960 if ac_fn_c_try_compile "$LINENO"
18961 then :
18962 xorg_cv_cc_flag_unused_command_line_argument=yes
18963 else $as_nop
18964 xorg_cv_cc_flag_unused_command_line_argument=no
18965 fi
18966 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18967 fi
18968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18969 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18970 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18971 CFLAGS="$xorg_testset_save_CFLAGS"
18972 fi
18973
18974 found="no"
18975
18976 if test $found = "no" ; then
18977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18979 fi
18980
18981 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18983 fi
18984
18985 CFLAGS="$CFLAGS -Werror"
18986
18987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18988 printf %s "checking if $CC supports -Werror... " >&6; }
18989 cacheid=xorg_cv_cc_flag__Werror
18990 if eval test \${$cacheid+y}
18991 then :
18992 printf %s "(cached) " >&6
18993 else $as_nop
18994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18995 /* end confdefs.h. */
18996 int i;
18997 int
18998 main (void)
18999 {
19000
19001 ;
19002 return 0;
19003 }
19004 _ACEOF
19005 if ac_fn_c_try_link "$LINENO"
19006 then :
19007 eval $cacheid=yes
19008 else $as_nop
19009 eval $cacheid=no
19010 fi
19011 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19012 conftest$ac_exeext conftest.$ac_ext
19013 fi
19014
19015
19016 CFLAGS="$xorg_testset_save_CFLAGS"
19017
19018 eval supported=\$$cacheid
19019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19020 printf "%s\n" "$supported" >&6; }
19021 if test "$supported" = "yes" ; then
19022 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
19023 found="yes"
19024 fi
19025 fi
19026
19027 if test $found = "no" ; then
19028 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19029 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19030 fi
19031
19032 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19034 fi
19035
19036 CFLAGS="$CFLAGS -errwarn"
19037
19038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
19039 printf %s "checking if $CC supports -errwarn... " >&6; }
19040 cacheid=xorg_cv_cc_flag__errwarn
19041 if eval test \${$cacheid+y}
19042 then :
19043 printf %s "(cached) " >&6
19044 else $as_nop
19045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19046 /* end confdefs.h. */
19047 int i;
19048 int
19049 main (void)
19050 {
19051
19052 ;
19053 return 0;
19054 }
19055 _ACEOF
19056 if ac_fn_c_try_link "$LINENO"
19057 then :
19058 eval $cacheid=yes
19059 else $as_nop
19060 eval $cacheid=no
19061 fi
19062 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19063 conftest$ac_exeext conftest.$ac_ext
19064 fi
19065
19066
19067 CFLAGS="$xorg_testset_save_CFLAGS"
19068
19069 eval supported=\$$cacheid
19070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19071 printf "%s\n" "$supported" >&6; }
19072 if test "$supported" = "yes" ; then
19073 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
19074 found="yes"
19075 fi
19076 fi
19077
19078
19079
19080 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
19081 # activate it with -Werror, so we add it here explicitly.
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094
19095 xorg_testset_save_CFLAGS="$CFLAGS"
19096
19097 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19098 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19100 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19101 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19102 then :
19103 printf %s "(cached) " >&6
19104 else $as_nop
19105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19106 /* end confdefs.h. */
19107 int i;
19108 _ACEOF
19109 if ac_fn_c_try_compile "$LINENO"
19110 then :
19111 xorg_cv_cc_flag_unknown_warning_option=yes
19112 else $as_nop
19113 xorg_cv_cc_flag_unknown_warning_option=no
19114 fi
19115 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19116 fi
19117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19118 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19119 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19120 CFLAGS="$xorg_testset_save_CFLAGS"
19121 fi
19122
19123 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19125 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19126 fi
19127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19129 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19130 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19131 then :
19132 printf %s "(cached) " >&6
19133 else $as_nop
19134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19135 /* end confdefs.h. */
19136 int i;
19137 _ACEOF
19138 if ac_fn_c_try_compile "$LINENO"
19139 then :
19140 xorg_cv_cc_flag_unused_command_line_argument=yes
19141 else $as_nop
19142 xorg_cv_cc_flag_unused_command_line_argument=no
19143 fi
19144 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19145 fi
19146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19147 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19148 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19149 CFLAGS="$xorg_testset_save_CFLAGS"
19150 fi
19151
19152 found="no"
19153
19154 if test $found = "no" ; then
19155 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19156 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19157 fi
19158
19159 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19161 fi
19162
19163 CFLAGS="$CFLAGS -Werror=attributes"
19164
19165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19166 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19167 cacheid=xorg_cv_cc_flag__Werror_attributes
19168 if eval test \${$cacheid+y}
19169 then :
19170 printf %s "(cached) " >&6
19171 else $as_nop
19172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19173 /* end confdefs.h. */
19174 int i;
19175 int
19176 main (void)
19177 {
19178
19179 ;
19180 return 0;
19181 }
19182 _ACEOF
19183 if ac_fn_c_try_link "$LINENO"
19184 then :
19185 eval $cacheid=yes
19186 else $as_nop
19187 eval $cacheid=no
19188 fi
19189 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19190 conftest$ac_exeext conftest.$ac_ext
19191 fi
19192
19193
19194 CFLAGS="$xorg_testset_save_CFLAGS"
19195
19196 eval supported=\$$cacheid
19197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19198 printf "%s\n" "$supported" >&6; }
19199 if test "$supported" = "yes" ; then
19200 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19201 found="yes"
19202 fi
19203 fi
19204
19205
19206
19207 if test "x$STRICT_COMPILE" = "xyes"; then
19208 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19209 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19210 fi
19211
19212
19213
19214
19215
19216
19217 cat >>confdefs.h <<_ACEOF
19218 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19219 _ACEOF
19220
19221 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19222 if test "x$PVM" = "x"; then
19223 PVM="0"
19224 fi
19225
19226 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19227
19228 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19229 if test "x$PVP" = "x"; then
19230 PVP="0"
19231 fi
19232
19233 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19234
19235
19236
19237 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19238 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19239 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19240 touch \$(top_srcdir)/ChangeLog; \
19241 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19242
19243
19244
19245
19246 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19247 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19248 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19249 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19250 touch \$(top_srcdir)/INSTALL; \
19251 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19252
19253
19254
19255
19256
19257
19258 case $host_os in
19259 solaris*)
19260 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19261 # check for a man page file found in later versions that use
19262 # traditional section numbers instead
19263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19264 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19265 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19266 then :
19267 printf %s "(cached) " >&6
19268 else $as_nop
19269 test "$cross_compiling" = yes &&
19270 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19271 if test -r "/usr/share/man/man7/attributes.7"; then
19272 ac_cv_file__usr_share_man_man7_attributes_7=yes
19273 else
19274 ac_cv_file__usr_share_man_man7_attributes_7=no
19275 fi
19276 fi
19277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19278 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19279 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19280 then :
19281 SYSV_MAN_SECTIONS=false
19282 else $as_nop
19283 SYSV_MAN_SECTIONS=true
19284 fi
19285
19286 ;;
19287 *) SYSV_MAN_SECTIONS=false ;;
19288 esac
19289
19290 if test x$APP_MAN_SUFFIX = x ; then
19291 APP_MAN_SUFFIX=1
19292 fi
19293 if test x$APP_MAN_DIR = x ; then
19294 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19295 fi
19296
19297 if test x$LIB_MAN_SUFFIX = x ; then
19298 LIB_MAN_SUFFIX=3
19299 fi
19300 if test x$LIB_MAN_DIR = x ; then
19301 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19302 fi
19303
19304 if test x$FILE_MAN_SUFFIX = x ; then
19305 case $SYSV_MAN_SECTIONS in
19306 true) FILE_MAN_SUFFIX=4 ;;
19307 *) FILE_MAN_SUFFIX=5 ;;
19308 esac
19309 fi
19310 if test x$FILE_MAN_DIR = x ; then
19311 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19312 fi
19313
19314 if test x$MISC_MAN_SUFFIX = x ; then
19315 case $SYSV_MAN_SECTIONS in
19316 true) MISC_MAN_SUFFIX=5 ;;
19317 *) MISC_MAN_SUFFIX=7 ;;
19318 esac
19319 fi
19320 if test x$MISC_MAN_DIR = x ; then
19321 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19322 fi
19323
19324 if test x$DRIVER_MAN_SUFFIX = x ; then
19325 case $SYSV_MAN_SECTIONS in
19326 true) DRIVER_MAN_SUFFIX=7 ;;
19327 *) DRIVER_MAN_SUFFIX=4 ;;
19328 esac
19329 fi
19330 if test x$DRIVER_MAN_DIR = x ; then
19331 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19332 fi
19333
19334 if test x$ADMIN_MAN_SUFFIX = x ; then
19335 case $SYSV_MAN_SECTIONS in
19336 true) ADMIN_MAN_SUFFIX=1m ;;
19337 *) ADMIN_MAN_SUFFIX=8 ;;
19338 esac
19339 fi
19340 if test x$ADMIN_MAN_DIR = x ; then
19341 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19342 fi
19343
19344
19345
19346
19347
19348
19349
19350
19351
19352
19353
19354
19355
19356
19357
19358 XORG_MAN_PAGE="X Version 11"
19359
19360 MAN_SUBSTS="\
19361 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19362 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19363 -e 's|__xservername__|Xorg|g' \
19364 -e 's|__xconfigfile__|xorg.conf|g' \
19365 -e 's|__projectroot__|\$(prefix)|g' \
19366 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
19367 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19368 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19369 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19370 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19371 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19372 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19373
19374
19375
19376 # Check whether --enable-silent-rules was given.
19377 if test ${enable_silent_rules+y}
19378 then :
19379 enableval=$enable_silent_rules;
19380 fi
19381
19382 case $enable_silent_rules in # (((
19383 yes) AM_DEFAULT_VERBOSITY=0;;
19384 no) AM_DEFAULT_VERBOSITY=1;;
19385 *) AM_DEFAULT_VERBOSITY=0;;
19386 esac
19387 am_make=${MAKE-make}
19388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19389 printf %s "checking whether $am_make supports nested variables... " >&6; }
19390 if test ${am_cv_make_support_nested_variables+y}
19391 then :
19392 printf %s "(cached) " >&6
19393 else $as_nop
19394 if printf "%s\n" 'TRUE=$(BAR$(V))
19395 BAR0=false
19396 BAR1=true
19397 V=1
19398 am__doit:
19399 @$(TRUE)
19400 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19401 am_cv_make_support_nested_variables=yes
19402 else
19403 am_cv_make_support_nested_variables=no
19404 fi
19405 fi
19406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19407 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19408 if test $am_cv_make_support_nested_variables = yes; then
19409 AM_V='$(V)'
19410 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19411 else
19412 AM_V=$AM_DEFAULT_VERBOSITY
19413 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19414 fi
19415 AM_BACKSLASH='\'
19416
19417
19418
19419
19420 # Check whether --enable-devel-docs was given.
19421 if test ${enable_devel_docs+y}
19422 then :
19423 enableval=$enable_devel_docs; build_devel_docs=$enableval
19424 else $as_nop
19425 build_devel_docs=yes
19426 fi
19427
19428
19429 if test x$build_devel_docs = xyes; then
19430 ENABLE_DEVEL_DOCS_TRUE=
19431 ENABLE_DEVEL_DOCS_FALSE='#'
19432 else
19433 ENABLE_DEVEL_DOCS_TRUE='#'
19434 ENABLE_DEVEL_DOCS_FALSE=
19435 fi
19436
19437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5
19438 printf %s "checking whether to build developer documentation... " >&6; }
19439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5
19440 printf "%s\n" "$build_devel_docs" >&6; }
19441
19442
19443
19444
19445
19446
19447 # Check whether --with-doxygen was given.
19448 if test ${with_doxygen+y}
19449 then :
19450 withval=$with_doxygen; use_doxygen=$withval
19451 else $as_nop
19452 use_doxygen=auto
19453 fi
19454
19455
19456
19457 if test "x$use_doxygen" = x"auto"; then
19458 # Extract the first word of "doxygen", so it can be a program name with args.
19459 set dummy doxygen; ac_word=$2
19460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19461 printf %s "checking for $ac_word... " >&6; }
19462 if test ${ac_cv_path_DOXYGEN+y}
19463 then :
19464 printf %s "(cached) " >&6
19465 else $as_nop
19466 case $DOXYGEN in
19467 [\\/]* | ?:[\\/]*)
19468 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
19469 ;;
19470 *)
19471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19472 for as_dir in $PATH
19473 do
19474 IFS=$as_save_IFS
19475 case $as_dir in #(((
19476 '') as_dir=./ ;;
19477 */) ;;
19478 *) as_dir=$as_dir/ ;;
19479 esac
19480 for ac_exec_ext in '' $ac_executable_extensions; do
19481 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19482 ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
19483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19484 break 2
19485 fi
19486 done
19487 done
19488 IFS=$as_save_IFS
19489
19490 ;;
19491 esac
19492 fi
19493 DOXYGEN=$ac_cv_path_DOXYGEN
19494 if test -n "$DOXYGEN"; then
19495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
19496 printf "%s\n" "$DOXYGEN" >&6; }
19497 else
19498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19499 printf "%s\n" "no" >&6; }
19500 fi
19501
19502
19503 if test "x$DOXYGEN" = "x"; then
19504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5
19505 printf "%s\n" "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;}
19506 have_doxygen=no
19507 else
19508 have_doxygen=yes
19509 fi
19510 elif test "x$use_doxygen" = x"yes" ; then
19511 # Extract the first word of "doxygen", so it can be a program name with args.
19512 set dummy doxygen; ac_word=$2
19513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19514 printf %s "checking for $ac_word... " >&6; }
19515 if test ${ac_cv_path_DOXYGEN+y}
19516 then :
19517 printf %s "(cached) " >&6
19518 else $as_nop
19519 case $DOXYGEN in
19520 [\\/]* | ?:[\\/]*)
19521 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
19522 ;;
19523 *)
19524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19525 for as_dir in $PATH
19526 do
19527 IFS=$as_save_IFS
19528 case $as_dir in #(((
19529 '') as_dir=./ ;;
19530 */) ;;
19531 *) as_dir=$as_dir/ ;;
19532 esac
19533 for ac_exec_ext in '' $ac_executable_extensions; do
19534 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19535 ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
19536 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19537 break 2
19538 fi
19539 done
19540 done
19541 IFS=$as_save_IFS
19542
19543 ;;
19544 esac
19545 fi
19546 DOXYGEN=$ac_cv_path_DOXYGEN
19547 if test -n "$DOXYGEN"; then
19548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
19549 printf "%s\n" "$DOXYGEN" >&6; }
19550 else
19551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19552 printf "%s\n" "no" >&6; }
19553 fi
19554
19555
19556 if test "x$DOXYGEN" = "x"; then
19557 as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5
19558 fi
19559 have_doxygen=yes
19560 elif test "x$use_doxygen" = x"no" ; then
19561 if test "x$DOXYGEN" != "x"; then
19562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5
19563 printf "%s\n" "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;}
19564 fi
19565 have_doxygen=no
19566 else
19567 as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5
19568 fi
19569
19570
19571 HAVE_DOT=no
19572 if test "x$have_doxygen" = "xyes"; then
19573 # Extract the first word of "dot", so it can be a program name with args.
19574 set dummy dot; ac_word=$2
19575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19576 printf %s "checking for $ac_word... " >&6; }
19577 if test ${ac_cv_path_DOT+y}
19578 then :
19579 printf %s "(cached) " >&6
19580 else $as_nop
19581 case $DOT in
19582 [\\/]* | ?:[\\/]*)
19583 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
19584 ;;
19585 *)
19586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19587 for as_dir in $PATH
19588 do
19589 IFS=$as_save_IFS
19590 case $as_dir in #(((
19591 '') as_dir=./ ;;
19592 */) ;;
19593 *) as_dir=$as_dir/ ;;
19594 esac
19595 for ac_exec_ext in '' $ac_executable_extensions; do
19596 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19597 ac_cv_path_DOT="$as_dir$ac_word$ac_exec_ext"
19598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19599 break 2
19600 fi
19601 done
19602 done
19603 IFS=$as_save_IFS
19604
19605 ;;
19606 esac
19607 fi
19608 DOT=$ac_cv_path_DOT
19609 if test -n "$DOT"; then
19610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
19611 printf "%s\n" "$DOT" >&6; }
19612 else
19613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19614 printf "%s\n" "no" >&6; }
19615 fi
19616
19617
19618 if test "x$DOT" != "x"; then
19619 HAVE_DOT=yes
19620 fi
19621 fi
19622
19623
19624 if test "$HAVE_DOT" = "yes"; then
19625 HAVE_DOT_TRUE=
19626 HAVE_DOT_FALSE='#'
19627 else
19628 HAVE_DOT_TRUE='#'
19629 HAVE_DOT_FALSE=
19630 fi
19631
19632 if test "$have_doxygen" = yes; then
19633 HAVE_DOXYGEN_TRUE=
19634 HAVE_DOXYGEN_FALSE='#'
19635 else
19636 HAVE_DOXYGEN_TRUE='#'
19637 HAVE_DOXYGEN_FALSE=
19638 fi
19639
19640
19641
19642
19643 ac_func=
19644 for ac_item in $ac_func_c_list
19645 do
19646 if test $ac_func; then
19647 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
19648 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
19649 echo "#define $ac_item 1" >> confdefs.h
19650 fi
19651 ac_func=
19652 else
19653 ac_func=$ac_item
19654 fi
19655 done
19656
19657
19658 ac_config_files="$ac_config_files Makefile src/Makefile xcb-atom.pc xcb-aux.pc xcb-event.pc xcb-util.pc"
19659
19660 cat >confcache <<\_ACEOF
19661 # This file is a shell script that caches the results of configure
19662 # tests run on this system so they can be shared between configure
19663 # scripts and configure runs, see configure's option --config-cache.
19664 # It is not useful on other systems. If it contains results you don't
19665 # want to keep, you may remove or edit it.
19666 #
19667 # config.status only pays attention to the cache file if you give it
19668 # the --recheck option to rerun configure.
19669 #
19670 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19671 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19672 # following values.
19673
19674 _ACEOF
19675
19676 # The following way of writing the cache mishandles newlines in values,
19677 # but we know of no workaround that is simple, portable, and efficient.
19678 # So, we kill variables containing newlines.
19679 # Ultrix sh set writes to stderr and can't be redirected directly,
19680 # and sets the high bit in the cache file unless we assign to the vars.
19681 (
19682 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19683 eval ac_val=\$$ac_var
19684 case $ac_val in #(
19685 *${as_nl}*)
19686 case $ac_var in #(
19687 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19688 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19689 esac
19690 case $ac_var in #(
19691 _ | IFS | as_nl) ;; #(
19692 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19693 *) { eval $ac_var=; unset $ac_var;} ;;
19694 esac ;;
19695 esac
19696 done
19697
19698 (set) 2>&1 |
19699 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19700 *${as_nl}ac_space=\ *)
19701 # `set' does not quote correctly, so add quotes: double-quote
19702 # substitution turns \\\\ into \\, and sed turns \\ into \.
19703 sed -n \
19704 "s/'/'\\\\''/g;
19705 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19706 ;; #(
19707 *)
19708 # `set' quotes correctly as required by POSIX, so do not add quotes.
19709 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19710 ;;
19711 esac |
19712 sort
19713 ) |
19714 sed '
19715 /^ac_cv_env_/b end
19716 t clear
19717 :clear
19718 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19719 t end
19720 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19721 :end' >>confcache
19722 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19723 if test -w "$cache_file"; then
19724 if test "x$cache_file" != "x/dev/null"; then
19725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19726 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19727 if test ! -f "$cache_file" || test -h "$cache_file"; then
19728 cat confcache >"$cache_file"
19729 else
19730 case $cache_file in #(
19731 */* | ?:*)
19732 mv -f confcache "$cache_file"$$ &&
19733 mv -f "$cache_file"$$ "$cache_file" ;; #(
19734 *)
19735 mv -f confcache "$cache_file" ;;
19736 esac
19737 fi
19738 fi
19739 else
19740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19741 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19742 fi
19743 fi
19744 rm -f confcache
19745
19746 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19747 # Let make expand exec_prefix.
19748 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19749
19750 DEFS=-DHAVE_CONFIG_H
19751
19752 ac_libobjs=
19753 ac_ltlibobjs=
19754 U=
19755 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19756 # 1. Remove the extension, and $U if already installed.
19757 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19758 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19759 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19760 # will be set to the directory where LIBOBJS objects are built.
19761 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19762 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19763 done
19764 LIBOBJS=$ac_libobjs
19765
19766 LTLIBOBJS=$ac_ltlibobjs
19767
19768
19769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19770 printf %s "checking that generated files are newer than configure... " >&6; }
19771 if test -n "$am_sleep_pid"; then
19772 # Hide warnings about reused PIDs.
19773 wait $am_sleep_pid 2>/dev/null
19774 fi
19775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19776 printf "%s\n" "done" >&6; }
19777 if test -n "$EXEEXT"; then
19778 am__EXEEXT_TRUE=
19779 am__EXEEXT_FALSE='#'
19780 else
19781 am__EXEEXT_TRUE='#'
19782 am__EXEEXT_FALSE=
19783 fi
19784
19785 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19786 as_fn_error $? "conditional \"AMDEP\" was never defined.
19787 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19788 fi
19789 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19790 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19791 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19792 fi
19793 if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then
19794 as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined.
19795 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19796 fi
19797 if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then
19798 as_fn_error $? "conditional \"HAVE_DOT\" was never defined.
19799 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19800 fi
19801 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
19802 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
19803 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19804 fi
19805
19806 : "${CONFIG_STATUS=./config.status}"
19807 ac_write_fail=0
19808 ac_clean_files_save=$ac_clean_files
19809 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19811 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19812 as_write_fail=0
19813 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19814 #! $SHELL
19815 # Generated by $as_me.
19816 # Run this file to recreate the current configuration.
19817 # Compiler output produced by configure, useful for debugging
19818 # configure, is in config.log if it exists.
19819
19820 debug=false
19821 ac_cs_recheck=false
19822 ac_cs_silent=false
19823
19824 SHELL=\${CONFIG_SHELL-$SHELL}
19825 export SHELL
19826 _ASEOF
19827 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19828 ## -------------------- ##
19829 ## M4sh Initialization. ##
19830 ## -------------------- ##
19831
19832 # Be more Bourne compatible
19833 DUALCASE=1; export DUALCASE # for MKS sh
19834 as_nop=:
19835 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19836 then :
19837 emulate sh
19838 NULLCMD=:
19839 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19840 # is contrary to our usage. Disable this feature.
19841 alias -g '${1+"$@"}'='"$@"'
19842 setopt NO_GLOB_SUBST
19843 else $as_nop
19844 case `(set -o) 2>/dev/null` in #(
19845 *posix*) :
19846 set -o posix ;; #(
19847 *) :
19848 ;;
19849 esac
19850 fi
19851
19852
19853
19854 # Reset variables that may have inherited troublesome values from
19855 # the environment.
19856
19857 # IFS needs to be set, to space, tab, and newline, in precisely that order.
19858 # (If _AS_PATH_WALK were called with IFS unset, it would have the
19859 # side effect of setting IFS to empty, thus disabling word splitting.)
19860 # Quoting is to prevent editors from complaining about space-tab.
19861 as_nl='
19862 '
19863 export as_nl
19864 IFS=" "" $as_nl"
19865
19866 PS1='$ '
19867 PS2='> '
19868 PS4='+ '
19869
19870 # Ensure predictable behavior from utilities with locale-dependent output.
19871 LC_ALL=C
19872 export LC_ALL
19873 LANGUAGE=C
19874 export LANGUAGE
19875
19876 # We cannot yet rely on "unset" to work, but we need these variables
19877 # to be unset--not just set to an empty or harmless value--now, to
19878 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
19879 # also avoids known problems related to "unset" and subshell syntax
19880 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19881 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19882 do eval test \${$as_var+y} \
19883 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19884 done
19885
19886 # Ensure that fds 0, 1, and 2 are open.
19887 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19888 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19889 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
19890
19891 # The user is always right.
19892 if ${PATH_SEPARATOR+false} :; then
19893 PATH_SEPARATOR=:
19894 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19895 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19896 PATH_SEPARATOR=';'
19897 }
19898 fi
19899
19900
19901 # Find who we are. Look in the path if we contain no directory separator.
19902 as_myself=
19903 case $0 in #((
19904 *[\\/]* ) as_myself=$0 ;;
19905 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19906 for as_dir in $PATH
19907 do
19908 IFS=$as_save_IFS
19909 case $as_dir in #(((
19910 '') as_dir=./ ;;
19911 */) ;;
19912 *) as_dir=$as_dir/ ;;
19913 esac
19914 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19915 done
19916 IFS=$as_save_IFS
19917
19918 ;;
19919 esac
19920 # We did not find ourselves, most probably we were run as `sh COMMAND'
19921 # in which case we are not to be found in the path.
19922 if test "x$as_myself" = x; then
19923 as_myself=$0
19924 fi
19925 if test ! -f "$as_myself"; then
19926 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19927 exit 1
19928 fi
19929
19930
19931
19932 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19933 # ----------------------------------------
19934 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19935 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19936 # script with STATUS, using 1 if that was 0.
19937 as_fn_error ()
19938 {
19939 as_status=$1; test $as_status -eq 0 && as_status=1
19940 if test "$4"; then
19941 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19943 fi
19944 printf "%s\n" "$as_me: error: $2" >&2
19945 as_fn_exit $as_status
19946 } # as_fn_error
19947
19948
19949
19950 # as_fn_set_status STATUS
19951 # -----------------------
19952 # Set $? to STATUS, without forking.
19953 as_fn_set_status ()
19954 {
19955 return $1
19956 } # as_fn_set_status
19957
19958 # as_fn_exit STATUS
19959 # -----------------
19960 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19961 as_fn_exit ()
19962 {
19963 set +e
19964 as_fn_set_status $1
19965 exit $1
19966 } # as_fn_exit
19967
19968 # as_fn_unset VAR
19969 # ---------------
19970 # Portably unset VAR.
19971 as_fn_unset ()
19972 {
19973 { eval $1=; unset $1;}
19974 }
19975 as_unset=as_fn_unset
19976
19977 # as_fn_append VAR VALUE
19978 # ----------------------
19979 # Append the text in VALUE to the end of the definition contained in VAR. Take
19980 # advantage of any shell optimizations that allow amortized linear growth over
19981 # repeated appends, instead of the typical quadratic growth present in naive
19982 # implementations.
19983 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19984 then :
19985 eval 'as_fn_append ()
19986 {
19987 eval $1+=\$2
19988 }'
19989 else $as_nop
19990 as_fn_append ()
19991 {
19992 eval $1=\$$1\$2
19993 }
19994 fi # as_fn_append
19995
19996 # as_fn_arith ARG...
19997 # ------------------
19998 # Perform arithmetic evaluation on the ARGs, and store the result in the
19999 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20000 # must be portable across $(()) and expr.
20001 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20002 then :
20003 eval 'as_fn_arith ()
20004 {
20005 as_val=$(( $* ))
20006 }'
20007 else $as_nop
20008 as_fn_arith ()
20009 {
20010 as_val=`expr "$@" || test $? -eq 1`
20011 }
20012 fi # as_fn_arith
20013
20014
20015 if expr a : '\(a\)' >/dev/null 2>&1 &&
20016 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20017 as_expr=expr
20018 else
20019 as_expr=false
20020 fi
20021
20022 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20023 as_basename=basename
20024 else
20025 as_basename=false
20026 fi
20027
20028 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20029 as_dirname=dirname
20030 else
20031 as_dirname=false
20032 fi
20033
20034 as_me=`$as_basename -- "$0" ||
20035 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20036 X"$0" : 'X\(//\)$' \| \
20037 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20038 printf "%s\n" X/"$0" |
20039 sed '/^.*\/\([^/][^/]*\)\/*$/{
20040 s//\1/
20041 q
20042 }
20043 /^X\/\(\/\/\)$/{
20044 s//\1/
20045 q
20046 }
20047 /^X\/\(\/\).*/{
20048 s//\1/
20049 q
20050 }
20051 s/.*/./; q'`
20052
20053 # Avoid depending upon Character Ranges.
20054 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20055 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20056 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20057 as_cr_digits='0123456789'
20058 as_cr_alnum=$as_cr_Letters$as_cr_digits
20059
20060
20061 # Determine whether it's possible to make 'echo' print without a newline.
20062 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20063 # for compatibility with existing Makefiles.
20064 ECHO_C= ECHO_N= ECHO_T=
20065 case `echo -n x` in #(((((
20066 -n*)
20067 case `echo 'xy\c'` in
20068 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20069 xy) ECHO_C='\c';;
20070 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20071 ECHO_T=' ';;
20072 esac;;
20073 *)
20074 ECHO_N='-n';;
20075 esac
20076
20077 # For backward compatibility with old third-party macros, we provide
20078 # the shell variables $as_echo and $as_echo_n. New code should use
20079 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20080 as_echo='printf %s\n'
20081 as_echo_n='printf %s'
20082
20083 rm -f conf$$ conf$$.exe conf$$.file
20084 if test -d conf$$.dir; then
20085 rm -f conf$$.dir/conf$$.file
20086 else
20087 rm -f conf$$.dir
20088 mkdir conf$$.dir 2>/dev/null
20089 fi
20090 if (echo >conf$$.file) 2>/dev/null; then
20091 if ln -s conf$$.file conf$$ 2>/dev/null; then
20092 as_ln_s='ln -s'
20093 # ... but there are two gotchas:
20094 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20095 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20096 # In both cases, we have to default to `cp -pR'.
20097 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20098 as_ln_s='cp -pR'
20099 elif ln conf$$.file conf$$ 2>/dev/null; then
20100 as_ln_s=ln
20101 else
20102 as_ln_s='cp -pR'
20103 fi
20104 else
20105 as_ln_s='cp -pR'
20106 fi
20107 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20108 rmdir conf$$.dir 2>/dev/null
20109
20110
20111 # as_fn_mkdir_p
20112 # -------------
20113 # Create "$as_dir" as a directory, including parents if necessary.
20114 as_fn_mkdir_p ()
20115 {
20116
20117 case $as_dir in #(
20118 -*) as_dir=./$as_dir;;
20119 esac
20120 test -d "$as_dir" || eval $as_mkdir_p || {
20121 as_dirs=
20122 while :; do
20123 case $as_dir in #(
20124 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20125 *) as_qdir=$as_dir;;
20126 esac
20127 as_dirs="'$as_qdir' $as_dirs"
20128 as_dir=`$as_dirname -- "$as_dir" ||
20129 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20130 X"$as_dir" : 'X\(//\)[^/]' \| \
20131 X"$as_dir" : 'X\(//\)$' \| \
20132 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20133 printf "%s\n" X"$as_dir" |
20134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20135 s//\1/
20136 q
20137 }
20138 /^X\(\/\/\)[^/].*/{
20139 s//\1/
20140 q
20141 }
20142 /^X\(\/\/\)$/{
20143 s//\1/
20144 q
20145 }
20146 /^X\(\/\).*/{
20147 s//\1/
20148 q
20149 }
20150 s/.*/./; q'`
20151 test -d "$as_dir" && break
20152 done
20153 test -z "$as_dirs" || eval "mkdir $as_dirs"
20154 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20155
20156
20157 } # as_fn_mkdir_p
20158 if mkdir -p . 2>/dev/null; then
20159 as_mkdir_p='mkdir -p "$as_dir"'
20160 else
20161 test -d ./-p && rmdir ./-p
20162 as_mkdir_p=false
20163 fi
20164
20165
20166 # as_fn_executable_p FILE
20167 # -----------------------
20168 # Test if FILE is an executable regular file.
20169 as_fn_executable_p ()
20170 {
20171 test -f "$1" && test -x "$1"
20172 } # as_fn_executable_p
20173 as_test_x='test -x'
20174 as_executable_p=as_fn_executable_p
20175
20176 # Sed expression to map a string onto a valid CPP name.
20177 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20178
20179 # Sed expression to map a string onto a valid variable name.
20180 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20181
20182
20183 exec 6>&1
20184 ## ----------------------------------- ##
20185 ## Main body of $CONFIG_STATUS script. ##
20186 ## ----------------------------------- ##
20187 _ASEOF
20188 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20189
20190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20191 # Save the log message, to keep $0 and so on meaningful, and to
20192 # report actual input values of CONFIG_FILES etc. instead of their
20193 # values after options handling.
20194 ac_log="
20195 This file was extended by xcb-util $as_me 0.4.1, which was
20196 generated by GNU Autoconf 2.71. Invocation command line was
20197
20198 CONFIG_FILES = $CONFIG_FILES
20199 CONFIG_HEADERS = $CONFIG_HEADERS
20200 CONFIG_LINKS = $CONFIG_LINKS
20201 CONFIG_COMMANDS = $CONFIG_COMMANDS
20202 $ $0 $@
20203
20204 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20205 "
20206
20207 _ACEOF
20208
20209 case $ac_config_files in *"
20210 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20211 esac
20212
20213 case $ac_config_headers in *"
20214 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20215 esac
20216
20217
20218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20219 # Files that config.status was made for.
20220 config_files="$ac_config_files"
20221 config_headers="$ac_config_headers"
20222 config_commands="$ac_config_commands"
20223
20224 _ACEOF
20225
20226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20227 ac_cs_usage="\
20228 \`$as_me' instantiates files and other configuration actions
20229 from templates according to the current configuration. Unless the files
20230 and actions are specified as TAGs, all are instantiated by default.
20231
20232 Usage: $0 [OPTION]... [TAG]...
20233
20234 -h, --help print this help, then exit
20235 -V, --version print version number and configuration settings, then exit
20236 --config print configuration, then exit
20237 -q, --quiet, --silent
20238 do not print progress messages
20239 -d, --debug don't remove temporary files
20240 --recheck update $as_me by reconfiguring in the same conditions
20241 --file=FILE[:TEMPLATE]
20242 instantiate the configuration file FILE
20243 --header=FILE[:TEMPLATE]
20244 instantiate the configuration header FILE
20245
20246 Configuration files:
20247 $config_files
20248
20249 Configuration headers:
20250 $config_headers
20251
20252 Configuration commands:
20253 $config_commands
20254
20255 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxcb-util/-/issues>."
20256
20257 _ACEOF
20258 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20259 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20261 ac_cs_config='$ac_cs_config_escaped'
20262 ac_cs_version="\\
20263 xcb-util config.status 0.4.1
20264 configured by $0, generated by GNU Autoconf 2.71,
20265 with options \\"\$ac_cs_config\\"
20266
20267 Copyright (C) 2021 Free Software Foundation, Inc.
20268 This config.status script is free software; the Free Software Foundation
20269 gives unlimited permission to copy, distribute and modify it."
20270
20271 ac_pwd='$ac_pwd'
20272 srcdir='$srcdir'
20273 INSTALL='$INSTALL'
20274 MKDIR_P='$MKDIR_P'
20275 AWK='$AWK'
20276 test -n "\$AWK" || AWK=awk
20277 _ACEOF
20278
20279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20280 # The default lists apply if the user does not specify any file.
20281 ac_need_defaults=:
20282 while test $# != 0
20283 do
20284 case $1 in
20285 --*=?*)
20286 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20287 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20288 ac_shift=:
20289 ;;
20290 --*=)
20291 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20292 ac_optarg=
20293 ac_shift=:
20294 ;;
20295 *)
20296 ac_option=$1
20297 ac_optarg=$2
20298 ac_shift=shift
20299 ;;
20300 esac
20301
20302 case $ac_option in
20303 # Handling of the options.
20304 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20305 ac_cs_recheck=: ;;
20306 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20307 printf "%s\n" "$ac_cs_version"; exit ;;
20308 --config | --confi | --conf | --con | --co | --c )
20309 printf "%s\n" "$ac_cs_config"; exit ;;
20310 --debug | --debu | --deb | --de | --d | -d )
20311 debug=: ;;
20312 --file | --fil | --fi | --f )
20313 $ac_shift
20314 case $ac_optarg in
20315 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20316 '') as_fn_error $? "missing file argument" ;;
20317 esac
20318 as_fn_append CONFIG_FILES " '$ac_optarg'"
20319 ac_need_defaults=false;;
20320 --header | --heade | --head | --hea )
20321 $ac_shift
20322 case $ac_optarg in
20323 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20324 esac
20325 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20326 ac_need_defaults=false;;
20327 --he | --h)
20328 # Conflict between --help and --header
20329 as_fn_error $? "ambiguous option: \`$1'
20330 Try \`$0 --help' for more information.";;
20331 --help | --hel | -h )
20332 printf "%s\n" "$ac_cs_usage"; exit ;;
20333 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20334 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20335 ac_cs_silent=: ;;
20336
20337 # This is an error.
20338 -*) as_fn_error $? "unrecognized option: \`$1'
20339 Try \`$0 --help' for more information." ;;
20340
20341 *) as_fn_append ac_config_targets " $1"
20342 ac_need_defaults=false ;;
20343
20344 esac
20345 shift
20346 done
20347
20348 ac_configure_extra_args=
20349
20350 if $ac_cs_silent; then
20351 exec 6>/dev/null
20352 ac_configure_extra_args="$ac_configure_extra_args --silent"
20353 fi
20354
20355 _ACEOF
20356 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20357 if \$ac_cs_recheck; then
20358 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20359 shift
20360 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20361 CONFIG_SHELL='$SHELL'
20362 export CONFIG_SHELL
20363 exec "\$@"
20364 fi
20365
20366 _ACEOF
20367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20368 exec 5>>config.log
20369 {
20370 echo
20371 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20372 ## Running $as_me. ##
20373 _ASBOX
20374 printf "%s\n" "$ac_log"
20375 } >&5
20376
20377 _ACEOF
20378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20379 #
20380 # INIT-COMMANDS
20381 #
20382 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20383
20384
20385 # The HP-UX ksh and POSIX shell print the target directory to stdout
20386 # if CDPATH is set.
20387 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20388
20389 sed_quote_subst='$sed_quote_subst'
20390 double_quote_subst='$double_quote_subst'
20391 delay_variable_subst='$delay_variable_subst'
20392 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20393 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20394 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20395 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20396 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20397 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20398 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20399 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20400 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20401 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20402 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20403 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20404 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20405 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20406 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20407 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20408 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20409 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20410 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20411 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20412 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20413 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20414 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20415 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20416 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20417 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20418 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20419 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20420 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20421 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20422 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20423 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20424 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20425 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20426 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20427 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20428 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20429 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20430 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20431 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20432 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20433 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20434 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20435 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20436 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20437 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20438 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20439 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20440 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20441 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20442 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20443 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20444 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20445 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20446 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20447 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20448 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20449 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20450 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20451 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20452 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"`'
20453 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20454 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20455 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20456 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20457 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20458 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20459 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20460 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20461 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20462 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20463 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20464 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20465 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20466 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20467 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20468 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20469 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20470 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20471 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20472 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20473 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20474 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20475 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20476 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20477 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20478 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20479 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20480 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20481 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20482 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20483 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20484 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20485 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20486 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20487 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20488 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20489 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20490 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20491 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20492 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20493 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20494 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20495 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20496 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20497 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20498 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20499 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20500 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20501 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20502 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20503 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20504 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20505 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20506 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20507 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20508 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20509 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20510 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20511 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20512 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20513 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20514 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20515 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20516 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20517 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20518 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20519 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20520 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20521 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20522 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20523 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20524 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20525 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20526 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20527 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20528 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20529
20530 LTCC='$LTCC'
20531 LTCFLAGS='$LTCFLAGS'
20532 compiler='$compiler_DEFAULT'
20533
20534 # A function that is used when there is no print builtin or printf.
20535 func_fallback_echo ()
20536 {
20537 eval 'cat <<_LTECHO_EOF
20538 \$1
20539 _LTECHO_EOF'
20540 }
20541
20542 # Quote evaled strings.
20543 for var in SHELL \
20544 ECHO \
20545 PATH_SEPARATOR \
20546 SED \
20547 GREP \
20548 EGREP \
20549 FGREP \
20550 LD \
20551 NM \
20552 LN_S \
20553 lt_SP2NL \
20554 lt_NL2SP \
20555 reload_flag \
20556 FILECMD \
20557 OBJDUMP \
20558 deplibs_check_method \
20559 file_magic_cmd \
20560 file_magic_glob \
20561 want_nocaseglob \
20562 DLLTOOL \
20563 sharedlib_from_linklib_cmd \
20564 AR \
20565 archiver_list_spec \
20566 STRIP \
20567 RANLIB \
20568 CC \
20569 CFLAGS \
20570 compiler \
20571 lt_cv_sys_global_symbol_pipe \
20572 lt_cv_sys_global_symbol_to_cdecl \
20573 lt_cv_sys_global_symbol_to_import \
20574 lt_cv_sys_global_symbol_to_c_name_address \
20575 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20576 lt_cv_nm_interface \
20577 nm_file_list_spec \
20578 lt_cv_truncate_bin \
20579 lt_prog_compiler_no_builtin_flag \
20580 lt_prog_compiler_pic \
20581 lt_prog_compiler_wl \
20582 lt_prog_compiler_static \
20583 lt_cv_prog_compiler_c_o \
20584 need_locks \
20585 MANIFEST_TOOL \
20586 DSYMUTIL \
20587 NMEDIT \
20588 LIPO \
20589 OTOOL \
20590 OTOOL64 \
20591 shrext_cmds \
20592 export_dynamic_flag_spec \
20593 whole_archive_flag_spec \
20594 compiler_needs_object \
20595 with_gnu_ld \
20596 allow_undefined_flag \
20597 no_undefined_flag \
20598 hardcode_libdir_flag_spec \
20599 hardcode_libdir_separator \
20600 exclude_expsyms \
20601 include_expsyms \
20602 file_list_spec \
20603 variables_saved_for_relink \
20604 libname_spec \
20605 library_names_spec \
20606 soname_spec \
20607 install_override_mode \
20608 finish_eval \
20609 old_striplib \
20610 striplib; do
20611 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20612 *[\\\\\\\`\\"\\\$]*)
20613 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20614 ;;
20615 *)
20616 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20617 ;;
20618 esac
20619 done
20620
20621 # Double-quote double-evaled strings.
20622 for var in reload_cmds \
20623 old_postinstall_cmds \
20624 old_postuninstall_cmds \
20625 old_archive_cmds \
20626 extract_expsyms_cmds \
20627 old_archive_from_new_cmds \
20628 old_archive_from_expsyms_cmds \
20629 archive_cmds \
20630 archive_expsym_cmds \
20631 module_cmds \
20632 module_expsym_cmds \
20633 export_symbols_cmds \
20634 prelink_cmds \
20635 postlink_cmds \
20636 postinstall_cmds \
20637 postuninstall_cmds \
20638 finish_cmds \
20639 sys_lib_search_path_spec \
20640 configure_time_dlsearch_path \
20641 configure_time_lt_sys_library_path; do
20642 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20643 *[\\\\\\\`\\"\\\$]*)
20644 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20645 ;;
20646 *)
20647 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20648 ;;
20649 esac
20650 done
20651
20652 ac_aux_dir='$ac_aux_dir'
20653
20654 # See if we are running on zsh, and set the options that allow our
20655 # commands through without removal of \ escapes INIT.
20656 if test -n "\${ZSH_VERSION+set}"; then
20657 setopt NO_GLOB_SUBST
20658 fi
20659
20660
20661 PACKAGE='$PACKAGE'
20662 VERSION='$VERSION'
20663 RM='$RM'
20664 ofile='$ofile'
20665
20666
20667
20668
20669 _ACEOF
20670
20671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20672
20673 # Handling of arguments.
20674 for ac_config_target in $ac_config_targets
20675 do
20676 case $ac_config_target in
20677 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20678 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20679 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20680 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20681 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20682 "xcb-atom.pc") CONFIG_FILES="$CONFIG_FILES xcb-atom.pc" ;;
20683 "xcb-aux.pc") CONFIG_FILES="$CONFIG_FILES xcb-aux.pc" ;;
20684 "xcb-event.pc") CONFIG_FILES="$CONFIG_FILES xcb-event.pc" ;;
20685 "xcb-util.pc") CONFIG_FILES="$CONFIG_FILES xcb-util.pc" ;;
20686
20687 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20688 esac
20689 done
20690
20691
20692 # If the user did not use the arguments to specify the items to instantiate,
20693 # then the envvar interface is used. Set only those that are not.
20694 # We use the long form for the default assignment because of an extremely
20695 # bizarre bug on SunOS 4.1.3.
20696 if $ac_need_defaults; then
20697 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20698 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20699 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20700 fi
20701
20702 # Have a temporary directory for convenience. Make it in the build tree
20703 # simply because there is no reason against having it here, and in addition,
20704 # creating and moving files from /tmp can sometimes cause problems.
20705 # Hook for its removal unless debugging.
20706 # Note that there is a small window in which the directory will not be cleaned:
20707 # after its creation but before its name has been assigned to `$tmp'.
20708 $debug ||
20709 {
20710 tmp= ac_tmp=
20711 trap 'exit_status=$?
20712 : "${ac_tmp:=$tmp}"
20713 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20714 ' 0
20715 trap 'as_fn_exit 1' 1 2 13 15
20716 }
20717 # Create a (secure) tmp directory for tmp files.
20718
20719 {
20720 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20721 test -d "$tmp"
20722 } ||
20723 {
20724 tmp=./conf$$-$RANDOM
20725 (umask 077 && mkdir "$tmp")
20726 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20727 ac_tmp=$tmp
20728
20729 # Set up the scripts for CONFIG_FILES section.
20730 # No need to generate them if there are no CONFIG_FILES.
20731 # This happens for instance with `./config.status config.h'.
20732 if test -n "$CONFIG_FILES"; then
20733
20734
20735 ac_cr=`echo X | tr X '\015'`
20736 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20737 # But we know of no other shell where ac_cr would be empty at this
20738 # point, so we can use a bashism as a fallback.
20739 if test "x$ac_cr" = x; then
20740 eval ac_cr=\$\'\\r\'
20741 fi
20742 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20743 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20744 ac_cs_awk_cr='\\r'
20745 else
20746 ac_cs_awk_cr=$ac_cr
20747 fi
20748
20749 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20750 _ACEOF
20751
20752
20753 {
20754 echo "cat >conf$$subs.awk <<_ACEOF" &&
20755 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20756 echo "_ACEOF"
20757 } >conf$$subs.sh ||
20758 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20759 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20760 ac_delim='%!_!# '
20761 for ac_last_try in false false false false false :; do
20762 . ./conf$$subs.sh ||
20763 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20764
20765 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20766 if test $ac_delim_n = $ac_delim_num; then
20767 break
20768 elif $ac_last_try; then
20769 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20770 else
20771 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20772 fi
20773 done
20774 rm -f conf$$subs.sh
20775
20776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20777 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20778 _ACEOF
20779 sed -n '
20780 h
20781 s/^/S["/; s/!.*/"]=/
20782 p
20783 g
20784 s/^[^!]*!//
20785 :repl
20786 t repl
20787 s/'"$ac_delim"'$//
20788 t delim
20789 :nl
20790 h
20791 s/\(.\{148\}\)..*/\1/
20792 t more1
20793 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20794 p
20795 n
20796 b repl
20797 :more1
20798 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20799 p
20800 g
20801 s/.\{148\}//
20802 t nl
20803 :delim
20804 h
20805 s/\(.\{148\}\)..*/\1/
20806 t more2
20807 s/["\\]/\\&/g; s/^/"/; s/$/"/
20808 p
20809 b
20810 :more2
20811 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20812 p
20813 g
20814 s/.\{148\}//
20815 t delim
20816 ' <conf$$subs.awk | sed '
20817 /^[^""]/{
20818 N
20819 s/\n//
20820 }
20821 ' >>$CONFIG_STATUS || ac_write_fail=1
20822 rm -f conf$$subs.awk
20823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20824 _ACAWK
20825 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20826 for (key in S) S_is_set[key] = 1
20827 FS = ""
20828
20829 }
20830 {
20831 line = $ 0
20832 nfields = split(line, field, "@")
20833 substed = 0
20834 len = length(field[1])
20835 for (i = 2; i < nfields; i++) {
20836 key = field[i]
20837 keylen = length(key)
20838 if (S_is_set[key]) {
20839 value = S[key]
20840 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20841 len += length(value) + length(field[++i])
20842 substed = 1
20843 } else
20844 len += 1 + keylen
20845 }
20846
20847 print line
20848 }
20849
20850 _ACAWK
20851 _ACEOF
20852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20853 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20854 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20855 else
20856 cat
20857 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20858 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20859 _ACEOF
20860
20861 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20862 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20863 # trailing colons and then remove the whole line if VPATH becomes empty
20864 # (actually we leave an empty line to preserve line numbers).
20865 if test "x$srcdir" = x.; then
20866 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20867 h
20868 s///
20869 s/^/:/
20870 s/[ ]*$/:/
20871 s/:\$(srcdir):/:/g
20872 s/:\${srcdir}:/:/g
20873 s/:@srcdir@:/:/g
20874 s/^:*//
20875 s/:*$//
20876 x
20877 s/\(=[ ]*\).*/\1/
20878 G
20879 s/\n//
20880 s/^[^=]*=[ ]*$//
20881 }'
20882 fi
20883
20884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20885 fi # test -n "$CONFIG_FILES"
20886
20887 # Set up the scripts for CONFIG_HEADERS section.
20888 # No need to generate them if there are no CONFIG_HEADERS.
20889 # This happens for instance with `./config.status Makefile'.
20890 if test -n "$CONFIG_HEADERS"; then
20891 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20892 BEGIN {
20893 _ACEOF
20894
20895 # Transform confdefs.h into an awk script `defines.awk', embedded as
20896 # here-document in config.status, that substitutes the proper values into
20897 # config.h.in to produce config.h.
20898
20899 # Create a delimiter string that does not exist in confdefs.h, to ease
20900 # handling of long lines.
20901 ac_delim='%!_!# '
20902 for ac_last_try in false false :; do
20903 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20904 if test -z "$ac_tt"; then
20905 break
20906 elif $ac_last_try; then
20907 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20908 else
20909 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20910 fi
20911 done
20912
20913 # For the awk script, D is an array of macro values keyed by name,
20914 # likewise P contains macro parameters if any. Preserve backslash
20915 # newline sequences.
20916
20917 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20918 sed -n '
20919 s/.\{148\}/&'"$ac_delim"'/g
20920 t rset
20921 :rset
20922 s/^[ ]*#[ ]*define[ ][ ]*/ /
20923 t def
20924 d
20925 :def
20926 s/\\$//
20927 t bsnl
20928 s/["\\]/\\&/g
20929 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20930 D["\1"]=" \3"/p
20931 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20932 d
20933 :bsnl
20934 s/["\\]/\\&/g
20935 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20936 D["\1"]=" \3\\\\\\n"\\/p
20937 t cont
20938 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20939 t cont
20940 d
20941 :cont
20942 n
20943 s/.\{148\}/&'"$ac_delim"'/g
20944 t clear
20945 :clear
20946 s/\\$//
20947 t bsnlc
20948 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20949 d
20950 :bsnlc
20951 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20952 b cont
20953 ' <confdefs.h | sed '
20954 s/'"$ac_delim"'/"\\\
20955 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20956
20957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20958 for (key in D) D_is_set[key] = 1
20959 FS = ""
20960 }
20961 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20962 line = \$ 0
20963 split(line, arg, " ")
20964 if (arg[1] == "#") {
20965 defundef = arg[2]
20966 mac1 = arg[3]
20967 } else {
20968 defundef = substr(arg[1], 2)
20969 mac1 = arg[2]
20970 }
20971 split(mac1, mac2, "(") #)
20972 macro = mac2[1]
20973 prefix = substr(line, 1, index(line, defundef) - 1)
20974 if (D_is_set[macro]) {
20975 # Preserve the white space surrounding the "#".
20976 print prefix "define", macro P[macro] D[macro]
20977 next
20978 } else {
20979 # Replace #undef with comments. This is necessary, for example,
20980 # in the case of _POSIX_SOURCE, which is predefined and required
20981 # on some systems where configure will not decide to define it.
20982 if (defundef == "undef") {
20983 print "/*", prefix defundef, macro, "*/"
20984 next
20985 }
20986 }
20987 }
20988 { print }
20989 _ACAWK
20990 _ACEOF
20991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20992 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20993 fi # test -n "$CONFIG_HEADERS"
20994
20995
20996 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20997 shift
20998 for ac_tag
20999 do
21000 case $ac_tag in
21001 :[FHLC]) ac_mode=$ac_tag; continue;;
21002 esac
21003 case $ac_mode$ac_tag in
21004 :[FHL]*:*);;
21005 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21006 :[FH]-) ac_tag=-:-;;
21007 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21008 esac
21009 ac_save_IFS=$IFS
21010 IFS=:
21011 set x $ac_tag
21012 IFS=$ac_save_IFS
21013 shift
21014 ac_file=$1
21015 shift
21016
21017 case $ac_mode in
21018 :L) ac_source=$1;;
21019 :[FH])
21020 ac_file_inputs=
21021 for ac_f
21022 do
21023 case $ac_f in
21024 -) ac_f="$ac_tmp/stdin";;
21025 *) # Look for the file first in the build tree, then in the source tree
21026 # (if the path is not absolute). The absolute path cannot be DOS-style,
21027 # because $ac_f cannot contain `:'.
21028 test -f "$ac_f" ||
21029 case $ac_f in
21030 [\\/$]*) false;;
21031 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21032 esac ||
21033 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21034 esac
21035 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21036 as_fn_append ac_file_inputs " '$ac_f'"
21037 done
21038
21039 # Let's still pretend it is `configure' which instantiates (i.e., don't
21040 # use $as_me), people would be surprised to read:
21041 # /* config.h. Generated by config.status. */
21042 configure_input='Generated from '`
21043 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21044 `' by configure.'
21045 if test x"$ac_file" != x-; then
21046 configure_input="$ac_file. $configure_input"
21047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21048 printf "%s\n" "$as_me: creating $ac_file" >&6;}
21049 fi
21050 # Neutralize special characters interpreted by sed in replacement strings.
21051 case $configure_input in #(
21052 *\&* | *\|* | *\\* )
21053 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21054 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21055 *) ac_sed_conf_input=$configure_input;;
21056 esac
21057
21058 case $ac_tag in
21059 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21060 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21061 esac
21062 ;;
21063 esac
21064
21065 ac_dir=`$as_dirname -- "$ac_file" ||
21066 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21067 X"$ac_file" : 'X\(//\)[^/]' \| \
21068 X"$ac_file" : 'X\(//\)$' \| \
21069 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21070 printf "%s\n" X"$ac_file" |
21071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21072 s//\1/
21073 q
21074 }
21075 /^X\(\/\/\)[^/].*/{
21076 s//\1/
21077 q
21078 }
21079 /^X\(\/\/\)$/{
21080 s//\1/
21081 q
21082 }
21083 /^X\(\/\).*/{
21084 s//\1/
21085 q
21086 }
21087 s/.*/./; q'`
21088 as_dir="$ac_dir"; as_fn_mkdir_p
21089 ac_builddir=.
21090
21091 case "$ac_dir" in
21092 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21093 *)
21094 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21095 # A ".." for each directory in $ac_dir_suffix.
21096 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21097 case $ac_top_builddir_sub in
21098 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21099 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21100 esac ;;
21101 esac
21102 ac_abs_top_builddir=$ac_pwd
21103 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21104 # for backward compatibility:
21105 ac_top_builddir=$ac_top_build_prefix
21106
21107 case $srcdir in
21108 .) # We are building in place.
21109 ac_srcdir=.
21110 ac_top_srcdir=$ac_top_builddir_sub
21111 ac_abs_top_srcdir=$ac_pwd ;;
21112 [\\/]* | ?:[\\/]* ) # Absolute name.
21113 ac_srcdir=$srcdir$ac_dir_suffix;
21114 ac_top_srcdir=$srcdir
21115 ac_abs_top_srcdir=$srcdir ;;
21116 *) # Relative name.
21117 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21118 ac_top_srcdir=$ac_top_build_prefix$srcdir
21119 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21120 esac
21121 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21122
21123
21124 case $ac_mode in
21125 :F)
21126 #
21127 # CONFIG_FILE
21128 #
21129
21130 case $INSTALL in
21131 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21132 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21133 esac
21134 ac_MKDIR_P=$MKDIR_P
21135 case $MKDIR_P in
21136 [\\/$]* | ?:[\\/]* ) ;;
21137 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21138 esac
21139 _ACEOF
21140
21141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21142 # If the template does not know about datarootdir, expand it.
21143 # FIXME: This hack should be removed a few years after 2.60.
21144 ac_datarootdir_hack=; ac_datarootdir_seen=
21145 ac_sed_dataroot='
21146 /datarootdir/ {
21147 p
21148 q
21149 }
21150 /@datadir@/p
21151 /@docdir@/p
21152 /@infodir@/p
21153 /@localedir@/p
21154 /@mandir@/p'
21155 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21156 *datarootdir*) ac_datarootdir_seen=yes;;
21157 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21159 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21160 _ACEOF
21161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21162 ac_datarootdir_hack='
21163 s&@datadir@&$datadir&g
21164 s&@docdir@&$docdir&g
21165 s&@infodir@&$infodir&g
21166 s&@localedir@&$localedir&g
21167 s&@mandir@&$mandir&g
21168 s&\\\${datarootdir}&$datarootdir&g' ;;
21169 esac
21170 _ACEOF
21171
21172 # Neutralize VPATH when `$srcdir' = `.'.
21173 # Shell code in configure.ac might set extrasub.
21174 # FIXME: do we really want to maintain this feature?
21175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21176 ac_sed_extra="$ac_vpsub
21177 $extrasub
21178 _ACEOF
21179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21180 :t
21181 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21182 s|@configure_input@|$ac_sed_conf_input|;t t
21183 s&@top_builddir@&$ac_top_builddir_sub&;t t
21184 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21185 s&@srcdir@&$ac_srcdir&;t t
21186 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21187 s&@top_srcdir@&$ac_top_srcdir&;t t
21188 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21189 s&@builddir@&$ac_builddir&;t t
21190 s&@abs_builddir@&$ac_abs_builddir&;t t
21191 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21192 s&@INSTALL@&$ac_INSTALL&;t t
21193 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21194 $ac_datarootdir_hack
21195 "
21196 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21197 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21198
21199 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21200 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21201 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21202 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21204 which seems to be undefined. Please make sure it is defined" >&5
21205 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21206 which seems to be undefined. Please make sure it is defined" >&2;}
21207
21208 rm -f "$ac_tmp/stdin"
21209 case $ac_file in
21210 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21211 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21212 esac \
21213 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21214 ;;
21215 :H)
21216 #
21217 # CONFIG_HEADER
21218 #
21219 if test x"$ac_file" != x-; then
21220 {
21221 printf "%s\n" "/* $configure_input */" >&1 \
21222 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21223 } >"$ac_tmp/config.h" \
21224 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21225 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21227 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21228 else
21229 rm -f "$ac_file"
21230 mv "$ac_tmp/config.h" "$ac_file" \
21231 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21232 fi
21233 else
21234 printf "%s\n" "/* $configure_input */" >&1 \
21235 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21236 || as_fn_error $? "could not create -" "$LINENO" 5
21237 fi
21238 # Compute "$ac_file"'s index in $config_headers.
21239 _am_arg="$ac_file"
21240 _am_stamp_count=1
21241 for _am_header in $config_headers :; do
21242 case $_am_header in
21243 $_am_arg | $_am_arg:* )
21244 break ;;
21245 * )
21246 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21247 esac
21248 done
21249 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21250 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21251 X"$_am_arg" : 'X\(//\)[^/]' \| \
21252 X"$_am_arg" : 'X\(//\)$' \| \
21253 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21254 printf "%s\n" X"$_am_arg" |
21255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21256 s//\1/
21257 q
21258 }
21259 /^X\(\/\/\)[^/].*/{
21260 s//\1/
21261 q
21262 }
21263 /^X\(\/\/\)$/{
21264 s//\1/
21265 q
21266 }
21267 /^X\(\/\).*/{
21268 s//\1/
21269 q
21270 }
21271 s/.*/./; q'`/stamp-h$_am_stamp_count
21272 ;;
21273
21274 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21275 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21276 ;;
21277 esac
21278
21279
21280 case $ac_file$ac_mode in
21281 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21282 # Older Autoconf quotes --file arguments for eval, but not when files
21283 # are listed without --file. Let's play safe and only enable the eval
21284 # if we detect the quoting.
21285 # TODO: see whether this extra hack can be removed once we start
21286 # requiring Autoconf 2.70 or later.
21287 case $CONFIG_FILES in #(
21288 *\'*) :
21289 eval set x "$CONFIG_FILES" ;; #(
21290 *) :
21291 set x $CONFIG_FILES ;; #(
21292 *) :
21293 ;;
21294 esac
21295 shift
21296 # Used to flag and report bootstrapping failures.
21297 am_rc=0
21298 for am_mf
21299 do
21300 # Strip MF so we end up with the name of the file.
21301 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21302 # Check whether this is an Automake generated Makefile which includes
21303 # dependency-tracking related rules and includes.
21304 # Grep'ing the whole file directly is not great: AIX grep has a line
21305 # limit of 2048, but all sed's we know have understand at least 4000.
21306 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21307 || continue
21308 am_dirpart=`$as_dirname -- "$am_mf" ||
21309 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21310 X"$am_mf" : 'X\(//\)[^/]' \| \
21311 X"$am_mf" : 'X\(//\)$' \| \
21312 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21313 printf "%s\n" X"$am_mf" |
21314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21315 s//\1/
21316 q
21317 }
21318 /^X\(\/\/\)[^/].*/{
21319 s//\1/
21320 q
21321 }
21322 /^X\(\/\/\)$/{
21323 s//\1/
21324 q
21325 }
21326 /^X\(\/\).*/{
21327 s//\1/
21328 q
21329 }
21330 s/.*/./; q'`
21331 am_filepart=`$as_basename -- "$am_mf" ||
21332 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21333 X"$am_mf" : 'X\(//\)$' \| \
21334 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21335 printf "%s\n" X/"$am_mf" |
21336 sed '/^.*\/\([^/][^/]*\)\/*$/{
21337 s//\1/
21338 q
21339 }
21340 /^X\/\(\/\/\)$/{
21341 s//\1/
21342 q
21343 }
21344 /^X\/\(\/\).*/{
21345 s//\1/
21346 q
21347 }
21348 s/.*/./; q'`
21349 { echo "$as_me:$LINENO: cd "$am_dirpart" \
21350 && sed -e '/# am--include-marker/d' "$am_filepart" \
21351 | $MAKE -f - am--depfiles" >&5
21352 (cd "$am_dirpart" \
21353 && sed -e '/# am--include-marker/d' "$am_filepart" \
21354 | $MAKE -f - am--depfiles) >&5 2>&5
21355 ac_status=$?
21356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357 (exit $ac_status); } || am_rc=$?
21358 done
21359 if test $am_rc -ne 0; then
21360 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21361 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21362 as_fn_error $? "Something went wrong bootstrapping makefile fragments
21363 for automatic dependency tracking. If GNU make was not used, consider
21364 re-running the configure script with MAKE=\"gmake\" (or whatever is
21365 necessary). You can also try re-running configure with the
21366 '--disable-dependency-tracking' option to at least be able to build
21367 the package (albeit without support for automatic dependency tracking).
21368 See \`config.log' for more details" "$LINENO" 5; }
21369 fi
21370 { am_dirpart=; unset am_dirpart;}
21371 { am_filepart=; unset am_filepart;}
21372 { am_mf=; unset am_mf;}
21373 { am_rc=; unset am_rc;}
21374 rm -f conftest-deps.mk
21375 }
21376 ;;
21377 "libtool":C)
21378
21379 # See if we are running on zsh, and set the options that allow our
21380 # commands through without removal of \ escapes.
21381 if test -n "${ZSH_VERSION+set}"; then
21382 setopt NO_GLOB_SUBST
21383 fi
21384
21385 cfgfile=${ofile}T
21386 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21387 $RM "$cfgfile"
21388
21389 cat <<_LT_EOF >> "$cfgfile"
21390 #! $SHELL
21391 # Generated automatically by $as_me ($PACKAGE) $VERSION
21392 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21393 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21394
21395 # Provide generalized library-building support services.
21396 # Written by Gordon Matzigkeit, 1996
21397
21398 # Copyright (C) 2014 Free Software Foundation, Inc.
21399 # This is free software; see the source for copying conditions. There is NO
21400 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21401
21402 # GNU Libtool is free software; you can redistribute it and/or modify
21403 # it under the terms of the GNU General Public License as published by
21404 # the Free Software Foundation; either version 2 of of the License, or
21405 # (at your option) any later version.
21406 #
21407 # As a special exception to the GNU General Public License, if you
21408 # distribute this file as part of a program or library that is built
21409 # using GNU Libtool, you may include this file under the same
21410 # distribution terms that you use for the rest of that program.
21411 #
21412 # GNU Libtool is distributed in the hope that it will be useful, but
21413 # WITHOUT ANY WARRANTY; without even the implied warranty of
21414 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21415 # GNU General Public License for more details.
21416 #
21417 # You should have received a copy of the GNU General Public License
21418 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21419
21420
21421 # The names of the tagged configurations supported by this script.
21422 available_tags=''
21423
21424 # Configured defaults for sys_lib_dlsearch_path munging.
21425 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21426
21427 # ### BEGIN LIBTOOL CONFIG
21428
21429 # Which release of libtool.m4 was used?
21430 macro_version=$macro_version
21431 macro_revision=$macro_revision
21432
21433 # Whether or not to build shared libraries.
21434 build_libtool_libs=$enable_shared
21435
21436 # Whether or not to build static libraries.
21437 build_old_libs=$enable_static
21438
21439 # What type of objects to build.
21440 pic_mode=$pic_mode
21441
21442 # Whether or not to optimize for fast installation.
21443 fast_install=$enable_fast_install
21444
21445 # Shared archive member basename,for filename based shared library versioning on AIX.
21446 shared_archive_member_spec=$shared_archive_member_spec
21447
21448 # Shell to use when invoking shell scripts.
21449 SHELL=$lt_SHELL
21450
21451 # An echo program that protects backslashes.
21452 ECHO=$lt_ECHO
21453
21454 # The PATH separator for the build system.
21455 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21456
21457 # The host system.
21458 host_alias=$host_alias
21459 host=$host
21460 host_os=$host_os
21461
21462 # The build system.
21463 build_alias=$build_alias
21464 build=$build
21465 build_os=$build_os
21466
21467 # A sed program that does not truncate output.
21468 SED=$lt_SED
21469
21470 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21471 Xsed="\$SED -e 1s/^X//"
21472
21473 # A grep program that handles long lines.
21474 GREP=$lt_GREP
21475
21476 # An ERE matcher.
21477 EGREP=$lt_EGREP
21478
21479 # A literal string matcher.
21480 FGREP=$lt_FGREP
21481
21482 # A BSD- or MS-compatible name lister.
21483 NM=$lt_NM
21484
21485 # Whether we need soft or hard links.
21486 LN_S=$lt_LN_S
21487
21488 # What is the maximum length of a command?
21489 max_cmd_len=$max_cmd_len
21490
21491 # Object file suffix (normally "o").
21492 objext=$ac_objext
21493
21494 # Executable file suffix (normally "").
21495 exeext=$exeext
21496
21497 # whether the shell understands "unset".
21498 lt_unset=$lt_unset
21499
21500 # turn spaces into newlines.
21501 SP2NL=$lt_lt_SP2NL
21502
21503 # turn newlines into spaces.
21504 NL2SP=$lt_lt_NL2SP
21505
21506 # convert \$build file names to \$host format.
21507 to_host_file_cmd=$lt_cv_to_host_file_cmd
21508
21509 # convert \$build files to toolchain format.
21510 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21511
21512 # A file(cmd) program that detects file types.
21513 FILECMD=$lt_FILECMD
21514
21515 # An object symbol dumper.
21516 OBJDUMP=$lt_OBJDUMP
21517
21518 # Method to check whether dependent libraries are shared objects.
21519 deplibs_check_method=$lt_deplibs_check_method
21520
21521 # Command to use when deplibs_check_method = "file_magic".
21522 file_magic_cmd=$lt_file_magic_cmd
21523
21524 # How to find potential files when deplibs_check_method = "file_magic".
21525 file_magic_glob=$lt_file_magic_glob
21526
21527 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21528 want_nocaseglob=$lt_want_nocaseglob
21529
21530 # DLL creation program.
21531 DLLTOOL=$lt_DLLTOOL
21532
21533 # Command to associate shared and link libraries.
21534 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21535
21536 # The archiver.
21537 AR=$lt_AR
21538
21539 # Flags to create an archive (by configure).
21540 lt_ar_flags=$lt_ar_flags
21541
21542 # Flags to create an archive.
21543 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21544
21545 # How to feed a file listing to the archiver.
21546 archiver_list_spec=$lt_archiver_list_spec
21547
21548 # A symbol stripping program.
21549 STRIP=$lt_STRIP
21550
21551 # Commands used to install an old-style archive.
21552 RANLIB=$lt_RANLIB
21553 old_postinstall_cmds=$lt_old_postinstall_cmds
21554 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21555
21556 # Whether to use a lock for old archive extraction.
21557 lock_old_archive_extraction=$lock_old_archive_extraction
21558
21559 # A C compiler.
21560 LTCC=$lt_CC
21561
21562 # LTCC compiler flags.
21563 LTCFLAGS=$lt_CFLAGS
21564
21565 # Take the output of nm and produce a listing of raw symbols and C names.
21566 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21567
21568 # Transform the output of nm in a proper C declaration.
21569 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21570
21571 # Transform the output of nm into a list of symbols to manually relocate.
21572 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21573
21574 # Transform the output of nm in a C name address pair.
21575 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21576
21577 # Transform the output of nm in a C name address pair when lib prefix is needed.
21578 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21579
21580 # The name lister interface.
21581 nm_interface=$lt_lt_cv_nm_interface
21582
21583 # Specify filename containing input files for \$NM.
21584 nm_file_list_spec=$lt_nm_file_list_spec
21585
21586 # The root where to search for dependent libraries,and where our libraries should be installed.
21587 lt_sysroot=$lt_sysroot
21588
21589 # Command to truncate a binary pipe.
21590 lt_truncate_bin=$lt_lt_cv_truncate_bin
21591
21592 # The name of the directory that contains temporary libtool files.
21593 objdir=$objdir
21594
21595 # Used to examine libraries when file_magic_cmd begins with "file".
21596 MAGIC_CMD=$MAGIC_CMD
21597
21598 # Must we lock files when doing compilation?
21599 need_locks=$lt_need_locks
21600
21601 # Manifest tool.
21602 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21603
21604 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21605 DSYMUTIL=$lt_DSYMUTIL
21606
21607 # Tool to change global to local symbols on Mac OS X.
21608 NMEDIT=$lt_NMEDIT
21609
21610 # Tool to manipulate fat objects and archives on Mac OS X.
21611 LIPO=$lt_LIPO
21612
21613 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21614 OTOOL=$lt_OTOOL
21615
21616 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21617 OTOOL64=$lt_OTOOL64
21618
21619 # Old archive suffix (normally "a").
21620 libext=$libext
21621
21622 # Shared library suffix (normally ".so").
21623 shrext_cmds=$lt_shrext_cmds
21624
21625 # The commands to extract the exported symbol list from a shared archive.
21626 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21627
21628 # Variables whose values should be saved in libtool wrapper scripts and
21629 # restored at link time.
21630 variables_saved_for_relink=$lt_variables_saved_for_relink
21631
21632 # Do we need the "lib" prefix for modules?
21633 need_lib_prefix=$need_lib_prefix
21634
21635 # Do we need a version for libraries?
21636 need_version=$need_version
21637
21638 # Library versioning type.
21639 version_type=$version_type
21640
21641 # Shared library runtime path variable.
21642 runpath_var=$runpath_var
21643
21644 # Shared library path variable.
21645 shlibpath_var=$shlibpath_var
21646
21647 # Is shlibpath searched before the hard-coded library search path?
21648 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21649
21650 # Format of library name prefix.
21651 libname_spec=$lt_libname_spec
21652
21653 # List of archive names. First name is the real one, the rest are links.
21654 # The last name is the one that the linker finds with -lNAME
21655 library_names_spec=$lt_library_names_spec
21656
21657 # The coded name of the library, if different from the real name.
21658 soname_spec=$lt_soname_spec
21659
21660 # Permission mode override for installation of shared libraries.
21661 install_override_mode=$lt_install_override_mode
21662
21663 # Command to use after installation of a shared archive.
21664 postinstall_cmds=$lt_postinstall_cmds
21665
21666 # Command to use after uninstallation of a shared archive.
21667 postuninstall_cmds=$lt_postuninstall_cmds
21668
21669 # Commands used to finish a libtool library installation in a directory.
21670 finish_cmds=$lt_finish_cmds
21671
21672 # As "finish_cmds", except a single script fragment to be evaled but
21673 # not shown.
21674 finish_eval=$lt_finish_eval
21675
21676 # Whether we should hardcode library paths into libraries.
21677 hardcode_into_libs=$hardcode_into_libs
21678
21679 # Compile-time system search path for libraries.
21680 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21681
21682 # Detected run-time system search path for libraries.
21683 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21684
21685 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21686 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21687
21688 # Whether dlopen is supported.
21689 dlopen_support=$enable_dlopen
21690
21691 # Whether dlopen of programs is supported.
21692 dlopen_self=$enable_dlopen_self
21693
21694 # Whether dlopen of statically linked programs is supported.
21695 dlopen_self_static=$enable_dlopen_self_static
21696
21697 # Commands to strip libraries.
21698 old_striplib=$lt_old_striplib
21699 striplib=$lt_striplib
21700
21701
21702 # The linker used to build libraries.
21703 LD=$lt_LD
21704
21705 # How to create reloadable object files.
21706 reload_flag=$lt_reload_flag
21707 reload_cmds=$lt_reload_cmds
21708
21709 # Commands used to build an old-style archive.
21710 old_archive_cmds=$lt_old_archive_cmds
21711
21712 # A language specific compiler.
21713 CC=$lt_compiler
21714
21715 # Is the compiler the GNU compiler?
21716 with_gcc=$GCC
21717
21718 # Compiler flag to turn off builtin functions.
21719 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21720
21721 # Additional compiler flags for building library objects.
21722 pic_flag=$lt_lt_prog_compiler_pic
21723
21724 # How to pass a linker flag through the compiler.
21725 wl=$lt_lt_prog_compiler_wl
21726
21727 # Compiler flag to prevent dynamic linking.
21728 link_static_flag=$lt_lt_prog_compiler_static
21729
21730 # Does compiler simultaneously support -c and -o options?
21731 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21732
21733 # Whether or not to add -lc for building shared libraries.
21734 build_libtool_need_lc=$archive_cmds_need_lc
21735
21736 # Whether or not to disallow shared libs when runtime libs are static.
21737 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21738
21739 # Compiler flag to allow reflexive dlopens.
21740 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21741
21742 # Compiler flag to generate shared objects directly from archives.
21743 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21744
21745 # Whether the compiler copes with passing no objects directly.
21746 compiler_needs_object=$lt_compiler_needs_object
21747
21748 # Create an old-style archive from a shared archive.
21749 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21750
21751 # Create a temporary old-style archive to link instead of a shared archive.
21752 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21753
21754 # Commands used to build a shared archive.
21755 archive_cmds=$lt_archive_cmds
21756 archive_expsym_cmds=$lt_archive_expsym_cmds
21757
21758 # Commands used to build a loadable module if different from building
21759 # a shared archive.
21760 module_cmds=$lt_module_cmds
21761 module_expsym_cmds=$lt_module_expsym_cmds
21762
21763 # Whether we are building with GNU ld or not.
21764 with_gnu_ld=$lt_with_gnu_ld
21765
21766 # Flag that allows shared libraries with undefined symbols to be built.
21767 allow_undefined_flag=$lt_allow_undefined_flag
21768
21769 # Flag that enforces no undefined symbols.
21770 no_undefined_flag=$lt_no_undefined_flag
21771
21772 # Flag to hardcode \$libdir into a binary during linking.
21773 # This must work even if \$libdir does not exist
21774 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21775
21776 # Whether we need a single "-rpath" flag with a separated argument.
21777 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21778
21779 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21780 # DIR into the resulting binary.
21781 hardcode_direct=$hardcode_direct
21782
21783 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21784 # DIR into the resulting binary and the resulting library dependency is
21785 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21786 # library is relocated.
21787 hardcode_direct_absolute=$hardcode_direct_absolute
21788
21789 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21790 # into the resulting binary.
21791 hardcode_minus_L=$hardcode_minus_L
21792
21793 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21794 # into the resulting binary.
21795 hardcode_shlibpath_var=$hardcode_shlibpath_var
21796
21797 # Set to "yes" if building a shared library automatically hardcodes DIR
21798 # into the library and all subsequent libraries and executables linked
21799 # against it.
21800 hardcode_automatic=$hardcode_automatic
21801
21802 # Set to yes if linker adds runtime paths of dependent libraries
21803 # to runtime path list.
21804 inherit_rpath=$inherit_rpath
21805
21806 # Whether libtool must link a program against all its dependency libraries.
21807 link_all_deplibs=$link_all_deplibs
21808
21809 # Set to "yes" if exported symbols are required.
21810 always_export_symbols=$always_export_symbols
21811
21812 # The commands to list exported symbols.
21813 export_symbols_cmds=$lt_export_symbols_cmds
21814
21815 # Symbols that should not be listed in the preloaded symbols.
21816 exclude_expsyms=$lt_exclude_expsyms
21817
21818 # Symbols that must always be exported.
21819 include_expsyms=$lt_include_expsyms
21820
21821 # Commands necessary for linking programs (against libraries) with templates.
21822 prelink_cmds=$lt_prelink_cmds
21823
21824 # Commands necessary for finishing linking programs.
21825 postlink_cmds=$lt_postlink_cmds
21826
21827 # Specify filename containing input files.
21828 file_list_spec=$lt_file_list_spec
21829
21830 # How to hardcode a shared library path into an executable.
21831 hardcode_action=$hardcode_action
21832
21833 # ### END LIBTOOL CONFIG
21834
21835 _LT_EOF
21836
21837 cat <<'_LT_EOF' >> "$cfgfile"
21838
21839 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21840
21841 # func_munge_path_list VARIABLE PATH
21842 # -----------------------------------
21843 # VARIABLE is name of variable containing _space_ separated list of
21844 # directories to be munged by the contents of PATH, which is string
21845 # having a format:
21846 # "DIR[:DIR]:"
21847 # string "DIR[ DIR]" will be prepended to VARIABLE
21848 # ":DIR[:DIR]"
21849 # string "DIR[ DIR]" will be appended to VARIABLE
21850 # "DIRP[:DIRP]::[DIRA:]DIRA"
21851 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21852 # "DIRA[ DIRA]" will be appended to VARIABLE
21853 # "DIR[:DIR]"
21854 # VARIABLE will be replaced by "DIR[ DIR]"
21855 func_munge_path_list ()
21856 {
21857 case x$2 in
21858 x)
21859 ;;
21860 *:)
21861 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21862 ;;
21863 x:*)
21864 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21865 ;;
21866 *::*)
21867 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21868 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21869 ;;
21870 *)
21871 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21872 ;;
21873 esac
21874 }
21875
21876
21877 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21878 func_cc_basename ()
21879 {
21880 for cc_temp in $*""; do
21881 case $cc_temp in
21882 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21883 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21884 \-*) ;;
21885 *) break;;
21886 esac
21887 done
21888 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21889 }
21890
21891
21892 # ### END FUNCTIONS SHARED WITH CONFIGURE
21893
21894 _LT_EOF
21895
21896 case $host_os in
21897 aix3*)
21898 cat <<\_LT_EOF >> "$cfgfile"
21899 # AIX sometimes has problems with the GCC collect2 program. For some
21900 # reason, if we set the COLLECT_NAMES environment variable, the problems
21901 # vanish in a puff of smoke.
21902 if test set != "${COLLECT_NAMES+set}"; then
21903 COLLECT_NAMES=
21904 export COLLECT_NAMES
21905 fi
21906 _LT_EOF
21907 ;;
21908 esac
21909
21910
21911
21912 ltmain=$ac_aux_dir/ltmain.sh
21913
21914
21915 # We use sed instead of cat because bash on DJGPP gets confused if
21916 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21917 # text mode, it properly converts lines to CR/LF. This bash problem
21918 # is reportedly fixed, but why not run on old versions too?
21919 $SED '$q' "$ltmain" >> "$cfgfile" \
21920 || (rm -f "$cfgfile"; exit 1)
21921
21922 mv -f "$cfgfile" "$ofile" ||
21923 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21924 chmod +x "$ofile"
21925
21926 ;;
21927
21928 esac
21929 done # for ac_tag
21930
21931
21932 as_fn_exit 0
21933 _ACEOF
21934 ac_clean_files=$ac_clean_files_save
21935
21936 test $ac_write_fail = 0 ||
21937 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21938
21939
21940 # configure is writing to config.log, and then calls config.status.
21941 # config.status does its own redirection, appending to config.log.
21942 # Unfortunately, on DOS this fails, as config.log is still kept open
21943 # by configure, so config.status won't be able to write to it; its
21944 # output is simply discarded. So we exec the FD to /dev/null,
21945 # effectively closing config.log, so it can be properly (re)opened and
21946 # appended to by config.status. When coming back to configure, we
21947 # need to make the FD available again.
21948 if test "$no_create" != yes; then
21949 ac_cs_success=:
21950 ac_config_status_args=
21951 test "$silent" = yes &&
21952 ac_config_status_args="$ac_config_status_args --quiet"
21953 exec 5>/dev/null
21954 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21955 exec 5>>config.log
21956 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21957 # would make configure fail if this is the last instruction.
21958 $ac_cs_success || as_fn_exit 1
21959 fi
21960 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21962 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21963 fi
21964
21965