Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xcb-util-image 0.4.0.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xcb&component=Utils>.
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
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || 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 [email protected] and
278 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xcb&component=Utils
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='xcb-util-image'
593 PACKAGE_TARNAME='xcb-util-image'
594 PACKAGE_VERSION='0.4.0'
595 PACKAGE_STRING='xcb-util-image 0.4.0'
596 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xcb&component=Utils'
597 PACKAGE_URL=''
598
599 ac_unique_file="Makefile.am"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 XCB_UTIL_LIBS
641 XCB_UTIL_CFLAGS
642 XPROTO_LIBS
643 XPROTO_CFLAGS
644 XCB_SHM_LIBS
645 XCB_SHM_CFLAGS
646 HAVE_SHM_FALSE
647 HAVE_SHM_TRUE
648 HAVE_DOXYGEN_FALSE
649 HAVE_DOXYGEN_TRUE
650 HAVE_DOT_FALSE
651 HAVE_DOT_TRUE
652 HAVE_DOT
653 DOT
654 DOXYGEN
655 ENABLE_DEVEL_DOCS_FALSE
656 ENABLE_DEVEL_DOCS_TRUE
657 MAN_SUBSTS
658 XORG_MAN_PAGE
659 ADMIN_MAN_DIR
660 DRIVER_MAN_DIR
661 MISC_MAN_DIR
662 FILE_MAN_DIR
663 LIB_MAN_DIR
664 APP_MAN_DIR
665 ADMIN_MAN_SUFFIX
666 DRIVER_MAN_SUFFIX
667 MISC_MAN_SUFFIX
668 FILE_MAN_SUFFIX
669 LIB_MAN_SUFFIX
670 APP_MAN_SUFFIX
671 INSTALL_CMD
672 CHANGELOG_CMD
673 STRICT_CFLAGS
674 CWARNFLAGS
675 BASE_CFLAGS
676 XCB_LIBS
677 XCB_CFLAGS
678 PKG_CONFIG_LIBDIR
679 PKG_CONFIG_PATH
680 PKG_CONFIG
681 pkgconfigdir
682 xcbincludedir
683 CPP
684 OTOOL64
685 OTOOL
686 LIPO
687 NMEDIT
688 DSYMUTIL
689 MANIFEST_TOOL
690 RANLIB
691 ac_ct_AR
692 AR
693 DLLTOOL
694 OBJDUMP
695 LN_S
696 NM
697 ac_ct_DUMPBIN
698 DUMPBIN
699 LD
700 FGREP
701 EGREP
702 GREP
703 SED
704 am__fastdepCC_FALSE
705 am__fastdepCC_TRUE
706 CCDEPMODE
707 am__nodep
708 AMDEPBACKSLASH
709 AMDEP_FALSE
710 AMDEP_TRUE
711 am__quote
712 am__include
713 DEPDIR
714 OBJEXT
715 EXEEXT
716 ac_ct_CC
717 CPPFLAGS
718 LDFLAGS
719 CFLAGS
720 CC
721 host_os
722 host_vendor
723 host_cpu
724 host
725 build_os
726 build_vendor
727 build_cpu
728 build
729 LIBTOOL
730 MAINT
731 MAINTAINER_MODE_FALSE
732 MAINTAINER_MODE_TRUE
733 AM_BACKSLASH
734 AM_DEFAULT_VERBOSITY
735 AM_DEFAULT_V
736 AM_V
737 am__untar
738 am__tar
739 AMTAR
740 am__leading_dot
741 SET_MAKE
742 AWK
743 mkdir_p
744 MKDIR_P
745 INSTALL_STRIP_PROGRAM
746 STRIP
747 install_sh
748 MAKEINFO
749 AUTOHEADER
750 AUTOMAKE
751 AUTOCONF
752 ACLOCAL
753 VERSION
754 PACKAGE
755 CYGPATH_W
756 am__isrc
757 INSTALL_DATA
758 INSTALL_SCRIPT
759 INSTALL_PROGRAM
760 target_alias
761 host_alias
762 build_alias
763 LIBS
764 ECHO_T
765 ECHO_N
766 ECHO_C
767 DEFS
768 mandir
769 localedir
770 libdir
771 psdir
772 pdfdir
773 dvidir
774 htmldir
775 infodir
776 docdir
777 oldincludedir
778 includedir
779 localstatedir
780 sharedstatedir
781 sysconfdir
782 datadir
783 datarootdir
784 libexecdir
785 sbindir
786 bindir
787 program_transform_name
788 prefix
789 exec_prefix
790 PACKAGE_URL
791 PACKAGE_BUGREPORT
792 PACKAGE_STRING
793 PACKAGE_VERSION
794 PACKAGE_TARNAME
795 PACKAGE_NAME
796 PATH_SEPARATOR
797 SHELL'
798 ac_subst_files=''
799 ac_user_opts='
800 enable_option_checking
801 enable_silent_rules
802 enable_maintainer_mode
803 enable_shared
804 enable_static
805 with_pic
806 enable_fast_install
807 enable_dependency_tracking
808 with_gnu_ld
809 with_sysroot
810 enable_libtool_lock
811 enable_selective_werror
812 enable_strict_compilation
813 enable_devel_docs
814 with_doxygen
815 '
816 ac_precious_vars='build_alias
817 host_alias
818 target_alias
819 CC
820 CFLAGS
821 LDFLAGS
822 LIBS
823 CPPFLAGS
824 CPP
825 PKG_CONFIG
826 PKG_CONFIG_PATH
827 PKG_CONFIG_LIBDIR
828 XCB_CFLAGS
829 XCB_LIBS
830 DOXYGEN
831 DOT
832 XCB_SHM_CFLAGS
833 XCB_SHM_LIBS
834 XPROTO_CFLAGS
835 XPROTO_LIBS
836 XCB_UTIL_CFLAGS
837 XCB_UTIL_LIBS'
838
839
840 # Initialize some variables set by options.
841 ac_init_help=
842 ac_init_version=false
843 ac_unrecognized_opts=
844 ac_unrecognized_sep=
845 # The variables have the same names as the options, with
846 # dashes changed to underlines.
847 cache_file=/dev/null
848 exec_prefix=NONE
849 no_create=
850 no_recursion=
851 prefix=NONE
852 program_prefix=NONE
853 program_suffix=NONE
854 program_transform_name=s,x,x,
855 silent=
856 site=
857 srcdir=
858 verbose=
859 x_includes=NONE
860 x_libraries=NONE
861
862 # Installation directory options.
863 # These are left unexpanded so users can "make install exec_prefix=/foo"
864 # and all the variables that are supposed to be based on exec_prefix
865 # by default will actually change.
866 # Use braces instead of parens because sh, perl, etc. also accept them.
867 # (The list follows the same order as the GNU Coding Standards.)
868 bindir='${exec_prefix}/bin'
869 sbindir='${exec_prefix}/sbin'
870 libexecdir='${exec_prefix}/libexec'
871 datarootdir='${prefix}/share'
872 datadir='${datarootdir}'
873 sysconfdir='${prefix}/etc'
874 sharedstatedir='${prefix}/com'
875 localstatedir='${prefix}/var'
876 includedir='${prefix}/include'
877 oldincludedir='/usr/include'
878 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
879 infodir='${datarootdir}/info'
880 htmldir='${docdir}'
881 dvidir='${docdir}'
882 pdfdir='${docdir}'
883 psdir='${docdir}'
884 libdir='${exec_prefix}/lib'
885 localedir='${datarootdir}/locale'
886 mandir='${datarootdir}/man'
887
888 ac_prev=
889 ac_dashdash=
890 for ac_option
891 do
892 # If the previous option needs an argument, assign it.
893 if test -n "$ac_prev"; then
894 eval $ac_prev=\$ac_option
895 ac_prev=
896 continue
897 fi
898
899 case $ac_option in
900 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
901 *=) ac_optarg= ;;
902 *) ac_optarg=yes ;;
903 esac
904
905 # Accept the important Cygnus configure options, so we can diagnose typos.
906
907 case $ac_dashdash$ac_option in
908 --)
909 ac_dashdash=yes ;;
910
911 -bindir | --bindir | --bindi | --bind | --bin | --bi)
912 ac_prev=bindir ;;
913 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914 bindir=$ac_optarg ;;
915
916 -build | --build | --buil | --bui | --bu)
917 ac_prev=build_alias ;;
918 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
919 build_alias=$ac_optarg ;;
920
921 -cache-file | --cache-file | --cache-fil | --cache-fi \
922 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923 ac_prev=cache_file ;;
924 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
926 cache_file=$ac_optarg ;;
927
928 --config-cache | -C)
929 cache_file=config.cache ;;
930
931 -datadir | --datadir | --datadi | --datad)
932 ac_prev=datadir ;;
933 -datadir=* | --datadir=* | --datadi=* | --datad=*)
934 datadir=$ac_optarg ;;
935
936 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937 | --dataroo | --dataro | --datar)
938 ac_prev=datarootdir ;;
939 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941 datarootdir=$ac_optarg ;;
942
943 -disable-* | --disable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 as_fn_error $? "invalid feature name: $ac_useropt"
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
951 *"
952 "enable_$ac_useropt"
953 "*) ;;
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
956 esac
957 eval enable_$ac_useropt=no ;;
958
959 -docdir | --docdir | --docdi | --doc | --do)
960 ac_prev=docdir ;;
961 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962 docdir=$ac_optarg ;;
963
964 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965 ac_prev=dvidir ;;
966 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967 dvidir=$ac_optarg ;;
968
969 -enable-* | --enable-*)
970 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 as_fn_error $? "invalid feature name: $ac_useropt"
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
977 *"
978 "enable_$ac_useropt"
979 "*) ;;
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
982 esac
983 eval enable_$ac_useropt=\$ac_optarg ;;
984
985 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987 | --exec | --exe | --ex)
988 ac_prev=exec_prefix ;;
989 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991 | --exec=* | --exe=* | --ex=*)
992 exec_prefix=$ac_optarg ;;
993
994 -gas | --gas | --ga | --g)
995 # Obsolete; use --with-gas.
996 with_gas=yes ;;
997
998 -help | --help | --hel | --he | -h)
999 ac_init_help=long ;;
1000 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001 ac_init_help=recursive ;;
1002 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003 ac_init_help=short ;;
1004
1005 -host | --host | --hos | --ho)
1006 ac_prev=host_alias ;;
1007 -host=* | --host=* | --hos=* | --ho=*)
1008 host_alias=$ac_optarg ;;
1009
1010 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011 ac_prev=htmldir ;;
1012 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013 | --ht=*)
1014 htmldir=$ac_optarg ;;
1015
1016 -includedir | --includedir | --includedi | --included | --include \
1017 | --includ | --inclu | --incl | --inc)
1018 ac_prev=includedir ;;
1019 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020 | --includ=* | --inclu=* | --incl=* | --inc=*)
1021 includedir=$ac_optarg ;;
1022
1023 -infodir | --infodir | --infodi | --infod | --info | --inf)
1024 ac_prev=infodir ;;
1025 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026 infodir=$ac_optarg ;;
1027
1028 -libdir | --libdir | --libdi | --libd)
1029 ac_prev=libdir ;;
1030 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031 libdir=$ac_optarg ;;
1032
1033 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034 | --libexe | --libex | --libe)
1035 ac_prev=libexecdir ;;
1036 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037 | --libexe=* | --libex=* | --libe=*)
1038 libexecdir=$ac_optarg ;;
1039
1040 -localedir | --localedir | --localedi | --localed | --locale)
1041 ac_prev=localedir ;;
1042 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043 localedir=$ac_optarg ;;
1044
1045 -localstatedir | --localstatedir | --localstatedi | --localstated \
1046 | --localstate | --localstat | --localsta | --localst | --locals)
1047 ac_prev=localstatedir ;;
1048 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050 localstatedir=$ac_optarg ;;
1051
1052 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053 ac_prev=mandir ;;
1054 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055 mandir=$ac_optarg ;;
1056
1057 -nfp | --nfp | --nf)
1058 # Obsolete; use --without-fp.
1059 with_fp=no ;;
1060
1061 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062 | --no-cr | --no-c | -n)
1063 no_create=yes ;;
1064
1065 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067 no_recursion=yes ;;
1068
1069 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071 | --oldin | --oldi | --old | --ol | --o)
1072 ac_prev=oldincludedir ;;
1073 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076 oldincludedir=$ac_optarg ;;
1077
1078 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079 ac_prev=prefix ;;
1080 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081 prefix=$ac_optarg ;;
1082
1083 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084 | --program-pre | --program-pr | --program-p)
1085 ac_prev=program_prefix ;;
1086 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088 program_prefix=$ac_optarg ;;
1089
1090 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091 | --program-suf | --program-su | --program-s)
1092 ac_prev=program_suffix ;;
1093 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095 program_suffix=$ac_optarg ;;
1096
1097 -program-transform-name | --program-transform-name \
1098 | --program-transform-nam | --program-transform-na \
1099 | --program-transform-n | --program-transform- \
1100 | --program-transform | --program-transfor \
1101 | --program-transfo | --program-transf \
1102 | --program-trans | --program-tran \
1103 | --progr-tra | --program-tr | --program-t)
1104 ac_prev=program_transform_name ;;
1105 -program-transform-name=* | --program-transform-name=* \
1106 | --program-transform-nam=* | --program-transform-na=* \
1107 | --program-transform-n=* | --program-transform-=* \
1108 | --program-transform=* | --program-transfor=* \
1109 | --program-transfo=* | --program-transf=* \
1110 | --program-trans=* | --program-tran=* \
1111 | --progr-tra=* | --program-tr=* | --program-t=*)
1112 program_transform_name=$ac_optarg ;;
1113
1114 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115 ac_prev=pdfdir ;;
1116 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117 pdfdir=$ac_optarg ;;
1118
1119 -psdir | --psdir | --psdi | --psd | --ps)
1120 ac_prev=psdir ;;
1121 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122 psdir=$ac_optarg ;;
1123
1124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125 | -silent | --silent | --silen | --sile | --sil)
1126 silent=yes ;;
1127
1128 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1129 ac_prev=sbindir ;;
1130 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1131 | --sbi=* | --sb=*)
1132 sbindir=$ac_optarg ;;
1133
1134 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136 | --sharedst | --shareds | --shared | --share | --shar \
1137 | --sha | --sh)
1138 ac_prev=sharedstatedir ;;
1139 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1142 | --sha=* | --sh=*)
1143 sharedstatedir=$ac_optarg ;;
1144
1145 -site | --site | --sit)
1146 ac_prev=site ;;
1147 -site=* | --site=* | --sit=*)
1148 site=$ac_optarg ;;
1149
1150 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1151 ac_prev=srcdir ;;
1152 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1153 srcdir=$ac_optarg ;;
1154
1155 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156 | --syscon | --sysco | --sysc | --sys | --sy)
1157 ac_prev=sysconfdir ;;
1158 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1160 sysconfdir=$ac_optarg ;;
1161
1162 -target | --target | --targe | --targ | --tar | --ta | --t)
1163 ac_prev=target_alias ;;
1164 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1165 target_alias=$ac_optarg ;;
1166
1167 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1168 verbose=yes ;;
1169
1170 -version | --version | --versio | --versi | --vers | -V)
1171 ac_init_version=: ;;
1172
1173 -with-* | --with-*)
1174 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 as_fn_error $? "invalid package name: $ac_useropt"
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1181 *"
1182 "with_$ac_useropt"
1183 "*) ;;
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
1186 esac
1187 eval with_$ac_useropt=\$ac_optarg ;;
1188
1189 -without-* | --without-*)
1190 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193 as_fn_error $? "invalid package name: $ac_useropt"
1194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1197 *"
1198 "with_$ac_useropt"
1199 "*) ;;
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1202 esac
1203 eval with_$ac_useropt=no ;;
1204
1205 --x)
1206 # Obsolete; use --with-x.
1207 with_x=yes ;;
1208
1209 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1210 | --x-incl | --x-inc | --x-in | --x-i)
1211 ac_prev=x_includes ;;
1212 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1213 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1214 x_includes=$ac_optarg ;;
1215
1216 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1217 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1218 ac_prev=x_libraries ;;
1219 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1220 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1221 x_libraries=$ac_optarg ;;
1222
1223 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1224 Try \`$0 --help' for more information"
1225 ;;
1226
1227 *=*)
1228 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1229 # Reject names that are not valid shell variable names.
1230 case $ac_envvar in #(
1231 '' | [0-9]* | *[!_$as_cr_alnum]* )
1232 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1233 esac
1234 eval $ac_envvar=\$ac_optarg
1235 export $ac_envvar ;;
1236
1237 *)
1238 # FIXME: should be removed in autoconf 3.0.
1239 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1240 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1242 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1243 ;;
1244
1245 esac
1246 done
1247
1248 if test -n "$ac_prev"; then
1249 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1250 as_fn_error $? "missing argument to $ac_option"
1251 fi
1252
1253 if test -n "$ac_unrecognized_opts"; then
1254 case $enable_option_checking in
1255 no) ;;
1256 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1257 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1258 esac
1259 fi
1260
1261 # Check all directory arguments for consistency.
1262 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263 datadir sysconfdir sharedstatedir localstatedir includedir \
1264 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265 libdir localedir mandir
1266 do
1267 eval ac_val=\$$ac_var
1268 # Remove trailing slashes.
1269 case $ac_val in
1270 */ )
1271 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1272 eval $ac_var=\$ac_val;;
1273 esac
1274 # Be sure to have absolute directory names.
1275 case $ac_val in
1276 [\\/$]* | ?:[\\/]* ) continue;;
1277 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1278 esac
1279 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1280 done
1281
1282 # There might be people who depend on the old broken behavior: `$host'
1283 # used to hold the argument of --host etc.
1284 # FIXME: To remove some day.
1285 build=$build_alias
1286 host=$host_alias
1287 target=$target_alias
1288
1289 # FIXME: To remove some day.
1290 if test "x$host_alias" != x; then
1291 if test "x$build_alias" = x; then
1292 cross_compiling=maybe
1293 elif test "x$build_alias" != "x$host_alias"; then
1294 cross_compiling=yes
1295 fi
1296 fi
1297
1298 ac_tool_prefix=
1299 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1300
1301 test "$silent" = yes && exec 6>/dev/null
1302
1303
1304 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1305 ac_ls_di=`ls -di .` &&
1306 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1307 as_fn_error $? "working directory cannot be determined"
1308 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309 as_fn_error $? "pwd does not report name of working directory"
1310
1311
1312 # Find the source files, if location was not specified.
1313 if test -z "$srcdir"; then
1314 ac_srcdir_defaulted=yes
1315 # Try the directory containing this script, then the parent directory.
1316 ac_confdir=`$as_dirname -- "$as_myself" ||
1317 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1318 X"$as_myself" : 'X\(//\)[^/]' \| \
1319 X"$as_myself" : 'X\(//\)$' \| \
1320 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1321 $as_echo X"$as_myself" |
1322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\/\)[^/].*/{
1327 s//\1/
1328 q
1329 }
1330 /^X\(\/\/\)$/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\).*/{
1335 s//\1/
1336 q
1337 }
1338 s/.*/./; q'`
1339 srcdir=$ac_confdir
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 srcdir=..
1342 fi
1343 else
1344 ac_srcdir_defaulted=no
1345 fi
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1348 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1349 fi
1350 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351 ac_abs_confdir=`(
1352 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1353 pwd)`
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1356 srcdir=.
1357 fi
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1361 case $srcdir in
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363 esac
1364 for ac_var in $ac_precious_vars; do
1365 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_env_${ac_var}_value=\$${ac_var}
1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369 done
1370
1371 #
1372 # Report the --help message.
1373 #
1374 if test "$ac_init_help" = "long"; then
1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.
1377 cat <<_ACEOF
1378 \`configure' configures xcb-util-image 0.4.0 to adapt to many kinds of systems.
1379
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1381
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE. See below for descriptions of some of the useful variables.
1384
1385 Defaults for the options are specified in brackets.
1386
1387 Configuration:
1388 -h, --help display this help and exit
1389 --help=short display options specific to this package
1390 --help=recursive display the short help of all the included packages
1391 -V, --version display version information and exit
1392 -q, --quiet, --silent do not print \`checking ...' messages
1393 --cache-file=FILE cache test results in FILE [disabled]
1394 -C, --config-cache alias for \`--cache-file=config.cache'
1395 -n, --no-create do not create output files
1396 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1397
1398 Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
1400 [$ac_default_prefix]
1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1402 [PREFIX]
1403
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1408
1409 For better control, use the options below.
1410
1411 Fine tuning of the installation directories:
1412 --bindir=DIR user executables [EPREFIX/bin]
1413 --sbindir=DIR system admin executables [EPREFIX/sbin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1418 --libdir=DIR object code libraries [EPREFIX/lib]
1419 --includedir=DIR C header files [PREFIX/include]
1420 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1421 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1422 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1423 --infodir=DIR info documentation [DATAROOTDIR/info]
1424 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1425 --mandir=DIR man documentation [DATAROOTDIR/man]
1426 --docdir=DIR documentation root [DATAROOTDIR/doc/xcb-util-image]
1427 --htmldir=DIR html documentation [DOCDIR]
1428 --dvidir=DIR dvi documentation [DOCDIR]
1429 --pdfdir=DIR pdf documentation [DOCDIR]
1430 --psdir=DIR ps documentation [DOCDIR]
1431 _ACEOF
1432
1433 cat <<\_ACEOF
1434
1435 Program names:
1436 --program-prefix=PREFIX prepend PREFIX to installed program names
1437 --program-suffix=SUFFIX append SUFFIX to installed program names
1438 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1439
1440 System types:
1441 --build=BUILD configure for building on BUILD [guessed]
1442 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1443 _ACEOF
1444 fi
1445
1446 if test -n "$ac_init_help"; then
1447 case $ac_init_help in
1448 short | recursive ) echo "Configuration of xcb-util-image 0.4.0:";;
1449 esac
1450 cat <<\_ACEOF
1451
1452 Optional Features:
1453 --disable-option-checking ignore unrecognized --enable/--with options
1454 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1455 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1456 --enable-silent-rules less verbose build output (undo: "make V=1")
1457 --disable-silent-rules verbose build output (undo: "make V=0")
1458 --enable-maintainer-mode
1459 enable make rules and dependencies not useful (and
1460 sometimes confusing) to the casual installer
1461 --enable-shared[=PKGS] build shared libraries [default=yes]
1462 --enable-static[=PKGS] build static libraries [default=yes]
1463 --enable-fast-install[=PKGS]
1464 optimize for fast installation [default=yes]
1465 --enable-dependency-tracking
1466 do not reject slow dependency extractors
1467 --disable-dependency-tracking
1468 speeds up one-time build
1469 --disable-libtool-lock avoid locking (might break parallel builds)
1470 --disable-selective-werror
1471 Turn off selective compiler errors. (default:
1472 enabled)
1473 --enable-strict-compilation
1474 Enable all warnings from compiler and make them
1475 errors (default: disabled)
1476 --enable-devel-docs Enable building the developer documentation
1477 (default: yes)
1478
1479 Optional Packages:
1480 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1481 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1482 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1483 both]
1484 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1485 --with-sysroot=DIR Search for dependent libraries within DIR
1486 (or the compiler's sysroot if not specified).
1487 --with-doxygen Use doxygen to regenerate documentation (default:
1488 auto)
1489
1490 Some influential environment variables:
1491 CC C compiler command
1492 CFLAGS C compiler flags
1493 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1494 nonstandard directory <lib dir>
1495 LIBS libraries to pass to the linker, e.g. -l<library>
1496 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1497 you have headers in a nonstandard directory <include dir>
1498 CPP C preprocessor
1499 PKG_CONFIG path to pkg-config utility
1500 PKG_CONFIG_PATH
1501 directories to add to pkg-config's search path
1502 PKG_CONFIG_LIBDIR
1503 path overriding pkg-config's built-in search path
1504 XCB_CFLAGS C compiler flags for XCB, overriding pkg-config
1505 XCB_LIBS linker flags for XCB, overriding pkg-config
1506 DOXYGEN Path to doxygen command
1507 DOT Path to the dot graphics utility
1508 XCB_SHM_CFLAGS
1509 C compiler flags for XCB_SHM, overriding pkg-config
1510 XCB_SHM_LIBS
1511 linker flags for XCB_SHM, overriding pkg-config
1512 XPROTO_CFLAGS
1513 C compiler flags for XPROTO, overriding pkg-config
1514 XPROTO_LIBS linker flags for XPROTO, overriding pkg-config
1515 XCB_UTIL_CFLAGS
1516 C compiler flags for XCB_UTIL, overriding pkg-config
1517 XCB_UTIL_LIBS
1518 linker flags for XCB_UTIL, overriding pkg-config
1519
1520 Use these variables to override the choices made by `configure' or to help
1521 it to find libraries and programs with nonstandard names/locations.
1522
1523 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xcb&component=Utils>.
1524 _ACEOF
1525 ac_status=$?
1526 fi
1527
1528 if test "$ac_init_help" = "recursive"; then
1529 # If there are subdirs, report their specific --help.
1530 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1531 test -d "$ac_dir" ||
1532 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1533 continue
1534 ac_builddir=.
1535
1536 case "$ac_dir" in
1537 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538 *)
1539 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1540 # A ".." for each directory in $ac_dir_suffix.
1541 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1542 case $ac_top_builddir_sub in
1543 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1545 esac ;;
1546 esac
1547 ac_abs_top_builddir=$ac_pwd
1548 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1549 # for backward compatibility:
1550 ac_top_builddir=$ac_top_build_prefix
1551
1552 case $srcdir in
1553 .) # We are building in place.
1554 ac_srcdir=.
1555 ac_top_srcdir=$ac_top_builddir_sub
1556 ac_abs_top_srcdir=$ac_pwd ;;
1557 [\\/]* | ?:[\\/]* ) # Absolute name.
1558 ac_srcdir=$srcdir$ac_dir_suffix;
1559 ac_top_srcdir=$srcdir
1560 ac_abs_top_srcdir=$srcdir ;;
1561 *) # Relative name.
1562 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1563 ac_top_srcdir=$ac_top_build_prefix$srcdir
1564 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1565 esac
1566 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1567
1568 cd "$ac_dir" || { ac_status=$?; continue; }
1569 # Check for guested configure.
1570 if test -f "$ac_srcdir/configure.gnu"; then
1571 echo &&
1572 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1573 elif test -f "$ac_srcdir/configure"; then
1574 echo &&
1575 $SHELL "$ac_srcdir/configure" --help=recursive
1576 else
1577 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1578 fi || ac_status=$?
1579 cd "$ac_pwd" || { ac_status=$?; break; }
1580 done
1581 fi
1582
1583 test -n "$ac_init_help" && exit $ac_status
1584 if $ac_init_version; then
1585 cat <<\_ACEOF
1586 xcb-util-image configure 0.4.0
1587 generated by GNU Autoconf 2.69
1588
1589 Copyright (C) 2012 Free Software Foundation, Inc.
1590 This configure script is free software; the Free Software Foundation
1591 gives unlimited permission to copy, distribute and modify it.
1592 _ACEOF
1593 exit
1594 fi
1595
1596 ## ------------------------ ##
1597 ## Autoconf initialization. ##
1598 ## ------------------------ ##
1599
1600 # ac_fn_c_try_compile LINENO
1601 # --------------------------
1602 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1603 ac_fn_c_try_compile ()
1604 {
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 rm -f conftest.$ac_objext
1607 if { { ac_try="$ac_compile"
1608 case "(($ac_try" in
1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610 *) ac_try_echo=$ac_try;;
1611 esac
1612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613 $as_echo "$ac_try_echo"; } >&5
1614 (eval "$ac_compile") 2>conftest.err
1615 ac_status=$?
1616 if test -s conftest.err; then
1617 grep -v '^ *+' conftest.err >conftest.er1
1618 cat conftest.er1 >&5
1619 mv -f conftest.er1 conftest.err
1620 fi
1621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622 test $ac_status = 0; } && {
1623 test -z "$ac_c_werror_flag" ||
1624 test ! -s conftest.err
1625 } && test -s conftest.$ac_objext; then :
1626 ac_retval=0
1627 else
1628 $as_echo "$as_me: failed program was:" >&5
1629 sed 's/^/| /' conftest.$ac_ext >&5
1630
1631 ac_retval=1
1632 fi
1633 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1634 as_fn_set_status $ac_retval
1635
1636 } # ac_fn_c_try_compile
1637
1638 # ac_fn_c_try_link LINENO
1639 # -----------------------
1640 # Try to link conftest.$ac_ext, and return whether this succeeded.
1641 ac_fn_c_try_link ()
1642 {
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 rm -f conftest.$ac_objext conftest$ac_exeext
1645 if { { ac_try="$ac_link"
1646 case "(($ac_try" in
1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648 *) ac_try_echo=$ac_try;;
1649 esac
1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651 $as_echo "$ac_try_echo"; } >&5
1652 (eval "$ac_link") 2>conftest.err
1653 ac_status=$?
1654 if test -s conftest.err; then
1655 grep -v '^ *+' conftest.err >conftest.er1
1656 cat conftest.er1 >&5
1657 mv -f conftest.er1 conftest.err
1658 fi
1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660 test $ac_status = 0; } && {
1661 test -z "$ac_c_werror_flag" ||
1662 test ! -s conftest.err
1663 } && test -s conftest$ac_exeext && {
1664 test "$cross_compiling" = yes ||
1665 test -x conftest$ac_exeext
1666 }; then :
1667 ac_retval=0
1668 else
1669 $as_echo "$as_me: failed program was:" >&5
1670 sed 's/^/| /' conftest.$ac_ext >&5
1671
1672 ac_retval=1
1673 fi
1674 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1675 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1676 # interfere with the next link command; also delete a directory that is
1677 # left behind by Apple's compiler. We do this before executing the actions.
1678 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680 as_fn_set_status $ac_retval
1681
1682 } # ac_fn_c_try_link
1683
1684 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1685 # -------------------------------------------------------
1686 # Tests whether HEADER exists and can be compiled using the include files in
1687 # INCLUDES, setting the cache variable VAR accordingly.
1688 ac_fn_c_check_header_compile ()
1689 {
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1692 $as_echo_n "checking for $2... " >&6; }
1693 if eval \${$3+:} false; then :
1694 $as_echo_n "(cached) " >&6
1695 else
1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697 /* end confdefs.h. */
1698 $4
1699 #include <$2>
1700 _ACEOF
1701 if ac_fn_c_try_compile "$LINENO"; then :
1702 eval "$3=yes"
1703 else
1704 eval "$3=no"
1705 fi
1706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1707 fi
1708 eval ac_res=\$$3
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1710 $as_echo "$ac_res" >&6; }
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712
1713 } # ac_fn_c_check_header_compile
1714
1715 # ac_fn_c_try_cpp LINENO
1716 # ----------------------
1717 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1718 ac_fn_c_try_cpp ()
1719 {
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 if { { ac_try="$ac_cpp conftest.$ac_ext"
1722 case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725 esac
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 $as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1729 ac_status=$?
1730 if test -s conftest.err; then
1731 grep -v '^ *+' conftest.err >conftest.er1
1732 cat conftest.er1 >&5
1733 mv -f conftest.er1 conftest.err
1734 fi
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } > conftest.i && {
1737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1738 test ! -s conftest.err
1739 }; then :
1740 ac_retval=0
1741 else
1742 $as_echo "$as_me: failed program was:" >&5
1743 sed 's/^/| /' conftest.$ac_ext >&5
1744
1745 ac_retval=1
1746 fi
1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748 as_fn_set_status $ac_retval
1749
1750 } # ac_fn_c_try_cpp
1751
1752 # ac_fn_c_try_run LINENO
1753 # ----------------------
1754 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1755 # that executables *can* be run.
1756 ac_fn_c_try_run ()
1757 {
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 if { { ac_try="$ac_link"
1760 case "(($ac_try" in
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1763 esac
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 $as_echo "$ac_try_echo"; } >&5
1766 (eval "$ac_link") 2>&5
1767 ac_status=$?
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1770 { { case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_try") 2>&5
1777 ac_status=$?
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; }; }; then :
1780 ac_retval=0
1781 else
1782 $as_echo "$as_me: program exited with status $ac_status" >&5
1783 $as_echo "$as_me: failed program was:" >&5
1784 sed 's/^/| /' conftest.$ac_ext >&5
1785
1786 ac_retval=$ac_status
1787 fi
1788 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790 as_fn_set_status $ac_retval
1791
1792 } # ac_fn_c_try_run
1793
1794 # ac_fn_c_check_func LINENO FUNC VAR
1795 # ----------------------------------
1796 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1797 ac_fn_c_check_func ()
1798 {
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801 $as_echo_n "checking for $2... " >&6; }
1802 if eval \${$3+:} false; then :
1803 $as_echo_n "(cached) " >&6
1804 else
1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806 /* end confdefs.h. */
1807 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1809 #define $2 innocuous_$2
1810
1811 /* System header to define __stub macros and hopefully few prototypes,
1812 which can conflict with char $2 (); below.
1813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1814 <limits.h> exists even on freestanding compilers. */
1815
1816 #ifdef __STDC__
1817 # include <limits.h>
1818 #else
1819 # include <assert.h>
1820 #endif
1821
1822 #undef $2
1823
1824 /* Override any GCC internal prototype to avoid an error.
1825 Use char because int might match the return type of a GCC
1826 builtin and then its argument prototype would still apply. */
1827 #ifdef __cplusplus
1828 extern "C"
1829 #endif
1830 char $2 ();
1831 /* The GNU C library defines this for functions which it implements
1832 to always fail with ENOSYS. Some functions are actually named
1833 something starting with __ and the normal name is an alias. */
1834 #if defined __stub_$2 || defined __stub___$2
1835 choke me
1836 #endif
1837
1838 int
1839 main ()
1840 {
1841 return $2 ();
1842 ;
1843 return 0;
1844 }
1845 _ACEOF
1846 if ac_fn_c_try_link "$LINENO"; then :
1847 eval "$3=yes"
1848 else
1849 eval "$3=no"
1850 fi
1851 rm -f core conftest.err conftest.$ac_objext \
1852 conftest$ac_exeext conftest.$ac_ext
1853 fi
1854 eval ac_res=\$$3
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856 $as_echo "$ac_res" >&6; }
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858
1859 } # ac_fn_c_check_func
1860
1861 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1862 # ---------------------------------------------
1863 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1864 # accordingly.
1865 ac_fn_c_check_decl ()
1866 {
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 as_decl_name=`echo $2|sed 's/ *(.*//'`
1869 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1871 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1872 if eval \${$3+:} false; then :
1873 $as_echo_n "(cached) " >&6
1874 else
1875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876 /* end confdefs.h. */
1877 $4
1878 int
1879 main ()
1880 {
1881 #ifndef $as_decl_name
1882 #ifdef __cplusplus
1883 (void) $as_decl_use;
1884 #else
1885 (void) $as_decl_name;
1886 #endif
1887 #endif
1888
1889 ;
1890 return 0;
1891 }
1892 _ACEOF
1893 if ac_fn_c_try_compile "$LINENO"; then :
1894 eval "$3=yes"
1895 else
1896 eval "$3=no"
1897 fi
1898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899 fi
1900 eval ac_res=\$$3
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904
1905 } # ac_fn_c_check_decl
1906
1907 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1908 # -------------------------------------------------------
1909 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1910 # the include files in INCLUDES and setting the cache variable VAR
1911 # accordingly.
1912 ac_fn_c_check_header_mongrel ()
1913 {
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 if eval \${$3+:} false; then :
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917 $as_echo_n "checking for $2... " >&6; }
1918 if eval \${$3+:} false; then :
1919 $as_echo_n "(cached) " >&6
1920 fi
1921 eval ac_res=\$$3
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 $as_echo "$ac_res" >&6; }
1924 else
1925 # Is the header compilable?
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1927 $as_echo_n "checking $2 usability... " >&6; }
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1930 $4
1931 #include <$2>
1932 _ACEOF
1933 if ac_fn_c_try_compile "$LINENO"; then :
1934 ac_header_compiler=yes
1935 else
1936 ac_header_compiler=no
1937 fi
1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1940 $as_echo "$ac_header_compiler" >&6; }
1941
1942 # Is the header present?
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1944 $as_echo_n "checking $2 presence... " >&6; }
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1947 #include <$2>
1948 _ACEOF
1949 if ac_fn_c_try_cpp "$LINENO"; then :
1950 ac_header_preproc=yes
1951 else
1952 ac_header_preproc=no
1953 fi
1954 rm -f conftest.err conftest.i conftest.$ac_ext
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1956 $as_echo "$ac_header_preproc" >&6; }
1957
1958 # So? What about this header?
1959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1960 yes:no: )
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1962 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1964 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1965 ;;
1966 no:yes:* )
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1968 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1970 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1972 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1974 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1976 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1977 ( $as_echo "## ------------------------------------------------------------------------------------- ##
1978 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xcb&component=Utils ##
1979 ## ------------------------------------------------------------------------------------- ##"
1980 ) | sed "s/^/$as_me: WARNING: /" >&2
1981 ;;
1982 esac
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1984 $as_echo_n "checking for $2... " >&6; }
1985 if eval \${$3+:} false; then :
1986 $as_echo_n "(cached) " >&6
1987 else
1988 eval "$3=\$ac_header_compiler"
1989 fi
1990 eval ac_res=\$$3
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1993 fi
1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995
1996 } # ac_fn_c_check_header_mongrel
1997 cat >config.log <<_ACEOF
1998 This file contains any messages produced by compilers while
1999 running configure, to aid debugging if configure makes a mistake.
2000
2001 It was created by xcb-util-image $as_me 0.4.0, which was
2002 generated by GNU Autoconf 2.69. Invocation command line was
2003
2004 $ $0 $@
2005
2006 _ACEOF
2007 exec 5>>config.log
2008 {
2009 cat <<_ASUNAME
2010 ## --------- ##
2011 ## Platform. ##
2012 ## --------- ##
2013
2014 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2015 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2016 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2017 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2018 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2019
2020 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2021 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2022
2023 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2024 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2025 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2026 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2027 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2028 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2029 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2030
2031 _ASUNAME
2032
2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034 for as_dir in $PATH
2035 do
2036 IFS=$as_save_IFS
2037 test -z "$as_dir" && as_dir=.
2038 $as_echo "PATH: $as_dir"
2039 done
2040 IFS=$as_save_IFS
2041
2042 } >&5
2043
2044 cat >&5 <<_ACEOF
2045
2046
2047 ## ----------- ##
2048 ## Core tests. ##
2049 ## ----------- ##
2050
2051 _ACEOF
2052
2053
2054 # Keep a trace of the command line.
2055 # Strip out --no-create and --no-recursion so they do not pile up.
2056 # Strip out --silent because we don't want to record it for future runs.
2057 # Also quote any args containing shell meta-characters.
2058 # Make two passes to allow for proper duplicate-argument suppression.
2059 ac_configure_args=
2060 ac_configure_args0=
2061 ac_configure_args1=
2062 ac_must_keep_next=false
2063 for ac_pass in 1 2
2064 do
2065 for ac_arg
2066 do
2067 case $ac_arg in
2068 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2070 | -silent | --silent | --silen | --sile | --sil)
2071 continue ;;
2072 *\'*)
2073 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2074 esac
2075 case $ac_pass in
2076 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2077 2)
2078 as_fn_append ac_configure_args1 " '$ac_arg'"
2079 if test $ac_must_keep_next = true; then
2080 ac_must_keep_next=false # Got value, back to normal.
2081 else
2082 case $ac_arg in
2083 *=* | --config-cache | -C | -disable-* | --disable-* \
2084 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2085 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2086 | -with-* | --with-* | -without-* | --without-* | --x)
2087 case "$ac_configure_args0 " in
2088 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2089 esac
2090 ;;
2091 -* ) ac_must_keep_next=true ;;
2092 esac
2093 fi
2094 as_fn_append ac_configure_args " '$ac_arg'"
2095 ;;
2096 esac
2097 done
2098 done
2099 { ac_configure_args0=; unset ac_configure_args0;}
2100 { ac_configure_args1=; unset ac_configure_args1;}
2101
2102 # When interrupted or exit'd, cleanup temporary files, and complete
2103 # config.log. We remove comments because anyway the quotes in there
2104 # would cause problems or look ugly.
2105 # WARNING: Use '\'' to represent an apostrophe within the trap.
2106 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2107 trap 'exit_status=$?
2108 # Save into config.log some information that might help in debugging.
2109 {
2110 echo
2111
2112 $as_echo "## ---------------- ##
2113 ## Cache variables. ##
2114 ## ---------------- ##"
2115 echo
2116 # The following way of writing the cache mishandles newlines in values,
2117 (
2118 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2119 eval ac_val=\$$ac_var
2120 case $ac_val in #(
2121 *${as_nl}*)
2122 case $ac_var in #(
2123 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2124 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2125 esac
2126 case $ac_var in #(
2127 _ | IFS | as_nl) ;; #(
2128 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2129 *) { eval $ac_var=; unset $ac_var;} ;;
2130 esac ;;
2131 esac
2132 done
2133 (set) 2>&1 |
2134 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2135 *${as_nl}ac_space=\ *)
2136 sed -n \
2137 "s/'\''/'\''\\\\'\'''\''/g;
2138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2139 ;; #(
2140 *)
2141 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2142 ;;
2143 esac |
2144 sort
2145 )
2146 echo
2147
2148 $as_echo "## ----------------- ##
2149 ## Output variables. ##
2150 ## ----------------- ##"
2151 echo
2152 for ac_var in $ac_subst_vars
2153 do
2154 eval ac_val=\$$ac_var
2155 case $ac_val in
2156 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2157 esac
2158 $as_echo "$ac_var='\''$ac_val'\''"
2159 done | sort
2160 echo
2161
2162 if test -n "$ac_subst_files"; then
2163 $as_echo "## ------------------- ##
2164 ## File substitutions. ##
2165 ## ------------------- ##"
2166 echo
2167 for ac_var in $ac_subst_files
2168 do
2169 eval ac_val=\$$ac_var
2170 case $ac_val in
2171 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2172 esac
2173 $as_echo "$ac_var='\''$ac_val'\''"
2174 done | sort
2175 echo
2176 fi
2177
2178 if test -s confdefs.h; then
2179 $as_echo "## ----------- ##
2180 ## confdefs.h. ##
2181 ## ----------- ##"
2182 echo
2183 cat confdefs.h
2184 echo
2185 fi
2186 test "$ac_signal" != 0 &&
2187 $as_echo "$as_me: caught signal $ac_signal"
2188 $as_echo "$as_me: exit $exit_status"
2189 } >&5
2190 rm -f core *.core core.conftest.* &&
2191 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2192 exit $exit_status
2193 ' 0
2194 for ac_signal in 1 2 13 15; do
2195 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2196 done
2197 ac_signal=0
2198
2199 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2200 rm -f -r conftest* confdefs.h
2201
2202 $as_echo "/* confdefs.h */" > confdefs.h
2203
2204 # Predefined preprocessor variables.
2205
2206 cat >>confdefs.h <<_ACEOF
2207 #define PACKAGE_NAME "$PACKAGE_NAME"
2208 _ACEOF
2209
2210 cat >>confdefs.h <<_ACEOF
2211 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2212 _ACEOF
2213
2214 cat >>confdefs.h <<_ACEOF
2215 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2216 _ACEOF
2217
2218 cat >>confdefs.h <<_ACEOF
2219 #define PACKAGE_STRING "$PACKAGE_STRING"
2220 _ACEOF
2221
2222 cat >>confdefs.h <<_ACEOF
2223 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2224 _ACEOF
2225
2226 cat >>confdefs.h <<_ACEOF
2227 #define PACKAGE_URL "$PACKAGE_URL"
2228 _ACEOF
2229
2230
2231 # Let the site file select an alternate cache file if it wants to.
2232 # Prefer an explicitly selected file to automatically selected ones.
2233 ac_site_file1=NONE
2234 ac_site_file2=NONE
2235 if test -n "$CONFIG_SITE"; then
2236 # We do not want a PATH search for config.site.
2237 case $CONFIG_SITE in #((
2238 -*) ac_site_file1=./$CONFIG_SITE;;
2239 */*) ac_site_file1=$CONFIG_SITE;;
2240 *) ac_site_file1=./$CONFIG_SITE;;
2241 esac
2242 elif test "x$prefix" != xNONE; then
2243 ac_site_file1=$prefix/share/config.site
2244 ac_site_file2=$prefix/etc/config.site
2245 else
2246 ac_site_file1=$ac_default_prefix/share/config.site
2247 ac_site_file2=$ac_default_prefix/etc/config.site
2248 fi
2249 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2250 do
2251 test "x$ac_site_file" = xNONE && continue
2252 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2254 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2255 sed 's/^/| /' "$ac_site_file" >&5
2256 . "$ac_site_file" \
2257 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2259 as_fn_error $? "failed to load site script $ac_site_file
2260 See \`config.log' for more details" "$LINENO" 5; }
2261 fi
2262 done
2263
2264 if test -r "$cache_file"; then
2265 # Some versions of bash will fail to source /dev/null (special files
2266 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2267 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2269 $as_echo "$as_me: loading cache $cache_file" >&6;}
2270 case $cache_file in
2271 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2272 *) . "./$cache_file";;
2273 esac
2274 fi
2275 else
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2277 $as_echo "$as_me: creating cache $cache_file" >&6;}
2278 >$cache_file
2279 fi
2280
2281 # Check that the precious variables saved in the cache have kept the same
2282 # value.
2283 ac_cache_corrupted=false
2284 for ac_var in $ac_precious_vars; do
2285 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2286 eval ac_new_set=\$ac_env_${ac_var}_set
2287 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2288 eval ac_new_val=\$ac_env_${ac_var}_value
2289 case $ac_old_set,$ac_new_set in
2290 set,)
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2292 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2293 ac_cache_corrupted=: ;;
2294 ,set)
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2296 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2297 ac_cache_corrupted=: ;;
2298 ,);;
2299 *)
2300 if test "x$ac_old_val" != "x$ac_new_val"; then
2301 # differences in whitespace do not lead to failure.
2302 ac_old_val_w=`echo x $ac_old_val`
2303 ac_new_val_w=`echo x $ac_new_val`
2304 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2306 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2307 ac_cache_corrupted=:
2308 else
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2310 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2311 eval $ac_var=\$ac_old_val
2312 fi
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2314 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2316 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2317 fi;;
2318 esac
2319 # Pass precious variables to config.status.
2320 if test "$ac_new_set" = set; then
2321 case $ac_new_val in
2322 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2323 *) ac_arg=$ac_var=$ac_new_val ;;
2324 esac
2325 case " $ac_configure_args " in
2326 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2327 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2328 esac
2329 fi
2330 done
2331 if $ac_cache_corrupted; then
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2335 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2336 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2337 fi
2338 ## -------------------- ##
2339 ## Main body of script. ##
2340 ## -------------------- ##
2341
2342 ac_ext=c
2343 ac_cpp='$CPP $CPPFLAGS'
2344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2347
2348
2349
2350 ac_config_headers="$ac_config_headers config.h"
2351
2352
2353 am__api_version='1.14'
2354
2355 ac_aux_dir=
2356 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2357 if test -f "$ac_dir/install-sh"; then
2358 ac_aux_dir=$ac_dir
2359 ac_install_sh="$ac_aux_dir/install-sh -c"
2360 break
2361 elif test -f "$ac_dir/install.sh"; then
2362 ac_aux_dir=$ac_dir
2363 ac_install_sh="$ac_aux_dir/install.sh -c"
2364 break
2365 elif test -f "$ac_dir/shtool"; then
2366 ac_aux_dir=$ac_dir
2367 ac_install_sh="$ac_aux_dir/shtool install -c"
2368 break
2369 fi
2370 done
2371 if test -z "$ac_aux_dir"; then
2372 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2373 fi
2374
2375 # These three variables are undocumented and unsupported,
2376 # and are intended to be withdrawn in a future Autoconf release.
2377 # They can cause serious problems if a builder's source tree is in a directory
2378 # whose full name contains unusual characters.
2379 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2380 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2381 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2382
2383
2384 # Find a good install program. We prefer a C program (faster),
2385 # so one script is as good as another. But avoid the broken or
2386 # incompatible versions:
2387 # SysV /etc/install, /usr/sbin/install
2388 # SunOS /usr/etc/install
2389 # IRIX /sbin/install
2390 # AIX /bin/install
2391 # AmigaOS /C/install, which installs bootblocks on floppy discs
2392 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2393 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2394 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2395 # OS/2's system install, which has a completely different semantic
2396 # ./install, which can be erroneously created by make from ./install.sh.
2397 # Reject install programs that cannot install multiple files.
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2399 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2400 if test -z "$INSTALL"; then
2401 if ${ac_cv_path_install+:} false; then :
2402 $as_echo_n "(cached) " >&6
2403 else
2404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 for as_dir in $PATH
2406 do
2407 IFS=$as_save_IFS
2408 test -z "$as_dir" && as_dir=.
2409 # Account for people who put trailing slashes in PATH elements.
2410 case $as_dir/ in #((
2411 ./ | .// | /[cC]/* | \
2412 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2413 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2414 /usr/ucb/* ) ;;
2415 *)
2416 # OSF1 and SCO ODT 3.0 have their own names for install.
2417 # Don't use installbsd from OSF since it installs stuff as root
2418 # by default.
2419 for ac_prog in ginstall scoinst install; do
2420 for ac_exec_ext in '' $ac_executable_extensions; do
2421 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2422 if test $ac_prog = install &&
2423 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2424 # AIX install. It has an incompatible calling convention.
2425 :
2426 elif test $ac_prog = install &&
2427 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2428 # program-specific install script used by HP pwplus--don't use.
2429 :
2430 else
2431 rm -rf conftest.one conftest.two conftest.dir
2432 echo one > conftest.one
2433 echo two > conftest.two
2434 mkdir conftest.dir
2435 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2436 test -s conftest.one && test -s conftest.two &&
2437 test -s conftest.dir/conftest.one &&
2438 test -s conftest.dir/conftest.two
2439 then
2440 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2441 break 3
2442 fi
2443 fi
2444 fi
2445 done
2446 done
2447 ;;
2448 esac
2449
2450 done
2451 IFS=$as_save_IFS
2452
2453 rm -rf conftest.one conftest.two conftest.dir
2454
2455 fi
2456 if test "${ac_cv_path_install+set}" = set; then
2457 INSTALL=$ac_cv_path_install
2458 else
2459 # As a last resort, use the slow shell script. Don't cache a
2460 # value for INSTALL within a source directory, because that will
2461 # break other packages using the cache if that directory is
2462 # removed, or if the value is a relative name.
2463 INSTALL=$ac_install_sh
2464 fi
2465 fi
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2467 $as_echo "$INSTALL" >&6; }
2468
2469 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2470 # It thinks the first close brace ends the variable substitution.
2471 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2472
2473 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2474
2475 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2476
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2478 $as_echo_n "checking whether build environment is sane... " >&6; }
2479 # Reject unsafe characters in $srcdir or the absolute working directory
2480 # name. Accept space and tab only in the latter.
2481 am_lf='
2482 '
2483 case `pwd` in
2484 *[\\\"\#\$\&\'\`$am_lf]*)
2485 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2486 esac
2487 case $srcdir in
2488 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2489 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2490 esac
2491
2492 # Do 'set' in a subshell so we don't clobber the current shell's
2493 # arguments. Must try -L first in case configure is actually a
2494 # symlink; some systems play weird games with the mod time of symlinks
2495 # (eg FreeBSD returns the mod time of the symlink's containing
2496 # directory).
2497 if (
2498 am_has_slept=no
2499 for am_try in 1 2; do
2500 echo "timestamp, slept: $am_has_slept" > conftest.file
2501 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2502 if test "$*" = "X"; then
2503 # -L didn't work.
2504 set X `ls -t "$srcdir/configure" conftest.file`
2505 fi
2506 if test "$*" != "X $srcdir/configure conftest.file" \
2507 && test "$*" != "X conftest.file $srcdir/configure"; then
2508
2509 # If neither matched, then we have a broken ls. This can happen
2510 # if, for instance, CONFIG_SHELL is bash and it inherits a
2511 # broken ls alias from the environment. This has actually
2512 # happened. Such a system could not be considered "sane".
2513 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2514 alias in your environment" "$LINENO" 5
2515 fi
2516 if test "$2" = conftest.file || test $am_try -eq 2; then
2517 break
2518 fi
2519 # Just in case.
2520 sleep 1
2521 am_has_slept=yes
2522 done
2523 test "$2" = conftest.file
2524 )
2525 then
2526 # Ok.
2527 :
2528 else
2529 as_fn_error $? "newly created file is older than distributed files!
2530 Check your system clock" "$LINENO" 5
2531 fi
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2533 $as_echo "yes" >&6; }
2534 # If we didn't sleep, we still need to ensure time stamps of config.status and
2535 # generated files are strictly newer.
2536 am_sleep_pid=
2537 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2538 ( sleep 1 ) &
2539 am_sleep_pid=$!
2540 fi
2541
2542 rm -f conftest.file
2543
2544 test "$program_prefix" != NONE &&
2545 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2546 # Use a double $ so make ignores it.
2547 test "$program_suffix" != NONE &&
2548 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2549 # Double any \ or $.
2550 # By default was `s,x,x', remove it if useless.
2551 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2552 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2553
2554 # expand $ac_aux_dir to an absolute path
2555 am_aux_dir=`cd $ac_aux_dir && pwd`
2556
2557 if test x"${MISSING+set}" != xset; then
2558 case $am_aux_dir in
2559 *\ * | *\ *)
2560 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2561 *)
2562 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2563 esac
2564 fi
2565 # Use eval to expand $SHELL
2566 if eval "$MISSING --is-lightweight"; then
2567 am_missing_run="$MISSING "
2568 else
2569 am_missing_run=
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2571 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2572 fi
2573
2574 if test x"${install_sh}" != xset; then
2575 case $am_aux_dir in
2576 *\ * | *\ *)
2577 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2578 *)
2579 install_sh="\${SHELL} $am_aux_dir/install-sh"
2580 esac
2581 fi
2582
2583 # Installed binaries are usually stripped using 'strip' when the user
2584 # run "make install-strip". However 'strip' might not be the right
2585 # tool to use in cross-compilation environments, therefore Automake
2586 # will honor the 'STRIP' environment variable to overrule this program.
2587 if test "$cross_compiling" != no; then
2588 if test -n "$ac_tool_prefix"; then
2589 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2590 set dummy ${ac_tool_prefix}strip; ac_word=$2
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2592 $as_echo_n "checking for $ac_word... " >&6; }
2593 if ${ac_cv_prog_STRIP+:} false; then :
2594 $as_echo_n "(cached) " >&6
2595 else
2596 if test -n "$STRIP"; then
2597 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2598 else
2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600 for as_dir in $PATH
2601 do
2602 IFS=$as_save_IFS
2603 test -z "$as_dir" && as_dir=.
2604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2606 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2608 break 2
2609 fi
2610 done
2611 done
2612 IFS=$as_save_IFS
2613
2614 fi
2615 fi
2616 STRIP=$ac_cv_prog_STRIP
2617 if test -n "$STRIP"; then
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2619 $as_echo "$STRIP" >&6; }
2620 else
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2622 $as_echo "no" >&6; }
2623 fi
2624
2625
2626 fi
2627 if test -z "$ac_cv_prog_STRIP"; then
2628 ac_ct_STRIP=$STRIP
2629 # Extract the first word of "strip", so it can be a program name with args.
2630 set dummy strip; ac_word=$2
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2632 $as_echo_n "checking for $ac_word... " >&6; }
2633 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2634 $as_echo_n "(cached) " >&6
2635 else
2636 if test -n "$ac_ct_STRIP"; then
2637 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2638 else
2639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 for as_dir in $PATH
2641 do
2642 IFS=$as_save_IFS
2643 test -z "$as_dir" && as_dir=.
2644 for ac_exec_ext in '' $ac_executable_extensions; do
2645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2646 ac_cv_prog_ac_ct_STRIP="strip"
2647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2648 break 2
2649 fi
2650 done
2651 done
2652 IFS=$as_save_IFS
2653
2654 fi
2655 fi
2656 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2657 if test -n "$ac_ct_STRIP"; then
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2659 $as_echo "$ac_ct_STRIP" >&6; }
2660 else
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2662 $as_echo "no" >&6; }
2663 fi
2664
2665 if test "x$ac_ct_STRIP" = x; then
2666 STRIP=":"
2667 else
2668 case $cross_compiling:$ac_tool_warned in
2669 yes:)
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2672 ac_tool_warned=yes ;;
2673 esac
2674 STRIP=$ac_ct_STRIP
2675 fi
2676 else
2677 STRIP="$ac_cv_prog_STRIP"
2678 fi
2679
2680 fi
2681 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2682
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2684 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2685 if test -z "$MKDIR_P"; then
2686 if ${ac_cv_path_mkdir+:} false; then :
2687 $as_echo_n "(cached) " >&6
2688 else
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2691 do
2692 IFS=$as_save_IFS
2693 test -z "$as_dir" && as_dir=.
2694 for ac_prog in mkdir gmkdir; do
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2697 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2698 'mkdir (GNU coreutils) '* | \
2699 'mkdir (coreutils) '* | \
2700 'mkdir (fileutils) '4.1*)
2701 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2702 break 3;;
2703 esac
2704 done
2705 done
2706 done
2707 IFS=$as_save_IFS
2708
2709 fi
2710
2711 test -d ./--version && rmdir ./--version
2712 if test "${ac_cv_path_mkdir+set}" = set; then
2713 MKDIR_P="$ac_cv_path_mkdir -p"
2714 else
2715 # As a last resort, use the slow shell script. Don't cache a
2716 # value for MKDIR_P within a source directory, because that will
2717 # break other packages using the cache if that directory is
2718 # removed, or if the value is a relative name.
2719 MKDIR_P="$ac_install_sh -d"
2720 fi
2721 fi
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2723 $as_echo "$MKDIR_P" >&6; }
2724
2725 for ac_prog in gawk mawk nawk awk
2726 do
2727 # Extract the first word of "$ac_prog", so it can be a program name with args.
2728 set dummy $ac_prog; ac_word=$2
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2730 $as_echo_n "checking for $ac_word... " >&6; }
2731 if ${ac_cv_prog_AWK+:} false; then :
2732 $as_echo_n "(cached) " >&6
2733 else
2734 if test -n "$AWK"; then
2735 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2736 else
2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 for as_dir in $PATH
2739 do
2740 IFS=$as_save_IFS
2741 test -z "$as_dir" && as_dir=.
2742 for ac_exec_ext in '' $ac_executable_extensions; do
2743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2744 ac_cv_prog_AWK="$ac_prog"
2745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2746 break 2
2747 fi
2748 done
2749 done
2750 IFS=$as_save_IFS
2751
2752 fi
2753 fi
2754 AWK=$ac_cv_prog_AWK
2755 if test -n "$AWK"; then
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2757 $as_echo "$AWK" >&6; }
2758 else
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2760 $as_echo "no" >&6; }
2761 fi
2762
2763
2764 test -n "$AWK" && break
2765 done
2766
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2768 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2769 set x ${MAKE-make}
2770 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2771 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2772 $as_echo_n "(cached) " >&6
2773 else
2774 cat >conftest.make <<\_ACEOF
2775 SHELL = /bin/sh
2776 all:
2777 @echo '@@@%%%=$(MAKE)=@@@%%%'
2778 _ACEOF
2779 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2780 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2781 *@@@%%%=?*=@@@%%%*)
2782 eval ac_cv_prog_make_${ac_make}_set=yes;;
2783 *)
2784 eval ac_cv_prog_make_${ac_make}_set=no;;
2785 esac
2786 rm -f conftest.make
2787 fi
2788 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2790 $as_echo "yes" >&6; }
2791 SET_MAKE=
2792 else
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2794 $as_echo "no" >&6; }
2795 SET_MAKE="MAKE=${MAKE-make}"
2796 fi
2797
2798 rm -rf .tst 2>/dev/null
2799 mkdir .tst 2>/dev/null
2800 if test -d .tst; then
2801 am__leading_dot=.
2802 else
2803 am__leading_dot=_
2804 fi
2805 rmdir .tst 2>/dev/null
2806
2807 # Check whether --enable-silent-rules was given.
2808 if test "${enable_silent_rules+set}" = set; then :
2809 enableval=$enable_silent_rules;
2810 fi
2811
2812 case $enable_silent_rules in # (((
2813 yes) AM_DEFAULT_VERBOSITY=0;;
2814 no) AM_DEFAULT_VERBOSITY=1;;
2815 *) AM_DEFAULT_VERBOSITY=1;;
2816 esac
2817 am_make=${MAKE-make}
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2819 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2820 if ${am_cv_make_support_nested_variables+:} false; then :
2821 $as_echo_n "(cached) " >&6
2822 else
2823 if $as_echo 'TRUE=$(BAR$(V))
2824 BAR0=false
2825 BAR1=true
2826 V=1
2827 am__doit:
2828 @$(TRUE)
2829 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2830 am_cv_make_support_nested_variables=yes
2831 else
2832 am_cv_make_support_nested_variables=no
2833 fi
2834 fi
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2836 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2837 if test $am_cv_make_support_nested_variables = yes; then
2838 AM_V='$(V)'
2839 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2840 else
2841 AM_V=$AM_DEFAULT_VERBOSITY
2842 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2843 fi
2844 AM_BACKSLASH='\'
2845
2846 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2847 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2848 # is not polluted with repeated "-I."
2849 am__isrc=' -I$(srcdir)'
2850 # test to see if srcdir already configured
2851 if test -f $srcdir/config.status; then
2852 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2853 fi
2854 fi
2855
2856 # test whether we have cygpath
2857 if test -z "$CYGPATH_W"; then
2858 if (cygpath --version) >/dev/null 2>/dev/null; then
2859 CYGPATH_W='cygpath -w'
2860 else
2861 CYGPATH_W=echo
2862 fi
2863 fi
2864
2865
2866 # Define the identity of the package.
2867 PACKAGE='xcb-util-image'
2868 VERSION='0.4.0'
2869
2870
2871 cat >>confdefs.h <<_ACEOF
2872 #define PACKAGE "$PACKAGE"
2873 _ACEOF
2874
2875
2876 cat >>confdefs.h <<_ACEOF
2877 #define VERSION "$VERSION"
2878 _ACEOF
2879
2880 # Some tools Automake needs.
2881
2882 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2883
2884
2885 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2886
2887
2888 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2889
2890
2891 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2892
2893
2894 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2895
2896 # For better backward compatibility. To be removed once Automake 1.9.x
2897 # dies out for good. For more background, see:
2898 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2899 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2900 mkdir_p='$(MKDIR_P)'
2901
2902 # We need awk for the "check" target. The system "awk" is bad on
2903 # some platforms.
2904 # Always define AMTAR for backward compatibility. Yes, it's still used
2905 # in the wild :-( We should find a proper way to deprecate it ...
2906 AMTAR='$${TAR-tar}'
2907
2908
2909 # We'll loop over all known methods to create a tar archive until one works.
2910 _am_tools='gnutar pax cpio none'
2911
2912 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2913
2914
2915
2916
2917
2918
2919 # POSIX will say in a future version that running "rm -f" with no argument
2920 # is OK; and we want to be able to make that assumption in our Makefile
2921 # recipes. So use an aggressive probe to check that the usage we want is
2922 # actually supported "in the wild" to an acceptable degree.
2923 # See automake bug#10828.
2924 # To make any issue more visible, cause the running configure to be aborted
2925 # by default if the 'rm' program in use doesn't match our expectations; the
2926 # user can still override this though.
2927 if rm -f && rm -fr && rm -rf; then : OK; else
2928 cat >&2 <<'END'
2929 Oops!
2930
2931 Your 'rm' program seems unable to run without file operands specified
2932 on the command line, even when the '-f' option is present. This is contrary
2933 to the behaviour of most rm programs out there, and not conforming with
2934 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2935
2936 Please tell [email protected] about your system, including the value
2937 of your $PATH and any error possibly output before this message. This
2938 can help us improve future automake versions.
2939
2940 END
2941 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2942 echo 'Configuration will proceed anyway, since you have set the' >&2
2943 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2944 echo >&2
2945 else
2946 cat >&2 <<'END'
2947 Aborting the configuration process, to ensure you take notice of the issue.
2948
2949 You can download and install GNU coreutils to get an 'rm' implementation
2950 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2951
2952 If you want to complete the configuration process using your problematic
2953 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2954 to "yes", and re-run configure.
2955
2956 END
2957 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2958 fi
2959 fi
2960
2961
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2963 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2964 # Check whether --enable-maintainer-mode was given.
2965 if test "${enable_maintainer_mode+set}" = set; then :
2966 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2967 else
2968 USE_MAINTAINER_MODE=no
2969 fi
2970
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2972 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2973 if test $USE_MAINTAINER_MODE = yes; then
2974 MAINTAINER_MODE_TRUE=
2975 MAINTAINER_MODE_FALSE='#'
2976 else
2977 MAINTAINER_MODE_TRUE='#'
2978 MAINTAINER_MODE_FALSE=
2979 fi
2980
2981 MAINT=$MAINTAINER_MODE_TRUE
2982
2983
2984
2985 case `pwd` in
2986 *\ * | *\ *)
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2988 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2989 esac
2990
2991
2992
2993 macro_version='2.4.2'
2994 macro_revision='1.3337'
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008 ltmain="$ac_aux_dir/ltmain.sh"
3009
3010 # Make sure we can run config.sub.
3011 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3012 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3013
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3015 $as_echo_n "checking build system type... " >&6; }
3016 if ${ac_cv_build+:} false; then :
3017 $as_echo_n "(cached) " >&6
3018 else
3019 ac_build_alias=$build_alias
3020 test "x$ac_build_alias" = x &&
3021 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3022 test "x$ac_build_alias" = x &&
3023 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3024 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3025 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3026
3027 fi
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3029 $as_echo "$ac_cv_build" >&6; }
3030 case $ac_cv_build in
3031 *-*-*) ;;
3032 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3033 esac
3034 build=$ac_cv_build
3035 ac_save_IFS=$IFS; IFS='-'
3036 set x $ac_cv_build
3037 shift
3038 build_cpu=$1
3039 build_vendor=$2
3040 shift; shift
3041 # Remember, the first character of IFS is used to create $*,
3042 # except with old shells:
3043 build_os=$*
3044 IFS=$ac_save_IFS
3045 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3046
3047
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3049 $as_echo_n "checking host system type... " >&6; }
3050 if ${ac_cv_host+:} false; then :
3051 $as_echo_n "(cached) " >&6
3052 else
3053 if test "x$host_alias" = x; then
3054 ac_cv_host=$ac_cv_build
3055 else
3056 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3057 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3058 fi
3059
3060 fi
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3062 $as_echo "$ac_cv_host" >&6; }
3063 case $ac_cv_host in
3064 *-*-*) ;;
3065 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3066 esac
3067 host=$ac_cv_host
3068 ac_save_IFS=$IFS; IFS='-'
3069 set x $ac_cv_host
3070 shift
3071 host_cpu=$1
3072 host_vendor=$2
3073 shift; shift
3074 # Remember, the first character of IFS is used to create $*,
3075 # except with old shells:
3076 host_os=$*
3077 IFS=$ac_save_IFS
3078 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3079
3080
3081 # Backslashify metacharacters that are still active within
3082 # double-quoted strings.
3083 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3084
3085 # Same as above, but do not quote variable references.
3086 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3087
3088 # Sed substitution to delay expansion of an escaped shell variable in a
3089 # double_quote_subst'ed string.
3090 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3091
3092 # Sed substitution to delay expansion of an escaped single quote.
3093 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3094
3095 # Sed substitution to avoid accidental globbing in evaled expressions
3096 no_glob_subst='s/\*/\\\*/g'
3097
3098 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3099 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3100 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3101
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3103 $as_echo_n "checking how to print strings... " >&6; }
3104 # Test print first, because it will be a builtin if present.
3105 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3106 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3107 ECHO='print -r --'
3108 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3109 ECHO='printf %s\n'
3110 else
3111 # Use this function as a fallback that always works.
3112 func_fallback_echo ()
3113 {
3114 eval 'cat <<_LTECHO_EOF
3115 $1
3116 _LTECHO_EOF'
3117 }
3118 ECHO='func_fallback_echo'
3119 fi
3120
3121 # func_echo_all arg...
3122 # Invoke $ECHO with all args, space-separated.
3123 func_echo_all ()
3124 {
3125 $ECHO ""
3126 }
3127
3128 case "$ECHO" in
3129 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3130 $as_echo "printf" >&6; } ;;
3131 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3132 $as_echo "print -r" >&6; } ;;
3133 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3134 $as_echo "cat" >&6; } ;;
3135 esac
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150 DEPDIR="${am__leading_dot}deps"
3151
3152 ac_config_commands="$ac_config_commands depfiles"
3153
3154
3155 am_make=${MAKE-make}
3156 cat > confinc << 'END'
3157 am__doit:
3158 @echo this is the am__doit target
3159 .PHONY: am__doit
3160 END
3161 # If we don't find an include directive, just comment out the code.
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3163 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3164 am__include="#"
3165 am__quote=
3166 _am_result=none
3167 # First try GNU make style include.
3168 echo "include confinc" > confmf
3169 # Ignore all kinds of additional output from 'make'.
3170 case `$am_make -s -f confmf 2> /dev/null` in #(
3171 *the\ am__doit\ target*)
3172 am__include=include
3173 am__quote=
3174 _am_result=GNU
3175 ;;
3176 esac
3177 # Now try BSD make style include.
3178 if test "$am__include" = "#"; then
3179 echo '.include "confinc"' > confmf
3180 case `$am_make -s -f confmf 2> /dev/null` in #(
3181 *the\ am__doit\ target*)
3182 am__include=.include
3183 am__quote="\""
3184 _am_result=BSD
3185 ;;
3186 esac
3187 fi
3188
3189
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3191 $as_echo "$_am_result" >&6; }
3192 rm -f confinc confmf
3193
3194 # Check whether --enable-dependency-tracking was given.
3195 if test "${enable_dependency_tracking+set}" = set; then :
3196 enableval=$enable_dependency_tracking;
3197 fi
3198
3199 if test "x$enable_dependency_tracking" != xno; then
3200 am_depcomp="$ac_aux_dir/depcomp"
3201 AMDEPBACKSLASH='\'
3202 am__nodep='_no'
3203 fi
3204 if test "x$enable_dependency_tracking" != xno; then
3205 AMDEP_TRUE=
3206 AMDEP_FALSE='#'
3207 else
3208 AMDEP_TRUE='#'
3209 AMDEP_FALSE=
3210 fi
3211
3212
3213 ac_ext=c
3214 ac_cpp='$CPP $CPPFLAGS'
3215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3218 if test -n "$ac_tool_prefix"; then
3219 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3220 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3222 $as_echo_n "checking for $ac_word... " >&6; }
3223 if ${ac_cv_prog_CC+:} false; then :
3224 $as_echo_n "(cached) " >&6
3225 else
3226 if test -n "$CC"; then
3227 ac_cv_prog_CC="$CC" # Let the user override the test.
3228 else
3229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 for as_dir in $PATH
3231 do
3232 IFS=$as_save_IFS
3233 test -z "$as_dir" && as_dir=.
3234 for ac_exec_ext in '' $ac_executable_extensions; do
3235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3236 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3238 break 2
3239 fi
3240 done
3241 done
3242 IFS=$as_save_IFS
3243
3244 fi
3245 fi
3246 CC=$ac_cv_prog_CC
3247 if test -n "$CC"; then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3249 $as_echo "$CC" >&6; }
3250 else
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252 $as_echo "no" >&6; }
3253 fi
3254
3255
3256 fi
3257 if test -z "$ac_cv_prog_CC"; then
3258 ac_ct_CC=$CC
3259 # Extract the first word of "gcc", so it can be a program name with args.
3260 set dummy gcc; ac_word=$2
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262 $as_echo_n "checking for $ac_word... " >&6; }
3263 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3264 $as_echo_n "(cached) " >&6
3265 else
3266 if test -n "$ac_ct_CC"; then
3267 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3268 else
3269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270 for as_dir in $PATH
3271 do
3272 IFS=$as_save_IFS
3273 test -z "$as_dir" && as_dir=.
3274 for ac_exec_ext in '' $ac_executable_extensions; do
3275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3276 ac_cv_prog_ac_ct_CC="gcc"
3277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3278 break 2
3279 fi
3280 done
3281 done
3282 IFS=$as_save_IFS
3283
3284 fi
3285 fi
3286 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3287 if test -n "$ac_ct_CC"; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3289 $as_echo "$ac_ct_CC" >&6; }
3290 else
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292 $as_echo "no" >&6; }
3293 fi
3294
3295 if test "x$ac_ct_CC" = x; then
3296 CC=""
3297 else
3298 case $cross_compiling:$ac_tool_warned in
3299 yes:)
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3302 ac_tool_warned=yes ;;
3303 esac
3304 CC=$ac_ct_CC
3305 fi
3306 else
3307 CC="$ac_cv_prog_CC"
3308 fi
3309
3310 if test -z "$CC"; then
3311 if test -n "$ac_tool_prefix"; then
3312 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3313 set dummy ${ac_tool_prefix}cc; ac_word=$2
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3315 $as_echo_n "checking for $ac_word... " >&6; }
3316 if ${ac_cv_prog_CC+:} false; then :
3317 $as_echo_n "(cached) " >&6
3318 else
3319 if test -n "$CC"; then
3320 ac_cv_prog_CC="$CC" # Let the user override the test.
3321 else
3322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323 for as_dir in $PATH
3324 do
3325 IFS=$as_save_IFS
3326 test -z "$as_dir" && as_dir=.
3327 for ac_exec_ext in '' $ac_executable_extensions; do
3328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3329 ac_cv_prog_CC="${ac_tool_prefix}cc"
3330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3331 break 2
3332 fi
3333 done
3334 done
3335 IFS=$as_save_IFS
3336
3337 fi
3338 fi
3339 CC=$ac_cv_prog_CC
3340 if test -n "$CC"; then
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3342 $as_echo "$CC" >&6; }
3343 else
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345 $as_echo "no" >&6; }
3346 fi
3347
3348
3349 fi
3350 fi
3351 if test -z "$CC"; then
3352 # Extract the first word of "cc", so it can be a program name with args.
3353 set dummy cc; ac_word=$2
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3355 $as_echo_n "checking for $ac_word... " >&6; }
3356 if ${ac_cv_prog_CC+:} false; then :
3357 $as_echo_n "(cached) " >&6
3358 else
3359 if test -n "$CC"; then
3360 ac_cv_prog_CC="$CC" # Let the user override the test.
3361 else
3362 ac_prog_rejected=no
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 for as_dir in $PATH
3365 do
3366 IFS=$as_save_IFS
3367 test -z "$as_dir" && as_dir=.
3368 for ac_exec_ext in '' $ac_executable_extensions; do
3369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3370 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3371 ac_prog_rejected=yes
3372 continue
3373 fi
3374 ac_cv_prog_CC="cc"
3375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3376 break 2
3377 fi
3378 done
3379 done
3380 IFS=$as_save_IFS
3381
3382 if test $ac_prog_rejected = yes; then
3383 # We found a bogon in the path, so make sure we never use it.
3384 set dummy $ac_cv_prog_CC
3385 shift
3386 if test $# != 0; then
3387 # We chose a different compiler from the bogus one.
3388 # However, it has the same basename, so the bogon will be chosen
3389 # first if we set CC to just the basename; use the full file name.
3390 shift
3391 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3392 fi
3393 fi
3394 fi
3395 fi
3396 CC=$ac_cv_prog_CC
3397 if test -n "$CC"; then
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3399 $as_echo "$CC" >&6; }
3400 else
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3402 $as_echo "no" >&6; }
3403 fi
3404
3405
3406 fi
3407 if test -z "$CC"; then
3408 if test -n "$ac_tool_prefix"; then
3409 for ac_prog in cl.exe
3410 do
3411 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3412 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414 $as_echo_n "checking for $ac_word... " >&6; }
3415 if ${ac_cv_prog_CC+:} false; then :
3416 $as_echo_n "(cached) " >&6
3417 else
3418 if test -n "$CC"; then
3419 ac_cv_prog_CC="$CC" # Let the user override the test.
3420 else
3421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422 for as_dir in $PATH
3423 do
3424 IFS=$as_save_IFS
3425 test -z "$as_dir" && as_dir=.
3426 for ac_exec_ext in '' $ac_executable_extensions; do
3427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3428 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3430 break 2
3431 fi
3432 done
3433 done
3434 IFS=$as_save_IFS
3435
3436 fi
3437 fi
3438 CC=$ac_cv_prog_CC
3439 if test -n "$CC"; then
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3441 $as_echo "$CC" >&6; }
3442 else
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444 $as_echo "no" >&6; }
3445 fi
3446
3447
3448 test -n "$CC" && break
3449 done
3450 fi
3451 if test -z "$CC"; then
3452 ac_ct_CC=$CC
3453 for ac_prog in cl.exe
3454 do
3455 # Extract the first word of "$ac_prog", so it can be a program name with args.
3456 set dummy $ac_prog; ac_word=$2
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3458 $as_echo_n "checking for $ac_word... " >&6; }
3459 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3460 $as_echo_n "(cached) " >&6
3461 else
3462 if test -n "$ac_ct_CC"; then
3463 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3464 else
3465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466 for as_dir in $PATH
3467 do
3468 IFS=$as_save_IFS
3469 test -z "$as_dir" && as_dir=.
3470 for ac_exec_ext in '' $ac_executable_extensions; do
3471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3472 ac_cv_prog_ac_ct_CC="$ac_prog"
3473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3474 break 2
3475 fi
3476 done
3477 done
3478 IFS=$as_save_IFS
3479
3480 fi
3481 fi
3482 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3483 if test -n "$ac_ct_CC"; then
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3485 $as_echo "$ac_ct_CC" >&6; }
3486 else
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488 $as_echo "no" >&6; }
3489 fi
3490
3491
3492 test -n "$ac_ct_CC" && break
3493 done
3494
3495 if test "x$ac_ct_CC" = x; then
3496 CC=""
3497 else
3498 case $cross_compiling:$ac_tool_warned in
3499 yes:)
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3502 ac_tool_warned=yes ;;
3503 esac
3504 CC=$ac_ct_CC
3505 fi
3506 fi
3507
3508 fi
3509
3510
3511 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3513 as_fn_error $? "no acceptable C compiler found in \$PATH
3514 See \`config.log' for more details" "$LINENO" 5; }
3515
3516 # Provide some information about the compiler.
3517 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3518 set X $ac_compile
3519 ac_compiler=$2
3520 for ac_option in --version -v -V -qversion; do
3521 { { ac_try="$ac_compiler $ac_option >&5"
3522 case "(($ac_try" in
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3525 esac
3526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3527 $as_echo "$ac_try_echo"; } >&5
3528 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3529 ac_status=$?
3530 if test -s conftest.err; then
3531 sed '10a\
3532 ... rest of stderr output deleted ...
3533 10q' conftest.err >conftest.er1
3534 cat conftest.er1 >&5
3535 fi
3536 rm -f conftest.er1 conftest.err
3537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3538 test $ac_status = 0; }
3539 done
3540
3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h. */
3543
3544 int
3545 main ()
3546 {
3547
3548 ;
3549 return 0;
3550 }
3551 _ACEOF
3552 ac_clean_files_save=$ac_clean_files
3553 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3554 # Try to create an executable without -o first, disregard a.out.
3555 # It will help us diagnose broken compilers, and finding out an intuition
3556 # of exeext.
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3558 $as_echo_n "checking whether the C compiler works... " >&6; }
3559 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3560
3561 # The possible output files:
3562 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3563
3564 ac_rmfiles=
3565 for ac_file in $ac_files
3566 do
3567 case $ac_file in
3568 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3569 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3570 esac
3571 done
3572 rm -f $ac_rmfiles
3573
3574 if { { ac_try="$ac_link_default"
3575 case "(($ac_try" in
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3578 esac
3579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580 $as_echo "$ac_try_echo"; } >&5
3581 (eval "$ac_link_default") 2>&5
3582 ac_status=$?
3583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3584 test $ac_status = 0; }; then :
3585 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3586 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3587 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3588 # so that the user can short-circuit this test for compilers unknown to
3589 # Autoconf.
3590 for ac_file in $ac_files ''
3591 do
3592 test -f "$ac_file" || continue
3593 case $ac_file in
3594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3595 ;;
3596 [ab].out )
3597 # We found the default executable, but exeext='' is most
3598 # certainly right.
3599 break;;
3600 *.* )
3601 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3602 then :; else
3603 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3604 fi
3605 # We set ac_cv_exeext here because the later test for it is not
3606 # safe: cross compilers may not add the suffix if given an `-o'
3607 # argument, so we may need to know it at that point already.
3608 # Even if this section looks crufty: it has the advantage of
3609 # actually working.
3610 break;;
3611 * )
3612 break;;
3613 esac
3614 done
3615 test "$ac_cv_exeext" = no && ac_cv_exeext=
3616
3617 else
3618 ac_file=''
3619 fi
3620 if test -z "$ac_file"; then :
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622 $as_echo "no" >&6; }
3623 $as_echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.$ac_ext >&5
3625
3626 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3628 as_fn_error 77 "C compiler cannot create executables
3629 See \`config.log' for more details" "$LINENO" 5; }
3630 else
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3632 $as_echo "yes" >&6; }
3633 fi
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3635 $as_echo_n "checking for C compiler default output file name... " >&6; }
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3637 $as_echo "$ac_file" >&6; }
3638 ac_exeext=$ac_cv_exeext
3639
3640 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3641 ac_clean_files=$ac_clean_files_save
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3643 $as_echo_n "checking for suffix of executables... " >&6; }
3644 if { { ac_try="$ac_link"
3645 case "(($ac_try" in
3646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647 *) ac_try_echo=$ac_try;;
3648 esac
3649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3650 $as_echo "$ac_try_echo"; } >&5
3651 (eval "$ac_link") 2>&5
3652 ac_status=$?
3653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3654 test $ac_status = 0; }; then :
3655 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3656 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3657 # work properly (i.e., refer to `conftest.exe'), while it won't with
3658 # `rm'.
3659 for ac_file in conftest.exe conftest conftest.*; do
3660 test -f "$ac_file" || continue
3661 case $ac_file in
3662 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3663 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3664 break;;
3665 * ) break;;
3666 esac
3667 done
3668 else
3669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3671 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3672 See \`config.log' for more details" "$LINENO" 5; }
3673 fi
3674 rm -f conftest conftest$ac_cv_exeext
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3676 $as_echo "$ac_cv_exeext" >&6; }
3677
3678 rm -f conftest.$ac_ext
3679 EXEEXT=$ac_cv_exeext
3680 ac_exeext=$EXEEXT
3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682 /* end confdefs.h. */
3683 #include <stdio.h>
3684 int
3685 main ()
3686 {
3687 FILE *f = fopen ("conftest.out", "w");
3688 return ferror (f) || fclose (f) != 0;
3689
3690 ;
3691 return 0;
3692 }
3693 _ACEOF
3694 ac_clean_files="$ac_clean_files conftest.out"
3695 # Check that the compiler produces executables we can run. If not, either
3696 # the compiler is broken, or we cross compile.
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3698 $as_echo_n "checking whether we are cross compiling... " >&6; }
3699 if test "$cross_compiling" != yes; then
3700 { { ac_try="$ac_link"
3701 case "(($ac_try" in
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3704 esac
3705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3706 $as_echo "$ac_try_echo"; } >&5
3707 (eval "$ac_link") 2>&5
3708 ac_status=$?
3709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3710 test $ac_status = 0; }
3711 if { ac_try='./conftest$ac_cv_exeext'
3712 { { case "(($ac_try" in
3713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3714 *) ac_try_echo=$ac_try;;
3715 esac
3716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3717 $as_echo "$ac_try_echo"; } >&5
3718 (eval "$ac_try") 2>&5
3719 ac_status=$?
3720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3721 test $ac_status = 0; }; }; then
3722 cross_compiling=no
3723 else
3724 if test "$cross_compiling" = maybe; then
3725 cross_compiling=yes
3726 else
3727 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3729 as_fn_error $? "cannot run C compiled programs.
3730 If you meant to cross compile, use \`--host'.
3731 See \`config.log' for more details" "$LINENO" 5; }
3732 fi
3733 fi
3734 fi
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3736 $as_echo "$cross_compiling" >&6; }
3737
3738 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3739 ac_clean_files=$ac_clean_files_save
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3741 $as_echo_n "checking for suffix of object files... " >&6; }
3742 if ${ac_cv_objext+:} false; then :
3743 $as_echo_n "(cached) " >&6
3744 else
3745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3746 /* end confdefs.h. */
3747
3748 int
3749 main ()
3750 {
3751
3752 ;
3753 return 0;
3754 }
3755 _ACEOF
3756 rm -f conftest.o conftest.obj
3757 if { { ac_try="$ac_compile"
3758 case "(($ac_try" in
3759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3760 *) ac_try_echo=$ac_try;;
3761 esac
3762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3763 $as_echo "$ac_try_echo"; } >&5
3764 (eval "$ac_compile") 2>&5
3765 ac_status=$?
3766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3767 test $ac_status = 0; }; then :
3768 for ac_file in conftest.o conftest.obj conftest.*; do
3769 test -f "$ac_file" || continue;
3770 case $ac_file in
3771 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3772 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3773 break;;
3774 esac
3775 done
3776 else
3777 $as_echo "$as_me: failed program was:" >&5
3778 sed 's/^/| /' conftest.$ac_ext >&5
3779
3780 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3781 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3782 as_fn_error $? "cannot compute suffix of object files: cannot compile
3783 See \`config.log' for more details" "$LINENO" 5; }
3784 fi
3785 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3786 fi
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3788 $as_echo "$ac_cv_objext" >&6; }
3789 OBJEXT=$ac_cv_objext
3790 ac_objext=$OBJEXT
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3792 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3793 if ${ac_cv_c_compiler_gnu+:} false; then :
3794 $as_echo_n "(cached) " >&6
3795 else
3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h. */
3798
3799 int
3800 main ()
3801 {
3802 #ifndef __GNUC__
3803 choke me
3804 #endif
3805
3806 ;
3807 return 0;
3808 }
3809 _ACEOF
3810 if ac_fn_c_try_compile "$LINENO"; then :
3811 ac_compiler_gnu=yes
3812 else
3813 ac_compiler_gnu=no
3814 fi
3815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3816 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3817
3818 fi
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3820 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3821 if test $ac_compiler_gnu = yes; then
3822 GCC=yes
3823 else
3824 GCC=
3825 fi
3826 ac_test_CFLAGS=${CFLAGS+set}
3827 ac_save_CFLAGS=$CFLAGS
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3829 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3830 if ${ac_cv_prog_cc_g+:} false; then :
3831 $as_echo_n "(cached) " >&6
3832 else
3833 ac_save_c_werror_flag=$ac_c_werror_flag
3834 ac_c_werror_flag=yes
3835 ac_cv_prog_cc_g=no
3836 CFLAGS="-g"
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h. */
3839
3840 int
3841 main ()
3842 {
3843
3844 ;
3845 return 0;
3846 }
3847 _ACEOF
3848 if ac_fn_c_try_compile "$LINENO"; then :
3849 ac_cv_prog_cc_g=yes
3850 else
3851 CFLAGS=""
3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h. */
3854
3855 int
3856 main ()
3857 {
3858
3859 ;
3860 return 0;
3861 }
3862 _ACEOF
3863 if ac_fn_c_try_compile "$LINENO"; then :
3864
3865 else
3866 ac_c_werror_flag=$ac_save_c_werror_flag
3867 CFLAGS="-g"
3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869 /* end confdefs.h. */
3870
3871 int
3872 main ()
3873 {
3874
3875 ;
3876 return 0;
3877 }
3878 _ACEOF
3879 if ac_fn_c_try_compile "$LINENO"; then :
3880 ac_cv_prog_cc_g=yes
3881 fi
3882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3883 fi
3884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3885 fi
3886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3887 ac_c_werror_flag=$ac_save_c_werror_flag
3888 fi
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3890 $as_echo "$ac_cv_prog_cc_g" >&6; }
3891 if test "$ac_test_CFLAGS" = set; then
3892 CFLAGS=$ac_save_CFLAGS
3893 elif test $ac_cv_prog_cc_g = yes; then
3894 if test "$GCC" = yes; then
3895 CFLAGS="-g -O2"
3896 else
3897 CFLAGS="-g"
3898 fi
3899 else
3900 if test "$GCC" = yes; then
3901 CFLAGS="-O2"
3902 else
3903 CFLAGS=
3904 fi
3905 fi
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3907 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3908 if ${ac_cv_prog_cc_c89+:} false; then :
3909 $as_echo_n "(cached) " >&6
3910 else
3911 ac_cv_prog_cc_c89=no
3912 ac_save_CC=$CC
3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h. */
3915 #include <stdarg.h>
3916 #include <stdio.h>
3917 struct stat;
3918 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3919 struct buf { int x; };
3920 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3921 static char *e (p, i)
3922 char **p;
3923 int i;
3924 {
3925 return p[i];
3926 }
3927 static char *f (char * (*g) (char **, int), char **p, ...)
3928 {
3929 char *s;
3930 va_list v;
3931 va_start (v,p);
3932 s = g (p, va_arg (v,int));
3933 va_end (v);
3934 return s;
3935 }
3936
3937 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3938 function prototypes and stuff, but not '\xHH' hex character constants.
3939 These don't provoke an error unfortunately, instead are silently treated
3940 as 'x'. The following induces an error, until -std is added to get
3941 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3942 array size at least. It's necessary to write '\x00'==0 to get something
3943 that's true only with -std. */
3944 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3945
3946 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3947 inside strings and character constants. */
3948 #define FOO(x) 'x'
3949 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3950
3951 int test (int i, double x);
3952 struct s1 {int (*f) (int a);};
3953 struct s2 {int (*f) (double a);};
3954 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3955 int argc;
3956 char **argv;
3957 int
3958 main ()
3959 {
3960 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3961 ;
3962 return 0;
3963 }
3964 _ACEOF
3965 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3966 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3967 do
3968 CC="$ac_save_CC $ac_arg"
3969 if ac_fn_c_try_compile "$LINENO"; then :
3970 ac_cv_prog_cc_c89=$ac_arg
3971 fi
3972 rm -f core conftest.err conftest.$ac_objext
3973 test "x$ac_cv_prog_cc_c89" != "xno" && break
3974 done
3975 rm -f conftest.$ac_ext
3976 CC=$ac_save_CC
3977
3978 fi
3979 # AC_CACHE_VAL
3980 case "x$ac_cv_prog_cc_c89" in
3981 x)
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3983 $as_echo "none needed" >&6; } ;;
3984 xno)
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3986 $as_echo "unsupported" >&6; } ;;
3987 *)
3988 CC="$CC $ac_cv_prog_cc_c89"
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3990 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3991 esac
3992 if test "x$ac_cv_prog_cc_c89" != xno; then :
3993
3994 fi
3995
3996 ac_ext=c
3997 ac_cpp='$CPP $CPPFLAGS'
3998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4001
4002 ac_ext=c
4003 ac_cpp='$CPP $CPPFLAGS'
4004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4008 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4009 if ${am_cv_prog_cc_c_o+:} false; then :
4010 $as_echo_n "(cached) " >&6
4011 else
4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 /* end confdefs.h. */
4014
4015 int
4016 main ()
4017 {
4018
4019 ;
4020 return 0;
4021 }
4022 _ACEOF
4023 # Make sure it works both with $CC and with simple cc.
4024 # Following AC_PROG_CC_C_O, we do the test twice because some
4025 # compilers refuse to overwrite an existing .o file with -o,
4026 # though they will create one.
4027 am_cv_prog_cc_c_o=yes
4028 for am_i in 1 2; do
4029 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4030 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4031 ac_status=$?
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); } \
4034 && test -f conftest2.$ac_objext; then
4035 : OK
4036 else
4037 am_cv_prog_cc_c_o=no
4038 break
4039 fi
4040 done
4041 rm -f core conftest*
4042 unset am_i
4043 fi
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4045 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4046 if test "$am_cv_prog_cc_c_o" != yes; then
4047 # Losing compiler, so override with the script.
4048 # FIXME: It is wrong to rewrite CC.
4049 # But if we don't then we get into trouble of one sort or another.
4050 # A longer-term fix would be to have automake use am__CC in this case,
4051 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4052 CC="$am_aux_dir/compile $CC"
4053 fi
4054 ac_ext=c
4055 ac_cpp='$CPP $CPPFLAGS'
4056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4059
4060
4061 depcc="$CC" am_compiler_list=
4062
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4064 $as_echo_n "checking dependency style of $depcc... " >&6; }
4065 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4066 $as_echo_n "(cached) " >&6
4067 else
4068 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4069 # We make a subdir and do the tests there. Otherwise we can end up
4070 # making bogus files that we don't know about and never remove. For
4071 # instance it was reported that on HP-UX the gcc test will end up
4072 # making a dummy file named 'D' -- because '-MD' means "put the output
4073 # in D".
4074 rm -rf conftest.dir
4075 mkdir conftest.dir
4076 # Copy depcomp to subdir because otherwise we won't find it if we're
4077 # using a relative directory.
4078 cp "$am_depcomp" conftest.dir
4079 cd conftest.dir
4080 # We will build objects and dependencies in a subdirectory because
4081 # it helps to detect inapplicable dependency modes. For instance
4082 # both Tru64's cc and ICC support -MD to output dependencies as a
4083 # side effect of compilation, but ICC will put the dependencies in
4084 # the current directory while Tru64 will put them in the object
4085 # directory.
4086 mkdir sub
4087
4088 am_cv_CC_dependencies_compiler_type=none
4089 if test "$am_compiler_list" = ""; then
4090 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4091 fi
4092 am__universal=false
4093 case " $depcc " in #(
4094 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4095 esac
4096
4097 for depmode in $am_compiler_list; do
4098 # Setup a source with many dependencies, because some compilers
4099 # like to wrap large dependency lists on column 80 (with \), and
4100 # we should not choose a depcomp mode which is confused by this.
4101 #
4102 # We need to recreate these files for each test, as the compiler may
4103 # overwrite some of them when testing with obscure command lines.
4104 # This happens at least with the AIX C compiler.
4105 : > sub/conftest.c
4106 for i in 1 2 3 4 5 6; do
4107 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4108 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4109 # Solaris 10 /bin/sh.
4110 echo '/* dummy */' > sub/conftst$i.h
4111 done
4112 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4113
4114 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4115 # mode. It turns out that the SunPro C++ compiler does not properly
4116 # handle '-M -o', and we need to detect this. Also, some Intel
4117 # versions had trouble with output in subdirs.
4118 am__obj=sub/conftest.${OBJEXT-o}
4119 am__minus_obj="-o $am__obj"
4120 case $depmode in
4121 gcc)
4122 # This depmode causes a compiler race in universal mode.
4123 test "$am__universal" = false || continue
4124 ;;
4125 nosideeffect)
4126 # After this tag, mechanisms are not by side-effect, so they'll
4127 # only be used when explicitly requested.
4128 if test "x$enable_dependency_tracking" = xyes; then
4129 continue
4130 else
4131 break
4132 fi
4133 ;;
4134 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4135 # This compiler won't grok '-c -o', but also, the minuso test has
4136 # not run yet. These depmodes are late enough in the game, and
4137 # so weak that their functioning should not be impacted.
4138 am__obj=conftest.${OBJEXT-o}
4139 am__minus_obj=
4140 ;;
4141 none) break ;;
4142 esac
4143 if depmode=$depmode \
4144 source=sub/conftest.c object=$am__obj \
4145 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4146 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4147 >/dev/null 2>conftest.err &&
4148 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4149 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4150 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4151 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4152 # icc doesn't choke on unknown options, it will just issue warnings
4153 # or remarks (even with -Werror). So we grep stderr for any message
4154 # that says an option was ignored or not supported.
4155 # When given -MP, icc 7.0 and 7.1 complain thusly:
4156 # icc: Command line warning: ignoring option '-M'; no argument required
4157 # The diagnosis changed in icc 8.0:
4158 # icc: Command line remark: option '-MP' not supported
4159 if (grep 'ignoring option' conftest.err ||
4160 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4161 am_cv_CC_dependencies_compiler_type=$depmode
4162 break
4163 fi
4164 fi
4165 done
4166
4167 cd ..
4168 rm -rf conftest.dir
4169 else
4170 am_cv_CC_dependencies_compiler_type=none
4171 fi
4172
4173 fi
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4175 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4176 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4177
4178 if
4179 test "x$enable_dependency_tracking" != xno \
4180 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4181 am__fastdepCC_TRUE=
4182 am__fastdepCC_FALSE='#'
4183 else
4184 am__fastdepCC_TRUE='#'
4185 am__fastdepCC_FALSE=
4186 fi
4187
4188
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4190 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4191 if ${ac_cv_path_SED+:} false; then :
4192 $as_echo_n "(cached) " >&6
4193 else
4194 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4195 for ac_i in 1 2 3 4 5 6 7; do
4196 ac_script="$ac_script$as_nl$ac_script"
4197 done
4198 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4199 { ac_script=; unset ac_script;}
4200 if test -z "$SED"; then
4201 ac_path_SED_found=false
4202 # Loop through the user's path and test for each of PROGNAME-LIST
4203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 for as_dir in $PATH
4205 do
4206 IFS=$as_save_IFS
4207 test -z "$as_dir" && as_dir=.
4208 for ac_prog in sed gsed; do
4209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4211 as_fn_executable_p "$ac_path_SED" || continue
4212 # Check for GNU ac_path_SED and select it if it is found.
4213 # Check for GNU $ac_path_SED
4214 case `"$ac_path_SED" --version 2>&1` in
4215 *GNU*)
4216 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4217 *)
4218 ac_count=0
4219 $as_echo_n 0123456789 >"conftest.in"
4220 while :
4221 do
4222 cat "conftest.in" "conftest.in" >"conftest.tmp"
4223 mv "conftest.tmp" "conftest.in"
4224 cp "conftest.in" "conftest.nl"
4225 $as_echo '' >> "conftest.nl"
4226 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4227 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4228 as_fn_arith $ac_count + 1 && ac_count=$as_val
4229 if test $ac_count -gt ${ac_path_SED_max-0}; then
4230 # Best one so far, save it but keep looking for a better one
4231 ac_cv_path_SED="$ac_path_SED"
4232 ac_path_SED_max=$ac_count
4233 fi
4234 # 10*(2^10) chars as input seems more than enough
4235 test $ac_count -gt 10 && break
4236 done
4237 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4238 esac
4239
4240 $ac_path_SED_found && break 3
4241 done
4242 done
4243 done
4244 IFS=$as_save_IFS
4245 if test -z "$ac_cv_path_SED"; then
4246 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4247 fi
4248 else
4249 ac_cv_path_SED=$SED
4250 fi
4251
4252 fi
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4254 $as_echo "$ac_cv_path_SED" >&6; }
4255 SED="$ac_cv_path_SED"
4256 rm -f conftest.sed
4257
4258 test -z "$SED" && SED=sed
4259 Xsed="$SED -e 1s/^X//"
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4272 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4273 if ${ac_cv_path_GREP+:} false; then :
4274 $as_echo_n "(cached) " >&6
4275 else
4276 if test -z "$GREP"; then
4277 ac_path_GREP_found=false
4278 # Loop through the user's path and test for each of PROGNAME-LIST
4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4281 do
4282 IFS=$as_save_IFS
4283 test -z "$as_dir" && as_dir=.
4284 for ac_prog in grep ggrep; do
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4287 as_fn_executable_p "$ac_path_GREP" || continue
4288 # Check for GNU ac_path_GREP and select it if it is found.
4289 # Check for GNU $ac_path_GREP
4290 case `"$ac_path_GREP" --version 2>&1` in
4291 *GNU*)
4292 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4293 *)
4294 ac_count=0
4295 $as_echo_n 0123456789 >"conftest.in"
4296 while :
4297 do
4298 cat "conftest.in" "conftest.in" >"conftest.tmp"
4299 mv "conftest.tmp" "conftest.in"
4300 cp "conftest.in" "conftest.nl"
4301 $as_echo 'GREP' >> "conftest.nl"
4302 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4303 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4304 as_fn_arith $ac_count + 1 && ac_count=$as_val
4305 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4306 # Best one so far, save it but keep looking for a better one
4307 ac_cv_path_GREP="$ac_path_GREP"
4308 ac_path_GREP_max=$ac_count
4309 fi
4310 # 10*(2^10) chars as input seems more than enough
4311 test $ac_count -gt 10 && break
4312 done
4313 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4314 esac
4315
4316 $ac_path_GREP_found && break 3
4317 done
4318 done
4319 done
4320 IFS=$as_save_IFS
4321 if test -z "$ac_cv_path_GREP"; then
4322 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4323 fi
4324 else
4325 ac_cv_path_GREP=$GREP
4326 fi
4327
4328 fi
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4330 $as_echo "$ac_cv_path_GREP" >&6; }
4331 GREP="$ac_cv_path_GREP"
4332
4333
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4335 $as_echo_n "checking for egrep... " >&6; }
4336 if ${ac_cv_path_EGREP+:} false; then :
4337 $as_echo_n "(cached) " >&6
4338 else
4339 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4340 then ac_cv_path_EGREP="$GREP -E"
4341 else
4342 if test -z "$EGREP"; then
4343 ac_path_EGREP_found=false
4344 # Loop through the user's path and test for each of PROGNAME-LIST
4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4347 do
4348 IFS=$as_save_IFS
4349 test -z "$as_dir" && as_dir=.
4350 for ac_prog in egrep; do
4351 for ac_exec_ext in '' $ac_executable_extensions; do
4352 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4353 as_fn_executable_p "$ac_path_EGREP" || continue
4354 # Check for GNU ac_path_EGREP and select it if it is found.
4355 # Check for GNU $ac_path_EGREP
4356 case `"$ac_path_EGREP" --version 2>&1` in
4357 *GNU*)
4358 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4359 *)
4360 ac_count=0
4361 $as_echo_n 0123456789 >"conftest.in"
4362 while :
4363 do
4364 cat "conftest.in" "conftest.in" >"conftest.tmp"
4365 mv "conftest.tmp" "conftest.in"
4366 cp "conftest.in" "conftest.nl"
4367 $as_echo 'EGREP' >> "conftest.nl"
4368 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4369 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4370 as_fn_arith $ac_count + 1 && ac_count=$as_val
4371 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4372 # Best one so far, save it but keep looking for a better one
4373 ac_cv_path_EGREP="$ac_path_EGREP"
4374 ac_path_EGREP_max=$ac_count
4375 fi
4376 # 10*(2^10) chars as input seems more than enough
4377 test $ac_count -gt 10 && break
4378 done
4379 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4380 esac
4381
4382 $ac_path_EGREP_found && break 3
4383 done
4384 done
4385 done
4386 IFS=$as_save_IFS
4387 if test -z "$ac_cv_path_EGREP"; then
4388 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4389 fi
4390 else
4391 ac_cv_path_EGREP=$EGREP
4392 fi
4393
4394 fi
4395 fi
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4397 $as_echo "$ac_cv_path_EGREP" >&6; }
4398 EGREP="$ac_cv_path_EGREP"
4399
4400
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4402 $as_echo_n "checking for fgrep... " >&6; }
4403 if ${ac_cv_path_FGREP+:} false; then :
4404 $as_echo_n "(cached) " >&6
4405 else
4406 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4407 then ac_cv_path_FGREP="$GREP -F"
4408 else
4409 if test -z "$FGREP"; then
4410 ac_path_FGREP_found=false
4411 # Loop through the user's path and test for each of PROGNAME-LIST
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4414 do
4415 IFS=$as_save_IFS
4416 test -z "$as_dir" && as_dir=.
4417 for ac_prog in fgrep; do
4418 for ac_exec_ext in '' $ac_executable_extensions; do
4419 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4420 as_fn_executable_p "$ac_path_FGREP" || continue
4421 # Check for GNU ac_path_FGREP and select it if it is found.
4422 # Check for GNU $ac_path_FGREP
4423 case `"$ac_path_FGREP" --version 2>&1` in
4424 *GNU*)
4425 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4426 *)
4427 ac_count=0
4428 $as_echo_n 0123456789 >"conftest.in"
4429 while :
4430 do
4431 cat "conftest.in" "conftest.in" >"conftest.tmp"
4432 mv "conftest.tmp" "conftest.in"
4433 cp "conftest.in" "conftest.nl"
4434 $as_echo 'FGREP' >> "conftest.nl"
4435 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4436 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4437 as_fn_arith $ac_count + 1 && ac_count=$as_val
4438 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4439 # Best one so far, save it but keep looking for a better one
4440 ac_cv_path_FGREP="$ac_path_FGREP"
4441 ac_path_FGREP_max=$ac_count
4442 fi
4443 # 10*(2^10) chars as input seems more than enough
4444 test $ac_count -gt 10 && break
4445 done
4446 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4447 esac
4448
4449 $ac_path_FGREP_found && break 3
4450 done
4451 done
4452 done
4453 IFS=$as_save_IFS
4454 if test -z "$ac_cv_path_FGREP"; then
4455 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4456 fi
4457 else
4458 ac_cv_path_FGREP=$FGREP
4459 fi
4460
4461 fi
4462 fi
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4464 $as_echo "$ac_cv_path_FGREP" >&6; }
4465 FGREP="$ac_cv_path_FGREP"
4466
4467
4468 test -z "$GREP" && GREP=grep
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488 # Check whether --with-gnu-ld was given.
4489 if test "${with_gnu_ld+set}" = set; then :
4490 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4491 else
4492 with_gnu_ld=no
4493 fi
4494
4495 ac_prog=ld
4496 if test "$GCC" = yes; then
4497 # Check if gcc -print-prog-name=ld gives a path.
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4499 $as_echo_n "checking for ld used by $CC... " >&6; }
4500 case $host in
4501 *-*-mingw*)
4502 # gcc leaves a trailing carriage return which upsets mingw
4503 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4504 *)
4505 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4506 esac
4507 case $ac_prog in
4508 # Accept absolute paths.
4509 [\\/]* | ?:[\\/]*)
4510 re_direlt='/[^/][^/]*/\.\./'
4511 # Canonicalize the pathname of ld
4512 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4513 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4514 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4515 done
4516 test -z "$LD" && LD="$ac_prog"
4517 ;;
4518 "")
4519 # If it fails, then pretend we aren't using GCC.
4520 ac_prog=ld
4521 ;;
4522 *)
4523 # If it is relative, then search for the first ld in PATH.
4524 with_gnu_ld=unknown
4525 ;;
4526 esac
4527 elif test "$with_gnu_ld" = yes; then
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4529 $as_echo_n "checking for GNU ld... " >&6; }
4530 else
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4532 $as_echo_n "checking for non-GNU ld... " >&6; }
4533 fi
4534 if ${lt_cv_path_LD+:} false; then :
4535 $as_echo_n "(cached) " >&6
4536 else
4537 if test -z "$LD"; then
4538 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4539 for ac_dir in $PATH; do
4540 IFS="$lt_save_ifs"
4541 test -z "$ac_dir" && ac_dir=.
4542 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4543 lt_cv_path_LD="$ac_dir/$ac_prog"
4544 # Check to see if the program is GNU ld. I'd rather use --version,
4545 # but apparently some variants of GNU ld only accept -v.
4546 # Break only if it was the GNU/non-GNU ld that we prefer.
4547 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4548 *GNU* | *'with BFD'*)
4549 test "$with_gnu_ld" != no && break
4550 ;;
4551 *)
4552 test "$with_gnu_ld" != yes && break
4553 ;;
4554 esac
4555 fi
4556 done
4557 IFS="$lt_save_ifs"
4558 else
4559 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4560 fi
4561 fi
4562
4563 LD="$lt_cv_path_LD"
4564 if test -n "$LD"; then
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4566 $as_echo "$LD" >&6; }
4567 else
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4569 $as_echo "no" >&6; }
4570 fi
4571 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4573 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4574 if ${lt_cv_prog_gnu_ld+:} false; then :
4575 $as_echo_n "(cached) " >&6
4576 else
4577 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4578 case `$LD -v 2>&1 </dev/null` in
4579 *GNU* | *'with BFD'*)
4580 lt_cv_prog_gnu_ld=yes
4581 ;;
4582 *)
4583 lt_cv_prog_gnu_ld=no
4584 ;;
4585 esac
4586 fi
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4588 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4589 with_gnu_ld=$lt_cv_prog_gnu_ld
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4600 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4601 if ${lt_cv_path_NM+:} false; then :
4602 $as_echo_n "(cached) " >&6
4603 else
4604 if test -n "$NM"; then
4605 # Let the user override the test.
4606 lt_cv_path_NM="$NM"
4607 else
4608 lt_nm_to_check="${ac_tool_prefix}nm"
4609 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4610 lt_nm_to_check="$lt_nm_to_check nm"
4611 fi
4612 for lt_tmp_nm in $lt_nm_to_check; do
4613 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4614 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4615 IFS="$lt_save_ifs"
4616 test -z "$ac_dir" && ac_dir=.
4617 tmp_nm="$ac_dir/$lt_tmp_nm"
4618 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4619 # Check to see if the nm accepts a BSD-compat flag.
4620 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4621 # nm: unknown option "B" ignored
4622 # Tru64's nm complains that /dev/null is an invalid object file
4623 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4624 */dev/null* | *'Invalid file or object type'*)
4625 lt_cv_path_NM="$tmp_nm -B"
4626 break
4627 ;;
4628 *)
4629 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4630 */dev/null*)
4631 lt_cv_path_NM="$tmp_nm -p"
4632 break
4633 ;;
4634 *)
4635 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4636 continue # so that we can try to find one that supports BSD flags
4637 ;;
4638 esac
4639 ;;
4640 esac
4641 fi
4642 done
4643 IFS="$lt_save_ifs"
4644 done
4645 : ${lt_cv_path_NM=no}
4646 fi
4647 fi
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4649 $as_echo "$lt_cv_path_NM" >&6; }
4650 if test "$lt_cv_path_NM" != "no"; then
4651 NM="$lt_cv_path_NM"
4652 else
4653 # Didn't find any BSD compatible name lister, look for dumpbin.
4654 if test -n "$DUMPBIN"; then :
4655 # Let the user override the test.
4656 else
4657 if test -n "$ac_tool_prefix"; then
4658 for ac_prog in dumpbin "link -dump"
4659 do
4660 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4661 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4663 $as_echo_n "checking for $ac_word... " >&6; }
4664 if ${ac_cv_prog_DUMPBIN+:} false; then :
4665 $as_echo_n "(cached) " >&6
4666 else
4667 if test -n "$DUMPBIN"; then
4668 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4669 else
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH
4672 do
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4677 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 break 2
4680 fi
4681 done
4682 done
4683 IFS=$as_save_IFS
4684
4685 fi
4686 fi
4687 DUMPBIN=$ac_cv_prog_DUMPBIN
4688 if test -n "$DUMPBIN"; then
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4690 $as_echo "$DUMPBIN" >&6; }
4691 else
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693 $as_echo "no" >&6; }
4694 fi
4695
4696
4697 test -n "$DUMPBIN" && break
4698 done
4699 fi
4700 if test -z "$DUMPBIN"; then
4701 ac_ct_DUMPBIN=$DUMPBIN
4702 for ac_prog in dumpbin "link -dump"
4703 do
4704 # Extract the first word of "$ac_prog", so it can be a program name with args.
4705 set dummy $ac_prog; ac_word=$2
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4707 $as_echo_n "checking for $ac_word... " >&6; }
4708 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4709 $as_echo_n "(cached) " >&6
4710 else
4711 if test -n "$ac_ct_DUMPBIN"; then
4712 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4713 else
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 for as_dir in $PATH
4716 do
4717 IFS=$as_save_IFS
4718 test -z "$as_dir" && as_dir=.
4719 for ac_exec_ext in '' $ac_executable_extensions; do
4720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4721 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 break 2
4724 fi
4725 done
4726 done
4727 IFS=$as_save_IFS
4728
4729 fi
4730 fi
4731 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4732 if test -n "$ac_ct_DUMPBIN"; then
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4734 $as_echo "$ac_ct_DUMPBIN" >&6; }
4735 else
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4737 $as_echo "no" >&6; }
4738 fi
4739
4740
4741 test -n "$ac_ct_DUMPBIN" && break
4742 done
4743
4744 if test "x$ac_ct_DUMPBIN" = x; then
4745 DUMPBIN=":"
4746 else
4747 case $cross_compiling:$ac_tool_warned in
4748 yes:)
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4751 ac_tool_warned=yes ;;
4752 esac
4753 DUMPBIN=$ac_ct_DUMPBIN
4754 fi
4755 fi
4756
4757 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4758 *COFF*)
4759 DUMPBIN="$DUMPBIN -symbols"
4760 ;;
4761 *)
4762 DUMPBIN=:
4763 ;;
4764 esac
4765 fi
4766
4767 if test "$DUMPBIN" != ":"; then
4768 NM="$DUMPBIN"
4769 fi
4770 fi
4771 test -z "$NM" && NM=nm
4772
4773
4774
4775
4776
4777
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4779 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4780 if ${lt_cv_nm_interface+:} false; then :
4781 $as_echo_n "(cached) " >&6
4782 else
4783 lt_cv_nm_interface="BSD nm"
4784 echo "int some_variable = 0;" > conftest.$ac_ext
4785 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4786 (eval "$ac_compile" 2>conftest.err)
4787 cat conftest.err >&5
4788 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4789 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4790 cat conftest.err >&5
4791 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4792 cat conftest.out >&5
4793 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4794 lt_cv_nm_interface="MS dumpbin"
4795 fi
4796 rm -f conftest*
4797 fi
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4799 $as_echo "$lt_cv_nm_interface" >&6; }
4800
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4802 $as_echo_n "checking whether ln -s works... " >&6; }
4803 LN_S=$as_ln_s
4804 if test "$LN_S" = "ln -s"; then
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4806 $as_echo "yes" >&6; }
4807 else
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4809 $as_echo "no, using $LN_S" >&6; }
4810 fi
4811
4812 # find the maximum length of command line arguments
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4814 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4815 if ${lt_cv_sys_max_cmd_len+:} false; then :
4816 $as_echo_n "(cached) " >&6
4817 else
4818 i=0
4819 teststring="ABCD"
4820
4821 case $build_os in
4822 msdosdjgpp*)
4823 # On DJGPP, this test can blow up pretty badly due to problems in libc
4824 # (any single argument exceeding 2000 bytes causes a buffer overrun
4825 # during glob expansion). Even if it were fixed, the result of this
4826 # check would be larger than it should be.
4827 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4828 ;;
4829
4830 gnu*)
4831 # Under GNU Hurd, this test is not required because there is
4832 # no limit to the length of command line arguments.
4833 # Libtool will interpret -1 as no limit whatsoever
4834 lt_cv_sys_max_cmd_len=-1;
4835 ;;
4836
4837 cygwin* | mingw* | cegcc*)
4838 # On Win9x/ME, this test blows up -- it succeeds, but takes
4839 # about 5 minutes as the teststring grows exponentially.
4840 # Worse, since 9x/ME are not pre-emptively multitasking,
4841 # you end up with a "frozen" computer, even though with patience
4842 # the test eventually succeeds (with a max line length of 256k).
4843 # Instead, let's just punt: use the minimum linelength reported by
4844 # all of the supported platforms: 8192 (on NT/2K/XP).
4845 lt_cv_sys_max_cmd_len=8192;
4846 ;;
4847
4848 mint*)
4849 # On MiNT this can take a long time and run out of memory.
4850 lt_cv_sys_max_cmd_len=8192;
4851 ;;
4852
4853 amigaos*)
4854 # On AmigaOS with pdksh, this test takes hours, literally.
4855 # So we just punt and use a minimum line length of 8192.
4856 lt_cv_sys_max_cmd_len=8192;
4857 ;;
4858
4859 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4860 # This has been around since 386BSD, at least. Likely further.
4861 if test -x /sbin/sysctl; then
4862 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4863 elif test -x /usr/sbin/sysctl; then
4864 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4865 else
4866 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4867 fi
4868 # And add a safety zone
4869 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4870 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4871 ;;
4872
4873 interix*)
4874 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4875 lt_cv_sys_max_cmd_len=196608
4876 ;;
4877
4878 os2*)
4879 # The test takes a long time on OS/2.
4880 lt_cv_sys_max_cmd_len=8192
4881 ;;
4882
4883 osf*)
4884 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4885 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4886 # nice to cause kernel panics so lets avoid the loop below.
4887 # First set a reasonable default.
4888 lt_cv_sys_max_cmd_len=16384
4889 #
4890 if test -x /sbin/sysconfig; then
4891 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4892 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4893 esac
4894 fi
4895 ;;
4896 sco3.2v5*)
4897 lt_cv_sys_max_cmd_len=102400
4898 ;;
4899 sysv5* | sco5v6* | sysv4.2uw2*)
4900 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4901 if test -n "$kargmax"; then
4902 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4903 else
4904 lt_cv_sys_max_cmd_len=32768
4905 fi
4906 ;;
4907 *)
4908 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4909 if test -n "$lt_cv_sys_max_cmd_len" && \
4910 test undefined != "$lt_cv_sys_max_cmd_len"; then
4911 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4912 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4913 else
4914 # Make teststring a little bigger before we do anything with it.
4915 # a 1K string should be a reasonable start.
4916 for i in 1 2 3 4 5 6 7 8 ; do
4917 teststring=$teststring$teststring
4918 done
4919 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4920 # If test is not a shell built-in, we'll probably end up computing a
4921 # maximum length that is only half of the actual maximum length, but
4922 # we can't tell.
4923 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4924 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4925 test $i != 17 # 1/2 MB should be enough
4926 do
4927 i=`expr $i + 1`
4928 teststring=$teststring$teststring
4929 done
4930 # Only check the string length outside the loop.
4931 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4932 teststring=
4933 # Add a significant safety factor because C++ compilers can tack on
4934 # massive amounts of additional arguments before passing them to the
4935 # linker. It appears as though 1/2 is a usable value.
4936 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4937 fi
4938 ;;
4939 esac
4940
4941 fi
4942
4943 if test -n $lt_cv_sys_max_cmd_len ; then
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4945 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4946 else
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4948 $as_echo "none" >&6; }
4949 fi
4950 max_cmd_len=$lt_cv_sys_max_cmd_len
4951
4952
4953
4954
4955
4956
4957 : ${CP="cp -f"}
4958 : ${MV="mv -f"}
4959 : ${RM="rm -f"}
4960
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4962 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4963 # Try some XSI features
4964 xsi_shell=no
4965 ( _lt_dummy="a/b/c"
4966 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4967 = c,a/b,b/c, \
4968 && eval 'test $(( 1 + 1 )) -eq 2 \
4969 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4970 && xsi_shell=yes
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4972 $as_echo "$xsi_shell" >&6; }
4973
4974
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4976 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4977 lt_shell_append=no
4978 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4979 >/dev/null 2>&1 \
4980 && lt_shell_append=yes
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4982 $as_echo "$lt_shell_append" >&6; }
4983
4984
4985 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4986 lt_unset=unset
4987 else
4988 lt_unset=false
4989 fi
4990
4991
4992
4993
4994
4995 # test EBCDIC or ASCII
4996 case `echo X|tr X '\101'` in
4997 A) # ASCII based system
4998 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4999 lt_SP2NL='tr \040 \012'
5000 lt_NL2SP='tr \015\012 \040\040'
5001 ;;
5002 *) # EBCDIC based system
5003 lt_SP2NL='tr \100 \n'
5004 lt_NL2SP='tr \r\n \100\100'
5005 ;;
5006 esac
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5017 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5018 if ${lt_cv_to_host_file_cmd+:} false; then :
5019 $as_echo_n "(cached) " >&6
5020 else
5021 case $host in
5022 *-*-mingw* )
5023 case $build in
5024 *-*-mingw* ) # actually msys
5025 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5026 ;;
5027 *-*-cygwin* )
5028 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5029 ;;
5030 * ) # otherwise, assume *nix
5031 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5032 ;;
5033 esac
5034 ;;
5035 *-*-cygwin* )
5036 case $build in
5037 *-*-mingw* ) # actually msys
5038 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5039 ;;
5040 *-*-cygwin* )
5041 lt_cv_to_host_file_cmd=func_convert_file_noop
5042 ;;
5043 * ) # otherwise, assume *nix
5044 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5045 ;;
5046 esac
5047 ;;
5048 * ) # unhandled hosts (and "normal" native builds)
5049 lt_cv_to_host_file_cmd=func_convert_file_noop
5050 ;;
5051 esac
5052
5053 fi
5054
5055 to_host_file_cmd=$lt_cv_to_host_file_cmd
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5057 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5058
5059
5060
5061
5062
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5064 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5065 if ${lt_cv_to_tool_file_cmd+:} false; then :
5066 $as_echo_n "(cached) " >&6
5067 else
5068 #assume ordinary cross tools, or native build.
5069 lt_cv_to_tool_file_cmd=func_convert_file_noop
5070 case $host in
5071 *-*-mingw* )
5072 case $build in
5073 *-*-mingw* ) # actually msys
5074 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5075 ;;
5076 esac
5077 ;;
5078 esac
5079
5080 fi
5081
5082 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5084 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5085
5086
5087
5088
5089
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5091 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5092 if ${lt_cv_ld_reload_flag+:} false; then :
5093 $as_echo_n "(cached) " >&6
5094 else
5095 lt_cv_ld_reload_flag='-r'
5096 fi
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5098 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5099 reload_flag=$lt_cv_ld_reload_flag
5100 case $reload_flag in
5101 "" | " "*) ;;
5102 *) reload_flag=" $reload_flag" ;;
5103 esac
5104 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5105 case $host_os in
5106 cygwin* | mingw* | pw32* | cegcc*)
5107 if test "$GCC" != yes; then
5108 reload_cmds=false
5109 fi
5110 ;;
5111 darwin*)
5112 if test "$GCC" = yes; then
5113 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5114 else
5115 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5116 fi
5117 ;;
5118 esac
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128 if test -n "$ac_tool_prefix"; then
5129 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5130 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5132 $as_echo_n "checking for $ac_word... " >&6; }
5133 if ${ac_cv_prog_OBJDUMP+:} false; then :
5134 $as_echo_n "(cached) " >&6
5135 else
5136 if test -n "$OBJDUMP"; then
5137 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5138 else
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 for as_dir in $PATH
5141 do
5142 IFS=$as_save_IFS
5143 test -z "$as_dir" && as_dir=.
5144 for ac_exec_ext in '' $ac_executable_extensions; do
5145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5146 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5148 break 2
5149 fi
5150 done
5151 done
5152 IFS=$as_save_IFS
5153
5154 fi
5155 fi
5156 OBJDUMP=$ac_cv_prog_OBJDUMP
5157 if test -n "$OBJDUMP"; then
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5159 $as_echo "$OBJDUMP" >&6; }
5160 else
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162 $as_echo "no" >&6; }
5163 fi
5164
5165
5166 fi
5167 if test -z "$ac_cv_prog_OBJDUMP"; then
5168 ac_ct_OBJDUMP=$OBJDUMP
5169 # Extract the first word of "objdump", so it can be a program name with args.
5170 set dummy objdump; ac_word=$2
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5172 $as_echo_n "checking for $ac_word... " >&6; }
5173 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5174 $as_echo_n "(cached) " >&6
5175 else
5176 if test -n "$ac_ct_OBJDUMP"; then
5177 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5178 else
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180 for as_dir in $PATH
5181 do
5182 IFS=$as_save_IFS
5183 test -z "$as_dir" && as_dir=.
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5186 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5188 break 2
5189 fi
5190 done
5191 done
5192 IFS=$as_save_IFS
5193
5194 fi
5195 fi
5196 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5197 if test -n "$ac_ct_OBJDUMP"; then
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5199 $as_echo "$ac_ct_OBJDUMP" >&6; }
5200 else
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202 $as_echo "no" >&6; }
5203 fi
5204
5205 if test "x$ac_ct_OBJDUMP" = x; then
5206 OBJDUMP="false"
5207 else
5208 case $cross_compiling:$ac_tool_warned in
5209 yes:)
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5212 ac_tool_warned=yes ;;
5213 esac
5214 OBJDUMP=$ac_ct_OBJDUMP
5215 fi
5216 else
5217 OBJDUMP="$ac_cv_prog_OBJDUMP"
5218 fi
5219
5220 test -z "$OBJDUMP" && OBJDUMP=objdump
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5231 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5232 if ${lt_cv_deplibs_check_method+:} false; then :
5233 $as_echo_n "(cached) " >&6
5234 else
5235 lt_cv_file_magic_cmd='$MAGIC_CMD'
5236 lt_cv_file_magic_test_file=
5237 lt_cv_deplibs_check_method='unknown'
5238 # Need to set the preceding variable on all platforms that support
5239 # interlibrary dependencies.
5240 # 'none' -- dependencies not supported.
5241 # `unknown' -- same as none, but documents that we really don't know.
5242 # 'pass_all' -- all dependencies passed with no checks.
5243 # 'test_compile' -- check by making test program.
5244 # 'file_magic [[regex]]' -- check by looking for files in library path
5245 # which responds to the $file_magic_cmd with a given extended regex.
5246 # If you have `file' or equivalent on your system and you're not sure
5247 # whether `pass_all' will *always* work, you probably want this one.
5248
5249 case $host_os in
5250 aix[4-9]*)
5251 lt_cv_deplibs_check_method=pass_all
5252 ;;
5253
5254 beos*)
5255 lt_cv_deplibs_check_method=pass_all
5256 ;;
5257
5258 bsdi[45]*)
5259 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5260 lt_cv_file_magic_cmd='/usr/bin/file -L'
5261 lt_cv_file_magic_test_file=/shlib/libc.so
5262 ;;
5263
5264 cygwin*)
5265 # func_win32_libid is a shell function defined in ltmain.sh
5266 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5267 lt_cv_file_magic_cmd='func_win32_libid'
5268 ;;
5269
5270 mingw* | pw32*)
5271 # Base MSYS/MinGW do not provide the 'file' command needed by
5272 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5273 # unless we find 'file', for example because we are cross-compiling.
5274 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5275 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5276 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5277 lt_cv_file_magic_cmd='func_win32_libid'
5278 else
5279 # Keep this pattern in sync with the one in func_win32_libid.
5280 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5281 lt_cv_file_magic_cmd='$OBJDUMP -f'
5282 fi
5283 ;;
5284
5285 cegcc*)
5286 # use the weaker test based on 'objdump'. See mingw*.
5287 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5288 lt_cv_file_magic_cmd='$OBJDUMP -f'
5289 ;;
5290
5291 darwin* | rhapsody*)
5292 lt_cv_deplibs_check_method=pass_all
5293 ;;
5294
5295 freebsd* | dragonfly*)
5296 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5297 case $host_cpu in
5298 i*86 )
5299 # Not sure whether the presence of OpenBSD here was a mistake.
5300 # Let's accept both of them until this is cleared up.
5301 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5302 lt_cv_file_magic_cmd=/usr/bin/file
5303 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5304 ;;
5305 esac
5306 else
5307 lt_cv_deplibs_check_method=pass_all
5308 fi
5309 ;;
5310
5311 haiku*)
5312 lt_cv_deplibs_check_method=pass_all
5313 ;;
5314
5315 hpux10.20* | hpux11*)
5316 lt_cv_file_magic_cmd=/usr/bin/file
5317 case $host_cpu in
5318 ia64*)
5319 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5320 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5321 ;;
5322 hppa*64*)
5323 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]'
5324 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5325 ;;
5326 *)
5327 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5328 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5329 ;;
5330 esac
5331 ;;
5332
5333 interix[3-9]*)
5334 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5335 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5336 ;;
5337
5338 irix5* | irix6* | nonstopux*)
5339 case $LD in
5340 *-32|*"-32 ") libmagic=32-bit;;
5341 *-n32|*"-n32 ") libmagic=N32;;
5342 *-64|*"-64 ") libmagic=64-bit;;
5343 *) libmagic=never-match;;
5344 esac
5345 lt_cv_deplibs_check_method=pass_all
5346 ;;
5347
5348 # This must be glibc/ELF.
5349 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5350 lt_cv_deplibs_check_method=pass_all
5351 ;;
5352
5353 netbsd* | netbsdelf*-gnu)
5354 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5355 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5356 else
5357 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5358 fi
5359 ;;
5360
5361 newos6*)
5362 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5363 lt_cv_file_magic_cmd=/usr/bin/file
5364 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5365 ;;
5366
5367 *nto* | *qnx*)
5368 lt_cv_deplibs_check_method=pass_all
5369 ;;
5370
5371 openbsd*)
5372 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5373 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5374 else
5375 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5376 fi
5377 ;;
5378
5379 osf3* | osf4* | osf5*)
5380 lt_cv_deplibs_check_method=pass_all
5381 ;;
5382
5383 rdos*)
5384 lt_cv_deplibs_check_method=pass_all
5385 ;;
5386
5387 solaris*)
5388 lt_cv_deplibs_check_method=pass_all
5389 ;;
5390
5391 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5392 lt_cv_deplibs_check_method=pass_all
5393 ;;
5394
5395 sysv4 | sysv4.3*)
5396 case $host_vendor in
5397 motorola)
5398 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]'
5399 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5400 ;;
5401 ncr)
5402 lt_cv_deplibs_check_method=pass_all
5403 ;;
5404 sequent)
5405 lt_cv_file_magic_cmd='/bin/file'
5406 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5407 ;;
5408 sni)
5409 lt_cv_file_magic_cmd='/bin/file'
5410 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5411 lt_cv_file_magic_test_file=/lib/libc.so
5412 ;;
5413 siemens)
5414 lt_cv_deplibs_check_method=pass_all
5415 ;;
5416 pc)
5417 lt_cv_deplibs_check_method=pass_all
5418 ;;
5419 esac
5420 ;;
5421
5422 tpf*)
5423 lt_cv_deplibs_check_method=pass_all
5424 ;;
5425 esac
5426
5427 fi
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5429 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5430
5431 file_magic_glob=
5432 want_nocaseglob=no
5433 if test "$build" = "$host"; then
5434 case $host_os in
5435 mingw* | pw32*)
5436 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5437 want_nocaseglob=yes
5438 else
5439 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5440 fi
5441 ;;
5442 esac
5443 fi
5444
5445 file_magic_cmd=$lt_cv_file_magic_cmd
5446 deplibs_check_method=$lt_cv_deplibs_check_method
5447 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470 if test -n "$ac_tool_prefix"; then
5471 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5472 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474 $as_echo_n "checking for $ac_word... " >&6; }
5475 if ${ac_cv_prog_DLLTOOL+:} false; then :
5476 $as_echo_n "(cached) " >&6
5477 else
5478 if test -n "$DLLTOOL"; then
5479 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5480 else
5481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482 for as_dir in $PATH
5483 do
5484 IFS=$as_save_IFS
5485 test -z "$as_dir" && as_dir=.
5486 for ac_exec_ext in '' $ac_executable_extensions; do
5487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5488 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5490 break 2
5491 fi
5492 done
5493 done
5494 IFS=$as_save_IFS
5495
5496 fi
5497 fi
5498 DLLTOOL=$ac_cv_prog_DLLTOOL
5499 if test -n "$DLLTOOL"; then
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5501 $as_echo "$DLLTOOL" >&6; }
5502 else
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504 $as_echo "no" >&6; }
5505 fi
5506
5507
5508 fi
5509 if test -z "$ac_cv_prog_DLLTOOL"; then
5510 ac_ct_DLLTOOL=$DLLTOOL
5511 # Extract the first word of "dlltool", so it can be a program name with args.
5512 set dummy dlltool; ac_word=$2
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5514 $as_echo_n "checking for $ac_word... " >&6; }
5515 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5516 $as_echo_n "(cached) " >&6
5517 else
5518 if test -n "$ac_ct_DLLTOOL"; then
5519 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5520 else
5521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522 for as_dir in $PATH
5523 do
5524 IFS=$as_save_IFS
5525 test -z "$as_dir" && as_dir=.
5526 for ac_exec_ext in '' $ac_executable_extensions; do
5527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5528 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5530 break 2
5531 fi
5532 done
5533 done
5534 IFS=$as_save_IFS
5535
5536 fi
5537 fi
5538 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5539 if test -n "$ac_ct_DLLTOOL"; then
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5541 $as_echo "$ac_ct_DLLTOOL" >&6; }
5542 else
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544 $as_echo "no" >&6; }
5545 fi
5546
5547 if test "x$ac_ct_DLLTOOL" = x; then
5548 DLLTOOL="false"
5549 else
5550 case $cross_compiling:$ac_tool_warned in
5551 yes:)
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5554 ac_tool_warned=yes ;;
5555 esac
5556 DLLTOOL=$ac_ct_DLLTOOL
5557 fi
5558 else
5559 DLLTOOL="$ac_cv_prog_DLLTOOL"
5560 fi
5561
5562 test -z "$DLLTOOL" && DLLTOOL=dlltool
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5574 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5575 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5576 $as_echo_n "(cached) " >&6
5577 else
5578 lt_cv_sharedlib_from_linklib_cmd='unknown'
5579
5580 case $host_os in
5581 cygwin* | mingw* | pw32* | cegcc*)
5582 # two different shell functions defined in ltmain.sh
5583 # decide which to use based on capabilities of $DLLTOOL
5584 case `$DLLTOOL --help 2>&1` in
5585 *--identify-strict*)
5586 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5587 ;;
5588 *)
5589 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5590 ;;
5591 esac
5592 ;;
5593 *)
5594 # fallback: assume linklib IS sharedlib
5595 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5596 ;;
5597 esac
5598
5599 fi
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5601 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5602 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5603 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5604
5605
5606
5607
5608
5609
5610
5611
5612 if test -n "$ac_tool_prefix"; then
5613 for ac_prog in ar
5614 do
5615 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5616 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5618 $as_echo_n "checking for $ac_word... " >&6; }
5619 if ${ac_cv_prog_AR+:} false; then :
5620 $as_echo_n "(cached) " >&6
5621 else
5622 if test -n "$AR"; then
5623 ac_cv_prog_AR="$AR" # Let the user override the test.
5624 else
5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626 for as_dir in $PATH
5627 do
5628 IFS=$as_save_IFS
5629 test -z "$as_dir" && as_dir=.
5630 for ac_exec_ext in '' $ac_executable_extensions; do
5631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5632 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5634 break 2
5635 fi
5636 done
5637 done
5638 IFS=$as_save_IFS
5639
5640 fi
5641 fi
5642 AR=$ac_cv_prog_AR
5643 if test -n "$AR"; then
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5645 $as_echo "$AR" >&6; }
5646 else
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648 $as_echo "no" >&6; }
5649 fi
5650
5651
5652 test -n "$AR" && break
5653 done
5654 fi
5655 if test -z "$AR"; then
5656 ac_ct_AR=$AR
5657 for ac_prog in ar
5658 do
5659 # Extract the first word of "$ac_prog", so it can be a program name with args.
5660 set dummy $ac_prog; ac_word=$2
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5662 $as_echo_n "checking for $ac_word... " >&6; }
5663 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5664 $as_echo_n "(cached) " >&6
5665 else
5666 if test -n "$ac_ct_AR"; then
5667 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5668 else
5669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670 for as_dir in $PATH
5671 do
5672 IFS=$as_save_IFS
5673 test -z "$as_dir" && as_dir=.
5674 for ac_exec_ext in '' $ac_executable_extensions; do
5675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5676 ac_cv_prog_ac_ct_AR="$ac_prog"
5677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5678 break 2
5679 fi
5680 done
5681 done
5682 IFS=$as_save_IFS
5683
5684 fi
5685 fi
5686 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5687 if test -n "$ac_ct_AR"; then
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5689 $as_echo "$ac_ct_AR" >&6; }
5690 else
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692 $as_echo "no" >&6; }
5693 fi
5694
5695
5696 test -n "$ac_ct_AR" && break
5697 done
5698
5699 if test "x$ac_ct_AR" = x; then
5700 AR="false"
5701 else
5702 case $cross_compiling:$ac_tool_warned in
5703 yes:)
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5706 ac_tool_warned=yes ;;
5707 esac
5708 AR=$ac_ct_AR
5709 fi
5710 fi
5711
5712 : ${AR=ar}
5713 : ${AR_FLAGS=cru}
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5726 $as_echo_n "checking for archiver @FILE support... " >&6; }
5727 if ${lt_cv_ar_at_file+:} false; then :
5728 $as_echo_n "(cached) " >&6
5729 else
5730 lt_cv_ar_at_file=no
5731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5732 /* end confdefs.h. */
5733
5734 int
5735 main ()
5736 {
5737
5738 ;
5739 return 0;
5740 }
5741 _ACEOF
5742 if ac_fn_c_try_compile "$LINENO"; then :
5743 echo conftest.$ac_objext > conftest.lst
5744 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5745 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5746 (eval $lt_ar_try) 2>&5
5747 ac_status=$?
5748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5749 test $ac_status = 0; }
5750 if test "$ac_status" -eq 0; then
5751 # Ensure the archiver fails upon bogus file names.
5752 rm -f conftest.$ac_objext libconftest.a
5753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5754 (eval $lt_ar_try) 2>&5
5755 ac_status=$?
5756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5757 test $ac_status = 0; }
5758 if test "$ac_status" -ne 0; then
5759 lt_cv_ar_at_file=@
5760 fi
5761 fi
5762 rm -f conftest.* libconftest.a
5763
5764 fi
5765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5766
5767 fi
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5769 $as_echo "$lt_cv_ar_at_file" >&6; }
5770
5771 if test "x$lt_cv_ar_at_file" = xno; then
5772 archiver_list_spec=
5773 else
5774 archiver_list_spec=$lt_cv_ar_at_file
5775 fi
5776
5777
5778
5779
5780
5781
5782
5783 if test -n "$ac_tool_prefix"; then
5784 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5785 set dummy ${ac_tool_prefix}strip; ac_word=$2
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5787 $as_echo_n "checking for $ac_word... " >&6; }
5788 if ${ac_cv_prog_STRIP+:} false; then :
5789 $as_echo_n "(cached) " >&6
5790 else
5791 if test -n "$STRIP"; then
5792 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5793 else
5794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795 for as_dir in $PATH
5796 do
5797 IFS=$as_save_IFS
5798 test -z "$as_dir" && as_dir=.
5799 for ac_exec_ext in '' $ac_executable_extensions; do
5800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5801 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5803 break 2
5804 fi
5805 done
5806 done
5807 IFS=$as_save_IFS
5808
5809 fi
5810 fi
5811 STRIP=$ac_cv_prog_STRIP
5812 if test -n "$STRIP"; then
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5814 $as_echo "$STRIP" >&6; }
5815 else
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5817 $as_echo "no" >&6; }
5818 fi
5819
5820
5821 fi
5822 if test -z "$ac_cv_prog_STRIP"; then
5823 ac_ct_STRIP=$STRIP
5824 # Extract the first word of "strip", so it can be a program name with args.
5825 set dummy strip; ac_word=$2
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5827 $as_echo_n "checking for $ac_word... " >&6; }
5828 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5829 $as_echo_n "(cached) " >&6
5830 else
5831 if test -n "$ac_ct_STRIP"; then
5832 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5833 else
5834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835 for as_dir in $PATH
5836 do
5837 IFS=$as_save_IFS
5838 test -z "$as_dir" && as_dir=.
5839 for ac_exec_ext in '' $ac_executable_extensions; do
5840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5841 ac_cv_prog_ac_ct_STRIP="strip"
5842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5843 break 2
5844 fi
5845 done
5846 done
5847 IFS=$as_save_IFS
5848
5849 fi
5850 fi
5851 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5852 if test -n "$ac_ct_STRIP"; then
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5854 $as_echo "$ac_ct_STRIP" >&6; }
5855 else
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5857 $as_echo "no" >&6; }
5858 fi
5859
5860 if test "x$ac_ct_STRIP" = x; then
5861 STRIP=":"
5862 else
5863 case $cross_compiling:$ac_tool_warned in
5864 yes:)
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5867 ac_tool_warned=yes ;;
5868 esac
5869 STRIP=$ac_ct_STRIP
5870 fi
5871 else
5872 STRIP="$ac_cv_prog_STRIP"
5873 fi
5874
5875 test -z "$STRIP" && STRIP=:
5876
5877
5878
5879
5880
5881
5882 if test -n "$ac_tool_prefix"; then
5883 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5884 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5886 $as_echo_n "checking for $ac_word... " >&6; }
5887 if ${ac_cv_prog_RANLIB+:} false; then :
5888 $as_echo_n "(cached) " >&6
5889 else
5890 if test -n "$RANLIB"; then
5891 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5892 else
5893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894 for as_dir in $PATH
5895 do
5896 IFS=$as_save_IFS
5897 test -z "$as_dir" && as_dir=.
5898 for ac_exec_ext in '' $ac_executable_extensions; do
5899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5900 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5902 break 2
5903 fi
5904 done
5905 done
5906 IFS=$as_save_IFS
5907
5908 fi
5909 fi
5910 RANLIB=$ac_cv_prog_RANLIB
5911 if test -n "$RANLIB"; then
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5913 $as_echo "$RANLIB" >&6; }
5914 else
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5916 $as_echo "no" >&6; }
5917 fi
5918
5919
5920 fi
5921 if test -z "$ac_cv_prog_RANLIB"; then
5922 ac_ct_RANLIB=$RANLIB
5923 # Extract the first word of "ranlib", so it can be a program name with args.
5924 set dummy ranlib; ac_word=$2
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5926 $as_echo_n "checking for $ac_word... " >&6; }
5927 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5928 $as_echo_n "(cached) " >&6
5929 else
5930 if test -n "$ac_ct_RANLIB"; then
5931 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5932 else
5933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934 for as_dir in $PATH
5935 do
5936 IFS=$as_save_IFS
5937 test -z "$as_dir" && as_dir=.
5938 for ac_exec_ext in '' $ac_executable_extensions; do
5939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5940 ac_cv_prog_ac_ct_RANLIB="ranlib"
5941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5942 break 2
5943 fi
5944 done
5945 done
5946 IFS=$as_save_IFS
5947
5948 fi
5949 fi
5950 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5951 if test -n "$ac_ct_RANLIB"; then
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5953 $as_echo "$ac_ct_RANLIB" >&6; }
5954 else
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5956 $as_echo "no" >&6; }
5957 fi
5958
5959 if test "x$ac_ct_RANLIB" = x; then
5960 RANLIB=":"
5961 else
5962 case $cross_compiling:$ac_tool_warned in
5963 yes:)
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5966 ac_tool_warned=yes ;;
5967 esac
5968 RANLIB=$ac_ct_RANLIB
5969 fi
5970 else
5971 RANLIB="$ac_cv_prog_RANLIB"
5972 fi
5973
5974 test -z "$RANLIB" && RANLIB=:
5975
5976
5977
5978
5979
5980
5981 # Determine commands to create old-style static archives.
5982 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5983 old_postinstall_cmds='chmod 644 $oldlib'
5984 old_postuninstall_cmds=
5985
5986 if test -n "$RANLIB"; then
5987 case $host_os in
5988 openbsd*)
5989 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5990 ;;
5991 *)
5992 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5993 ;;
5994 esac
5995 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5996 fi
5997
5998 case $host_os in
5999 darwin*)
6000 lock_old_archive_extraction=yes ;;
6001 *)
6002 lock_old_archive_extraction=no ;;
6003 esac
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043 # If no C compiler was specified, use CC.
6044 LTCC=${LTCC-"$CC"}
6045
6046 # If no C compiler flags were specified, use CFLAGS.
6047 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6048
6049 # Allow CC to be a program name with arguments.
6050 compiler=$CC
6051
6052
6053 # Check for command to grab the raw symbol name followed by C symbol from nm.
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6055 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6056 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6057 $as_echo_n "(cached) " >&6
6058 else
6059
6060 # These are sane defaults that work on at least a few old systems.
6061 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6062
6063 # Character class describing NM global symbol codes.
6064 symcode='[BCDEGRST]'
6065
6066 # Regexp to match symbols that can be accessed directly from C.
6067 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6068
6069 # Define system-specific variables.
6070 case $host_os in
6071 aix*)
6072 symcode='[BCDT]'
6073 ;;
6074 cygwin* | mingw* | pw32* | cegcc*)
6075 symcode='[ABCDGISTW]'
6076 ;;
6077 hpux*)
6078 if test "$host_cpu" = ia64; then
6079 symcode='[ABCDEGRST]'
6080 fi
6081 ;;
6082 irix* | nonstopux*)
6083 symcode='[BCDEGRST]'
6084 ;;
6085 osf*)
6086 symcode='[BCDEGQRST]'
6087 ;;
6088 solaris*)
6089 symcode='[BDRT]'
6090 ;;
6091 sco3.2v5*)
6092 symcode='[DT]'
6093 ;;
6094 sysv4.2uw2*)
6095 symcode='[DT]'
6096 ;;
6097 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6098 symcode='[ABDT]'
6099 ;;
6100 sysv4)
6101 symcode='[DFNSTU]'
6102 ;;
6103 esac
6104
6105 # If we're using GNU nm, then use its standard symbol codes.
6106 case `$NM -V 2>&1` in
6107 *GNU* | *'with BFD'*)
6108 symcode='[ABCDGIRSTW]' ;;
6109 esac
6110
6111 # Transform an extracted symbol line into a proper C declaration.
6112 # Some systems (esp. on ia64) link data and code symbols differently,
6113 # so use this general approach.
6114 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6115
6116 # Transform an extracted symbol line into symbol name and symbol address
6117 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6118 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6119
6120 # Handle CRLF in mingw tool chain
6121 opt_cr=
6122 case $build_os in
6123 mingw*)
6124 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6125 ;;
6126 esac
6127
6128 # Try without a prefix underscore, then with it.
6129 for ac_symprfx in "" "_"; do
6130
6131 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6132 symxfrm="\\1 $ac_symprfx\\2 \\2"
6133
6134 # Write the raw and C identifiers.
6135 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6136 # Fake it for dumpbin and say T for any non-static function
6137 # and D for any global variable.
6138 # Also find C++ and __fastcall symbols from MSVC++,
6139 # which start with @ or ?.
6140 lt_cv_sys_global_symbol_pipe="$AWK '"\
6141 " {last_section=section; section=\$ 3};"\
6142 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6143 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6144 " \$ 0!~/External *\|/{next};"\
6145 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6146 " {if(hide[section]) next};"\
6147 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6148 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6149 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6150 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6151 " ' prfx=^$ac_symprfx"
6152 else
6153 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6154 fi
6155 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6156
6157 # Check to see that the pipe works correctly.
6158 pipe_works=no
6159
6160 rm -f conftest*
6161 cat > conftest.$ac_ext <<_LT_EOF
6162 #ifdef __cplusplus
6163 extern "C" {
6164 #endif
6165 char nm_test_var;
6166 void nm_test_func(void);
6167 void nm_test_func(void){}
6168 #ifdef __cplusplus
6169 }
6170 #endif
6171 int main(){nm_test_var='a';nm_test_func();return(0);}
6172 _LT_EOF
6173
6174 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6175 (eval $ac_compile) 2>&5
6176 ac_status=$?
6177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6178 test $ac_status = 0; }; then
6179 # Now try to grab the symbols.
6180 nlist=conftest.nm
6181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6182 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6183 ac_status=$?
6184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6185 test $ac_status = 0; } && test -s "$nlist"; then
6186 # Try sorting and uniquifying the output.
6187 if sort "$nlist" | uniq > "$nlist"T; then
6188 mv -f "$nlist"T "$nlist"
6189 else
6190 rm -f "$nlist"T
6191 fi
6192
6193 # Make sure that we snagged all the symbols we need.
6194 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6195 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6196 cat <<_LT_EOF > conftest.$ac_ext
6197 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6198 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6199 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6200 relocations are performed -- see ld's documentation on pseudo-relocs. */
6201 # define LT_DLSYM_CONST
6202 #elif defined(__osf__)
6203 /* This system does not cope well with relocations in const data. */
6204 # define LT_DLSYM_CONST
6205 #else
6206 # define LT_DLSYM_CONST const
6207 #endif
6208
6209 #ifdef __cplusplus
6210 extern "C" {
6211 #endif
6212
6213 _LT_EOF
6214 # Now generate the symbol file.
6215 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6216
6217 cat <<_LT_EOF >> conftest.$ac_ext
6218
6219 /* The mapping between symbol names and symbols. */
6220 LT_DLSYM_CONST struct {
6221 const char *name;
6222 void *address;
6223 }
6224 lt__PROGRAM__LTX_preloaded_symbols[] =
6225 {
6226 { "@PROGRAM@", (void *) 0 },
6227 _LT_EOF
6228 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6229 cat <<\_LT_EOF >> conftest.$ac_ext
6230 {0, (void *) 0}
6231 };
6232
6233 /* This works around a problem in FreeBSD linker */
6234 #ifdef FREEBSD_WORKAROUND
6235 static const void *lt_preloaded_setup() {
6236 return lt__PROGRAM__LTX_preloaded_symbols;
6237 }
6238 #endif
6239
6240 #ifdef __cplusplus
6241 }
6242 #endif
6243 _LT_EOF
6244 # Now try linking the two files.
6245 mv conftest.$ac_objext conftstm.$ac_objext
6246 lt_globsym_save_LIBS=$LIBS
6247 lt_globsym_save_CFLAGS=$CFLAGS
6248 LIBS="conftstm.$ac_objext"
6249 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6251 (eval $ac_link) 2>&5
6252 ac_status=$?
6253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6254 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6255 pipe_works=yes
6256 fi
6257 LIBS=$lt_globsym_save_LIBS
6258 CFLAGS=$lt_globsym_save_CFLAGS
6259 else
6260 echo "cannot find nm_test_func in $nlist" >&5
6261 fi
6262 else
6263 echo "cannot find nm_test_var in $nlist" >&5
6264 fi
6265 else
6266 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6267 fi
6268 else
6269 echo "$progname: failed program was:" >&5
6270 cat conftest.$ac_ext >&5
6271 fi
6272 rm -rf conftest* conftst*
6273
6274 # Do not use the global_symbol_pipe unless it works.
6275 if test "$pipe_works" = yes; then
6276 break
6277 else
6278 lt_cv_sys_global_symbol_pipe=
6279 fi
6280 done
6281
6282 fi
6283
6284 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6285 lt_cv_sys_global_symbol_to_cdecl=
6286 fi
6287 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6289 $as_echo "failed" >&6; }
6290 else
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6292 $as_echo "ok" >&6; }
6293 fi
6294
6295 # Response file support.
6296 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6297 nm_file_list_spec='@'
6298 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6299 nm_file_list_spec='@'
6300 fi
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6329 $as_echo_n "checking for sysroot... " >&6; }
6330
6331 # Check whether --with-sysroot was given.
6332 if test "${with_sysroot+set}" = set; then :
6333 withval=$with_sysroot;
6334 else
6335 with_sysroot=no
6336 fi
6337
6338
6339 lt_sysroot=
6340 case ${with_sysroot} in #(
6341 yes)
6342 if test "$GCC" = yes; then
6343 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6344 fi
6345 ;; #(
6346 /*)
6347 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6348 ;; #(
6349 no|'')
6350 ;; #(
6351 *)
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6353 $as_echo "${with_sysroot}" >&6; }
6354 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6355 ;;
6356 esac
6357
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6359 $as_echo "${lt_sysroot:-no}" >&6; }
6360
6361
6362
6363
6364
6365 # Check whether --enable-libtool-lock was given.
6366 if test "${enable_libtool_lock+set}" = set; then :
6367 enableval=$enable_libtool_lock;
6368 fi
6369
6370 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6371
6372 # Some flags need to be propagated to the compiler or linker for good
6373 # libtool support.
6374 case $host in
6375 ia64-*-hpux*)
6376 # Find out which ABI we are using.
6377 echo 'int i;' > conftest.$ac_ext
6378 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6379 (eval $ac_compile) 2>&5
6380 ac_status=$?
6381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6382 test $ac_status = 0; }; then
6383 case `/usr/bin/file conftest.$ac_objext` in
6384 *ELF-32*)
6385 HPUX_IA64_MODE="32"
6386 ;;
6387 *ELF-64*)
6388 HPUX_IA64_MODE="64"
6389 ;;
6390 esac
6391 fi
6392 rm -rf conftest*
6393 ;;
6394 *-*-irix6*)
6395 # Find out which ABI we are using.
6396 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6397 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6398 (eval $ac_compile) 2>&5
6399 ac_status=$?
6400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6401 test $ac_status = 0; }; then
6402 if test "$lt_cv_prog_gnu_ld" = yes; then
6403 case `/usr/bin/file conftest.$ac_objext` in
6404 *32-bit*)
6405 LD="${LD-ld} -melf32bsmip"
6406 ;;
6407 *N32*)
6408 LD="${LD-ld} -melf32bmipn32"
6409 ;;
6410 *64-bit*)
6411 LD="${LD-ld} -melf64bmip"
6412 ;;
6413 esac
6414 else
6415 case `/usr/bin/file conftest.$ac_objext` in
6416 *32-bit*)
6417 LD="${LD-ld} -32"
6418 ;;
6419 *N32*)
6420 LD="${LD-ld} -n32"
6421 ;;
6422 *64-bit*)
6423 LD="${LD-ld} -64"
6424 ;;
6425 esac
6426 fi
6427 fi
6428 rm -rf conftest*
6429 ;;
6430
6431 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6432 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6433 # Find out which ABI we are using.
6434 echo 'int i;' > conftest.$ac_ext
6435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6436 (eval $ac_compile) 2>&5
6437 ac_status=$?
6438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6439 test $ac_status = 0; }; then
6440 case `/usr/bin/file conftest.o` in
6441 *32-bit*)
6442 case $host in
6443 x86_64-*kfreebsd*-gnu)
6444 LD="${LD-ld} -m elf_i386_fbsd"
6445 ;;
6446 x86_64-*linux*)
6447 case `/usr/bin/file conftest.o` in
6448 *x86-64*)
6449 LD="${LD-ld} -m elf32_x86_64"
6450 ;;
6451 *)
6452 LD="${LD-ld} -m elf_i386"
6453 ;;
6454 esac
6455 ;;
6456 powerpc64le-*)
6457 LD="${LD-ld} -m elf32lppclinux"
6458 ;;
6459 powerpc64-*)
6460 LD="${LD-ld} -m elf32ppclinux"
6461 ;;
6462 s390x-*linux*)
6463 LD="${LD-ld} -m elf_s390"
6464 ;;
6465 sparc64-*linux*)
6466 LD="${LD-ld} -m elf32_sparc"
6467 ;;
6468 esac
6469 ;;
6470 *64-bit*)
6471 case $host in
6472 x86_64-*kfreebsd*-gnu)
6473 LD="${LD-ld} -m elf_x86_64_fbsd"
6474 ;;
6475 x86_64-*linux*)
6476 LD="${LD-ld} -m elf_x86_64"
6477 ;;
6478 powerpcle-*)
6479 LD="${LD-ld} -m elf64lppc"
6480 ;;
6481 powerpc-*)
6482 LD="${LD-ld} -m elf64ppc"
6483 ;;
6484 s390*-*linux*|s390*-*tpf*)
6485 LD="${LD-ld} -m elf64_s390"
6486 ;;
6487 sparc*-*linux*)
6488 LD="${LD-ld} -m elf64_sparc"
6489 ;;
6490 esac
6491 ;;
6492 esac
6493 fi
6494 rm -rf conftest*
6495 ;;
6496
6497 *-*-sco3.2v5*)
6498 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6499 SAVE_CFLAGS="$CFLAGS"
6500 CFLAGS="$CFLAGS -belf"
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6502 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6503 if ${lt_cv_cc_needs_belf+:} false; then :
6504 $as_echo_n "(cached) " >&6
6505 else
6506 ac_ext=c
6507 ac_cpp='$CPP $CPPFLAGS'
6508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6511
6512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6513 /* end confdefs.h. */
6514
6515 int
6516 main ()
6517 {
6518
6519 ;
6520 return 0;
6521 }
6522 _ACEOF
6523 if ac_fn_c_try_link "$LINENO"; then :
6524 lt_cv_cc_needs_belf=yes
6525 else
6526 lt_cv_cc_needs_belf=no
6527 fi
6528 rm -f core conftest.err conftest.$ac_objext \
6529 conftest$ac_exeext conftest.$ac_ext
6530 ac_ext=c
6531 ac_cpp='$CPP $CPPFLAGS'
6532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6535
6536 fi
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6538 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6539 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6540 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6541 CFLAGS="$SAVE_CFLAGS"
6542 fi
6543 ;;
6544 *-*solaris*)
6545 # Find out which ABI we are using.
6546 echo 'int i;' > conftest.$ac_ext
6547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6548 (eval $ac_compile) 2>&5
6549 ac_status=$?
6550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6551 test $ac_status = 0; }; then
6552 case `/usr/bin/file conftest.o` in
6553 *64-bit*)
6554 case $lt_cv_prog_gnu_ld in
6555 yes*)
6556 case $host in
6557 i?86-*-solaris*)
6558 LD="${LD-ld} -m elf_x86_64"
6559 ;;
6560 sparc*-*-solaris*)
6561 LD="${LD-ld} -m elf64_sparc"
6562 ;;
6563 esac
6564 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6565 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6566 LD="${LD-ld}_sol2"
6567 fi
6568 ;;
6569 *)
6570 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6571 LD="${LD-ld} -64"
6572 fi
6573 ;;
6574 esac
6575 ;;
6576 esac
6577 fi
6578 rm -rf conftest*
6579 ;;
6580 esac
6581
6582 need_locks="$enable_libtool_lock"
6583
6584 if test -n "$ac_tool_prefix"; then
6585 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6586 set dummy ${ac_tool_prefix}mt; ac_word=$2
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6588 $as_echo_n "checking for $ac_word... " >&6; }
6589 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6590 $as_echo_n "(cached) " >&6
6591 else
6592 if test -n "$MANIFEST_TOOL"; then
6593 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6594 else
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596 for as_dir in $PATH
6597 do
6598 IFS=$as_save_IFS
6599 test -z "$as_dir" && as_dir=.
6600 for ac_exec_ext in '' $ac_executable_extensions; do
6601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6602 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6604 break 2
6605 fi
6606 done
6607 done
6608 IFS=$as_save_IFS
6609
6610 fi
6611 fi
6612 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6613 if test -n "$MANIFEST_TOOL"; then
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6615 $as_echo "$MANIFEST_TOOL" >&6; }
6616 else
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6618 $as_echo "no" >&6; }
6619 fi
6620
6621
6622 fi
6623 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6624 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6625 # Extract the first word of "mt", so it can be a program name with args.
6626 set dummy mt; ac_word=$2
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628 $as_echo_n "checking for $ac_word... " >&6; }
6629 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6630 $as_echo_n "(cached) " >&6
6631 else
6632 if test -n "$ac_ct_MANIFEST_TOOL"; then
6633 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6634 else
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 for as_dir in $PATH
6637 do
6638 IFS=$as_save_IFS
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6642 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6644 break 2
6645 fi
6646 done
6647 done
6648 IFS=$as_save_IFS
6649
6650 fi
6651 fi
6652 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6653 if test -n "$ac_ct_MANIFEST_TOOL"; then
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6655 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6656 else
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658 $as_echo "no" >&6; }
6659 fi
6660
6661 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6662 MANIFEST_TOOL=":"
6663 else
6664 case $cross_compiling:$ac_tool_warned in
6665 yes:)
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6668 ac_tool_warned=yes ;;
6669 esac
6670 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6671 fi
6672 else
6673 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6674 fi
6675
6676 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6678 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6679 if ${lt_cv_path_mainfest_tool+:} false; then :
6680 $as_echo_n "(cached) " >&6
6681 else
6682 lt_cv_path_mainfest_tool=no
6683 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6684 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6685 cat conftest.err >&5
6686 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6687 lt_cv_path_mainfest_tool=yes
6688 fi
6689 rm -f conftest*
6690 fi
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6692 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6693 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6694 MANIFEST_TOOL=:
6695 fi
6696
6697
6698
6699
6700
6701
6702 case $host_os in
6703 rhapsody* | darwin*)
6704 if test -n "$ac_tool_prefix"; then
6705 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6706 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6708 $as_echo_n "checking for $ac_word... " >&6; }
6709 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6710 $as_echo_n "(cached) " >&6
6711 else
6712 if test -n "$DSYMUTIL"; then
6713 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6714 else
6715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716 for as_dir in $PATH
6717 do
6718 IFS=$as_save_IFS
6719 test -z "$as_dir" && as_dir=.
6720 for ac_exec_ext in '' $ac_executable_extensions; do
6721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6722 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6724 break 2
6725 fi
6726 done
6727 done
6728 IFS=$as_save_IFS
6729
6730 fi
6731 fi
6732 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6733 if test -n "$DSYMUTIL"; then
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6735 $as_echo "$DSYMUTIL" >&6; }
6736 else
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6738 $as_echo "no" >&6; }
6739 fi
6740
6741
6742 fi
6743 if test -z "$ac_cv_prog_DSYMUTIL"; then
6744 ac_ct_DSYMUTIL=$DSYMUTIL
6745 # Extract the first word of "dsymutil", so it can be a program name with args.
6746 set dummy dsymutil; ac_word=$2
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6748 $as_echo_n "checking for $ac_word... " >&6; }
6749 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6750 $as_echo_n "(cached) " >&6
6751 else
6752 if test -n "$ac_ct_DSYMUTIL"; then
6753 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6754 else
6755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756 for as_dir in $PATH
6757 do
6758 IFS=$as_save_IFS
6759 test -z "$as_dir" && as_dir=.
6760 for ac_exec_ext in '' $ac_executable_extensions; do
6761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6762 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6764 break 2
6765 fi
6766 done
6767 done
6768 IFS=$as_save_IFS
6769
6770 fi
6771 fi
6772 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6773 if test -n "$ac_ct_DSYMUTIL"; then
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6775 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6776 else
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6778 $as_echo "no" >&6; }
6779 fi
6780
6781 if test "x$ac_ct_DSYMUTIL" = x; then
6782 DSYMUTIL=":"
6783 else
6784 case $cross_compiling:$ac_tool_warned in
6785 yes:)
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6788 ac_tool_warned=yes ;;
6789 esac
6790 DSYMUTIL=$ac_ct_DSYMUTIL
6791 fi
6792 else
6793 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6794 fi
6795
6796 if test -n "$ac_tool_prefix"; then
6797 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6798 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6800 $as_echo_n "checking for $ac_word... " >&6; }
6801 if ${ac_cv_prog_NMEDIT+:} false; then :
6802 $as_echo_n "(cached) " >&6
6803 else
6804 if test -n "$NMEDIT"; then
6805 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6806 else
6807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808 for as_dir in $PATH
6809 do
6810 IFS=$as_save_IFS
6811 test -z "$as_dir" && as_dir=.
6812 for ac_exec_ext in '' $ac_executable_extensions; do
6813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6814 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6816 break 2
6817 fi
6818 done
6819 done
6820 IFS=$as_save_IFS
6821
6822 fi
6823 fi
6824 NMEDIT=$ac_cv_prog_NMEDIT
6825 if test -n "$NMEDIT"; then
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6827 $as_echo "$NMEDIT" >&6; }
6828 else
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6830 $as_echo "no" >&6; }
6831 fi
6832
6833
6834 fi
6835 if test -z "$ac_cv_prog_NMEDIT"; then
6836 ac_ct_NMEDIT=$NMEDIT
6837 # Extract the first word of "nmedit", so it can be a program name with args.
6838 set dummy nmedit; ac_word=$2
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6840 $as_echo_n "checking for $ac_word... " >&6; }
6841 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6842 $as_echo_n "(cached) " >&6
6843 else
6844 if test -n "$ac_ct_NMEDIT"; then
6845 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6846 else
6847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848 for as_dir in $PATH
6849 do
6850 IFS=$as_save_IFS
6851 test -z "$as_dir" && as_dir=.
6852 for ac_exec_ext in '' $ac_executable_extensions; do
6853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6854 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6856 break 2
6857 fi
6858 done
6859 done
6860 IFS=$as_save_IFS
6861
6862 fi
6863 fi
6864 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6865 if test -n "$ac_ct_NMEDIT"; then
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6867 $as_echo "$ac_ct_NMEDIT" >&6; }
6868 else
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6870 $as_echo "no" >&6; }
6871 fi
6872
6873 if test "x$ac_ct_NMEDIT" = x; then
6874 NMEDIT=":"
6875 else
6876 case $cross_compiling:$ac_tool_warned in
6877 yes:)
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6880 ac_tool_warned=yes ;;
6881 esac
6882 NMEDIT=$ac_ct_NMEDIT
6883 fi
6884 else
6885 NMEDIT="$ac_cv_prog_NMEDIT"
6886 fi
6887
6888 if test -n "$ac_tool_prefix"; then
6889 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6890 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6892 $as_echo_n "checking for $ac_word... " >&6; }
6893 if ${ac_cv_prog_LIPO+:} false; then :
6894 $as_echo_n "(cached) " >&6
6895 else
6896 if test -n "$LIPO"; then
6897 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6898 else
6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 for as_dir in $PATH
6901 do
6902 IFS=$as_save_IFS
6903 test -z "$as_dir" && as_dir=.
6904 for ac_exec_ext in '' $ac_executable_extensions; do
6905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6906 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6908 break 2
6909 fi
6910 done
6911 done
6912 IFS=$as_save_IFS
6913
6914 fi
6915 fi
6916 LIPO=$ac_cv_prog_LIPO
6917 if test -n "$LIPO"; then
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6919 $as_echo "$LIPO" >&6; }
6920 else
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6922 $as_echo "no" >&6; }
6923 fi
6924
6925
6926 fi
6927 if test -z "$ac_cv_prog_LIPO"; then
6928 ac_ct_LIPO=$LIPO
6929 # Extract the first word of "lipo", so it can be a program name with args.
6930 set dummy lipo; ac_word=$2
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6932 $as_echo_n "checking for $ac_word... " >&6; }
6933 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6934 $as_echo_n "(cached) " >&6
6935 else
6936 if test -n "$ac_ct_LIPO"; then
6937 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6938 else
6939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940 for as_dir in $PATH
6941 do
6942 IFS=$as_save_IFS
6943 test -z "$as_dir" && as_dir=.
6944 for ac_exec_ext in '' $ac_executable_extensions; do
6945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6946 ac_cv_prog_ac_ct_LIPO="lipo"
6947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6948 break 2
6949 fi
6950 done
6951 done
6952 IFS=$as_save_IFS
6953
6954 fi
6955 fi
6956 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6957 if test -n "$ac_ct_LIPO"; then
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6959 $as_echo "$ac_ct_LIPO" >&6; }
6960 else
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6962 $as_echo "no" >&6; }
6963 fi
6964
6965 if test "x$ac_ct_LIPO" = x; then
6966 LIPO=":"
6967 else
6968 case $cross_compiling:$ac_tool_warned in
6969 yes:)
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6972 ac_tool_warned=yes ;;
6973 esac
6974 LIPO=$ac_ct_LIPO
6975 fi
6976 else
6977 LIPO="$ac_cv_prog_LIPO"
6978 fi
6979
6980 if test -n "$ac_tool_prefix"; then
6981 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6982 set dummy ${ac_tool_prefix}otool; ac_word=$2
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6984 $as_echo_n "checking for $ac_word... " >&6; }
6985 if ${ac_cv_prog_OTOOL+:} false; then :
6986 $as_echo_n "(cached) " >&6
6987 else
6988 if test -n "$OTOOL"; then
6989 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6990 else
6991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992 for as_dir in $PATH
6993 do
6994 IFS=$as_save_IFS
6995 test -z "$as_dir" && as_dir=.
6996 for ac_exec_ext in '' $ac_executable_extensions; do
6997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6998 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7000 break 2
7001 fi
7002 done
7003 done
7004 IFS=$as_save_IFS
7005
7006 fi
7007 fi
7008 OTOOL=$ac_cv_prog_OTOOL
7009 if test -n "$OTOOL"; then
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7011 $as_echo "$OTOOL" >&6; }
7012 else
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7014 $as_echo "no" >&6; }
7015 fi
7016
7017
7018 fi
7019 if test -z "$ac_cv_prog_OTOOL"; then
7020 ac_ct_OTOOL=$OTOOL
7021 # Extract the first word of "otool", so it can be a program name with args.
7022 set dummy otool; ac_word=$2
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7024 $as_echo_n "checking for $ac_word... " >&6; }
7025 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7026 $as_echo_n "(cached) " >&6
7027 else
7028 if test -n "$ac_ct_OTOOL"; then
7029 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7030 else
7031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032 for as_dir in $PATH
7033 do
7034 IFS=$as_save_IFS
7035 test -z "$as_dir" && as_dir=.
7036 for ac_exec_ext in '' $ac_executable_extensions; do
7037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7038 ac_cv_prog_ac_ct_OTOOL="otool"
7039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7040 break 2
7041 fi
7042 done
7043 done
7044 IFS=$as_save_IFS
7045
7046 fi
7047 fi
7048 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7049 if test -n "$ac_ct_OTOOL"; then
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7051 $as_echo "$ac_ct_OTOOL" >&6; }
7052 else
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7054 $as_echo "no" >&6; }
7055 fi
7056
7057 if test "x$ac_ct_OTOOL" = x; then
7058 OTOOL=":"
7059 else
7060 case $cross_compiling:$ac_tool_warned in
7061 yes:)
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7064 ac_tool_warned=yes ;;
7065 esac
7066 OTOOL=$ac_ct_OTOOL
7067 fi
7068 else
7069 OTOOL="$ac_cv_prog_OTOOL"
7070 fi
7071
7072 if test -n "$ac_tool_prefix"; then
7073 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7074 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7076 $as_echo_n "checking for $ac_word... " >&6; }
7077 if ${ac_cv_prog_OTOOL64+:} false; then :
7078 $as_echo_n "(cached) " >&6
7079 else
7080 if test -n "$OTOOL64"; then
7081 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7082 else
7083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084 for as_dir in $PATH
7085 do
7086 IFS=$as_save_IFS
7087 test -z "$as_dir" && as_dir=.
7088 for ac_exec_ext in '' $ac_executable_extensions; do
7089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7090 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7092 break 2
7093 fi
7094 done
7095 done
7096 IFS=$as_save_IFS
7097
7098 fi
7099 fi
7100 OTOOL64=$ac_cv_prog_OTOOL64
7101 if test -n "$OTOOL64"; then
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7103 $as_echo "$OTOOL64" >&6; }
7104 else
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7106 $as_echo "no" >&6; }
7107 fi
7108
7109
7110 fi
7111 if test -z "$ac_cv_prog_OTOOL64"; then
7112 ac_ct_OTOOL64=$OTOOL64
7113 # Extract the first word of "otool64", so it can be a program name with args.
7114 set dummy otool64; ac_word=$2
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7116 $as_echo_n "checking for $ac_word... " >&6; }
7117 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7118 $as_echo_n "(cached) " >&6
7119 else
7120 if test -n "$ac_ct_OTOOL64"; then
7121 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7122 else
7123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124 for as_dir in $PATH
7125 do
7126 IFS=$as_save_IFS
7127 test -z "$as_dir" && as_dir=.
7128 for ac_exec_ext in '' $ac_executable_extensions; do
7129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7130 ac_cv_prog_ac_ct_OTOOL64="otool64"
7131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7132 break 2
7133 fi
7134 done
7135 done
7136 IFS=$as_save_IFS
7137
7138 fi
7139 fi
7140 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7141 if test -n "$ac_ct_OTOOL64"; then
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7143 $as_echo "$ac_ct_OTOOL64" >&6; }
7144 else
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7146 $as_echo "no" >&6; }
7147 fi
7148
7149 if test "x$ac_ct_OTOOL64" = x; then
7150 OTOOL64=":"
7151 else
7152 case $cross_compiling:$ac_tool_warned in
7153 yes:)
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7156 ac_tool_warned=yes ;;
7157 esac
7158 OTOOL64=$ac_ct_OTOOL64
7159 fi
7160 else
7161 OTOOL64="$ac_cv_prog_OTOOL64"
7162 fi
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7191 $as_echo_n "checking for -single_module linker flag... " >&6; }
7192 if ${lt_cv_apple_cc_single_mod+:} false; then :
7193 $as_echo_n "(cached) " >&6
7194 else
7195 lt_cv_apple_cc_single_mod=no
7196 if test -z "${LT_MULTI_MODULE}"; then
7197 # By default we will add the -single_module flag. You can override
7198 # by either setting the environment variable LT_MULTI_MODULE
7199 # non-empty at configure time, or by adding -multi_module to the
7200 # link flags.
7201 rm -rf libconftest.dylib*
7202 echo "int foo(void){return 1;}" > conftest.c
7203 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7204 -dynamiclib -Wl,-single_module conftest.c" >&5
7205 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7206 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7207 _lt_result=$?
7208 # If there is a non-empty error log, and "single_module"
7209 # appears in it, assume the flag caused a linker warning
7210 if test -s conftest.err && $GREP single_module conftest.err; then
7211 cat conftest.err >&5
7212 # Otherwise, if the output was created with a 0 exit code from
7213 # the compiler, it worked.
7214 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7215 lt_cv_apple_cc_single_mod=yes
7216 else
7217 cat conftest.err >&5
7218 fi
7219 rm -rf libconftest.dylib*
7220 rm -f conftest.*
7221 fi
7222 fi
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7224 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7225
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7227 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7228 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7229 $as_echo_n "(cached) " >&6
7230 else
7231 lt_cv_ld_exported_symbols_list=no
7232 save_LDFLAGS=$LDFLAGS
7233 echo "_main" > conftest.sym
7234 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7236 /* end confdefs.h. */
7237
7238 int
7239 main ()
7240 {
7241
7242 ;
7243 return 0;
7244 }
7245 _ACEOF
7246 if ac_fn_c_try_link "$LINENO"; then :
7247 lt_cv_ld_exported_symbols_list=yes
7248 else
7249 lt_cv_ld_exported_symbols_list=no
7250 fi
7251 rm -f core conftest.err conftest.$ac_objext \
7252 conftest$ac_exeext conftest.$ac_ext
7253 LDFLAGS="$save_LDFLAGS"
7254
7255 fi
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7257 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7258
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7260 $as_echo_n "checking for -force_load linker flag... " >&6; }
7261 if ${lt_cv_ld_force_load+:} false; then :
7262 $as_echo_n "(cached) " >&6
7263 else
7264 lt_cv_ld_force_load=no
7265 cat > conftest.c << _LT_EOF
7266 int forced_loaded() { return 2;}
7267 _LT_EOF
7268 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7269 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7270 echo "$AR cru libconftest.a conftest.o" >&5
7271 $AR cru libconftest.a conftest.o 2>&5
7272 echo "$RANLIB libconftest.a" >&5
7273 $RANLIB libconftest.a 2>&5
7274 cat > conftest.c << _LT_EOF
7275 int main() { return 0;}
7276 _LT_EOF
7277 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7278 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7279 _lt_result=$?
7280 if test -s conftest.err && $GREP force_load conftest.err; then
7281 cat conftest.err >&5
7282 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7283 lt_cv_ld_force_load=yes
7284 else
7285 cat conftest.err >&5
7286 fi
7287 rm -f conftest.err libconftest.a conftest conftest.c
7288 rm -rf conftest.dSYM
7289
7290 fi
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7292 $as_echo "$lt_cv_ld_force_load" >&6; }
7293 case $host_os in
7294 rhapsody* | darwin1.[012])
7295 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7296 darwin1.*)
7297 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7298 darwin*) # darwin 5.x on
7299 # if running on 10.5 or later, the deployment target defaults
7300 # to the OS version, if on x86, and 10.4, the deployment
7301 # target defaults to 10.4. Don't you love it?
7302 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7303 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7304 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7305 10.[012]*)
7306 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7307 10.*)
7308 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7309 esac
7310 ;;
7311 esac
7312 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7313 _lt_dar_single_mod='$single_module'
7314 fi
7315 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7316 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7317 else
7318 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7319 fi
7320 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7321 _lt_dsymutil='~$DSYMUTIL $lib || :'
7322 else
7323 _lt_dsymutil=
7324 fi
7325 ;;
7326 esac
7327
7328 ac_ext=c
7329 ac_cpp='$CPP $CPPFLAGS'
7330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7334 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7335 # On Suns, sometimes $CPP names a directory.
7336 if test -n "$CPP" && test -d "$CPP"; then
7337 CPP=
7338 fi
7339 if test -z "$CPP"; then
7340 if ${ac_cv_prog_CPP+:} false; then :
7341 $as_echo_n "(cached) " >&6
7342 else
7343 # Double quotes because CPP needs to be expanded
7344 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7345 do
7346 ac_preproc_ok=false
7347 for ac_c_preproc_warn_flag in '' yes
7348 do
7349 # Use a header file that comes with gcc, so configuring glibc
7350 # with a fresh cross-compiler works.
7351 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7352 # <limits.h> exists even on freestanding compilers.
7353 # On the NeXT, cc -E runs the code through the compiler's parser,
7354 # not just through cpp. "Syntax error" is here to catch this case.
7355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7356 /* end confdefs.h. */
7357 #ifdef __STDC__
7358 # include <limits.h>
7359 #else
7360 # include <assert.h>
7361 #endif
7362 Syntax error
7363 _ACEOF
7364 if ac_fn_c_try_cpp "$LINENO"; then :
7365
7366 else
7367 # Broken: fails on valid input.
7368 continue
7369 fi
7370 rm -f conftest.err conftest.i conftest.$ac_ext
7371
7372 # OK, works on sane cases. Now check whether nonexistent headers
7373 # can be detected and how.
7374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7375 /* end confdefs.h. */
7376 #include <ac_nonexistent.h>
7377 _ACEOF
7378 if ac_fn_c_try_cpp "$LINENO"; then :
7379 # Broken: success on invalid input.
7380 continue
7381 else
7382 # Passes both tests.
7383 ac_preproc_ok=:
7384 break
7385 fi
7386 rm -f conftest.err conftest.i conftest.$ac_ext
7387
7388 done
7389 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7390 rm -f conftest.i conftest.err conftest.$ac_ext
7391 if $ac_preproc_ok; then :
7392 break
7393 fi
7394
7395 done
7396 ac_cv_prog_CPP=$CPP
7397
7398 fi
7399 CPP=$ac_cv_prog_CPP
7400 else
7401 ac_cv_prog_CPP=$CPP
7402 fi
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7404 $as_echo "$CPP" >&6; }
7405 ac_preproc_ok=false
7406 for ac_c_preproc_warn_flag in '' yes
7407 do
7408 # Use a header file that comes with gcc, so configuring glibc
7409 # with a fresh cross-compiler works.
7410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7411 # <limits.h> exists even on freestanding compilers.
7412 # On the NeXT, cc -E runs the code through the compiler's parser,
7413 # not just through cpp. "Syntax error" is here to catch this case.
7414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7415 /* end confdefs.h. */
7416 #ifdef __STDC__
7417 # include <limits.h>
7418 #else
7419 # include <assert.h>
7420 #endif
7421 Syntax error
7422 _ACEOF
7423 if ac_fn_c_try_cpp "$LINENO"; then :
7424
7425 else
7426 # Broken: fails on valid input.
7427 continue
7428 fi
7429 rm -f conftest.err conftest.i conftest.$ac_ext
7430
7431 # OK, works on sane cases. Now check whether nonexistent headers
7432 # can be detected and how.
7433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434 /* end confdefs.h. */
7435 #include <ac_nonexistent.h>
7436 _ACEOF
7437 if ac_fn_c_try_cpp "$LINENO"; then :
7438 # Broken: success on invalid input.
7439 continue
7440 else
7441 # Passes both tests.
7442 ac_preproc_ok=:
7443 break
7444 fi
7445 rm -f conftest.err conftest.i conftest.$ac_ext
7446
7447 done
7448 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7449 rm -f conftest.i conftest.err conftest.$ac_ext
7450 if $ac_preproc_ok; then :
7451
7452 else
7453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7455 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7456 See \`config.log' for more details" "$LINENO" 5; }
7457 fi
7458
7459 ac_ext=c
7460 ac_cpp='$CPP $CPPFLAGS'
7461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7464
7465
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7467 $as_echo_n "checking for ANSI C header files... " >&6; }
7468 if ${ac_cv_header_stdc+:} false; then :
7469 $as_echo_n "(cached) " >&6
7470 else
7471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7472 /* end confdefs.h. */
7473 #include <stdlib.h>
7474 #include <stdarg.h>
7475 #include <string.h>
7476 #include <float.h>
7477
7478 int
7479 main ()
7480 {
7481
7482 ;
7483 return 0;
7484 }
7485 _ACEOF
7486 if ac_fn_c_try_compile "$LINENO"; then :
7487 ac_cv_header_stdc=yes
7488 else
7489 ac_cv_header_stdc=no
7490 fi
7491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7492
7493 if test $ac_cv_header_stdc = yes; then
7494 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496 /* end confdefs.h. */
7497 #include <string.h>
7498
7499 _ACEOF
7500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7501 $EGREP "memchr" >/dev/null 2>&1; then :
7502
7503 else
7504 ac_cv_header_stdc=no
7505 fi
7506 rm -f conftest*
7507
7508 fi
7509
7510 if test $ac_cv_header_stdc = yes; then
7511 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7513 /* end confdefs.h. */
7514 #include <stdlib.h>
7515
7516 _ACEOF
7517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7518 $EGREP "free" >/dev/null 2>&1; then :
7519
7520 else
7521 ac_cv_header_stdc=no
7522 fi
7523 rm -f conftest*
7524
7525 fi
7526
7527 if test $ac_cv_header_stdc = yes; then
7528 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7529 if test "$cross_compiling" = yes; then :
7530 :
7531 else
7532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7533 /* end confdefs.h. */
7534 #include <ctype.h>
7535 #include <stdlib.h>
7536 #if ((' ' & 0x0FF) == 0x020)
7537 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7538 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7539 #else
7540 # define ISLOWER(c) \
7541 (('a' <= (c) && (c) <= 'i') \
7542 || ('j' <= (c) && (c) <= 'r') \
7543 || ('s' <= (c) && (c) <= 'z'))
7544 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7545 #endif
7546
7547 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7548 int
7549 main ()
7550 {
7551 int i;
7552 for (i = 0; i < 256; i++)
7553 if (XOR (islower (i), ISLOWER (i))
7554 || toupper (i) != TOUPPER (i))
7555 return 2;
7556 return 0;
7557 }
7558 _ACEOF
7559 if ac_fn_c_try_run "$LINENO"; then :
7560
7561 else
7562 ac_cv_header_stdc=no
7563 fi
7564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7565 conftest.$ac_objext conftest.beam conftest.$ac_ext
7566 fi
7567
7568 fi
7569 fi
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7571 $as_echo "$ac_cv_header_stdc" >&6; }
7572 if test $ac_cv_header_stdc = yes; then
7573
7574 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7575
7576 fi
7577
7578 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7579 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7580 inttypes.h stdint.h unistd.h
7581 do :
7582 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7583 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7584 "
7585 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7586 cat >>confdefs.h <<_ACEOF
7587 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7588 _ACEOF
7589
7590 fi
7591
7592 done
7593
7594
7595 for ac_header in dlfcn.h
7596 do :
7597 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7598 "
7599 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7600 cat >>confdefs.h <<_ACEOF
7601 #define HAVE_DLFCN_H 1
7602 _ACEOF
7603
7604 fi
7605
7606 done
7607
7608
7609
7610
7611
7612 # Set options
7613
7614
7615
7616 enable_dlopen=no
7617
7618
7619 enable_win32_dll=no
7620
7621
7622 # Check whether --enable-shared was given.
7623 if test "${enable_shared+set}" = set; then :
7624 enableval=$enable_shared; p=${PACKAGE-default}
7625 case $enableval in
7626 yes) enable_shared=yes ;;
7627 no) enable_shared=no ;;
7628 *)
7629 enable_shared=no
7630 # Look at the argument we got. We use all the common list separators.
7631 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7632 for pkg in $enableval; do
7633 IFS="$lt_save_ifs"
7634 if test "X$pkg" = "X$p"; then
7635 enable_shared=yes
7636 fi
7637 done
7638 IFS="$lt_save_ifs"
7639 ;;
7640 esac
7641 else
7642 enable_shared=yes
7643 fi
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653 # Check whether --enable-static was given.
7654 if test "${enable_static+set}" = set; then :
7655 enableval=$enable_static; p=${PACKAGE-default}
7656 case $enableval in
7657 yes) enable_static=yes ;;
7658 no) enable_static=no ;;
7659 *)
7660 enable_static=no
7661 # Look at the argument we got. We use all the common list separators.
7662 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7663 for pkg in $enableval; do
7664 IFS="$lt_save_ifs"
7665 if test "X$pkg" = "X$p"; then
7666 enable_static=yes
7667 fi
7668 done
7669 IFS="$lt_save_ifs"
7670 ;;
7671 esac
7672 else
7673 enable_static=yes
7674 fi
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685 # Check whether --with-pic was given.
7686 if test "${with_pic+set}" = set; then :
7687 withval=$with_pic; lt_p=${PACKAGE-default}
7688 case $withval in
7689 yes|no) pic_mode=$withval ;;
7690 *)
7691 pic_mode=default
7692 # Look at the argument we got. We use all the common list separators.
7693 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7694 for lt_pkg in $withval; do
7695 IFS="$lt_save_ifs"
7696 if test "X$lt_pkg" = "X$lt_p"; then
7697 pic_mode=yes
7698 fi
7699 done
7700 IFS="$lt_save_ifs"
7701 ;;
7702 esac
7703 else
7704 pic_mode=default
7705 fi
7706
7707
7708 test -z "$pic_mode" && pic_mode=default
7709
7710
7711
7712
7713
7714
7715
7716 # Check whether --enable-fast-install was given.
7717 if test "${enable_fast_install+set}" = set; then :
7718 enableval=$enable_fast_install; p=${PACKAGE-default}
7719 case $enableval in
7720 yes) enable_fast_install=yes ;;
7721 no) enable_fast_install=no ;;
7722 *)
7723 enable_fast_install=no
7724 # Look at the argument we got. We use all the common list separators.
7725 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7726 for pkg in $enableval; do
7727 IFS="$lt_save_ifs"
7728 if test "X$pkg" = "X$p"; then
7729 enable_fast_install=yes
7730 fi
7731 done
7732 IFS="$lt_save_ifs"
7733 ;;
7734 esac
7735 else
7736 enable_fast_install=yes
7737 fi
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749 # This can be used to rebuild libtool when needed
7750 LIBTOOL_DEPS="$ltmain"
7751
7752 # Always use our own libtool.
7753 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784 test -z "$LN_S" && LN_S="ln -s"
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799 if test -n "${ZSH_VERSION+set}" ; then
7800 setopt NO_GLOB_SUBST
7801 fi
7802
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7804 $as_echo_n "checking for objdir... " >&6; }
7805 if ${lt_cv_objdir+:} false; then :
7806 $as_echo_n "(cached) " >&6
7807 else
7808 rm -f .libs 2>/dev/null
7809 mkdir .libs 2>/dev/null
7810 if test -d .libs; then
7811 lt_cv_objdir=.libs
7812 else
7813 # MS-DOS does not allow filenames that begin with a dot.
7814 lt_cv_objdir=_libs
7815 fi
7816 rmdir .libs 2>/dev/null
7817 fi
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7819 $as_echo "$lt_cv_objdir" >&6; }
7820 objdir=$lt_cv_objdir
7821
7822
7823
7824
7825
7826 cat >>confdefs.h <<_ACEOF
7827 #define LT_OBJDIR "$lt_cv_objdir/"
7828 _ACEOF
7829
7830
7831
7832
7833 case $host_os in
7834 aix3*)
7835 # AIX sometimes has problems with the GCC collect2 program. For some
7836 # reason, if we set the COLLECT_NAMES environment variable, the problems
7837 # vanish in a puff of smoke.
7838 if test "X${COLLECT_NAMES+set}" != Xset; then
7839 COLLECT_NAMES=
7840 export COLLECT_NAMES
7841 fi
7842 ;;
7843 esac
7844
7845 # Global variables:
7846 ofile=libtool
7847 can_build_shared=yes
7848
7849 # All known linkers require a `.a' archive for static linking (except MSVC,
7850 # which needs '.lib').
7851 libext=a
7852
7853 with_gnu_ld="$lt_cv_prog_gnu_ld"
7854
7855 old_CC="$CC"
7856 old_CFLAGS="$CFLAGS"
7857
7858 # Set sane defaults for various variables
7859 test -z "$CC" && CC=cc
7860 test -z "$LTCC" && LTCC=$CC
7861 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7862 test -z "$LD" && LD=ld
7863 test -z "$ac_objext" && ac_objext=o
7864
7865 for cc_temp in $compiler""; do
7866 case $cc_temp in
7867 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7868 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7869 \-*) ;;
7870 *) break;;
7871 esac
7872 done
7873 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7874
7875
7876 # Only perform the check for file, if the check method requires it
7877 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7878 case $deplibs_check_method in
7879 file_magic*)
7880 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7882 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7883 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7884 $as_echo_n "(cached) " >&6
7885 else
7886 case $MAGIC_CMD in
7887 [\\/*] | ?:[\\/]*)
7888 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7889 ;;
7890 *)
7891 lt_save_MAGIC_CMD="$MAGIC_CMD"
7892 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7893 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7894 for ac_dir in $ac_dummy; do
7895 IFS="$lt_save_ifs"
7896 test -z "$ac_dir" && ac_dir=.
7897 if test -f $ac_dir/${ac_tool_prefix}file; then
7898 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7899 if test -n "$file_magic_test_file"; then
7900 case $deplibs_check_method in
7901 "file_magic "*)
7902 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7903 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7904 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7905 $EGREP "$file_magic_regex" > /dev/null; then
7906 :
7907 else
7908 cat <<_LT_EOF 1>&2
7909
7910 *** Warning: the command libtool uses to detect shared libraries,
7911 *** $file_magic_cmd, produces output that libtool cannot recognize.
7912 *** The result is that libtool may fail to recognize shared libraries
7913 *** as such. This will affect the creation of libtool libraries that
7914 *** depend on shared libraries, but programs linked with such libtool
7915 *** libraries will work regardless of this problem. Nevertheless, you
7916 *** may want to report the problem to your system manager and/or to
7917 *** [email protected]
7918
7919 _LT_EOF
7920 fi ;;
7921 esac
7922 fi
7923 break
7924 fi
7925 done
7926 IFS="$lt_save_ifs"
7927 MAGIC_CMD="$lt_save_MAGIC_CMD"
7928 ;;
7929 esac
7930 fi
7931
7932 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7933 if test -n "$MAGIC_CMD"; then
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7935 $as_echo "$MAGIC_CMD" >&6; }
7936 else
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7938 $as_echo "no" >&6; }
7939 fi
7940
7941
7942
7943
7944
7945 if test -z "$lt_cv_path_MAGIC_CMD"; then
7946 if test -n "$ac_tool_prefix"; then
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7948 $as_echo_n "checking for file... " >&6; }
7949 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7950 $as_echo_n "(cached) " >&6
7951 else
7952 case $MAGIC_CMD in
7953 [\\/*] | ?:[\\/]*)
7954 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7955 ;;
7956 *)
7957 lt_save_MAGIC_CMD="$MAGIC_CMD"
7958 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7959 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7960 for ac_dir in $ac_dummy; do
7961 IFS="$lt_save_ifs"
7962 test -z "$ac_dir" && ac_dir=.
7963 if test -f $ac_dir/file; then
7964 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7965 if test -n "$file_magic_test_file"; then
7966 case $deplibs_check_method in
7967 "file_magic "*)
7968 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7969 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7970 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7971 $EGREP "$file_magic_regex" > /dev/null; then
7972 :
7973 else
7974 cat <<_LT_EOF 1>&2
7975
7976 *** Warning: the command libtool uses to detect shared libraries,
7977 *** $file_magic_cmd, produces output that libtool cannot recognize.
7978 *** The result is that libtool may fail to recognize shared libraries
7979 *** as such. This will affect the creation of libtool libraries that
7980 *** depend on shared libraries, but programs linked with such libtool
7981 *** libraries will work regardless of this problem. Nevertheless, you
7982 *** may want to report the problem to your system manager and/or to
7983 *** [email protected]
7984
7985 _LT_EOF
7986 fi ;;
7987 esac
7988 fi
7989 break
7990 fi
7991 done
7992 IFS="$lt_save_ifs"
7993 MAGIC_CMD="$lt_save_MAGIC_CMD"
7994 ;;
7995 esac
7996 fi
7997
7998 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7999 if test -n "$MAGIC_CMD"; then
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8001 $as_echo "$MAGIC_CMD" >&6; }
8002 else
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004 $as_echo "no" >&6; }
8005 fi
8006
8007
8008 else
8009 MAGIC_CMD=:
8010 fi
8011 fi
8012
8013 fi
8014 ;;
8015 esac
8016
8017 # Use C for the default configuration in the libtool script
8018
8019 lt_save_CC="$CC"
8020 ac_ext=c
8021 ac_cpp='$CPP $CPPFLAGS'
8022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8025
8026
8027 # Source file extension for C test sources.
8028 ac_ext=c
8029
8030 # Object file extension for compiled C test sources.
8031 objext=o
8032 objext=$objext
8033
8034 # Code to be used in simple compile tests
8035 lt_simple_compile_test_code="int some_variable = 0;"
8036
8037 # Code to be used in simple link tests
8038 lt_simple_link_test_code='int main(){return(0);}'
8039
8040
8041
8042
8043
8044
8045
8046 # If no C compiler was specified, use CC.
8047 LTCC=${LTCC-"$CC"}
8048
8049 # If no C compiler flags were specified, use CFLAGS.
8050 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8051
8052 # Allow CC to be a program name with arguments.
8053 compiler=$CC
8054
8055 # Save the default compiler, since it gets overwritten when the other
8056 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8057 compiler_DEFAULT=$CC
8058
8059 # save warnings/boilerplate of simple test code
8060 ac_outfile=conftest.$ac_objext
8061 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8062 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8063 _lt_compiler_boilerplate=`cat conftest.err`
8064 $RM conftest*
8065
8066 ac_outfile=conftest.$ac_objext
8067 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8068 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8069 _lt_linker_boilerplate=`cat conftest.err`
8070 $RM -r conftest*
8071
8072
8073 ## CAVEAT EMPTOR:
8074 ## There is no encapsulation within the following macros, do not change
8075 ## the running order or otherwise move them around unless you know exactly
8076 ## what you are doing...
8077 if test -n "$compiler"; then
8078
8079 lt_prog_compiler_no_builtin_flag=
8080
8081 if test "$GCC" = yes; then
8082 case $cc_basename in
8083 nvcc*)
8084 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8085 *)
8086 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8087 esac
8088
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8090 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8091 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8092 $as_echo_n "(cached) " >&6
8093 else
8094 lt_cv_prog_compiler_rtti_exceptions=no
8095 ac_outfile=conftest.$ac_objext
8096 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8097 lt_compiler_flag="-fno-rtti -fno-exceptions"
8098 # Insert the option either (1) after the last *FLAGS variable, or
8099 # (2) before a word containing "conftest.", or (3) at the end.
8100 # Note that $ac_compile itself does not contain backslashes and begins
8101 # with a dollar sign (not a hyphen), so the echo should work correctly.
8102 # The option is referenced via a variable to avoid confusing sed.
8103 lt_compile=`echo "$ac_compile" | $SED \
8104 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8105 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8106 -e 's:$: $lt_compiler_flag:'`
8107 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8108 (eval "$lt_compile" 2>conftest.err)
8109 ac_status=$?
8110 cat conftest.err >&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 if (exit $ac_status) && test -s "$ac_outfile"; then
8113 # The compiler can only warn and ignore the option if not recognized
8114 # So say no if there are warnings other than the usual output.
8115 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8116 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8117 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8118 lt_cv_prog_compiler_rtti_exceptions=yes
8119 fi
8120 fi
8121 $RM conftest*
8122
8123 fi
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8125 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8126
8127 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8128 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8129 else
8130 :
8131 fi
8132
8133 fi
8134
8135
8136
8137
8138
8139
8140 lt_prog_compiler_wl=
8141 lt_prog_compiler_pic=
8142 lt_prog_compiler_static=
8143
8144
8145 if test "$GCC" = yes; then
8146 lt_prog_compiler_wl='-Wl,'
8147 lt_prog_compiler_static='-static'
8148
8149 case $host_os in
8150 aix*)
8151 # All AIX code is PIC.
8152 if test "$host_cpu" = ia64; then
8153 # AIX 5 now supports IA64 processor
8154 lt_prog_compiler_static='-Bstatic'
8155 fi
8156 ;;
8157
8158 amigaos*)
8159 case $host_cpu in
8160 powerpc)
8161 # see comment about AmigaOS4 .so support
8162 lt_prog_compiler_pic='-fPIC'
8163 ;;
8164 m68k)
8165 # FIXME: we need at least 68020 code to build shared libraries, but
8166 # adding the `-m68020' flag to GCC prevents building anything better,
8167 # like `-m68040'.
8168 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8169 ;;
8170 esac
8171 ;;
8172
8173 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8174 # PIC is the default for these OSes.
8175 ;;
8176
8177 mingw* | cygwin* | pw32* | os2* | cegcc*)
8178 # This hack is so that the source file can tell whether it is being
8179 # built for inclusion in a dll (and should export symbols for example).
8180 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8181 # (--disable-auto-import) libraries
8182 lt_prog_compiler_pic='-DDLL_EXPORT'
8183 ;;
8184
8185 darwin* | rhapsody*)
8186 # PIC is the default on this platform
8187 # Common symbols not allowed in MH_DYLIB files
8188 lt_prog_compiler_pic='-fno-common'
8189 ;;
8190
8191 haiku*)
8192 # PIC is the default for Haiku.
8193 # The "-static" flag exists, but is broken.
8194 lt_prog_compiler_static=
8195 ;;
8196
8197 hpux*)
8198 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8199 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8200 # sets the default TLS model and affects inlining.
8201 case $host_cpu in
8202 hppa*64*)
8203 # +Z the default
8204 ;;
8205 *)
8206 lt_prog_compiler_pic='-fPIC'
8207 ;;
8208 esac
8209 ;;
8210
8211 interix[3-9]*)
8212 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8213 # Instead, we relocate shared libraries at runtime.
8214 ;;
8215
8216 msdosdjgpp*)
8217 # Just because we use GCC doesn't mean we suddenly get shared libraries
8218 # on systems that don't support them.
8219 lt_prog_compiler_can_build_shared=no
8220 enable_shared=no
8221 ;;
8222
8223 *nto* | *qnx*)
8224 # QNX uses GNU C++, but need to define -shared option too, otherwise
8225 # it will coredump.
8226 lt_prog_compiler_pic='-fPIC -shared'
8227 ;;
8228
8229 sysv4*MP*)
8230 if test -d /usr/nec; then
8231 lt_prog_compiler_pic=-Kconform_pic
8232 fi
8233 ;;
8234
8235 *)
8236 lt_prog_compiler_pic='-fPIC'
8237 ;;
8238 esac
8239
8240 case $cc_basename in
8241 nvcc*) # Cuda Compiler Driver 2.2
8242 lt_prog_compiler_wl='-Xlinker '
8243 if test -n "$lt_prog_compiler_pic"; then
8244 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8245 fi
8246 ;;
8247 esac
8248 else
8249 # PORTME Check for flag to pass linker flags through the system compiler.
8250 case $host_os in
8251 aix*)
8252 lt_prog_compiler_wl='-Wl,'
8253 if test "$host_cpu" = ia64; then
8254 # AIX 5 now supports IA64 processor
8255 lt_prog_compiler_static='-Bstatic'
8256 else
8257 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8258 fi
8259 ;;
8260
8261 mingw* | cygwin* | pw32* | os2* | cegcc*)
8262 # This hack is so that the source file can tell whether it is being
8263 # built for inclusion in a dll (and should export symbols for example).
8264 lt_prog_compiler_pic='-DDLL_EXPORT'
8265 ;;
8266
8267 hpux9* | hpux10* | hpux11*)
8268 lt_prog_compiler_wl='-Wl,'
8269 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8270 # not for PA HP-UX.
8271 case $host_cpu in
8272 hppa*64*|ia64*)
8273 # +Z the default
8274 ;;
8275 *)
8276 lt_prog_compiler_pic='+Z'
8277 ;;
8278 esac
8279 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8280 lt_prog_compiler_static='${wl}-a ${wl}archive'
8281 ;;
8282
8283 irix5* | irix6* | nonstopux*)
8284 lt_prog_compiler_wl='-Wl,'
8285 # PIC (with -KPIC) is the default.
8286 lt_prog_compiler_static='-non_shared'
8287 ;;
8288
8289 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8290 case $cc_basename in
8291 # old Intel for x86_64 which still supported -KPIC.
8292 ecc*)
8293 lt_prog_compiler_wl='-Wl,'
8294 lt_prog_compiler_pic='-KPIC'
8295 lt_prog_compiler_static='-static'
8296 ;;
8297 # icc used to be incompatible with GCC.
8298 # ICC 10 doesn't accept -KPIC any more.
8299 icc* | ifort*)
8300 lt_prog_compiler_wl='-Wl,'
8301 lt_prog_compiler_pic='-fPIC'
8302 lt_prog_compiler_static='-static'
8303 ;;
8304 # Lahey Fortran 8.1.
8305 lf95*)
8306 lt_prog_compiler_wl='-Wl,'
8307 lt_prog_compiler_pic='--shared'
8308 lt_prog_compiler_static='--static'
8309 ;;
8310 nagfor*)
8311 # NAG Fortran compiler
8312 lt_prog_compiler_wl='-Wl,-Wl,,'
8313 lt_prog_compiler_pic='-PIC'
8314 lt_prog_compiler_static='-Bstatic'
8315 ;;
8316 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8317 # Portland Group compilers (*not* the Pentium gcc compiler,
8318 # which looks to be a dead project)
8319 lt_prog_compiler_wl='-Wl,'
8320 lt_prog_compiler_pic='-fpic'
8321 lt_prog_compiler_static='-Bstatic'
8322 ;;
8323 ccc*)
8324 lt_prog_compiler_wl='-Wl,'
8325 # All Alpha code is PIC.
8326 lt_prog_compiler_static='-non_shared'
8327 ;;
8328 xl* | bgxl* | bgf* | mpixl*)
8329 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8330 lt_prog_compiler_wl='-Wl,'
8331 lt_prog_compiler_pic='-qpic'
8332 lt_prog_compiler_static='-qstaticlink'
8333 ;;
8334 *)
8335 case `$CC -V 2>&1 | sed 5q` in
8336 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8337 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8338 lt_prog_compiler_pic='-KPIC'
8339 lt_prog_compiler_static='-Bstatic'
8340 lt_prog_compiler_wl=''
8341 ;;
8342 *Sun\ F* | *Sun*Fortran*)
8343 lt_prog_compiler_pic='-KPIC'
8344 lt_prog_compiler_static='-Bstatic'
8345 lt_prog_compiler_wl='-Qoption ld '
8346 ;;
8347 *Sun\ C*)
8348 # Sun C 5.9
8349 lt_prog_compiler_pic='-KPIC'
8350 lt_prog_compiler_static='-Bstatic'
8351 lt_prog_compiler_wl='-Wl,'
8352 ;;
8353 *Intel*\ [CF]*Compiler*)
8354 lt_prog_compiler_wl='-Wl,'
8355 lt_prog_compiler_pic='-fPIC'
8356 lt_prog_compiler_static='-static'
8357 ;;
8358 *Portland\ Group*)
8359 lt_prog_compiler_wl='-Wl,'
8360 lt_prog_compiler_pic='-fpic'
8361 lt_prog_compiler_static='-Bstatic'
8362 ;;
8363 esac
8364 ;;
8365 esac
8366 ;;
8367
8368 newsos6)
8369 lt_prog_compiler_pic='-KPIC'
8370 lt_prog_compiler_static='-Bstatic'
8371 ;;
8372
8373 *nto* | *qnx*)
8374 # QNX uses GNU C++, but need to define -shared option too, otherwise
8375 # it will coredump.
8376 lt_prog_compiler_pic='-fPIC -shared'
8377 ;;
8378
8379 osf3* | osf4* | osf5*)
8380 lt_prog_compiler_wl='-Wl,'
8381 # All OSF/1 code is PIC.
8382 lt_prog_compiler_static='-non_shared'
8383 ;;
8384
8385 rdos*)
8386 lt_prog_compiler_static='-non_shared'
8387 ;;
8388
8389 solaris*)
8390 lt_prog_compiler_pic='-KPIC'
8391 lt_prog_compiler_static='-Bstatic'
8392 case $cc_basename in
8393 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8394 lt_prog_compiler_wl='-Qoption ld ';;
8395 *)
8396 lt_prog_compiler_wl='-Wl,';;
8397 esac
8398 ;;
8399
8400 sunos4*)
8401 lt_prog_compiler_wl='-Qoption ld '
8402 lt_prog_compiler_pic='-PIC'
8403 lt_prog_compiler_static='-Bstatic'
8404 ;;
8405
8406 sysv4 | sysv4.2uw2* | sysv4.3*)
8407 lt_prog_compiler_wl='-Wl,'
8408 lt_prog_compiler_pic='-KPIC'
8409 lt_prog_compiler_static='-Bstatic'
8410 ;;
8411
8412 sysv4*MP*)
8413 if test -d /usr/nec ;then
8414 lt_prog_compiler_pic='-Kconform_pic'
8415 lt_prog_compiler_static='-Bstatic'
8416 fi
8417 ;;
8418
8419 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8420 lt_prog_compiler_wl='-Wl,'
8421 lt_prog_compiler_pic='-KPIC'
8422 lt_prog_compiler_static='-Bstatic'
8423 ;;
8424
8425 unicos*)
8426 lt_prog_compiler_wl='-Wl,'
8427 lt_prog_compiler_can_build_shared=no
8428 ;;
8429
8430 uts4*)
8431 lt_prog_compiler_pic='-pic'
8432 lt_prog_compiler_static='-Bstatic'
8433 ;;
8434
8435 *)
8436 lt_prog_compiler_can_build_shared=no
8437 ;;
8438 esac
8439 fi
8440
8441 case $host_os in
8442 # For platforms which do not support PIC, -DPIC is meaningless:
8443 *djgpp*)
8444 lt_prog_compiler_pic=
8445 ;;
8446 *)
8447 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8448 ;;
8449 esac
8450
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8452 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8453 if ${lt_cv_prog_compiler_pic+:} false; then :
8454 $as_echo_n "(cached) " >&6
8455 else
8456 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8457 fi
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8459 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8460 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8461
8462 #
8463 # Check to make sure the PIC flag actually works.
8464 #
8465 if test -n "$lt_prog_compiler_pic"; then
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8467 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8468 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8469 $as_echo_n "(cached) " >&6
8470 else
8471 lt_cv_prog_compiler_pic_works=no
8472 ac_outfile=conftest.$ac_objext
8473 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8474 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8475 # Insert the option either (1) after the last *FLAGS variable, or
8476 # (2) before a word containing "conftest.", or (3) at the end.
8477 # Note that $ac_compile itself does not contain backslashes and begins
8478 # with a dollar sign (not a hyphen), so the echo should work correctly.
8479 # The option is referenced via a variable to avoid confusing sed.
8480 lt_compile=`echo "$ac_compile" | $SED \
8481 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8482 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8483 -e 's:$: $lt_compiler_flag:'`
8484 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8485 (eval "$lt_compile" 2>conftest.err)
8486 ac_status=$?
8487 cat conftest.err >&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 if (exit $ac_status) && test -s "$ac_outfile"; then
8490 # The compiler can only warn and ignore the option if not recognized
8491 # So say no if there are warnings other than the usual output.
8492 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8493 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8494 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8495 lt_cv_prog_compiler_pic_works=yes
8496 fi
8497 fi
8498 $RM conftest*
8499
8500 fi
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8502 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8503
8504 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8505 case $lt_prog_compiler_pic in
8506 "" | " "*) ;;
8507 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8508 esac
8509 else
8510 lt_prog_compiler_pic=
8511 lt_prog_compiler_can_build_shared=no
8512 fi
8513
8514 fi
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526 #
8527 # Check to make sure the static flag actually works.
8528 #
8529 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8531 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8532 if ${lt_cv_prog_compiler_static_works+:} false; then :
8533 $as_echo_n "(cached) " >&6
8534 else
8535 lt_cv_prog_compiler_static_works=no
8536 save_LDFLAGS="$LDFLAGS"
8537 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8538 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8539 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8540 # The linker can only warn and ignore the option if not recognized
8541 # So say no if there are warnings
8542 if test -s conftest.err; then
8543 # Append any errors to the config.log.
8544 cat conftest.err 1>&5
8545 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8546 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8547 if diff conftest.exp conftest.er2 >/dev/null; then
8548 lt_cv_prog_compiler_static_works=yes
8549 fi
8550 else
8551 lt_cv_prog_compiler_static_works=yes
8552 fi
8553 fi
8554 $RM -r conftest*
8555 LDFLAGS="$save_LDFLAGS"
8556
8557 fi
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8559 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8560
8561 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8562 :
8563 else
8564 lt_prog_compiler_static=
8565 fi
8566
8567
8568
8569
8570
8571
8572
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8574 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8575 if ${lt_cv_prog_compiler_c_o+:} false; then :
8576 $as_echo_n "(cached) " >&6
8577 else
8578 lt_cv_prog_compiler_c_o=no
8579 $RM -r conftest 2>/dev/null
8580 mkdir conftest
8581 cd conftest
8582 mkdir out
8583 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8584
8585 lt_compiler_flag="-o out/conftest2.$ac_objext"
8586 # Insert the option either (1) after the last *FLAGS variable, or
8587 # (2) before a word containing "conftest.", or (3) at the end.
8588 # Note that $ac_compile itself does not contain backslashes and begins
8589 # with a dollar sign (not a hyphen), so the echo should work correctly.
8590 lt_compile=`echo "$ac_compile" | $SED \
8591 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8592 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8593 -e 's:$: $lt_compiler_flag:'`
8594 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8595 (eval "$lt_compile" 2>out/conftest.err)
8596 ac_status=$?
8597 cat out/conftest.err >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8600 then
8601 # The compiler can only warn and ignore the option if not recognized
8602 # So say no if there are warnings
8603 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8604 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8605 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8606 lt_cv_prog_compiler_c_o=yes
8607 fi
8608 fi
8609 chmod u+w . 2>&5
8610 $RM conftest*
8611 # SGI C++ compiler will create directory out/ii_files/ for
8612 # template instantiation
8613 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8614 $RM out/* && rmdir out
8615 cd ..
8616 $RM -r conftest
8617 $RM conftest*
8618
8619 fi
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8621 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8622
8623
8624
8625
8626
8627
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8629 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8630 if ${lt_cv_prog_compiler_c_o+:} false; then :
8631 $as_echo_n "(cached) " >&6
8632 else
8633 lt_cv_prog_compiler_c_o=no
8634 $RM -r conftest 2>/dev/null
8635 mkdir conftest
8636 cd conftest
8637 mkdir out
8638 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8639
8640 lt_compiler_flag="-o out/conftest2.$ac_objext"
8641 # Insert the option either (1) after the last *FLAGS variable, or
8642 # (2) before a word containing "conftest.", or (3) at the end.
8643 # Note that $ac_compile itself does not contain backslashes and begins
8644 # with a dollar sign (not a hyphen), so the echo should work correctly.
8645 lt_compile=`echo "$ac_compile" | $SED \
8646 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8647 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8648 -e 's:$: $lt_compiler_flag:'`
8649 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8650 (eval "$lt_compile" 2>out/conftest.err)
8651 ac_status=$?
8652 cat out/conftest.err >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8655 then
8656 # The compiler can only warn and ignore the option if not recognized
8657 # So say no if there are warnings
8658 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8659 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8660 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8661 lt_cv_prog_compiler_c_o=yes
8662 fi
8663 fi
8664 chmod u+w . 2>&5
8665 $RM conftest*
8666 # SGI C++ compiler will create directory out/ii_files/ for
8667 # template instantiation
8668 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8669 $RM out/* && rmdir out
8670 cd ..
8671 $RM -r conftest
8672 $RM conftest*
8673
8674 fi
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8676 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8677
8678
8679
8680
8681 hard_links="nottested"
8682 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8683 # do not overwrite the value of need_locks provided by the user
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8685 $as_echo_n "checking if we can lock with hard links... " >&6; }
8686 hard_links=yes
8687 $RM conftest*
8688 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8689 touch conftest.a
8690 ln conftest.a conftest.b 2>&5 || hard_links=no
8691 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8693 $as_echo "$hard_links" >&6; }
8694 if test "$hard_links" = no; then
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8696 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8697 need_locks=warn
8698 fi
8699 else
8700 need_locks=no
8701 fi
8702
8703
8704
8705
8706
8707
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8709 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8710
8711 runpath_var=
8712 allow_undefined_flag=
8713 always_export_symbols=no
8714 archive_cmds=
8715 archive_expsym_cmds=
8716 compiler_needs_object=no
8717 enable_shared_with_static_runtimes=no
8718 export_dynamic_flag_spec=
8719 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8720 hardcode_automatic=no
8721 hardcode_direct=no
8722 hardcode_direct_absolute=no
8723 hardcode_libdir_flag_spec=
8724 hardcode_libdir_separator=
8725 hardcode_minus_L=no
8726 hardcode_shlibpath_var=unsupported
8727 inherit_rpath=no
8728 link_all_deplibs=unknown
8729 module_cmds=
8730 module_expsym_cmds=
8731 old_archive_from_new_cmds=
8732 old_archive_from_expsyms_cmds=
8733 thread_safe_flag_spec=
8734 whole_archive_flag_spec=
8735 # include_expsyms should be a list of space-separated symbols to be *always*
8736 # included in the symbol list
8737 include_expsyms=
8738 # exclude_expsyms can be an extended regexp of symbols to exclude
8739 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8740 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8741 # as well as any symbol that contains `d'.
8742 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8743 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8744 # platforms (ab)use it in PIC code, but their linkers get confused if
8745 # the symbol is explicitly referenced. Since portable code cannot
8746 # rely on this symbol name, it's probably fine to never include it in
8747 # preloaded symbol tables.
8748 # Exclude shared library initialization/finalization symbols.
8749 extract_expsyms_cmds=
8750
8751 case $host_os in
8752 cygwin* | mingw* | pw32* | cegcc*)
8753 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8754 # When not using gcc, we currently assume that we are using
8755 # Microsoft Visual C++.
8756 if test "$GCC" != yes; then
8757 with_gnu_ld=no
8758 fi
8759 ;;
8760 interix*)
8761 # we just hope/assume this is gcc and not c89 (= MSVC++)
8762 with_gnu_ld=yes
8763 ;;
8764 openbsd*)
8765 with_gnu_ld=no
8766 ;;
8767 linux* | k*bsd*-gnu | gnu*)
8768 link_all_deplibs=no
8769 ;;
8770 esac
8771
8772 ld_shlibs=yes
8773
8774 # On some targets, GNU ld is compatible enough with the native linker
8775 # that we're better off using the native interface for both.
8776 lt_use_gnu_ld_interface=no
8777 if test "$with_gnu_ld" = yes; then
8778 case $host_os in
8779 aix*)
8780 # The AIX port of GNU ld has always aspired to compatibility
8781 # with the native linker. However, as the warning in the GNU ld
8782 # block says, versions before 2.19.5* couldn't really create working
8783 # shared libraries, regardless of the interface used.
8784 case `$LD -v 2>&1` in
8785 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8786 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8787 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8788 *)
8789 lt_use_gnu_ld_interface=yes
8790 ;;
8791 esac
8792 ;;
8793 *)
8794 lt_use_gnu_ld_interface=yes
8795 ;;
8796 esac
8797 fi
8798
8799 if test "$lt_use_gnu_ld_interface" = yes; then
8800 # If archive_cmds runs LD, not CC, wlarc should be empty
8801 wlarc='${wl}'
8802
8803 # Set some defaults for GNU ld with shared library support. These
8804 # are reset later if shared libraries are not supported. Putting them
8805 # here allows them to be overridden if necessary.
8806 runpath_var=LD_RUN_PATH
8807 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8808 export_dynamic_flag_spec='${wl}--export-dynamic'
8809 # ancient GNU ld didn't support --whole-archive et. al.
8810 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8811 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8812 else
8813 whole_archive_flag_spec=
8814 fi
8815 supports_anon_versioning=no
8816 case `$LD -v 2>&1` in
8817 *GNU\ gold*) supports_anon_versioning=yes ;;
8818 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8819 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8820 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8821 *\ 2.11.*) ;; # other 2.11 versions
8822 *) supports_anon_versioning=yes ;;
8823 esac
8824
8825 # See if GNU ld supports shared libraries.
8826 case $host_os in
8827 aix[3-9]*)
8828 # On AIX/PPC, the GNU linker is very broken
8829 if test "$host_cpu" != ia64; then
8830 ld_shlibs=no
8831 cat <<_LT_EOF 1>&2
8832
8833 *** Warning: the GNU linker, at least up to release 2.19, is reported
8834 *** to be unable to reliably create shared libraries on AIX.
8835 *** Therefore, libtool is disabling shared libraries support. If you
8836 *** really care for shared libraries, you may want to install binutils
8837 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8838 *** You will then need to restart the configuration process.
8839
8840 _LT_EOF
8841 fi
8842 ;;
8843
8844 amigaos*)
8845 case $host_cpu in
8846 powerpc)
8847 # see comment about AmigaOS4 .so support
8848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8849 archive_expsym_cmds=''
8850 ;;
8851 m68k)
8852 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)'
8853 hardcode_libdir_flag_spec='-L$libdir'
8854 hardcode_minus_L=yes
8855 ;;
8856 esac
8857 ;;
8858
8859 beos*)
8860 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8861 allow_undefined_flag=unsupported
8862 # Joseph Beckenbach <[email protected]> says some releases of gcc
8863 # support --undefined. This deserves some investigation. FIXME
8864 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8865 else
8866 ld_shlibs=no
8867 fi
8868 ;;
8869
8870 cygwin* | mingw* | pw32* | cegcc*)
8871 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8872 # as there is no search path for DLLs.
8873 hardcode_libdir_flag_spec='-L$libdir'
8874 export_dynamic_flag_spec='${wl}--export-all-symbols'
8875 allow_undefined_flag=unsupported
8876 always_export_symbols=no
8877 enable_shared_with_static_runtimes=yes
8878 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'
8879 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8880
8881 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8882 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8883 # If the export-symbols file already is a .def file (1st line
8884 # is EXPORTS), use it as is; otherwise, prepend...
8885 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8886 cp $export_symbols $output_objdir/$soname.def;
8887 else
8888 echo EXPORTS > $output_objdir/$soname.def;
8889 cat $export_symbols >> $output_objdir/$soname.def;
8890 fi~
8891 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8892 else
8893 ld_shlibs=no
8894 fi
8895 ;;
8896
8897 haiku*)
8898 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8899 link_all_deplibs=yes
8900 ;;
8901
8902 interix[3-9]*)
8903 hardcode_direct=no
8904 hardcode_shlibpath_var=no
8905 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8906 export_dynamic_flag_spec='${wl}-E'
8907 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8908 # Instead, shared libraries are loaded at an image base (0x10000000 by
8909 # default) and relocated if they conflict, which is a slow very memory
8910 # consuming and fragmenting process. To avoid this, we pick a random,
8911 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8912 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8913 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8914 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'
8915 ;;
8916
8917 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8918 tmp_diet=no
8919 if test "$host_os" = linux-dietlibc; then
8920 case $cc_basename in
8921 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8922 esac
8923 fi
8924 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8925 && test "$tmp_diet" = no
8926 then
8927 tmp_addflag=' $pic_flag'
8928 tmp_sharedflag='-shared'
8929 case $cc_basename,$host_cpu in
8930 pgcc*) # Portland Group C compiler
8931 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'
8932 tmp_addflag=' $pic_flag'
8933 ;;
8934 pgf77* | pgf90* | pgf95* | pgfortran*)
8935 # Portland Group f77 and f90 compilers
8936 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'
8937 tmp_addflag=' $pic_flag -Mnomain' ;;
8938 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8939 tmp_addflag=' -i_dynamic' ;;
8940 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8941 tmp_addflag=' -i_dynamic -nofor_main' ;;
8942 ifc* | ifort*) # Intel Fortran compiler
8943 tmp_addflag=' -nofor_main' ;;
8944 lf95*) # Lahey Fortran 8.1
8945 whole_archive_flag_spec=
8946 tmp_sharedflag='--shared' ;;
8947 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8948 tmp_sharedflag='-qmkshrobj'
8949 tmp_addflag= ;;
8950 nvcc*) # Cuda Compiler Driver 2.2
8951 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'
8952 compiler_needs_object=yes
8953 ;;
8954 esac
8955 case `$CC -V 2>&1 | sed 5q` in
8956 *Sun\ C*) # Sun C 5.9
8957 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'
8958 compiler_needs_object=yes
8959 tmp_sharedflag='-G' ;;
8960 *Sun\ F*) # Sun Fortran 8.3
8961 tmp_sharedflag='-G' ;;
8962 esac
8963 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8964
8965 if test "x$supports_anon_versioning" = xyes; then
8966 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8967 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8968 echo "local: *; };" >> $output_objdir/$libname.ver~
8969 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8970 fi
8971
8972 case $cc_basename in
8973 xlf* | bgf* | bgxlf* | mpixlf*)
8974 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8975 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8976 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8977 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8978 if test "x$supports_anon_versioning" = xyes; then
8979 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8980 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8981 echo "local: *; };" >> $output_objdir/$libname.ver~
8982 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8983 fi
8984 ;;
8985 esac
8986 else
8987 ld_shlibs=no
8988 fi
8989 ;;
8990
8991 netbsd* | netbsdelf*-gnu)
8992 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8993 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8994 wlarc=
8995 else
8996 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8997 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8998 fi
8999 ;;
9000
9001 solaris*)
9002 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9003 ld_shlibs=no
9004 cat <<_LT_EOF 1>&2
9005
9006 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9007 *** create shared libraries on Solaris systems. Therefore, libtool
9008 *** is disabling shared libraries support. We urge you to upgrade GNU
9009 *** binutils to release 2.9.1 or newer. Another option is to modify
9010 *** your PATH or compiler configuration so that the native linker is
9011 *** used, and then restart.
9012
9013 _LT_EOF
9014 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9015 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9016 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9017 else
9018 ld_shlibs=no
9019 fi
9020 ;;
9021
9022 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9023 case `$LD -v 2>&1` in
9024 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9025 ld_shlibs=no
9026 cat <<_LT_EOF 1>&2
9027
9028 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9029 *** reliably create shared libraries on SCO systems. Therefore, libtool
9030 *** is disabling shared libraries support. We urge you to upgrade GNU
9031 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9032 *** your PATH or compiler configuration so that the native linker is
9033 *** used, and then restart.
9034
9035 _LT_EOF
9036 ;;
9037 *)
9038 # For security reasons, it is highly recommended that you always
9039 # use absolute paths for naming shared libraries, and exclude the
9040 # DT_RUNPATH tag from executables and libraries. But doing so
9041 # requires that you compile everything twice, which is a pain.
9042 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9043 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9044 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9045 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9046 else
9047 ld_shlibs=no
9048 fi
9049 ;;
9050 esac
9051 ;;
9052
9053 sunos4*)
9054 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9055 wlarc=
9056 hardcode_direct=yes
9057 hardcode_shlibpath_var=no
9058 ;;
9059
9060 *)
9061 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9062 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9063 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9064 else
9065 ld_shlibs=no
9066 fi
9067 ;;
9068 esac
9069
9070 if test "$ld_shlibs" = no; then
9071 runpath_var=
9072 hardcode_libdir_flag_spec=
9073 export_dynamic_flag_spec=
9074 whole_archive_flag_spec=
9075 fi
9076 else
9077 # PORTME fill in a description of your system's linker (not GNU ld)
9078 case $host_os in
9079 aix3*)
9080 allow_undefined_flag=unsupported
9081 always_export_symbols=yes
9082 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'
9083 # Note: this linker hardcodes the directories in LIBPATH if there
9084 # are no directories specified by -L.
9085 hardcode_minus_L=yes
9086 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9087 # Neither direct hardcoding nor static linking is supported with a
9088 # broken collect2.
9089 hardcode_direct=unsupported
9090 fi
9091 ;;
9092
9093 aix[4-9]*)
9094 if test "$host_cpu" = ia64; then
9095 # On IA64, the linker does run time linking by default, so we don't
9096 # have to do anything special.
9097 aix_use_runtimelinking=no
9098 exp_sym_flag='-Bexport'
9099 no_entry_flag=""
9100 else
9101 # If we're using GNU nm, then we don't want the "-C" option.
9102 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9103 # Also, AIX nm treats weak defined symbols like other global
9104 # defined symbols, whereas GNU nm marks them as "W".
9105 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9106 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9107 else
9108 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9109 fi
9110 aix_use_runtimelinking=no
9111
9112 # Test if we are trying to use run time linking or normal
9113 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9114 # need to do runtime linking.
9115 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9116 for ld_flag in $LDFLAGS; do
9117 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9118 aix_use_runtimelinking=yes
9119 break
9120 fi
9121 done
9122 ;;
9123 esac
9124
9125 exp_sym_flag='-bexport'
9126 no_entry_flag='-bnoentry'
9127 fi
9128
9129 # When large executables or shared objects are built, AIX ld can
9130 # have problems creating the table of contents. If linking a library
9131 # or program results in "error TOC overflow" add -mminimal-toc to
9132 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9133 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9134
9135 archive_cmds=''
9136 hardcode_direct=yes
9137 hardcode_direct_absolute=yes
9138 hardcode_libdir_separator=':'
9139 link_all_deplibs=yes
9140 file_list_spec='${wl}-f,'
9141
9142 if test "$GCC" = yes; then
9143 case $host_os in aix4.[012]|aix4.[012].*)
9144 # We only want to do this on AIX 4.2 and lower, the check
9145 # below for broken collect2 doesn't work under 4.3+
9146 collect2name=`${CC} -print-prog-name=collect2`
9147 if test -f "$collect2name" &&
9148 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9149 then
9150 # We have reworked collect2
9151 :
9152 else
9153 # We have old collect2
9154 hardcode_direct=unsupported
9155 # It fails to find uninstalled libraries when the uninstalled
9156 # path is not listed in the libpath. Setting hardcode_minus_L
9157 # to unsupported forces relinking
9158 hardcode_minus_L=yes
9159 hardcode_libdir_flag_spec='-L$libdir'
9160 hardcode_libdir_separator=
9161 fi
9162 ;;
9163 esac
9164 shared_flag='-shared'
9165 if test "$aix_use_runtimelinking" = yes; then
9166 shared_flag="$shared_flag "'${wl}-G'
9167 fi
9168 link_all_deplibs=no
9169 else
9170 # not using gcc
9171 if test "$host_cpu" = ia64; then
9172 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9173 # chokes on -Wl,-G. The following line is correct:
9174 shared_flag='-G'
9175 else
9176 if test "$aix_use_runtimelinking" = yes; then
9177 shared_flag='${wl}-G'
9178 else
9179 shared_flag='${wl}-bM:SRE'
9180 fi
9181 fi
9182 fi
9183
9184 export_dynamic_flag_spec='${wl}-bexpall'
9185 # It seems that -bexpall does not export symbols beginning with
9186 # underscore (_), so it is better to generate a list of symbols to export.
9187 always_export_symbols=yes
9188 if test "$aix_use_runtimelinking" = yes; then
9189 # Warning - without using the other runtime loading flags (-brtl),
9190 # -berok will link without error, but may produce a broken library.
9191 allow_undefined_flag='-berok'
9192 # Determine the default libpath from the value encoded in an
9193 # empty executable.
9194 if test "${lt_cv_aix_libpath+set}" = set; then
9195 aix_libpath=$lt_cv_aix_libpath
9196 else
9197 if ${lt_cv_aix_libpath_+:} false; then :
9198 $as_echo_n "(cached) " >&6
9199 else
9200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9201 /* end confdefs.h. */
9202
9203 int
9204 main ()
9205 {
9206
9207 ;
9208 return 0;
9209 }
9210 _ACEOF
9211 if ac_fn_c_try_link "$LINENO"; then :
9212
9213 lt_aix_libpath_sed='
9214 /Import File Strings/,/^$/ {
9215 /^0/ {
9216 s/^0 *\([^ ]*\) *$/\1/
9217 p
9218 }
9219 }'
9220 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9221 # Check for a 64-bit object if we didn't find anything.
9222 if test -z "$lt_cv_aix_libpath_"; then
9223 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9224 fi
9225 fi
9226 rm -f core conftest.err conftest.$ac_objext \
9227 conftest$ac_exeext conftest.$ac_ext
9228 if test -z "$lt_cv_aix_libpath_"; then
9229 lt_cv_aix_libpath_="/usr/lib:/lib"
9230 fi
9231
9232 fi
9233
9234 aix_libpath=$lt_cv_aix_libpath_
9235 fi
9236
9237 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9238 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9239 else
9240 if test "$host_cpu" = ia64; then
9241 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9242 allow_undefined_flag="-z nodefs"
9243 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"
9244 else
9245 # Determine the default libpath from the value encoded in an
9246 # empty executable.
9247 if test "${lt_cv_aix_libpath+set}" = set; then
9248 aix_libpath=$lt_cv_aix_libpath
9249 else
9250 if ${lt_cv_aix_libpath_+:} false; then :
9251 $as_echo_n "(cached) " >&6
9252 else
9253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9254 /* end confdefs.h. */
9255
9256 int
9257 main ()
9258 {
9259
9260 ;
9261 return 0;
9262 }
9263 _ACEOF
9264 if ac_fn_c_try_link "$LINENO"; then :
9265
9266 lt_aix_libpath_sed='
9267 /Import File Strings/,/^$/ {
9268 /^0/ {
9269 s/^0 *\([^ ]*\) *$/\1/
9270 p
9271 }
9272 }'
9273 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9274 # Check for a 64-bit object if we didn't find anything.
9275 if test -z "$lt_cv_aix_libpath_"; then
9276 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9277 fi
9278 fi
9279 rm -f core conftest.err conftest.$ac_objext \
9280 conftest$ac_exeext conftest.$ac_ext
9281 if test -z "$lt_cv_aix_libpath_"; then
9282 lt_cv_aix_libpath_="/usr/lib:/lib"
9283 fi
9284
9285 fi
9286
9287 aix_libpath=$lt_cv_aix_libpath_
9288 fi
9289
9290 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9291 # Warning - without using the other run time loading flags,
9292 # -berok will link without error, but may produce a broken library.
9293 no_undefined_flag=' ${wl}-bernotok'
9294 allow_undefined_flag=' ${wl}-berok'
9295 if test "$with_gnu_ld" = yes; then
9296 # We only use this code for GNU lds that support --whole-archive.
9297 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9298 else
9299 # Exported symbols can be pulled into shared objects from archives
9300 whole_archive_flag_spec='$convenience'
9301 fi
9302 archive_cmds_need_lc=yes
9303 # This is similar to how AIX traditionally builds its shared libraries.
9304 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9305 fi
9306 fi
9307 ;;
9308
9309 amigaos*)
9310 case $host_cpu in
9311 powerpc)
9312 # see comment about AmigaOS4 .so support
9313 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9314 archive_expsym_cmds=''
9315 ;;
9316 m68k)
9317 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)'
9318 hardcode_libdir_flag_spec='-L$libdir'
9319 hardcode_minus_L=yes
9320 ;;
9321 esac
9322 ;;
9323
9324 bsdi[45]*)
9325 export_dynamic_flag_spec=-rdynamic
9326 ;;
9327
9328 cygwin* | mingw* | pw32* | cegcc*)
9329 # When not using gcc, we currently assume that we are using
9330 # Microsoft Visual C++.
9331 # hardcode_libdir_flag_spec is actually meaningless, as there is
9332 # no search path for DLLs.
9333 case $cc_basename in
9334 cl*)
9335 # Native MSVC
9336 hardcode_libdir_flag_spec=' '
9337 allow_undefined_flag=unsupported
9338 always_export_symbols=yes
9339 file_list_spec='@'
9340 # Tell ltmain to make .lib files, not .a files.
9341 libext=lib
9342 # Tell ltmain to make .dll files, not .so files.
9343 shrext_cmds=".dll"
9344 # FIXME: Setting linknames here is a bad hack.
9345 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9346 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9347 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9348 else
9349 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9350 fi~
9351 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9352 linknames='
9353 # The linker will not automatically build a static lib if we build a DLL.
9354 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9355 enable_shared_with_static_runtimes=yes
9356 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9357 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9358 # Don't use ranlib
9359 old_postinstall_cmds='chmod 644 $oldlib'
9360 postlink_cmds='lt_outputfile="@OUTPUT@"~
9361 lt_tool_outputfile="@TOOL_OUTPUT@"~
9362 case $lt_outputfile in
9363 *.exe|*.EXE) ;;
9364 *)
9365 lt_outputfile="$lt_outputfile.exe"
9366 lt_tool_outputfile="$lt_tool_outputfile.exe"
9367 ;;
9368 esac~
9369 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9370 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9371 $RM "$lt_outputfile.manifest";
9372 fi'
9373 ;;
9374 *)
9375 # Assume MSVC wrapper
9376 hardcode_libdir_flag_spec=' '
9377 allow_undefined_flag=unsupported
9378 # Tell ltmain to make .lib files, not .a files.
9379 libext=lib
9380 # Tell ltmain to make .dll files, not .so files.
9381 shrext_cmds=".dll"
9382 # FIXME: Setting linknames here is a bad hack.
9383 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9384 # The linker will automatically build a .lib file if we build a DLL.
9385 old_archive_from_new_cmds='true'
9386 # FIXME: Should let the user specify the lib program.
9387 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9388 enable_shared_with_static_runtimes=yes
9389 ;;
9390 esac
9391 ;;
9392
9393 darwin* | rhapsody*)
9394
9395
9396 archive_cmds_need_lc=no
9397 hardcode_direct=no
9398 hardcode_automatic=yes
9399 hardcode_shlibpath_var=unsupported
9400 if test "$lt_cv_ld_force_load" = "yes"; then
9401 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\"`'
9402
9403 else
9404 whole_archive_flag_spec=''
9405 fi
9406 link_all_deplibs=yes
9407 allow_undefined_flag="$_lt_dar_allow_undefined"
9408 case $cc_basename in
9409 ifort*) _lt_dar_can_shared=yes ;;
9410 *) _lt_dar_can_shared=$GCC ;;
9411 esac
9412 if test "$_lt_dar_can_shared" = "yes"; then
9413 output_verbose_link_cmd=func_echo_all
9414 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9415 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9416 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}"
9417 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}"
9418
9419 else
9420 ld_shlibs=no
9421 fi
9422
9423 ;;
9424
9425 dgux*)
9426 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9427 hardcode_libdir_flag_spec='-L$libdir'
9428 hardcode_shlibpath_var=no
9429 ;;
9430
9431 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9432 # support. Future versions do this automatically, but an explicit c++rt0.o
9433 # does not break anything, and helps significantly (at the cost of a little
9434 # extra space).
9435 freebsd2.2*)
9436 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9437 hardcode_libdir_flag_spec='-R$libdir'
9438 hardcode_direct=yes
9439 hardcode_shlibpath_var=no
9440 ;;
9441
9442 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9443 freebsd2.*)
9444 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9445 hardcode_direct=yes
9446 hardcode_minus_L=yes
9447 hardcode_shlibpath_var=no
9448 ;;
9449
9450 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9451 freebsd* | dragonfly*)
9452 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9453 hardcode_libdir_flag_spec='-R$libdir'
9454 hardcode_direct=yes
9455 hardcode_shlibpath_var=no
9456 ;;
9457
9458 hpux9*)
9459 if test "$GCC" = yes; then
9460 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9461 else
9462 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9463 fi
9464 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9465 hardcode_libdir_separator=:
9466 hardcode_direct=yes
9467
9468 # hardcode_minus_L: Not really in the search PATH,
9469 # but as the default location of the library.
9470 hardcode_minus_L=yes
9471 export_dynamic_flag_spec='${wl}-E'
9472 ;;
9473
9474 hpux10*)
9475 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9476 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9477 else
9478 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9479 fi
9480 if test "$with_gnu_ld" = no; then
9481 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9482 hardcode_libdir_separator=:
9483 hardcode_direct=yes
9484 hardcode_direct_absolute=yes
9485 export_dynamic_flag_spec='${wl}-E'
9486 # hardcode_minus_L: Not really in the search PATH,
9487 # but as the default location of the library.
9488 hardcode_minus_L=yes
9489 fi
9490 ;;
9491
9492 hpux11*)
9493 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9494 case $host_cpu in
9495 hppa*64*)
9496 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9497 ;;
9498 ia64*)
9499 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9500 ;;
9501 *)
9502 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9503 ;;
9504 esac
9505 else
9506 case $host_cpu in
9507 hppa*64*)
9508 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9509 ;;
9510 ia64*)
9511 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9512 ;;
9513 *)
9514
9515 # Older versions of the 11.00 compiler do not understand -b yet
9516 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9518 $as_echo_n "checking if $CC understands -b... " >&6; }
9519 if ${lt_cv_prog_compiler__b+:} false; then :
9520 $as_echo_n "(cached) " >&6
9521 else
9522 lt_cv_prog_compiler__b=no
9523 save_LDFLAGS="$LDFLAGS"
9524 LDFLAGS="$LDFLAGS -b"
9525 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9526 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9527 # The linker can only warn and ignore the option if not recognized
9528 # So say no if there are warnings
9529 if test -s conftest.err; then
9530 # Append any errors to the config.log.
9531 cat conftest.err 1>&5
9532 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9533 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9534 if diff conftest.exp conftest.er2 >/dev/null; then
9535 lt_cv_prog_compiler__b=yes
9536 fi
9537 else
9538 lt_cv_prog_compiler__b=yes
9539 fi
9540 fi
9541 $RM -r conftest*
9542 LDFLAGS="$save_LDFLAGS"
9543
9544 fi
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9546 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9547
9548 if test x"$lt_cv_prog_compiler__b" = xyes; then
9549 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9550 else
9551 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9552 fi
9553
9554 ;;
9555 esac
9556 fi
9557 if test "$with_gnu_ld" = no; then
9558 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9559 hardcode_libdir_separator=:
9560
9561 case $host_cpu in
9562 hppa*64*|ia64*)
9563 hardcode_direct=no
9564 hardcode_shlibpath_var=no
9565 ;;
9566 *)
9567 hardcode_direct=yes
9568 hardcode_direct_absolute=yes
9569 export_dynamic_flag_spec='${wl}-E'
9570
9571 # hardcode_minus_L: Not really in the search PATH,
9572 # but as the default location of the library.
9573 hardcode_minus_L=yes
9574 ;;
9575 esac
9576 fi
9577 ;;
9578
9579 irix5* | irix6* | nonstopux*)
9580 if test "$GCC" = yes; then
9581 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'
9582 # Try to use the -exported_symbol ld option, if it does not
9583 # work, assume that -exports_file does not work either and
9584 # implicitly export all symbols.
9585 # This should be the same for all languages, so no per-tag cache variable.
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9587 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9588 if ${lt_cv_irix_exported_symbol+:} false; then :
9589 $as_echo_n "(cached) " >&6
9590 else
9591 save_LDFLAGS="$LDFLAGS"
9592 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9594 /* end confdefs.h. */
9595 int foo (void) { return 0; }
9596 _ACEOF
9597 if ac_fn_c_try_link "$LINENO"; then :
9598 lt_cv_irix_exported_symbol=yes
9599 else
9600 lt_cv_irix_exported_symbol=no
9601 fi
9602 rm -f core conftest.err conftest.$ac_objext \
9603 conftest$ac_exeext conftest.$ac_ext
9604 LDFLAGS="$save_LDFLAGS"
9605 fi
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9607 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9608 if test "$lt_cv_irix_exported_symbol" = yes; then
9609 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'
9610 fi
9611 else
9612 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'
9613 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'
9614 fi
9615 archive_cmds_need_lc='no'
9616 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9617 hardcode_libdir_separator=:
9618 inherit_rpath=yes
9619 link_all_deplibs=yes
9620 ;;
9621
9622 netbsd* | netbsdelf*-gnu)
9623 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9624 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9625 else
9626 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9627 fi
9628 hardcode_libdir_flag_spec='-R$libdir'
9629 hardcode_direct=yes
9630 hardcode_shlibpath_var=no
9631 ;;
9632
9633 newsos6)
9634 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9635 hardcode_direct=yes
9636 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9637 hardcode_libdir_separator=:
9638 hardcode_shlibpath_var=no
9639 ;;
9640
9641 *nto* | *qnx*)
9642 ;;
9643
9644 openbsd*)
9645 if test -f /usr/libexec/ld.so; then
9646 hardcode_direct=yes
9647 hardcode_shlibpath_var=no
9648 hardcode_direct_absolute=yes
9649 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9650 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9651 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9652 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9653 export_dynamic_flag_spec='${wl}-E'
9654 else
9655 case $host_os in
9656 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9657 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9658 hardcode_libdir_flag_spec='-R$libdir'
9659 ;;
9660 *)
9661 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9662 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9663 ;;
9664 esac
9665 fi
9666 else
9667 ld_shlibs=no
9668 fi
9669 ;;
9670
9671 os2*)
9672 hardcode_libdir_flag_spec='-L$libdir'
9673 hardcode_minus_L=yes
9674 allow_undefined_flag=unsupported
9675 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9676 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9677 ;;
9678
9679 osf3*)
9680 if test "$GCC" = yes; then
9681 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9682 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'
9683 else
9684 allow_undefined_flag=' -expect_unresolved \*'
9685 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'
9686 fi
9687 archive_cmds_need_lc='no'
9688 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9689 hardcode_libdir_separator=:
9690 ;;
9691
9692 osf4* | osf5*) # as osf3* with the addition of -msym flag
9693 if test "$GCC" = yes; then
9694 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9695 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'
9696 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9697 else
9698 allow_undefined_flag=' -expect_unresolved \*'
9699 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'
9700 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~
9701 $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'
9702
9703 # Both c and cxx compiler support -rpath directly
9704 hardcode_libdir_flag_spec='-rpath $libdir'
9705 fi
9706 archive_cmds_need_lc='no'
9707 hardcode_libdir_separator=:
9708 ;;
9709
9710 solaris*)
9711 no_undefined_flag=' -z defs'
9712 if test "$GCC" = yes; then
9713 wlarc='${wl}'
9714 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9715 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9716 $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'
9717 else
9718 case `$CC -V 2>&1` in
9719 *"Compilers 5.0"*)
9720 wlarc=''
9721 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9722 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9723 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9724 ;;
9725 *)
9726 wlarc='${wl}'
9727 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9728 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9729 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9730 ;;
9731 esac
9732 fi
9733 hardcode_libdir_flag_spec='-R$libdir'
9734 hardcode_shlibpath_var=no
9735 case $host_os in
9736 solaris2.[0-5] | solaris2.[0-5].*) ;;
9737 *)
9738 # The compiler driver will combine and reorder linker options,
9739 # but understands `-z linker_flag'. GCC discards it without `$wl',
9740 # but is careful enough not to reorder.
9741 # Supported since Solaris 2.6 (maybe 2.5.1?)
9742 if test "$GCC" = yes; then
9743 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9744 else
9745 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9746 fi
9747 ;;
9748 esac
9749 link_all_deplibs=yes
9750 ;;
9751
9752 sunos4*)
9753 if test "x$host_vendor" = xsequent; then
9754 # Use $CC to link under sequent, because it throws in some extra .o
9755 # files that make .init and .fini sections work.
9756 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9757 else
9758 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9759 fi
9760 hardcode_libdir_flag_spec='-L$libdir'
9761 hardcode_direct=yes
9762 hardcode_minus_L=yes
9763 hardcode_shlibpath_var=no
9764 ;;
9765
9766 sysv4)
9767 case $host_vendor in
9768 sni)
9769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9770 hardcode_direct=yes # is this really true???
9771 ;;
9772 siemens)
9773 ## LD is ld it makes a PLAMLIB
9774 ## CC just makes a GrossModule.
9775 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9776 reload_cmds='$CC -r -o $output$reload_objs'
9777 hardcode_direct=no
9778 ;;
9779 motorola)
9780 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9781 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9782 ;;
9783 esac
9784 runpath_var='LD_RUN_PATH'
9785 hardcode_shlibpath_var=no
9786 ;;
9787
9788 sysv4.3*)
9789 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9790 hardcode_shlibpath_var=no
9791 export_dynamic_flag_spec='-Bexport'
9792 ;;
9793
9794 sysv4*MP*)
9795 if test -d /usr/nec; then
9796 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9797 hardcode_shlibpath_var=no
9798 runpath_var=LD_RUN_PATH
9799 hardcode_runpath_var=yes
9800 ld_shlibs=yes
9801 fi
9802 ;;
9803
9804 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9805 no_undefined_flag='${wl}-z,text'
9806 archive_cmds_need_lc=no
9807 hardcode_shlibpath_var=no
9808 runpath_var='LD_RUN_PATH'
9809
9810 if test "$GCC" = yes; then
9811 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9812 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9813 else
9814 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9815 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9816 fi
9817 ;;
9818
9819 sysv5* | sco3.2v5* | sco5v6*)
9820 # Note: We can NOT use -z defs as we might desire, because we do not
9821 # link with -lc, and that would cause any symbols used from libc to
9822 # always be unresolved, which means just about no library would
9823 # ever link correctly. If we're not using GNU ld we use -z text
9824 # though, which does catch some bad symbols but isn't as heavy-handed
9825 # as -z defs.
9826 no_undefined_flag='${wl}-z,text'
9827 allow_undefined_flag='${wl}-z,nodefs'
9828 archive_cmds_need_lc=no
9829 hardcode_shlibpath_var=no
9830 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9831 hardcode_libdir_separator=':'
9832 link_all_deplibs=yes
9833 export_dynamic_flag_spec='${wl}-Bexport'
9834 runpath_var='LD_RUN_PATH'
9835
9836 if test "$GCC" = yes; then
9837 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9838 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9839 else
9840 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9841 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9842 fi
9843 ;;
9844
9845 uts4*)
9846 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9847 hardcode_libdir_flag_spec='-L$libdir'
9848 hardcode_shlibpath_var=no
9849 ;;
9850
9851 *)
9852 ld_shlibs=no
9853 ;;
9854 esac
9855
9856 if test x$host_vendor = xsni; then
9857 case $host in
9858 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9859 export_dynamic_flag_spec='${wl}-Blargedynsym'
9860 ;;
9861 esac
9862 fi
9863 fi
9864
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9866 $as_echo "$ld_shlibs" >&6; }
9867 test "$ld_shlibs" = no && can_build_shared=no
9868
9869 with_gnu_ld=$with_gnu_ld
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885 #
9886 # Do we need to explicitly link libc?
9887 #
9888 case "x$archive_cmds_need_lc" in
9889 x|xyes)
9890 # Assume -lc should be added
9891 archive_cmds_need_lc=yes
9892
9893 if test "$enable_shared" = yes && test "$GCC" = yes; then
9894 case $archive_cmds in
9895 *'~'*)
9896 # FIXME: we may have to deal with multi-command sequences.
9897 ;;
9898 '$CC '*)
9899 # Test whether the compiler implicitly links with -lc since on some
9900 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9901 # to ld, don't add -lc before -lgcc.
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9903 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9904 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9905 $as_echo_n "(cached) " >&6
9906 else
9907 $RM conftest*
9908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9909
9910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9911 (eval $ac_compile) 2>&5
9912 ac_status=$?
9913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9914 test $ac_status = 0; } 2>conftest.err; then
9915 soname=conftest
9916 lib=conftest
9917 libobjs=conftest.$ac_objext
9918 deplibs=
9919 wl=$lt_prog_compiler_wl
9920 pic_flag=$lt_prog_compiler_pic
9921 compiler_flags=-v
9922 linker_flags=-v
9923 verstring=
9924 output_objdir=.
9925 libname=conftest
9926 lt_save_allow_undefined_flag=$allow_undefined_flag
9927 allow_undefined_flag=
9928 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9929 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9930 ac_status=$?
9931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9932 test $ac_status = 0; }
9933 then
9934 lt_cv_archive_cmds_need_lc=no
9935 else
9936 lt_cv_archive_cmds_need_lc=yes
9937 fi
9938 allow_undefined_flag=$lt_save_allow_undefined_flag
9939 else
9940 cat conftest.err 1>&5
9941 fi
9942 $RM conftest*
9943
9944 fi
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9946 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9947 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9948 ;;
9949 esac
9950 fi
9951 ;;
9952 esac
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10106 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10107
10108 if test "$GCC" = yes; then
10109 case $host_os in
10110 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10111 *) lt_awk_arg="/^libraries:/" ;;
10112 esac
10113 case $host_os in
10114 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10115 *) lt_sed_strip_eq="s,=/,/,g" ;;
10116 esac
10117 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10118 case $lt_search_path_spec in
10119 *\;*)
10120 # if the path contains ";" then we assume it to be the separator
10121 # otherwise default to the standard path separator (i.e. ":") - it is
10122 # assumed that no part of a normal pathname contains ";" but that should
10123 # okay in the real world where ";" in dirpaths is itself problematic.
10124 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10125 ;;
10126 *)
10127 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10128 ;;
10129 esac
10130 # Ok, now we have the path, separated by spaces, we can step through it
10131 # and add multilib dir if necessary.
10132 lt_tmp_lt_search_path_spec=
10133 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10134 for lt_sys_path in $lt_search_path_spec; do
10135 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10136 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10137 else
10138 test -d "$lt_sys_path" && \
10139 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10140 fi
10141 done
10142 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10143 BEGIN {RS=" "; FS="/|\n";} {
10144 lt_foo="";
10145 lt_count=0;
10146 for (lt_i = NF; lt_i > 0; lt_i--) {
10147 if ($lt_i != "" && $lt_i != ".") {
10148 if ($lt_i == "..") {
10149 lt_count++;
10150 } else {
10151 if (lt_count == 0) {
10152 lt_foo="/" $lt_i lt_foo;
10153 } else {
10154 lt_count--;
10155 }
10156 }
10157 }
10158 }
10159 if (lt_foo != "") { lt_freq[lt_foo]++; }
10160 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10161 }'`
10162 # AWK program above erroneously prepends '/' to C:/dos/paths
10163 # for these hosts.
10164 case $host_os in
10165 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10166 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10167 esac
10168 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10169 else
10170 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10171 fi
10172 library_names_spec=
10173 libname_spec='lib$name'
10174 soname_spec=
10175 shrext_cmds=".so"
10176 postinstall_cmds=
10177 postuninstall_cmds=
10178 finish_cmds=
10179 finish_eval=
10180 shlibpath_var=
10181 shlibpath_overrides_runpath=unknown
10182 version_type=none
10183 dynamic_linker="$host_os ld.so"
10184 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10185 need_lib_prefix=unknown
10186 hardcode_into_libs=no
10187
10188 # when you set need_version to no, make sure it does not cause -set_version
10189 # flags to be left without arguments
10190 need_version=unknown
10191
10192 case $host_os in
10193 aix3*)
10194 version_type=linux # correct to gnu/linux during the next big refactor
10195 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10196 shlibpath_var=LIBPATH
10197
10198 # AIX 3 has no versioning support, so we append a major version to the name.
10199 soname_spec='${libname}${release}${shared_ext}$major'
10200 ;;
10201
10202 aix[4-9]*)
10203 version_type=linux # correct to gnu/linux during the next big refactor
10204 need_lib_prefix=no
10205 need_version=no
10206 hardcode_into_libs=yes
10207 if test "$host_cpu" = ia64; then
10208 # AIX 5 supports IA64
10209 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10210 shlibpath_var=LD_LIBRARY_PATH
10211 else
10212 # With GCC up to 2.95.x, collect2 would create an import file
10213 # for dependence libraries. The import file would start with
10214 # the line `#! .'. This would cause the generated library to
10215 # depend on `.', always an invalid library. This was fixed in
10216 # development snapshots of GCC prior to 3.0.
10217 case $host_os in
10218 aix4 | aix4.[01] | aix4.[01].*)
10219 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10220 echo ' yes '
10221 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10222 :
10223 else
10224 can_build_shared=no
10225 fi
10226 ;;
10227 esac
10228 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10229 # soname into executable. Probably we can add versioning support to
10230 # collect2, so additional links can be useful in future.
10231 if test "$aix_use_runtimelinking" = yes; then
10232 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10233 # instead of lib<name>.a to let people know that these are not
10234 # typical AIX shared libraries.
10235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10236 else
10237 # We preserve .a as extension for shared libraries through AIX4.2
10238 # and later when we are not doing run time linking.
10239 library_names_spec='${libname}${release}.a $libname.a'
10240 soname_spec='${libname}${release}${shared_ext}$major'
10241 fi
10242 shlibpath_var=LIBPATH
10243 fi
10244 ;;
10245
10246 amigaos*)
10247 case $host_cpu in
10248 powerpc)
10249 # Since July 2007 AmigaOS4 officially supports .so libraries.
10250 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10252 ;;
10253 m68k)
10254 library_names_spec='$libname.ixlibrary $libname.a'
10255 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10256 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10257 ;;
10258 esac
10259 ;;
10260
10261 beos*)
10262 library_names_spec='${libname}${shared_ext}'
10263 dynamic_linker="$host_os ld.so"
10264 shlibpath_var=LIBRARY_PATH
10265 ;;
10266
10267 bsdi[45]*)
10268 version_type=linux # correct to gnu/linux during the next big refactor
10269 need_version=no
10270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10271 soname_spec='${libname}${release}${shared_ext}$major'
10272 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10273 shlibpath_var=LD_LIBRARY_PATH
10274 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10275 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10276 # the default ld.so.conf also contains /usr/contrib/lib and
10277 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10278 # libtool to hard-code these into programs
10279 ;;
10280
10281 cygwin* | mingw* | pw32* | cegcc*)
10282 version_type=windows
10283 shrext_cmds=".dll"
10284 need_version=no
10285 need_lib_prefix=no
10286
10287 case $GCC,$cc_basename in
10288 yes,*)
10289 # gcc
10290 library_names_spec='$libname.dll.a'
10291 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10292 postinstall_cmds='base_file=`basename \${file}`~
10293 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10294 dldir=$destdir/`dirname \$dlpath`~
10295 test -d \$dldir || mkdir -p \$dldir~
10296 $install_prog $dir/$dlname \$dldir/$dlname~
10297 chmod a+x \$dldir/$dlname~
10298 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10299 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10300 fi'
10301 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10302 dlpath=$dir/\$dldll~
10303 $RM \$dlpath'
10304 shlibpath_overrides_runpath=yes
10305
10306 case $host_os in
10307 cygwin*)
10308 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10309 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10310
10311 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10312 ;;
10313 mingw* | cegcc*)
10314 # MinGW DLLs use traditional 'lib' prefix
10315 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10316 ;;
10317 pw32*)
10318 # pw32 DLLs use 'pw' prefix rather than 'lib'
10319 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10320 ;;
10321 esac
10322 dynamic_linker='Win32 ld.exe'
10323 ;;
10324
10325 *,cl*)
10326 # Native MSVC
10327 libname_spec='$name'
10328 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10329 library_names_spec='${libname}.dll.lib'
10330
10331 case $build_os in
10332 mingw*)
10333 sys_lib_search_path_spec=
10334 lt_save_ifs=$IFS
10335 IFS=';'
10336 for lt_path in $LIB
10337 do
10338 IFS=$lt_save_ifs
10339 # Let DOS variable expansion print the short 8.3 style file name.
10340 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10341 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10342 done
10343 IFS=$lt_save_ifs
10344 # Convert to MSYS style.
10345 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10346 ;;
10347 cygwin*)
10348 # Convert to unix form, then to dos form, then back to unix form
10349 # but this time dos style (no spaces!) so that the unix form looks
10350 # like /cygdrive/c/PROGRA~1:/cygdr...
10351 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10352 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10353 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10354 ;;
10355 *)
10356 sys_lib_search_path_spec="$LIB"
10357 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10358 # It is most probably a Windows format PATH.
10359 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10360 else
10361 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10362 fi
10363 # FIXME: find the short name or the path components, as spaces are
10364 # common. (e.g. "Program Files" -> "PROGRA~1")
10365 ;;
10366 esac
10367
10368 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10369 postinstall_cmds='base_file=`basename \${file}`~
10370 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10371 dldir=$destdir/`dirname \$dlpath`~
10372 test -d \$dldir || mkdir -p \$dldir~
10373 $install_prog $dir/$dlname \$dldir/$dlname'
10374 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10375 dlpath=$dir/\$dldll~
10376 $RM \$dlpath'
10377 shlibpath_overrides_runpath=yes
10378 dynamic_linker='Win32 link.exe'
10379 ;;
10380
10381 *)
10382 # Assume MSVC wrapper
10383 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10384 dynamic_linker='Win32 ld.exe'
10385 ;;
10386 esac
10387 # FIXME: first we should search . and the directory the executable is in
10388 shlibpath_var=PATH
10389 ;;
10390
10391 darwin* | rhapsody*)
10392 dynamic_linker="$host_os dyld"
10393 version_type=darwin
10394 need_lib_prefix=no
10395 need_version=no
10396 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10397 soname_spec='${libname}${release}${major}$shared_ext'
10398 shlibpath_overrides_runpath=yes
10399 shlibpath_var=DYLD_LIBRARY_PATH
10400 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10401
10402 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10403 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10404 ;;
10405
10406 dgux*)
10407 version_type=linux # correct to gnu/linux during the next big refactor
10408 need_lib_prefix=no
10409 need_version=no
10410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10411 soname_spec='${libname}${release}${shared_ext}$major'
10412 shlibpath_var=LD_LIBRARY_PATH
10413 ;;
10414
10415 freebsd* | dragonfly*)
10416 # DragonFly does not have aout. When/if they implement a new
10417 # versioning mechanism, adjust this.
10418 if test -x /usr/bin/objformat; then
10419 objformat=`/usr/bin/objformat`
10420 else
10421 case $host_os in
10422 freebsd[23].*) objformat=aout ;;
10423 *) objformat=elf ;;
10424 esac
10425 fi
10426 version_type=freebsd-$objformat
10427 case $version_type in
10428 freebsd-elf*)
10429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10430 need_version=no
10431 need_lib_prefix=no
10432 ;;
10433 freebsd-*)
10434 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10435 need_version=yes
10436 ;;
10437 esac
10438 shlibpath_var=LD_LIBRARY_PATH
10439 case $host_os in
10440 freebsd2.*)
10441 shlibpath_overrides_runpath=yes
10442 ;;
10443 freebsd3.[01]* | freebsdelf3.[01]*)
10444 shlibpath_overrides_runpath=yes
10445 hardcode_into_libs=yes
10446 ;;
10447 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10448 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10449 shlibpath_overrides_runpath=no
10450 hardcode_into_libs=yes
10451 ;;
10452 *) # from 4.6 on, and DragonFly
10453 shlibpath_overrides_runpath=yes
10454 hardcode_into_libs=yes
10455 ;;
10456 esac
10457 ;;
10458
10459 haiku*)
10460 version_type=linux # correct to gnu/linux during the next big refactor
10461 need_lib_prefix=no
10462 need_version=no
10463 dynamic_linker="$host_os runtime_loader"
10464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10465 soname_spec='${libname}${release}${shared_ext}$major'
10466 shlibpath_var=LIBRARY_PATH
10467 shlibpath_overrides_runpath=yes
10468 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10469 hardcode_into_libs=yes
10470 ;;
10471
10472 hpux9* | hpux10* | hpux11*)
10473 # Give a soname corresponding to the major version so that dld.sl refuses to
10474 # link against other versions.
10475 version_type=sunos
10476 need_lib_prefix=no
10477 need_version=no
10478 case $host_cpu in
10479 ia64*)
10480 shrext_cmds='.so'
10481 hardcode_into_libs=yes
10482 dynamic_linker="$host_os dld.so"
10483 shlibpath_var=LD_LIBRARY_PATH
10484 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10486 soname_spec='${libname}${release}${shared_ext}$major'
10487 if test "X$HPUX_IA64_MODE" = X32; then
10488 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10489 else
10490 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10491 fi
10492 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10493 ;;
10494 hppa*64*)
10495 shrext_cmds='.sl'
10496 hardcode_into_libs=yes
10497 dynamic_linker="$host_os dld.sl"
10498 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10499 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10501 soname_spec='${libname}${release}${shared_ext}$major'
10502 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10503 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10504 ;;
10505 *)
10506 shrext_cmds='.sl'
10507 dynamic_linker="$host_os dld.sl"
10508 shlibpath_var=SHLIB_PATH
10509 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10511 soname_spec='${libname}${release}${shared_ext}$major'
10512 ;;
10513 esac
10514 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10515 postinstall_cmds='chmod 555 $lib'
10516 # or fails outright, so override atomically:
10517 install_override_mode=555
10518 ;;
10519
10520 interix[3-9]*)
10521 version_type=linux # correct to gnu/linux during the next big refactor
10522 need_lib_prefix=no
10523 need_version=no
10524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10525 soname_spec='${libname}${release}${shared_ext}$major'
10526 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10527 shlibpath_var=LD_LIBRARY_PATH
10528 shlibpath_overrides_runpath=no
10529 hardcode_into_libs=yes
10530 ;;
10531
10532 irix5* | irix6* | nonstopux*)
10533 case $host_os in
10534 nonstopux*) version_type=nonstopux ;;
10535 *)
10536 if test "$lt_cv_prog_gnu_ld" = yes; then
10537 version_type=linux # correct to gnu/linux during the next big refactor
10538 else
10539 version_type=irix
10540 fi ;;
10541 esac
10542 need_lib_prefix=no
10543 need_version=no
10544 soname_spec='${libname}${release}${shared_ext}$major'
10545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10546 case $host_os in
10547 irix5* | nonstopux*)
10548 libsuff= shlibsuff=
10549 ;;
10550 *)
10551 case $LD in # libtool.m4 will add one of these switches to LD
10552 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10553 libsuff= shlibsuff= libmagic=32-bit;;
10554 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10555 libsuff=32 shlibsuff=N32 libmagic=N32;;
10556 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10557 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10558 *) libsuff= shlibsuff= libmagic=never-match;;
10559 esac
10560 ;;
10561 esac
10562 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10563 shlibpath_overrides_runpath=no
10564 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10565 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10566 hardcode_into_libs=yes
10567 ;;
10568
10569 # No shared lib support for Linux oldld, aout, or coff.
10570 linux*oldld* | linux*aout* | linux*coff*)
10571 dynamic_linker=no
10572 ;;
10573
10574 # This must be glibc/ELF.
10575 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10576 version_type=linux # correct to gnu/linux during the next big refactor
10577 need_lib_prefix=no
10578 need_version=no
10579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10580 soname_spec='${libname}${release}${shared_ext}$major'
10581 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10582 shlibpath_var=LD_LIBRARY_PATH
10583 shlibpath_overrides_runpath=no
10584
10585 # Some binutils ld are patched to set DT_RUNPATH
10586 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10587 $as_echo_n "(cached) " >&6
10588 else
10589 lt_cv_shlibpath_overrides_runpath=no
10590 save_LDFLAGS=$LDFLAGS
10591 save_libdir=$libdir
10592 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10593 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10595 /* end confdefs.h. */
10596
10597 int
10598 main ()
10599 {
10600
10601 ;
10602 return 0;
10603 }
10604 _ACEOF
10605 if ac_fn_c_try_link "$LINENO"; then :
10606 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10607 lt_cv_shlibpath_overrides_runpath=yes
10608 fi
10609 fi
10610 rm -f core conftest.err conftest.$ac_objext \
10611 conftest$ac_exeext conftest.$ac_ext
10612 LDFLAGS=$save_LDFLAGS
10613 libdir=$save_libdir
10614
10615 fi
10616
10617 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10618
10619 # This implies no fast_install, which is unacceptable.
10620 # Some rework will be needed to allow for fast_install
10621 # before this can be enabled.
10622 hardcode_into_libs=yes
10623
10624 # Append ld.so.conf contents to the search path
10625 if test -f /etc/ld.so.conf; then
10626 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' ' '`
10627 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10628 fi
10629
10630 # We used to test for /lib/ld.so.1 and disable shared libraries on
10631 # powerpc, because MkLinux only supported shared libraries with the
10632 # GNU dynamic linker. Since this was broken with cross compilers,
10633 # most powerpc-linux boxes support dynamic linking these days and
10634 # people can always --disable-shared, the test was removed, and we
10635 # assume the GNU/Linux dynamic linker is in use.
10636 dynamic_linker='GNU/Linux ld.so'
10637 ;;
10638
10639 netbsdelf*-gnu)
10640 version_type=linux
10641 need_lib_prefix=no
10642 need_version=no
10643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10644 soname_spec='${libname}${release}${shared_ext}$major'
10645 shlibpath_var=LD_LIBRARY_PATH
10646 shlibpath_overrides_runpath=no
10647 hardcode_into_libs=yes
10648 dynamic_linker='NetBSD ld.elf_so'
10649 ;;
10650
10651 netbsd*)
10652 version_type=sunos
10653 need_lib_prefix=no
10654 need_version=no
10655 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10657 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10658 dynamic_linker='NetBSD (a.out) ld.so'
10659 else
10660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10661 soname_spec='${libname}${release}${shared_ext}$major'
10662 dynamic_linker='NetBSD ld.elf_so'
10663 fi
10664 shlibpath_var=LD_LIBRARY_PATH
10665 shlibpath_overrides_runpath=yes
10666 hardcode_into_libs=yes
10667 ;;
10668
10669 newsos6)
10670 version_type=linux # correct to gnu/linux during the next big refactor
10671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10672 shlibpath_var=LD_LIBRARY_PATH
10673 shlibpath_overrides_runpath=yes
10674 ;;
10675
10676 *nto* | *qnx*)
10677 version_type=qnx
10678 need_lib_prefix=no
10679 need_version=no
10680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10681 soname_spec='${libname}${release}${shared_ext}$major'
10682 shlibpath_var=LD_LIBRARY_PATH
10683 shlibpath_overrides_runpath=no
10684 hardcode_into_libs=yes
10685 dynamic_linker='ldqnx.so'
10686 ;;
10687
10688 openbsd*)
10689 version_type=sunos
10690 sys_lib_dlsearch_path_spec="/usr/lib"
10691 need_lib_prefix=no
10692 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10693 case $host_os in
10694 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10695 *) need_version=no ;;
10696 esac
10697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10699 shlibpath_var=LD_LIBRARY_PATH
10700 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10701 case $host_os in
10702 openbsd2.[89] | openbsd2.[89].*)
10703 shlibpath_overrides_runpath=no
10704 ;;
10705 *)
10706 shlibpath_overrides_runpath=yes
10707 ;;
10708 esac
10709 else
10710 shlibpath_overrides_runpath=yes
10711 fi
10712 ;;
10713
10714 os2*)
10715 libname_spec='$name'
10716 shrext_cmds=".dll"
10717 need_lib_prefix=no
10718 library_names_spec='$libname${shared_ext} $libname.a'
10719 dynamic_linker='OS/2 ld.exe'
10720 shlibpath_var=LIBPATH
10721 ;;
10722
10723 osf3* | osf4* | osf5*)
10724 version_type=osf
10725 need_lib_prefix=no
10726 need_version=no
10727 soname_spec='${libname}${release}${shared_ext}$major'
10728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10729 shlibpath_var=LD_LIBRARY_PATH
10730 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10731 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10732 ;;
10733
10734 rdos*)
10735 dynamic_linker=no
10736 ;;
10737
10738 solaris*)
10739 version_type=linux # correct to gnu/linux during the next big refactor
10740 need_lib_prefix=no
10741 need_version=no
10742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10743 soname_spec='${libname}${release}${shared_ext}$major'
10744 shlibpath_var=LD_LIBRARY_PATH
10745 shlibpath_overrides_runpath=yes
10746 hardcode_into_libs=yes
10747 # ldd complains unless libraries are executable
10748 postinstall_cmds='chmod +x $lib'
10749 ;;
10750
10751 sunos4*)
10752 version_type=sunos
10753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10754 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10755 shlibpath_var=LD_LIBRARY_PATH
10756 shlibpath_overrides_runpath=yes
10757 if test "$with_gnu_ld" = yes; then
10758 need_lib_prefix=no
10759 fi
10760 need_version=yes
10761 ;;
10762
10763 sysv4 | sysv4.3*)
10764 version_type=linux # correct to gnu/linux during the next big refactor
10765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10766 soname_spec='${libname}${release}${shared_ext}$major'
10767 shlibpath_var=LD_LIBRARY_PATH
10768 case $host_vendor in
10769 sni)
10770 shlibpath_overrides_runpath=no
10771 need_lib_prefix=no
10772 runpath_var=LD_RUN_PATH
10773 ;;
10774 siemens)
10775 need_lib_prefix=no
10776 ;;
10777 motorola)
10778 need_lib_prefix=no
10779 need_version=no
10780 shlibpath_overrides_runpath=no
10781 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10782 ;;
10783 esac
10784 ;;
10785
10786 sysv4*MP*)
10787 if test -d /usr/nec ;then
10788 version_type=linux # correct to gnu/linux during the next big refactor
10789 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10790 soname_spec='$libname${shared_ext}.$major'
10791 shlibpath_var=LD_LIBRARY_PATH
10792 fi
10793 ;;
10794
10795 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10796 version_type=freebsd-elf
10797 need_lib_prefix=no
10798 need_version=no
10799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10800 soname_spec='${libname}${release}${shared_ext}$major'
10801 shlibpath_var=LD_LIBRARY_PATH
10802 shlibpath_overrides_runpath=yes
10803 hardcode_into_libs=yes
10804 if test "$with_gnu_ld" = yes; then
10805 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10806 else
10807 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10808 case $host_os in
10809 sco3.2v5*)
10810 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10811 ;;
10812 esac
10813 fi
10814 sys_lib_dlsearch_path_spec='/usr/lib'
10815 ;;
10816
10817 tpf*)
10818 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10819 version_type=linux # correct to gnu/linux during the next big refactor
10820 need_lib_prefix=no
10821 need_version=no
10822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10823 shlibpath_var=LD_LIBRARY_PATH
10824 shlibpath_overrides_runpath=no
10825 hardcode_into_libs=yes
10826 ;;
10827
10828 uts4*)
10829 version_type=linux # correct to gnu/linux during the next big refactor
10830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10831 soname_spec='${libname}${release}${shared_ext}$major'
10832 shlibpath_var=LD_LIBRARY_PATH
10833 ;;
10834
10835 *)
10836 dynamic_linker=no
10837 ;;
10838 esac
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10840 $as_echo "$dynamic_linker" >&6; }
10841 test "$dynamic_linker" = no && can_build_shared=no
10842
10843 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10844 if test "$GCC" = yes; then
10845 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10846 fi
10847
10848 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10849 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10850 fi
10851 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10852 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10853 fi
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10947 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10948 hardcode_action=
10949 if test -n "$hardcode_libdir_flag_spec" ||
10950 test -n "$runpath_var" ||
10951 test "X$hardcode_automatic" = "Xyes" ; then
10952
10953 # We can hardcode non-existent directories.
10954 if test "$hardcode_direct" != no &&
10955 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10956 # have to relink, otherwise we might link with an installed library
10957 # when we should be linking with a yet-to-be-installed one
10958 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10959 test "$hardcode_minus_L" != no; then
10960 # Linking always hardcodes the temporary library directory.
10961 hardcode_action=relink
10962 else
10963 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10964 hardcode_action=immediate
10965 fi
10966 else
10967 # We cannot hardcode anything, or else we can only hardcode existing
10968 # directories.
10969 hardcode_action=unsupported
10970 fi
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10972 $as_echo "$hardcode_action" >&6; }
10973
10974 if test "$hardcode_action" = relink ||
10975 test "$inherit_rpath" = yes; then
10976 # Fast installation is not supported
10977 enable_fast_install=no
10978 elif test "$shlibpath_overrides_runpath" = yes ||
10979 test "$enable_shared" = no; then
10980 # Fast installation is not necessary
10981 enable_fast_install=needless
10982 fi
10983
10984
10985
10986
10987
10988
10989 if test "x$enable_dlopen" != xyes; then
10990 enable_dlopen=unknown
10991 enable_dlopen_self=unknown
10992 enable_dlopen_self_static=unknown
10993 else
10994 lt_cv_dlopen=no
10995 lt_cv_dlopen_libs=
10996
10997 case $host_os in
10998 beos*)
10999 lt_cv_dlopen="load_add_on"
11000 lt_cv_dlopen_libs=
11001 lt_cv_dlopen_self=yes
11002 ;;
11003
11004 mingw* | pw32* | cegcc*)
11005 lt_cv_dlopen="LoadLibrary"
11006 lt_cv_dlopen_libs=
11007 ;;
11008
11009 cygwin*)
11010 lt_cv_dlopen="dlopen"
11011 lt_cv_dlopen_libs=
11012 ;;
11013
11014 darwin*)
11015 # if libdl is installed we need to link against it
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11017 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11018 if ${ac_cv_lib_dl_dlopen+:} false; then :
11019 $as_echo_n "(cached) " >&6
11020 else
11021 ac_check_lib_save_LIBS=$LIBS
11022 LIBS="-ldl $LIBS"
11023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11024 /* end confdefs.h. */
11025
11026 /* Override any GCC internal prototype to avoid an error.
11027 Use char because int might match the return type of a GCC
11028 builtin and then its argument prototype would still apply. */
11029 #ifdef __cplusplus
11030 extern "C"
11031 #endif
11032 char dlopen ();
11033 int
11034 main ()
11035 {
11036 return dlopen ();
11037 ;
11038 return 0;
11039 }
11040 _ACEOF
11041 if ac_fn_c_try_link "$LINENO"; then :
11042 ac_cv_lib_dl_dlopen=yes
11043 else
11044 ac_cv_lib_dl_dlopen=no
11045 fi
11046 rm -f core conftest.err conftest.$ac_objext \
11047 conftest$ac_exeext conftest.$ac_ext
11048 LIBS=$ac_check_lib_save_LIBS
11049 fi
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11051 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11052 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11053 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11054 else
11055
11056 lt_cv_dlopen="dyld"
11057 lt_cv_dlopen_libs=
11058 lt_cv_dlopen_self=yes
11059
11060 fi
11061
11062 ;;
11063
11064 *)
11065 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11066 if test "x$ac_cv_func_shl_load" = xyes; then :
11067 lt_cv_dlopen="shl_load"
11068 else
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11070 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11071 if ${ac_cv_lib_dld_shl_load+:} false; then :
11072 $as_echo_n "(cached) " >&6
11073 else
11074 ac_check_lib_save_LIBS=$LIBS
11075 LIBS="-ldld $LIBS"
11076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11077 /* end confdefs.h. */
11078
11079 /* Override any GCC internal prototype to avoid an error.
11080 Use char because int might match the return type of a GCC
11081 builtin and then its argument prototype would still apply. */
11082 #ifdef __cplusplus
11083 extern "C"
11084 #endif
11085 char shl_load ();
11086 int
11087 main ()
11088 {
11089 return shl_load ();
11090 ;
11091 return 0;
11092 }
11093 _ACEOF
11094 if ac_fn_c_try_link "$LINENO"; then :
11095 ac_cv_lib_dld_shl_load=yes
11096 else
11097 ac_cv_lib_dld_shl_load=no
11098 fi
11099 rm -f core conftest.err conftest.$ac_objext \
11100 conftest$ac_exeext conftest.$ac_ext
11101 LIBS=$ac_check_lib_save_LIBS
11102 fi
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11104 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11105 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11106 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11107 else
11108 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11109 if test "x$ac_cv_func_dlopen" = xyes; then :
11110 lt_cv_dlopen="dlopen"
11111 else
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11113 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11114 if ${ac_cv_lib_dl_dlopen+:} false; then :
11115 $as_echo_n "(cached) " >&6
11116 else
11117 ac_check_lib_save_LIBS=$LIBS
11118 LIBS="-ldl $LIBS"
11119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11120 /* end confdefs.h. */
11121
11122 /* Override any GCC internal prototype to avoid an error.
11123 Use char because int might match the return type of a GCC
11124 builtin and then its argument prototype would still apply. */
11125 #ifdef __cplusplus
11126 extern "C"
11127 #endif
11128 char dlopen ();
11129 int
11130 main ()
11131 {
11132 return dlopen ();
11133 ;
11134 return 0;
11135 }
11136 _ACEOF
11137 if ac_fn_c_try_link "$LINENO"; then :
11138 ac_cv_lib_dl_dlopen=yes
11139 else
11140 ac_cv_lib_dl_dlopen=no
11141 fi
11142 rm -f core conftest.err conftest.$ac_objext \
11143 conftest$ac_exeext conftest.$ac_ext
11144 LIBS=$ac_check_lib_save_LIBS
11145 fi
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11147 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11148 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11149 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11150 else
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11152 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11153 if ${ac_cv_lib_svld_dlopen+:} false; then :
11154 $as_echo_n "(cached) " >&6
11155 else
11156 ac_check_lib_save_LIBS=$LIBS
11157 LIBS="-lsvld $LIBS"
11158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11159 /* end confdefs.h. */
11160
11161 /* Override any GCC internal prototype to avoid an error.
11162 Use char because int might match the return type of a GCC
11163 builtin and then its argument prototype would still apply. */
11164 #ifdef __cplusplus
11165 extern "C"
11166 #endif
11167 char dlopen ();
11168 int
11169 main ()
11170 {
11171 return dlopen ();
11172 ;
11173 return 0;
11174 }
11175 _ACEOF
11176 if ac_fn_c_try_link "$LINENO"; then :
11177 ac_cv_lib_svld_dlopen=yes
11178 else
11179 ac_cv_lib_svld_dlopen=no
11180 fi
11181 rm -f core conftest.err conftest.$ac_objext \
11182 conftest$ac_exeext conftest.$ac_ext
11183 LIBS=$ac_check_lib_save_LIBS
11184 fi
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11186 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11187 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11188 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11189 else
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11191 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11192 if ${ac_cv_lib_dld_dld_link+:} false; then :
11193 $as_echo_n "(cached) " >&6
11194 else
11195 ac_check_lib_save_LIBS=$LIBS
11196 LIBS="-ldld $LIBS"
11197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11198 /* end confdefs.h. */
11199
11200 /* Override any GCC internal prototype to avoid an error.
11201 Use char because int might match the return type of a GCC
11202 builtin and then its argument prototype would still apply. */
11203 #ifdef __cplusplus
11204 extern "C"
11205 #endif
11206 char dld_link ();
11207 int
11208 main ()
11209 {
11210 return dld_link ();
11211 ;
11212 return 0;
11213 }
11214 _ACEOF
11215 if ac_fn_c_try_link "$LINENO"; then :
11216 ac_cv_lib_dld_dld_link=yes
11217 else
11218 ac_cv_lib_dld_dld_link=no
11219 fi
11220 rm -f core conftest.err conftest.$ac_objext \
11221 conftest$ac_exeext conftest.$ac_ext
11222 LIBS=$ac_check_lib_save_LIBS
11223 fi
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11225 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11226 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11227 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11228 fi
11229
11230
11231 fi
11232
11233
11234 fi
11235
11236
11237 fi
11238
11239
11240 fi
11241
11242
11243 fi
11244
11245 ;;
11246 esac
11247
11248 if test "x$lt_cv_dlopen" != xno; then
11249 enable_dlopen=yes
11250 else
11251 enable_dlopen=no
11252 fi
11253
11254 case $lt_cv_dlopen in
11255 dlopen)
11256 save_CPPFLAGS="$CPPFLAGS"
11257 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11258
11259 save_LDFLAGS="$LDFLAGS"
11260 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11261
11262 save_LIBS="$LIBS"
11263 LIBS="$lt_cv_dlopen_libs $LIBS"
11264
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11266 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11267 if ${lt_cv_dlopen_self+:} false; then :
11268 $as_echo_n "(cached) " >&6
11269 else
11270 if test "$cross_compiling" = yes; then :
11271 lt_cv_dlopen_self=cross
11272 else
11273 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11274 lt_status=$lt_dlunknown
11275 cat > conftest.$ac_ext <<_LT_EOF
11276 #line $LINENO "configure"
11277 #include "confdefs.h"
11278
11279 #if HAVE_DLFCN_H
11280 #include <dlfcn.h>
11281 #endif
11282
11283 #include <stdio.h>
11284
11285 #ifdef RTLD_GLOBAL
11286 # define LT_DLGLOBAL RTLD_GLOBAL
11287 #else
11288 # ifdef DL_GLOBAL
11289 # define LT_DLGLOBAL DL_GLOBAL
11290 # else
11291 # define LT_DLGLOBAL 0
11292 # endif
11293 #endif
11294
11295 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11296 find out it does not work in some platform. */
11297 #ifndef LT_DLLAZY_OR_NOW
11298 # ifdef RTLD_LAZY
11299 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11300 # else
11301 # ifdef DL_LAZY
11302 # define LT_DLLAZY_OR_NOW DL_LAZY
11303 # else
11304 # ifdef RTLD_NOW
11305 # define LT_DLLAZY_OR_NOW RTLD_NOW
11306 # else
11307 # ifdef DL_NOW
11308 # define LT_DLLAZY_OR_NOW DL_NOW
11309 # else
11310 # define LT_DLLAZY_OR_NOW 0
11311 # endif
11312 # endif
11313 # endif
11314 # endif
11315 #endif
11316
11317 /* When -fvisbility=hidden is used, assume the code has been annotated
11318 correspondingly for the symbols needed. */
11319 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11320 int fnord () __attribute__((visibility("default")));
11321 #endif
11322
11323 int fnord () { return 42; }
11324 int main ()
11325 {
11326 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11327 int status = $lt_dlunknown;
11328
11329 if (self)
11330 {
11331 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11332 else
11333 {
11334 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11335 else puts (dlerror ());
11336 }
11337 /* dlclose (self); */
11338 }
11339 else
11340 puts (dlerror ());
11341
11342 return status;
11343 }
11344 _LT_EOF
11345 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11346 (eval $ac_link) 2>&5
11347 ac_status=$?
11348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11349 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11350 (./conftest; exit; ) >&5 2>/dev/null
11351 lt_status=$?
11352 case x$lt_status in
11353 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11354 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11355 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11356 esac
11357 else :
11358 # compilation failed
11359 lt_cv_dlopen_self=no
11360 fi
11361 fi
11362 rm -fr conftest*
11363
11364
11365 fi
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11367 $as_echo "$lt_cv_dlopen_self" >&6; }
11368
11369 if test "x$lt_cv_dlopen_self" = xyes; then
11370 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11372 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11373 if ${lt_cv_dlopen_self_static+:} false; then :
11374 $as_echo_n "(cached) " >&6
11375 else
11376 if test "$cross_compiling" = yes; then :
11377 lt_cv_dlopen_self_static=cross
11378 else
11379 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11380 lt_status=$lt_dlunknown
11381 cat > conftest.$ac_ext <<_LT_EOF
11382 #line $LINENO "configure"
11383 #include "confdefs.h"
11384
11385 #if HAVE_DLFCN_H
11386 #include <dlfcn.h>
11387 #endif
11388
11389 #include <stdio.h>
11390
11391 #ifdef RTLD_GLOBAL
11392 # define LT_DLGLOBAL RTLD_GLOBAL
11393 #else
11394 # ifdef DL_GLOBAL
11395 # define LT_DLGLOBAL DL_GLOBAL
11396 # else
11397 # define LT_DLGLOBAL 0
11398 # endif
11399 #endif
11400
11401 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11402 find out it does not work in some platform. */
11403 #ifndef LT_DLLAZY_OR_NOW
11404 # ifdef RTLD_LAZY
11405 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11406 # else
11407 # ifdef DL_LAZY
11408 # define LT_DLLAZY_OR_NOW DL_LAZY
11409 # else
11410 # ifdef RTLD_NOW
11411 # define LT_DLLAZY_OR_NOW RTLD_NOW
11412 # else
11413 # ifdef DL_NOW
11414 # define LT_DLLAZY_OR_NOW DL_NOW
11415 # else
11416 # define LT_DLLAZY_OR_NOW 0
11417 # endif
11418 # endif
11419 # endif
11420 # endif
11421 #endif
11422
11423 /* When -fvisbility=hidden is used, assume the code has been annotated
11424 correspondingly for the symbols needed. */
11425 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11426 int fnord () __attribute__((visibility("default")));
11427 #endif
11428
11429 int fnord () { return 42; }
11430 int main ()
11431 {
11432 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11433 int status = $lt_dlunknown;
11434
11435 if (self)
11436 {
11437 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11438 else
11439 {
11440 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11441 else puts (dlerror ());
11442 }
11443 /* dlclose (self); */
11444 }
11445 else
11446 puts (dlerror ());
11447
11448 return status;
11449 }
11450 _LT_EOF
11451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11452 (eval $ac_link) 2>&5
11453 ac_status=$?
11454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11455 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11456 (./conftest; exit; ) >&5 2>/dev/null
11457 lt_status=$?
11458 case x$lt_status in
11459 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11460 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11461 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11462 esac
11463 else :
11464 # compilation failed
11465 lt_cv_dlopen_self_static=no
11466 fi
11467 fi
11468 rm -fr conftest*
11469
11470
11471 fi
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11473 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11474 fi
11475
11476 CPPFLAGS="$save_CPPFLAGS"
11477 LDFLAGS="$save_LDFLAGS"
11478 LIBS="$save_LIBS"
11479 ;;
11480 esac
11481
11482 case $lt_cv_dlopen_self in
11483 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11484 *) enable_dlopen_self=unknown ;;
11485 esac
11486
11487 case $lt_cv_dlopen_self_static in
11488 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11489 *) enable_dlopen_self_static=unknown ;;
11490 esac
11491 fi
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509 striplib=
11510 old_striplib=
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11512 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11513 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11514 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11515 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11517 $as_echo "yes" >&6; }
11518 else
11519 # FIXME - insert some real tests, host_os isn't really good enough
11520 case $host_os in
11521 darwin*)
11522 if test -n "$STRIP" ; then
11523 striplib="$STRIP -x"
11524 old_striplib="$STRIP -S"
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11526 $as_echo "yes" >&6; }
11527 else
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11529 $as_echo "no" >&6; }
11530 fi
11531 ;;
11532 *)
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11534 $as_echo "no" >&6; }
11535 ;;
11536 esac
11537 fi
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550 # Report which library types will actually be built
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11552 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11554 $as_echo "$can_build_shared" >&6; }
11555
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11557 $as_echo_n "checking whether to build shared libraries... " >&6; }
11558 test "$can_build_shared" = "no" && enable_shared=no
11559
11560 # On AIX, shared libraries and static libraries use the same namespace, and
11561 # are all built from PIC.
11562 case $host_os in
11563 aix3*)
11564 test "$enable_shared" = yes && enable_static=no
11565 if test -n "$RANLIB"; then
11566 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11567 postinstall_cmds='$RANLIB $lib'
11568 fi
11569 ;;
11570
11571 aix[4-9]*)
11572 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11573 test "$enable_shared" = yes && enable_static=no
11574 fi
11575 ;;
11576 esac
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11578 $as_echo "$enable_shared" >&6; }
11579
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11581 $as_echo_n "checking whether to build static libraries... " >&6; }
11582 # Make sure either enable_shared or enable_static is yes.
11583 test "$enable_shared" = yes || enable_static=yes
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11585 $as_echo "$enable_static" >&6; }
11586
11587
11588
11589
11590 fi
11591 ac_ext=c
11592 ac_cpp='$CPP $CPPFLAGS'
11593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11596
11597 CC="$lt_save_CC"
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613 ac_config_commands="$ac_config_commands libtool"
11614
11615
11616
11617
11618 # Only expand once:
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11629 if test -n "$ac_tool_prefix"; then
11630 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11631 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11633 $as_echo_n "checking for $ac_word... " >&6; }
11634 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11635 $as_echo_n "(cached) " >&6
11636 else
11637 case $PKG_CONFIG in
11638 [\\/]* | ?:[\\/]*)
11639 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11640 ;;
11641 *)
11642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11643 for as_dir in $PATH
11644 do
11645 IFS=$as_save_IFS
11646 test -z "$as_dir" && as_dir=.
11647 for ac_exec_ext in '' $ac_executable_extensions; do
11648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11649 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11651 break 2
11652 fi
11653 done
11654 done
11655 IFS=$as_save_IFS
11656
11657 ;;
11658 esac
11659 fi
11660 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11661 if test -n "$PKG_CONFIG"; then
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11663 $as_echo "$PKG_CONFIG" >&6; }
11664 else
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11666 $as_echo "no" >&6; }
11667 fi
11668
11669
11670 fi
11671 if test -z "$ac_cv_path_PKG_CONFIG"; then
11672 ac_pt_PKG_CONFIG=$PKG_CONFIG
11673 # Extract the first word of "pkg-config", so it can be a program name with args.
11674 set dummy pkg-config; ac_word=$2
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11676 $as_echo_n "checking for $ac_word... " >&6; }
11677 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11678 $as_echo_n "(cached) " >&6
11679 else
11680 case $ac_pt_PKG_CONFIG in
11681 [\\/]* | ?:[\\/]*)
11682 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11683 ;;
11684 *)
11685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686 for as_dir in $PATH
11687 do
11688 IFS=$as_save_IFS
11689 test -z "$as_dir" && as_dir=.
11690 for ac_exec_ext in '' $ac_executable_extensions; do
11691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11692 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11694 break 2
11695 fi
11696 done
11697 done
11698 IFS=$as_save_IFS
11699
11700 ;;
11701 esac
11702 fi
11703 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11704 if test -n "$ac_pt_PKG_CONFIG"; then
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11706 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11707 else
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11709 $as_echo "no" >&6; }
11710 fi
11711
11712 if test "x$ac_pt_PKG_CONFIG" = x; then
11713 PKG_CONFIG=""
11714 else
11715 case $cross_compiling:$ac_tool_warned in
11716 yes:)
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11719 ac_tool_warned=yes ;;
11720 esac
11721 PKG_CONFIG=$ac_pt_PKG_CONFIG
11722 fi
11723 else
11724 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11725 fi
11726
11727 fi
11728 if test -n "$PKG_CONFIG"; then
11729 _pkg_min_version=0.9.0
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11731 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11732 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11734 $as_echo "yes" >&6; }
11735 else
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11737 $as_echo "no" >&6; }
11738 PKG_CONFIG=""
11739 fi
11740 fi
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11742 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11743 if ${ac_cv_prog_cc_c99+:} false; then :
11744 $as_echo_n "(cached) " >&6
11745 else
11746 ac_cv_prog_cc_c99=no
11747 ac_save_CC=$CC
11748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11749 /* end confdefs.h. */
11750 #include <stdarg.h>
11751 #include <stdbool.h>
11752 #include <stdlib.h>
11753 #include <wchar.h>
11754 #include <stdio.h>
11755
11756 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11757 #define debug(...) fprintf (stderr, __VA_ARGS__)
11758 #define showlist(...) puts (#__VA_ARGS__)
11759 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11760 static void
11761 test_varargs_macros (void)
11762 {
11763 int x = 1234;
11764 int y = 5678;
11765 debug ("Flag");
11766 debug ("X = %d\n", x);
11767 showlist (The first, second, and third items.);
11768 report (x>y, "x is %d but y is %d", x, y);
11769 }
11770
11771 // Check long long types.
11772 #define BIG64 18446744073709551615ull
11773 #define BIG32 4294967295ul
11774 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11775 #if !BIG_OK
11776 your preprocessor is broken;
11777 #endif
11778 #if BIG_OK
11779 #else
11780 your preprocessor is broken;
11781 #endif
11782 static long long int bignum = -9223372036854775807LL;
11783 static unsigned long long int ubignum = BIG64;
11784
11785 struct incomplete_array
11786 {
11787 int datasize;
11788 double data[];
11789 };
11790
11791 struct named_init {
11792 int number;
11793 const wchar_t *name;
11794 double average;
11795 };
11796
11797 typedef const char *ccp;
11798
11799 static inline int
11800 test_restrict (ccp restrict text)
11801 {
11802 // See if C++-style comments work.
11803 // Iterate through items via the restricted pointer.
11804 // Also check for declarations in for loops.
11805 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11806 continue;
11807 return 0;
11808 }
11809
11810 // Check varargs and va_copy.
11811 static void
11812 test_varargs (const char *format, ...)
11813 {
11814 va_list args;
11815 va_start (args, format);
11816 va_list args_copy;
11817 va_copy (args_copy, args);
11818
11819 const char *str;
11820 int number;
11821 float fnumber;
11822
11823 while (*format)
11824 {
11825 switch (*format++)
11826 {
11827 case 's': // string
11828 str = va_arg (args_copy, const char *);
11829 break;
11830 case 'd': // int
11831 number = va_arg (args_copy, int);
11832 break;
11833 case 'f': // float
11834 fnumber = va_arg (args_copy, double);
11835 break;
11836 default:
11837 break;
11838 }
11839 }
11840 va_end (args_copy);
11841 va_end (args);
11842 }
11843
11844 int
11845 main ()
11846 {
11847
11848 // Check bool.
11849 _Bool success = false;
11850
11851 // Check restrict.
11852 if (test_restrict ("String literal") == 0)
11853 success = true;
11854 char *restrict newvar = "Another string";
11855
11856 // Check varargs.
11857 test_varargs ("s, d' f .", "string", 65, 34.234);
11858 test_varargs_macros ();
11859
11860 // Check flexible array members.
11861 struct incomplete_array *ia =
11862 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11863 ia->datasize = 10;
11864 for (int i = 0; i < ia->datasize; ++i)
11865 ia->data[i] = i * 1.234;
11866
11867 // Check named initializers.
11868 struct named_init ni = {
11869 .number = 34,
11870 .name = L"Test wide string",
11871 .average = 543.34343,
11872 };
11873
11874 ni.number = 58;
11875
11876 int dynamic_array[ni.number];
11877 dynamic_array[ni.number - 1] = 543;
11878
11879 // work around unused variable warnings
11880 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11881 || dynamic_array[ni.number - 1] != 543);
11882
11883 ;
11884 return 0;
11885 }
11886 _ACEOF
11887 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
11888 do
11889 CC="$ac_save_CC $ac_arg"
11890 if ac_fn_c_try_compile "$LINENO"; then :
11891 ac_cv_prog_cc_c99=$ac_arg
11892 fi
11893 rm -f core conftest.err conftest.$ac_objext
11894 test "x$ac_cv_prog_cc_c99" != "xno" && break
11895 done
11896 rm -f conftest.$ac_ext
11897 CC=$ac_save_CC
11898
11899 fi
11900 # AC_CACHE_VAL
11901 case "x$ac_cv_prog_cc_c99" in
11902 x)
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11904 $as_echo "none needed" >&6; } ;;
11905 xno)
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11907 $as_echo "unsupported" >&6; } ;;
11908 *)
11909 CC="$CC $ac_cv_prog_cc_c99"
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11911 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11912 esac
11913 if test "x$ac_cv_prog_cc_c99" != xno; then :
11914
11915 fi
11916
11917
11918
11919
11920
11921
11922 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11923 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11924 CLANGCC="yes"
11925 else
11926 CLANGCC="no"
11927 fi
11928
11929 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11930 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11931 INTELCC="yes"
11932 else
11933 INTELCC="no"
11934 fi
11935
11936 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11937 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11938 SUNCC="yes"
11939 else
11940 SUNCC="no"
11941 fi
11942
11943
11944
11945
11946
11947
11948
11949 # Define header files and pkgconfig paths
11950 xcbincludedir='${includedir}/xcb'
11951
11952 pkgconfigdir='${libdir}/pkgconfig'
11953
11954
11955 # Check xcb version
11956
11957 pkg_failed=no
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB" >&5
11959 $as_echo_n "checking for XCB... " >&6; }
11960
11961 if test -n "$XCB_CFLAGS"; then
11962 pkg_cv_XCB_CFLAGS="$XCB_CFLAGS"
11963 elif test -n "$PKG_CONFIG"; then
11964 if test -n "$PKG_CONFIG" && \
11965 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.4\""; } >&5
11966 ($PKG_CONFIG --exists --print-errors "xcb >= 1.4") 2>&5
11967 ac_status=$?
11968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11969 test $ac_status = 0; }; then
11970 pkg_cv_XCB_CFLAGS=`$PKG_CONFIG --cflags "xcb >= 1.4" 2>/dev/null`
11971 test "x$?" != "x0" && pkg_failed=yes
11972 else
11973 pkg_failed=yes
11974 fi
11975 else
11976 pkg_failed=untried
11977 fi
11978 if test -n "$XCB_LIBS"; then
11979 pkg_cv_XCB_LIBS="$XCB_LIBS"
11980 elif test -n "$PKG_CONFIG"; then
11981 if test -n "$PKG_CONFIG" && \
11982 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.4\""; } >&5
11983 ($PKG_CONFIG --exists --print-errors "xcb >= 1.4") 2>&5
11984 ac_status=$?
11985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11986 test $ac_status = 0; }; then
11987 pkg_cv_XCB_LIBS=`$PKG_CONFIG --libs "xcb >= 1.4" 2>/dev/null`
11988 test "x$?" != "x0" && pkg_failed=yes
11989 else
11990 pkg_failed=yes
11991 fi
11992 else
11993 pkg_failed=untried
11994 fi
11995
11996
11997
11998 if test $pkg_failed = yes; then
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12000 $as_echo "no" >&6; }
12001
12002 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12003 _pkg_short_errors_supported=yes
12004 else
12005 _pkg_short_errors_supported=no
12006 fi
12007 if test $_pkg_short_errors_supported = yes; then
12008 XCB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb >= 1.4" 2>&1`
12009 else
12010 XCB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb >= 1.4" 2>&1`
12011 fi
12012 # Put the nasty error message in config.log where it belongs
12013 echo "$XCB_PKG_ERRORS" >&5
12014
12015 as_fn_error $? "Package requirements (xcb >= 1.4) were not met:
12016
12017 $XCB_PKG_ERRORS
12018
12019 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12020 installed software in a non-standard prefix.
12021
12022 Alternatively, you may set the environment variables XCB_CFLAGS
12023 and XCB_LIBS to avoid the need to call pkg-config.
12024 See the pkg-config man page for more details." "$LINENO" 5
12025 elif test $pkg_failed = untried; then
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12027 $as_echo "no" >&6; }
12028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12030 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12031 is in your PATH or set the PKG_CONFIG environment variable to the full
12032 path to pkg-config.
12033
12034 Alternatively, you may set the environment variables XCB_CFLAGS
12035 and XCB_LIBS to avoid the need to call pkg-config.
12036 See the pkg-config man page for more details.
12037
12038 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12039 See \`config.log' for more details" "$LINENO" 5; }
12040 else
12041 XCB_CFLAGS=$pkg_cv_XCB_CFLAGS
12042 XCB_LIBS=$pkg_cv_XCB_LIBS
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12044 $as_echo "yes" >&6; }
12045
12046 fi
12047
12048 # Check version of xcb-proto that xcb was compiled against
12049 xcbproto_required=1.6
12050
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxcb was compiled against xcb-proto >= $xcbproto_required" >&5
12052 $as_echo_n "checking whether libxcb was compiled against xcb-proto >= $xcbproto_required... " >&6; }
12053 xcbproto_version=`$PKG_CONFIG --variable=xcbproto_version xcb`
12054
12055 for ac_prog in gawk mawk nawk awk
12056 do
12057 # Extract the first word of "$ac_prog", so it can be a program name with args.
12058 set dummy $ac_prog; ac_word=$2
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12060 $as_echo_n "checking for $ac_word... " >&6; }
12061 if ${ac_cv_prog_AWK+:} false; then :
12062 $as_echo_n "(cached) " >&6
12063 else
12064 if test -n "$AWK"; then
12065 ac_cv_prog_AWK="$AWK" # Let the user override the test.
12066 else
12067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12068 for as_dir in $PATH
12069 do
12070 IFS=$as_save_IFS
12071 test -z "$as_dir" && as_dir=.
12072 for ac_exec_ext in '' $ac_executable_extensions; do
12073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12074 ac_cv_prog_AWK="$ac_prog"
12075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12076 break 2
12077 fi
12078 done
12079 done
12080 IFS=$as_save_IFS
12081
12082 fi
12083 fi
12084 AWK=$ac_cv_prog_AWK
12085 if test -n "$AWK"; then
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12087 $as_echo "$AWK" >&6; }
12088 else
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12090 $as_echo "no" >&6; }
12091 fi
12092
12093
12094 test -n "$AWK" && break
12095 done
12096
12097
12098 # Used to indicate true or false condition
12099 ax_compare_version=false
12100
12101 # Convert the two version strings to be compared into a format that
12102 # allows a simple string comparison. The end result is that a version
12103 # string of the form 1.12.5-r617 will be converted to the form
12104 # 0001001200050617. In other words, each number is zero padded to four
12105 # digits, and non digits are removed.
12106
12107 ax_compare_version_A=`echo "$xcbproto_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
12108 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
12109 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
12110 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
12111 -e 's/[^0-9]//g'`
12112
12113
12114 ax_compare_version_B=`echo "$xcbproto_required" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
12115 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
12116 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
12117 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
12118 -e 's/[^0-9]//g'`
12119
12120
12121 ax_compare_version=`echo "x$ax_compare_version_A
12122 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
12123
12124
12125
12126 if test "$ax_compare_version" = "true" ; then
12127 xcbproto_ok="yes"
12128 else xcbproto_ok="no"
12129 fi
12130
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xcbproto_ok" >&5
12132 $as_echo "$xcbproto_ok" >&6; }
12133
12134 if test $xcbproto_ok = no; then
12135 as_fn_error $? "libxcb was compiled against xcb-proto $xcbproto_version; it needs to be compiled against version $xcbproto_required or higher" "$LINENO" 5
12136 fi
12137
12138 # Call macros from Xorg util-macros
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156 # Check whether --enable-selective-werror was given.
12157 if test "${enable_selective_werror+set}" = set; then :
12158 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12159 else
12160 SELECTIVE_WERROR=yes
12161 fi
12162
12163
12164
12165
12166
12167 # -v is too short to test reliably with XORG_TESTSET_CFLAG
12168 if test "x$SUNCC" = "xyes"; then
12169 BASE_CFLAGS="-v"
12170 else
12171 BASE_CFLAGS=""
12172 fi
12173
12174 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188 xorg_testset_save_CFLAGS="$CFLAGS"
12189
12190 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12191 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12193 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12194 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12195 $as_echo_n "(cached) " >&6
12196 else
12197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12198 /* end confdefs.h. */
12199 int i;
12200 _ACEOF
12201 if ac_fn_c_try_compile "$LINENO"; then :
12202 xorg_cv_cc_flag_unknown_warning_option=yes
12203 else
12204 xorg_cv_cc_flag_unknown_warning_option=no
12205 fi
12206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12207 fi
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12209 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12210 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12211 CFLAGS="$xorg_testset_save_CFLAGS"
12212 fi
12213
12214 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12217 fi
12218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12220 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12221 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12222 $as_echo_n "(cached) " >&6
12223 else
12224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12225 /* end confdefs.h. */
12226 int i;
12227 _ACEOF
12228 if ac_fn_c_try_compile "$LINENO"; then :
12229 xorg_cv_cc_flag_unused_command_line_argument=yes
12230 else
12231 xorg_cv_cc_flag_unused_command_line_argument=no
12232 fi
12233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12234 fi
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12236 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12237 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12238 CFLAGS="$xorg_testset_save_CFLAGS"
12239 fi
12240
12241 found="no"
12242
12243 if test $found = "no" ; then
12244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12246 fi
12247
12248 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12250 fi
12251
12252 CFLAGS="$CFLAGS -Wall"
12253
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12255 $as_echo_n "checking if $CC supports -Wall... " >&6; }
12256 cacheid=xorg_cv_cc_flag__Wall
12257 if eval \${$cacheid+:} false; then :
12258 $as_echo_n "(cached) " >&6
12259 else
12260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12261 /* end confdefs.h. */
12262 int i;
12263 int
12264 main ()
12265 {
12266
12267 ;
12268 return 0;
12269 }
12270 _ACEOF
12271 if ac_fn_c_try_link "$LINENO"; then :
12272 eval $cacheid=yes
12273 else
12274 eval $cacheid=no
12275 fi
12276 rm -f core conftest.err conftest.$ac_objext \
12277 conftest$ac_exeext conftest.$ac_ext
12278 fi
12279
12280
12281 CFLAGS="$xorg_testset_save_CFLAGS"
12282
12283 eval supported=\$$cacheid
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12285 $as_echo "$supported" >&6; }
12286 if test "$supported" = "yes" ; then
12287 BASE_CFLAGS="$BASE_CFLAGS -Wall"
12288 found="yes"
12289 fi
12290 fi
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306 xorg_testset_save_CFLAGS="$CFLAGS"
12307
12308 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12309 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12311 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12312 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12313 $as_echo_n "(cached) " >&6
12314 else
12315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12316 /* end confdefs.h. */
12317 int i;
12318 _ACEOF
12319 if ac_fn_c_try_compile "$LINENO"; then :
12320 xorg_cv_cc_flag_unknown_warning_option=yes
12321 else
12322 xorg_cv_cc_flag_unknown_warning_option=no
12323 fi
12324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12325 fi
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12327 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12328 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12329 CFLAGS="$xorg_testset_save_CFLAGS"
12330 fi
12331
12332 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12335 fi
12336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12338 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12339 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12340 $as_echo_n "(cached) " >&6
12341 else
12342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343 /* end confdefs.h. */
12344 int i;
12345 _ACEOF
12346 if ac_fn_c_try_compile "$LINENO"; then :
12347 xorg_cv_cc_flag_unused_command_line_argument=yes
12348 else
12349 xorg_cv_cc_flag_unused_command_line_argument=no
12350 fi
12351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12352 fi
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12354 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12355 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12356 CFLAGS="$xorg_testset_save_CFLAGS"
12357 fi
12358
12359 found="no"
12360
12361 if test $found = "no" ; then
12362 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12363 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12364 fi
12365
12366 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12368 fi
12369
12370 CFLAGS="$CFLAGS -Wpointer-arith"
12371
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12373 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12374 cacheid=xorg_cv_cc_flag__Wpointer_arith
12375 if eval \${$cacheid+:} false; then :
12376 $as_echo_n "(cached) " >&6
12377 else
12378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12379 /* end confdefs.h. */
12380 int i;
12381 int
12382 main ()
12383 {
12384
12385 ;
12386 return 0;
12387 }
12388 _ACEOF
12389 if ac_fn_c_try_link "$LINENO"; then :
12390 eval $cacheid=yes
12391 else
12392 eval $cacheid=no
12393 fi
12394 rm -f core conftest.err conftest.$ac_objext \
12395 conftest$ac_exeext conftest.$ac_ext
12396 fi
12397
12398
12399 CFLAGS="$xorg_testset_save_CFLAGS"
12400
12401 eval supported=\$$cacheid
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12403 $as_echo "$supported" >&6; }
12404 if test "$supported" = "yes" ; then
12405 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12406 found="yes"
12407 fi
12408 fi
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424 xorg_testset_save_CFLAGS="$CFLAGS"
12425
12426 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12427 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12429 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12430 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12431 $as_echo_n "(cached) " >&6
12432 else
12433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12434 /* end confdefs.h. */
12435 int i;
12436 _ACEOF
12437 if ac_fn_c_try_compile "$LINENO"; then :
12438 xorg_cv_cc_flag_unknown_warning_option=yes
12439 else
12440 xorg_cv_cc_flag_unknown_warning_option=no
12441 fi
12442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12443 fi
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12445 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12446 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12447 CFLAGS="$xorg_testset_save_CFLAGS"
12448 fi
12449
12450 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12451 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12452 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12453 fi
12454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12456 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12457 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12458 $as_echo_n "(cached) " >&6
12459 else
12460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12461 /* end confdefs.h. */
12462 int i;
12463 _ACEOF
12464 if ac_fn_c_try_compile "$LINENO"; then :
12465 xorg_cv_cc_flag_unused_command_line_argument=yes
12466 else
12467 xorg_cv_cc_flag_unused_command_line_argument=no
12468 fi
12469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12470 fi
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12472 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12473 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12474 CFLAGS="$xorg_testset_save_CFLAGS"
12475 fi
12476
12477 found="no"
12478
12479 if test $found = "no" ; then
12480 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12481 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12482 fi
12483
12484 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12486 fi
12487
12488 CFLAGS="$CFLAGS -Wmissing-declarations"
12489
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12491 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12492 cacheid=xorg_cv_cc_flag__Wmissing_declarations
12493 if eval \${$cacheid+:} false; then :
12494 $as_echo_n "(cached) " >&6
12495 else
12496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12497 /* end confdefs.h. */
12498 int i;
12499 int
12500 main ()
12501 {
12502
12503 ;
12504 return 0;
12505 }
12506 _ACEOF
12507 if ac_fn_c_try_link "$LINENO"; then :
12508 eval $cacheid=yes
12509 else
12510 eval $cacheid=no
12511 fi
12512 rm -f core conftest.err conftest.$ac_objext \
12513 conftest$ac_exeext conftest.$ac_ext
12514 fi
12515
12516
12517 CFLAGS="$xorg_testset_save_CFLAGS"
12518
12519 eval supported=\$$cacheid
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12521 $as_echo "$supported" >&6; }
12522 if test "$supported" = "yes" ; then
12523 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12524 found="yes"
12525 fi
12526 fi
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542 xorg_testset_save_CFLAGS="$CFLAGS"
12543
12544 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12545 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12547 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12548 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12549 $as_echo_n "(cached) " >&6
12550 else
12551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12552 /* end confdefs.h. */
12553 int i;
12554 _ACEOF
12555 if ac_fn_c_try_compile "$LINENO"; then :
12556 xorg_cv_cc_flag_unknown_warning_option=yes
12557 else
12558 xorg_cv_cc_flag_unknown_warning_option=no
12559 fi
12560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12561 fi
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12563 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12564 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12565 CFLAGS="$xorg_testset_save_CFLAGS"
12566 fi
12567
12568 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12570 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12571 fi
12572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12574 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12575 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12576 $as_echo_n "(cached) " >&6
12577 else
12578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12579 /* end confdefs.h. */
12580 int i;
12581 _ACEOF
12582 if ac_fn_c_try_compile "$LINENO"; then :
12583 xorg_cv_cc_flag_unused_command_line_argument=yes
12584 else
12585 xorg_cv_cc_flag_unused_command_line_argument=no
12586 fi
12587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12588 fi
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12590 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12591 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12592 CFLAGS="$xorg_testset_save_CFLAGS"
12593 fi
12594
12595 found="no"
12596
12597 if test $found = "no" ; then
12598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12599 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12600 fi
12601
12602 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12604 fi
12605
12606 CFLAGS="$CFLAGS -Wformat=2"
12607
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12609 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12610 cacheid=xorg_cv_cc_flag__Wformat_2
12611 if eval \${$cacheid+:} false; then :
12612 $as_echo_n "(cached) " >&6
12613 else
12614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12615 /* end confdefs.h. */
12616 int i;
12617 int
12618 main ()
12619 {
12620
12621 ;
12622 return 0;
12623 }
12624 _ACEOF
12625 if ac_fn_c_try_link "$LINENO"; then :
12626 eval $cacheid=yes
12627 else
12628 eval $cacheid=no
12629 fi
12630 rm -f core conftest.err conftest.$ac_objext \
12631 conftest$ac_exeext conftest.$ac_ext
12632 fi
12633
12634
12635 CFLAGS="$xorg_testset_save_CFLAGS"
12636
12637 eval supported=\$$cacheid
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12639 $as_echo "$supported" >&6; }
12640 if test "$supported" = "yes" ; then
12641 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12642 found="yes"
12643 fi
12644 fi
12645
12646 if test $found = "no" ; then
12647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12649 fi
12650
12651 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12653 fi
12654
12655 CFLAGS="$CFLAGS -Wformat"
12656
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12658 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12659 cacheid=xorg_cv_cc_flag__Wformat
12660 if eval \${$cacheid+:} false; then :
12661 $as_echo_n "(cached) " >&6
12662 else
12663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12664 /* end confdefs.h. */
12665 int i;
12666 int
12667 main ()
12668 {
12669
12670 ;
12671 return 0;
12672 }
12673 _ACEOF
12674 if ac_fn_c_try_link "$LINENO"; then :
12675 eval $cacheid=yes
12676 else
12677 eval $cacheid=no
12678 fi
12679 rm -f core conftest.err conftest.$ac_objext \
12680 conftest$ac_exeext conftest.$ac_ext
12681 fi
12682
12683
12684 CFLAGS="$xorg_testset_save_CFLAGS"
12685
12686 eval supported=\$$cacheid
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12688 $as_echo "$supported" >&6; }
12689 if test "$supported" = "yes" ; then
12690 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12691 found="yes"
12692 fi
12693 fi
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711 xorg_testset_save_CFLAGS="$CFLAGS"
12712
12713 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12716 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12717 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12718 $as_echo_n "(cached) " >&6
12719 else
12720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12721 /* end confdefs.h. */
12722 int i;
12723 _ACEOF
12724 if ac_fn_c_try_compile "$LINENO"; then :
12725 xorg_cv_cc_flag_unknown_warning_option=yes
12726 else
12727 xorg_cv_cc_flag_unknown_warning_option=no
12728 fi
12729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12730 fi
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12732 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12733 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12734 CFLAGS="$xorg_testset_save_CFLAGS"
12735 fi
12736
12737 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12738 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12739 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12740 fi
12741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12743 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12744 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12745 $as_echo_n "(cached) " >&6
12746 else
12747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12748 /* end confdefs.h. */
12749 int i;
12750 _ACEOF
12751 if ac_fn_c_try_compile "$LINENO"; then :
12752 xorg_cv_cc_flag_unused_command_line_argument=yes
12753 else
12754 xorg_cv_cc_flag_unused_command_line_argument=no
12755 fi
12756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12757 fi
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12759 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12760 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12761 CFLAGS="$xorg_testset_save_CFLAGS"
12762 fi
12763
12764 found="no"
12765
12766 if test $found = "no" ; then
12767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12769 fi
12770
12771 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12773 fi
12774
12775 CFLAGS="$CFLAGS -Wstrict-prototypes"
12776
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12778 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12779 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12780 if eval \${$cacheid+:} false; then :
12781 $as_echo_n "(cached) " >&6
12782 else
12783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12784 /* end confdefs.h. */
12785 int i;
12786 int
12787 main ()
12788 {
12789
12790 ;
12791 return 0;
12792 }
12793 _ACEOF
12794 if ac_fn_c_try_link "$LINENO"; then :
12795 eval $cacheid=yes
12796 else
12797 eval $cacheid=no
12798 fi
12799 rm -f core conftest.err conftest.$ac_objext \
12800 conftest$ac_exeext conftest.$ac_ext
12801 fi
12802
12803
12804 CFLAGS="$xorg_testset_save_CFLAGS"
12805
12806 eval supported=\$$cacheid
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12808 $as_echo "$supported" >&6; }
12809 if test "$supported" = "yes" ; then
12810 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12811 found="yes"
12812 fi
12813 fi
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829 xorg_testset_save_CFLAGS="$CFLAGS"
12830
12831 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12834 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12835 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12836 $as_echo_n "(cached) " >&6
12837 else
12838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12839 /* end confdefs.h. */
12840 int i;
12841 _ACEOF
12842 if ac_fn_c_try_compile "$LINENO"; then :
12843 xorg_cv_cc_flag_unknown_warning_option=yes
12844 else
12845 xorg_cv_cc_flag_unknown_warning_option=no
12846 fi
12847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12848 fi
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12850 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12851 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12852 CFLAGS="$xorg_testset_save_CFLAGS"
12853 fi
12854
12855 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12858 fi
12859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12861 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12862 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12863 $as_echo_n "(cached) " >&6
12864 else
12865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12866 /* end confdefs.h. */
12867 int i;
12868 _ACEOF
12869 if ac_fn_c_try_compile "$LINENO"; then :
12870 xorg_cv_cc_flag_unused_command_line_argument=yes
12871 else
12872 xorg_cv_cc_flag_unused_command_line_argument=no
12873 fi
12874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12875 fi
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12877 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12878 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12879 CFLAGS="$xorg_testset_save_CFLAGS"
12880 fi
12881
12882 found="no"
12883
12884 if test $found = "no" ; then
12885 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12886 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12887 fi
12888
12889 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12891 fi
12892
12893 CFLAGS="$CFLAGS -Wmissing-prototypes"
12894
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12896 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12897 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12898 if eval \${$cacheid+:} false; then :
12899 $as_echo_n "(cached) " >&6
12900 else
12901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12902 /* end confdefs.h. */
12903 int i;
12904 int
12905 main ()
12906 {
12907
12908 ;
12909 return 0;
12910 }
12911 _ACEOF
12912 if ac_fn_c_try_link "$LINENO"; then :
12913 eval $cacheid=yes
12914 else
12915 eval $cacheid=no
12916 fi
12917 rm -f core conftest.err conftest.$ac_objext \
12918 conftest$ac_exeext conftest.$ac_ext
12919 fi
12920
12921
12922 CFLAGS="$xorg_testset_save_CFLAGS"
12923
12924 eval supported=\$$cacheid
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12926 $as_echo "$supported" >&6; }
12927 if test "$supported" = "yes" ; then
12928 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12929 found="yes"
12930 fi
12931 fi
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947 xorg_testset_save_CFLAGS="$CFLAGS"
12948
12949 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12952 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12953 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12954 $as_echo_n "(cached) " >&6
12955 else
12956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12957 /* end confdefs.h. */
12958 int i;
12959 _ACEOF
12960 if ac_fn_c_try_compile "$LINENO"; then :
12961 xorg_cv_cc_flag_unknown_warning_option=yes
12962 else
12963 xorg_cv_cc_flag_unknown_warning_option=no
12964 fi
12965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12966 fi
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12968 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12969 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12970 CFLAGS="$xorg_testset_save_CFLAGS"
12971 fi
12972
12973 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12976 fi
12977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12979 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12980 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12981 $as_echo_n "(cached) " >&6
12982 else
12983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12984 /* end confdefs.h. */
12985 int i;
12986 _ACEOF
12987 if ac_fn_c_try_compile "$LINENO"; then :
12988 xorg_cv_cc_flag_unused_command_line_argument=yes
12989 else
12990 xorg_cv_cc_flag_unused_command_line_argument=no
12991 fi
12992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12993 fi
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12995 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12996 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12997 CFLAGS="$xorg_testset_save_CFLAGS"
12998 fi
12999
13000 found="no"
13001
13002 if test $found = "no" ; then
13003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13004 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13005 fi
13006
13007 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13009 fi
13010
13011 CFLAGS="$CFLAGS -Wnested-externs"
13012
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13014 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13015 cacheid=xorg_cv_cc_flag__Wnested_externs
13016 if eval \${$cacheid+:} false; then :
13017 $as_echo_n "(cached) " >&6
13018 else
13019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13020 /* end confdefs.h. */
13021 int i;
13022 int
13023 main ()
13024 {
13025
13026 ;
13027 return 0;
13028 }
13029 _ACEOF
13030 if ac_fn_c_try_link "$LINENO"; then :
13031 eval $cacheid=yes
13032 else
13033 eval $cacheid=no
13034 fi
13035 rm -f core conftest.err conftest.$ac_objext \
13036 conftest$ac_exeext conftest.$ac_ext
13037 fi
13038
13039
13040 CFLAGS="$xorg_testset_save_CFLAGS"
13041
13042 eval supported=\$$cacheid
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13044 $as_echo "$supported" >&6; }
13045 if test "$supported" = "yes" ; then
13046 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13047 found="yes"
13048 fi
13049 fi
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065 xorg_testset_save_CFLAGS="$CFLAGS"
13066
13067 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13068 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13070 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13071 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13072 $as_echo_n "(cached) " >&6
13073 else
13074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13075 /* end confdefs.h. */
13076 int i;
13077 _ACEOF
13078 if ac_fn_c_try_compile "$LINENO"; then :
13079 xorg_cv_cc_flag_unknown_warning_option=yes
13080 else
13081 xorg_cv_cc_flag_unknown_warning_option=no
13082 fi
13083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13084 fi
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13086 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13087 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13088 CFLAGS="$xorg_testset_save_CFLAGS"
13089 fi
13090
13091 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13094 fi
13095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13097 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13098 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13099 $as_echo_n "(cached) " >&6
13100 else
13101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13102 /* end confdefs.h. */
13103 int i;
13104 _ACEOF
13105 if ac_fn_c_try_compile "$LINENO"; then :
13106 xorg_cv_cc_flag_unused_command_line_argument=yes
13107 else
13108 xorg_cv_cc_flag_unused_command_line_argument=no
13109 fi
13110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13111 fi
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13113 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13114 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13115 CFLAGS="$xorg_testset_save_CFLAGS"
13116 fi
13117
13118 found="no"
13119
13120 if test $found = "no" ; then
13121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13122 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13123 fi
13124
13125 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13127 fi
13128
13129 CFLAGS="$CFLAGS -Wbad-function-cast"
13130
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13132 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13133 cacheid=xorg_cv_cc_flag__Wbad_function_cast
13134 if eval \${$cacheid+:} false; then :
13135 $as_echo_n "(cached) " >&6
13136 else
13137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13138 /* end confdefs.h. */
13139 int i;
13140 int
13141 main ()
13142 {
13143
13144 ;
13145 return 0;
13146 }
13147 _ACEOF
13148 if ac_fn_c_try_link "$LINENO"; then :
13149 eval $cacheid=yes
13150 else
13151 eval $cacheid=no
13152 fi
13153 rm -f core conftest.err conftest.$ac_objext \
13154 conftest$ac_exeext conftest.$ac_ext
13155 fi
13156
13157
13158 CFLAGS="$xorg_testset_save_CFLAGS"
13159
13160 eval supported=\$$cacheid
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13162 $as_echo "$supported" >&6; }
13163 if test "$supported" = "yes" ; then
13164 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13165 found="yes"
13166 fi
13167 fi
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183 xorg_testset_save_CFLAGS="$CFLAGS"
13184
13185 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13188 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13189 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13190 $as_echo_n "(cached) " >&6
13191 else
13192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13193 /* end confdefs.h. */
13194 int i;
13195 _ACEOF
13196 if ac_fn_c_try_compile "$LINENO"; then :
13197 xorg_cv_cc_flag_unknown_warning_option=yes
13198 else
13199 xorg_cv_cc_flag_unknown_warning_option=no
13200 fi
13201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13202 fi
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13204 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13205 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13206 CFLAGS="$xorg_testset_save_CFLAGS"
13207 fi
13208
13209 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13212 fi
13213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13215 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13216 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13217 $as_echo_n "(cached) " >&6
13218 else
13219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13220 /* end confdefs.h. */
13221 int i;
13222 _ACEOF
13223 if ac_fn_c_try_compile "$LINENO"; then :
13224 xorg_cv_cc_flag_unused_command_line_argument=yes
13225 else
13226 xorg_cv_cc_flag_unused_command_line_argument=no
13227 fi
13228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13229 fi
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13231 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13232 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13233 CFLAGS="$xorg_testset_save_CFLAGS"
13234 fi
13235
13236 found="no"
13237
13238 if test $found = "no" ; then
13239 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13241 fi
13242
13243 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13245 fi
13246
13247 CFLAGS="$CFLAGS -Wold-style-definition"
13248
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13250 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13251 cacheid=xorg_cv_cc_flag__Wold_style_definition
13252 if eval \${$cacheid+:} false; then :
13253 $as_echo_n "(cached) " >&6
13254 else
13255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13256 /* end confdefs.h. */
13257 int i;
13258 int
13259 main ()
13260 {
13261
13262 ;
13263 return 0;
13264 }
13265 _ACEOF
13266 if ac_fn_c_try_link "$LINENO"; then :
13267 eval $cacheid=yes
13268 else
13269 eval $cacheid=no
13270 fi
13271 rm -f core conftest.err conftest.$ac_objext \
13272 conftest$ac_exeext conftest.$ac_ext
13273 fi
13274
13275
13276 CFLAGS="$xorg_testset_save_CFLAGS"
13277
13278 eval supported=\$$cacheid
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13280 $as_echo "$supported" >&6; }
13281 if test "$supported" = "yes" ; then
13282 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13283 found="yes"
13284 fi
13285 fi
13286
13287 if test $found = "no" ; then
13288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13290 fi
13291
13292 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13294 fi
13295
13296 CFLAGS="$CFLAGS -fd"
13297
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13299 $as_echo_n "checking if $CC supports -fd... " >&6; }
13300 cacheid=xorg_cv_cc_flag__fd
13301 if eval \${$cacheid+:} false; then :
13302 $as_echo_n "(cached) " >&6
13303 else
13304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13305 /* end confdefs.h. */
13306 int i;
13307 int
13308 main ()
13309 {
13310
13311 ;
13312 return 0;
13313 }
13314 _ACEOF
13315 if ac_fn_c_try_link "$LINENO"; then :
13316 eval $cacheid=yes
13317 else
13318 eval $cacheid=no
13319 fi
13320 rm -f core conftest.err conftest.$ac_objext \
13321 conftest$ac_exeext conftest.$ac_ext
13322 fi
13323
13324
13325 CFLAGS="$xorg_testset_save_CFLAGS"
13326
13327 eval supported=\$$cacheid
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13329 $as_echo "$supported" >&6; }
13330 if test "$supported" = "yes" ; then
13331 BASE_CFLAGS="$BASE_CFLAGS -fd"
13332 found="yes"
13333 fi
13334 fi
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350 xorg_testset_save_CFLAGS="$CFLAGS"
13351
13352 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13353 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13355 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13356 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13357 $as_echo_n "(cached) " >&6
13358 else
13359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13360 /* end confdefs.h. */
13361 int i;
13362 _ACEOF
13363 if ac_fn_c_try_compile "$LINENO"; then :
13364 xorg_cv_cc_flag_unknown_warning_option=yes
13365 else
13366 xorg_cv_cc_flag_unknown_warning_option=no
13367 fi
13368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13369 fi
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13371 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13372 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13373 CFLAGS="$xorg_testset_save_CFLAGS"
13374 fi
13375
13376 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13378 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13379 fi
13380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13382 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13383 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13384 $as_echo_n "(cached) " >&6
13385 else
13386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13387 /* end confdefs.h. */
13388 int i;
13389 _ACEOF
13390 if ac_fn_c_try_compile "$LINENO"; then :
13391 xorg_cv_cc_flag_unused_command_line_argument=yes
13392 else
13393 xorg_cv_cc_flag_unused_command_line_argument=no
13394 fi
13395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13396 fi
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13398 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13399 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13400 CFLAGS="$xorg_testset_save_CFLAGS"
13401 fi
13402
13403 found="no"
13404
13405 if test $found = "no" ; then
13406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13408 fi
13409
13410 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13412 fi
13413
13414 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13415
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13417 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13418 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13419 if eval \${$cacheid+:} false; then :
13420 $as_echo_n "(cached) " >&6
13421 else
13422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13423 /* end confdefs.h. */
13424 int i;
13425 int
13426 main ()
13427 {
13428
13429 ;
13430 return 0;
13431 }
13432 _ACEOF
13433 if ac_fn_c_try_link "$LINENO"; then :
13434 eval $cacheid=yes
13435 else
13436 eval $cacheid=no
13437 fi
13438 rm -f core conftest.err conftest.$ac_objext \
13439 conftest$ac_exeext conftest.$ac_ext
13440 fi
13441
13442
13443 CFLAGS="$xorg_testset_save_CFLAGS"
13444
13445 eval supported=\$$cacheid
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13447 $as_echo "$supported" >&6; }
13448 if test "$supported" = "yes" ; then
13449 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13450 found="yes"
13451 fi
13452 fi
13453
13454
13455
13456
13457
13458 # This chunk adds additional warnings that could catch undesired effects.
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472 xorg_testset_save_CFLAGS="$CFLAGS"
13473
13474 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13475 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13477 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13478 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13479 $as_echo_n "(cached) " >&6
13480 else
13481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13482 /* end confdefs.h. */
13483 int i;
13484 _ACEOF
13485 if ac_fn_c_try_compile "$LINENO"; then :
13486 xorg_cv_cc_flag_unknown_warning_option=yes
13487 else
13488 xorg_cv_cc_flag_unknown_warning_option=no
13489 fi
13490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13491 fi
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13493 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13494 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13495 CFLAGS="$xorg_testset_save_CFLAGS"
13496 fi
13497
13498 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13500 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13501 fi
13502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13504 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13505 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13506 $as_echo_n "(cached) " >&6
13507 else
13508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13509 /* end confdefs.h. */
13510 int i;
13511 _ACEOF
13512 if ac_fn_c_try_compile "$LINENO"; then :
13513 xorg_cv_cc_flag_unused_command_line_argument=yes
13514 else
13515 xorg_cv_cc_flag_unused_command_line_argument=no
13516 fi
13517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13518 fi
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13520 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13521 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13522 CFLAGS="$xorg_testset_save_CFLAGS"
13523 fi
13524
13525 found="no"
13526
13527 if test $found = "no" ; then
13528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13530 fi
13531
13532 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13534 fi
13535
13536 CFLAGS="$CFLAGS -Wunused"
13537
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13539 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13540 cacheid=xorg_cv_cc_flag__Wunused
13541 if eval \${$cacheid+:} false; then :
13542 $as_echo_n "(cached) " >&6
13543 else
13544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13545 /* end confdefs.h. */
13546 int i;
13547 int
13548 main ()
13549 {
13550
13551 ;
13552 return 0;
13553 }
13554 _ACEOF
13555 if ac_fn_c_try_link "$LINENO"; then :
13556 eval $cacheid=yes
13557 else
13558 eval $cacheid=no
13559 fi
13560 rm -f core conftest.err conftest.$ac_objext \
13561 conftest$ac_exeext conftest.$ac_ext
13562 fi
13563
13564
13565 CFLAGS="$xorg_testset_save_CFLAGS"
13566
13567 eval supported=\$$cacheid
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13569 $as_echo "$supported" >&6; }
13570 if test "$supported" = "yes" ; then
13571 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13572 found="yes"
13573 fi
13574 fi
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590 xorg_testset_save_CFLAGS="$CFLAGS"
13591
13592 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13595 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13596 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13597 $as_echo_n "(cached) " >&6
13598 else
13599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13600 /* end confdefs.h. */
13601 int i;
13602 _ACEOF
13603 if ac_fn_c_try_compile "$LINENO"; then :
13604 xorg_cv_cc_flag_unknown_warning_option=yes
13605 else
13606 xorg_cv_cc_flag_unknown_warning_option=no
13607 fi
13608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13609 fi
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13611 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13612 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13613 CFLAGS="$xorg_testset_save_CFLAGS"
13614 fi
13615
13616 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13618 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13619 fi
13620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13622 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13623 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13624 $as_echo_n "(cached) " >&6
13625 else
13626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13627 /* end confdefs.h. */
13628 int i;
13629 _ACEOF
13630 if ac_fn_c_try_compile "$LINENO"; then :
13631 xorg_cv_cc_flag_unused_command_line_argument=yes
13632 else
13633 xorg_cv_cc_flag_unused_command_line_argument=no
13634 fi
13635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13636 fi
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13638 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13639 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13640 CFLAGS="$xorg_testset_save_CFLAGS"
13641 fi
13642
13643 found="no"
13644
13645 if test $found = "no" ; then
13646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13647 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13648 fi
13649
13650 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13652 fi
13653
13654 CFLAGS="$CFLAGS -Wuninitialized"
13655
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13657 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13658 cacheid=xorg_cv_cc_flag__Wuninitialized
13659 if eval \${$cacheid+:} false; then :
13660 $as_echo_n "(cached) " >&6
13661 else
13662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13663 /* end confdefs.h. */
13664 int i;
13665 int
13666 main ()
13667 {
13668
13669 ;
13670 return 0;
13671 }
13672 _ACEOF
13673 if ac_fn_c_try_link "$LINENO"; then :
13674 eval $cacheid=yes
13675 else
13676 eval $cacheid=no
13677 fi
13678 rm -f core conftest.err conftest.$ac_objext \
13679 conftest$ac_exeext conftest.$ac_ext
13680 fi
13681
13682
13683 CFLAGS="$xorg_testset_save_CFLAGS"
13684
13685 eval supported=\$$cacheid
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13687 $as_echo "$supported" >&6; }
13688 if test "$supported" = "yes" ; then
13689 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13690 found="yes"
13691 fi
13692 fi
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708 xorg_testset_save_CFLAGS="$CFLAGS"
13709
13710 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13711 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13713 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13714 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13715 $as_echo_n "(cached) " >&6
13716 else
13717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13718 /* end confdefs.h. */
13719 int i;
13720 _ACEOF
13721 if ac_fn_c_try_compile "$LINENO"; then :
13722 xorg_cv_cc_flag_unknown_warning_option=yes
13723 else
13724 xorg_cv_cc_flag_unknown_warning_option=no
13725 fi
13726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13727 fi
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13729 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13730 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13731 CFLAGS="$xorg_testset_save_CFLAGS"
13732 fi
13733
13734 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13735 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13736 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13737 fi
13738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13740 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13741 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13742 $as_echo_n "(cached) " >&6
13743 else
13744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13745 /* end confdefs.h. */
13746 int i;
13747 _ACEOF
13748 if ac_fn_c_try_compile "$LINENO"; then :
13749 xorg_cv_cc_flag_unused_command_line_argument=yes
13750 else
13751 xorg_cv_cc_flag_unused_command_line_argument=no
13752 fi
13753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13754 fi
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13756 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13757 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13758 CFLAGS="$xorg_testset_save_CFLAGS"
13759 fi
13760
13761 found="no"
13762
13763 if test $found = "no" ; then
13764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13765 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13766 fi
13767
13768 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13770 fi
13771
13772 CFLAGS="$CFLAGS -Wshadow"
13773
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13775 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13776 cacheid=xorg_cv_cc_flag__Wshadow
13777 if eval \${$cacheid+:} false; then :
13778 $as_echo_n "(cached) " >&6
13779 else
13780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13781 /* end confdefs.h. */
13782 int i;
13783 int
13784 main ()
13785 {
13786
13787 ;
13788 return 0;
13789 }
13790 _ACEOF
13791 if ac_fn_c_try_link "$LINENO"; then :
13792 eval $cacheid=yes
13793 else
13794 eval $cacheid=no
13795 fi
13796 rm -f core conftest.err conftest.$ac_objext \
13797 conftest$ac_exeext conftest.$ac_ext
13798 fi
13799
13800
13801 CFLAGS="$xorg_testset_save_CFLAGS"
13802
13803 eval supported=\$$cacheid
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13805 $as_echo "$supported" >&6; }
13806 if test "$supported" = "yes" ; then
13807 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13808 found="yes"
13809 fi
13810 fi
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826 xorg_testset_save_CFLAGS="$CFLAGS"
13827
13828 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13829 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13831 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13832 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13833 $as_echo_n "(cached) " >&6
13834 else
13835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13836 /* end confdefs.h. */
13837 int i;
13838 _ACEOF
13839 if ac_fn_c_try_compile "$LINENO"; then :
13840 xorg_cv_cc_flag_unknown_warning_option=yes
13841 else
13842 xorg_cv_cc_flag_unknown_warning_option=no
13843 fi
13844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13845 fi
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13847 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13848 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13849 CFLAGS="$xorg_testset_save_CFLAGS"
13850 fi
13851
13852 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13855 fi
13856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13858 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13859 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13860 $as_echo_n "(cached) " >&6
13861 else
13862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13863 /* end confdefs.h. */
13864 int i;
13865 _ACEOF
13866 if ac_fn_c_try_compile "$LINENO"; then :
13867 xorg_cv_cc_flag_unused_command_line_argument=yes
13868 else
13869 xorg_cv_cc_flag_unused_command_line_argument=no
13870 fi
13871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13872 fi
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13874 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13875 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13876 CFLAGS="$xorg_testset_save_CFLAGS"
13877 fi
13878
13879 found="no"
13880
13881 if test $found = "no" ; then
13882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13883 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13884 fi
13885
13886 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13888 fi
13889
13890 CFLAGS="$CFLAGS -Wmissing-noreturn"
13891
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13893 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13894 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13895 if eval \${$cacheid+:} false; then :
13896 $as_echo_n "(cached) " >&6
13897 else
13898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13899 /* end confdefs.h. */
13900 int i;
13901 int
13902 main ()
13903 {
13904
13905 ;
13906 return 0;
13907 }
13908 _ACEOF
13909 if ac_fn_c_try_link "$LINENO"; then :
13910 eval $cacheid=yes
13911 else
13912 eval $cacheid=no
13913 fi
13914 rm -f core conftest.err conftest.$ac_objext \
13915 conftest$ac_exeext conftest.$ac_ext
13916 fi
13917
13918
13919 CFLAGS="$xorg_testset_save_CFLAGS"
13920
13921 eval supported=\$$cacheid
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13923 $as_echo "$supported" >&6; }
13924 if test "$supported" = "yes" ; then
13925 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13926 found="yes"
13927 fi
13928 fi
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944 xorg_testset_save_CFLAGS="$CFLAGS"
13945
13946 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13949 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13950 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13951 $as_echo_n "(cached) " >&6
13952 else
13953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13954 /* end confdefs.h. */
13955 int i;
13956 _ACEOF
13957 if ac_fn_c_try_compile "$LINENO"; then :
13958 xorg_cv_cc_flag_unknown_warning_option=yes
13959 else
13960 xorg_cv_cc_flag_unknown_warning_option=no
13961 fi
13962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13963 fi
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13965 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13966 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13967 CFLAGS="$xorg_testset_save_CFLAGS"
13968 fi
13969
13970 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13971 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13972 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13973 fi
13974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13976 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13977 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13978 $as_echo_n "(cached) " >&6
13979 else
13980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13981 /* end confdefs.h. */
13982 int i;
13983 _ACEOF
13984 if ac_fn_c_try_compile "$LINENO"; then :
13985 xorg_cv_cc_flag_unused_command_line_argument=yes
13986 else
13987 xorg_cv_cc_flag_unused_command_line_argument=no
13988 fi
13989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13990 fi
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13992 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13993 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13994 CFLAGS="$xorg_testset_save_CFLAGS"
13995 fi
13996
13997 found="no"
13998
13999 if test $found = "no" ; then
14000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14002 fi
14003
14004 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14006 fi
14007
14008 CFLAGS="$CFLAGS -Wmissing-format-attribute"
14009
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14011 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14012 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14013 if eval \${$cacheid+:} false; then :
14014 $as_echo_n "(cached) " >&6
14015 else
14016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14017 /* end confdefs.h. */
14018 int i;
14019 int
14020 main ()
14021 {
14022
14023 ;
14024 return 0;
14025 }
14026 _ACEOF
14027 if ac_fn_c_try_link "$LINENO"; then :
14028 eval $cacheid=yes
14029 else
14030 eval $cacheid=no
14031 fi
14032 rm -f core conftest.err conftest.$ac_objext \
14033 conftest$ac_exeext conftest.$ac_ext
14034 fi
14035
14036
14037 CFLAGS="$xorg_testset_save_CFLAGS"
14038
14039 eval supported=\$$cacheid
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14041 $as_echo "$supported" >&6; }
14042 if test "$supported" = "yes" ; then
14043 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14044 found="yes"
14045 fi
14046 fi
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062 xorg_testset_save_CFLAGS="$CFLAGS"
14063
14064 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14065 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14067 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14068 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14069 $as_echo_n "(cached) " >&6
14070 else
14071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14072 /* end confdefs.h. */
14073 int i;
14074 _ACEOF
14075 if ac_fn_c_try_compile "$LINENO"; then :
14076 xorg_cv_cc_flag_unknown_warning_option=yes
14077 else
14078 xorg_cv_cc_flag_unknown_warning_option=no
14079 fi
14080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14081 fi
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14083 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14084 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14085 CFLAGS="$xorg_testset_save_CFLAGS"
14086 fi
14087
14088 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14090 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14091 fi
14092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14094 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14095 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14096 $as_echo_n "(cached) " >&6
14097 else
14098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14099 /* end confdefs.h. */
14100 int i;
14101 _ACEOF
14102 if ac_fn_c_try_compile "$LINENO"; then :
14103 xorg_cv_cc_flag_unused_command_line_argument=yes
14104 else
14105 xorg_cv_cc_flag_unused_command_line_argument=no
14106 fi
14107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14108 fi
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14110 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14111 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14112 CFLAGS="$xorg_testset_save_CFLAGS"
14113 fi
14114
14115 found="no"
14116
14117 if test $found = "no" ; then
14118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14120 fi
14121
14122 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14124 fi
14125
14126 CFLAGS="$CFLAGS -Wredundant-decls"
14127
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14129 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14130 cacheid=xorg_cv_cc_flag__Wredundant_decls
14131 if eval \${$cacheid+:} false; then :
14132 $as_echo_n "(cached) " >&6
14133 else
14134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14135 /* end confdefs.h. */
14136 int i;
14137 int
14138 main ()
14139 {
14140
14141 ;
14142 return 0;
14143 }
14144 _ACEOF
14145 if ac_fn_c_try_link "$LINENO"; then :
14146 eval $cacheid=yes
14147 else
14148 eval $cacheid=no
14149 fi
14150 rm -f core conftest.err conftest.$ac_objext \
14151 conftest$ac_exeext conftest.$ac_ext
14152 fi
14153
14154
14155 CFLAGS="$xorg_testset_save_CFLAGS"
14156
14157 eval supported=\$$cacheid
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14159 $as_echo "$supported" >&6; }
14160 if test "$supported" = "yes" ; then
14161 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14162 found="yes"
14163 fi
14164 fi
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180 xorg_testset_save_CFLAGS="$CFLAGS"
14181
14182 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14185 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14186 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14187 $as_echo_n "(cached) " >&6
14188 else
14189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14190 /* end confdefs.h. */
14191 int i;
14192 _ACEOF
14193 if ac_fn_c_try_compile "$LINENO"; then :
14194 xorg_cv_cc_flag_unknown_warning_option=yes
14195 else
14196 xorg_cv_cc_flag_unknown_warning_option=no
14197 fi
14198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14199 fi
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14201 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14202 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14203 CFLAGS="$xorg_testset_save_CFLAGS"
14204 fi
14205
14206 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14209 fi
14210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14212 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14213 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14214 $as_echo_n "(cached) " >&6
14215 else
14216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14217 /* end confdefs.h. */
14218 int i;
14219 _ACEOF
14220 if ac_fn_c_try_compile "$LINENO"; then :
14221 xorg_cv_cc_flag_unused_command_line_argument=yes
14222 else
14223 xorg_cv_cc_flag_unused_command_line_argument=no
14224 fi
14225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14226 fi
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14228 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14229 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14230 CFLAGS="$xorg_testset_save_CFLAGS"
14231 fi
14232
14233 found="no"
14234
14235 if test $found = "no" ; then
14236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14238 fi
14239
14240 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14242 fi
14243
14244 CFLAGS="$CFLAGS -Wlogical-op"
14245
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14247 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14248 cacheid=xorg_cv_cc_flag__Wlogical_op
14249 if eval \${$cacheid+:} false; then :
14250 $as_echo_n "(cached) " >&6
14251 else
14252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14253 /* end confdefs.h. */
14254 int i;
14255 int
14256 main ()
14257 {
14258
14259 ;
14260 return 0;
14261 }
14262 _ACEOF
14263 if ac_fn_c_try_link "$LINENO"; then :
14264 eval $cacheid=yes
14265 else
14266 eval $cacheid=no
14267 fi
14268 rm -f core conftest.err conftest.$ac_objext \
14269 conftest$ac_exeext conftest.$ac_ext
14270 fi
14271
14272
14273 CFLAGS="$xorg_testset_save_CFLAGS"
14274
14275 eval supported=\$$cacheid
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14277 $as_echo "$supported" >&6; }
14278 if test "$supported" = "yes" ; then
14279 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14280 found="yes"
14281 fi
14282 fi
14283
14284
14285
14286 # These are currently disabled because they are noisy. They will be enabled
14287 # in the future once the codebase is sufficiently modernized to silence
14288 # them. For now, I don't want them to drown out the other warnings.
14289 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14290 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14291 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14292
14293 # Turn some warnings into errors, so we don't accidently get successful builds
14294 # when there are problems that should be fixed.
14295
14296 if test "x$SELECTIVE_WERROR" = "xyes" ; then
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310 xorg_testset_save_CFLAGS="$CFLAGS"
14311
14312 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14313 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14315 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14316 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14317 $as_echo_n "(cached) " >&6
14318 else
14319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14320 /* end confdefs.h. */
14321 int i;
14322 _ACEOF
14323 if ac_fn_c_try_compile "$LINENO"; then :
14324 xorg_cv_cc_flag_unknown_warning_option=yes
14325 else
14326 xorg_cv_cc_flag_unknown_warning_option=no
14327 fi
14328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14329 fi
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14331 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14332 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14333 CFLAGS="$xorg_testset_save_CFLAGS"
14334 fi
14335
14336 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14339 fi
14340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14342 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14343 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14344 $as_echo_n "(cached) " >&6
14345 else
14346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14347 /* end confdefs.h. */
14348 int i;
14349 _ACEOF
14350 if ac_fn_c_try_compile "$LINENO"; then :
14351 xorg_cv_cc_flag_unused_command_line_argument=yes
14352 else
14353 xorg_cv_cc_flag_unused_command_line_argument=no
14354 fi
14355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14356 fi
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14358 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14359 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14360 CFLAGS="$xorg_testset_save_CFLAGS"
14361 fi
14362
14363 found="no"
14364
14365 if test $found = "no" ; then
14366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14368 fi
14369
14370 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14372 fi
14373
14374 CFLAGS="$CFLAGS -Werror=implicit"
14375
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14377 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14378 cacheid=xorg_cv_cc_flag__Werror_implicit
14379 if eval \${$cacheid+:} false; then :
14380 $as_echo_n "(cached) " >&6
14381 else
14382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14383 /* end confdefs.h. */
14384 int i;
14385 int
14386 main ()
14387 {
14388
14389 ;
14390 return 0;
14391 }
14392 _ACEOF
14393 if ac_fn_c_try_link "$LINENO"; then :
14394 eval $cacheid=yes
14395 else
14396 eval $cacheid=no
14397 fi
14398 rm -f core conftest.err conftest.$ac_objext \
14399 conftest$ac_exeext conftest.$ac_ext
14400 fi
14401
14402
14403 CFLAGS="$xorg_testset_save_CFLAGS"
14404
14405 eval supported=\$$cacheid
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14407 $as_echo "$supported" >&6; }
14408 if test "$supported" = "yes" ; then
14409 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14410 found="yes"
14411 fi
14412 fi
14413
14414 if test $found = "no" ; then
14415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14417 fi
14418
14419 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14421 fi
14422
14423 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14424
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14426 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14427 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14428 if eval \${$cacheid+:} false; then :
14429 $as_echo_n "(cached) " >&6
14430 else
14431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14432 /* end confdefs.h. */
14433 int i;
14434 int
14435 main ()
14436 {
14437
14438 ;
14439 return 0;
14440 }
14441 _ACEOF
14442 if ac_fn_c_try_link "$LINENO"; then :
14443 eval $cacheid=yes
14444 else
14445 eval $cacheid=no
14446 fi
14447 rm -f core conftest.err conftest.$ac_objext \
14448 conftest$ac_exeext conftest.$ac_ext
14449 fi
14450
14451
14452 CFLAGS="$xorg_testset_save_CFLAGS"
14453
14454 eval supported=\$$cacheid
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14456 $as_echo "$supported" >&6; }
14457 if test "$supported" = "yes" ; then
14458 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14459 found="yes"
14460 fi
14461 fi
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477 xorg_testset_save_CFLAGS="$CFLAGS"
14478
14479 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14480 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14482 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14483 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14484 $as_echo_n "(cached) " >&6
14485 else
14486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14487 /* end confdefs.h. */
14488 int i;
14489 _ACEOF
14490 if ac_fn_c_try_compile "$LINENO"; then :
14491 xorg_cv_cc_flag_unknown_warning_option=yes
14492 else
14493 xorg_cv_cc_flag_unknown_warning_option=no
14494 fi
14495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14496 fi
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14498 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14499 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14500 CFLAGS="$xorg_testset_save_CFLAGS"
14501 fi
14502
14503 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14506 fi
14507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14509 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14510 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14511 $as_echo_n "(cached) " >&6
14512 else
14513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14514 /* end confdefs.h. */
14515 int i;
14516 _ACEOF
14517 if ac_fn_c_try_compile "$LINENO"; then :
14518 xorg_cv_cc_flag_unused_command_line_argument=yes
14519 else
14520 xorg_cv_cc_flag_unused_command_line_argument=no
14521 fi
14522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14523 fi
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14525 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14526 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14527 CFLAGS="$xorg_testset_save_CFLAGS"
14528 fi
14529
14530 found="no"
14531
14532 if test $found = "no" ; then
14533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14535 fi
14536
14537 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14539 fi
14540
14541 CFLAGS="$CFLAGS -Werror=nonnull"
14542
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14544 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14545 cacheid=xorg_cv_cc_flag__Werror_nonnull
14546 if eval \${$cacheid+:} false; then :
14547 $as_echo_n "(cached) " >&6
14548 else
14549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14550 /* end confdefs.h. */
14551 int i;
14552 int
14553 main ()
14554 {
14555
14556 ;
14557 return 0;
14558 }
14559 _ACEOF
14560 if ac_fn_c_try_link "$LINENO"; then :
14561 eval $cacheid=yes
14562 else
14563 eval $cacheid=no
14564 fi
14565 rm -f core conftest.err conftest.$ac_objext \
14566 conftest$ac_exeext conftest.$ac_ext
14567 fi
14568
14569
14570 CFLAGS="$xorg_testset_save_CFLAGS"
14571
14572 eval supported=\$$cacheid
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14574 $as_echo "$supported" >&6; }
14575 if test "$supported" = "yes" ; then
14576 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14577 found="yes"
14578 fi
14579 fi
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595 xorg_testset_save_CFLAGS="$CFLAGS"
14596
14597 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14600 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14601 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14602 $as_echo_n "(cached) " >&6
14603 else
14604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14605 /* end confdefs.h. */
14606 int i;
14607 _ACEOF
14608 if ac_fn_c_try_compile "$LINENO"; then :
14609 xorg_cv_cc_flag_unknown_warning_option=yes
14610 else
14611 xorg_cv_cc_flag_unknown_warning_option=no
14612 fi
14613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14614 fi
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14616 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14617 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14618 CFLAGS="$xorg_testset_save_CFLAGS"
14619 fi
14620
14621 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14623 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14624 fi
14625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14627 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14628 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14629 $as_echo_n "(cached) " >&6
14630 else
14631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14632 /* end confdefs.h. */
14633 int i;
14634 _ACEOF
14635 if ac_fn_c_try_compile "$LINENO"; then :
14636 xorg_cv_cc_flag_unused_command_line_argument=yes
14637 else
14638 xorg_cv_cc_flag_unused_command_line_argument=no
14639 fi
14640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14641 fi
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14643 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14644 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14645 CFLAGS="$xorg_testset_save_CFLAGS"
14646 fi
14647
14648 found="no"
14649
14650 if test $found = "no" ; then
14651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14652 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14653 fi
14654
14655 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14657 fi
14658
14659 CFLAGS="$CFLAGS -Werror=init-self"
14660
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14662 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14663 cacheid=xorg_cv_cc_flag__Werror_init_self
14664 if eval \${$cacheid+:} false; then :
14665 $as_echo_n "(cached) " >&6
14666 else
14667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14668 /* end confdefs.h. */
14669 int i;
14670 int
14671 main ()
14672 {
14673
14674 ;
14675 return 0;
14676 }
14677 _ACEOF
14678 if ac_fn_c_try_link "$LINENO"; then :
14679 eval $cacheid=yes
14680 else
14681 eval $cacheid=no
14682 fi
14683 rm -f core conftest.err conftest.$ac_objext \
14684 conftest$ac_exeext conftest.$ac_ext
14685 fi
14686
14687
14688 CFLAGS="$xorg_testset_save_CFLAGS"
14689
14690 eval supported=\$$cacheid
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14692 $as_echo "$supported" >&6; }
14693 if test "$supported" = "yes" ; then
14694 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14695 found="yes"
14696 fi
14697 fi
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713 xorg_testset_save_CFLAGS="$CFLAGS"
14714
14715 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14716 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14718 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14719 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14720 $as_echo_n "(cached) " >&6
14721 else
14722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14723 /* end confdefs.h. */
14724 int i;
14725 _ACEOF
14726 if ac_fn_c_try_compile "$LINENO"; then :
14727 xorg_cv_cc_flag_unknown_warning_option=yes
14728 else
14729 xorg_cv_cc_flag_unknown_warning_option=no
14730 fi
14731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14732 fi
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14734 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14735 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14736 CFLAGS="$xorg_testset_save_CFLAGS"
14737 fi
14738
14739 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14742 fi
14743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14745 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14746 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14747 $as_echo_n "(cached) " >&6
14748 else
14749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14750 /* end confdefs.h. */
14751 int i;
14752 _ACEOF
14753 if ac_fn_c_try_compile "$LINENO"; then :
14754 xorg_cv_cc_flag_unused_command_line_argument=yes
14755 else
14756 xorg_cv_cc_flag_unused_command_line_argument=no
14757 fi
14758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14759 fi
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14761 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14762 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14763 CFLAGS="$xorg_testset_save_CFLAGS"
14764 fi
14765
14766 found="no"
14767
14768 if test $found = "no" ; then
14769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14771 fi
14772
14773 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14775 fi
14776
14777 CFLAGS="$CFLAGS -Werror=main"
14778
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14780 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14781 cacheid=xorg_cv_cc_flag__Werror_main
14782 if eval \${$cacheid+:} false; then :
14783 $as_echo_n "(cached) " >&6
14784 else
14785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14786 /* end confdefs.h. */
14787 int i;
14788 int
14789 main ()
14790 {
14791
14792 ;
14793 return 0;
14794 }
14795 _ACEOF
14796 if ac_fn_c_try_link "$LINENO"; then :
14797 eval $cacheid=yes
14798 else
14799 eval $cacheid=no
14800 fi
14801 rm -f core conftest.err conftest.$ac_objext \
14802 conftest$ac_exeext conftest.$ac_ext
14803 fi
14804
14805
14806 CFLAGS="$xorg_testset_save_CFLAGS"
14807
14808 eval supported=\$$cacheid
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14810 $as_echo "$supported" >&6; }
14811 if test "$supported" = "yes" ; then
14812 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14813 found="yes"
14814 fi
14815 fi
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831 xorg_testset_save_CFLAGS="$CFLAGS"
14832
14833 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14836 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14837 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14838 $as_echo_n "(cached) " >&6
14839 else
14840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14841 /* end confdefs.h. */
14842 int i;
14843 _ACEOF
14844 if ac_fn_c_try_compile "$LINENO"; then :
14845 xorg_cv_cc_flag_unknown_warning_option=yes
14846 else
14847 xorg_cv_cc_flag_unknown_warning_option=no
14848 fi
14849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14850 fi
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14852 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14853 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14854 CFLAGS="$xorg_testset_save_CFLAGS"
14855 fi
14856
14857 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14859 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14860 fi
14861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14863 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14864 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14865 $as_echo_n "(cached) " >&6
14866 else
14867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14868 /* end confdefs.h. */
14869 int i;
14870 _ACEOF
14871 if ac_fn_c_try_compile "$LINENO"; then :
14872 xorg_cv_cc_flag_unused_command_line_argument=yes
14873 else
14874 xorg_cv_cc_flag_unused_command_line_argument=no
14875 fi
14876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14877 fi
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14879 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14880 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14881 CFLAGS="$xorg_testset_save_CFLAGS"
14882 fi
14883
14884 found="no"
14885
14886 if test $found = "no" ; then
14887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14889 fi
14890
14891 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14893 fi
14894
14895 CFLAGS="$CFLAGS -Werror=missing-braces"
14896
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14898 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14899 cacheid=xorg_cv_cc_flag__Werror_missing_braces
14900 if eval \${$cacheid+:} false; then :
14901 $as_echo_n "(cached) " >&6
14902 else
14903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14904 /* end confdefs.h. */
14905 int i;
14906 int
14907 main ()
14908 {
14909
14910 ;
14911 return 0;
14912 }
14913 _ACEOF
14914 if ac_fn_c_try_link "$LINENO"; then :
14915 eval $cacheid=yes
14916 else
14917 eval $cacheid=no
14918 fi
14919 rm -f core conftest.err conftest.$ac_objext \
14920 conftest$ac_exeext conftest.$ac_ext
14921 fi
14922
14923
14924 CFLAGS="$xorg_testset_save_CFLAGS"
14925
14926 eval supported=\$$cacheid
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14928 $as_echo "$supported" >&6; }
14929 if test "$supported" = "yes" ; then
14930 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14931 found="yes"
14932 fi
14933 fi
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949 xorg_testset_save_CFLAGS="$CFLAGS"
14950
14951 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14952 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14954 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14955 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14956 $as_echo_n "(cached) " >&6
14957 else
14958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14959 /* end confdefs.h. */
14960 int i;
14961 _ACEOF
14962 if ac_fn_c_try_compile "$LINENO"; then :
14963 xorg_cv_cc_flag_unknown_warning_option=yes
14964 else
14965 xorg_cv_cc_flag_unknown_warning_option=no
14966 fi
14967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14968 fi
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14970 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14971 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14972 CFLAGS="$xorg_testset_save_CFLAGS"
14973 fi
14974
14975 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14978 fi
14979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14981 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14982 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14983 $as_echo_n "(cached) " >&6
14984 else
14985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14986 /* end confdefs.h. */
14987 int i;
14988 _ACEOF
14989 if ac_fn_c_try_compile "$LINENO"; then :
14990 xorg_cv_cc_flag_unused_command_line_argument=yes
14991 else
14992 xorg_cv_cc_flag_unused_command_line_argument=no
14993 fi
14994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14995 fi
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14997 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14998 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14999 CFLAGS="$xorg_testset_save_CFLAGS"
15000 fi
15001
15002 found="no"
15003
15004 if test $found = "no" ; then
15005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15007 fi
15008
15009 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15011 fi
15012
15013 CFLAGS="$CFLAGS -Werror=sequence-point"
15014
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15016 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15017 cacheid=xorg_cv_cc_flag__Werror_sequence_point
15018 if eval \${$cacheid+:} false; then :
15019 $as_echo_n "(cached) " >&6
15020 else
15021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15022 /* end confdefs.h. */
15023 int i;
15024 int
15025 main ()
15026 {
15027
15028 ;
15029 return 0;
15030 }
15031 _ACEOF
15032 if ac_fn_c_try_link "$LINENO"; then :
15033 eval $cacheid=yes
15034 else
15035 eval $cacheid=no
15036 fi
15037 rm -f core conftest.err conftest.$ac_objext \
15038 conftest$ac_exeext conftest.$ac_ext
15039 fi
15040
15041
15042 CFLAGS="$xorg_testset_save_CFLAGS"
15043
15044 eval supported=\$$cacheid
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15046 $as_echo "$supported" >&6; }
15047 if test "$supported" = "yes" ; then
15048 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15049 found="yes"
15050 fi
15051 fi
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067 xorg_testset_save_CFLAGS="$CFLAGS"
15068
15069 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15070 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15072 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15073 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15074 $as_echo_n "(cached) " >&6
15075 else
15076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15077 /* end confdefs.h. */
15078 int i;
15079 _ACEOF
15080 if ac_fn_c_try_compile "$LINENO"; then :
15081 xorg_cv_cc_flag_unknown_warning_option=yes
15082 else
15083 xorg_cv_cc_flag_unknown_warning_option=no
15084 fi
15085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15086 fi
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15088 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15089 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15090 CFLAGS="$xorg_testset_save_CFLAGS"
15091 fi
15092
15093 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15095 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15096 fi
15097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15099 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15100 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15101 $as_echo_n "(cached) " >&6
15102 else
15103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15104 /* end confdefs.h. */
15105 int i;
15106 _ACEOF
15107 if ac_fn_c_try_compile "$LINENO"; then :
15108 xorg_cv_cc_flag_unused_command_line_argument=yes
15109 else
15110 xorg_cv_cc_flag_unused_command_line_argument=no
15111 fi
15112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15113 fi
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15115 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15116 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15117 CFLAGS="$xorg_testset_save_CFLAGS"
15118 fi
15119
15120 found="no"
15121
15122 if test $found = "no" ; then
15123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15125 fi
15126
15127 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15129 fi
15130
15131 CFLAGS="$CFLAGS -Werror=return-type"
15132
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15134 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15135 cacheid=xorg_cv_cc_flag__Werror_return_type
15136 if eval \${$cacheid+:} false; then :
15137 $as_echo_n "(cached) " >&6
15138 else
15139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15140 /* end confdefs.h. */
15141 int i;
15142 int
15143 main ()
15144 {
15145
15146 ;
15147 return 0;
15148 }
15149 _ACEOF
15150 if ac_fn_c_try_link "$LINENO"; then :
15151 eval $cacheid=yes
15152 else
15153 eval $cacheid=no
15154 fi
15155 rm -f core conftest.err conftest.$ac_objext \
15156 conftest$ac_exeext conftest.$ac_ext
15157 fi
15158
15159
15160 CFLAGS="$xorg_testset_save_CFLAGS"
15161
15162 eval supported=\$$cacheid
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15164 $as_echo "$supported" >&6; }
15165 if test "$supported" = "yes" ; then
15166 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15167 found="yes"
15168 fi
15169 fi
15170
15171 if test $found = "no" ; then
15172 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15173 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15174 fi
15175
15176 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15178 fi
15179
15180 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15181
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15183 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15184 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15185 if eval \${$cacheid+:} false; then :
15186 $as_echo_n "(cached) " >&6
15187 else
15188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15189 /* end confdefs.h. */
15190 int i;
15191 int
15192 main ()
15193 {
15194
15195 ;
15196 return 0;
15197 }
15198 _ACEOF
15199 if ac_fn_c_try_link "$LINENO"; then :
15200 eval $cacheid=yes
15201 else
15202 eval $cacheid=no
15203 fi
15204 rm -f core conftest.err conftest.$ac_objext \
15205 conftest$ac_exeext conftest.$ac_ext
15206 fi
15207
15208
15209 CFLAGS="$xorg_testset_save_CFLAGS"
15210
15211 eval supported=\$$cacheid
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15213 $as_echo "$supported" >&6; }
15214 if test "$supported" = "yes" ; then
15215 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15216 found="yes"
15217 fi
15218 fi
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234 xorg_testset_save_CFLAGS="$CFLAGS"
15235
15236 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15239 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15240 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15241 $as_echo_n "(cached) " >&6
15242 else
15243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15244 /* end confdefs.h. */
15245 int i;
15246 _ACEOF
15247 if ac_fn_c_try_compile "$LINENO"; then :
15248 xorg_cv_cc_flag_unknown_warning_option=yes
15249 else
15250 xorg_cv_cc_flag_unknown_warning_option=no
15251 fi
15252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15253 fi
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15255 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15256 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15257 CFLAGS="$xorg_testset_save_CFLAGS"
15258 fi
15259
15260 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15261 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15262 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15263 fi
15264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15266 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15267 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15268 $as_echo_n "(cached) " >&6
15269 else
15270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15271 /* end confdefs.h. */
15272 int i;
15273 _ACEOF
15274 if ac_fn_c_try_compile "$LINENO"; then :
15275 xorg_cv_cc_flag_unused_command_line_argument=yes
15276 else
15277 xorg_cv_cc_flag_unused_command_line_argument=no
15278 fi
15279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15280 fi
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15282 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15283 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15284 CFLAGS="$xorg_testset_save_CFLAGS"
15285 fi
15286
15287 found="no"
15288
15289 if test $found = "no" ; then
15290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15291 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15292 fi
15293
15294 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15296 fi
15297
15298 CFLAGS="$CFLAGS -Werror=trigraphs"
15299
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15301 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15302 cacheid=xorg_cv_cc_flag__Werror_trigraphs
15303 if eval \${$cacheid+:} false; then :
15304 $as_echo_n "(cached) " >&6
15305 else
15306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15307 /* end confdefs.h. */
15308 int i;
15309 int
15310 main ()
15311 {
15312
15313 ;
15314 return 0;
15315 }
15316 _ACEOF
15317 if ac_fn_c_try_link "$LINENO"; then :
15318 eval $cacheid=yes
15319 else
15320 eval $cacheid=no
15321 fi
15322 rm -f core conftest.err conftest.$ac_objext \
15323 conftest$ac_exeext conftest.$ac_ext
15324 fi
15325
15326
15327 CFLAGS="$xorg_testset_save_CFLAGS"
15328
15329 eval supported=\$$cacheid
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15331 $as_echo "$supported" >&6; }
15332 if test "$supported" = "yes" ; then
15333 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15334 found="yes"
15335 fi
15336 fi
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352 xorg_testset_save_CFLAGS="$CFLAGS"
15353
15354 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15357 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15358 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15359 $as_echo_n "(cached) " >&6
15360 else
15361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15362 /* end confdefs.h. */
15363 int i;
15364 _ACEOF
15365 if ac_fn_c_try_compile "$LINENO"; then :
15366 xorg_cv_cc_flag_unknown_warning_option=yes
15367 else
15368 xorg_cv_cc_flag_unknown_warning_option=no
15369 fi
15370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15371 fi
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15373 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15374 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15375 CFLAGS="$xorg_testset_save_CFLAGS"
15376 fi
15377
15378 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15381 fi
15382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15384 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15385 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15386 $as_echo_n "(cached) " >&6
15387 else
15388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15389 /* end confdefs.h. */
15390 int i;
15391 _ACEOF
15392 if ac_fn_c_try_compile "$LINENO"; then :
15393 xorg_cv_cc_flag_unused_command_line_argument=yes
15394 else
15395 xorg_cv_cc_flag_unused_command_line_argument=no
15396 fi
15397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15398 fi
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15400 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15401 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15402 CFLAGS="$xorg_testset_save_CFLAGS"
15403 fi
15404
15405 found="no"
15406
15407 if test $found = "no" ; then
15408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15410 fi
15411
15412 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15414 fi
15415
15416 CFLAGS="$CFLAGS -Werror=array-bounds"
15417
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15419 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15420 cacheid=xorg_cv_cc_flag__Werror_array_bounds
15421 if eval \${$cacheid+:} false; then :
15422 $as_echo_n "(cached) " >&6
15423 else
15424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15425 /* end confdefs.h. */
15426 int i;
15427 int
15428 main ()
15429 {
15430
15431 ;
15432 return 0;
15433 }
15434 _ACEOF
15435 if ac_fn_c_try_link "$LINENO"; then :
15436 eval $cacheid=yes
15437 else
15438 eval $cacheid=no
15439 fi
15440 rm -f core conftest.err conftest.$ac_objext \
15441 conftest$ac_exeext conftest.$ac_ext
15442 fi
15443
15444
15445 CFLAGS="$xorg_testset_save_CFLAGS"
15446
15447 eval supported=\$$cacheid
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15449 $as_echo "$supported" >&6; }
15450 if test "$supported" = "yes" ; then
15451 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15452 found="yes"
15453 fi
15454 fi
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470 xorg_testset_save_CFLAGS="$CFLAGS"
15471
15472 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15473 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15475 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15476 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15477 $as_echo_n "(cached) " >&6
15478 else
15479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15480 /* end confdefs.h. */
15481 int i;
15482 _ACEOF
15483 if ac_fn_c_try_compile "$LINENO"; then :
15484 xorg_cv_cc_flag_unknown_warning_option=yes
15485 else
15486 xorg_cv_cc_flag_unknown_warning_option=no
15487 fi
15488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15489 fi
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15491 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15492 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15493 CFLAGS="$xorg_testset_save_CFLAGS"
15494 fi
15495
15496 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15499 fi
15500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15502 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15503 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15504 $as_echo_n "(cached) " >&6
15505 else
15506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15507 /* end confdefs.h. */
15508 int i;
15509 _ACEOF
15510 if ac_fn_c_try_compile "$LINENO"; then :
15511 xorg_cv_cc_flag_unused_command_line_argument=yes
15512 else
15513 xorg_cv_cc_flag_unused_command_line_argument=no
15514 fi
15515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15516 fi
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15518 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15519 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15520 CFLAGS="$xorg_testset_save_CFLAGS"
15521 fi
15522
15523 found="no"
15524
15525 if test $found = "no" ; then
15526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15528 fi
15529
15530 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15532 fi
15533
15534 CFLAGS="$CFLAGS -Werror=write-strings"
15535
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15537 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15538 cacheid=xorg_cv_cc_flag__Werror_write_strings
15539 if eval \${$cacheid+:} false; then :
15540 $as_echo_n "(cached) " >&6
15541 else
15542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15543 /* end confdefs.h. */
15544 int i;
15545 int
15546 main ()
15547 {
15548
15549 ;
15550 return 0;
15551 }
15552 _ACEOF
15553 if ac_fn_c_try_link "$LINENO"; then :
15554 eval $cacheid=yes
15555 else
15556 eval $cacheid=no
15557 fi
15558 rm -f core conftest.err conftest.$ac_objext \
15559 conftest$ac_exeext conftest.$ac_ext
15560 fi
15561
15562
15563 CFLAGS="$xorg_testset_save_CFLAGS"
15564
15565 eval supported=\$$cacheid
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15567 $as_echo "$supported" >&6; }
15568 if test "$supported" = "yes" ; then
15569 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15570 found="yes"
15571 fi
15572 fi
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588 xorg_testset_save_CFLAGS="$CFLAGS"
15589
15590 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15593 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15594 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15595 $as_echo_n "(cached) " >&6
15596 else
15597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15598 /* end confdefs.h. */
15599 int i;
15600 _ACEOF
15601 if ac_fn_c_try_compile "$LINENO"; then :
15602 xorg_cv_cc_flag_unknown_warning_option=yes
15603 else
15604 xorg_cv_cc_flag_unknown_warning_option=no
15605 fi
15606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15607 fi
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15609 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15610 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15611 CFLAGS="$xorg_testset_save_CFLAGS"
15612 fi
15613
15614 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15617 fi
15618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15620 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15621 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15622 $as_echo_n "(cached) " >&6
15623 else
15624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15625 /* end confdefs.h. */
15626 int i;
15627 _ACEOF
15628 if ac_fn_c_try_compile "$LINENO"; then :
15629 xorg_cv_cc_flag_unused_command_line_argument=yes
15630 else
15631 xorg_cv_cc_flag_unused_command_line_argument=no
15632 fi
15633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15634 fi
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15636 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15637 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15638 CFLAGS="$xorg_testset_save_CFLAGS"
15639 fi
15640
15641 found="no"
15642
15643 if test $found = "no" ; then
15644 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15645 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15646 fi
15647
15648 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15650 fi
15651
15652 CFLAGS="$CFLAGS -Werror=address"
15653
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15655 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15656 cacheid=xorg_cv_cc_flag__Werror_address
15657 if eval \${$cacheid+:} false; then :
15658 $as_echo_n "(cached) " >&6
15659 else
15660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15661 /* end confdefs.h. */
15662 int i;
15663 int
15664 main ()
15665 {
15666
15667 ;
15668 return 0;
15669 }
15670 _ACEOF
15671 if ac_fn_c_try_link "$LINENO"; then :
15672 eval $cacheid=yes
15673 else
15674 eval $cacheid=no
15675 fi
15676 rm -f core conftest.err conftest.$ac_objext \
15677 conftest$ac_exeext conftest.$ac_ext
15678 fi
15679
15680
15681 CFLAGS="$xorg_testset_save_CFLAGS"
15682
15683 eval supported=\$$cacheid
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15685 $as_echo "$supported" >&6; }
15686 if test "$supported" = "yes" ; then
15687 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15688 found="yes"
15689 fi
15690 fi
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706 xorg_testset_save_CFLAGS="$CFLAGS"
15707
15708 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15709 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15711 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15712 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15713 $as_echo_n "(cached) " >&6
15714 else
15715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15716 /* end confdefs.h. */
15717 int i;
15718 _ACEOF
15719 if ac_fn_c_try_compile "$LINENO"; then :
15720 xorg_cv_cc_flag_unknown_warning_option=yes
15721 else
15722 xorg_cv_cc_flag_unknown_warning_option=no
15723 fi
15724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15725 fi
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15727 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15728 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15729 CFLAGS="$xorg_testset_save_CFLAGS"
15730 fi
15731
15732 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15734 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15735 fi
15736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15738 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15739 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15740 $as_echo_n "(cached) " >&6
15741 else
15742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15743 /* end confdefs.h. */
15744 int i;
15745 _ACEOF
15746 if ac_fn_c_try_compile "$LINENO"; then :
15747 xorg_cv_cc_flag_unused_command_line_argument=yes
15748 else
15749 xorg_cv_cc_flag_unused_command_line_argument=no
15750 fi
15751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15752 fi
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15754 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15755 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15756 CFLAGS="$xorg_testset_save_CFLAGS"
15757 fi
15758
15759 found="no"
15760
15761 if test $found = "no" ; then
15762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15763 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15764 fi
15765
15766 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15768 fi
15769
15770 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15771
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15773 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15774 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
15775 if eval \${$cacheid+:} false; then :
15776 $as_echo_n "(cached) " >&6
15777 else
15778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15779 /* end confdefs.h. */
15780 int i;
15781 int
15782 main ()
15783 {
15784
15785 ;
15786 return 0;
15787 }
15788 _ACEOF
15789 if ac_fn_c_try_link "$LINENO"; then :
15790 eval $cacheid=yes
15791 else
15792 eval $cacheid=no
15793 fi
15794 rm -f core conftest.err conftest.$ac_objext \
15795 conftest$ac_exeext conftest.$ac_ext
15796 fi
15797
15798
15799 CFLAGS="$xorg_testset_save_CFLAGS"
15800
15801 eval supported=\$$cacheid
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15803 $as_echo "$supported" >&6; }
15804 if test "$supported" = "yes" ; then
15805 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15806 found="yes"
15807 fi
15808 fi
15809
15810 if test $found = "no" ; then
15811 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15812 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15813 fi
15814
15815 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15817 fi
15818
15819 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15820
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15822 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15823 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
15824 if eval \${$cacheid+:} false; then :
15825 $as_echo_n "(cached) " >&6
15826 else
15827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15828 /* end confdefs.h. */
15829 int i;
15830 int
15831 main ()
15832 {
15833
15834 ;
15835 return 0;
15836 }
15837 _ACEOF
15838 if ac_fn_c_try_link "$LINENO"; then :
15839 eval $cacheid=yes
15840 else
15841 eval $cacheid=no
15842 fi
15843 rm -f core conftest.err conftest.$ac_objext \
15844 conftest$ac_exeext conftest.$ac_ext
15845 fi
15846
15847
15848 CFLAGS="$xorg_testset_save_CFLAGS"
15849
15850 eval supported=\$$cacheid
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15852 $as_echo "$supported" >&6; }
15853 if test "$supported" = "yes" ; then
15854 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15855 found="yes"
15856 fi
15857 fi
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873 xorg_testset_save_CFLAGS="$CFLAGS"
15874
15875 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15878 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15879 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15880 $as_echo_n "(cached) " >&6
15881 else
15882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15883 /* end confdefs.h. */
15884 int i;
15885 _ACEOF
15886 if ac_fn_c_try_compile "$LINENO"; then :
15887 xorg_cv_cc_flag_unknown_warning_option=yes
15888 else
15889 xorg_cv_cc_flag_unknown_warning_option=no
15890 fi
15891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15892 fi
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15894 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15895 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15896 CFLAGS="$xorg_testset_save_CFLAGS"
15897 fi
15898
15899 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15902 fi
15903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15905 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15906 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15907 $as_echo_n "(cached) " >&6
15908 else
15909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15910 /* end confdefs.h. */
15911 int i;
15912 _ACEOF
15913 if ac_fn_c_try_compile "$LINENO"; then :
15914 xorg_cv_cc_flag_unused_command_line_argument=yes
15915 else
15916 xorg_cv_cc_flag_unused_command_line_argument=no
15917 fi
15918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15919 fi
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15921 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15922 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15923 CFLAGS="$xorg_testset_save_CFLAGS"
15924 fi
15925
15926 found="no"
15927
15928 if test $found = "no" ; then
15929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15930 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15931 fi
15932
15933 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15935 fi
15936
15937 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15938
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15940 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15941 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
15942 if eval \${$cacheid+:} false; then :
15943 $as_echo_n "(cached) " >&6
15944 else
15945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15946 /* end confdefs.h. */
15947 int i;
15948 int
15949 main ()
15950 {
15951
15952 ;
15953 return 0;
15954 }
15955 _ACEOF
15956 if ac_fn_c_try_link "$LINENO"; then :
15957 eval $cacheid=yes
15958 else
15959 eval $cacheid=no
15960 fi
15961 rm -f core conftest.err conftest.$ac_objext \
15962 conftest$ac_exeext conftest.$ac_ext
15963 fi
15964
15965
15966 CFLAGS="$xorg_testset_save_CFLAGS"
15967
15968 eval supported=\$$cacheid
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15970 $as_echo "$supported" >&6; }
15971 if test "$supported" = "yes" ; then
15972 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15973 found="yes"
15974 fi
15975 fi
15976
15977 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15978 else
15979 { $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
15980 $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;}
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994 xorg_testset_save_CFLAGS="$CFLAGS"
15995
15996 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15999 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16000 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16001 $as_echo_n "(cached) " >&6
16002 else
16003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16004 /* end confdefs.h. */
16005 int i;
16006 _ACEOF
16007 if ac_fn_c_try_compile "$LINENO"; then :
16008 xorg_cv_cc_flag_unknown_warning_option=yes
16009 else
16010 xorg_cv_cc_flag_unknown_warning_option=no
16011 fi
16012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16013 fi
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16015 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16016 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16017 CFLAGS="$xorg_testset_save_CFLAGS"
16018 fi
16019
16020 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16023 fi
16024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16026 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16027 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16028 $as_echo_n "(cached) " >&6
16029 else
16030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16031 /* end confdefs.h. */
16032 int i;
16033 _ACEOF
16034 if ac_fn_c_try_compile "$LINENO"; then :
16035 xorg_cv_cc_flag_unused_command_line_argument=yes
16036 else
16037 xorg_cv_cc_flag_unused_command_line_argument=no
16038 fi
16039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16040 fi
16041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16042 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16043 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16044 CFLAGS="$xorg_testset_save_CFLAGS"
16045 fi
16046
16047 found="no"
16048
16049 if test $found = "no" ; then
16050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16052 fi
16053
16054 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16056 fi
16057
16058 CFLAGS="$CFLAGS -Wimplicit"
16059
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16061 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16062 cacheid=xorg_cv_cc_flag__Wimplicit
16063 if eval \${$cacheid+:} false; then :
16064 $as_echo_n "(cached) " >&6
16065 else
16066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16067 /* end confdefs.h. */
16068 int i;
16069 int
16070 main ()
16071 {
16072
16073 ;
16074 return 0;
16075 }
16076 _ACEOF
16077 if ac_fn_c_try_link "$LINENO"; then :
16078 eval $cacheid=yes
16079 else
16080 eval $cacheid=no
16081 fi
16082 rm -f core conftest.err conftest.$ac_objext \
16083 conftest$ac_exeext conftest.$ac_ext
16084 fi
16085
16086
16087 CFLAGS="$xorg_testset_save_CFLAGS"
16088
16089 eval supported=\$$cacheid
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16091 $as_echo "$supported" >&6; }
16092 if test "$supported" = "yes" ; then
16093 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16094 found="yes"
16095 fi
16096 fi
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112 xorg_testset_save_CFLAGS="$CFLAGS"
16113
16114 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16117 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16118 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16119 $as_echo_n "(cached) " >&6
16120 else
16121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16122 /* end confdefs.h. */
16123 int i;
16124 _ACEOF
16125 if ac_fn_c_try_compile "$LINENO"; then :
16126 xorg_cv_cc_flag_unknown_warning_option=yes
16127 else
16128 xorg_cv_cc_flag_unknown_warning_option=no
16129 fi
16130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16131 fi
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16133 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16134 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16135 CFLAGS="$xorg_testset_save_CFLAGS"
16136 fi
16137
16138 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16141 fi
16142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16144 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16145 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16146 $as_echo_n "(cached) " >&6
16147 else
16148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16149 /* end confdefs.h. */
16150 int i;
16151 _ACEOF
16152 if ac_fn_c_try_compile "$LINENO"; then :
16153 xorg_cv_cc_flag_unused_command_line_argument=yes
16154 else
16155 xorg_cv_cc_flag_unused_command_line_argument=no
16156 fi
16157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16158 fi
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16160 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16161 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16162 CFLAGS="$xorg_testset_save_CFLAGS"
16163 fi
16164
16165 found="no"
16166
16167 if test $found = "no" ; then
16168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16170 fi
16171
16172 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16174 fi
16175
16176 CFLAGS="$CFLAGS -Wnonnull"
16177
16178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16179 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16180 cacheid=xorg_cv_cc_flag__Wnonnull
16181 if eval \${$cacheid+:} false; then :
16182 $as_echo_n "(cached) " >&6
16183 else
16184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16185 /* end confdefs.h. */
16186 int i;
16187 int
16188 main ()
16189 {
16190
16191 ;
16192 return 0;
16193 }
16194 _ACEOF
16195 if ac_fn_c_try_link "$LINENO"; then :
16196 eval $cacheid=yes
16197 else
16198 eval $cacheid=no
16199 fi
16200 rm -f core conftest.err conftest.$ac_objext \
16201 conftest$ac_exeext conftest.$ac_ext
16202 fi
16203
16204
16205 CFLAGS="$xorg_testset_save_CFLAGS"
16206
16207 eval supported=\$$cacheid
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16209 $as_echo "$supported" >&6; }
16210 if test "$supported" = "yes" ; then
16211 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16212 found="yes"
16213 fi
16214 fi
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230 xorg_testset_save_CFLAGS="$CFLAGS"
16231
16232 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16235 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16236 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16237 $as_echo_n "(cached) " >&6
16238 else
16239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16240 /* end confdefs.h. */
16241 int i;
16242 _ACEOF
16243 if ac_fn_c_try_compile "$LINENO"; then :
16244 xorg_cv_cc_flag_unknown_warning_option=yes
16245 else
16246 xorg_cv_cc_flag_unknown_warning_option=no
16247 fi
16248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16249 fi
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16251 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16252 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16253 CFLAGS="$xorg_testset_save_CFLAGS"
16254 fi
16255
16256 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16259 fi
16260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16262 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16263 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16264 $as_echo_n "(cached) " >&6
16265 else
16266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16267 /* end confdefs.h. */
16268 int i;
16269 _ACEOF
16270 if ac_fn_c_try_compile "$LINENO"; then :
16271 xorg_cv_cc_flag_unused_command_line_argument=yes
16272 else
16273 xorg_cv_cc_flag_unused_command_line_argument=no
16274 fi
16275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16276 fi
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16278 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16279 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16280 CFLAGS="$xorg_testset_save_CFLAGS"
16281 fi
16282
16283 found="no"
16284
16285 if test $found = "no" ; then
16286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16288 fi
16289
16290 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16292 fi
16293
16294 CFLAGS="$CFLAGS -Winit-self"
16295
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16297 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16298 cacheid=xorg_cv_cc_flag__Winit_self
16299 if eval \${$cacheid+:} false; then :
16300 $as_echo_n "(cached) " >&6
16301 else
16302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16303 /* end confdefs.h. */
16304 int i;
16305 int
16306 main ()
16307 {
16308
16309 ;
16310 return 0;
16311 }
16312 _ACEOF
16313 if ac_fn_c_try_link "$LINENO"; then :
16314 eval $cacheid=yes
16315 else
16316 eval $cacheid=no
16317 fi
16318 rm -f core conftest.err conftest.$ac_objext \
16319 conftest$ac_exeext conftest.$ac_ext
16320 fi
16321
16322
16323 CFLAGS="$xorg_testset_save_CFLAGS"
16324
16325 eval supported=\$$cacheid
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16327 $as_echo "$supported" >&6; }
16328 if test "$supported" = "yes" ; then
16329 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16330 found="yes"
16331 fi
16332 fi
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348 xorg_testset_save_CFLAGS="$CFLAGS"
16349
16350 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16353 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16354 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16355 $as_echo_n "(cached) " >&6
16356 else
16357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16358 /* end confdefs.h. */
16359 int i;
16360 _ACEOF
16361 if ac_fn_c_try_compile "$LINENO"; then :
16362 xorg_cv_cc_flag_unknown_warning_option=yes
16363 else
16364 xorg_cv_cc_flag_unknown_warning_option=no
16365 fi
16366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16367 fi
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16369 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16370 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16371 CFLAGS="$xorg_testset_save_CFLAGS"
16372 fi
16373
16374 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16377 fi
16378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16380 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16381 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16382 $as_echo_n "(cached) " >&6
16383 else
16384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16385 /* end confdefs.h. */
16386 int i;
16387 _ACEOF
16388 if ac_fn_c_try_compile "$LINENO"; then :
16389 xorg_cv_cc_flag_unused_command_line_argument=yes
16390 else
16391 xorg_cv_cc_flag_unused_command_line_argument=no
16392 fi
16393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16394 fi
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16396 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16397 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16398 CFLAGS="$xorg_testset_save_CFLAGS"
16399 fi
16400
16401 found="no"
16402
16403 if test $found = "no" ; then
16404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16406 fi
16407
16408 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16410 fi
16411
16412 CFLAGS="$CFLAGS -Wmain"
16413
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16415 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
16416 cacheid=xorg_cv_cc_flag__Wmain
16417 if eval \${$cacheid+:} false; then :
16418 $as_echo_n "(cached) " >&6
16419 else
16420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16421 /* end confdefs.h. */
16422 int i;
16423 int
16424 main ()
16425 {
16426
16427 ;
16428 return 0;
16429 }
16430 _ACEOF
16431 if ac_fn_c_try_link "$LINENO"; then :
16432 eval $cacheid=yes
16433 else
16434 eval $cacheid=no
16435 fi
16436 rm -f core conftest.err conftest.$ac_objext \
16437 conftest$ac_exeext conftest.$ac_ext
16438 fi
16439
16440
16441 CFLAGS="$xorg_testset_save_CFLAGS"
16442
16443 eval supported=\$$cacheid
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16445 $as_echo "$supported" >&6; }
16446 if test "$supported" = "yes" ; then
16447 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16448 found="yes"
16449 fi
16450 fi
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466 xorg_testset_save_CFLAGS="$CFLAGS"
16467
16468 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16471 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16472 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16473 $as_echo_n "(cached) " >&6
16474 else
16475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16476 /* end confdefs.h. */
16477 int i;
16478 _ACEOF
16479 if ac_fn_c_try_compile "$LINENO"; then :
16480 xorg_cv_cc_flag_unknown_warning_option=yes
16481 else
16482 xorg_cv_cc_flag_unknown_warning_option=no
16483 fi
16484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16485 fi
16486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16487 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16488 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16489 CFLAGS="$xorg_testset_save_CFLAGS"
16490 fi
16491
16492 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16494 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16495 fi
16496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16498 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16499 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16500 $as_echo_n "(cached) " >&6
16501 else
16502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16503 /* end confdefs.h. */
16504 int i;
16505 _ACEOF
16506 if ac_fn_c_try_compile "$LINENO"; then :
16507 xorg_cv_cc_flag_unused_command_line_argument=yes
16508 else
16509 xorg_cv_cc_flag_unused_command_line_argument=no
16510 fi
16511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16512 fi
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16514 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16515 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16516 CFLAGS="$xorg_testset_save_CFLAGS"
16517 fi
16518
16519 found="no"
16520
16521 if test $found = "no" ; then
16522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16523 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16524 fi
16525
16526 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16528 fi
16529
16530 CFLAGS="$CFLAGS -Wmissing-braces"
16531
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16533 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16534 cacheid=xorg_cv_cc_flag__Wmissing_braces
16535 if eval \${$cacheid+:} false; then :
16536 $as_echo_n "(cached) " >&6
16537 else
16538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16539 /* end confdefs.h. */
16540 int i;
16541 int
16542 main ()
16543 {
16544
16545 ;
16546 return 0;
16547 }
16548 _ACEOF
16549 if ac_fn_c_try_link "$LINENO"; then :
16550 eval $cacheid=yes
16551 else
16552 eval $cacheid=no
16553 fi
16554 rm -f core conftest.err conftest.$ac_objext \
16555 conftest$ac_exeext conftest.$ac_ext
16556 fi
16557
16558
16559 CFLAGS="$xorg_testset_save_CFLAGS"
16560
16561 eval supported=\$$cacheid
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16563 $as_echo "$supported" >&6; }
16564 if test "$supported" = "yes" ; then
16565 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16566 found="yes"
16567 fi
16568 fi
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584 xorg_testset_save_CFLAGS="$CFLAGS"
16585
16586 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16589 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16590 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16591 $as_echo_n "(cached) " >&6
16592 else
16593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16594 /* end confdefs.h. */
16595 int i;
16596 _ACEOF
16597 if ac_fn_c_try_compile "$LINENO"; then :
16598 xorg_cv_cc_flag_unknown_warning_option=yes
16599 else
16600 xorg_cv_cc_flag_unknown_warning_option=no
16601 fi
16602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16603 fi
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16605 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16606 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16607 CFLAGS="$xorg_testset_save_CFLAGS"
16608 fi
16609
16610 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16611 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16612 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16613 fi
16614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16616 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16617 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16618 $as_echo_n "(cached) " >&6
16619 else
16620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16621 /* end confdefs.h. */
16622 int i;
16623 _ACEOF
16624 if ac_fn_c_try_compile "$LINENO"; then :
16625 xorg_cv_cc_flag_unused_command_line_argument=yes
16626 else
16627 xorg_cv_cc_flag_unused_command_line_argument=no
16628 fi
16629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16630 fi
16631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16632 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16633 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16634 CFLAGS="$xorg_testset_save_CFLAGS"
16635 fi
16636
16637 found="no"
16638
16639 if test $found = "no" ; then
16640 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16641 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16642 fi
16643
16644 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16646 fi
16647
16648 CFLAGS="$CFLAGS -Wsequence-point"
16649
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16651 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16652 cacheid=xorg_cv_cc_flag__Wsequence_point
16653 if eval \${$cacheid+:} false; then :
16654 $as_echo_n "(cached) " >&6
16655 else
16656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16657 /* end confdefs.h. */
16658 int i;
16659 int
16660 main ()
16661 {
16662
16663 ;
16664 return 0;
16665 }
16666 _ACEOF
16667 if ac_fn_c_try_link "$LINENO"; then :
16668 eval $cacheid=yes
16669 else
16670 eval $cacheid=no
16671 fi
16672 rm -f core conftest.err conftest.$ac_objext \
16673 conftest$ac_exeext conftest.$ac_ext
16674 fi
16675
16676
16677 CFLAGS="$xorg_testset_save_CFLAGS"
16678
16679 eval supported=\$$cacheid
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16681 $as_echo "$supported" >&6; }
16682 if test "$supported" = "yes" ; then
16683 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16684 found="yes"
16685 fi
16686 fi
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702 xorg_testset_save_CFLAGS="$CFLAGS"
16703
16704 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16705 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16707 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16708 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16709 $as_echo_n "(cached) " >&6
16710 else
16711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16712 /* end confdefs.h. */
16713 int i;
16714 _ACEOF
16715 if ac_fn_c_try_compile "$LINENO"; then :
16716 xorg_cv_cc_flag_unknown_warning_option=yes
16717 else
16718 xorg_cv_cc_flag_unknown_warning_option=no
16719 fi
16720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16721 fi
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16723 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16724 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16725 CFLAGS="$xorg_testset_save_CFLAGS"
16726 fi
16727
16728 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16731 fi
16732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16734 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16735 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16736 $as_echo_n "(cached) " >&6
16737 else
16738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16739 /* end confdefs.h. */
16740 int i;
16741 _ACEOF
16742 if ac_fn_c_try_compile "$LINENO"; then :
16743 xorg_cv_cc_flag_unused_command_line_argument=yes
16744 else
16745 xorg_cv_cc_flag_unused_command_line_argument=no
16746 fi
16747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16748 fi
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16750 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16751 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16752 CFLAGS="$xorg_testset_save_CFLAGS"
16753 fi
16754
16755 found="no"
16756
16757 if test $found = "no" ; then
16758 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16759 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16760 fi
16761
16762 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16764 fi
16765
16766 CFLAGS="$CFLAGS -Wreturn-type"
16767
16768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16769 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16770 cacheid=xorg_cv_cc_flag__Wreturn_type
16771 if eval \${$cacheid+:} false; then :
16772 $as_echo_n "(cached) " >&6
16773 else
16774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16775 /* end confdefs.h. */
16776 int i;
16777 int
16778 main ()
16779 {
16780
16781 ;
16782 return 0;
16783 }
16784 _ACEOF
16785 if ac_fn_c_try_link "$LINENO"; then :
16786 eval $cacheid=yes
16787 else
16788 eval $cacheid=no
16789 fi
16790 rm -f core conftest.err conftest.$ac_objext \
16791 conftest$ac_exeext conftest.$ac_ext
16792 fi
16793
16794
16795 CFLAGS="$xorg_testset_save_CFLAGS"
16796
16797 eval supported=\$$cacheid
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16799 $as_echo "$supported" >&6; }
16800 if test "$supported" = "yes" ; then
16801 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16802 found="yes"
16803 fi
16804 fi
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820 xorg_testset_save_CFLAGS="$CFLAGS"
16821
16822 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16825 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16826 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16827 $as_echo_n "(cached) " >&6
16828 else
16829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16830 /* end confdefs.h. */
16831 int i;
16832 _ACEOF
16833 if ac_fn_c_try_compile "$LINENO"; then :
16834 xorg_cv_cc_flag_unknown_warning_option=yes
16835 else
16836 xorg_cv_cc_flag_unknown_warning_option=no
16837 fi
16838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16839 fi
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16841 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16842 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16843 CFLAGS="$xorg_testset_save_CFLAGS"
16844 fi
16845
16846 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16847 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16848 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16849 fi
16850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16852 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16853 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16854 $as_echo_n "(cached) " >&6
16855 else
16856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16857 /* end confdefs.h. */
16858 int i;
16859 _ACEOF
16860 if ac_fn_c_try_compile "$LINENO"; then :
16861 xorg_cv_cc_flag_unused_command_line_argument=yes
16862 else
16863 xorg_cv_cc_flag_unused_command_line_argument=no
16864 fi
16865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16866 fi
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16868 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16869 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16870 CFLAGS="$xorg_testset_save_CFLAGS"
16871 fi
16872
16873 found="no"
16874
16875 if test $found = "no" ; then
16876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16877 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16878 fi
16879
16880 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16882 fi
16883
16884 CFLAGS="$CFLAGS -Wtrigraphs"
16885
16886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16887 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16888 cacheid=xorg_cv_cc_flag__Wtrigraphs
16889 if eval \${$cacheid+:} false; then :
16890 $as_echo_n "(cached) " >&6
16891 else
16892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16893 /* end confdefs.h. */
16894 int i;
16895 int
16896 main ()
16897 {
16898
16899 ;
16900 return 0;
16901 }
16902 _ACEOF
16903 if ac_fn_c_try_link "$LINENO"; then :
16904 eval $cacheid=yes
16905 else
16906 eval $cacheid=no
16907 fi
16908 rm -f core conftest.err conftest.$ac_objext \
16909 conftest$ac_exeext conftest.$ac_ext
16910 fi
16911
16912
16913 CFLAGS="$xorg_testset_save_CFLAGS"
16914
16915 eval supported=\$$cacheid
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16917 $as_echo "$supported" >&6; }
16918 if test "$supported" = "yes" ; then
16919 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16920 found="yes"
16921 fi
16922 fi
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938 xorg_testset_save_CFLAGS="$CFLAGS"
16939
16940 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16941 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16943 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16944 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16945 $as_echo_n "(cached) " >&6
16946 else
16947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16948 /* end confdefs.h. */
16949 int i;
16950 _ACEOF
16951 if ac_fn_c_try_compile "$LINENO"; then :
16952 xorg_cv_cc_flag_unknown_warning_option=yes
16953 else
16954 xorg_cv_cc_flag_unknown_warning_option=no
16955 fi
16956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16957 fi
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16959 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16960 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16961 CFLAGS="$xorg_testset_save_CFLAGS"
16962 fi
16963
16964 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16967 fi
16968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16970 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16971 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16972 $as_echo_n "(cached) " >&6
16973 else
16974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16975 /* end confdefs.h. */
16976 int i;
16977 _ACEOF
16978 if ac_fn_c_try_compile "$LINENO"; then :
16979 xorg_cv_cc_flag_unused_command_line_argument=yes
16980 else
16981 xorg_cv_cc_flag_unused_command_line_argument=no
16982 fi
16983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16984 fi
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16986 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16987 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16988 CFLAGS="$xorg_testset_save_CFLAGS"
16989 fi
16990
16991 found="no"
16992
16993 if test $found = "no" ; then
16994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16996 fi
16997
16998 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17000 fi
17001
17002 CFLAGS="$CFLAGS -Warray-bounds"
17003
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17005 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17006 cacheid=xorg_cv_cc_flag__Warray_bounds
17007 if eval \${$cacheid+:} false; then :
17008 $as_echo_n "(cached) " >&6
17009 else
17010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17011 /* end confdefs.h. */
17012 int i;
17013 int
17014 main ()
17015 {
17016
17017 ;
17018 return 0;
17019 }
17020 _ACEOF
17021 if ac_fn_c_try_link "$LINENO"; then :
17022 eval $cacheid=yes
17023 else
17024 eval $cacheid=no
17025 fi
17026 rm -f core conftest.err conftest.$ac_objext \
17027 conftest$ac_exeext conftest.$ac_ext
17028 fi
17029
17030
17031 CFLAGS="$xorg_testset_save_CFLAGS"
17032
17033 eval supported=\$$cacheid
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17035 $as_echo "$supported" >&6; }
17036 if test "$supported" = "yes" ; then
17037 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17038 found="yes"
17039 fi
17040 fi
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056 xorg_testset_save_CFLAGS="$CFLAGS"
17057
17058 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17059 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17061 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17062 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17063 $as_echo_n "(cached) " >&6
17064 else
17065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17066 /* end confdefs.h. */
17067 int i;
17068 _ACEOF
17069 if ac_fn_c_try_compile "$LINENO"; then :
17070 xorg_cv_cc_flag_unknown_warning_option=yes
17071 else
17072 xorg_cv_cc_flag_unknown_warning_option=no
17073 fi
17074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17075 fi
17076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17077 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17078 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17079 CFLAGS="$xorg_testset_save_CFLAGS"
17080 fi
17081
17082 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17084 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17085 fi
17086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17088 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17089 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17090 $as_echo_n "(cached) " >&6
17091 else
17092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17093 /* end confdefs.h. */
17094 int i;
17095 _ACEOF
17096 if ac_fn_c_try_compile "$LINENO"; then :
17097 xorg_cv_cc_flag_unused_command_line_argument=yes
17098 else
17099 xorg_cv_cc_flag_unused_command_line_argument=no
17100 fi
17101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17102 fi
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17104 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17105 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17106 CFLAGS="$xorg_testset_save_CFLAGS"
17107 fi
17108
17109 found="no"
17110
17111 if test $found = "no" ; then
17112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17114 fi
17115
17116 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17118 fi
17119
17120 CFLAGS="$CFLAGS -Wwrite-strings"
17121
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17123 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17124 cacheid=xorg_cv_cc_flag__Wwrite_strings
17125 if eval \${$cacheid+:} false; then :
17126 $as_echo_n "(cached) " >&6
17127 else
17128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17129 /* end confdefs.h. */
17130 int i;
17131 int
17132 main ()
17133 {
17134
17135 ;
17136 return 0;
17137 }
17138 _ACEOF
17139 if ac_fn_c_try_link "$LINENO"; then :
17140 eval $cacheid=yes
17141 else
17142 eval $cacheid=no
17143 fi
17144 rm -f core conftest.err conftest.$ac_objext \
17145 conftest$ac_exeext conftest.$ac_ext
17146 fi
17147
17148
17149 CFLAGS="$xorg_testset_save_CFLAGS"
17150
17151 eval supported=\$$cacheid
17152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17153 $as_echo "$supported" >&6; }
17154 if test "$supported" = "yes" ; then
17155 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17156 found="yes"
17157 fi
17158 fi
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174 xorg_testset_save_CFLAGS="$CFLAGS"
17175
17176 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17177 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17179 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17180 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17181 $as_echo_n "(cached) " >&6
17182 else
17183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17184 /* end confdefs.h. */
17185 int i;
17186 _ACEOF
17187 if ac_fn_c_try_compile "$LINENO"; then :
17188 xorg_cv_cc_flag_unknown_warning_option=yes
17189 else
17190 xorg_cv_cc_flag_unknown_warning_option=no
17191 fi
17192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17193 fi
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17195 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17196 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17197 CFLAGS="$xorg_testset_save_CFLAGS"
17198 fi
17199
17200 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17202 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17203 fi
17204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17206 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17207 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17208 $as_echo_n "(cached) " >&6
17209 else
17210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17211 /* end confdefs.h. */
17212 int i;
17213 _ACEOF
17214 if ac_fn_c_try_compile "$LINENO"; then :
17215 xorg_cv_cc_flag_unused_command_line_argument=yes
17216 else
17217 xorg_cv_cc_flag_unused_command_line_argument=no
17218 fi
17219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17220 fi
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17222 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17223 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17224 CFLAGS="$xorg_testset_save_CFLAGS"
17225 fi
17226
17227 found="no"
17228
17229 if test $found = "no" ; then
17230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17232 fi
17233
17234 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17236 fi
17237
17238 CFLAGS="$CFLAGS -Waddress"
17239
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17241 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
17242 cacheid=xorg_cv_cc_flag__Waddress
17243 if eval \${$cacheid+:} false; then :
17244 $as_echo_n "(cached) " >&6
17245 else
17246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17247 /* end confdefs.h. */
17248 int i;
17249 int
17250 main ()
17251 {
17252
17253 ;
17254 return 0;
17255 }
17256 _ACEOF
17257 if ac_fn_c_try_link "$LINENO"; then :
17258 eval $cacheid=yes
17259 else
17260 eval $cacheid=no
17261 fi
17262 rm -f core conftest.err conftest.$ac_objext \
17263 conftest$ac_exeext conftest.$ac_ext
17264 fi
17265
17266
17267 CFLAGS="$xorg_testset_save_CFLAGS"
17268
17269 eval supported=\$$cacheid
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17271 $as_echo "$supported" >&6; }
17272 if test "$supported" = "yes" ; then
17273 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17274 found="yes"
17275 fi
17276 fi
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292 xorg_testset_save_CFLAGS="$CFLAGS"
17293
17294 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17295 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17297 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17298 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17299 $as_echo_n "(cached) " >&6
17300 else
17301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17302 /* end confdefs.h. */
17303 int i;
17304 _ACEOF
17305 if ac_fn_c_try_compile "$LINENO"; then :
17306 xorg_cv_cc_flag_unknown_warning_option=yes
17307 else
17308 xorg_cv_cc_flag_unknown_warning_option=no
17309 fi
17310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17311 fi
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17313 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17314 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17315 CFLAGS="$xorg_testset_save_CFLAGS"
17316 fi
17317
17318 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17320 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17321 fi
17322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17324 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17325 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17326 $as_echo_n "(cached) " >&6
17327 else
17328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17329 /* end confdefs.h. */
17330 int i;
17331 _ACEOF
17332 if ac_fn_c_try_compile "$LINENO"; then :
17333 xorg_cv_cc_flag_unused_command_line_argument=yes
17334 else
17335 xorg_cv_cc_flag_unused_command_line_argument=no
17336 fi
17337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17338 fi
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17340 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17341 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17342 CFLAGS="$xorg_testset_save_CFLAGS"
17343 fi
17344
17345 found="no"
17346
17347 if test $found = "no" ; then
17348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17350 fi
17351
17352 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17354 fi
17355
17356 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17357
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17359 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17360 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17361 if eval \${$cacheid+:} false; then :
17362 $as_echo_n "(cached) " >&6
17363 else
17364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17365 /* end confdefs.h. */
17366 int i;
17367 int
17368 main ()
17369 {
17370
17371 ;
17372 return 0;
17373 }
17374 _ACEOF
17375 if ac_fn_c_try_link "$LINENO"; then :
17376 eval $cacheid=yes
17377 else
17378 eval $cacheid=no
17379 fi
17380 rm -f core conftest.err conftest.$ac_objext \
17381 conftest$ac_exeext conftest.$ac_ext
17382 fi
17383
17384
17385 CFLAGS="$xorg_testset_save_CFLAGS"
17386
17387 eval supported=\$$cacheid
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17389 $as_echo "$supported" >&6; }
17390 if test "$supported" = "yes" ; then
17391 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17392 found="yes"
17393 fi
17394 fi
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410 xorg_testset_save_CFLAGS="$CFLAGS"
17411
17412 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17413 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17415 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17416 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17417 $as_echo_n "(cached) " >&6
17418 else
17419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17420 /* end confdefs.h. */
17421 int i;
17422 _ACEOF
17423 if ac_fn_c_try_compile "$LINENO"; then :
17424 xorg_cv_cc_flag_unknown_warning_option=yes
17425 else
17426 xorg_cv_cc_flag_unknown_warning_option=no
17427 fi
17428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17429 fi
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17431 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17432 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17433 CFLAGS="$xorg_testset_save_CFLAGS"
17434 fi
17435
17436 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17439 fi
17440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17442 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17443 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17444 $as_echo_n "(cached) " >&6
17445 else
17446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17447 /* end confdefs.h. */
17448 int i;
17449 _ACEOF
17450 if ac_fn_c_try_compile "$LINENO"; then :
17451 xorg_cv_cc_flag_unused_command_line_argument=yes
17452 else
17453 xorg_cv_cc_flag_unused_command_line_argument=no
17454 fi
17455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17456 fi
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17458 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17459 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17460 CFLAGS="$xorg_testset_save_CFLAGS"
17461 fi
17462
17463 found="no"
17464
17465 if test $found = "no" ; then
17466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17468 fi
17469
17470 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17472 fi
17473
17474 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17475
17476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17477 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17478 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17479 if eval \${$cacheid+:} false; then :
17480 $as_echo_n "(cached) " >&6
17481 else
17482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17483 /* end confdefs.h. */
17484 int i;
17485 int
17486 main ()
17487 {
17488
17489 ;
17490 return 0;
17491 }
17492 _ACEOF
17493 if ac_fn_c_try_link "$LINENO"; then :
17494 eval $cacheid=yes
17495 else
17496 eval $cacheid=no
17497 fi
17498 rm -f core conftest.err conftest.$ac_objext \
17499 conftest$ac_exeext conftest.$ac_ext
17500 fi
17501
17502
17503 CFLAGS="$xorg_testset_save_CFLAGS"
17504
17505 eval supported=\$$cacheid
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17507 $as_echo "$supported" >&6; }
17508 if test "$supported" = "yes" ; then
17509 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17510 found="yes"
17511 fi
17512 fi
17513
17514
17515 fi
17516
17517
17518
17519
17520
17521
17522
17523 CWARNFLAGS="$BASE_CFLAGS"
17524 if test "x$GCC" = xyes ; then
17525 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17526 fi
17527
17528
17529
17530
17531
17532
17533
17534
17535 # Check whether --enable-strict-compilation was given.
17536 if test "${enable_strict_compilation+set}" = set; then :
17537 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17538 else
17539 STRICT_COMPILE=no
17540 fi
17541
17542
17543
17544
17545
17546
17547 STRICT_CFLAGS=""
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561 xorg_testset_save_CFLAGS="$CFLAGS"
17562
17563 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17566 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17567 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17568 $as_echo_n "(cached) " >&6
17569 else
17570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17571 /* end confdefs.h. */
17572 int i;
17573 _ACEOF
17574 if ac_fn_c_try_compile "$LINENO"; then :
17575 xorg_cv_cc_flag_unknown_warning_option=yes
17576 else
17577 xorg_cv_cc_flag_unknown_warning_option=no
17578 fi
17579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17580 fi
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17582 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17583 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17584 CFLAGS="$xorg_testset_save_CFLAGS"
17585 fi
17586
17587 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17589 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17590 fi
17591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17593 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17594 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17595 $as_echo_n "(cached) " >&6
17596 else
17597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17598 /* end confdefs.h. */
17599 int i;
17600 _ACEOF
17601 if ac_fn_c_try_compile "$LINENO"; then :
17602 xorg_cv_cc_flag_unused_command_line_argument=yes
17603 else
17604 xorg_cv_cc_flag_unused_command_line_argument=no
17605 fi
17606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17607 fi
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17609 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17610 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17611 CFLAGS="$xorg_testset_save_CFLAGS"
17612 fi
17613
17614 found="no"
17615
17616 if test $found = "no" ; then
17617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17618 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17619 fi
17620
17621 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17623 fi
17624
17625 CFLAGS="$CFLAGS -pedantic"
17626
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17628 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17629 cacheid=xorg_cv_cc_flag__pedantic
17630 if eval \${$cacheid+:} false; then :
17631 $as_echo_n "(cached) " >&6
17632 else
17633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17634 /* end confdefs.h. */
17635 int i;
17636 int
17637 main ()
17638 {
17639
17640 ;
17641 return 0;
17642 }
17643 _ACEOF
17644 if ac_fn_c_try_link "$LINENO"; then :
17645 eval $cacheid=yes
17646 else
17647 eval $cacheid=no
17648 fi
17649 rm -f core conftest.err conftest.$ac_objext \
17650 conftest$ac_exeext conftest.$ac_ext
17651 fi
17652
17653
17654 CFLAGS="$xorg_testset_save_CFLAGS"
17655
17656 eval supported=\$$cacheid
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17658 $as_echo "$supported" >&6; }
17659 if test "$supported" = "yes" ; then
17660 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17661 found="yes"
17662 fi
17663 fi
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679 xorg_testset_save_CFLAGS="$CFLAGS"
17680
17681 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17682 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17684 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17685 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17686 $as_echo_n "(cached) " >&6
17687 else
17688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17689 /* end confdefs.h. */
17690 int i;
17691 _ACEOF
17692 if ac_fn_c_try_compile "$LINENO"; then :
17693 xorg_cv_cc_flag_unknown_warning_option=yes
17694 else
17695 xorg_cv_cc_flag_unknown_warning_option=no
17696 fi
17697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17698 fi
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17700 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17701 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17702 CFLAGS="$xorg_testset_save_CFLAGS"
17703 fi
17704
17705 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17707 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17708 fi
17709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17711 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17712 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17713 $as_echo_n "(cached) " >&6
17714 else
17715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17716 /* end confdefs.h. */
17717 int i;
17718 _ACEOF
17719 if ac_fn_c_try_compile "$LINENO"; then :
17720 xorg_cv_cc_flag_unused_command_line_argument=yes
17721 else
17722 xorg_cv_cc_flag_unused_command_line_argument=no
17723 fi
17724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17725 fi
17726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17727 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17728 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17729 CFLAGS="$xorg_testset_save_CFLAGS"
17730 fi
17731
17732 found="no"
17733
17734 if test $found = "no" ; then
17735 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17736 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17737 fi
17738
17739 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17741 fi
17742
17743 CFLAGS="$CFLAGS -Werror"
17744
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17746 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17747 cacheid=xorg_cv_cc_flag__Werror
17748 if eval \${$cacheid+:} false; then :
17749 $as_echo_n "(cached) " >&6
17750 else
17751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17752 /* end confdefs.h. */
17753 int i;
17754 int
17755 main ()
17756 {
17757
17758 ;
17759 return 0;
17760 }
17761 _ACEOF
17762 if ac_fn_c_try_link "$LINENO"; then :
17763 eval $cacheid=yes
17764 else
17765 eval $cacheid=no
17766 fi
17767 rm -f core conftest.err conftest.$ac_objext \
17768 conftest$ac_exeext conftest.$ac_ext
17769 fi
17770
17771
17772 CFLAGS="$xorg_testset_save_CFLAGS"
17773
17774 eval supported=\$$cacheid
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17776 $as_echo "$supported" >&6; }
17777 if test "$supported" = "yes" ; then
17778 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17779 found="yes"
17780 fi
17781 fi
17782
17783 if test $found = "no" ; then
17784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17785 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17786 fi
17787
17788 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17790 fi
17791
17792 CFLAGS="$CFLAGS -errwarn"
17793
17794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17795 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17796 cacheid=xorg_cv_cc_flag__errwarn
17797 if eval \${$cacheid+:} false; then :
17798 $as_echo_n "(cached) " >&6
17799 else
17800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17801 /* end confdefs.h. */
17802 int i;
17803 int
17804 main ()
17805 {
17806
17807 ;
17808 return 0;
17809 }
17810 _ACEOF
17811 if ac_fn_c_try_link "$LINENO"; then :
17812 eval $cacheid=yes
17813 else
17814 eval $cacheid=no
17815 fi
17816 rm -f core conftest.err conftest.$ac_objext \
17817 conftest$ac_exeext conftest.$ac_ext
17818 fi
17819
17820
17821 CFLAGS="$xorg_testset_save_CFLAGS"
17822
17823 eval supported=\$$cacheid
17824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17825 $as_echo "$supported" >&6; }
17826 if test "$supported" = "yes" ; then
17827 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17828 found="yes"
17829 fi
17830 fi
17831
17832
17833
17834 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17835 # activate it with -Werror, so we add it here explicitly.
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849 xorg_testset_save_CFLAGS="$CFLAGS"
17850
17851 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17854 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17855 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17856 $as_echo_n "(cached) " >&6
17857 else
17858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17859 /* end confdefs.h. */
17860 int i;
17861 _ACEOF
17862 if ac_fn_c_try_compile "$LINENO"; then :
17863 xorg_cv_cc_flag_unknown_warning_option=yes
17864 else
17865 xorg_cv_cc_flag_unknown_warning_option=no
17866 fi
17867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17868 fi
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17870 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17871 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17872 CFLAGS="$xorg_testset_save_CFLAGS"
17873 fi
17874
17875 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17877 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17878 fi
17879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17881 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17882 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17883 $as_echo_n "(cached) " >&6
17884 else
17885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17886 /* end confdefs.h. */
17887 int i;
17888 _ACEOF
17889 if ac_fn_c_try_compile "$LINENO"; then :
17890 xorg_cv_cc_flag_unused_command_line_argument=yes
17891 else
17892 xorg_cv_cc_flag_unused_command_line_argument=no
17893 fi
17894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17895 fi
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17897 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17898 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17899 CFLAGS="$xorg_testset_save_CFLAGS"
17900 fi
17901
17902 found="no"
17903
17904 if test $found = "no" ; then
17905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17906 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17907 fi
17908
17909 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17911 fi
17912
17913 CFLAGS="$CFLAGS -Werror=attributes"
17914
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17916 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17917 cacheid=xorg_cv_cc_flag__Werror_attributes
17918 if eval \${$cacheid+:} false; then :
17919 $as_echo_n "(cached) " >&6
17920 else
17921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17922 /* end confdefs.h. */
17923 int i;
17924 int
17925 main ()
17926 {
17927
17928 ;
17929 return 0;
17930 }
17931 _ACEOF
17932 if ac_fn_c_try_link "$LINENO"; then :
17933 eval $cacheid=yes
17934 else
17935 eval $cacheid=no
17936 fi
17937 rm -f core conftest.err conftest.$ac_objext \
17938 conftest$ac_exeext conftest.$ac_ext
17939 fi
17940
17941
17942 CFLAGS="$xorg_testset_save_CFLAGS"
17943
17944 eval supported=\$$cacheid
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17946 $as_echo "$supported" >&6; }
17947 if test "$supported" = "yes" ; then
17948 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17949 found="yes"
17950 fi
17951 fi
17952
17953
17954
17955 if test "x$STRICT_COMPILE" = "xyes"; then
17956 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17957 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17958 fi
17959
17960
17961
17962
17963
17964
17965 cat >>confdefs.h <<_ACEOF
17966 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17967 _ACEOF
17968
17969 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17970 if test "x$PVM" = "x"; then
17971 PVM="0"
17972 fi
17973
17974 cat >>confdefs.h <<_ACEOF
17975 #define PACKAGE_VERSION_MINOR $PVM
17976 _ACEOF
17977
17978 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17979 if test "x$PVP" = "x"; then
17980 PVP="0"
17981 fi
17982
17983 cat >>confdefs.h <<_ACEOF
17984 #define PACKAGE_VERSION_PATCHLEVEL $PVP
17985 _ACEOF
17986
17987
17988
17989 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17990 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17991 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17992 echo 'git directory not found: installing possibly empty changelog.' >&2)"
17993
17994
17995
17996
17997 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17998 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17999 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18000 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
18001 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
18002
18003
18004
18005
18006
18007
18008 if test x$APP_MAN_SUFFIX = x ; then
18009 APP_MAN_SUFFIX=1
18010 fi
18011 if test x$APP_MAN_DIR = x ; then
18012 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18013 fi
18014
18015 if test x$LIB_MAN_SUFFIX = x ; then
18016 LIB_MAN_SUFFIX=3
18017 fi
18018 if test x$LIB_MAN_DIR = x ; then
18019 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18020 fi
18021
18022 if test x$FILE_MAN_SUFFIX = x ; then
18023 case $host_os in
18024 solaris*) FILE_MAN_SUFFIX=4 ;;
18025 *) FILE_MAN_SUFFIX=5 ;;
18026 esac
18027 fi
18028 if test x$FILE_MAN_DIR = x ; then
18029 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18030 fi
18031
18032 if test x$MISC_MAN_SUFFIX = x ; then
18033 case $host_os in
18034 solaris*) MISC_MAN_SUFFIX=5 ;;
18035 *) MISC_MAN_SUFFIX=7 ;;
18036 esac
18037 fi
18038 if test x$MISC_MAN_DIR = x ; then
18039 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18040 fi
18041
18042 if test x$DRIVER_MAN_SUFFIX = x ; then
18043 case $host_os in
18044 solaris*) DRIVER_MAN_SUFFIX=7 ;;
18045 *) DRIVER_MAN_SUFFIX=4 ;;
18046 esac
18047 fi
18048 if test x$DRIVER_MAN_DIR = x ; then
18049 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18050 fi
18051
18052 if test x$ADMIN_MAN_SUFFIX = x ; then
18053 case $host_os in
18054 solaris*) ADMIN_MAN_SUFFIX=1m ;;
18055 *) ADMIN_MAN_SUFFIX=8 ;;
18056 esac
18057 fi
18058 if test x$ADMIN_MAN_DIR = x ; then
18059 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18060 fi
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076 XORG_MAN_PAGE="X Version 11"
18077
18078 MAN_SUBSTS="\
18079 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18080 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18081 -e 's|__xservername__|Xorg|g' \
18082 -e 's|__xconfigfile__|xorg.conf|g' \
18083 -e 's|__projectroot__|\$(prefix)|g' \
18084 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
18085 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18086 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18087 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18088 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18089 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18090 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18091
18092
18093
18094 # Check whether --enable-silent-rules was given.
18095 if test "${enable_silent_rules+set}" = set; then :
18096 enableval=$enable_silent_rules;
18097 fi
18098
18099 case $enable_silent_rules in # (((
18100 yes) AM_DEFAULT_VERBOSITY=0;;
18101 no) AM_DEFAULT_VERBOSITY=1;;
18102 *) AM_DEFAULT_VERBOSITY=0;;
18103 esac
18104 am_make=${MAKE-make}
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18106 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18107 if ${am_cv_make_support_nested_variables+:} false; then :
18108 $as_echo_n "(cached) " >&6
18109 else
18110 if $as_echo 'TRUE=$(BAR$(V))
18111 BAR0=false
18112 BAR1=true
18113 V=1
18114 am__doit:
18115 @$(TRUE)
18116 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18117 am_cv_make_support_nested_variables=yes
18118 else
18119 am_cv_make_support_nested_variables=no
18120 fi
18121 fi
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18123 $as_echo "$am_cv_make_support_nested_variables" >&6; }
18124 if test $am_cv_make_support_nested_variables = yes; then
18125 AM_V='$(V)'
18126 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18127 else
18128 AM_V=$AM_DEFAULT_VERBOSITY
18129 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18130 fi
18131 AM_BACKSLASH='\'
18132
18133
18134
18135
18136 # Check whether --enable-devel-docs was given.
18137 if test "${enable_devel_docs+set}" = set; then :
18138 enableval=$enable_devel_docs; build_devel_docs=$enableval
18139 else
18140 build_devel_docs=yes
18141 fi
18142
18143
18144 if test x$build_devel_docs = xyes; then
18145 ENABLE_DEVEL_DOCS_TRUE=
18146 ENABLE_DEVEL_DOCS_FALSE='#'
18147 else
18148 ENABLE_DEVEL_DOCS_TRUE='#'
18149 ENABLE_DEVEL_DOCS_FALSE=
18150 fi
18151
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5
18153 $as_echo_n "checking whether to build developer documentation... " >&6; }
18154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5
18155 $as_echo "$build_devel_docs" >&6; }
18156
18157
18158
18159
18160
18161
18162 # Check whether --with-doxygen was given.
18163 if test "${with_doxygen+set}" = set; then :
18164 withval=$with_doxygen; use_doxygen=$withval
18165 else
18166 use_doxygen=auto
18167 fi
18168
18169
18170
18171 if test "x$use_doxygen" = x"auto"; then
18172 # Extract the first word of "doxygen", so it can be a program name with args.
18173 set dummy doxygen; ac_word=$2
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18175 $as_echo_n "checking for $ac_word... " >&6; }
18176 if ${ac_cv_path_DOXYGEN+:} false; then :
18177 $as_echo_n "(cached) " >&6
18178 else
18179 case $DOXYGEN in
18180 [\\/]* | ?:[\\/]*)
18181 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
18182 ;;
18183 *)
18184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18185 for as_dir in $PATH
18186 do
18187 IFS=$as_save_IFS
18188 test -z "$as_dir" && as_dir=.
18189 for ac_exec_ext in '' $ac_executable_extensions; do
18190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18191 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
18192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18193 break 2
18194 fi
18195 done
18196 done
18197 IFS=$as_save_IFS
18198
18199 ;;
18200 esac
18201 fi
18202 DOXYGEN=$ac_cv_path_DOXYGEN
18203 if test -n "$DOXYGEN"; then
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
18205 $as_echo "$DOXYGEN" >&6; }
18206 else
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18208 $as_echo "no" >&6; }
18209 fi
18210
18211
18212 if test "x$DOXYGEN" = "x"; then
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5
18214 $as_echo "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;}
18215 have_doxygen=no
18216 else
18217 have_doxygen=yes
18218 fi
18219 elif test "x$use_doxygen" = x"yes" ; then
18220 # Extract the first word of "doxygen", so it can be a program name with args.
18221 set dummy doxygen; ac_word=$2
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18223 $as_echo_n "checking for $ac_word... " >&6; }
18224 if ${ac_cv_path_DOXYGEN+:} false; then :
18225 $as_echo_n "(cached) " >&6
18226 else
18227 case $DOXYGEN in
18228 [\\/]* | ?:[\\/]*)
18229 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
18230 ;;
18231 *)
18232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18233 for as_dir in $PATH
18234 do
18235 IFS=$as_save_IFS
18236 test -z "$as_dir" && as_dir=.
18237 for ac_exec_ext in '' $ac_executable_extensions; do
18238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18239 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
18240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18241 break 2
18242 fi
18243 done
18244 done
18245 IFS=$as_save_IFS
18246
18247 ;;
18248 esac
18249 fi
18250 DOXYGEN=$ac_cv_path_DOXYGEN
18251 if test -n "$DOXYGEN"; then
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
18253 $as_echo "$DOXYGEN" >&6; }
18254 else
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18256 $as_echo "no" >&6; }
18257 fi
18258
18259
18260 if test "x$DOXYGEN" = "x"; then
18261 as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5
18262 fi
18263 have_doxygen=yes
18264 elif test "x$use_doxygen" = x"no" ; then
18265 if test "x$DOXYGEN" != "x"; then
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5
18267 $as_echo "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;}
18268 fi
18269 have_doxygen=no
18270 else
18271 as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5
18272 fi
18273
18274
18275 HAVE_DOT=no
18276 if test "x$have_doxygen" = "xyes"; then
18277 # Extract the first word of "dot", so it can be a program name with args.
18278 set dummy dot; ac_word=$2
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18280 $as_echo_n "checking for $ac_word... " >&6; }
18281 if ${ac_cv_path_DOT+:} false; then :
18282 $as_echo_n "(cached) " >&6
18283 else
18284 case $DOT in
18285 [\\/]* | ?:[\\/]*)
18286 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18287 ;;
18288 *)
18289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18290 for as_dir in $PATH
18291 do
18292 IFS=$as_save_IFS
18293 test -z "$as_dir" && as_dir=.
18294 for ac_exec_ext in '' $ac_executable_extensions; do
18295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18296 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18298 break 2
18299 fi
18300 done
18301 done
18302 IFS=$as_save_IFS
18303
18304 ;;
18305 esac
18306 fi
18307 DOT=$ac_cv_path_DOT
18308 if test -n "$DOT"; then
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
18310 $as_echo "$DOT" >&6; }
18311 else
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18313 $as_echo "no" >&6; }
18314 fi
18315
18316
18317 if test "x$DOT" != "x"; then
18318 HAVE_DOT=yes
18319 fi
18320 fi
18321
18322
18323 if test "$HAVE_DOT" = "yes"; then
18324 HAVE_DOT_TRUE=
18325 HAVE_DOT_FALSE='#'
18326 else
18327 HAVE_DOT_TRUE='#'
18328 HAVE_DOT_FALSE=
18329 fi
18330
18331 if test "$have_doxygen" = yes; then
18332 HAVE_DOXYGEN_TRUE=
18333 HAVE_DOXYGEN_FALSE='#'
18334 else
18335 HAVE_DOXYGEN_TRUE='#'
18336 HAVE_DOXYGEN_FALSE=
18337 fi
18338
18339
18340
18341
18342 for ac_header in sys/shm.h
18343 do :
18344 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
18345 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
18346 cat >>confdefs.h <<_ACEOF
18347 #define HAVE_SYS_SHM_H 1
18348 _ACEOF
18349
18350 fi
18351
18352 done
18353
18354 if test x$ac_cv_header_sys_shm_h = xyes; then
18355 HAVE_SHM_TRUE=
18356 HAVE_SHM_FALSE='#'
18357 else
18358 HAVE_SHM_TRUE='#'
18359 HAVE_SHM_FALSE=
18360 fi
18361
18362
18363 pkg_failed=no
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_SHM" >&5
18365 $as_echo_n "checking for XCB_SHM... " >&6; }
18366
18367 if test -n "$XCB_SHM_CFLAGS"; then
18368 pkg_cv_XCB_SHM_CFLAGS="$XCB_SHM_CFLAGS"
18369 elif test -n "$PKG_CONFIG"; then
18370 if test -n "$PKG_CONFIG" && \
18371 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-shm\""; } >&5
18372 ($PKG_CONFIG --exists --print-errors "xcb-shm") 2>&5
18373 ac_status=$?
18374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18375 test $ac_status = 0; }; then
18376 pkg_cv_XCB_SHM_CFLAGS=`$PKG_CONFIG --cflags "xcb-shm" 2>/dev/null`
18377 test "x$?" != "x0" && pkg_failed=yes
18378 else
18379 pkg_failed=yes
18380 fi
18381 else
18382 pkg_failed=untried
18383 fi
18384 if test -n "$XCB_SHM_LIBS"; then
18385 pkg_cv_XCB_SHM_LIBS="$XCB_SHM_LIBS"
18386 elif test -n "$PKG_CONFIG"; then
18387 if test -n "$PKG_CONFIG" && \
18388 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-shm\""; } >&5
18389 ($PKG_CONFIG --exists --print-errors "xcb-shm") 2>&5
18390 ac_status=$?
18391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18392 test $ac_status = 0; }; then
18393 pkg_cv_XCB_SHM_LIBS=`$PKG_CONFIG --libs "xcb-shm" 2>/dev/null`
18394 test "x$?" != "x0" && pkg_failed=yes
18395 else
18396 pkg_failed=yes
18397 fi
18398 else
18399 pkg_failed=untried
18400 fi
18401
18402
18403
18404 if test $pkg_failed = yes; then
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18406 $as_echo "no" >&6; }
18407
18408 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18409 _pkg_short_errors_supported=yes
18410 else
18411 _pkg_short_errors_supported=no
18412 fi
18413 if test $_pkg_short_errors_supported = yes; then
18414 XCB_SHM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb-shm" 2>&1`
18415 else
18416 XCB_SHM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-shm" 2>&1`
18417 fi
18418 # Put the nasty error message in config.log where it belongs
18419 echo "$XCB_SHM_PKG_ERRORS" >&5
18420
18421 as_fn_error $? "Package requirements (xcb-shm) were not met:
18422
18423 $XCB_SHM_PKG_ERRORS
18424
18425 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18426 installed software in a non-standard prefix.
18427
18428 Alternatively, you may set the environment variables XCB_SHM_CFLAGS
18429 and XCB_SHM_LIBS to avoid the need to call pkg-config.
18430 See the pkg-config man page for more details." "$LINENO" 5
18431 elif test $pkg_failed = untried; then
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18433 $as_echo "no" >&6; }
18434 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18436 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18437 is in your PATH or set the PKG_CONFIG environment variable to the full
18438 path to pkg-config.
18439
18440 Alternatively, you may set the environment variables XCB_SHM_CFLAGS
18441 and XCB_SHM_LIBS to avoid the need to call pkg-config.
18442 See the pkg-config man page for more details.
18443
18444 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18445 See \`config.log' for more details" "$LINENO" 5; }
18446 else
18447 XCB_SHM_CFLAGS=$pkg_cv_XCB_SHM_CFLAGS
18448 XCB_SHM_LIBS=$pkg_cv_XCB_SHM_LIBS
18449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18450 $as_echo "yes" >&6; }
18451
18452 fi
18453
18454 pkg_failed=no
18455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPROTO" >&5
18456 $as_echo_n "checking for XPROTO... " >&6; }
18457
18458 if test -n "$XPROTO_CFLAGS"; then
18459 pkg_cv_XPROTO_CFLAGS="$XPROTO_CFLAGS"
18460 elif test -n "$PKG_CONFIG"; then
18461 if test -n "$PKG_CONFIG" && \
18462 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.8\""; } >&5
18463 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.8") 2>&5
18464 ac_status=$?
18465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18466 test $ac_status = 0; }; then
18467 pkg_cv_XPROTO_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.8" 2>/dev/null`
18468 test "x$?" != "x0" && pkg_failed=yes
18469 else
18470 pkg_failed=yes
18471 fi
18472 else
18473 pkg_failed=untried
18474 fi
18475 if test -n "$XPROTO_LIBS"; then
18476 pkg_cv_XPROTO_LIBS="$XPROTO_LIBS"
18477 elif test -n "$PKG_CONFIG"; then
18478 if test -n "$PKG_CONFIG" && \
18479 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.8\""; } >&5
18480 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.8") 2>&5
18481 ac_status=$?
18482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18483 test $ac_status = 0; }; then
18484 pkg_cv_XPROTO_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.8" 2>/dev/null`
18485 test "x$?" != "x0" && pkg_failed=yes
18486 else
18487 pkg_failed=yes
18488 fi
18489 else
18490 pkg_failed=untried
18491 fi
18492
18493
18494
18495 if test $pkg_failed = yes; then
18496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18497 $as_echo "no" >&6; }
18498
18499 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18500 _pkg_short_errors_supported=yes
18501 else
18502 _pkg_short_errors_supported=no
18503 fi
18504 if test $_pkg_short_errors_supported = yes; then
18505 XPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.8" 2>&1`
18506 else
18507 XPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.8" 2>&1`
18508 fi
18509 # Put the nasty error message in config.log where it belongs
18510 echo "$XPROTO_PKG_ERRORS" >&5
18511
18512 as_fn_error $? "Package requirements (xproto >= 7.0.8) were not met:
18513
18514 $XPROTO_PKG_ERRORS
18515
18516 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18517 installed software in a non-standard prefix.
18518
18519 Alternatively, you may set the environment variables XPROTO_CFLAGS
18520 and XPROTO_LIBS to avoid the need to call pkg-config.
18521 See the pkg-config man page for more details." "$LINENO" 5
18522 elif test $pkg_failed = untried; then
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18524 $as_echo "no" >&6; }
18525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18527 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18528 is in your PATH or set the PKG_CONFIG environment variable to the full
18529 path to pkg-config.
18530
18531 Alternatively, you may set the environment variables XPROTO_CFLAGS
18532 and XPROTO_LIBS to avoid the need to call pkg-config.
18533 See the pkg-config man page for more details.
18534
18535 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18536 See \`config.log' for more details" "$LINENO" 5; }
18537 else
18538 XPROTO_CFLAGS=$pkg_cv_XPROTO_CFLAGS
18539 XPROTO_LIBS=$pkg_cv_XPROTO_LIBS
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18541 $as_echo "yes" >&6; }
18542
18543 fi
18544
18545 pkg_failed=no
18546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_UTIL" >&5
18547 $as_echo_n "checking for XCB_UTIL... " >&6; }
18548
18549 if test -n "$XCB_UTIL_CFLAGS"; then
18550 pkg_cv_XCB_UTIL_CFLAGS="$XCB_UTIL_CFLAGS"
18551 elif test -n "$PKG_CONFIG"; then
18552 if test -n "$PKG_CONFIG" && \
18553 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-util\""; } >&5
18554 ($PKG_CONFIG --exists --print-errors "xcb-util") 2>&5
18555 ac_status=$?
18556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18557 test $ac_status = 0; }; then
18558 pkg_cv_XCB_UTIL_CFLAGS=`$PKG_CONFIG --cflags "xcb-util" 2>/dev/null`
18559 test "x$?" != "x0" && pkg_failed=yes
18560 else
18561 pkg_failed=yes
18562 fi
18563 else
18564 pkg_failed=untried
18565 fi
18566 if test -n "$XCB_UTIL_LIBS"; then
18567 pkg_cv_XCB_UTIL_LIBS="$XCB_UTIL_LIBS"
18568 elif test -n "$PKG_CONFIG"; then
18569 if test -n "$PKG_CONFIG" && \
18570 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-util\""; } >&5
18571 ($PKG_CONFIG --exists --print-errors "xcb-util") 2>&5
18572 ac_status=$?
18573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18574 test $ac_status = 0; }; then
18575 pkg_cv_XCB_UTIL_LIBS=`$PKG_CONFIG --libs "xcb-util" 2>/dev/null`
18576 test "x$?" != "x0" && pkg_failed=yes
18577 else
18578 pkg_failed=yes
18579 fi
18580 else
18581 pkg_failed=untried
18582 fi
18583
18584
18585
18586 if test $pkg_failed = yes; then
18587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18588 $as_echo "no" >&6; }
18589
18590 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18591 _pkg_short_errors_supported=yes
18592 else
18593 _pkg_short_errors_supported=no
18594 fi
18595 if test $_pkg_short_errors_supported = yes; then
18596 XCB_UTIL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb-util" 2>&1`
18597 else
18598 XCB_UTIL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-util" 2>&1`
18599 fi
18600 # Put the nasty error message in config.log where it belongs
18601 echo "$XCB_UTIL_PKG_ERRORS" >&5
18602
18603 as_fn_error $? "Package requirements (xcb-util) were not met:
18604
18605 $XCB_UTIL_PKG_ERRORS
18606
18607 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18608 installed software in a non-standard prefix.
18609
18610 Alternatively, you may set the environment variables XCB_UTIL_CFLAGS
18611 and XCB_UTIL_LIBS to avoid the need to call pkg-config.
18612 See the pkg-config man page for more details." "$LINENO" 5
18613 elif test $pkg_failed = untried; then
18614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18615 $as_echo "no" >&6; }
18616 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18617 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18618 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18619 is in your PATH or set the PKG_CONFIG environment variable to the full
18620 path to pkg-config.
18621
18622 Alternatively, you may set the environment variables XCB_UTIL_CFLAGS
18623 and XCB_UTIL_LIBS to avoid the need to call pkg-config.
18624 See the pkg-config man page for more details.
18625
18626 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18627 See \`config.log' for more details" "$LINENO" 5; }
18628 else
18629 XCB_UTIL_CFLAGS=$pkg_cv_XCB_UTIL_CFLAGS
18630 XCB_UTIL_LIBS=$pkg_cv_XCB_UTIL_LIBS
18631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18632 $as_echo "yes" >&6; }
18633
18634 fi
18635
18636 ac_config_files="$ac_config_files Makefile image/Makefile test/Makefile image/xcb-image.pc"
18637
18638 cat >confcache <<\_ACEOF
18639 # This file is a shell script that caches the results of configure
18640 # tests run on this system so they can be shared between configure
18641 # scripts and configure runs, see configure's option --config-cache.
18642 # It is not useful on other systems. If it contains results you don't
18643 # want to keep, you may remove or edit it.
18644 #
18645 # config.status only pays attention to the cache file if you give it
18646 # the --recheck option to rerun configure.
18647 #
18648 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18649 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18650 # following values.
18651
18652 _ACEOF
18653
18654 # The following way of writing the cache mishandles newlines in values,
18655 # but we know of no workaround that is simple, portable, and efficient.
18656 # So, we kill variables containing newlines.
18657 # Ultrix sh set writes to stderr and can't be redirected directly,
18658 # and sets the high bit in the cache file unless we assign to the vars.
18659 (
18660 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18661 eval ac_val=\$$ac_var
18662 case $ac_val in #(
18663 *${as_nl}*)
18664 case $ac_var in #(
18665 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18666 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18667 esac
18668 case $ac_var in #(
18669 _ | IFS | as_nl) ;; #(
18670 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18671 *) { eval $ac_var=; unset $ac_var;} ;;
18672 esac ;;
18673 esac
18674 done
18675
18676 (set) 2>&1 |
18677 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18678 *${as_nl}ac_space=\ *)
18679 # `set' does not quote correctly, so add quotes: double-quote
18680 # substitution turns \\\\ into \\, and sed turns \\ into \.
18681 sed -n \
18682 "s/'/'\\\\''/g;
18683 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18684 ;; #(
18685 *)
18686 # `set' quotes correctly as required by POSIX, so do not add quotes.
18687 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18688 ;;
18689 esac |
18690 sort
18691 ) |
18692 sed '
18693 /^ac_cv_env_/b end
18694 t clear
18695 :clear
18696 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18697 t end
18698 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18699 :end' >>confcache
18700 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18701 if test -w "$cache_file"; then
18702 if test "x$cache_file" != "x/dev/null"; then
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18704 $as_echo "$as_me: updating cache $cache_file" >&6;}
18705 if test ! -f "$cache_file" || test -h "$cache_file"; then
18706 cat confcache >"$cache_file"
18707 else
18708 case $cache_file in #(
18709 */* | ?:*)
18710 mv -f confcache "$cache_file"$$ &&
18711 mv -f "$cache_file"$$ "$cache_file" ;; #(
18712 *)
18713 mv -f confcache "$cache_file" ;;
18714 esac
18715 fi
18716 fi
18717 else
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18719 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18720 fi
18721 fi
18722 rm -f confcache
18723
18724 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18725 # Let make expand exec_prefix.
18726 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18727
18728 DEFS=-DHAVE_CONFIG_H
18729
18730 ac_libobjs=
18731 ac_ltlibobjs=
18732 U=
18733 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18734 # 1. Remove the extension, and $U if already installed.
18735 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18736 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18737 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18738 # will be set to the directory where LIBOBJS objects are built.
18739 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18740 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18741 done
18742 LIBOBJS=$ac_libobjs
18743
18744 LTLIBOBJS=$ac_ltlibobjs
18745
18746
18747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18748 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18749 if test -n "$am_sleep_pid"; then
18750 # Hide warnings about reused PIDs.
18751 wait $am_sleep_pid 2>/dev/null
18752 fi
18753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18754 $as_echo "done" >&6; }
18755 if test -n "$EXEEXT"; then
18756 am__EXEEXT_TRUE=
18757 am__EXEEXT_FALSE='#'
18758 else
18759 am__EXEEXT_TRUE='#'
18760 am__EXEEXT_FALSE=
18761 fi
18762
18763 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18764 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18765 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18766 fi
18767 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18768 as_fn_error $? "conditional \"AMDEP\" was never defined.
18769 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18770 fi
18771 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18772 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18774 fi
18775 if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then
18776 as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined.
18777 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18778 fi
18779 if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then
18780 as_fn_error $? "conditional \"HAVE_DOT\" was never defined.
18781 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18782 fi
18783 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
18784 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
18785 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18786 fi
18787 if test -z "${HAVE_SHM_TRUE}" && test -z "${HAVE_SHM_FALSE}"; then
18788 as_fn_error $? "conditional \"HAVE_SHM\" was never defined.
18789 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18790 fi
18791
18792 : "${CONFIG_STATUS=./config.status}"
18793 ac_write_fail=0
18794 ac_clean_files_save=$ac_clean_files
18795 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18796 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18797 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18798 as_write_fail=0
18799 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18800 #! $SHELL
18801 # Generated by $as_me.
18802 # Run this file to recreate the current configuration.
18803 # Compiler output produced by configure, useful for debugging
18804 # configure, is in config.log if it exists.
18805
18806 debug=false
18807 ac_cs_recheck=false
18808 ac_cs_silent=false
18809
18810 SHELL=\${CONFIG_SHELL-$SHELL}
18811 export SHELL
18812 _ASEOF
18813 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18814 ## -------------------- ##
18815 ## M4sh Initialization. ##
18816 ## -------------------- ##
18817
18818 # Be more Bourne compatible
18819 DUALCASE=1; export DUALCASE # for MKS sh
18820 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18821 emulate sh
18822 NULLCMD=:
18823 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18824 # is contrary to our usage. Disable this feature.
18825 alias -g '${1+"$@"}'='"$@"'
18826 setopt NO_GLOB_SUBST
18827 else
18828 case `(set -o) 2>/dev/null` in #(
18829 *posix*) :
18830 set -o posix ;; #(
18831 *) :
18832 ;;
18833 esac
18834 fi
18835
18836
18837 as_nl='
18838 '
18839 export as_nl
18840 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18841 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18842 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18843 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18844 # Prefer a ksh shell builtin over an external printf program on Solaris,
18845 # but without wasting forks for bash or zsh.
18846 if test -z "$BASH_VERSION$ZSH_VERSION" \
18847 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18848 as_echo='print -r --'
18849 as_echo_n='print -rn --'
18850 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18851 as_echo='printf %s\n'
18852 as_echo_n='printf %s'
18853 else
18854 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18855 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18856 as_echo_n='/usr/ucb/echo -n'
18857 else
18858 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18859 as_echo_n_body='eval
18860 arg=$1;
18861 case $arg in #(
18862 *"$as_nl"*)
18863 expr "X$arg" : "X\\(.*\\)$as_nl";
18864 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18865 esac;
18866 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18867 '
18868 export as_echo_n_body
18869 as_echo_n='sh -c $as_echo_n_body as_echo'
18870 fi
18871 export as_echo_body
18872 as_echo='sh -c $as_echo_body as_echo'
18873 fi
18874
18875 # The user is always right.
18876 if test "${PATH_SEPARATOR+set}" != set; then
18877 PATH_SEPARATOR=:
18878 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18879 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18880 PATH_SEPARATOR=';'
18881 }
18882 fi
18883
18884
18885 # IFS
18886 # We need space, tab and new line, in precisely that order. Quoting is
18887 # there to prevent editors from complaining about space-tab.
18888 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18889 # splitting by setting IFS to empty value.)
18890 IFS=" "" $as_nl"
18891
18892 # Find who we are. Look in the path if we contain no directory separator.
18893 as_myself=
18894 case $0 in #((
18895 *[\\/]* ) as_myself=$0 ;;
18896 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18897 for as_dir in $PATH
18898 do
18899 IFS=$as_save_IFS
18900 test -z "$as_dir" && as_dir=.
18901 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18902 done
18903 IFS=$as_save_IFS
18904
18905 ;;
18906 esac
18907 # We did not find ourselves, most probably we were run as `sh COMMAND'
18908 # in which case we are not to be found in the path.
18909 if test "x$as_myself" = x; then
18910 as_myself=$0
18911 fi
18912 if test ! -f "$as_myself"; then
18913 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18914 exit 1
18915 fi
18916
18917 # Unset variables that we do not need and which cause bugs (e.g. in
18918 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18919 # suppresses any "Segmentation fault" message there. '((' could
18920 # trigger a bug in pdksh 5.2.14.
18921 for as_var in BASH_ENV ENV MAIL MAILPATH
18922 do eval test x\${$as_var+set} = xset \
18923 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18924 done
18925 PS1='$ '
18926 PS2='> '
18927 PS4='+ '
18928
18929 # NLS nuisances.
18930 LC_ALL=C
18931 export LC_ALL
18932 LANGUAGE=C
18933 export LANGUAGE
18934
18935 # CDPATH.
18936 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18937
18938
18939 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18940 # ----------------------------------------
18941 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18942 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18943 # script with STATUS, using 1 if that was 0.
18944 as_fn_error ()
18945 {
18946 as_status=$1; test $as_status -eq 0 && as_status=1
18947 if test "$4"; then
18948 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18949 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18950 fi
18951 $as_echo "$as_me: error: $2" >&2
18952 as_fn_exit $as_status
18953 } # as_fn_error
18954
18955
18956 # as_fn_set_status STATUS
18957 # -----------------------
18958 # Set $? to STATUS, without forking.
18959 as_fn_set_status ()
18960 {
18961 return $1
18962 } # as_fn_set_status
18963
18964 # as_fn_exit STATUS
18965 # -----------------
18966 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18967 as_fn_exit ()
18968 {
18969 set +e
18970 as_fn_set_status $1
18971 exit $1
18972 } # as_fn_exit
18973
18974 # as_fn_unset VAR
18975 # ---------------
18976 # Portably unset VAR.
18977 as_fn_unset ()
18978 {
18979 { eval $1=; unset $1;}
18980 }
18981 as_unset=as_fn_unset
18982 # as_fn_append VAR VALUE
18983 # ----------------------
18984 # Append the text in VALUE to the end of the definition contained in VAR. Take
18985 # advantage of any shell optimizations that allow amortized linear growth over
18986 # repeated appends, instead of the typical quadratic growth present in naive
18987 # implementations.
18988 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18989 eval 'as_fn_append ()
18990 {
18991 eval $1+=\$2
18992 }'
18993 else
18994 as_fn_append ()
18995 {
18996 eval $1=\$$1\$2
18997 }
18998 fi # as_fn_append
18999
19000 # as_fn_arith ARG...
19001 # ------------------
19002 # Perform arithmetic evaluation on the ARGs, and store the result in the
19003 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19004 # must be portable across $(()) and expr.
19005 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19006 eval 'as_fn_arith ()
19007 {
19008 as_val=$(( $* ))
19009 }'
19010 else
19011 as_fn_arith ()
19012 {
19013 as_val=`expr "$@" || test $? -eq 1`
19014 }
19015 fi # as_fn_arith
19016
19017
19018 if expr a : '\(a\)' >/dev/null 2>&1 &&
19019 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19020 as_expr=expr
19021 else
19022 as_expr=false
19023 fi
19024
19025 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19026 as_basename=basename
19027 else
19028 as_basename=false
19029 fi
19030
19031 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19032 as_dirname=dirname
19033 else
19034 as_dirname=false
19035 fi
19036
19037 as_me=`$as_basename -- "$0" ||
19038 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19039 X"$0" : 'X\(//\)$' \| \
19040 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19041 $as_echo X/"$0" |
19042 sed '/^.*\/\([^/][^/]*\)\/*$/{
19043 s//\1/
19044 q
19045 }
19046 /^X\/\(\/\/\)$/{
19047 s//\1/
19048 q
19049 }
19050 /^X\/\(\/\).*/{
19051 s//\1/
19052 q
19053 }
19054 s/.*/./; q'`
19055
19056 # Avoid depending upon Character Ranges.
19057 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19058 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19059 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19060 as_cr_digits='0123456789'
19061 as_cr_alnum=$as_cr_Letters$as_cr_digits
19062
19063 ECHO_C= ECHO_N= ECHO_T=
19064 case `echo -n x` in #(((((
19065 -n*)
19066 case `echo 'xy\c'` in
19067 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19068 xy) ECHO_C='\c';;
19069 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19070 ECHO_T=' ';;
19071 esac;;
19072 *)
19073 ECHO_N='-n';;
19074 esac
19075
19076 rm -f conf$$ conf$$.exe conf$$.file
19077 if test -d conf$$.dir; then
19078 rm -f conf$$.dir/conf$$.file
19079 else
19080 rm -f conf$$.dir
19081 mkdir conf$$.dir 2>/dev/null
19082 fi
19083 if (echo >conf$$.file) 2>/dev/null; then
19084 if ln -s conf$$.file conf$$ 2>/dev/null; then
19085 as_ln_s='ln -s'
19086 # ... but there are two gotchas:
19087 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19088 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19089 # In both cases, we have to default to `cp -pR'.
19090 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19091 as_ln_s='cp -pR'
19092 elif ln conf$$.file conf$$ 2>/dev/null; then
19093 as_ln_s=ln
19094 else
19095 as_ln_s='cp -pR'
19096 fi
19097 else
19098 as_ln_s='cp -pR'
19099 fi
19100 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19101 rmdir conf$$.dir 2>/dev/null
19102
19103
19104 # as_fn_mkdir_p
19105 # -------------
19106 # Create "$as_dir" as a directory, including parents if necessary.
19107 as_fn_mkdir_p ()
19108 {
19109
19110 case $as_dir in #(
19111 -*) as_dir=./$as_dir;;
19112 esac
19113 test -d "$as_dir" || eval $as_mkdir_p || {
19114 as_dirs=
19115 while :; do
19116 case $as_dir in #(
19117 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19118 *) as_qdir=$as_dir;;
19119 esac
19120 as_dirs="'$as_qdir' $as_dirs"
19121 as_dir=`$as_dirname -- "$as_dir" ||
19122 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19123 X"$as_dir" : 'X\(//\)[^/]' \| \
19124 X"$as_dir" : 'X\(//\)$' \| \
19125 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19126 $as_echo X"$as_dir" |
19127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19128 s//\1/
19129 q
19130 }
19131 /^X\(\/\/\)[^/].*/{
19132 s//\1/
19133 q
19134 }
19135 /^X\(\/\/\)$/{
19136 s//\1/
19137 q
19138 }
19139 /^X\(\/\).*/{
19140 s//\1/
19141 q
19142 }
19143 s/.*/./; q'`
19144 test -d "$as_dir" && break
19145 done
19146 test -z "$as_dirs" || eval "mkdir $as_dirs"
19147 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19148
19149
19150 } # as_fn_mkdir_p
19151 if mkdir -p . 2>/dev/null; then
19152 as_mkdir_p='mkdir -p "$as_dir"'
19153 else
19154 test -d ./-p && rmdir ./-p
19155 as_mkdir_p=false
19156 fi
19157
19158
19159 # as_fn_executable_p FILE
19160 # -----------------------
19161 # Test if FILE is an executable regular file.
19162 as_fn_executable_p ()
19163 {
19164 test -f "$1" && test -x "$1"
19165 } # as_fn_executable_p
19166 as_test_x='test -x'
19167 as_executable_p=as_fn_executable_p
19168
19169 # Sed expression to map a string onto a valid CPP name.
19170 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19171
19172 # Sed expression to map a string onto a valid variable name.
19173 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19174
19175
19176 exec 6>&1
19177 ## ----------------------------------- ##
19178 ## Main body of $CONFIG_STATUS script. ##
19179 ## ----------------------------------- ##
19180 _ASEOF
19181 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19182
19183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19184 # Save the log message, to keep $0 and so on meaningful, and to
19185 # report actual input values of CONFIG_FILES etc. instead of their
19186 # values after options handling.
19187 ac_log="
19188 This file was extended by xcb-util-image $as_me 0.4.0, which was
19189 generated by GNU Autoconf 2.69. Invocation command line was
19190
19191 CONFIG_FILES = $CONFIG_FILES
19192 CONFIG_HEADERS = $CONFIG_HEADERS
19193 CONFIG_LINKS = $CONFIG_LINKS
19194 CONFIG_COMMANDS = $CONFIG_COMMANDS
19195 $ $0 $@
19196
19197 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19198 "
19199
19200 _ACEOF
19201
19202 case $ac_config_files in *"
19203 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19204 esac
19205
19206 case $ac_config_headers in *"
19207 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19208 esac
19209
19210
19211 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19212 # Files that config.status was made for.
19213 config_files="$ac_config_files"
19214 config_headers="$ac_config_headers"
19215 config_commands="$ac_config_commands"
19216
19217 _ACEOF
19218
19219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19220 ac_cs_usage="\
19221 \`$as_me' instantiates files and other configuration actions
19222 from templates according to the current configuration. Unless the files
19223 and actions are specified as TAGs, all are instantiated by default.
19224
19225 Usage: $0 [OPTION]... [TAG]...
19226
19227 -h, --help print this help, then exit
19228 -V, --version print version number and configuration settings, then exit
19229 --config print configuration, then exit
19230 -q, --quiet, --silent
19231 do not print progress messages
19232 -d, --debug don't remove temporary files
19233 --recheck update $as_me by reconfiguring in the same conditions
19234 --file=FILE[:TEMPLATE]
19235 instantiate the configuration file FILE
19236 --header=FILE[:TEMPLATE]
19237 instantiate the configuration header FILE
19238
19239 Configuration files:
19240 $config_files
19241
19242 Configuration headers:
19243 $config_headers
19244
19245 Configuration commands:
19246 $config_commands
19247
19248 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xcb&component=Utils>."
19249
19250 _ACEOF
19251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19252 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19253 ac_cs_version="\\
19254 xcb-util-image config.status 0.4.0
19255 configured by $0, generated by GNU Autoconf 2.69,
19256 with options \\"\$ac_cs_config\\"
19257
19258 Copyright (C) 2012 Free Software Foundation, Inc.
19259 This config.status script is free software; the Free Software Foundation
19260 gives unlimited permission to copy, distribute and modify it."
19261
19262 ac_pwd='$ac_pwd'
19263 srcdir='$srcdir'
19264 INSTALL='$INSTALL'
19265 MKDIR_P='$MKDIR_P'
19266 AWK='$AWK'
19267 test -n "\$AWK" || AWK=awk
19268 _ACEOF
19269
19270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19271 # The default lists apply if the user does not specify any file.
19272 ac_need_defaults=:
19273 while test $# != 0
19274 do
19275 case $1 in
19276 --*=?*)
19277 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19278 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19279 ac_shift=:
19280 ;;
19281 --*=)
19282 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19283 ac_optarg=
19284 ac_shift=:
19285 ;;
19286 *)
19287 ac_option=$1
19288 ac_optarg=$2
19289 ac_shift=shift
19290 ;;
19291 esac
19292
19293 case $ac_option in
19294 # Handling of the options.
19295 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19296 ac_cs_recheck=: ;;
19297 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19298 $as_echo "$ac_cs_version"; exit ;;
19299 --config | --confi | --conf | --con | --co | --c )
19300 $as_echo "$ac_cs_config"; exit ;;
19301 --debug | --debu | --deb | --de | --d | -d )
19302 debug=: ;;
19303 --file | --fil | --fi | --f )
19304 $ac_shift
19305 case $ac_optarg in
19306 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19307 '') as_fn_error $? "missing file argument" ;;
19308 esac
19309 as_fn_append CONFIG_FILES " '$ac_optarg'"
19310 ac_need_defaults=false;;
19311 --header | --heade | --head | --hea )
19312 $ac_shift
19313 case $ac_optarg in
19314 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19315 esac
19316 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19317 ac_need_defaults=false;;
19318 --he | --h)
19319 # Conflict between --help and --header
19320 as_fn_error $? "ambiguous option: \`$1'
19321 Try \`$0 --help' for more information.";;
19322 --help | --hel | -h )
19323 $as_echo "$ac_cs_usage"; exit ;;
19324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19325 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19326 ac_cs_silent=: ;;
19327
19328 # This is an error.
19329 -*) as_fn_error $? "unrecognized option: \`$1'
19330 Try \`$0 --help' for more information." ;;
19331
19332 *) as_fn_append ac_config_targets " $1"
19333 ac_need_defaults=false ;;
19334
19335 esac
19336 shift
19337 done
19338
19339 ac_configure_extra_args=
19340
19341 if $ac_cs_silent; then
19342 exec 6>/dev/null
19343 ac_configure_extra_args="$ac_configure_extra_args --silent"
19344 fi
19345
19346 _ACEOF
19347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19348 if \$ac_cs_recheck; then
19349 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19350 shift
19351 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19352 CONFIG_SHELL='$SHELL'
19353 export CONFIG_SHELL
19354 exec "\$@"
19355 fi
19356
19357 _ACEOF
19358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19359 exec 5>>config.log
19360 {
19361 echo
19362 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19363 ## Running $as_me. ##
19364 _ASBOX
19365 $as_echo "$ac_log"
19366 } >&5
19367
19368 _ACEOF
19369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19370 #
19371 # INIT-COMMANDS
19372 #
19373 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19374
19375
19376 # The HP-UX ksh and POSIX shell print the target directory to stdout
19377 # if CDPATH is set.
19378 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19379
19380 sed_quote_subst='$sed_quote_subst'
19381 double_quote_subst='$double_quote_subst'
19382 delay_variable_subst='$delay_variable_subst'
19383 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19384 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19385 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19386 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19387 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19388 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19389 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19390 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19391 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19392 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19393 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19394 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19395 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19396 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19397 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19398 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19399 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19400 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19401 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19402 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19403 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19404 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19405 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19406 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19407 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19408 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19409 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19410 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19411 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19412 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19413 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19414 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19415 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19416 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19417 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19418 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19419 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19420 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19421 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19422 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19423 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19424 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19425 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19426 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19427 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19428 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19429 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19430 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19431 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19432 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19433 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19434 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19435 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19436 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19437 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19438 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19439 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"`'
19440 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19441 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19442 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19443 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19444 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19445 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19446 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19447 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19448 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19449 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19450 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19451 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19452 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19453 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19454 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19455 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19456 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19457 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19458 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19459 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19460 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19461 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19462 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19463 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19464 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19465 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19466 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19467 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19468 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19469 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19470 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19471 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19472 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19473 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19474 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19475 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19476 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19477 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19478 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19479 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19480 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19481 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19482 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19483 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19484 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19485 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19486 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19487 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19488 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19489 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19490 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19491 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19492 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19493 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19494 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19495 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19496 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19497 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19498 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19499 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19500 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19501 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19502 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19503 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19504 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19505 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19506 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19507 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19508 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19509 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19510 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19511 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19512 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19513
19514 LTCC='$LTCC'
19515 LTCFLAGS='$LTCFLAGS'
19516 compiler='$compiler_DEFAULT'
19517
19518 # A function that is used when there is no print builtin or printf.
19519 func_fallback_echo ()
19520 {
19521 eval 'cat <<_LTECHO_EOF
19522 \$1
19523 _LTECHO_EOF'
19524 }
19525
19526 # Quote evaled strings.
19527 for var in SHELL \
19528 ECHO \
19529 PATH_SEPARATOR \
19530 SED \
19531 GREP \
19532 EGREP \
19533 FGREP \
19534 LD \
19535 NM \
19536 LN_S \
19537 lt_SP2NL \
19538 lt_NL2SP \
19539 reload_flag \
19540 OBJDUMP \
19541 deplibs_check_method \
19542 file_magic_cmd \
19543 file_magic_glob \
19544 want_nocaseglob \
19545 DLLTOOL \
19546 sharedlib_from_linklib_cmd \
19547 AR \
19548 AR_FLAGS \
19549 archiver_list_spec \
19550 STRIP \
19551 RANLIB \
19552 CC \
19553 CFLAGS \
19554 compiler \
19555 lt_cv_sys_global_symbol_pipe \
19556 lt_cv_sys_global_symbol_to_cdecl \
19557 lt_cv_sys_global_symbol_to_c_name_address \
19558 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19559 nm_file_list_spec \
19560 lt_prog_compiler_no_builtin_flag \
19561 lt_prog_compiler_pic \
19562 lt_prog_compiler_wl \
19563 lt_prog_compiler_static \
19564 lt_cv_prog_compiler_c_o \
19565 need_locks \
19566 MANIFEST_TOOL \
19567 DSYMUTIL \
19568 NMEDIT \
19569 LIPO \
19570 OTOOL \
19571 OTOOL64 \
19572 shrext_cmds \
19573 export_dynamic_flag_spec \
19574 whole_archive_flag_spec \
19575 compiler_needs_object \
19576 with_gnu_ld \
19577 allow_undefined_flag \
19578 no_undefined_flag \
19579 hardcode_libdir_flag_spec \
19580 hardcode_libdir_separator \
19581 exclude_expsyms \
19582 include_expsyms \
19583 file_list_spec \
19584 variables_saved_for_relink \
19585 libname_spec \
19586 library_names_spec \
19587 soname_spec \
19588 install_override_mode \
19589 finish_eval \
19590 old_striplib \
19591 striplib; do
19592 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19593 *[\\\\\\\`\\"\\\$]*)
19594 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19595 ;;
19596 *)
19597 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19598 ;;
19599 esac
19600 done
19601
19602 # Double-quote double-evaled strings.
19603 for var in reload_cmds \
19604 old_postinstall_cmds \
19605 old_postuninstall_cmds \
19606 old_archive_cmds \
19607 extract_expsyms_cmds \
19608 old_archive_from_new_cmds \
19609 old_archive_from_expsyms_cmds \
19610 archive_cmds \
19611 archive_expsym_cmds \
19612 module_cmds \
19613 module_expsym_cmds \
19614 export_symbols_cmds \
19615 prelink_cmds \
19616 postlink_cmds \
19617 postinstall_cmds \
19618 postuninstall_cmds \
19619 finish_cmds \
19620 sys_lib_search_path_spec \
19621 sys_lib_dlsearch_path_spec; do
19622 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19623 *[\\\\\\\`\\"\\\$]*)
19624 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19625 ;;
19626 *)
19627 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19628 ;;
19629 esac
19630 done
19631
19632 ac_aux_dir='$ac_aux_dir'
19633 xsi_shell='$xsi_shell'
19634 lt_shell_append='$lt_shell_append'
19635
19636 # See if we are running on zsh, and set the options which allow our
19637 # commands through without removal of \ escapes INIT.
19638 if test -n "\${ZSH_VERSION+set}" ; then
19639 setopt NO_GLOB_SUBST
19640 fi
19641
19642
19643 PACKAGE='$PACKAGE'
19644 VERSION='$VERSION'
19645 TIMESTAMP='$TIMESTAMP'
19646 RM='$RM'
19647 ofile='$ofile'
19648
19649
19650
19651
19652 _ACEOF
19653
19654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19655
19656 # Handling of arguments.
19657 for ac_config_target in $ac_config_targets
19658 do
19659 case $ac_config_target in
19660 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19661 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19662 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19663 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19664 "image/Makefile") CONFIG_FILES="$CONFIG_FILES image/Makefile" ;;
19665 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
19666 "image/xcb-image.pc") CONFIG_FILES="$CONFIG_FILES image/xcb-image.pc" ;;
19667
19668 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19669 esac
19670 done
19671
19672
19673 # If the user did not use the arguments to specify the items to instantiate,
19674 # then the envvar interface is used. Set only those that are not.
19675 # We use the long form for the default assignment because of an extremely
19676 # bizarre bug on SunOS 4.1.3.
19677 if $ac_need_defaults; then
19678 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19679 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19680 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19681 fi
19682
19683 # Have a temporary directory for convenience. Make it in the build tree
19684 # simply because there is no reason against having it here, and in addition,
19685 # creating and moving files from /tmp can sometimes cause problems.
19686 # Hook for its removal unless debugging.
19687 # Note that there is a small window in which the directory will not be cleaned:
19688 # after its creation but before its name has been assigned to `$tmp'.
19689 $debug ||
19690 {
19691 tmp= ac_tmp=
19692 trap 'exit_status=$?
19693 : "${ac_tmp:=$tmp}"
19694 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19695 ' 0
19696 trap 'as_fn_exit 1' 1 2 13 15
19697 }
19698 # Create a (secure) tmp directory for tmp files.
19699
19700 {
19701 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19702 test -d "$tmp"
19703 } ||
19704 {
19705 tmp=./conf$$-$RANDOM
19706 (umask 077 && mkdir "$tmp")
19707 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19708 ac_tmp=$tmp
19709
19710 # Set up the scripts for CONFIG_FILES section.
19711 # No need to generate them if there are no CONFIG_FILES.
19712 # This happens for instance with `./config.status config.h'.
19713 if test -n "$CONFIG_FILES"; then
19714
19715
19716 ac_cr=`echo X | tr X '\015'`
19717 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19718 # But we know of no other shell where ac_cr would be empty at this
19719 # point, so we can use a bashism as a fallback.
19720 if test "x$ac_cr" = x; then
19721 eval ac_cr=\$\'\\r\'
19722 fi
19723 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19724 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19725 ac_cs_awk_cr='\\r'
19726 else
19727 ac_cs_awk_cr=$ac_cr
19728 fi
19729
19730 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19731 _ACEOF
19732
19733
19734 {
19735 echo "cat >conf$$subs.awk <<_ACEOF" &&
19736 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19737 echo "_ACEOF"
19738 } >conf$$subs.sh ||
19739 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19740 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19741 ac_delim='%!_!# '
19742 for ac_last_try in false false false false false :; do
19743 . ./conf$$subs.sh ||
19744 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19745
19746 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19747 if test $ac_delim_n = $ac_delim_num; then
19748 break
19749 elif $ac_last_try; then
19750 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19751 else
19752 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19753 fi
19754 done
19755 rm -f conf$$subs.sh
19756
19757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19758 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19759 _ACEOF
19760 sed -n '
19761 h
19762 s/^/S["/; s/!.*/"]=/
19763 p
19764 g
19765 s/^[^!]*!//
19766 :repl
19767 t repl
19768 s/'"$ac_delim"'$//
19769 t delim
19770 :nl
19771 h
19772 s/\(.\{148\}\)..*/\1/
19773 t more1
19774 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19775 p
19776 n
19777 b repl
19778 :more1
19779 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19780 p
19781 g
19782 s/.\{148\}//
19783 t nl
19784 :delim
19785 h
19786 s/\(.\{148\}\)..*/\1/
19787 t more2
19788 s/["\\]/\\&/g; s/^/"/; s/$/"/
19789 p
19790 b
19791 :more2
19792 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19793 p
19794 g
19795 s/.\{148\}//
19796 t delim
19797 ' <conf$$subs.awk | sed '
19798 /^[^""]/{
19799 N
19800 s/\n//
19801 }
19802 ' >>$CONFIG_STATUS || ac_write_fail=1
19803 rm -f conf$$subs.awk
19804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19805 _ACAWK
19806 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19807 for (key in S) S_is_set[key] = 1
19808 FS = ""
19809
19810 }
19811 {
19812 line = $ 0
19813 nfields = split(line, field, "@")
19814 substed = 0
19815 len = length(field[1])
19816 for (i = 2; i < nfields; i++) {
19817 key = field[i]
19818 keylen = length(key)
19819 if (S_is_set[key]) {
19820 value = S[key]
19821 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19822 len += length(value) + length(field[++i])
19823 substed = 1
19824 } else
19825 len += 1 + keylen
19826 }
19827
19828 print line
19829 }
19830
19831 _ACAWK
19832 _ACEOF
19833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19834 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19835 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19836 else
19837 cat
19838 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19839 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19840 _ACEOF
19841
19842 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19843 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19844 # trailing colons and then remove the whole line if VPATH becomes empty
19845 # (actually we leave an empty line to preserve line numbers).
19846 if test "x$srcdir" = x.; then
19847 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19848 h
19849 s///
19850 s/^/:/
19851 s/[ ]*$/:/
19852 s/:\$(srcdir):/:/g
19853 s/:\${srcdir}:/:/g
19854 s/:@srcdir@:/:/g
19855 s/^:*//
19856 s/:*$//
19857 x
19858 s/\(=[ ]*\).*/\1/
19859 G
19860 s/\n//
19861 s/^[^=]*=[ ]*$//
19862 }'
19863 fi
19864
19865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19866 fi # test -n "$CONFIG_FILES"
19867
19868 # Set up the scripts for CONFIG_HEADERS section.
19869 # No need to generate them if there are no CONFIG_HEADERS.
19870 # This happens for instance with `./config.status Makefile'.
19871 if test -n "$CONFIG_HEADERS"; then
19872 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19873 BEGIN {
19874 _ACEOF
19875
19876 # Transform confdefs.h into an awk script `defines.awk', embedded as
19877 # here-document in config.status, that substitutes the proper values into
19878 # config.h.in to produce config.h.
19879
19880 # Create a delimiter string that does not exist in confdefs.h, to ease
19881 # handling of long lines.
19882 ac_delim='%!_!# '
19883 for ac_last_try in false false :; do
19884 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19885 if test -z "$ac_tt"; then
19886 break
19887 elif $ac_last_try; then
19888 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19889 else
19890 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19891 fi
19892 done
19893
19894 # For the awk script, D is an array of macro values keyed by name,
19895 # likewise P contains macro parameters if any. Preserve backslash
19896 # newline sequences.
19897
19898 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19899 sed -n '
19900 s/.\{148\}/&'"$ac_delim"'/g
19901 t rset
19902 :rset
19903 s/^[ ]*#[ ]*define[ ][ ]*/ /
19904 t def
19905 d
19906 :def
19907 s/\\$//
19908 t bsnl
19909 s/["\\]/\\&/g
19910 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19911 D["\1"]=" \3"/p
19912 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19913 d
19914 :bsnl
19915 s/["\\]/\\&/g
19916 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19917 D["\1"]=" \3\\\\\\n"\\/p
19918 t cont
19919 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19920 t cont
19921 d
19922 :cont
19923 n
19924 s/.\{148\}/&'"$ac_delim"'/g
19925 t clear
19926 :clear
19927 s/\\$//
19928 t bsnlc
19929 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19930 d
19931 :bsnlc
19932 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19933 b cont
19934 ' <confdefs.h | sed '
19935 s/'"$ac_delim"'/"\\\
19936 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19937
19938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19939 for (key in D) D_is_set[key] = 1
19940 FS = ""
19941 }
19942 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19943 line = \$ 0
19944 split(line, arg, " ")
19945 if (arg[1] == "#") {
19946 defundef = arg[2]
19947 mac1 = arg[3]
19948 } else {
19949 defundef = substr(arg[1], 2)
19950 mac1 = arg[2]
19951 }
19952 split(mac1, mac2, "(") #)
19953 macro = mac2[1]
19954 prefix = substr(line, 1, index(line, defundef) - 1)
19955 if (D_is_set[macro]) {
19956 # Preserve the white space surrounding the "#".
19957 print prefix "define", macro P[macro] D[macro]
19958 next
19959 } else {
19960 # Replace #undef with comments. This is necessary, for example,
19961 # in the case of _POSIX_SOURCE, which is predefined and required
19962 # on some systems where configure will not decide to define it.
19963 if (defundef == "undef") {
19964 print "/*", prefix defundef, macro, "*/"
19965 next
19966 }
19967 }
19968 }
19969 { print }
19970 _ACAWK
19971 _ACEOF
19972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19973 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19974 fi # test -n "$CONFIG_HEADERS"
19975
19976
19977 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19978 shift
19979 for ac_tag
19980 do
19981 case $ac_tag in
19982 :[FHLC]) ac_mode=$ac_tag; continue;;
19983 esac
19984 case $ac_mode$ac_tag in
19985 :[FHL]*:*);;
19986 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19987 :[FH]-) ac_tag=-:-;;
19988 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19989 esac
19990 ac_save_IFS=$IFS
19991 IFS=:
19992 set x $ac_tag
19993 IFS=$ac_save_IFS
19994 shift
19995 ac_file=$1
19996 shift
19997
19998 case $ac_mode in
19999 :L) ac_source=$1;;
20000 :[FH])
20001 ac_file_inputs=
20002 for ac_f
20003 do
20004 case $ac_f in
20005 -) ac_f="$ac_tmp/stdin";;
20006 *) # Look for the file first in the build tree, then in the source tree
20007 # (if the path is not absolute). The absolute path cannot be DOS-style,
20008 # because $ac_f cannot contain `:'.
20009 test -f "$ac_f" ||
20010 case $ac_f in
20011 [\\/$]*) false;;
20012 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20013 esac ||
20014 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20015 esac
20016 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20017 as_fn_append ac_file_inputs " '$ac_f'"
20018 done
20019
20020 # Let's still pretend it is `configure' which instantiates (i.e., don't
20021 # use $as_me), people would be surprised to read:
20022 # /* config.h. Generated by config.status. */
20023 configure_input='Generated from '`
20024 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20025 `' by configure.'
20026 if test x"$ac_file" != x-; then
20027 configure_input="$ac_file. $configure_input"
20028 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20029 $as_echo "$as_me: creating $ac_file" >&6;}
20030 fi
20031 # Neutralize special characters interpreted by sed in replacement strings.
20032 case $configure_input in #(
20033 *\&* | *\|* | *\\* )
20034 ac_sed_conf_input=`$as_echo "$configure_input" |
20035 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20036 *) ac_sed_conf_input=$configure_input;;
20037 esac
20038
20039 case $ac_tag in
20040 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20041 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20042 esac
20043 ;;
20044 esac
20045
20046 ac_dir=`$as_dirname -- "$ac_file" ||
20047 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20048 X"$ac_file" : 'X\(//\)[^/]' \| \
20049 X"$ac_file" : 'X\(//\)$' \| \
20050 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20051 $as_echo X"$ac_file" |
20052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20053 s//\1/
20054 q
20055 }
20056 /^X\(\/\/\)[^/].*/{
20057 s//\1/
20058 q
20059 }
20060 /^X\(\/\/\)$/{
20061 s//\1/
20062 q
20063 }
20064 /^X\(\/\).*/{
20065 s//\1/
20066 q
20067 }
20068 s/.*/./; q'`
20069 as_dir="$ac_dir"; as_fn_mkdir_p
20070 ac_builddir=.
20071
20072 case "$ac_dir" in
20073 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20074 *)
20075 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20076 # A ".." for each directory in $ac_dir_suffix.
20077 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20078 case $ac_top_builddir_sub in
20079 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20080 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20081 esac ;;
20082 esac
20083 ac_abs_top_builddir=$ac_pwd
20084 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20085 # for backward compatibility:
20086 ac_top_builddir=$ac_top_build_prefix
20087
20088 case $srcdir in
20089 .) # We are building in place.
20090 ac_srcdir=.
20091 ac_top_srcdir=$ac_top_builddir_sub
20092 ac_abs_top_srcdir=$ac_pwd ;;
20093 [\\/]* | ?:[\\/]* ) # Absolute name.
20094 ac_srcdir=$srcdir$ac_dir_suffix;
20095 ac_top_srcdir=$srcdir
20096 ac_abs_top_srcdir=$srcdir ;;
20097 *) # Relative name.
20098 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20099 ac_top_srcdir=$ac_top_build_prefix$srcdir
20100 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20101 esac
20102 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20103
20104
20105 case $ac_mode in
20106 :F)
20107 #
20108 # CONFIG_FILE
20109 #
20110
20111 case $INSTALL in
20112 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20113 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20114 esac
20115 ac_MKDIR_P=$MKDIR_P
20116 case $MKDIR_P in
20117 [\\/$]* | ?:[\\/]* ) ;;
20118 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20119 esac
20120 _ACEOF
20121
20122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20123 # If the template does not know about datarootdir, expand it.
20124 # FIXME: This hack should be removed a few years after 2.60.
20125 ac_datarootdir_hack=; ac_datarootdir_seen=
20126 ac_sed_dataroot='
20127 /datarootdir/ {
20128 p
20129 q
20130 }
20131 /@datadir@/p
20132 /@docdir@/p
20133 /@infodir@/p
20134 /@localedir@/p
20135 /@mandir@/p'
20136 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20137 *datarootdir*) ac_datarootdir_seen=yes;;
20138 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20140 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20141 _ACEOF
20142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20143 ac_datarootdir_hack='
20144 s&@datadir@&$datadir&g
20145 s&@docdir@&$docdir&g
20146 s&@infodir@&$infodir&g
20147 s&@localedir@&$localedir&g
20148 s&@mandir@&$mandir&g
20149 s&\\\${datarootdir}&$datarootdir&g' ;;
20150 esac
20151 _ACEOF
20152
20153 # Neutralize VPATH when `$srcdir' = `.'.
20154 # Shell code in configure.ac might set extrasub.
20155 # FIXME: do we really want to maintain this feature?
20156 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20157 ac_sed_extra="$ac_vpsub
20158 $extrasub
20159 _ACEOF
20160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20161 :t
20162 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20163 s|@configure_input@|$ac_sed_conf_input|;t t
20164 s&@top_builddir@&$ac_top_builddir_sub&;t t
20165 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20166 s&@srcdir@&$ac_srcdir&;t t
20167 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20168 s&@top_srcdir@&$ac_top_srcdir&;t t
20169 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20170 s&@builddir@&$ac_builddir&;t t
20171 s&@abs_builddir@&$ac_abs_builddir&;t t
20172 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20173 s&@INSTALL@&$ac_INSTALL&;t t
20174 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20175 $ac_datarootdir_hack
20176 "
20177 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20178 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20179
20180 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20181 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20182 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20183 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20185 which seems to be undefined. Please make sure it is defined" >&5
20186 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20187 which seems to be undefined. Please make sure it is defined" >&2;}
20188
20189 rm -f "$ac_tmp/stdin"
20190 case $ac_file in
20191 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20192 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20193 esac \
20194 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20195 ;;
20196 :H)
20197 #
20198 # CONFIG_HEADER
20199 #
20200 if test x"$ac_file" != x-; then
20201 {
20202 $as_echo "/* $configure_input */" \
20203 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20204 } >"$ac_tmp/config.h" \
20205 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20206 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20207 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20208 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20209 else
20210 rm -f "$ac_file"
20211 mv "$ac_tmp/config.h" "$ac_file" \
20212 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20213 fi
20214 else
20215 $as_echo "/* $configure_input */" \
20216 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20217 || as_fn_error $? "could not create -" "$LINENO" 5
20218 fi
20219 # Compute "$ac_file"'s index in $config_headers.
20220 _am_arg="$ac_file"
20221 _am_stamp_count=1
20222 for _am_header in $config_headers :; do
20223 case $_am_header in
20224 $_am_arg | $_am_arg:* )
20225 break ;;
20226 * )
20227 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20228 esac
20229 done
20230 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20231 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20232 X"$_am_arg" : 'X\(//\)[^/]' \| \
20233 X"$_am_arg" : 'X\(//\)$' \| \
20234 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20235 $as_echo X"$_am_arg" |
20236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20237 s//\1/
20238 q
20239 }
20240 /^X\(\/\/\)[^/].*/{
20241 s//\1/
20242 q
20243 }
20244 /^X\(\/\/\)$/{
20245 s//\1/
20246 q
20247 }
20248 /^X\(\/\).*/{
20249 s//\1/
20250 q
20251 }
20252 s/.*/./; q'`/stamp-h$_am_stamp_count
20253 ;;
20254
20255 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20256 $as_echo "$as_me: executing $ac_file commands" >&6;}
20257 ;;
20258 esac
20259
20260
20261 case $ac_file$ac_mode in
20262 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20263 # Older Autoconf quotes --file arguments for eval, but not when files
20264 # are listed without --file. Let's play safe and only enable the eval
20265 # if we detect the quoting.
20266 case $CONFIG_FILES in
20267 *\'*) eval set x "$CONFIG_FILES" ;;
20268 *) set x $CONFIG_FILES ;;
20269 esac
20270 shift
20271 for mf
20272 do
20273 # Strip MF so we end up with the name of the file.
20274 mf=`echo "$mf" | sed -e 's/:.*$//'`
20275 # Check whether this is an Automake generated Makefile or not.
20276 # We used to match only the files named 'Makefile.in', but
20277 # some people rename them; so instead we look at the file content.
20278 # Grep'ing the first line is not enough: some people post-process
20279 # each Makefile.in and add a new line on top of each file to say so.
20280 # Grep'ing the whole file is not good either: AIX grep has a line
20281 # limit of 2048, but all sed's we know have understand at least 4000.
20282 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20283 dirpart=`$as_dirname -- "$mf" ||
20284 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20285 X"$mf" : 'X\(//\)[^/]' \| \
20286 X"$mf" : 'X\(//\)$' \| \
20287 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20288 $as_echo X"$mf" |
20289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20290 s//\1/
20291 q
20292 }
20293 /^X\(\/\/\)[^/].*/{
20294 s//\1/
20295 q
20296 }
20297 /^X\(\/\/\)$/{
20298 s//\1/
20299 q
20300 }
20301 /^X\(\/\).*/{
20302 s//\1/
20303 q
20304 }
20305 s/.*/./; q'`
20306 else
20307 continue
20308 fi
20309 # Extract the definition of DEPDIR, am__include, and am__quote
20310 # from the Makefile without running 'make'.
20311 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20312 test -z "$DEPDIR" && continue
20313 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20314 test -z "$am__include" && continue
20315 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20316 # Find all dependency output files, they are included files with
20317 # $(DEPDIR) in their names. We invoke sed twice because it is the
20318 # simplest approach to changing $(DEPDIR) to its actual value in the
20319 # expansion.
20320 for file in `sed -n "
20321 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20322 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20323 # Make sure the directory exists.
20324 test -f "$dirpart/$file" && continue
20325 fdir=`$as_dirname -- "$file" ||
20326 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20327 X"$file" : 'X\(//\)[^/]' \| \
20328 X"$file" : 'X\(//\)$' \| \
20329 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20330 $as_echo X"$file" |
20331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20332 s//\1/
20333 q
20334 }
20335 /^X\(\/\/\)[^/].*/{
20336 s//\1/
20337 q
20338 }
20339 /^X\(\/\/\)$/{
20340 s//\1/
20341 q
20342 }
20343 /^X\(\/\).*/{
20344 s//\1/
20345 q
20346 }
20347 s/.*/./; q'`
20348 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20349 # echo "creating $dirpart/$file"
20350 echo '# dummy' > "$dirpart/$file"
20351 done
20352 done
20353 }
20354 ;;
20355 "libtool":C)
20356
20357 # See if we are running on zsh, and set the options which allow our
20358 # commands through without removal of \ escapes.
20359 if test -n "${ZSH_VERSION+set}" ; then
20360 setopt NO_GLOB_SUBST
20361 fi
20362
20363 cfgfile="${ofile}T"
20364 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20365 $RM "$cfgfile"
20366
20367 cat <<_LT_EOF >> "$cfgfile"
20368 #! $SHELL
20369
20370 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20371 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20372 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20373 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20374 #
20375 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20376 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20377 # Foundation, Inc.
20378 # Written by Gordon Matzigkeit, 1996
20379 #
20380 # This file is part of GNU Libtool.
20381 #
20382 # GNU Libtool is free software; you can redistribute it and/or
20383 # modify it under the terms of the GNU General Public License as
20384 # published by the Free Software Foundation; either version 2 of
20385 # the License, or (at your option) any later version.
20386 #
20387 # As a special exception to the GNU General Public License,
20388 # if you distribute this file as part of a program or library that
20389 # is built using GNU Libtool, you may include this file under the
20390 # same distribution terms that you use for the rest of that program.
20391 #
20392 # GNU Libtool is distributed in the hope that it will be useful,
20393 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20394 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20395 # GNU General Public License for more details.
20396 #
20397 # You should have received a copy of the GNU General Public License
20398 # along with GNU Libtool; see the file COPYING. If not, a copy
20399 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20400 # obtained by writing to the Free Software Foundation, Inc.,
20401 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20402
20403
20404 # The names of the tagged configurations supported by this script.
20405 available_tags=""
20406
20407 # ### BEGIN LIBTOOL CONFIG
20408
20409 # Which release of libtool.m4 was used?
20410 macro_version=$macro_version
20411 macro_revision=$macro_revision
20412
20413 # Whether or not to build shared libraries.
20414 build_libtool_libs=$enable_shared
20415
20416 # Whether or not to build static libraries.
20417 build_old_libs=$enable_static
20418
20419 # What type of objects to build.
20420 pic_mode=$pic_mode
20421
20422 # Whether or not to optimize for fast installation.
20423 fast_install=$enable_fast_install
20424
20425 # Shell to use when invoking shell scripts.
20426 SHELL=$lt_SHELL
20427
20428 # An echo program that protects backslashes.
20429 ECHO=$lt_ECHO
20430
20431 # The PATH separator for the build system.
20432 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20433
20434 # The host system.
20435 host_alias=$host_alias
20436 host=$host
20437 host_os=$host_os
20438
20439 # The build system.
20440 build_alias=$build_alias
20441 build=$build
20442 build_os=$build_os
20443
20444 # A sed program that does not truncate output.
20445 SED=$lt_SED
20446
20447 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20448 Xsed="\$SED -e 1s/^X//"
20449
20450 # A grep program that handles long lines.
20451 GREP=$lt_GREP
20452
20453 # An ERE matcher.
20454 EGREP=$lt_EGREP
20455
20456 # A literal string matcher.
20457 FGREP=$lt_FGREP
20458
20459 # A BSD- or MS-compatible name lister.
20460 NM=$lt_NM
20461
20462 # Whether we need soft or hard links.
20463 LN_S=$lt_LN_S
20464
20465 # What is the maximum length of a command?
20466 max_cmd_len=$max_cmd_len
20467
20468 # Object file suffix (normally "o").
20469 objext=$ac_objext
20470
20471 # Executable file suffix (normally "").
20472 exeext=$exeext
20473
20474 # whether the shell understands "unset".
20475 lt_unset=$lt_unset
20476
20477 # turn spaces into newlines.
20478 SP2NL=$lt_lt_SP2NL
20479
20480 # turn newlines into spaces.
20481 NL2SP=$lt_lt_NL2SP
20482
20483 # convert \$build file names to \$host format.
20484 to_host_file_cmd=$lt_cv_to_host_file_cmd
20485
20486 # convert \$build files to toolchain format.
20487 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20488
20489 # An object symbol dumper.
20490 OBJDUMP=$lt_OBJDUMP
20491
20492 # Method to check whether dependent libraries are shared objects.
20493 deplibs_check_method=$lt_deplibs_check_method
20494
20495 # Command to use when deplibs_check_method = "file_magic".
20496 file_magic_cmd=$lt_file_magic_cmd
20497
20498 # How to find potential files when deplibs_check_method = "file_magic".
20499 file_magic_glob=$lt_file_magic_glob
20500
20501 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20502 want_nocaseglob=$lt_want_nocaseglob
20503
20504 # DLL creation program.
20505 DLLTOOL=$lt_DLLTOOL
20506
20507 # Command to associate shared and link libraries.
20508 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20509
20510 # The archiver.
20511 AR=$lt_AR
20512
20513 # Flags to create an archive.
20514 AR_FLAGS=$lt_AR_FLAGS
20515
20516 # How to feed a file listing to the archiver.
20517 archiver_list_spec=$lt_archiver_list_spec
20518
20519 # A symbol stripping program.
20520 STRIP=$lt_STRIP
20521
20522 # Commands used to install an old-style archive.
20523 RANLIB=$lt_RANLIB
20524 old_postinstall_cmds=$lt_old_postinstall_cmds
20525 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20526
20527 # Whether to use a lock for old archive extraction.
20528 lock_old_archive_extraction=$lock_old_archive_extraction
20529
20530 # A C compiler.
20531 LTCC=$lt_CC
20532
20533 # LTCC compiler flags.
20534 LTCFLAGS=$lt_CFLAGS
20535
20536 # Take the output of nm and produce a listing of raw symbols and C names.
20537 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20538
20539 # Transform the output of nm in a proper C declaration.
20540 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20541
20542 # Transform the output of nm in a C name address pair.
20543 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20544
20545 # Transform the output of nm in a C name address pair when lib prefix is needed.
20546 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20547
20548 # Specify filename containing input files for \$NM.
20549 nm_file_list_spec=$lt_nm_file_list_spec
20550
20551 # The root where to search for dependent libraries,and in which our libraries should be installed.
20552 lt_sysroot=$lt_sysroot
20553
20554 # The name of the directory that contains temporary libtool files.
20555 objdir=$objdir
20556
20557 # Used to examine libraries when file_magic_cmd begins with "file".
20558 MAGIC_CMD=$MAGIC_CMD
20559
20560 # Must we lock files when doing compilation?
20561 need_locks=$lt_need_locks
20562
20563 # Manifest tool.
20564 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20565
20566 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20567 DSYMUTIL=$lt_DSYMUTIL
20568
20569 # Tool to change global to local symbols on Mac OS X.
20570 NMEDIT=$lt_NMEDIT
20571
20572 # Tool to manipulate fat objects and archives on Mac OS X.
20573 LIPO=$lt_LIPO
20574
20575 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20576 OTOOL=$lt_OTOOL
20577
20578 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20579 OTOOL64=$lt_OTOOL64
20580
20581 # Old archive suffix (normally "a").
20582 libext=$libext
20583
20584 # Shared library suffix (normally ".so").
20585 shrext_cmds=$lt_shrext_cmds
20586
20587 # The commands to extract the exported symbol list from a shared archive.
20588 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20589
20590 # Variables whose values should be saved in libtool wrapper scripts and
20591 # restored at link time.
20592 variables_saved_for_relink=$lt_variables_saved_for_relink
20593
20594 # Do we need the "lib" prefix for modules?
20595 need_lib_prefix=$need_lib_prefix
20596
20597 # Do we need a version for libraries?
20598 need_version=$need_version
20599
20600 # Library versioning type.
20601 version_type=$version_type
20602
20603 # Shared library runtime path variable.
20604 runpath_var=$runpath_var
20605
20606 # Shared library path variable.
20607 shlibpath_var=$shlibpath_var
20608
20609 # Is shlibpath searched before the hard-coded library search path?
20610 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20611
20612 # Format of library name prefix.
20613 libname_spec=$lt_libname_spec
20614
20615 # List of archive names. First name is the real one, the rest are links.
20616 # The last name is the one that the linker finds with -lNAME
20617 library_names_spec=$lt_library_names_spec
20618
20619 # The coded name of the library, if different from the real name.
20620 soname_spec=$lt_soname_spec
20621
20622 # Permission mode override for installation of shared libraries.
20623 install_override_mode=$lt_install_override_mode
20624
20625 # Command to use after installation of a shared archive.
20626 postinstall_cmds=$lt_postinstall_cmds
20627
20628 # Command to use after uninstallation of a shared archive.
20629 postuninstall_cmds=$lt_postuninstall_cmds
20630
20631 # Commands used to finish a libtool library installation in a directory.
20632 finish_cmds=$lt_finish_cmds
20633
20634 # As "finish_cmds", except a single script fragment to be evaled but
20635 # not shown.
20636 finish_eval=$lt_finish_eval
20637
20638 # Whether we should hardcode library paths into libraries.
20639 hardcode_into_libs=$hardcode_into_libs
20640
20641 # Compile-time system search path for libraries.
20642 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20643
20644 # Run-time system search path for libraries.
20645 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20646
20647 # Whether dlopen is supported.
20648 dlopen_support=$enable_dlopen
20649
20650 # Whether dlopen of programs is supported.
20651 dlopen_self=$enable_dlopen_self
20652
20653 # Whether dlopen of statically linked programs is supported.
20654 dlopen_self_static=$enable_dlopen_self_static
20655
20656 # Commands to strip libraries.
20657 old_striplib=$lt_old_striplib
20658 striplib=$lt_striplib
20659
20660
20661 # The linker used to build libraries.
20662 LD=$lt_LD
20663
20664 # How to create reloadable object files.
20665 reload_flag=$lt_reload_flag
20666 reload_cmds=$lt_reload_cmds
20667
20668 # Commands used to build an old-style archive.
20669 old_archive_cmds=$lt_old_archive_cmds
20670
20671 # A language specific compiler.
20672 CC=$lt_compiler
20673
20674 # Is the compiler the GNU compiler?
20675 with_gcc=$GCC
20676
20677 # Compiler flag to turn off builtin functions.
20678 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20679
20680 # Additional compiler flags for building library objects.
20681 pic_flag=$lt_lt_prog_compiler_pic
20682
20683 # How to pass a linker flag through the compiler.
20684 wl=$lt_lt_prog_compiler_wl
20685
20686 # Compiler flag to prevent dynamic linking.
20687 link_static_flag=$lt_lt_prog_compiler_static
20688
20689 # Does compiler simultaneously support -c and -o options?
20690 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20691
20692 # Whether or not to add -lc for building shared libraries.
20693 build_libtool_need_lc=$archive_cmds_need_lc
20694
20695 # Whether or not to disallow shared libs when runtime libs are static.
20696 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20697
20698 # Compiler flag to allow reflexive dlopens.
20699 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20700
20701 # Compiler flag to generate shared objects directly from archives.
20702 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20703
20704 # Whether the compiler copes with passing no objects directly.
20705 compiler_needs_object=$lt_compiler_needs_object
20706
20707 # Create an old-style archive from a shared archive.
20708 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20709
20710 # Create a temporary old-style archive to link instead of a shared archive.
20711 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20712
20713 # Commands used to build a shared archive.
20714 archive_cmds=$lt_archive_cmds
20715 archive_expsym_cmds=$lt_archive_expsym_cmds
20716
20717 # Commands used to build a loadable module if different from building
20718 # a shared archive.
20719 module_cmds=$lt_module_cmds
20720 module_expsym_cmds=$lt_module_expsym_cmds
20721
20722 # Whether we are building with GNU ld or not.
20723 with_gnu_ld=$lt_with_gnu_ld
20724
20725 # Flag that allows shared libraries with undefined symbols to be built.
20726 allow_undefined_flag=$lt_allow_undefined_flag
20727
20728 # Flag that enforces no undefined symbols.
20729 no_undefined_flag=$lt_no_undefined_flag
20730
20731 # Flag to hardcode \$libdir into a binary during linking.
20732 # This must work even if \$libdir does not exist
20733 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20734
20735 # Whether we need a single "-rpath" flag with a separated argument.
20736 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20737
20738 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20739 # DIR into the resulting binary.
20740 hardcode_direct=$hardcode_direct
20741
20742 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20743 # DIR into the resulting binary and the resulting library dependency is
20744 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20745 # library is relocated.
20746 hardcode_direct_absolute=$hardcode_direct_absolute
20747
20748 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20749 # into the resulting binary.
20750 hardcode_minus_L=$hardcode_minus_L
20751
20752 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20753 # into the resulting binary.
20754 hardcode_shlibpath_var=$hardcode_shlibpath_var
20755
20756 # Set to "yes" if building a shared library automatically hardcodes DIR
20757 # into the library and all subsequent libraries and executables linked
20758 # against it.
20759 hardcode_automatic=$hardcode_automatic
20760
20761 # Set to yes if linker adds runtime paths of dependent libraries
20762 # to runtime path list.
20763 inherit_rpath=$inherit_rpath
20764
20765 # Whether libtool must link a program against all its dependency libraries.
20766 link_all_deplibs=$link_all_deplibs
20767
20768 # Set to "yes" if exported symbols are required.
20769 always_export_symbols=$always_export_symbols
20770
20771 # The commands to list exported symbols.
20772 export_symbols_cmds=$lt_export_symbols_cmds
20773
20774 # Symbols that should not be listed in the preloaded symbols.
20775 exclude_expsyms=$lt_exclude_expsyms
20776
20777 # Symbols that must always be exported.
20778 include_expsyms=$lt_include_expsyms
20779
20780 # Commands necessary for linking programs (against libraries) with templates.
20781 prelink_cmds=$lt_prelink_cmds
20782
20783 # Commands necessary for finishing linking programs.
20784 postlink_cmds=$lt_postlink_cmds
20785
20786 # Specify filename containing input files.
20787 file_list_spec=$lt_file_list_spec
20788
20789 # How to hardcode a shared library path into an executable.
20790 hardcode_action=$hardcode_action
20791
20792 # ### END LIBTOOL CONFIG
20793
20794 _LT_EOF
20795
20796 case $host_os in
20797 aix3*)
20798 cat <<\_LT_EOF >> "$cfgfile"
20799 # AIX sometimes has problems with the GCC collect2 program. For some
20800 # reason, if we set the COLLECT_NAMES environment variable, the problems
20801 # vanish in a puff of smoke.
20802 if test "X${COLLECT_NAMES+set}" != Xset; then
20803 COLLECT_NAMES=
20804 export COLLECT_NAMES
20805 fi
20806 _LT_EOF
20807 ;;
20808 esac
20809
20810
20811 ltmain="$ac_aux_dir/ltmain.sh"
20812
20813
20814 # We use sed instead of cat because bash on DJGPP gets confused if
20815 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20816 # text mode, it properly converts lines to CR/LF. This bash problem
20817 # is reportedly fixed, but why not run on old versions too?
20818 sed '$q' "$ltmain" >> "$cfgfile" \
20819 || (rm -f "$cfgfile"; exit 1)
20820
20821 if test x"$xsi_shell" = xyes; then
20822 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20823 func_dirname ()\
20824 {\
20825 \ case ${1} in\
20826 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20827 \ * ) func_dirname_result="${3}" ;;\
20828 \ esac\
20829 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20830 && mv -f "$cfgfile.tmp" "$cfgfile" \
20831 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20832 test 0 -eq $? || _lt_function_replace_fail=:
20833
20834
20835 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20836 func_basename ()\
20837 {\
20838 \ func_basename_result="${1##*/}"\
20839 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20840 && mv -f "$cfgfile.tmp" "$cfgfile" \
20841 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20842 test 0 -eq $? || _lt_function_replace_fail=:
20843
20844
20845 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20846 func_dirname_and_basename ()\
20847 {\
20848 \ case ${1} in\
20849 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20850 \ * ) func_dirname_result="${3}" ;;\
20851 \ esac\
20852 \ func_basename_result="${1##*/}"\
20853 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20854 && mv -f "$cfgfile.tmp" "$cfgfile" \
20855 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20856 test 0 -eq $? || _lt_function_replace_fail=:
20857
20858
20859 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20860 func_stripname ()\
20861 {\
20862 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20863 \ # positional parameters, so assign one to ordinary parameter first.\
20864 \ func_stripname_result=${3}\
20865 \ func_stripname_result=${func_stripname_result#"${1}"}\
20866 \ func_stripname_result=${func_stripname_result%"${2}"}\
20867 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20868 && mv -f "$cfgfile.tmp" "$cfgfile" \
20869 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20870 test 0 -eq $? || _lt_function_replace_fail=:
20871
20872
20873 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20874 func_split_long_opt ()\
20875 {\
20876 \ func_split_long_opt_name=${1%%=*}\
20877 \ func_split_long_opt_arg=${1#*=}\
20878 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20879 && mv -f "$cfgfile.tmp" "$cfgfile" \
20880 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20881 test 0 -eq $? || _lt_function_replace_fail=:
20882
20883
20884 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20885 func_split_short_opt ()\
20886 {\
20887 \ func_split_short_opt_arg=${1#??}\
20888 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20889 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20890 && mv -f "$cfgfile.tmp" "$cfgfile" \
20891 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20892 test 0 -eq $? || _lt_function_replace_fail=:
20893
20894
20895 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20896 func_lo2o ()\
20897 {\
20898 \ case ${1} in\
20899 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20900 \ *) func_lo2o_result=${1} ;;\
20901 \ esac\
20902 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20903 && mv -f "$cfgfile.tmp" "$cfgfile" \
20904 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20905 test 0 -eq $? || _lt_function_replace_fail=:
20906
20907
20908 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20909 func_xform ()\
20910 {\
20911 func_xform_result=${1%.*}.lo\
20912 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20913 && mv -f "$cfgfile.tmp" "$cfgfile" \
20914 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20915 test 0 -eq $? || _lt_function_replace_fail=:
20916
20917
20918 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20919 func_arith ()\
20920 {\
20921 func_arith_result=$(( $* ))\
20922 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20923 && mv -f "$cfgfile.tmp" "$cfgfile" \
20924 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20925 test 0 -eq $? || _lt_function_replace_fail=:
20926
20927
20928 sed -e '/^func_len ()$/,/^} # func_len /c\
20929 func_len ()\
20930 {\
20931 func_len_result=${#1}\
20932 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20933 && mv -f "$cfgfile.tmp" "$cfgfile" \
20934 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20935 test 0 -eq $? || _lt_function_replace_fail=:
20936
20937 fi
20938
20939 if test x"$lt_shell_append" = xyes; then
20940 sed -e '/^func_append ()$/,/^} # func_append /c\
20941 func_append ()\
20942 {\
20943 eval "${1}+=\\${2}"\
20944 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20945 && mv -f "$cfgfile.tmp" "$cfgfile" \
20946 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20947 test 0 -eq $? || _lt_function_replace_fail=:
20948
20949
20950 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20951 func_append_quoted ()\
20952 {\
20953 \ func_quote_for_eval "${2}"\
20954 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20955 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20956 && mv -f "$cfgfile.tmp" "$cfgfile" \
20957 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20958 test 0 -eq $? || _lt_function_replace_fail=:
20959
20960
20961 # Save a `func_append' function call where possible by direct use of '+='
20962 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20963 && mv -f "$cfgfile.tmp" "$cfgfile" \
20964 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20965 test 0 -eq $? || _lt_function_replace_fail=:
20966 else
20967 # Save a `func_append' function call even when '+=' is not available
20968 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20969 && mv -f "$cfgfile.tmp" "$cfgfile" \
20970 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20971 test 0 -eq $? || _lt_function_replace_fail=:
20972 fi
20973
20974 if test x"$_lt_function_replace_fail" = x":"; then
20975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20976 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20977 fi
20978
20979
20980 mv -f "$cfgfile" "$ofile" ||
20981 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20982 chmod +x "$ofile"
20983
20984 ;;
20985
20986 esac
20987 done # for ac_tag
20988
20989
20990 as_fn_exit 0
20991 _ACEOF
20992 ac_clean_files=$ac_clean_files_save
20993
20994 test $ac_write_fail = 0 ||
20995 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20996
20997
20998 # configure is writing to config.log, and then calls config.status.
20999 # config.status does its own redirection, appending to config.log.
21000 # Unfortunately, on DOS this fails, as config.log is still kept open
21001 # by configure, so config.status won't be able to write to it; its
21002 # output is simply discarded. So we exec the FD to /dev/null,
21003 # effectively closing config.log, so it can be properly (re)opened and
21004 # appended to by config.status. When coming back to configure, we
21005 # need to make the FD available again.
21006 if test "$no_create" != yes; then
21007 ac_cs_success=:
21008 ac_config_status_args=
21009 test "$silent" = yes &&
21010 ac_config_status_args="$ac_config_status_args --quiet"
21011 exec 5>/dev/null
21012 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21013 exec 5>>config.log
21014 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21015 # would make configure fail if this is the last instruction.
21016 $ac_cs_success || as_fn_exit 1
21017 fi
21018 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21020 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21021 fi
21022