configure revision 1.1.1.10 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libxcb 1.13.1.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xcb>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
278 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xcb
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='libxcb'
593 PACKAGE_TARNAME='libxcb'
594 PACKAGE_VERSION='1.13.1'
595 PACKAGE_STRING='libxcb 1.13.1'
596 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xcb'
597 PACKAGE_URL=''
598
599 ac_unique_file="xcb.pc.in"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 XCB_SERVERSIDE_SUPPORT_FALSE
641 XCB_SERVERSIDE_SUPPORT_TRUE
642 LAUNCHD
643 BUILD_XVMC_FALSE
644 BUILD_XVMC_TRUE
645 BUILD_XV_FALSE
646 BUILD_XV_TRUE
647 BUILD_XTEST_FALSE
648 BUILD_XTEST_TRUE
649 BUILD_SELINUX_FALSE
650 BUILD_SELINUX_TRUE
651 BUILD_XPRINT_FALSE
652 BUILD_XPRINT_TRUE
653 BUILD_XKB_FALSE
654 BUILD_XKB_TRUE
655 BUILD_XINPUT_FALSE
656 BUILD_XINPUT_TRUE
657 BUILD_XINERAMA_FALSE
658 BUILD_XINERAMA_TRUE
659 BUILD_XFREE86_DRI_FALSE
660 BUILD_XFREE86_DRI_TRUE
661 BUILD_XFIXES_FALSE
662 BUILD_XFIXES_TRUE
663 BUILD_XEVIE_FALSE
664 BUILD_XEVIE_TRUE
665 BUILD_SYNC_FALSE
666 BUILD_SYNC_TRUE
667 BUILD_SHM_FALSE
668 BUILD_SHM_TRUE
669 BUILD_SHAPE_FALSE
670 BUILD_SHAPE_TRUE
671 BUILD_SCREENSAVER_FALSE
672 BUILD_SCREENSAVER_TRUE
673 BUILD_RESOURCE_FALSE
674 BUILD_RESOURCE_TRUE
675 BUILD_RENDER_FALSE
676 BUILD_RENDER_TRUE
677 BUILD_RECORD_FALSE
678 BUILD_RECORD_TRUE
679 BUILD_RANDR_FALSE
680 BUILD_RANDR_TRUE
681 BUILD_PRESENT_FALSE
682 BUILD_PRESENT_TRUE
683 BUILD_GLX_FALSE
684 BUILD_GLX_TRUE
685 BUILD_GE_FALSE
686 BUILD_GE_TRUE
687 BUILD_DRI3_FALSE
688 BUILD_DRI3_TRUE
689 BUILD_DRI2_FALSE
690 BUILD_DRI2_TRUE
691 BUILD_DPMS_FALSE
692 BUILD_DPMS_TRUE
693 BUILD_DAMAGE_FALSE
694 BUILD_DAMAGE_TRUE
695 BUILD_COMPOSITE_FALSE
696 BUILD_COMPOSITE_TRUE
697 xcbincludedir
698 XCB_HAVE_WIN32_FALSE
699 XCB_HAVE_WIN32_TRUE
700 lt_enable_auto_import
701 XCBPROTO_XCBPYTHONDIR
702 XCBPROTO_VERSION
703 XCBPROTO_XCBINCLUDEDIR
704 NEEDED
705 XDMCP_LIBS
706 XDMCP_CFLAGS
707 NEEDED_LIBS
708 NEEDED_CFLAGS
709 XCBPROTO_LIBS
710 XCBPROTO_CFLAGS
711 HTML_CHECK_RESULT
712 XSLTPROC
713 HAVE_CHECK_FALSE
714 HAVE_CHECK_TRUE
715 CHECK_LIBS
716 CHECK_CFLAGS
717 HAVE_DOXYGEN_FALSE
718 HAVE_DOXYGEN_TRUE
719 HAVE_DOT_FALSE
720 HAVE_DOT_TRUE
721 HAVE_DOT
722 DOT
723 DOXYGEN
724 ENABLE_DEVEL_DOCS_FALSE
725 ENABLE_DEVEL_DOCS_TRUE
726 MAN_SUBSTS
727 XORG_MAN_PAGE
728 ADMIN_MAN_DIR
729 DRIVER_MAN_DIR
730 MISC_MAN_DIR
731 FILE_MAN_DIR
732 LIB_MAN_DIR
733 APP_MAN_DIR
734 ADMIN_MAN_SUFFIX
735 DRIVER_MAN_SUFFIX
736 MISC_MAN_SUFFIX
737 FILE_MAN_SUFFIX
738 LIB_MAN_SUFFIX
739 APP_MAN_SUFFIX
740 INSTALL_CMD
741 PKG_CONFIG_LIBDIR
742 PKG_CONFIG_PATH
743 PKG_CONFIG
744 CHANGELOG_CMD
745 STRICT_CFLAGS
746 CWARNFLAGS
747 BASE_CFLAGS
748 LT_SYS_LIBRARY_PATH
749 OTOOL64
750 OTOOL
751 LIPO
752 NMEDIT
753 DSYMUTIL
754 MANIFEST_TOOL
755 RANLIB
756 ac_ct_AR
757 AR
758 LN_S
759 NM
760 ac_ct_DUMPBIN
761 DUMPBIN
762 LD
763 FGREP
764 SED
765 host_os
766 host_vendor
767 host_cpu
768 host
769 build_os
770 build_vendor
771 build_cpu
772 build
773 LIBTOOL
774 OBJDUMP
775 DLLTOOL
776 AS
777 EGREP
778 GREP
779 CPP
780 am__fastdepCC_FALSE
781 am__fastdepCC_TRUE
782 CCDEPMODE
783 am__nodep
784 AMDEPBACKSLASH
785 AMDEP_FALSE
786 AMDEP_TRUE
787 am__include
788 DEPDIR
789 OBJEXT
790 EXEEXT
791 ac_ct_CC
792 CPPFLAGS
793 LDFLAGS
794 CFLAGS
795 CC
796 pkgpyexecdir
797 pyexecdir
798 pkgpythondir
799 pythondir
800 PYTHON_PLATFORM
801 PYTHON_EXEC_PREFIX
802 PYTHON_PREFIX
803 PYTHON_VERSION
804 PYTHON
805 AM_BACKSLASH
806 AM_DEFAULT_VERBOSITY
807 AM_DEFAULT_V
808 AM_V
809 am__untar
810 am__tar
811 AMTAR
812 am__leading_dot
813 SET_MAKE
814 AWK
815 mkdir_p
816 MKDIR_P
817 INSTALL_STRIP_PROGRAM
818 STRIP
819 install_sh
820 MAKEINFO
821 AUTOHEADER
822 AUTOMAKE
823 AUTOCONF
824 ACLOCAL
825 VERSION
826 PACKAGE
827 CYGPATH_W
828 am__isrc
829 INSTALL_DATA
830 INSTALL_SCRIPT
831 INSTALL_PROGRAM
832 target_alias
833 host_alias
834 build_alias
835 LIBS
836 ECHO_T
837 ECHO_N
838 ECHO_C
839 DEFS
840 mandir
841 localedir
842 libdir
843 psdir
844 pdfdir
845 dvidir
846 htmldir
847 infodir
848 docdir
849 oldincludedir
850 includedir
851 runstatedir
852 localstatedir
853 sharedstatedir
854 sysconfdir
855 datadir
856 datarootdir
857 libexecdir
858 sbindir
859 bindir
860 program_transform_name
861 prefix
862 exec_prefix
863 PACKAGE_URL
864 PACKAGE_BUGREPORT
865 PACKAGE_STRING
866 PACKAGE_VERSION
867 PACKAGE_TARNAME
868 PACKAGE_NAME
869 PATH_SEPARATOR
870 SHELL
871 am__quote'
872 ac_subst_files=''
873 ac_user_opts='
874 enable_option_checking
875 enable_silent_rules
876 enable_dependency_tracking
877 enable_shared
878 enable_static
879 with_pic
880 enable_fast_install
881 with_aix_soname
882 with_gnu_ld
883 with_sysroot
884 enable_libtool_lock
885 enable_selective_werror
886 enable_strict_compilation
887 enable_devel_docs
888 with_doxygen
889 with_queue_size
890 enable_composite
891 enable_damage
892 enable_dpms
893 enable_dri2
894 enable_dri3
895 enable_ge
896 enable_glx
897 enable_present
898 enable_randr
899 enable_record
900 enable_render
901 enable_resource
902 enable_screensaver
903 enable_shape
904 enable_shm
905 enable_sync
906 enable_xevie
907 enable_xfixes
908 enable_xfree86_dri
909 enable_xinerama
910 enable_xinput
911 enable_xkb
912 enable_xprint
913 enable_selinux
914 enable_xtest
915 enable_xv
916 enable_xvmc
917 with_launchd
918 with_serverside_support
919 '
920 ac_precious_vars='build_alias
921 host_alias
922 target_alias
923 PYTHON
924 CC
925 CFLAGS
926 LDFLAGS
927 LIBS
928 CPPFLAGS
929 CPP
930 LT_SYS_LIBRARY_PATH
931 PKG_CONFIG
932 PKG_CONFIG_PATH
933 PKG_CONFIG_LIBDIR
934 DOXYGEN
935 DOT
936 CHECK_CFLAGS
937 CHECK_LIBS
938 XCBPROTO_CFLAGS
939 XCBPROTO_LIBS
940 NEEDED_CFLAGS
941 NEEDED_LIBS
942 XDMCP_CFLAGS
943 XDMCP_LIBS'
944
945
946 # Initialize some variables set by options.
947 ac_init_help=
948 ac_init_version=false
949 ac_unrecognized_opts=
950 ac_unrecognized_sep=
951 # The variables have the same names as the options, with
952 # dashes changed to underlines.
953 cache_file=/dev/null
954 exec_prefix=NONE
955 no_create=
956 no_recursion=
957 prefix=NONE
958 program_prefix=NONE
959 program_suffix=NONE
960 program_transform_name=s,x,x,
961 silent=
962 site=
963 srcdir=
964 verbose=
965 x_includes=NONE
966 x_libraries=NONE
967
968 # Installation directory options.
969 # These are left unexpanded so users can "make install exec_prefix=/foo"
970 # and all the variables that are supposed to be based on exec_prefix
971 # by default will actually change.
972 # Use braces instead of parens because sh, perl, etc. also accept them.
973 # (The list follows the same order as the GNU Coding Standards.)
974 bindir='${exec_prefix}/bin'
975 sbindir='${exec_prefix}/sbin'
976 libexecdir='${exec_prefix}/libexec'
977 datarootdir='${prefix}/share'
978 datadir='${datarootdir}'
979 sysconfdir='${prefix}/etc'
980 sharedstatedir='${prefix}/com'
981 localstatedir='${prefix}/var'
982 runstatedir='${localstatedir}/run'
983 includedir='${prefix}/include'
984 oldincludedir='/usr/include'
985 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
986 infodir='${datarootdir}/info'
987 htmldir='${docdir}'
988 dvidir='${docdir}'
989 pdfdir='${docdir}'
990 psdir='${docdir}'
991 libdir='${exec_prefix}/lib'
992 localedir='${datarootdir}/locale'
993 mandir='${datarootdir}/man'
994
995 ac_prev=
996 ac_dashdash=
997 for ac_option
998 do
999 # If the previous option needs an argument, assign it.
1000 if test -n "$ac_prev"; then
1001 eval $ac_prev=\$ac_option
1002 ac_prev=
1003 continue
1004 fi
1005
1006 case $ac_option in
1007 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1008 *=) ac_optarg= ;;
1009 *) ac_optarg=yes ;;
1010 esac
1011
1012 # Accept the important Cygnus configure options, so we can diagnose typos.
1013
1014 case $ac_dashdash$ac_option in
1015 --)
1016 ac_dashdash=yes ;;
1017
1018 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1019 ac_prev=bindir ;;
1020 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1021 bindir=$ac_optarg ;;
1022
1023 -build | --build | --buil | --bui | --bu)
1024 ac_prev=build_alias ;;
1025 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1026 build_alias=$ac_optarg ;;
1027
1028 -cache-file | --cache-file | --cache-fil | --cache-fi \
1029 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1030 ac_prev=cache_file ;;
1031 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1032 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1033 cache_file=$ac_optarg ;;
1034
1035 --config-cache | -C)
1036 cache_file=config.cache ;;
1037
1038 -datadir | --datadir | --datadi | --datad)
1039 ac_prev=datadir ;;
1040 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1041 datadir=$ac_optarg ;;
1042
1043 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1044 | --dataroo | --dataro | --datar)
1045 ac_prev=datarootdir ;;
1046 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1047 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1048 datarootdir=$ac_optarg ;;
1049
1050 -disable-* | --disable-*)
1051 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054 as_fn_error $? "invalid feature name: $ac_useropt"
1055 ac_useropt_orig=$ac_useropt
1056 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057 case $ac_user_opts in
1058 *"
1059 "enable_$ac_useropt"
1060 "*) ;;
1061 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1062 ac_unrecognized_sep=', ';;
1063 esac
1064 eval enable_$ac_useropt=no ;;
1065
1066 -docdir | --docdir | --docdi | --doc | --do)
1067 ac_prev=docdir ;;
1068 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1069 docdir=$ac_optarg ;;
1070
1071 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1072 ac_prev=dvidir ;;
1073 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1074 dvidir=$ac_optarg ;;
1075
1076 -enable-* | --enable-*)
1077 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1080 as_fn_error $? "invalid feature name: $ac_useropt"
1081 ac_useropt_orig=$ac_useropt
1082 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083 case $ac_user_opts in
1084 *"
1085 "enable_$ac_useropt"
1086 "*) ;;
1087 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1088 ac_unrecognized_sep=', ';;
1089 esac
1090 eval enable_$ac_useropt=\$ac_optarg ;;
1091
1092 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1093 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1094 | --exec | --exe | --ex)
1095 ac_prev=exec_prefix ;;
1096 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1097 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1098 | --exec=* | --exe=* | --ex=*)
1099 exec_prefix=$ac_optarg ;;
1100
1101 -gas | --gas | --ga | --g)
1102 # Obsolete; use --with-gas.
1103 with_gas=yes ;;
1104
1105 -help | --help | --hel | --he | -h)
1106 ac_init_help=long ;;
1107 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1108 ac_init_help=recursive ;;
1109 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1110 ac_init_help=short ;;
1111
1112 -host | --host | --hos | --ho)
1113 ac_prev=host_alias ;;
1114 -host=* | --host=* | --hos=* | --ho=*)
1115 host_alias=$ac_optarg ;;
1116
1117 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1118 ac_prev=htmldir ;;
1119 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1120 | --ht=*)
1121 htmldir=$ac_optarg ;;
1122
1123 -includedir | --includedir | --includedi | --included | --include \
1124 | --includ | --inclu | --incl | --inc)
1125 ac_prev=includedir ;;
1126 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1127 | --includ=* | --inclu=* | --incl=* | --inc=*)
1128 includedir=$ac_optarg ;;
1129
1130 -infodir | --infodir | --infodi | --infod | --info | --inf)
1131 ac_prev=infodir ;;
1132 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1133 infodir=$ac_optarg ;;
1134
1135 -libdir | --libdir | --libdi | --libd)
1136 ac_prev=libdir ;;
1137 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1138 libdir=$ac_optarg ;;
1139
1140 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1141 | --libexe | --libex | --libe)
1142 ac_prev=libexecdir ;;
1143 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1144 | --libexe=* | --libex=* | --libe=*)
1145 libexecdir=$ac_optarg ;;
1146
1147 -localedir | --localedir | --localedi | --localed | --locale)
1148 ac_prev=localedir ;;
1149 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1150 localedir=$ac_optarg ;;
1151
1152 -localstatedir | --localstatedir | --localstatedi | --localstated \
1153 | --localstate | --localstat | --localsta | --localst | --locals)
1154 ac_prev=localstatedir ;;
1155 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1156 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1157 localstatedir=$ac_optarg ;;
1158
1159 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1160 ac_prev=mandir ;;
1161 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1162 mandir=$ac_optarg ;;
1163
1164 -nfp | --nfp | --nf)
1165 # Obsolete; use --without-fp.
1166 with_fp=no ;;
1167
1168 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1169 | --no-cr | --no-c | -n)
1170 no_create=yes ;;
1171
1172 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1173 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1174 no_recursion=yes ;;
1175
1176 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1177 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1178 | --oldin | --oldi | --old | --ol | --o)
1179 ac_prev=oldincludedir ;;
1180 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1181 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1182 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1183 oldincludedir=$ac_optarg ;;
1184
1185 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1186 ac_prev=prefix ;;
1187 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1188 prefix=$ac_optarg ;;
1189
1190 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1191 | --program-pre | --program-pr | --program-p)
1192 ac_prev=program_prefix ;;
1193 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1194 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1195 program_prefix=$ac_optarg ;;
1196
1197 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1198 | --program-suf | --program-su | --program-s)
1199 ac_prev=program_suffix ;;
1200 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1201 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1202 program_suffix=$ac_optarg ;;
1203
1204 -program-transform-name | --program-transform-name \
1205 | --program-transform-nam | --program-transform-na \
1206 | --program-transform-n | --program-transform- \
1207 | --program-transform | --program-transfor \
1208 | --program-transfo | --program-transf \
1209 | --program-trans | --program-tran \
1210 | --progr-tra | --program-tr | --program-t)
1211 ac_prev=program_transform_name ;;
1212 -program-transform-name=* | --program-transform-name=* \
1213 | --program-transform-nam=* | --program-transform-na=* \
1214 | --program-transform-n=* | --program-transform-=* \
1215 | --program-transform=* | --program-transfor=* \
1216 | --program-transfo=* | --program-transf=* \
1217 | --program-trans=* | --program-tran=* \
1218 | --progr-tra=* | --program-tr=* | --program-t=*)
1219 program_transform_name=$ac_optarg ;;
1220
1221 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1222 ac_prev=pdfdir ;;
1223 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1224 pdfdir=$ac_optarg ;;
1225
1226 -psdir | --psdir | --psdi | --psd | --ps)
1227 ac_prev=psdir ;;
1228 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1229 psdir=$ac_optarg ;;
1230
1231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1232 | -silent | --silent | --silen | --sile | --sil)
1233 silent=yes ;;
1234
1235 -runstatedir | --runstatedir | --runstatedi | --runstated \
1236 | --runstate | --runstat | --runsta | --runst | --runs \
1237 | --run | --ru | --r)
1238 ac_prev=runstatedir ;;
1239 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1240 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1241 | --run=* | --ru=* | --r=*)
1242 runstatedir=$ac_optarg ;;
1243
1244 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1245 ac_prev=sbindir ;;
1246 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1247 | --sbi=* | --sb=*)
1248 sbindir=$ac_optarg ;;
1249
1250 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1251 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1252 | --sharedst | --shareds | --shared | --share | --shar \
1253 | --sha | --sh)
1254 ac_prev=sharedstatedir ;;
1255 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1256 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1257 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1258 | --sha=* | --sh=*)
1259 sharedstatedir=$ac_optarg ;;
1260
1261 -site | --site | --sit)
1262 ac_prev=site ;;
1263 -site=* | --site=* | --sit=*)
1264 site=$ac_optarg ;;
1265
1266 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1267 ac_prev=srcdir ;;
1268 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1269 srcdir=$ac_optarg ;;
1270
1271 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1272 | --syscon | --sysco | --sysc | --sys | --sy)
1273 ac_prev=sysconfdir ;;
1274 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1275 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1276 sysconfdir=$ac_optarg ;;
1277
1278 -target | --target | --targe | --targ | --tar | --ta | --t)
1279 ac_prev=target_alias ;;
1280 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1281 target_alias=$ac_optarg ;;
1282
1283 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1284 verbose=yes ;;
1285
1286 -version | --version | --versio | --versi | --vers | -V)
1287 ac_init_version=: ;;
1288
1289 -with-* | --with-*)
1290 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293 as_fn_error $? "invalid package name: $ac_useropt"
1294 ac_useropt_orig=$ac_useropt
1295 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296 case $ac_user_opts in
1297 *"
1298 "with_$ac_useropt"
1299 "*) ;;
1300 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1301 ac_unrecognized_sep=', ';;
1302 esac
1303 eval with_$ac_useropt=\$ac_optarg ;;
1304
1305 -without-* | --without-*)
1306 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1307 # Reject names that are not valid shell variable names.
1308 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1309 as_fn_error $? "invalid package name: $ac_useropt"
1310 ac_useropt_orig=$ac_useropt
1311 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1312 case $ac_user_opts in
1313 *"
1314 "with_$ac_useropt"
1315 "*) ;;
1316 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1317 ac_unrecognized_sep=', ';;
1318 esac
1319 eval with_$ac_useropt=no ;;
1320
1321 --x)
1322 # Obsolete; use --with-x.
1323 with_x=yes ;;
1324
1325 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1326 | --x-incl | --x-inc | --x-in | --x-i)
1327 ac_prev=x_includes ;;
1328 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1329 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1330 x_includes=$ac_optarg ;;
1331
1332 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1333 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1334 ac_prev=x_libraries ;;
1335 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1336 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1337 x_libraries=$ac_optarg ;;
1338
1339 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1340 Try \`$0 --help' for more information"
1341 ;;
1342
1343 *=*)
1344 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1345 # Reject names that are not valid shell variable names.
1346 case $ac_envvar in #(
1347 '' | [0-9]* | *[!_$as_cr_alnum]* )
1348 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1349 esac
1350 eval $ac_envvar=\$ac_optarg
1351 export $ac_envvar ;;
1352
1353 *)
1354 # FIXME: should be removed in autoconf 3.0.
1355 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1356 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1357 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1358 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1359 ;;
1360
1361 esac
1362 done
1363
1364 if test -n "$ac_prev"; then
1365 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1366 as_fn_error $? "missing argument to $ac_option"
1367 fi
1368
1369 if test -n "$ac_unrecognized_opts"; then
1370 case $enable_option_checking in
1371 no) ;;
1372 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1373 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1374 esac
1375 fi
1376
1377 # Check all directory arguments for consistency.
1378 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1379 datadir sysconfdir sharedstatedir localstatedir includedir \
1380 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1381 libdir localedir mandir runstatedir
1382 do
1383 eval ac_val=\$$ac_var
1384 # Remove trailing slashes.
1385 case $ac_val in
1386 */ )
1387 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1388 eval $ac_var=\$ac_val;;
1389 esac
1390 # Be sure to have absolute directory names.
1391 case $ac_val in
1392 [\\/$]* | ?:[\\/]* ) continue;;
1393 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1394 esac
1395 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1396 done
1397
1398 # There might be people who depend on the old broken behavior: `$host'
1399 # used to hold the argument of --host etc.
1400 # FIXME: To remove some day.
1401 build=$build_alias
1402 host=$host_alias
1403 target=$target_alias
1404
1405 # FIXME: To remove some day.
1406 if test "x$host_alias" != x; then
1407 if test "x$build_alias" = x; then
1408 cross_compiling=maybe
1409 elif test "x$build_alias" != "x$host_alias"; then
1410 cross_compiling=yes
1411 fi
1412 fi
1413
1414 ac_tool_prefix=
1415 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1416
1417 test "$silent" = yes && exec 6>/dev/null
1418
1419
1420 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1421 ac_ls_di=`ls -di .` &&
1422 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1423 as_fn_error $? "working directory cannot be determined"
1424 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1425 as_fn_error $? "pwd does not report name of working directory"
1426
1427
1428 # Find the source files, if location was not specified.
1429 if test -z "$srcdir"; then
1430 ac_srcdir_defaulted=yes
1431 # Try the directory containing this script, then the parent directory.
1432 ac_confdir=`$as_dirname -- "$as_myself" ||
1433 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1434 X"$as_myself" : 'X\(//\)[^/]' \| \
1435 X"$as_myself" : 'X\(//\)$' \| \
1436 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1437 $as_echo X"$as_myself" |
1438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1439 s//\1/
1440 q
1441 }
1442 /^X\(\/\/\)[^/].*/{
1443 s//\1/
1444 q
1445 }
1446 /^X\(\/\/\)$/{
1447 s//\1/
1448 q
1449 }
1450 /^X\(\/\).*/{
1451 s//\1/
1452 q
1453 }
1454 s/.*/./; q'`
1455 srcdir=$ac_confdir
1456 if test ! -r "$srcdir/$ac_unique_file"; then
1457 srcdir=..
1458 fi
1459 else
1460 ac_srcdir_defaulted=no
1461 fi
1462 if test ! -r "$srcdir/$ac_unique_file"; then
1463 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1464 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1465 fi
1466 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1467 ac_abs_confdir=`(
1468 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1469 pwd)`
1470 # When building in place, set srcdir=.
1471 if test "$ac_abs_confdir" = "$ac_pwd"; then
1472 srcdir=.
1473 fi
1474 # Remove unnecessary trailing slashes from srcdir.
1475 # Double slashes in file names in object file debugging info
1476 # mess up M-x gdb in Emacs.
1477 case $srcdir in
1478 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1479 esac
1480 for ac_var in $ac_precious_vars; do
1481 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1482 eval ac_env_${ac_var}_value=\$${ac_var}
1483 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1484 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1485 done
1486
1487 #
1488 # Report the --help message.
1489 #
1490 if test "$ac_init_help" = "long"; then
1491 # Omit some internal or obsolete options to make the list less imposing.
1492 # This message is too long to be a string in the A/UX 3.1 sh.
1493 cat <<_ACEOF
1494 \`configure' configures libxcb 1.13.1 to adapt to many kinds of systems.
1495
1496 Usage: $0 [OPTION]... [VAR=VALUE]...
1497
1498 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1499 VAR=VALUE. See below for descriptions of some of the useful variables.
1500
1501 Defaults for the options are specified in brackets.
1502
1503 Configuration:
1504 -h, --help display this help and exit
1505 --help=short display options specific to this package
1506 --help=recursive display the short help of all the included packages
1507 -V, --version display version information and exit
1508 -q, --quiet, --silent do not print \`checking ...' messages
1509 --cache-file=FILE cache test results in FILE [disabled]
1510 -C, --config-cache alias for \`--cache-file=config.cache'
1511 -n, --no-create do not create output files
1512 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1513
1514 Installation directories:
1515 --prefix=PREFIX install architecture-independent files in PREFIX
1516 [$ac_default_prefix]
1517 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1518 [PREFIX]
1519
1520 By default, \`make install' will install all the files in
1521 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1522 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1523 for instance \`--prefix=\$HOME'.
1524
1525 For better control, use the options below.
1526
1527 Fine tuning of the installation directories:
1528 --bindir=DIR user executables [EPREFIX/bin]
1529 --sbindir=DIR system admin executables [EPREFIX/sbin]
1530 --libexecdir=DIR program executables [EPREFIX/libexec]
1531 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1532 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1533 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1534 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1535 --libdir=DIR object code libraries [EPREFIX/lib]
1536 --includedir=DIR C header files [PREFIX/include]
1537 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1538 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1539 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1540 --infodir=DIR info documentation [DATAROOTDIR/info]
1541 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1542 --mandir=DIR man documentation [DATAROOTDIR/man]
1543 --docdir=DIR documentation root [DATAROOTDIR/doc/libxcb]
1544 --htmldir=DIR html documentation [DOCDIR]
1545 --dvidir=DIR dvi documentation [DOCDIR]
1546 --pdfdir=DIR pdf documentation [DOCDIR]
1547 --psdir=DIR ps documentation [DOCDIR]
1548 _ACEOF
1549
1550 cat <<\_ACEOF
1551
1552 Program names:
1553 --program-prefix=PREFIX prepend PREFIX to installed program names
1554 --program-suffix=SUFFIX append SUFFIX to installed program names
1555 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1556
1557 System types:
1558 --build=BUILD configure for building on BUILD [guessed]
1559 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1560 _ACEOF
1561 fi
1562
1563 if test -n "$ac_init_help"; then
1564 case $ac_init_help in
1565 short | recursive ) echo "Configuration of libxcb 1.13.1:";;
1566 esac
1567 cat <<\_ACEOF
1568
1569 Optional Features:
1570 --disable-option-checking ignore unrecognized --enable/--with options
1571 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1572 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1573 --enable-silent-rules less verbose build output (undo: "make V=1")
1574 --disable-silent-rules verbose build output (undo: "make V=0")
1575 --enable-dependency-tracking
1576 do not reject slow dependency extractors
1577 --disable-dependency-tracking
1578 speeds up one-time build
1579 --enable-shared[=PKGS] build shared libraries [default=yes]
1580 --enable-static[=PKGS] build static libraries [default=yes]
1581 --enable-fast-install[=PKGS]
1582 optimize for fast installation [default=yes]
1583 --disable-libtool-lock avoid locking (might break parallel builds)
1584 --disable-selective-werror
1585 Turn off selective compiler errors. (default:
1586 enabled)
1587 --enable-strict-compilation
1588 Enable all warnings from compiler and make them
1589 errors (default: disabled)
1590 --enable-devel-docs Enable building the developer documentation
1591 (default: yes)
1592 --enable-composite Build XCB Composite Extension (default: yes)
1593 --enable-damage Build XCB Damage Extension (default: yes)
1594 --enable-dpms Build XCB DPMS Extension (default: yes)
1595 --enable-dri2 Build XCB DRI2 Extension (default: yes)
1596 --enable-dri3 Build XCB DRI3 Extension (default: auto)
1597 --enable-ge Build XCB GE Extension (default: no)
1598 --enable-glx Build XCB GLX Extension (default: yes)
1599 --enable-present Build XCB Present Extension (default: yes)
1600 --enable-randr Build XCB RandR Extension (default: yes)
1601 --enable-record Build XCB Record Extension (default: yes)
1602 --enable-render Build XCB Render Extension (default: yes)
1603 --enable-resource Build XCB Resource Extension (default: yes)
1604 --enable-screensaver Build XCB Screensaver Extension (default: yes)
1605 --enable-shape Build XCB Shape Extension (default: yes)
1606 --enable-shm Build XCB Shm Extension (default: yes)
1607 --enable-sync Build XCB Sync Extension (default: yes)
1608 --enable-xevie Build XCB Xevie Extension (default: no)
1609 --enable-xfixes Build XCB XFixes Extension (default: yes)
1610 --enable-xfree86-dri Build XCB XFree86-DRI Extension (default: yes)
1611 --enable-xinerama Build XCB Xinerama Extension (default: yes)
1612 --enable-xinput Build XCB XInput Extension (default: yes)
1613 --enable-xkb Build XCB XKB Extension (default: yes)
1614 --enable-xprint Build XCB Xprint Extension (default: no)
1615 --enable-selinux Build XCB SELinux Extension (default: no)
1616 --enable-xtest Build XCB XTest Extension (default: yes)
1617 --enable-xv Build XCB Xv Extension (default: yes)
1618 --enable-xvmc Build XCB XvMC Extension (default: yes)
1619
1620 Optional Packages:
1621 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1622 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1623 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1624 both]
1625 --with-aix-soname=aix|svr4|both
1626 shared library versioning (aka "SONAME") variant to
1627 provide on AIX, [default=aix].
1628 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1629 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1630 compiler's sysroot if not specified).
1631 --with-doxygen Use doxygen to regenerate documentation (default:
1632 auto)
1633 --with-queue-size=SIZE Set the XCB buffer queue size (default is 16384)
1634 --with-launchd Build with support for Apple's launchd (default:
1635 auto)
1636 --with-serverside-support
1637 Build with support for server-side usage of xcb.
1638 This is still EXPERIMENTAL! ABI/API may change!
1639 (default: no)
1640
1641 Some influential environment variables:
1642 PYTHON the Python interpreter
1643 CC C compiler command
1644 CFLAGS C compiler flags
1645 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1646 nonstandard directory <lib dir>
1647 LIBS libraries to pass to the linker, e.g. -l<library>
1648 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1649 you have headers in a nonstandard directory <include dir>
1650 CPP C preprocessor
1651 LT_SYS_LIBRARY_PATH
1652 User-defined run-time library search path.
1653 PKG_CONFIG path to pkg-config utility
1654 PKG_CONFIG_PATH
1655 directories to add to pkg-config's search path
1656 PKG_CONFIG_LIBDIR
1657 path overriding pkg-config's built-in search path
1658 DOXYGEN Path to doxygen command
1659 DOT Path to the dot graphics utility
1660 CHECK_CFLAGS
1661 C compiler flags for CHECK, overriding pkg-config
1662 CHECK_LIBS linker flags for CHECK, overriding pkg-config
1663 XCBPROTO_CFLAGS
1664 C compiler flags for XCBPROTO, overriding pkg-config
1665 XCBPROTO_LIBS
1666 linker flags for XCBPROTO, overriding pkg-config
1667 NEEDED_CFLAGS
1668 C compiler flags for NEEDED, overriding pkg-config
1669 NEEDED_LIBS linker flags for NEEDED, overriding pkg-config
1670 XDMCP_CFLAGS
1671 C compiler flags for XDMCP, overriding pkg-config
1672 XDMCP_LIBS linker flags for XDMCP, overriding pkg-config
1673
1674 Use these variables to override the choices made by `configure' or to help
1675 it to find libraries and programs with nonstandard names/locations.
1676
1677 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xcb>.
1678 _ACEOF
1679 ac_status=$?
1680 fi
1681
1682 if test "$ac_init_help" = "recursive"; then
1683 # If there are subdirs, report their specific --help.
1684 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1685 test -d "$ac_dir" ||
1686 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1687 continue
1688 ac_builddir=.
1689
1690 case "$ac_dir" in
1691 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1692 *)
1693 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1694 # A ".." for each directory in $ac_dir_suffix.
1695 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1696 case $ac_top_builddir_sub in
1697 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1698 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1699 esac ;;
1700 esac
1701 ac_abs_top_builddir=$ac_pwd
1702 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1703 # for backward compatibility:
1704 ac_top_builddir=$ac_top_build_prefix
1705
1706 case $srcdir in
1707 .) # We are building in place.
1708 ac_srcdir=.
1709 ac_top_srcdir=$ac_top_builddir_sub
1710 ac_abs_top_srcdir=$ac_pwd ;;
1711 [\\/]* | ?:[\\/]* ) # Absolute name.
1712 ac_srcdir=$srcdir$ac_dir_suffix;
1713 ac_top_srcdir=$srcdir
1714 ac_abs_top_srcdir=$srcdir ;;
1715 *) # Relative name.
1716 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1717 ac_top_srcdir=$ac_top_build_prefix$srcdir
1718 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1719 esac
1720 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1721
1722 cd "$ac_dir" || { ac_status=$?; continue; }
1723 # Check for guested configure.
1724 if test -f "$ac_srcdir/configure.gnu"; then
1725 echo &&
1726 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1727 elif test -f "$ac_srcdir/configure"; then
1728 echo &&
1729 $SHELL "$ac_srcdir/configure" --help=recursive
1730 else
1731 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1732 fi || ac_status=$?
1733 cd "$ac_pwd" || { ac_status=$?; break; }
1734 done
1735 fi
1736
1737 test -n "$ac_init_help" && exit $ac_status
1738 if $ac_init_version; then
1739 cat <<\_ACEOF
1740 libxcb configure 1.13.1
1741 generated by GNU Autoconf 2.69
1742
1743 Copyright (C) 2012 Free Software Foundation, Inc.
1744 This configure script is free software; the Free Software Foundation
1745 gives unlimited permission to copy, distribute and modify it.
1746 _ACEOF
1747 exit
1748 fi
1749
1750 ## ------------------------ ##
1751 ## Autoconf initialization. ##
1752 ## ------------------------ ##
1753
1754 # ac_fn_c_try_compile LINENO
1755 # --------------------------
1756 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1757 ac_fn_c_try_compile ()
1758 {
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 rm -f conftest.$ac_objext
1761 if { { ac_try="$ac_compile"
1762 case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765 esac
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_compile") 2>conftest.err
1769 ac_status=$?
1770 if test -s conftest.err; then
1771 grep -v '^ *+' conftest.err >conftest.er1
1772 cat conftest.er1 >&5
1773 mv -f conftest.er1 conftest.err
1774 fi
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; } && {
1777 test -z "$ac_c_werror_flag" ||
1778 test ! -s conftest.err
1779 } && test -s conftest.$ac_objext; then :
1780 ac_retval=0
1781 else
1782 $as_echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1784
1785 ac_retval=1
1786 fi
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788 as_fn_set_status $ac_retval
1789
1790 } # ac_fn_c_try_compile
1791
1792 # ac_fn_c_try_cpp LINENO
1793 # ----------------------
1794 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1795 ac_fn_c_try_cpp ()
1796 {
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 if { { ac_try="$ac_cpp conftest.$ac_ext"
1799 case "(($ac_try" in
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1802 esac
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 $as_echo "$ac_try_echo"; } >&5
1805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1806 ac_status=$?
1807 if test -s conftest.err; then
1808 grep -v '^ *+' conftest.err >conftest.er1
1809 cat conftest.er1 >&5
1810 mv -f conftest.er1 conftest.err
1811 fi
1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; } > conftest.i && {
1814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1815 test ! -s conftest.err
1816 }; then :
1817 ac_retval=0
1818 else
1819 $as_echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1821
1822 ac_retval=1
1823 fi
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 as_fn_set_status $ac_retval
1826
1827 } # ac_fn_c_try_cpp
1828
1829 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1830 # -------------------------------------------------------
1831 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1832 # the include files in INCLUDES and setting the cache variable VAR
1833 # accordingly.
1834 ac_fn_c_check_header_mongrel ()
1835 {
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 if eval \${$3+:} false; then :
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839 $as_echo_n "checking for $2... " >&6; }
1840 if eval \${$3+:} false; then :
1841 $as_echo_n "(cached) " >&6
1842 fi
1843 eval ac_res=\$$3
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1845 $as_echo "$ac_res" >&6; }
1846 else
1847 # Is the header compilable?
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1849 $as_echo_n "checking $2 usability... " >&6; }
1850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851 /* end confdefs.h. */
1852 $4
1853 #include <$2>
1854 _ACEOF
1855 if ac_fn_c_try_compile "$LINENO"; then :
1856 ac_header_compiler=yes
1857 else
1858 ac_header_compiler=no
1859 fi
1860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1862 $as_echo "$ac_header_compiler" >&6; }
1863
1864 # Is the header present?
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1866 $as_echo_n "checking $2 presence... " >&6; }
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h. */
1869 #include <$2>
1870 _ACEOF
1871 if ac_fn_c_try_cpp "$LINENO"; then :
1872 ac_header_preproc=yes
1873 else
1874 ac_header_preproc=no
1875 fi
1876 rm -f conftest.err conftest.i conftest.$ac_ext
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1878 $as_echo "$ac_header_preproc" >&6; }
1879
1880 # So? What about this header?
1881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1882 yes:no: )
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1884 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1886 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1887 ;;
1888 no:yes:* )
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1890 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1892 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1894 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1896 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1898 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1899 ( $as_echo "## --------------------------------------------------------------------- ##
1900 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xcb ##
1901 ## --------------------------------------------------------------------- ##"
1902 ) | sed "s/^/$as_me: WARNING: /" >&2
1903 ;;
1904 esac
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906 $as_echo_n "checking for $2... " >&6; }
1907 if eval \${$3+:} false; then :
1908 $as_echo_n "(cached) " >&6
1909 else
1910 eval "$3=\$ac_header_compiler"
1911 fi
1912 eval ac_res=\$$3
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914 $as_echo "$ac_res" >&6; }
1915 fi
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917
1918 } # ac_fn_c_check_header_mongrel
1919
1920 # ac_fn_c_try_run LINENO
1921 # ----------------------
1922 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1923 # that executables *can* be run.
1924 ac_fn_c_try_run ()
1925 {
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 if { { ac_try="$ac_link"
1928 case "(($ac_try" in
1929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1930 *) ac_try_echo=$ac_try;;
1931 esac
1932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933 $as_echo "$ac_try_echo"; } >&5
1934 (eval "$ac_link") 2>&5
1935 ac_status=$?
1936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1937 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1938 { { case "(($ac_try" in
1939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940 *) ac_try_echo=$ac_try;;
1941 esac
1942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943 $as_echo "$ac_try_echo"; } >&5
1944 (eval "$ac_try") 2>&5
1945 ac_status=$?
1946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947 test $ac_status = 0; }; }; then :
1948 ac_retval=0
1949 else
1950 $as_echo "$as_me: program exited with status $ac_status" >&5
1951 $as_echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.$ac_ext >&5
1953
1954 ac_retval=$ac_status
1955 fi
1956 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1957 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958 as_fn_set_status $ac_retval
1959
1960 } # ac_fn_c_try_run
1961
1962 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1963 # -------------------------------------------------------
1964 # Tests whether HEADER exists and can be compiled using the include files in
1965 # INCLUDES, setting the cache variable VAR accordingly.
1966 ac_fn_c_check_header_compile ()
1967 {
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1970 $as_echo_n "checking for $2... " >&6; }
1971 if eval \${$3+:} false; then :
1972 $as_echo_n "(cached) " >&6
1973 else
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1976 $4
1977 #include <$2>
1978 _ACEOF
1979 if ac_fn_c_try_compile "$LINENO"; then :
1980 eval "$3=yes"
1981 else
1982 eval "$3=no"
1983 fi
1984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985 fi
1986 eval ac_res=\$$3
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1988 $as_echo "$ac_res" >&6; }
1989 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1990
1991 } # ac_fn_c_check_header_compile
1992
1993 # ac_fn_c_try_link LINENO
1994 # -----------------------
1995 # Try to link conftest.$ac_ext, and return whether this succeeded.
1996 ac_fn_c_try_link ()
1997 {
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 rm -f conftest.$ac_objext conftest$ac_exeext
2000 if { { ac_try="$ac_link"
2001 case "(($ac_try" in
2002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2003 *) ac_try_echo=$ac_try;;
2004 esac
2005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2006 $as_echo "$ac_try_echo"; } >&5
2007 (eval "$ac_link") 2>conftest.err
2008 ac_status=$?
2009 if test -s conftest.err; then
2010 grep -v '^ *+' conftest.err >conftest.er1
2011 cat conftest.er1 >&5
2012 mv -f conftest.er1 conftest.err
2013 fi
2014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2015 test $ac_status = 0; } && {
2016 test -z "$ac_c_werror_flag" ||
2017 test ! -s conftest.err
2018 } && test -s conftest$ac_exeext && {
2019 test "$cross_compiling" = yes ||
2020 test -x conftest$ac_exeext
2021 }; then :
2022 ac_retval=0
2023 else
2024 $as_echo "$as_me: failed program was:" >&5
2025 sed 's/^/| /' conftest.$ac_ext >&5
2026
2027 ac_retval=1
2028 fi
2029 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2030 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2031 # interfere with the next link command; also delete a directory that is
2032 # left behind by Apple's compiler. We do this before executing the actions.
2033 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2034 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2035 as_fn_set_status $ac_retval
2036
2037 } # ac_fn_c_try_link
2038
2039 # ac_fn_c_check_func LINENO FUNC VAR
2040 # ----------------------------------
2041 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2042 ac_fn_c_check_func ()
2043 {
2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2046 $as_echo_n "checking for $2... " >&6; }
2047 if eval \${$3+:} false; then :
2048 $as_echo_n "(cached) " >&6
2049 else
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h. */
2052 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2054 #define $2 innocuous_$2
2055
2056 /* System header to define __stub macros and hopefully few prototypes,
2057 which can conflict with char $2 (); below.
2058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2059 <limits.h> exists even on freestanding compilers. */
2060
2061 #ifdef __STDC__
2062 # include <limits.h>
2063 #else
2064 # include <assert.h>
2065 #endif
2066
2067 #undef $2
2068
2069 /* Override any GCC internal prototype to avoid an error.
2070 Use char because int might match the return type of a GCC
2071 builtin and then its argument prototype would still apply. */
2072 #ifdef __cplusplus
2073 extern "C"
2074 #endif
2075 char $2 ();
2076 /* The GNU C library defines this for functions which it implements
2077 to always fail with ENOSYS. Some functions are actually named
2078 something starting with __ and the normal name is an alias. */
2079 #if defined __stub_$2 || defined __stub___$2
2080 choke me
2081 #endif
2082
2083 int
2084 main ()
2085 {
2086 return $2 ();
2087 ;
2088 return 0;
2089 }
2090 _ACEOF
2091 if ac_fn_c_try_link "$LINENO"; then :
2092 eval "$3=yes"
2093 else
2094 eval "$3=no"
2095 fi
2096 rm -f core conftest.err conftest.$ac_objext \
2097 conftest$ac_exeext conftest.$ac_ext
2098 fi
2099 eval ac_res=\$$3
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101 $as_echo "$ac_res" >&6; }
2102 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2103
2104 } # ac_fn_c_check_func
2105
2106 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2107 # ---------------------------------------------
2108 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2109 # accordingly.
2110 ac_fn_c_check_decl ()
2111 {
2112 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113 as_decl_name=`echo $2|sed 's/ *(.*//'`
2114 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2116 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2117 if eval \${$3+:} false; then :
2118 $as_echo_n "(cached) " >&6
2119 else
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2122 $4
2123 int
2124 main ()
2125 {
2126 #ifndef $as_decl_name
2127 #ifdef __cplusplus
2128 (void) $as_decl_use;
2129 #else
2130 (void) $as_decl_name;
2131 #endif
2132 #endif
2133
2134 ;
2135 return 0;
2136 }
2137 _ACEOF
2138 if ac_fn_c_try_compile "$LINENO"; then :
2139 eval "$3=yes"
2140 else
2141 eval "$3=no"
2142 fi
2143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144 fi
2145 eval ac_res=\$$3
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2147 $as_echo "$ac_res" >&6; }
2148 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2149
2150 } # ac_fn_c_check_decl
2151
2152 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2153 # ----------------------------------------------------
2154 # Tries to find if the field MEMBER exists in type AGGR, after including
2155 # INCLUDES, setting cache variable VAR accordingly.
2156 ac_fn_c_check_member ()
2157 {
2158 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2160 $as_echo_n "checking for $2.$3... " >&6; }
2161 if eval \${$4+:} false; then :
2162 $as_echo_n "(cached) " >&6
2163 else
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2166 $5
2167 int
2168 main ()
2169 {
2170 static $2 ac_aggr;
2171 if (ac_aggr.$3)
2172 return 0;
2173 ;
2174 return 0;
2175 }
2176 _ACEOF
2177 if ac_fn_c_try_compile "$LINENO"; then :
2178 eval "$4=yes"
2179 else
2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181 /* end confdefs.h. */
2182 $5
2183 int
2184 main ()
2185 {
2186 static $2 ac_aggr;
2187 if (sizeof ac_aggr.$3)
2188 return 0;
2189 ;
2190 return 0;
2191 }
2192 _ACEOF
2193 if ac_fn_c_try_compile "$LINENO"; then :
2194 eval "$4=yes"
2195 else
2196 eval "$4=no"
2197 fi
2198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199 fi
2200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201 fi
2202 eval ac_res=\$$4
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2204 $as_echo "$ac_res" >&6; }
2205 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2206
2207 } # ac_fn_c_check_member
2208 cat >config.log <<_ACEOF
2209 This file contains any messages produced by compilers while
2210 running configure, to aid debugging if configure makes a mistake.
2211
2212 It was created by libxcb $as_me 1.13.1, which was
2213 generated by GNU Autoconf 2.69. Invocation command line was
2214
2215 $ $0 $@
2216
2217 _ACEOF
2218 exec 5>>config.log
2219 {
2220 cat <<_ASUNAME
2221 ## --------- ##
2222 ## Platform. ##
2223 ## --------- ##
2224
2225 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2226 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2227 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2228 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2229 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2230
2231 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2232 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2233
2234 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2235 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2236 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2237 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2238 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2239 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2240 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2241
2242 _ASUNAME
2243
2244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245 for as_dir in $PATH
2246 do
2247 IFS=$as_save_IFS
2248 test -z "$as_dir" && as_dir=.
2249 $as_echo "PATH: $as_dir"
2250 done
2251 IFS=$as_save_IFS
2252
2253 } >&5
2254
2255 cat >&5 <<_ACEOF
2256
2257
2258 ## ----------- ##
2259 ## Core tests. ##
2260 ## ----------- ##
2261
2262 _ACEOF
2263
2264
2265 # Keep a trace of the command line.
2266 # Strip out --no-create and --no-recursion so they do not pile up.
2267 # Strip out --silent because we don't want to record it for future runs.
2268 # Also quote any args containing shell meta-characters.
2269 # Make two passes to allow for proper duplicate-argument suppression.
2270 ac_configure_args=
2271 ac_configure_args0=
2272 ac_configure_args1=
2273 ac_must_keep_next=false
2274 for ac_pass in 1 2
2275 do
2276 for ac_arg
2277 do
2278 case $ac_arg in
2279 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2280 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2281 | -silent | --silent | --silen | --sile | --sil)
2282 continue ;;
2283 *\'*)
2284 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2285 esac
2286 case $ac_pass in
2287 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2288 2)
2289 as_fn_append ac_configure_args1 " '$ac_arg'"
2290 if test $ac_must_keep_next = true; then
2291 ac_must_keep_next=false # Got value, back to normal.
2292 else
2293 case $ac_arg in
2294 *=* | --config-cache | -C | -disable-* | --disable-* \
2295 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2296 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2297 | -with-* | --with-* | -without-* | --without-* | --x)
2298 case "$ac_configure_args0 " in
2299 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2300 esac
2301 ;;
2302 -* ) ac_must_keep_next=true ;;
2303 esac
2304 fi
2305 as_fn_append ac_configure_args " '$ac_arg'"
2306 ;;
2307 esac
2308 done
2309 done
2310 { ac_configure_args0=; unset ac_configure_args0;}
2311 { ac_configure_args1=; unset ac_configure_args1;}
2312
2313 # When interrupted or exit'd, cleanup temporary files, and complete
2314 # config.log. We remove comments because anyway the quotes in there
2315 # would cause problems or look ugly.
2316 # WARNING: Use '\'' to represent an apostrophe within the trap.
2317 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2318 trap 'exit_status=$?
2319 # Save into config.log some information that might help in debugging.
2320 {
2321 echo
2322
2323 $as_echo "## ---------------- ##
2324 ## Cache variables. ##
2325 ## ---------------- ##"
2326 echo
2327 # The following way of writing the cache mishandles newlines in values,
2328 (
2329 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2330 eval ac_val=\$$ac_var
2331 case $ac_val in #(
2332 *${as_nl}*)
2333 case $ac_var in #(
2334 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2335 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2336 esac
2337 case $ac_var in #(
2338 _ | IFS | as_nl) ;; #(
2339 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2340 *) { eval $ac_var=; unset $ac_var;} ;;
2341 esac ;;
2342 esac
2343 done
2344 (set) 2>&1 |
2345 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2346 *${as_nl}ac_space=\ *)
2347 sed -n \
2348 "s/'\''/'\''\\\\'\'''\''/g;
2349 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2350 ;; #(
2351 *)
2352 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2353 ;;
2354 esac |
2355 sort
2356 )
2357 echo
2358
2359 $as_echo "## ----------------- ##
2360 ## Output variables. ##
2361 ## ----------------- ##"
2362 echo
2363 for ac_var in $ac_subst_vars
2364 do
2365 eval ac_val=\$$ac_var
2366 case $ac_val in
2367 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2368 esac
2369 $as_echo "$ac_var='\''$ac_val'\''"
2370 done | sort
2371 echo
2372
2373 if test -n "$ac_subst_files"; then
2374 $as_echo "## ------------------- ##
2375 ## File substitutions. ##
2376 ## ------------------- ##"
2377 echo
2378 for ac_var in $ac_subst_files
2379 do
2380 eval ac_val=\$$ac_var
2381 case $ac_val in
2382 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2383 esac
2384 $as_echo "$ac_var='\''$ac_val'\''"
2385 done | sort
2386 echo
2387 fi
2388
2389 if test -s confdefs.h; then
2390 $as_echo "## ----------- ##
2391 ## confdefs.h. ##
2392 ## ----------- ##"
2393 echo
2394 cat confdefs.h
2395 echo
2396 fi
2397 test "$ac_signal" != 0 &&
2398 $as_echo "$as_me: caught signal $ac_signal"
2399 $as_echo "$as_me: exit $exit_status"
2400 } >&5
2401 rm -f core *.core core.conftest.* &&
2402 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2403 exit $exit_status
2404 ' 0
2405 for ac_signal in 1 2 13 15; do
2406 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2407 done
2408 ac_signal=0
2409
2410 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2411 rm -f -r conftest* confdefs.h
2412
2413 $as_echo "/* confdefs.h */" > confdefs.h
2414
2415 # Predefined preprocessor variables.
2416
2417 cat >>confdefs.h <<_ACEOF
2418 #define PACKAGE_NAME "$PACKAGE_NAME"
2419 _ACEOF
2420
2421 cat >>confdefs.h <<_ACEOF
2422 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2423 _ACEOF
2424
2425 cat >>confdefs.h <<_ACEOF
2426 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2427 _ACEOF
2428
2429 cat >>confdefs.h <<_ACEOF
2430 #define PACKAGE_STRING "$PACKAGE_STRING"
2431 _ACEOF
2432
2433 cat >>confdefs.h <<_ACEOF
2434 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2435 _ACEOF
2436
2437 cat >>confdefs.h <<_ACEOF
2438 #define PACKAGE_URL "$PACKAGE_URL"
2439 _ACEOF
2440
2441
2442 # Let the site file select an alternate cache file if it wants to.
2443 # Prefer an explicitly selected file to automatically selected ones.
2444 ac_site_file1=NONE
2445 ac_site_file2=NONE
2446 if test -n "$CONFIG_SITE"; then
2447 # We do not want a PATH search for config.site.
2448 case $CONFIG_SITE in #((
2449 -*) ac_site_file1=./$CONFIG_SITE;;
2450 */*) ac_site_file1=$CONFIG_SITE;;
2451 *) ac_site_file1=./$CONFIG_SITE;;
2452 esac
2453 elif test "x$prefix" != xNONE; then
2454 ac_site_file1=$prefix/share/config.site
2455 ac_site_file2=$prefix/etc/config.site
2456 else
2457 ac_site_file1=$ac_default_prefix/share/config.site
2458 ac_site_file2=$ac_default_prefix/etc/config.site
2459 fi
2460 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2461 do
2462 test "x$ac_site_file" = xNONE && continue
2463 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2465 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2466 sed 's/^/| /' "$ac_site_file" >&5
2467 . "$ac_site_file" \
2468 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2470 as_fn_error $? "failed to load site script $ac_site_file
2471 See \`config.log' for more details" "$LINENO" 5; }
2472 fi
2473 done
2474
2475 if test -r "$cache_file"; then
2476 # Some versions of bash will fail to source /dev/null (special files
2477 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2478 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2480 $as_echo "$as_me: loading cache $cache_file" >&6;}
2481 case $cache_file in
2482 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2483 *) . "./$cache_file";;
2484 esac
2485 fi
2486 else
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2488 $as_echo "$as_me: creating cache $cache_file" >&6;}
2489 >$cache_file
2490 fi
2491
2492 # Check that the precious variables saved in the cache have kept the same
2493 # value.
2494 ac_cache_corrupted=false
2495 for ac_var in $ac_precious_vars; do
2496 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2497 eval ac_new_set=\$ac_env_${ac_var}_set
2498 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2499 eval ac_new_val=\$ac_env_${ac_var}_value
2500 case $ac_old_set,$ac_new_set in
2501 set,)
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2503 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2504 ac_cache_corrupted=: ;;
2505 ,set)
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2507 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2508 ac_cache_corrupted=: ;;
2509 ,);;
2510 *)
2511 if test "x$ac_old_val" != "x$ac_new_val"; then
2512 # differences in whitespace do not lead to failure.
2513 ac_old_val_w=`echo x $ac_old_val`
2514 ac_new_val_w=`echo x $ac_new_val`
2515 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2517 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2518 ac_cache_corrupted=:
2519 else
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2521 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2522 eval $ac_var=\$ac_old_val
2523 fi
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2525 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2527 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2528 fi;;
2529 esac
2530 # Pass precious variables to config.status.
2531 if test "$ac_new_set" = set; then
2532 case $ac_new_val in
2533 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2534 *) ac_arg=$ac_var=$ac_new_val ;;
2535 esac
2536 case " $ac_configure_args " in
2537 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2538 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2539 esac
2540 fi
2541 done
2542 if $ac_cache_corrupted; then
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2546 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2547 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2548 fi
2549 ## -------------------- ##
2550 ## Main body of script. ##
2551 ## -------------------- ##
2552
2553 ac_ext=c
2554 ac_cpp='$CPP $CPPFLAGS'
2555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2558
2559
2560 ac_aux_dir=
2561 for ac_dir in build-aux "$srcdir"/build-aux; do
2562 if test -f "$ac_dir/install-sh"; then
2563 ac_aux_dir=$ac_dir
2564 ac_install_sh="$ac_aux_dir/install-sh -c"
2565 break
2566 elif test -f "$ac_dir/install.sh"; then
2567 ac_aux_dir=$ac_dir
2568 ac_install_sh="$ac_aux_dir/install.sh -c"
2569 break
2570 elif test -f "$ac_dir/shtool"; then
2571 ac_aux_dir=$ac_dir
2572 ac_install_sh="$ac_aux_dir/shtool install -c"
2573 break
2574 fi
2575 done
2576 if test -z "$ac_aux_dir"; then
2577 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2578 fi
2579
2580 # These three variables are undocumented and unsupported,
2581 # and are intended to be withdrawn in a future Autoconf release.
2582 # They can cause serious problems if a builder's source tree is in a directory
2583 # whose full name contains unusual characters.
2584 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2585 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2586 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2587
2588
2589
2590
2591 ac_config_headers="$ac_config_headers src/config.h"
2592
2593
2594 # Initialize Automake
2595 am__api_version='1.16'
2596
2597 # Find a good install program. We prefer a C program (faster),
2598 # so one script is as good as another. But avoid the broken or
2599 # incompatible versions:
2600 # SysV /etc/install, /usr/sbin/install
2601 # SunOS /usr/etc/install
2602 # IRIX /sbin/install
2603 # AIX /bin/install
2604 # AmigaOS /C/install, which installs bootblocks on floppy discs
2605 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2606 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2607 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2608 # OS/2's system install, which has a completely different semantic
2609 # ./install, which can be erroneously created by make from ./install.sh.
2610 # Reject install programs that cannot install multiple files.
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2612 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2613 if test -z "$INSTALL"; then
2614 if ${ac_cv_path_install+:} false; then :
2615 $as_echo_n "(cached) " >&6
2616 else
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618 for as_dir in $PATH
2619 do
2620 IFS=$as_save_IFS
2621 test -z "$as_dir" && as_dir=.
2622 # Account for people who put trailing slashes in PATH elements.
2623 case $as_dir/ in #((
2624 ./ | .// | /[cC]/* | \
2625 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2626 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2627 /usr/ucb/* ) ;;
2628 *)
2629 # OSF1 and SCO ODT 3.0 have their own names for install.
2630 # Don't use installbsd from OSF since it installs stuff as root
2631 # by default.
2632 for ac_prog in ginstall scoinst install; do
2633 for ac_exec_ext in '' $ac_executable_extensions; do
2634 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2635 if test $ac_prog = install &&
2636 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2637 # AIX install. It has an incompatible calling convention.
2638 :
2639 elif test $ac_prog = install &&
2640 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2641 # program-specific install script used by HP pwplus--don't use.
2642 :
2643 else
2644 rm -rf conftest.one conftest.two conftest.dir
2645 echo one > conftest.one
2646 echo two > conftest.two
2647 mkdir conftest.dir
2648 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2649 test -s conftest.one && test -s conftest.two &&
2650 test -s conftest.dir/conftest.one &&
2651 test -s conftest.dir/conftest.two
2652 then
2653 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2654 break 3
2655 fi
2656 fi
2657 fi
2658 done
2659 done
2660 ;;
2661 esac
2662
2663 done
2664 IFS=$as_save_IFS
2665
2666 rm -rf conftest.one conftest.two conftest.dir
2667
2668 fi
2669 if test "${ac_cv_path_install+set}" = set; then
2670 INSTALL=$ac_cv_path_install
2671 else
2672 # As a last resort, use the slow shell script. Don't cache a
2673 # value for INSTALL within a source directory, because that will
2674 # break other packages using the cache if that directory is
2675 # removed, or if the value is a relative name.
2676 INSTALL=$ac_install_sh
2677 fi
2678 fi
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2680 $as_echo "$INSTALL" >&6; }
2681
2682 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2683 # It thinks the first close brace ends the variable substitution.
2684 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2685
2686 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2687
2688 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2689
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2691 $as_echo_n "checking whether build environment is sane... " >&6; }
2692 # Reject unsafe characters in $srcdir or the absolute working directory
2693 # name. Accept space and tab only in the latter.
2694 am_lf='
2695 '
2696 case `pwd` in
2697 *[\\\"\#\$\&\'\`$am_lf]*)
2698 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2699 esac
2700 case $srcdir in
2701 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2702 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2703 esac
2704
2705 # Do 'set' in a subshell so we don't clobber the current shell's
2706 # arguments. Must try -L first in case configure is actually a
2707 # symlink; some systems play weird games with the mod time of symlinks
2708 # (eg FreeBSD returns the mod time of the symlink's containing
2709 # directory).
2710 if (
2711 am_has_slept=no
2712 for am_try in 1 2; do
2713 echo "timestamp, slept: $am_has_slept" > conftest.file
2714 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2715 if test "$*" = "X"; then
2716 # -L didn't work.
2717 set X `ls -t "$srcdir/configure" conftest.file`
2718 fi
2719 if test "$*" != "X $srcdir/configure conftest.file" \
2720 && test "$*" != "X conftest.file $srcdir/configure"; then
2721
2722 # If neither matched, then we have a broken ls. This can happen
2723 # if, for instance, CONFIG_SHELL is bash and it inherits a
2724 # broken ls alias from the environment. This has actually
2725 # happened. Such a system could not be considered "sane".
2726 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2727 alias in your environment" "$LINENO" 5
2728 fi
2729 if test "$2" = conftest.file || test $am_try -eq 2; then
2730 break
2731 fi
2732 # Just in case.
2733 sleep 1
2734 am_has_slept=yes
2735 done
2736 test "$2" = conftest.file
2737 )
2738 then
2739 # Ok.
2740 :
2741 else
2742 as_fn_error $? "newly created file is older than distributed files!
2743 Check your system clock" "$LINENO" 5
2744 fi
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2746 $as_echo "yes" >&6; }
2747 # If we didn't sleep, we still need to ensure time stamps of config.status and
2748 # generated files are strictly newer.
2749 am_sleep_pid=
2750 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2751 ( sleep 1 ) &
2752 am_sleep_pid=$!
2753 fi
2754
2755 rm -f conftest.file
2756
2757 test "$program_prefix" != NONE &&
2758 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2759 # Use a double $ so make ignores it.
2760 test "$program_suffix" != NONE &&
2761 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2762 # Double any \ or $.
2763 # By default was `s,x,x', remove it if useless.
2764 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2765 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2766
2767 # Expand $ac_aux_dir to an absolute path.
2768 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2769
2770 if test x"${MISSING+set}" != xset; then
2771 case $am_aux_dir in
2772 *\ * | *\ *)
2773 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2774 *)
2775 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2776 esac
2777 fi
2778 # Use eval to expand $SHELL
2779 if eval "$MISSING --is-lightweight"; then
2780 am_missing_run="$MISSING "
2781 else
2782 am_missing_run=
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2784 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2785 fi
2786
2787 if test x"${install_sh+set}" != xset; then
2788 case $am_aux_dir in
2789 *\ * | *\ *)
2790 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2791 *)
2792 install_sh="\${SHELL} $am_aux_dir/install-sh"
2793 esac
2794 fi
2795
2796 # Installed binaries are usually stripped using 'strip' when the user
2797 # run "make install-strip". However 'strip' might not be the right
2798 # tool to use in cross-compilation environments, therefore Automake
2799 # will honor the 'STRIP' environment variable to overrule this program.
2800 if test "$cross_compiling" != no; then
2801 if test -n "$ac_tool_prefix"; then
2802 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2803 set dummy ${ac_tool_prefix}strip; ac_word=$2
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2805 $as_echo_n "checking for $ac_word... " >&6; }
2806 if ${ac_cv_prog_STRIP+:} false; then :
2807 $as_echo_n "(cached) " >&6
2808 else
2809 if test -n "$STRIP"; then
2810 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2811 else
2812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 for as_dir in $PATH
2814 do
2815 IFS=$as_save_IFS
2816 test -z "$as_dir" && as_dir=.
2817 for ac_exec_ext in '' $ac_executable_extensions; do
2818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2819 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2821 break 2
2822 fi
2823 done
2824 done
2825 IFS=$as_save_IFS
2826
2827 fi
2828 fi
2829 STRIP=$ac_cv_prog_STRIP
2830 if test -n "$STRIP"; then
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2832 $as_echo "$STRIP" >&6; }
2833 else
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2835 $as_echo "no" >&6; }
2836 fi
2837
2838
2839 fi
2840 if test -z "$ac_cv_prog_STRIP"; then
2841 ac_ct_STRIP=$STRIP
2842 # Extract the first word of "strip", so it can be a program name with args.
2843 set dummy strip; ac_word=$2
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2845 $as_echo_n "checking for $ac_word... " >&6; }
2846 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2847 $as_echo_n "(cached) " >&6
2848 else
2849 if test -n "$ac_ct_STRIP"; then
2850 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2851 else
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH
2854 do
2855 IFS=$as_save_IFS
2856 test -z "$as_dir" && as_dir=.
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2859 ac_cv_prog_ac_ct_STRIP="strip"
2860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 break 2
2862 fi
2863 done
2864 done
2865 IFS=$as_save_IFS
2866
2867 fi
2868 fi
2869 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2870 if test -n "$ac_ct_STRIP"; then
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2872 $as_echo "$ac_ct_STRIP" >&6; }
2873 else
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875 $as_echo "no" >&6; }
2876 fi
2877
2878 if test "x$ac_ct_STRIP" = x; then
2879 STRIP=":"
2880 else
2881 case $cross_compiling:$ac_tool_warned in
2882 yes:)
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2885 ac_tool_warned=yes ;;
2886 esac
2887 STRIP=$ac_ct_STRIP
2888 fi
2889 else
2890 STRIP="$ac_cv_prog_STRIP"
2891 fi
2892
2893 fi
2894 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2895
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2897 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2898 if test -z "$MKDIR_P"; then
2899 if ${ac_cv_path_mkdir+:} false; then :
2900 $as_echo_n "(cached) " >&6
2901 else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2904 do
2905 IFS=$as_save_IFS
2906 test -z "$as_dir" && as_dir=.
2907 for ac_prog in mkdir gmkdir; do
2908 for ac_exec_ext in '' $ac_executable_extensions; do
2909 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2910 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2911 'mkdir (GNU coreutils) '* | \
2912 'mkdir (coreutils) '* | \
2913 'mkdir (fileutils) '4.1*)
2914 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2915 break 3;;
2916 esac
2917 done
2918 done
2919 done
2920 IFS=$as_save_IFS
2921
2922 fi
2923
2924 test -d ./--version && rmdir ./--version
2925 if test "${ac_cv_path_mkdir+set}" = set; then
2926 MKDIR_P="$ac_cv_path_mkdir -p"
2927 else
2928 # As a last resort, use the slow shell script. Don't cache a
2929 # value for MKDIR_P within a source directory, because that will
2930 # break other packages using the cache if that directory is
2931 # removed, or if the value is a relative name.
2932 MKDIR_P="$ac_install_sh -d"
2933 fi
2934 fi
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2936 $as_echo "$MKDIR_P" >&6; }
2937
2938 for ac_prog in gawk mawk nawk awk
2939 do
2940 # Extract the first word of "$ac_prog", so it can be a program name with args.
2941 set dummy $ac_prog; ac_word=$2
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943 $as_echo_n "checking for $ac_word... " >&6; }
2944 if ${ac_cv_prog_AWK+:} false; then :
2945 $as_echo_n "(cached) " >&6
2946 else
2947 if test -n "$AWK"; then
2948 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2949 else
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 for as_dir in $PATH
2952 do
2953 IFS=$as_save_IFS
2954 test -z "$as_dir" && as_dir=.
2955 for ac_exec_ext in '' $ac_executable_extensions; do
2956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2957 ac_cv_prog_AWK="$ac_prog"
2958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2959 break 2
2960 fi
2961 done
2962 done
2963 IFS=$as_save_IFS
2964
2965 fi
2966 fi
2967 AWK=$ac_cv_prog_AWK
2968 if test -n "$AWK"; then
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2970 $as_echo "$AWK" >&6; }
2971 else
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973 $as_echo "no" >&6; }
2974 fi
2975
2976
2977 test -n "$AWK" && break
2978 done
2979
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2981 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2982 set x ${MAKE-make}
2983 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2984 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2985 $as_echo_n "(cached) " >&6
2986 else
2987 cat >conftest.make <<\_ACEOF
2988 SHELL = /bin/sh
2989 all:
2990 @echo '@@@%%%=$(MAKE)=@@@%%%'
2991 _ACEOF
2992 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2993 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2994 *@@@%%%=?*=@@@%%%*)
2995 eval ac_cv_prog_make_${ac_make}_set=yes;;
2996 *)
2997 eval ac_cv_prog_make_${ac_make}_set=no;;
2998 esac
2999 rm -f conftest.make
3000 fi
3001 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3003 $as_echo "yes" >&6; }
3004 SET_MAKE=
3005 else
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007 $as_echo "no" >&6; }
3008 SET_MAKE="MAKE=${MAKE-make}"
3009 fi
3010
3011 rm -rf .tst 2>/dev/null
3012 mkdir .tst 2>/dev/null
3013 if test -d .tst; then
3014 am__leading_dot=.
3015 else
3016 am__leading_dot=_
3017 fi
3018 rmdir .tst 2>/dev/null
3019
3020 # Check whether --enable-silent-rules was given.
3021 if test "${enable_silent_rules+set}" = set; then :
3022 enableval=$enable_silent_rules;
3023 fi
3024
3025 case $enable_silent_rules in # (((
3026 yes) AM_DEFAULT_VERBOSITY=0;;
3027 no) AM_DEFAULT_VERBOSITY=1;;
3028 *) AM_DEFAULT_VERBOSITY=1;;
3029 esac
3030 am_make=${MAKE-make}
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3032 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3033 if ${am_cv_make_support_nested_variables+:} false; then :
3034 $as_echo_n "(cached) " >&6
3035 else
3036 if $as_echo 'TRUE=$(BAR$(V))
3037 BAR0=false
3038 BAR1=true
3039 V=1
3040 am__doit:
3041 @$(TRUE)
3042 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3043 am_cv_make_support_nested_variables=yes
3044 else
3045 am_cv_make_support_nested_variables=no
3046 fi
3047 fi
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3049 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3050 if test $am_cv_make_support_nested_variables = yes; then
3051 AM_V='$(V)'
3052 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3053 else
3054 AM_V=$AM_DEFAULT_VERBOSITY
3055 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3056 fi
3057 AM_BACKSLASH='\'
3058
3059 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3060 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3061 # is not polluted with repeated "-I."
3062 am__isrc=' -I$(srcdir)'
3063 # test to see if srcdir already configured
3064 if test -f $srcdir/config.status; then
3065 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3066 fi
3067 fi
3068
3069 # test whether we have cygpath
3070 if test -z "$CYGPATH_W"; then
3071 if (cygpath --version) >/dev/null 2>/dev/null; then
3072 CYGPATH_W='cygpath -w'
3073 else
3074 CYGPATH_W=echo
3075 fi
3076 fi
3077
3078
3079 # Define the identity of the package.
3080 PACKAGE='libxcb'
3081 VERSION='1.13.1'
3082
3083
3084 cat >>confdefs.h <<_ACEOF
3085 #define PACKAGE "$PACKAGE"
3086 _ACEOF
3087
3088
3089 cat >>confdefs.h <<_ACEOF
3090 #define VERSION "$VERSION"
3091 _ACEOF
3092
3093 # Some tools Automake needs.
3094
3095 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3096
3097
3098 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3099
3100
3101 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3102
3103
3104 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3105
3106
3107 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3108
3109 # For better backward compatibility. To be removed once Automake 1.9.x
3110 # dies out for good. For more background, see:
3111 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3112 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3113 mkdir_p='$(MKDIR_P)'
3114
3115 # We need awk for the "check" target (and possibly the TAP driver). The
3116 # system "awk" is bad on some platforms.
3117 # Always define AMTAR for backward compatibility. Yes, it's still used
3118 # in the wild :-( We should find a proper way to deprecate it ...
3119 AMTAR='$${TAR-tar}'
3120
3121
3122 # We'll loop over all known methods to create a tar archive until one works.
3123 _am_tools='gnutar pax cpio none'
3124
3125 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3126
3127
3128
3129
3130
3131
3132 # POSIX will say in a future version that running "rm -f" with no argument
3133 # is OK; and we want to be able to make that assumption in our Makefile
3134 # recipes. So use an aggressive probe to check that the usage we want is
3135 # actually supported "in the wild" to an acceptable degree.
3136 # See automake bug#10828.
3137 # To make any issue more visible, cause the running configure to be aborted
3138 # by default if the 'rm' program in use doesn't match our expectations; the
3139 # user can still override this though.
3140 if rm -f && rm -fr && rm -rf; then : OK; else
3141 cat >&2 <<'END'
3142 Oops!
3143
3144 Your 'rm' program seems unable to run without file operands specified
3145 on the command line, even when the '-f' option is present. This is contrary
3146 to the behaviour of most rm programs out there, and not conforming with
3147 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3148
3149 Please tell bug-automake@gnu.org about your system, including the value
3150 of your $PATH and any error possibly output before this message. This
3151 can help us improve future automake versions.
3152
3153 END
3154 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3155 echo 'Configuration will proceed anyway, since you have set the' >&2
3156 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3157 echo >&2
3158 else
3159 cat >&2 <<'END'
3160 Aborting the configuration process, to ensure you take notice of the issue.
3161
3162 You can download and install GNU coreutils to get an 'rm' implementation
3163 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3164
3165 If you want to complete the configuration process using your problematic
3166 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3167 to "yes", and re-run configure.
3168
3169 END
3170 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3171 fi
3172 fi
3173
3174
3175
3176
3177
3178
3179
3180 if test -n "$PYTHON"; then
3181 # If the user set $PYTHON, use it and don't search something else.
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.6" >&5
3183 $as_echo_n "checking whether $PYTHON version is >= 2.6... " >&6; }
3184 prog="import sys
3185 # split strings by '.' and convert to numeric. Append some zeros
3186 # because we need at least 4 digits for the hex conversion.
3187 # map returns an iterator in Python 3.0 and a list in 2.x
3188 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
3189 minverhex = 0
3190 # xrange is not present in Python 3.0 and range returns an iterator
3191 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
3192 sys.exit(sys.hexversion < minverhex)"
3193 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
3194 ($PYTHON -c "$prog") >&5 2>&5
3195 ac_status=$?
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; then :
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3199 $as_echo "yes" >&6; }
3200 else
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202 $as_echo "no" >&6; }
3203 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
3204 fi
3205 am_display_PYTHON=$PYTHON
3206 else
3207 # Otherwise, try each interpreter until we find one that satisfies
3208 # VERSION.
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5
3210 $as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; }
3211 if ${am_cv_pathless_PYTHON+:} false; then :
3212 $as_echo_n "(cached) " >&6
3213 else
3214
3215 for am_cv_pathless_PYTHON in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
3216 test "$am_cv_pathless_PYTHON" = none && break
3217 prog="import sys
3218 # split strings by '.' and convert to numeric. Append some zeros
3219 # because we need at least 4 digits for the hex conversion.
3220 # map returns an iterator in Python 3.0 and a list in 2.x
3221 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
3222 minverhex = 0
3223 # xrange is not present in Python 3.0 and range returns an iterator
3224 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
3225 sys.exit(sys.hexversion < minverhex)"
3226 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
3227 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
3228 ac_status=$?
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }; then :
3231 break
3232 fi
3233 done
3234 fi
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
3236 $as_echo "$am_cv_pathless_PYTHON" >&6; }
3237 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
3238 if test "$am_cv_pathless_PYTHON" = none; then
3239 PYTHON=:
3240 else
3241 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
3242 set dummy $am_cv_pathless_PYTHON; ac_word=$2
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244 $as_echo_n "checking for $ac_word... " >&6; }
3245 if ${ac_cv_path_PYTHON+:} false; then :
3246 $as_echo_n "(cached) " >&6
3247 else
3248 case $PYTHON in
3249 [\\/]* | ?:[\\/]*)
3250 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3251 ;;
3252 *)
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 for as_dir in $PATH
3255 do
3256 IFS=$as_save_IFS
3257 test -z "$as_dir" && as_dir=.
3258 for ac_exec_ext in '' $ac_executable_extensions; do
3259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3260 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3262 break 2
3263 fi
3264 done
3265 done
3266 IFS=$as_save_IFS
3267
3268 ;;
3269 esac
3270 fi
3271 PYTHON=$ac_cv_path_PYTHON
3272 if test -n "$PYTHON"; then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
3274 $as_echo "$PYTHON" >&6; }
3275 else
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3277 $as_echo "no" >&6; }
3278 fi
3279
3280
3281 fi
3282 am_display_PYTHON=$am_cv_pathless_PYTHON
3283 fi
3284
3285
3286 if test "$PYTHON" = :; then
3287 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
3288 else
3289
3290
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
3292 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
3293 if ${am_cv_python_version+:} false; then :
3294 $as_echo_n "(cached) " >&6
3295 else
3296 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
3297 fi
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
3299 $as_echo "$am_cv_python_version" >&6; }
3300 PYTHON_VERSION=$am_cv_python_version
3301
3302
3303
3304 PYTHON_PREFIX='${prefix}'
3305
3306 PYTHON_EXEC_PREFIX='${exec_prefix}'
3307
3308
3309
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
3311 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
3312 if ${am_cv_python_platform+:} false; then :
3313 $as_echo_n "(cached) " >&6
3314 else
3315 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
3316 fi
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
3318 $as_echo "$am_cv_python_platform" >&6; }
3319 PYTHON_PLATFORM=$am_cv_python_platform
3320
3321
3322 # Just factor out some code duplication.
3323 am_python_setup_sysconfig="\
3324 import sys
3325 # Prefer sysconfig over distutils.sysconfig, for better compatibility
3326 # with python 3.x. See automake bug#10227.
3327 try:
3328 import sysconfig
3329 except ImportError:
3330 can_use_sysconfig = 0
3331 else:
3332 can_use_sysconfig = 1
3333 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
3334 # <https://github.com/pypa/virtualenv/issues/118>
3335 try:
3336 from platform import python_implementation
3337 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
3338 can_use_sysconfig = 0
3339 except ImportError:
3340 pass"
3341
3342
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
3344 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
3345 if ${am_cv_python_pythondir+:} false; then :
3346 $as_echo_n "(cached) " >&6
3347 else
3348 if test "x$prefix" = xNONE
3349 then
3350 am_py_prefix=$ac_default_prefix
3351 else
3352 am_py_prefix=$prefix
3353 fi
3354 am_cv_python_pythondir=`$PYTHON -c "
3355 $am_python_setup_sysconfig
3356 if can_use_sysconfig:
3357 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
3358 else:
3359 from distutils import sysconfig
3360 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
3361 sys.stdout.write(sitedir)"`
3362 case $am_cv_python_pythondir in
3363 $am_py_prefix*)
3364 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
3365 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
3366 ;;
3367 *)
3368 case $am_py_prefix in
3369 /usr|/System*) ;;
3370 *)
3371 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
3372 ;;
3373 esac
3374 ;;
3375 esac
3376
3377 fi
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
3379 $as_echo "$am_cv_python_pythondir" >&6; }
3380 pythondir=$am_cv_python_pythondir
3381
3382
3383
3384 pkgpythondir=\${pythondir}/$PACKAGE
3385
3386
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
3388 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
3389 if ${am_cv_python_pyexecdir+:} false; then :
3390 $as_echo_n "(cached) " >&6
3391 else
3392 if test "x$exec_prefix" = xNONE
3393 then
3394 am_py_exec_prefix=$am_py_prefix
3395 else
3396 am_py_exec_prefix=$exec_prefix
3397 fi
3398 am_cv_python_pyexecdir=`$PYTHON -c "
3399 $am_python_setup_sysconfig
3400 if can_use_sysconfig:
3401 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
3402 else:
3403 from distutils import sysconfig
3404 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
3405 sys.stdout.write(sitedir)"`
3406 case $am_cv_python_pyexecdir in
3407 $am_py_exec_prefix*)
3408 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
3409 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
3410 ;;
3411 *)
3412 case $am_py_exec_prefix in
3413 /usr|/System*) ;;
3414 *)
3415 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
3416 ;;
3417 esac
3418 ;;
3419 esac
3420
3421 fi
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
3423 $as_echo "$am_cv_python_pyexecdir" >&6; }
3424 pyexecdir=$am_cv_python_pyexecdir
3425
3426
3427
3428 pkgpyexecdir=\${pyexecdir}/$PACKAGE
3429
3430
3431
3432 fi
3433
3434
3435
3436 # Set common system defines for POSIX extensions, such as _GNU_SOURCE
3437 # Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
3438 # to avoid autoconf errors.
3439 DEPDIR="${am__leading_dot}deps"
3440
3441 ac_config_commands="$ac_config_commands depfiles"
3442
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3444 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3445 cat > confinc.mk << 'END'
3446 am__doit:
3447 @echo this is the am__doit target >confinc.out
3448 .PHONY: am__doit
3449 END
3450 am__include="#"
3451 am__quote=
3452 # BSD make does it like this.
3453 echo '.include "confinc.mk" # ignored' > confmf.BSD
3454 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3455 echo 'include confinc.mk # ignored' > confmf.GNU
3456 _am_result=no
3457 for s in GNU BSD; do
3458 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3459 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3460 ac_status=$?
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); }
3463 case $?:`cat confinc.out 2>/dev/null` in #(
3464 '0:this is the am__doit target') :
3465 case $s in #(
3466 BSD) :
3467 am__include='.include' am__quote='"' ;; #(
3468 *) :
3469 am__include='include' am__quote='' ;;
3470 esac ;; #(
3471 *) :
3472 ;;
3473 esac
3474 if test "$am__include" != "#"; then
3475 _am_result="yes ($s style)"
3476 break
3477 fi
3478 done
3479 rm -f confinc.* confmf.*
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3481 $as_echo "${_am_result}" >&6; }
3482
3483 # Check whether --enable-dependency-tracking was given.
3484 if test "${enable_dependency_tracking+set}" = set; then :
3485 enableval=$enable_dependency_tracking;
3486 fi
3487
3488 if test "x$enable_dependency_tracking" != xno; then
3489 am_depcomp="$ac_aux_dir/depcomp"
3490 AMDEPBACKSLASH='\'
3491 am__nodep='_no'
3492 fi
3493 if test "x$enable_dependency_tracking" != xno; then
3494 AMDEP_TRUE=
3495 AMDEP_FALSE='#'
3496 else
3497 AMDEP_TRUE='#'
3498 AMDEP_FALSE=
3499 fi
3500
3501
3502 ac_ext=c
3503 ac_cpp='$CPP $CPPFLAGS'
3504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3507 if test -n "$ac_tool_prefix"; then
3508 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3509 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3511 $as_echo_n "checking for $ac_word... " >&6; }
3512 if ${ac_cv_prog_CC+:} false; then :
3513 $as_echo_n "(cached) " >&6
3514 else
3515 if test -n "$CC"; then
3516 ac_cv_prog_CC="$CC" # Let the user override the test.
3517 else
3518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519 for as_dir in $PATH
3520 do
3521 IFS=$as_save_IFS
3522 test -z "$as_dir" && as_dir=.
3523 for ac_exec_ext in '' $ac_executable_extensions; do
3524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3525 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3527 break 2
3528 fi
3529 done
3530 done
3531 IFS=$as_save_IFS
3532
3533 fi
3534 fi
3535 CC=$ac_cv_prog_CC
3536 if test -n "$CC"; then
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3538 $as_echo "$CC" >&6; }
3539 else
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541 $as_echo "no" >&6; }
3542 fi
3543
3544
3545 fi
3546 if test -z "$ac_cv_prog_CC"; then
3547 ac_ct_CC=$CC
3548 # Extract the first word of "gcc", so it can be a program name with args.
3549 set dummy gcc; ac_word=$2
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3551 $as_echo_n "checking for $ac_word... " >&6; }
3552 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3553 $as_echo_n "(cached) " >&6
3554 else
3555 if test -n "$ac_ct_CC"; then
3556 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3557 else
3558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559 for as_dir in $PATH
3560 do
3561 IFS=$as_save_IFS
3562 test -z "$as_dir" && as_dir=.
3563 for ac_exec_ext in '' $ac_executable_extensions; do
3564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3565 ac_cv_prog_ac_ct_CC="gcc"
3566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3567 break 2
3568 fi
3569 done
3570 done
3571 IFS=$as_save_IFS
3572
3573 fi
3574 fi
3575 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3576 if test -n "$ac_ct_CC"; then
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3578 $as_echo "$ac_ct_CC" >&6; }
3579 else
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3581 $as_echo "no" >&6; }
3582 fi
3583
3584 if test "x$ac_ct_CC" = x; then
3585 CC=""
3586 else
3587 case $cross_compiling:$ac_tool_warned in
3588 yes:)
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3591 ac_tool_warned=yes ;;
3592 esac
3593 CC=$ac_ct_CC
3594 fi
3595 else
3596 CC="$ac_cv_prog_CC"
3597 fi
3598
3599 if test -z "$CC"; then
3600 if test -n "$ac_tool_prefix"; then
3601 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3602 set dummy ${ac_tool_prefix}cc; ac_word=$2
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3604 $as_echo_n "checking for $ac_word... " >&6; }
3605 if ${ac_cv_prog_CC+:} false; then :
3606 $as_echo_n "(cached) " >&6
3607 else
3608 if test -n "$CC"; then
3609 ac_cv_prog_CC="$CC" # Let the user override the test.
3610 else
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 for as_dir in $PATH
3613 do
3614 IFS=$as_save_IFS
3615 test -z "$as_dir" && as_dir=.
3616 for ac_exec_ext in '' $ac_executable_extensions; do
3617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3618 ac_cv_prog_CC="${ac_tool_prefix}cc"
3619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3620 break 2
3621 fi
3622 done
3623 done
3624 IFS=$as_save_IFS
3625
3626 fi
3627 fi
3628 CC=$ac_cv_prog_CC
3629 if test -n "$CC"; then
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3631 $as_echo "$CC" >&6; }
3632 else
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3634 $as_echo "no" >&6; }
3635 fi
3636
3637
3638 fi
3639 fi
3640 if test -z "$CC"; then
3641 # Extract the first word of "cc", so it can be a program name with args.
3642 set dummy cc; ac_word=$2
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3644 $as_echo_n "checking for $ac_word... " >&6; }
3645 if ${ac_cv_prog_CC+:} false; then :
3646 $as_echo_n "(cached) " >&6
3647 else
3648 if test -n "$CC"; then
3649 ac_cv_prog_CC="$CC" # Let the user override the test.
3650 else
3651 ac_prog_rejected=no
3652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653 for as_dir in $PATH
3654 do
3655 IFS=$as_save_IFS
3656 test -z "$as_dir" && as_dir=.
3657 for ac_exec_ext in '' $ac_executable_extensions; do
3658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3659 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3660 ac_prog_rejected=yes
3661 continue
3662 fi
3663 ac_cv_prog_CC="cc"
3664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3665 break 2
3666 fi
3667 done
3668 done
3669 IFS=$as_save_IFS
3670
3671 if test $ac_prog_rejected = yes; then
3672 # We found a bogon in the path, so make sure we never use it.
3673 set dummy $ac_cv_prog_CC
3674 shift
3675 if test $# != 0; then
3676 # We chose a different compiler from the bogus one.
3677 # However, it has the same basename, so the bogon will be chosen
3678 # first if we set CC to just the basename; use the full file name.
3679 shift
3680 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3681 fi
3682 fi
3683 fi
3684 fi
3685 CC=$ac_cv_prog_CC
3686 if test -n "$CC"; then
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3688 $as_echo "$CC" >&6; }
3689 else
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3691 $as_echo "no" >&6; }
3692 fi
3693
3694
3695 fi
3696 if test -z "$CC"; then
3697 if test -n "$ac_tool_prefix"; then
3698 for ac_prog in cl.exe
3699 do
3700 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3701 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3703 $as_echo_n "checking for $ac_word... " >&6; }
3704 if ${ac_cv_prog_CC+:} false; then :
3705 $as_echo_n "(cached) " >&6
3706 else
3707 if test -n "$CC"; then
3708 ac_cv_prog_CC="$CC" # Let the user override the test.
3709 else
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH
3712 do
3713 IFS=$as_save_IFS
3714 test -z "$as_dir" && as_dir=.
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3719 break 2
3720 fi
3721 done
3722 done
3723 IFS=$as_save_IFS
3724
3725 fi
3726 fi
3727 CC=$ac_cv_prog_CC
3728 if test -n "$CC"; then
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3730 $as_echo "$CC" >&6; }
3731 else
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3733 $as_echo "no" >&6; }
3734 fi
3735
3736
3737 test -n "$CC" && break
3738 done
3739 fi
3740 if test -z "$CC"; then
3741 ac_ct_CC=$CC
3742 for ac_prog in cl.exe
3743 do
3744 # Extract the first word of "$ac_prog", so it can be a program name with args.
3745 set dummy $ac_prog; ac_word=$2
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3747 $as_echo_n "checking for $ac_word... " >&6; }
3748 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3749 $as_echo_n "(cached) " >&6
3750 else
3751 if test -n "$ac_ct_CC"; then
3752 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3753 else
3754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755 for as_dir in $PATH
3756 do
3757 IFS=$as_save_IFS
3758 test -z "$as_dir" && as_dir=.
3759 for ac_exec_ext in '' $ac_executable_extensions; do
3760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3761 ac_cv_prog_ac_ct_CC="$ac_prog"
3762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3763 break 2
3764 fi
3765 done
3766 done
3767 IFS=$as_save_IFS
3768
3769 fi
3770 fi
3771 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3772 if test -n "$ac_ct_CC"; then
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3774 $as_echo "$ac_ct_CC" >&6; }
3775 else
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3777 $as_echo "no" >&6; }
3778 fi
3779
3780
3781 test -n "$ac_ct_CC" && break
3782 done
3783
3784 if test "x$ac_ct_CC" = x; then
3785 CC=""
3786 else
3787 case $cross_compiling:$ac_tool_warned in
3788 yes:)
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3791 ac_tool_warned=yes ;;
3792 esac
3793 CC=$ac_ct_CC
3794 fi
3795 fi
3796
3797 fi
3798
3799
3800 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3802 as_fn_error $? "no acceptable C compiler found in \$PATH
3803 See \`config.log' for more details" "$LINENO" 5; }
3804
3805 # Provide some information about the compiler.
3806 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3807 set X $ac_compile
3808 ac_compiler=$2
3809 for ac_option in --version -v -V -qversion; do
3810 { { ac_try="$ac_compiler $ac_option >&5"
3811 case "(($ac_try" in
3812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813 *) ac_try_echo=$ac_try;;
3814 esac
3815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3816 $as_echo "$ac_try_echo"; } >&5
3817 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3818 ac_status=$?
3819 if test -s conftest.err; then
3820 sed '10a\
3821 ... rest of stderr output deleted ...
3822 10q' conftest.err >conftest.er1
3823 cat conftest.er1 >&5
3824 fi
3825 rm -f conftest.er1 conftest.err
3826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3827 test $ac_status = 0; }
3828 done
3829
3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h. */
3832
3833 int
3834 main ()
3835 {
3836
3837 ;
3838 return 0;
3839 }
3840 _ACEOF
3841 ac_clean_files_save=$ac_clean_files
3842 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3843 # Try to create an executable without -o first, disregard a.out.
3844 # It will help us diagnose broken compilers, and finding out an intuition
3845 # of exeext.
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3847 $as_echo_n "checking whether the C compiler works... " >&6; }
3848 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3849
3850 # The possible output files:
3851 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3852
3853 ac_rmfiles=
3854 for ac_file in $ac_files
3855 do
3856 case $ac_file in
3857 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3858 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3859 esac
3860 done
3861 rm -f $ac_rmfiles
3862
3863 if { { ac_try="$ac_link_default"
3864 case "(($ac_try" in
3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3867 esac
3868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3869 $as_echo "$ac_try_echo"; } >&5
3870 (eval "$ac_link_default") 2>&5
3871 ac_status=$?
3872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3873 test $ac_status = 0; }; then :
3874 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3875 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3876 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3877 # so that the user can short-circuit this test for compilers unknown to
3878 # Autoconf.
3879 for ac_file in $ac_files ''
3880 do
3881 test -f "$ac_file" || continue
3882 case $ac_file in
3883 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3884 ;;
3885 [ab].out )
3886 # We found the default executable, but exeext='' is most
3887 # certainly right.
3888 break;;
3889 *.* )
3890 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3891 then :; else
3892 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3893 fi
3894 # We set ac_cv_exeext here because the later test for it is not
3895 # safe: cross compilers may not add the suffix if given an `-o'
3896 # argument, so we may need to know it at that point already.
3897 # Even if this section looks crufty: it has the advantage of
3898 # actually working.
3899 break;;
3900 * )
3901 break;;
3902 esac
3903 done
3904 test "$ac_cv_exeext" = no && ac_cv_exeext=
3905
3906 else
3907 ac_file=''
3908 fi
3909 if test -z "$ac_file"; then :
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3911 $as_echo "no" >&6; }
3912 $as_echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3914
3915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3917 as_fn_error 77 "C compiler cannot create executables
3918 See \`config.log' for more details" "$LINENO" 5; }
3919 else
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3921 $as_echo "yes" >&6; }
3922 fi
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3924 $as_echo_n "checking for C compiler default output file name... " >&6; }
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3926 $as_echo "$ac_file" >&6; }
3927 ac_exeext=$ac_cv_exeext
3928
3929 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3930 ac_clean_files=$ac_clean_files_save
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3932 $as_echo_n "checking for suffix of executables... " >&6; }
3933 if { { ac_try="$ac_link"
3934 case "(($ac_try" in
3935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936 *) ac_try_echo=$ac_try;;
3937 esac
3938 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3939 $as_echo "$ac_try_echo"; } >&5
3940 (eval "$ac_link") 2>&5
3941 ac_status=$?
3942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3943 test $ac_status = 0; }; then :
3944 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3945 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3946 # work properly (i.e., refer to `conftest.exe'), while it won't with
3947 # `rm'.
3948 for ac_file in conftest.exe conftest conftest.*; do
3949 test -f "$ac_file" || continue
3950 case $ac_file in
3951 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3952 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3953 break;;
3954 * ) break;;
3955 esac
3956 done
3957 else
3958 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3960 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3961 See \`config.log' for more details" "$LINENO" 5; }
3962 fi
3963 rm -f conftest conftest$ac_cv_exeext
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3965 $as_echo "$ac_cv_exeext" >&6; }
3966
3967 rm -f conftest.$ac_ext
3968 EXEEXT=$ac_cv_exeext
3969 ac_exeext=$EXEEXT
3970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971 /* end confdefs.h. */
3972 #include <stdio.h>
3973 int
3974 main ()
3975 {
3976 FILE *f = fopen ("conftest.out", "w");
3977 return ferror (f) || fclose (f) != 0;
3978
3979 ;
3980 return 0;
3981 }
3982 _ACEOF
3983 ac_clean_files="$ac_clean_files conftest.out"
3984 # Check that the compiler produces executables we can run. If not, either
3985 # the compiler is broken, or we cross compile.
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3987 $as_echo_n "checking whether we are cross compiling... " >&6; }
3988 if test "$cross_compiling" != yes; then
3989 { { ac_try="$ac_link"
3990 case "(($ac_try" in
3991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3992 *) ac_try_echo=$ac_try;;
3993 esac
3994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3995 $as_echo "$ac_try_echo"; } >&5
3996 (eval "$ac_link") 2>&5
3997 ac_status=$?
3998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3999 test $ac_status = 0; }
4000 if { ac_try='./conftest$ac_cv_exeext'
4001 { { case "(($ac_try" in
4002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003 *) ac_try_echo=$ac_try;;
4004 esac
4005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4006 $as_echo "$ac_try_echo"; } >&5
4007 (eval "$ac_try") 2>&5
4008 ac_status=$?
4009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4010 test $ac_status = 0; }; }; then
4011 cross_compiling=no
4012 else
4013 if test "$cross_compiling" = maybe; then
4014 cross_compiling=yes
4015 else
4016 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4018 as_fn_error $? "cannot run C compiled programs.
4019 If you meant to cross compile, use \`--host'.
4020 See \`config.log' for more details" "$LINENO" 5; }
4021 fi
4022 fi
4023 fi
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4025 $as_echo "$cross_compiling" >&6; }
4026
4027 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4028 ac_clean_files=$ac_clean_files_save
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4030 $as_echo_n "checking for suffix of object files... " >&6; }
4031 if ${ac_cv_objext+:} false; then :
4032 $as_echo_n "(cached) " >&6
4033 else
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4036
4037 int
4038 main ()
4039 {
4040
4041 ;
4042 return 0;
4043 }
4044 _ACEOF
4045 rm -f conftest.o conftest.obj
4046 if { { ac_try="$ac_compile"
4047 case "(($ac_try" in
4048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049 *) ac_try_echo=$ac_try;;
4050 esac
4051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4052 $as_echo "$ac_try_echo"; } >&5
4053 (eval "$ac_compile") 2>&5
4054 ac_status=$?
4055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4056 test $ac_status = 0; }; then :
4057 for ac_file in conftest.o conftest.obj conftest.*; do
4058 test -f "$ac_file" || continue;
4059 case $ac_file in
4060 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4061 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4062 break;;
4063 esac
4064 done
4065 else
4066 $as_echo "$as_me: failed program was:" >&5
4067 sed 's/^/| /' conftest.$ac_ext >&5
4068
4069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4071 as_fn_error $? "cannot compute suffix of object files: cannot compile
4072 See \`config.log' for more details" "$LINENO" 5; }
4073 fi
4074 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4075 fi
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4077 $as_echo "$ac_cv_objext" >&6; }
4078 OBJEXT=$ac_cv_objext
4079 ac_objext=$OBJEXT
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4081 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4082 if ${ac_cv_c_compiler_gnu+:} false; then :
4083 $as_echo_n "(cached) " >&6
4084 else
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h. */
4087
4088 int
4089 main ()
4090 {
4091 #ifndef __GNUC__
4092 choke me
4093 #endif
4094
4095 ;
4096 return 0;
4097 }
4098 _ACEOF
4099 if ac_fn_c_try_compile "$LINENO"; then :
4100 ac_compiler_gnu=yes
4101 else
4102 ac_compiler_gnu=no
4103 fi
4104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4105 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4106
4107 fi
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4109 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4110 if test $ac_compiler_gnu = yes; then
4111 GCC=yes
4112 else
4113 GCC=
4114 fi
4115 ac_test_CFLAGS=${CFLAGS+set}
4116 ac_save_CFLAGS=$CFLAGS
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4118 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4119 if ${ac_cv_prog_cc_g+:} false; then :
4120 $as_echo_n "(cached) " >&6
4121 else
4122 ac_save_c_werror_flag=$ac_c_werror_flag
4123 ac_c_werror_flag=yes
4124 ac_cv_prog_cc_g=no
4125 CFLAGS="-g"
4126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h. */
4128
4129 int
4130 main ()
4131 {
4132
4133 ;
4134 return 0;
4135 }
4136 _ACEOF
4137 if ac_fn_c_try_compile "$LINENO"; then :
4138 ac_cv_prog_cc_g=yes
4139 else
4140 CFLAGS=""
4141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4142 /* end confdefs.h. */
4143
4144 int
4145 main ()
4146 {
4147
4148 ;
4149 return 0;
4150 }
4151 _ACEOF
4152 if ac_fn_c_try_compile "$LINENO"; then :
4153
4154 else
4155 ac_c_werror_flag=$ac_save_c_werror_flag
4156 CFLAGS="-g"
4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h. */
4159
4160 int
4161 main ()
4162 {
4163
4164 ;
4165 return 0;
4166 }
4167 _ACEOF
4168 if ac_fn_c_try_compile "$LINENO"; then :
4169 ac_cv_prog_cc_g=yes
4170 fi
4171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4172 fi
4173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4174 fi
4175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176 ac_c_werror_flag=$ac_save_c_werror_flag
4177 fi
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4179 $as_echo "$ac_cv_prog_cc_g" >&6; }
4180 if test "$ac_test_CFLAGS" = set; then
4181 CFLAGS=$ac_save_CFLAGS
4182 elif test $ac_cv_prog_cc_g = yes; then
4183 if test "$GCC" = yes; then
4184 CFLAGS="-g -O2"
4185 else
4186 CFLAGS="-g"
4187 fi
4188 else
4189 if test "$GCC" = yes; then
4190 CFLAGS="-O2"
4191 else
4192 CFLAGS=
4193 fi
4194 fi
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4196 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4197 if ${ac_cv_prog_cc_c89+:} false; then :
4198 $as_echo_n "(cached) " >&6
4199 else
4200 ac_cv_prog_cc_c89=no
4201 ac_save_CC=$CC
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4204 #include <stdarg.h>
4205 #include <stdio.h>
4206 struct stat;
4207 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4208 struct buf { int x; };
4209 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4210 static char *e (p, i)
4211 char **p;
4212 int i;
4213 {
4214 return p[i];
4215 }
4216 static char *f (char * (*g) (char **, int), char **p, ...)
4217 {
4218 char *s;
4219 va_list v;
4220 va_start (v,p);
4221 s = g (p, va_arg (v,int));
4222 va_end (v);
4223 return s;
4224 }
4225
4226 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4227 function prototypes and stuff, but not '\xHH' hex character constants.
4228 These don't provoke an error unfortunately, instead are silently treated
4229 as 'x'. The following induces an error, until -std is added to get
4230 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4231 array size at least. It's necessary to write '\x00'==0 to get something
4232 that's true only with -std. */
4233 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4234
4235 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4236 inside strings and character constants. */
4237 #define FOO(x) 'x'
4238 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4239
4240 int test (int i, double x);
4241 struct s1 {int (*f) (int a);};
4242 struct s2 {int (*f) (double a);};
4243 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4244 int argc;
4245 char **argv;
4246 int
4247 main ()
4248 {
4249 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4250 ;
4251 return 0;
4252 }
4253 _ACEOF
4254 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4255 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4256 do
4257 CC="$ac_save_CC $ac_arg"
4258 if ac_fn_c_try_compile "$LINENO"; then :
4259 ac_cv_prog_cc_c89=$ac_arg
4260 fi
4261 rm -f core conftest.err conftest.$ac_objext
4262 test "x$ac_cv_prog_cc_c89" != "xno" && break
4263 done
4264 rm -f conftest.$ac_ext
4265 CC=$ac_save_CC
4266
4267 fi
4268 # AC_CACHE_VAL
4269 case "x$ac_cv_prog_cc_c89" in
4270 x)
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4272 $as_echo "none needed" >&6; } ;;
4273 xno)
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4275 $as_echo "unsupported" >&6; } ;;
4276 *)
4277 CC="$CC $ac_cv_prog_cc_c89"
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4279 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4280 esac
4281 if test "x$ac_cv_prog_cc_c89" != xno; then :
4282
4283 fi
4284
4285 ac_ext=c
4286 ac_cpp='$CPP $CPPFLAGS'
4287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4290
4291 ac_ext=c
4292 ac_cpp='$CPP $CPPFLAGS'
4293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4297 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4298 if ${am_cv_prog_cc_c_o+:} false; then :
4299 $as_echo_n "(cached) " >&6
4300 else
4301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4302 /* end confdefs.h. */
4303
4304 int
4305 main ()
4306 {
4307
4308 ;
4309 return 0;
4310 }
4311 _ACEOF
4312 # Make sure it works both with $CC and with simple cc.
4313 # Following AC_PROG_CC_C_O, we do the test twice because some
4314 # compilers refuse to overwrite an existing .o file with -o,
4315 # though they will create one.
4316 am_cv_prog_cc_c_o=yes
4317 for am_i in 1 2; do
4318 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4319 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4320 ac_status=$?
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); } \
4323 && test -f conftest2.$ac_objext; then
4324 : OK
4325 else
4326 am_cv_prog_cc_c_o=no
4327 break
4328 fi
4329 done
4330 rm -f core conftest*
4331 unset am_i
4332 fi
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4334 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4335 if test "$am_cv_prog_cc_c_o" != yes; then
4336 # Losing compiler, so override with the script.
4337 # FIXME: It is wrong to rewrite CC.
4338 # But if we don't then we get into trouble of one sort or another.
4339 # A longer-term fix would be to have automake use am__CC in this case,
4340 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4341 CC="$am_aux_dir/compile $CC"
4342 fi
4343 ac_ext=c
4344 ac_cpp='$CPP $CPPFLAGS'
4345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4348
4349
4350 depcc="$CC" am_compiler_list=
4351
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4353 $as_echo_n "checking dependency style of $depcc... " >&6; }
4354 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4355 $as_echo_n "(cached) " >&6
4356 else
4357 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4358 # We make a subdir and do the tests there. Otherwise we can end up
4359 # making bogus files that we don't know about and never remove. For
4360 # instance it was reported that on HP-UX the gcc test will end up
4361 # making a dummy file named 'D' -- because '-MD' means "put the output
4362 # in D".
4363 rm -rf conftest.dir
4364 mkdir conftest.dir
4365 # Copy depcomp to subdir because otherwise we won't find it if we're
4366 # using a relative directory.
4367 cp "$am_depcomp" conftest.dir
4368 cd conftest.dir
4369 # We will build objects and dependencies in a subdirectory because
4370 # it helps to detect inapplicable dependency modes. For instance
4371 # both Tru64's cc and ICC support -MD to output dependencies as a
4372 # side effect of compilation, but ICC will put the dependencies in
4373 # the current directory while Tru64 will put them in the object
4374 # directory.
4375 mkdir sub
4376
4377 am_cv_CC_dependencies_compiler_type=none
4378 if test "$am_compiler_list" = ""; then
4379 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4380 fi
4381 am__universal=false
4382 case " $depcc " in #(
4383 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4384 esac
4385
4386 for depmode in $am_compiler_list; do
4387 # Setup a source with many dependencies, because some compilers
4388 # like to wrap large dependency lists on column 80 (with \), and
4389 # we should not choose a depcomp mode which is confused by this.
4390 #
4391 # We need to recreate these files for each test, as the compiler may
4392 # overwrite some of them when testing with obscure command lines.
4393 # This happens at least with the AIX C compiler.
4394 : > sub/conftest.c
4395 for i in 1 2 3 4 5 6; do
4396 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4397 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4398 # Solaris 10 /bin/sh.
4399 echo '/* dummy */' > sub/conftst$i.h
4400 done
4401 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4402
4403 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4404 # mode. It turns out that the SunPro C++ compiler does not properly
4405 # handle '-M -o', and we need to detect this. Also, some Intel
4406 # versions had trouble with output in subdirs.
4407 am__obj=sub/conftest.${OBJEXT-o}
4408 am__minus_obj="-o $am__obj"
4409 case $depmode in
4410 gcc)
4411 # This depmode causes a compiler race in universal mode.
4412 test "$am__universal" = false || continue
4413 ;;
4414 nosideeffect)
4415 # After this tag, mechanisms are not by side-effect, so they'll
4416 # only be used when explicitly requested.
4417 if test "x$enable_dependency_tracking" = xyes; then
4418 continue
4419 else
4420 break
4421 fi
4422 ;;
4423 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4424 # This compiler won't grok '-c -o', but also, the minuso test has
4425 # not run yet. These depmodes are late enough in the game, and
4426 # so weak that their functioning should not be impacted.
4427 am__obj=conftest.${OBJEXT-o}
4428 am__minus_obj=
4429 ;;
4430 none) break ;;
4431 esac
4432 if depmode=$depmode \
4433 source=sub/conftest.c object=$am__obj \
4434 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4435 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4436 >/dev/null 2>conftest.err &&
4437 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4438 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4439 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4440 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4441 # icc doesn't choke on unknown options, it will just issue warnings
4442 # or remarks (even with -Werror). So we grep stderr for any message
4443 # that says an option was ignored or not supported.
4444 # When given -MP, icc 7.0 and 7.1 complain thusly:
4445 # icc: Command line warning: ignoring option '-M'; no argument required
4446 # The diagnosis changed in icc 8.0:
4447 # icc: Command line remark: option '-MP' not supported
4448 if (grep 'ignoring option' conftest.err ||
4449 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4450 am_cv_CC_dependencies_compiler_type=$depmode
4451 break
4452 fi
4453 fi
4454 done
4455
4456 cd ..
4457 rm -rf conftest.dir
4458 else
4459 am_cv_CC_dependencies_compiler_type=none
4460 fi
4461
4462 fi
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4464 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4465 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4466
4467 if
4468 test "x$enable_dependency_tracking" != xno \
4469 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4470 am__fastdepCC_TRUE=
4471 am__fastdepCC_FALSE='#'
4472 else
4473 am__fastdepCC_TRUE='#'
4474 am__fastdepCC_FALSE=
4475 fi
4476
4477
4478
4479 ac_ext=c
4480 ac_cpp='$CPP $CPPFLAGS'
4481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4485 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4486 # On Suns, sometimes $CPP names a directory.
4487 if test -n "$CPP" && test -d "$CPP"; then
4488 CPP=
4489 fi
4490 if test -z "$CPP"; then
4491 if ${ac_cv_prog_CPP+:} false; then :
4492 $as_echo_n "(cached) " >&6
4493 else
4494 # Double quotes because CPP needs to be expanded
4495 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4496 do
4497 ac_preproc_ok=false
4498 for ac_c_preproc_warn_flag in '' yes
4499 do
4500 # Use a header file that comes with gcc, so configuring glibc
4501 # with a fresh cross-compiler works.
4502 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4503 # <limits.h> exists even on freestanding compilers.
4504 # On the NeXT, cc -E runs the code through the compiler's parser,
4505 # not just through cpp. "Syntax error" is here to catch this case.
4506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507 /* end confdefs.h. */
4508 #ifdef __STDC__
4509 # include <limits.h>
4510 #else
4511 # include <assert.h>
4512 #endif
4513 Syntax error
4514 _ACEOF
4515 if ac_fn_c_try_cpp "$LINENO"; then :
4516
4517 else
4518 # Broken: fails on valid input.
4519 continue
4520 fi
4521 rm -f conftest.err conftest.i conftest.$ac_ext
4522
4523 # OK, works on sane cases. Now check whether nonexistent headers
4524 # can be detected and how.
4525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526 /* end confdefs.h. */
4527 #include <ac_nonexistent.h>
4528 _ACEOF
4529 if ac_fn_c_try_cpp "$LINENO"; then :
4530 # Broken: success on invalid input.
4531 continue
4532 else
4533 # Passes both tests.
4534 ac_preproc_ok=:
4535 break
4536 fi
4537 rm -f conftest.err conftest.i conftest.$ac_ext
4538
4539 done
4540 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4541 rm -f conftest.i conftest.err conftest.$ac_ext
4542 if $ac_preproc_ok; then :
4543 break
4544 fi
4545
4546 done
4547 ac_cv_prog_CPP=$CPP
4548
4549 fi
4550 CPP=$ac_cv_prog_CPP
4551 else
4552 ac_cv_prog_CPP=$CPP
4553 fi
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4555 $as_echo "$CPP" >&6; }
4556 ac_preproc_ok=false
4557 for ac_c_preproc_warn_flag in '' yes
4558 do
4559 # Use a header file that comes with gcc, so configuring glibc
4560 # with a fresh cross-compiler works.
4561 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4562 # <limits.h> exists even on freestanding compilers.
4563 # On the NeXT, cc -E runs the code through the compiler's parser,
4564 # not just through cpp. "Syntax error" is here to catch this case.
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h. */
4567 #ifdef __STDC__
4568 # include <limits.h>
4569 #else
4570 # include <assert.h>
4571 #endif
4572 Syntax error
4573 _ACEOF
4574 if ac_fn_c_try_cpp "$LINENO"; then :
4575
4576 else
4577 # Broken: fails on valid input.
4578 continue
4579 fi
4580 rm -f conftest.err conftest.i conftest.$ac_ext
4581
4582 # OK, works on sane cases. Now check whether nonexistent headers
4583 # can be detected and how.
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4586 #include <ac_nonexistent.h>
4587 _ACEOF
4588 if ac_fn_c_try_cpp "$LINENO"; then :
4589 # Broken: success on invalid input.
4590 continue
4591 else
4592 # Passes both tests.
4593 ac_preproc_ok=:
4594 break
4595 fi
4596 rm -f conftest.err conftest.i conftest.$ac_ext
4597
4598 done
4599 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4600 rm -f conftest.i conftest.err conftest.$ac_ext
4601 if $ac_preproc_ok; then :
4602
4603 else
4604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4606 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4607 See \`config.log' for more details" "$LINENO" 5; }
4608 fi
4609
4610 ac_ext=c
4611 ac_cpp='$CPP $CPPFLAGS'
4612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4615
4616
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4618 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4619 if ${ac_cv_path_GREP+:} false; then :
4620 $as_echo_n "(cached) " >&6
4621 else
4622 if test -z "$GREP"; then
4623 ac_path_GREP_found=false
4624 # Loop through the user's path and test for each of PROGNAME-LIST
4625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4627 do
4628 IFS=$as_save_IFS
4629 test -z "$as_dir" && as_dir=.
4630 for ac_prog in grep ggrep; do
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4633 as_fn_executable_p "$ac_path_GREP" || continue
4634 # Check for GNU ac_path_GREP and select it if it is found.
4635 # Check for GNU $ac_path_GREP
4636 case `"$ac_path_GREP" --version 2>&1` in
4637 *GNU*)
4638 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4639 *)
4640 ac_count=0
4641 $as_echo_n 0123456789 >"conftest.in"
4642 while :
4643 do
4644 cat "conftest.in" "conftest.in" >"conftest.tmp"
4645 mv "conftest.tmp" "conftest.in"
4646 cp "conftest.in" "conftest.nl"
4647 $as_echo 'GREP' >> "conftest.nl"
4648 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4649 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4650 as_fn_arith $ac_count + 1 && ac_count=$as_val
4651 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4652 # Best one so far, save it but keep looking for a better one
4653 ac_cv_path_GREP="$ac_path_GREP"
4654 ac_path_GREP_max=$ac_count
4655 fi
4656 # 10*(2^10) chars as input seems more than enough
4657 test $ac_count -gt 10 && break
4658 done
4659 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4660 esac
4661
4662 $ac_path_GREP_found && break 3
4663 done
4664 done
4665 done
4666 IFS=$as_save_IFS
4667 if test -z "$ac_cv_path_GREP"; then
4668 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4669 fi
4670 else
4671 ac_cv_path_GREP=$GREP
4672 fi
4673
4674 fi
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4676 $as_echo "$ac_cv_path_GREP" >&6; }
4677 GREP="$ac_cv_path_GREP"
4678
4679
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4681 $as_echo_n "checking for egrep... " >&6; }
4682 if ${ac_cv_path_EGREP+:} false; then :
4683 $as_echo_n "(cached) " >&6
4684 else
4685 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4686 then ac_cv_path_EGREP="$GREP -E"
4687 else
4688 if test -z "$EGREP"; then
4689 ac_path_EGREP_found=false
4690 # Loop through the user's path and test for each of PROGNAME-LIST
4691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4693 do
4694 IFS=$as_save_IFS
4695 test -z "$as_dir" && as_dir=.
4696 for ac_prog in egrep; do
4697 for ac_exec_ext in '' $ac_executable_extensions; do
4698 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4699 as_fn_executable_p "$ac_path_EGREP" || continue
4700 # Check for GNU ac_path_EGREP and select it if it is found.
4701 # Check for GNU $ac_path_EGREP
4702 case `"$ac_path_EGREP" --version 2>&1` in
4703 *GNU*)
4704 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4705 *)
4706 ac_count=0
4707 $as_echo_n 0123456789 >"conftest.in"
4708 while :
4709 do
4710 cat "conftest.in" "conftest.in" >"conftest.tmp"
4711 mv "conftest.tmp" "conftest.in"
4712 cp "conftest.in" "conftest.nl"
4713 $as_echo 'EGREP' >> "conftest.nl"
4714 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4715 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4716 as_fn_arith $ac_count + 1 && ac_count=$as_val
4717 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4718 # Best one so far, save it but keep looking for a better one
4719 ac_cv_path_EGREP="$ac_path_EGREP"
4720 ac_path_EGREP_max=$ac_count
4721 fi
4722 # 10*(2^10) chars as input seems more than enough
4723 test $ac_count -gt 10 && break
4724 done
4725 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4726 esac
4727
4728 $ac_path_EGREP_found && break 3
4729 done
4730 done
4731 done
4732 IFS=$as_save_IFS
4733 if test -z "$ac_cv_path_EGREP"; then
4734 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4735 fi
4736 else
4737 ac_cv_path_EGREP=$EGREP
4738 fi
4739
4740 fi
4741 fi
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4743 $as_echo "$ac_cv_path_EGREP" >&6; }
4744 EGREP="$ac_cv_path_EGREP"
4745
4746
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4748 $as_echo_n "checking for ANSI C header files... " >&6; }
4749 if ${ac_cv_header_stdc+:} false; then :
4750 $as_echo_n "(cached) " >&6
4751 else
4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753 /* end confdefs.h. */
4754 #include <stdlib.h>
4755 #include <stdarg.h>
4756 #include <string.h>
4757 #include <float.h>
4758
4759 int
4760 main ()
4761 {
4762
4763 ;
4764 return 0;
4765 }
4766 _ACEOF
4767 if ac_fn_c_try_compile "$LINENO"; then :
4768 ac_cv_header_stdc=yes
4769 else
4770 ac_cv_header_stdc=no
4771 fi
4772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4773
4774 if test $ac_cv_header_stdc = yes; then
4775 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h. */
4778 #include <string.h>
4779
4780 _ACEOF
4781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4782 $EGREP "memchr" >/dev/null 2>&1; then :
4783
4784 else
4785 ac_cv_header_stdc=no
4786 fi
4787 rm -f conftest*
4788
4789 fi
4790
4791 if test $ac_cv_header_stdc = yes; then
4792 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794 /* end confdefs.h. */
4795 #include <stdlib.h>
4796
4797 _ACEOF
4798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4799 $EGREP "free" >/dev/null 2>&1; then :
4800
4801 else
4802 ac_cv_header_stdc=no
4803 fi
4804 rm -f conftest*
4805
4806 fi
4807
4808 if test $ac_cv_header_stdc = yes; then
4809 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4810 if test "$cross_compiling" = yes; then :
4811 :
4812 else
4813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814 /* end confdefs.h. */
4815 #include <ctype.h>
4816 #include <stdlib.h>
4817 #if ((' ' & 0x0FF) == 0x020)
4818 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4819 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4820 #else
4821 # define ISLOWER(c) \
4822 (('a' <= (c) && (c) <= 'i') \
4823 || ('j' <= (c) && (c) <= 'r') \
4824 || ('s' <= (c) && (c) <= 'z'))
4825 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4826 #endif
4827
4828 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4829 int
4830 main ()
4831 {
4832 int i;
4833 for (i = 0; i < 256; i++)
4834 if (XOR (islower (i), ISLOWER (i))
4835 || toupper (i) != TOUPPER (i))
4836 return 2;
4837 return 0;
4838 }
4839 _ACEOF
4840 if ac_fn_c_try_run "$LINENO"; then :
4841
4842 else
4843 ac_cv_header_stdc=no
4844 fi
4845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4846 conftest.$ac_objext conftest.beam conftest.$ac_ext
4847 fi
4848
4849 fi
4850 fi
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4852 $as_echo "$ac_cv_header_stdc" >&6; }
4853 if test $ac_cv_header_stdc = yes; then
4854
4855 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4856
4857 fi
4858
4859 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4860 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4861 inttypes.h stdint.h unistd.h
4862 do :
4863 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4864 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4865 "
4866 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4867 cat >>confdefs.h <<_ACEOF
4868 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4869 _ACEOF
4870
4871 fi
4872
4873 done
4874
4875
4876
4877 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4878 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4879 MINIX=yes
4880 else
4881 MINIX=
4882 fi
4883
4884
4885 if test "$MINIX" = yes; then
4886
4887 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4888
4889
4890 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4891
4892
4893 $as_echo "#define _MINIX 1" >>confdefs.h
4894
4895 fi
4896
4897
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4899 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4900 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4901 $as_echo_n "(cached) " >&6
4902 else
4903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4904 /* end confdefs.h. */
4905
4906 # define __EXTENSIONS__ 1
4907 $ac_includes_default
4908 int
4909 main ()
4910 {
4911
4912 ;
4913 return 0;
4914 }
4915 _ACEOF
4916 if ac_fn_c_try_compile "$LINENO"; then :
4917 ac_cv_safe_to_define___extensions__=yes
4918 else
4919 ac_cv_safe_to_define___extensions__=no
4920 fi
4921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4922 fi
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4924 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4925 test $ac_cv_safe_to_define___extensions__ = yes &&
4926 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4927
4928 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4929
4930 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4931
4932 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4933
4934 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4935
4936
4937
4938 # Initialize libtool
4939
4940 case `pwd` in
4941 *\ * | *\ *)
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4943 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4944 esac
4945
4946
4947
4948 macro_version='2.4.6'
4949 macro_revision='2.4.6'
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963 ltmain=$ac_aux_dir/ltmain.sh
4964
4965 # Make sure we can run config.sub.
4966 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4967 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4968
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4970 $as_echo_n "checking build system type... " >&6; }
4971 if ${ac_cv_build+:} false; then :
4972 $as_echo_n "(cached) " >&6
4973 else
4974 ac_build_alias=$build_alias
4975 test "x$ac_build_alias" = x &&
4976 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4977 test "x$ac_build_alias" = x &&
4978 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4979 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4980 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4981
4982 fi
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4984 $as_echo "$ac_cv_build" >&6; }
4985 case $ac_cv_build in
4986 *-*-*) ;;
4987 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4988 esac
4989 build=$ac_cv_build
4990 ac_save_IFS=$IFS; IFS='-'
4991 set x $ac_cv_build
4992 shift
4993 build_cpu=$1
4994 build_vendor=$2
4995 shift; shift
4996 # Remember, the first character of IFS is used to create $*,
4997 # except with old shells:
4998 build_os=$*
4999 IFS=$ac_save_IFS
5000 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5001
5002
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5004 $as_echo_n "checking host system type... " >&6; }
5005 if ${ac_cv_host+:} false; then :
5006 $as_echo_n "(cached) " >&6
5007 else
5008 if test "x$host_alias" = x; then
5009 ac_cv_host=$ac_cv_build
5010 else
5011 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5012 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5013 fi
5014
5015 fi
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5017 $as_echo "$ac_cv_host" >&6; }
5018 case $ac_cv_host in
5019 *-*-*) ;;
5020 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5021 esac
5022 host=$ac_cv_host
5023 ac_save_IFS=$IFS; IFS='-'
5024 set x $ac_cv_host
5025 shift
5026 host_cpu=$1
5027 host_vendor=$2
5028 shift; shift
5029 # Remember, the first character of IFS is used to create $*,
5030 # except with old shells:
5031 host_os=$*
5032 IFS=$ac_save_IFS
5033 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5034
5035
5036 # Backslashify metacharacters that are still active within
5037 # double-quoted strings.
5038 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5039
5040 # Same as above, but do not quote variable references.
5041 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5042
5043 # Sed substitution to delay expansion of an escaped shell variable in a
5044 # double_quote_subst'ed string.
5045 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5046
5047 # Sed substitution to delay expansion of an escaped single quote.
5048 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5049
5050 # Sed substitution to avoid accidental globbing in evaled expressions
5051 no_glob_subst='s/\*/\\\*/g'
5052
5053 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5054 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5055 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5056
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5058 $as_echo_n "checking how to print strings... " >&6; }
5059 # Test print first, because it will be a builtin if present.
5060 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5061 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5062 ECHO='print -r --'
5063 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5064 ECHO='printf %s\n'
5065 else
5066 # Use this function as a fallback that always works.
5067 func_fallback_echo ()
5068 {
5069 eval 'cat <<_LTECHO_EOF
5070 $1
5071 _LTECHO_EOF'
5072 }
5073 ECHO='func_fallback_echo'
5074 fi
5075
5076 # func_echo_all arg...
5077 # Invoke $ECHO with all args, space-separated.
5078 func_echo_all ()
5079 {
5080 $ECHO ""
5081 }
5082
5083 case $ECHO in
5084 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5085 $as_echo "printf" >&6; } ;;
5086 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5087 $as_echo "print -r" >&6; } ;;
5088 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5089 $as_echo "cat" >&6; } ;;
5090 esac
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5106 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5107 if ${ac_cv_path_SED+:} false; then :
5108 $as_echo_n "(cached) " >&6
5109 else
5110 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5111 for ac_i in 1 2 3 4 5 6 7; do
5112 ac_script="$ac_script$as_nl$ac_script"
5113 done
5114 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5115 { ac_script=; unset ac_script;}
5116 if test -z "$SED"; then
5117 ac_path_SED_found=false
5118 # Loop through the user's path and test for each of PROGNAME-LIST
5119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120 for as_dir in $PATH
5121 do
5122 IFS=$as_save_IFS
5123 test -z "$as_dir" && as_dir=.
5124 for ac_prog in sed gsed; do
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5127 as_fn_executable_p "$ac_path_SED" || continue
5128 # Check for GNU ac_path_SED and select it if it is found.
5129 # Check for GNU $ac_path_SED
5130 case `"$ac_path_SED" --version 2>&1` in
5131 *GNU*)
5132 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5133 *)
5134 ac_count=0
5135 $as_echo_n 0123456789 >"conftest.in"
5136 while :
5137 do
5138 cat "conftest.in" "conftest.in" >"conftest.tmp"
5139 mv "conftest.tmp" "conftest.in"
5140 cp "conftest.in" "conftest.nl"
5141 $as_echo '' >> "conftest.nl"
5142 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5143 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5144 as_fn_arith $ac_count + 1 && ac_count=$as_val
5145 if test $ac_count -gt ${ac_path_SED_max-0}; then
5146 # Best one so far, save it but keep looking for a better one
5147 ac_cv_path_SED="$ac_path_SED"
5148 ac_path_SED_max=$ac_count
5149 fi
5150 # 10*(2^10) chars as input seems more than enough
5151 test $ac_count -gt 10 && break
5152 done
5153 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5154 esac
5155
5156 $ac_path_SED_found && break 3
5157 done
5158 done
5159 done
5160 IFS=$as_save_IFS
5161 if test -z "$ac_cv_path_SED"; then
5162 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5163 fi
5164 else
5165 ac_cv_path_SED=$SED
5166 fi
5167
5168 fi
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5170 $as_echo "$ac_cv_path_SED" >&6; }
5171 SED="$ac_cv_path_SED"
5172 rm -f conftest.sed
5173
5174 test -z "$SED" && SED=sed
5175 Xsed="$SED -e 1s/^X//"
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5188 $as_echo_n "checking for fgrep... " >&6; }
5189 if ${ac_cv_path_FGREP+:} false; then :
5190 $as_echo_n "(cached) " >&6
5191 else
5192 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5193 then ac_cv_path_FGREP="$GREP -F"
5194 else
5195 if test -z "$FGREP"; then
5196 ac_path_FGREP_found=false
5197 # Loop through the user's path and test for each of PROGNAME-LIST
5198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5200 do
5201 IFS=$as_save_IFS
5202 test -z "$as_dir" && as_dir=.
5203 for ac_prog in fgrep; do
5204 for ac_exec_ext in '' $ac_executable_extensions; do
5205 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5206 as_fn_executable_p "$ac_path_FGREP" || continue
5207 # Check for GNU ac_path_FGREP and select it if it is found.
5208 # Check for GNU $ac_path_FGREP
5209 case `"$ac_path_FGREP" --version 2>&1` in
5210 *GNU*)
5211 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5212 *)
5213 ac_count=0
5214 $as_echo_n 0123456789 >"conftest.in"
5215 while :
5216 do
5217 cat "conftest.in" "conftest.in" >"conftest.tmp"
5218 mv "conftest.tmp" "conftest.in"
5219 cp "conftest.in" "conftest.nl"
5220 $as_echo 'FGREP' >> "conftest.nl"
5221 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5222 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5223 as_fn_arith $ac_count + 1 && ac_count=$as_val
5224 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5225 # Best one so far, save it but keep looking for a better one
5226 ac_cv_path_FGREP="$ac_path_FGREP"
5227 ac_path_FGREP_max=$ac_count
5228 fi
5229 # 10*(2^10) chars as input seems more than enough
5230 test $ac_count -gt 10 && break
5231 done
5232 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5233 esac
5234
5235 $ac_path_FGREP_found && break 3
5236 done
5237 done
5238 done
5239 IFS=$as_save_IFS
5240 if test -z "$ac_cv_path_FGREP"; then
5241 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5242 fi
5243 else
5244 ac_cv_path_FGREP=$FGREP
5245 fi
5246
5247 fi
5248 fi
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5250 $as_echo "$ac_cv_path_FGREP" >&6; }
5251 FGREP="$ac_cv_path_FGREP"
5252
5253
5254 test -z "$GREP" && GREP=grep
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274 # Check whether --with-gnu-ld was given.
5275 if test "${with_gnu_ld+set}" = set; then :
5276 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5277 else
5278 with_gnu_ld=no
5279 fi
5280
5281 ac_prog=ld
5282 if test yes = "$GCC"; then
5283 # Check if gcc -print-prog-name=ld gives a path.
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5285 $as_echo_n "checking for ld used by $CC... " >&6; }
5286 case $host in
5287 *-*-mingw*)
5288 # gcc leaves a trailing carriage return, which upsets mingw
5289 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5290 *)
5291 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5292 esac
5293 case $ac_prog in
5294 # Accept absolute paths.
5295 [\\/]* | ?:[\\/]*)
5296 re_direlt='/[^/][^/]*/\.\./'
5297 # Canonicalize the pathname of ld
5298 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5299 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5300 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5301 done
5302 test -z "$LD" && LD=$ac_prog
5303 ;;
5304 "")
5305 # If it fails, then pretend we aren't using GCC.
5306 ac_prog=ld
5307 ;;
5308 *)
5309 # If it is relative, then search for the first ld in PATH.
5310 with_gnu_ld=unknown
5311 ;;
5312 esac
5313 elif test yes = "$with_gnu_ld"; then
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5315 $as_echo_n "checking for GNU ld... " >&6; }
5316 else
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5318 $as_echo_n "checking for non-GNU ld... " >&6; }
5319 fi
5320 if ${lt_cv_path_LD+:} false; then :
5321 $as_echo_n "(cached) " >&6
5322 else
5323 if test -z "$LD"; then
5324 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5325 for ac_dir in $PATH; do
5326 IFS=$lt_save_ifs
5327 test -z "$ac_dir" && ac_dir=.
5328 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5329 lt_cv_path_LD=$ac_dir/$ac_prog
5330 # Check to see if the program is GNU ld. I'd rather use --version,
5331 # but apparently some variants of GNU ld only accept -v.
5332 # Break only if it was the GNU/non-GNU ld that we prefer.
5333 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5334 *GNU* | *'with BFD'*)
5335 test no != "$with_gnu_ld" && break
5336 ;;
5337 *)
5338 test yes != "$with_gnu_ld" && break
5339 ;;
5340 esac
5341 fi
5342 done
5343 IFS=$lt_save_ifs
5344 else
5345 lt_cv_path_LD=$LD # Let the user override the test with a path.
5346 fi
5347 fi
5348
5349 LD=$lt_cv_path_LD
5350 if test -n "$LD"; then
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5352 $as_echo "$LD" >&6; }
5353 else
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5355 $as_echo "no" >&6; }
5356 fi
5357 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5359 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5360 if ${lt_cv_prog_gnu_ld+:} false; then :
5361 $as_echo_n "(cached) " >&6
5362 else
5363 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5364 case `$LD -v 2>&1 </dev/null` in
5365 *GNU* | *'with BFD'*)
5366 lt_cv_prog_gnu_ld=yes
5367 ;;
5368 *)
5369 lt_cv_prog_gnu_ld=no
5370 ;;
5371 esac
5372 fi
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5374 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5375 with_gnu_ld=$lt_cv_prog_gnu_ld
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5386 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5387 if ${lt_cv_path_NM+:} false; then :
5388 $as_echo_n "(cached) " >&6
5389 else
5390 if test -n "$NM"; then
5391 # Let the user override the test.
5392 lt_cv_path_NM=$NM
5393 else
5394 lt_nm_to_check=${ac_tool_prefix}nm
5395 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5396 lt_nm_to_check="$lt_nm_to_check nm"
5397 fi
5398 for lt_tmp_nm in $lt_nm_to_check; do
5399 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5400 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5401 IFS=$lt_save_ifs
5402 test -z "$ac_dir" && ac_dir=.
5403 tmp_nm=$ac_dir/$lt_tmp_nm
5404 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5405 # Check to see if the nm accepts a BSD-compat flag.
5406 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5407 # nm: unknown option "B" ignored
5408 # Tru64's nm complains that /dev/null is an invalid object file
5409 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5410 case $build_os in
5411 mingw*) lt_bad_file=conftest.nm/nofile ;;
5412 *) lt_bad_file=/dev/null ;;
5413 esac
5414 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5415 *$lt_bad_file* | *'Invalid file or object type'*)
5416 lt_cv_path_NM="$tmp_nm -B"
5417 break 2
5418 ;;
5419 *)
5420 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5421 */dev/null*)
5422 lt_cv_path_NM="$tmp_nm -p"
5423 break 2
5424 ;;
5425 *)
5426 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5427 continue # so that we can try to find one that supports BSD flags
5428 ;;
5429 esac
5430 ;;
5431 esac
5432 fi
5433 done
5434 IFS=$lt_save_ifs
5435 done
5436 : ${lt_cv_path_NM=no}
5437 fi
5438 fi
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5440 $as_echo "$lt_cv_path_NM" >&6; }
5441 if test no != "$lt_cv_path_NM"; then
5442 NM=$lt_cv_path_NM
5443 else
5444 # Didn't find any BSD compatible name lister, look for dumpbin.
5445 if test -n "$DUMPBIN"; then :
5446 # Let the user override the test.
5447 else
5448 if test -n "$ac_tool_prefix"; then
5449 for ac_prog in dumpbin "link -dump"
5450 do
5451 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5452 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5454 $as_echo_n "checking for $ac_word... " >&6; }
5455 if ${ac_cv_prog_DUMPBIN+:} false; then :
5456 $as_echo_n "(cached) " >&6
5457 else
5458 if test -n "$DUMPBIN"; then
5459 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5460 else
5461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462 for as_dir in $PATH
5463 do
5464 IFS=$as_save_IFS
5465 test -z "$as_dir" && as_dir=.
5466 for ac_exec_ext in '' $ac_executable_extensions; do
5467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5468 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5470 break 2
5471 fi
5472 done
5473 done
5474 IFS=$as_save_IFS
5475
5476 fi
5477 fi
5478 DUMPBIN=$ac_cv_prog_DUMPBIN
5479 if test -n "$DUMPBIN"; then
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5481 $as_echo "$DUMPBIN" >&6; }
5482 else
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484 $as_echo "no" >&6; }
5485 fi
5486
5487
5488 test -n "$DUMPBIN" && break
5489 done
5490 fi
5491 if test -z "$DUMPBIN"; then
5492 ac_ct_DUMPBIN=$DUMPBIN
5493 for ac_prog in dumpbin "link -dump"
5494 do
5495 # Extract the first word of "$ac_prog", so it can be a program name with args.
5496 set dummy $ac_prog; ac_word=$2
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5498 $as_echo_n "checking for $ac_word... " >&6; }
5499 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5500 $as_echo_n "(cached) " >&6
5501 else
5502 if test -n "$ac_ct_DUMPBIN"; then
5503 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5504 else
5505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 for as_dir in $PATH
5507 do
5508 IFS=$as_save_IFS
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5512 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5514 break 2
5515 fi
5516 done
5517 done
5518 IFS=$as_save_IFS
5519
5520 fi
5521 fi
5522 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5523 if test -n "$ac_ct_DUMPBIN"; then
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5525 $as_echo "$ac_ct_DUMPBIN" >&6; }
5526 else
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528 $as_echo "no" >&6; }
5529 fi
5530
5531
5532 test -n "$ac_ct_DUMPBIN" && break
5533 done
5534
5535 if test "x$ac_ct_DUMPBIN" = x; then
5536 DUMPBIN=":"
5537 else
5538 case $cross_compiling:$ac_tool_warned in
5539 yes:)
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5542 ac_tool_warned=yes ;;
5543 esac
5544 DUMPBIN=$ac_ct_DUMPBIN
5545 fi
5546 fi
5547
5548 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5549 *COFF*)
5550 DUMPBIN="$DUMPBIN -symbols -headers"
5551 ;;
5552 *)
5553 DUMPBIN=:
5554 ;;
5555 esac
5556 fi
5557
5558 if test : != "$DUMPBIN"; then
5559 NM=$DUMPBIN
5560 fi
5561 fi
5562 test -z "$NM" && NM=nm
5563
5564
5565
5566
5567
5568
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5570 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5571 if ${lt_cv_nm_interface+:} false; then :
5572 $as_echo_n "(cached) " >&6
5573 else
5574 lt_cv_nm_interface="BSD nm"
5575 echo "int some_variable = 0;" > conftest.$ac_ext
5576 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5577 (eval "$ac_compile" 2>conftest.err)
5578 cat conftest.err >&5
5579 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5580 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5581 cat conftest.err >&5
5582 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5583 cat conftest.out >&5
5584 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5585 lt_cv_nm_interface="MS dumpbin"
5586 fi
5587 rm -f conftest*
5588 fi
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5590 $as_echo "$lt_cv_nm_interface" >&6; }
5591
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5593 $as_echo_n "checking whether ln -s works... " >&6; }
5594 LN_S=$as_ln_s
5595 if test "$LN_S" = "ln -s"; then
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5597 $as_echo "yes" >&6; }
5598 else
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5600 $as_echo "no, using $LN_S" >&6; }
5601 fi
5602
5603 # find the maximum length of command line arguments
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5605 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5606 if ${lt_cv_sys_max_cmd_len+:} false; then :
5607 $as_echo_n "(cached) " >&6
5608 else
5609 i=0
5610 teststring=ABCD
5611
5612 case $build_os in
5613 msdosdjgpp*)
5614 # On DJGPP, this test can blow up pretty badly due to problems in libc
5615 # (any single argument exceeding 2000 bytes causes a buffer overrun
5616 # during glob expansion). Even if it were fixed, the result of this
5617 # check would be larger than it should be.
5618 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5619 ;;
5620
5621 gnu*)
5622 # Under GNU Hurd, this test is not required because there is
5623 # no limit to the length of command line arguments.
5624 # Libtool will interpret -1 as no limit whatsoever
5625 lt_cv_sys_max_cmd_len=-1;
5626 ;;
5627
5628 cygwin* | mingw* | cegcc*)
5629 # On Win9x/ME, this test blows up -- it succeeds, but takes
5630 # about 5 minutes as the teststring grows exponentially.
5631 # Worse, since 9x/ME are not pre-emptively multitasking,
5632 # you end up with a "frozen" computer, even though with patience
5633 # the test eventually succeeds (with a max line length of 256k).
5634 # Instead, let's just punt: use the minimum linelength reported by
5635 # all of the supported platforms: 8192 (on NT/2K/XP).
5636 lt_cv_sys_max_cmd_len=8192;
5637 ;;
5638
5639 mint*)
5640 # On MiNT this can take a long time and run out of memory.
5641 lt_cv_sys_max_cmd_len=8192;
5642 ;;
5643
5644 amigaos*)
5645 # On AmigaOS with pdksh, this test takes hours, literally.
5646 # So we just punt and use a minimum line length of 8192.
5647 lt_cv_sys_max_cmd_len=8192;
5648 ;;
5649
5650 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5651 # This has been around since 386BSD, at least. Likely further.
5652 if test -x /sbin/sysctl; then
5653 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5654 elif test -x /usr/sbin/sysctl; then
5655 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5656 else
5657 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5658 fi
5659 # And add a safety zone
5660 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5661 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5662 ;;
5663
5664 interix*)
5665 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5666 lt_cv_sys_max_cmd_len=196608
5667 ;;
5668
5669 os2*)
5670 # The test takes a long time on OS/2.
5671 lt_cv_sys_max_cmd_len=8192
5672 ;;
5673
5674 osf*)
5675 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5676 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5677 # nice to cause kernel panics so lets avoid the loop below.
5678 # First set a reasonable default.
5679 lt_cv_sys_max_cmd_len=16384
5680 #
5681 if test -x /sbin/sysconfig; then
5682 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5683 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5684 esac
5685 fi
5686 ;;
5687 sco3.2v5*)
5688 lt_cv_sys_max_cmd_len=102400
5689 ;;
5690 sysv5* | sco5v6* | sysv4.2uw2*)
5691 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5692 if test -n "$kargmax"; then
5693 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5694 else
5695 lt_cv_sys_max_cmd_len=32768
5696 fi
5697 ;;
5698 *)
5699 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5700 if test -n "$lt_cv_sys_max_cmd_len" && \
5701 test undefined != "$lt_cv_sys_max_cmd_len"; then
5702 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5703 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5704 else
5705 # Make teststring a little bigger before we do anything with it.
5706 # a 1K string should be a reasonable start.
5707 for i in 1 2 3 4 5 6 7 8; do
5708 teststring=$teststring$teststring
5709 done
5710 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5711 # If test is not a shell built-in, we'll probably end up computing a
5712 # maximum length that is only half of the actual maximum length, but
5713 # we can't tell.
5714 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5715 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5716 test 17 != "$i" # 1/2 MB should be enough
5717 do
5718 i=`expr $i + 1`
5719 teststring=$teststring$teststring
5720 done
5721 # Only check the string length outside the loop.
5722 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5723 teststring=
5724 # Add a significant safety factor because C++ compilers can tack on
5725 # massive amounts of additional arguments before passing them to the
5726 # linker. It appears as though 1/2 is a usable value.
5727 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5728 fi
5729 ;;
5730 esac
5731
5732 fi
5733
5734 if test -n "$lt_cv_sys_max_cmd_len"; then
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5736 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5737 else
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5739 $as_echo "none" >&6; }
5740 fi
5741 max_cmd_len=$lt_cv_sys_max_cmd_len
5742
5743
5744
5745
5746
5747
5748 : ${CP="cp -f"}
5749 : ${MV="mv -f"}
5750 : ${RM="rm -f"}
5751
5752 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5753 lt_unset=unset
5754 else
5755 lt_unset=false
5756 fi
5757
5758
5759
5760
5761
5762 # test EBCDIC or ASCII
5763 case `echo X|tr X '\101'` in
5764 A) # ASCII based system
5765 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5766 lt_SP2NL='tr \040 \012'
5767 lt_NL2SP='tr \015\012 \040\040'
5768 ;;
5769 *) # EBCDIC based system
5770 lt_SP2NL='tr \100 \n'
5771 lt_NL2SP='tr \r\n \100\100'
5772 ;;
5773 esac
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5784 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5785 if ${lt_cv_to_host_file_cmd+:} false; then :
5786 $as_echo_n "(cached) " >&6
5787 else
5788 case $host in
5789 *-*-mingw* )
5790 case $build in
5791 *-*-mingw* ) # actually msys
5792 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5793 ;;
5794 *-*-cygwin* )
5795 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5796 ;;
5797 * ) # otherwise, assume *nix
5798 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5799 ;;
5800 esac
5801 ;;
5802 *-*-cygwin* )
5803 case $build in
5804 *-*-mingw* ) # actually msys
5805 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5806 ;;
5807 *-*-cygwin* )
5808 lt_cv_to_host_file_cmd=func_convert_file_noop
5809 ;;
5810 * ) # otherwise, assume *nix
5811 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5812 ;;
5813 esac
5814 ;;
5815 * ) # unhandled hosts (and "normal" native builds)
5816 lt_cv_to_host_file_cmd=func_convert_file_noop
5817 ;;
5818 esac
5819
5820 fi
5821
5822 to_host_file_cmd=$lt_cv_to_host_file_cmd
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5824 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5825
5826
5827
5828
5829
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5831 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5832 if ${lt_cv_to_tool_file_cmd+:} false; then :
5833 $as_echo_n "(cached) " >&6
5834 else
5835 #assume ordinary cross tools, or native build.
5836 lt_cv_to_tool_file_cmd=func_convert_file_noop
5837 case $host in
5838 *-*-mingw* )
5839 case $build in
5840 *-*-mingw* ) # actually msys
5841 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5842 ;;
5843 esac
5844 ;;
5845 esac
5846
5847 fi
5848
5849 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5851 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5852
5853
5854
5855
5856
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5858 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5859 if ${lt_cv_ld_reload_flag+:} false; then :
5860 $as_echo_n "(cached) " >&6
5861 else
5862 lt_cv_ld_reload_flag='-r'
5863 fi
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5865 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5866 reload_flag=$lt_cv_ld_reload_flag
5867 case $reload_flag in
5868 "" | " "*) ;;
5869 *) reload_flag=" $reload_flag" ;;
5870 esac
5871 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5872 case $host_os in
5873 cygwin* | mingw* | pw32* | cegcc*)
5874 if test yes != "$GCC"; then
5875 reload_cmds=false
5876 fi
5877 ;;
5878 darwin*)
5879 if test yes = "$GCC"; then
5880 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5881 else
5882 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5883 fi
5884 ;;
5885 esac
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895 if test -n "$ac_tool_prefix"; then
5896 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5897 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5899 $as_echo_n "checking for $ac_word... " >&6; }
5900 if ${ac_cv_prog_OBJDUMP+:} false; then :
5901 $as_echo_n "(cached) " >&6
5902 else
5903 if test -n "$OBJDUMP"; then
5904 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5905 else
5906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907 for as_dir in $PATH
5908 do
5909 IFS=$as_save_IFS
5910 test -z "$as_dir" && as_dir=.
5911 for ac_exec_ext in '' $ac_executable_extensions; do
5912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5913 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5915 break 2
5916 fi
5917 done
5918 done
5919 IFS=$as_save_IFS
5920
5921 fi
5922 fi
5923 OBJDUMP=$ac_cv_prog_OBJDUMP
5924 if test -n "$OBJDUMP"; then
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5926 $as_echo "$OBJDUMP" >&6; }
5927 else
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5929 $as_echo "no" >&6; }
5930 fi
5931
5932
5933 fi
5934 if test -z "$ac_cv_prog_OBJDUMP"; then
5935 ac_ct_OBJDUMP=$OBJDUMP
5936 # Extract the first word of "objdump", so it can be a program name with args.
5937 set dummy objdump; ac_word=$2
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5939 $as_echo_n "checking for $ac_word... " >&6; }
5940 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5941 $as_echo_n "(cached) " >&6
5942 else
5943 if test -n "$ac_ct_OBJDUMP"; then
5944 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5945 else
5946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947 for as_dir in $PATH
5948 do
5949 IFS=$as_save_IFS
5950 test -z "$as_dir" && as_dir=.
5951 for ac_exec_ext in '' $ac_executable_extensions; do
5952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5953 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5955 break 2
5956 fi
5957 done
5958 done
5959 IFS=$as_save_IFS
5960
5961 fi
5962 fi
5963 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5964 if test -n "$ac_ct_OBJDUMP"; then
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5966 $as_echo "$ac_ct_OBJDUMP" >&6; }
5967 else
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5969 $as_echo "no" >&6; }
5970 fi
5971
5972 if test "x$ac_ct_OBJDUMP" = x; then
5973 OBJDUMP="false"
5974 else
5975 case $cross_compiling:$ac_tool_warned in
5976 yes:)
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5979 ac_tool_warned=yes ;;
5980 esac
5981 OBJDUMP=$ac_ct_OBJDUMP
5982 fi
5983 else
5984 OBJDUMP="$ac_cv_prog_OBJDUMP"
5985 fi
5986
5987 test -z "$OBJDUMP" && OBJDUMP=objdump
5988
5989
5990
5991
5992
5993
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5995 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5996 if ${lt_cv_deplibs_check_method+:} false; then :
5997 $as_echo_n "(cached) " >&6
5998 else
5999 lt_cv_file_magic_cmd='$MAGIC_CMD'
6000 lt_cv_file_magic_test_file=
6001 lt_cv_deplibs_check_method='unknown'
6002 # Need to set the preceding variable on all platforms that support
6003 # interlibrary dependencies.
6004 # 'none' -- dependencies not supported.
6005 # 'unknown' -- same as none, but documents that we really don't know.
6006 # 'pass_all' -- all dependencies passed with no checks.
6007 # 'test_compile' -- check by making test program.
6008 # 'file_magic [[regex]]' -- check by looking for files in library path
6009 # that responds to the $file_magic_cmd with a given extended regex.
6010 # If you have 'file' or equivalent on your system and you're not sure
6011 # whether 'pass_all' will *always* work, you probably want this one.
6012
6013 case $host_os in
6014 aix[4-9]*)
6015 lt_cv_deplibs_check_method=pass_all
6016 ;;
6017
6018 beos*)
6019 lt_cv_deplibs_check_method=pass_all
6020 ;;
6021
6022 bsdi[45]*)
6023 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6024 lt_cv_file_magic_cmd='/usr/bin/file -L'
6025 lt_cv_file_magic_test_file=/shlib/libc.so
6026 ;;
6027
6028 cygwin*)
6029 # func_win32_libid is a shell function defined in ltmain.sh
6030 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6031 lt_cv_file_magic_cmd='func_win32_libid'
6032 ;;
6033
6034 mingw* | pw32*)
6035 # Base MSYS/MinGW do not provide the 'file' command needed by
6036 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6037 # unless we find 'file', for example because we are cross-compiling.
6038 if ( file / ) >/dev/null 2>&1; then
6039 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6040 lt_cv_file_magic_cmd='func_win32_libid'
6041 else
6042 # Keep this pattern in sync with the one in func_win32_libid.
6043 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6044 lt_cv_file_magic_cmd='$OBJDUMP -f'
6045 fi
6046 ;;
6047
6048 cegcc*)
6049 # use the weaker test based on 'objdump'. See mingw*.
6050 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6051 lt_cv_file_magic_cmd='$OBJDUMP -f'
6052 ;;
6053
6054 darwin* | rhapsody*)
6055 lt_cv_deplibs_check_method=pass_all
6056 ;;
6057
6058 freebsd* | dragonfly*)
6059 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6060 case $host_cpu in
6061 i*86 )
6062 # Not sure whether the presence of OpenBSD here was a mistake.
6063 # Let's accept both of them until this is cleared up.
6064 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6065 lt_cv_file_magic_cmd=/usr/bin/file
6066 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6067 ;;
6068 esac
6069 else
6070 lt_cv_deplibs_check_method=pass_all
6071 fi
6072 ;;
6073
6074 haiku*)
6075 lt_cv_deplibs_check_method=pass_all
6076 ;;
6077
6078 hpux10.20* | hpux11*)
6079 lt_cv_file_magic_cmd=/usr/bin/file
6080 case $host_cpu in
6081 ia64*)
6082 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6083 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6084 ;;
6085 hppa*64*)
6086 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]'
6087 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6088 ;;
6089 *)
6090 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6091 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6092 ;;
6093 esac
6094 ;;
6095
6096 interix[3-9]*)
6097 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6098 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6099 ;;
6100
6101 irix5* | irix6* | nonstopux*)
6102 case $LD in
6103 *-32|*"-32 ") libmagic=32-bit;;
6104 *-n32|*"-n32 ") libmagic=N32;;
6105 *-64|*"-64 ") libmagic=64-bit;;
6106 *) libmagic=never-match;;
6107 esac
6108 lt_cv_deplibs_check_method=pass_all
6109 ;;
6110
6111 # This must be glibc/ELF.
6112 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6113 lt_cv_deplibs_check_method=pass_all
6114 ;;
6115
6116 netbsd* | netbsdelf*-gnu)
6117 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6118 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6119 else
6120 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6121 fi
6122 ;;
6123
6124 newos6*)
6125 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6126 lt_cv_file_magic_cmd=/usr/bin/file
6127 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6128 ;;
6129
6130 *nto* | *qnx*)
6131 lt_cv_deplibs_check_method=pass_all
6132 ;;
6133
6134 openbsd* | bitrig*)
6135 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6136 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6137 else
6138 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6139 fi
6140 ;;
6141
6142 osf3* | osf4* | osf5*)
6143 lt_cv_deplibs_check_method=pass_all
6144 ;;
6145
6146 rdos*)
6147 lt_cv_deplibs_check_method=pass_all
6148 ;;
6149
6150 solaris*)
6151 lt_cv_deplibs_check_method=pass_all
6152 ;;
6153
6154 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6155 lt_cv_deplibs_check_method=pass_all
6156 ;;
6157
6158 sysv4 | sysv4.3*)
6159 case $host_vendor in
6160 motorola)
6161 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]'
6162 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6163 ;;
6164 ncr)
6165 lt_cv_deplibs_check_method=pass_all
6166 ;;
6167 sequent)
6168 lt_cv_file_magic_cmd='/bin/file'
6169 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6170 ;;
6171 sni)
6172 lt_cv_file_magic_cmd='/bin/file'
6173 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6174 lt_cv_file_magic_test_file=/lib/libc.so
6175 ;;
6176 siemens)
6177 lt_cv_deplibs_check_method=pass_all
6178 ;;
6179 pc)
6180 lt_cv_deplibs_check_method=pass_all
6181 ;;
6182 esac
6183 ;;
6184
6185 tpf*)
6186 lt_cv_deplibs_check_method=pass_all
6187 ;;
6188 os2*)
6189 lt_cv_deplibs_check_method=pass_all
6190 ;;
6191 esac
6192
6193 fi
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6195 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6196
6197 file_magic_glob=
6198 want_nocaseglob=no
6199 if test "$build" = "$host"; then
6200 case $host_os in
6201 mingw* | pw32*)
6202 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6203 want_nocaseglob=yes
6204 else
6205 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6206 fi
6207 ;;
6208 esac
6209 fi
6210
6211 file_magic_cmd=$lt_cv_file_magic_cmd
6212 deplibs_check_method=$lt_cv_deplibs_check_method
6213 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236 if test -n "$ac_tool_prefix"; then
6237 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6238 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6240 $as_echo_n "checking for $ac_word... " >&6; }
6241 if ${ac_cv_prog_DLLTOOL+:} false; then :
6242 $as_echo_n "(cached) " >&6
6243 else
6244 if test -n "$DLLTOOL"; then
6245 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6246 else
6247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248 for as_dir in $PATH
6249 do
6250 IFS=$as_save_IFS
6251 test -z "$as_dir" && as_dir=.
6252 for ac_exec_ext in '' $ac_executable_extensions; do
6253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6254 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6256 break 2
6257 fi
6258 done
6259 done
6260 IFS=$as_save_IFS
6261
6262 fi
6263 fi
6264 DLLTOOL=$ac_cv_prog_DLLTOOL
6265 if test -n "$DLLTOOL"; then
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6267 $as_echo "$DLLTOOL" >&6; }
6268 else
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6270 $as_echo "no" >&6; }
6271 fi
6272
6273
6274 fi
6275 if test -z "$ac_cv_prog_DLLTOOL"; then
6276 ac_ct_DLLTOOL=$DLLTOOL
6277 # Extract the first word of "dlltool", so it can be a program name with args.
6278 set dummy dlltool; ac_word=$2
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6280 $as_echo_n "checking for $ac_word... " >&6; }
6281 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6282 $as_echo_n "(cached) " >&6
6283 else
6284 if test -n "$ac_ct_DLLTOOL"; then
6285 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6286 else
6287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288 for as_dir in $PATH
6289 do
6290 IFS=$as_save_IFS
6291 test -z "$as_dir" && as_dir=.
6292 for ac_exec_ext in '' $ac_executable_extensions; do
6293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6294 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6296 break 2
6297 fi
6298 done
6299 done
6300 IFS=$as_save_IFS
6301
6302 fi
6303 fi
6304 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6305 if test -n "$ac_ct_DLLTOOL"; then
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6307 $as_echo "$ac_ct_DLLTOOL" >&6; }
6308 else
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6310 $as_echo "no" >&6; }
6311 fi
6312
6313 if test "x$ac_ct_DLLTOOL" = x; then
6314 DLLTOOL="false"
6315 else
6316 case $cross_compiling:$ac_tool_warned in
6317 yes:)
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6320 ac_tool_warned=yes ;;
6321 esac
6322 DLLTOOL=$ac_ct_DLLTOOL
6323 fi
6324 else
6325 DLLTOOL="$ac_cv_prog_DLLTOOL"
6326 fi
6327
6328 test -z "$DLLTOOL" && DLLTOOL=dlltool
6329
6330
6331
6332
6333
6334
6335
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6337 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6338 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6339 $as_echo_n "(cached) " >&6
6340 else
6341 lt_cv_sharedlib_from_linklib_cmd='unknown'
6342
6343 case $host_os in
6344 cygwin* | mingw* | pw32* | cegcc*)
6345 # two different shell functions defined in ltmain.sh;
6346 # decide which one to use based on capabilities of $DLLTOOL
6347 case `$DLLTOOL --help 2>&1` in
6348 *--identify-strict*)
6349 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6350 ;;
6351 *)
6352 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6353 ;;
6354 esac
6355 ;;
6356 *)
6357 # fallback: assume linklib IS sharedlib
6358 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6359 ;;
6360 esac
6361
6362 fi
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6364 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6365 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6366 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6367
6368
6369
6370
6371
6372
6373
6374 if test -n "$ac_tool_prefix"; then
6375 for ac_prog in ar
6376 do
6377 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6378 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380 $as_echo_n "checking for $ac_word... " >&6; }
6381 if ${ac_cv_prog_AR+:} false; then :
6382 $as_echo_n "(cached) " >&6
6383 else
6384 if test -n "$AR"; then
6385 ac_cv_prog_AR="$AR" # Let the user override the test.
6386 else
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388 for as_dir in $PATH
6389 do
6390 IFS=$as_save_IFS
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6394 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6396 break 2
6397 fi
6398 done
6399 done
6400 IFS=$as_save_IFS
6401
6402 fi
6403 fi
6404 AR=$ac_cv_prog_AR
6405 if test -n "$AR"; then
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6407 $as_echo "$AR" >&6; }
6408 else
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410 $as_echo "no" >&6; }
6411 fi
6412
6413
6414 test -n "$AR" && break
6415 done
6416 fi
6417 if test -z "$AR"; then
6418 ac_ct_AR=$AR
6419 for ac_prog in ar
6420 do
6421 # Extract the first word of "$ac_prog", so it can be a program name with args.
6422 set dummy $ac_prog; ac_word=$2
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6424 $as_echo_n "checking for $ac_word... " >&6; }
6425 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6426 $as_echo_n "(cached) " >&6
6427 else
6428 if test -n "$ac_ct_AR"; then
6429 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6430 else
6431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432 for as_dir in $PATH
6433 do
6434 IFS=$as_save_IFS
6435 test -z "$as_dir" && as_dir=.
6436 for ac_exec_ext in '' $ac_executable_extensions; do
6437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6438 ac_cv_prog_ac_ct_AR="$ac_prog"
6439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6440 break 2
6441 fi
6442 done
6443 done
6444 IFS=$as_save_IFS
6445
6446 fi
6447 fi
6448 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6449 if test -n "$ac_ct_AR"; then
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6451 $as_echo "$ac_ct_AR" >&6; }
6452 else
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6454 $as_echo "no" >&6; }
6455 fi
6456
6457
6458 test -n "$ac_ct_AR" && break
6459 done
6460
6461 if test "x$ac_ct_AR" = x; then
6462 AR="false"
6463 else
6464 case $cross_compiling:$ac_tool_warned in
6465 yes:)
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6468 ac_tool_warned=yes ;;
6469 esac
6470 AR=$ac_ct_AR
6471 fi
6472 fi
6473
6474 : ${AR=ar}
6475 : ${AR_FLAGS=cru}
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6488 $as_echo_n "checking for archiver @FILE support... " >&6; }
6489 if ${lt_cv_ar_at_file+:} false; then :
6490 $as_echo_n "(cached) " >&6
6491 else
6492 lt_cv_ar_at_file=no
6493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6494 /* end confdefs.h. */
6495
6496 int
6497 main ()
6498 {
6499
6500 ;
6501 return 0;
6502 }
6503 _ACEOF
6504 if ac_fn_c_try_compile "$LINENO"; then :
6505 echo conftest.$ac_objext > conftest.lst
6506 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6507 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6508 (eval $lt_ar_try) 2>&5
6509 ac_status=$?
6510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6511 test $ac_status = 0; }
6512 if test 0 -eq "$ac_status"; then
6513 # Ensure the archiver fails upon bogus file names.
6514 rm -f conftest.$ac_objext libconftest.a
6515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6516 (eval $lt_ar_try) 2>&5
6517 ac_status=$?
6518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6519 test $ac_status = 0; }
6520 if test 0 -ne "$ac_status"; then
6521 lt_cv_ar_at_file=@
6522 fi
6523 fi
6524 rm -f conftest.* libconftest.a
6525
6526 fi
6527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6528
6529 fi
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6531 $as_echo "$lt_cv_ar_at_file" >&6; }
6532
6533 if test no = "$lt_cv_ar_at_file"; then
6534 archiver_list_spec=
6535 else
6536 archiver_list_spec=$lt_cv_ar_at_file
6537 fi
6538
6539
6540
6541
6542
6543
6544
6545 if test -n "$ac_tool_prefix"; then
6546 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6547 set dummy ${ac_tool_prefix}strip; ac_word=$2
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6549 $as_echo_n "checking for $ac_word... " >&6; }
6550 if ${ac_cv_prog_STRIP+:} false; then :
6551 $as_echo_n "(cached) " >&6
6552 else
6553 if test -n "$STRIP"; then
6554 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6555 else
6556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 for as_dir in $PATH
6558 do
6559 IFS=$as_save_IFS
6560 test -z "$as_dir" && as_dir=.
6561 for ac_exec_ext in '' $ac_executable_extensions; do
6562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6563 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6565 break 2
6566 fi
6567 done
6568 done
6569 IFS=$as_save_IFS
6570
6571 fi
6572 fi
6573 STRIP=$ac_cv_prog_STRIP
6574 if test -n "$STRIP"; then
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6576 $as_echo "$STRIP" >&6; }
6577 else
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579 $as_echo "no" >&6; }
6580 fi
6581
6582
6583 fi
6584 if test -z "$ac_cv_prog_STRIP"; then
6585 ac_ct_STRIP=$STRIP
6586 # Extract the first word of "strip", so it can be a program name with args.
6587 set dummy strip; ac_word=$2
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6589 $as_echo_n "checking for $ac_word... " >&6; }
6590 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6591 $as_echo_n "(cached) " >&6
6592 else
6593 if test -n "$ac_ct_STRIP"; then
6594 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6595 else
6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597 for as_dir in $PATH
6598 do
6599 IFS=$as_save_IFS
6600 test -z "$as_dir" && as_dir=.
6601 for ac_exec_ext in '' $ac_executable_extensions; do
6602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6603 ac_cv_prog_ac_ct_STRIP="strip"
6604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6605 break 2
6606 fi
6607 done
6608 done
6609 IFS=$as_save_IFS
6610
6611 fi
6612 fi
6613 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6614 if test -n "$ac_ct_STRIP"; then
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6616 $as_echo "$ac_ct_STRIP" >&6; }
6617 else
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619 $as_echo "no" >&6; }
6620 fi
6621
6622 if test "x$ac_ct_STRIP" = x; then
6623 STRIP=":"
6624 else
6625 case $cross_compiling:$ac_tool_warned in
6626 yes:)
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6629 ac_tool_warned=yes ;;
6630 esac
6631 STRIP=$ac_ct_STRIP
6632 fi
6633 else
6634 STRIP="$ac_cv_prog_STRIP"
6635 fi
6636
6637 test -z "$STRIP" && STRIP=:
6638
6639
6640
6641
6642
6643
6644 if test -n "$ac_tool_prefix"; then
6645 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6646 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6648 $as_echo_n "checking for $ac_word... " >&6; }
6649 if ${ac_cv_prog_RANLIB+:} false; then :
6650 $as_echo_n "(cached) " >&6
6651 else
6652 if test -n "$RANLIB"; then
6653 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6654 else
6655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656 for as_dir in $PATH
6657 do
6658 IFS=$as_save_IFS
6659 test -z "$as_dir" && as_dir=.
6660 for ac_exec_ext in '' $ac_executable_extensions; do
6661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6662 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6664 break 2
6665 fi
6666 done
6667 done
6668 IFS=$as_save_IFS
6669
6670 fi
6671 fi
6672 RANLIB=$ac_cv_prog_RANLIB
6673 if test -n "$RANLIB"; then
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6675 $as_echo "$RANLIB" >&6; }
6676 else
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6678 $as_echo "no" >&6; }
6679 fi
6680
6681
6682 fi
6683 if test -z "$ac_cv_prog_RANLIB"; then
6684 ac_ct_RANLIB=$RANLIB
6685 # Extract the first word of "ranlib", so it can be a program name with args.
6686 set dummy ranlib; ac_word=$2
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6688 $as_echo_n "checking for $ac_word... " >&6; }
6689 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6690 $as_echo_n "(cached) " >&6
6691 else
6692 if test -n "$ac_ct_RANLIB"; then
6693 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6694 else
6695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696 for as_dir in $PATH
6697 do
6698 IFS=$as_save_IFS
6699 test -z "$as_dir" && as_dir=.
6700 for ac_exec_ext in '' $ac_executable_extensions; do
6701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6702 ac_cv_prog_ac_ct_RANLIB="ranlib"
6703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6704 break 2
6705 fi
6706 done
6707 done
6708 IFS=$as_save_IFS
6709
6710 fi
6711 fi
6712 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6713 if test -n "$ac_ct_RANLIB"; then
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6715 $as_echo "$ac_ct_RANLIB" >&6; }
6716 else
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6718 $as_echo "no" >&6; }
6719 fi
6720
6721 if test "x$ac_ct_RANLIB" = x; then
6722 RANLIB=":"
6723 else
6724 case $cross_compiling:$ac_tool_warned in
6725 yes:)
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6728 ac_tool_warned=yes ;;
6729 esac
6730 RANLIB=$ac_ct_RANLIB
6731 fi
6732 else
6733 RANLIB="$ac_cv_prog_RANLIB"
6734 fi
6735
6736 test -z "$RANLIB" && RANLIB=:
6737
6738
6739
6740
6741
6742
6743 # Determine commands to create old-style static archives.
6744 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6745 old_postinstall_cmds='chmod 644 $oldlib'
6746 old_postuninstall_cmds=
6747
6748 if test -n "$RANLIB"; then
6749 case $host_os in
6750 bitrig* | openbsd*)
6751 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6752 ;;
6753 *)
6754 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6755 ;;
6756 esac
6757 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6758 fi
6759
6760 case $host_os in
6761 darwin*)
6762 lock_old_archive_extraction=yes ;;
6763 *)
6764 lock_old_archive_extraction=no ;;
6765 esac
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805 # If no C compiler was specified, use CC.
6806 LTCC=${LTCC-"$CC"}
6807
6808 # If no C compiler flags were specified, use CFLAGS.
6809 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6810
6811 # Allow CC to be a program name with arguments.
6812 compiler=$CC
6813
6814
6815 # Check for command to grab the raw symbol name followed by C symbol from nm.
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6817 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6818 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6819 $as_echo_n "(cached) " >&6
6820 else
6821
6822 # These are sane defaults that work on at least a few old systems.
6823 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6824
6825 # Character class describing NM global symbol codes.
6826 symcode='[BCDEGRST]'
6827
6828 # Regexp to match symbols that can be accessed directly from C.
6829 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6830
6831 # Define system-specific variables.
6832 case $host_os in
6833 aix*)
6834 symcode='[BCDT]'
6835 ;;
6836 cygwin* | mingw* | pw32* | cegcc*)
6837 symcode='[ABCDGISTW]'
6838 ;;
6839 hpux*)
6840 if test ia64 = "$host_cpu"; then
6841 symcode='[ABCDEGRST]'
6842 fi
6843 ;;
6844 irix* | nonstopux*)
6845 symcode='[BCDEGRST]'
6846 ;;
6847 osf*)
6848 symcode='[BCDEGQRST]'
6849 ;;
6850 solaris*)
6851 symcode='[BDRT]'
6852 ;;
6853 sco3.2v5*)
6854 symcode='[DT]'
6855 ;;
6856 sysv4.2uw2*)
6857 symcode='[DT]'
6858 ;;
6859 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6860 symcode='[ABDT]'
6861 ;;
6862 sysv4)
6863 symcode='[DFNSTU]'
6864 ;;
6865 esac
6866
6867 # If we're using GNU nm, then use its standard symbol codes.
6868 case `$NM -V 2>&1` in
6869 *GNU* | *'with BFD'*)
6870 symcode='[ABCDGIRSTW]' ;;
6871 esac
6872
6873 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6874 # Gets list of data symbols to import.
6875 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6876 # Adjust the below global symbol transforms to fixup imported variables.
6877 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6878 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6879 lt_c_name_lib_hook="\
6880 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6881 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6882 else
6883 # Disable hooks by default.
6884 lt_cv_sys_global_symbol_to_import=
6885 lt_cdecl_hook=
6886 lt_c_name_hook=
6887 lt_c_name_lib_hook=
6888 fi
6889
6890 # Transform an extracted symbol line into a proper C declaration.
6891 # Some systems (esp. on ia64) link data and code symbols differently,
6892 # so use this general approach.
6893 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6894 $lt_cdecl_hook\
6895 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6896 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6897
6898 # Transform an extracted symbol line into symbol name and symbol address
6899 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6900 $lt_c_name_hook\
6901 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6902 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6903
6904 # Transform an extracted symbol line into symbol name with lib prefix and
6905 # symbol address.
6906 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6907 $lt_c_name_lib_hook\
6908 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6909 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6910 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6911
6912 # Handle CRLF in mingw tool chain
6913 opt_cr=
6914 case $build_os in
6915 mingw*)
6916 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6917 ;;
6918 esac
6919
6920 # Try without a prefix underscore, then with it.
6921 for ac_symprfx in "" "_"; do
6922
6923 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6924 symxfrm="\\1 $ac_symprfx\\2 \\2"
6925
6926 # Write the raw and C identifiers.
6927 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6928 # Fake it for dumpbin and say T for any non-static function,
6929 # D for any global variable and I for any imported variable.
6930 # Also find C++ and __fastcall symbols from MSVC++,
6931 # which start with @ or ?.
6932 lt_cv_sys_global_symbol_pipe="$AWK '"\
6933 " {last_section=section; section=\$ 3};"\
6934 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6935 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6936 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6937 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6938 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6939 " \$ 0!~/External *\|/{next};"\
6940 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6941 " {if(hide[section]) next};"\
6942 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6943 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6944 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6945 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6946 " ' prfx=^$ac_symprfx"
6947 else
6948 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6949 fi
6950 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6951
6952 # Check to see that the pipe works correctly.
6953 pipe_works=no
6954
6955 rm -f conftest*
6956 cat > conftest.$ac_ext <<_LT_EOF
6957 #ifdef __cplusplus
6958 extern "C" {
6959 #endif
6960 char nm_test_var;
6961 void nm_test_func(void);
6962 void nm_test_func(void){}
6963 #ifdef __cplusplus
6964 }
6965 #endif
6966 int main(){nm_test_var='a';nm_test_func();return(0);}
6967 _LT_EOF
6968
6969 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6970 (eval $ac_compile) 2>&5
6971 ac_status=$?
6972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6973 test $ac_status = 0; }; then
6974 # Now try to grab the symbols.
6975 nlist=conftest.nm
6976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6977 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6978 ac_status=$?
6979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6980 test $ac_status = 0; } && test -s "$nlist"; then
6981 # Try sorting and uniquifying the output.
6982 if sort "$nlist" | uniq > "$nlist"T; then
6983 mv -f "$nlist"T "$nlist"
6984 else
6985 rm -f "$nlist"T
6986 fi
6987
6988 # Make sure that we snagged all the symbols we need.
6989 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6990 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6991 cat <<_LT_EOF > conftest.$ac_ext
6992 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6993 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6994 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6995 relocations are performed -- see ld's documentation on pseudo-relocs. */
6996 # define LT_DLSYM_CONST
6997 #elif defined __osf__
6998 /* This system does not cope well with relocations in const data. */
6999 # define LT_DLSYM_CONST
7000 #else
7001 # define LT_DLSYM_CONST const
7002 #endif
7003
7004 #ifdef __cplusplus
7005 extern "C" {
7006 #endif
7007
7008 _LT_EOF
7009 # Now generate the symbol file.
7010 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7011
7012 cat <<_LT_EOF >> conftest.$ac_ext
7013
7014 /* The mapping between symbol names and symbols. */
7015 LT_DLSYM_CONST struct {
7016 const char *name;
7017 void *address;
7018 }
7019 lt__PROGRAM__LTX_preloaded_symbols[] =
7020 {
7021 { "@PROGRAM@", (void *) 0 },
7022 _LT_EOF
7023 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7024 cat <<\_LT_EOF >> conftest.$ac_ext
7025 {0, (void *) 0}
7026 };
7027
7028 /* This works around a problem in FreeBSD linker */
7029 #ifdef FREEBSD_WORKAROUND
7030 static const void *lt_preloaded_setup() {
7031 return lt__PROGRAM__LTX_preloaded_symbols;
7032 }
7033 #endif
7034
7035 #ifdef __cplusplus
7036 }
7037 #endif
7038 _LT_EOF
7039 # Now try linking the two files.
7040 mv conftest.$ac_objext conftstm.$ac_objext
7041 lt_globsym_save_LIBS=$LIBS
7042 lt_globsym_save_CFLAGS=$CFLAGS
7043 LIBS=conftstm.$ac_objext
7044 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7046 (eval $ac_link) 2>&5
7047 ac_status=$?
7048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7049 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7050 pipe_works=yes
7051 fi
7052 LIBS=$lt_globsym_save_LIBS
7053 CFLAGS=$lt_globsym_save_CFLAGS
7054 else
7055 echo "cannot find nm_test_func in $nlist" >&5
7056 fi
7057 else
7058 echo "cannot find nm_test_var in $nlist" >&5
7059 fi
7060 else
7061 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7062 fi
7063 else
7064 echo "$progname: failed program was:" >&5
7065 cat conftest.$ac_ext >&5
7066 fi
7067 rm -rf conftest* conftst*
7068
7069 # Do not use the global_symbol_pipe unless it works.
7070 if test yes = "$pipe_works"; then
7071 break
7072 else
7073 lt_cv_sys_global_symbol_pipe=
7074 fi
7075 done
7076
7077 fi
7078
7079 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7080 lt_cv_sys_global_symbol_to_cdecl=
7081 fi
7082 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7084 $as_echo "failed" >&6; }
7085 else
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7087 $as_echo "ok" >&6; }
7088 fi
7089
7090 # Response file support.
7091 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7092 nm_file_list_spec='@'
7093 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7094 nm_file_list_spec='@'
7095 fi
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7134 $as_echo_n "checking for sysroot... " >&6; }
7135
7136 # Check whether --with-sysroot was given.
7137 if test "${with_sysroot+set}" = set; then :
7138 withval=$with_sysroot;
7139 else
7140 with_sysroot=no
7141 fi
7142
7143
7144 lt_sysroot=
7145 case $with_sysroot in #(
7146 yes)
7147 if test yes = "$GCC"; then
7148 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7149 fi
7150 ;; #(
7151 /*)
7152 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7153 ;; #(
7154 no|'')
7155 ;; #(
7156 *)
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7158 $as_echo "$with_sysroot" >&6; }
7159 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7160 ;;
7161 esac
7162
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7164 $as_echo "${lt_sysroot:-no}" >&6; }
7165
7166
7167
7168
7169
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7171 $as_echo_n "checking for a working dd... " >&6; }
7172 if ${ac_cv_path_lt_DD+:} false; then :
7173 $as_echo_n "(cached) " >&6
7174 else
7175 printf 0123456789abcdef0123456789abcdef >conftest.i
7176 cat conftest.i conftest.i >conftest2.i
7177 : ${lt_DD:=$DD}
7178 if test -z "$lt_DD"; then
7179 ac_path_lt_DD_found=false
7180 # Loop through the user's path and test for each of PROGNAME-LIST
7181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182 for as_dir in $PATH
7183 do
7184 IFS=$as_save_IFS
7185 test -z "$as_dir" && as_dir=.
7186 for ac_prog in dd; do
7187 for ac_exec_ext in '' $ac_executable_extensions; do
7188 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7189 as_fn_executable_p "$ac_path_lt_DD" || continue
7190 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7191 cmp -s conftest.i conftest.out \
7192 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7193 fi
7194 $ac_path_lt_DD_found && break 3
7195 done
7196 done
7197 done
7198 IFS=$as_save_IFS
7199 if test -z "$ac_cv_path_lt_DD"; then
7200 :
7201 fi
7202 else
7203 ac_cv_path_lt_DD=$lt_DD
7204 fi
7205
7206 rm -f conftest.i conftest2.i conftest.out
7207 fi
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7209 $as_echo "$ac_cv_path_lt_DD" >&6; }
7210
7211
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7213 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7214 if ${lt_cv_truncate_bin+:} false; then :
7215 $as_echo_n "(cached) " >&6
7216 else
7217 printf 0123456789abcdef0123456789abcdef >conftest.i
7218 cat conftest.i conftest.i >conftest2.i
7219 lt_cv_truncate_bin=
7220 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7221 cmp -s conftest.i conftest.out \
7222 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7223 fi
7224 rm -f conftest.i conftest2.i conftest.out
7225 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7226 fi
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7228 $as_echo "$lt_cv_truncate_bin" >&6; }
7229
7230
7231
7232
7233
7234
7235
7236 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7237 func_cc_basename ()
7238 {
7239 for cc_temp in $*""; do
7240 case $cc_temp in
7241 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7242 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7243 \-*) ;;
7244 *) break;;
7245 esac
7246 done
7247 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7248 }
7249
7250 # Check whether --enable-libtool-lock was given.
7251 if test "${enable_libtool_lock+set}" = set; then :
7252 enableval=$enable_libtool_lock;
7253 fi
7254
7255 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7256
7257 # Some flags need to be propagated to the compiler or linker for good
7258 # libtool support.
7259 case $host in
7260 ia64-*-hpux*)
7261 # Find out what ABI is being produced by ac_compile, and set mode
7262 # options accordingly.
7263 echo 'int i;' > conftest.$ac_ext
7264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7265 (eval $ac_compile) 2>&5
7266 ac_status=$?
7267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7268 test $ac_status = 0; }; then
7269 case `/usr/bin/file conftest.$ac_objext` in
7270 *ELF-32*)
7271 HPUX_IA64_MODE=32
7272 ;;
7273 *ELF-64*)
7274 HPUX_IA64_MODE=64
7275 ;;
7276 esac
7277 fi
7278 rm -rf conftest*
7279 ;;
7280 *-*-irix6*)
7281 # Find out what ABI is being produced by ac_compile, and set linker
7282 # options accordingly.
7283 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7285 (eval $ac_compile) 2>&5
7286 ac_status=$?
7287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7288 test $ac_status = 0; }; then
7289 if test yes = "$lt_cv_prog_gnu_ld"; then
7290 case `/usr/bin/file conftest.$ac_objext` in
7291 *32-bit*)
7292 LD="${LD-ld} -melf32bsmip"
7293 ;;
7294 *N32*)
7295 LD="${LD-ld} -melf32bmipn32"
7296 ;;
7297 *64-bit*)
7298 LD="${LD-ld} -melf64bmip"
7299 ;;
7300 esac
7301 else
7302 case `/usr/bin/file conftest.$ac_objext` in
7303 *32-bit*)
7304 LD="${LD-ld} -32"
7305 ;;
7306 *N32*)
7307 LD="${LD-ld} -n32"
7308 ;;
7309 *64-bit*)
7310 LD="${LD-ld} -64"
7311 ;;
7312 esac
7313 fi
7314 fi
7315 rm -rf conftest*
7316 ;;
7317
7318 mips64*-*linux*)
7319 # Find out what ABI is being produced by ac_compile, and set linker
7320 # options accordingly.
7321 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7323 (eval $ac_compile) 2>&5
7324 ac_status=$?
7325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7326 test $ac_status = 0; }; then
7327 emul=elf
7328 case `/usr/bin/file conftest.$ac_objext` in
7329 *32-bit*)
7330 emul="${emul}32"
7331 ;;
7332 *64-bit*)
7333 emul="${emul}64"
7334 ;;
7335 esac
7336 case `/usr/bin/file conftest.$ac_objext` in
7337 *MSB*)
7338 emul="${emul}btsmip"
7339 ;;
7340 *LSB*)
7341 emul="${emul}ltsmip"
7342 ;;
7343 esac
7344 case `/usr/bin/file conftest.$ac_objext` in
7345 *N32*)
7346 emul="${emul}n32"
7347 ;;
7348 esac
7349 LD="${LD-ld} -m $emul"
7350 fi
7351 rm -rf conftest*
7352 ;;
7353
7354 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7355 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7356 # Find out what ABI is being produced by ac_compile, and set linker
7357 # options accordingly. Note that the listed cases only cover the
7358 # situations where additional linker options are needed (such as when
7359 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7360 # vice versa); the common cases where no linker options are needed do
7361 # not appear in the list.
7362 echo 'int i;' > conftest.$ac_ext
7363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7364 (eval $ac_compile) 2>&5
7365 ac_status=$?
7366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7367 test $ac_status = 0; }; then
7368 case `/usr/bin/file conftest.o` in
7369 *32-bit*)
7370 case $host in
7371 x86_64-*kfreebsd*-gnu)
7372 LD="${LD-ld} -m elf_i386_fbsd"
7373 ;;
7374 x86_64-*linux*)
7375 case `/usr/bin/file conftest.o` in
7376 *x86-64*)
7377 LD="${LD-ld} -m elf32_x86_64"
7378 ;;
7379 *)
7380 LD="${LD-ld} -m elf_i386"
7381 ;;
7382 esac
7383 ;;
7384 powerpc64le-*linux*)
7385 LD="${LD-ld} -m elf32lppclinux"
7386 ;;
7387 powerpc64-*linux*)
7388 LD="${LD-ld} -m elf32ppclinux"
7389 ;;
7390 s390x-*linux*)
7391 LD="${LD-ld} -m elf_s390"
7392 ;;
7393 sparc64-*linux*)
7394 LD="${LD-ld} -m elf32_sparc"
7395 ;;
7396 esac
7397 ;;
7398 *64-bit*)
7399 case $host in
7400 x86_64-*kfreebsd*-gnu)
7401 LD="${LD-ld} -m elf_x86_64_fbsd"
7402 ;;
7403 x86_64-*linux*)
7404 LD="${LD-ld} -m elf_x86_64"
7405 ;;
7406 powerpcle-*linux*)
7407 LD="${LD-ld} -m elf64lppc"
7408 ;;
7409 powerpc-*linux*)
7410 LD="${LD-ld} -m elf64ppc"
7411 ;;
7412 s390*-*linux*|s390*-*tpf*)
7413 LD="${LD-ld} -m elf64_s390"
7414 ;;
7415 sparc*-*linux*)
7416 LD="${LD-ld} -m elf64_sparc"
7417 ;;
7418 esac
7419 ;;
7420 esac
7421 fi
7422 rm -rf conftest*
7423 ;;
7424
7425 *-*-sco3.2v5*)
7426 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7427 SAVE_CFLAGS=$CFLAGS
7428 CFLAGS="$CFLAGS -belf"
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7430 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7431 if ${lt_cv_cc_needs_belf+:} false; then :
7432 $as_echo_n "(cached) " >&6
7433 else
7434 ac_ext=c
7435 ac_cpp='$CPP $CPPFLAGS'
7436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7439
7440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441 /* end confdefs.h. */
7442
7443 int
7444 main ()
7445 {
7446
7447 ;
7448 return 0;
7449 }
7450 _ACEOF
7451 if ac_fn_c_try_link "$LINENO"; then :
7452 lt_cv_cc_needs_belf=yes
7453 else
7454 lt_cv_cc_needs_belf=no
7455 fi
7456 rm -f core conftest.err conftest.$ac_objext \
7457 conftest$ac_exeext conftest.$ac_ext
7458 ac_ext=c
7459 ac_cpp='$CPP $CPPFLAGS'
7460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7463
7464 fi
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7466 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7467 if test yes != "$lt_cv_cc_needs_belf"; then
7468 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7469 CFLAGS=$SAVE_CFLAGS
7470 fi
7471 ;;
7472 *-*solaris*)
7473 # Find out what ABI is being produced by ac_compile, and set linker
7474 # options accordingly.
7475 echo 'int i;' > conftest.$ac_ext
7476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7477 (eval $ac_compile) 2>&5
7478 ac_status=$?
7479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7480 test $ac_status = 0; }; then
7481 case `/usr/bin/file conftest.o` in
7482 *64-bit*)
7483 case $lt_cv_prog_gnu_ld in
7484 yes*)
7485 case $host in
7486 i?86-*-solaris*|x86_64-*-solaris*)
7487 LD="${LD-ld} -m elf_x86_64"
7488 ;;
7489 sparc*-*-solaris*)
7490 LD="${LD-ld} -m elf64_sparc"
7491 ;;
7492 esac
7493 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7494 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7495 LD=${LD-ld}_sol2
7496 fi
7497 ;;
7498 *)
7499 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7500 LD="${LD-ld} -64"
7501 fi
7502 ;;
7503 esac
7504 ;;
7505 esac
7506 fi
7507 rm -rf conftest*
7508 ;;
7509 esac
7510
7511 need_locks=$enable_libtool_lock
7512
7513 if test -n "$ac_tool_prefix"; then
7514 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7515 set dummy ${ac_tool_prefix}mt; ac_word=$2
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517 $as_echo_n "checking for $ac_word... " >&6; }
7518 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7519 $as_echo_n "(cached) " >&6
7520 else
7521 if test -n "$MANIFEST_TOOL"; then
7522 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7523 else
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 for as_dir in $PATH
7526 do
7527 IFS=$as_save_IFS
7528 test -z "$as_dir" && as_dir=.
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7531 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7533 break 2
7534 fi
7535 done
7536 done
7537 IFS=$as_save_IFS
7538
7539 fi
7540 fi
7541 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7542 if test -n "$MANIFEST_TOOL"; then
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7544 $as_echo "$MANIFEST_TOOL" >&6; }
7545 else
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547 $as_echo "no" >&6; }
7548 fi
7549
7550
7551 fi
7552 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7553 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7554 # Extract the first word of "mt", so it can be a program name with args.
7555 set dummy mt; ac_word=$2
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7557 $as_echo_n "checking for $ac_word... " >&6; }
7558 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7559 $as_echo_n "(cached) " >&6
7560 else
7561 if test -n "$ac_ct_MANIFEST_TOOL"; then
7562 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7563 else
7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 for as_dir in $PATH
7566 do
7567 IFS=$as_save_IFS
7568 test -z "$as_dir" && as_dir=.
7569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7571 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7573 break 2
7574 fi
7575 done
7576 done
7577 IFS=$as_save_IFS
7578
7579 fi
7580 fi
7581 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7582 if test -n "$ac_ct_MANIFEST_TOOL"; then
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7584 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7585 else
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7587 $as_echo "no" >&6; }
7588 fi
7589
7590 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7591 MANIFEST_TOOL=":"
7592 else
7593 case $cross_compiling:$ac_tool_warned in
7594 yes:)
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7597 ac_tool_warned=yes ;;
7598 esac
7599 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7600 fi
7601 else
7602 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7603 fi
7604
7605 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7607 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7608 if ${lt_cv_path_mainfest_tool+:} false; then :
7609 $as_echo_n "(cached) " >&6
7610 else
7611 lt_cv_path_mainfest_tool=no
7612 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7613 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7614 cat conftest.err >&5
7615 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7616 lt_cv_path_mainfest_tool=yes
7617 fi
7618 rm -f conftest*
7619 fi
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7621 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7622 if test yes != "$lt_cv_path_mainfest_tool"; then
7623 MANIFEST_TOOL=:
7624 fi
7625
7626
7627
7628
7629
7630
7631 case $host_os in
7632 rhapsody* | darwin*)
7633 if test -n "$ac_tool_prefix"; then
7634 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7635 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7637 $as_echo_n "checking for $ac_word... " >&6; }
7638 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7639 $as_echo_n "(cached) " >&6
7640 else
7641 if test -n "$DSYMUTIL"; then
7642 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7643 else
7644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645 for as_dir in $PATH
7646 do
7647 IFS=$as_save_IFS
7648 test -z "$as_dir" && as_dir=.
7649 for ac_exec_ext in '' $ac_executable_extensions; do
7650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7651 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7653 break 2
7654 fi
7655 done
7656 done
7657 IFS=$as_save_IFS
7658
7659 fi
7660 fi
7661 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7662 if test -n "$DSYMUTIL"; then
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7664 $as_echo "$DSYMUTIL" >&6; }
7665 else
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7667 $as_echo "no" >&6; }
7668 fi
7669
7670
7671 fi
7672 if test -z "$ac_cv_prog_DSYMUTIL"; then
7673 ac_ct_DSYMUTIL=$DSYMUTIL
7674 # Extract the first word of "dsymutil", so it can be a program name with args.
7675 set dummy dsymutil; ac_word=$2
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7677 $as_echo_n "checking for $ac_word... " >&6; }
7678 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7679 $as_echo_n "(cached) " >&6
7680 else
7681 if test -n "$ac_ct_DSYMUTIL"; then
7682 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7683 else
7684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685 for as_dir in $PATH
7686 do
7687 IFS=$as_save_IFS
7688 test -z "$as_dir" && as_dir=.
7689 for ac_exec_ext in '' $ac_executable_extensions; do
7690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7691 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7693 break 2
7694 fi
7695 done
7696 done
7697 IFS=$as_save_IFS
7698
7699 fi
7700 fi
7701 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7702 if test -n "$ac_ct_DSYMUTIL"; then
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7704 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7705 else
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707 $as_echo "no" >&6; }
7708 fi
7709
7710 if test "x$ac_ct_DSYMUTIL" = x; then
7711 DSYMUTIL=":"
7712 else
7713 case $cross_compiling:$ac_tool_warned in
7714 yes:)
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7717 ac_tool_warned=yes ;;
7718 esac
7719 DSYMUTIL=$ac_ct_DSYMUTIL
7720 fi
7721 else
7722 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7723 fi
7724
7725 if test -n "$ac_tool_prefix"; then
7726 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7727 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7729 $as_echo_n "checking for $ac_word... " >&6; }
7730 if ${ac_cv_prog_NMEDIT+:} false; then :
7731 $as_echo_n "(cached) " >&6
7732 else
7733 if test -n "$NMEDIT"; then
7734 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7735 else
7736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737 for as_dir in $PATH
7738 do
7739 IFS=$as_save_IFS
7740 test -z "$as_dir" && as_dir=.
7741 for ac_exec_ext in '' $ac_executable_extensions; do
7742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7743 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7745 break 2
7746 fi
7747 done
7748 done
7749 IFS=$as_save_IFS
7750
7751 fi
7752 fi
7753 NMEDIT=$ac_cv_prog_NMEDIT
7754 if test -n "$NMEDIT"; then
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7756 $as_echo "$NMEDIT" >&6; }
7757 else
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7759 $as_echo "no" >&6; }
7760 fi
7761
7762
7763 fi
7764 if test -z "$ac_cv_prog_NMEDIT"; then
7765 ac_ct_NMEDIT=$NMEDIT
7766 # Extract the first word of "nmedit", so it can be a program name with args.
7767 set dummy nmedit; ac_word=$2
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7769 $as_echo_n "checking for $ac_word... " >&6; }
7770 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7771 $as_echo_n "(cached) " >&6
7772 else
7773 if test -n "$ac_ct_NMEDIT"; then
7774 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7775 else
7776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7777 for as_dir in $PATH
7778 do
7779 IFS=$as_save_IFS
7780 test -z "$as_dir" && as_dir=.
7781 for ac_exec_ext in '' $ac_executable_extensions; do
7782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7783 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7785 break 2
7786 fi
7787 done
7788 done
7789 IFS=$as_save_IFS
7790
7791 fi
7792 fi
7793 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7794 if test -n "$ac_ct_NMEDIT"; then
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7796 $as_echo "$ac_ct_NMEDIT" >&6; }
7797 else
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7799 $as_echo "no" >&6; }
7800 fi
7801
7802 if test "x$ac_ct_NMEDIT" = x; then
7803 NMEDIT=":"
7804 else
7805 case $cross_compiling:$ac_tool_warned in
7806 yes:)
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7809 ac_tool_warned=yes ;;
7810 esac
7811 NMEDIT=$ac_ct_NMEDIT
7812 fi
7813 else
7814 NMEDIT="$ac_cv_prog_NMEDIT"
7815 fi
7816
7817 if test -n "$ac_tool_prefix"; then
7818 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7819 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7821 $as_echo_n "checking for $ac_word... " >&6; }
7822 if ${ac_cv_prog_LIPO+:} false; then :
7823 $as_echo_n "(cached) " >&6
7824 else
7825 if test -n "$LIPO"; then
7826 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7827 else
7828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7829 for as_dir in $PATH
7830 do
7831 IFS=$as_save_IFS
7832 test -z "$as_dir" && as_dir=.
7833 for ac_exec_ext in '' $ac_executable_extensions; do
7834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7835 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7837 break 2
7838 fi
7839 done
7840 done
7841 IFS=$as_save_IFS
7842
7843 fi
7844 fi
7845 LIPO=$ac_cv_prog_LIPO
7846 if test -n "$LIPO"; then
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7848 $as_echo "$LIPO" >&6; }
7849 else
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7851 $as_echo "no" >&6; }
7852 fi
7853
7854
7855 fi
7856 if test -z "$ac_cv_prog_LIPO"; then
7857 ac_ct_LIPO=$LIPO
7858 # Extract the first word of "lipo", so it can be a program name with args.
7859 set dummy lipo; ac_word=$2
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7861 $as_echo_n "checking for $ac_word... " >&6; }
7862 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7863 $as_echo_n "(cached) " >&6
7864 else
7865 if test -n "$ac_ct_LIPO"; then
7866 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7867 else
7868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7869 for as_dir in $PATH
7870 do
7871 IFS=$as_save_IFS
7872 test -z "$as_dir" && as_dir=.
7873 for ac_exec_ext in '' $ac_executable_extensions; do
7874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7875 ac_cv_prog_ac_ct_LIPO="lipo"
7876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7877 break 2
7878 fi
7879 done
7880 done
7881 IFS=$as_save_IFS
7882
7883 fi
7884 fi
7885 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7886 if test -n "$ac_ct_LIPO"; then
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7888 $as_echo "$ac_ct_LIPO" >&6; }
7889 else
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7891 $as_echo "no" >&6; }
7892 fi
7893
7894 if test "x$ac_ct_LIPO" = x; then
7895 LIPO=":"
7896 else
7897 case $cross_compiling:$ac_tool_warned in
7898 yes:)
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7901 ac_tool_warned=yes ;;
7902 esac
7903 LIPO=$ac_ct_LIPO
7904 fi
7905 else
7906 LIPO="$ac_cv_prog_LIPO"
7907 fi
7908
7909 if test -n "$ac_tool_prefix"; then
7910 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7911 set dummy ${ac_tool_prefix}otool; ac_word=$2
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7913 $as_echo_n "checking for $ac_word... " >&6; }
7914 if ${ac_cv_prog_OTOOL+:} false; then :
7915 $as_echo_n "(cached) " >&6
7916 else
7917 if test -n "$OTOOL"; then
7918 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7919 else
7920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921 for as_dir in $PATH
7922 do
7923 IFS=$as_save_IFS
7924 test -z "$as_dir" && as_dir=.
7925 for ac_exec_ext in '' $ac_executable_extensions; do
7926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7927 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7929 break 2
7930 fi
7931 done
7932 done
7933 IFS=$as_save_IFS
7934
7935 fi
7936 fi
7937 OTOOL=$ac_cv_prog_OTOOL
7938 if test -n "$OTOOL"; then
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7940 $as_echo "$OTOOL" >&6; }
7941 else
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7943 $as_echo "no" >&6; }
7944 fi
7945
7946
7947 fi
7948 if test -z "$ac_cv_prog_OTOOL"; then
7949 ac_ct_OTOOL=$OTOOL
7950 # Extract the first word of "otool", so it can be a program name with args.
7951 set dummy otool; ac_word=$2
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7953 $as_echo_n "checking for $ac_word... " >&6; }
7954 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7955 $as_echo_n "(cached) " >&6
7956 else
7957 if test -n "$ac_ct_OTOOL"; then
7958 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7959 else
7960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961 for as_dir in $PATH
7962 do
7963 IFS=$as_save_IFS
7964 test -z "$as_dir" && as_dir=.
7965 for ac_exec_ext in '' $ac_executable_extensions; do
7966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7967 ac_cv_prog_ac_ct_OTOOL="otool"
7968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7969 break 2
7970 fi
7971 done
7972 done
7973 IFS=$as_save_IFS
7974
7975 fi
7976 fi
7977 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7978 if test -n "$ac_ct_OTOOL"; then
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7980 $as_echo "$ac_ct_OTOOL" >&6; }
7981 else
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7983 $as_echo "no" >&6; }
7984 fi
7985
7986 if test "x$ac_ct_OTOOL" = x; then
7987 OTOOL=":"
7988 else
7989 case $cross_compiling:$ac_tool_warned in
7990 yes:)
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7993 ac_tool_warned=yes ;;
7994 esac
7995 OTOOL=$ac_ct_OTOOL
7996 fi
7997 else
7998 OTOOL="$ac_cv_prog_OTOOL"
7999 fi
8000
8001 if test -n "$ac_tool_prefix"; then
8002 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8003 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8005 $as_echo_n "checking for $ac_word... " >&6; }
8006 if ${ac_cv_prog_OTOOL64+:} false; then :
8007 $as_echo_n "(cached) " >&6
8008 else
8009 if test -n "$OTOOL64"; then
8010 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8011 else
8012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8013 for as_dir in $PATH
8014 do
8015 IFS=$as_save_IFS
8016 test -z "$as_dir" && as_dir=.
8017 for ac_exec_ext in '' $ac_executable_extensions; do
8018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8019 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8021 break 2
8022 fi
8023 done
8024 done
8025 IFS=$as_save_IFS
8026
8027 fi
8028 fi
8029 OTOOL64=$ac_cv_prog_OTOOL64
8030 if test -n "$OTOOL64"; then
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8032 $as_echo "$OTOOL64" >&6; }
8033 else
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8035 $as_echo "no" >&6; }
8036 fi
8037
8038
8039 fi
8040 if test -z "$ac_cv_prog_OTOOL64"; then
8041 ac_ct_OTOOL64=$OTOOL64
8042 # Extract the first word of "otool64", so it can be a program name with args.
8043 set dummy otool64; ac_word=$2
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8045 $as_echo_n "checking for $ac_word... " >&6; }
8046 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8047 $as_echo_n "(cached) " >&6
8048 else
8049 if test -n "$ac_ct_OTOOL64"; then
8050 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8051 else
8052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8053 for as_dir in $PATH
8054 do
8055 IFS=$as_save_IFS
8056 test -z "$as_dir" && as_dir=.
8057 for ac_exec_ext in '' $ac_executable_extensions; do
8058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8059 ac_cv_prog_ac_ct_OTOOL64="otool64"
8060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8061 break 2
8062 fi
8063 done
8064 done
8065 IFS=$as_save_IFS
8066
8067 fi
8068 fi
8069 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8070 if test -n "$ac_ct_OTOOL64"; then
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8072 $as_echo "$ac_ct_OTOOL64" >&6; }
8073 else
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8075 $as_echo "no" >&6; }
8076 fi
8077
8078 if test "x$ac_ct_OTOOL64" = x; then
8079 OTOOL64=":"
8080 else
8081 case $cross_compiling:$ac_tool_warned in
8082 yes:)
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8085 ac_tool_warned=yes ;;
8086 esac
8087 OTOOL64=$ac_ct_OTOOL64
8088 fi
8089 else
8090 OTOOL64="$ac_cv_prog_OTOOL64"
8091 fi
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8120 $as_echo_n "checking for -single_module linker flag... " >&6; }
8121 if ${lt_cv_apple_cc_single_mod+:} false; then :
8122 $as_echo_n "(cached) " >&6
8123 else
8124 lt_cv_apple_cc_single_mod=no
8125 if test -z "$LT_MULTI_MODULE"; then
8126 # By default we will add the -single_module flag. You can override
8127 # by either setting the environment variable LT_MULTI_MODULE
8128 # non-empty at configure time, or by adding -multi_module to the
8129 # link flags.
8130 rm -rf libconftest.dylib*
8131 echo "int foo(void){return 1;}" > conftest.c
8132 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8133 -dynamiclib -Wl,-single_module conftest.c" >&5
8134 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8135 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8136 _lt_result=$?
8137 # If there is a non-empty error log, and "single_module"
8138 # appears in it, assume the flag caused a linker warning
8139 if test -s conftest.err && $GREP single_module conftest.err; then
8140 cat conftest.err >&5
8141 # Otherwise, if the output was created with a 0 exit code from
8142 # the compiler, it worked.
8143 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8144 lt_cv_apple_cc_single_mod=yes
8145 else
8146 cat conftest.err >&5
8147 fi
8148 rm -rf libconftest.dylib*
8149 rm -f conftest.*
8150 fi
8151 fi
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8153 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8154
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8156 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8157 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8158 $as_echo_n "(cached) " >&6
8159 else
8160 lt_cv_ld_exported_symbols_list=no
8161 save_LDFLAGS=$LDFLAGS
8162 echo "_main" > conftest.sym
8163 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h. */
8166
8167 int
8168 main ()
8169 {
8170
8171 ;
8172 return 0;
8173 }
8174 _ACEOF
8175 if ac_fn_c_try_link "$LINENO"; then :
8176 lt_cv_ld_exported_symbols_list=yes
8177 else
8178 lt_cv_ld_exported_symbols_list=no
8179 fi
8180 rm -f core conftest.err conftest.$ac_objext \
8181 conftest$ac_exeext conftest.$ac_ext
8182 LDFLAGS=$save_LDFLAGS
8183
8184 fi
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8186 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8187
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8189 $as_echo_n "checking for -force_load linker flag... " >&6; }
8190 if ${lt_cv_ld_force_load+:} false; then :
8191 $as_echo_n "(cached) " >&6
8192 else
8193 lt_cv_ld_force_load=no
8194 cat > conftest.c << _LT_EOF
8195 int forced_loaded() { return 2;}
8196 _LT_EOF
8197 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8198 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8199 echo "$AR cru libconftest.a conftest.o" >&5
8200 $AR cru libconftest.a conftest.o 2>&5
8201 echo "$RANLIB libconftest.a" >&5
8202 $RANLIB libconftest.a 2>&5
8203 cat > conftest.c << _LT_EOF
8204 int main() { return 0;}
8205 _LT_EOF
8206 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8207 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8208 _lt_result=$?
8209 if test -s conftest.err && $GREP force_load conftest.err; then
8210 cat conftest.err >&5
8211 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8212 lt_cv_ld_force_load=yes
8213 else
8214 cat conftest.err >&5
8215 fi
8216 rm -f conftest.err libconftest.a conftest conftest.c
8217 rm -rf conftest.dSYM
8218
8219 fi
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8221 $as_echo "$lt_cv_ld_force_load" >&6; }
8222 case $host_os in
8223 rhapsody* | darwin1.[012])
8224 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8225 darwin1.*)
8226 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8227 darwin*) # darwin 5.x on
8228 # if running on 10.5 or later, the deployment target defaults
8229 # to the OS version, if on x86, and 10.4, the deployment
8230 # target defaults to 10.4. Don't you love it?
8231 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8232 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8233 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8234 10.[012][,.]*)
8235 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8236 10.*)
8237 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8238 esac
8239 ;;
8240 esac
8241 if test yes = "$lt_cv_apple_cc_single_mod"; then
8242 _lt_dar_single_mod='$single_module'
8243 fi
8244 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8245 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8246 else
8247 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8248 fi
8249 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8250 _lt_dsymutil='~$DSYMUTIL $lib || :'
8251 else
8252 _lt_dsymutil=
8253 fi
8254 ;;
8255 esac
8256
8257 # func_munge_path_list VARIABLE PATH
8258 # -----------------------------------
8259 # VARIABLE is name of variable containing _space_ separated list of
8260 # directories to be munged by the contents of PATH, which is string
8261 # having a format:
8262 # "DIR[:DIR]:"
8263 # string "DIR[ DIR]" will be prepended to VARIABLE
8264 # ":DIR[:DIR]"
8265 # string "DIR[ DIR]" will be appended to VARIABLE
8266 # "DIRP[:DIRP]::[DIRA:]DIRA"
8267 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8268 # "DIRA[ DIRA]" will be appended to VARIABLE
8269 # "DIR[:DIR]"
8270 # VARIABLE will be replaced by "DIR[ DIR]"
8271 func_munge_path_list ()
8272 {
8273 case x$2 in
8274 x)
8275 ;;
8276 *:)
8277 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8278 ;;
8279 x:*)
8280 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8281 ;;
8282 *::*)
8283 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8284 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8285 ;;
8286 *)
8287 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8288 ;;
8289 esac
8290 }
8291
8292 for ac_header in dlfcn.h
8293 do :
8294 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8295 "
8296 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8297 cat >>confdefs.h <<_ACEOF
8298 #define HAVE_DLFCN_H 1
8299 _ACEOF
8300
8301 fi
8302
8303 done
8304
8305
8306
8307
8308
8309 # Set options
8310 enable_win32_dll=yes
8311
8312 case $host in
8313 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8314 if test -n "$ac_tool_prefix"; then
8315 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8316 set dummy ${ac_tool_prefix}as; ac_word=$2
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8318 $as_echo_n "checking for $ac_word... " >&6; }
8319 if ${ac_cv_prog_AS+:} false; then :
8320 $as_echo_n "(cached) " >&6
8321 else
8322 if test -n "$AS"; then
8323 ac_cv_prog_AS="$AS" # Let the user override the test.
8324 else
8325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8326 for as_dir in $PATH
8327 do
8328 IFS=$as_save_IFS
8329 test -z "$as_dir" && as_dir=.
8330 for ac_exec_ext in '' $ac_executable_extensions; do
8331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8332 ac_cv_prog_AS="${ac_tool_prefix}as"
8333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8334 break 2
8335 fi
8336 done
8337 done
8338 IFS=$as_save_IFS
8339
8340 fi
8341 fi
8342 AS=$ac_cv_prog_AS
8343 if test -n "$AS"; then
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8345 $as_echo "$AS" >&6; }
8346 else
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8348 $as_echo "no" >&6; }
8349 fi
8350
8351
8352 fi
8353 if test -z "$ac_cv_prog_AS"; then
8354 ac_ct_AS=$AS
8355 # Extract the first word of "as", so it can be a program name with args.
8356 set dummy as; ac_word=$2
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8358 $as_echo_n "checking for $ac_word... " >&6; }
8359 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8360 $as_echo_n "(cached) " >&6
8361 else
8362 if test -n "$ac_ct_AS"; then
8363 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8364 else
8365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366 for as_dir in $PATH
8367 do
8368 IFS=$as_save_IFS
8369 test -z "$as_dir" && as_dir=.
8370 for ac_exec_ext in '' $ac_executable_extensions; do
8371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8372 ac_cv_prog_ac_ct_AS="as"
8373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8374 break 2
8375 fi
8376 done
8377 done
8378 IFS=$as_save_IFS
8379
8380 fi
8381 fi
8382 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8383 if test -n "$ac_ct_AS"; then
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8385 $as_echo "$ac_ct_AS" >&6; }
8386 else
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388 $as_echo "no" >&6; }
8389 fi
8390
8391 if test "x$ac_ct_AS" = x; then
8392 AS="false"
8393 else
8394 case $cross_compiling:$ac_tool_warned in
8395 yes:)
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8398 ac_tool_warned=yes ;;
8399 esac
8400 AS=$ac_ct_AS
8401 fi
8402 else
8403 AS="$ac_cv_prog_AS"
8404 fi
8405
8406 if test -n "$ac_tool_prefix"; then
8407 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8408 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8410 $as_echo_n "checking for $ac_word... " >&6; }
8411 if ${ac_cv_prog_DLLTOOL+:} false; then :
8412 $as_echo_n "(cached) " >&6
8413 else
8414 if test -n "$DLLTOOL"; then
8415 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8416 else
8417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8418 for as_dir in $PATH
8419 do
8420 IFS=$as_save_IFS
8421 test -z "$as_dir" && as_dir=.
8422 for ac_exec_ext in '' $ac_executable_extensions; do
8423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8424 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8426 break 2
8427 fi
8428 done
8429 done
8430 IFS=$as_save_IFS
8431
8432 fi
8433 fi
8434 DLLTOOL=$ac_cv_prog_DLLTOOL
8435 if test -n "$DLLTOOL"; then
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8437 $as_echo "$DLLTOOL" >&6; }
8438 else
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8440 $as_echo "no" >&6; }
8441 fi
8442
8443
8444 fi
8445 if test -z "$ac_cv_prog_DLLTOOL"; then
8446 ac_ct_DLLTOOL=$DLLTOOL
8447 # Extract the first word of "dlltool", so it can be a program name with args.
8448 set dummy dlltool; ac_word=$2
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8450 $as_echo_n "checking for $ac_word... " >&6; }
8451 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8452 $as_echo_n "(cached) " >&6
8453 else
8454 if test -n "$ac_ct_DLLTOOL"; then
8455 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8456 else
8457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8458 for as_dir in $PATH
8459 do
8460 IFS=$as_save_IFS
8461 test -z "$as_dir" && as_dir=.
8462 for ac_exec_ext in '' $ac_executable_extensions; do
8463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8464 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8466 break 2
8467 fi
8468 done
8469 done
8470 IFS=$as_save_IFS
8471
8472 fi
8473 fi
8474 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8475 if test -n "$ac_ct_DLLTOOL"; then
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8477 $as_echo "$ac_ct_DLLTOOL" >&6; }
8478 else
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8480 $as_echo "no" >&6; }
8481 fi
8482
8483 if test "x$ac_ct_DLLTOOL" = x; then
8484 DLLTOOL="false"
8485 else
8486 case $cross_compiling:$ac_tool_warned in
8487 yes:)
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8490 ac_tool_warned=yes ;;
8491 esac
8492 DLLTOOL=$ac_ct_DLLTOOL
8493 fi
8494 else
8495 DLLTOOL="$ac_cv_prog_DLLTOOL"
8496 fi
8497
8498 if test -n "$ac_tool_prefix"; then
8499 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8500 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8502 $as_echo_n "checking for $ac_word... " >&6; }
8503 if ${ac_cv_prog_OBJDUMP+:} false; then :
8504 $as_echo_n "(cached) " >&6
8505 else
8506 if test -n "$OBJDUMP"; then
8507 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8508 else
8509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8510 for as_dir in $PATH
8511 do
8512 IFS=$as_save_IFS
8513 test -z "$as_dir" && as_dir=.
8514 for ac_exec_ext in '' $ac_executable_extensions; do
8515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8516 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8518 break 2
8519 fi
8520 done
8521 done
8522 IFS=$as_save_IFS
8523
8524 fi
8525 fi
8526 OBJDUMP=$ac_cv_prog_OBJDUMP
8527 if test -n "$OBJDUMP"; then
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8529 $as_echo "$OBJDUMP" >&6; }
8530 else
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8532 $as_echo "no" >&6; }
8533 fi
8534
8535
8536 fi
8537 if test -z "$ac_cv_prog_OBJDUMP"; then
8538 ac_ct_OBJDUMP=$OBJDUMP
8539 # Extract the first word of "objdump", so it can be a program name with args.
8540 set dummy objdump; ac_word=$2
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8542 $as_echo_n "checking for $ac_word... " >&6; }
8543 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8544 $as_echo_n "(cached) " >&6
8545 else
8546 if test -n "$ac_ct_OBJDUMP"; then
8547 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8548 else
8549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8550 for as_dir in $PATH
8551 do
8552 IFS=$as_save_IFS
8553 test -z "$as_dir" && as_dir=.
8554 for ac_exec_ext in '' $ac_executable_extensions; do
8555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8556 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8558 break 2
8559 fi
8560 done
8561 done
8562 IFS=$as_save_IFS
8563
8564 fi
8565 fi
8566 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8567 if test -n "$ac_ct_OBJDUMP"; then
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8569 $as_echo "$ac_ct_OBJDUMP" >&6; }
8570 else
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8572 $as_echo "no" >&6; }
8573 fi
8574
8575 if test "x$ac_ct_OBJDUMP" = x; then
8576 OBJDUMP="false"
8577 else
8578 case $cross_compiling:$ac_tool_warned in
8579 yes:)
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8582 ac_tool_warned=yes ;;
8583 esac
8584 OBJDUMP=$ac_ct_OBJDUMP
8585 fi
8586 else
8587 OBJDUMP="$ac_cv_prog_OBJDUMP"
8588 fi
8589
8590 ;;
8591 esac
8592
8593 test -z "$AS" && AS=as
8594
8595
8596
8597
8598
8599 test -z "$DLLTOOL" && DLLTOOL=dlltool
8600
8601
8602
8603
8604
8605 test -z "$OBJDUMP" && OBJDUMP=objdump
8606
8607
8608
8609
8610
8611
8612
8613 enable_dlopen=no
8614
8615
8616
8617 # Check whether --enable-shared was given.
8618 if test "${enable_shared+set}" = set; then :
8619 enableval=$enable_shared; p=${PACKAGE-default}
8620 case $enableval in
8621 yes) enable_shared=yes ;;
8622 no) enable_shared=no ;;
8623 *)
8624 enable_shared=no
8625 # Look at the argument we got. We use all the common list separators.
8626 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8627 for pkg in $enableval; do
8628 IFS=$lt_save_ifs
8629 if test "X$pkg" = "X$p"; then
8630 enable_shared=yes
8631 fi
8632 done
8633 IFS=$lt_save_ifs
8634 ;;
8635 esac
8636 else
8637 enable_shared=yes
8638 fi
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648 # Check whether --enable-static was given.
8649 if test "${enable_static+set}" = set; then :
8650 enableval=$enable_static; p=${PACKAGE-default}
8651 case $enableval in
8652 yes) enable_static=yes ;;
8653 no) enable_static=no ;;
8654 *)
8655 enable_static=no
8656 # Look at the argument we got. We use all the common list separators.
8657 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8658 for pkg in $enableval; do
8659 IFS=$lt_save_ifs
8660 if test "X$pkg" = "X$p"; then
8661 enable_static=yes
8662 fi
8663 done
8664 IFS=$lt_save_ifs
8665 ;;
8666 esac
8667 else
8668 enable_static=yes
8669 fi
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680 # Check whether --with-pic was given.
8681 if test "${with_pic+set}" = set; then :
8682 withval=$with_pic; lt_p=${PACKAGE-default}
8683 case $withval in
8684 yes|no) pic_mode=$withval ;;
8685 *)
8686 pic_mode=default
8687 # Look at the argument we got. We use all the common list separators.
8688 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8689 for lt_pkg in $withval; do
8690 IFS=$lt_save_ifs
8691 if test "X$lt_pkg" = "X$lt_p"; then
8692 pic_mode=yes
8693 fi
8694 done
8695 IFS=$lt_save_ifs
8696 ;;
8697 esac
8698 else
8699 pic_mode=default
8700 fi
8701
8702
8703
8704
8705
8706
8707
8708
8709 # Check whether --enable-fast-install was given.
8710 if test "${enable_fast_install+set}" = set; then :
8711 enableval=$enable_fast_install; p=${PACKAGE-default}
8712 case $enableval in
8713 yes) enable_fast_install=yes ;;
8714 no) enable_fast_install=no ;;
8715 *)
8716 enable_fast_install=no
8717 # Look at the argument we got. We use all the common list separators.
8718 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8719 for pkg in $enableval; do
8720 IFS=$lt_save_ifs
8721 if test "X$pkg" = "X$p"; then
8722 enable_fast_install=yes
8723 fi
8724 done
8725 IFS=$lt_save_ifs
8726 ;;
8727 esac
8728 else
8729 enable_fast_install=yes
8730 fi
8731
8732
8733
8734
8735
8736
8737
8738
8739 shared_archive_member_spec=
8740 case $host,$enable_shared in
8741 power*-*-aix[5-9]*,yes)
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8743 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8744
8745 # Check whether --with-aix-soname was given.
8746 if test "${with_aix_soname+set}" = set; then :
8747 withval=$with_aix_soname; case $withval in
8748 aix|svr4|both)
8749 ;;
8750 *)
8751 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8752 ;;
8753 esac
8754 lt_cv_with_aix_soname=$with_aix_soname
8755 else
8756 if ${lt_cv_with_aix_soname+:} false; then :
8757 $as_echo_n "(cached) " >&6
8758 else
8759 lt_cv_with_aix_soname=aix
8760 fi
8761
8762 with_aix_soname=$lt_cv_with_aix_soname
8763 fi
8764
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8766 $as_echo "$with_aix_soname" >&6; }
8767 if test aix != "$with_aix_soname"; then
8768 # For the AIX way of multilib, we name the shared archive member
8769 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8770 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8771 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8772 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8773 if test 64 = "${OBJECT_MODE-32}"; then
8774 shared_archive_member_spec=shr_64
8775 else
8776 shared_archive_member_spec=shr
8777 fi
8778 fi
8779 ;;
8780 *)
8781 with_aix_soname=aix
8782 ;;
8783 esac
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794 # This can be used to rebuild libtool when needed
8795 LIBTOOL_DEPS=$ltmain
8796
8797 # Always use our own libtool.
8798 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829 test -z "$LN_S" && LN_S="ln -s"
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844 if test -n "${ZSH_VERSION+set}"; then
8845 setopt NO_GLOB_SUBST
8846 fi
8847
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8849 $as_echo_n "checking for objdir... " >&6; }
8850 if ${lt_cv_objdir+:} false; then :
8851 $as_echo_n "(cached) " >&6
8852 else
8853 rm -f .libs 2>/dev/null
8854 mkdir .libs 2>/dev/null
8855 if test -d .libs; then
8856 lt_cv_objdir=.libs
8857 else
8858 # MS-DOS does not allow filenames that begin with a dot.
8859 lt_cv_objdir=_libs
8860 fi
8861 rmdir .libs 2>/dev/null
8862 fi
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8864 $as_echo "$lt_cv_objdir" >&6; }
8865 objdir=$lt_cv_objdir
8866
8867
8868
8869
8870
8871 cat >>confdefs.h <<_ACEOF
8872 #define LT_OBJDIR "$lt_cv_objdir/"
8873 _ACEOF
8874
8875
8876
8877
8878 case $host_os in
8879 aix3*)
8880 # AIX sometimes has problems with the GCC collect2 program. For some
8881 # reason, if we set the COLLECT_NAMES environment variable, the problems
8882 # vanish in a puff of smoke.
8883 if test set != "${COLLECT_NAMES+set}"; then
8884 COLLECT_NAMES=
8885 export COLLECT_NAMES
8886 fi
8887 ;;
8888 esac
8889
8890 # Global variables:
8891 ofile=libtool
8892 can_build_shared=yes
8893
8894 # All known linkers require a '.a' archive for static linking (except MSVC,
8895 # which needs '.lib').
8896 libext=a
8897
8898 with_gnu_ld=$lt_cv_prog_gnu_ld
8899
8900 old_CC=$CC
8901 old_CFLAGS=$CFLAGS
8902
8903 # Set sane defaults for various variables
8904 test -z "$CC" && CC=cc
8905 test -z "$LTCC" && LTCC=$CC
8906 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8907 test -z "$LD" && LD=ld
8908 test -z "$ac_objext" && ac_objext=o
8909
8910 func_cc_basename $compiler
8911 cc_basename=$func_cc_basename_result
8912
8913
8914 # Only perform the check for file, if the check method requires it
8915 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8916 case $deplibs_check_method in
8917 file_magic*)
8918 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8920 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8921 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8922 $as_echo_n "(cached) " >&6
8923 else
8924 case $MAGIC_CMD in
8925 [\\/*] | ?:[\\/]*)
8926 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8927 ;;
8928 *)
8929 lt_save_MAGIC_CMD=$MAGIC_CMD
8930 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8931 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8932 for ac_dir in $ac_dummy; do
8933 IFS=$lt_save_ifs
8934 test -z "$ac_dir" && ac_dir=.
8935 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8936 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8937 if test -n "$file_magic_test_file"; then
8938 case $deplibs_check_method in
8939 "file_magic "*)
8940 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8941 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8942 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8943 $EGREP "$file_magic_regex" > /dev/null; then
8944 :
8945 else
8946 cat <<_LT_EOF 1>&2
8947
8948 *** Warning: the command libtool uses to detect shared libraries,
8949 *** $file_magic_cmd, produces output that libtool cannot recognize.
8950 *** The result is that libtool may fail to recognize shared libraries
8951 *** as such. This will affect the creation of libtool libraries that
8952 *** depend on shared libraries, but programs linked with such libtool
8953 *** libraries will work regardless of this problem. Nevertheless, you
8954 *** may want to report the problem to your system manager and/or to
8955 *** bug-libtool (at] gnu.org
8956
8957 _LT_EOF
8958 fi ;;
8959 esac
8960 fi
8961 break
8962 fi
8963 done
8964 IFS=$lt_save_ifs
8965 MAGIC_CMD=$lt_save_MAGIC_CMD
8966 ;;
8967 esac
8968 fi
8969
8970 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8971 if test -n "$MAGIC_CMD"; then
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8973 $as_echo "$MAGIC_CMD" >&6; }
8974 else
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8976 $as_echo "no" >&6; }
8977 fi
8978
8979
8980
8981
8982
8983 if test -z "$lt_cv_path_MAGIC_CMD"; then
8984 if test -n "$ac_tool_prefix"; then
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8986 $as_echo_n "checking for file... " >&6; }
8987 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8988 $as_echo_n "(cached) " >&6
8989 else
8990 case $MAGIC_CMD in
8991 [\\/*] | ?:[\\/]*)
8992 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8993 ;;
8994 *)
8995 lt_save_MAGIC_CMD=$MAGIC_CMD
8996 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8997 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8998 for ac_dir in $ac_dummy; do
8999 IFS=$lt_save_ifs
9000 test -z "$ac_dir" && ac_dir=.
9001 if test -f "$ac_dir/file"; then
9002 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9003 if test -n "$file_magic_test_file"; then
9004 case $deplibs_check_method in
9005 "file_magic "*)
9006 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9007 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9008 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9009 $EGREP "$file_magic_regex" > /dev/null; then
9010 :
9011 else
9012 cat <<_LT_EOF 1>&2
9013
9014 *** Warning: the command libtool uses to detect shared libraries,
9015 *** $file_magic_cmd, produces output that libtool cannot recognize.
9016 *** The result is that libtool may fail to recognize shared libraries
9017 *** as such. This will affect the creation of libtool libraries that
9018 *** depend on shared libraries, but programs linked with such libtool
9019 *** libraries will work regardless of this problem. Nevertheless, you
9020 *** may want to report the problem to your system manager and/or to
9021 *** bug-libtool (at] gnu.org
9022
9023 _LT_EOF
9024 fi ;;
9025 esac
9026 fi
9027 break
9028 fi
9029 done
9030 IFS=$lt_save_ifs
9031 MAGIC_CMD=$lt_save_MAGIC_CMD
9032 ;;
9033 esac
9034 fi
9035
9036 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9037 if test -n "$MAGIC_CMD"; then
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9039 $as_echo "$MAGIC_CMD" >&6; }
9040 else
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9042 $as_echo "no" >&6; }
9043 fi
9044
9045
9046 else
9047 MAGIC_CMD=:
9048 fi
9049 fi
9050
9051 fi
9052 ;;
9053 esac
9054
9055 # Use C for the default configuration in the libtool script
9056
9057 lt_save_CC=$CC
9058 ac_ext=c
9059 ac_cpp='$CPP $CPPFLAGS'
9060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9063
9064
9065 # Source file extension for C test sources.
9066 ac_ext=c
9067
9068 # Object file extension for compiled C test sources.
9069 objext=o
9070 objext=$objext
9071
9072 # Code to be used in simple compile tests
9073 lt_simple_compile_test_code="int some_variable = 0;"
9074
9075 # Code to be used in simple link tests
9076 lt_simple_link_test_code='int main(){return(0);}'
9077
9078
9079
9080
9081
9082
9083
9084 # If no C compiler was specified, use CC.
9085 LTCC=${LTCC-"$CC"}
9086
9087 # If no C compiler flags were specified, use CFLAGS.
9088 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9089
9090 # Allow CC to be a program name with arguments.
9091 compiler=$CC
9092
9093 # Save the default compiler, since it gets overwritten when the other
9094 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9095 compiler_DEFAULT=$CC
9096
9097 # save warnings/boilerplate of simple test code
9098 ac_outfile=conftest.$ac_objext
9099 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9100 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9101 _lt_compiler_boilerplate=`cat conftest.err`
9102 $RM conftest*
9103
9104 ac_outfile=conftest.$ac_objext
9105 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9106 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9107 _lt_linker_boilerplate=`cat conftest.err`
9108 $RM -r conftest*
9109
9110
9111 ## CAVEAT EMPTOR:
9112 ## There is no encapsulation within the following macros, do not change
9113 ## the running order or otherwise move them around unless you know exactly
9114 ## what you are doing...
9115 if test -n "$compiler"; then
9116
9117 lt_prog_compiler_no_builtin_flag=
9118
9119 if test yes = "$GCC"; then
9120 case $cc_basename in
9121 nvcc*)
9122 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9123 *)
9124 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9125 esac
9126
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9128 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9129 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9130 $as_echo_n "(cached) " >&6
9131 else
9132 lt_cv_prog_compiler_rtti_exceptions=no
9133 ac_outfile=conftest.$ac_objext
9134 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9135 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9136 # Insert the option either (1) after the last *FLAGS variable, or
9137 # (2) before a word containing "conftest.", or (3) at the end.
9138 # Note that $ac_compile itself does not contain backslashes and begins
9139 # with a dollar sign (not a hyphen), so the echo should work correctly.
9140 # The option is referenced via a variable to avoid confusing sed.
9141 lt_compile=`echo "$ac_compile" | $SED \
9142 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9143 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9144 -e 's:$: $lt_compiler_flag:'`
9145 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9146 (eval "$lt_compile" 2>conftest.err)
9147 ac_status=$?
9148 cat conftest.err >&5
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 if (exit $ac_status) && test -s "$ac_outfile"; then
9151 # The compiler can only warn and ignore the option if not recognized
9152 # So say no if there are warnings other than the usual output.
9153 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9154 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9155 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9156 lt_cv_prog_compiler_rtti_exceptions=yes
9157 fi
9158 fi
9159 $RM conftest*
9160
9161 fi
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9163 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9164
9165 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9166 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9167 else
9168 :
9169 fi
9170
9171 fi
9172
9173
9174
9175
9176
9177
9178 lt_prog_compiler_wl=
9179 lt_prog_compiler_pic=
9180 lt_prog_compiler_static=
9181
9182
9183 if test yes = "$GCC"; then
9184 lt_prog_compiler_wl='-Wl,'
9185 lt_prog_compiler_static='-static'
9186
9187 case $host_os in
9188 aix*)
9189 # All AIX code is PIC.
9190 if test ia64 = "$host_cpu"; then
9191 # AIX 5 now supports IA64 processor
9192 lt_prog_compiler_static='-Bstatic'
9193 fi
9194 lt_prog_compiler_pic='-fPIC'
9195 ;;
9196
9197 amigaos*)
9198 case $host_cpu in
9199 powerpc)
9200 # see comment about AmigaOS4 .so support
9201 lt_prog_compiler_pic='-fPIC'
9202 ;;
9203 m68k)
9204 # FIXME: we need at least 68020 code to build shared libraries, but
9205 # adding the '-m68020' flag to GCC prevents building anything better,
9206 # like '-m68040'.
9207 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9208 ;;
9209 esac
9210 ;;
9211
9212 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9213 # PIC is the default for these OSes.
9214 ;;
9215
9216 mingw* | cygwin* | pw32* | os2* | cegcc*)
9217 # This hack is so that the source file can tell whether it is being
9218 # built for inclusion in a dll (and should export symbols for example).
9219 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9220 # (--disable-auto-import) libraries
9221 lt_prog_compiler_pic='-DDLL_EXPORT'
9222 case $host_os in
9223 os2*)
9224 lt_prog_compiler_static='$wl-static'
9225 ;;
9226 esac
9227 ;;
9228
9229 darwin* | rhapsody*)
9230 # PIC is the default on this platform
9231 # Common symbols not allowed in MH_DYLIB files
9232 lt_prog_compiler_pic='-fno-common'
9233 ;;
9234
9235 haiku*)
9236 # PIC is the default for Haiku.
9237 # The "-static" flag exists, but is broken.
9238 lt_prog_compiler_static=
9239 ;;
9240
9241 hpux*)
9242 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9243 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9244 # sets the default TLS model and affects inlining.
9245 case $host_cpu in
9246 hppa*64*)
9247 # +Z the default
9248 ;;
9249 *)
9250 lt_prog_compiler_pic='-fPIC'
9251 ;;
9252 esac
9253 ;;
9254
9255 interix[3-9]*)
9256 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9257 # Instead, we relocate shared libraries at runtime.
9258 ;;
9259
9260 msdosdjgpp*)
9261 # Just because we use GCC doesn't mean we suddenly get shared libraries
9262 # on systems that don't support them.
9263 lt_prog_compiler_can_build_shared=no
9264 enable_shared=no
9265 ;;
9266
9267 *nto* | *qnx*)
9268 # QNX uses GNU C++, but need to define -shared option too, otherwise
9269 # it will coredump.
9270 lt_prog_compiler_pic='-fPIC -shared'
9271 ;;
9272
9273 sysv4*MP*)
9274 if test -d /usr/nec; then
9275 lt_prog_compiler_pic=-Kconform_pic
9276 fi
9277 ;;
9278
9279 *)
9280 lt_prog_compiler_pic='-fPIC'
9281 ;;
9282 esac
9283
9284 case $cc_basename in
9285 nvcc*) # Cuda Compiler Driver 2.2
9286 lt_prog_compiler_wl='-Xlinker '
9287 if test -n "$lt_prog_compiler_pic"; then
9288 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9289 fi
9290 ;;
9291 esac
9292 else
9293 # PORTME Check for flag to pass linker flags through the system compiler.
9294 case $host_os in
9295 aix*)
9296 lt_prog_compiler_wl='-Wl,'
9297 if test ia64 = "$host_cpu"; then
9298 # AIX 5 now supports IA64 processor
9299 lt_prog_compiler_static='-Bstatic'
9300 else
9301 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9302 fi
9303 ;;
9304
9305 darwin* | rhapsody*)
9306 # PIC is the default on this platform
9307 # Common symbols not allowed in MH_DYLIB files
9308 lt_prog_compiler_pic='-fno-common'
9309 case $cc_basename in
9310 nagfor*)
9311 # NAG Fortran compiler
9312 lt_prog_compiler_wl='-Wl,-Wl,,'
9313 lt_prog_compiler_pic='-PIC'
9314 lt_prog_compiler_static='-Bstatic'
9315 ;;
9316 esac
9317 ;;
9318
9319 mingw* | cygwin* | pw32* | os2* | cegcc*)
9320 # This hack is so that the source file can tell whether it is being
9321 # built for inclusion in a dll (and should export symbols for example).
9322 lt_prog_compiler_pic='-DDLL_EXPORT'
9323 case $host_os in
9324 os2*)
9325 lt_prog_compiler_static='$wl-static'
9326 ;;
9327 esac
9328 ;;
9329
9330 hpux9* | hpux10* | hpux11*)
9331 lt_prog_compiler_wl='-Wl,'
9332 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9333 # not for PA HP-UX.
9334 case $host_cpu in
9335 hppa*64*|ia64*)
9336 # +Z the default
9337 ;;
9338 *)
9339 lt_prog_compiler_pic='+Z'
9340 ;;
9341 esac
9342 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9343 lt_prog_compiler_static='$wl-a ${wl}archive'
9344 ;;
9345
9346 irix5* | irix6* | nonstopux*)
9347 lt_prog_compiler_wl='-Wl,'
9348 # PIC (with -KPIC) is the default.
9349 lt_prog_compiler_static='-non_shared'
9350 ;;
9351
9352 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9353 case $cc_basename in
9354 # old Intel for x86_64, which still supported -KPIC.
9355 ecc*)
9356 lt_prog_compiler_wl='-Wl,'
9357 lt_prog_compiler_pic='-KPIC'
9358 lt_prog_compiler_static='-static'
9359 ;;
9360 # icc used to be incompatible with GCC.
9361 # ICC 10 doesn't accept -KPIC any more.
9362 icc* | ifort*)
9363 lt_prog_compiler_wl='-Wl,'
9364 lt_prog_compiler_pic='-fPIC'
9365 lt_prog_compiler_static='-static'
9366 ;;
9367 # Lahey Fortran 8.1.
9368 lf95*)
9369 lt_prog_compiler_wl='-Wl,'
9370 lt_prog_compiler_pic='--shared'
9371 lt_prog_compiler_static='--static'
9372 ;;
9373 nagfor*)
9374 # NAG Fortran compiler
9375 lt_prog_compiler_wl='-Wl,-Wl,,'
9376 lt_prog_compiler_pic='-PIC'
9377 lt_prog_compiler_static='-Bstatic'
9378 ;;
9379 tcc*)
9380 # Fabrice Bellard et al's Tiny C Compiler
9381 lt_prog_compiler_wl='-Wl,'
9382 lt_prog_compiler_pic='-fPIC'
9383 lt_prog_compiler_static='-static'
9384 ;;
9385 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9386 # Portland Group compilers (*not* the Pentium gcc compiler,
9387 # which looks to be a dead project)
9388 lt_prog_compiler_wl='-Wl,'
9389 lt_prog_compiler_pic='-fpic'
9390 lt_prog_compiler_static='-Bstatic'
9391 ;;
9392 ccc*)
9393 lt_prog_compiler_wl='-Wl,'
9394 # All Alpha code is PIC.
9395 lt_prog_compiler_static='-non_shared'
9396 ;;
9397 xl* | bgxl* | bgf* | mpixl*)
9398 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9399 lt_prog_compiler_wl='-Wl,'
9400 lt_prog_compiler_pic='-qpic'
9401 lt_prog_compiler_static='-qstaticlink'
9402 ;;
9403 *)
9404 case `$CC -V 2>&1 | sed 5q` in
9405 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9406 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9407 lt_prog_compiler_pic='-KPIC'
9408 lt_prog_compiler_static='-Bstatic'
9409 lt_prog_compiler_wl=''
9410 ;;
9411 *Sun\ F* | *Sun*Fortran*)
9412 lt_prog_compiler_pic='-KPIC'
9413 lt_prog_compiler_static='-Bstatic'
9414 lt_prog_compiler_wl='-Qoption ld '
9415 ;;
9416 *Sun\ C*)
9417 # Sun C 5.9
9418 lt_prog_compiler_pic='-KPIC'
9419 lt_prog_compiler_static='-Bstatic'
9420 lt_prog_compiler_wl='-Wl,'
9421 ;;
9422 *Intel*\ [CF]*Compiler*)
9423 lt_prog_compiler_wl='-Wl,'
9424 lt_prog_compiler_pic='-fPIC'
9425 lt_prog_compiler_static='-static'
9426 ;;
9427 *Portland\ Group*)
9428 lt_prog_compiler_wl='-Wl,'
9429 lt_prog_compiler_pic='-fpic'
9430 lt_prog_compiler_static='-Bstatic'
9431 ;;
9432 esac
9433 ;;
9434 esac
9435 ;;
9436
9437 newsos6)
9438 lt_prog_compiler_pic='-KPIC'
9439 lt_prog_compiler_static='-Bstatic'
9440 ;;
9441
9442 *nto* | *qnx*)
9443 # QNX uses GNU C++, but need to define -shared option too, otherwise
9444 # it will coredump.
9445 lt_prog_compiler_pic='-fPIC -shared'
9446 ;;
9447
9448 osf3* | osf4* | osf5*)
9449 lt_prog_compiler_wl='-Wl,'
9450 # All OSF/1 code is PIC.
9451 lt_prog_compiler_static='-non_shared'
9452 ;;
9453
9454 rdos*)
9455 lt_prog_compiler_static='-non_shared'
9456 ;;
9457
9458 solaris*)
9459 lt_prog_compiler_pic='-KPIC'
9460 lt_prog_compiler_static='-Bstatic'
9461 case $cc_basename in
9462 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9463 lt_prog_compiler_wl='-Qoption ld ';;
9464 *)
9465 lt_prog_compiler_wl='-Wl,';;
9466 esac
9467 ;;
9468
9469 sunos4*)
9470 lt_prog_compiler_wl='-Qoption ld '
9471 lt_prog_compiler_pic='-PIC'
9472 lt_prog_compiler_static='-Bstatic'
9473 ;;
9474
9475 sysv4 | sysv4.2uw2* | sysv4.3*)
9476 lt_prog_compiler_wl='-Wl,'
9477 lt_prog_compiler_pic='-KPIC'
9478 lt_prog_compiler_static='-Bstatic'
9479 ;;
9480
9481 sysv4*MP*)
9482 if test -d /usr/nec; then
9483 lt_prog_compiler_pic='-Kconform_pic'
9484 lt_prog_compiler_static='-Bstatic'
9485 fi
9486 ;;
9487
9488 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9489 lt_prog_compiler_wl='-Wl,'
9490 lt_prog_compiler_pic='-KPIC'
9491 lt_prog_compiler_static='-Bstatic'
9492 ;;
9493
9494 unicos*)
9495 lt_prog_compiler_wl='-Wl,'
9496 lt_prog_compiler_can_build_shared=no
9497 ;;
9498
9499 uts4*)
9500 lt_prog_compiler_pic='-pic'
9501 lt_prog_compiler_static='-Bstatic'
9502 ;;
9503
9504 *)
9505 lt_prog_compiler_can_build_shared=no
9506 ;;
9507 esac
9508 fi
9509
9510 case $host_os in
9511 # For platforms that do not support PIC, -DPIC is meaningless:
9512 *djgpp*)
9513 lt_prog_compiler_pic=
9514 ;;
9515 *)
9516 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9517 ;;
9518 esac
9519
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9521 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9522 if ${lt_cv_prog_compiler_pic+:} false; then :
9523 $as_echo_n "(cached) " >&6
9524 else
9525 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9526 fi
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9528 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9529 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9530
9531 #
9532 # Check to make sure the PIC flag actually works.
9533 #
9534 if test -n "$lt_prog_compiler_pic"; then
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9536 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9537 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9538 $as_echo_n "(cached) " >&6
9539 else
9540 lt_cv_prog_compiler_pic_works=no
9541 ac_outfile=conftest.$ac_objext
9542 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9543 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9544 # Insert the option either (1) after the last *FLAGS variable, or
9545 # (2) before a word containing "conftest.", or (3) at the end.
9546 # Note that $ac_compile itself does not contain backslashes and begins
9547 # with a dollar sign (not a hyphen), so the echo should work correctly.
9548 # The option is referenced via a variable to avoid confusing sed.
9549 lt_compile=`echo "$ac_compile" | $SED \
9550 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9551 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9552 -e 's:$: $lt_compiler_flag:'`
9553 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9554 (eval "$lt_compile" 2>conftest.err)
9555 ac_status=$?
9556 cat conftest.err >&5
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 if (exit $ac_status) && test -s "$ac_outfile"; then
9559 # The compiler can only warn and ignore the option if not recognized
9560 # So say no if there are warnings other than the usual output.
9561 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9562 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9563 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9564 lt_cv_prog_compiler_pic_works=yes
9565 fi
9566 fi
9567 $RM conftest*
9568
9569 fi
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9571 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9572
9573 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9574 case $lt_prog_compiler_pic in
9575 "" | " "*) ;;
9576 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9577 esac
9578 else
9579 lt_prog_compiler_pic=
9580 lt_prog_compiler_can_build_shared=no
9581 fi
9582
9583 fi
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595 #
9596 # Check to make sure the static flag actually works.
9597 #
9598 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9600 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9601 if ${lt_cv_prog_compiler_static_works+:} false; then :
9602 $as_echo_n "(cached) " >&6
9603 else
9604 lt_cv_prog_compiler_static_works=no
9605 save_LDFLAGS=$LDFLAGS
9606 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9607 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9608 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9609 # The linker can only warn and ignore the option if not recognized
9610 # So say no if there are warnings
9611 if test -s conftest.err; then
9612 # Append any errors to the config.log.
9613 cat conftest.err 1>&5
9614 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9615 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9616 if diff conftest.exp conftest.er2 >/dev/null; then
9617 lt_cv_prog_compiler_static_works=yes
9618 fi
9619 else
9620 lt_cv_prog_compiler_static_works=yes
9621 fi
9622 fi
9623 $RM -r conftest*
9624 LDFLAGS=$save_LDFLAGS
9625
9626 fi
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9628 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9629
9630 if test yes = "$lt_cv_prog_compiler_static_works"; then
9631 :
9632 else
9633 lt_prog_compiler_static=
9634 fi
9635
9636
9637
9638
9639
9640
9641
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9643 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9644 if ${lt_cv_prog_compiler_c_o+:} false; then :
9645 $as_echo_n "(cached) " >&6
9646 else
9647 lt_cv_prog_compiler_c_o=no
9648 $RM -r conftest 2>/dev/null
9649 mkdir conftest
9650 cd conftest
9651 mkdir out
9652 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9653
9654 lt_compiler_flag="-o out/conftest2.$ac_objext"
9655 # Insert the option either (1) after the last *FLAGS variable, or
9656 # (2) before a word containing "conftest.", or (3) at the end.
9657 # Note that $ac_compile itself does not contain backslashes and begins
9658 # with a dollar sign (not a hyphen), so the echo should work correctly.
9659 lt_compile=`echo "$ac_compile" | $SED \
9660 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9662 -e 's:$: $lt_compiler_flag:'`
9663 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9664 (eval "$lt_compile" 2>out/conftest.err)
9665 ac_status=$?
9666 cat out/conftest.err >&5
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9669 then
9670 # The compiler can only warn and ignore the option if not recognized
9671 # So say no if there are warnings
9672 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9673 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9674 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9675 lt_cv_prog_compiler_c_o=yes
9676 fi
9677 fi
9678 chmod u+w . 2>&5
9679 $RM conftest*
9680 # SGI C++ compiler will create directory out/ii_files/ for
9681 # template instantiation
9682 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9683 $RM out/* && rmdir out
9684 cd ..
9685 $RM -r conftest
9686 $RM conftest*
9687
9688 fi
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9690 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9691
9692
9693
9694
9695
9696
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9698 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9699 if ${lt_cv_prog_compiler_c_o+:} false; then :
9700 $as_echo_n "(cached) " >&6
9701 else
9702 lt_cv_prog_compiler_c_o=no
9703 $RM -r conftest 2>/dev/null
9704 mkdir conftest
9705 cd conftest
9706 mkdir out
9707 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9708
9709 lt_compiler_flag="-o out/conftest2.$ac_objext"
9710 # Insert the option either (1) after the last *FLAGS variable, or
9711 # (2) before a word containing "conftest.", or (3) at the end.
9712 # Note that $ac_compile itself does not contain backslashes and begins
9713 # with a dollar sign (not a hyphen), so the echo should work correctly.
9714 lt_compile=`echo "$ac_compile" | $SED \
9715 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9716 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9717 -e 's:$: $lt_compiler_flag:'`
9718 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9719 (eval "$lt_compile" 2>out/conftest.err)
9720 ac_status=$?
9721 cat out/conftest.err >&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9724 then
9725 # The compiler can only warn and ignore the option if not recognized
9726 # So say no if there are warnings
9727 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9728 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9729 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9730 lt_cv_prog_compiler_c_o=yes
9731 fi
9732 fi
9733 chmod u+w . 2>&5
9734 $RM conftest*
9735 # SGI C++ compiler will create directory out/ii_files/ for
9736 # template instantiation
9737 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9738 $RM out/* && rmdir out
9739 cd ..
9740 $RM -r conftest
9741 $RM conftest*
9742
9743 fi
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9745 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9746
9747
9748
9749
9750 hard_links=nottested
9751 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9752 # do not overwrite the value of need_locks provided by the user
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9754 $as_echo_n "checking if we can lock with hard links... " >&6; }
9755 hard_links=yes
9756 $RM conftest*
9757 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9758 touch conftest.a
9759 ln conftest.a conftest.b 2>&5 || hard_links=no
9760 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9762 $as_echo "$hard_links" >&6; }
9763 if test no = "$hard_links"; then
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9765 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9766 need_locks=warn
9767 fi
9768 else
9769 need_locks=no
9770 fi
9771
9772
9773
9774
9775
9776
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9778 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9779
9780 runpath_var=
9781 allow_undefined_flag=
9782 always_export_symbols=no
9783 archive_cmds=
9784 archive_expsym_cmds=
9785 compiler_needs_object=no
9786 enable_shared_with_static_runtimes=no
9787 export_dynamic_flag_spec=
9788 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9789 hardcode_automatic=no
9790 hardcode_direct=no
9791 hardcode_direct_absolute=no
9792 hardcode_libdir_flag_spec=
9793 hardcode_libdir_separator=
9794 hardcode_minus_L=no
9795 hardcode_shlibpath_var=unsupported
9796 inherit_rpath=no
9797 link_all_deplibs=unknown
9798 module_cmds=
9799 module_expsym_cmds=
9800 old_archive_from_new_cmds=
9801 old_archive_from_expsyms_cmds=
9802 thread_safe_flag_spec=
9803 whole_archive_flag_spec=
9804 # include_expsyms should be a list of space-separated symbols to be *always*
9805 # included in the symbol list
9806 include_expsyms=
9807 # exclude_expsyms can be an extended regexp of symbols to exclude
9808 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9809 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9810 # as well as any symbol that contains 'd'.
9811 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9812 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9813 # platforms (ab)use it in PIC code, but their linkers get confused if
9814 # the symbol is explicitly referenced. Since portable code cannot
9815 # rely on this symbol name, it's probably fine to never include it in
9816 # preloaded symbol tables.
9817 # Exclude shared library initialization/finalization symbols.
9818 extract_expsyms_cmds=
9819
9820 case $host_os in
9821 cygwin* | mingw* | pw32* | cegcc*)
9822 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9823 # When not using gcc, we currently assume that we are using
9824 # Microsoft Visual C++.
9825 if test yes != "$GCC"; then
9826 with_gnu_ld=no
9827 fi
9828 ;;
9829 interix*)
9830 # we just hope/assume this is gcc and not c89 (= MSVC++)
9831 with_gnu_ld=yes
9832 ;;
9833 openbsd* | bitrig*)
9834 with_gnu_ld=no
9835 ;;
9836 linux* | k*bsd*-gnu | gnu*)
9837 link_all_deplibs=no
9838 ;;
9839 esac
9840
9841 ld_shlibs=yes
9842
9843 # On some targets, GNU ld is compatible enough with the native linker
9844 # that we're better off using the native interface for both.
9845 lt_use_gnu_ld_interface=no
9846 if test yes = "$with_gnu_ld"; then
9847 case $host_os in
9848 aix*)
9849 # The AIX port of GNU ld has always aspired to compatibility
9850 # with the native linker. However, as the warning in the GNU ld
9851 # block says, versions before 2.19.5* couldn't really create working
9852 # shared libraries, regardless of the interface used.
9853 case `$LD -v 2>&1` in
9854 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9855 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9856 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9857 *)
9858 lt_use_gnu_ld_interface=yes
9859 ;;
9860 esac
9861 ;;
9862 *)
9863 lt_use_gnu_ld_interface=yes
9864 ;;
9865 esac
9866 fi
9867
9868 if test yes = "$lt_use_gnu_ld_interface"; then
9869 # If archive_cmds runs LD, not CC, wlarc should be empty
9870 wlarc='$wl'
9871
9872 # Set some defaults for GNU ld with shared library support. These
9873 # are reset later if shared libraries are not supported. Putting them
9874 # here allows them to be overridden if necessary.
9875 runpath_var=LD_RUN_PATH
9876 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9877 export_dynamic_flag_spec='$wl--export-dynamic'
9878 # ancient GNU ld didn't support --whole-archive et. al.
9879 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9880 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9881 else
9882 whole_archive_flag_spec=
9883 fi
9884 supports_anon_versioning=no
9885 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9886 *GNU\ gold*) supports_anon_versioning=yes ;;
9887 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9888 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9889 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9890 *\ 2.11.*) ;; # other 2.11 versions
9891 *) supports_anon_versioning=yes ;;
9892 esac
9893
9894 # See if GNU ld supports shared libraries.
9895 case $host_os in
9896 aix[3-9]*)
9897 # On AIX/PPC, the GNU linker is very broken
9898 if test ia64 != "$host_cpu"; then
9899 ld_shlibs=no
9900 cat <<_LT_EOF 1>&2
9901
9902 *** Warning: the GNU linker, at least up to release 2.19, is reported
9903 *** to be unable to reliably create shared libraries on AIX.
9904 *** Therefore, libtool is disabling shared libraries support. If you
9905 *** really care for shared libraries, you may want to install binutils
9906 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9907 *** You will then need to restart the configuration process.
9908
9909 _LT_EOF
9910 fi
9911 ;;
9912
9913 amigaos*)
9914 case $host_cpu in
9915 powerpc)
9916 # see comment about AmigaOS4 .so support
9917 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9918 archive_expsym_cmds=''
9919 ;;
9920 m68k)
9921 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)'
9922 hardcode_libdir_flag_spec='-L$libdir'
9923 hardcode_minus_L=yes
9924 ;;
9925 esac
9926 ;;
9927
9928 beos*)
9929 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9930 allow_undefined_flag=unsupported
9931 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9932 # support --undefined. This deserves some investigation. FIXME
9933 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9934 else
9935 ld_shlibs=no
9936 fi
9937 ;;
9938
9939 cygwin* | mingw* | pw32* | cegcc*)
9940 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9941 # as there is no search path for DLLs.
9942 hardcode_libdir_flag_spec='-L$libdir'
9943 export_dynamic_flag_spec='$wl--export-all-symbols'
9944 allow_undefined_flag=unsupported
9945 always_export_symbols=no
9946 enable_shared_with_static_runtimes=yes
9947 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'
9948 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9949
9950 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9951 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9952 # If the export-symbols file already is a .def file, use it as
9953 # is; otherwise, prepend EXPORTS...
9954 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9955 cp $export_symbols $output_objdir/$soname.def;
9956 else
9957 echo EXPORTS > $output_objdir/$soname.def;
9958 cat $export_symbols >> $output_objdir/$soname.def;
9959 fi~
9960 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9961 else
9962 ld_shlibs=no
9963 fi
9964 ;;
9965
9966 haiku*)
9967 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9968 link_all_deplibs=yes
9969 ;;
9970
9971 os2*)
9972 hardcode_libdir_flag_spec='-L$libdir'
9973 hardcode_minus_L=yes
9974 allow_undefined_flag=unsupported
9975 shrext_cmds=.dll
9976 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9977 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9978 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9979 $ECHO EXPORTS >> $output_objdir/$libname.def~
9980 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9981 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9982 emximp -o $lib $output_objdir/$libname.def'
9983 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9984 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9985 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9986 $ECHO EXPORTS >> $output_objdir/$libname.def~
9987 prefix_cmds="$SED"~
9988 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9989 prefix_cmds="$prefix_cmds -e 1d";
9990 fi~
9991 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9992 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9993 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9994 emximp -o $lib $output_objdir/$libname.def'
9995 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9996 enable_shared_with_static_runtimes=yes
9997 ;;
9998
9999 interix[3-9]*)
10000 hardcode_direct=no
10001 hardcode_shlibpath_var=no
10002 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10003 export_dynamic_flag_spec='$wl-E'
10004 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10005 # Instead, shared libraries are loaded at an image base (0x10000000 by
10006 # default) and relocated if they conflict, which is a slow very memory
10007 # consuming and fragmenting process. To avoid this, we pick a random,
10008 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10009 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10010 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10011 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'
10012 ;;
10013
10014 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10015 tmp_diet=no
10016 if test linux-dietlibc = "$host_os"; then
10017 case $cc_basename in
10018 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10019 esac
10020 fi
10021 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10022 && test no = "$tmp_diet"
10023 then
10024 tmp_addflag=' $pic_flag'
10025 tmp_sharedflag='-shared'
10026 case $cc_basename,$host_cpu in
10027 pgcc*) # Portland Group C compiler
10028 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'
10029 tmp_addflag=' $pic_flag'
10030 ;;
10031 pgf77* | pgf90* | pgf95* | pgfortran*)
10032 # Portland Group f77 and f90 compilers
10033 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'
10034 tmp_addflag=' $pic_flag -Mnomain' ;;
10035 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10036 tmp_addflag=' -i_dynamic' ;;
10037 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10038 tmp_addflag=' -i_dynamic -nofor_main' ;;
10039 ifc* | ifort*) # Intel Fortran compiler
10040 tmp_addflag=' -nofor_main' ;;
10041 lf95*) # Lahey Fortran 8.1
10042 whole_archive_flag_spec=
10043 tmp_sharedflag='--shared' ;;
10044 nagfor*) # NAGFOR 5.3
10045 tmp_sharedflag='-Wl,-shared' ;;
10046 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10047 tmp_sharedflag='-qmkshrobj'
10048 tmp_addflag= ;;
10049 nvcc*) # Cuda Compiler Driver 2.2
10050 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'
10051 compiler_needs_object=yes
10052 ;;
10053 esac
10054 case `$CC -V 2>&1 | sed 5q` in
10055 *Sun\ C*) # Sun C 5.9
10056 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'
10057 compiler_needs_object=yes
10058 tmp_sharedflag='-G' ;;
10059 *Sun\ F*) # Sun Fortran 8.3
10060 tmp_sharedflag='-G' ;;
10061 esac
10062 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10063
10064 if test yes = "$supports_anon_versioning"; then
10065 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10066 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10067 echo "local: *; };" >> $output_objdir/$libname.ver~
10068 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10069 fi
10070
10071 case $cc_basename in
10072 tcc*)
10073 export_dynamic_flag_spec='-rdynamic'
10074 ;;
10075 xlf* | bgf* | bgxlf* | mpixlf*)
10076 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10077 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10078 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10079 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10080 if test yes = "$supports_anon_versioning"; then
10081 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10082 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10083 echo "local: *; };" >> $output_objdir/$libname.ver~
10084 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10085 fi
10086 ;;
10087 esac
10088 else
10089 ld_shlibs=no
10090 fi
10091 ;;
10092
10093 netbsd* | netbsdelf*-gnu)
10094 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10095 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10096 wlarc=
10097 else
10098 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10099 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10100 fi
10101 ;;
10102
10103 solaris*)
10104 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10105 ld_shlibs=no
10106 cat <<_LT_EOF 1>&2
10107
10108 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10109 *** create shared libraries on Solaris systems. Therefore, libtool
10110 *** is disabling shared libraries support. We urge you to upgrade GNU
10111 *** binutils to release 2.9.1 or newer. Another option is to modify
10112 *** your PATH or compiler configuration so that the native linker is
10113 *** used, and then restart.
10114
10115 _LT_EOF
10116 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10117 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10118 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10119 else
10120 ld_shlibs=no
10121 fi
10122 ;;
10123
10124 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10125 case `$LD -v 2>&1` in
10126 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10127 ld_shlibs=no
10128 cat <<_LT_EOF 1>&2
10129
10130 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10131 *** reliably create shared libraries on SCO systems. Therefore, libtool
10132 *** is disabling shared libraries support. We urge you to upgrade GNU
10133 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10134 *** your PATH or compiler configuration so that the native linker is
10135 *** used, and then restart.
10136
10137 _LT_EOF
10138 ;;
10139 *)
10140 # For security reasons, it is highly recommended that you always
10141 # use absolute paths for naming shared libraries, and exclude the
10142 # DT_RUNPATH tag from executables and libraries. But doing so
10143 # requires that you compile everything twice, which is a pain.
10144 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10145 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10146 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10147 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10148 else
10149 ld_shlibs=no
10150 fi
10151 ;;
10152 esac
10153 ;;
10154
10155 sunos4*)
10156 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10157 wlarc=
10158 hardcode_direct=yes
10159 hardcode_shlibpath_var=no
10160 ;;
10161
10162 *)
10163 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10164 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10165 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10166 else
10167 ld_shlibs=no
10168 fi
10169 ;;
10170 esac
10171
10172 if test no = "$ld_shlibs"; then
10173 runpath_var=
10174 hardcode_libdir_flag_spec=
10175 export_dynamic_flag_spec=
10176 whole_archive_flag_spec=
10177 fi
10178 else
10179 # PORTME fill in a description of your system's linker (not GNU ld)
10180 case $host_os in
10181 aix3*)
10182 allow_undefined_flag=unsupported
10183 always_export_symbols=yes
10184 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'
10185 # Note: this linker hardcodes the directories in LIBPATH if there
10186 # are no directories specified by -L.
10187 hardcode_minus_L=yes
10188 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10189 # Neither direct hardcoding nor static linking is supported with a
10190 # broken collect2.
10191 hardcode_direct=unsupported
10192 fi
10193 ;;
10194
10195 aix[4-9]*)
10196 if test ia64 = "$host_cpu"; then
10197 # On IA64, the linker does run time linking by default, so we don't
10198 # have to do anything special.
10199 aix_use_runtimelinking=no
10200 exp_sym_flag='-Bexport'
10201 no_entry_flag=
10202 else
10203 # If we're using GNU nm, then we don't want the "-C" option.
10204 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10205 # Without the "-l" option, or with the "-B" option, AIX nm treats
10206 # weak defined symbols like other global defined symbols, whereas
10207 # GNU nm marks them as "W".
10208 # While the 'weak' keyword is ignored in the Export File, we need
10209 # it in the Import File for the 'aix-soname' feature, so we have
10210 # to replace the "-B" option with "-P" for AIX nm.
10211 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10212 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'
10213 else
10214 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 == "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'
10215 fi
10216 aix_use_runtimelinking=no
10217
10218 # Test if we are trying to use run time linking or normal
10219 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10220 # have runtime linking enabled, and use it for executables.
10221 # For shared libraries, we enable/disable runtime linking
10222 # depending on the kind of the shared library created -
10223 # when "with_aix_soname,aix_use_runtimelinking" is:
10224 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10225 # "aix,yes" lib.so shared, rtl:yes, for executables
10226 # lib.a static archive
10227 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10228 # lib.a(lib.so.V) shared, rtl:no, for executables
10229 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10230 # lib.a(lib.so.V) shared, rtl:no
10231 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10232 # lib.a static archive
10233 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10234 for ld_flag in $LDFLAGS; do
10235 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10236 aix_use_runtimelinking=yes
10237 break
10238 fi
10239 done
10240 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10241 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10242 # so we don't have lib.a shared libs to link our executables.
10243 # We have to force runtime linking in this case.
10244 aix_use_runtimelinking=yes
10245 LDFLAGS="$LDFLAGS -Wl,-brtl"
10246 fi
10247 ;;
10248 esac
10249
10250 exp_sym_flag='-bexport'
10251 no_entry_flag='-bnoentry'
10252 fi
10253
10254 # When large executables or shared objects are built, AIX ld can
10255 # have problems creating the table of contents. If linking a library
10256 # or program results in "error TOC overflow" add -mminimal-toc to
10257 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10258 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10259
10260 archive_cmds=''
10261 hardcode_direct=yes
10262 hardcode_direct_absolute=yes
10263 hardcode_libdir_separator=':'
10264 link_all_deplibs=yes
10265 file_list_spec='$wl-f,'
10266 case $with_aix_soname,$aix_use_runtimelinking in
10267 aix,*) ;; # traditional, no import file
10268 svr4,* | *,yes) # use import file
10269 # The Import File defines what to hardcode.
10270 hardcode_direct=no
10271 hardcode_direct_absolute=no
10272 ;;
10273 esac
10274
10275 if test yes = "$GCC"; then
10276 case $host_os in aix4.[012]|aix4.[012].*)
10277 # We only want to do this on AIX 4.2 and lower, the check
10278 # below for broken collect2 doesn't work under 4.3+
10279 collect2name=`$CC -print-prog-name=collect2`
10280 if test -f "$collect2name" &&
10281 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10282 then
10283 # We have reworked collect2
10284 :
10285 else
10286 # We have old collect2
10287 hardcode_direct=unsupported
10288 # It fails to find uninstalled libraries when the uninstalled
10289 # path is not listed in the libpath. Setting hardcode_minus_L
10290 # to unsupported forces relinking
10291 hardcode_minus_L=yes
10292 hardcode_libdir_flag_spec='-L$libdir'
10293 hardcode_libdir_separator=
10294 fi
10295 ;;
10296 esac
10297 shared_flag='-shared'
10298 if test yes = "$aix_use_runtimelinking"; then
10299 shared_flag="$shared_flag "'$wl-G'
10300 fi
10301 # Need to ensure runtime linking is disabled for the traditional
10302 # shared library, or the linker may eventually find shared libraries
10303 # /with/ Import File - we do not want to mix them.
10304 shared_flag_aix='-shared'
10305 shared_flag_svr4='-shared $wl-G'
10306 else
10307 # not using gcc
10308 if test ia64 = "$host_cpu"; then
10309 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10310 # chokes on -Wl,-G. The following line is correct:
10311 shared_flag='-G'
10312 else
10313 if test yes = "$aix_use_runtimelinking"; then
10314 shared_flag='$wl-G'
10315 else
10316 shared_flag='$wl-bM:SRE'
10317 fi
10318 shared_flag_aix='$wl-bM:SRE'
10319 shared_flag_svr4='$wl-G'
10320 fi
10321 fi
10322
10323 export_dynamic_flag_spec='$wl-bexpall'
10324 # It seems that -bexpall does not export symbols beginning with
10325 # underscore (_), so it is better to generate a list of symbols to export.
10326 always_export_symbols=yes
10327 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10328 # Warning - without using the other runtime loading flags (-brtl),
10329 # -berok will link without error, but may produce a broken library.
10330 allow_undefined_flag='-berok'
10331 # Determine the default libpath from the value encoded in an
10332 # empty executable.
10333 if test set = "${lt_cv_aix_libpath+set}"; then
10334 aix_libpath=$lt_cv_aix_libpath
10335 else
10336 if ${lt_cv_aix_libpath_+:} false; then :
10337 $as_echo_n "(cached) " >&6
10338 else
10339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10340 /* end confdefs.h. */
10341
10342 int
10343 main ()
10344 {
10345
10346 ;
10347 return 0;
10348 }
10349 _ACEOF
10350 if ac_fn_c_try_link "$LINENO"; then :
10351
10352 lt_aix_libpath_sed='
10353 /Import File Strings/,/^$/ {
10354 /^0/ {
10355 s/^0 *\([^ ]*\) *$/\1/
10356 p
10357 }
10358 }'
10359 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10360 # Check for a 64-bit object if we didn't find anything.
10361 if test -z "$lt_cv_aix_libpath_"; then
10362 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10363 fi
10364 fi
10365 rm -f core conftest.err conftest.$ac_objext \
10366 conftest$ac_exeext conftest.$ac_ext
10367 if test -z "$lt_cv_aix_libpath_"; then
10368 lt_cv_aix_libpath_=/usr/lib:/lib
10369 fi
10370
10371 fi
10372
10373 aix_libpath=$lt_cv_aix_libpath_
10374 fi
10375
10376 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10377 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
10378 else
10379 if test ia64 = "$host_cpu"; then
10380 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10381 allow_undefined_flag="-z nodefs"
10382 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"
10383 else
10384 # Determine the default libpath from the value encoded in an
10385 # empty executable.
10386 if test set = "${lt_cv_aix_libpath+set}"; then
10387 aix_libpath=$lt_cv_aix_libpath
10388 else
10389 if ${lt_cv_aix_libpath_+:} false; then :
10390 $as_echo_n "(cached) " >&6
10391 else
10392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10393 /* end confdefs.h. */
10394
10395 int
10396 main ()
10397 {
10398
10399 ;
10400 return 0;
10401 }
10402 _ACEOF
10403 if ac_fn_c_try_link "$LINENO"; then :
10404
10405 lt_aix_libpath_sed='
10406 /Import File Strings/,/^$/ {
10407 /^0/ {
10408 s/^0 *\([^ ]*\) *$/\1/
10409 p
10410 }
10411 }'
10412 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10413 # Check for a 64-bit object if we didn't find anything.
10414 if test -z "$lt_cv_aix_libpath_"; then
10415 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10416 fi
10417 fi
10418 rm -f core conftest.err conftest.$ac_objext \
10419 conftest$ac_exeext conftest.$ac_ext
10420 if test -z "$lt_cv_aix_libpath_"; then
10421 lt_cv_aix_libpath_=/usr/lib:/lib
10422 fi
10423
10424 fi
10425
10426 aix_libpath=$lt_cv_aix_libpath_
10427 fi
10428
10429 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10430 # Warning - without using the other run time loading flags,
10431 # -berok will link without error, but may produce a broken library.
10432 no_undefined_flag=' $wl-bernotok'
10433 allow_undefined_flag=' $wl-berok'
10434 if test yes = "$with_gnu_ld"; then
10435 # We only use this code for GNU lds that support --whole-archive.
10436 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10437 else
10438 # Exported symbols can be pulled into shared objects from archives
10439 whole_archive_flag_spec='$convenience'
10440 fi
10441 archive_cmds_need_lc=yes
10442 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10443 # -brtl affects multiple linker settings, -berok does not and is overridden later
10444 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10445 if test svr4 != "$with_aix_soname"; then
10446 # This is similar to how AIX traditionally builds its shared libraries.
10447 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'
10448 fi
10449 if test aix != "$with_aix_soname"; then
10450 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'
10451 else
10452 # used by -dlpreopen to get the symbols
10453 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10454 fi
10455 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10456 fi
10457 fi
10458 ;;
10459
10460 amigaos*)
10461 case $host_cpu in
10462 powerpc)
10463 # see comment about AmigaOS4 .so support
10464 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10465 archive_expsym_cmds=''
10466 ;;
10467 m68k)
10468 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)'
10469 hardcode_libdir_flag_spec='-L$libdir'
10470 hardcode_minus_L=yes
10471 ;;
10472 esac
10473 ;;
10474
10475 bsdi[45]*)
10476 export_dynamic_flag_spec=-rdynamic
10477 ;;
10478
10479 cygwin* | mingw* | pw32* | cegcc*)
10480 # When not using gcc, we currently assume that we are using
10481 # Microsoft Visual C++.
10482 # hardcode_libdir_flag_spec is actually meaningless, as there is
10483 # no search path for DLLs.
10484 case $cc_basename in
10485 cl*)
10486 # Native MSVC
10487 hardcode_libdir_flag_spec=' '
10488 allow_undefined_flag=unsupported
10489 always_export_symbols=yes
10490 file_list_spec='@'
10491 # Tell ltmain to make .lib files, not .a files.
10492 libext=lib
10493 # Tell ltmain to make .dll files, not .so files.
10494 shrext_cmds=.dll
10495 # FIXME: Setting linknames here is a bad hack.
10496 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10497 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10498 cp "$export_symbols" "$output_objdir/$soname.def";
10499 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10500 else
10501 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10502 fi~
10503 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10504 linknames='
10505 # The linker will not automatically build a static lib if we build a DLL.
10506 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10507 enable_shared_with_static_runtimes=yes
10508 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10509 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10510 # Don't use ranlib
10511 old_postinstall_cmds='chmod 644 $oldlib'
10512 postlink_cmds='lt_outputfile="@OUTPUT@"~
10513 lt_tool_outputfile="@TOOL_OUTPUT@"~
10514 case $lt_outputfile in
10515 *.exe|*.EXE) ;;
10516 *)
10517 lt_outputfile=$lt_outputfile.exe
10518 lt_tool_outputfile=$lt_tool_outputfile.exe
10519 ;;
10520 esac~
10521 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10522 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10523 $RM "$lt_outputfile.manifest";
10524 fi'
10525 ;;
10526 *)
10527 # Assume MSVC wrapper
10528 hardcode_libdir_flag_spec=' '
10529 allow_undefined_flag=unsupported
10530 # Tell ltmain to make .lib files, not .a files.
10531 libext=lib
10532 # Tell ltmain to make .dll files, not .so files.
10533 shrext_cmds=.dll
10534 # FIXME: Setting linknames here is a bad hack.
10535 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10536 # The linker will automatically build a .lib file if we build a DLL.
10537 old_archive_from_new_cmds='true'
10538 # FIXME: Should let the user specify the lib program.
10539 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10540 enable_shared_with_static_runtimes=yes
10541 ;;
10542 esac
10543 ;;
10544
10545 darwin* | rhapsody*)
10546
10547
10548 archive_cmds_need_lc=no
10549 hardcode_direct=no
10550 hardcode_automatic=yes
10551 hardcode_shlibpath_var=unsupported
10552 if test yes = "$lt_cv_ld_force_load"; then
10553 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\"`'
10554
10555 else
10556 whole_archive_flag_spec=''
10557 fi
10558 link_all_deplibs=yes
10559 allow_undefined_flag=$_lt_dar_allow_undefined
10560 case $cc_basename in
10561 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10562 *) _lt_dar_can_shared=$GCC ;;
10563 esac
10564 if test yes = "$_lt_dar_can_shared"; then
10565 output_verbose_link_cmd=func_echo_all
10566 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10567 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10568 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"
10569 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"
10570
10571 else
10572 ld_shlibs=no
10573 fi
10574
10575 ;;
10576
10577 dgux*)
10578 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10579 hardcode_libdir_flag_spec='-L$libdir'
10580 hardcode_shlibpath_var=no
10581 ;;
10582
10583 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10584 # support. Future versions do this automatically, but an explicit c++rt0.o
10585 # does not break anything, and helps significantly (at the cost of a little
10586 # extra space).
10587 freebsd2.2*)
10588 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10589 hardcode_libdir_flag_spec='-R$libdir'
10590 hardcode_direct=yes
10591 hardcode_shlibpath_var=no
10592 ;;
10593
10594 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10595 freebsd2.*)
10596 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10597 hardcode_direct=yes
10598 hardcode_minus_L=yes
10599 hardcode_shlibpath_var=no
10600 ;;
10601
10602 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10603 freebsd* | dragonfly*)
10604 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10605 hardcode_libdir_flag_spec='-R$libdir'
10606 hardcode_direct=yes
10607 hardcode_shlibpath_var=no
10608 ;;
10609
10610 hpux9*)
10611 if test yes = "$GCC"; then
10612 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'
10613 else
10614 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'
10615 fi
10616 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10617 hardcode_libdir_separator=:
10618 hardcode_direct=yes
10619
10620 # hardcode_minus_L: Not really in the search PATH,
10621 # but as the default location of the library.
10622 hardcode_minus_L=yes
10623 export_dynamic_flag_spec='$wl-E'
10624 ;;
10625
10626 hpux10*)
10627 if test yes,no = "$GCC,$with_gnu_ld"; then
10628 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10629 else
10630 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10631 fi
10632 if test no = "$with_gnu_ld"; then
10633 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10634 hardcode_libdir_separator=:
10635 hardcode_direct=yes
10636 hardcode_direct_absolute=yes
10637 export_dynamic_flag_spec='$wl-E'
10638 # hardcode_minus_L: Not really in the search PATH,
10639 # but as the default location of the library.
10640 hardcode_minus_L=yes
10641 fi
10642 ;;
10643
10644 hpux11*)
10645 if test yes,no = "$GCC,$with_gnu_ld"; then
10646 case $host_cpu in
10647 hppa*64*)
10648 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10649 ;;
10650 ia64*)
10651 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10652 ;;
10653 *)
10654 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10655 ;;
10656 esac
10657 else
10658 case $host_cpu in
10659 hppa*64*)
10660 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10661 ;;
10662 ia64*)
10663 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10664 ;;
10665 *)
10666
10667 # Older versions of the 11.00 compiler do not understand -b yet
10668 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10670 $as_echo_n "checking if $CC understands -b... " >&6; }
10671 if ${lt_cv_prog_compiler__b+:} false; then :
10672 $as_echo_n "(cached) " >&6
10673 else
10674 lt_cv_prog_compiler__b=no
10675 save_LDFLAGS=$LDFLAGS
10676 LDFLAGS="$LDFLAGS -b"
10677 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10678 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10679 # The linker can only warn and ignore the option if not recognized
10680 # So say no if there are warnings
10681 if test -s conftest.err; then
10682 # Append any errors to the config.log.
10683 cat conftest.err 1>&5
10684 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10685 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10686 if diff conftest.exp conftest.er2 >/dev/null; then
10687 lt_cv_prog_compiler__b=yes
10688 fi
10689 else
10690 lt_cv_prog_compiler__b=yes
10691 fi
10692 fi
10693 $RM -r conftest*
10694 LDFLAGS=$save_LDFLAGS
10695
10696 fi
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10698 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10699
10700 if test yes = "$lt_cv_prog_compiler__b"; then
10701 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10702 else
10703 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10704 fi
10705
10706 ;;
10707 esac
10708 fi
10709 if test no = "$with_gnu_ld"; then
10710 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10711 hardcode_libdir_separator=:
10712
10713 case $host_cpu in
10714 hppa*64*|ia64*)
10715 hardcode_direct=no
10716 hardcode_shlibpath_var=no
10717 ;;
10718 *)
10719 hardcode_direct=yes
10720 hardcode_direct_absolute=yes
10721 export_dynamic_flag_spec='$wl-E'
10722
10723 # hardcode_minus_L: Not really in the search PATH,
10724 # but as the default location of the library.
10725 hardcode_minus_L=yes
10726 ;;
10727 esac
10728 fi
10729 ;;
10730
10731 irix5* | irix6* | nonstopux*)
10732 if test yes = "$GCC"; then
10733 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'
10734 # Try to use the -exported_symbol ld option, if it does not
10735 # work, assume that -exports_file does not work either and
10736 # implicitly export all symbols.
10737 # This should be the same for all languages, so no per-tag cache variable.
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10739 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10740 if ${lt_cv_irix_exported_symbol+:} false; then :
10741 $as_echo_n "(cached) " >&6
10742 else
10743 save_LDFLAGS=$LDFLAGS
10744 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10746 /* end confdefs.h. */
10747 int foo (void) { return 0; }
10748 _ACEOF
10749 if ac_fn_c_try_link "$LINENO"; then :
10750 lt_cv_irix_exported_symbol=yes
10751 else
10752 lt_cv_irix_exported_symbol=no
10753 fi
10754 rm -f core conftest.err conftest.$ac_objext \
10755 conftest$ac_exeext conftest.$ac_ext
10756 LDFLAGS=$save_LDFLAGS
10757 fi
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10759 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10760 if test yes = "$lt_cv_irix_exported_symbol"; then
10761 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'
10762 fi
10763 link_all_deplibs=no
10764 else
10765 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'
10766 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'
10767 fi
10768 archive_cmds_need_lc='no'
10769 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10770 hardcode_libdir_separator=:
10771 inherit_rpath=yes
10772 link_all_deplibs=yes
10773 ;;
10774
10775 linux*)
10776 case $cc_basename in
10777 tcc*)
10778 # Fabrice Bellard et al's Tiny C Compiler
10779 ld_shlibs=yes
10780 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10781 ;;
10782 esac
10783 ;;
10784
10785 netbsd* | netbsdelf*-gnu)
10786 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10787 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10788 else
10789 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10790 fi
10791 hardcode_libdir_flag_spec='-R$libdir'
10792 hardcode_direct=yes
10793 hardcode_shlibpath_var=no
10794 ;;
10795
10796 newsos6)
10797 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10798 hardcode_direct=yes
10799 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10800 hardcode_libdir_separator=:
10801 hardcode_shlibpath_var=no
10802 ;;
10803
10804 *nto* | *qnx*)
10805 ;;
10806
10807 openbsd* | bitrig*)
10808 if test -f /usr/libexec/ld.so; then
10809 hardcode_direct=yes
10810 hardcode_shlibpath_var=no
10811 hardcode_direct_absolute=yes
10812 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10813 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10814 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10815 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10816 export_dynamic_flag_spec='$wl-E'
10817 else
10818 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10819 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10820 fi
10821 else
10822 ld_shlibs=no
10823 fi
10824 ;;
10825
10826 os2*)
10827 hardcode_libdir_flag_spec='-L$libdir'
10828 hardcode_minus_L=yes
10829 allow_undefined_flag=unsupported
10830 shrext_cmds=.dll
10831 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10832 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10833 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10834 $ECHO EXPORTS >> $output_objdir/$libname.def~
10835 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10836 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10837 emximp -o $lib $output_objdir/$libname.def'
10838 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10839 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10840 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10841 $ECHO EXPORTS >> $output_objdir/$libname.def~
10842 prefix_cmds="$SED"~
10843 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10844 prefix_cmds="$prefix_cmds -e 1d";
10845 fi~
10846 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10847 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10848 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10849 emximp -o $lib $output_objdir/$libname.def'
10850 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10851 enable_shared_with_static_runtimes=yes
10852 ;;
10853
10854 osf3*)
10855 if test yes = "$GCC"; then
10856 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10857 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'
10858 else
10859 allow_undefined_flag=' -expect_unresolved \*'
10860 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'
10861 fi
10862 archive_cmds_need_lc='no'
10863 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10864 hardcode_libdir_separator=:
10865 ;;
10866
10867 osf4* | osf5*) # as osf3* with the addition of -msym flag
10868 if test yes = "$GCC"; then
10869 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10870 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'
10871 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10872 else
10873 allow_undefined_flag=' -expect_unresolved \*'
10874 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'
10875 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~
10876 $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'
10877
10878 # Both c and cxx compiler support -rpath directly
10879 hardcode_libdir_flag_spec='-rpath $libdir'
10880 fi
10881 archive_cmds_need_lc='no'
10882 hardcode_libdir_separator=:
10883 ;;
10884
10885 solaris*)
10886 no_undefined_flag=' -z defs'
10887 if test yes = "$GCC"; then
10888 wlarc='$wl'
10889 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10890 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10891 $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'
10892 else
10893 case `$CC -V 2>&1` in
10894 *"Compilers 5.0"*)
10895 wlarc=''
10896 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10897 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10898 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10899 ;;
10900 *)
10901 wlarc='$wl'
10902 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10903 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10904 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10905 ;;
10906 esac
10907 fi
10908 hardcode_libdir_flag_spec='-R$libdir'
10909 hardcode_shlibpath_var=no
10910 case $host_os in
10911 solaris2.[0-5] | solaris2.[0-5].*) ;;
10912 *)
10913 # The compiler driver will combine and reorder linker options,
10914 # but understands '-z linker_flag'. GCC discards it without '$wl',
10915 # but is careful enough not to reorder.
10916 # Supported since Solaris 2.6 (maybe 2.5.1?)
10917 if test yes = "$GCC"; then
10918 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10919 else
10920 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10921 fi
10922 ;;
10923 esac
10924 link_all_deplibs=yes
10925 ;;
10926
10927 sunos4*)
10928 if test sequent = "$host_vendor"; then
10929 # Use $CC to link under sequent, because it throws in some extra .o
10930 # files that make .init and .fini sections work.
10931 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10932 else
10933 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10934 fi
10935 hardcode_libdir_flag_spec='-L$libdir'
10936 hardcode_direct=yes
10937 hardcode_minus_L=yes
10938 hardcode_shlibpath_var=no
10939 ;;
10940
10941 sysv4)
10942 case $host_vendor in
10943 sni)
10944 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10945 hardcode_direct=yes # is this really true???
10946 ;;
10947 siemens)
10948 ## LD is ld it makes a PLAMLIB
10949 ## CC just makes a GrossModule.
10950 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10951 reload_cmds='$CC -r -o $output$reload_objs'
10952 hardcode_direct=no
10953 ;;
10954 motorola)
10955 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10956 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10957 ;;
10958 esac
10959 runpath_var='LD_RUN_PATH'
10960 hardcode_shlibpath_var=no
10961 ;;
10962
10963 sysv4.3*)
10964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10965 hardcode_shlibpath_var=no
10966 export_dynamic_flag_spec='-Bexport'
10967 ;;
10968
10969 sysv4*MP*)
10970 if test -d /usr/nec; then
10971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10972 hardcode_shlibpath_var=no
10973 runpath_var=LD_RUN_PATH
10974 hardcode_runpath_var=yes
10975 ld_shlibs=yes
10976 fi
10977 ;;
10978
10979 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10980 no_undefined_flag='$wl-z,text'
10981 archive_cmds_need_lc=no
10982 hardcode_shlibpath_var=no
10983 runpath_var='LD_RUN_PATH'
10984
10985 if test yes = "$GCC"; then
10986 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10987 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10988 else
10989 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10990 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10991 fi
10992 ;;
10993
10994 sysv5* | sco3.2v5* | sco5v6*)
10995 # Note: We CANNOT use -z defs as we might desire, because we do not
10996 # link with -lc, and that would cause any symbols used from libc to
10997 # always be unresolved, which means just about no library would
10998 # ever link correctly. If we're not using GNU ld we use -z text
10999 # though, which does catch some bad symbols but isn't as heavy-handed
11000 # as -z defs.
11001 no_undefined_flag='$wl-z,text'
11002 allow_undefined_flag='$wl-z,nodefs'
11003 archive_cmds_need_lc=no
11004 hardcode_shlibpath_var=no
11005 hardcode_libdir_flag_spec='$wl-R,$libdir'
11006 hardcode_libdir_separator=':'
11007 link_all_deplibs=yes
11008 export_dynamic_flag_spec='$wl-Bexport'
11009 runpath_var='LD_RUN_PATH'
11010
11011 if test yes = "$GCC"; then
11012 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11013 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11014 else
11015 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11016 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11017 fi
11018 ;;
11019
11020 uts4*)
11021 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11022 hardcode_libdir_flag_spec='-L$libdir'
11023 hardcode_shlibpath_var=no
11024 ;;
11025
11026 *)
11027 ld_shlibs=no
11028 ;;
11029 esac
11030
11031 if test sni = "$host_vendor"; then
11032 case $host in
11033 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11034 export_dynamic_flag_spec='$wl-Blargedynsym'
11035 ;;
11036 esac
11037 fi
11038 fi
11039
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11041 $as_echo "$ld_shlibs" >&6; }
11042 test no = "$ld_shlibs" && can_build_shared=no
11043
11044 with_gnu_ld=$with_gnu_ld
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060 #
11061 # Do we need to explicitly link libc?
11062 #
11063 case "x$archive_cmds_need_lc" in
11064 x|xyes)
11065 # Assume -lc should be added
11066 archive_cmds_need_lc=yes
11067
11068 if test yes,yes = "$GCC,$enable_shared"; then
11069 case $archive_cmds in
11070 *'~'*)
11071 # FIXME: we may have to deal with multi-command sequences.
11072 ;;
11073 '$CC '*)
11074 # Test whether the compiler implicitly links with -lc since on some
11075 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11076 # to ld, don't add -lc before -lgcc.
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11078 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11079 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11080 $as_echo_n "(cached) " >&6
11081 else
11082 $RM conftest*
11083 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11084
11085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11086 (eval $ac_compile) 2>&5
11087 ac_status=$?
11088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11089 test $ac_status = 0; } 2>conftest.err; then
11090 soname=conftest
11091 lib=conftest
11092 libobjs=conftest.$ac_objext
11093 deplibs=
11094 wl=$lt_prog_compiler_wl
11095 pic_flag=$lt_prog_compiler_pic
11096 compiler_flags=-v
11097 linker_flags=-v
11098 verstring=
11099 output_objdir=.
11100 libname=conftest
11101 lt_save_allow_undefined_flag=$allow_undefined_flag
11102 allow_undefined_flag=
11103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11104 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11105 ac_status=$?
11106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11107 test $ac_status = 0; }
11108 then
11109 lt_cv_archive_cmds_need_lc=no
11110 else
11111 lt_cv_archive_cmds_need_lc=yes
11112 fi
11113 allow_undefined_flag=$lt_save_allow_undefined_flag
11114 else
11115 cat conftest.err 1>&5
11116 fi
11117 $RM conftest*
11118
11119 fi
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11121 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11122 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11123 ;;
11124 esac
11125 fi
11126 ;;
11127 esac
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11281 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11282
11283 if test yes = "$GCC"; then
11284 case $host_os in
11285 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11286 *) lt_awk_arg='/^libraries:/' ;;
11287 esac
11288 case $host_os in
11289 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11290 *) lt_sed_strip_eq='s|=/|/|g' ;;
11291 esac
11292 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11293 case $lt_search_path_spec in
11294 *\;*)
11295 # if the path contains ";" then we assume it to be the separator
11296 # otherwise default to the standard path separator (i.e. ":") - it is
11297 # assumed that no part of a normal pathname contains ";" but that should
11298 # okay in the real world where ";" in dirpaths is itself problematic.
11299 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11300 ;;
11301 *)
11302 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11303 ;;
11304 esac
11305 # Ok, now we have the path, separated by spaces, we can step through it
11306 # and add multilib dir if necessary...
11307 lt_tmp_lt_search_path_spec=
11308 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11309 # ...but if some path component already ends with the multilib dir we assume
11310 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11311 case "$lt_multi_os_dir; $lt_search_path_spec " in
11312 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11313 lt_multi_os_dir=
11314 ;;
11315 esac
11316 for lt_sys_path in $lt_search_path_spec; do
11317 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11318 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11319 elif test -n "$lt_multi_os_dir"; then
11320 test -d "$lt_sys_path" && \
11321 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11322 fi
11323 done
11324 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11325 BEGIN {RS = " "; FS = "/|\n";} {
11326 lt_foo = "";
11327 lt_count = 0;
11328 for (lt_i = NF; lt_i > 0; lt_i--) {
11329 if ($lt_i != "" && $lt_i != ".") {
11330 if ($lt_i == "..") {
11331 lt_count++;
11332 } else {
11333 if (lt_count == 0) {
11334 lt_foo = "/" $lt_i lt_foo;
11335 } else {
11336 lt_count--;
11337 }
11338 }
11339 }
11340 }
11341 if (lt_foo != "") { lt_freq[lt_foo]++; }
11342 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11343 }'`
11344 # AWK program above erroneously prepends '/' to C:/dos/paths
11345 # for these hosts.
11346 case $host_os in
11347 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11348 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11349 esac
11350 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11351 else
11352 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11353 fi
11354 library_names_spec=
11355 libname_spec='lib$name'
11356 soname_spec=
11357 shrext_cmds=.so
11358 postinstall_cmds=
11359 postuninstall_cmds=
11360 finish_cmds=
11361 finish_eval=
11362 shlibpath_var=
11363 shlibpath_overrides_runpath=unknown
11364 version_type=none
11365 dynamic_linker="$host_os ld.so"
11366 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11367 need_lib_prefix=unknown
11368 hardcode_into_libs=no
11369
11370 # when you set need_version to no, make sure it does not cause -set_version
11371 # flags to be left without arguments
11372 need_version=unknown
11373
11374
11375
11376 case $host_os in
11377 aix3*)
11378 version_type=linux # correct to gnu/linux during the next big refactor
11379 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11380 shlibpath_var=LIBPATH
11381
11382 # AIX 3 has no versioning support, so we append a major version to the name.
11383 soname_spec='$libname$release$shared_ext$major'
11384 ;;
11385
11386 aix[4-9]*)
11387 version_type=linux # correct to gnu/linux during the next big refactor
11388 need_lib_prefix=no
11389 need_version=no
11390 hardcode_into_libs=yes
11391 if test ia64 = "$host_cpu"; then
11392 # AIX 5 supports IA64
11393 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11394 shlibpath_var=LD_LIBRARY_PATH
11395 else
11396 # With GCC up to 2.95.x, collect2 would create an import file
11397 # for dependence libraries. The import file would start with
11398 # the line '#! .'. This would cause the generated library to
11399 # depend on '.', always an invalid library. This was fixed in
11400 # development snapshots of GCC prior to 3.0.
11401 case $host_os in
11402 aix4 | aix4.[01] | aix4.[01].*)
11403 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11404 echo ' yes '
11405 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11406 :
11407 else
11408 can_build_shared=no
11409 fi
11410 ;;
11411 esac
11412 # Using Import Files as archive members, it is possible to support
11413 # filename-based versioning of shared library archives on AIX. While
11414 # this would work for both with and without runtime linking, it will
11415 # prevent static linking of such archives. So we do filename-based
11416 # shared library versioning with .so extension only, which is used
11417 # when both runtime linking and shared linking is enabled.
11418 # Unfortunately, runtime linking may impact performance, so we do
11419 # not want this to be the default eventually. Also, we use the
11420 # versioned .so libs for executables only if there is the -brtl
11421 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11422 # To allow for filename-based versioning support, we need to create
11423 # libNAME.so.V as an archive file, containing:
11424 # *) an Import File, referring to the versioned filename of the
11425 # archive as well as the shared archive member, telling the
11426 # bitwidth (32 or 64) of that shared object, and providing the
11427 # list of exported symbols of that shared object, eventually
11428 # decorated with the 'weak' keyword
11429 # *) the shared object with the F_LOADONLY flag set, to really avoid
11430 # it being seen by the linker.
11431 # At run time we better use the real file rather than another symlink,
11432 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11433
11434 case $with_aix_soname,$aix_use_runtimelinking in
11435 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11436 # soname into executable. Probably we can add versioning support to
11437 # collect2, so additional links can be useful in future.
11438 aix,yes) # traditional libtool
11439 dynamic_linker='AIX unversionable lib.so'
11440 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11441 # instead of lib<name>.a to let people know that these are not
11442 # typical AIX shared libraries.
11443 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11444 ;;
11445 aix,no) # traditional AIX only
11446 dynamic_linker='AIX lib.a(lib.so.V)'
11447 # We preserve .a as extension for shared libraries through AIX4.2
11448 # and later when we are not doing run time linking.
11449 library_names_spec='$libname$release.a $libname.a'
11450 soname_spec='$libname$release$shared_ext$major'
11451 ;;
11452 svr4,*) # full svr4 only
11453 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11454 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11455 # We do not specify a path in Import Files, so LIBPATH fires.
11456 shlibpath_overrides_runpath=yes
11457 ;;
11458 *,yes) # both, prefer svr4
11459 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11460 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11461 # unpreferred sharedlib libNAME.a needs extra handling
11462 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"'
11463 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"'
11464 # We do not specify a path in Import Files, so LIBPATH fires.
11465 shlibpath_overrides_runpath=yes
11466 ;;
11467 *,no) # both, prefer aix
11468 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11469 library_names_spec='$libname$release.a $libname.a'
11470 soname_spec='$libname$release$shared_ext$major'
11471 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11472 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)'
11473 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"'
11474 ;;
11475 esac
11476 shlibpath_var=LIBPATH
11477 fi
11478 ;;
11479
11480 amigaos*)
11481 case $host_cpu in
11482 powerpc)
11483 # Since July 2007 AmigaOS4 officially supports .so libraries.
11484 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11485 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11486 ;;
11487 m68k)
11488 library_names_spec='$libname.ixlibrary $libname.a'
11489 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11490 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'
11491 ;;
11492 esac
11493 ;;
11494
11495 beos*)
11496 library_names_spec='$libname$shared_ext'
11497 dynamic_linker="$host_os ld.so"
11498 shlibpath_var=LIBRARY_PATH
11499 ;;
11500
11501 bsdi[45]*)
11502 version_type=linux # correct to gnu/linux during the next big refactor
11503 need_version=no
11504 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11505 soname_spec='$libname$release$shared_ext$major'
11506 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11507 shlibpath_var=LD_LIBRARY_PATH
11508 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11509 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11510 # the default ld.so.conf also contains /usr/contrib/lib and
11511 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11512 # libtool to hard-code these into programs
11513 ;;
11514
11515 cygwin* | mingw* | pw32* | cegcc*)
11516 version_type=windows
11517 shrext_cmds=.dll
11518 need_version=no
11519 need_lib_prefix=no
11520
11521 case $GCC,$cc_basename in
11522 yes,*)
11523 # gcc
11524 library_names_spec='$libname.dll.a'
11525 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11526 postinstall_cmds='base_file=`basename \$file`~
11527 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11528 dldir=$destdir/`dirname \$dlpath`~
11529 test -d \$dldir || mkdir -p \$dldir~
11530 $install_prog $dir/$dlname \$dldir/$dlname~
11531 chmod a+x \$dldir/$dlname~
11532 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11533 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11534 fi'
11535 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11536 dlpath=$dir/\$dldll~
11537 $RM \$dlpath'
11538 shlibpath_overrides_runpath=yes
11539
11540 case $host_os in
11541 cygwin*)
11542 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11543 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11544
11545 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11546 ;;
11547 mingw* | cegcc*)
11548 # MinGW DLLs use traditional 'lib' prefix
11549 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11550 ;;
11551 pw32*)
11552 # pw32 DLLs use 'pw' prefix rather than 'lib'
11553 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11554 ;;
11555 esac
11556 dynamic_linker='Win32 ld.exe'
11557 ;;
11558
11559 *,cl*)
11560 # Native MSVC
11561 libname_spec='$name'
11562 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11563 library_names_spec='$libname.dll.lib'
11564
11565 case $build_os in
11566 mingw*)
11567 sys_lib_search_path_spec=
11568 lt_save_ifs=$IFS
11569 IFS=';'
11570 for lt_path in $LIB
11571 do
11572 IFS=$lt_save_ifs
11573 # Let DOS variable expansion print the short 8.3 style file name.
11574 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11575 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11576 done
11577 IFS=$lt_save_ifs
11578 # Convert to MSYS style.
11579 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11580 ;;
11581 cygwin*)
11582 # Convert to unix form, then to dos form, then back to unix form
11583 # but this time dos style (no spaces!) so that the unix form looks
11584 # like /cygdrive/c/PROGRA~1:/cygdr...
11585 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11586 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11587 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11588 ;;
11589 *)
11590 sys_lib_search_path_spec=$LIB
11591 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11592 # It is most probably a Windows format PATH.
11593 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11594 else
11595 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11596 fi
11597 # FIXME: find the short name or the path components, as spaces are
11598 # common. (e.g. "Program Files" -> "PROGRA~1")
11599 ;;
11600 esac
11601
11602 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11603 postinstall_cmds='base_file=`basename \$file`~
11604 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11605 dldir=$destdir/`dirname \$dlpath`~
11606 test -d \$dldir || mkdir -p \$dldir~
11607 $install_prog $dir/$dlname \$dldir/$dlname'
11608 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11609 dlpath=$dir/\$dldll~
11610 $RM \$dlpath'
11611 shlibpath_overrides_runpath=yes
11612 dynamic_linker='Win32 link.exe'
11613 ;;
11614
11615 *)
11616 # Assume MSVC wrapper
11617 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11618 dynamic_linker='Win32 ld.exe'
11619 ;;
11620 esac
11621 # FIXME: first we should search . and the directory the executable is in
11622 shlibpath_var=PATH
11623 ;;
11624
11625 darwin* | rhapsody*)
11626 dynamic_linker="$host_os dyld"
11627 version_type=darwin
11628 need_lib_prefix=no
11629 need_version=no
11630 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11631 soname_spec='$libname$release$major$shared_ext'
11632 shlibpath_overrides_runpath=yes
11633 shlibpath_var=DYLD_LIBRARY_PATH
11634 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11635
11636 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11637 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11638 ;;
11639
11640 dgux*)
11641 version_type=linux # correct to gnu/linux during the next big refactor
11642 need_lib_prefix=no
11643 need_version=no
11644 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11645 soname_spec='$libname$release$shared_ext$major'
11646 shlibpath_var=LD_LIBRARY_PATH
11647 ;;
11648
11649 freebsd* | dragonfly*)
11650 # DragonFly does not have aout. When/if they implement a new
11651 # versioning mechanism, adjust this.
11652 if test -x /usr/bin/objformat; then
11653 objformat=`/usr/bin/objformat`
11654 else
11655 case $host_os in
11656 freebsd[23].*) objformat=aout ;;
11657 *) objformat=elf ;;
11658 esac
11659 fi
11660 version_type=freebsd-$objformat
11661 case $version_type in
11662 freebsd-elf*)
11663 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11664 soname_spec='$libname$release$shared_ext$major'
11665 need_version=no
11666 need_lib_prefix=no
11667 ;;
11668 freebsd-*)
11669 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11670 need_version=yes
11671 ;;
11672 esac
11673 shlibpath_var=LD_LIBRARY_PATH
11674 case $host_os in
11675 freebsd2.*)
11676 shlibpath_overrides_runpath=yes
11677 ;;
11678 freebsd3.[01]* | freebsdelf3.[01]*)
11679 shlibpath_overrides_runpath=yes
11680 hardcode_into_libs=yes
11681 ;;
11682 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11683 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11684 shlibpath_overrides_runpath=no
11685 hardcode_into_libs=yes
11686 ;;
11687 *) # from 4.6 on, and DragonFly
11688 shlibpath_overrides_runpath=yes
11689 hardcode_into_libs=yes
11690 ;;
11691 esac
11692 ;;
11693
11694 haiku*)
11695 version_type=linux # correct to gnu/linux during the next big refactor
11696 need_lib_prefix=no
11697 need_version=no
11698 dynamic_linker="$host_os runtime_loader"
11699 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11700 soname_spec='$libname$release$shared_ext$major'
11701 shlibpath_var=LIBRARY_PATH
11702 shlibpath_overrides_runpath=no
11703 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11704 hardcode_into_libs=yes
11705 ;;
11706
11707 hpux9* | hpux10* | hpux11*)
11708 # Give a soname corresponding to the major version so that dld.sl refuses to
11709 # link against other versions.
11710 version_type=sunos
11711 need_lib_prefix=no
11712 need_version=no
11713 case $host_cpu in
11714 ia64*)
11715 shrext_cmds='.so'
11716 hardcode_into_libs=yes
11717 dynamic_linker="$host_os dld.so"
11718 shlibpath_var=LD_LIBRARY_PATH
11719 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11720 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11721 soname_spec='$libname$release$shared_ext$major'
11722 if test 32 = "$HPUX_IA64_MODE"; then
11723 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11724 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11725 else
11726 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11727 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11728 fi
11729 ;;
11730 hppa*64*)
11731 shrext_cmds='.sl'
11732 hardcode_into_libs=yes
11733 dynamic_linker="$host_os dld.sl"
11734 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11735 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11736 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11737 soname_spec='$libname$release$shared_ext$major'
11738 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11739 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11740 ;;
11741 *)
11742 shrext_cmds='.sl'
11743 dynamic_linker="$host_os dld.sl"
11744 shlibpath_var=SHLIB_PATH
11745 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11746 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11747 soname_spec='$libname$release$shared_ext$major'
11748 ;;
11749 esac
11750 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11751 postinstall_cmds='chmod 555 $lib'
11752 # or fails outright, so override atomically:
11753 install_override_mode=555
11754 ;;
11755
11756 interix[3-9]*)
11757 version_type=linux # correct to gnu/linux during the next big refactor
11758 need_lib_prefix=no
11759 need_version=no
11760 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11761 soname_spec='$libname$release$shared_ext$major'
11762 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11763 shlibpath_var=LD_LIBRARY_PATH
11764 shlibpath_overrides_runpath=no
11765 hardcode_into_libs=yes
11766 ;;
11767
11768 irix5* | irix6* | nonstopux*)
11769 case $host_os in
11770 nonstopux*) version_type=nonstopux ;;
11771 *)
11772 if test yes = "$lt_cv_prog_gnu_ld"; then
11773 version_type=linux # correct to gnu/linux during the next big refactor
11774 else
11775 version_type=irix
11776 fi ;;
11777 esac
11778 need_lib_prefix=no
11779 need_version=no
11780 soname_spec='$libname$release$shared_ext$major'
11781 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11782 case $host_os in
11783 irix5* | nonstopux*)
11784 libsuff= shlibsuff=
11785 ;;
11786 *)
11787 case $LD in # libtool.m4 will add one of these switches to LD
11788 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11789 libsuff= shlibsuff= libmagic=32-bit;;
11790 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11791 libsuff=32 shlibsuff=N32 libmagic=N32;;
11792 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11793 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11794 *) libsuff= shlibsuff= libmagic=never-match;;
11795 esac
11796 ;;
11797 esac
11798 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11799 shlibpath_overrides_runpath=no
11800 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11801 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11802 hardcode_into_libs=yes
11803 ;;
11804
11805 # No shared lib support for Linux oldld, aout, or coff.
11806 linux*oldld* | linux*aout* | linux*coff*)
11807 dynamic_linker=no
11808 ;;
11809
11810 linux*android*)
11811 version_type=none # Android doesn't support versioned libraries.
11812 need_lib_prefix=no
11813 need_version=no
11814 library_names_spec='$libname$release$shared_ext'
11815 soname_spec='$libname$release$shared_ext'
11816 finish_cmds=
11817 shlibpath_var=LD_LIBRARY_PATH
11818 shlibpath_overrides_runpath=yes
11819
11820 # This implies no fast_install, which is unacceptable.
11821 # Some rework will be needed to allow for fast_install
11822 # before this can be enabled.
11823 hardcode_into_libs=yes
11824
11825 dynamic_linker='Android linker'
11826 # Don't embed -rpath directories since the linker doesn't support them.
11827 hardcode_libdir_flag_spec='-L$libdir'
11828 ;;
11829
11830 # This must be glibc/ELF.
11831 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11832 version_type=linux # correct to gnu/linux during the next big refactor
11833 need_lib_prefix=no
11834 need_version=no
11835 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11836 soname_spec='$libname$release$shared_ext$major'
11837 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11838 shlibpath_var=LD_LIBRARY_PATH
11839 shlibpath_overrides_runpath=no
11840
11841 # Some binutils ld are patched to set DT_RUNPATH
11842 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11843 $as_echo_n "(cached) " >&6
11844 else
11845 lt_cv_shlibpath_overrides_runpath=no
11846 save_LDFLAGS=$LDFLAGS
11847 save_libdir=$libdir
11848 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11849 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11851 /* end confdefs.h. */
11852
11853 int
11854 main ()
11855 {
11856
11857 ;
11858 return 0;
11859 }
11860 _ACEOF
11861 if ac_fn_c_try_link "$LINENO"; then :
11862 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11863 lt_cv_shlibpath_overrides_runpath=yes
11864 fi
11865 fi
11866 rm -f core conftest.err conftest.$ac_objext \
11867 conftest$ac_exeext conftest.$ac_ext
11868 LDFLAGS=$save_LDFLAGS
11869 libdir=$save_libdir
11870
11871 fi
11872
11873 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11874
11875 # This implies no fast_install, which is unacceptable.
11876 # Some rework will be needed to allow for fast_install
11877 # before this can be enabled.
11878 hardcode_into_libs=yes
11879
11880 # Ideally, we could use ldconfig to report *all* directores which are
11881 # searched for libraries, however this is still not possible. Aside from not
11882 # being certain /sbin/ldconfig is available, command
11883 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11884 # even though it is searched at run-time. Try to do the best guess by
11885 # appending ld.so.conf contents (and includes) to the search path.
11886 if test -f /etc/ld.so.conf; then
11887 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' ' '`
11888 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11889 fi
11890
11891 # We used to test for /lib/ld.so.1 and disable shared libraries on
11892 # powerpc, because MkLinux only supported shared libraries with the
11893 # GNU dynamic linker. Since this was broken with cross compilers,
11894 # most powerpc-linux boxes support dynamic linking these days and
11895 # people can always --disable-shared, the test was removed, and we
11896 # assume the GNU/Linux dynamic linker is in use.
11897 dynamic_linker='GNU/Linux ld.so'
11898 ;;
11899
11900 netbsdelf*-gnu)
11901 version_type=linux
11902 need_lib_prefix=no
11903 need_version=no
11904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11905 soname_spec='${libname}${release}${shared_ext}$major'
11906 shlibpath_var=LD_LIBRARY_PATH
11907 shlibpath_overrides_runpath=no
11908 hardcode_into_libs=yes
11909 dynamic_linker='NetBSD ld.elf_so'
11910 ;;
11911
11912 netbsd*)
11913 version_type=sunos
11914 need_lib_prefix=no
11915 need_version=no
11916 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11917 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11918 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11919 dynamic_linker='NetBSD (a.out) ld.so'
11920 else
11921 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11922 soname_spec='$libname$release$shared_ext$major'
11923 dynamic_linker='NetBSD ld.elf_so'
11924 fi
11925 shlibpath_var=LD_LIBRARY_PATH
11926 shlibpath_overrides_runpath=yes
11927 hardcode_into_libs=yes
11928 ;;
11929
11930 newsos6)
11931 version_type=linux # correct to gnu/linux during the next big refactor
11932 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11933 shlibpath_var=LD_LIBRARY_PATH
11934 shlibpath_overrides_runpath=yes
11935 ;;
11936
11937 *nto* | *qnx*)
11938 version_type=qnx
11939 need_lib_prefix=no
11940 need_version=no
11941 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11942 soname_spec='$libname$release$shared_ext$major'
11943 shlibpath_var=LD_LIBRARY_PATH
11944 shlibpath_overrides_runpath=no
11945 hardcode_into_libs=yes
11946 dynamic_linker='ldqnx.so'
11947 ;;
11948
11949 openbsd* | bitrig*)
11950 version_type=sunos
11951 sys_lib_dlsearch_path_spec=/usr/lib
11952 need_lib_prefix=no
11953 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11954 need_version=no
11955 else
11956 need_version=yes
11957 fi
11958 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11959 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11960 shlibpath_var=LD_LIBRARY_PATH
11961 shlibpath_overrides_runpath=yes
11962 ;;
11963
11964 os2*)
11965 libname_spec='$name'
11966 version_type=windows
11967 shrext_cmds=.dll
11968 need_version=no
11969 need_lib_prefix=no
11970 # OS/2 can only load a DLL with a base name of 8 characters or less.
11971 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11972 v=$($ECHO $release$versuffix | tr -d .-);
11973 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11974 $ECHO $n$v`$shared_ext'
11975 library_names_spec='${libname}_dll.$libext'
11976 dynamic_linker='OS/2 ld.exe'
11977 shlibpath_var=BEGINLIBPATH
11978 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11979 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11980 postinstall_cmds='base_file=`basename \$file`~
11981 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11982 dldir=$destdir/`dirname \$dlpath`~
11983 test -d \$dldir || mkdir -p \$dldir~
11984 $install_prog $dir/$dlname \$dldir/$dlname~
11985 chmod a+x \$dldir/$dlname~
11986 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11987 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11988 fi'
11989 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11990 dlpath=$dir/\$dldll~
11991 $RM \$dlpath'
11992 ;;
11993
11994 osf3* | osf4* | osf5*)
11995 version_type=osf
11996 need_lib_prefix=no
11997 need_version=no
11998 soname_spec='$libname$release$shared_ext$major'
11999 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12000 shlibpath_var=LD_LIBRARY_PATH
12001 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12002 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12003 ;;
12004
12005 rdos*)
12006 dynamic_linker=no
12007 ;;
12008
12009 solaris*)
12010 version_type=linux # correct to gnu/linux during the next big refactor
12011 need_lib_prefix=no
12012 need_version=no
12013 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12014 soname_spec='$libname$release$shared_ext$major'
12015 shlibpath_var=LD_LIBRARY_PATH
12016 shlibpath_overrides_runpath=yes
12017 hardcode_into_libs=yes
12018 # ldd complains unless libraries are executable
12019 postinstall_cmds='chmod +x $lib'
12020 ;;
12021
12022 sunos4*)
12023 version_type=sunos
12024 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12025 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12026 shlibpath_var=LD_LIBRARY_PATH
12027 shlibpath_overrides_runpath=yes
12028 if test yes = "$with_gnu_ld"; then
12029 need_lib_prefix=no
12030 fi
12031 need_version=yes
12032 ;;
12033
12034 sysv4 | sysv4.3*)
12035 version_type=linux # correct to gnu/linux during the next big refactor
12036 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12037 soname_spec='$libname$release$shared_ext$major'
12038 shlibpath_var=LD_LIBRARY_PATH
12039 case $host_vendor in
12040 sni)
12041 shlibpath_overrides_runpath=no
12042 need_lib_prefix=no
12043 runpath_var=LD_RUN_PATH
12044 ;;
12045 siemens)
12046 need_lib_prefix=no
12047 ;;
12048 motorola)
12049 need_lib_prefix=no
12050 need_version=no
12051 shlibpath_overrides_runpath=no
12052 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12053 ;;
12054 esac
12055 ;;
12056
12057 sysv4*MP*)
12058 if test -d /usr/nec; then
12059 version_type=linux # correct to gnu/linux during the next big refactor
12060 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12061 soname_spec='$libname$shared_ext.$major'
12062 shlibpath_var=LD_LIBRARY_PATH
12063 fi
12064 ;;
12065
12066 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12067 version_type=sco
12068 need_lib_prefix=no
12069 need_version=no
12070 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12071 soname_spec='$libname$release$shared_ext$major'
12072 shlibpath_var=LD_LIBRARY_PATH
12073 shlibpath_overrides_runpath=yes
12074 hardcode_into_libs=yes
12075 if test yes = "$with_gnu_ld"; then
12076 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12077 else
12078 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12079 case $host_os in
12080 sco3.2v5*)
12081 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12082 ;;
12083 esac
12084 fi
12085 sys_lib_dlsearch_path_spec='/usr/lib'
12086 ;;
12087
12088 tpf*)
12089 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12090 version_type=linux # correct to gnu/linux during the next big refactor
12091 need_lib_prefix=no
12092 need_version=no
12093 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12094 shlibpath_var=LD_LIBRARY_PATH
12095 shlibpath_overrides_runpath=no
12096 hardcode_into_libs=yes
12097 ;;
12098
12099 uts4*)
12100 version_type=linux # correct to gnu/linux during the next big refactor
12101 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12102 soname_spec='$libname$release$shared_ext$major'
12103 shlibpath_var=LD_LIBRARY_PATH
12104 ;;
12105
12106 *)
12107 dynamic_linker=no
12108 ;;
12109 esac
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12111 $as_echo "$dynamic_linker" >&6; }
12112 test no = "$dynamic_linker" && can_build_shared=no
12113
12114 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12115 if test yes = "$GCC"; then
12116 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12117 fi
12118
12119 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12120 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12121 fi
12122
12123 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12124 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12125 fi
12126
12127 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12128 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12129
12130 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12131 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12132
12133 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12134 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12233 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12234 hardcode_action=
12235 if test -n "$hardcode_libdir_flag_spec" ||
12236 test -n "$runpath_var" ||
12237 test yes = "$hardcode_automatic"; then
12238
12239 # We can hardcode non-existent directories.
12240 if test no != "$hardcode_direct" &&
12241 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12242 # have to relink, otherwise we might link with an installed library
12243 # when we should be linking with a yet-to-be-installed one
12244 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12245 test no != "$hardcode_minus_L"; then
12246 # Linking always hardcodes the temporary library directory.
12247 hardcode_action=relink
12248 else
12249 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12250 hardcode_action=immediate
12251 fi
12252 else
12253 # We cannot hardcode anything, or else we can only hardcode existing
12254 # directories.
12255 hardcode_action=unsupported
12256 fi
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12258 $as_echo "$hardcode_action" >&6; }
12259
12260 if test relink = "$hardcode_action" ||
12261 test yes = "$inherit_rpath"; then
12262 # Fast installation is not supported
12263 enable_fast_install=no
12264 elif test yes = "$shlibpath_overrides_runpath" ||
12265 test no = "$enable_shared"; then
12266 # Fast installation is not necessary
12267 enable_fast_install=needless
12268 fi
12269
12270
12271
12272
12273
12274
12275 if test yes != "$enable_dlopen"; then
12276 enable_dlopen=unknown
12277 enable_dlopen_self=unknown
12278 enable_dlopen_self_static=unknown
12279 else
12280 lt_cv_dlopen=no
12281 lt_cv_dlopen_libs=
12282
12283 case $host_os in
12284 beos*)
12285 lt_cv_dlopen=load_add_on
12286 lt_cv_dlopen_libs=
12287 lt_cv_dlopen_self=yes
12288 ;;
12289
12290 mingw* | pw32* | cegcc*)
12291 lt_cv_dlopen=LoadLibrary
12292 lt_cv_dlopen_libs=
12293 ;;
12294
12295 cygwin*)
12296 lt_cv_dlopen=dlopen
12297 lt_cv_dlopen_libs=
12298 ;;
12299
12300 darwin*)
12301 # if libdl is installed we need to link against it
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12303 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12304 if ${ac_cv_lib_dl_dlopen+:} false; then :
12305 $as_echo_n "(cached) " >&6
12306 else
12307 ac_check_lib_save_LIBS=$LIBS
12308 LIBS="-ldl $LIBS"
12309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12310 /* end confdefs.h. */
12311
12312 /* Override any GCC internal prototype to avoid an error.
12313 Use char because int might match the return type of a GCC
12314 builtin and then its argument prototype would still apply. */
12315 #ifdef __cplusplus
12316 extern "C"
12317 #endif
12318 char dlopen ();
12319 int
12320 main ()
12321 {
12322 return dlopen ();
12323 ;
12324 return 0;
12325 }
12326 _ACEOF
12327 if ac_fn_c_try_link "$LINENO"; then :
12328 ac_cv_lib_dl_dlopen=yes
12329 else
12330 ac_cv_lib_dl_dlopen=no
12331 fi
12332 rm -f core conftest.err conftest.$ac_objext \
12333 conftest$ac_exeext conftest.$ac_ext
12334 LIBS=$ac_check_lib_save_LIBS
12335 fi
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12337 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12338 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12339 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12340 else
12341
12342 lt_cv_dlopen=dyld
12343 lt_cv_dlopen_libs=
12344 lt_cv_dlopen_self=yes
12345
12346 fi
12347
12348 ;;
12349
12350 tpf*)
12351 # Don't try to run any link tests for TPF. We know it's impossible
12352 # because TPF is a cross-compiler, and we know how we open DSOs.
12353 lt_cv_dlopen=dlopen
12354 lt_cv_dlopen_libs=
12355 lt_cv_dlopen_self=no
12356 ;;
12357
12358 *)
12359 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12360 if test "x$ac_cv_func_shl_load" = xyes; then :
12361 lt_cv_dlopen=shl_load
12362 else
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12364 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12365 if ${ac_cv_lib_dld_shl_load+:} false; then :
12366 $as_echo_n "(cached) " >&6
12367 else
12368 ac_check_lib_save_LIBS=$LIBS
12369 LIBS="-ldld $LIBS"
12370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12371 /* end confdefs.h. */
12372
12373 /* Override any GCC internal prototype to avoid an error.
12374 Use char because int might match the return type of a GCC
12375 builtin and then its argument prototype would still apply. */
12376 #ifdef __cplusplus
12377 extern "C"
12378 #endif
12379 char shl_load ();
12380 int
12381 main ()
12382 {
12383 return shl_load ();
12384 ;
12385 return 0;
12386 }
12387 _ACEOF
12388 if ac_fn_c_try_link "$LINENO"; then :
12389 ac_cv_lib_dld_shl_load=yes
12390 else
12391 ac_cv_lib_dld_shl_load=no
12392 fi
12393 rm -f core conftest.err conftest.$ac_objext \
12394 conftest$ac_exeext conftest.$ac_ext
12395 LIBS=$ac_check_lib_save_LIBS
12396 fi
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12398 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12399 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12400 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12401 else
12402 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12403 if test "x$ac_cv_func_dlopen" = xyes; then :
12404 lt_cv_dlopen=dlopen
12405 else
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12407 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12408 if ${ac_cv_lib_dl_dlopen+:} false; then :
12409 $as_echo_n "(cached) " >&6
12410 else
12411 ac_check_lib_save_LIBS=$LIBS
12412 LIBS="-ldl $LIBS"
12413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12414 /* end confdefs.h. */
12415
12416 /* Override any GCC internal prototype to avoid an error.
12417 Use char because int might match the return type of a GCC
12418 builtin and then its argument prototype would still apply. */
12419 #ifdef __cplusplus
12420 extern "C"
12421 #endif
12422 char dlopen ();
12423 int
12424 main ()
12425 {
12426 return dlopen ();
12427 ;
12428 return 0;
12429 }
12430 _ACEOF
12431 if ac_fn_c_try_link "$LINENO"; then :
12432 ac_cv_lib_dl_dlopen=yes
12433 else
12434 ac_cv_lib_dl_dlopen=no
12435 fi
12436 rm -f core conftest.err conftest.$ac_objext \
12437 conftest$ac_exeext conftest.$ac_ext
12438 LIBS=$ac_check_lib_save_LIBS
12439 fi
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12441 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12442 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12443 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12444 else
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12446 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12447 if ${ac_cv_lib_svld_dlopen+:} false; then :
12448 $as_echo_n "(cached) " >&6
12449 else
12450 ac_check_lib_save_LIBS=$LIBS
12451 LIBS="-lsvld $LIBS"
12452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12453 /* end confdefs.h. */
12454
12455 /* Override any GCC internal prototype to avoid an error.
12456 Use char because int might match the return type of a GCC
12457 builtin and then its argument prototype would still apply. */
12458 #ifdef __cplusplus
12459 extern "C"
12460 #endif
12461 char dlopen ();
12462 int
12463 main ()
12464 {
12465 return dlopen ();
12466 ;
12467 return 0;
12468 }
12469 _ACEOF
12470 if ac_fn_c_try_link "$LINENO"; then :
12471 ac_cv_lib_svld_dlopen=yes
12472 else
12473 ac_cv_lib_svld_dlopen=no
12474 fi
12475 rm -f core conftest.err conftest.$ac_objext \
12476 conftest$ac_exeext conftest.$ac_ext
12477 LIBS=$ac_check_lib_save_LIBS
12478 fi
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12480 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12481 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12482 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12483 else
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12485 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12486 if ${ac_cv_lib_dld_dld_link+:} false; then :
12487 $as_echo_n "(cached) " >&6
12488 else
12489 ac_check_lib_save_LIBS=$LIBS
12490 LIBS="-ldld $LIBS"
12491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12492 /* end confdefs.h. */
12493
12494 /* Override any GCC internal prototype to avoid an error.
12495 Use char because int might match the return type of a GCC
12496 builtin and then its argument prototype would still apply. */
12497 #ifdef __cplusplus
12498 extern "C"
12499 #endif
12500 char dld_link ();
12501 int
12502 main ()
12503 {
12504 return dld_link ();
12505 ;
12506 return 0;
12507 }
12508 _ACEOF
12509 if ac_fn_c_try_link "$LINENO"; then :
12510 ac_cv_lib_dld_dld_link=yes
12511 else
12512 ac_cv_lib_dld_dld_link=no
12513 fi
12514 rm -f core conftest.err conftest.$ac_objext \
12515 conftest$ac_exeext conftest.$ac_ext
12516 LIBS=$ac_check_lib_save_LIBS
12517 fi
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12519 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12520 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12521 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12522 fi
12523
12524
12525 fi
12526
12527
12528 fi
12529
12530
12531 fi
12532
12533
12534 fi
12535
12536
12537 fi
12538
12539 ;;
12540 esac
12541
12542 if test no = "$lt_cv_dlopen"; then
12543 enable_dlopen=no
12544 else
12545 enable_dlopen=yes
12546 fi
12547
12548 case $lt_cv_dlopen in
12549 dlopen)
12550 save_CPPFLAGS=$CPPFLAGS
12551 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12552
12553 save_LDFLAGS=$LDFLAGS
12554 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12555
12556 save_LIBS=$LIBS
12557 LIBS="$lt_cv_dlopen_libs $LIBS"
12558
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12560 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12561 if ${lt_cv_dlopen_self+:} false; then :
12562 $as_echo_n "(cached) " >&6
12563 else
12564 if test yes = "$cross_compiling"; then :
12565 lt_cv_dlopen_self=cross
12566 else
12567 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12568 lt_status=$lt_dlunknown
12569 cat > conftest.$ac_ext <<_LT_EOF
12570 #line $LINENO "configure"
12571 #include "confdefs.h"
12572
12573 #if HAVE_DLFCN_H
12574 #include <dlfcn.h>
12575 #endif
12576
12577 #include <stdio.h>
12578
12579 #ifdef RTLD_GLOBAL
12580 # define LT_DLGLOBAL RTLD_GLOBAL
12581 #else
12582 # ifdef DL_GLOBAL
12583 # define LT_DLGLOBAL DL_GLOBAL
12584 # else
12585 # define LT_DLGLOBAL 0
12586 # endif
12587 #endif
12588
12589 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12590 find out it does not work in some platform. */
12591 #ifndef LT_DLLAZY_OR_NOW
12592 # ifdef RTLD_LAZY
12593 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12594 # else
12595 # ifdef DL_LAZY
12596 # define LT_DLLAZY_OR_NOW DL_LAZY
12597 # else
12598 # ifdef RTLD_NOW
12599 # define LT_DLLAZY_OR_NOW RTLD_NOW
12600 # else
12601 # ifdef DL_NOW
12602 # define LT_DLLAZY_OR_NOW DL_NOW
12603 # else
12604 # define LT_DLLAZY_OR_NOW 0
12605 # endif
12606 # endif
12607 # endif
12608 # endif
12609 #endif
12610
12611 /* When -fvisibility=hidden is used, assume the code has been annotated
12612 correspondingly for the symbols needed. */
12613 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12614 int fnord () __attribute__((visibility("default")));
12615 #endif
12616
12617 int fnord () { return 42; }
12618 int main ()
12619 {
12620 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12621 int status = $lt_dlunknown;
12622
12623 if (self)
12624 {
12625 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12626 else
12627 {
12628 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12629 else puts (dlerror ());
12630 }
12631 /* dlclose (self); */
12632 }
12633 else
12634 puts (dlerror ());
12635
12636 return status;
12637 }
12638 _LT_EOF
12639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12640 (eval $ac_link) 2>&5
12641 ac_status=$?
12642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12643 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12644 (./conftest; exit; ) >&5 2>/dev/null
12645 lt_status=$?
12646 case x$lt_status in
12647 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12648 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12649 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12650 esac
12651 else :
12652 # compilation failed
12653 lt_cv_dlopen_self=no
12654 fi
12655 fi
12656 rm -fr conftest*
12657
12658
12659 fi
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12661 $as_echo "$lt_cv_dlopen_self" >&6; }
12662
12663 if test yes = "$lt_cv_dlopen_self"; then
12664 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12666 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12667 if ${lt_cv_dlopen_self_static+:} false; then :
12668 $as_echo_n "(cached) " >&6
12669 else
12670 if test yes = "$cross_compiling"; then :
12671 lt_cv_dlopen_self_static=cross
12672 else
12673 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12674 lt_status=$lt_dlunknown
12675 cat > conftest.$ac_ext <<_LT_EOF
12676 #line $LINENO "configure"
12677 #include "confdefs.h"
12678
12679 #if HAVE_DLFCN_H
12680 #include <dlfcn.h>
12681 #endif
12682
12683 #include <stdio.h>
12684
12685 #ifdef RTLD_GLOBAL
12686 # define LT_DLGLOBAL RTLD_GLOBAL
12687 #else
12688 # ifdef DL_GLOBAL
12689 # define LT_DLGLOBAL DL_GLOBAL
12690 # else
12691 # define LT_DLGLOBAL 0
12692 # endif
12693 #endif
12694
12695 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12696 find out it does not work in some platform. */
12697 #ifndef LT_DLLAZY_OR_NOW
12698 # ifdef RTLD_LAZY
12699 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12700 # else
12701 # ifdef DL_LAZY
12702 # define LT_DLLAZY_OR_NOW DL_LAZY
12703 # else
12704 # ifdef RTLD_NOW
12705 # define LT_DLLAZY_OR_NOW RTLD_NOW
12706 # else
12707 # ifdef DL_NOW
12708 # define LT_DLLAZY_OR_NOW DL_NOW
12709 # else
12710 # define LT_DLLAZY_OR_NOW 0
12711 # endif
12712 # endif
12713 # endif
12714 # endif
12715 #endif
12716
12717 /* When -fvisibility=hidden is used, assume the code has been annotated
12718 correspondingly for the symbols needed. */
12719 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12720 int fnord () __attribute__((visibility("default")));
12721 #endif
12722
12723 int fnord () { return 42; }
12724 int main ()
12725 {
12726 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12727 int status = $lt_dlunknown;
12728
12729 if (self)
12730 {
12731 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12732 else
12733 {
12734 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12735 else puts (dlerror ());
12736 }
12737 /* dlclose (self); */
12738 }
12739 else
12740 puts (dlerror ());
12741
12742 return status;
12743 }
12744 _LT_EOF
12745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12746 (eval $ac_link) 2>&5
12747 ac_status=$?
12748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12749 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12750 (./conftest; exit; ) >&5 2>/dev/null
12751 lt_status=$?
12752 case x$lt_status in
12753 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12754 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12755 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12756 esac
12757 else :
12758 # compilation failed
12759 lt_cv_dlopen_self_static=no
12760 fi
12761 fi
12762 rm -fr conftest*
12763
12764
12765 fi
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12767 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12768 fi
12769
12770 CPPFLAGS=$save_CPPFLAGS
12771 LDFLAGS=$save_LDFLAGS
12772 LIBS=$save_LIBS
12773 ;;
12774 esac
12775
12776 case $lt_cv_dlopen_self in
12777 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12778 *) enable_dlopen_self=unknown ;;
12779 esac
12780
12781 case $lt_cv_dlopen_self_static in
12782 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12783 *) enable_dlopen_self_static=unknown ;;
12784 esac
12785 fi
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803 striplib=
12804 old_striplib=
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12806 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12807 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12808 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12809 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12811 $as_echo "yes" >&6; }
12812 else
12813 # FIXME - insert some real tests, host_os isn't really good enough
12814 case $host_os in
12815 darwin*)
12816 if test -n "$STRIP"; then
12817 striplib="$STRIP -x"
12818 old_striplib="$STRIP -S"
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12820 $as_echo "yes" >&6; }
12821 else
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12823 $as_echo "no" >&6; }
12824 fi
12825 ;;
12826 *)
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12828 $as_echo "no" >&6; }
12829 ;;
12830 esac
12831 fi
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844 # Report what library types will actually be built
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12846 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12848 $as_echo "$can_build_shared" >&6; }
12849
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12851 $as_echo_n "checking whether to build shared libraries... " >&6; }
12852 test no = "$can_build_shared" && enable_shared=no
12853
12854 # On AIX, shared libraries and static libraries use the same namespace, and
12855 # are all built from PIC.
12856 case $host_os in
12857 aix3*)
12858 test yes = "$enable_shared" && enable_static=no
12859 if test -n "$RANLIB"; then
12860 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12861 postinstall_cmds='$RANLIB $lib'
12862 fi
12863 ;;
12864
12865 aix[4-9]*)
12866 if test ia64 != "$host_cpu"; then
12867 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12868 yes,aix,yes) ;; # shared object as lib.so file only
12869 yes,svr4,*) ;; # shared object as lib.so archive member only
12870 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12871 esac
12872 fi
12873 ;;
12874 esac
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12876 $as_echo "$enable_shared" >&6; }
12877
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12879 $as_echo_n "checking whether to build static libraries... " >&6; }
12880 # Make sure either enable_shared or enable_static is yes.
12881 test yes = "$enable_shared" || enable_static=yes
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12883 $as_echo "$enable_static" >&6; }
12884
12885
12886
12887
12888 fi
12889 ac_ext=c
12890 ac_cpp='$CPP $CPPFLAGS'
12891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12894
12895 CC=$lt_save_CC
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911 ac_config_commands="$ac_config_commands libtool"
12912
12913
12914
12915
12916 # Only expand once:
12917
12918
12919
12920 # Require xorg-macros minimum of 1.18 - Initial version
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12933 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12934 if ${ac_cv_prog_cc_c99+:} false; then :
12935 $as_echo_n "(cached) " >&6
12936 else
12937 ac_cv_prog_cc_c99=no
12938 ac_save_CC=$CC
12939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12940 /* end confdefs.h. */
12941 #include <stdarg.h>
12942 #include <stdbool.h>
12943 #include <stdlib.h>
12944 #include <wchar.h>
12945 #include <stdio.h>
12946
12947 // Check varargs macros. These examples are taken from C99 6.10.3.5.
12948 #define debug(...) fprintf (stderr, __VA_ARGS__)
12949 #define showlist(...) puts (#__VA_ARGS__)
12950 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12951 static void
12952 test_varargs_macros (void)
12953 {
12954 int x = 1234;
12955 int y = 5678;
12956 debug ("Flag");
12957 debug ("X = %d\n", x);
12958 showlist (The first, second, and third items.);
12959 report (x>y, "x is %d but y is %d", x, y);
12960 }
12961
12962 // Check long long types.
12963 #define BIG64 18446744073709551615ull
12964 #define BIG32 4294967295ul
12965 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12966 #if !BIG_OK
12967 your preprocessor is broken;
12968 #endif
12969 #if BIG_OK
12970 #else
12971 your preprocessor is broken;
12972 #endif
12973 static long long int bignum = -9223372036854775807LL;
12974 static unsigned long long int ubignum = BIG64;
12975
12976 struct incomplete_array
12977 {
12978 int datasize;
12979 double data[];
12980 };
12981
12982 struct named_init {
12983 int number;
12984 const wchar_t *name;
12985 double average;
12986 };
12987
12988 typedef const char *ccp;
12989
12990 static inline int
12991 test_restrict (ccp restrict text)
12992 {
12993 // See if C++-style comments work.
12994 // Iterate through items via the restricted pointer.
12995 // Also check for declarations in for loops.
12996 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12997 continue;
12998 return 0;
12999 }
13000
13001 // Check varargs and va_copy.
13002 static void
13003 test_varargs (const char *format, ...)
13004 {
13005 va_list args;
13006 va_start (args, format);
13007 va_list args_copy;
13008 va_copy (args_copy, args);
13009
13010 const char *str;
13011 int number;
13012 float fnumber;
13013
13014 while (*format)
13015 {
13016 switch (*format++)
13017 {
13018 case 's': // string
13019 str = va_arg (args_copy, const char *);
13020 break;
13021 case 'd': // int
13022 number = va_arg (args_copy, int);
13023 break;
13024 case 'f': // float
13025 fnumber = va_arg (args_copy, double);
13026 break;
13027 default:
13028 break;
13029 }
13030 }
13031 va_end (args_copy);
13032 va_end (args);
13033 }
13034
13035 int
13036 main ()
13037 {
13038
13039 // Check bool.
13040 _Bool success = false;
13041
13042 // Check restrict.
13043 if (test_restrict ("String literal") == 0)
13044 success = true;
13045 char *restrict newvar = "Another string";
13046
13047 // Check varargs.
13048 test_varargs ("s, d' f .", "string", 65, 34.234);
13049 test_varargs_macros ();
13050
13051 // Check flexible array members.
13052 struct incomplete_array *ia =
13053 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
13054 ia->datasize = 10;
13055 for (int i = 0; i < ia->datasize; ++i)
13056 ia->data[i] = i * 1.234;
13057
13058 // Check named initializers.
13059 struct named_init ni = {
13060 .number = 34,
13061 .name = L"Test wide string",
13062 .average = 543.34343,
13063 };
13064
13065 ni.number = 58;
13066
13067 int dynamic_array[ni.number];
13068 dynamic_array[ni.number - 1] = 543;
13069
13070 // work around unused variable warnings
13071 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
13072 || dynamic_array[ni.number - 1] != 543);
13073
13074 ;
13075 return 0;
13076 }
13077 _ACEOF
13078 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
13079 do
13080 CC="$ac_save_CC $ac_arg"
13081 if ac_fn_c_try_compile "$LINENO"; then :
13082 ac_cv_prog_cc_c99=$ac_arg
13083 fi
13084 rm -f core conftest.err conftest.$ac_objext
13085 test "x$ac_cv_prog_cc_c99" != "xno" && break
13086 done
13087 rm -f conftest.$ac_ext
13088 CC=$ac_save_CC
13089
13090 fi
13091 # AC_CACHE_VAL
13092 case "x$ac_cv_prog_cc_c99" in
13093 x)
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13095 $as_echo "none needed" >&6; } ;;
13096 xno)
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13098 $as_echo "unsupported" >&6; } ;;
13099 *)
13100 CC="$CC $ac_cv_prog_cc_c99"
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
13102 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
13103 esac
13104 if test "x$ac_cv_prog_cc_c99" != xno; then :
13105
13106 fi
13107
13108
13109
13110
13111
13112
13113 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
13114 if test "x$ac_cv_have_decl___clang__" = xyes; then :
13115 CLANGCC="yes"
13116 else
13117 CLANGCC="no"
13118 fi
13119
13120 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
13121 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
13122 INTELCC="yes"
13123 else
13124 INTELCC="no"
13125 fi
13126
13127 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
13128 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
13129 SUNCC="yes"
13130 else
13131 SUNCC="no"
13132 fi
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13143 if test -n "$ac_tool_prefix"; then
13144 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13145 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13147 $as_echo_n "checking for $ac_word... " >&6; }
13148 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13149 $as_echo_n "(cached) " >&6
13150 else
13151 case $PKG_CONFIG in
13152 [\\/]* | ?:[\\/]*)
13153 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13154 ;;
13155 *)
13156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13157 for as_dir in $PATH
13158 do
13159 IFS=$as_save_IFS
13160 test -z "$as_dir" && as_dir=.
13161 for ac_exec_ext in '' $ac_executable_extensions; do
13162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13163 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13165 break 2
13166 fi
13167 done
13168 done
13169 IFS=$as_save_IFS
13170
13171 ;;
13172 esac
13173 fi
13174 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13175 if test -n "$PKG_CONFIG"; then
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13177 $as_echo "$PKG_CONFIG" >&6; }
13178 else
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13180 $as_echo "no" >&6; }
13181 fi
13182
13183
13184 fi
13185 if test -z "$ac_cv_path_PKG_CONFIG"; then
13186 ac_pt_PKG_CONFIG=$PKG_CONFIG
13187 # Extract the first word of "pkg-config", so it can be a program name with args.
13188 set dummy pkg-config; ac_word=$2
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13190 $as_echo_n "checking for $ac_word... " >&6; }
13191 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13192 $as_echo_n "(cached) " >&6
13193 else
13194 case $ac_pt_PKG_CONFIG in
13195 [\\/]* | ?:[\\/]*)
13196 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13197 ;;
13198 *)
13199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13200 for as_dir in $PATH
13201 do
13202 IFS=$as_save_IFS
13203 test -z "$as_dir" && as_dir=.
13204 for ac_exec_ext in '' $ac_executable_extensions; do
13205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13206 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13208 break 2
13209 fi
13210 done
13211 done
13212 IFS=$as_save_IFS
13213
13214 ;;
13215 esac
13216 fi
13217 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13218 if test -n "$ac_pt_PKG_CONFIG"; then
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13220 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13221 else
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13223 $as_echo "no" >&6; }
13224 fi
13225
13226 if test "x$ac_pt_PKG_CONFIG" = x; then
13227 PKG_CONFIG=""
13228 else
13229 case $cross_compiling:$ac_tool_warned in
13230 yes:)
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13233 ac_tool_warned=yes ;;
13234 esac
13235 PKG_CONFIG=$ac_pt_PKG_CONFIG
13236 fi
13237 else
13238 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13239 fi
13240
13241 fi
13242 if test -n "$PKG_CONFIG"; then
13243 _pkg_min_version=0.9.0
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13245 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13246 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13248 $as_echo "yes" >&6; }
13249 else
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13251 $as_echo "no" >&6; }
13252 PKG_CONFIG=""
13253 fi
13254 fi
13255
13256
13257
13258
13259
13260 # Check whether --enable-selective-werror was given.
13261 if test "${enable_selective_werror+set}" = set; then :
13262 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13263 else
13264 SELECTIVE_WERROR=yes
13265 fi
13266
13267
13268
13269
13270
13271 # -v is too short to test reliably with XORG_TESTSET_CFLAG
13272 if test "x$SUNCC" = "xyes"; then
13273 BASE_CFLAGS="-v"
13274 else
13275 BASE_CFLAGS=""
13276 fi
13277
13278 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292 xorg_testset_save_CFLAGS="$CFLAGS"
13293
13294 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13295 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13297 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13298 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13299 $as_echo_n "(cached) " >&6
13300 else
13301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13302 /* end confdefs.h. */
13303 int i;
13304 _ACEOF
13305 if ac_fn_c_try_compile "$LINENO"; then :
13306 xorg_cv_cc_flag_unknown_warning_option=yes
13307 else
13308 xorg_cv_cc_flag_unknown_warning_option=no
13309 fi
13310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13311 fi
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13313 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13314 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13315 CFLAGS="$xorg_testset_save_CFLAGS"
13316 fi
13317
13318 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13320 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13321 fi
13322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13324 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13325 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13326 $as_echo_n "(cached) " >&6
13327 else
13328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13329 /* end confdefs.h. */
13330 int i;
13331 _ACEOF
13332 if ac_fn_c_try_compile "$LINENO"; then :
13333 xorg_cv_cc_flag_unused_command_line_argument=yes
13334 else
13335 xorg_cv_cc_flag_unused_command_line_argument=no
13336 fi
13337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13338 fi
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13340 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13341 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13342 CFLAGS="$xorg_testset_save_CFLAGS"
13343 fi
13344
13345 found="no"
13346
13347 if test $found = "no" ; then
13348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13350 fi
13351
13352 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13354 fi
13355
13356 CFLAGS="$CFLAGS -Wall"
13357
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13359 $as_echo_n "checking if $CC supports -Wall... " >&6; }
13360 cacheid=xorg_cv_cc_flag__Wall
13361 if eval \${$cacheid+:} false; then :
13362 $as_echo_n "(cached) " >&6
13363 else
13364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13365 /* end confdefs.h. */
13366 int i;
13367 int
13368 main ()
13369 {
13370
13371 ;
13372 return 0;
13373 }
13374 _ACEOF
13375 if ac_fn_c_try_link "$LINENO"; then :
13376 eval $cacheid=yes
13377 else
13378 eval $cacheid=no
13379 fi
13380 rm -f core conftest.err conftest.$ac_objext \
13381 conftest$ac_exeext conftest.$ac_ext
13382 fi
13383
13384
13385 CFLAGS="$xorg_testset_save_CFLAGS"
13386
13387 eval supported=\$$cacheid
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13389 $as_echo "$supported" >&6; }
13390 if test "$supported" = "yes" ; then
13391 BASE_CFLAGS="$BASE_CFLAGS -Wall"
13392 found="yes"
13393 fi
13394 fi
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410 xorg_testset_save_CFLAGS="$CFLAGS"
13411
13412 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13413 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13415 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13416 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13417 $as_echo_n "(cached) " >&6
13418 else
13419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13420 /* end confdefs.h. */
13421 int i;
13422 _ACEOF
13423 if ac_fn_c_try_compile "$LINENO"; then :
13424 xorg_cv_cc_flag_unknown_warning_option=yes
13425 else
13426 xorg_cv_cc_flag_unknown_warning_option=no
13427 fi
13428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13429 fi
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13431 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13432 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13433 CFLAGS="$xorg_testset_save_CFLAGS"
13434 fi
13435
13436 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13439 fi
13440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13442 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13443 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13444 $as_echo_n "(cached) " >&6
13445 else
13446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13447 /* end confdefs.h. */
13448 int i;
13449 _ACEOF
13450 if ac_fn_c_try_compile "$LINENO"; then :
13451 xorg_cv_cc_flag_unused_command_line_argument=yes
13452 else
13453 xorg_cv_cc_flag_unused_command_line_argument=no
13454 fi
13455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13456 fi
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13458 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13459 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13460 CFLAGS="$xorg_testset_save_CFLAGS"
13461 fi
13462
13463 found="no"
13464
13465 if test $found = "no" ; then
13466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13468 fi
13469
13470 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13472 fi
13473
13474 CFLAGS="$CFLAGS -Wpointer-arith"
13475
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13477 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
13478 cacheid=xorg_cv_cc_flag__Wpointer_arith
13479 if eval \${$cacheid+:} false; then :
13480 $as_echo_n "(cached) " >&6
13481 else
13482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13483 /* end confdefs.h. */
13484 int i;
13485 int
13486 main ()
13487 {
13488
13489 ;
13490 return 0;
13491 }
13492 _ACEOF
13493 if ac_fn_c_try_link "$LINENO"; then :
13494 eval $cacheid=yes
13495 else
13496 eval $cacheid=no
13497 fi
13498 rm -f core conftest.err conftest.$ac_objext \
13499 conftest$ac_exeext conftest.$ac_ext
13500 fi
13501
13502
13503 CFLAGS="$xorg_testset_save_CFLAGS"
13504
13505 eval supported=\$$cacheid
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13507 $as_echo "$supported" >&6; }
13508 if test "$supported" = "yes" ; then
13509 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13510 found="yes"
13511 fi
13512 fi
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528 xorg_testset_save_CFLAGS="$CFLAGS"
13529
13530 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13533 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13534 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13535 $as_echo_n "(cached) " >&6
13536 else
13537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13538 /* end confdefs.h. */
13539 int i;
13540 _ACEOF
13541 if ac_fn_c_try_compile "$LINENO"; then :
13542 xorg_cv_cc_flag_unknown_warning_option=yes
13543 else
13544 xorg_cv_cc_flag_unknown_warning_option=no
13545 fi
13546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13547 fi
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13549 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13550 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13551 CFLAGS="$xorg_testset_save_CFLAGS"
13552 fi
13553
13554 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13557 fi
13558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13560 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13561 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13562 $as_echo_n "(cached) " >&6
13563 else
13564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13565 /* end confdefs.h. */
13566 int i;
13567 _ACEOF
13568 if ac_fn_c_try_compile "$LINENO"; then :
13569 xorg_cv_cc_flag_unused_command_line_argument=yes
13570 else
13571 xorg_cv_cc_flag_unused_command_line_argument=no
13572 fi
13573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13574 fi
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13576 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13577 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13578 CFLAGS="$xorg_testset_save_CFLAGS"
13579 fi
13580
13581 found="no"
13582
13583 if test $found = "no" ; then
13584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13585 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13586 fi
13587
13588 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13590 fi
13591
13592 CFLAGS="$CFLAGS -Wmissing-declarations"
13593
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13595 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
13596 cacheid=xorg_cv_cc_flag__Wmissing_declarations
13597 if eval \${$cacheid+:} false; then :
13598 $as_echo_n "(cached) " >&6
13599 else
13600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13601 /* end confdefs.h. */
13602 int i;
13603 int
13604 main ()
13605 {
13606
13607 ;
13608 return 0;
13609 }
13610 _ACEOF
13611 if ac_fn_c_try_link "$LINENO"; then :
13612 eval $cacheid=yes
13613 else
13614 eval $cacheid=no
13615 fi
13616 rm -f core conftest.err conftest.$ac_objext \
13617 conftest$ac_exeext conftest.$ac_ext
13618 fi
13619
13620
13621 CFLAGS="$xorg_testset_save_CFLAGS"
13622
13623 eval supported=\$$cacheid
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13625 $as_echo "$supported" >&6; }
13626 if test "$supported" = "yes" ; then
13627 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13628 found="yes"
13629 fi
13630 fi
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646 xorg_testset_save_CFLAGS="$CFLAGS"
13647
13648 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13649 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13651 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13652 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13653 $as_echo_n "(cached) " >&6
13654 else
13655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13656 /* end confdefs.h. */
13657 int i;
13658 _ACEOF
13659 if ac_fn_c_try_compile "$LINENO"; then :
13660 xorg_cv_cc_flag_unknown_warning_option=yes
13661 else
13662 xorg_cv_cc_flag_unknown_warning_option=no
13663 fi
13664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13665 fi
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13667 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13668 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13669 CFLAGS="$xorg_testset_save_CFLAGS"
13670 fi
13671
13672 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13674 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13675 fi
13676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13678 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13679 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13680 $as_echo_n "(cached) " >&6
13681 else
13682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13683 /* end confdefs.h. */
13684 int i;
13685 _ACEOF
13686 if ac_fn_c_try_compile "$LINENO"; then :
13687 xorg_cv_cc_flag_unused_command_line_argument=yes
13688 else
13689 xorg_cv_cc_flag_unused_command_line_argument=no
13690 fi
13691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13692 fi
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13694 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13695 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13696 CFLAGS="$xorg_testset_save_CFLAGS"
13697 fi
13698
13699 found="no"
13700
13701 if test $found = "no" ; then
13702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13704 fi
13705
13706 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13708 fi
13709
13710 CFLAGS="$CFLAGS -Wformat=2"
13711
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13713 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
13714 cacheid=xorg_cv_cc_flag__Wformat_2
13715 if eval \${$cacheid+:} false; then :
13716 $as_echo_n "(cached) " >&6
13717 else
13718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13719 /* end confdefs.h. */
13720 int i;
13721 int
13722 main ()
13723 {
13724
13725 ;
13726 return 0;
13727 }
13728 _ACEOF
13729 if ac_fn_c_try_link "$LINENO"; then :
13730 eval $cacheid=yes
13731 else
13732 eval $cacheid=no
13733 fi
13734 rm -f core conftest.err conftest.$ac_objext \
13735 conftest$ac_exeext conftest.$ac_ext
13736 fi
13737
13738
13739 CFLAGS="$xorg_testset_save_CFLAGS"
13740
13741 eval supported=\$$cacheid
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13743 $as_echo "$supported" >&6; }
13744 if test "$supported" = "yes" ; then
13745 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13746 found="yes"
13747 fi
13748 fi
13749
13750 if test $found = "no" ; then
13751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13753 fi
13754
13755 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13757 fi
13758
13759 CFLAGS="$CFLAGS -Wformat"
13760
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13762 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
13763 cacheid=xorg_cv_cc_flag__Wformat
13764 if eval \${$cacheid+:} false; then :
13765 $as_echo_n "(cached) " >&6
13766 else
13767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13768 /* end confdefs.h. */
13769 int i;
13770 int
13771 main ()
13772 {
13773
13774 ;
13775 return 0;
13776 }
13777 _ACEOF
13778 if ac_fn_c_try_link "$LINENO"; then :
13779 eval $cacheid=yes
13780 else
13781 eval $cacheid=no
13782 fi
13783 rm -f core conftest.err conftest.$ac_objext \
13784 conftest$ac_exeext conftest.$ac_ext
13785 fi
13786
13787
13788 CFLAGS="$xorg_testset_save_CFLAGS"
13789
13790 eval supported=\$$cacheid
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13792 $as_echo "$supported" >&6; }
13793 if test "$supported" = "yes" ; then
13794 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13795 found="yes"
13796 fi
13797 fi
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815 xorg_testset_save_CFLAGS="$CFLAGS"
13816
13817 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13820 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13821 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13822 $as_echo_n "(cached) " >&6
13823 else
13824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13825 /* end confdefs.h. */
13826 int i;
13827 _ACEOF
13828 if ac_fn_c_try_compile "$LINENO"; then :
13829 xorg_cv_cc_flag_unknown_warning_option=yes
13830 else
13831 xorg_cv_cc_flag_unknown_warning_option=no
13832 fi
13833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13834 fi
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13836 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13837 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13838 CFLAGS="$xorg_testset_save_CFLAGS"
13839 fi
13840
13841 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13844 fi
13845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13847 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13848 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13849 $as_echo_n "(cached) " >&6
13850 else
13851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13852 /* end confdefs.h. */
13853 int i;
13854 _ACEOF
13855 if ac_fn_c_try_compile "$LINENO"; then :
13856 xorg_cv_cc_flag_unused_command_line_argument=yes
13857 else
13858 xorg_cv_cc_flag_unused_command_line_argument=no
13859 fi
13860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13861 fi
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13863 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13864 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13865 CFLAGS="$xorg_testset_save_CFLAGS"
13866 fi
13867
13868 found="no"
13869
13870 if test $found = "no" ; then
13871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13873 fi
13874
13875 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13877 fi
13878
13879 CFLAGS="$CFLAGS -Wstrict-prototypes"
13880
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13882 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
13883 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13884 if eval \${$cacheid+:} false; then :
13885 $as_echo_n "(cached) " >&6
13886 else
13887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13888 /* end confdefs.h. */
13889 int i;
13890 int
13891 main ()
13892 {
13893
13894 ;
13895 return 0;
13896 }
13897 _ACEOF
13898 if ac_fn_c_try_link "$LINENO"; then :
13899 eval $cacheid=yes
13900 else
13901 eval $cacheid=no
13902 fi
13903 rm -f core conftest.err conftest.$ac_objext \
13904 conftest$ac_exeext conftest.$ac_ext
13905 fi
13906
13907
13908 CFLAGS="$xorg_testset_save_CFLAGS"
13909
13910 eval supported=\$$cacheid
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13912 $as_echo "$supported" >&6; }
13913 if test "$supported" = "yes" ; then
13914 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13915 found="yes"
13916 fi
13917 fi
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933 xorg_testset_save_CFLAGS="$CFLAGS"
13934
13935 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13936 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13938 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13939 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13940 $as_echo_n "(cached) " >&6
13941 else
13942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13943 /* end confdefs.h. */
13944 int i;
13945 _ACEOF
13946 if ac_fn_c_try_compile "$LINENO"; then :
13947 xorg_cv_cc_flag_unknown_warning_option=yes
13948 else
13949 xorg_cv_cc_flag_unknown_warning_option=no
13950 fi
13951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13952 fi
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13954 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13955 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13956 CFLAGS="$xorg_testset_save_CFLAGS"
13957 fi
13958
13959 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13962 fi
13963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13965 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13966 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13967 $as_echo_n "(cached) " >&6
13968 else
13969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13970 /* end confdefs.h. */
13971 int i;
13972 _ACEOF
13973 if ac_fn_c_try_compile "$LINENO"; then :
13974 xorg_cv_cc_flag_unused_command_line_argument=yes
13975 else
13976 xorg_cv_cc_flag_unused_command_line_argument=no
13977 fi
13978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13979 fi
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13981 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13982 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13983 CFLAGS="$xorg_testset_save_CFLAGS"
13984 fi
13985
13986 found="no"
13987
13988 if test $found = "no" ; then
13989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13990 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13991 fi
13992
13993 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13995 fi
13996
13997 CFLAGS="$CFLAGS -Wmissing-prototypes"
13998
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
14000 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
14001 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
14002 if eval \${$cacheid+:} false; then :
14003 $as_echo_n "(cached) " >&6
14004 else
14005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14006 /* end confdefs.h. */
14007 int i;
14008 int
14009 main ()
14010 {
14011
14012 ;
14013 return 0;
14014 }
14015 _ACEOF
14016 if ac_fn_c_try_link "$LINENO"; then :
14017 eval $cacheid=yes
14018 else
14019 eval $cacheid=no
14020 fi
14021 rm -f core conftest.err conftest.$ac_objext \
14022 conftest$ac_exeext conftest.$ac_ext
14023 fi
14024
14025
14026 CFLAGS="$xorg_testset_save_CFLAGS"
14027
14028 eval supported=\$$cacheid
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14030 $as_echo "$supported" >&6; }
14031 if test "$supported" = "yes" ; then
14032 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
14033 found="yes"
14034 fi
14035 fi
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051 xorg_testset_save_CFLAGS="$CFLAGS"
14052
14053 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14054 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14056 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14057 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14058 $as_echo_n "(cached) " >&6
14059 else
14060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14061 /* end confdefs.h. */
14062 int i;
14063 _ACEOF
14064 if ac_fn_c_try_compile "$LINENO"; then :
14065 xorg_cv_cc_flag_unknown_warning_option=yes
14066 else
14067 xorg_cv_cc_flag_unknown_warning_option=no
14068 fi
14069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14070 fi
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14072 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14073 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14074 CFLAGS="$xorg_testset_save_CFLAGS"
14075 fi
14076
14077 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14080 fi
14081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14083 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14084 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14085 $as_echo_n "(cached) " >&6
14086 else
14087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14088 /* end confdefs.h. */
14089 int i;
14090 _ACEOF
14091 if ac_fn_c_try_compile "$LINENO"; then :
14092 xorg_cv_cc_flag_unused_command_line_argument=yes
14093 else
14094 xorg_cv_cc_flag_unused_command_line_argument=no
14095 fi
14096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14097 fi
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14099 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14100 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14101 CFLAGS="$xorg_testset_save_CFLAGS"
14102 fi
14103
14104 found="no"
14105
14106 if test $found = "no" ; then
14107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14109 fi
14110
14111 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14113 fi
14114
14115 CFLAGS="$CFLAGS -Wnested-externs"
14116
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14118 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
14119 cacheid=xorg_cv_cc_flag__Wnested_externs
14120 if eval \${$cacheid+:} false; then :
14121 $as_echo_n "(cached) " >&6
14122 else
14123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14124 /* end confdefs.h. */
14125 int i;
14126 int
14127 main ()
14128 {
14129
14130 ;
14131 return 0;
14132 }
14133 _ACEOF
14134 if ac_fn_c_try_link "$LINENO"; then :
14135 eval $cacheid=yes
14136 else
14137 eval $cacheid=no
14138 fi
14139 rm -f core conftest.err conftest.$ac_objext \
14140 conftest$ac_exeext conftest.$ac_ext
14141 fi
14142
14143
14144 CFLAGS="$xorg_testset_save_CFLAGS"
14145
14146 eval supported=\$$cacheid
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14148 $as_echo "$supported" >&6; }
14149 if test "$supported" = "yes" ; then
14150 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
14151 found="yes"
14152 fi
14153 fi
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169 xorg_testset_save_CFLAGS="$CFLAGS"
14170
14171 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14172 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14174 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14175 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14176 $as_echo_n "(cached) " >&6
14177 else
14178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14179 /* end confdefs.h. */
14180 int i;
14181 _ACEOF
14182 if ac_fn_c_try_compile "$LINENO"; then :
14183 xorg_cv_cc_flag_unknown_warning_option=yes
14184 else
14185 xorg_cv_cc_flag_unknown_warning_option=no
14186 fi
14187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14188 fi
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14190 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14191 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14192 CFLAGS="$xorg_testset_save_CFLAGS"
14193 fi
14194
14195 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14198 fi
14199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14201 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14202 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14203 $as_echo_n "(cached) " >&6
14204 else
14205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14206 /* end confdefs.h. */
14207 int i;
14208 _ACEOF
14209 if ac_fn_c_try_compile "$LINENO"; then :
14210 xorg_cv_cc_flag_unused_command_line_argument=yes
14211 else
14212 xorg_cv_cc_flag_unused_command_line_argument=no
14213 fi
14214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14215 fi
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14217 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14218 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14219 CFLAGS="$xorg_testset_save_CFLAGS"
14220 fi
14221
14222 found="no"
14223
14224 if test $found = "no" ; then
14225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14227 fi
14228
14229 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14231 fi
14232
14233 CFLAGS="$CFLAGS -Wbad-function-cast"
14234
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14236 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
14237 cacheid=xorg_cv_cc_flag__Wbad_function_cast
14238 if eval \${$cacheid+:} false; then :
14239 $as_echo_n "(cached) " >&6
14240 else
14241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14242 /* end confdefs.h. */
14243 int i;
14244 int
14245 main ()
14246 {
14247
14248 ;
14249 return 0;
14250 }
14251 _ACEOF
14252 if ac_fn_c_try_link "$LINENO"; then :
14253 eval $cacheid=yes
14254 else
14255 eval $cacheid=no
14256 fi
14257 rm -f core conftest.err conftest.$ac_objext \
14258 conftest$ac_exeext conftest.$ac_ext
14259 fi
14260
14261
14262 CFLAGS="$xorg_testset_save_CFLAGS"
14263
14264 eval supported=\$$cacheid
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14266 $as_echo "$supported" >&6; }
14267 if test "$supported" = "yes" ; then
14268 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14269 found="yes"
14270 fi
14271 fi
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287 xorg_testset_save_CFLAGS="$CFLAGS"
14288
14289 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14290 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14292 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14293 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14294 $as_echo_n "(cached) " >&6
14295 else
14296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14297 /* end confdefs.h. */
14298 int i;
14299 _ACEOF
14300 if ac_fn_c_try_compile "$LINENO"; then :
14301 xorg_cv_cc_flag_unknown_warning_option=yes
14302 else
14303 xorg_cv_cc_flag_unknown_warning_option=no
14304 fi
14305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14306 fi
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14308 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14309 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14310 CFLAGS="$xorg_testset_save_CFLAGS"
14311 fi
14312
14313 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14315 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14316 fi
14317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14319 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14320 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14321 $as_echo_n "(cached) " >&6
14322 else
14323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14324 /* end confdefs.h. */
14325 int i;
14326 _ACEOF
14327 if ac_fn_c_try_compile "$LINENO"; then :
14328 xorg_cv_cc_flag_unused_command_line_argument=yes
14329 else
14330 xorg_cv_cc_flag_unused_command_line_argument=no
14331 fi
14332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14333 fi
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14335 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14336 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14337 CFLAGS="$xorg_testset_save_CFLAGS"
14338 fi
14339
14340 found="no"
14341
14342 if test $found = "no" ; then
14343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14344 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14345 fi
14346
14347 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14349 fi
14350
14351 CFLAGS="$CFLAGS -Wold-style-definition"
14352
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14354 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
14355 cacheid=xorg_cv_cc_flag__Wold_style_definition
14356 if eval \${$cacheid+:} false; then :
14357 $as_echo_n "(cached) " >&6
14358 else
14359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14360 /* end confdefs.h. */
14361 int i;
14362 int
14363 main ()
14364 {
14365
14366 ;
14367 return 0;
14368 }
14369 _ACEOF
14370 if ac_fn_c_try_link "$LINENO"; then :
14371 eval $cacheid=yes
14372 else
14373 eval $cacheid=no
14374 fi
14375 rm -f core conftest.err conftest.$ac_objext \
14376 conftest$ac_exeext conftest.$ac_ext
14377 fi
14378
14379
14380 CFLAGS="$xorg_testset_save_CFLAGS"
14381
14382 eval supported=\$$cacheid
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14384 $as_echo "$supported" >&6; }
14385 if test "$supported" = "yes" ; then
14386 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14387 found="yes"
14388 fi
14389 fi
14390
14391 if test $found = "no" ; then
14392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14394 fi
14395
14396 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14398 fi
14399
14400 CFLAGS="$CFLAGS -fd"
14401
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14403 $as_echo_n "checking if $CC supports -fd... " >&6; }
14404 cacheid=xorg_cv_cc_flag__fd
14405 if eval \${$cacheid+:} false; then :
14406 $as_echo_n "(cached) " >&6
14407 else
14408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14409 /* end confdefs.h. */
14410 int i;
14411 int
14412 main ()
14413 {
14414
14415 ;
14416 return 0;
14417 }
14418 _ACEOF
14419 if ac_fn_c_try_link "$LINENO"; then :
14420 eval $cacheid=yes
14421 else
14422 eval $cacheid=no
14423 fi
14424 rm -f core conftest.err conftest.$ac_objext \
14425 conftest$ac_exeext conftest.$ac_ext
14426 fi
14427
14428
14429 CFLAGS="$xorg_testset_save_CFLAGS"
14430
14431 eval supported=\$$cacheid
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14433 $as_echo "$supported" >&6; }
14434 if test "$supported" = "yes" ; then
14435 BASE_CFLAGS="$BASE_CFLAGS -fd"
14436 found="yes"
14437 fi
14438 fi
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454 xorg_testset_save_CFLAGS="$CFLAGS"
14455
14456 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14457 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14459 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14460 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14461 $as_echo_n "(cached) " >&6
14462 else
14463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14464 /* end confdefs.h. */
14465 int i;
14466 _ACEOF
14467 if ac_fn_c_try_compile "$LINENO"; then :
14468 xorg_cv_cc_flag_unknown_warning_option=yes
14469 else
14470 xorg_cv_cc_flag_unknown_warning_option=no
14471 fi
14472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14473 fi
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14475 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14476 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14477 CFLAGS="$xorg_testset_save_CFLAGS"
14478 fi
14479
14480 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14482 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14483 fi
14484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14486 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14487 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14488 $as_echo_n "(cached) " >&6
14489 else
14490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14491 /* end confdefs.h. */
14492 int i;
14493 _ACEOF
14494 if ac_fn_c_try_compile "$LINENO"; then :
14495 xorg_cv_cc_flag_unused_command_line_argument=yes
14496 else
14497 xorg_cv_cc_flag_unused_command_line_argument=no
14498 fi
14499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14500 fi
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14502 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14503 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14504 CFLAGS="$xorg_testset_save_CFLAGS"
14505 fi
14506
14507 found="no"
14508
14509 if test $found = "no" ; then
14510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14511 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14512 fi
14513
14514 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14516 fi
14517
14518 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14519
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14521 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14522 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14523 if eval \${$cacheid+:} false; then :
14524 $as_echo_n "(cached) " >&6
14525 else
14526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14527 /* end confdefs.h. */
14528 int i;
14529 int
14530 main ()
14531 {
14532
14533 ;
14534 return 0;
14535 }
14536 _ACEOF
14537 if ac_fn_c_try_link "$LINENO"; then :
14538 eval $cacheid=yes
14539 else
14540 eval $cacheid=no
14541 fi
14542 rm -f core conftest.err conftest.$ac_objext \
14543 conftest$ac_exeext conftest.$ac_ext
14544 fi
14545
14546
14547 CFLAGS="$xorg_testset_save_CFLAGS"
14548
14549 eval supported=\$$cacheid
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14551 $as_echo "$supported" >&6; }
14552 if test "$supported" = "yes" ; then
14553 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14554 found="yes"
14555 fi
14556 fi
14557
14558
14559
14560
14561
14562 # This chunk adds additional warnings that could catch undesired effects.
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576 xorg_testset_save_CFLAGS="$CFLAGS"
14577
14578 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14581 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14582 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14583 $as_echo_n "(cached) " >&6
14584 else
14585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14586 /* end confdefs.h. */
14587 int i;
14588 _ACEOF
14589 if ac_fn_c_try_compile "$LINENO"; then :
14590 xorg_cv_cc_flag_unknown_warning_option=yes
14591 else
14592 xorg_cv_cc_flag_unknown_warning_option=no
14593 fi
14594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14595 fi
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14597 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14598 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14599 CFLAGS="$xorg_testset_save_CFLAGS"
14600 fi
14601
14602 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14604 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14605 fi
14606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14608 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14609 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14610 $as_echo_n "(cached) " >&6
14611 else
14612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14613 /* end confdefs.h. */
14614 int i;
14615 _ACEOF
14616 if ac_fn_c_try_compile "$LINENO"; then :
14617 xorg_cv_cc_flag_unused_command_line_argument=yes
14618 else
14619 xorg_cv_cc_flag_unused_command_line_argument=no
14620 fi
14621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14622 fi
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14624 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14625 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14626 CFLAGS="$xorg_testset_save_CFLAGS"
14627 fi
14628
14629 found="no"
14630
14631 if test $found = "no" ; then
14632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14634 fi
14635
14636 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14638 fi
14639
14640 CFLAGS="$CFLAGS -Wunused"
14641
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14643 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
14644 cacheid=xorg_cv_cc_flag__Wunused
14645 if eval \${$cacheid+:} false; then :
14646 $as_echo_n "(cached) " >&6
14647 else
14648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14649 /* end confdefs.h. */
14650 int i;
14651 int
14652 main ()
14653 {
14654
14655 ;
14656 return 0;
14657 }
14658 _ACEOF
14659 if ac_fn_c_try_link "$LINENO"; then :
14660 eval $cacheid=yes
14661 else
14662 eval $cacheid=no
14663 fi
14664 rm -f core conftest.err conftest.$ac_objext \
14665 conftest$ac_exeext conftest.$ac_ext
14666 fi
14667
14668
14669 CFLAGS="$xorg_testset_save_CFLAGS"
14670
14671 eval supported=\$$cacheid
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14673 $as_echo "$supported" >&6; }
14674 if test "$supported" = "yes" ; then
14675 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14676 found="yes"
14677 fi
14678 fi
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694 xorg_testset_save_CFLAGS="$CFLAGS"
14695
14696 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14697 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14699 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14700 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14701 $as_echo_n "(cached) " >&6
14702 else
14703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14704 /* end confdefs.h. */
14705 int i;
14706 _ACEOF
14707 if ac_fn_c_try_compile "$LINENO"; then :
14708 xorg_cv_cc_flag_unknown_warning_option=yes
14709 else
14710 xorg_cv_cc_flag_unknown_warning_option=no
14711 fi
14712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14713 fi
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14715 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14716 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14717 CFLAGS="$xorg_testset_save_CFLAGS"
14718 fi
14719
14720 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14723 fi
14724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14726 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14727 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14728 $as_echo_n "(cached) " >&6
14729 else
14730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14731 /* end confdefs.h. */
14732 int i;
14733 _ACEOF
14734 if ac_fn_c_try_compile "$LINENO"; then :
14735 xorg_cv_cc_flag_unused_command_line_argument=yes
14736 else
14737 xorg_cv_cc_flag_unused_command_line_argument=no
14738 fi
14739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14740 fi
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14742 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14743 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14744 CFLAGS="$xorg_testset_save_CFLAGS"
14745 fi
14746
14747 found="no"
14748
14749 if test $found = "no" ; then
14750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14752 fi
14753
14754 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14756 fi
14757
14758 CFLAGS="$CFLAGS -Wuninitialized"
14759
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14761 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
14762 cacheid=xorg_cv_cc_flag__Wuninitialized
14763 if eval \${$cacheid+:} false; then :
14764 $as_echo_n "(cached) " >&6
14765 else
14766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14767 /* end confdefs.h. */
14768 int i;
14769 int
14770 main ()
14771 {
14772
14773 ;
14774 return 0;
14775 }
14776 _ACEOF
14777 if ac_fn_c_try_link "$LINENO"; then :
14778 eval $cacheid=yes
14779 else
14780 eval $cacheid=no
14781 fi
14782 rm -f core conftest.err conftest.$ac_objext \
14783 conftest$ac_exeext conftest.$ac_ext
14784 fi
14785
14786
14787 CFLAGS="$xorg_testset_save_CFLAGS"
14788
14789 eval supported=\$$cacheid
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14791 $as_echo "$supported" >&6; }
14792 if test "$supported" = "yes" ; then
14793 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14794 found="yes"
14795 fi
14796 fi
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812 xorg_testset_save_CFLAGS="$CFLAGS"
14813
14814 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14817 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14818 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14819 $as_echo_n "(cached) " >&6
14820 else
14821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14822 /* end confdefs.h. */
14823 int i;
14824 _ACEOF
14825 if ac_fn_c_try_compile "$LINENO"; then :
14826 xorg_cv_cc_flag_unknown_warning_option=yes
14827 else
14828 xorg_cv_cc_flag_unknown_warning_option=no
14829 fi
14830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14831 fi
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14833 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14834 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14835 CFLAGS="$xorg_testset_save_CFLAGS"
14836 fi
14837
14838 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14839 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14840 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14841 fi
14842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14844 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14845 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14846 $as_echo_n "(cached) " >&6
14847 else
14848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14849 /* end confdefs.h. */
14850 int i;
14851 _ACEOF
14852 if ac_fn_c_try_compile "$LINENO"; then :
14853 xorg_cv_cc_flag_unused_command_line_argument=yes
14854 else
14855 xorg_cv_cc_flag_unused_command_line_argument=no
14856 fi
14857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14858 fi
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14860 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14861 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14862 CFLAGS="$xorg_testset_save_CFLAGS"
14863 fi
14864
14865 found="no"
14866
14867 if test $found = "no" ; then
14868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14869 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14870 fi
14871
14872 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14874 fi
14875
14876 CFLAGS="$CFLAGS -Wshadow"
14877
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14879 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
14880 cacheid=xorg_cv_cc_flag__Wshadow
14881 if eval \${$cacheid+:} false; then :
14882 $as_echo_n "(cached) " >&6
14883 else
14884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14885 /* end confdefs.h. */
14886 int i;
14887 int
14888 main ()
14889 {
14890
14891 ;
14892 return 0;
14893 }
14894 _ACEOF
14895 if ac_fn_c_try_link "$LINENO"; then :
14896 eval $cacheid=yes
14897 else
14898 eval $cacheid=no
14899 fi
14900 rm -f core conftest.err conftest.$ac_objext \
14901 conftest$ac_exeext conftest.$ac_ext
14902 fi
14903
14904
14905 CFLAGS="$xorg_testset_save_CFLAGS"
14906
14907 eval supported=\$$cacheid
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14909 $as_echo "$supported" >&6; }
14910 if test "$supported" = "yes" ; then
14911 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14912 found="yes"
14913 fi
14914 fi
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930 xorg_testset_save_CFLAGS="$CFLAGS"
14931
14932 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14935 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14936 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14937 $as_echo_n "(cached) " >&6
14938 else
14939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14940 /* end confdefs.h. */
14941 int i;
14942 _ACEOF
14943 if ac_fn_c_try_compile "$LINENO"; then :
14944 xorg_cv_cc_flag_unknown_warning_option=yes
14945 else
14946 xorg_cv_cc_flag_unknown_warning_option=no
14947 fi
14948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14949 fi
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14951 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14952 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14953 CFLAGS="$xorg_testset_save_CFLAGS"
14954 fi
14955
14956 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14959 fi
14960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14962 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14963 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14964 $as_echo_n "(cached) " >&6
14965 else
14966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14967 /* end confdefs.h. */
14968 int i;
14969 _ACEOF
14970 if ac_fn_c_try_compile "$LINENO"; then :
14971 xorg_cv_cc_flag_unused_command_line_argument=yes
14972 else
14973 xorg_cv_cc_flag_unused_command_line_argument=no
14974 fi
14975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14976 fi
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14978 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14979 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14980 CFLAGS="$xorg_testset_save_CFLAGS"
14981 fi
14982
14983 found="no"
14984
14985 if test $found = "no" ; then
14986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14988 fi
14989
14990 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14992 fi
14993
14994 CFLAGS="$CFLAGS -Wmissing-noreturn"
14995
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14997 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14998 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14999 if eval \${$cacheid+:} false; then :
15000 $as_echo_n "(cached) " >&6
15001 else
15002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15003 /* end confdefs.h. */
15004 int i;
15005 int
15006 main ()
15007 {
15008
15009 ;
15010 return 0;
15011 }
15012 _ACEOF
15013 if ac_fn_c_try_link "$LINENO"; then :
15014 eval $cacheid=yes
15015 else
15016 eval $cacheid=no
15017 fi
15018 rm -f core conftest.err conftest.$ac_objext \
15019 conftest$ac_exeext conftest.$ac_ext
15020 fi
15021
15022
15023 CFLAGS="$xorg_testset_save_CFLAGS"
15024
15025 eval supported=\$$cacheid
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15027 $as_echo "$supported" >&6; }
15028 if test "$supported" = "yes" ; then
15029 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
15030 found="yes"
15031 fi
15032 fi
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048 xorg_testset_save_CFLAGS="$CFLAGS"
15049
15050 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15053 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15054 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15055 $as_echo_n "(cached) " >&6
15056 else
15057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15058 /* end confdefs.h. */
15059 int i;
15060 _ACEOF
15061 if ac_fn_c_try_compile "$LINENO"; then :
15062 xorg_cv_cc_flag_unknown_warning_option=yes
15063 else
15064 xorg_cv_cc_flag_unknown_warning_option=no
15065 fi
15066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15067 fi
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15069 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15070 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15071 CFLAGS="$xorg_testset_save_CFLAGS"
15072 fi
15073
15074 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15077 fi
15078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15080 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15081 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15082 $as_echo_n "(cached) " >&6
15083 else
15084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15085 /* end confdefs.h. */
15086 int i;
15087 _ACEOF
15088 if ac_fn_c_try_compile "$LINENO"; then :
15089 xorg_cv_cc_flag_unused_command_line_argument=yes
15090 else
15091 xorg_cv_cc_flag_unused_command_line_argument=no
15092 fi
15093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15094 fi
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15096 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15097 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15098 CFLAGS="$xorg_testset_save_CFLAGS"
15099 fi
15100
15101 found="no"
15102
15103 if test $found = "no" ; then
15104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15106 fi
15107
15108 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15110 fi
15111
15112 CFLAGS="$CFLAGS -Wmissing-format-attribute"
15113
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15115 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15116 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15117 if eval \${$cacheid+:} false; then :
15118 $as_echo_n "(cached) " >&6
15119 else
15120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15121 /* end confdefs.h. */
15122 int i;
15123 int
15124 main ()
15125 {
15126
15127 ;
15128 return 0;
15129 }
15130 _ACEOF
15131 if ac_fn_c_try_link "$LINENO"; then :
15132 eval $cacheid=yes
15133 else
15134 eval $cacheid=no
15135 fi
15136 rm -f core conftest.err conftest.$ac_objext \
15137 conftest$ac_exeext conftest.$ac_ext
15138 fi
15139
15140
15141 CFLAGS="$xorg_testset_save_CFLAGS"
15142
15143 eval supported=\$$cacheid
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15145 $as_echo "$supported" >&6; }
15146 if test "$supported" = "yes" ; then
15147 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15148 found="yes"
15149 fi
15150 fi
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166 xorg_testset_save_CFLAGS="$CFLAGS"
15167
15168 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15171 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15172 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15173 $as_echo_n "(cached) " >&6
15174 else
15175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15176 /* end confdefs.h. */
15177 int i;
15178 _ACEOF
15179 if ac_fn_c_try_compile "$LINENO"; then :
15180 xorg_cv_cc_flag_unknown_warning_option=yes
15181 else
15182 xorg_cv_cc_flag_unknown_warning_option=no
15183 fi
15184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15185 fi
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15187 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15188 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15189 CFLAGS="$xorg_testset_save_CFLAGS"
15190 fi
15191
15192 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15194 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15195 fi
15196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15198 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15199 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15200 $as_echo_n "(cached) " >&6
15201 else
15202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15203 /* end confdefs.h. */
15204 int i;
15205 _ACEOF
15206 if ac_fn_c_try_compile "$LINENO"; then :
15207 xorg_cv_cc_flag_unused_command_line_argument=yes
15208 else
15209 xorg_cv_cc_flag_unused_command_line_argument=no
15210 fi
15211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15212 fi
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15214 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15215 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15216 CFLAGS="$xorg_testset_save_CFLAGS"
15217 fi
15218
15219 found="no"
15220
15221 if test $found = "no" ; then
15222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15224 fi
15225
15226 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15228 fi
15229
15230 CFLAGS="$CFLAGS -Wredundant-decls"
15231
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15233 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
15234 cacheid=xorg_cv_cc_flag__Wredundant_decls
15235 if eval \${$cacheid+:} false; then :
15236 $as_echo_n "(cached) " >&6
15237 else
15238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15239 /* end confdefs.h. */
15240 int i;
15241 int
15242 main ()
15243 {
15244
15245 ;
15246 return 0;
15247 }
15248 _ACEOF
15249 if ac_fn_c_try_link "$LINENO"; then :
15250 eval $cacheid=yes
15251 else
15252 eval $cacheid=no
15253 fi
15254 rm -f core conftest.err conftest.$ac_objext \
15255 conftest$ac_exeext conftest.$ac_ext
15256 fi
15257
15258
15259 CFLAGS="$xorg_testset_save_CFLAGS"
15260
15261 eval supported=\$$cacheid
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15263 $as_echo "$supported" >&6; }
15264 if test "$supported" = "yes" ; then
15265 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15266 found="yes"
15267 fi
15268 fi
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284 xorg_testset_save_CFLAGS="$CFLAGS"
15285
15286 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15289 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15290 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15291 $as_echo_n "(cached) " >&6
15292 else
15293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15294 /* end confdefs.h. */
15295 int i;
15296 _ACEOF
15297 if ac_fn_c_try_compile "$LINENO"; then :
15298 xorg_cv_cc_flag_unknown_warning_option=yes
15299 else
15300 xorg_cv_cc_flag_unknown_warning_option=no
15301 fi
15302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15303 fi
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15305 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15306 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15307 CFLAGS="$xorg_testset_save_CFLAGS"
15308 fi
15309
15310 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15313 fi
15314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15316 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15317 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15318 $as_echo_n "(cached) " >&6
15319 else
15320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15321 /* end confdefs.h. */
15322 int i;
15323 _ACEOF
15324 if ac_fn_c_try_compile "$LINENO"; then :
15325 xorg_cv_cc_flag_unused_command_line_argument=yes
15326 else
15327 xorg_cv_cc_flag_unused_command_line_argument=no
15328 fi
15329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15330 fi
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15332 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15333 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15334 CFLAGS="$xorg_testset_save_CFLAGS"
15335 fi
15336
15337 found="no"
15338
15339 if test $found = "no" ; then
15340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15342 fi
15343
15344 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15346 fi
15347
15348 CFLAGS="$CFLAGS -Wlogical-op"
15349
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15351 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
15352 cacheid=xorg_cv_cc_flag__Wlogical_op
15353 if eval \${$cacheid+:} false; then :
15354 $as_echo_n "(cached) " >&6
15355 else
15356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15357 /* end confdefs.h. */
15358 int i;
15359 int
15360 main ()
15361 {
15362
15363 ;
15364 return 0;
15365 }
15366 _ACEOF
15367 if ac_fn_c_try_link "$LINENO"; then :
15368 eval $cacheid=yes
15369 else
15370 eval $cacheid=no
15371 fi
15372 rm -f core conftest.err conftest.$ac_objext \
15373 conftest$ac_exeext conftest.$ac_ext
15374 fi
15375
15376
15377 CFLAGS="$xorg_testset_save_CFLAGS"
15378
15379 eval supported=\$$cacheid
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15381 $as_echo "$supported" >&6; }
15382 if test "$supported" = "yes" ; then
15383 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15384 found="yes"
15385 fi
15386 fi
15387
15388
15389
15390 # These are currently disabled because they are noisy. They will be enabled
15391 # in the future once the codebase is sufficiently modernized to silence
15392 # them. For now, I don't want them to drown out the other warnings.
15393 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15394 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15395 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15396
15397 # Turn some warnings into errors, so we don't accidently get successful builds
15398 # when there are problems that should be fixed.
15399
15400 if test "x$SELECTIVE_WERROR" = "xyes" ; then
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414 xorg_testset_save_CFLAGS="$CFLAGS"
15415
15416 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15417 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15419 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15420 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15421 $as_echo_n "(cached) " >&6
15422 else
15423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15424 /* end confdefs.h. */
15425 int i;
15426 _ACEOF
15427 if ac_fn_c_try_compile "$LINENO"; then :
15428 xorg_cv_cc_flag_unknown_warning_option=yes
15429 else
15430 xorg_cv_cc_flag_unknown_warning_option=no
15431 fi
15432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15433 fi
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15435 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15436 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15437 CFLAGS="$xorg_testset_save_CFLAGS"
15438 fi
15439
15440 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15442 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15443 fi
15444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15446 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15447 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15448 $as_echo_n "(cached) " >&6
15449 else
15450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15451 /* end confdefs.h. */
15452 int i;
15453 _ACEOF
15454 if ac_fn_c_try_compile "$LINENO"; then :
15455 xorg_cv_cc_flag_unused_command_line_argument=yes
15456 else
15457 xorg_cv_cc_flag_unused_command_line_argument=no
15458 fi
15459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15460 fi
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15462 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15463 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15464 CFLAGS="$xorg_testset_save_CFLAGS"
15465 fi
15466
15467 found="no"
15468
15469 if test $found = "no" ; then
15470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15471 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15472 fi
15473
15474 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15476 fi
15477
15478 CFLAGS="$CFLAGS -Werror=implicit"
15479
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15481 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
15482 cacheid=xorg_cv_cc_flag__Werror_implicit
15483 if eval \${$cacheid+:} false; then :
15484 $as_echo_n "(cached) " >&6
15485 else
15486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15487 /* end confdefs.h. */
15488 int i;
15489 int
15490 main ()
15491 {
15492
15493 ;
15494 return 0;
15495 }
15496 _ACEOF
15497 if ac_fn_c_try_link "$LINENO"; then :
15498 eval $cacheid=yes
15499 else
15500 eval $cacheid=no
15501 fi
15502 rm -f core conftest.err conftest.$ac_objext \
15503 conftest$ac_exeext conftest.$ac_ext
15504 fi
15505
15506
15507 CFLAGS="$xorg_testset_save_CFLAGS"
15508
15509 eval supported=\$$cacheid
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15511 $as_echo "$supported" >&6; }
15512 if test "$supported" = "yes" ; then
15513 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15514 found="yes"
15515 fi
15516 fi
15517
15518 if test $found = "no" ; then
15519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15521 fi
15522
15523 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15525 fi
15526
15527 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15528
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
15530 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15531 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15532 if eval \${$cacheid+:} false; then :
15533 $as_echo_n "(cached) " >&6
15534 else
15535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15536 /* end confdefs.h. */
15537 int i;
15538 int
15539 main ()
15540 {
15541
15542 ;
15543 return 0;
15544 }
15545 _ACEOF
15546 if ac_fn_c_try_link "$LINENO"; then :
15547 eval $cacheid=yes
15548 else
15549 eval $cacheid=no
15550 fi
15551 rm -f core conftest.err conftest.$ac_objext \
15552 conftest$ac_exeext conftest.$ac_ext
15553 fi
15554
15555
15556 CFLAGS="$xorg_testset_save_CFLAGS"
15557
15558 eval supported=\$$cacheid
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15560 $as_echo "$supported" >&6; }
15561 if test "$supported" = "yes" ; then
15562 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15563 found="yes"
15564 fi
15565 fi
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581 xorg_testset_save_CFLAGS="$CFLAGS"
15582
15583 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15584 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15586 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15587 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15588 $as_echo_n "(cached) " >&6
15589 else
15590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15591 /* end confdefs.h. */
15592 int i;
15593 _ACEOF
15594 if ac_fn_c_try_compile "$LINENO"; then :
15595 xorg_cv_cc_flag_unknown_warning_option=yes
15596 else
15597 xorg_cv_cc_flag_unknown_warning_option=no
15598 fi
15599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15600 fi
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15602 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15603 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15604 CFLAGS="$xorg_testset_save_CFLAGS"
15605 fi
15606
15607 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15610 fi
15611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15613 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15614 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15615 $as_echo_n "(cached) " >&6
15616 else
15617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15618 /* end confdefs.h. */
15619 int i;
15620 _ACEOF
15621 if ac_fn_c_try_compile "$LINENO"; then :
15622 xorg_cv_cc_flag_unused_command_line_argument=yes
15623 else
15624 xorg_cv_cc_flag_unused_command_line_argument=no
15625 fi
15626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15627 fi
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15629 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15630 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15631 CFLAGS="$xorg_testset_save_CFLAGS"
15632 fi
15633
15634 found="no"
15635
15636 if test $found = "no" ; then
15637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15639 fi
15640
15641 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15643 fi
15644
15645 CFLAGS="$CFLAGS -Werror=nonnull"
15646
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15648 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
15649 cacheid=xorg_cv_cc_flag__Werror_nonnull
15650 if eval \${$cacheid+:} false; then :
15651 $as_echo_n "(cached) " >&6
15652 else
15653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15654 /* end confdefs.h. */
15655 int i;
15656 int
15657 main ()
15658 {
15659
15660 ;
15661 return 0;
15662 }
15663 _ACEOF
15664 if ac_fn_c_try_link "$LINENO"; then :
15665 eval $cacheid=yes
15666 else
15667 eval $cacheid=no
15668 fi
15669 rm -f core conftest.err conftest.$ac_objext \
15670 conftest$ac_exeext conftest.$ac_ext
15671 fi
15672
15673
15674 CFLAGS="$xorg_testset_save_CFLAGS"
15675
15676 eval supported=\$$cacheid
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15678 $as_echo "$supported" >&6; }
15679 if test "$supported" = "yes" ; then
15680 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15681 found="yes"
15682 fi
15683 fi
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699 xorg_testset_save_CFLAGS="$CFLAGS"
15700
15701 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15704 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15705 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15706 $as_echo_n "(cached) " >&6
15707 else
15708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15709 /* end confdefs.h. */
15710 int i;
15711 _ACEOF
15712 if ac_fn_c_try_compile "$LINENO"; then :
15713 xorg_cv_cc_flag_unknown_warning_option=yes
15714 else
15715 xorg_cv_cc_flag_unknown_warning_option=no
15716 fi
15717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15718 fi
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15720 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15721 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15722 CFLAGS="$xorg_testset_save_CFLAGS"
15723 fi
15724
15725 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15728 fi
15729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15731 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15732 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15733 $as_echo_n "(cached) " >&6
15734 else
15735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15736 /* end confdefs.h. */
15737 int i;
15738 _ACEOF
15739 if ac_fn_c_try_compile "$LINENO"; then :
15740 xorg_cv_cc_flag_unused_command_line_argument=yes
15741 else
15742 xorg_cv_cc_flag_unused_command_line_argument=no
15743 fi
15744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15745 fi
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15747 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15748 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15749 CFLAGS="$xorg_testset_save_CFLAGS"
15750 fi
15751
15752 found="no"
15753
15754 if test $found = "no" ; then
15755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15757 fi
15758
15759 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15761 fi
15762
15763 CFLAGS="$CFLAGS -Werror=init-self"
15764
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15766 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
15767 cacheid=xorg_cv_cc_flag__Werror_init_self
15768 if eval \${$cacheid+:} false; then :
15769 $as_echo_n "(cached) " >&6
15770 else
15771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15772 /* end confdefs.h. */
15773 int i;
15774 int
15775 main ()
15776 {
15777
15778 ;
15779 return 0;
15780 }
15781 _ACEOF
15782 if ac_fn_c_try_link "$LINENO"; then :
15783 eval $cacheid=yes
15784 else
15785 eval $cacheid=no
15786 fi
15787 rm -f core conftest.err conftest.$ac_objext \
15788 conftest$ac_exeext conftest.$ac_ext
15789 fi
15790
15791
15792 CFLAGS="$xorg_testset_save_CFLAGS"
15793
15794 eval supported=\$$cacheid
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15796 $as_echo "$supported" >&6; }
15797 if test "$supported" = "yes" ; then
15798 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15799 found="yes"
15800 fi
15801 fi
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817 xorg_testset_save_CFLAGS="$CFLAGS"
15818
15819 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15822 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15823 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15824 $as_echo_n "(cached) " >&6
15825 else
15826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15827 /* end confdefs.h. */
15828 int i;
15829 _ACEOF
15830 if ac_fn_c_try_compile "$LINENO"; then :
15831 xorg_cv_cc_flag_unknown_warning_option=yes
15832 else
15833 xorg_cv_cc_flag_unknown_warning_option=no
15834 fi
15835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15836 fi
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15838 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15839 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15840 CFLAGS="$xorg_testset_save_CFLAGS"
15841 fi
15842
15843 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15846 fi
15847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15849 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15850 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15851 $as_echo_n "(cached) " >&6
15852 else
15853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15854 /* end confdefs.h. */
15855 int i;
15856 _ACEOF
15857 if ac_fn_c_try_compile "$LINENO"; then :
15858 xorg_cv_cc_flag_unused_command_line_argument=yes
15859 else
15860 xorg_cv_cc_flag_unused_command_line_argument=no
15861 fi
15862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15863 fi
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15865 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15866 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15867 CFLAGS="$xorg_testset_save_CFLAGS"
15868 fi
15869
15870 found="no"
15871
15872 if test $found = "no" ; then
15873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15875 fi
15876
15877 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15879 fi
15880
15881 CFLAGS="$CFLAGS -Werror=main"
15882
15883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15884 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
15885 cacheid=xorg_cv_cc_flag__Werror_main
15886 if eval \${$cacheid+:} false; then :
15887 $as_echo_n "(cached) " >&6
15888 else
15889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15890 /* end confdefs.h. */
15891 int i;
15892 int
15893 main ()
15894 {
15895
15896 ;
15897 return 0;
15898 }
15899 _ACEOF
15900 if ac_fn_c_try_link "$LINENO"; then :
15901 eval $cacheid=yes
15902 else
15903 eval $cacheid=no
15904 fi
15905 rm -f core conftest.err conftest.$ac_objext \
15906 conftest$ac_exeext conftest.$ac_ext
15907 fi
15908
15909
15910 CFLAGS="$xorg_testset_save_CFLAGS"
15911
15912 eval supported=\$$cacheid
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15914 $as_echo "$supported" >&6; }
15915 if test "$supported" = "yes" ; then
15916 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15917 found="yes"
15918 fi
15919 fi
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935 xorg_testset_save_CFLAGS="$CFLAGS"
15936
15937 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15940 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15941 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15942 $as_echo_n "(cached) " >&6
15943 else
15944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15945 /* end confdefs.h. */
15946 int i;
15947 _ACEOF
15948 if ac_fn_c_try_compile "$LINENO"; then :
15949 xorg_cv_cc_flag_unknown_warning_option=yes
15950 else
15951 xorg_cv_cc_flag_unknown_warning_option=no
15952 fi
15953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15954 fi
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15956 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15957 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15958 CFLAGS="$xorg_testset_save_CFLAGS"
15959 fi
15960
15961 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15964 fi
15965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15967 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15968 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15969 $as_echo_n "(cached) " >&6
15970 else
15971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15972 /* end confdefs.h. */
15973 int i;
15974 _ACEOF
15975 if ac_fn_c_try_compile "$LINENO"; then :
15976 xorg_cv_cc_flag_unused_command_line_argument=yes
15977 else
15978 xorg_cv_cc_flag_unused_command_line_argument=no
15979 fi
15980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15981 fi
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15983 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15984 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15985 CFLAGS="$xorg_testset_save_CFLAGS"
15986 fi
15987
15988 found="no"
15989
15990 if test $found = "no" ; then
15991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15993 fi
15994
15995 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15997 fi
15998
15999 CFLAGS="$CFLAGS -Werror=missing-braces"
16000
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
16002 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
16003 cacheid=xorg_cv_cc_flag__Werror_missing_braces
16004 if eval \${$cacheid+:} false; then :
16005 $as_echo_n "(cached) " >&6
16006 else
16007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16008 /* end confdefs.h. */
16009 int i;
16010 int
16011 main ()
16012 {
16013
16014 ;
16015 return 0;
16016 }
16017 _ACEOF
16018 if ac_fn_c_try_link "$LINENO"; then :
16019 eval $cacheid=yes
16020 else
16021 eval $cacheid=no
16022 fi
16023 rm -f core conftest.err conftest.$ac_objext \
16024 conftest$ac_exeext conftest.$ac_ext
16025 fi
16026
16027
16028 CFLAGS="$xorg_testset_save_CFLAGS"
16029
16030 eval supported=\$$cacheid
16031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16032 $as_echo "$supported" >&6; }
16033 if test "$supported" = "yes" ; then
16034 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16035 found="yes"
16036 fi
16037 fi
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053 xorg_testset_save_CFLAGS="$CFLAGS"
16054
16055 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16058 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16059 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16060 $as_echo_n "(cached) " >&6
16061 else
16062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16063 /* end confdefs.h. */
16064 int i;
16065 _ACEOF
16066 if ac_fn_c_try_compile "$LINENO"; then :
16067 xorg_cv_cc_flag_unknown_warning_option=yes
16068 else
16069 xorg_cv_cc_flag_unknown_warning_option=no
16070 fi
16071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16072 fi
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16074 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16075 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16076 CFLAGS="$xorg_testset_save_CFLAGS"
16077 fi
16078
16079 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16082 fi
16083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16085 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16086 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16087 $as_echo_n "(cached) " >&6
16088 else
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"; then :
16094 xorg_cv_cc_flag_unused_command_line_argument=yes
16095 else
16096 xorg_cv_cc_flag_unused_command_line_argument=no
16097 fi
16098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16099 fi
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16101 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16102 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16103 CFLAGS="$xorg_testset_save_CFLAGS"
16104 fi
16105
16106 found="no"
16107
16108 if test $found = "no" ; then
16109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16111 fi
16112
16113 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16115 fi
16116
16117 CFLAGS="$CFLAGS -Werror=sequence-point"
16118
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16120 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
16121 cacheid=xorg_cv_cc_flag__Werror_sequence_point
16122 if eval \${$cacheid+:} false; then :
16123 $as_echo_n "(cached) " >&6
16124 else
16125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16126 /* end confdefs.h. */
16127 int i;
16128 int
16129 main ()
16130 {
16131
16132 ;
16133 return 0;
16134 }
16135 _ACEOF
16136 if ac_fn_c_try_link "$LINENO"; then :
16137 eval $cacheid=yes
16138 else
16139 eval $cacheid=no
16140 fi
16141 rm -f core conftest.err conftest.$ac_objext \
16142 conftest$ac_exeext conftest.$ac_ext
16143 fi
16144
16145
16146 CFLAGS="$xorg_testset_save_CFLAGS"
16147
16148 eval supported=\$$cacheid
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16150 $as_echo "$supported" >&6; }
16151 if test "$supported" = "yes" ; then
16152 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16153 found="yes"
16154 fi
16155 fi
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171 xorg_testset_save_CFLAGS="$CFLAGS"
16172
16173 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16176 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16177 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16178 $as_echo_n "(cached) " >&6
16179 else
16180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16181 /* end confdefs.h. */
16182 int i;
16183 _ACEOF
16184 if ac_fn_c_try_compile "$LINENO"; then :
16185 xorg_cv_cc_flag_unknown_warning_option=yes
16186 else
16187 xorg_cv_cc_flag_unknown_warning_option=no
16188 fi
16189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16190 fi
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16192 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16193 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16194 CFLAGS="$xorg_testset_save_CFLAGS"
16195 fi
16196
16197 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16200 fi
16201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16203 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16204 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16205 $as_echo_n "(cached) " >&6
16206 else
16207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16208 /* end confdefs.h. */
16209 int i;
16210 _ACEOF
16211 if ac_fn_c_try_compile "$LINENO"; then :
16212 xorg_cv_cc_flag_unused_command_line_argument=yes
16213 else
16214 xorg_cv_cc_flag_unused_command_line_argument=no
16215 fi
16216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16217 fi
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16219 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16220 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16221 CFLAGS="$xorg_testset_save_CFLAGS"
16222 fi
16223
16224 found="no"
16225
16226 if test $found = "no" ; then
16227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16229 fi
16230
16231 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16233 fi
16234
16235 CFLAGS="$CFLAGS -Werror=return-type"
16236
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16238 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
16239 cacheid=xorg_cv_cc_flag__Werror_return_type
16240 if eval \${$cacheid+:} false; then :
16241 $as_echo_n "(cached) " >&6
16242 else
16243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16244 /* end confdefs.h. */
16245 int i;
16246 int
16247 main ()
16248 {
16249
16250 ;
16251 return 0;
16252 }
16253 _ACEOF
16254 if ac_fn_c_try_link "$LINENO"; then :
16255 eval $cacheid=yes
16256 else
16257 eval $cacheid=no
16258 fi
16259 rm -f core conftest.err conftest.$ac_objext \
16260 conftest$ac_exeext conftest.$ac_ext
16261 fi
16262
16263
16264 CFLAGS="$xorg_testset_save_CFLAGS"
16265
16266 eval supported=\$$cacheid
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16268 $as_echo "$supported" >&6; }
16269 if test "$supported" = "yes" ; then
16270 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16271 found="yes"
16272 fi
16273 fi
16274
16275 if test $found = "no" ; then
16276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16277 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16278 fi
16279
16280 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16282 fi
16283
16284 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16285
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16287 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16288 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16289 if eval \${$cacheid+:} false; then :
16290 $as_echo_n "(cached) " >&6
16291 else
16292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16293 /* end confdefs.h. */
16294 int i;
16295 int
16296 main ()
16297 {
16298
16299 ;
16300 return 0;
16301 }
16302 _ACEOF
16303 if ac_fn_c_try_link "$LINENO"; then :
16304 eval $cacheid=yes
16305 else
16306 eval $cacheid=no
16307 fi
16308 rm -f core conftest.err conftest.$ac_objext \
16309 conftest$ac_exeext conftest.$ac_ext
16310 fi
16311
16312
16313 CFLAGS="$xorg_testset_save_CFLAGS"
16314
16315 eval supported=\$$cacheid
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16317 $as_echo "$supported" >&6; }
16318 if test "$supported" = "yes" ; then
16319 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16320 found="yes"
16321 fi
16322 fi
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338 xorg_testset_save_CFLAGS="$CFLAGS"
16339
16340 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16343 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16344 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16345 $as_echo_n "(cached) " >&6
16346 else
16347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16348 /* end confdefs.h. */
16349 int i;
16350 _ACEOF
16351 if ac_fn_c_try_compile "$LINENO"; then :
16352 xorg_cv_cc_flag_unknown_warning_option=yes
16353 else
16354 xorg_cv_cc_flag_unknown_warning_option=no
16355 fi
16356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16357 fi
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16359 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16360 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16361 CFLAGS="$xorg_testset_save_CFLAGS"
16362 fi
16363
16364 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16366 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16367 fi
16368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16370 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16371 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16372 $as_echo_n "(cached) " >&6
16373 else
16374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16375 /* end confdefs.h. */
16376 int i;
16377 _ACEOF
16378 if ac_fn_c_try_compile "$LINENO"; then :
16379 xorg_cv_cc_flag_unused_command_line_argument=yes
16380 else
16381 xorg_cv_cc_flag_unused_command_line_argument=no
16382 fi
16383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16384 fi
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16386 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16387 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16388 CFLAGS="$xorg_testset_save_CFLAGS"
16389 fi
16390
16391 found="no"
16392
16393 if test $found = "no" ; then
16394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16395 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16396 fi
16397
16398 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16400 fi
16401
16402 CFLAGS="$CFLAGS -Werror=trigraphs"
16403
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16405 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
16406 cacheid=xorg_cv_cc_flag__Werror_trigraphs
16407 if eval \${$cacheid+:} false; then :
16408 $as_echo_n "(cached) " >&6
16409 else
16410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16411 /* end confdefs.h. */
16412 int i;
16413 int
16414 main ()
16415 {
16416
16417 ;
16418 return 0;
16419 }
16420 _ACEOF
16421 if ac_fn_c_try_link "$LINENO"; then :
16422 eval $cacheid=yes
16423 else
16424 eval $cacheid=no
16425 fi
16426 rm -f core conftest.err conftest.$ac_objext \
16427 conftest$ac_exeext conftest.$ac_ext
16428 fi
16429
16430
16431 CFLAGS="$xorg_testset_save_CFLAGS"
16432
16433 eval supported=\$$cacheid
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16435 $as_echo "$supported" >&6; }
16436 if test "$supported" = "yes" ; then
16437 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16438 found="yes"
16439 fi
16440 fi
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456 xorg_testset_save_CFLAGS="$CFLAGS"
16457
16458 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16459 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16461 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16462 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16463 $as_echo_n "(cached) " >&6
16464 else
16465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16466 /* end confdefs.h. */
16467 int i;
16468 _ACEOF
16469 if ac_fn_c_try_compile "$LINENO"; then :
16470 xorg_cv_cc_flag_unknown_warning_option=yes
16471 else
16472 xorg_cv_cc_flag_unknown_warning_option=no
16473 fi
16474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16475 fi
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16477 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16478 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16479 CFLAGS="$xorg_testset_save_CFLAGS"
16480 fi
16481
16482 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16484 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16485 fi
16486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16488 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16489 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16490 $as_echo_n "(cached) " >&6
16491 else
16492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16493 /* end confdefs.h. */
16494 int i;
16495 _ACEOF
16496 if ac_fn_c_try_compile "$LINENO"; then :
16497 xorg_cv_cc_flag_unused_command_line_argument=yes
16498 else
16499 xorg_cv_cc_flag_unused_command_line_argument=no
16500 fi
16501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16502 fi
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16504 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16505 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16506 CFLAGS="$xorg_testset_save_CFLAGS"
16507 fi
16508
16509 found="no"
16510
16511 if test $found = "no" ; then
16512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16514 fi
16515
16516 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16518 fi
16519
16520 CFLAGS="$CFLAGS -Werror=array-bounds"
16521
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16523 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
16524 cacheid=xorg_cv_cc_flag__Werror_array_bounds
16525 if eval \${$cacheid+:} false; then :
16526 $as_echo_n "(cached) " >&6
16527 else
16528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16529 /* end confdefs.h. */
16530 int i;
16531 int
16532 main ()
16533 {
16534
16535 ;
16536 return 0;
16537 }
16538 _ACEOF
16539 if ac_fn_c_try_link "$LINENO"; then :
16540 eval $cacheid=yes
16541 else
16542 eval $cacheid=no
16543 fi
16544 rm -f core conftest.err conftest.$ac_objext \
16545 conftest$ac_exeext conftest.$ac_ext
16546 fi
16547
16548
16549 CFLAGS="$xorg_testset_save_CFLAGS"
16550
16551 eval supported=\$$cacheid
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16553 $as_echo "$supported" >&6; }
16554 if test "$supported" = "yes" ; then
16555 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16556 found="yes"
16557 fi
16558 fi
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574 xorg_testset_save_CFLAGS="$CFLAGS"
16575
16576 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16577 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16579 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16580 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16581 $as_echo_n "(cached) " >&6
16582 else
16583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16584 /* end confdefs.h. */
16585 int i;
16586 _ACEOF
16587 if ac_fn_c_try_compile "$LINENO"; then :
16588 xorg_cv_cc_flag_unknown_warning_option=yes
16589 else
16590 xorg_cv_cc_flag_unknown_warning_option=no
16591 fi
16592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16593 fi
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16595 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16596 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16597 CFLAGS="$xorg_testset_save_CFLAGS"
16598 fi
16599
16600 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16603 fi
16604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16606 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16607 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16608 $as_echo_n "(cached) " >&6
16609 else
16610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16611 /* end confdefs.h. */
16612 int i;
16613 _ACEOF
16614 if ac_fn_c_try_compile "$LINENO"; then :
16615 xorg_cv_cc_flag_unused_command_line_argument=yes
16616 else
16617 xorg_cv_cc_flag_unused_command_line_argument=no
16618 fi
16619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16620 fi
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16622 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16623 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16624 CFLAGS="$xorg_testset_save_CFLAGS"
16625 fi
16626
16627 found="no"
16628
16629 if test $found = "no" ; then
16630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16631 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16632 fi
16633
16634 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16636 fi
16637
16638 CFLAGS="$CFLAGS -Werror=write-strings"
16639
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16641 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
16642 cacheid=xorg_cv_cc_flag__Werror_write_strings
16643 if eval \${$cacheid+:} false; then :
16644 $as_echo_n "(cached) " >&6
16645 else
16646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16647 /* end confdefs.h. */
16648 int i;
16649 int
16650 main ()
16651 {
16652
16653 ;
16654 return 0;
16655 }
16656 _ACEOF
16657 if ac_fn_c_try_link "$LINENO"; then :
16658 eval $cacheid=yes
16659 else
16660 eval $cacheid=no
16661 fi
16662 rm -f core conftest.err conftest.$ac_objext \
16663 conftest$ac_exeext conftest.$ac_ext
16664 fi
16665
16666
16667 CFLAGS="$xorg_testset_save_CFLAGS"
16668
16669 eval supported=\$$cacheid
16670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16671 $as_echo "$supported" >&6; }
16672 if test "$supported" = "yes" ; then
16673 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16674 found="yes"
16675 fi
16676 fi
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692 xorg_testset_save_CFLAGS="$CFLAGS"
16693
16694 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16695 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16697 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16698 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16699 $as_echo_n "(cached) " >&6
16700 else
16701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16702 /* end confdefs.h. */
16703 int i;
16704 _ACEOF
16705 if ac_fn_c_try_compile "$LINENO"; then :
16706 xorg_cv_cc_flag_unknown_warning_option=yes
16707 else
16708 xorg_cv_cc_flag_unknown_warning_option=no
16709 fi
16710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16711 fi
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16713 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16714 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16715 CFLAGS="$xorg_testset_save_CFLAGS"
16716 fi
16717
16718 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16720 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16721 fi
16722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16724 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16725 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16726 $as_echo_n "(cached) " >&6
16727 else
16728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16729 /* end confdefs.h. */
16730 int i;
16731 _ACEOF
16732 if ac_fn_c_try_compile "$LINENO"; then :
16733 xorg_cv_cc_flag_unused_command_line_argument=yes
16734 else
16735 xorg_cv_cc_flag_unused_command_line_argument=no
16736 fi
16737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16738 fi
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16740 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16741 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16742 CFLAGS="$xorg_testset_save_CFLAGS"
16743 fi
16744
16745 found="no"
16746
16747 if test $found = "no" ; then
16748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16749 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16750 fi
16751
16752 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16754 fi
16755
16756 CFLAGS="$CFLAGS -Werror=address"
16757
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16759 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
16760 cacheid=xorg_cv_cc_flag__Werror_address
16761 if eval \${$cacheid+:} false; then :
16762 $as_echo_n "(cached) " >&6
16763 else
16764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16765 /* end confdefs.h. */
16766 int i;
16767 int
16768 main ()
16769 {
16770
16771 ;
16772 return 0;
16773 }
16774 _ACEOF
16775 if ac_fn_c_try_link "$LINENO"; then :
16776 eval $cacheid=yes
16777 else
16778 eval $cacheid=no
16779 fi
16780 rm -f core conftest.err conftest.$ac_objext \
16781 conftest$ac_exeext conftest.$ac_ext
16782 fi
16783
16784
16785 CFLAGS="$xorg_testset_save_CFLAGS"
16786
16787 eval supported=\$$cacheid
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16789 $as_echo "$supported" >&6; }
16790 if test "$supported" = "yes" ; then
16791 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16792 found="yes"
16793 fi
16794 fi
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810 xorg_testset_save_CFLAGS="$CFLAGS"
16811
16812 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16813 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16815 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16816 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16817 $as_echo_n "(cached) " >&6
16818 else
16819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16820 /* end confdefs.h. */
16821 int i;
16822 _ACEOF
16823 if ac_fn_c_try_compile "$LINENO"; then :
16824 xorg_cv_cc_flag_unknown_warning_option=yes
16825 else
16826 xorg_cv_cc_flag_unknown_warning_option=no
16827 fi
16828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16829 fi
16830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16831 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16832 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16833 CFLAGS="$xorg_testset_save_CFLAGS"
16834 fi
16835
16836 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16839 fi
16840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16842 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16843 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16844 $as_echo_n "(cached) " >&6
16845 else
16846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16847 /* end confdefs.h. */
16848 int i;
16849 _ACEOF
16850 if ac_fn_c_try_compile "$LINENO"; then :
16851 xorg_cv_cc_flag_unused_command_line_argument=yes
16852 else
16853 xorg_cv_cc_flag_unused_command_line_argument=no
16854 fi
16855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16856 fi
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16858 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16859 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16860 CFLAGS="$xorg_testset_save_CFLAGS"
16861 fi
16862
16863 found="no"
16864
16865 if test $found = "no" ; then
16866 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16867 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16868 fi
16869
16870 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16872 fi
16873
16874 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16875
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16877 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16878 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16879 if eval \${$cacheid+:} false; then :
16880 $as_echo_n "(cached) " >&6
16881 else
16882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16883 /* end confdefs.h. */
16884 int i;
16885 int
16886 main ()
16887 {
16888
16889 ;
16890 return 0;
16891 }
16892 _ACEOF
16893 if ac_fn_c_try_link "$LINENO"; then :
16894 eval $cacheid=yes
16895 else
16896 eval $cacheid=no
16897 fi
16898 rm -f core conftest.err conftest.$ac_objext \
16899 conftest$ac_exeext conftest.$ac_ext
16900 fi
16901
16902
16903 CFLAGS="$xorg_testset_save_CFLAGS"
16904
16905 eval supported=\$$cacheid
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16907 $as_echo "$supported" >&6; }
16908 if test "$supported" = "yes" ; then
16909 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16910 found="yes"
16911 fi
16912 fi
16913
16914 if test $found = "no" ; then
16915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16917 fi
16918
16919 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16921 fi
16922
16923 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16924
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16926 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16927 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16928 if eval \${$cacheid+:} false; then :
16929 $as_echo_n "(cached) " >&6
16930 else
16931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16932 /* end confdefs.h. */
16933 int i;
16934 int
16935 main ()
16936 {
16937
16938 ;
16939 return 0;
16940 }
16941 _ACEOF
16942 if ac_fn_c_try_link "$LINENO"; then :
16943 eval $cacheid=yes
16944 else
16945 eval $cacheid=no
16946 fi
16947 rm -f core conftest.err conftest.$ac_objext \
16948 conftest$ac_exeext conftest.$ac_ext
16949 fi
16950
16951
16952 CFLAGS="$xorg_testset_save_CFLAGS"
16953
16954 eval supported=\$$cacheid
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16956 $as_echo "$supported" >&6; }
16957 if test "$supported" = "yes" ; then
16958 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16959 found="yes"
16960 fi
16961 fi
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977 xorg_testset_save_CFLAGS="$CFLAGS"
16978
16979 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16982 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16983 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16984 $as_echo_n "(cached) " >&6
16985 else
16986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16987 /* end confdefs.h. */
16988 int i;
16989 _ACEOF
16990 if ac_fn_c_try_compile "$LINENO"; then :
16991 xorg_cv_cc_flag_unknown_warning_option=yes
16992 else
16993 xorg_cv_cc_flag_unknown_warning_option=no
16994 fi
16995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16996 fi
16997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16998 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16999 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17000 CFLAGS="$xorg_testset_save_CFLAGS"
17001 fi
17002
17003 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17005 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17006 fi
17007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17009 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17010 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17011 $as_echo_n "(cached) " >&6
17012 else
17013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17014 /* end confdefs.h. */
17015 int i;
17016 _ACEOF
17017 if ac_fn_c_try_compile "$LINENO"; then :
17018 xorg_cv_cc_flag_unused_command_line_argument=yes
17019 else
17020 xorg_cv_cc_flag_unused_command_line_argument=no
17021 fi
17022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17023 fi
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17025 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17026 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17027 CFLAGS="$xorg_testset_save_CFLAGS"
17028 fi
17029
17030 found="no"
17031
17032 if test $found = "no" ; then
17033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17034 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17035 fi
17036
17037 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17039 fi
17040
17041 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
17042
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
17044 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
17045 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
17046 if eval \${$cacheid+:} false; then :
17047 $as_echo_n "(cached) " >&6
17048 else
17049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17050 /* end confdefs.h. */
17051 int i;
17052 int
17053 main ()
17054 {
17055
17056 ;
17057 return 0;
17058 }
17059 _ACEOF
17060 if ac_fn_c_try_link "$LINENO"; then :
17061 eval $cacheid=yes
17062 else
17063 eval $cacheid=no
17064 fi
17065 rm -f core conftest.err conftest.$ac_objext \
17066 conftest$ac_exeext conftest.$ac_ext
17067 fi
17068
17069
17070 CFLAGS="$xorg_testset_save_CFLAGS"
17071
17072 eval supported=\$$cacheid
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17074 $as_echo "$supported" >&6; }
17075 if test "$supported" = "yes" ; then
17076 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17077 found="yes"
17078 fi
17079 fi
17080
17081 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17082 else
17083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
17084 $as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098 xorg_testset_save_CFLAGS="$CFLAGS"
17099
17100 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17103 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17104 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17105 $as_echo_n "(cached) " >&6
17106 else
17107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17108 /* end confdefs.h. */
17109 int i;
17110 _ACEOF
17111 if ac_fn_c_try_compile "$LINENO"; then :
17112 xorg_cv_cc_flag_unknown_warning_option=yes
17113 else
17114 xorg_cv_cc_flag_unknown_warning_option=no
17115 fi
17116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17117 fi
17118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17119 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17120 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17121 CFLAGS="$xorg_testset_save_CFLAGS"
17122 fi
17123
17124 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17126 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17127 fi
17128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17130 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17131 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17132 $as_echo_n "(cached) " >&6
17133 else
17134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17135 /* end confdefs.h. */
17136 int i;
17137 _ACEOF
17138 if ac_fn_c_try_compile "$LINENO"; then :
17139 xorg_cv_cc_flag_unused_command_line_argument=yes
17140 else
17141 xorg_cv_cc_flag_unused_command_line_argument=no
17142 fi
17143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17144 fi
17145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17146 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17147 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17148 CFLAGS="$xorg_testset_save_CFLAGS"
17149 fi
17150
17151 found="no"
17152
17153 if test $found = "no" ; then
17154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17156 fi
17157
17158 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17160 fi
17161
17162 CFLAGS="$CFLAGS -Wimplicit"
17163
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17165 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
17166 cacheid=xorg_cv_cc_flag__Wimplicit
17167 if eval \${$cacheid+:} false; then :
17168 $as_echo_n "(cached) " >&6
17169 else
17170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17171 /* end confdefs.h. */
17172 int i;
17173 int
17174 main ()
17175 {
17176
17177 ;
17178 return 0;
17179 }
17180 _ACEOF
17181 if ac_fn_c_try_link "$LINENO"; then :
17182 eval $cacheid=yes
17183 else
17184 eval $cacheid=no
17185 fi
17186 rm -f core conftest.err conftest.$ac_objext \
17187 conftest$ac_exeext conftest.$ac_ext
17188 fi
17189
17190
17191 CFLAGS="$xorg_testset_save_CFLAGS"
17192
17193 eval supported=\$$cacheid
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17195 $as_echo "$supported" >&6; }
17196 if test "$supported" = "yes" ; then
17197 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17198 found="yes"
17199 fi
17200 fi
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216 xorg_testset_save_CFLAGS="$CFLAGS"
17217
17218 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17219 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17221 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17222 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17223 $as_echo_n "(cached) " >&6
17224 else
17225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17226 /* end confdefs.h. */
17227 int i;
17228 _ACEOF
17229 if ac_fn_c_try_compile "$LINENO"; then :
17230 xorg_cv_cc_flag_unknown_warning_option=yes
17231 else
17232 xorg_cv_cc_flag_unknown_warning_option=no
17233 fi
17234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17235 fi
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17237 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17238 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17239 CFLAGS="$xorg_testset_save_CFLAGS"
17240 fi
17241
17242 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17245 fi
17246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17248 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17249 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17250 $as_echo_n "(cached) " >&6
17251 else
17252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17253 /* end confdefs.h. */
17254 int i;
17255 _ACEOF
17256 if ac_fn_c_try_compile "$LINENO"; then :
17257 xorg_cv_cc_flag_unused_command_line_argument=yes
17258 else
17259 xorg_cv_cc_flag_unused_command_line_argument=no
17260 fi
17261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17262 fi
17263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17264 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17265 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17266 CFLAGS="$xorg_testset_save_CFLAGS"
17267 fi
17268
17269 found="no"
17270
17271 if test $found = "no" ; then
17272 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17273 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17274 fi
17275
17276 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17278 fi
17279
17280 CFLAGS="$CFLAGS -Wnonnull"
17281
17282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17283 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
17284 cacheid=xorg_cv_cc_flag__Wnonnull
17285 if eval \${$cacheid+:} false; then :
17286 $as_echo_n "(cached) " >&6
17287 else
17288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17289 /* end confdefs.h. */
17290 int i;
17291 int
17292 main ()
17293 {
17294
17295 ;
17296 return 0;
17297 }
17298 _ACEOF
17299 if ac_fn_c_try_link "$LINENO"; then :
17300 eval $cacheid=yes
17301 else
17302 eval $cacheid=no
17303 fi
17304 rm -f core conftest.err conftest.$ac_objext \
17305 conftest$ac_exeext conftest.$ac_ext
17306 fi
17307
17308
17309 CFLAGS="$xorg_testset_save_CFLAGS"
17310
17311 eval supported=\$$cacheid
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17313 $as_echo "$supported" >&6; }
17314 if test "$supported" = "yes" ; then
17315 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17316 found="yes"
17317 fi
17318 fi
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334 xorg_testset_save_CFLAGS="$CFLAGS"
17335
17336 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17339 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17340 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17341 $as_echo_n "(cached) " >&6
17342 else
17343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17344 /* end confdefs.h. */
17345 int i;
17346 _ACEOF
17347 if ac_fn_c_try_compile "$LINENO"; then :
17348 xorg_cv_cc_flag_unknown_warning_option=yes
17349 else
17350 xorg_cv_cc_flag_unknown_warning_option=no
17351 fi
17352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17353 fi
17354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17355 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17356 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17357 CFLAGS="$xorg_testset_save_CFLAGS"
17358 fi
17359
17360 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17363 fi
17364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17366 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17367 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17368 $as_echo_n "(cached) " >&6
17369 else
17370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17371 /* end confdefs.h. */
17372 int i;
17373 _ACEOF
17374 if ac_fn_c_try_compile "$LINENO"; then :
17375 xorg_cv_cc_flag_unused_command_line_argument=yes
17376 else
17377 xorg_cv_cc_flag_unused_command_line_argument=no
17378 fi
17379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17380 fi
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17382 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17383 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17384 CFLAGS="$xorg_testset_save_CFLAGS"
17385 fi
17386
17387 found="no"
17388
17389 if test $found = "no" ; then
17390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17391 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17392 fi
17393
17394 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17396 fi
17397
17398 CFLAGS="$CFLAGS -Winit-self"
17399
17400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17401 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
17402 cacheid=xorg_cv_cc_flag__Winit_self
17403 if eval \${$cacheid+:} false; then :
17404 $as_echo_n "(cached) " >&6
17405 else
17406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17407 /* end confdefs.h. */
17408 int i;
17409 int
17410 main ()
17411 {
17412
17413 ;
17414 return 0;
17415 }
17416 _ACEOF
17417 if ac_fn_c_try_link "$LINENO"; then :
17418 eval $cacheid=yes
17419 else
17420 eval $cacheid=no
17421 fi
17422 rm -f core conftest.err conftest.$ac_objext \
17423 conftest$ac_exeext conftest.$ac_ext
17424 fi
17425
17426
17427 CFLAGS="$xorg_testset_save_CFLAGS"
17428
17429 eval supported=\$$cacheid
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17431 $as_echo "$supported" >&6; }
17432 if test "$supported" = "yes" ; then
17433 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17434 found="yes"
17435 fi
17436 fi
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452 xorg_testset_save_CFLAGS="$CFLAGS"
17453
17454 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17455 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17457 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17458 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17459 $as_echo_n "(cached) " >&6
17460 else
17461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17462 /* end confdefs.h. */
17463 int i;
17464 _ACEOF
17465 if ac_fn_c_try_compile "$LINENO"; then :
17466 xorg_cv_cc_flag_unknown_warning_option=yes
17467 else
17468 xorg_cv_cc_flag_unknown_warning_option=no
17469 fi
17470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17471 fi
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17473 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17474 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17475 CFLAGS="$xorg_testset_save_CFLAGS"
17476 fi
17477
17478 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17480 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17481 fi
17482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17484 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17485 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17486 $as_echo_n "(cached) " >&6
17487 else
17488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17489 /* end confdefs.h. */
17490 int i;
17491 _ACEOF
17492 if ac_fn_c_try_compile "$LINENO"; then :
17493 xorg_cv_cc_flag_unused_command_line_argument=yes
17494 else
17495 xorg_cv_cc_flag_unused_command_line_argument=no
17496 fi
17497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17498 fi
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17500 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17501 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17502 CFLAGS="$xorg_testset_save_CFLAGS"
17503 fi
17504
17505 found="no"
17506
17507 if test $found = "no" ; then
17508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17510 fi
17511
17512 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17514 fi
17515
17516 CFLAGS="$CFLAGS -Wmain"
17517
17518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17519 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
17520 cacheid=xorg_cv_cc_flag__Wmain
17521 if eval \${$cacheid+:} false; then :
17522 $as_echo_n "(cached) " >&6
17523 else
17524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17525 /* end confdefs.h. */
17526 int i;
17527 int
17528 main ()
17529 {
17530
17531 ;
17532 return 0;
17533 }
17534 _ACEOF
17535 if ac_fn_c_try_link "$LINENO"; then :
17536 eval $cacheid=yes
17537 else
17538 eval $cacheid=no
17539 fi
17540 rm -f core conftest.err conftest.$ac_objext \
17541 conftest$ac_exeext conftest.$ac_ext
17542 fi
17543
17544
17545 CFLAGS="$xorg_testset_save_CFLAGS"
17546
17547 eval supported=\$$cacheid
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17549 $as_echo "$supported" >&6; }
17550 if test "$supported" = "yes" ; then
17551 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17552 found="yes"
17553 fi
17554 fi
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570 xorg_testset_save_CFLAGS="$CFLAGS"
17571
17572 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17573 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17575 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17576 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17577 $as_echo_n "(cached) " >&6
17578 else
17579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17580 /* end confdefs.h. */
17581 int i;
17582 _ACEOF
17583 if ac_fn_c_try_compile "$LINENO"; then :
17584 xorg_cv_cc_flag_unknown_warning_option=yes
17585 else
17586 xorg_cv_cc_flag_unknown_warning_option=no
17587 fi
17588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17589 fi
17590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17591 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17592 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17593 CFLAGS="$xorg_testset_save_CFLAGS"
17594 fi
17595
17596 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17599 fi
17600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17602 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17603 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17604 $as_echo_n "(cached) " >&6
17605 else
17606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17607 /* end confdefs.h. */
17608 int i;
17609 _ACEOF
17610 if ac_fn_c_try_compile "$LINENO"; then :
17611 xorg_cv_cc_flag_unused_command_line_argument=yes
17612 else
17613 xorg_cv_cc_flag_unused_command_line_argument=no
17614 fi
17615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17616 fi
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17618 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17619 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17620 CFLAGS="$xorg_testset_save_CFLAGS"
17621 fi
17622
17623 found="no"
17624
17625 if test $found = "no" ; then
17626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17628 fi
17629
17630 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17632 fi
17633
17634 CFLAGS="$CFLAGS -Wmissing-braces"
17635
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17637 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
17638 cacheid=xorg_cv_cc_flag__Wmissing_braces
17639 if eval \${$cacheid+:} false; then :
17640 $as_echo_n "(cached) " >&6
17641 else
17642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17643 /* end confdefs.h. */
17644 int i;
17645 int
17646 main ()
17647 {
17648
17649 ;
17650 return 0;
17651 }
17652 _ACEOF
17653 if ac_fn_c_try_link "$LINENO"; then :
17654 eval $cacheid=yes
17655 else
17656 eval $cacheid=no
17657 fi
17658 rm -f core conftest.err conftest.$ac_objext \
17659 conftest$ac_exeext conftest.$ac_ext
17660 fi
17661
17662
17663 CFLAGS="$xorg_testset_save_CFLAGS"
17664
17665 eval supported=\$$cacheid
17666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17667 $as_echo "$supported" >&6; }
17668 if test "$supported" = "yes" ; then
17669 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17670 found="yes"
17671 fi
17672 fi
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688 xorg_testset_save_CFLAGS="$CFLAGS"
17689
17690 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17693 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17694 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17695 $as_echo_n "(cached) " >&6
17696 else
17697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17698 /* end confdefs.h. */
17699 int i;
17700 _ACEOF
17701 if ac_fn_c_try_compile "$LINENO"; then :
17702 xorg_cv_cc_flag_unknown_warning_option=yes
17703 else
17704 xorg_cv_cc_flag_unknown_warning_option=no
17705 fi
17706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17707 fi
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17709 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17710 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17711 CFLAGS="$xorg_testset_save_CFLAGS"
17712 fi
17713
17714 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17716 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17717 fi
17718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17720 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17721 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17722 $as_echo_n "(cached) " >&6
17723 else
17724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17725 /* end confdefs.h. */
17726 int i;
17727 _ACEOF
17728 if ac_fn_c_try_compile "$LINENO"; then :
17729 xorg_cv_cc_flag_unused_command_line_argument=yes
17730 else
17731 xorg_cv_cc_flag_unused_command_line_argument=no
17732 fi
17733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17734 fi
17735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17736 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17737 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17738 CFLAGS="$xorg_testset_save_CFLAGS"
17739 fi
17740
17741 found="no"
17742
17743 if test $found = "no" ; then
17744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17746 fi
17747
17748 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17750 fi
17751
17752 CFLAGS="$CFLAGS -Wsequence-point"
17753
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17755 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
17756 cacheid=xorg_cv_cc_flag__Wsequence_point
17757 if eval \${$cacheid+:} false; then :
17758 $as_echo_n "(cached) " >&6
17759 else
17760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17761 /* end confdefs.h. */
17762 int i;
17763 int
17764 main ()
17765 {
17766
17767 ;
17768 return 0;
17769 }
17770 _ACEOF
17771 if ac_fn_c_try_link "$LINENO"; then :
17772 eval $cacheid=yes
17773 else
17774 eval $cacheid=no
17775 fi
17776 rm -f core conftest.err conftest.$ac_objext \
17777 conftest$ac_exeext conftest.$ac_ext
17778 fi
17779
17780
17781 CFLAGS="$xorg_testset_save_CFLAGS"
17782
17783 eval supported=\$$cacheid
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17785 $as_echo "$supported" >&6; }
17786 if test "$supported" = "yes" ; then
17787 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17788 found="yes"
17789 fi
17790 fi
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806 xorg_testset_save_CFLAGS="$CFLAGS"
17807
17808 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17809 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17811 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17812 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17813 $as_echo_n "(cached) " >&6
17814 else
17815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17816 /* end confdefs.h. */
17817 int i;
17818 _ACEOF
17819 if ac_fn_c_try_compile "$LINENO"; then :
17820 xorg_cv_cc_flag_unknown_warning_option=yes
17821 else
17822 xorg_cv_cc_flag_unknown_warning_option=no
17823 fi
17824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17825 fi
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17827 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17828 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17829 CFLAGS="$xorg_testset_save_CFLAGS"
17830 fi
17831
17832 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17835 fi
17836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17838 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17839 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17840 $as_echo_n "(cached) " >&6
17841 else
17842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17843 /* end confdefs.h. */
17844 int i;
17845 _ACEOF
17846 if ac_fn_c_try_compile "$LINENO"; then :
17847 xorg_cv_cc_flag_unused_command_line_argument=yes
17848 else
17849 xorg_cv_cc_flag_unused_command_line_argument=no
17850 fi
17851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17852 fi
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17854 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17855 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17856 CFLAGS="$xorg_testset_save_CFLAGS"
17857 fi
17858
17859 found="no"
17860
17861 if test $found = "no" ; then
17862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17864 fi
17865
17866 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17868 fi
17869
17870 CFLAGS="$CFLAGS -Wreturn-type"
17871
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17873 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
17874 cacheid=xorg_cv_cc_flag__Wreturn_type
17875 if eval \${$cacheid+:} false; then :
17876 $as_echo_n "(cached) " >&6
17877 else
17878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17879 /* end confdefs.h. */
17880 int i;
17881 int
17882 main ()
17883 {
17884
17885 ;
17886 return 0;
17887 }
17888 _ACEOF
17889 if ac_fn_c_try_link "$LINENO"; then :
17890 eval $cacheid=yes
17891 else
17892 eval $cacheid=no
17893 fi
17894 rm -f core conftest.err conftest.$ac_objext \
17895 conftest$ac_exeext conftest.$ac_ext
17896 fi
17897
17898
17899 CFLAGS="$xorg_testset_save_CFLAGS"
17900
17901 eval supported=\$$cacheid
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17903 $as_echo "$supported" >&6; }
17904 if test "$supported" = "yes" ; then
17905 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17906 found="yes"
17907 fi
17908 fi
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924 xorg_testset_save_CFLAGS="$CFLAGS"
17925
17926 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17927 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17929 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17930 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17931 $as_echo_n "(cached) " >&6
17932 else
17933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17934 /* end confdefs.h. */
17935 int i;
17936 _ACEOF
17937 if ac_fn_c_try_compile "$LINENO"; then :
17938 xorg_cv_cc_flag_unknown_warning_option=yes
17939 else
17940 xorg_cv_cc_flag_unknown_warning_option=no
17941 fi
17942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17943 fi
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17945 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17946 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17947 CFLAGS="$xorg_testset_save_CFLAGS"
17948 fi
17949
17950 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17952 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17953 fi
17954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17956 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17957 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17958 $as_echo_n "(cached) " >&6
17959 else
17960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17961 /* end confdefs.h. */
17962 int i;
17963 _ACEOF
17964 if ac_fn_c_try_compile "$LINENO"; then :
17965 xorg_cv_cc_flag_unused_command_line_argument=yes
17966 else
17967 xorg_cv_cc_flag_unused_command_line_argument=no
17968 fi
17969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17970 fi
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17972 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17973 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17974 CFLAGS="$xorg_testset_save_CFLAGS"
17975 fi
17976
17977 found="no"
17978
17979 if test $found = "no" ; then
17980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17982 fi
17983
17984 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17986 fi
17987
17988 CFLAGS="$CFLAGS -Wtrigraphs"
17989
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17991 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17992 cacheid=xorg_cv_cc_flag__Wtrigraphs
17993 if eval \${$cacheid+:} false; then :
17994 $as_echo_n "(cached) " >&6
17995 else
17996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17997 /* end confdefs.h. */
17998 int i;
17999 int
18000 main ()
18001 {
18002
18003 ;
18004 return 0;
18005 }
18006 _ACEOF
18007 if ac_fn_c_try_link "$LINENO"; then :
18008 eval $cacheid=yes
18009 else
18010 eval $cacheid=no
18011 fi
18012 rm -f core conftest.err conftest.$ac_objext \
18013 conftest$ac_exeext conftest.$ac_ext
18014 fi
18015
18016
18017 CFLAGS="$xorg_testset_save_CFLAGS"
18018
18019 eval supported=\$$cacheid
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18021 $as_echo "$supported" >&6; }
18022 if test "$supported" = "yes" ; then
18023 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
18024 found="yes"
18025 fi
18026 fi
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042 xorg_testset_save_CFLAGS="$CFLAGS"
18043
18044 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18045 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18047 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18048 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18049 $as_echo_n "(cached) " >&6
18050 else
18051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18052 /* end confdefs.h. */
18053 int i;
18054 _ACEOF
18055 if ac_fn_c_try_compile "$LINENO"; then :
18056 xorg_cv_cc_flag_unknown_warning_option=yes
18057 else
18058 xorg_cv_cc_flag_unknown_warning_option=no
18059 fi
18060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18061 fi
18062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18063 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18064 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18065 CFLAGS="$xorg_testset_save_CFLAGS"
18066 fi
18067
18068 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18070 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18071 fi
18072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18074 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18075 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18076 $as_echo_n "(cached) " >&6
18077 else
18078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18079 /* end confdefs.h. */
18080 int i;
18081 _ACEOF
18082 if ac_fn_c_try_compile "$LINENO"; then :
18083 xorg_cv_cc_flag_unused_command_line_argument=yes
18084 else
18085 xorg_cv_cc_flag_unused_command_line_argument=no
18086 fi
18087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18088 fi
18089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18090 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18091 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18092 CFLAGS="$xorg_testset_save_CFLAGS"
18093 fi
18094
18095 found="no"
18096
18097 if test $found = "no" ; then
18098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18100 fi
18101
18102 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18104 fi
18105
18106 CFLAGS="$CFLAGS -Warray-bounds"
18107
18108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18109 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
18110 cacheid=xorg_cv_cc_flag__Warray_bounds
18111 if eval \${$cacheid+:} false; then :
18112 $as_echo_n "(cached) " >&6
18113 else
18114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18115 /* end confdefs.h. */
18116 int i;
18117 int
18118 main ()
18119 {
18120
18121 ;
18122 return 0;
18123 }
18124 _ACEOF
18125 if ac_fn_c_try_link "$LINENO"; then :
18126 eval $cacheid=yes
18127 else
18128 eval $cacheid=no
18129 fi
18130 rm -f core conftest.err conftest.$ac_objext \
18131 conftest$ac_exeext conftest.$ac_ext
18132 fi
18133
18134
18135 CFLAGS="$xorg_testset_save_CFLAGS"
18136
18137 eval supported=\$$cacheid
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18139 $as_echo "$supported" >&6; }
18140 if test "$supported" = "yes" ; then
18141 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18142 found="yes"
18143 fi
18144 fi
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160 xorg_testset_save_CFLAGS="$CFLAGS"
18161
18162 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18163 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18165 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18166 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18167 $as_echo_n "(cached) " >&6
18168 else
18169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18170 /* end confdefs.h. */
18171 int i;
18172 _ACEOF
18173 if ac_fn_c_try_compile "$LINENO"; then :
18174 xorg_cv_cc_flag_unknown_warning_option=yes
18175 else
18176 xorg_cv_cc_flag_unknown_warning_option=no
18177 fi
18178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18179 fi
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18181 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18182 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18183 CFLAGS="$xorg_testset_save_CFLAGS"
18184 fi
18185
18186 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18188 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18189 fi
18190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18192 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18193 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18194 $as_echo_n "(cached) " >&6
18195 else
18196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18197 /* end confdefs.h. */
18198 int i;
18199 _ACEOF
18200 if ac_fn_c_try_compile "$LINENO"; then :
18201 xorg_cv_cc_flag_unused_command_line_argument=yes
18202 else
18203 xorg_cv_cc_flag_unused_command_line_argument=no
18204 fi
18205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18206 fi
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18208 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18209 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18210 CFLAGS="$xorg_testset_save_CFLAGS"
18211 fi
18212
18213 found="no"
18214
18215 if test $found = "no" ; then
18216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18218 fi
18219
18220 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18222 fi
18223
18224 CFLAGS="$CFLAGS -Wwrite-strings"
18225
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18227 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
18228 cacheid=xorg_cv_cc_flag__Wwrite_strings
18229 if eval \${$cacheid+:} false; then :
18230 $as_echo_n "(cached) " >&6
18231 else
18232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18233 /* end confdefs.h. */
18234 int i;
18235 int
18236 main ()
18237 {
18238
18239 ;
18240 return 0;
18241 }
18242 _ACEOF
18243 if ac_fn_c_try_link "$LINENO"; then :
18244 eval $cacheid=yes
18245 else
18246 eval $cacheid=no
18247 fi
18248 rm -f core conftest.err conftest.$ac_objext \
18249 conftest$ac_exeext conftest.$ac_ext
18250 fi
18251
18252
18253 CFLAGS="$xorg_testset_save_CFLAGS"
18254
18255 eval supported=\$$cacheid
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18257 $as_echo "$supported" >&6; }
18258 if test "$supported" = "yes" ; then
18259 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18260 found="yes"
18261 fi
18262 fi
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278 xorg_testset_save_CFLAGS="$CFLAGS"
18279
18280 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18281 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18283 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18284 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18285 $as_echo_n "(cached) " >&6
18286 else
18287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18288 /* end confdefs.h. */
18289 int i;
18290 _ACEOF
18291 if ac_fn_c_try_compile "$LINENO"; then :
18292 xorg_cv_cc_flag_unknown_warning_option=yes
18293 else
18294 xorg_cv_cc_flag_unknown_warning_option=no
18295 fi
18296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18297 fi
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18299 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18300 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18301 CFLAGS="$xorg_testset_save_CFLAGS"
18302 fi
18303
18304 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18306 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18307 fi
18308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18310 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18311 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18312 $as_echo_n "(cached) " >&6
18313 else
18314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18315 /* end confdefs.h. */
18316 int i;
18317 _ACEOF
18318 if ac_fn_c_try_compile "$LINENO"; then :
18319 xorg_cv_cc_flag_unused_command_line_argument=yes
18320 else
18321 xorg_cv_cc_flag_unused_command_line_argument=no
18322 fi
18323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18324 fi
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18326 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18327 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18328 CFLAGS="$xorg_testset_save_CFLAGS"
18329 fi
18330
18331 found="no"
18332
18333 if test $found = "no" ; then
18334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18336 fi
18337
18338 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18340 fi
18341
18342 CFLAGS="$CFLAGS -Waddress"
18343
18344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18345 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
18346 cacheid=xorg_cv_cc_flag__Waddress
18347 if eval \${$cacheid+:} false; then :
18348 $as_echo_n "(cached) " >&6
18349 else
18350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18351 /* end confdefs.h. */
18352 int i;
18353 int
18354 main ()
18355 {
18356
18357 ;
18358 return 0;
18359 }
18360 _ACEOF
18361 if ac_fn_c_try_link "$LINENO"; then :
18362 eval $cacheid=yes
18363 else
18364 eval $cacheid=no
18365 fi
18366 rm -f core conftest.err conftest.$ac_objext \
18367 conftest$ac_exeext conftest.$ac_ext
18368 fi
18369
18370
18371 CFLAGS="$xorg_testset_save_CFLAGS"
18372
18373 eval supported=\$$cacheid
18374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18375 $as_echo "$supported" >&6; }
18376 if test "$supported" = "yes" ; then
18377 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18378 found="yes"
18379 fi
18380 fi
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396 xorg_testset_save_CFLAGS="$CFLAGS"
18397
18398 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18399 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18401 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18402 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18403 $as_echo_n "(cached) " >&6
18404 else
18405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18406 /* end confdefs.h. */
18407 int i;
18408 _ACEOF
18409 if ac_fn_c_try_compile "$LINENO"; then :
18410 xorg_cv_cc_flag_unknown_warning_option=yes
18411 else
18412 xorg_cv_cc_flag_unknown_warning_option=no
18413 fi
18414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18415 fi
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18417 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18418 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18419 CFLAGS="$xorg_testset_save_CFLAGS"
18420 fi
18421
18422 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18424 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18425 fi
18426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18428 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18429 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18430 $as_echo_n "(cached) " >&6
18431 else
18432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18433 /* end confdefs.h. */
18434 int i;
18435 _ACEOF
18436 if ac_fn_c_try_compile "$LINENO"; then :
18437 xorg_cv_cc_flag_unused_command_line_argument=yes
18438 else
18439 xorg_cv_cc_flag_unused_command_line_argument=no
18440 fi
18441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18442 fi
18443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18444 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18445 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18446 CFLAGS="$xorg_testset_save_CFLAGS"
18447 fi
18448
18449 found="no"
18450
18451 if test $found = "no" ; then
18452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18453 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18454 fi
18455
18456 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18458 fi
18459
18460 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18461
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18463 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18464 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18465 if eval \${$cacheid+:} false; then :
18466 $as_echo_n "(cached) " >&6
18467 else
18468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18469 /* end confdefs.h. */
18470 int i;
18471 int
18472 main ()
18473 {
18474
18475 ;
18476 return 0;
18477 }
18478 _ACEOF
18479 if ac_fn_c_try_link "$LINENO"; then :
18480 eval $cacheid=yes
18481 else
18482 eval $cacheid=no
18483 fi
18484 rm -f core conftest.err conftest.$ac_objext \
18485 conftest$ac_exeext conftest.$ac_ext
18486 fi
18487
18488
18489 CFLAGS="$xorg_testset_save_CFLAGS"
18490
18491 eval supported=\$$cacheid
18492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18493 $as_echo "$supported" >&6; }
18494 if test "$supported" = "yes" ; then
18495 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18496 found="yes"
18497 fi
18498 fi
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514 xorg_testset_save_CFLAGS="$CFLAGS"
18515
18516 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18517 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18519 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18520 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18521 $as_echo_n "(cached) " >&6
18522 else
18523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18524 /* end confdefs.h. */
18525 int i;
18526 _ACEOF
18527 if ac_fn_c_try_compile "$LINENO"; then :
18528 xorg_cv_cc_flag_unknown_warning_option=yes
18529 else
18530 xorg_cv_cc_flag_unknown_warning_option=no
18531 fi
18532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18533 fi
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18535 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18536 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18537 CFLAGS="$xorg_testset_save_CFLAGS"
18538 fi
18539
18540 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18543 fi
18544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18546 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18547 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18548 $as_echo_n "(cached) " >&6
18549 else
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"; then :
18555 xorg_cv_cc_flag_unused_command_line_argument=yes
18556 else
18557 xorg_cv_cc_flag_unused_command_line_argument=no
18558 fi
18559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18560 fi
18561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18562 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18563 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18564 CFLAGS="$xorg_testset_save_CFLAGS"
18565 fi
18566
18567 found="no"
18568
18569 if test $found = "no" ; then
18570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18571 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18572 fi
18573
18574 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18576 fi
18577
18578 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18579
18580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18581 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18582 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18583 if eval \${$cacheid+:} false; then :
18584 $as_echo_n "(cached) " >&6
18585 else
18586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18587 /* end confdefs.h. */
18588 int i;
18589 int
18590 main ()
18591 {
18592
18593 ;
18594 return 0;
18595 }
18596 _ACEOF
18597 if ac_fn_c_try_link "$LINENO"; then :
18598 eval $cacheid=yes
18599 else
18600 eval $cacheid=no
18601 fi
18602 rm -f core conftest.err conftest.$ac_objext \
18603 conftest$ac_exeext conftest.$ac_ext
18604 fi
18605
18606
18607 CFLAGS="$xorg_testset_save_CFLAGS"
18608
18609 eval supported=\$$cacheid
18610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18611 $as_echo "$supported" >&6; }
18612 if test "$supported" = "yes" ; then
18613 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18614 found="yes"
18615 fi
18616 fi
18617
18618
18619 fi
18620
18621
18622
18623
18624
18625
18626
18627 CWARNFLAGS="$BASE_CFLAGS"
18628 if test "x$GCC" = xyes ; then
18629 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18630 fi
18631
18632
18633
18634
18635
18636
18637
18638
18639 # Check whether --enable-strict-compilation was given.
18640 if test "${enable_strict_compilation+set}" = set; then :
18641 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18642 else
18643 STRICT_COMPILE=no
18644 fi
18645
18646
18647
18648
18649
18650
18651 STRICT_CFLAGS=""
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665 xorg_testset_save_CFLAGS="$CFLAGS"
18666
18667 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18668 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18670 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18671 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18672 $as_echo_n "(cached) " >&6
18673 else
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"; then :
18679 xorg_cv_cc_flag_unknown_warning_option=yes
18680 else
18681 xorg_cv_cc_flag_unknown_warning_option=no
18682 fi
18683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18684 fi
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18686 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18687 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18688 CFLAGS="$xorg_testset_save_CFLAGS"
18689 fi
18690
18691 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18693 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18694 fi
18695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18697 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18698 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18699 $as_echo_n "(cached) " >&6
18700 else
18701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18702 /* end confdefs.h. */
18703 int i;
18704 _ACEOF
18705 if ac_fn_c_try_compile "$LINENO"; then :
18706 xorg_cv_cc_flag_unused_command_line_argument=yes
18707 else
18708 xorg_cv_cc_flag_unused_command_line_argument=no
18709 fi
18710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18711 fi
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18713 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18714 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18715 CFLAGS="$xorg_testset_save_CFLAGS"
18716 fi
18717
18718 found="no"
18719
18720 if test $found = "no" ; then
18721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18723 fi
18724
18725 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18727 fi
18728
18729 CFLAGS="$CFLAGS -pedantic"
18730
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18732 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
18733 cacheid=xorg_cv_cc_flag__pedantic
18734 if eval \${$cacheid+:} false; then :
18735 $as_echo_n "(cached) " >&6
18736 else
18737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18738 /* end confdefs.h. */
18739 int i;
18740 int
18741 main ()
18742 {
18743
18744 ;
18745 return 0;
18746 }
18747 _ACEOF
18748 if ac_fn_c_try_link "$LINENO"; then :
18749 eval $cacheid=yes
18750 else
18751 eval $cacheid=no
18752 fi
18753 rm -f core conftest.err conftest.$ac_objext \
18754 conftest$ac_exeext conftest.$ac_ext
18755 fi
18756
18757
18758 CFLAGS="$xorg_testset_save_CFLAGS"
18759
18760 eval supported=\$$cacheid
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18762 $as_echo "$supported" >&6; }
18763 if test "$supported" = "yes" ; then
18764 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18765 found="yes"
18766 fi
18767 fi
18768
18769
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783 xorg_testset_save_CFLAGS="$CFLAGS"
18784
18785 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18786 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18788 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18789 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18790 $as_echo_n "(cached) " >&6
18791 else
18792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18793 /* end confdefs.h. */
18794 int i;
18795 _ACEOF
18796 if ac_fn_c_try_compile "$LINENO"; then :
18797 xorg_cv_cc_flag_unknown_warning_option=yes
18798 else
18799 xorg_cv_cc_flag_unknown_warning_option=no
18800 fi
18801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18802 fi
18803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18804 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18805 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18806 CFLAGS="$xorg_testset_save_CFLAGS"
18807 fi
18808
18809 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18810 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18811 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18812 fi
18813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18815 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18816 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18817 $as_echo_n "(cached) " >&6
18818 else
18819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18820 /* end confdefs.h. */
18821 int i;
18822 _ACEOF
18823 if ac_fn_c_try_compile "$LINENO"; then :
18824 xorg_cv_cc_flag_unused_command_line_argument=yes
18825 else
18826 xorg_cv_cc_flag_unused_command_line_argument=no
18827 fi
18828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18829 fi
18830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18831 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18832 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18833 CFLAGS="$xorg_testset_save_CFLAGS"
18834 fi
18835
18836 found="no"
18837
18838 if test $found = "no" ; then
18839 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18840 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18841 fi
18842
18843 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18845 fi
18846
18847 CFLAGS="$CFLAGS -Werror"
18848
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18850 $as_echo_n "checking if $CC supports -Werror... " >&6; }
18851 cacheid=xorg_cv_cc_flag__Werror
18852 if eval \${$cacheid+:} false; then :
18853 $as_echo_n "(cached) " >&6
18854 else
18855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18856 /* end confdefs.h. */
18857 int i;
18858 int
18859 main ()
18860 {
18861
18862 ;
18863 return 0;
18864 }
18865 _ACEOF
18866 if ac_fn_c_try_link "$LINENO"; then :
18867 eval $cacheid=yes
18868 else
18869 eval $cacheid=no
18870 fi
18871 rm -f core conftest.err conftest.$ac_objext \
18872 conftest$ac_exeext conftest.$ac_ext
18873 fi
18874
18875
18876 CFLAGS="$xorg_testset_save_CFLAGS"
18877
18878 eval supported=\$$cacheid
18879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18880 $as_echo "$supported" >&6; }
18881 if test "$supported" = "yes" ; then
18882 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18883 found="yes"
18884 fi
18885 fi
18886
18887 if test $found = "no" ; then
18888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18889 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18890 fi
18891
18892 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18894 fi
18895
18896 CFLAGS="$CFLAGS -errwarn"
18897
18898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18899 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
18900 cacheid=xorg_cv_cc_flag__errwarn
18901 if eval \${$cacheid+:} false; then :
18902 $as_echo_n "(cached) " >&6
18903 else
18904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18905 /* end confdefs.h. */
18906 int i;
18907 int
18908 main ()
18909 {
18910
18911 ;
18912 return 0;
18913 }
18914 _ACEOF
18915 if ac_fn_c_try_link "$LINENO"; then :
18916 eval $cacheid=yes
18917 else
18918 eval $cacheid=no
18919 fi
18920 rm -f core conftest.err conftest.$ac_objext \
18921 conftest$ac_exeext conftest.$ac_ext
18922 fi
18923
18924
18925 CFLAGS="$xorg_testset_save_CFLAGS"
18926
18927 eval supported=\$$cacheid
18928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18929 $as_echo "$supported" >&6; }
18930 if test "$supported" = "yes" ; then
18931 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18932 found="yes"
18933 fi
18934 fi
18935
18936
18937
18938 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18939 # activate it with -Werror, so we add it here explicitly.
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953 xorg_testset_save_CFLAGS="$CFLAGS"
18954
18955 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18956 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18958 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18959 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18960 $as_echo_n "(cached) " >&6
18961 else
18962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18963 /* end confdefs.h. */
18964 int i;
18965 _ACEOF
18966 if ac_fn_c_try_compile "$LINENO"; then :
18967 xorg_cv_cc_flag_unknown_warning_option=yes
18968 else
18969 xorg_cv_cc_flag_unknown_warning_option=no
18970 fi
18971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18972 fi
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18974 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18975 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18976 CFLAGS="$xorg_testset_save_CFLAGS"
18977 fi
18978
18979 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18982 fi
18983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18985 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18986 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18987 $as_echo_n "(cached) " >&6
18988 else
18989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18990 /* end confdefs.h. */
18991 int i;
18992 _ACEOF
18993 if ac_fn_c_try_compile "$LINENO"; then :
18994 xorg_cv_cc_flag_unused_command_line_argument=yes
18995 else
18996 xorg_cv_cc_flag_unused_command_line_argument=no
18997 fi
18998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18999 fi
19000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19001 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19002 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19003 CFLAGS="$xorg_testset_save_CFLAGS"
19004 fi
19005
19006 found="no"
19007
19008 if test $found = "no" ; then
19009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19011 fi
19012
19013 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19015 fi
19016
19017 CFLAGS="$CFLAGS -Werror=attributes"
19018
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19020 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
19021 cacheid=xorg_cv_cc_flag__Werror_attributes
19022 if eval \${$cacheid+:} false; then :
19023 $as_echo_n "(cached) " >&6
19024 else
19025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19026 /* end confdefs.h. */
19027 int i;
19028 int
19029 main ()
19030 {
19031
19032 ;
19033 return 0;
19034 }
19035 _ACEOF
19036 if ac_fn_c_try_link "$LINENO"; then :
19037 eval $cacheid=yes
19038 else
19039 eval $cacheid=no
19040 fi
19041 rm -f core conftest.err conftest.$ac_objext \
19042 conftest$ac_exeext conftest.$ac_ext
19043 fi
19044
19045
19046 CFLAGS="$xorg_testset_save_CFLAGS"
19047
19048 eval supported=\$$cacheid
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19050 $as_echo "$supported" >&6; }
19051 if test "$supported" = "yes" ; then
19052 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19053 found="yes"
19054 fi
19055 fi
19056
19057
19058
19059 if test "x$STRICT_COMPILE" = "xyes"; then
19060 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19061 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19062 fi
19063
19064
19065
19066
19067
19068
19069 cat >>confdefs.h <<_ACEOF
19070 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19071 _ACEOF
19072
19073 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19074 if test "x$PVM" = "x"; then
19075 PVM="0"
19076 fi
19077
19078 cat >>confdefs.h <<_ACEOF
19079 #define PACKAGE_VERSION_MINOR $PVM
19080 _ACEOF
19081
19082 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19083 if test "x$PVP" = "x"; then
19084 PVP="0"
19085 fi
19086
19087 cat >>confdefs.h <<_ACEOF
19088 #define PACKAGE_VERSION_PATCHLEVEL $PVP
19089 _ACEOF
19090
19091
19092
19093 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
19094 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19095 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
19096 echo 'git directory not found: installing possibly empty changelog.' >&2)"
19097
19098
19099
19100
19101 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19102 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19103 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19104 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
19105 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
19106
19107
19108
19109
19110
19111
19112 if test x$APP_MAN_SUFFIX = x ; then
19113 APP_MAN_SUFFIX=1
19114 fi
19115 if test x$APP_MAN_DIR = x ; then
19116 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19117 fi
19118
19119 if test x$LIB_MAN_SUFFIX = x ; then
19120 LIB_MAN_SUFFIX=3
19121 fi
19122 if test x$LIB_MAN_DIR = x ; then
19123 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19124 fi
19125
19126 if test x$FILE_MAN_SUFFIX = x ; then
19127 case $host_os in
19128 solaris*) FILE_MAN_SUFFIX=4 ;;
19129 *) FILE_MAN_SUFFIX=5 ;;
19130 esac
19131 fi
19132 if test x$FILE_MAN_DIR = x ; then
19133 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19134 fi
19135
19136 if test x$MISC_MAN_SUFFIX = x ; then
19137 case $host_os in
19138 solaris*) MISC_MAN_SUFFIX=5 ;;
19139 *) MISC_MAN_SUFFIX=7 ;;
19140 esac
19141 fi
19142 if test x$MISC_MAN_DIR = x ; then
19143 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19144 fi
19145
19146 if test x$DRIVER_MAN_SUFFIX = x ; then
19147 case $host_os in
19148 solaris*) DRIVER_MAN_SUFFIX=7 ;;
19149 *) DRIVER_MAN_SUFFIX=4 ;;
19150 esac
19151 fi
19152 if test x$DRIVER_MAN_DIR = x ; then
19153 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19154 fi
19155
19156 if test x$ADMIN_MAN_SUFFIX = x ; then
19157 case $host_os in
19158 solaris*) ADMIN_MAN_SUFFIX=1m ;;
19159 *) ADMIN_MAN_SUFFIX=8 ;;
19160 esac
19161 fi
19162 if test x$ADMIN_MAN_DIR = x ; then
19163 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19164 fi
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180 XORG_MAN_PAGE="X Version 11"
19181
19182 MAN_SUBSTS="\
19183 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19184 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19185 -e 's|__xservername__|Xorg|g' \
19186 -e 's|__xconfigfile__|xorg.conf|g' \
19187 -e 's|__projectroot__|\$(prefix)|g' \
19188 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
19189 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19190 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19191 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19192 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19193 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19194 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19195
19196
19197
19198 # Check whether --enable-silent-rules was given.
19199 if test "${enable_silent_rules+set}" = set; then :
19200 enableval=$enable_silent_rules;
19201 fi
19202
19203 case $enable_silent_rules in # (((
19204 yes) AM_DEFAULT_VERBOSITY=0;;
19205 no) AM_DEFAULT_VERBOSITY=1;;
19206 *) AM_DEFAULT_VERBOSITY=0;;
19207 esac
19208 am_make=${MAKE-make}
19209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19210 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
19211 if ${am_cv_make_support_nested_variables+:} false; then :
19212 $as_echo_n "(cached) " >&6
19213 else
19214 if $as_echo 'TRUE=$(BAR$(V))
19215 BAR0=false
19216 BAR1=true
19217 V=1
19218 am__doit:
19219 @$(TRUE)
19220 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19221 am_cv_make_support_nested_variables=yes
19222 else
19223 am_cv_make_support_nested_variables=no
19224 fi
19225 fi
19226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19227 $as_echo "$am_cv_make_support_nested_variables" >&6; }
19228 if test $am_cv_make_support_nested_variables = yes; then
19229 AM_V='$(V)'
19230 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19231 else
19232 AM_V=$AM_DEFAULT_VERBOSITY
19233 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19234 fi
19235 AM_BACKSLASH='\'
19236
19237
19238
19239
19240 # Check whether --enable-devel-docs was given.
19241 if test "${enable_devel_docs+set}" = set; then :
19242 enableval=$enable_devel_docs; build_devel_docs=$enableval
19243 else
19244 build_devel_docs=yes
19245 fi
19246
19247
19248 if test x$build_devel_docs = xyes; then
19249 ENABLE_DEVEL_DOCS_TRUE=
19250 ENABLE_DEVEL_DOCS_FALSE='#'
19251 else
19252 ENABLE_DEVEL_DOCS_TRUE='#'
19253 ENABLE_DEVEL_DOCS_FALSE=
19254 fi
19255
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5
19257 $as_echo_n "checking whether to build developer documentation... " >&6; }
19258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5
19259 $as_echo "$build_devel_docs" >&6; }
19260
19261
19262
19263
19264
19265
19266 # Check whether --with-doxygen was given.
19267 if test "${with_doxygen+set}" = set; then :
19268 withval=$with_doxygen; use_doxygen=$withval
19269 else
19270 use_doxygen=auto
19271 fi
19272
19273
19274
19275 if test "x$use_doxygen" = x"auto"; then
19276 # Extract the first word of "doxygen", so it can be a program name with args.
19277 set dummy doxygen; ac_word=$2
19278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19279 $as_echo_n "checking for $ac_word... " >&6; }
19280 if ${ac_cv_path_DOXYGEN+:} false; then :
19281 $as_echo_n "(cached) " >&6
19282 else
19283 case $DOXYGEN in
19284 [\\/]* | ?:[\\/]*)
19285 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
19286 ;;
19287 *)
19288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19289 for as_dir in $PATH
19290 do
19291 IFS=$as_save_IFS
19292 test -z "$as_dir" && as_dir=.
19293 for ac_exec_ext in '' $ac_executable_extensions; do
19294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19295 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
19296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19297 break 2
19298 fi
19299 done
19300 done
19301 IFS=$as_save_IFS
19302
19303 ;;
19304 esac
19305 fi
19306 DOXYGEN=$ac_cv_path_DOXYGEN
19307 if test -n "$DOXYGEN"; then
19308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
19309 $as_echo "$DOXYGEN" >&6; }
19310 else
19311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19312 $as_echo "no" >&6; }
19313 fi
19314
19315
19316 if test "x$DOXYGEN" = "x"; then
19317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5
19318 $as_echo "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;}
19319 have_doxygen=no
19320 else
19321 have_doxygen=yes
19322 fi
19323 elif test "x$use_doxygen" = x"yes" ; then
19324 # Extract the first word of "doxygen", so it can be a program name with args.
19325 set dummy doxygen; ac_word=$2
19326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19327 $as_echo_n "checking for $ac_word... " >&6; }
19328 if ${ac_cv_path_DOXYGEN+:} false; then :
19329 $as_echo_n "(cached) " >&6
19330 else
19331 case $DOXYGEN in
19332 [\\/]* | ?:[\\/]*)
19333 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
19334 ;;
19335 *)
19336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19337 for as_dir in $PATH
19338 do
19339 IFS=$as_save_IFS
19340 test -z "$as_dir" && as_dir=.
19341 for ac_exec_ext in '' $ac_executable_extensions; do
19342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19343 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
19344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19345 break 2
19346 fi
19347 done
19348 done
19349 IFS=$as_save_IFS
19350
19351 ;;
19352 esac
19353 fi
19354 DOXYGEN=$ac_cv_path_DOXYGEN
19355 if test -n "$DOXYGEN"; then
19356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
19357 $as_echo "$DOXYGEN" >&6; }
19358 else
19359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19360 $as_echo "no" >&6; }
19361 fi
19362
19363
19364 if test "x$DOXYGEN" = "x"; then
19365 as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5
19366 fi
19367 have_doxygen=yes
19368 elif test "x$use_doxygen" = x"no" ; then
19369 if test "x$DOXYGEN" != "x"; then
19370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5
19371 $as_echo "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;}
19372 fi
19373 have_doxygen=no
19374 else
19375 as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5
19376 fi
19377
19378
19379 HAVE_DOT=no
19380 if test "x$have_doxygen" = "xyes"; then
19381 # Extract the first word of "dot", so it can be a program name with args.
19382 set dummy dot; ac_word=$2
19383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19384 $as_echo_n "checking for $ac_word... " >&6; }
19385 if ${ac_cv_path_DOT+:} false; then :
19386 $as_echo_n "(cached) " >&6
19387 else
19388 case $DOT in
19389 [\\/]* | ?:[\\/]*)
19390 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
19391 ;;
19392 *)
19393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19394 for as_dir in $PATH
19395 do
19396 IFS=$as_save_IFS
19397 test -z "$as_dir" && as_dir=.
19398 for ac_exec_ext in '' $ac_executable_extensions; do
19399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19400 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
19401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19402 break 2
19403 fi
19404 done
19405 done
19406 IFS=$as_save_IFS
19407
19408 ;;
19409 esac
19410 fi
19411 DOT=$ac_cv_path_DOT
19412 if test -n "$DOT"; then
19413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
19414 $as_echo "$DOT" >&6; }
19415 else
19416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19417 $as_echo "no" >&6; }
19418 fi
19419
19420
19421 if test "x$DOT" != "x"; then
19422 HAVE_DOT=yes
19423 fi
19424 fi
19425
19426
19427 if test "$HAVE_DOT" = "yes"; then
19428 HAVE_DOT_TRUE=
19429 HAVE_DOT_FALSE='#'
19430 else
19431 HAVE_DOT_TRUE='#'
19432 HAVE_DOT_FALSE=
19433 fi
19434
19435 if test "$have_doxygen" = yes; then
19436 HAVE_DOXYGEN_TRUE=
19437 HAVE_DOXYGEN_FALSE='#'
19438 else
19439 HAVE_DOXYGEN_TRUE='#'
19440 HAVE_DOXYGEN_FALSE=
19441 fi
19442
19443
19444
19445 # The dot drawing tool is checked by XORG_WITH_DOXYGEN, needed for xcb manual
19446 if test x"$HAVE_DOT" = xno; then
19447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - doxygen targets will be skipped" >&5
19448 $as_echo "$as_me: WARNING: dot not found - doxygen targets will be skipped" >&2;}
19449 fi
19450
19451
19452 pkg_failed=no
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
19454 $as_echo_n "checking for CHECK... " >&6; }
19455
19456 if test -n "$CHECK_CFLAGS"; then
19457 pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
19458 elif test -n "$PKG_CONFIG"; then
19459 if test -n "$PKG_CONFIG" && \
19460 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
19461 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
19462 ac_status=$?
19463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19464 test $ac_status = 0; }; then
19465 pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
19466 test "x$?" != "x0" && pkg_failed=yes
19467 else
19468 pkg_failed=yes
19469 fi
19470 else
19471 pkg_failed=untried
19472 fi
19473 if test -n "$CHECK_LIBS"; then
19474 pkg_cv_CHECK_LIBS="$CHECK_LIBS"
19475 elif test -n "$PKG_CONFIG"; then
19476 if test -n "$PKG_CONFIG" && \
19477 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
19478 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
19479 ac_status=$?
19480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19481 test $ac_status = 0; }; then
19482 pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
19483 test "x$?" != "x0" && pkg_failed=yes
19484 else
19485 pkg_failed=yes
19486 fi
19487 else
19488 pkg_failed=untried
19489 fi
19490
19491
19492
19493 if test $pkg_failed = yes; then
19494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19495 $as_echo "no" >&6; }
19496
19497 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19498 _pkg_short_errors_supported=yes
19499 else
19500 _pkg_short_errors_supported=no
19501 fi
19502 if test $_pkg_short_errors_supported = yes; then
19503 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
19504 else
19505 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
19506 fi
19507 # Put the nasty error message in config.log where it belongs
19508 echo "$CHECK_PKG_ERRORS" >&5
19509
19510 HAVE_CHECK=no
19511 elif test $pkg_failed = untried; then
19512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19513 $as_echo "no" >&6; }
19514 HAVE_CHECK=no
19515 else
19516 CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
19517 CHECK_LIBS=$pkg_cv_CHECK_LIBS
19518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19519 $as_echo "yes" >&6; }
19520 HAVE_CHECK=yes
19521 fi
19522 if test x$HAVE_CHECK = xyes; then
19523 HAVE_CHECK_TRUE=
19524 HAVE_CHECK_FALSE='#'
19525 else
19526 HAVE_CHECK_TRUE='#'
19527 HAVE_CHECK_FALSE=
19528 fi
19529
19530
19531 XSLTPROC=no
19532 HTML_CHECK_RESULT=no
19533 if test x"$HAVE_CHECK" = xyes; then
19534 # Extract the first word of "xsltproc", so it can be a program name with args.
19535 set dummy xsltproc; ac_word=$2
19536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19537 $as_echo_n "checking for $ac_word... " >&6; }
19538 if ${ac_cv_path_XSLTPROC+:} false; then :
19539 $as_echo_n "(cached) " >&6
19540 else
19541 case $XSLTPROC in
19542 [\\/]* | ?:[\\/]*)
19543 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19544 ;;
19545 *)
19546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19547 for as_dir in $PATH
19548 do
19549 IFS=$as_save_IFS
19550 test -z "$as_dir" && as_dir=.
19551 for ac_exec_ext in '' $ac_executable_extensions; do
19552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19553 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
19554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19555 break 2
19556 fi
19557 done
19558 done
19559 IFS=$as_save_IFS
19560
19561 test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="no"
19562 ;;
19563 esac
19564 fi
19565 XSLTPROC=$ac_cv_path_XSLTPROC
19566 if test -n "$XSLTPROC"; then
19567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19568 $as_echo "$XSLTPROC" >&6; }
19569 else
19570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19571 $as_echo "no" >&6; }
19572 fi
19573
19574
19575 if test x"$XSLTPROC" != xno; then
19576 HTML_CHECK_RESULT=yes
19577 fi
19578 fi
19579
19580
19581 # Checks for pkg-config packages
19582
19583 pkg_failed=no
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCBPROTO" >&5
19585 $as_echo_n "checking for XCBPROTO... " >&6; }
19586
19587 if test -n "$XCBPROTO_CFLAGS"; then
19588 pkg_cv_XCBPROTO_CFLAGS="$XCBPROTO_CFLAGS"
19589 elif test -n "$PKG_CONFIG"; then
19590 if test -n "$PKG_CONFIG" && \
19591 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-proto >= 1.13\""; } >&5
19592 ($PKG_CONFIG --exists --print-errors "xcb-proto >= 1.13") 2>&5
19593 ac_status=$?
19594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19595 test $ac_status = 0; }; then
19596 pkg_cv_XCBPROTO_CFLAGS=`$PKG_CONFIG --cflags "xcb-proto >= 1.13" 2>/dev/null`
19597 test "x$?" != "x0" && pkg_failed=yes
19598 else
19599 pkg_failed=yes
19600 fi
19601 else
19602 pkg_failed=untried
19603 fi
19604 if test -n "$XCBPROTO_LIBS"; then
19605 pkg_cv_XCBPROTO_LIBS="$XCBPROTO_LIBS"
19606 elif test -n "$PKG_CONFIG"; then
19607 if test -n "$PKG_CONFIG" && \
19608 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-proto >= 1.13\""; } >&5
19609 ($PKG_CONFIG --exists --print-errors "xcb-proto >= 1.13") 2>&5
19610 ac_status=$?
19611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19612 test $ac_status = 0; }; then
19613 pkg_cv_XCBPROTO_LIBS=`$PKG_CONFIG --libs "xcb-proto >= 1.13" 2>/dev/null`
19614 test "x$?" != "x0" && pkg_failed=yes
19615 else
19616 pkg_failed=yes
19617 fi
19618 else
19619 pkg_failed=untried
19620 fi
19621
19622
19623
19624 if test $pkg_failed = yes; then
19625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19626 $as_echo "no" >&6; }
19627
19628 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19629 _pkg_short_errors_supported=yes
19630 else
19631 _pkg_short_errors_supported=no
19632 fi
19633 if test $_pkg_short_errors_supported = yes; then
19634 XCBPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb-proto >= 1.13" 2>&1`
19635 else
19636 XCBPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-proto >= 1.13" 2>&1`
19637 fi
19638 # Put the nasty error message in config.log where it belongs
19639 echo "$XCBPROTO_PKG_ERRORS" >&5
19640
19641 as_fn_error $? "Package requirements (xcb-proto >= 1.13) were not met:
19642
19643 $XCBPROTO_PKG_ERRORS
19644
19645 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19646 installed software in a non-standard prefix.
19647
19648 Alternatively, you may set the environment variables XCBPROTO_CFLAGS
19649 and XCBPROTO_LIBS to avoid the need to call pkg-config.
19650 See the pkg-config man page for more details." "$LINENO" 5
19651 elif test $pkg_failed = untried; then
19652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19653 $as_echo "no" >&6; }
19654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19656 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19657 is in your PATH or set the PKG_CONFIG environment variable to the full
19658 path to pkg-config.
19659
19660 Alternatively, you may set the environment variables XCBPROTO_CFLAGS
19661 and XCBPROTO_LIBS to avoid the need to call pkg-config.
19662 See the pkg-config man page for more details.
19663
19664 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19665 See \`config.log' for more details" "$LINENO" 5; }
19666 else
19667 XCBPROTO_CFLAGS=$pkg_cv_XCBPROTO_CFLAGS
19668 XCBPROTO_LIBS=$pkg_cv_XCBPROTO_LIBS
19669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19670 $as_echo "yes" >&6; }
19671
19672 fi
19673 NEEDED="pthread-stubs xau >= 0.99.2"
19674
19675 pkg_failed=no
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NEEDED" >&5
19677 $as_echo_n "checking for NEEDED... " >&6; }
19678
19679 if test -n "$NEEDED_CFLAGS"; then
19680 pkg_cv_NEEDED_CFLAGS="$NEEDED_CFLAGS"
19681 elif test -n "$PKG_CONFIG"; then
19682 if test -n "$PKG_CONFIG" && \
19683 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$NEEDED\""; } >&5
19684 ($PKG_CONFIG --exists --print-errors "$NEEDED") 2>&5
19685 ac_status=$?
19686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19687 test $ac_status = 0; }; then
19688 pkg_cv_NEEDED_CFLAGS=`$PKG_CONFIG --cflags "$NEEDED" 2>/dev/null`
19689 test "x$?" != "x0" && pkg_failed=yes
19690 else
19691 pkg_failed=yes
19692 fi
19693 else
19694 pkg_failed=untried
19695 fi
19696 if test -n "$NEEDED_LIBS"; then
19697 pkg_cv_NEEDED_LIBS="$NEEDED_LIBS"
19698 elif test -n "$PKG_CONFIG"; then
19699 if test -n "$PKG_CONFIG" && \
19700 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$NEEDED\""; } >&5
19701 ($PKG_CONFIG --exists --print-errors "$NEEDED") 2>&5
19702 ac_status=$?
19703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19704 test $ac_status = 0; }; then
19705 pkg_cv_NEEDED_LIBS=`$PKG_CONFIG --libs "$NEEDED" 2>/dev/null`
19706 test "x$?" != "x0" && pkg_failed=yes
19707 else
19708 pkg_failed=yes
19709 fi
19710 else
19711 pkg_failed=untried
19712 fi
19713
19714
19715
19716 if test $pkg_failed = yes; then
19717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19718 $as_echo "no" >&6; }
19719
19720 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19721 _pkg_short_errors_supported=yes
19722 else
19723 _pkg_short_errors_supported=no
19724 fi
19725 if test $_pkg_short_errors_supported = yes; then
19726 NEEDED_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$NEEDED" 2>&1`
19727 else
19728 NEEDED_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$NEEDED" 2>&1`
19729 fi
19730 # Put the nasty error message in config.log where it belongs
19731 echo "$NEEDED_PKG_ERRORS" >&5
19732
19733 as_fn_error $? "Package requirements ($NEEDED) were not met:
19734
19735 $NEEDED_PKG_ERRORS
19736
19737 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19738 installed software in a non-standard prefix.
19739
19740 Alternatively, you may set the environment variables NEEDED_CFLAGS
19741 and NEEDED_LIBS to avoid the need to call pkg-config.
19742 See the pkg-config man page for more details." "$LINENO" 5
19743 elif test $pkg_failed = untried; then
19744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19745 $as_echo "no" >&6; }
19746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19748 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19749 is in your PATH or set the PKG_CONFIG environment variable to the full
19750 path to pkg-config.
19751
19752 Alternatively, you may set the environment variables NEEDED_CFLAGS
19753 and NEEDED_LIBS to avoid the need to call pkg-config.
19754 See the pkg-config man page for more details.
19755
19756 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19757 See \`config.log' for more details" "$LINENO" 5; }
19758 else
19759 NEEDED_CFLAGS=$pkg_cv_NEEDED_CFLAGS
19760 NEEDED_LIBS=$pkg_cv_NEEDED_LIBS
19761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19762 $as_echo "yes" >&6; }
19763
19764 fi
19765
19766 have_xdmcp="no"
19767
19768 pkg_failed=no
19769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMCP" >&5
19770 $as_echo_n "checking for XDMCP... " >&6; }
19771
19772 if test -n "$XDMCP_CFLAGS"; then
19773 pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS"
19774 elif test -n "$PKG_CONFIG"; then
19775 if test -n "$PKG_CONFIG" && \
19776 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
19777 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
19778 ac_status=$?
19779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19780 test $ac_status = 0; }; then
19781 pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null`
19782 test "x$?" != "x0" && pkg_failed=yes
19783 else
19784 pkg_failed=yes
19785 fi
19786 else
19787 pkg_failed=untried
19788 fi
19789 if test -n "$XDMCP_LIBS"; then
19790 pkg_cv_XDMCP_LIBS="$XDMCP_LIBS"
19791 elif test -n "$PKG_CONFIG"; then
19792 if test -n "$PKG_CONFIG" && \
19793 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
19794 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
19795 ac_status=$?
19796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19797 test $ac_status = 0; }; then
19798 pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null`
19799 test "x$?" != "x0" && pkg_failed=yes
19800 else
19801 pkg_failed=yes
19802 fi
19803 else
19804 pkg_failed=untried
19805 fi
19806
19807
19808
19809 if test $pkg_failed = yes; then
19810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19811 $as_echo "no" >&6; }
19812
19813 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19814 _pkg_short_errors_supported=yes
19815 else
19816 _pkg_short_errors_supported=no
19817 fi
19818 if test $_pkg_short_errors_supported = yes; then
19819 XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xdmcp" 2>&1`
19820 else
19821 XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xdmcp" 2>&1`
19822 fi
19823 # Put the nasty error message in config.log where it belongs
19824 echo "$XDMCP_PKG_ERRORS" >&5
19825
19826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19827 $as_echo "no" >&6; }
19828 elif test $pkg_failed = untried; then
19829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19830 $as_echo "no" >&6; }
19831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19832 $as_echo "no" >&6; }
19833 else
19834 XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS
19835 XDMCP_LIBS=$pkg_cv_XDMCP_LIBS
19836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19837 $as_echo "yes" >&6; }
19838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XdmcpWrap in -lXdmcp" >&5
19839 $as_echo_n "checking for XdmcpWrap in -lXdmcp... " >&6; }
19840 if ${ac_cv_lib_Xdmcp_XdmcpWrap+:} false; then :
19841 $as_echo_n "(cached) " >&6
19842 else
19843 ac_check_lib_save_LIBS=$LIBS
19844 LIBS="-lXdmcp $XDMCP_LIBS $LIBS"
19845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19846 /* end confdefs.h. */
19847
19848 /* Override any GCC internal prototype to avoid an error.
19849 Use char because int might match the return type of a GCC
19850 builtin and then its argument prototype would still apply. */
19851 #ifdef __cplusplus
19852 extern "C"
19853 #endif
19854 char XdmcpWrap ();
19855 int
19856 main ()
19857 {
19858 return XdmcpWrap ();
19859 ;
19860 return 0;
19861 }
19862 _ACEOF
19863 if ac_fn_c_try_link "$LINENO"; then :
19864 ac_cv_lib_Xdmcp_XdmcpWrap=yes
19865 else
19866 ac_cv_lib_Xdmcp_XdmcpWrap=no
19867 fi
19868 rm -f core conftest.err conftest.$ac_objext \
19869 conftest$ac_exeext conftest.$ac_ext
19870 LIBS=$ac_check_lib_save_LIBS
19871 fi
19872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5
19873 $as_echo "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; }
19874 if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = xyes; then :
19875
19876
19877 $as_echo "#define HASXDMAUTH 1" >>confdefs.h
19878
19879 NEEDED="$NEEDED xdmcp"
19880 have_xdmcp="yes"
19881
19882 else
19883
19884 XDMCP_CFLAGS=
19885 XDMCP_LIBS=
19886
19887 fi
19888
19889 fi
19890
19891
19892
19893 # Find the xcb-proto protocol descriptions
19894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCBPROTO_XCBINCLUDEDIR" >&5
19895 $as_echo_n "checking XCBPROTO_XCBINCLUDEDIR... " >&6; }
19896 XCBPROTO_XCBINCLUDEDIR=`$PKG_CONFIG --variable=xcbincludedir xcb-proto`
19897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCBPROTO_XCBINCLUDEDIR" >&5
19898 $as_echo "$XCBPROTO_XCBINCLUDEDIR" >&6; }
19899
19900
19901 # Find the xcb-proto version
19902 XCBPROTO_VERSION=`$PKG_CONFIG --modversion xcb-proto`
19903
19904
19905 # Find the xcbgen Python package
19906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCBPROTO_XCBPYTHONDIR" >&5
19907 $as_echo_n "checking XCBPROTO_XCBPYTHONDIR... " >&6; }
19908 XCBPROTO_XCBPYTHONDIR=`$PKG_CONFIG --variable=pythondir xcb-proto`
19909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCBPROTO_XCBPYTHONDIR" >&5
19910 $as_echo "$XCBPROTO_XCBPYTHONDIR" >&6; }
19911
19912
19913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19914 $as_echo_n "checking for ANSI C header files... " >&6; }
19915 if ${ac_cv_header_stdc+:} false; then :
19916 $as_echo_n "(cached) " >&6
19917 else
19918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19919 /* end confdefs.h. */
19920 #include <stdlib.h>
19921 #include <stdarg.h>
19922 #include <string.h>
19923 #include <float.h>
19924
19925 int
19926 main ()
19927 {
19928
19929 ;
19930 return 0;
19931 }
19932 _ACEOF
19933 if ac_fn_c_try_compile "$LINENO"; then :
19934 ac_cv_header_stdc=yes
19935 else
19936 ac_cv_header_stdc=no
19937 fi
19938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19939
19940 if test $ac_cv_header_stdc = yes; then
19941 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19943 /* end confdefs.h. */
19944 #include <string.h>
19945
19946 _ACEOF
19947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19948 $EGREP "memchr" >/dev/null 2>&1; then :
19949
19950 else
19951 ac_cv_header_stdc=no
19952 fi
19953 rm -f conftest*
19954
19955 fi
19956
19957 if test $ac_cv_header_stdc = yes; then
19958 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19960 /* end confdefs.h. */
19961 #include <stdlib.h>
19962
19963 _ACEOF
19964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19965 $EGREP "free" >/dev/null 2>&1; then :
19966
19967 else
19968 ac_cv_header_stdc=no
19969 fi
19970 rm -f conftest*
19971
19972 fi
19973
19974 if test $ac_cv_header_stdc = yes; then
19975 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19976 if test "$cross_compiling" = yes; then :
19977 :
19978 else
19979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19980 /* end confdefs.h. */
19981 #include <ctype.h>
19982 #include <stdlib.h>
19983 #if ((' ' & 0x0FF) == 0x020)
19984 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19985 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19986 #else
19987 # define ISLOWER(c) \
19988 (('a' <= (c) && (c) <= 'i') \
19989 || ('j' <= (c) && (c) <= 'r') \
19990 || ('s' <= (c) && (c) <= 'z'))
19991 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19992 #endif
19993
19994 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19995 int
19996 main ()
19997 {
19998 int i;
19999 for (i = 0; i < 256; i++)
20000 if (XOR (islower (i), ISLOWER (i))
20001 || toupper (i) != TOUPPER (i))
20002 return 2;
20003 return 0;
20004 }
20005 _ACEOF
20006 if ac_fn_c_try_run "$LINENO"; then :
20007
20008 else
20009 ac_cv_header_stdc=no
20010 fi
20011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20012 conftest.$ac_objext conftest.beam conftest.$ac_ext
20013 fi
20014
20015 fi
20016 fi
20017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
20018 $as_echo "$ac_cv_header_stdc" >&6; }
20019 if test $ac_cv_header_stdc = yes; then
20020
20021 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
20022
20023 fi
20024
20025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
20026 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
20027 if ${ac_cv_search_getaddrinfo+:} false; then :
20028 $as_echo_n "(cached) " >&6
20029 else
20030 ac_func_search_save_LIBS=$LIBS
20031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20032 /* end confdefs.h. */
20033
20034 /* Override any GCC internal prototype to avoid an error.
20035 Use char because int might match the return type of a GCC
20036 builtin and then its argument prototype would still apply. */
20037 #ifdef __cplusplus
20038 extern "C"
20039 #endif
20040 char getaddrinfo ();
20041 int
20042 main ()
20043 {
20044 return getaddrinfo ();
20045 ;
20046 return 0;
20047 }
20048 _ACEOF
20049 for ac_lib in '' socket; do
20050 if test -z "$ac_lib"; then
20051 ac_res="none required"
20052 else
20053 ac_res=-l$ac_lib
20054 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20055 fi
20056 if ac_fn_c_try_link "$LINENO"; then :
20057 ac_cv_search_getaddrinfo=$ac_res
20058 fi
20059 rm -f core conftest.err conftest.$ac_objext \
20060 conftest$ac_exeext
20061 if ${ac_cv_search_getaddrinfo+:} false; then :
20062 break
20063 fi
20064 done
20065 if ${ac_cv_search_getaddrinfo+:} false; then :
20066
20067 else
20068 ac_cv_search_getaddrinfo=no
20069 fi
20070 rm conftest.$ac_ext
20071 LIBS=$ac_func_search_save_LIBS
20072 fi
20073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
20074 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
20075 ac_res=$ac_cv_search_getaddrinfo
20076 if test "$ac_res" != no; then :
20077 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20078
20079 fi
20080
20081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
20082 $as_echo_n "checking for library containing connect... " >&6; }
20083 if ${ac_cv_search_connect+:} false; then :
20084 $as_echo_n "(cached) " >&6
20085 else
20086 ac_func_search_save_LIBS=$LIBS
20087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20088 /* end confdefs.h. */
20089
20090 /* Override any GCC internal prototype to avoid an error.
20091 Use char because int might match the return type of a GCC
20092 builtin and then its argument prototype would still apply. */
20093 #ifdef __cplusplus
20094 extern "C"
20095 #endif
20096 char connect ();
20097 int
20098 main ()
20099 {
20100 return connect ();
20101 ;
20102 return 0;
20103 }
20104 _ACEOF
20105 for ac_lib in '' socket; do
20106 if test -z "$ac_lib"; then
20107 ac_res="none required"
20108 else
20109 ac_res=-l$ac_lib
20110 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20111 fi
20112 if ac_fn_c_try_link "$LINENO"; then :
20113 ac_cv_search_connect=$ac_res
20114 fi
20115 rm -f core conftest.err conftest.$ac_objext \
20116 conftest$ac_exeext
20117 if ${ac_cv_search_connect+:} false; then :
20118 break
20119 fi
20120 done
20121 if ${ac_cv_search_connect+:} false; then :
20122
20123 else
20124 ac_cv_search_connect=no
20125 fi
20126 rm conftest.$ac_ext
20127 LIBS=$ac_func_search_save_LIBS
20128 fi
20129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
20130 $as_echo "$ac_cv_search_connect" >&6; }
20131 ac_res=$ac_cv_search_connect
20132 if test "$ac_res" != no; then :
20133 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20134
20135 fi
20136
20137
20138 # Find support for sending a message from a socket
20139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5
20140 $as_echo_n "checking for library containing sendmsg... " >&6; }
20141 if ${ac_cv_search_sendmsg+:} false; then :
20142 $as_echo_n "(cached) " >&6
20143 else
20144 ac_func_search_save_LIBS=$LIBS
20145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20146 /* end confdefs.h. */
20147
20148 /* Override any GCC internal prototype to avoid an error.
20149 Use char because int might match the return type of a GCC
20150 builtin and then its argument prototype would still apply. */
20151 #ifdef __cplusplus
20152 extern "C"
20153 #endif
20154 char sendmsg ();
20155 int
20156 main ()
20157 {
20158 return sendmsg ();
20159 ;
20160 return 0;
20161 }
20162 _ACEOF
20163 for ac_lib in '' socket; do
20164 if test -z "$ac_lib"; then
20165 ac_res="none required"
20166 else
20167 ac_res=-l$ac_lib
20168 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20169 fi
20170 if ac_fn_c_try_link "$LINENO"; then :
20171 ac_cv_search_sendmsg=$ac_res
20172 fi
20173 rm -f core conftest.err conftest.$ac_objext \
20174 conftest$ac_exeext
20175 if ${ac_cv_search_sendmsg+:} false; then :
20176 break
20177 fi
20178 done
20179 if ${ac_cv_search_sendmsg+:} false; then :
20180
20181 else
20182 ac_cv_search_sendmsg=no
20183 fi
20184 rm conftest.$ac_ext
20185 LIBS=$ac_func_search_save_LIBS
20186 fi
20187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5
20188 $as_echo "$ac_cv_search_sendmsg" >&6; }
20189 ac_res=$ac_cv_search_sendmsg
20190 if test "$ac_res" != no; then :
20191 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20192 have_sendmsg="yes"
20193 else
20194 have_sendmsg="no"
20195 fi
20196
20197
20198 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
20199 # _XOPEN_SOURCE to get it (such as on Solaris)
20200 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
20201 $ac_includes_default
20202 #include <sys/socket.h>
20203
20204 "
20205 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
20206
20207 fi
20208
20209 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
20210 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
20211 unset ac_cv_member_struct_msghdr_msg_control
20212 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
20213 $as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
20214 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
20215 #define _XOPEN_SOURCE 600
20216 $ac_includes_default
20217 #include <sys/socket.h>
20218
20219 "
20220 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
20221
20222 $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
20223
20224
20225 fi
20226
20227 fi
20228 # If that didn't work, fall back to XPG5/UNIX98 with C89
20229 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
20230 unset ac_cv_member_struct_msghdr_msg_control
20231 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
20232 $as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
20233 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
20234 #define _XOPEN_SOURCE 500
20235 $ac_includes_default
20236 #include <sys/socket.h>
20237
20238 "
20239 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
20240
20241 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
20242
20243
20244 else
20245 have_sendmsg="no"
20246 fi
20247
20248 fi
20249
20250 case x$have_sendmsg in
20251 xyes)
20252
20253 $as_echo "#define HAVE_SENDMSG 1" >>confdefs.h
20254
20255 ;;
20256 esac
20257
20258 have_win32="no"
20259 lt_enable_auto_import=""
20260 case $host_os in
20261 mingw*)
20262 have_win32="yes"
20263 lt_enable_auto_import="-Wl,--enable-auto-import"
20264 ;;
20265 linux*)
20266
20267 $as_echo "#define HAVE_ABSTRACT_SOCKETS 1" >>confdefs.h
20268
20269 ;;
20270 esac
20271
20272
20273 if test "x${have_win32}" = "xyes"; then
20274 XCB_HAVE_WIN32_TRUE=
20275 XCB_HAVE_WIN32_FALSE='#'
20276 else
20277 XCB_HAVE_WIN32_TRUE='#'
20278 XCB_HAVE_WIN32_FALSE=
20279 fi
20280
20281
20282
20283 # Check whether --with-queue-size was given.
20284 if test "${with_queue_size+set}" = set; then :
20285 withval=$with_queue_size; xcb_queue_buffer_size="$withval"
20286 else
20287 xcb_queue_buffer_size=16384
20288 fi
20289
20290
20291 cat >>confdefs.h <<_ACEOF
20292 #define XCB_QUEUE_BUFFER_SIZE $xcb_queue_buffer_size
20293 _ACEOF
20294
20295
20296 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" " #include <sys/types.h>
20297 #include <sys/un.h>
20298
20299 "
20300 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
20301
20302 $as_echo "#define HAVE_SOCKADDR_SUN_LEN 1" >>confdefs.h
20303
20304 fi
20305
20306
20307 for ac_header in tsol/label.h
20308 do :
20309 ac_fn_c_check_header_mongrel "$LINENO" "tsol/label.h" "ac_cv_header_tsol_label_h" "$ac_includes_default"
20310 if test "x$ac_cv_header_tsol_label_h" = xyes; then :
20311 cat >>confdefs.h <<_ACEOF
20312 #define HAVE_TSOL_LABEL_H 1
20313 _ACEOF
20314
20315 fi
20316
20317 done
20318
20319 for ac_func in is_system_labeled
20320 do :
20321 ac_fn_c_check_func "$LINENO" "is_system_labeled" "ac_cv_func_is_system_labeled"
20322 if test "x$ac_cv_func_is_system_labeled" = xyes; then :
20323 cat >>confdefs.h <<_ACEOF
20324 #define HAVE_IS_SYSTEM_LABELED 1
20325 _ACEOF
20326
20327 fi
20328 done
20329
20330
20331 ac_fn_c_check_decl "$LINENO" "IOV_MAX" "ac_cv_have_decl_IOV_MAX" "#include <limits.h>
20332 "
20333 if test "x$ac_cv_have_decl_IOV_MAX" = xyes; then :
20334
20335 else
20336 ac_fn_c_check_decl "$LINENO" "UIO_MAXIOV" "ac_cv_have_decl_UIO_MAXIOV" "#include <sys/uio.h>
20337 "
20338 if test "x$ac_cv_have_decl_UIO_MAXIOV" = xyes; then :
20339 $as_echo "#define IOV_MAX UIO_MAXIOV" >>confdefs.h
20340
20341 else
20342
20343 $as_echo "#define IOV_MAX 16" >>confdefs.h
20344
20345 fi
20346
20347 fi
20348
20349
20350 xcbincludedir='${includedir}/xcb'
20351
20352
20353
20354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports symbol visibility" >&5
20355 $as_echo_n "checking whether ${CC} supports symbol visibility... " >&6; }
20356
20357 save_CFLAGS=${CFLAGS}
20358 CFLAGS="$CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
20359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20360 /* end confdefs.h. */
20361
20362 #pragma GCC visibility push(hidden)
20363 extern void f(int);
20364 #pragma GCC visibility pop
20365
20366 int
20367 main ()
20368 {
20369
20370
20371 ;
20372 return 0;
20373 }
20374 _ACEOF
20375 if ac_fn_c_try_compile "$LINENO"; then :
20376
20377 $as_echo "#define GCC_HAS_VISIBILITY /**/" >>confdefs.h
20378
20379 :
20380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20381 $as_echo "yes" >&6; }
20382 else
20383 :
20384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20385 $as_echo "no" >&6; }
20386 fi
20387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20388
20389 CFLAGS=${save_CFLAGS}
20390
20391
20392 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
20393 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
20394
20395 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
20396
20397 fi
20398
20399
20400 case $host_os in
20401 # darwin through Snow Leopard has poll() but can't be used to poll character devices.
20402 darwin[789]*|darwin10*) ;;
20403 darwin*)
20404 _ac_xorg_macosx_version_min=""
20405 if echo $CPPFLAGS $CFLAGS | grep -q mmacosx-version-min ; then
20406 _ac_xorg_macosx_version_min=`echo $CPPFLAGS $CFLAGS | sed 's/^.*-mmacosx-version-min=\([^ ]*\).*$/\1/'`
20407 else
20408 _ac_xorg_macosx_version_min=$MACOSX_DEPLOYMENT_TARGET
20409 fi
20410 case $_ac_xorg_macosx_version_min in
20411 10.[0123456]|10.[0123456].*) ;;
20412 *)
20413 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
20414 if test "x$ac_cv_func_poll" = xyes; then :
20415
20416 $as_echo "#define USE_POLL 1" >>confdefs.h
20417
20418 fi
20419
20420 ;;
20421 esac
20422 unset _ac_xorg_macosx_version_min
20423 ;;
20424 *)
20425 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
20426 if test "x$ac_cv_func_poll" = xyes; then :
20427
20428 $as_echo "#define USE_POLL 1" >>confdefs.h
20429
20430 fi
20431
20432 ;;
20433 esac
20434
20435 case $host_os in
20436 *mingw*)
20437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
20438 $as_echo_n "checking for main in -lws2_32... " >&6; }
20439 if ${ac_cv_lib_ws2_32_main+:} false; then :
20440 $as_echo_n "(cached) " >&6
20441 else
20442 ac_check_lib_save_LIBS=$LIBS
20443 LIBS="-lws2_32 $LIBS"
20444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20445 /* end confdefs.h. */
20446
20447
20448 int
20449 main ()
20450 {
20451 return main ();
20452 ;
20453 return 0;
20454 }
20455 _ACEOF
20456 if ac_fn_c_try_link "$LINENO"; then :
20457 ac_cv_lib_ws2_32_main=yes
20458 else
20459 ac_cv_lib_ws2_32_main=no
20460 fi
20461 rm -f core conftest.err conftest.$ac_objext \
20462 conftest$ac_exeext conftest.$ac_ext
20463 LIBS=$ac_check_lib_save_LIBS
20464 fi
20465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
20466 $as_echo "$ac_cv_lib_ws2_32_main" >&6; }
20467 if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
20468 cat >>confdefs.h <<_ACEOF
20469 #define HAVE_LIBWS2_32 1
20470 _ACEOF
20471
20472 LIBS="-lws2_32 $LIBS"
20473
20474 fi
20475
20476 ;;
20477 *)
20478 ;;
20479 esac
20480
20481
20482 # Check whether --enable-composite was given.
20483 if test "${enable_composite+set}" = set; then :
20484 enableval=$enable_composite; BUILD_COMPOSITE=$enableval
20485 else
20486 BUILD_COMPOSITE=yes
20487 fi
20488
20489
20490
20491 if test "x$BUILD_COMPOSITE" = "xyes"; then
20492 BUILD_COMPOSITE_TRUE=
20493 BUILD_COMPOSITE_FALSE='#'
20494 else
20495 BUILD_COMPOSITE_TRUE='#'
20496 BUILD_COMPOSITE_FALSE=
20497 fi
20498
20499
20500
20501 # Check whether --enable-damage was given.
20502 if test "${enable_damage+set}" = set; then :
20503 enableval=$enable_damage; BUILD_DAMAGE=$enableval
20504 else
20505 BUILD_DAMAGE=yes
20506 fi
20507
20508
20509
20510 if test "x$BUILD_DAMAGE" = "xyes"; then
20511 BUILD_DAMAGE_TRUE=
20512 BUILD_DAMAGE_FALSE='#'
20513 else
20514 BUILD_DAMAGE_TRUE='#'
20515 BUILD_DAMAGE_FALSE=
20516 fi
20517
20518
20519
20520 # Check whether --enable-dpms was given.
20521 if test "${enable_dpms+set}" = set; then :
20522 enableval=$enable_dpms; BUILD_DPMS=$enableval
20523 else
20524 BUILD_DPMS=yes
20525 fi
20526
20527
20528
20529 if test "x$BUILD_DPMS" = "xyes"; then
20530 BUILD_DPMS_TRUE=
20531 BUILD_DPMS_FALSE='#'
20532 else
20533 BUILD_DPMS_TRUE='#'
20534 BUILD_DPMS_FALSE=
20535 fi
20536
20537
20538
20539 # Check whether --enable-dri2 was given.
20540 if test "${enable_dri2+set}" = set; then :
20541 enableval=$enable_dri2; BUILD_DRI2=$enableval
20542 else
20543 BUILD_DRI2=yes
20544 fi
20545
20546
20547
20548 if test "x$BUILD_DRI2" = "xyes"; then
20549 BUILD_DRI2_TRUE=
20550 BUILD_DRI2_FALSE='#'
20551 else
20552 BUILD_DRI2_TRUE='#'
20553 BUILD_DRI2_FALSE=
20554 fi
20555
20556
20557
20558 # Check whether --enable-dri3 was given.
20559 if test "${enable_dri3+set}" = set; then :
20560 enableval=$enable_dri3; BUILD_DRI3=$enableval
20561 else
20562 BUILD_DRI3=auto
20563 fi
20564
20565
20566 # This extension has a default value of "auto" and depends on the value of $have_sendmsg
20567 if test "x$BUILD_DRI3" = "xauto" ; then
20568 BUILD_DRI3=$have_sendmsg
20569 fi
20570 if test "x$BUILD_DRI3" = "xyes" ; then
20571 if test "x$have_sendmsg" = "xno" ; then
20572 as_fn_error $? "Extension DRI3 requested, but dependencies are not met" "$LINENO" 5
20573 fi
20574 fi
20575
20576 if test "x$BUILD_DRI3" = "xyes"; then
20577 BUILD_DRI3_TRUE=
20578 BUILD_DRI3_FALSE='#'
20579 else
20580 BUILD_DRI3_TRUE='#'
20581 BUILD_DRI3_FALSE=
20582 fi
20583
20584
20585
20586 # Check whether --enable-ge was given.
20587 if test "${enable_ge+set}" = set; then :
20588 enableval=$enable_ge; BUILD_GE=$enableval
20589 else
20590 BUILD_GE=no
20591 fi
20592
20593
20594
20595 if test "x$BUILD_GE" = "xyes"; then
20596 BUILD_GE_TRUE=
20597 BUILD_GE_FALSE='#'
20598 else
20599 BUILD_GE_TRUE='#'
20600 BUILD_GE_FALSE=
20601 fi
20602
20603
20604
20605 # Check whether --enable-glx was given.
20606 if test "${enable_glx+set}" = set; then :
20607 enableval=$enable_glx; BUILD_GLX=$enableval
20608 else
20609 BUILD_GLX=yes
20610 fi
20611
20612
20613
20614 if test "x$BUILD_GLX" = "xyes"; then
20615 BUILD_GLX_TRUE=
20616 BUILD_GLX_FALSE='#'
20617 else
20618 BUILD_GLX_TRUE='#'
20619 BUILD_GLX_FALSE=
20620 fi
20621
20622
20623
20624 # Check whether --enable-present was given.
20625 if test "${enable_present+set}" = set; then :
20626 enableval=$enable_present; BUILD_PRESENT=$enableval
20627 else
20628 BUILD_PRESENT=yes
20629 fi
20630
20631
20632
20633 if test "x$BUILD_PRESENT" = "xyes"; then
20634 BUILD_PRESENT_TRUE=
20635 BUILD_PRESENT_FALSE='#'
20636 else
20637 BUILD_PRESENT_TRUE='#'
20638 BUILD_PRESENT_FALSE=
20639 fi
20640
20641
20642
20643 # Check whether --enable-randr was given.
20644 if test "${enable_randr+set}" = set; then :
20645 enableval=$enable_randr; BUILD_RANDR=$enableval
20646 else
20647 BUILD_RANDR=yes
20648 fi
20649
20650
20651
20652 if test "x$BUILD_RANDR" = "xyes"; then
20653 BUILD_RANDR_TRUE=
20654 BUILD_RANDR_FALSE='#'
20655 else
20656 BUILD_RANDR_TRUE='#'
20657 BUILD_RANDR_FALSE=
20658 fi
20659
20660
20661
20662 # Check whether --enable-record was given.
20663 if test "${enable_record+set}" = set; then :
20664 enableval=$enable_record; BUILD_RECORD=$enableval
20665 else
20666 BUILD_RECORD=yes
20667 fi
20668
20669
20670
20671 if test "x$BUILD_RECORD" = "xyes"; then
20672 BUILD_RECORD_TRUE=
20673 BUILD_RECORD_FALSE='#'
20674 else
20675 BUILD_RECORD_TRUE='#'
20676 BUILD_RECORD_FALSE=
20677 fi
20678
20679
20680
20681 # Check whether --enable-render was given.
20682 if test "${enable_render+set}" = set; then :
20683 enableval=$enable_render; BUILD_RENDER=$enableval
20684 else
20685 BUILD_RENDER=yes
20686 fi
20687
20688
20689
20690 if test "x$BUILD_RENDER" = "xyes"; then
20691 BUILD_RENDER_TRUE=
20692 BUILD_RENDER_FALSE='#'
20693 else
20694 BUILD_RENDER_TRUE='#'
20695 BUILD_RENDER_FALSE=
20696 fi
20697
20698
20699
20700 # Check whether --enable-resource was given.
20701 if test "${enable_resource+set}" = set; then :
20702 enableval=$enable_resource; BUILD_RESOURCE=$enableval
20703 else
20704 BUILD_RESOURCE=yes
20705 fi
20706
20707
20708
20709 if test "x$BUILD_RESOURCE" = "xyes"; then
20710 BUILD_RESOURCE_TRUE=
20711 BUILD_RESOURCE_FALSE='#'
20712 else
20713 BUILD_RESOURCE_TRUE='#'
20714 BUILD_RESOURCE_FALSE=
20715 fi
20716
20717
20718
20719 # Check whether --enable-screensaver was given.
20720 if test "${enable_screensaver+set}" = set; then :
20721 enableval=$enable_screensaver; BUILD_SCREENSAVER=$enableval
20722 else
20723 BUILD_SCREENSAVER=yes
20724 fi
20725
20726
20727
20728 if test "x$BUILD_SCREENSAVER" = "xyes"; then
20729 BUILD_SCREENSAVER_TRUE=
20730 BUILD_SCREENSAVER_FALSE='#'
20731 else
20732 BUILD_SCREENSAVER_TRUE='#'
20733 BUILD_SCREENSAVER_FALSE=
20734 fi
20735
20736
20737
20738 # Check whether --enable-shape was given.
20739 if test "${enable_shape+set}" = set; then :
20740 enableval=$enable_shape; BUILD_SHAPE=$enableval
20741 else
20742 BUILD_SHAPE=yes
20743 fi
20744
20745
20746
20747 if test "x$BUILD_SHAPE" = "xyes"; then
20748 BUILD_SHAPE_TRUE=
20749 BUILD_SHAPE_FALSE='#'
20750 else
20751 BUILD_SHAPE_TRUE='#'
20752 BUILD_SHAPE_FALSE=
20753 fi
20754
20755
20756
20757 # Check whether --enable-shm was given.
20758 if test "${enable_shm+set}" = set; then :
20759 enableval=$enable_shm; BUILD_SHM=$enableval
20760 else
20761 BUILD_SHM=yes
20762 fi
20763
20764
20765
20766 if test "x$BUILD_SHM" = "xyes"; then
20767 BUILD_SHM_TRUE=
20768 BUILD_SHM_FALSE='#'
20769 else
20770 BUILD_SHM_TRUE='#'
20771 BUILD_SHM_FALSE=
20772 fi
20773
20774
20775
20776 # Check whether --enable-sync was given.
20777 if test "${enable_sync+set}" = set; then :
20778 enableval=$enable_sync; BUILD_SYNC=$enableval
20779 else
20780 BUILD_SYNC=yes
20781 fi
20782
20783
20784
20785 if test "x$BUILD_SYNC" = "xyes"; then
20786 BUILD_SYNC_TRUE=
20787 BUILD_SYNC_FALSE='#'
20788 else
20789 BUILD_SYNC_TRUE='#'
20790 BUILD_SYNC_FALSE=
20791 fi
20792
20793
20794
20795 # Check whether --enable-xevie was given.
20796 if test "${enable_xevie+set}" = set; then :
20797 enableval=$enable_xevie; BUILD_XEVIE=$enableval
20798 else
20799 BUILD_XEVIE=no
20800 fi
20801
20802
20803
20804 if test "x$BUILD_XEVIE" = "xyes"; then
20805 BUILD_XEVIE_TRUE=
20806 BUILD_XEVIE_FALSE='#'
20807 else
20808 BUILD_XEVIE_TRUE='#'
20809 BUILD_XEVIE_FALSE=
20810 fi
20811
20812
20813
20814 # Check whether --enable-xfixes was given.
20815 if test "${enable_xfixes+set}" = set; then :
20816 enableval=$enable_xfixes; BUILD_XFIXES=$enableval
20817 else
20818 BUILD_XFIXES=yes
20819 fi
20820
20821
20822
20823 if test "x$BUILD_XFIXES" = "xyes"; then
20824 BUILD_XFIXES_TRUE=
20825 BUILD_XFIXES_FALSE='#'
20826 else
20827 BUILD_XFIXES_TRUE='#'
20828 BUILD_XFIXES_FALSE=
20829 fi
20830
20831
20832
20833 # Check whether --enable-xfree86-dri was given.
20834 if test "${enable_xfree86_dri+set}" = set; then :
20835 enableval=$enable_xfree86_dri; BUILD_XFREE86_DRI=$enableval
20836 else
20837 BUILD_XFREE86_DRI=yes
20838 fi
20839
20840
20841
20842 if test "x$BUILD_XFREE86_DRI" = "xyes"; then
20843 BUILD_XFREE86_DRI_TRUE=
20844 BUILD_XFREE86_DRI_FALSE='#'
20845 else
20846 BUILD_XFREE86_DRI_TRUE='#'
20847 BUILD_XFREE86_DRI_FALSE=
20848 fi
20849
20850
20851
20852 # Check whether --enable-xinerama was given.
20853 if test "${enable_xinerama+set}" = set; then :
20854 enableval=$enable_xinerama; BUILD_XINERAMA=$enableval
20855 else
20856 BUILD_XINERAMA=yes
20857 fi
20858
20859
20860
20861 if test "x$BUILD_XINERAMA" = "xyes"; then
20862 BUILD_XINERAMA_TRUE=
20863 BUILD_XINERAMA_FALSE='#'
20864 else
20865 BUILD_XINERAMA_TRUE='#'
20866 BUILD_XINERAMA_FALSE=
20867 fi
20868
20869
20870
20871 # Check whether --enable-xinput was given.
20872 if test "${enable_xinput+set}" = set; then :
20873 enableval=$enable_xinput; BUILD_XINPUT=$enableval
20874 else
20875 BUILD_XINPUT=yes
20876 fi
20877
20878
20879
20880 if test "x$BUILD_XINPUT" = "xyes"; then
20881 BUILD_XINPUT_TRUE=
20882 BUILD_XINPUT_FALSE='#'
20883 else
20884 BUILD_XINPUT_TRUE='#'
20885 BUILD_XINPUT_FALSE=
20886 fi
20887
20888
20889
20890 # Check whether --enable-xkb was given.
20891 if test "${enable_xkb+set}" = set; then :
20892 enableval=$enable_xkb; BUILD_XKB=$enableval
20893 else
20894 BUILD_XKB=yes
20895 fi
20896
20897
20898
20899 if test "x$BUILD_XKB" = "xyes"; then
20900 BUILD_XKB_TRUE=
20901 BUILD_XKB_FALSE='#'
20902 else
20903 BUILD_XKB_TRUE='#'
20904 BUILD_XKB_FALSE=
20905 fi
20906
20907
20908
20909 # Check whether --enable-xprint was given.
20910 if test "${enable_xprint+set}" = set; then :
20911 enableval=$enable_xprint; BUILD_XPRINT=$enableval
20912 else
20913 BUILD_XPRINT=no
20914 fi
20915
20916
20917
20918 if test "x$BUILD_XPRINT" = "xyes"; then
20919 BUILD_XPRINT_TRUE=
20920 BUILD_XPRINT_FALSE='#'
20921 else
20922 BUILD_XPRINT_TRUE='#'
20923 BUILD_XPRINT_FALSE=
20924 fi
20925
20926
20927
20928 # Check whether --enable-selinux was given.
20929 if test "${enable_selinux+set}" = set; then :
20930 enableval=$enable_selinux; BUILD_SELINUX=$enableval
20931 else
20932 BUILD_SELINUX=no
20933 fi
20934
20935
20936
20937 if test "x$BUILD_SELINUX" = "xyes"; then
20938 BUILD_SELINUX_TRUE=
20939 BUILD_SELINUX_FALSE='#'
20940 else
20941 BUILD_SELINUX_TRUE='#'
20942 BUILD_SELINUX_FALSE=
20943 fi
20944
20945
20946
20947 # Check whether --enable-xtest was given.
20948 if test "${enable_xtest+set}" = set; then :
20949 enableval=$enable_xtest; BUILD_XTEST=$enableval
20950 else
20951 BUILD_XTEST=yes
20952 fi
20953
20954
20955
20956 if test "x$BUILD_XTEST" = "xyes"; then
20957 BUILD_XTEST_TRUE=
20958 BUILD_XTEST_FALSE='#'
20959 else
20960 BUILD_XTEST_TRUE='#'
20961 BUILD_XTEST_FALSE=
20962 fi
20963
20964
20965
20966 # Check whether --enable-xv was given.
20967 if test "${enable_xv+set}" = set; then :
20968 enableval=$enable_xv; BUILD_XV=$enableval
20969 else
20970 BUILD_XV=yes
20971 fi
20972
20973
20974
20975 if test "x$BUILD_XV" = "xyes"; then
20976 BUILD_XV_TRUE=
20977 BUILD_XV_FALSE='#'
20978 else
20979 BUILD_XV_TRUE='#'
20980 BUILD_XV_FALSE=
20981 fi
20982
20983
20984
20985 # Check whether --enable-xvmc was given.
20986 if test "${enable_xvmc+set}" = set; then :
20987 enableval=$enable_xvmc; BUILD_XVMC=$enableval
20988 else
20989 BUILD_XVMC=yes
20990 fi
20991
20992
20993
20994 if test "x$BUILD_XVMC" = "xyes"; then
20995 BUILD_XVMC_TRUE=
20996 BUILD_XVMC_FALSE='#'
20997 else
20998 BUILD_XVMC_TRUE='#'
20999 BUILD_XVMC_FALSE=
21000 fi
21001
21002
21003
21004
21005 # Check whether --with-launchd was given.
21006 if test "${with_launchd+set}" = set; then :
21007 withval=$with_launchd; LAUNCHD=$withval
21008 else
21009 LAUNCHD=auto
21010 fi
21011
21012 if test "x$LAUNCHD" = xauto; then
21013 unset LAUNCHD
21014 # Extract the first word of "launchd", so it can be a program name with args.
21015 set dummy launchd; ac_word=$2
21016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21017 $as_echo_n "checking for $ac_word... " >&6; }
21018 if ${ac_cv_prog_LAUNCHD+:} false; then :
21019 $as_echo_n "(cached) " >&6
21020 else
21021 if test -n "$LAUNCHD"; then
21022 ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
21023 else
21024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21025 for as_dir in $PATH$PATH_SEPARATOR/sbin
21026 do
21027 IFS=$as_save_IFS
21028 test -z "$as_dir" && as_dir=.
21029 for ac_exec_ext in '' $ac_executable_extensions; do
21030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21031 ac_cv_prog_LAUNCHD="yes"
21032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21033 break 2
21034 fi
21035 done
21036 done
21037 IFS=$as_save_IFS
21038
21039 test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
21040 fi
21041 fi
21042 LAUNCHD=$ac_cv_prog_LAUNCHD
21043 if test -n "$LAUNCHD"; then
21044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5
21045 $as_echo "$LAUNCHD" >&6; }
21046 else
21047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21048 $as_echo "no" >&6; }
21049 fi
21050
21051
21052 fi
21053
21054 if test "x$LAUNCHD" = xyes ; then
21055
21056 $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
21057
21058 fi
21059
21060
21061 # Check whether --with-serverside-support was given.
21062 if test "${with_serverside_support+set}" = set; then :
21063 withval=$with_serverside_support; XCB_SERVERSIDE_SUPPORT=$withval
21064 else
21065 XCB_SERVERSIDE_SUPPORT=no
21066 fi
21067
21068
21069 if test "x$XCB_SERVERSIDE_SUPPORT" = "xyes"; then
21070 XCB_SERVERSIDE_SUPPORT_TRUE=
21071 XCB_SERVERSIDE_SUPPORT_FALSE='#'
21072 else
21073 XCB_SERVERSIDE_SUPPORT_TRUE='#'
21074 XCB_SERVERSIDE_SUPPORT_FALSE=
21075 fi
21076
21077
21078 ac_config_files="$ac_config_files Makefile doc/Makefile man/Makefile src/Makefile tests/Makefile"
21079
21080
21081 ac_config_files="$ac_config_files xcb.pc xcb-composite.pc xcb-damage.pc xcb-dpms.pc xcb-dri2.pc xcb-dri3.pc xcb-ge.pc xcb-glx.pc xcb-present.pc xcb-randr.pc xcb-record.pc xcb-render.pc xcb-res.pc xcb-screensaver.pc xcb-shape.pc xcb-shm.pc xcb-sync.pc xcb-xevie.pc xcb-xf86dri.pc xcb-xfixes.pc xcb-xinerama.pc xcb-xinput.pc xcb-xkb.pc xcb-xprint.pc xcb-xselinux.pc xcb-xtest.pc xcb-xv.pc xcb-xvmc.pc"
21082
21083
21084 ac_config_files="$ac_config_files doc/xcb.doxygen"
21085
21086
21087 cat >confcache <<\_ACEOF
21088 # This file is a shell script that caches the results of configure
21089 # tests run on this system so they can be shared between configure
21090 # scripts and configure runs, see configure's option --config-cache.
21091 # It is not useful on other systems. If it contains results you don't
21092 # want to keep, you may remove or edit it.
21093 #
21094 # config.status only pays attention to the cache file if you give it
21095 # the --recheck option to rerun configure.
21096 #
21097 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21098 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21099 # following values.
21100
21101 _ACEOF
21102
21103 # The following way of writing the cache mishandles newlines in values,
21104 # but we know of no workaround that is simple, portable, and efficient.
21105 # So, we kill variables containing newlines.
21106 # Ultrix sh set writes to stderr and can't be redirected directly,
21107 # and sets the high bit in the cache file unless we assign to the vars.
21108 (
21109 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21110 eval ac_val=\$$ac_var
21111 case $ac_val in #(
21112 *${as_nl}*)
21113 case $ac_var in #(
21114 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21115 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21116 esac
21117 case $ac_var in #(
21118 _ | IFS | as_nl) ;; #(
21119 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21120 *) { eval $ac_var=; unset $ac_var;} ;;
21121 esac ;;
21122 esac
21123 done
21124
21125 (set) 2>&1 |
21126 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21127 *${as_nl}ac_space=\ *)
21128 # `set' does not quote correctly, so add quotes: double-quote
21129 # substitution turns \\\\ into \\, and sed turns \\ into \.
21130 sed -n \
21131 "s/'/'\\\\''/g;
21132 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21133 ;; #(
21134 *)
21135 # `set' quotes correctly as required by POSIX, so do not add quotes.
21136 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21137 ;;
21138 esac |
21139 sort
21140 ) |
21141 sed '
21142 /^ac_cv_env_/b end
21143 t clear
21144 :clear
21145 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21146 t end
21147 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21148 :end' >>confcache
21149 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21150 if test -w "$cache_file"; then
21151 if test "x$cache_file" != "x/dev/null"; then
21152 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21153 $as_echo "$as_me: updating cache $cache_file" >&6;}
21154 if test ! -f "$cache_file" || test -h "$cache_file"; then
21155 cat confcache >"$cache_file"
21156 else
21157 case $cache_file in #(
21158 */* | ?:*)
21159 mv -f confcache "$cache_file"$$ &&
21160 mv -f "$cache_file"$$ "$cache_file" ;; #(
21161 *)
21162 mv -f confcache "$cache_file" ;;
21163 esac
21164 fi
21165 fi
21166 else
21167 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21168 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21169 fi
21170 fi
21171 rm -f confcache
21172
21173 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21174 # Let make expand exec_prefix.
21175 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21176
21177 DEFS=-DHAVE_CONFIG_H
21178
21179 ac_libobjs=
21180 ac_ltlibobjs=
21181 U=
21182 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21183 # 1. Remove the extension, and $U if already installed.
21184 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21185 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21186 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21187 # will be set to the directory where LIBOBJS objects are built.
21188 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21189 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21190 done
21191 LIBOBJS=$ac_libobjs
21192
21193 LTLIBOBJS=$ac_ltlibobjs
21194
21195
21196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21197 $as_echo_n "checking that generated files are newer than configure... " >&6; }
21198 if test -n "$am_sleep_pid"; then
21199 # Hide warnings about reused PIDs.
21200 wait $am_sleep_pid 2>/dev/null
21201 fi
21202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21203 $as_echo "done" >&6; }
21204 if test -n "$EXEEXT"; then
21205 am__EXEEXT_TRUE=
21206 am__EXEEXT_FALSE='#'
21207 else
21208 am__EXEEXT_TRUE='#'
21209 am__EXEEXT_FALSE=
21210 fi
21211
21212 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21213 as_fn_error $? "conditional \"AMDEP\" was never defined.
21214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21215 fi
21216 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21217 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21218 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21219 fi
21220 if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then
21221 as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined.
21222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21223 fi
21224 if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then
21225 as_fn_error $? "conditional \"HAVE_DOT\" was never defined.
21226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21227 fi
21228 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
21229 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
21230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21231 fi
21232 if test -z "${HAVE_CHECK_TRUE}" && test -z "${HAVE_CHECK_FALSE}"; then
21233 as_fn_error $? "conditional \"HAVE_CHECK\" was never defined.
21234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21235 fi
21236 if test -z "${XCB_HAVE_WIN32_TRUE}" && test -z "${XCB_HAVE_WIN32_FALSE}"; then
21237 as_fn_error $? "conditional \"XCB_HAVE_WIN32\" was never defined.
21238 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21239 fi
21240 if test -z "${BUILD_COMPOSITE_TRUE}" && test -z "${BUILD_COMPOSITE_FALSE}"; then
21241 as_fn_error $? "conditional \"BUILD_COMPOSITE\" was never defined.
21242 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21243 fi
21244 if test -z "${BUILD_DAMAGE_TRUE}" && test -z "${BUILD_DAMAGE_FALSE}"; then
21245 as_fn_error $? "conditional \"BUILD_DAMAGE\" was never defined.
21246 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21247 fi
21248 if test -z "${BUILD_DPMS_TRUE}" && test -z "${BUILD_DPMS_FALSE}"; then
21249 as_fn_error $? "conditional \"BUILD_DPMS\" was never defined.
21250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21251 fi
21252 if test -z "${BUILD_DRI2_TRUE}" && test -z "${BUILD_DRI2_FALSE}"; then
21253 as_fn_error $? "conditional \"BUILD_DRI2\" was never defined.
21254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21255 fi
21256 if test -z "${BUILD_DRI3_TRUE}" && test -z "${BUILD_DRI3_FALSE}"; then
21257 as_fn_error $? "conditional \"BUILD_DRI3\" was never defined.
21258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21259 fi
21260 if test -z "${BUILD_GE_TRUE}" && test -z "${BUILD_GE_FALSE}"; then
21261 as_fn_error $? "conditional \"BUILD_GE\" was never defined.
21262 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21263 fi
21264 if test -z "${BUILD_GLX_TRUE}" && test -z "${BUILD_GLX_FALSE}"; then
21265 as_fn_error $? "conditional \"BUILD_GLX\" was never defined.
21266 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21267 fi
21268 if test -z "${BUILD_PRESENT_TRUE}" && test -z "${BUILD_PRESENT_FALSE}"; then
21269 as_fn_error $? "conditional \"BUILD_PRESENT\" was never defined.
21270 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21271 fi
21272 if test -z "${BUILD_RANDR_TRUE}" && test -z "${BUILD_RANDR_FALSE}"; then
21273 as_fn_error $? "conditional \"BUILD_RANDR\" was never defined.
21274 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21275 fi
21276 if test -z "${BUILD_RECORD_TRUE}" && test -z "${BUILD_RECORD_FALSE}"; then
21277 as_fn_error $? "conditional \"BUILD_RECORD\" was never defined.
21278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21279 fi
21280 if test -z "${BUILD_RENDER_TRUE}" && test -z "${BUILD_RENDER_FALSE}"; then
21281 as_fn_error $? "conditional \"BUILD_RENDER\" was never defined.
21282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21283 fi
21284 if test -z "${BUILD_RESOURCE_TRUE}" && test -z "${BUILD_RESOURCE_FALSE}"; then
21285 as_fn_error $? "conditional \"BUILD_RESOURCE\" was never defined.
21286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21287 fi
21288 if test -z "${BUILD_SCREENSAVER_TRUE}" && test -z "${BUILD_SCREENSAVER_FALSE}"; then
21289 as_fn_error $? "conditional \"BUILD_SCREENSAVER\" was never defined.
21290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21291 fi
21292 if test -z "${BUILD_SHAPE_TRUE}" && test -z "${BUILD_SHAPE_FALSE}"; then
21293 as_fn_error $? "conditional \"BUILD_SHAPE\" was never defined.
21294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21295 fi
21296 if test -z "${BUILD_SHM_TRUE}" && test -z "${BUILD_SHM_FALSE}"; then
21297 as_fn_error $? "conditional \"BUILD_SHM\" was never defined.
21298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21299 fi
21300 if test -z "${BUILD_SYNC_TRUE}" && test -z "${BUILD_SYNC_FALSE}"; then
21301 as_fn_error $? "conditional \"BUILD_SYNC\" was never defined.
21302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21303 fi
21304 if test -z "${BUILD_XEVIE_TRUE}" && test -z "${BUILD_XEVIE_FALSE}"; then
21305 as_fn_error $? "conditional \"BUILD_XEVIE\" was never defined.
21306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21307 fi
21308 if test -z "${BUILD_XFIXES_TRUE}" && test -z "${BUILD_XFIXES_FALSE}"; then
21309 as_fn_error $? "conditional \"BUILD_XFIXES\" was never defined.
21310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21311 fi
21312 if test -z "${BUILD_XFREE86_DRI_TRUE}" && test -z "${BUILD_XFREE86_DRI_FALSE}"; then
21313 as_fn_error $? "conditional \"BUILD_XFREE86_DRI\" was never defined.
21314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21315 fi
21316 if test -z "${BUILD_XINERAMA_TRUE}" && test -z "${BUILD_XINERAMA_FALSE}"; then
21317 as_fn_error $? "conditional \"BUILD_XINERAMA\" was never defined.
21318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21319 fi
21320 if test -z "${BUILD_XINPUT_TRUE}" && test -z "${BUILD_XINPUT_FALSE}"; then
21321 as_fn_error $? "conditional \"BUILD_XINPUT\" was never defined.
21322 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21323 fi
21324 if test -z "${BUILD_XKB_TRUE}" && test -z "${BUILD_XKB_FALSE}"; then
21325 as_fn_error $? "conditional \"BUILD_XKB\" was never defined.
21326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21327 fi
21328 if test -z "${BUILD_XPRINT_TRUE}" && test -z "${BUILD_XPRINT_FALSE}"; then
21329 as_fn_error $? "conditional \"BUILD_XPRINT\" was never defined.
21330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21331 fi
21332 if test -z "${BUILD_SELINUX_TRUE}" && test -z "${BUILD_SELINUX_FALSE}"; then
21333 as_fn_error $? "conditional \"BUILD_SELINUX\" was never defined.
21334 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21335 fi
21336 if test -z "${BUILD_XTEST_TRUE}" && test -z "${BUILD_XTEST_FALSE}"; then
21337 as_fn_error $? "conditional \"BUILD_XTEST\" was never defined.
21338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21339 fi
21340 if test -z "${BUILD_XV_TRUE}" && test -z "${BUILD_XV_FALSE}"; then
21341 as_fn_error $? "conditional \"BUILD_XV\" was never defined.
21342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21343 fi
21344 if test -z "${BUILD_XVMC_TRUE}" && test -z "${BUILD_XVMC_FALSE}"; then
21345 as_fn_error $? "conditional \"BUILD_XVMC\" was never defined.
21346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21347 fi
21348 if test -z "${XCB_SERVERSIDE_SUPPORT_TRUE}" && test -z "${XCB_SERVERSIDE_SUPPORT_FALSE}"; then
21349 as_fn_error $? "conditional \"XCB_SERVERSIDE_SUPPORT\" was never defined.
21350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21351 fi
21352
21353 : "${CONFIG_STATUS=./config.status}"
21354 ac_write_fail=0
21355 ac_clean_files_save=$ac_clean_files
21356 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21357 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21358 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21359 as_write_fail=0
21360 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21361 #! $SHELL
21362 # Generated by $as_me.
21363 # Run this file to recreate the current configuration.
21364 # Compiler output produced by configure, useful for debugging
21365 # configure, is in config.log if it exists.
21366
21367 debug=false
21368 ac_cs_recheck=false
21369 ac_cs_silent=false
21370
21371 SHELL=\${CONFIG_SHELL-$SHELL}
21372 export SHELL
21373 _ASEOF
21374 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21375 ## -------------------- ##
21376 ## M4sh Initialization. ##
21377 ## -------------------- ##
21378
21379 # Be more Bourne compatible
21380 DUALCASE=1; export DUALCASE # for MKS sh
21381 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21382 emulate sh
21383 NULLCMD=:
21384 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21385 # is contrary to our usage. Disable this feature.
21386 alias -g '${1+"$@"}'='"$@"'
21387 setopt NO_GLOB_SUBST
21388 else
21389 case `(set -o) 2>/dev/null` in #(
21390 *posix*) :
21391 set -o posix ;; #(
21392 *) :
21393 ;;
21394 esac
21395 fi
21396
21397
21398 as_nl='
21399 '
21400 export as_nl
21401 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21402 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21403 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21404 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21405 # Prefer a ksh shell builtin over an external printf program on Solaris,
21406 # but without wasting forks for bash or zsh.
21407 if test -z "$BASH_VERSION$ZSH_VERSION" \
21408 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21409 as_echo='print -r --'
21410 as_echo_n='print -rn --'
21411 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21412 as_echo='printf %s\n'
21413 as_echo_n='printf %s'
21414 else
21415 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21416 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21417 as_echo_n='/usr/ucb/echo -n'
21418 else
21419 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21420 as_echo_n_body='eval
21421 arg=$1;
21422 case $arg in #(
21423 *"$as_nl"*)
21424 expr "X$arg" : "X\\(.*\\)$as_nl";
21425 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21426 esac;
21427 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21428 '
21429 export as_echo_n_body
21430 as_echo_n='sh -c $as_echo_n_body as_echo'
21431 fi
21432 export as_echo_body
21433 as_echo='sh -c $as_echo_body as_echo'
21434 fi
21435
21436 # The user is always right.
21437 if test "${PATH_SEPARATOR+set}" != set; then
21438 PATH_SEPARATOR=:
21439 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21440 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21441 PATH_SEPARATOR=';'
21442 }
21443 fi
21444
21445
21446 # IFS
21447 # We need space, tab and new line, in precisely that order. Quoting is
21448 # there to prevent editors from complaining about space-tab.
21449 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21450 # splitting by setting IFS to empty value.)
21451 IFS=" "" $as_nl"
21452
21453 # Find who we are. Look in the path if we contain no directory separator.
21454 as_myself=
21455 case $0 in #((
21456 *[\\/]* ) as_myself=$0 ;;
21457 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21458 for as_dir in $PATH
21459 do
21460 IFS=$as_save_IFS
21461 test -z "$as_dir" && as_dir=.
21462 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21463 done
21464 IFS=$as_save_IFS
21465
21466 ;;
21467 esac
21468 # We did not find ourselves, most probably we were run as `sh COMMAND'
21469 # in which case we are not to be found in the path.
21470 if test "x$as_myself" = x; then
21471 as_myself=$0
21472 fi
21473 if test ! -f "$as_myself"; then
21474 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21475 exit 1
21476 fi
21477
21478 # Unset variables that we do not need and which cause bugs (e.g. in
21479 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21480 # suppresses any "Segmentation fault" message there. '((' could
21481 # trigger a bug in pdksh 5.2.14.
21482 for as_var in BASH_ENV ENV MAIL MAILPATH
21483 do eval test x\${$as_var+set} = xset \
21484 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21485 done
21486 PS1='$ '
21487 PS2='> '
21488 PS4='+ '
21489
21490 # NLS nuisances.
21491 LC_ALL=C
21492 export LC_ALL
21493 LANGUAGE=C
21494 export LANGUAGE
21495
21496 # CDPATH.
21497 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21498
21499
21500 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21501 # ----------------------------------------
21502 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21503 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21504 # script with STATUS, using 1 if that was 0.
21505 as_fn_error ()
21506 {
21507 as_status=$1; test $as_status -eq 0 && as_status=1
21508 if test "$4"; then
21509 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21510 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21511 fi
21512 $as_echo "$as_me: error: $2" >&2
21513 as_fn_exit $as_status
21514 } # as_fn_error
21515
21516
21517 # as_fn_set_status STATUS
21518 # -----------------------
21519 # Set $? to STATUS, without forking.
21520 as_fn_set_status ()
21521 {
21522 return $1
21523 } # as_fn_set_status
21524
21525 # as_fn_exit STATUS
21526 # -----------------
21527 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21528 as_fn_exit ()
21529 {
21530 set +e
21531 as_fn_set_status $1
21532 exit $1
21533 } # as_fn_exit
21534
21535 # as_fn_unset VAR
21536 # ---------------
21537 # Portably unset VAR.
21538 as_fn_unset ()
21539 {
21540 { eval $1=; unset $1;}
21541 }
21542 as_unset=as_fn_unset
21543 # as_fn_append VAR VALUE
21544 # ----------------------
21545 # Append the text in VALUE to the end of the definition contained in VAR. Take
21546 # advantage of any shell optimizations that allow amortized linear growth over
21547 # repeated appends, instead of the typical quadratic growth present in naive
21548 # implementations.
21549 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21550 eval 'as_fn_append ()
21551 {
21552 eval $1+=\$2
21553 }'
21554 else
21555 as_fn_append ()
21556 {
21557 eval $1=\$$1\$2
21558 }
21559 fi # as_fn_append
21560
21561 # as_fn_arith ARG...
21562 # ------------------
21563 # Perform arithmetic evaluation on the ARGs, and store the result in the
21564 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21565 # must be portable across $(()) and expr.
21566 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21567 eval 'as_fn_arith ()
21568 {
21569 as_val=$(( $* ))
21570 }'
21571 else
21572 as_fn_arith ()
21573 {
21574 as_val=`expr "$@" || test $? -eq 1`
21575 }
21576 fi # as_fn_arith
21577
21578
21579 if expr a : '\(a\)' >/dev/null 2>&1 &&
21580 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21581 as_expr=expr
21582 else
21583 as_expr=false
21584 fi
21585
21586 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21587 as_basename=basename
21588 else
21589 as_basename=false
21590 fi
21591
21592 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21593 as_dirname=dirname
21594 else
21595 as_dirname=false
21596 fi
21597
21598 as_me=`$as_basename -- "$0" ||
21599 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21600 X"$0" : 'X\(//\)$' \| \
21601 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21602 $as_echo X/"$0" |
21603 sed '/^.*\/\([^/][^/]*\)\/*$/{
21604 s//\1/
21605 q
21606 }
21607 /^X\/\(\/\/\)$/{
21608 s//\1/
21609 q
21610 }
21611 /^X\/\(\/\).*/{
21612 s//\1/
21613 q
21614 }
21615 s/.*/./; q'`
21616
21617 # Avoid depending upon Character Ranges.
21618 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21619 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21620 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21621 as_cr_digits='0123456789'
21622 as_cr_alnum=$as_cr_Letters$as_cr_digits
21623
21624 ECHO_C= ECHO_N= ECHO_T=
21625 case `echo -n x` in #(((((
21626 -n*)
21627 case `echo 'xy\c'` in
21628 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21629 xy) ECHO_C='\c';;
21630 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21631 ECHO_T=' ';;
21632 esac;;
21633 *)
21634 ECHO_N='-n';;
21635 esac
21636
21637 rm -f conf$$ conf$$.exe conf$$.file
21638 if test -d conf$$.dir; then
21639 rm -f conf$$.dir/conf$$.file
21640 else
21641 rm -f conf$$.dir
21642 mkdir conf$$.dir 2>/dev/null
21643 fi
21644 if (echo >conf$$.file) 2>/dev/null; then
21645 if ln -s conf$$.file conf$$ 2>/dev/null; then
21646 as_ln_s='ln -s'
21647 # ... but there are two gotchas:
21648 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21649 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21650 # In both cases, we have to default to `cp -pR'.
21651 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21652 as_ln_s='cp -pR'
21653 elif ln conf$$.file conf$$ 2>/dev/null; then
21654 as_ln_s=ln
21655 else
21656 as_ln_s='cp -pR'
21657 fi
21658 else
21659 as_ln_s='cp -pR'
21660 fi
21661 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21662 rmdir conf$$.dir 2>/dev/null
21663
21664
21665 # as_fn_mkdir_p
21666 # -------------
21667 # Create "$as_dir" as a directory, including parents if necessary.
21668 as_fn_mkdir_p ()
21669 {
21670
21671 case $as_dir in #(
21672 -*) as_dir=./$as_dir;;
21673 esac
21674 test -d "$as_dir" || eval $as_mkdir_p || {
21675 as_dirs=
21676 while :; do
21677 case $as_dir in #(
21678 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21679 *) as_qdir=$as_dir;;
21680 esac
21681 as_dirs="'$as_qdir' $as_dirs"
21682 as_dir=`$as_dirname -- "$as_dir" ||
21683 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21684 X"$as_dir" : 'X\(//\)[^/]' \| \
21685 X"$as_dir" : 'X\(//\)$' \| \
21686 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21687 $as_echo X"$as_dir" |
21688 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21689 s//\1/
21690 q
21691 }
21692 /^X\(\/\/\)[^/].*/{
21693 s//\1/
21694 q
21695 }
21696 /^X\(\/\/\)$/{
21697 s//\1/
21698 q
21699 }
21700 /^X\(\/\).*/{
21701 s//\1/
21702 q
21703 }
21704 s/.*/./; q'`
21705 test -d "$as_dir" && break
21706 done
21707 test -z "$as_dirs" || eval "mkdir $as_dirs"
21708 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21709
21710
21711 } # as_fn_mkdir_p
21712 if mkdir -p . 2>/dev/null; then
21713 as_mkdir_p='mkdir -p "$as_dir"'
21714 else
21715 test -d ./-p && rmdir ./-p
21716 as_mkdir_p=false
21717 fi
21718
21719
21720 # as_fn_executable_p FILE
21721 # -----------------------
21722 # Test if FILE is an executable regular file.
21723 as_fn_executable_p ()
21724 {
21725 test -f "$1" && test -x "$1"
21726 } # as_fn_executable_p
21727 as_test_x='test -x'
21728 as_executable_p=as_fn_executable_p
21729
21730 # Sed expression to map a string onto a valid CPP name.
21731 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21732
21733 # Sed expression to map a string onto a valid variable name.
21734 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21735
21736
21737 exec 6>&1
21738 ## ----------------------------------- ##
21739 ## Main body of $CONFIG_STATUS script. ##
21740 ## ----------------------------------- ##
21741 _ASEOF
21742 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21743
21744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21745 # Save the log message, to keep $0 and so on meaningful, and to
21746 # report actual input values of CONFIG_FILES etc. instead of their
21747 # values after options handling.
21748 ac_log="
21749 This file was extended by libxcb $as_me 1.13.1, which was
21750 generated by GNU Autoconf 2.69. Invocation command line was
21751
21752 CONFIG_FILES = $CONFIG_FILES
21753 CONFIG_HEADERS = $CONFIG_HEADERS
21754 CONFIG_LINKS = $CONFIG_LINKS
21755 CONFIG_COMMANDS = $CONFIG_COMMANDS
21756 $ $0 $@
21757
21758 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21759 "
21760
21761 _ACEOF
21762
21763 case $ac_config_files in *"
21764 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21765 esac
21766
21767 case $ac_config_headers in *"
21768 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21769 esac
21770
21771
21772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21773 # Files that config.status was made for.
21774 config_files="$ac_config_files"
21775 config_headers="$ac_config_headers"
21776 config_commands="$ac_config_commands"
21777
21778 _ACEOF
21779
21780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21781 ac_cs_usage="\
21782 \`$as_me' instantiates files and other configuration actions
21783 from templates according to the current configuration. Unless the files
21784 and actions are specified as TAGs, all are instantiated by default.
21785
21786 Usage: $0 [OPTION]... [TAG]...
21787
21788 -h, --help print this help, then exit
21789 -V, --version print version number and configuration settings, then exit
21790 --config print configuration, then exit
21791 -q, --quiet, --silent
21792 do not print progress messages
21793 -d, --debug don't remove temporary files
21794 --recheck update $as_me by reconfiguring in the same conditions
21795 --file=FILE[:TEMPLATE]
21796 instantiate the configuration file FILE
21797 --header=FILE[:TEMPLATE]
21798 instantiate the configuration header FILE
21799
21800 Configuration files:
21801 $config_files
21802
21803 Configuration headers:
21804 $config_headers
21805
21806 Configuration commands:
21807 $config_commands
21808
21809 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xcb>."
21810
21811 _ACEOF
21812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21813 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21814 ac_cs_version="\\
21815 libxcb config.status 1.13.1
21816 configured by $0, generated by GNU Autoconf 2.69,
21817 with options \\"\$ac_cs_config\\"
21818
21819 Copyright (C) 2012 Free Software Foundation, Inc.
21820 This config.status script is free software; the Free Software Foundation
21821 gives unlimited permission to copy, distribute and modify it."
21822
21823 ac_pwd='$ac_pwd'
21824 srcdir='$srcdir'
21825 INSTALL='$INSTALL'
21826 MKDIR_P='$MKDIR_P'
21827 AWK='$AWK'
21828 test -n "\$AWK" || AWK=awk
21829 _ACEOF
21830
21831 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21832 # The default lists apply if the user does not specify any file.
21833 ac_need_defaults=:
21834 while test $# != 0
21835 do
21836 case $1 in
21837 --*=?*)
21838 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21839 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21840 ac_shift=:
21841 ;;
21842 --*=)
21843 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21844 ac_optarg=
21845 ac_shift=:
21846 ;;
21847 *)
21848 ac_option=$1
21849 ac_optarg=$2
21850 ac_shift=shift
21851 ;;
21852 esac
21853
21854 case $ac_option in
21855 # Handling of the options.
21856 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21857 ac_cs_recheck=: ;;
21858 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21859 $as_echo "$ac_cs_version"; exit ;;
21860 --config | --confi | --conf | --con | --co | --c )
21861 $as_echo "$ac_cs_config"; exit ;;
21862 --debug | --debu | --deb | --de | --d | -d )
21863 debug=: ;;
21864 --file | --fil | --fi | --f )
21865 $ac_shift
21866 case $ac_optarg in
21867 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21868 '') as_fn_error $? "missing file argument" ;;
21869 esac
21870 as_fn_append CONFIG_FILES " '$ac_optarg'"
21871 ac_need_defaults=false;;
21872 --header | --heade | --head | --hea )
21873 $ac_shift
21874 case $ac_optarg in
21875 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21876 esac
21877 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21878 ac_need_defaults=false;;
21879 --he | --h)
21880 # Conflict between --help and --header
21881 as_fn_error $? "ambiguous option: \`$1'
21882 Try \`$0 --help' for more information.";;
21883 --help | --hel | -h )
21884 $as_echo "$ac_cs_usage"; exit ;;
21885 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21886 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21887 ac_cs_silent=: ;;
21888
21889 # This is an error.
21890 -*) as_fn_error $? "unrecognized option: \`$1'
21891 Try \`$0 --help' for more information." ;;
21892
21893 *) as_fn_append ac_config_targets " $1"
21894 ac_need_defaults=false ;;
21895
21896 esac
21897 shift
21898 done
21899
21900 ac_configure_extra_args=
21901
21902 if $ac_cs_silent; then
21903 exec 6>/dev/null
21904 ac_configure_extra_args="$ac_configure_extra_args --silent"
21905 fi
21906
21907 _ACEOF
21908 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21909 if \$ac_cs_recheck; then
21910 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21911 shift
21912 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21913 CONFIG_SHELL='$SHELL'
21914 export CONFIG_SHELL
21915 exec "\$@"
21916 fi
21917
21918 _ACEOF
21919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21920 exec 5>>config.log
21921 {
21922 echo
21923 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21924 ## Running $as_me. ##
21925 _ASBOX
21926 $as_echo "$ac_log"
21927 } >&5
21928
21929 _ACEOF
21930 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21931 #
21932 # INIT-COMMANDS
21933 #
21934 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21935
21936
21937 # The HP-UX ksh and POSIX shell print the target directory to stdout
21938 # if CDPATH is set.
21939 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21940
21941 sed_quote_subst='$sed_quote_subst'
21942 double_quote_subst='$double_quote_subst'
21943 delay_variable_subst='$delay_variable_subst'
21944 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21945 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21946 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
21947 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21948 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21949 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21950 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21951 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21952 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21953 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21954 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21955 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21956 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21957 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21958 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21959 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21960 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21961 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21962 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21963 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21964 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21965 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21966 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21967 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21968 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21969 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21970 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21971 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21972 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21973 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21974 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21975 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21976 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21977 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21978 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21979 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21980 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21981 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21982 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21983 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21984 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21985 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21986 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21987 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21988 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21989 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21990 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21991 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21992 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21993 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21994 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21995 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21996 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21997 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21998 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21999 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22000 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22001 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22002 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22003 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"`'
22004 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22005 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22006 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22007 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22008 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22009 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22010 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22011 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22012 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22013 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22014 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22015 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22016 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22017 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22018 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22019 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22020 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22021 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22022 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22023 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22024 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22025 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22026 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22027 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22028 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22029 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22030 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22031 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22032 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22033 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22034 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22035 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22036 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22037 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22038 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22039 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22040 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22041 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22042 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22043 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22044 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22045 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22046 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22047 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22048 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22049 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22050 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22051 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22052 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22053 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22054 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22055 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22056 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22057 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22058 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22059 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22060 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22061 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22062 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22063 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22064 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22065 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22066 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22067 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22068 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22069 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22070 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22071 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22072 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22073 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22074 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22075 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22076 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22077 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22078 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22079 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22080
22081 LTCC='$LTCC'
22082 LTCFLAGS='$LTCFLAGS'
22083 compiler='$compiler_DEFAULT'
22084
22085 # A function that is used when there is no print builtin or printf.
22086 func_fallback_echo ()
22087 {
22088 eval 'cat <<_LTECHO_EOF
22089 \$1
22090 _LTECHO_EOF'
22091 }
22092
22093 # Quote evaled strings.
22094 for var in AS \
22095 DLLTOOL \
22096 OBJDUMP \
22097 SHELL \
22098 ECHO \
22099 PATH_SEPARATOR \
22100 SED \
22101 GREP \
22102 EGREP \
22103 FGREP \
22104 LD \
22105 NM \
22106 LN_S \
22107 lt_SP2NL \
22108 lt_NL2SP \
22109 reload_flag \
22110 deplibs_check_method \
22111 file_magic_cmd \
22112 file_magic_glob \
22113 want_nocaseglob \
22114 sharedlib_from_linklib_cmd \
22115 AR \
22116 AR_FLAGS \
22117 archiver_list_spec \
22118 STRIP \
22119 RANLIB \
22120 CC \
22121 CFLAGS \
22122 compiler \
22123 lt_cv_sys_global_symbol_pipe \
22124 lt_cv_sys_global_symbol_to_cdecl \
22125 lt_cv_sys_global_symbol_to_import \
22126 lt_cv_sys_global_symbol_to_c_name_address \
22127 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22128 lt_cv_nm_interface \
22129 nm_file_list_spec \
22130 lt_cv_truncate_bin \
22131 lt_prog_compiler_no_builtin_flag \
22132 lt_prog_compiler_pic \
22133 lt_prog_compiler_wl \
22134 lt_prog_compiler_static \
22135 lt_cv_prog_compiler_c_o \
22136 need_locks \
22137 MANIFEST_TOOL \
22138 DSYMUTIL \
22139 NMEDIT \
22140 LIPO \
22141 OTOOL \
22142 OTOOL64 \
22143 shrext_cmds \
22144 export_dynamic_flag_spec \
22145 whole_archive_flag_spec \
22146 compiler_needs_object \
22147 with_gnu_ld \
22148 allow_undefined_flag \
22149 no_undefined_flag \
22150 hardcode_libdir_flag_spec \
22151 hardcode_libdir_separator \
22152 exclude_expsyms \
22153 include_expsyms \
22154 file_list_spec \
22155 variables_saved_for_relink \
22156 libname_spec \
22157 library_names_spec \
22158 soname_spec \
22159 install_override_mode \
22160 finish_eval \
22161 old_striplib \
22162 striplib; do
22163 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22164 *[\\\\\\\`\\"\\\$]*)
22165 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22166 ;;
22167 *)
22168 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22169 ;;
22170 esac
22171 done
22172
22173 # Double-quote double-evaled strings.
22174 for var in reload_cmds \
22175 old_postinstall_cmds \
22176 old_postuninstall_cmds \
22177 old_archive_cmds \
22178 extract_expsyms_cmds \
22179 old_archive_from_new_cmds \
22180 old_archive_from_expsyms_cmds \
22181 archive_cmds \
22182 archive_expsym_cmds \
22183 module_cmds \
22184 module_expsym_cmds \
22185 export_symbols_cmds \
22186 prelink_cmds \
22187 postlink_cmds \
22188 postinstall_cmds \
22189 postuninstall_cmds \
22190 finish_cmds \
22191 sys_lib_search_path_spec \
22192 configure_time_dlsearch_path \
22193 configure_time_lt_sys_library_path; do
22194 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22195 *[\\\\\\\`\\"\\\$]*)
22196 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22197 ;;
22198 *)
22199 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22200 ;;
22201 esac
22202 done
22203
22204 ac_aux_dir='$ac_aux_dir'
22205
22206 # See if we are running on zsh, and set the options that allow our
22207 # commands through without removal of \ escapes INIT.
22208 if test -n "\${ZSH_VERSION+set}"; then
22209 setopt NO_GLOB_SUBST
22210 fi
22211
22212
22213 PACKAGE='$PACKAGE'
22214 VERSION='$VERSION'
22215 RM='$RM'
22216 ofile='$ofile'
22217
22218
22219
22220
22221 _ACEOF
22222
22223 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22224
22225 # Handling of arguments.
22226 for ac_config_target in $ac_config_targets
22227 do
22228 case $ac_config_target in
22229 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
22230 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22231 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22232 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22233 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22234 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22235 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22236 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
22237 "xcb.pc") CONFIG_FILES="$CONFIG_FILES xcb.pc" ;;
22238 "xcb-composite.pc") CONFIG_FILES="$CONFIG_FILES xcb-composite.pc" ;;
22239 "xcb-damage.pc") CONFIG_FILES="$CONFIG_FILES xcb-damage.pc" ;;
22240 "xcb-dpms.pc") CONFIG_FILES="$CONFIG_FILES xcb-dpms.pc" ;;
22241 "xcb-dri2.pc") CONFIG_FILES="$CONFIG_FILES xcb-dri2.pc" ;;
22242 "xcb-dri3.pc") CONFIG_FILES="$CONFIG_FILES xcb-dri3.pc" ;;
22243 "xcb-ge.pc") CONFIG_FILES="$CONFIG_FILES xcb-ge.pc" ;;
22244 "xcb-glx.pc") CONFIG_FILES="$CONFIG_FILES xcb-glx.pc" ;;
22245 "xcb-present.pc") CONFIG_FILES="$CONFIG_FILES xcb-present.pc" ;;
22246 "xcb-randr.pc") CONFIG_FILES="$CONFIG_FILES xcb-randr.pc" ;;
22247 "xcb-record.pc") CONFIG_FILES="$CONFIG_FILES xcb-record.pc" ;;
22248 "xcb-render.pc") CONFIG_FILES="$CONFIG_FILES xcb-render.pc" ;;
22249 "xcb-res.pc") CONFIG_FILES="$CONFIG_FILES xcb-res.pc" ;;
22250 "xcb-screensaver.pc") CONFIG_FILES="$CONFIG_FILES xcb-screensaver.pc" ;;
22251 "xcb-shape.pc") CONFIG_FILES="$CONFIG_FILES xcb-shape.pc" ;;
22252 "xcb-shm.pc") CONFIG_FILES="$CONFIG_FILES xcb-shm.pc" ;;
22253 "xcb-sync.pc") CONFIG_FILES="$CONFIG_FILES xcb-sync.pc" ;;
22254 "xcb-xevie.pc") CONFIG_FILES="$CONFIG_FILES xcb-xevie.pc" ;;
22255 "xcb-xf86dri.pc") CONFIG_FILES="$CONFIG_FILES xcb-xf86dri.pc" ;;
22256 "xcb-xfixes.pc") CONFIG_FILES="$CONFIG_FILES xcb-xfixes.pc" ;;
22257 "xcb-xinerama.pc") CONFIG_FILES="$CONFIG_FILES xcb-xinerama.pc" ;;
22258 "xcb-xinput.pc") CONFIG_FILES="$CONFIG_FILES xcb-xinput.pc" ;;
22259 "xcb-xkb.pc") CONFIG_FILES="$CONFIG_FILES xcb-xkb.pc" ;;
22260 "xcb-xprint.pc") CONFIG_FILES="$CONFIG_FILES xcb-xprint.pc" ;;
22261 "xcb-xselinux.pc") CONFIG_FILES="$CONFIG_FILES xcb-xselinux.pc" ;;
22262 "xcb-xtest.pc") CONFIG_FILES="$CONFIG_FILES xcb-xtest.pc" ;;
22263 "xcb-xv.pc") CONFIG_FILES="$CONFIG_FILES xcb-xv.pc" ;;
22264 "xcb-xvmc.pc") CONFIG_FILES="$CONFIG_FILES xcb-xvmc.pc" ;;
22265 "doc/xcb.doxygen") CONFIG_FILES="$CONFIG_FILES doc/xcb.doxygen" ;;
22266
22267 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22268 esac
22269 done
22270
22271
22272 # If the user did not use the arguments to specify the items to instantiate,
22273 # then the envvar interface is used. Set only those that are not.
22274 # We use the long form for the default assignment because of an extremely
22275 # bizarre bug on SunOS 4.1.3.
22276 if $ac_need_defaults; then
22277 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22278 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22279 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22280 fi
22281
22282 # Have a temporary directory for convenience. Make it in the build tree
22283 # simply because there is no reason against having it here, and in addition,
22284 # creating and moving files from /tmp can sometimes cause problems.
22285 # Hook for its removal unless debugging.
22286 # Note that there is a small window in which the directory will not be cleaned:
22287 # after its creation but before its name has been assigned to `$tmp'.
22288 $debug ||
22289 {
22290 tmp= ac_tmp=
22291 trap 'exit_status=$?
22292 : "${ac_tmp:=$tmp}"
22293 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22294 ' 0
22295 trap 'as_fn_exit 1' 1 2 13 15
22296 }
22297 # Create a (secure) tmp directory for tmp files.
22298
22299 {
22300 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22301 test -d "$tmp"
22302 } ||
22303 {
22304 tmp=./conf$$-$RANDOM
22305 (umask 077 && mkdir "$tmp")
22306 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22307 ac_tmp=$tmp
22308
22309 # Set up the scripts for CONFIG_FILES section.
22310 # No need to generate them if there are no CONFIG_FILES.
22311 # This happens for instance with `./config.status config.h'.
22312 if test -n "$CONFIG_FILES"; then
22313
22314
22315 ac_cr=`echo X | tr X '\015'`
22316 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22317 # But we know of no other shell where ac_cr would be empty at this
22318 # point, so we can use a bashism as a fallback.
22319 if test "x$ac_cr" = x; then
22320 eval ac_cr=\$\'\\r\'
22321 fi
22322 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22323 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22324 ac_cs_awk_cr='\\r'
22325 else
22326 ac_cs_awk_cr=$ac_cr
22327 fi
22328
22329 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22330 _ACEOF
22331
22332
22333 {
22334 echo "cat >conf$$subs.awk <<_ACEOF" &&
22335 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22336 echo "_ACEOF"
22337 } >conf$$subs.sh ||
22338 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22339 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22340 ac_delim='%!_!# '
22341 for ac_last_try in false false false false false :; do
22342 . ./conf$$subs.sh ||
22343 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22344
22345 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22346 if test $ac_delim_n = $ac_delim_num; then
22347 break
22348 elif $ac_last_try; then
22349 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22350 else
22351 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22352 fi
22353 done
22354 rm -f conf$$subs.sh
22355
22356 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22357 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22358 _ACEOF
22359 sed -n '
22360 h
22361 s/^/S["/; s/!.*/"]=/
22362 p
22363 g
22364 s/^[^!]*!//
22365 :repl
22366 t repl
22367 s/'"$ac_delim"'$//
22368 t delim
22369 :nl
22370 h
22371 s/\(.\{148\}\)..*/\1/
22372 t more1
22373 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22374 p
22375 n
22376 b repl
22377 :more1
22378 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22379 p
22380 g
22381 s/.\{148\}//
22382 t nl
22383 :delim
22384 h
22385 s/\(.\{148\}\)..*/\1/
22386 t more2
22387 s/["\\]/\\&/g; s/^/"/; s/$/"/
22388 p
22389 b
22390 :more2
22391 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22392 p
22393 g
22394 s/.\{148\}//
22395 t delim
22396 ' <conf$$subs.awk | sed '
22397 /^[^""]/{
22398 N
22399 s/\n//
22400 }
22401 ' >>$CONFIG_STATUS || ac_write_fail=1
22402 rm -f conf$$subs.awk
22403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22404 _ACAWK
22405 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22406 for (key in S) S_is_set[key] = 1
22407 FS = ""
22408
22409 }
22410 {
22411 line = $ 0
22412 nfields = split(line, field, "@")
22413 substed = 0
22414 len = length(field[1])
22415 for (i = 2; i < nfields; i++) {
22416 key = field[i]
22417 keylen = length(key)
22418 if (S_is_set[key]) {
22419 value = S[key]
22420 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22421 len += length(value) + length(field[++i])
22422 substed = 1
22423 } else
22424 len += 1 + keylen
22425 }
22426
22427 print line
22428 }
22429
22430 _ACAWK
22431 _ACEOF
22432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22433 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22434 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22435 else
22436 cat
22437 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22438 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22439 _ACEOF
22440
22441 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22442 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22443 # trailing colons and then remove the whole line if VPATH becomes empty
22444 # (actually we leave an empty line to preserve line numbers).
22445 if test "x$srcdir" = x.; then
22446 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22447 h
22448 s///
22449 s/^/:/
22450 s/[ ]*$/:/
22451 s/:\$(srcdir):/:/g
22452 s/:\${srcdir}:/:/g
22453 s/:@srcdir@:/:/g
22454 s/^:*//
22455 s/:*$//
22456 x
22457 s/\(=[ ]*\).*/\1/
22458 G
22459 s/\n//
22460 s/^[^=]*=[ ]*$//
22461 }'
22462 fi
22463
22464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22465 fi # test -n "$CONFIG_FILES"
22466
22467 # Set up the scripts for CONFIG_HEADERS section.
22468 # No need to generate them if there are no CONFIG_HEADERS.
22469 # This happens for instance with `./config.status Makefile'.
22470 if test -n "$CONFIG_HEADERS"; then
22471 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22472 BEGIN {
22473 _ACEOF
22474
22475 # Transform confdefs.h into an awk script `defines.awk', embedded as
22476 # here-document in config.status, that substitutes the proper values into
22477 # config.h.in to produce config.h.
22478
22479 # Create a delimiter string that does not exist in confdefs.h, to ease
22480 # handling of long lines.
22481 ac_delim='%!_!# '
22482 for ac_last_try in false false :; do
22483 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22484 if test -z "$ac_tt"; then
22485 break
22486 elif $ac_last_try; then
22487 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22488 else
22489 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22490 fi
22491 done
22492
22493 # For the awk script, D is an array of macro values keyed by name,
22494 # likewise P contains macro parameters if any. Preserve backslash
22495 # newline sequences.
22496
22497 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22498 sed -n '
22499 s/.\{148\}/&'"$ac_delim"'/g
22500 t rset
22501 :rset
22502 s/^[ ]*#[ ]*define[ ][ ]*/ /
22503 t def
22504 d
22505 :def
22506 s/\\$//
22507 t bsnl
22508 s/["\\]/\\&/g
22509 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22510 D["\1"]=" \3"/p
22511 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22512 d
22513 :bsnl
22514 s/["\\]/\\&/g
22515 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22516 D["\1"]=" \3\\\\\\n"\\/p
22517 t cont
22518 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22519 t cont
22520 d
22521 :cont
22522 n
22523 s/.\{148\}/&'"$ac_delim"'/g
22524 t clear
22525 :clear
22526 s/\\$//
22527 t bsnlc
22528 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22529 d
22530 :bsnlc
22531 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22532 b cont
22533 ' <confdefs.h | sed '
22534 s/'"$ac_delim"'/"\\\
22535 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22536
22537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22538 for (key in D) D_is_set[key] = 1
22539 FS = ""
22540 }
22541 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22542 line = \$ 0
22543 split(line, arg, " ")
22544 if (arg[1] == "#") {
22545 defundef = arg[2]
22546 mac1 = arg[3]
22547 } else {
22548 defundef = substr(arg[1], 2)
22549 mac1 = arg[2]
22550 }
22551 split(mac1, mac2, "(") #)
22552 macro = mac2[1]
22553 prefix = substr(line, 1, index(line, defundef) - 1)
22554 if (D_is_set[macro]) {
22555 # Preserve the white space surrounding the "#".
22556 print prefix "define", macro P[macro] D[macro]
22557 next
22558 } else {
22559 # Replace #undef with comments. This is necessary, for example,
22560 # in the case of _POSIX_SOURCE, which is predefined and required
22561 # on some systems where configure will not decide to define it.
22562 if (defundef == "undef") {
22563 print "/*", prefix defundef, macro, "*/"
22564 next
22565 }
22566 }
22567 }
22568 { print }
22569 _ACAWK
22570 _ACEOF
22571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22572 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22573 fi # test -n "$CONFIG_HEADERS"
22574
22575
22576 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22577 shift
22578 for ac_tag
22579 do
22580 case $ac_tag in
22581 :[FHLC]) ac_mode=$ac_tag; continue;;
22582 esac
22583 case $ac_mode$ac_tag in
22584 :[FHL]*:*);;
22585 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22586 :[FH]-) ac_tag=-:-;;
22587 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22588 esac
22589 ac_save_IFS=$IFS
22590 IFS=:
22591 set x $ac_tag
22592 IFS=$ac_save_IFS
22593 shift
22594 ac_file=$1
22595 shift
22596
22597 case $ac_mode in
22598 :L) ac_source=$1;;
22599 :[FH])
22600 ac_file_inputs=
22601 for ac_f
22602 do
22603 case $ac_f in
22604 -) ac_f="$ac_tmp/stdin";;
22605 *) # Look for the file first in the build tree, then in the source tree
22606 # (if the path is not absolute). The absolute path cannot be DOS-style,
22607 # because $ac_f cannot contain `:'.
22608 test -f "$ac_f" ||
22609 case $ac_f in
22610 [\\/$]*) false;;
22611 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22612 esac ||
22613 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22614 esac
22615 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22616 as_fn_append ac_file_inputs " '$ac_f'"
22617 done
22618
22619 # Let's still pretend it is `configure' which instantiates (i.e., don't
22620 # use $as_me), people would be surprised to read:
22621 # /* config.h. Generated by config.status. */
22622 configure_input='Generated from '`
22623 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22624 `' by configure.'
22625 if test x"$ac_file" != x-; then
22626 configure_input="$ac_file. $configure_input"
22627 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22628 $as_echo "$as_me: creating $ac_file" >&6;}
22629 fi
22630 # Neutralize special characters interpreted by sed in replacement strings.
22631 case $configure_input in #(
22632 *\&* | *\|* | *\\* )
22633 ac_sed_conf_input=`$as_echo "$configure_input" |
22634 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22635 *) ac_sed_conf_input=$configure_input;;
22636 esac
22637
22638 case $ac_tag in
22639 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22640 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22641 esac
22642 ;;
22643 esac
22644
22645 ac_dir=`$as_dirname -- "$ac_file" ||
22646 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22647 X"$ac_file" : 'X\(//\)[^/]' \| \
22648 X"$ac_file" : 'X\(//\)$' \| \
22649 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22650 $as_echo X"$ac_file" |
22651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22652 s//\1/
22653 q
22654 }
22655 /^X\(\/\/\)[^/].*/{
22656 s//\1/
22657 q
22658 }
22659 /^X\(\/\/\)$/{
22660 s//\1/
22661 q
22662 }
22663 /^X\(\/\).*/{
22664 s//\1/
22665 q
22666 }
22667 s/.*/./; q'`
22668 as_dir="$ac_dir"; as_fn_mkdir_p
22669 ac_builddir=.
22670
22671 case "$ac_dir" in
22672 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22673 *)
22674 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22675 # A ".." for each directory in $ac_dir_suffix.
22676 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22677 case $ac_top_builddir_sub in
22678 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22679 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22680 esac ;;
22681 esac
22682 ac_abs_top_builddir=$ac_pwd
22683 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22684 # for backward compatibility:
22685 ac_top_builddir=$ac_top_build_prefix
22686
22687 case $srcdir in
22688 .) # We are building in place.
22689 ac_srcdir=.
22690 ac_top_srcdir=$ac_top_builddir_sub
22691 ac_abs_top_srcdir=$ac_pwd ;;
22692 [\\/]* | ?:[\\/]* ) # Absolute name.
22693 ac_srcdir=$srcdir$ac_dir_suffix;
22694 ac_top_srcdir=$srcdir
22695 ac_abs_top_srcdir=$srcdir ;;
22696 *) # Relative name.
22697 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22698 ac_top_srcdir=$ac_top_build_prefix$srcdir
22699 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22700 esac
22701 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22702
22703
22704 case $ac_mode in
22705 :F)
22706 #
22707 # CONFIG_FILE
22708 #
22709
22710 case $INSTALL in
22711 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22712 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22713 esac
22714 ac_MKDIR_P=$MKDIR_P
22715 case $MKDIR_P in
22716 [\\/$]* | ?:[\\/]* ) ;;
22717 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22718 esac
22719 _ACEOF
22720
22721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22722 # If the template does not know about datarootdir, expand it.
22723 # FIXME: This hack should be removed a few years after 2.60.
22724 ac_datarootdir_hack=; ac_datarootdir_seen=
22725 ac_sed_dataroot='
22726 /datarootdir/ {
22727 p
22728 q
22729 }
22730 /@datadir@/p
22731 /@docdir@/p
22732 /@infodir@/p
22733 /@localedir@/p
22734 /@mandir@/p'
22735 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22736 *datarootdir*) ac_datarootdir_seen=yes;;
22737 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22739 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22740 _ACEOF
22741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22742 ac_datarootdir_hack='
22743 s&@datadir@&$datadir&g
22744 s&@docdir@&$docdir&g
22745 s&@infodir@&$infodir&g
22746 s&@localedir@&$localedir&g
22747 s&@mandir@&$mandir&g
22748 s&\\\${datarootdir}&$datarootdir&g' ;;
22749 esac
22750 _ACEOF
22751
22752 # Neutralize VPATH when `$srcdir' = `.'.
22753 # Shell code in configure.ac might set extrasub.
22754 # FIXME: do we really want to maintain this feature?
22755 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22756 ac_sed_extra="$ac_vpsub
22757 $extrasub
22758 _ACEOF
22759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22760 :t
22761 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22762 s|@configure_input@|$ac_sed_conf_input|;t t
22763 s&@top_builddir@&$ac_top_builddir_sub&;t t
22764 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22765 s&@srcdir@&$ac_srcdir&;t t
22766 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22767 s&@top_srcdir@&$ac_top_srcdir&;t t
22768 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22769 s&@builddir@&$ac_builddir&;t t
22770 s&@abs_builddir@&$ac_abs_builddir&;t t
22771 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22772 s&@INSTALL@&$ac_INSTALL&;t t
22773 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22774 $ac_datarootdir_hack
22775 "
22776 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22777 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22778
22779 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22780 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22781 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22782 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22784 which seems to be undefined. Please make sure it is defined" >&5
22785 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22786 which seems to be undefined. Please make sure it is defined" >&2;}
22787
22788 rm -f "$ac_tmp/stdin"
22789 case $ac_file in
22790 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22791 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22792 esac \
22793 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22794 ;;
22795 :H)
22796 #
22797 # CONFIG_HEADER
22798 #
22799 if test x"$ac_file" != x-; then
22800 {
22801 $as_echo "/* $configure_input */" \
22802 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22803 } >"$ac_tmp/config.h" \
22804 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22805 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22806 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22807 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22808 else
22809 rm -f "$ac_file"
22810 mv "$ac_tmp/config.h" "$ac_file" \
22811 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22812 fi
22813 else
22814 $as_echo "/* $configure_input */" \
22815 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22816 || as_fn_error $? "could not create -" "$LINENO" 5
22817 fi
22818 # Compute "$ac_file"'s index in $config_headers.
22819 _am_arg="$ac_file"
22820 _am_stamp_count=1
22821 for _am_header in $config_headers :; do
22822 case $_am_header in
22823 $_am_arg | $_am_arg:* )
22824 break ;;
22825 * )
22826 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22827 esac
22828 done
22829 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22830 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22831 X"$_am_arg" : 'X\(//\)[^/]' \| \
22832 X"$_am_arg" : 'X\(//\)$' \| \
22833 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22834 $as_echo X"$_am_arg" |
22835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22836 s//\1/
22837 q
22838 }
22839 /^X\(\/\/\)[^/].*/{
22840 s//\1/
22841 q
22842 }
22843 /^X\(\/\/\)$/{
22844 s//\1/
22845 q
22846 }
22847 /^X\(\/\).*/{
22848 s//\1/
22849 q
22850 }
22851 s/.*/./; q'`/stamp-h$_am_stamp_count
22852 ;;
22853
22854 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22855 $as_echo "$as_me: executing $ac_file commands" >&6;}
22856 ;;
22857 esac
22858
22859
22860 case $ac_file$ac_mode in
22861 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22862 # Older Autoconf quotes --file arguments for eval, but not when files
22863 # are listed without --file. Let's play safe and only enable the eval
22864 # if we detect the quoting.
22865 # TODO: see whether this extra hack can be removed once we start
22866 # requiring Autoconf 2.70 or later.
22867 case $CONFIG_FILES in #(
22868 *\'*) :
22869 eval set x "$CONFIG_FILES" ;; #(
22870 *) :
22871 set x $CONFIG_FILES ;; #(
22872 *) :
22873 ;;
22874 esac
22875 shift
22876 # Used to flag and report bootstrapping failures.
22877 am_rc=0
22878 for am_mf
22879 do
22880 # Strip MF so we end up with the name of the file.
22881 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
22882 # Check whether this is an Automake generated Makefile which includes
22883 # dependency-tracking related rules and includes.
22884 # Grep'ing the whole file directly is not great: AIX grep has a line
22885 # limit of 2048, but all sed's we know have understand at least 4000.
22886 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22887 || continue
22888 am_dirpart=`$as_dirname -- "$am_mf" ||
22889 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22890 X"$am_mf" : 'X\(//\)[^/]' \| \
22891 X"$am_mf" : 'X\(//\)$' \| \
22892 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22893 $as_echo X"$am_mf" |
22894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22895 s//\1/
22896 q
22897 }
22898 /^X\(\/\/\)[^/].*/{
22899 s//\1/
22900 q
22901 }
22902 /^X\(\/\/\)$/{
22903 s//\1/
22904 q
22905 }
22906 /^X\(\/\).*/{
22907 s//\1/
22908 q
22909 }
22910 s/.*/./; q'`
22911 am_filepart=`$as_basename -- "$am_mf" ||
22912 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22913 X"$am_mf" : 'X\(//\)$' \| \
22914 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22915 $as_echo X/"$am_mf" |
22916 sed '/^.*\/\([^/][^/]*\)\/*$/{
22917 s//\1/
22918 q
22919 }
22920 /^X\/\(\/\/\)$/{
22921 s//\1/
22922 q
22923 }
22924 /^X\/\(\/\).*/{
22925 s//\1/
22926 q
22927 }
22928 s/.*/./; q'`
22929 { echo "$as_me:$LINENO: cd "$am_dirpart" \
22930 && sed -e '/# am--include-marker/d' "$am_filepart" \
22931 | $MAKE -f - am--depfiles" >&5
22932 (cd "$am_dirpart" \
22933 && sed -e '/# am--include-marker/d' "$am_filepart" \
22934 | $MAKE -f - am--depfiles) >&5 2>&5
22935 ac_status=$?
22936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937 (exit $ac_status); } || am_rc=$?
22938 done
22939 if test $am_rc -ne 0; then
22940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22942 as_fn_error $? "Something went wrong bootstrapping makefile fragments
22943 for automatic dependency tracking. Try re-running configure with the
22944 '--disable-dependency-tracking' option to at least be able to build
22945 the package (albeit without support for automatic dependency tracking).
22946 See \`config.log' for more details" "$LINENO" 5; }
22947 fi
22948 { am_dirpart=; unset am_dirpart;}
22949 { am_filepart=; unset am_filepart;}
22950 { am_mf=; unset am_mf;}
22951 { am_rc=; unset am_rc;}
22952 rm -f conftest-deps.mk
22953 }
22954 ;;
22955 "libtool":C)
22956
22957 # See if we are running on zsh, and set the options that allow our
22958 # commands through without removal of \ escapes.
22959 if test -n "${ZSH_VERSION+set}"; then
22960 setopt NO_GLOB_SUBST
22961 fi
22962
22963 cfgfile=${ofile}T
22964 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22965 $RM "$cfgfile"
22966
22967 cat <<_LT_EOF >> "$cfgfile"
22968 #! $SHELL
22969 # Generated automatically by $as_me ($PACKAGE) $VERSION
22970 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22971
22972 # Provide generalized library-building support services.
22973 # Written by Gordon Matzigkeit, 1996
22974
22975 # Copyright (C) 2014 Free Software Foundation, Inc.
22976 # This is free software; see the source for copying conditions. There is NO
22977 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22978
22979 # GNU Libtool is free software; you can redistribute it and/or modify
22980 # it under the terms of the GNU General Public License as published by
22981 # the Free Software Foundation; either version 2 of of the License, or
22982 # (at your option) any later version.
22983 #
22984 # As a special exception to the GNU General Public License, if you
22985 # distribute this file as part of a program or library that is built
22986 # using GNU Libtool, you may include this file under the same
22987 # distribution terms that you use for the rest of that program.
22988 #
22989 # GNU Libtool is distributed in the hope that it will be useful, but
22990 # WITHOUT ANY WARRANTY; without even the implied warranty of
22991 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22992 # GNU General Public License for more details.
22993 #
22994 # You should have received a copy of the GNU General Public License
22995 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22996
22997
22998 # The names of the tagged configurations supported by this script.
22999 available_tags=''
23000
23001 # Configured defaults for sys_lib_dlsearch_path munging.
23002 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23003
23004 # ### BEGIN LIBTOOL CONFIG
23005
23006 # Which release of libtool.m4 was used?
23007 macro_version=$macro_version
23008 macro_revision=$macro_revision
23009
23010 # Assembler program.
23011 AS=$lt_AS
23012
23013 # DLL creation program.
23014 DLLTOOL=$lt_DLLTOOL
23015
23016 # Object dumper program.
23017 OBJDUMP=$lt_OBJDUMP
23018
23019 # Whether or not to build shared libraries.
23020 build_libtool_libs=$enable_shared
23021
23022 # Whether or not to build static libraries.
23023 build_old_libs=$enable_static
23024
23025 # What type of objects to build.
23026 pic_mode=$pic_mode
23027
23028 # Whether or not to optimize for fast installation.
23029 fast_install=$enable_fast_install
23030
23031 # Shared archive member basename,for filename based shared library versioning on AIX.
23032 shared_archive_member_spec=$shared_archive_member_spec
23033
23034 # Shell to use when invoking shell scripts.
23035 SHELL=$lt_SHELL
23036
23037 # An echo program that protects backslashes.
23038 ECHO=$lt_ECHO
23039
23040 # The PATH separator for the build system.
23041 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23042
23043 # The host system.
23044 host_alias=$host_alias
23045 host=$host
23046 host_os=$host_os
23047
23048 # The build system.
23049 build_alias=$build_alias
23050 build=$build
23051 build_os=$build_os
23052
23053 # A sed program that does not truncate output.
23054 SED=$lt_SED
23055
23056 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23057 Xsed="\$SED -e 1s/^X//"
23058
23059 # A grep program that handles long lines.
23060 GREP=$lt_GREP
23061
23062 # An ERE matcher.
23063 EGREP=$lt_EGREP
23064
23065 # A literal string matcher.
23066 FGREP=$lt_FGREP
23067
23068 # A BSD- or MS-compatible name lister.
23069 NM=$lt_NM
23070
23071 # Whether we need soft or hard links.
23072 LN_S=$lt_LN_S
23073
23074 # What is the maximum length of a command?
23075 max_cmd_len=$max_cmd_len
23076
23077 # Object file suffix (normally "o").
23078 objext=$ac_objext
23079
23080 # Executable file suffix (normally "").
23081 exeext=$exeext
23082
23083 # whether the shell understands "unset".
23084 lt_unset=$lt_unset
23085
23086 # turn spaces into newlines.
23087 SP2NL=$lt_lt_SP2NL
23088
23089 # turn newlines into spaces.
23090 NL2SP=$lt_lt_NL2SP
23091
23092 # convert \$build file names to \$host format.
23093 to_host_file_cmd=$lt_cv_to_host_file_cmd
23094
23095 # convert \$build files to toolchain format.
23096 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23097
23098 # Method to check whether dependent libraries are shared objects.
23099 deplibs_check_method=$lt_deplibs_check_method
23100
23101 # Command to use when deplibs_check_method = "file_magic".
23102 file_magic_cmd=$lt_file_magic_cmd
23103
23104 # How to find potential files when deplibs_check_method = "file_magic".
23105 file_magic_glob=$lt_file_magic_glob
23106
23107 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23108 want_nocaseglob=$lt_want_nocaseglob
23109
23110 # Command to associate shared and link libraries.
23111 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23112
23113 # The archiver.
23114 AR=$lt_AR
23115
23116 # Flags to create an archive.
23117 AR_FLAGS=$lt_AR_FLAGS
23118
23119 # How to feed a file listing to the archiver.
23120 archiver_list_spec=$lt_archiver_list_spec
23121
23122 # A symbol stripping program.
23123 STRIP=$lt_STRIP
23124
23125 # Commands used to install an old-style archive.
23126 RANLIB=$lt_RANLIB
23127 old_postinstall_cmds=$lt_old_postinstall_cmds
23128 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23129
23130 # Whether to use a lock for old archive extraction.
23131 lock_old_archive_extraction=$lock_old_archive_extraction
23132
23133 # A C compiler.
23134 LTCC=$lt_CC
23135
23136 # LTCC compiler flags.
23137 LTCFLAGS=$lt_CFLAGS
23138
23139 # Take the output of nm and produce a listing of raw symbols and C names.
23140 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23141
23142 # Transform the output of nm in a proper C declaration.
23143 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23144
23145 # Transform the output of nm into a list of symbols to manually relocate.
23146 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23147
23148 # Transform the output of nm in a C name address pair.
23149 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23150
23151 # Transform the output of nm in a C name address pair when lib prefix is needed.
23152 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23153
23154 # The name lister interface.
23155 nm_interface=$lt_lt_cv_nm_interface
23156
23157 # Specify filename containing input files for \$NM.
23158 nm_file_list_spec=$lt_nm_file_list_spec
23159
23160 # The root where to search for dependent libraries,and where our libraries should be installed.
23161 lt_sysroot=$lt_sysroot
23162
23163 # Command to truncate a binary pipe.
23164 lt_truncate_bin=$lt_lt_cv_truncate_bin
23165
23166 # The name of the directory that contains temporary libtool files.
23167 objdir=$objdir
23168
23169 # Used to examine libraries when file_magic_cmd begins with "file".
23170 MAGIC_CMD=$MAGIC_CMD
23171
23172 # Must we lock files when doing compilation?
23173 need_locks=$lt_need_locks
23174
23175 # Manifest tool.
23176 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23177
23178 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23179 DSYMUTIL=$lt_DSYMUTIL
23180
23181 # Tool to change global to local symbols on Mac OS X.
23182 NMEDIT=$lt_NMEDIT
23183
23184 # Tool to manipulate fat objects and archives on Mac OS X.
23185 LIPO=$lt_LIPO
23186
23187 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23188 OTOOL=$lt_OTOOL
23189
23190 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23191 OTOOL64=$lt_OTOOL64
23192
23193 # Old archive suffix (normally "a").
23194 libext=$libext
23195
23196 # Shared library suffix (normally ".so").
23197 shrext_cmds=$lt_shrext_cmds
23198
23199 # The commands to extract the exported symbol list from a shared archive.
23200 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23201
23202 # Variables whose values should be saved in libtool wrapper scripts and
23203 # restored at link time.
23204 variables_saved_for_relink=$lt_variables_saved_for_relink
23205
23206 # Do we need the "lib" prefix for modules?
23207 need_lib_prefix=$need_lib_prefix
23208
23209 # Do we need a version for libraries?
23210 need_version=$need_version
23211
23212 # Library versioning type.
23213 version_type=$version_type
23214
23215 # Shared library runtime path variable.
23216 runpath_var=$runpath_var
23217
23218 # Shared library path variable.
23219 shlibpath_var=$shlibpath_var
23220
23221 # Is shlibpath searched before the hard-coded library search path?
23222 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23223
23224 # Format of library name prefix.
23225 libname_spec=$lt_libname_spec
23226
23227 # List of archive names. First name is the real one, the rest are links.
23228 # The last name is the one that the linker finds with -lNAME
23229 library_names_spec=$lt_library_names_spec
23230
23231 # The coded name of the library, if different from the real name.
23232 soname_spec=$lt_soname_spec
23233
23234 # Permission mode override for installation of shared libraries.
23235 install_override_mode=$lt_install_override_mode
23236
23237 # Command to use after installation of a shared archive.
23238 postinstall_cmds=$lt_postinstall_cmds
23239
23240 # Command to use after uninstallation of a shared archive.
23241 postuninstall_cmds=$lt_postuninstall_cmds
23242
23243 # Commands used to finish a libtool library installation in a directory.
23244 finish_cmds=$lt_finish_cmds
23245
23246 # As "finish_cmds", except a single script fragment to be evaled but
23247 # not shown.
23248 finish_eval=$lt_finish_eval
23249
23250 # Whether we should hardcode library paths into libraries.
23251 hardcode_into_libs=$hardcode_into_libs
23252
23253 # Compile-time system search path for libraries.
23254 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23255
23256 # Detected run-time system search path for libraries.
23257 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23258
23259 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23260 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23261
23262 # Whether dlopen is supported.
23263 dlopen_support=$enable_dlopen
23264
23265 # Whether dlopen of programs is supported.
23266 dlopen_self=$enable_dlopen_self
23267
23268 # Whether dlopen of statically linked programs is supported.
23269 dlopen_self_static=$enable_dlopen_self_static
23270
23271 # Commands to strip libraries.
23272 old_striplib=$lt_old_striplib
23273 striplib=$lt_striplib
23274
23275
23276 # The linker used to build libraries.
23277 LD=$lt_LD
23278
23279 # How to create reloadable object files.
23280 reload_flag=$lt_reload_flag
23281 reload_cmds=$lt_reload_cmds
23282
23283 # Commands used to build an old-style archive.
23284 old_archive_cmds=$lt_old_archive_cmds
23285
23286 # A language specific compiler.
23287 CC=$lt_compiler
23288
23289 # Is the compiler the GNU compiler?
23290 with_gcc=$GCC
23291
23292 # Compiler flag to turn off builtin functions.
23293 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23294
23295 # Additional compiler flags for building library objects.
23296 pic_flag=$lt_lt_prog_compiler_pic
23297
23298 # How to pass a linker flag through the compiler.
23299 wl=$lt_lt_prog_compiler_wl
23300
23301 # Compiler flag to prevent dynamic linking.
23302 link_static_flag=$lt_lt_prog_compiler_static
23303
23304 # Does compiler simultaneously support -c and -o options?
23305 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23306
23307 # Whether or not to add -lc for building shared libraries.
23308 build_libtool_need_lc=$archive_cmds_need_lc
23309
23310 # Whether or not to disallow shared libs when runtime libs are static.
23311 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23312
23313 # Compiler flag to allow reflexive dlopens.
23314 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23315
23316 # Compiler flag to generate shared objects directly from archives.
23317 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23318
23319 # Whether the compiler copes with passing no objects directly.
23320 compiler_needs_object=$lt_compiler_needs_object
23321
23322 # Create an old-style archive from a shared archive.
23323 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23324
23325 # Create a temporary old-style archive to link instead of a shared archive.
23326 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23327
23328 # Commands used to build a shared archive.
23329 archive_cmds=$lt_archive_cmds
23330 archive_expsym_cmds=$lt_archive_expsym_cmds
23331
23332 # Commands used to build a loadable module if different from building
23333 # a shared archive.
23334 module_cmds=$lt_module_cmds
23335 module_expsym_cmds=$lt_module_expsym_cmds
23336
23337 # Whether we are building with GNU ld or not.
23338 with_gnu_ld=$lt_with_gnu_ld
23339
23340 # Flag that allows shared libraries with undefined symbols to be built.
23341 allow_undefined_flag=$lt_allow_undefined_flag
23342
23343 # Flag that enforces no undefined symbols.
23344 no_undefined_flag=$lt_no_undefined_flag
23345
23346 # Flag to hardcode \$libdir into a binary during linking.
23347 # This must work even if \$libdir does not exist
23348 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23349
23350 # Whether we need a single "-rpath" flag with a separated argument.
23351 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23352
23353 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23354 # DIR into the resulting binary.
23355 hardcode_direct=$hardcode_direct
23356
23357 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23358 # DIR into the resulting binary and the resulting library dependency is
23359 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23360 # library is relocated.
23361 hardcode_direct_absolute=$hardcode_direct_absolute
23362
23363 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23364 # into the resulting binary.
23365 hardcode_minus_L=$hardcode_minus_L
23366
23367 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23368 # into the resulting binary.
23369 hardcode_shlibpath_var=$hardcode_shlibpath_var
23370
23371 # Set to "yes" if building a shared library automatically hardcodes DIR
23372 # into the library and all subsequent libraries and executables linked
23373 # against it.
23374 hardcode_automatic=$hardcode_automatic
23375
23376 # Set to yes if linker adds runtime paths of dependent libraries
23377 # to runtime path list.
23378 inherit_rpath=$inherit_rpath
23379
23380 # Whether libtool must link a program against all its dependency libraries.
23381 link_all_deplibs=$link_all_deplibs
23382
23383 # Set to "yes" if exported symbols are required.
23384 always_export_symbols=$always_export_symbols
23385
23386 # The commands to list exported symbols.
23387 export_symbols_cmds=$lt_export_symbols_cmds
23388
23389 # Symbols that should not be listed in the preloaded symbols.
23390 exclude_expsyms=$lt_exclude_expsyms
23391
23392 # Symbols that must always be exported.
23393 include_expsyms=$lt_include_expsyms
23394
23395 # Commands necessary for linking programs (against libraries) with templates.
23396 prelink_cmds=$lt_prelink_cmds
23397
23398 # Commands necessary for finishing linking programs.
23399 postlink_cmds=$lt_postlink_cmds
23400
23401 # Specify filename containing input files.
23402 file_list_spec=$lt_file_list_spec
23403
23404 # How to hardcode a shared library path into an executable.
23405 hardcode_action=$hardcode_action
23406
23407 # ### END LIBTOOL CONFIG
23408
23409 _LT_EOF
23410
23411 cat <<'_LT_EOF' >> "$cfgfile"
23412
23413 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23414
23415 # func_munge_path_list VARIABLE PATH
23416 # -----------------------------------
23417 # VARIABLE is name of variable containing _space_ separated list of
23418 # directories to be munged by the contents of PATH, which is string
23419 # having a format:
23420 # "DIR[:DIR]:"
23421 # string "DIR[ DIR]" will be prepended to VARIABLE
23422 # ":DIR[:DIR]"
23423 # string "DIR[ DIR]" will be appended to VARIABLE
23424 # "DIRP[:DIRP]::[DIRA:]DIRA"
23425 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23426 # "DIRA[ DIRA]" will be appended to VARIABLE
23427 # "DIR[:DIR]"
23428 # VARIABLE will be replaced by "DIR[ DIR]"
23429 func_munge_path_list ()
23430 {
23431 case x$2 in
23432 x)
23433 ;;
23434 *:)
23435 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23436 ;;
23437 x:*)
23438 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23439 ;;
23440 *::*)
23441 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23442 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23443 ;;
23444 *)
23445 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23446 ;;
23447 esac
23448 }
23449
23450
23451 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23452 func_cc_basename ()
23453 {
23454 for cc_temp in $*""; do
23455 case $cc_temp in
23456 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23457 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23458 \-*) ;;
23459 *) break;;
23460 esac
23461 done
23462 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23463 }
23464
23465
23466 # ### END FUNCTIONS SHARED WITH CONFIGURE
23467
23468 _LT_EOF
23469
23470 case $host_os in
23471 aix3*)
23472 cat <<\_LT_EOF >> "$cfgfile"
23473 # AIX sometimes has problems with the GCC collect2 program. For some
23474 # reason, if we set the COLLECT_NAMES environment variable, the problems
23475 # vanish in a puff of smoke.
23476 if test set != "${COLLECT_NAMES+set}"; then
23477 COLLECT_NAMES=
23478 export COLLECT_NAMES
23479 fi
23480 _LT_EOF
23481 ;;
23482 esac
23483
23484
23485 ltmain=$ac_aux_dir/ltmain.sh
23486
23487
23488 # We use sed instead of cat because bash on DJGPP gets confused if
23489 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23490 # text mode, it properly converts lines to CR/LF. This bash problem
23491 # is reportedly fixed, but why not run on old versions too?
23492 sed '$q' "$ltmain" >> "$cfgfile" \
23493 || (rm -f "$cfgfile"; exit 1)
23494
23495 mv -f "$cfgfile" "$ofile" ||
23496 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23497 chmod +x "$ofile"
23498
23499 ;;
23500
23501 esac
23502 done # for ac_tag
23503
23504
23505 as_fn_exit 0
23506 _ACEOF
23507 ac_clean_files=$ac_clean_files_save
23508
23509 test $ac_write_fail = 0 ||
23510 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23511
23512
23513 # configure is writing to config.log, and then calls config.status.
23514 # config.status does its own redirection, appending to config.log.
23515 # Unfortunately, on DOS this fails, as config.log is still kept open
23516 # by configure, so config.status won't be able to write to it; its
23517 # output is simply discarded. So we exec the FD to /dev/null,
23518 # effectively closing config.log, so it can be properly (re)opened and
23519 # appended to by config.status. When coming back to configure, we
23520 # need to make the FD available again.
23521 if test "$no_create" != yes; then
23522 ac_cs_success=:
23523 ac_config_status_args=
23524 test "$silent" = yes &&
23525 ac_config_status_args="$ac_config_status_args --quiet"
23526 exec 5>/dev/null
23527 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23528 exec 5>>config.log
23529 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23530 # would make configure fail if this is the last instruction.
23531 $ac_cs_success || as_fn_exit 1
23532 fi
23533 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23535 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23536 fi
23537
23538
23539
23540 echo ""
23541 echo " Package: ${PACKAGE_NAME} ${PACKAGE_VERSION}"
23542 echo ""
23543 echo " Configuration"
23544 echo " XDM support.........: ${have_xdmcp}"
23545 echo " sendmsg fd passing..: ${have_sendmsg}"
23546 echo " Build unit tests....: ${HAVE_CHECK}"
23547 echo " with html results.: ${HTML_CHECK_RESULT}"
23548 echo " XCB buffer size.....: ${xcb_queue_buffer_size}"
23549 echo ""
23550 echo " X11 extensions"
23551 echo " Composite...........: ${BUILD_COMPOSITE}"
23552 echo " Damage..............: ${BUILD_DAMAGE}"
23553 echo " Dpms................: ${BUILD_DPMS}"
23554 echo " Dri2................: ${BUILD_DRI2}"
23555 echo " Dri3................: ${BUILD_DRI3}"
23556 echo " GenericEvent........: ${BUILD_GE}"
23557 echo " Glx.................: ${BUILD_GLX}"
23558 echo " Randr...............: ${BUILD_RANDR}"
23559 echo " Record..............: ${BUILD_RECORD}"
23560 echo " Render..............: ${BUILD_RENDER}"
23561 echo " Resource............: ${BUILD_RESOURCE}"
23562 echo " Screensaver.........: ${BUILD_SCREENSAVER}"
23563 echo " selinux.............: ${BUILD_SELINUX}"
23564 echo " Shape...............: ${BUILD_SHAPE}"
23565 echo " Shm.................: ${BUILD_SHM}"
23566 echo " Sync................: ${BUILD_SYNC}"
23567 echo " Xevie...............: ${BUILD_XEVIE}"
23568 echo " Xfixes..............: ${BUILD_XFIXES}"
23569 echo " Xfree86-dri.........: ${BUILD_XFREE86_DRI}"
23570 echo " xinerama............: ${BUILD_XINERAMA}"
23571 echo " xinput..............: ${BUILD_XINPUT}"
23572 echo " xkb.................: ${BUILD_XKB}"
23573 echo " xprint..............: ${BUILD_XPRINT}"
23574 echo " xtest...............: ${BUILD_XTEST}"
23575 echo " xv..................: ${BUILD_XV}"
23576 echo " xvmc................: ${BUILD_XVMC}"
23577 echo ""
23578 echo " Used CFLAGS:"
23579 echo " CPPFLAGS............: ${CPPFLAGS}"
23580 echo " CFLAGS..............: ${CFLAGS}"
23581 echo ""
23582 echo " Installation:"
23583 echo " Prefix..............: ${prefix}"
23584 echo ""
23585