configure revision 1.1.1.4 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libXdamage 1.1.4.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188 else
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211 fi
212 fi
213 done;;
214 esac
215 as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
250 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
254 $0: have one."
255 fi
256 exit 1
257 fi
258 fi
259 fi
260 SHELL=${CONFIG_SHELL-/bin/sh}
261 export SHELL
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
265
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
269 # as_fn_unset VAR
270 # ---------------
271 # Portably unset VAR.
272 as_fn_unset ()
273 {
274 { eval $1=; unset $1;}
275 }
276 as_unset=as_fn_unset
277
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
281 as_fn_set_status ()
282 {
283 return $1
284 } # as_fn_set_status
285
286 # as_fn_exit STATUS
287 # -----------------
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 as_fn_exit ()
290 {
291 set +e
292 as_fn_set_status $1
293 exit $1
294 } # as_fn_exit
295
296 # as_fn_mkdir_p
297 # -------------
298 # Create "$as_dir" as a directory, including parents if necessary.
299 as_fn_mkdir_p ()
300 {
301
302 case $as_dir in #(
303 -*) as_dir=./$as_dir;;
304 esac
305 test -d "$as_dir" || eval $as_mkdir_p || {
306 as_dirs=
307 while :; do
308 case $as_dir in #(
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310 *) as_qdir=$as_dir;;
311 esac
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\/\)[^/].*/{
324 s//\1/
325 q
326 }
327 /^X\(\/\/\)$/{
328 s//\1/
329 q
330 }
331 /^X\(\/\).*/{
332 s//\1/
333 q
334 }
335 s/.*/./; q'`
336 test -d "$as_dir" && break
337 done
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342 } # as_fn_mkdir_p
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
348 # implementations.
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
351 {
352 eval $1+=\$2
353 }'
354 else
355 as_fn_append ()
356 {
357 eval $1=\$$1\$2
358 }
359 fi # as_fn_append
360
361 # as_fn_arith ARG...
362 # ------------------
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367 eval 'as_fn_arith ()
368 {
369 as_val=$(( $* ))
370 }'
371 else
372 as_fn_arith ()
373 {
374 as_val=`expr "$@" || test $? -eq 1`
375 }
376 fi # as_fn_arith
377
378
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
384 as_fn_error ()
385 {
386 as_status=$1; test $as_status -eq 0 && as_status=1
387 if test "$4"; then
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 fi
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
393 } # as_fn_error
394
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
397 as_expr=expr
398 else
399 as_expr=false
400 fi
401
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403 as_basename=basename
404 else
405 as_basename=false
406 fi
407
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409 as_dirname=dirname
410 else
411 as_dirname=false
412 fi
413
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 $as_echo X/"$0" |
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
420 s//\1/
421 q
422 }
423 /^X\/\(\/\/\)$/{
424 s//\1/
425 q
426 }
427 /^X\/\(\/\).*/{
428 s//\1/
429 q
430 }
431 s/.*/./; q'`
432
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
446 sed -n '
447 p
448 /[$]LINENO/=
449 ' <$as_myself |
450 sed '
451 s/[$]LINENO.*/&-/
452 t lineno
453 b
454 :lineno
455 N
456 :loop
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458 t loop
459 s/-\n.*//
460 ' >$as_me.lineno &&
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
467 . "./$as_me.lineno"
468 # Exit status is that of the last command.
469 exit
470 }
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
474 -n*)
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 xy) ECHO_C='\c';;
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
479 ECHO_T=' ';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
488 else
489 rm -f conf$$.dir
490 mkdir conf$$.dir 2>/dev/null
491 fi
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s='ln -s'
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 as_ln_s='cp -p'
501 elif ln conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s=ln
503 else
504 as_ln_s='cp -p'
505 fi
506 else
507 as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
514 else
515 test -d ./-p && rmdir ./-p
516 as_mkdir_p=false
517 fi
518
519 if test -x / >/dev/null 2>&1; then
520 as_test_x='test -x'
521 else
522 if ls -dL / >/dev/null 2>&1; then
523 as_ls_L_option=L
524 else
525 as_ls_L_option=
526 fi
527 as_test_x='
528 eval sh -c '\''
529 if test -d "$1"; then
530 test -d "$1/.";
531 else
532 case $1 in #(
533 -*)set "./$1";;
534 esac;
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
537 '\'' sh
538 '
539 fi
540 as_executable_p=$as_test_x
541
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548 SHELL=${CONFIG_SHELL-/bin/sh}
549
550
551 test -n "$DJDIR" || exec 7<&0 </dev/null
552 exec 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570
571 # Identity of this package.
572 PACKAGE_NAME='libXdamage'
573 PACKAGE_TARNAME='libXdamage'
574 PACKAGE_VERSION='1.1.4'
575 PACKAGE_STRING='libXdamage 1.1.4'
576 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
577 PACKAGE_URL=''
578
579 ac_unique_file="Makefile.am"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='am__EXEEXT_FALSE
617 am__EXEEXT_TRUE
618 LTLIBOBJS
619 LIBOBJS
620 XDAMAGE_LIBS
621 XDAMAGE_CFLAGS
622 DAMAGEEXT_VERSION
623 AM_BACKSLASH
624 AM_DEFAULT_VERBOSITY
625 MAN_SUBSTS
626 XORG_MAN_PAGE
627 ADMIN_MAN_DIR
628 DRIVER_MAN_DIR
629 MISC_MAN_DIR
630 FILE_MAN_DIR
631 LIB_MAN_DIR
632 APP_MAN_DIR
633 ADMIN_MAN_SUFFIX
634 DRIVER_MAN_SUFFIX
635 MISC_MAN_SUFFIX
636 FILE_MAN_SUFFIX
637 LIB_MAN_SUFFIX
638 APP_MAN_SUFFIX
639 INSTALL_CMD
640 PKG_CONFIG
641 CHANGELOG_CMD
642 STRICT_CFLAGS
643 CWARNFLAGS
644 BASE_CFLAGS
645 CPP
646 OTOOL64
647 OTOOL
648 LIPO
649 NMEDIT
650 DSYMUTIL
651 MANIFEST_TOOL
652 RANLIB
653 ac_ct_AR
654 AR
655 DLLTOOL
656 OBJDUMP
657 LN_S
658 NM
659 ac_ct_DUMPBIN
660 DUMPBIN
661 LD
662 FGREP
663 EGREP
664 GREP
665 SED
666 am__fastdepCC_FALSE
667 am__fastdepCC_TRUE
668 CCDEPMODE
669 am__nodep
670 AMDEPBACKSLASH
671 AMDEP_FALSE
672 AMDEP_TRUE
673 am__quote
674 am__include
675 DEPDIR
676 OBJEXT
677 EXEEXT
678 ac_ct_CC
679 CPPFLAGS
680 LDFLAGS
681 CFLAGS
682 CC
683 host_os
684 host_vendor
685 host_cpu
686 host
687 build_os
688 build_vendor
689 build_cpu
690 build
691 LIBTOOL
692 MAINT
693 MAINTAINER_MODE_FALSE
694 MAINTAINER_MODE_TRUE
695 am__untar
696 am__tar
697 AMTAR
698 am__leading_dot
699 SET_MAKE
700 AWK
701 mkdir_p
702 MKDIR_P
703 INSTALL_STRIP_PROGRAM
704 STRIP
705 install_sh
706 MAKEINFO
707 AUTOHEADER
708 AUTOMAKE
709 AUTOCONF
710 ACLOCAL
711 VERSION
712 PACKAGE
713 CYGPATH_W
714 am__isrc
715 INSTALL_DATA
716 INSTALL_SCRIPT
717 INSTALL_PROGRAM
718 target_alias
719 host_alias
720 build_alias
721 LIBS
722 ECHO_T
723 ECHO_N
724 ECHO_C
725 DEFS
726 mandir
727 localedir
728 libdir
729 psdir
730 pdfdir
731 dvidir
732 htmldir
733 infodir
734 docdir
735 oldincludedir
736 includedir
737 localstatedir
738 sharedstatedir
739 sysconfdir
740 datadir
741 datarootdir
742 libexecdir
743 sbindir
744 bindir
745 program_transform_name
746 prefix
747 exec_prefix
748 PACKAGE_URL
749 PACKAGE_BUGREPORT
750 PACKAGE_STRING
751 PACKAGE_VERSION
752 PACKAGE_TARNAME
753 PACKAGE_NAME
754 PATH_SEPARATOR
755 SHELL'
756 ac_subst_files=''
757 ac_user_opts='
758 enable_option_checking
759 enable_maintainer_mode
760 enable_shared
761 enable_static
762 with_pic
763 enable_fast_install
764 enable_dependency_tracking
765 with_gnu_ld
766 with_sysroot
767 enable_libtool_lock
768 enable_selective_werror
769 enable_strict_compilation
770 enable_silent_rules
771 '
772 ac_precious_vars='build_alias
773 host_alias
774 target_alias
775 CC
776 CFLAGS
777 LDFLAGS
778 LIBS
779 CPPFLAGS
780 CPP
781 PKG_CONFIG
782 XDAMAGE_CFLAGS
783 XDAMAGE_LIBS'
784
785
786 # Initialize some variables set by options.
787 ac_init_help=
788 ac_init_version=false
789 ac_unrecognized_opts=
790 ac_unrecognized_sep=
791 # The variables have the same names as the options, with
792 # dashes changed to underlines.
793 cache_file=/dev/null
794 exec_prefix=NONE
795 no_create=
796 no_recursion=
797 prefix=NONE
798 program_prefix=NONE
799 program_suffix=NONE
800 program_transform_name=s,x,x,
801 silent=
802 site=
803 srcdir=
804 verbose=
805 x_includes=NONE
806 x_libraries=NONE
807
808 # Installation directory options.
809 # These are left unexpanded so users can "make install exec_prefix=/foo"
810 # and all the variables that are supposed to be based on exec_prefix
811 # by default will actually change.
812 # Use braces instead of parens because sh, perl, etc. also accept them.
813 # (The list follows the same order as the GNU Coding Standards.)
814 bindir='${exec_prefix}/bin'
815 sbindir='${exec_prefix}/sbin'
816 libexecdir='${exec_prefix}/libexec'
817 datarootdir='${prefix}/share'
818 datadir='${datarootdir}'
819 sysconfdir='${prefix}/etc'
820 sharedstatedir='${prefix}/com'
821 localstatedir='${prefix}/var'
822 includedir='${prefix}/include'
823 oldincludedir='/usr/include'
824 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
825 infodir='${datarootdir}/info'
826 htmldir='${docdir}'
827 dvidir='${docdir}'
828 pdfdir='${docdir}'
829 psdir='${docdir}'
830 libdir='${exec_prefix}/lib'
831 localedir='${datarootdir}/locale'
832 mandir='${datarootdir}/man'
833
834 ac_prev=
835 ac_dashdash=
836 for ac_option
837 do
838 # If the previous option needs an argument, assign it.
839 if test -n "$ac_prev"; then
840 eval $ac_prev=\$ac_option
841 ac_prev=
842 continue
843 fi
844
845 case $ac_option in
846 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
847 *=) ac_optarg= ;;
848 *) ac_optarg=yes ;;
849 esac
850
851 # Accept the important Cygnus configure options, so we can diagnose typos.
852
853 case $ac_dashdash$ac_option in
854 --)
855 ac_dashdash=yes ;;
856
857 -bindir | --bindir | --bindi | --bind | --bin | --bi)
858 ac_prev=bindir ;;
859 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
860 bindir=$ac_optarg ;;
861
862 -build | --build | --buil | --bui | --bu)
863 ac_prev=build_alias ;;
864 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
865 build_alias=$ac_optarg ;;
866
867 -cache-file | --cache-file | --cache-fil | --cache-fi \
868 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
869 ac_prev=cache_file ;;
870 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
871 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
872 cache_file=$ac_optarg ;;
873
874 --config-cache | -C)
875 cache_file=config.cache ;;
876
877 -datadir | --datadir | --datadi | --datad)
878 ac_prev=datadir ;;
879 -datadir=* | --datadir=* | --datadi=* | --datad=*)
880 datadir=$ac_optarg ;;
881
882 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
883 | --dataroo | --dataro | --datar)
884 ac_prev=datarootdir ;;
885 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
886 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
887 datarootdir=$ac_optarg ;;
888
889 -disable-* | --disable-*)
890 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
891 # Reject names that are not valid shell variable names.
892 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893 as_fn_error $? "invalid feature name: $ac_useropt"
894 ac_useropt_orig=$ac_useropt
895 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896 case $ac_user_opts in
897 *"
898 "enable_$ac_useropt"
899 "*) ;;
900 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901 ac_unrecognized_sep=', ';;
902 esac
903 eval enable_$ac_useropt=no ;;
904
905 -docdir | --docdir | --docdi | --doc | --do)
906 ac_prev=docdir ;;
907 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
908 docdir=$ac_optarg ;;
909
910 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911 ac_prev=dvidir ;;
912 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
913 dvidir=$ac_optarg ;;
914
915 -enable-* | --enable-*)
916 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
917 # Reject names that are not valid shell variable names.
918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919 as_fn_error $? "invalid feature name: $ac_useropt"
920 ac_useropt_orig=$ac_useropt
921 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922 case $ac_user_opts in
923 *"
924 "enable_$ac_useropt"
925 "*) ;;
926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927 ac_unrecognized_sep=', ';;
928 esac
929 eval enable_$ac_useropt=\$ac_optarg ;;
930
931 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933 | --exec | --exe | --ex)
934 ac_prev=exec_prefix ;;
935 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937 | --exec=* | --exe=* | --ex=*)
938 exec_prefix=$ac_optarg ;;
939
940 -gas | --gas | --ga | --g)
941 # Obsolete; use --with-gas.
942 with_gas=yes ;;
943
944 -help | --help | --hel | --he | -h)
945 ac_init_help=long ;;
946 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947 ac_init_help=recursive ;;
948 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949 ac_init_help=short ;;
950
951 -host | --host | --hos | --ho)
952 ac_prev=host_alias ;;
953 -host=* | --host=* | --hos=* | --ho=*)
954 host_alias=$ac_optarg ;;
955
956 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957 ac_prev=htmldir ;;
958 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959 | --ht=*)
960 htmldir=$ac_optarg ;;
961
962 -includedir | --includedir | --includedi | --included | --include \
963 | --includ | --inclu | --incl | --inc)
964 ac_prev=includedir ;;
965 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966 | --includ=* | --inclu=* | --incl=* | --inc=*)
967 includedir=$ac_optarg ;;
968
969 -infodir | --infodir | --infodi | --infod | --info | --inf)
970 ac_prev=infodir ;;
971 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972 infodir=$ac_optarg ;;
973
974 -libdir | --libdir | --libdi | --libd)
975 ac_prev=libdir ;;
976 -libdir=* | --libdir=* | --libdi=* | --libd=*)
977 libdir=$ac_optarg ;;
978
979 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980 | --libexe | --libex | --libe)
981 ac_prev=libexecdir ;;
982 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983 | --libexe=* | --libex=* | --libe=*)
984 libexecdir=$ac_optarg ;;
985
986 -localedir | --localedir | --localedi | --localed | --locale)
987 ac_prev=localedir ;;
988 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989 localedir=$ac_optarg ;;
990
991 -localstatedir | --localstatedir | --localstatedi | --localstated \
992 | --localstate | --localstat | --localsta | --localst | --locals)
993 ac_prev=localstatedir ;;
994 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
995 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
996 localstatedir=$ac_optarg ;;
997
998 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999 ac_prev=mandir ;;
1000 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001 mandir=$ac_optarg ;;
1002
1003 -nfp | --nfp | --nf)
1004 # Obsolete; use --without-fp.
1005 with_fp=no ;;
1006
1007 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008 | --no-cr | --no-c | -n)
1009 no_create=yes ;;
1010
1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013 no_recursion=yes ;;
1014
1015 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017 | --oldin | --oldi | --old | --ol | --o)
1018 ac_prev=oldincludedir ;;
1019 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022 oldincludedir=$ac_optarg ;;
1023
1024 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025 ac_prev=prefix ;;
1026 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027 prefix=$ac_optarg ;;
1028
1029 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030 | --program-pre | --program-pr | --program-p)
1031 ac_prev=program_prefix ;;
1032 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034 program_prefix=$ac_optarg ;;
1035
1036 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037 | --program-suf | --program-su | --program-s)
1038 ac_prev=program_suffix ;;
1039 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041 program_suffix=$ac_optarg ;;
1042
1043 -program-transform-name | --program-transform-name \
1044 | --program-transform-nam | --program-transform-na \
1045 | --program-transform-n | --program-transform- \
1046 | --program-transform | --program-transfor \
1047 | --program-transfo | --program-transf \
1048 | --program-trans | --program-tran \
1049 | --progr-tra | --program-tr | --program-t)
1050 ac_prev=program_transform_name ;;
1051 -program-transform-name=* | --program-transform-name=* \
1052 | --program-transform-nam=* | --program-transform-na=* \
1053 | --program-transform-n=* | --program-transform-=* \
1054 | --program-transform=* | --program-transfor=* \
1055 | --program-transfo=* | --program-transf=* \
1056 | --program-trans=* | --program-tran=* \
1057 | --progr-tra=* | --program-tr=* | --program-t=*)
1058 program_transform_name=$ac_optarg ;;
1059
1060 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061 ac_prev=pdfdir ;;
1062 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063 pdfdir=$ac_optarg ;;
1064
1065 -psdir | --psdir | --psdi | --psd | --ps)
1066 ac_prev=psdir ;;
1067 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068 psdir=$ac_optarg ;;
1069
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1072 silent=yes ;;
1073
1074 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075 ac_prev=sbindir ;;
1076 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077 | --sbi=* | --sb=*)
1078 sbindir=$ac_optarg ;;
1079
1080 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082 | --sharedst | --shareds | --shared | --share | --shar \
1083 | --sha | --sh)
1084 ac_prev=sharedstatedir ;;
1085 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088 | --sha=* | --sh=*)
1089 sharedstatedir=$ac_optarg ;;
1090
1091 -site | --site | --sit)
1092 ac_prev=site ;;
1093 -site=* | --site=* | --sit=*)
1094 site=$ac_optarg ;;
1095
1096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097 ac_prev=srcdir ;;
1098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099 srcdir=$ac_optarg ;;
1100
1101 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102 | --syscon | --sysco | --sysc | --sys | --sy)
1103 ac_prev=sysconfdir ;;
1104 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106 sysconfdir=$ac_optarg ;;
1107
1108 -target | --target | --targe | --targ | --tar | --ta | --t)
1109 ac_prev=target_alias ;;
1110 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111 target_alias=$ac_optarg ;;
1112
1113 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114 verbose=yes ;;
1115
1116 -version | --version | --versio | --versi | --vers | -V)
1117 ac_init_version=: ;;
1118
1119 -with-* | --with-*)
1120 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123 as_fn_error $? "invalid package name: $ac_useropt"
1124 ac_useropt_orig=$ac_useropt
1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1127 *"
1128 "with_$ac_useropt"
1129 "*) ;;
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131 ac_unrecognized_sep=', ';;
1132 esac
1133 eval with_$ac_useropt=\$ac_optarg ;;
1134
1135 -without-* | --without-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error $? "invalid package name: $ac_useropt"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144 "with_$ac_useropt"
1145 "*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=no ;;
1150
1151 --x)
1152 # Obsolete; use --with-x.
1153 with_x=yes ;;
1154
1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156 | --x-incl | --x-inc | --x-in | --x-i)
1157 ac_prev=x_includes ;;
1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160 x_includes=$ac_optarg ;;
1161
1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164 ac_prev=x_libraries ;;
1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167 x_libraries=$ac_optarg ;;
1168
1169 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1170 Try \`$0 --help' for more information"
1171 ;;
1172
1173 *=*)
1174 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175 # Reject names that are not valid shell variable names.
1176 case $ac_envvar in #(
1177 '' | [0-9]* | *[!_$as_cr_alnum]* )
1178 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1179 esac
1180 eval $ac_envvar=\$ac_optarg
1181 export $ac_envvar ;;
1182
1183 *)
1184 # FIXME: should be removed in autoconf 3.0.
1185 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1189 ;;
1190
1191 esac
1192 done
1193
1194 if test -n "$ac_prev"; then
1195 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196 as_fn_error $? "missing argument to $ac_option"
1197 fi
1198
1199 if test -n "$ac_unrecognized_opts"; then
1200 case $enable_option_checking in
1201 no) ;;
1202 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1203 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1204 esac
1205 fi
1206
1207 # Check all directory arguments for consistency.
1208 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209 datadir sysconfdir sharedstatedir localstatedir includedir \
1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211 libdir localedir mandir
1212 do
1213 eval ac_val=\$$ac_var
1214 # Remove trailing slashes.
1215 case $ac_val in
1216 */ )
1217 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218 eval $ac_var=\$ac_val;;
1219 esac
1220 # Be sure to have absolute directory names.
1221 case $ac_val in
1222 [\\/$]* | ?:[\\/]* ) continue;;
1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224 esac
1225 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1226 done
1227
1228 # There might be people who depend on the old broken behavior: `$host'
1229 # used to hold the argument of --host etc.
1230 # FIXME: To remove some day.
1231 build=$build_alias
1232 host=$host_alias
1233 target=$target_alias
1234
1235 # FIXME: To remove some day.
1236 if test "x$host_alias" != x; then
1237 if test "x$build_alias" = x; then
1238 cross_compiling=maybe
1239 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1240 If a cross compiler is detected then cross compile mode will be used" >&2
1241 elif test "x$build_alias" != "x$host_alias"; then
1242 cross_compiling=yes
1243 fi
1244 fi
1245
1246 ac_tool_prefix=
1247 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248
1249 test "$silent" = yes && exec 6>/dev/null
1250
1251
1252 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253 ac_ls_di=`ls -di .` &&
1254 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255 as_fn_error $? "working directory cannot be determined"
1256 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257 as_fn_error $? "pwd does not report name of working directory"
1258
1259
1260 # Find the source files, if location was not specified.
1261 if test -z "$srcdir"; then
1262 ac_srcdir_defaulted=yes
1263 # Try the directory containing this script, then the parent directory.
1264 ac_confdir=`$as_dirname -- "$as_myself" ||
1265 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266 X"$as_myself" : 'X\(//\)[^/]' \| \
1267 X"$as_myself" : 'X\(//\)$' \| \
1268 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1269 $as_echo X"$as_myself" |
1270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\/\)[^/].*/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)$/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\).*/{
1283 s//\1/
1284 q
1285 }
1286 s/.*/./; q'`
1287 srcdir=$ac_confdir
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 srcdir=..
1290 fi
1291 else
1292 ac_srcdir_defaulted=no
1293 fi
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1296 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1297 fi
1298 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299 ac_abs_confdir=`(
1300 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1301 pwd)`
1302 # When building in place, set srcdir=.
1303 if test "$ac_abs_confdir" = "$ac_pwd"; then
1304 srcdir=.
1305 fi
1306 # Remove unnecessary trailing slashes from srcdir.
1307 # Double slashes in file names in object file debugging info
1308 # mess up M-x gdb in Emacs.
1309 case $srcdir in
1310 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311 esac
1312 for ac_var in $ac_precious_vars; do
1313 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_env_${ac_var}_value=\$${ac_var}
1315 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317 done
1318
1319 #
1320 # Report the --help message.
1321 #
1322 if test "$ac_init_help" = "long"; then
1323 # Omit some internal or obsolete options to make the list less imposing.
1324 # This message is too long to be a string in the A/UX 3.1 sh.
1325 cat <<_ACEOF
1326 \`configure' configures libXdamage 1.1.4 to adapt to many kinds of systems.
1327
1328 Usage: $0 [OPTION]... [VAR=VALUE]...
1329
1330 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331 VAR=VALUE. See below for descriptions of some of the useful variables.
1332
1333 Defaults for the options are specified in brackets.
1334
1335 Configuration:
1336 -h, --help display this help and exit
1337 --help=short display options specific to this package
1338 --help=recursive display the short help of all the included packages
1339 -V, --version display version information and exit
1340 -q, --quiet, --silent do not print \`checking ...' messages
1341 --cache-file=FILE cache test results in FILE [disabled]
1342 -C, --config-cache alias for \`--cache-file=config.cache'
1343 -n, --no-create do not create output files
1344 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1345
1346 Installation directories:
1347 --prefix=PREFIX install architecture-independent files in PREFIX
1348 [$ac_default_prefix]
1349 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1350 [PREFIX]
1351
1352 By default, \`make install' will install all the files in
1353 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1354 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355 for instance \`--prefix=\$HOME'.
1356
1357 For better control, use the options below.
1358
1359 Fine tuning of the installation directories:
1360 --bindir=DIR user executables [EPREFIX/bin]
1361 --sbindir=DIR system admin executables [EPREFIX/sbin]
1362 --libexecdir=DIR program executables [EPREFIX/libexec]
1363 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1364 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1365 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1366 --libdir=DIR object code libraries [EPREFIX/lib]
1367 --includedir=DIR C header files [PREFIX/include]
1368 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1369 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1370 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1371 --infodir=DIR info documentation [DATAROOTDIR/info]
1372 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1373 --mandir=DIR man documentation [DATAROOTDIR/man]
1374 --docdir=DIR documentation root [DATAROOTDIR/doc/libXdamage]
1375 --htmldir=DIR html documentation [DOCDIR]
1376 --dvidir=DIR dvi documentation [DOCDIR]
1377 --pdfdir=DIR pdf documentation [DOCDIR]
1378 --psdir=DIR ps documentation [DOCDIR]
1379 _ACEOF
1380
1381 cat <<\_ACEOF
1382
1383 Program names:
1384 --program-prefix=PREFIX prepend PREFIX to installed program names
1385 --program-suffix=SUFFIX append SUFFIX to installed program names
1386 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1387
1388 System types:
1389 --build=BUILD configure for building on BUILD [guessed]
1390 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1391 _ACEOF
1392 fi
1393
1394 if test -n "$ac_init_help"; then
1395 case $ac_init_help in
1396 short | recursive ) echo "Configuration of libXdamage 1.1.4:";;
1397 esac
1398 cat <<\_ACEOF
1399
1400 Optional Features:
1401 --disable-option-checking ignore unrecognized --enable/--with options
1402 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1403 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1404 --enable-maintainer-mode enable make rules and dependencies not useful
1405 (and sometimes confusing) to the casual installer
1406 --enable-shared[=PKGS] build shared libraries [default=yes]
1407 --enable-static[=PKGS] build static libraries [default=yes]
1408 --enable-fast-install[=PKGS]
1409 optimize for fast installation [default=yes]
1410 --disable-dependency-tracking speeds up one-time build
1411 --enable-dependency-tracking do not reject slow dependency extractors
1412 --disable-libtool-lock avoid locking (might break parallel builds)
1413 --disable-selective-werror
1414 Turn off selective compiler errors. (default:
1415 enabled)
1416 --enable-strict-compilation
1417 Enable all warnings from compiler and make them
1418 errors (default: disabled)
1419 --enable-silent-rules less verbose build output (undo: `make V=1')
1420 --disable-silent-rules verbose build output (undo: `make V=0')
1421
1422 Optional Packages:
1423 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1424 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1425 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1426 both]
1427 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1428 --with-sysroot=DIR Search for dependent libraries within DIR
1429 (or the compiler's sysroot if not specified).
1430
1431 Some influential environment variables:
1432 CC C compiler command
1433 CFLAGS C compiler flags
1434 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1435 nonstandard directory <lib dir>
1436 LIBS libraries to pass to the linker, e.g. -l<library>
1437 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1438 you have headers in a nonstandard directory <include dir>
1439 CPP C preprocessor
1440 PKG_CONFIG path to pkg-config utility
1441 XDAMAGE_CFLAGS
1442 C compiler flags for XDAMAGE, overriding pkg-config
1443 XDAMAGE_LIBS
1444 linker flags for XDAMAGE, overriding pkg-config
1445
1446 Use these variables to override the choices made by `configure' or to help
1447 it to find libraries and programs with nonstandard names/locations.
1448
1449 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1450 _ACEOF
1451 ac_status=$?
1452 fi
1453
1454 if test "$ac_init_help" = "recursive"; then
1455 # If there are subdirs, report their specific --help.
1456 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1457 test -d "$ac_dir" ||
1458 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1459 continue
1460 ac_builddir=.
1461
1462 case "$ac_dir" in
1463 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1464 *)
1465 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1466 # A ".." for each directory in $ac_dir_suffix.
1467 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1468 case $ac_top_builddir_sub in
1469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1471 esac ;;
1472 esac
1473 ac_abs_top_builddir=$ac_pwd
1474 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1475 # for backward compatibility:
1476 ac_top_builddir=$ac_top_build_prefix
1477
1478 case $srcdir in
1479 .) # We are building in place.
1480 ac_srcdir=.
1481 ac_top_srcdir=$ac_top_builddir_sub
1482 ac_abs_top_srcdir=$ac_pwd ;;
1483 [\\/]* | ?:[\\/]* ) # Absolute name.
1484 ac_srcdir=$srcdir$ac_dir_suffix;
1485 ac_top_srcdir=$srcdir
1486 ac_abs_top_srcdir=$srcdir ;;
1487 *) # Relative name.
1488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1489 ac_top_srcdir=$ac_top_build_prefix$srcdir
1490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1491 esac
1492 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1493
1494 cd "$ac_dir" || { ac_status=$?; continue; }
1495 # Check for guested configure.
1496 if test -f "$ac_srcdir/configure.gnu"; then
1497 echo &&
1498 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1499 elif test -f "$ac_srcdir/configure"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure" --help=recursive
1502 else
1503 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1504 fi || ac_status=$?
1505 cd "$ac_pwd" || { ac_status=$?; break; }
1506 done
1507 fi
1508
1509 test -n "$ac_init_help" && exit $ac_status
1510 if $ac_init_version; then
1511 cat <<\_ACEOF
1512 libXdamage configure 1.1.4
1513 generated by GNU Autoconf 2.68
1514
1515 Copyright (C) 2010 Free Software Foundation, Inc.
1516 This configure script is free software; the Free Software Foundation
1517 gives unlimited permission to copy, distribute and modify it.
1518 _ACEOF
1519 exit
1520 fi
1521
1522 ## ------------------------ ##
1523 ## Autoconf initialization. ##
1524 ## ------------------------ ##
1525
1526 # ac_fn_c_try_compile LINENO
1527 # --------------------------
1528 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1529 ac_fn_c_try_compile ()
1530 {
1531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1532 rm -f conftest.$ac_objext
1533 if { { ac_try="$ac_compile"
1534 case "(($ac_try" in
1535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1536 *) ac_try_echo=$ac_try;;
1537 esac
1538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539 $as_echo "$ac_try_echo"; } >&5
1540 (eval "$ac_compile") 2>conftest.err
1541 ac_status=$?
1542 if test -s conftest.err; then
1543 grep -v '^ *+' conftest.err >conftest.er1
1544 cat conftest.er1 >&5
1545 mv -f conftest.er1 conftest.err
1546 fi
1547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548 test $ac_status = 0; } && {
1549 test -z "$ac_c_werror_flag" ||
1550 test ! -s conftest.err
1551 } && test -s conftest.$ac_objext; then :
1552 ac_retval=0
1553 else
1554 $as_echo "$as_me: failed program was:" >&5
1555 sed 's/^/| /' conftest.$ac_ext >&5
1556
1557 ac_retval=1
1558 fi
1559 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1560 as_fn_set_status $ac_retval
1561
1562 } # ac_fn_c_try_compile
1563
1564 # ac_fn_c_try_link LINENO
1565 # -----------------------
1566 # Try to link conftest.$ac_ext, and return whether this succeeded.
1567 ac_fn_c_try_link ()
1568 {
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 rm -f conftest.$ac_objext conftest$ac_exeext
1571 if { { ac_try="$ac_link"
1572 case "(($ac_try" in
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1575 esac
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_link") 2>conftest.err
1579 ac_status=$?
1580 if test -s conftest.err; then
1581 grep -v '^ *+' conftest.err >conftest.er1
1582 cat conftest.er1 >&5
1583 mv -f conftest.er1 conftest.err
1584 fi
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } && {
1587 test -z "$ac_c_werror_flag" ||
1588 test ! -s conftest.err
1589 } && test -s conftest$ac_exeext && {
1590 test "$cross_compiling" = yes ||
1591 $as_test_x conftest$ac_exeext
1592 }; then :
1593 ac_retval=0
1594 else
1595 $as_echo "$as_me: failed program was:" >&5
1596 sed 's/^/| /' conftest.$ac_ext >&5
1597
1598 ac_retval=1
1599 fi
1600 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1601 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1602 # interfere with the next link command; also delete a directory that is
1603 # left behind by Apple's compiler. We do this before executing the actions.
1604 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1606 as_fn_set_status $ac_retval
1607
1608 } # ac_fn_c_try_link
1609
1610 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1611 # -------------------------------------------------------
1612 # Tests whether HEADER exists and can be compiled using the include files in
1613 # INCLUDES, setting the cache variable VAR accordingly.
1614 ac_fn_c_check_header_compile ()
1615 {
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1618 $as_echo_n "checking for $2... " >&6; }
1619 if eval \${$3+:} false; then :
1620 $as_echo_n "(cached) " >&6
1621 else
1622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1623 /* end confdefs.h. */
1624 $4
1625 #include <$2>
1626 _ACEOF
1627 if ac_fn_c_try_compile "$LINENO"; then :
1628 eval "$3=yes"
1629 else
1630 eval "$3=no"
1631 fi
1632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1633 fi
1634 eval ac_res=\$$3
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1636 $as_echo "$ac_res" >&6; }
1637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638
1639 } # ac_fn_c_check_header_compile
1640
1641 # ac_fn_c_try_cpp LINENO
1642 # ----------------------
1643 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1644 ac_fn_c_try_cpp ()
1645 {
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 if { { ac_try="$ac_cpp conftest.$ac_ext"
1648 case "(($ac_try" in
1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650 *) ac_try_echo=$ac_try;;
1651 esac
1652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653 $as_echo "$ac_try_echo"; } >&5
1654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1655 ac_status=$?
1656 if test -s conftest.err; then
1657 grep -v '^ *+' conftest.err >conftest.er1
1658 cat conftest.er1 >&5
1659 mv -f conftest.er1 conftest.err
1660 fi
1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662 test $ac_status = 0; } > conftest.i && {
1663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1664 test ! -s conftest.err
1665 }; then :
1666 ac_retval=0
1667 else
1668 $as_echo "$as_me: failed program was:" >&5
1669 sed 's/^/| /' conftest.$ac_ext >&5
1670
1671 ac_retval=1
1672 fi
1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674 as_fn_set_status $ac_retval
1675
1676 } # ac_fn_c_try_cpp
1677
1678 # ac_fn_c_try_run LINENO
1679 # ----------------------
1680 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1681 # that executables *can* be run.
1682 ac_fn_c_try_run ()
1683 {
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 if { { ac_try="$ac_link"
1686 case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689 esac
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_link") 2>&5
1693 ac_status=$?
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1696 { { case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_try") 2>&5
1703 ac_status=$?
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; }; }; then :
1706 ac_retval=0
1707 else
1708 $as_echo "$as_me: program exited with status $ac_status" >&5
1709 $as_echo "$as_me: failed program was:" >&5
1710 sed 's/^/| /' conftest.$ac_ext >&5
1711
1712 ac_retval=$ac_status
1713 fi
1714 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716 as_fn_set_status $ac_retval
1717
1718 } # ac_fn_c_try_run
1719
1720 # ac_fn_c_check_func LINENO FUNC VAR
1721 # ----------------------------------
1722 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1723 ac_fn_c_check_func ()
1724 {
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1727 $as_echo_n "checking for $2... " >&6; }
1728 if eval \${$3+:} false; then :
1729 $as_echo_n "(cached) " >&6
1730 else
1731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732 /* end confdefs.h. */
1733 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1735 #define $2 innocuous_$2
1736
1737 /* System header to define __stub macros and hopefully few prototypes,
1738 which can conflict with char $2 (); below.
1739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1740 <limits.h> exists even on freestanding compilers. */
1741
1742 #ifdef __STDC__
1743 # include <limits.h>
1744 #else
1745 # include <assert.h>
1746 #endif
1747
1748 #undef $2
1749
1750 /* Override any GCC internal prototype to avoid an error.
1751 Use char because int might match the return type of a GCC
1752 builtin and then its argument prototype would still apply. */
1753 #ifdef __cplusplus
1754 extern "C"
1755 #endif
1756 char $2 ();
1757 /* The GNU C library defines this for functions which it implements
1758 to always fail with ENOSYS. Some functions are actually named
1759 something starting with __ and the normal name is an alias. */
1760 #if defined __stub_$2 || defined __stub___$2
1761 choke me
1762 #endif
1763
1764 int
1765 main ()
1766 {
1767 return $2 ();
1768 ;
1769 return 0;
1770 }
1771 _ACEOF
1772 if ac_fn_c_try_link "$LINENO"; then :
1773 eval "$3=yes"
1774 else
1775 eval "$3=no"
1776 fi
1777 rm -f core conftest.err conftest.$ac_objext \
1778 conftest$ac_exeext conftest.$ac_ext
1779 fi
1780 eval ac_res=\$$3
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782 $as_echo "$ac_res" >&6; }
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784
1785 } # ac_fn_c_check_func
1786
1787 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1788 # ---------------------------------------------
1789 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1790 # accordingly.
1791 ac_fn_c_check_decl ()
1792 {
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 as_decl_name=`echo $2|sed 's/ *(.*//'`
1795 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1797 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1798 if eval \${$3+:} false; then :
1799 $as_echo_n "(cached) " >&6
1800 else
1801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802 /* end confdefs.h. */
1803 $4
1804 int
1805 main ()
1806 {
1807 #ifndef $as_decl_name
1808 #ifdef __cplusplus
1809 (void) $as_decl_use;
1810 #else
1811 (void) $as_decl_name;
1812 #endif
1813 #endif
1814
1815 ;
1816 return 0;
1817 }
1818 _ACEOF
1819 if ac_fn_c_try_compile "$LINENO"; then :
1820 eval "$3=yes"
1821 else
1822 eval "$3=no"
1823 fi
1824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1825 fi
1826 eval ac_res=\$$3
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1828 $as_echo "$ac_res" >&6; }
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830
1831 } # ac_fn_c_check_decl
1832 cat >config.log <<_ACEOF
1833 This file contains any messages produced by compilers while
1834 running configure, to aid debugging if configure makes a mistake.
1835
1836 It was created by libXdamage $as_me 1.1.4, which was
1837 generated by GNU Autoconf 2.68. Invocation command line was
1838
1839 $ $0 $@
1840
1841 _ACEOF
1842 exec 5>>config.log
1843 {
1844 cat <<_ASUNAME
1845 ## --------- ##
1846 ## Platform. ##
1847 ## --------- ##
1848
1849 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1850 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1851 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1852 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1853 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1854
1855 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1856 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1857
1858 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1859 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1860 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1861 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1862 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1863 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1864 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1865
1866 _ASUNAME
1867
1868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869 for as_dir in $PATH
1870 do
1871 IFS=$as_save_IFS
1872 test -z "$as_dir" && as_dir=.
1873 $as_echo "PATH: $as_dir"
1874 done
1875 IFS=$as_save_IFS
1876
1877 } >&5
1878
1879 cat >&5 <<_ACEOF
1880
1881
1882 ## ----------- ##
1883 ## Core tests. ##
1884 ## ----------- ##
1885
1886 _ACEOF
1887
1888
1889 # Keep a trace of the command line.
1890 # Strip out --no-create and --no-recursion so they do not pile up.
1891 # Strip out --silent because we don't want to record it for future runs.
1892 # Also quote any args containing shell meta-characters.
1893 # Make two passes to allow for proper duplicate-argument suppression.
1894 ac_configure_args=
1895 ac_configure_args0=
1896 ac_configure_args1=
1897 ac_must_keep_next=false
1898 for ac_pass in 1 2
1899 do
1900 for ac_arg
1901 do
1902 case $ac_arg in
1903 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1904 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1905 | -silent | --silent | --silen | --sile | --sil)
1906 continue ;;
1907 *\'*)
1908 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1909 esac
1910 case $ac_pass in
1911 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1912 2)
1913 as_fn_append ac_configure_args1 " '$ac_arg'"
1914 if test $ac_must_keep_next = true; then
1915 ac_must_keep_next=false # Got value, back to normal.
1916 else
1917 case $ac_arg in
1918 *=* | --config-cache | -C | -disable-* | --disable-* \
1919 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1920 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1921 | -with-* | --with-* | -without-* | --without-* | --x)
1922 case "$ac_configure_args0 " in
1923 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1924 esac
1925 ;;
1926 -* ) ac_must_keep_next=true ;;
1927 esac
1928 fi
1929 as_fn_append ac_configure_args " '$ac_arg'"
1930 ;;
1931 esac
1932 done
1933 done
1934 { ac_configure_args0=; unset ac_configure_args0;}
1935 { ac_configure_args1=; unset ac_configure_args1;}
1936
1937 # When interrupted or exit'd, cleanup temporary files, and complete
1938 # config.log. We remove comments because anyway the quotes in there
1939 # would cause problems or look ugly.
1940 # WARNING: Use '\'' to represent an apostrophe within the trap.
1941 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1942 trap 'exit_status=$?
1943 # Save into config.log some information that might help in debugging.
1944 {
1945 echo
1946
1947 $as_echo "## ---------------- ##
1948 ## Cache variables. ##
1949 ## ---------------- ##"
1950 echo
1951 # The following way of writing the cache mishandles newlines in values,
1952 (
1953 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1954 eval ac_val=\$$ac_var
1955 case $ac_val in #(
1956 *${as_nl}*)
1957 case $ac_var in #(
1958 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1959 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1960 esac
1961 case $ac_var in #(
1962 _ | IFS | as_nl) ;; #(
1963 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1964 *) { eval $ac_var=; unset $ac_var;} ;;
1965 esac ;;
1966 esac
1967 done
1968 (set) 2>&1 |
1969 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1970 *${as_nl}ac_space=\ *)
1971 sed -n \
1972 "s/'\''/'\''\\\\'\'''\''/g;
1973 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1974 ;; #(
1975 *)
1976 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1977 ;;
1978 esac |
1979 sort
1980 )
1981 echo
1982
1983 $as_echo "## ----------------- ##
1984 ## Output variables. ##
1985 ## ----------------- ##"
1986 echo
1987 for ac_var in $ac_subst_vars
1988 do
1989 eval ac_val=\$$ac_var
1990 case $ac_val in
1991 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1992 esac
1993 $as_echo "$ac_var='\''$ac_val'\''"
1994 done | sort
1995 echo
1996
1997 if test -n "$ac_subst_files"; then
1998 $as_echo "## ------------------- ##
1999 ## File substitutions. ##
2000 ## ------------------- ##"
2001 echo
2002 for ac_var in $ac_subst_files
2003 do
2004 eval ac_val=\$$ac_var
2005 case $ac_val in
2006 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2007 esac
2008 $as_echo "$ac_var='\''$ac_val'\''"
2009 done | sort
2010 echo
2011 fi
2012
2013 if test -s confdefs.h; then
2014 $as_echo "## ----------- ##
2015 ## confdefs.h. ##
2016 ## ----------- ##"
2017 echo
2018 cat confdefs.h
2019 echo
2020 fi
2021 test "$ac_signal" != 0 &&
2022 $as_echo "$as_me: caught signal $ac_signal"
2023 $as_echo "$as_me: exit $exit_status"
2024 } >&5
2025 rm -f core *.core core.conftest.* &&
2026 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2027 exit $exit_status
2028 ' 0
2029 for ac_signal in 1 2 13 15; do
2030 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2031 done
2032 ac_signal=0
2033
2034 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2035 rm -f -r conftest* confdefs.h
2036
2037 $as_echo "/* confdefs.h */" > confdefs.h
2038
2039 # Predefined preprocessor variables.
2040
2041 cat >>confdefs.h <<_ACEOF
2042 #define PACKAGE_NAME "$PACKAGE_NAME"
2043 _ACEOF
2044
2045 cat >>confdefs.h <<_ACEOF
2046 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2047 _ACEOF
2048
2049 cat >>confdefs.h <<_ACEOF
2050 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2051 _ACEOF
2052
2053 cat >>confdefs.h <<_ACEOF
2054 #define PACKAGE_STRING "$PACKAGE_STRING"
2055 _ACEOF
2056
2057 cat >>confdefs.h <<_ACEOF
2058 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2059 _ACEOF
2060
2061 cat >>confdefs.h <<_ACEOF
2062 #define PACKAGE_URL "$PACKAGE_URL"
2063 _ACEOF
2064
2065
2066 # Let the site file select an alternate cache file if it wants to.
2067 # Prefer an explicitly selected file to automatically selected ones.
2068 ac_site_file1=NONE
2069 ac_site_file2=NONE
2070 if test -n "$CONFIG_SITE"; then
2071 # We do not want a PATH search for config.site.
2072 case $CONFIG_SITE in #((
2073 -*) ac_site_file1=./$CONFIG_SITE;;
2074 */*) ac_site_file1=$CONFIG_SITE;;
2075 *) ac_site_file1=./$CONFIG_SITE;;
2076 esac
2077 elif test "x$prefix" != xNONE; then
2078 ac_site_file1=$prefix/share/config.site
2079 ac_site_file2=$prefix/etc/config.site
2080 else
2081 ac_site_file1=$ac_default_prefix/share/config.site
2082 ac_site_file2=$ac_default_prefix/etc/config.site
2083 fi
2084 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2085 do
2086 test "x$ac_site_file" = xNONE && continue
2087 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2089 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2090 sed 's/^/| /' "$ac_site_file" >&5
2091 . "$ac_site_file" \
2092 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2094 as_fn_error $? "failed to load site script $ac_site_file
2095 See \`config.log' for more details" "$LINENO" 5; }
2096 fi
2097 done
2098
2099 if test -r "$cache_file"; then
2100 # Some versions of bash will fail to source /dev/null (special files
2101 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2102 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2104 $as_echo "$as_me: loading cache $cache_file" >&6;}
2105 case $cache_file in
2106 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2107 *) . "./$cache_file";;
2108 esac
2109 fi
2110 else
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2112 $as_echo "$as_me: creating cache $cache_file" >&6;}
2113 >$cache_file
2114 fi
2115
2116 # Check that the precious variables saved in the cache have kept the same
2117 # value.
2118 ac_cache_corrupted=false
2119 for ac_var in $ac_precious_vars; do
2120 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2121 eval ac_new_set=\$ac_env_${ac_var}_set
2122 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2123 eval ac_new_val=\$ac_env_${ac_var}_value
2124 case $ac_old_set,$ac_new_set in
2125 set,)
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2127 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2128 ac_cache_corrupted=: ;;
2129 ,set)
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2131 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2132 ac_cache_corrupted=: ;;
2133 ,);;
2134 *)
2135 if test "x$ac_old_val" != "x$ac_new_val"; then
2136 # differences in whitespace do not lead to failure.
2137 ac_old_val_w=`echo x $ac_old_val`
2138 ac_new_val_w=`echo x $ac_new_val`
2139 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2141 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2142 ac_cache_corrupted=:
2143 else
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2145 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2146 eval $ac_var=\$ac_old_val
2147 fi
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2149 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2151 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2152 fi;;
2153 esac
2154 # Pass precious variables to config.status.
2155 if test "$ac_new_set" = set; then
2156 case $ac_new_val in
2157 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2158 *) ac_arg=$ac_var=$ac_new_val ;;
2159 esac
2160 case " $ac_configure_args " in
2161 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2162 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2163 esac
2164 fi
2165 done
2166 if $ac_cache_corrupted; then
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2170 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2171 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2172 fi
2173 ## -------------------- ##
2174 ## Main body of script. ##
2175 ## -------------------- ##
2176
2177 ac_ext=c
2178 ac_cpp='$CPP $CPPFLAGS'
2179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2182
2183
2184
2185 ac_config_headers="$ac_config_headers config.h"
2186
2187
2188 # Initialize Automake
2189 am__api_version='1.11'
2190
2191 ac_aux_dir=
2192 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2193 if test -f "$ac_dir/install-sh"; then
2194 ac_aux_dir=$ac_dir
2195 ac_install_sh="$ac_aux_dir/install-sh -c"
2196 break
2197 elif test -f "$ac_dir/install.sh"; then
2198 ac_aux_dir=$ac_dir
2199 ac_install_sh="$ac_aux_dir/install.sh -c"
2200 break
2201 elif test -f "$ac_dir/shtool"; then
2202 ac_aux_dir=$ac_dir
2203 ac_install_sh="$ac_aux_dir/shtool install -c"
2204 break
2205 fi
2206 done
2207 if test -z "$ac_aux_dir"; then
2208 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2209 fi
2210
2211 # These three variables are undocumented and unsupported,
2212 # and are intended to be withdrawn in a future Autoconf release.
2213 # They can cause serious problems if a builder's source tree is in a directory
2214 # whose full name contains unusual characters.
2215 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2216 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2217 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2218
2219
2220 # Find a good install program. We prefer a C program (faster),
2221 # so one script is as good as another. But avoid the broken or
2222 # incompatible versions:
2223 # SysV /etc/install, /usr/sbin/install
2224 # SunOS /usr/etc/install
2225 # IRIX /sbin/install
2226 # AIX /bin/install
2227 # AmigaOS /C/install, which installs bootblocks on floppy discs
2228 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2229 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2230 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2231 # OS/2's system install, which has a completely different semantic
2232 # ./install, which can be erroneously created by make from ./install.sh.
2233 # Reject install programs that cannot install multiple files.
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2235 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2236 if test -z "$INSTALL"; then
2237 if ${ac_cv_path_install+:} false; then :
2238 $as_echo_n "(cached) " >&6
2239 else
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 for as_dir in $PATH
2242 do
2243 IFS=$as_save_IFS
2244 test -z "$as_dir" && as_dir=.
2245 # Account for people who put trailing slashes in PATH elements.
2246 case $as_dir/ in #((
2247 ./ | .// | /[cC]/* | \
2248 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2249 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2250 /usr/ucb/* ) ;;
2251 *)
2252 # OSF1 and SCO ODT 3.0 have their own names for install.
2253 # Don't use installbsd from OSF since it installs stuff as root
2254 # by default.
2255 for ac_prog in ginstall scoinst install; do
2256 for ac_exec_ext in '' $ac_executable_extensions; do
2257 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2258 if test $ac_prog = install &&
2259 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2260 # AIX install. It has an incompatible calling convention.
2261 :
2262 elif test $ac_prog = install &&
2263 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2264 # program-specific install script used by HP pwplus--don't use.
2265 :
2266 else
2267 rm -rf conftest.one conftest.two conftest.dir
2268 echo one > conftest.one
2269 echo two > conftest.two
2270 mkdir conftest.dir
2271 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2272 test -s conftest.one && test -s conftest.two &&
2273 test -s conftest.dir/conftest.one &&
2274 test -s conftest.dir/conftest.two
2275 then
2276 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2277 break 3
2278 fi
2279 fi
2280 fi
2281 done
2282 done
2283 ;;
2284 esac
2285
2286 done
2287 IFS=$as_save_IFS
2288
2289 rm -rf conftest.one conftest.two conftest.dir
2290
2291 fi
2292 if test "${ac_cv_path_install+set}" = set; then
2293 INSTALL=$ac_cv_path_install
2294 else
2295 # As a last resort, use the slow shell script. Don't cache a
2296 # value for INSTALL within a source directory, because that will
2297 # break other packages using the cache if that directory is
2298 # removed, or if the value is a relative name.
2299 INSTALL=$ac_install_sh
2300 fi
2301 fi
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2303 $as_echo "$INSTALL" >&6; }
2304
2305 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2306 # It thinks the first close brace ends the variable substitution.
2307 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2308
2309 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2310
2311 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2312
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2314 $as_echo_n "checking whether build environment is sane... " >&6; }
2315 # Just in case
2316 sleep 1
2317 echo timestamp > conftest.file
2318 # Reject unsafe characters in $srcdir or the absolute working directory
2319 # name. Accept space and tab only in the latter.
2320 am_lf='
2321 '
2322 case `pwd` in
2323 *[\\\"\#\$\&\'\`$am_lf]*)
2324 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2325 esac
2326 case $srcdir in
2327 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2328 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2329 esac
2330
2331 # Do `set' in a subshell so we don't clobber the current shell's
2332 # arguments. Must try -L first in case configure is actually a
2333 # symlink; some systems play weird games with the mod time of symlinks
2334 # (eg FreeBSD returns the mod time of the symlink's containing
2335 # directory).
2336 if (
2337 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2338 if test "$*" = "X"; then
2339 # -L didn't work.
2340 set X `ls -t "$srcdir/configure" conftest.file`
2341 fi
2342 rm -f conftest.file
2343 if test "$*" != "X $srcdir/configure conftest.file" \
2344 && test "$*" != "X conftest.file $srcdir/configure"; then
2345
2346 # If neither matched, then we have a broken ls. This can happen
2347 # if, for instance, CONFIG_SHELL is bash and it inherits a
2348 # broken ls alias from the environment. This has actually
2349 # happened. Such a system could not be considered "sane".
2350 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2351 alias in your environment" "$LINENO" 5
2352 fi
2353
2354 test "$2" = conftest.file
2355 )
2356 then
2357 # Ok.
2358 :
2359 else
2360 as_fn_error $? "newly created file is older than distributed files!
2361 Check your system clock" "$LINENO" 5
2362 fi
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2364 $as_echo "yes" >&6; }
2365 test "$program_prefix" != NONE &&
2366 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2367 # Use a double $ so make ignores it.
2368 test "$program_suffix" != NONE &&
2369 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2370 # Double any \ or $.
2371 # By default was `s,x,x', remove it if useless.
2372 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2373 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2374
2375 # expand $ac_aux_dir to an absolute path
2376 am_aux_dir=`cd $ac_aux_dir && pwd`
2377
2378 if test x"${MISSING+set}" != xset; then
2379 case $am_aux_dir in
2380 *\ * | *\ *)
2381 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2382 *)
2383 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2384 esac
2385 fi
2386 # Use eval to expand $SHELL
2387 if eval "$MISSING --run true"; then
2388 am_missing_run="$MISSING --run "
2389 else
2390 am_missing_run=
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2392 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2393 fi
2394
2395 if test x"${install_sh}" != xset; then
2396 case $am_aux_dir in
2397 *\ * | *\ *)
2398 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2399 *)
2400 install_sh="\${SHELL} $am_aux_dir/install-sh"
2401 esac
2402 fi
2403
2404 # Installed binaries are usually stripped using `strip' when the user
2405 # run `make install-strip'. However `strip' might not be the right
2406 # tool to use in cross-compilation environments, therefore Automake
2407 # will honor the `STRIP' environment variable to overrule this program.
2408 if test "$cross_compiling" != no; then
2409 if test -n "$ac_tool_prefix"; then
2410 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2411 set dummy ${ac_tool_prefix}strip; ac_word=$2
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2413 $as_echo_n "checking for $ac_word... " >&6; }
2414 if ${ac_cv_prog_STRIP+:} false; then :
2415 $as_echo_n "(cached) " >&6
2416 else
2417 if test -n "$STRIP"; then
2418 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2419 else
2420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421 for as_dir in $PATH
2422 do
2423 IFS=$as_save_IFS
2424 test -z "$as_dir" && as_dir=.
2425 for ac_exec_ext in '' $ac_executable_extensions; do
2426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2427 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2429 break 2
2430 fi
2431 done
2432 done
2433 IFS=$as_save_IFS
2434
2435 fi
2436 fi
2437 STRIP=$ac_cv_prog_STRIP
2438 if test -n "$STRIP"; then
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2440 $as_echo "$STRIP" >&6; }
2441 else
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2443 $as_echo "no" >&6; }
2444 fi
2445
2446
2447 fi
2448 if test -z "$ac_cv_prog_STRIP"; then
2449 ac_ct_STRIP=$STRIP
2450 # Extract the first word of "strip", so it can be a program name with args.
2451 set dummy strip; ac_word=$2
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2453 $as_echo_n "checking for $ac_word... " >&6; }
2454 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2455 $as_echo_n "(cached) " >&6
2456 else
2457 if test -n "$ac_ct_STRIP"; then
2458 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2459 else
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461 for as_dir in $PATH
2462 do
2463 IFS=$as_save_IFS
2464 test -z "$as_dir" && as_dir=.
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2467 ac_cv_prog_ac_ct_STRIP="strip"
2468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2469 break 2
2470 fi
2471 done
2472 done
2473 IFS=$as_save_IFS
2474
2475 fi
2476 fi
2477 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2478 if test -n "$ac_ct_STRIP"; then
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2480 $as_echo "$ac_ct_STRIP" >&6; }
2481 else
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2483 $as_echo "no" >&6; }
2484 fi
2485
2486 if test "x$ac_ct_STRIP" = x; then
2487 STRIP=":"
2488 else
2489 case $cross_compiling:$ac_tool_warned in
2490 yes:)
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2493 ac_tool_warned=yes ;;
2494 esac
2495 STRIP=$ac_ct_STRIP
2496 fi
2497 else
2498 STRIP="$ac_cv_prog_STRIP"
2499 fi
2500
2501 fi
2502 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2503
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2505 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2506 if test -z "$MKDIR_P"; then
2507 if ${ac_cv_path_mkdir+:} false; then :
2508 $as_echo_n "(cached) " >&6
2509 else
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2512 do
2513 IFS=$as_save_IFS
2514 test -z "$as_dir" && as_dir=.
2515 for ac_prog in mkdir gmkdir; do
2516 for ac_exec_ext in '' $ac_executable_extensions; do
2517 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2518 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2519 'mkdir (GNU coreutils) '* | \
2520 'mkdir (coreutils) '* | \
2521 'mkdir (fileutils) '4.1*)
2522 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2523 break 3;;
2524 esac
2525 done
2526 done
2527 done
2528 IFS=$as_save_IFS
2529
2530 fi
2531
2532 test -d ./--version && rmdir ./--version
2533 if test "${ac_cv_path_mkdir+set}" = set; then
2534 MKDIR_P="$ac_cv_path_mkdir -p"
2535 else
2536 # As a last resort, use the slow shell script. Don't cache a
2537 # value for MKDIR_P within a source directory, because that will
2538 # break other packages using the cache if that directory is
2539 # removed, or if the value is a relative name.
2540 MKDIR_P="$ac_install_sh -d"
2541 fi
2542 fi
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2544 $as_echo "$MKDIR_P" >&6; }
2545
2546 mkdir_p="$MKDIR_P"
2547 case $mkdir_p in
2548 [\\/$]* | ?:[\\/]*) ;;
2549 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2550 esac
2551
2552 for ac_prog in gawk mawk nawk awk
2553 do
2554 # Extract the first word of "$ac_prog", so it can be a program name with args.
2555 set dummy $ac_prog; ac_word=$2
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2557 $as_echo_n "checking for $ac_word... " >&6; }
2558 if ${ac_cv_prog_AWK+:} false; then :
2559 $as_echo_n "(cached) " >&6
2560 else
2561 if test -n "$AWK"; then
2562 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2563 else
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 for as_dir in $PATH
2566 do
2567 IFS=$as_save_IFS
2568 test -z "$as_dir" && as_dir=.
2569 for ac_exec_ext in '' $ac_executable_extensions; do
2570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2571 ac_cv_prog_AWK="$ac_prog"
2572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2573 break 2
2574 fi
2575 done
2576 done
2577 IFS=$as_save_IFS
2578
2579 fi
2580 fi
2581 AWK=$ac_cv_prog_AWK
2582 if test -n "$AWK"; then
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2584 $as_echo "$AWK" >&6; }
2585 else
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2587 $as_echo "no" >&6; }
2588 fi
2589
2590
2591 test -n "$AWK" && break
2592 done
2593
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2595 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2596 set x ${MAKE-make}
2597 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2598 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2599 $as_echo_n "(cached) " >&6
2600 else
2601 cat >conftest.make <<\_ACEOF
2602 SHELL = /bin/sh
2603 all:
2604 @echo '@@@%%%=$(MAKE)=@@@%%%'
2605 _ACEOF
2606 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2607 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2608 *@@@%%%=?*=@@@%%%*)
2609 eval ac_cv_prog_make_${ac_make}_set=yes;;
2610 *)
2611 eval ac_cv_prog_make_${ac_make}_set=no;;
2612 esac
2613 rm -f conftest.make
2614 fi
2615 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2617 $as_echo "yes" >&6; }
2618 SET_MAKE=
2619 else
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2621 $as_echo "no" >&6; }
2622 SET_MAKE="MAKE=${MAKE-make}"
2623 fi
2624
2625 rm -rf .tst 2>/dev/null
2626 mkdir .tst 2>/dev/null
2627 if test -d .tst; then
2628 am__leading_dot=.
2629 else
2630 am__leading_dot=_
2631 fi
2632 rmdir .tst 2>/dev/null
2633
2634 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2635 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2636 # is not polluted with repeated "-I."
2637 am__isrc=' -I$(srcdir)'
2638 # test to see if srcdir already configured
2639 if test -f $srcdir/config.status; then
2640 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2641 fi
2642 fi
2643
2644 # test whether we have cygpath
2645 if test -z "$CYGPATH_W"; then
2646 if (cygpath --version) >/dev/null 2>/dev/null; then
2647 CYGPATH_W='cygpath -w'
2648 else
2649 CYGPATH_W=echo
2650 fi
2651 fi
2652
2653
2654 # Define the identity of the package.
2655 PACKAGE='libXdamage'
2656 VERSION='1.1.4'
2657
2658
2659 cat >>confdefs.h <<_ACEOF
2660 #define PACKAGE "$PACKAGE"
2661 _ACEOF
2662
2663
2664 cat >>confdefs.h <<_ACEOF
2665 #define VERSION "$VERSION"
2666 _ACEOF
2667
2668 # Some tools Automake needs.
2669
2670 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2671
2672
2673 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2674
2675
2676 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2677
2678
2679 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2680
2681
2682 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2683
2684 # We need awk for the "check" target. The system "awk" is bad on
2685 # some platforms.
2686 # Always define AMTAR for backward compatibility.
2687
2688 AMTAR=${AMTAR-"${am_missing_run}tar"}
2689
2690 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2691
2692
2693
2694
2695
2696
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2698 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2699 # Check whether --enable-maintainer-mode was given.
2700 if test "${enable_maintainer_mode+set}" = set; then :
2701 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2702 else
2703 USE_MAINTAINER_MODE=no
2704 fi
2705
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2707 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2708 if test $USE_MAINTAINER_MODE = yes; then
2709 MAINTAINER_MODE_TRUE=
2710 MAINTAINER_MODE_FALSE='#'
2711 else
2712 MAINTAINER_MODE_TRUE='#'
2713 MAINTAINER_MODE_FALSE=
2714 fi
2715
2716 MAINT=$MAINTAINER_MODE_TRUE
2717
2718
2719
2720 # Initialize libtool
2721 case `pwd` in
2722 *\ * | *\ *)
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2724 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2725 esac
2726
2727
2728
2729 macro_version='2.4.2'
2730 macro_revision='1.3337'
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744 ltmain="$ac_aux_dir/ltmain.sh"
2745
2746 # Make sure we can run config.sub.
2747 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2748 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2749
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2751 $as_echo_n "checking build system type... " >&6; }
2752 if ${ac_cv_build+:} false; then :
2753 $as_echo_n "(cached) " >&6
2754 else
2755 ac_build_alias=$build_alias
2756 test "x$ac_build_alias" = x &&
2757 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2758 test "x$ac_build_alias" = x &&
2759 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2760 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2761 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2762
2763 fi
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2765 $as_echo "$ac_cv_build" >&6; }
2766 case $ac_cv_build in
2767 *-*-*) ;;
2768 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2769 esac
2770 build=$ac_cv_build
2771 ac_save_IFS=$IFS; IFS='-'
2772 set x $ac_cv_build
2773 shift
2774 build_cpu=$1
2775 build_vendor=$2
2776 shift; shift
2777 # Remember, the first character of IFS is used to create $*,
2778 # except with old shells:
2779 build_os=$*
2780 IFS=$ac_save_IFS
2781 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2782
2783
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2785 $as_echo_n "checking host system type... " >&6; }
2786 if ${ac_cv_host+:} false; then :
2787 $as_echo_n "(cached) " >&6
2788 else
2789 if test "x$host_alias" = x; then
2790 ac_cv_host=$ac_cv_build
2791 else
2792 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2793 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2794 fi
2795
2796 fi
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2798 $as_echo "$ac_cv_host" >&6; }
2799 case $ac_cv_host in
2800 *-*-*) ;;
2801 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2802 esac
2803 host=$ac_cv_host
2804 ac_save_IFS=$IFS; IFS='-'
2805 set x $ac_cv_host
2806 shift
2807 host_cpu=$1
2808 host_vendor=$2
2809 shift; shift
2810 # Remember, the first character of IFS is used to create $*,
2811 # except with old shells:
2812 host_os=$*
2813 IFS=$ac_save_IFS
2814 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2815
2816
2817 # Backslashify metacharacters that are still active within
2818 # double-quoted strings.
2819 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2820
2821 # Same as above, but do not quote variable references.
2822 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2823
2824 # Sed substitution to delay expansion of an escaped shell variable in a
2825 # double_quote_subst'ed string.
2826 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2827
2828 # Sed substitution to delay expansion of an escaped single quote.
2829 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2830
2831 # Sed substitution to avoid accidental globbing in evaled expressions
2832 no_glob_subst='s/\*/\\\*/g'
2833
2834 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2835 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2836 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2837
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2839 $as_echo_n "checking how to print strings... " >&6; }
2840 # Test print first, because it will be a builtin if present.
2841 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2842 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2843 ECHO='print -r --'
2844 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2845 ECHO='printf %s\n'
2846 else
2847 # Use this function as a fallback that always works.
2848 func_fallback_echo ()
2849 {
2850 eval 'cat <<_LTECHO_EOF
2851 $1
2852 _LTECHO_EOF'
2853 }
2854 ECHO='func_fallback_echo'
2855 fi
2856
2857 # func_echo_all arg...
2858 # Invoke $ECHO with all args, space-separated.
2859 func_echo_all ()
2860 {
2861 $ECHO ""
2862 }
2863
2864 case "$ECHO" in
2865 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2866 $as_echo "printf" >&6; } ;;
2867 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2868 $as_echo "print -r" >&6; } ;;
2869 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2870 $as_echo "cat" >&6; } ;;
2871 esac
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886 DEPDIR="${am__leading_dot}deps"
2887
2888 ac_config_commands="$ac_config_commands depfiles"
2889
2890
2891 am_make=${MAKE-make}
2892 cat > confinc << 'END'
2893 am__doit:
2894 @echo this is the am__doit target
2895 .PHONY: am__doit
2896 END
2897 # If we don't find an include directive, just comment out the code.
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2899 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2900 am__include="#"
2901 am__quote=
2902 _am_result=none
2903 # First try GNU make style include.
2904 echo "include confinc" > confmf
2905 # Ignore all kinds of additional output from `make'.
2906 case `$am_make -s -f confmf 2> /dev/null` in #(
2907 *the\ am__doit\ target*)
2908 am__include=include
2909 am__quote=
2910 _am_result=GNU
2911 ;;
2912 esac
2913 # Now try BSD make style include.
2914 if test "$am__include" = "#"; then
2915 echo '.include "confinc"' > confmf
2916 case `$am_make -s -f confmf 2> /dev/null` in #(
2917 *the\ am__doit\ target*)
2918 am__include=.include
2919 am__quote="\""
2920 _am_result=BSD
2921 ;;
2922 esac
2923 fi
2924
2925
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2927 $as_echo "$_am_result" >&6; }
2928 rm -f confinc confmf
2929
2930 # Check whether --enable-dependency-tracking was given.
2931 if test "${enable_dependency_tracking+set}" = set; then :
2932 enableval=$enable_dependency_tracking;
2933 fi
2934
2935 if test "x$enable_dependency_tracking" != xno; then
2936 am_depcomp="$ac_aux_dir/depcomp"
2937 AMDEPBACKSLASH='\'
2938 am__nodep='_no'
2939 fi
2940 if test "x$enable_dependency_tracking" != xno; then
2941 AMDEP_TRUE=
2942 AMDEP_FALSE='#'
2943 else
2944 AMDEP_TRUE='#'
2945 AMDEP_FALSE=
2946 fi
2947
2948
2949 ac_ext=c
2950 ac_cpp='$CPP $CPPFLAGS'
2951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2954 if test -n "$ac_tool_prefix"; then
2955 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2956 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958 $as_echo_n "checking for $ac_word... " >&6; }
2959 if ${ac_cv_prog_CC+:} false; then :
2960 $as_echo_n "(cached) " >&6
2961 else
2962 if test -n "$CC"; then
2963 ac_cv_prog_CC="$CC" # Let the user override the test.
2964 else
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 for as_dir in $PATH
2967 do
2968 IFS=$as_save_IFS
2969 test -z "$as_dir" && as_dir=.
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2972 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2974 break 2
2975 fi
2976 done
2977 done
2978 IFS=$as_save_IFS
2979
2980 fi
2981 fi
2982 CC=$ac_cv_prog_CC
2983 if test -n "$CC"; then
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2985 $as_echo "$CC" >&6; }
2986 else
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988 $as_echo "no" >&6; }
2989 fi
2990
2991
2992 fi
2993 if test -z "$ac_cv_prog_CC"; then
2994 ac_ct_CC=$CC
2995 # Extract the first word of "gcc", so it can be a program name with args.
2996 set dummy gcc; ac_word=$2
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998 $as_echo_n "checking for $ac_word... " >&6; }
2999 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3000 $as_echo_n "(cached) " >&6
3001 else
3002 if test -n "$ac_ct_CC"; then
3003 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3004 else
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 for as_dir in $PATH
3007 do
3008 IFS=$as_save_IFS
3009 test -z "$as_dir" && as_dir=.
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3012 ac_cv_prog_ac_ct_CC="gcc"
3013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 break 2
3015 fi
3016 done
3017 done
3018 IFS=$as_save_IFS
3019
3020 fi
3021 fi
3022 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3023 if test -n "$ac_ct_CC"; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3025 $as_echo "$ac_ct_CC" >&6; }
3026 else
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3029 fi
3030
3031 if test "x$ac_ct_CC" = x; then
3032 CC=""
3033 else
3034 case $cross_compiling:$ac_tool_warned in
3035 yes:)
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3038 ac_tool_warned=yes ;;
3039 esac
3040 CC=$ac_ct_CC
3041 fi
3042 else
3043 CC="$ac_cv_prog_CC"
3044 fi
3045
3046 if test -z "$CC"; then
3047 if test -n "$ac_tool_prefix"; then
3048 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3049 set dummy ${ac_tool_prefix}cc; ac_word=$2
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3051 $as_echo_n "checking for $ac_word... " >&6; }
3052 if ${ac_cv_prog_CC+:} false; then :
3053 $as_echo_n "(cached) " >&6
3054 else
3055 if test -n "$CC"; then
3056 ac_cv_prog_CC="$CC" # Let the user override the test.
3057 else
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059 for as_dir in $PATH
3060 do
3061 IFS=$as_save_IFS
3062 test -z "$as_dir" && as_dir=.
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3065 ac_cv_prog_CC="${ac_tool_prefix}cc"
3066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 break 2
3068 fi
3069 done
3070 done
3071 IFS=$as_save_IFS
3072
3073 fi
3074 fi
3075 CC=$ac_cv_prog_CC
3076 if test -n "$CC"; then
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3078 $as_echo "$CC" >&6; }
3079 else
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081 $as_echo "no" >&6; }
3082 fi
3083
3084
3085 fi
3086 fi
3087 if test -z "$CC"; then
3088 # Extract the first word of "cc", so it can be a program name with args.
3089 set dummy cc; ac_word=$2
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if ${ac_cv_prog_CC+:} false; then :
3093 $as_echo_n "(cached) " >&6
3094 else
3095 if test -n "$CC"; then
3096 ac_cv_prog_CC="$CC" # Let the user override the test.
3097 else
3098 ac_prog_rejected=no
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 for as_dir in $PATH
3101 do
3102 IFS=$as_save_IFS
3103 test -z "$as_dir" && as_dir=.
3104 for ac_exec_ext in '' $ac_executable_extensions; do
3105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3106 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3107 ac_prog_rejected=yes
3108 continue
3109 fi
3110 ac_cv_prog_CC="cc"
3111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112 break 2
3113 fi
3114 done
3115 done
3116 IFS=$as_save_IFS
3117
3118 if test $ac_prog_rejected = yes; then
3119 # We found a bogon in the path, so make sure we never use it.
3120 set dummy $ac_cv_prog_CC
3121 shift
3122 if test $# != 0; then
3123 # We chose a different compiler from the bogus one.
3124 # However, it has the same basename, so the bogon will be chosen
3125 # first if we set CC to just the basename; use the full file name.
3126 shift
3127 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3128 fi
3129 fi
3130 fi
3131 fi
3132 CC=$ac_cv_prog_CC
3133 if test -n "$CC"; then
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3135 $as_echo "$CC" >&6; }
3136 else
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138 $as_echo "no" >&6; }
3139 fi
3140
3141
3142 fi
3143 if test -z "$CC"; then
3144 if test -n "$ac_tool_prefix"; then
3145 for ac_prog in cl.exe
3146 do
3147 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3148 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3150 $as_echo_n "checking for $ac_word... " >&6; }
3151 if ${ac_cv_prog_CC+:} false; then :
3152 $as_echo_n "(cached) " >&6
3153 else
3154 if test -n "$CC"; then
3155 ac_cv_prog_CC="$CC" # Let the user override the test.
3156 else
3157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158 for as_dir in $PATH
3159 do
3160 IFS=$as_save_IFS
3161 test -z "$as_dir" && as_dir=.
3162 for ac_exec_ext in '' $ac_executable_extensions; do
3163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3164 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3166 break 2
3167 fi
3168 done
3169 done
3170 IFS=$as_save_IFS
3171
3172 fi
3173 fi
3174 CC=$ac_cv_prog_CC
3175 if test -n "$CC"; then
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3177 $as_echo "$CC" >&6; }
3178 else
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180 $as_echo "no" >&6; }
3181 fi
3182
3183
3184 test -n "$CC" && break
3185 done
3186 fi
3187 if test -z "$CC"; then
3188 ac_ct_CC=$CC
3189 for ac_prog in cl.exe
3190 do
3191 # Extract the first word of "$ac_prog", so it can be a program name with args.
3192 set dummy $ac_prog; ac_word=$2
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3194 $as_echo_n "checking for $ac_word... " >&6; }
3195 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3196 $as_echo_n "(cached) " >&6
3197 else
3198 if test -n "$ac_ct_CC"; then
3199 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3200 else
3201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202 for as_dir in $PATH
3203 do
3204 IFS=$as_save_IFS
3205 test -z "$as_dir" && as_dir=.
3206 for ac_exec_ext in '' $ac_executable_extensions; do
3207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3208 ac_cv_prog_ac_ct_CC="$ac_prog"
3209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3210 break 2
3211 fi
3212 done
3213 done
3214 IFS=$as_save_IFS
3215
3216 fi
3217 fi
3218 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3219 if test -n "$ac_ct_CC"; then
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3221 $as_echo "$ac_ct_CC" >&6; }
3222 else
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3224 $as_echo "no" >&6; }
3225 fi
3226
3227
3228 test -n "$ac_ct_CC" && break
3229 done
3230
3231 if test "x$ac_ct_CC" = x; then
3232 CC=""
3233 else
3234 case $cross_compiling:$ac_tool_warned in
3235 yes:)
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3238 ac_tool_warned=yes ;;
3239 esac
3240 CC=$ac_ct_CC
3241 fi
3242 fi
3243
3244 fi
3245
3246
3247 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3249 as_fn_error $? "no acceptable C compiler found in \$PATH
3250 See \`config.log' for more details" "$LINENO" 5; }
3251
3252 # Provide some information about the compiler.
3253 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3254 set X $ac_compile
3255 ac_compiler=$2
3256 for ac_option in --version -v -V -qversion; do
3257 { { ac_try="$ac_compiler $ac_option >&5"
3258 case "(($ac_try" in
3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260 *) ac_try_echo=$ac_try;;
3261 esac
3262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3263 $as_echo "$ac_try_echo"; } >&5
3264 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3265 ac_status=$?
3266 if test -s conftest.err; then
3267 sed '10a\
3268 ... rest of stderr output deleted ...
3269 10q' conftest.err >conftest.er1
3270 cat conftest.er1 >&5
3271 fi
3272 rm -f conftest.er1 conftest.err
3273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3274 test $ac_status = 0; }
3275 done
3276
3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278 /* end confdefs.h. */
3279
3280 int
3281 main ()
3282 {
3283
3284 ;
3285 return 0;
3286 }
3287 _ACEOF
3288 ac_clean_files_save=$ac_clean_files
3289 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3290 # Try to create an executable without -o first, disregard a.out.
3291 # It will help us diagnose broken compilers, and finding out an intuition
3292 # of exeext.
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3294 $as_echo_n "checking whether the C compiler works... " >&6; }
3295 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3296
3297 # The possible output files:
3298 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3299
3300 ac_rmfiles=
3301 for ac_file in $ac_files
3302 do
3303 case $ac_file in
3304 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3305 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3306 esac
3307 done
3308 rm -f $ac_rmfiles
3309
3310 if { { ac_try="$ac_link_default"
3311 case "(($ac_try" in
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3314 esac
3315 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3316 $as_echo "$ac_try_echo"; } >&5
3317 (eval "$ac_link_default") 2>&5
3318 ac_status=$?
3319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3320 test $ac_status = 0; }; then :
3321 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3322 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3323 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3324 # so that the user can short-circuit this test for compilers unknown to
3325 # Autoconf.
3326 for ac_file in $ac_files ''
3327 do
3328 test -f "$ac_file" || continue
3329 case $ac_file in
3330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3331 ;;
3332 [ab].out )
3333 # We found the default executable, but exeext='' is most
3334 # certainly right.
3335 break;;
3336 *.* )
3337 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3338 then :; else
3339 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3340 fi
3341 # We set ac_cv_exeext here because the later test for it is not
3342 # safe: cross compilers may not add the suffix if given an `-o'
3343 # argument, so we may need to know it at that point already.
3344 # Even if this section looks crufty: it has the advantage of
3345 # actually working.
3346 break;;
3347 * )
3348 break;;
3349 esac
3350 done
3351 test "$ac_cv_exeext" = no && ac_cv_exeext=
3352
3353 else
3354 ac_file=''
3355 fi
3356 if test -z "$ac_file"; then :
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3358 $as_echo "no" >&6; }
3359 $as_echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.$ac_ext >&5
3361
3362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3364 as_fn_error 77 "C compiler cannot create executables
3365 See \`config.log' for more details" "$LINENO" 5; }
3366 else
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3368 $as_echo "yes" >&6; }
3369 fi
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3371 $as_echo_n "checking for C compiler default output file name... " >&6; }
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3373 $as_echo "$ac_file" >&6; }
3374 ac_exeext=$ac_cv_exeext
3375
3376 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3377 ac_clean_files=$ac_clean_files_save
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3379 $as_echo_n "checking for suffix of executables... " >&6; }
3380 if { { ac_try="$ac_link"
3381 case "(($ac_try" in
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3384 esac
3385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3386 $as_echo "$ac_try_echo"; } >&5
3387 (eval "$ac_link") 2>&5
3388 ac_status=$?
3389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390 test $ac_status = 0; }; then :
3391 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3392 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3393 # work properly (i.e., refer to `conftest.exe'), while it won't with
3394 # `rm'.
3395 for ac_file in conftest.exe conftest conftest.*; do
3396 test -f "$ac_file" || continue
3397 case $ac_file in
3398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3399 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3400 break;;
3401 * ) break;;
3402 esac
3403 done
3404 else
3405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3407 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3408 See \`config.log' for more details" "$LINENO" 5; }
3409 fi
3410 rm -f conftest conftest$ac_cv_exeext
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3412 $as_echo "$ac_cv_exeext" >&6; }
3413
3414 rm -f conftest.$ac_ext
3415 EXEEXT=$ac_cv_exeext
3416 ac_exeext=$EXEEXT
3417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418 /* end confdefs.h. */
3419 #include <stdio.h>
3420 int
3421 main ()
3422 {
3423 FILE *f = fopen ("conftest.out", "w");
3424 return ferror (f) || fclose (f) != 0;
3425
3426 ;
3427 return 0;
3428 }
3429 _ACEOF
3430 ac_clean_files="$ac_clean_files conftest.out"
3431 # Check that the compiler produces executables we can run. If not, either
3432 # the compiler is broken, or we cross compile.
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3434 $as_echo_n "checking whether we are cross compiling... " >&6; }
3435 if test "$cross_compiling" != yes; then
3436 { { ac_try="$ac_link"
3437 case "(($ac_try" in
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3440 esac
3441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3442 $as_echo "$ac_try_echo"; } >&5
3443 (eval "$ac_link") 2>&5
3444 ac_status=$?
3445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3446 test $ac_status = 0; }
3447 if { ac_try='./conftest$ac_cv_exeext'
3448 { { case "(($ac_try" in
3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3451 esac
3452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3453 $as_echo "$ac_try_echo"; } >&5
3454 (eval "$ac_try") 2>&5
3455 ac_status=$?
3456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3457 test $ac_status = 0; }; }; then
3458 cross_compiling=no
3459 else
3460 if test "$cross_compiling" = maybe; then
3461 cross_compiling=yes
3462 else
3463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3465 as_fn_error $? "cannot run C compiled programs.
3466 If you meant to cross compile, use \`--host'.
3467 See \`config.log' for more details" "$LINENO" 5; }
3468 fi
3469 fi
3470 fi
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3472 $as_echo "$cross_compiling" >&6; }
3473
3474 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3475 ac_clean_files=$ac_clean_files_save
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3477 $as_echo_n "checking for suffix of object files... " >&6; }
3478 if ${ac_cv_objext+:} false; then :
3479 $as_echo_n "(cached) " >&6
3480 else
3481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482 /* end confdefs.h. */
3483
3484 int
3485 main ()
3486 {
3487
3488 ;
3489 return 0;
3490 }
3491 _ACEOF
3492 rm -f conftest.o conftest.obj
3493 if { { ac_try="$ac_compile"
3494 case "(($ac_try" in
3495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496 *) ac_try_echo=$ac_try;;
3497 esac
3498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3499 $as_echo "$ac_try_echo"; } >&5
3500 (eval "$ac_compile") 2>&5
3501 ac_status=$?
3502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3503 test $ac_status = 0; }; then :
3504 for ac_file in conftest.o conftest.obj conftest.*; do
3505 test -f "$ac_file" || continue;
3506 case $ac_file in
3507 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3508 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3509 break;;
3510 esac
3511 done
3512 else
3513 $as_echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3515
3516 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3518 as_fn_error $? "cannot compute suffix of object files: cannot compile
3519 See \`config.log' for more details" "$LINENO" 5; }
3520 fi
3521 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3522 fi
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3524 $as_echo "$ac_cv_objext" >&6; }
3525 OBJEXT=$ac_cv_objext
3526 ac_objext=$OBJEXT
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3528 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3529 if ${ac_cv_c_compiler_gnu+:} false; then :
3530 $as_echo_n "(cached) " >&6
3531 else
3532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3533 /* end confdefs.h. */
3534
3535 int
3536 main ()
3537 {
3538 #ifndef __GNUC__
3539 choke me
3540 #endif
3541
3542 ;
3543 return 0;
3544 }
3545 _ACEOF
3546 if ac_fn_c_try_compile "$LINENO"; then :
3547 ac_compiler_gnu=yes
3548 else
3549 ac_compiler_gnu=no
3550 fi
3551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3552 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3553
3554 fi
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3556 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3557 if test $ac_compiler_gnu = yes; then
3558 GCC=yes
3559 else
3560 GCC=
3561 fi
3562 ac_test_CFLAGS=${CFLAGS+set}
3563 ac_save_CFLAGS=$CFLAGS
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3565 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3566 if ${ac_cv_prog_cc_g+:} false; then :
3567 $as_echo_n "(cached) " >&6
3568 else
3569 ac_save_c_werror_flag=$ac_c_werror_flag
3570 ac_c_werror_flag=yes
3571 ac_cv_prog_cc_g=no
3572 CFLAGS="-g"
3573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574 /* end confdefs.h. */
3575
3576 int
3577 main ()
3578 {
3579
3580 ;
3581 return 0;
3582 }
3583 _ACEOF
3584 if ac_fn_c_try_compile "$LINENO"; then :
3585 ac_cv_prog_cc_g=yes
3586 else
3587 CFLAGS=""
3588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589 /* end confdefs.h. */
3590
3591 int
3592 main ()
3593 {
3594
3595 ;
3596 return 0;
3597 }
3598 _ACEOF
3599 if ac_fn_c_try_compile "$LINENO"; then :
3600
3601 else
3602 ac_c_werror_flag=$ac_save_c_werror_flag
3603 CFLAGS="-g"
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3606
3607 int
3608 main ()
3609 {
3610
3611 ;
3612 return 0;
3613 }
3614 _ACEOF
3615 if ac_fn_c_try_compile "$LINENO"; then :
3616 ac_cv_prog_cc_g=yes
3617 fi
3618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3619 fi
3620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3621 fi
3622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3623 ac_c_werror_flag=$ac_save_c_werror_flag
3624 fi
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3626 $as_echo "$ac_cv_prog_cc_g" >&6; }
3627 if test "$ac_test_CFLAGS" = set; then
3628 CFLAGS=$ac_save_CFLAGS
3629 elif test $ac_cv_prog_cc_g = yes; then
3630 if test "$GCC" = yes; then
3631 CFLAGS="-g -O2"
3632 else
3633 CFLAGS="-g"
3634 fi
3635 else
3636 if test "$GCC" = yes; then
3637 CFLAGS="-O2"
3638 else
3639 CFLAGS=
3640 fi
3641 fi
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3643 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3644 if ${ac_cv_prog_cc_c89+:} false; then :
3645 $as_echo_n "(cached) " >&6
3646 else
3647 ac_cv_prog_cc_c89=no
3648 ac_save_CC=$CC
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h. */
3651 #include <stdarg.h>
3652 #include <stdio.h>
3653 #include <sys/types.h>
3654 #include <sys/stat.h>
3655 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3656 struct buf { int x; };
3657 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3658 static char *e (p, i)
3659 char **p;
3660 int i;
3661 {
3662 return p[i];
3663 }
3664 static char *f (char * (*g) (char **, int), char **p, ...)
3665 {
3666 char *s;
3667 va_list v;
3668 va_start (v,p);
3669 s = g (p, va_arg (v,int));
3670 va_end (v);
3671 return s;
3672 }
3673
3674 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3675 function prototypes and stuff, but not '\xHH' hex character constants.
3676 These don't provoke an error unfortunately, instead are silently treated
3677 as 'x'. The following induces an error, until -std is added to get
3678 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3679 array size at least. It's necessary to write '\x00'==0 to get something
3680 that's true only with -std. */
3681 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3682
3683 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3684 inside strings and character constants. */
3685 #define FOO(x) 'x'
3686 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3687
3688 int test (int i, double x);
3689 struct s1 {int (*f) (int a);};
3690 struct s2 {int (*f) (double a);};
3691 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3692 int argc;
3693 char **argv;
3694 int
3695 main ()
3696 {
3697 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3698 ;
3699 return 0;
3700 }
3701 _ACEOF
3702 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3703 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3704 do
3705 CC="$ac_save_CC $ac_arg"
3706 if ac_fn_c_try_compile "$LINENO"; then :
3707 ac_cv_prog_cc_c89=$ac_arg
3708 fi
3709 rm -f core conftest.err conftest.$ac_objext
3710 test "x$ac_cv_prog_cc_c89" != "xno" && break
3711 done
3712 rm -f conftest.$ac_ext
3713 CC=$ac_save_CC
3714
3715 fi
3716 # AC_CACHE_VAL
3717 case "x$ac_cv_prog_cc_c89" in
3718 x)
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3720 $as_echo "none needed" >&6; } ;;
3721 xno)
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3723 $as_echo "unsupported" >&6; } ;;
3724 *)
3725 CC="$CC $ac_cv_prog_cc_c89"
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3727 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3728 esac
3729 if test "x$ac_cv_prog_cc_c89" != xno; then :
3730
3731 fi
3732
3733 ac_ext=c
3734 ac_cpp='$CPP $CPPFLAGS'
3735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3738
3739 depcc="$CC" am_compiler_list=
3740
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3742 $as_echo_n "checking dependency style of $depcc... " >&6; }
3743 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3744 $as_echo_n "(cached) " >&6
3745 else
3746 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3747 # We make a subdir and do the tests there. Otherwise we can end up
3748 # making bogus files that we don't know about and never remove. For
3749 # instance it was reported that on HP-UX the gcc test will end up
3750 # making a dummy file named `D' -- because `-MD' means `put the output
3751 # in D'.
3752 rm -rf conftest.dir
3753 mkdir conftest.dir
3754 # Copy depcomp to subdir because otherwise we won't find it if we're
3755 # using a relative directory.
3756 cp "$am_depcomp" conftest.dir
3757 cd conftest.dir
3758 # We will build objects and dependencies in a subdirectory because
3759 # it helps to detect inapplicable dependency modes. For instance
3760 # both Tru64's cc and ICC support -MD to output dependencies as a
3761 # side effect of compilation, but ICC will put the dependencies in
3762 # the current directory while Tru64 will put them in the object
3763 # directory.
3764 mkdir sub
3765
3766 am_cv_CC_dependencies_compiler_type=none
3767 if test "$am_compiler_list" = ""; then
3768 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3769 fi
3770 am__universal=false
3771 case " $depcc " in #(
3772 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3773 esac
3774
3775 for depmode in $am_compiler_list; do
3776 # Setup a source with many dependencies, because some compilers
3777 # like to wrap large dependency lists on column 80 (with \), and
3778 # we should not choose a depcomp mode which is confused by this.
3779 #
3780 # We need to recreate these files for each test, as the compiler may
3781 # overwrite some of them when testing with obscure command lines.
3782 # This happens at least with the AIX C compiler.
3783 : > sub/conftest.c
3784 for i in 1 2 3 4 5 6; do
3785 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3786 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3787 # Solaris 8's {/usr,}/bin/sh.
3788 touch sub/conftst$i.h
3789 done
3790 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3791
3792 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3793 # mode. It turns out that the SunPro C++ compiler does not properly
3794 # handle `-M -o', and we need to detect this. Also, some Intel
3795 # versions had trouble with output in subdirs
3796 am__obj=sub/conftest.${OBJEXT-o}
3797 am__minus_obj="-o $am__obj"
3798 case $depmode in
3799 gcc)
3800 # This depmode causes a compiler race in universal mode.
3801 test "$am__universal" = false || continue
3802 ;;
3803 nosideeffect)
3804 # after this tag, mechanisms are not by side-effect, so they'll
3805 # only be used when explicitly requested
3806 if test "x$enable_dependency_tracking" = xyes; then
3807 continue
3808 else
3809 break
3810 fi
3811 ;;
3812 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3813 # This compiler won't grok `-c -o', but also, the minuso test has
3814 # not run yet. These depmodes are late enough in the game, and
3815 # so weak that their functioning should not be impacted.
3816 am__obj=conftest.${OBJEXT-o}
3817 am__minus_obj=
3818 ;;
3819 none) break ;;
3820 esac
3821 if depmode=$depmode \
3822 source=sub/conftest.c object=$am__obj \
3823 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3824 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3825 >/dev/null 2>conftest.err &&
3826 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3827 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3828 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3829 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3830 # icc doesn't choke on unknown options, it will just issue warnings
3831 # or remarks (even with -Werror). So we grep stderr for any message
3832 # that says an option was ignored or not supported.
3833 # When given -MP, icc 7.0 and 7.1 complain thusly:
3834 # icc: Command line warning: ignoring option '-M'; no argument required
3835 # The diagnosis changed in icc 8.0:
3836 # icc: Command line remark: option '-MP' not supported
3837 if (grep 'ignoring option' conftest.err ||
3838 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3839 am_cv_CC_dependencies_compiler_type=$depmode
3840 break
3841 fi
3842 fi
3843 done
3844
3845 cd ..
3846 rm -rf conftest.dir
3847 else
3848 am_cv_CC_dependencies_compiler_type=none
3849 fi
3850
3851 fi
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3853 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3854 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3855
3856 if
3857 test "x$enable_dependency_tracking" != xno \
3858 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3859 am__fastdepCC_TRUE=
3860 am__fastdepCC_FALSE='#'
3861 else
3862 am__fastdepCC_TRUE='#'
3863 am__fastdepCC_FALSE=
3864 fi
3865
3866
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3868 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3869 if ${ac_cv_path_SED+:} false; then :
3870 $as_echo_n "(cached) " >&6
3871 else
3872 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3873 for ac_i in 1 2 3 4 5 6 7; do
3874 ac_script="$ac_script$as_nl$ac_script"
3875 done
3876 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3877 { ac_script=; unset ac_script;}
3878 if test -z "$SED"; then
3879 ac_path_SED_found=false
3880 # Loop through the user's path and test for each of PROGNAME-LIST
3881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882 for as_dir in $PATH
3883 do
3884 IFS=$as_save_IFS
3885 test -z "$as_dir" && as_dir=.
3886 for ac_prog in sed gsed; do
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3889 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3890 # Check for GNU ac_path_SED and select it if it is found.
3891 # Check for GNU $ac_path_SED
3892 case `"$ac_path_SED" --version 2>&1` in
3893 *GNU*)
3894 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3895 *)
3896 ac_count=0
3897 $as_echo_n 0123456789 >"conftest.in"
3898 while :
3899 do
3900 cat "conftest.in" "conftest.in" >"conftest.tmp"
3901 mv "conftest.tmp" "conftest.in"
3902 cp "conftest.in" "conftest.nl"
3903 $as_echo '' >> "conftest.nl"
3904 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3905 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3906 as_fn_arith $ac_count + 1 && ac_count=$as_val
3907 if test $ac_count -gt ${ac_path_SED_max-0}; then
3908 # Best one so far, save it but keep looking for a better one
3909 ac_cv_path_SED="$ac_path_SED"
3910 ac_path_SED_max=$ac_count
3911 fi
3912 # 10*(2^10) chars as input seems more than enough
3913 test $ac_count -gt 10 && break
3914 done
3915 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3916 esac
3917
3918 $ac_path_SED_found && break 3
3919 done
3920 done
3921 done
3922 IFS=$as_save_IFS
3923 if test -z "$ac_cv_path_SED"; then
3924 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3925 fi
3926 else
3927 ac_cv_path_SED=$SED
3928 fi
3929
3930 fi
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3932 $as_echo "$ac_cv_path_SED" >&6; }
3933 SED="$ac_cv_path_SED"
3934 rm -f conftest.sed
3935
3936 test -z "$SED" && SED=sed
3937 Xsed="$SED -e 1s/^X//"
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3950 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3951 if ${ac_cv_path_GREP+:} false; then :
3952 $as_echo_n "(cached) " >&6
3953 else
3954 if test -z "$GREP"; then
3955 ac_path_GREP_found=false
3956 # Loop through the user's path and test for each of PROGNAME-LIST
3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3959 do
3960 IFS=$as_save_IFS
3961 test -z "$as_dir" && as_dir=.
3962 for ac_prog in grep ggrep; do
3963 for ac_exec_ext in '' $ac_executable_extensions; do
3964 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3965 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3966 # Check for GNU ac_path_GREP and select it if it is found.
3967 # Check for GNU $ac_path_GREP
3968 case `"$ac_path_GREP" --version 2>&1` in
3969 *GNU*)
3970 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3971 *)
3972 ac_count=0
3973 $as_echo_n 0123456789 >"conftest.in"
3974 while :
3975 do
3976 cat "conftest.in" "conftest.in" >"conftest.tmp"
3977 mv "conftest.tmp" "conftest.in"
3978 cp "conftest.in" "conftest.nl"
3979 $as_echo 'GREP' >> "conftest.nl"
3980 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3981 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3982 as_fn_arith $ac_count + 1 && ac_count=$as_val
3983 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3984 # Best one so far, save it but keep looking for a better one
3985 ac_cv_path_GREP="$ac_path_GREP"
3986 ac_path_GREP_max=$ac_count
3987 fi
3988 # 10*(2^10) chars as input seems more than enough
3989 test $ac_count -gt 10 && break
3990 done
3991 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3992 esac
3993
3994 $ac_path_GREP_found && break 3
3995 done
3996 done
3997 done
3998 IFS=$as_save_IFS
3999 if test -z "$ac_cv_path_GREP"; then
4000 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4001 fi
4002 else
4003 ac_cv_path_GREP=$GREP
4004 fi
4005
4006 fi
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4008 $as_echo "$ac_cv_path_GREP" >&6; }
4009 GREP="$ac_cv_path_GREP"
4010
4011
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4013 $as_echo_n "checking for egrep... " >&6; }
4014 if ${ac_cv_path_EGREP+:} false; then :
4015 $as_echo_n "(cached) " >&6
4016 else
4017 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4018 then ac_cv_path_EGREP="$GREP -E"
4019 else
4020 if test -z "$EGREP"; then
4021 ac_path_EGREP_found=false
4022 # Loop through the user's path and test for each of PROGNAME-LIST
4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4025 do
4026 IFS=$as_save_IFS
4027 test -z "$as_dir" && as_dir=.
4028 for ac_prog in egrep; do
4029 for ac_exec_ext in '' $ac_executable_extensions; do
4030 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4031 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4032 # Check for GNU ac_path_EGREP and select it if it is found.
4033 # Check for GNU $ac_path_EGREP
4034 case `"$ac_path_EGREP" --version 2>&1` in
4035 *GNU*)
4036 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4037 *)
4038 ac_count=0
4039 $as_echo_n 0123456789 >"conftest.in"
4040 while :
4041 do
4042 cat "conftest.in" "conftest.in" >"conftest.tmp"
4043 mv "conftest.tmp" "conftest.in"
4044 cp "conftest.in" "conftest.nl"
4045 $as_echo 'EGREP' >> "conftest.nl"
4046 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4047 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4048 as_fn_arith $ac_count + 1 && ac_count=$as_val
4049 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4050 # Best one so far, save it but keep looking for a better one
4051 ac_cv_path_EGREP="$ac_path_EGREP"
4052 ac_path_EGREP_max=$ac_count
4053 fi
4054 # 10*(2^10) chars as input seems more than enough
4055 test $ac_count -gt 10 && break
4056 done
4057 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4058 esac
4059
4060 $ac_path_EGREP_found && break 3
4061 done
4062 done
4063 done
4064 IFS=$as_save_IFS
4065 if test -z "$ac_cv_path_EGREP"; then
4066 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4067 fi
4068 else
4069 ac_cv_path_EGREP=$EGREP
4070 fi
4071
4072 fi
4073 fi
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4075 $as_echo "$ac_cv_path_EGREP" >&6; }
4076 EGREP="$ac_cv_path_EGREP"
4077
4078
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4080 $as_echo_n "checking for fgrep... " >&6; }
4081 if ${ac_cv_path_FGREP+:} false; then :
4082 $as_echo_n "(cached) " >&6
4083 else
4084 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4085 then ac_cv_path_FGREP="$GREP -F"
4086 else
4087 if test -z "$FGREP"; then
4088 ac_path_FGREP_found=false
4089 # Loop through the user's path and test for each of PROGNAME-LIST
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4092 do
4093 IFS=$as_save_IFS
4094 test -z "$as_dir" && as_dir=.
4095 for ac_prog in fgrep; do
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4098 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4099 # Check for GNU ac_path_FGREP and select it if it is found.
4100 # Check for GNU $ac_path_FGREP
4101 case `"$ac_path_FGREP" --version 2>&1` in
4102 *GNU*)
4103 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4104 *)
4105 ac_count=0
4106 $as_echo_n 0123456789 >"conftest.in"
4107 while :
4108 do
4109 cat "conftest.in" "conftest.in" >"conftest.tmp"
4110 mv "conftest.tmp" "conftest.in"
4111 cp "conftest.in" "conftest.nl"
4112 $as_echo 'FGREP' >> "conftest.nl"
4113 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4114 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4115 as_fn_arith $ac_count + 1 && ac_count=$as_val
4116 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4117 # Best one so far, save it but keep looking for a better one
4118 ac_cv_path_FGREP="$ac_path_FGREP"
4119 ac_path_FGREP_max=$ac_count
4120 fi
4121 # 10*(2^10) chars as input seems more than enough
4122 test $ac_count -gt 10 && break
4123 done
4124 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4125 esac
4126
4127 $ac_path_FGREP_found && break 3
4128 done
4129 done
4130 done
4131 IFS=$as_save_IFS
4132 if test -z "$ac_cv_path_FGREP"; then
4133 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4134 fi
4135 else
4136 ac_cv_path_FGREP=$FGREP
4137 fi
4138
4139 fi
4140 fi
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4142 $as_echo "$ac_cv_path_FGREP" >&6; }
4143 FGREP="$ac_cv_path_FGREP"
4144
4145
4146 test -z "$GREP" && GREP=grep
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166 # Check whether --with-gnu-ld was given.
4167 if test "${with_gnu_ld+set}" = set; then :
4168 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4169 else
4170 with_gnu_ld=no
4171 fi
4172
4173 ac_prog=ld
4174 if test "$GCC" = yes; then
4175 # Check if gcc -print-prog-name=ld gives a path.
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4177 $as_echo_n "checking for ld used by $CC... " >&6; }
4178 case $host in
4179 *-*-mingw*)
4180 # gcc leaves a trailing carriage return which upsets mingw
4181 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4182 *)
4183 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4184 esac
4185 case $ac_prog in
4186 # Accept absolute paths.
4187 [\\/]* | ?:[\\/]*)
4188 re_direlt='/[^/][^/]*/\.\./'
4189 # Canonicalize the pathname of ld
4190 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4191 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4192 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4193 done
4194 test -z "$LD" && LD="$ac_prog"
4195 ;;
4196 "")
4197 # If it fails, then pretend we aren't using GCC.
4198 ac_prog=ld
4199 ;;
4200 *)
4201 # If it is relative, then search for the first ld in PATH.
4202 with_gnu_ld=unknown
4203 ;;
4204 esac
4205 elif test "$with_gnu_ld" = yes; then
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4207 $as_echo_n "checking for GNU ld... " >&6; }
4208 else
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4210 $as_echo_n "checking for non-GNU ld... " >&6; }
4211 fi
4212 if ${lt_cv_path_LD+:} false; then :
4213 $as_echo_n "(cached) " >&6
4214 else
4215 if test -z "$LD"; then
4216 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4217 for ac_dir in $PATH; do
4218 IFS="$lt_save_ifs"
4219 test -z "$ac_dir" && ac_dir=.
4220 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4221 lt_cv_path_LD="$ac_dir/$ac_prog"
4222 # Check to see if the program is GNU ld. I'd rather use --version,
4223 # but apparently some variants of GNU ld only accept -v.
4224 # Break only if it was the GNU/non-GNU ld that we prefer.
4225 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4226 *GNU* | *'with BFD'*)
4227 test "$with_gnu_ld" != no && break
4228 ;;
4229 *)
4230 test "$with_gnu_ld" != yes && break
4231 ;;
4232 esac
4233 fi
4234 done
4235 IFS="$lt_save_ifs"
4236 else
4237 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4238 fi
4239 fi
4240
4241 LD="$lt_cv_path_LD"
4242 if test -n "$LD"; then
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4244 $as_echo "$LD" >&6; }
4245 else
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4247 $as_echo "no" >&6; }
4248 fi
4249 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4251 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4252 if ${lt_cv_prog_gnu_ld+:} false; then :
4253 $as_echo_n "(cached) " >&6
4254 else
4255 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4256 case `$LD -v 2>&1 </dev/null` in
4257 *GNU* | *'with BFD'*)
4258 lt_cv_prog_gnu_ld=yes
4259 ;;
4260 *)
4261 lt_cv_prog_gnu_ld=no
4262 ;;
4263 esac
4264 fi
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4266 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4267 with_gnu_ld=$lt_cv_prog_gnu_ld
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4278 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4279 if ${lt_cv_path_NM+:} false; then :
4280 $as_echo_n "(cached) " >&6
4281 else
4282 if test -n "$NM"; then
4283 # Let the user override the test.
4284 lt_cv_path_NM="$NM"
4285 else
4286 lt_nm_to_check="${ac_tool_prefix}nm"
4287 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4288 lt_nm_to_check="$lt_nm_to_check nm"
4289 fi
4290 for lt_tmp_nm in $lt_nm_to_check; do
4291 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4292 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4293 IFS="$lt_save_ifs"
4294 test -z "$ac_dir" && ac_dir=.
4295 tmp_nm="$ac_dir/$lt_tmp_nm"
4296 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4297 # Check to see if the nm accepts a BSD-compat flag.
4298 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4299 # nm: unknown option "B" ignored
4300 # Tru64's nm complains that /dev/null is an invalid object file
4301 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4302 */dev/null* | *'Invalid file or object type'*)
4303 lt_cv_path_NM="$tmp_nm -B"
4304 break
4305 ;;
4306 *)
4307 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4308 */dev/null*)
4309 lt_cv_path_NM="$tmp_nm -p"
4310 break
4311 ;;
4312 *)
4313 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4314 continue # so that we can try to find one that supports BSD flags
4315 ;;
4316 esac
4317 ;;
4318 esac
4319 fi
4320 done
4321 IFS="$lt_save_ifs"
4322 done
4323 : ${lt_cv_path_NM=no}
4324 fi
4325 fi
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4327 $as_echo "$lt_cv_path_NM" >&6; }
4328 if test "$lt_cv_path_NM" != "no"; then
4329 NM="$lt_cv_path_NM"
4330 else
4331 # Didn't find any BSD compatible name lister, look for dumpbin.
4332 if test -n "$DUMPBIN"; then :
4333 # Let the user override the test.
4334 else
4335 if test -n "$ac_tool_prefix"; then
4336 for ac_prog in dumpbin "link -dump"
4337 do
4338 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4339 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4341 $as_echo_n "checking for $ac_word... " >&6; }
4342 if ${ac_cv_prog_DUMPBIN+:} false; then :
4343 $as_echo_n "(cached) " >&6
4344 else
4345 if test -n "$DUMPBIN"; then
4346 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4347 else
4348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349 for as_dir in $PATH
4350 do
4351 IFS=$as_save_IFS
4352 test -z "$as_dir" && as_dir=.
4353 for ac_exec_ext in '' $ac_executable_extensions; do
4354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4355 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4357 break 2
4358 fi
4359 done
4360 done
4361 IFS=$as_save_IFS
4362
4363 fi
4364 fi
4365 DUMPBIN=$ac_cv_prog_DUMPBIN
4366 if test -n "$DUMPBIN"; then
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4368 $as_echo "$DUMPBIN" >&6; }
4369 else
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4371 $as_echo "no" >&6; }
4372 fi
4373
4374
4375 test -n "$DUMPBIN" && break
4376 done
4377 fi
4378 if test -z "$DUMPBIN"; then
4379 ac_ct_DUMPBIN=$DUMPBIN
4380 for ac_prog in dumpbin "link -dump"
4381 do
4382 # Extract the first word of "$ac_prog", so it can be a program name with args.
4383 set dummy $ac_prog; ac_word=$2
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4385 $as_echo_n "checking for $ac_word... " >&6; }
4386 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4387 $as_echo_n "(cached) " >&6
4388 else
4389 if test -n "$ac_ct_DUMPBIN"; then
4390 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4391 else
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 for as_dir in $PATH
4394 do
4395 IFS=$as_save_IFS
4396 test -z "$as_dir" && as_dir=.
4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4399 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4401 break 2
4402 fi
4403 done
4404 done
4405 IFS=$as_save_IFS
4406
4407 fi
4408 fi
4409 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4410 if test -n "$ac_ct_DUMPBIN"; then
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4412 $as_echo "$ac_ct_DUMPBIN" >&6; }
4413 else
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4415 $as_echo "no" >&6; }
4416 fi
4417
4418
4419 test -n "$ac_ct_DUMPBIN" && break
4420 done
4421
4422 if test "x$ac_ct_DUMPBIN" = x; then
4423 DUMPBIN=":"
4424 else
4425 case $cross_compiling:$ac_tool_warned in
4426 yes:)
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4429 ac_tool_warned=yes ;;
4430 esac
4431 DUMPBIN=$ac_ct_DUMPBIN
4432 fi
4433 fi
4434
4435 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4436 *COFF*)
4437 DUMPBIN="$DUMPBIN -symbols"
4438 ;;
4439 *)
4440 DUMPBIN=:
4441 ;;
4442 esac
4443 fi
4444
4445 if test "$DUMPBIN" != ":"; then
4446 NM="$DUMPBIN"
4447 fi
4448 fi
4449 test -z "$NM" && NM=nm
4450
4451
4452
4453
4454
4455
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4457 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4458 if ${lt_cv_nm_interface+:} false; then :
4459 $as_echo_n "(cached) " >&6
4460 else
4461 lt_cv_nm_interface="BSD nm"
4462 echo "int some_variable = 0;" > conftest.$ac_ext
4463 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4464 (eval "$ac_compile" 2>conftest.err)
4465 cat conftest.err >&5
4466 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4467 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4468 cat conftest.err >&5
4469 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4470 cat conftest.out >&5
4471 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4472 lt_cv_nm_interface="MS dumpbin"
4473 fi
4474 rm -f conftest*
4475 fi
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4477 $as_echo "$lt_cv_nm_interface" >&6; }
4478
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4480 $as_echo_n "checking whether ln -s works... " >&6; }
4481 LN_S=$as_ln_s
4482 if test "$LN_S" = "ln -s"; then
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4484 $as_echo "yes" >&6; }
4485 else
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4487 $as_echo "no, using $LN_S" >&6; }
4488 fi
4489
4490 # find the maximum length of command line arguments
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4492 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4493 if ${lt_cv_sys_max_cmd_len+:} false; then :
4494 $as_echo_n "(cached) " >&6
4495 else
4496 i=0
4497 teststring="ABCD"
4498
4499 case $build_os in
4500 msdosdjgpp*)
4501 # On DJGPP, this test can blow up pretty badly due to problems in libc
4502 # (any single argument exceeding 2000 bytes causes a buffer overrun
4503 # during glob expansion). Even if it were fixed, the result of this
4504 # check would be larger than it should be.
4505 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4506 ;;
4507
4508 gnu*)
4509 # Under GNU Hurd, this test is not required because there is
4510 # no limit to the length of command line arguments.
4511 # Libtool will interpret -1 as no limit whatsoever
4512 lt_cv_sys_max_cmd_len=-1;
4513 ;;
4514
4515 cygwin* | mingw* | cegcc*)
4516 # On Win9x/ME, this test blows up -- it succeeds, but takes
4517 # about 5 minutes as the teststring grows exponentially.
4518 # Worse, since 9x/ME are not pre-emptively multitasking,
4519 # you end up with a "frozen" computer, even though with patience
4520 # the test eventually succeeds (with a max line length of 256k).
4521 # Instead, let's just punt: use the minimum linelength reported by
4522 # all of the supported platforms: 8192 (on NT/2K/XP).
4523 lt_cv_sys_max_cmd_len=8192;
4524 ;;
4525
4526 mint*)
4527 # On MiNT this can take a long time and run out of memory.
4528 lt_cv_sys_max_cmd_len=8192;
4529 ;;
4530
4531 amigaos*)
4532 # On AmigaOS with pdksh, this test takes hours, literally.
4533 # So we just punt and use a minimum line length of 8192.
4534 lt_cv_sys_max_cmd_len=8192;
4535 ;;
4536
4537 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4538 # This has been around since 386BSD, at least. Likely further.
4539 if test -x /sbin/sysctl; then
4540 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4541 elif test -x /usr/sbin/sysctl; then
4542 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4543 else
4544 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4545 fi
4546 # And add a safety zone
4547 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4548 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4549 ;;
4550
4551 interix*)
4552 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4553 lt_cv_sys_max_cmd_len=196608
4554 ;;
4555
4556 os2*)
4557 # The test takes a long time on OS/2.
4558 lt_cv_sys_max_cmd_len=8192
4559 ;;
4560
4561 osf*)
4562 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4563 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4564 # nice to cause kernel panics so lets avoid the loop below.
4565 # First set a reasonable default.
4566 lt_cv_sys_max_cmd_len=16384
4567 #
4568 if test -x /sbin/sysconfig; then
4569 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4570 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4571 esac
4572 fi
4573 ;;
4574 sco3.2v5*)
4575 lt_cv_sys_max_cmd_len=102400
4576 ;;
4577 sysv5* | sco5v6* | sysv4.2uw2*)
4578 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4579 if test -n "$kargmax"; then
4580 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4581 else
4582 lt_cv_sys_max_cmd_len=32768
4583 fi
4584 ;;
4585 *)
4586 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4587 if test -n "$lt_cv_sys_max_cmd_len"; then
4588 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4589 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4590 else
4591 # Make teststring a little bigger before we do anything with it.
4592 # a 1K string should be a reasonable start.
4593 for i in 1 2 3 4 5 6 7 8 ; do
4594 teststring=$teststring$teststring
4595 done
4596 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4597 # If test is not a shell built-in, we'll probably end up computing a
4598 # maximum length that is only half of the actual maximum length, but
4599 # we can't tell.
4600 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4601 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4602 test $i != 17 # 1/2 MB should be enough
4603 do
4604 i=`expr $i + 1`
4605 teststring=$teststring$teststring
4606 done
4607 # Only check the string length outside the loop.
4608 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4609 teststring=
4610 # Add a significant safety factor because C++ compilers can tack on
4611 # massive amounts of additional arguments before passing them to the
4612 # linker. It appears as though 1/2 is a usable value.
4613 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4614 fi
4615 ;;
4616 esac
4617
4618 fi
4619
4620 if test -n $lt_cv_sys_max_cmd_len ; then
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4622 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4623 else
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4625 $as_echo "none" >&6; }
4626 fi
4627 max_cmd_len=$lt_cv_sys_max_cmd_len
4628
4629
4630
4631
4632
4633
4634 : ${CP="cp -f"}
4635 : ${MV="mv -f"}
4636 : ${RM="rm -f"}
4637
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4639 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4640 # Try some XSI features
4641 xsi_shell=no
4642 ( _lt_dummy="a/b/c"
4643 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4644 = c,a/b,b/c, \
4645 && eval 'test $(( 1 + 1 )) -eq 2 \
4646 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4647 && xsi_shell=yes
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4649 $as_echo "$xsi_shell" >&6; }
4650
4651
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4653 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4654 lt_shell_append=no
4655 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4656 >/dev/null 2>&1 \
4657 && lt_shell_append=yes
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4659 $as_echo "$lt_shell_append" >&6; }
4660
4661
4662 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4663 lt_unset=unset
4664 else
4665 lt_unset=false
4666 fi
4667
4668
4669
4670
4671
4672 # test EBCDIC or ASCII
4673 case `echo X|tr X '\101'` in
4674 A) # ASCII based system
4675 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4676 lt_SP2NL='tr \040 \012'
4677 lt_NL2SP='tr \015\012 \040\040'
4678 ;;
4679 *) # EBCDIC based system
4680 lt_SP2NL='tr \100 \n'
4681 lt_NL2SP='tr \r\n \100\100'
4682 ;;
4683 esac
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4694 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4695 if ${lt_cv_to_host_file_cmd+:} false; then :
4696 $as_echo_n "(cached) " >&6
4697 else
4698 case $host in
4699 *-*-mingw* )
4700 case $build in
4701 *-*-mingw* ) # actually msys
4702 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4703 ;;
4704 *-*-cygwin* )
4705 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4706 ;;
4707 * ) # otherwise, assume *nix
4708 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4709 ;;
4710 esac
4711 ;;
4712 *-*-cygwin* )
4713 case $build in
4714 *-*-mingw* ) # actually msys
4715 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4716 ;;
4717 *-*-cygwin* )
4718 lt_cv_to_host_file_cmd=func_convert_file_noop
4719 ;;
4720 * ) # otherwise, assume *nix
4721 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4722 ;;
4723 esac
4724 ;;
4725 * ) # unhandled hosts (and "normal" native builds)
4726 lt_cv_to_host_file_cmd=func_convert_file_noop
4727 ;;
4728 esac
4729
4730 fi
4731
4732 to_host_file_cmd=$lt_cv_to_host_file_cmd
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4734 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4735
4736
4737
4738
4739
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4741 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4742 if ${lt_cv_to_tool_file_cmd+:} false; then :
4743 $as_echo_n "(cached) " >&6
4744 else
4745 #assume ordinary cross tools, or native build.
4746 lt_cv_to_tool_file_cmd=func_convert_file_noop
4747 case $host in
4748 *-*-mingw* )
4749 case $build in
4750 *-*-mingw* ) # actually msys
4751 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4752 ;;
4753 esac
4754 ;;
4755 esac
4756
4757 fi
4758
4759 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4761 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4762
4763
4764
4765
4766
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4768 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4769 if ${lt_cv_ld_reload_flag+:} false; then :
4770 $as_echo_n "(cached) " >&6
4771 else
4772 lt_cv_ld_reload_flag='-r'
4773 fi
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4775 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4776 reload_flag=$lt_cv_ld_reload_flag
4777 case $reload_flag in
4778 "" | " "*) ;;
4779 *) reload_flag=" $reload_flag" ;;
4780 esac
4781 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4782 case $host_os in
4783 cygwin* | mingw* | pw32* | cegcc*)
4784 if test "$GCC" != yes; then
4785 reload_cmds=false
4786 fi
4787 ;;
4788 darwin*)
4789 if test "$GCC" = yes; then
4790 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4791 else
4792 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4793 fi
4794 ;;
4795 esac
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805 if test -n "$ac_tool_prefix"; then
4806 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4807 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4809 $as_echo_n "checking for $ac_word... " >&6; }
4810 if ${ac_cv_prog_OBJDUMP+:} false; then :
4811 $as_echo_n "(cached) " >&6
4812 else
4813 if test -n "$OBJDUMP"; then
4814 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4815 else
4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 for as_dir in $PATH
4818 do
4819 IFS=$as_save_IFS
4820 test -z "$as_dir" && as_dir=.
4821 for ac_exec_ext in '' $ac_executable_extensions; do
4822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4823 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4825 break 2
4826 fi
4827 done
4828 done
4829 IFS=$as_save_IFS
4830
4831 fi
4832 fi
4833 OBJDUMP=$ac_cv_prog_OBJDUMP
4834 if test -n "$OBJDUMP"; then
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4836 $as_echo "$OBJDUMP" >&6; }
4837 else
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4839 $as_echo "no" >&6; }
4840 fi
4841
4842
4843 fi
4844 if test -z "$ac_cv_prog_OBJDUMP"; then
4845 ac_ct_OBJDUMP=$OBJDUMP
4846 # Extract the first word of "objdump", so it can be a program name with args.
4847 set dummy objdump; ac_word=$2
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4849 $as_echo_n "checking for $ac_word... " >&6; }
4850 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4851 $as_echo_n "(cached) " >&6
4852 else
4853 if test -n "$ac_ct_OBJDUMP"; then
4854 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4855 else
4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 for as_dir in $PATH
4858 do
4859 IFS=$as_save_IFS
4860 test -z "$as_dir" && as_dir=.
4861 for ac_exec_ext in '' $ac_executable_extensions; do
4862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4863 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4865 break 2
4866 fi
4867 done
4868 done
4869 IFS=$as_save_IFS
4870
4871 fi
4872 fi
4873 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4874 if test -n "$ac_ct_OBJDUMP"; then
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4876 $as_echo "$ac_ct_OBJDUMP" >&6; }
4877 else
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4879 $as_echo "no" >&6; }
4880 fi
4881
4882 if test "x$ac_ct_OBJDUMP" = x; then
4883 OBJDUMP="false"
4884 else
4885 case $cross_compiling:$ac_tool_warned in
4886 yes:)
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4889 ac_tool_warned=yes ;;
4890 esac
4891 OBJDUMP=$ac_ct_OBJDUMP
4892 fi
4893 else
4894 OBJDUMP="$ac_cv_prog_OBJDUMP"
4895 fi
4896
4897 test -z "$OBJDUMP" && OBJDUMP=objdump
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4908 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4909 if ${lt_cv_deplibs_check_method+:} false; then :
4910 $as_echo_n "(cached) " >&6
4911 else
4912 lt_cv_file_magic_cmd='$MAGIC_CMD'
4913 lt_cv_file_magic_test_file=
4914 lt_cv_deplibs_check_method='unknown'
4915 # Need to set the preceding variable on all platforms that support
4916 # interlibrary dependencies.
4917 # 'none' -- dependencies not supported.
4918 # `unknown' -- same as none, but documents that we really don't know.
4919 # 'pass_all' -- all dependencies passed with no checks.
4920 # 'test_compile' -- check by making test program.
4921 # 'file_magic [[regex]]' -- check by looking for files in library path
4922 # which responds to the $file_magic_cmd with a given extended regex.
4923 # If you have `file' or equivalent on your system and you're not sure
4924 # whether `pass_all' will *always* work, you probably want this one.
4925
4926 case $host_os in
4927 aix[4-9]*)
4928 lt_cv_deplibs_check_method=pass_all
4929 ;;
4930
4931 beos*)
4932 lt_cv_deplibs_check_method=pass_all
4933 ;;
4934
4935 bsdi[45]*)
4936 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4937 lt_cv_file_magic_cmd='/usr/bin/file -L'
4938 lt_cv_file_magic_test_file=/shlib/libc.so
4939 ;;
4940
4941 cygwin*)
4942 # func_win32_libid is a shell function defined in ltmain.sh
4943 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4944 lt_cv_file_magic_cmd='func_win32_libid'
4945 ;;
4946
4947 mingw* | pw32*)
4948 # Base MSYS/MinGW do not provide the 'file' command needed by
4949 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4950 # unless we find 'file', for example because we are cross-compiling.
4951 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4952 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4953 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4954 lt_cv_file_magic_cmd='func_win32_libid'
4955 else
4956 # Keep this pattern in sync with the one in func_win32_libid.
4957 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4958 lt_cv_file_magic_cmd='$OBJDUMP -f'
4959 fi
4960 ;;
4961
4962 cegcc*)
4963 # use the weaker test based on 'objdump'. See mingw*.
4964 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4965 lt_cv_file_magic_cmd='$OBJDUMP -f'
4966 ;;
4967
4968 darwin* | rhapsody*)
4969 lt_cv_deplibs_check_method=pass_all
4970 ;;
4971
4972 freebsd* | dragonfly*)
4973 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4974 case $host_cpu in
4975 i*86 )
4976 # Not sure whether the presence of OpenBSD here was a mistake.
4977 # Let's accept both of them until this is cleared up.
4978 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4979 lt_cv_file_magic_cmd=/usr/bin/file
4980 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4981 ;;
4982 esac
4983 else
4984 lt_cv_deplibs_check_method=pass_all
4985 fi
4986 ;;
4987
4988 gnu*)
4989 lt_cv_deplibs_check_method=pass_all
4990 ;;
4991
4992 haiku*)
4993 lt_cv_deplibs_check_method=pass_all
4994 ;;
4995
4996 hpux10.20* | hpux11*)
4997 lt_cv_file_magic_cmd=/usr/bin/file
4998 case $host_cpu in
4999 ia64*)
5000 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5001 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5002 ;;
5003 hppa*64*)
5004 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]'
5005 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5006 ;;
5007 *)
5008 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5009 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5010 ;;
5011 esac
5012 ;;
5013
5014 interix[3-9]*)
5015 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5016 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5017 ;;
5018
5019 irix5* | irix6* | nonstopux*)
5020 case $LD in
5021 *-32|*"-32 ") libmagic=32-bit;;
5022 *-n32|*"-n32 ") libmagic=N32;;
5023 *-64|*"-64 ") libmagic=64-bit;;
5024 *) libmagic=never-match;;
5025 esac
5026 lt_cv_deplibs_check_method=pass_all
5027 ;;
5028
5029 # This must be glibc/ELF.
5030 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5031 lt_cv_deplibs_check_method=pass_all
5032 ;;
5033
5034 netbsd*)
5035 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5036 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5037 else
5038 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5039 fi
5040 ;;
5041
5042 newos6*)
5043 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5044 lt_cv_file_magic_cmd=/usr/bin/file
5045 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5046 ;;
5047
5048 *nto* | *qnx*)
5049 lt_cv_deplibs_check_method=pass_all
5050 ;;
5051
5052 openbsd*)
5053 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5054 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5055 else
5056 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5057 fi
5058 ;;
5059
5060 osf3* | osf4* | osf5*)
5061 lt_cv_deplibs_check_method=pass_all
5062 ;;
5063
5064 rdos*)
5065 lt_cv_deplibs_check_method=pass_all
5066 ;;
5067
5068 solaris*)
5069 lt_cv_deplibs_check_method=pass_all
5070 ;;
5071
5072 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5073 lt_cv_deplibs_check_method=pass_all
5074 ;;
5075
5076 sysv4 | sysv4.3*)
5077 case $host_vendor in
5078 motorola)
5079 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]'
5080 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5081 ;;
5082 ncr)
5083 lt_cv_deplibs_check_method=pass_all
5084 ;;
5085 sequent)
5086 lt_cv_file_magic_cmd='/bin/file'
5087 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5088 ;;
5089 sni)
5090 lt_cv_file_magic_cmd='/bin/file'
5091 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5092 lt_cv_file_magic_test_file=/lib/libc.so
5093 ;;
5094 siemens)
5095 lt_cv_deplibs_check_method=pass_all
5096 ;;
5097 pc)
5098 lt_cv_deplibs_check_method=pass_all
5099 ;;
5100 esac
5101 ;;
5102
5103 tpf*)
5104 lt_cv_deplibs_check_method=pass_all
5105 ;;
5106 esac
5107
5108 fi
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5110 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5111
5112 file_magic_glob=
5113 want_nocaseglob=no
5114 if test "$build" = "$host"; then
5115 case $host_os in
5116 mingw* | pw32*)
5117 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5118 want_nocaseglob=yes
5119 else
5120 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5121 fi
5122 ;;
5123 esac
5124 fi
5125
5126 file_magic_cmd=$lt_cv_file_magic_cmd
5127 deplibs_check_method=$lt_cv_deplibs_check_method
5128 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151 if test -n "$ac_tool_prefix"; then
5152 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5153 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5155 $as_echo_n "checking for $ac_word... " >&6; }
5156 if ${ac_cv_prog_DLLTOOL+:} false; then :
5157 $as_echo_n "(cached) " >&6
5158 else
5159 if test -n "$DLLTOOL"; then
5160 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5161 else
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 for as_dir in $PATH
5164 do
5165 IFS=$as_save_IFS
5166 test -z "$as_dir" && as_dir=.
5167 for ac_exec_ext in '' $ac_executable_extensions; do
5168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5169 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 break 2
5172 fi
5173 done
5174 done
5175 IFS=$as_save_IFS
5176
5177 fi
5178 fi
5179 DLLTOOL=$ac_cv_prog_DLLTOOL
5180 if test -n "$DLLTOOL"; then
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5182 $as_echo "$DLLTOOL" >&6; }
5183 else
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185 $as_echo "no" >&6; }
5186 fi
5187
5188
5189 fi
5190 if test -z "$ac_cv_prog_DLLTOOL"; then
5191 ac_ct_DLLTOOL=$DLLTOOL
5192 # Extract the first word of "dlltool", so it can be a program name with args.
5193 set dummy dlltool; ac_word=$2
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5195 $as_echo_n "checking for $ac_word... " >&6; }
5196 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5197 $as_echo_n "(cached) " >&6
5198 else
5199 if test -n "$ac_ct_DLLTOOL"; then
5200 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5201 else
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203 for as_dir in $PATH
5204 do
5205 IFS=$as_save_IFS
5206 test -z "$as_dir" && as_dir=.
5207 for ac_exec_ext in '' $ac_executable_extensions; do
5208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5209 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5211 break 2
5212 fi
5213 done
5214 done
5215 IFS=$as_save_IFS
5216
5217 fi
5218 fi
5219 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5220 if test -n "$ac_ct_DLLTOOL"; then
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5222 $as_echo "$ac_ct_DLLTOOL" >&6; }
5223 else
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5225 $as_echo "no" >&6; }
5226 fi
5227
5228 if test "x$ac_ct_DLLTOOL" = x; then
5229 DLLTOOL="false"
5230 else
5231 case $cross_compiling:$ac_tool_warned in
5232 yes:)
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5235 ac_tool_warned=yes ;;
5236 esac
5237 DLLTOOL=$ac_ct_DLLTOOL
5238 fi
5239 else
5240 DLLTOOL="$ac_cv_prog_DLLTOOL"
5241 fi
5242
5243 test -z "$DLLTOOL" && DLLTOOL=dlltool
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5255 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5256 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5257 $as_echo_n "(cached) " >&6
5258 else
5259 lt_cv_sharedlib_from_linklib_cmd='unknown'
5260
5261 case $host_os in
5262 cygwin* | mingw* | pw32* | cegcc*)
5263 # two different shell functions defined in ltmain.sh
5264 # decide which to use based on capabilities of $DLLTOOL
5265 case `$DLLTOOL --help 2>&1` in
5266 *--identify-strict*)
5267 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5268 ;;
5269 *)
5270 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5271 ;;
5272 esac
5273 ;;
5274 *)
5275 # fallback: assume linklib IS sharedlib
5276 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5277 ;;
5278 esac
5279
5280 fi
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5282 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5283 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5284 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5285
5286
5287
5288
5289
5290
5291
5292
5293 if test -n "$ac_tool_prefix"; then
5294 for ac_prog in ar
5295 do
5296 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5297 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5299 $as_echo_n "checking for $ac_word... " >&6; }
5300 if ${ac_cv_prog_AR+:} false; then :
5301 $as_echo_n "(cached) " >&6
5302 else
5303 if test -n "$AR"; then
5304 ac_cv_prog_AR="$AR" # Let the user override the test.
5305 else
5306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307 for as_dir in $PATH
5308 do
5309 IFS=$as_save_IFS
5310 test -z "$as_dir" && as_dir=.
5311 for ac_exec_ext in '' $ac_executable_extensions; do
5312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5313 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5315 break 2
5316 fi
5317 done
5318 done
5319 IFS=$as_save_IFS
5320
5321 fi
5322 fi
5323 AR=$ac_cv_prog_AR
5324 if test -n "$AR"; then
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5326 $as_echo "$AR" >&6; }
5327 else
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329 $as_echo "no" >&6; }
5330 fi
5331
5332
5333 test -n "$AR" && break
5334 done
5335 fi
5336 if test -z "$AR"; then
5337 ac_ct_AR=$AR
5338 for ac_prog in ar
5339 do
5340 # Extract the first word of "$ac_prog", so it can be a program name with args.
5341 set dummy $ac_prog; ac_word=$2
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5343 $as_echo_n "checking for $ac_word... " >&6; }
5344 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5345 $as_echo_n "(cached) " >&6
5346 else
5347 if test -n "$ac_ct_AR"; then
5348 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5349 else
5350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351 for as_dir in $PATH
5352 do
5353 IFS=$as_save_IFS
5354 test -z "$as_dir" && as_dir=.
5355 for ac_exec_ext in '' $ac_executable_extensions; do
5356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5357 ac_cv_prog_ac_ct_AR="$ac_prog"
5358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5359 break 2
5360 fi
5361 done
5362 done
5363 IFS=$as_save_IFS
5364
5365 fi
5366 fi
5367 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5368 if test -n "$ac_ct_AR"; then
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5370 $as_echo "$ac_ct_AR" >&6; }
5371 else
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373 $as_echo "no" >&6; }
5374 fi
5375
5376
5377 test -n "$ac_ct_AR" && break
5378 done
5379
5380 if test "x$ac_ct_AR" = x; then
5381 AR="false"
5382 else
5383 case $cross_compiling:$ac_tool_warned in
5384 yes:)
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5387 ac_tool_warned=yes ;;
5388 esac
5389 AR=$ac_ct_AR
5390 fi
5391 fi
5392
5393 : ${AR=ar}
5394 : ${AR_FLAGS=cru}
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5407 $as_echo_n "checking for archiver @FILE support... " >&6; }
5408 if ${lt_cv_ar_at_file+:} false; then :
5409 $as_echo_n "(cached) " >&6
5410 else
5411 lt_cv_ar_at_file=no
5412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413 /* end confdefs.h. */
5414
5415 int
5416 main ()
5417 {
5418
5419 ;
5420 return 0;
5421 }
5422 _ACEOF
5423 if ac_fn_c_try_compile "$LINENO"; then :
5424 echo conftest.$ac_objext > conftest.lst
5425 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5427 (eval $lt_ar_try) 2>&5
5428 ac_status=$?
5429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5430 test $ac_status = 0; }
5431 if test "$ac_status" -eq 0; then
5432 # Ensure the archiver fails upon bogus file names.
5433 rm -f conftest.$ac_objext libconftest.a
5434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5435 (eval $lt_ar_try) 2>&5
5436 ac_status=$?
5437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5438 test $ac_status = 0; }
5439 if test "$ac_status" -ne 0; then
5440 lt_cv_ar_at_file=@
5441 fi
5442 fi
5443 rm -f conftest.* libconftest.a
5444
5445 fi
5446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5447
5448 fi
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5450 $as_echo "$lt_cv_ar_at_file" >&6; }
5451
5452 if test "x$lt_cv_ar_at_file" = xno; then
5453 archiver_list_spec=
5454 else
5455 archiver_list_spec=$lt_cv_ar_at_file
5456 fi
5457
5458
5459
5460
5461
5462
5463
5464 if test -n "$ac_tool_prefix"; then
5465 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5466 set dummy ${ac_tool_prefix}strip; ac_word=$2
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5468 $as_echo_n "checking for $ac_word... " >&6; }
5469 if ${ac_cv_prog_STRIP+:} false; then :
5470 $as_echo_n "(cached) " >&6
5471 else
5472 if test -n "$STRIP"; then
5473 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5474 else
5475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476 for as_dir in $PATH
5477 do
5478 IFS=$as_save_IFS
5479 test -z "$as_dir" && as_dir=.
5480 for ac_exec_ext in '' $ac_executable_extensions; do
5481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5482 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5484 break 2
5485 fi
5486 done
5487 done
5488 IFS=$as_save_IFS
5489
5490 fi
5491 fi
5492 STRIP=$ac_cv_prog_STRIP
5493 if test -n "$STRIP"; then
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5495 $as_echo "$STRIP" >&6; }
5496 else
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5498 $as_echo "no" >&6; }
5499 fi
5500
5501
5502 fi
5503 if test -z "$ac_cv_prog_STRIP"; then
5504 ac_ct_STRIP=$STRIP
5505 # Extract the first word of "strip", so it can be a program name with args.
5506 set dummy strip; ac_word=$2
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5508 $as_echo_n "checking for $ac_word... " >&6; }
5509 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5510 $as_echo_n "(cached) " >&6
5511 else
5512 if test -n "$ac_ct_STRIP"; then
5513 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5514 else
5515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516 for as_dir in $PATH
5517 do
5518 IFS=$as_save_IFS
5519 test -z "$as_dir" && as_dir=.
5520 for ac_exec_ext in '' $ac_executable_extensions; do
5521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5522 ac_cv_prog_ac_ct_STRIP="strip"
5523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5524 break 2
5525 fi
5526 done
5527 done
5528 IFS=$as_save_IFS
5529
5530 fi
5531 fi
5532 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5533 if test -n "$ac_ct_STRIP"; then
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5535 $as_echo "$ac_ct_STRIP" >&6; }
5536 else
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5538 $as_echo "no" >&6; }
5539 fi
5540
5541 if test "x$ac_ct_STRIP" = x; then
5542 STRIP=":"
5543 else
5544 case $cross_compiling:$ac_tool_warned in
5545 yes:)
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5547 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5548 ac_tool_warned=yes ;;
5549 esac
5550 STRIP=$ac_ct_STRIP
5551 fi
5552 else
5553 STRIP="$ac_cv_prog_STRIP"
5554 fi
5555
5556 test -z "$STRIP" && STRIP=:
5557
5558
5559
5560
5561
5562
5563 if test -n "$ac_tool_prefix"; then
5564 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5565 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5567 $as_echo_n "checking for $ac_word... " >&6; }
5568 if ${ac_cv_prog_RANLIB+:} false; then :
5569 $as_echo_n "(cached) " >&6
5570 else
5571 if test -n "$RANLIB"; then
5572 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5573 else
5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575 for as_dir in $PATH
5576 do
5577 IFS=$as_save_IFS
5578 test -z "$as_dir" && as_dir=.
5579 for ac_exec_ext in '' $ac_executable_extensions; do
5580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5581 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5583 break 2
5584 fi
5585 done
5586 done
5587 IFS=$as_save_IFS
5588
5589 fi
5590 fi
5591 RANLIB=$ac_cv_prog_RANLIB
5592 if test -n "$RANLIB"; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5594 $as_echo "$RANLIB" >&6; }
5595 else
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5597 $as_echo "no" >&6; }
5598 fi
5599
5600
5601 fi
5602 if test -z "$ac_cv_prog_RANLIB"; then
5603 ac_ct_RANLIB=$RANLIB
5604 # Extract the first word of "ranlib", so it can be a program name with args.
5605 set dummy ranlib; ac_word=$2
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5607 $as_echo_n "checking for $ac_word... " >&6; }
5608 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5609 $as_echo_n "(cached) " >&6
5610 else
5611 if test -n "$ac_ct_RANLIB"; then
5612 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5613 else
5614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615 for as_dir in $PATH
5616 do
5617 IFS=$as_save_IFS
5618 test -z "$as_dir" && as_dir=.
5619 for ac_exec_ext in '' $ac_executable_extensions; do
5620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5621 ac_cv_prog_ac_ct_RANLIB="ranlib"
5622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5623 break 2
5624 fi
5625 done
5626 done
5627 IFS=$as_save_IFS
5628
5629 fi
5630 fi
5631 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5632 if test -n "$ac_ct_RANLIB"; then
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5634 $as_echo "$ac_ct_RANLIB" >&6; }
5635 else
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637 $as_echo "no" >&6; }
5638 fi
5639
5640 if test "x$ac_ct_RANLIB" = x; then
5641 RANLIB=":"
5642 else
5643 case $cross_compiling:$ac_tool_warned in
5644 yes:)
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5647 ac_tool_warned=yes ;;
5648 esac
5649 RANLIB=$ac_ct_RANLIB
5650 fi
5651 else
5652 RANLIB="$ac_cv_prog_RANLIB"
5653 fi
5654
5655 test -z "$RANLIB" && RANLIB=:
5656
5657
5658
5659
5660
5661
5662 # Determine commands to create old-style static archives.
5663 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5664 old_postinstall_cmds='chmod 644 $oldlib'
5665 old_postuninstall_cmds=
5666
5667 if test -n "$RANLIB"; then
5668 case $host_os in
5669 openbsd*)
5670 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5671 ;;
5672 *)
5673 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5674 ;;
5675 esac
5676 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5677 fi
5678
5679 case $host_os in
5680 darwin*)
5681 lock_old_archive_extraction=yes ;;
5682 *)
5683 lock_old_archive_extraction=no ;;
5684 esac
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724 # If no C compiler was specified, use CC.
5725 LTCC=${LTCC-"$CC"}
5726
5727 # If no C compiler flags were specified, use CFLAGS.
5728 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5729
5730 # Allow CC to be a program name with arguments.
5731 compiler=$CC
5732
5733
5734 # Check for command to grab the raw symbol name followed by C symbol from nm.
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5736 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5737 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5738 $as_echo_n "(cached) " >&6
5739 else
5740
5741 # These are sane defaults that work on at least a few old systems.
5742 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5743
5744 # Character class describing NM global symbol codes.
5745 symcode='[BCDEGRST]'
5746
5747 # Regexp to match symbols that can be accessed directly from C.
5748 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5749
5750 # Define system-specific variables.
5751 case $host_os in
5752 aix*)
5753 symcode='[BCDT]'
5754 ;;
5755 cygwin* | mingw* | pw32* | cegcc*)
5756 symcode='[ABCDGISTW]'
5757 ;;
5758 hpux*)
5759 if test "$host_cpu" = ia64; then
5760 symcode='[ABCDEGRST]'
5761 fi
5762 ;;
5763 irix* | nonstopux*)
5764 symcode='[BCDEGRST]'
5765 ;;
5766 osf*)
5767 symcode='[BCDEGQRST]'
5768 ;;
5769 solaris*)
5770 symcode='[BDRT]'
5771 ;;
5772 sco3.2v5*)
5773 symcode='[DT]'
5774 ;;
5775 sysv4.2uw2*)
5776 symcode='[DT]'
5777 ;;
5778 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5779 symcode='[ABDT]'
5780 ;;
5781 sysv4)
5782 symcode='[DFNSTU]'
5783 ;;
5784 esac
5785
5786 # If we're using GNU nm, then use its standard symbol codes.
5787 case `$NM -V 2>&1` in
5788 *GNU* | *'with BFD'*)
5789 symcode='[ABCDGIRSTW]' ;;
5790 esac
5791
5792 # Transform an extracted symbol line into a proper C declaration.
5793 # Some systems (esp. on ia64) link data and code symbols differently,
5794 # so use this general approach.
5795 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5796
5797 # Transform an extracted symbol line into symbol name and symbol address
5798 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5799 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'"
5800
5801 # Handle CRLF in mingw tool chain
5802 opt_cr=
5803 case $build_os in
5804 mingw*)
5805 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5806 ;;
5807 esac
5808
5809 # Try without a prefix underscore, then with it.
5810 for ac_symprfx in "" "_"; do
5811
5812 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5813 symxfrm="\\1 $ac_symprfx\\2 \\2"
5814
5815 # Write the raw and C identifiers.
5816 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5817 # Fake it for dumpbin and say T for any non-static function
5818 # and D for any global variable.
5819 # Also find C++ and __fastcall symbols from MSVC++,
5820 # which start with @ or ?.
5821 lt_cv_sys_global_symbol_pipe="$AWK '"\
5822 " {last_section=section; section=\$ 3};"\
5823 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5824 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5825 " \$ 0!~/External *\|/{next};"\
5826 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5827 " {if(hide[section]) next};"\
5828 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5829 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5830 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5831 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5832 " ' prfx=^$ac_symprfx"
5833 else
5834 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5835 fi
5836 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5837
5838 # Check to see that the pipe works correctly.
5839 pipe_works=no
5840
5841 rm -f conftest*
5842 cat > conftest.$ac_ext <<_LT_EOF
5843 #ifdef __cplusplus
5844 extern "C" {
5845 #endif
5846 char nm_test_var;
5847 void nm_test_func(void);
5848 void nm_test_func(void){}
5849 #ifdef __cplusplus
5850 }
5851 #endif
5852 int main(){nm_test_var='a';nm_test_func();return(0);}
5853 _LT_EOF
5854
5855 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5856 (eval $ac_compile) 2>&5
5857 ac_status=$?
5858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5859 test $ac_status = 0; }; then
5860 # Now try to grab the symbols.
5861 nlist=conftest.nm
5862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5863 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5864 ac_status=$?
5865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5866 test $ac_status = 0; } && test -s "$nlist"; then
5867 # Try sorting and uniquifying the output.
5868 if sort "$nlist" | uniq > "$nlist"T; then
5869 mv -f "$nlist"T "$nlist"
5870 else
5871 rm -f "$nlist"T
5872 fi
5873
5874 # Make sure that we snagged all the symbols we need.
5875 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5876 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5877 cat <<_LT_EOF > conftest.$ac_ext
5878 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5879 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5880 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5881 relocations are performed -- see ld's documentation on pseudo-relocs. */
5882 # define LT_DLSYM_CONST
5883 #elif defined(__osf__)
5884 /* This system does not cope well with relocations in const data. */
5885 # define LT_DLSYM_CONST
5886 #else
5887 # define LT_DLSYM_CONST const
5888 #endif
5889
5890 #ifdef __cplusplus
5891 extern "C" {
5892 #endif
5893
5894 _LT_EOF
5895 # Now generate the symbol file.
5896 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5897
5898 cat <<_LT_EOF >> conftest.$ac_ext
5899
5900 /* The mapping between symbol names and symbols. */
5901 LT_DLSYM_CONST struct {
5902 const char *name;
5903 void *address;
5904 }
5905 lt__PROGRAM__LTX_preloaded_symbols[] =
5906 {
5907 { "@PROGRAM@", (void *) 0 },
5908 _LT_EOF
5909 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5910 cat <<\_LT_EOF >> conftest.$ac_ext
5911 {0, (void *) 0}
5912 };
5913
5914 /* This works around a problem in FreeBSD linker */
5915 #ifdef FREEBSD_WORKAROUND
5916 static const void *lt_preloaded_setup() {
5917 return lt__PROGRAM__LTX_preloaded_symbols;
5918 }
5919 #endif
5920
5921 #ifdef __cplusplus
5922 }
5923 #endif
5924 _LT_EOF
5925 # Now try linking the two files.
5926 mv conftest.$ac_objext conftstm.$ac_objext
5927 lt_globsym_save_LIBS=$LIBS
5928 lt_globsym_save_CFLAGS=$CFLAGS
5929 LIBS="conftstm.$ac_objext"
5930 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5931 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5932 (eval $ac_link) 2>&5
5933 ac_status=$?
5934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5935 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5936 pipe_works=yes
5937 fi
5938 LIBS=$lt_globsym_save_LIBS
5939 CFLAGS=$lt_globsym_save_CFLAGS
5940 else
5941 echo "cannot find nm_test_func in $nlist" >&5
5942 fi
5943 else
5944 echo "cannot find nm_test_var in $nlist" >&5
5945 fi
5946 else
5947 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5948 fi
5949 else
5950 echo "$progname: failed program was:" >&5
5951 cat conftest.$ac_ext >&5
5952 fi
5953 rm -rf conftest* conftst*
5954
5955 # Do not use the global_symbol_pipe unless it works.
5956 if test "$pipe_works" = yes; then
5957 break
5958 else
5959 lt_cv_sys_global_symbol_pipe=
5960 fi
5961 done
5962
5963 fi
5964
5965 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5966 lt_cv_sys_global_symbol_to_cdecl=
5967 fi
5968 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5970 $as_echo "failed" >&6; }
5971 else
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5973 $as_echo "ok" >&6; }
5974 fi
5975
5976 # Response file support.
5977 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5978 nm_file_list_spec='@'
5979 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5980 nm_file_list_spec='@'
5981 fi
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6010 $as_echo_n "checking for sysroot... " >&6; }
6011
6012 # Check whether --with-sysroot was given.
6013 if test "${with_sysroot+set}" = set; then :
6014 withval=$with_sysroot;
6015 else
6016 with_sysroot=no
6017 fi
6018
6019
6020 lt_sysroot=
6021 case ${with_sysroot} in #(
6022 yes)
6023 if test "$GCC" = yes; then
6024 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6025 fi
6026 ;; #(
6027 /*)
6028 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6029 ;; #(
6030 no|'')
6031 ;; #(
6032 *)
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6034 $as_echo "${with_sysroot}" >&6; }
6035 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6036 ;;
6037 esac
6038
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6040 $as_echo "${lt_sysroot:-no}" >&6; }
6041
6042
6043
6044
6045
6046 # Check whether --enable-libtool-lock was given.
6047 if test "${enable_libtool_lock+set}" = set; then :
6048 enableval=$enable_libtool_lock;
6049 fi
6050
6051 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6052
6053 # Some flags need to be propagated to the compiler or linker for good
6054 # libtool support.
6055 case $host in
6056 ia64-*-hpux*)
6057 # Find out which ABI we are using.
6058 echo 'int i;' > conftest.$ac_ext
6059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6060 (eval $ac_compile) 2>&5
6061 ac_status=$?
6062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6063 test $ac_status = 0; }; then
6064 case `/usr/bin/file conftest.$ac_objext` in
6065 *ELF-32*)
6066 HPUX_IA64_MODE="32"
6067 ;;
6068 *ELF-64*)
6069 HPUX_IA64_MODE="64"
6070 ;;
6071 esac
6072 fi
6073 rm -rf conftest*
6074 ;;
6075 *-*-irix6*)
6076 # Find out which ABI we are using.
6077 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6078 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6079 (eval $ac_compile) 2>&5
6080 ac_status=$?
6081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6082 test $ac_status = 0; }; then
6083 if test "$lt_cv_prog_gnu_ld" = yes; then
6084 case `/usr/bin/file conftest.$ac_objext` in
6085 *32-bit*)
6086 LD="${LD-ld} -melf32bsmip"
6087 ;;
6088 *N32*)
6089 LD="${LD-ld} -melf32bmipn32"
6090 ;;
6091 *64-bit*)
6092 LD="${LD-ld} -melf64bmip"
6093 ;;
6094 esac
6095 else
6096 case `/usr/bin/file conftest.$ac_objext` in
6097 *32-bit*)
6098 LD="${LD-ld} -32"
6099 ;;
6100 *N32*)
6101 LD="${LD-ld} -n32"
6102 ;;
6103 *64-bit*)
6104 LD="${LD-ld} -64"
6105 ;;
6106 esac
6107 fi
6108 fi
6109 rm -rf conftest*
6110 ;;
6111
6112 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6113 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6114 # Find out which ABI we are using.
6115 echo 'int i;' > conftest.$ac_ext
6116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6117 (eval $ac_compile) 2>&5
6118 ac_status=$?
6119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6120 test $ac_status = 0; }; then
6121 case `/usr/bin/file conftest.o` in
6122 *32-bit*)
6123 case $host in
6124 x86_64-*kfreebsd*-gnu)
6125 LD="${LD-ld} -m elf_i386_fbsd"
6126 ;;
6127 x86_64-*linux*)
6128 LD="${LD-ld} -m elf_i386"
6129 ;;
6130 ppc64-*linux*|powerpc64-*linux*)
6131 LD="${LD-ld} -m elf32ppclinux"
6132 ;;
6133 s390x-*linux*)
6134 LD="${LD-ld} -m elf_s390"
6135 ;;
6136 sparc64-*linux*)
6137 LD="${LD-ld} -m elf32_sparc"
6138 ;;
6139 esac
6140 ;;
6141 *64-bit*)
6142 case $host in
6143 x86_64-*kfreebsd*-gnu)
6144 LD="${LD-ld} -m elf_x86_64_fbsd"
6145 ;;
6146 x86_64-*linux*)
6147 LD="${LD-ld} -m elf_x86_64"
6148 ;;
6149 ppc*-*linux*|powerpc*-*linux*)
6150 LD="${LD-ld} -m elf64ppc"
6151 ;;
6152 s390*-*linux*|s390*-*tpf*)
6153 LD="${LD-ld} -m elf64_s390"
6154 ;;
6155 sparc*-*linux*)
6156 LD="${LD-ld} -m elf64_sparc"
6157 ;;
6158 esac
6159 ;;
6160 esac
6161 fi
6162 rm -rf conftest*
6163 ;;
6164
6165 *-*-sco3.2v5*)
6166 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6167 SAVE_CFLAGS="$CFLAGS"
6168 CFLAGS="$CFLAGS -belf"
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6170 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6171 if ${lt_cv_cc_needs_belf+:} false; then :
6172 $as_echo_n "(cached) " >&6
6173 else
6174 ac_ext=c
6175 ac_cpp='$CPP $CPPFLAGS'
6176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6179
6180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6181 /* end confdefs.h. */
6182
6183 int
6184 main ()
6185 {
6186
6187 ;
6188 return 0;
6189 }
6190 _ACEOF
6191 if ac_fn_c_try_link "$LINENO"; then :
6192 lt_cv_cc_needs_belf=yes
6193 else
6194 lt_cv_cc_needs_belf=no
6195 fi
6196 rm -f core conftest.err conftest.$ac_objext \
6197 conftest$ac_exeext conftest.$ac_ext
6198 ac_ext=c
6199 ac_cpp='$CPP $CPPFLAGS'
6200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6203
6204 fi
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6206 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6207 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6208 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6209 CFLAGS="$SAVE_CFLAGS"
6210 fi
6211 ;;
6212 *-*solaris*)
6213 # Find out which ABI we are using.
6214 echo 'int i;' > conftest.$ac_ext
6215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6216 (eval $ac_compile) 2>&5
6217 ac_status=$?
6218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6219 test $ac_status = 0; }; then
6220 case `/usr/bin/file conftest.o` in
6221 *64-bit*)
6222 case $lt_cv_prog_gnu_ld in
6223 yes*)
6224 case $host in
6225 i?86-*-solaris*)
6226 LD="${LD-ld} -m elf_x86_64"
6227 ;;
6228 sparc*-*-solaris*)
6229 LD="${LD-ld} -m elf64_sparc"
6230 ;;
6231 esac
6232 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6233 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6234 LD="${LD-ld}_sol2"
6235 fi
6236 ;;
6237 *)
6238 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6239 LD="${LD-ld} -64"
6240 fi
6241 ;;
6242 esac
6243 ;;
6244 esac
6245 fi
6246 rm -rf conftest*
6247 ;;
6248 esac
6249
6250 need_locks="$enable_libtool_lock"
6251
6252 if test -n "$ac_tool_prefix"; then
6253 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6254 set dummy ${ac_tool_prefix}mt; ac_word=$2
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6256 $as_echo_n "checking for $ac_word... " >&6; }
6257 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6258 $as_echo_n "(cached) " >&6
6259 else
6260 if test -n "$MANIFEST_TOOL"; then
6261 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6262 else
6263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 for as_dir in $PATH
6265 do
6266 IFS=$as_save_IFS
6267 test -z "$as_dir" && as_dir=.
6268 for ac_exec_ext in '' $ac_executable_extensions; do
6269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6270 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6272 break 2
6273 fi
6274 done
6275 done
6276 IFS=$as_save_IFS
6277
6278 fi
6279 fi
6280 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6281 if test -n "$MANIFEST_TOOL"; then
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6283 $as_echo "$MANIFEST_TOOL" >&6; }
6284 else
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6286 $as_echo "no" >&6; }
6287 fi
6288
6289
6290 fi
6291 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6292 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6293 # Extract the first word of "mt", so it can be a program name with args.
6294 set dummy mt; ac_word=$2
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6296 $as_echo_n "checking for $ac_word... " >&6; }
6297 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6298 $as_echo_n "(cached) " >&6
6299 else
6300 if test -n "$ac_ct_MANIFEST_TOOL"; then
6301 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6302 else
6303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 for as_dir in $PATH
6305 do
6306 IFS=$as_save_IFS
6307 test -z "$as_dir" && as_dir=.
6308 for ac_exec_ext in '' $ac_executable_extensions; do
6309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6310 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6312 break 2
6313 fi
6314 done
6315 done
6316 IFS=$as_save_IFS
6317
6318 fi
6319 fi
6320 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6321 if test -n "$ac_ct_MANIFEST_TOOL"; then
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6323 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6324 else
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6326 $as_echo "no" >&6; }
6327 fi
6328
6329 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6330 MANIFEST_TOOL=":"
6331 else
6332 case $cross_compiling:$ac_tool_warned in
6333 yes:)
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6336 ac_tool_warned=yes ;;
6337 esac
6338 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6339 fi
6340 else
6341 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6342 fi
6343
6344 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6346 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6347 if ${lt_cv_path_mainfest_tool+:} false; then :
6348 $as_echo_n "(cached) " >&6
6349 else
6350 lt_cv_path_mainfest_tool=no
6351 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6352 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6353 cat conftest.err >&5
6354 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6355 lt_cv_path_mainfest_tool=yes
6356 fi
6357 rm -f conftest*
6358 fi
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6360 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6361 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6362 MANIFEST_TOOL=:
6363 fi
6364
6365
6366
6367
6368
6369
6370 case $host_os in
6371 rhapsody* | darwin*)
6372 if test -n "$ac_tool_prefix"; then
6373 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6374 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6376 $as_echo_n "checking for $ac_word... " >&6; }
6377 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6378 $as_echo_n "(cached) " >&6
6379 else
6380 if test -n "$DSYMUTIL"; then
6381 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6382 else
6383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384 for as_dir in $PATH
6385 do
6386 IFS=$as_save_IFS
6387 test -z "$as_dir" && as_dir=.
6388 for ac_exec_ext in '' $ac_executable_extensions; do
6389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6390 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6392 break 2
6393 fi
6394 done
6395 done
6396 IFS=$as_save_IFS
6397
6398 fi
6399 fi
6400 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6401 if test -n "$DSYMUTIL"; then
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6403 $as_echo "$DSYMUTIL" >&6; }
6404 else
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6406 $as_echo "no" >&6; }
6407 fi
6408
6409
6410 fi
6411 if test -z "$ac_cv_prog_DSYMUTIL"; then
6412 ac_ct_DSYMUTIL=$DSYMUTIL
6413 # Extract the first word of "dsymutil", so it can be a program name with args.
6414 set dummy dsymutil; ac_word=$2
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6416 $as_echo_n "checking for $ac_word... " >&6; }
6417 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6418 $as_echo_n "(cached) " >&6
6419 else
6420 if test -n "$ac_ct_DSYMUTIL"; then
6421 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6422 else
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424 for as_dir in $PATH
6425 do
6426 IFS=$as_save_IFS
6427 test -z "$as_dir" && as_dir=.
6428 for ac_exec_ext in '' $ac_executable_extensions; do
6429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6430 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6432 break 2
6433 fi
6434 done
6435 done
6436 IFS=$as_save_IFS
6437
6438 fi
6439 fi
6440 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6441 if test -n "$ac_ct_DSYMUTIL"; then
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6443 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6444 else
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6446 $as_echo "no" >&6; }
6447 fi
6448
6449 if test "x$ac_ct_DSYMUTIL" = x; then
6450 DSYMUTIL=":"
6451 else
6452 case $cross_compiling:$ac_tool_warned in
6453 yes:)
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6456 ac_tool_warned=yes ;;
6457 esac
6458 DSYMUTIL=$ac_ct_DSYMUTIL
6459 fi
6460 else
6461 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6462 fi
6463
6464 if test -n "$ac_tool_prefix"; then
6465 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6466 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6468 $as_echo_n "checking for $ac_word... " >&6; }
6469 if ${ac_cv_prog_NMEDIT+:} false; then :
6470 $as_echo_n "(cached) " >&6
6471 else
6472 if test -n "$NMEDIT"; then
6473 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6474 else
6475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476 for as_dir in $PATH
6477 do
6478 IFS=$as_save_IFS
6479 test -z "$as_dir" && as_dir=.
6480 for ac_exec_ext in '' $ac_executable_extensions; do
6481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6482 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6484 break 2
6485 fi
6486 done
6487 done
6488 IFS=$as_save_IFS
6489
6490 fi
6491 fi
6492 NMEDIT=$ac_cv_prog_NMEDIT
6493 if test -n "$NMEDIT"; then
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6495 $as_echo "$NMEDIT" >&6; }
6496 else
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6498 $as_echo "no" >&6; }
6499 fi
6500
6501
6502 fi
6503 if test -z "$ac_cv_prog_NMEDIT"; then
6504 ac_ct_NMEDIT=$NMEDIT
6505 # Extract the first word of "nmedit", so it can be a program name with args.
6506 set dummy nmedit; ac_word=$2
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6508 $as_echo_n "checking for $ac_word... " >&6; }
6509 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6510 $as_echo_n "(cached) " >&6
6511 else
6512 if test -n "$ac_ct_NMEDIT"; then
6513 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6514 else
6515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 for as_dir in $PATH
6517 do
6518 IFS=$as_save_IFS
6519 test -z "$as_dir" && as_dir=.
6520 for ac_exec_ext in '' $ac_executable_extensions; do
6521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6522 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6524 break 2
6525 fi
6526 done
6527 done
6528 IFS=$as_save_IFS
6529
6530 fi
6531 fi
6532 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6533 if test -n "$ac_ct_NMEDIT"; then
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6535 $as_echo "$ac_ct_NMEDIT" >&6; }
6536 else
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6538 $as_echo "no" >&6; }
6539 fi
6540
6541 if test "x$ac_ct_NMEDIT" = x; then
6542 NMEDIT=":"
6543 else
6544 case $cross_compiling:$ac_tool_warned in
6545 yes:)
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6547 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6548 ac_tool_warned=yes ;;
6549 esac
6550 NMEDIT=$ac_ct_NMEDIT
6551 fi
6552 else
6553 NMEDIT="$ac_cv_prog_NMEDIT"
6554 fi
6555
6556 if test -n "$ac_tool_prefix"; then
6557 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6558 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6560 $as_echo_n "checking for $ac_word... " >&6; }
6561 if ${ac_cv_prog_LIPO+:} false; then :
6562 $as_echo_n "(cached) " >&6
6563 else
6564 if test -n "$LIPO"; then
6565 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6566 else
6567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568 for as_dir in $PATH
6569 do
6570 IFS=$as_save_IFS
6571 test -z "$as_dir" && as_dir=.
6572 for ac_exec_ext in '' $ac_executable_extensions; do
6573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6574 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6576 break 2
6577 fi
6578 done
6579 done
6580 IFS=$as_save_IFS
6581
6582 fi
6583 fi
6584 LIPO=$ac_cv_prog_LIPO
6585 if test -n "$LIPO"; then
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6587 $as_echo "$LIPO" >&6; }
6588 else
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6590 $as_echo "no" >&6; }
6591 fi
6592
6593
6594 fi
6595 if test -z "$ac_cv_prog_LIPO"; then
6596 ac_ct_LIPO=$LIPO
6597 # Extract the first word of "lipo", so it can be a program name with args.
6598 set dummy lipo; ac_word=$2
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6600 $as_echo_n "checking for $ac_word... " >&6; }
6601 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6602 $as_echo_n "(cached) " >&6
6603 else
6604 if test -n "$ac_ct_LIPO"; then
6605 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6606 else
6607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608 for as_dir in $PATH
6609 do
6610 IFS=$as_save_IFS
6611 test -z "$as_dir" && as_dir=.
6612 for ac_exec_ext in '' $ac_executable_extensions; do
6613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6614 ac_cv_prog_ac_ct_LIPO="lipo"
6615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6616 break 2
6617 fi
6618 done
6619 done
6620 IFS=$as_save_IFS
6621
6622 fi
6623 fi
6624 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6625 if test -n "$ac_ct_LIPO"; then
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6627 $as_echo "$ac_ct_LIPO" >&6; }
6628 else
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6630 $as_echo "no" >&6; }
6631 fi
6632
6633 if test "x$ac_ct_LIPO" = x; then
6634 LIPO=":"
6635 else
6636 case $cross_compiling:$ac_tool_warned in
6637 yes:)
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6640 ac_tool_warned=yes ;;
6641 esac
6642 LIPO=$ac_ct_LIPO
6643 fi
6644 else
6645 LIPO="$ac_cv_prog_LIPO"
6646 fi
6647
6648 if test -n "$ac_tool_prefix"; then
6649 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6650 set dummy ${ac_tool_prefix}otool; ac_word=$2
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6652 $as_echo_n "checking for $ac_word... " >&6; }
6653 if ${ac_cv_prog_OTOOL+:} false; then :
6654 $as_echo_n "(cached) " >&6
6655 else
6656 if test -n "$OTOOL"; then
6657 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6658 else
6659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660 for as_dir in $PATH
6661 do
6662 IFS=$as_save_IFS
6663 test -z "$as_dir" && as_dir=.
6664 for ac_exec_ext in '' $ac_executable_extensions; do
6665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6666 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6668 break 2
6669 fi
6670 done
6671 done
6672 IFS=$as_save_IFS
6673
6674 fi
6675 fi
6676 OTOOL=$ac_cv_prog_OTOOL
6677 if test -n "$OTOOL"; then
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6679 $as_echo "$OTOOL" >&6; }
6680 else
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6682 $as_echo "no" >&6; }
6683 fi
6684
6685
6686 fi
6687 if test -z "$ac_cv_prog_OTOOL"; then
6688 ac_ct_OTOOL=$OTOOL
6689 # Extract the first word of "otool", so it can be a program name with args.
6690 set dummy otool; ac_word=$2
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6692 $as_echo_n "checking for $ac_word... " >&6; }
6693 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6694 $as_echo_n "(cached) " >&6
6695 else
6696 if test -n "$ac_ct_OTOOL"; then
6697 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6698 else
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700 for as_dir in $PATH
6701 do
6702 IFS=$as_save_IFS
6703 test -z "$as_dir" && as_dir=.
6704 for ac_exec_ext in '' $ac_executable_extensions; do
6705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6706 ac_cv_prog_ac_ct_OTOOL="otool"
6707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6708 break 2
6709 fi
6710 done
6711 done
6712 IFS=$as_save_IFS
6713
6714 fi
6715 fi
6716 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6717 if test -n "$ac_ct_OTOOL"; then
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6719 $as_echo "$ac_ct_OTOOL" >&6; }
6720 else
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6722 $as_echo "no" >&6; }
6723 fi
6724
6725 if test "x$ac_ct_OTOOL" = x; then
6726 OTOOL=":"
6727 else
6728 case $cross_compiling:$ac_tool_warned in
6729 yes:)
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6732 ac_tool_warned=yes ;;
6733 esac
6734 OTOOL=$ac_ct_OTOOL
6735 fi
6736 else
6737 OTOOL="$ac_cv_prog_OTOOL"
6738 fi
6739
6740 if test -n "$ac_tool_prefix"; then
6741 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6742 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6744 $as_echo_n "checking for $ac_word... " >&6; }
6745 if ${ac_cv_prog_OTOOL64+:} false; then :
6746 $as_echo_n "(cached) " >&6
6747 else
6748 if test -n "$OTOOL64"; then
6749 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6750 else
6751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752 for as_dir in $PATH
6753 do
6754 IFS=$as_save_IFS
6755 test -z "$as_dir" && as_dir=.
6756 for ac_exec_ext in '' $ac_executable_extensions; do
6757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6758 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6760 break 2
6761 fi
6762 done
6763 done
6764 IFS=$as_save_IFS
6765
6766 fi
6767 fi
6768 OTOOL64=$ac_cv_prog_OTOOL64
6769 if test -n "$OTOOL64"; then
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6771 $as_echo "$OTOOL64" >&6; }
6772 else
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6774 $as_echo "no" >&6; }
6775 fi
6776
6777
6778 fi
6779 if test -z "$ac_cv_prog_OTOOL64"; then
6780 ac_ct_OTOOL64=$OTOOL64
6781 # Extract the first word of "otool64", so it can be a program name with args.
6782 set dummy otool64; ac_word=$2
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6784 $as_echo_n "checking for $ac_word... " >&6; }
6785 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6786 $as_echo_n "(cached) " >&6
6787 else
6788 if test -n "$ac_ct_OTOOL64"; then
6789 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6790 else
6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792 for as_dir in $PATH
6793 do
6794 IFS=$as_save_IFS
6795 test -z "$as_dir" && as_dir=.
6796 for ac_exec_ext in '' $ac_executable_extensions; do
6797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6798 ac_cv_prog_ac_ct_OTOOL64="otool64"
6799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6800 break 2
6801 fi
6802 done
6803 done
6804 IFS=$as_save_IFS
6805
6806 fi
6807 fi
6808 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6809 if test -n "$ac_ct_OTOOL64"; then
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6811 $as_echo "$ac_ct_OTOOL64" >&6; }
6812 else
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6814 $as_echo "no" >&6; }
6815 fi
6816
6817 if test "x$ac_ct_OTOOL64" = x; then
6818 OTOOL64=":"
6819 else
6820 case $cross_compiling:$ac_tool_warned in
6821 yes:)
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6824 ac_tool_warned=yes ;;
6825 esac
6826 OTOOL64=$ac_ct_OTOOL64
6827 fi
6828 else
6829 OTOOL64="$ac_cv_prog_OTOOL64"
6830 fi
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6859 $as_echo_n "checking for -single_module linker flag... " >&6; }
6860 if ${lt_cv_apple_cc_single_mod+:} false; then :
6861 $as_echo_n "(cached) " >&6
6862 else
6863 lt_cv_apple_cc_single_mod=no
6864 if test -z "${LT_MULTI_MODULE}"; then
6865 # By default we will add the -single_module flag. You can override
6866 # by either setting the environment variable LT_MULTI_MODULE
6867 # non-empty at configure time, or by adding -multi_module to the
6868 # link flags.
6869 rm -rf libconftest.dylib*
6870 echo "int foo(void){return 1;}" > conftest.c
6871 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6872 -dynamiclib -Wl,-single_module conftest.c" >&5
6873 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6874 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6875 _lt_result=$?
6876 # If there is a non-empty error log, and "single_module"
6877 # appears in it, assume the flag caused a linker warning
6878 if test -s conftest.err && $GREP single_module conftest.err; then
6879 cat conftest.err >&5
6880 # Otherwise, if the output was created with a 0 exit code from
6881 # the compiler, it worked.
6882 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6883 lt_cv_apple_cc_single_mod=yes
6884 else
6885 cat conftest.err >&5
6886 fi
6887 rm -rf libconftest.dylib*
6888 rm -f conftest.*
6889 fi
6890 fi
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6892 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6893
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6895 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6896 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6897 $as_echo_n "(cached) " >&6
6898 else
6899 lt_cv_ld_exported_symbols_list=no
6900 save_LDFLAGS=$LDFLAGS
6901 echo "_main" > conftest.sym
6902 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904 /* end confdefs.h. */
6905
6906 int
6907 main ()
6908 {
6909
6910 ;
6911 return 0;
6912 }
6913 _ACEOF
6914 if ac_fn_c_try_link "$LINENO"; then :
6915 lt_cv_ld_exported_symbols_list=yes
6916 else
6917 lt_cv_ld_exported_symbols_list=no
6918 fi
6919 rm -f core conftest.err conftest.$ac_objext \
6920 conftest$ac_exeext conftest.$ac_ext
6921 LDFLAGS="$save_LDFLAGS"
6922
6923 fi
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6925 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6926
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6928 $as_echo_n "checking for -force_load linker flag... " >&6; }
6929 if ${lt_cv_ld_force_load+:} false; then :
6930 $as_echo_n "(cached) " >&6
6931 else
6932 lt_cv_ld_force_load=no
6933 cat > conftest.c << _LT_EOF
6934 int forced_loaded() { return 2;}
6935 _LT_EOF
6936 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6937 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6938 echo "$AR cru libconftest.a conftest.o" >&5
6939 $AR cru libconftest.a conftest.o 2>&5
6940 echo "$RANLIB libconftest.a" >&5
6941 $RANLIB libconftest.a 2>&5
6942 cat > conftest.c << _LT_EOF
6943 int main() { return 0;}
6944 _LT_EOF
6945 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6946 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6947 _lt_result=$?
6948 if test -s conftest.err && $GREP force_load conftest.err; then
6949 cat conftest.err >&5
6950 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6951 lt_cv_ld_force_load=yes
6952 else
6953 cat conftest.err >&5
6954 fi
6955 rm -f conftest.err libconftest.a conftest conftest.c
6956 rm -rf conftest.dSYM
6957
6958 fi
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6960 $as_echo "$lt_cv_ld_force_load" >&6; }
6961 case $host_os in
6962 rhapsody* | darwin1.[012])
6963 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6964 darwin1.*)
6965 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6966 darwin*) # darwin 5.x on
6967 # if running on 10.5 or later, the deployment target defaults
6968 # to the OS version, if on x86, and 10.4, the deployment
6969 # target defaults to 10.4. Don't you love it?
6970 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6971 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6972 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6973 10.[012]*)
6974 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6975 10.*)
6976 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6977 esac
6978 ;;
6979 esac
6980 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6981 _lt_dar_single_mod='$single_module'
6982 fi
6983 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6984 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6985 else
6986 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6987 fi
6988 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6989 _lt_dsymutil='~$DSYMUTIL $lib || :'
6990 else
6991 _lt_dsymutil=
6992 fi
6993 ;;
6994 esac
6995
6996 ac_ext=c
6997 ac_cpp='$CPP $CPPFLAGS'
6998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7002 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7003 # On Suns, sometimes $CPP names a directory.
7004 if test -n "$CPP" && test -d "$CPP"; then
7005 CPP=
7006 fi
7007 if test -z "$CPP"; then
7008 if ${ac_cv_prog_CPP+:} false; then :
7009 $as_echo_n "(cached) " >&6
7010 else
7011 # Double quotes because CPP needs to be expanded
7012 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7013 do
7014 ac_preproc_ok=false
7015 for ac_c_preproc_warn_flag in '' yes
7016 do
7017 # Use a header file that comes with gcc, so configuring glibc
7018 # with a fresh cross-compiler works.
7019 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7020 # <limits.h> exists even on freestanding compilers.
7021 # On the NeXT, cc -E runs the code through the compiler's parser,
7022 # not just through cpp. "Syntax error" is here to catch this case.
7023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7024 /* end confdefs.h. */
7025 #ifdef __STDC__
7026 # include <limits.h>
7027 #else
7028 # include <assert.h>
7029 #endif
7030 Syntax error
7031 _ACEOF
7032 if ac_fn_c_try_cpp "$LINENO"; then :
7033
7034 else
7035 # Broken: fails on valid input.
7036 continue
7037 fi
7038 rm -f conftest.err conftest.i conftest.$ac_ext
7039
7040 # OK, works on sane cases. Now check whether nonexistent headers
7041 # can be detected and how.
7042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7043 /* end confdefs.h. */
7044 #include <ac_nonexistent.h>
7045 _ACEOF
7046 if ac_fn_c_try_cpp "$LINENO"; then :
7047 # Broken: success on invalid input.
7048 continue
7049 else
7050 # Passes both tests.
7051 ac_preproc_ok=:
7052 break
7053 fi
7054 rm -f conftest.err conftest.i conftest.$ac_ext
7055
7056 done
7057 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7058 rm -f conftest.i conftest.err conftest.$ac_ext
7059 if $ac_preproc_ok; then :
7060 break
7061 fi
7062
7063 done
7064 ac_cv_prog_CPP=$CPP
7065
7066 fi
7067 CPP=$ac_cv_prog_CPP
7068 else
7069 ac_cv_prog_CPP=$CPP
7070 fi
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7072 $as_echo "$CPP" >&6; }
7073 ac_preproc_ok=false
7074 for ac_c_preproc_warn_flag in '' yes
7075 do
7076 # Use a header file that comes with gcc, so configuring glibc
7077 # with a fresh cross-compiler works.
7078 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7079 # <limits.h> exists even on freestanding compilers.
7080 # On the NeXT, cc -E runs the code through the compiler's parser,
7081 # not just through cpp. "Syntax error" is here to catch this case.
7082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7083 /* end confdefs.h. */
7084 #ifdef __STDC__
7085 # include <limits.h>
7086 #else
7087 # include <assert.h>
7088 #endif
7089 Syntax error
7090 _ACEOF
7091 if ac_fn_c_try_cpp "$LINENO"; then :
7092
7093 else
7094 # Broken: fails on valid input.
7095 continue
7096 fi
7097 rm -f conftest.err conftest.i conftest.$ac_ext
7098
7099 # OK, works on sane cases. Now check whether nonexistent headers
7100 # can be detected and how.
7101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7102 /* end confdefs.h. */
7103 #include <ac_nonexistent.h>
7104 _ACEOF
7105 if ac_fn_c_try_cpp "$LINENO"; then :
7106 # Broken: success on invalid input.
7107 continue
7108 else
7109 # Passes both tests.
7110 ac_preproc_ok=:
7111 break
7112 fi
7113 rm -f conftest.err conftest.i conftest.$ac_ext
7114
7115 done
7116 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7117 rm -f conftest.i conftest.err conftest.$ac_ext
7118 if $ac_preproc_ok; then :
7119
7120 else
7121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7123 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7124 See \`config.log' for more details" "$LINENO" 5; }
7125 fi
7126
7127 ac_ext=c
7128 ac_cpp='$CPP $CPPFLAGS'
7129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7132
7133
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7135 $as_echo_n "checking for ANSI C header files... " >&6; }
7136 if ${ac_cv_header_stdc+:} false; then :
7137 $as_echo_n "(cached) " >&6
7138 else
7139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7140 /* end confdefs.h. */
7141 #include <stdlib.h>
7142 #include <stdarg.h>
7143 #include <string.h>
7144 #include <float.h>
7145
7146 int
7147 main ()
7148 {
7149
7150 ;
7151 return 0;
7152 }
7153 _ACEOF
7154 if ac_fn_c_try_compile "$LINENO"; then :
7155 ac_cv_header_stdc=yes
7156 else
7157 ac_cv_header_stdc=no
7158 fi
7159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7160
7161 if test $ac_cv_header_stdc = yes; then
7162 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164 /* end confdefs.h. */
7165 #include <string.h>
7166
7167 _ACEOF
7168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7169 $EGREP "memchr" >/dev/null 2>&1; then :
7170
7171 else
7172 ac_cv_header_stdc=no
7173 fi
7174 rm -f conftest*
7175
7176 fi
7177
7178 if test $ac_cv_header_stdc = yes; then
7179 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7181 /* end confdefs.h. */
7182 #include <stdlib.h>
7183
7184 _ACEOF
7185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7186 $EGREP "free" >/dev/null 2>&1; then :
7187
7188 else
7189 ac_cv_header_stdc=no
7190 fi
7191 rm -f conftest*
7192
7193 fi
7194
7195 if test $ac_cv_header_stdc = yes; then
7196 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7197 if test "$cross_compiling" = yes; then :
7198 :
7199 else
7200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201 /* end confdefs.h. */
7202 #include <ctype.h>
7203 #include <stdlib.h>
7204 #if ((' ' & 0x0FF) == 0x020)
7205 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7206 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7207 #else
7208 # define ISLOWER(c) \
7209 (('a' <= (c) && (c) <= 'i') \
7210 || ('j' <= (c) && (c) <= 'r') \
7211 || ('s' <= (c) && (c) <= 'z'))
7212 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7213 #endif
7214
7215 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7216 int
7217 main ()
7218 {
7219 int i;
7220 for (i = 0; i < 256; i++)
7221 if (XOR (islower (i), ISLOWER (i))
7222 || toupper (i) != TOUPPER (i))
7223 return 2;
7224 return 0;
7225 }
7226 _ACEOF
7227 if ac_fn_c_try_run "$LINENO"; then :
7228
7229 else
7230 ac_cv_header_stdc=no
7231 fi
7232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7233 conftest.$ac_objext conftest.beam conftest.$ac_ext
7234 fi
7235
7236 fi
7237 fi
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7239 $as_echo "$ac_cv_header_stdc" >&6; }
7240 if test $ac_cv_header_stdc = yes; then
7241
7242 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7243
7244 fi
7245
7246 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7247 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7248 inttypes.h stdint.h unistd.h
7249 do :
7250 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7251 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7252 "
7253 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7254 cat >>confdefs.h <<_ACEOF
7255 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7256 _ACEOF
7257
7258 fi
7259
7260 done
7261
7262
7263 for ac_header in dlfcn.h
7264 do :
7265 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7266 "
7267 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7268 cat >>confdefs.h <<_ACEOF
7269 #define HAVE_DLFCN_H 1
7270 _ACEOF
7271
7272 fi
7273
7274 done
7275
7276
7277
7278
7279
7280 # Set options
7281
7282
7283
7284 enable_dlopen=no
7285
7286
7287 enable_win32_dll=no
7288
7289
7290 # Check whether --enable-shared was given.
7291 if test "${enable_shared+set}" = set; then :
7292 enableval=$enable_shared; p=${PACKAGE-default}
7293 case $enableval in
7294 yes) enable_shared=yes ;;
7295 no) enable_shared=no ;;
7296 *)
7297 enable_shared=no
7298 # Look at the argument we got. We use all the common list separators.
7299 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7300 for pkg in $enableval; do
7301 IFS="$lt_save_ifs"
7302 if test "X$pkg" = "X$p"; then
7303 enable_shared=yes
7304 fi
7305 done
7306 IFS="$lt_save_ifs"
7307 ;;
7308 esac
7309 else
7310 enable_shared=yes
7311 fi
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321 # Check whether --enable-static was given.
7322 if test "${enable_static+set}" = set; then :
7323 enableval=$enable_static; p=${PACKAGE-default}
7324 case $enableval in
7325 yes) enable_static=yes ;;
7326 no) enable_static=no ;;
7327 *)
7328 enable_static=no
7329 # Look at the argument we got. We use all the common list separators.
7330 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7331 for pkg in $enableval; do
7332 IFS="$lt_save_ifs"
7333 if test "X$pkg" = "X$p"; then
7334 enable_static=yes
7335 fi
7336 done
7337 IFS="$lt_save_ifs"
7338 ;;
7339 esac
7340 else
7341 enable_static=yes
7342 fi
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353 # Check whether --with-pic was given.
7354 if test "${with_pic+set}" = set; then :
7355 withval=$with_pic; lt_p=${PACKAGE-default}
7356 case $withval in
7357 yes|no) pic_mode=$withval ;;
7358 *)
7359 pic_mode=default
7360 # Look at the argument we got. We use all the common list separators.
7361 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7362 for lt_pkg in $withval; do
7363 IFS="$lt_save_ifs"
7364 if test "X$lt_pkg" = "X$lt_p"; then
7365 pic_mode=yes
7366 fi
7367 done
7368 IFS="$lt_save_ifs"
7369 ;;
7370 esac
7371 else
7372 pic_mode=default
7373 fi
7374
7375
7376 test -z "$pic_mode" && pic_mode=default
7377
7378
7379
7380
7381
7382
7383
7384 # Check whether --enable-fast-install was given.
7385 if test "${enable_fast_install+set}" = set; then :
7386 enableval=$enable_fast_install; p=${PACKAGE-default}
7387 case $enableval in
7388 yes) enable_fast_install=yes ;;
7389 no) enable_fast_install=no ;;
7390 *)
7391 enable_fast_install=no
7392 # Look at the argument we got. We use all the common list separators.
7393 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7394 for pkg in $enableval; do
7395 IFS="$lt_save_ifs"
7396 if test "X$pkg" = "X$p"; then
7397 enable_fast_install=yes
7398 fi
7399 done
7400 IFS="$lt_save_ifs"
7401 ;;
7402 esac
7403 else
7404 enable_fast_install=yes
7405 fi
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417 # This can be used to rebuild libtool when needed
7418 LIBTOOL_DEPS="$ltmain"
7419
7420 # Always use our own libtool.
7421 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452 test -z "$LN_S" && LN_S="ln -s"
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467 if test -n "${ZSH_VERSION+set}" ; then
7468 setopt NO_GLOB_SUBST
7469 fi
7470
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7472 $as_echo_n "checking for objdir... " >&6; }
7473 if ${lt_cv_objdir+:} false; then :
7474 $as_echo_n "(cached) " >&6
7475 else
7476 rm -f .libs 2>/dev/null
7477 mkdir .libs 2>/dev/null
7478 if test -d .libs; then
7479 lt_cv_objdir=.libs
7480 else
7481 # MS-DOS does not allow filenames that begin with a dot.
7482 lt_cv_objdir=_libs
7483 fi
7484 rmdir .libs 2>/dev/null
7485 fi
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7487 $as_echo "$lt_cv_objdir" >&6; }
7488 objdir=$lt_cv_objdir
7489
7490
7491
7492
7493
7494 cat >>confdefs.h <<_ACEOF
7495 #define LT_OBJDIR "$lt_cv_objdir/"
7496 _ACEOF
7497
7498
7499
7500
7501 case $host_os in
7502 aix3*)
7503 # AIX sometimes has problems with the GCC collect2 program. For some
7504 # reason, if we set the COLLECT_NAMES environment variable, the problems
7505 # vanish in a puff of smoke.
7506 if test "X${COLLECT_NAMES+set}" != Xset; then
7507 COLLECT_NAMES=
7508 export COLLECT_NAMES
7509 fi
7510 ;;
7511 esac
7512
7513 # Global variables:
7514 ofile=libtool
7515 can_build_shared=yes
7516
7517 # All known linkers require a `.a' archive for static linking (except MSVC,
7518 # which needs '.lib').
7519 libext=a
7520
7521 with_gnu_ld="$lt_cv_prog_gnu_ld"
7522
7523 old_CC="$CC"
7524 old_CFLAGS="$CFLAGS"
7525
7526 # Set sane defaults for various variables
7527 test -z "$CC" && CC=cc
7528 test -z "$LTCC" && LTCC=$CC
7529 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7530 test -z "$LD" && LD=ld
7531 test -z "$ac_objext" && ac_objext=o
7532
7533 for cc_temp in $compiler""; do
7534 case $cc_temp in
7535 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7536 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7537 \-*) ;;
7538 *) break;;
7539 esac
7540 done
7541 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7542
7543
7544 # Only perform the check for file, if the check method requires it
7545 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7546 case $deplibs_check_method in
7547 file_magic*)
7548 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7550 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7551 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7552 $as_echo_n "(cached) " >&6
7553 else
7554 case $MAGIC_CMD in
7555 [\\/*] | ?:[\\/]*)
7556 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7557 ;;
7558 *)
7559 lt_save_MAGIC_CMD="$MAGIC_CMD"
7560 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7561 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7562 for ac_dir in $ac_dummy; do
7563 IFS="$lt_save_ifs"
7564 test -z "$ac_dir" && ac_dir=.
7565 if test -f $ac_dir/${ac_tool_prefix}file; then
7566 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7567 if test -n "$file_magic_test_file"; then
7568 case $deplibs_check_method in
7569 "file_magic "*)
7570 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7571 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7572 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7573 $EGREP "$file_magic_regex" > /dev/null; then
7574 :
7575 else
7576 cat <<_LT_EOF 1>&2
7577
7578 *** Warning: the command libtool uses to detect shared libraries,
7579 *** $file_magic_cmd, produces output that libtool cannot recognize.
7580 *** The result is that libtool may fail to recognize shared libraries
7581 *** as such. This will affect the creation of libtool libraries that
7582 *** depend on shared libraries, but programs linked with such libtool
7583 *** libraries will work regardless of this problem. Nevertheless, you
7584 *** may want to report the problem to your system manager and/or to
7585 *** bug-libtool@gnu.org
7586
7587 _LT_EOF
7588 fi ;;
7589 esac
7590 fi
7591 break
7592 fi
7593 done
7594 IFS="$lt_save_ifs"
7595 MAGIC_CMD="$lt_save_MAGIC_CMD"
7596 ;;
7597 esac
7598 fi
7599
7600 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7601 if test -n "$MAGIC_CMD"; then
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7603 $as_echo "$MAGIC_CMD" >&6; }
7604 else
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7606 $as_echo "no" >&6; }
7607 fi
7608
7609
7610
7611
7612
7613 if test -z "$lt_cv_path_MAGIC_CMD"; then
7614 if test -n "$ac_tool_prefix"; then
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7616 $as_echo_n "checking for file... " >&6; }
7617 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7618 $as_echo_n "(cached) " >&6
7619 else
7620 case $MAGIC_CMD in
7621 [\\/*] | ?:[\\/]*)
7622 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7623 ;;
7624 *)
7625 lt_save_MAGIC_CMD="$MAGIC_CMD"
7626 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7627 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7628 for ac_dir in $ac_dummy; do
7629 IFS="$lt_save_ifs"
7630 test -z "$ac_dir" && ac_dir=.
7631 if test -f $ac_dir/file; then
7632 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7633 if test -n "$file_magic_test_file"; then
7634 case $deplibs_check_method in
7635 "file_magic "*)
7636 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7637 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7638 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7639 $EGREP "$file_magic_regex" > /dev/null; then
7640 :
7641 else
7642 cat <<_LT_EOF 1>&2
7643
7644 *** Warning: the command libtool uses to detect shared libraries,
7645 *** $file_magic_cmd, produces output that libtool cannot recognize.
7646 *** The result is that libtool may fail to recognize shared libraries
7647 *** as such. This will affect the creation of libtool libraries that
7648 *** depend on shared libraries, but programs linked with such libtool
7649 *** libraries will work regardless of this problem. Nevertheless, you
7650 *** may want to report the problem to your system manager and/or to
7651 *** bug-libtool@gnu.org
7652
7653 _LT_EOF
7654 fi ;;
7655 esac
7656 fi
7657 break
7658 fi
7659 done
7660 IFS="$lt_save_ifs"
7661 MAGIC_CMD="$lt_save_MAGIC_CMD"
7662 ;;
7663 esac
7664 fi
7665
7666 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7667 if test -n "$MAGIC_CMD"; then
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7669 $as_echo "$MAGIC_CMD" >&6; }
7670 else
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7672 $as_echo "no" >&6; }
7673 fi
7674
7675
7676 else
7677 MAGIC_CMD=:
7678 fi
7679 fi
7680
7681 fi
7682 ;;
7683 esac
7684
7685 # Use C for the default configuration in the libtool script
7686
7687 lt_save_CC="$CC"
7688 ac_ext=c
7689 ac_cpp='$CPP $CPPFLAGS'
7690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7693
7694
7695 # Source file extension for C test sources.
7696 ac_ext=c
7697
7698 # Object file extension for compiled C test sources.
7699 objext=o
7700 objext=$objext
7701
7702 # Code to be used in simple compile tests
7703 lt_simple_compile_test_code="int some_variable = 0;"
7704
7705 # Code to be used in simple link tests
7706 lt_simple_link_test_code='int main(){return(0);}'
7707
7708
7709
7710
7711
7712
7713
7714 # If no C compiler was specified, use CC.
7715 LTCC=${LTCC-"$CC"}
7716
7717 # If no C compiler flags were specified, use CFLAGS.
7718 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7719
7720 # Allow CC to be a program name with arguments.
7721 compiler=$CC
7722
7723 # Save the default compiler, since it gets overwritten when the other
7724 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7725 compiler_DEFAULT=$CC
7726
7727 # save warnings/boilerplate of simple test code
7728 ac_outfile=conftest.$ac_objext
7729 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7730 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7731 _lt_compiler_boilerplate=`cat conftest.err`
7732 $RM conftest*
7733
7734 ac_outfile=conftest.$ac_objext
7735 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7736 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7737 _lt_linker_boilerplate=`cat conftest.err`
7738 $RM -r conftest*
7739
7740
7741 if test -n "$compiler"; then
7742
7743 lt_prog_compiler_no_builtin_flag=
7744
7745 if test "$GCC" = yes; then
7746 case $cc_basename in
7747 nvcc*)
7748 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7749 *)
7750 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7751 esac
7752
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7754 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7755 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7756 $as_echo_n "(cached) " >&6
7757 else
7758 lt_cv_prog_compiler_rtti_exceptions=no
7759 ac_outfile=conftest.$ac_objext
7760 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7761 lt_compiler_flag="-fno-rtti -fno-exceptions"
7762 # Insert the option either (1) after the last *FLAGS variable, or
7763 # (2) before a word containing "conftest.", or (3) at the end.
7764 # Note that $ac_compile itself does not contain backslashes and begins
7765 # with a dollar sign (not a hyphen), so the echo should work correctly.
7766 # The option is referenced via a variable to avoid confusing sed.
7767 lt_compile=`echo "$ac_compile" | $SED \
7768 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7769 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7770 -e 's:$: $lt_compiler_flag:'`
7771 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7772 (eval "$lt_compile" 2>conftest.err)
7773 ac_status=$?
7774 cat conftest.err >&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 if (exit $ac_status) && test -s "$ac_outfile"; then
7777 # The compiler can only warn and ignore the option if not recognized
7778 # So say no if there are warnings other than the usual output.
7779 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7780 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7781 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7782 lt_cv_prog_compiler_rtti_exceptions=yes
7783 fi
7784 fi
7785 $RM conftest*
7786
7787 fi
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7789 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7790
7791 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7792 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7793 else
7794 :
7795 fi
7796
7797 fi
7798
7799
7800
7801
7802
7803
7804 lt_prog_compiler_wl=
7805 lt_prog_compiler_pic=
7806 lt_prog_compiler_static=
7807
7808
7809 if test "$GCC" = yes; then
7810 lt_prog_compiler_wl='-Wl,'
7811 lt_prog_compiler_static='-static'
7812
7813 case $host_os in
7814 aix*)
7815 # All AIX code is PIC.
7816 if test "$host_cpu" = ia64; then
7817 # AIX 5 now supports IA64 processor
7818 lt_prog_compiler_static='-Bstatic'
7819 fi
7820 ;;
7821
7822 amigaos*)
7823 case $host_cpu in
7824 powerpc)
7825 # see comment about AmigaOS4 .so support
7826 lt_prog_compiler_pic='-fPIC'
7827 ;;
7828 m68k)
7829 # FIXME: we need at least 68020 code to build shared libraries, but
7830 # adding the `-m68020' flag to GCC prevents building anything better,
7831 # like `-m68040'.
7832 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7833 ;;
7834 esac
7835 ;;
7836
7837 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7838 # PIC is the default for these OSes.
7839 ;;
7840
7841 mingw* | cygwin* | pw32* | os2* | cegcc*)
7842 # This hack is so that the source file can tell whether it is being
7843 # built for inclusion in a dll (and should export symbols for example).
7844 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7845 # (--disable-auto-import) libraries
7846 lt_prog_compiler_pic='-DDLL_EXPORT'
7847 ;;
7848
7849 darwin* | rhapsody*)
7850 # PIC is the default on this platform
7851 # Common symbols not allowed in MH_DYLIB files
7852 lt_prog_compiler_pic='-fno-common'
7853 ;;
7854
7855 haiku*)
7856 # PIC is the default for Haiku.
7857 # The "-static" flag exists, but is broken.
7858 lt_prog_compiler_static=
7859 ;;
7860
7861 hpux*)
7862 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7863 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7864 # sets the default TLS model and affects inlining.
7865 case $host_cpu in
7866 hppa*64*)
7867 # +Z the default
7868 ;;
7869 *)
7870 lt_prog_compiler_pic='-fPIC'
7871 ;;
7872 esac
7873 ;;
7874
7875 interix[3-9]*)
7876 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7877 # Instead, we relocate shared libraries at runtime.
7878 ;;
7879
7880 msdosdjgpp*)
7881 # Just because we use GCC doesn't mean we suddenly get shared libraries
7882 # on systems that don't support them.
7883 lt_prog_compiler_can_build_shared=no
7884 enable_shared=no
7885 ;;
7886
7887 *nto* | *qnx*)
7888 # QNX uses GNU C++, but need to define -shared option too, otherwise
7889 # it will coredump.
7890 lt_prog_compiler_pic='-fPIC -shared'
7891 ;;
7892
7893 sysv4*MP*)
7894 if test -d /usr/nec; then
7895 lt_prog_compiler_pic=-Kconform_pic
7896 fi
7897 ;;
7898
7899 *)
7900 lt_prog_compiler_pic='-fPIC'
7901 ;;
7902 esac
7903
7904 case $cc_basename in
7905 nvcc*) # Cuda Compiler Driver 2.2
7906 lt_prog_compiler_wl='-Xlinker '
7907 if test -n "$lt_prog_compiler_pic"; then
7908 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7909 fi
7910 ;;
7911 esac
7912 else
7913 # PORTME Check for flag to pass linker flags through the system compiler.
7914 case $host_os in
7915 aix*)
7916 lt_prog_compiler_wl='-Wl,'
7917 if test "$host_cpu" = ia64; then
7918 # AIX 5 now supports IA64 processor
7919 lt_prog_compiler_static='-Bstatic'
7920 else
7921 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7922 fi
7923 ;;
7924
7925 mingw* | cygwin* | pw32* | os2* | cegcc*)
7926 # This hack is so that the source file can tell whether it is being
7927 # built for inclusion in a dll (and should export symbols for example).
7928 lt_prog_compiler_pic='-DDLL_EXPORT'
7929 ;;
7930
7931 hpux9* | hpux10* | hpux11*)
7932 lt_prog_compiler_wl='-Wl,'
7933 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7934 # not for PA HP-UX.
7935 case $host_cpu in
7936 hppa*64*|ia64*)
7937 # +Z the default
7938 ;;
7939 *)
7940 lt_prog_compiler_pic='+Z'
7941 ;;
7942 esac
7943 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7944 lt_prog_compiler_static='${wl}-a ${wl}archive'
7945 ;;
7946
7947 irix5* | irix6* | nonstopux*)
7948 lt_prog_compiler_wl='-Wl,'
7949 # PIC (with -KPIC) is the default.
7950 lt_prog_compiler_static='-non_shared'
7951 ;;
7952
7953 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7954 case $cc_basename in
7955 # old Intel for x86_64 which still supported -KPIC.
7956 ecc*)
7957 lt_prog_compiler_wl='-Wl,'
7958 lt_prog_compiler_pic='-KPIC'
7959 lt_prog_compiler_static='-static'
7960 ;;
7961 # icc used to be incompatible with GCC.
7962 # ICC 10 doesn't accept -KPIC any more.
7963 icc* | ifort*)
7964 lt_prog_compiler_wl='-Wl,'
7965 lt_prog_compiler_pic='-fPIC'
7966 lt_prog_compiler_static='-static'
7967 ;;
7968 # Lahey Fortran 8.1.
7969 lf95*)
7970 lt_prog_compiler_wl='-Wl,'
7971 lt_prog_compiler_pic='--shared'
7972 lt_prog_compiler_static='--static'
7973 ;;
7974 nagfor*)
7975 # NAG Fortran compiler
7976 lt_prog_compiler_wl='-Wl,-Wl,,'
7977 lt_prog_compiler_pic='-PIC'
7978 lt_prog_compiler_static='-Bstatic'
7979 ;;
7980 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7981 # Portland Group compilers (*not* the Pentium gcc compiler,
7982 # which looks to be a dead project)
7983 lt_prog_compiler_wl='-Wl,'
7984 lt_prog_compiler_pic='-fpic'
7985 lt_prog_compiler_static='-Bstatic'
7986 ;;
7987 ccc*)
7988 lt_prog_compiler_wl='-Wl,'
7989 # All Alpha code is PIC.
7990 lt_prog_compiler_static='-non_shared'
7991 ;;
7992 xl* | bgxl* | bgf* | mpixl*)
7993 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7994 lt_prog_compiler_wl='-Wl,'
7995 lt_prog_compiler_pic='-qpic'
7996 lt_prog_compiler_static='-qstaticlink'
7997 ;;
7998 *)
7999 case `$CC -V 2>&1 | sed 5q` in
8000 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8001 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8002 lt_prog_compiler_pic='-KPIC'
8003 lt_prog_compiler_static='-Bstatic'
8004 lt_prog_compiler_wl=''
8005 ;;
8006 *Sun\ F* | *Sun*Fortran*)
8007 lt_prog_compiler_pic='-KPIC'
8008 lt_prog_compiler_static='-Bstatic'
8009 lt_prog_compiler_wl='-Qoption ld '
8010 ;;
8011 *Sun\ C*)
8012 # Sun C 5.9
8013 lt_prog_compiler_pic='-KPIC'
8014 lt_prog_compiler_static='-Bstatic'
8015 lt_prog_compiler_wl='-Wl,'
8016 ;;
8017 *Intel*\ [CF]*Compiler*)
8018 lt_prog_compiler_wl='-Wl,'
8019 lt_prog_compiler_pic='-fPIC'
8020 lt_prog_compiler_static='-static'
8021 ;;
8022 *Portland\ Group*)
8023 lt_prog_compiler_wl='-Wl,'
8024 lt_prog_compiler_pic='-fpic'
8025 lt_prog_compiler_static='-Bstatic'
8026 ;;
8027 esac
8028 ;;
8029 esac
8030 ;;
8031
8032 newsos6)
8033 lt_prog_compiler_pic='-KPIC'
8034 lt_prog_compiler_static='-Bstatic'
8035 ;;
8036
8037 *nto* | *qnx*)
8038 # QNX uses GNU C++, but need to define -shared option too, otherwise
8039 # it will coredump.
8040 lt_prog_compiler_pic='-fPIC -shared'
8041 ;;
8042
8043 osf3* | osf4* | osf5*)
8044 lt_prog_compiler_wl='-Wl,'
8045 # All OSF/1 code is PIC.
8046 lt_prog_compiler_static='-non_shared'
8047 ;;
8048
8049 rdos*)
8050 lt_prog_compiler_static='-non_shared'
8051 ;;
8052
8053 solaris*)
8054 lt_prog_compiler_pic='-KPIC'
8055 lt_prog_compiler_static='-Bstatic'
8056 case $cc_basename in
8057 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8058 lt_prog_compiler_wl='-Qoption ld ';;
8059 *)
8060 lt_prog_compiler_wl='-Wl,';;
8061 esac
8062 ;;
8063
8064 sunos4*)
8065 lt_prog_compiler_wl='-Qoption ld '
8066 lt_prog_compiler_pic='-PIC'
8067 lt_prog_compiler_static='-Bstatic'
8068 ;;
8069
8070 sysv4 | sysv4.2uw2* | sysv4.3*)
8071 lt_prog_compiler_wl='-Wl,'
8072 lt_prog_compiler_pic='-KPIC'
8073 lt_prog_compiler_static='-Bstatic'
8074 ;;
8075
8076 sysv4*MP*)
8077 if test -d /usr/nec ;then
8078 lt_prog_compiler_pic='-Kconform_pic'
8079 lt_prog_compiler_static='-Bstatic'
8080 fi
8081 ;;
8082
8083 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8084 lt_prog_compiler_wl='-Wl,'
8085 lt_prog_compiler_pic='-KPIC'
8086 lt_prog_compiler_static='-Bstatic'
8087 ;;
8088
8089 unicos*)
8090 lt_prog_compiler_wl='-Wl,'
8091 lt_prog_compiler_can_build_shared=no
8092 ;;
8093
8094 uts4*)
8095 lt_prog_compiler_pic='-pic'
8096 lt_prog_compiler_static='-Bstatic'
8097 ;;
8098
8099 *)
8100 lt_prog_compiler_can_build_shared=no
8101 ;;
8102 esac
8103 fi
8104
8105 case $host_os in
8106 # For platforms which do not support PIC, -DPIC is meaningless:
8107 *djgpp*)
8108 lt_prog_compiler_pic=
8109 ;;
8110 *)
8111 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8112 ;;
8113 esac
8114
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8116 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8117 if ${lt_cv_prog_compiler_pic+:} false; then :
8118 $as_echo_n "(cached) " >&6
8119 else
8120 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8121 fi
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8123 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8124 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8125
8126 #
8127 # Check to make sure the PIC flag actually works.
8128 #
8129 if test -n "$lt_prog_compiler_pic"; then
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8131 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8132 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8133 $as_echo_n "(cached) " >&6
8134 else
8135 lt_cv_prog_compiler_pic_works=no
8136 ac_outfile=conftest.$ac_objext
8137 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8138 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8139 # Insert the option either (1) after the last *FLAGS variable, or
8140 # (2) before a word containing "conftest.", or (3) at the end.
8141 # Note that $ac_compile itself does not contain backslashes and begins
8142 # with a dollar sign (not a hyphen), so the echo should work correctly.
8143 # The option is referenced via a variable to avoid confusing sed.
8144 lt_compile=`echo "$ac_compile" | $SED \
8145 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8146 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8147 -e 's:$: $lt_compiler_flag:'`
8148 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8149 (eval "$lt_compile" 2>conftest.err)
8150 ac_status=$?
8151 cat conftest.err >&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 if (exit $ac_status) && test -s "$ac_outfile"; then
8154 # The compiler can only warn and ignore the option if not recognized
8155 # So say no if there are warnings other than the usual output.
8156 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8157 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8158 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8159 lt_cv_prog_compiler_pic_works=yes
8160 fi
8161 fi
8162 $RM conftest*
8163
8164 fi
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8166 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8167
8168 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8169 case $lt_prog_compiler_pic in
8170 "" | " "*) ;;
8171 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8172 esac
8173 else
8174 lt_prog_compiler_pic=
8175 lt_prog_compiler_can_build_shared=no
8176 fi
8177
8178 fi
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190 #
8191 # Check to make sure the static flag actually works.
8192 #
8193 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8195 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8196 if ${lt_cv_prog_compiler_static_works+:} false; then :
8197 $as_echo_n "(cached) " >&6
8198 else
8199 lt_cv_prog_compiler_static_works=no
8200 save_LDFLAGS="$LDFLAGS"
8201 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8202 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8203 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8204 # The linker can only warn and ignore the option if not recognized
8205 # So say no if there are warnings
8206 if test -s conftest.err; then
8207 # Append any errors to the config.log.
8208 cat conftest.err 1>&5
8209 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8210 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8211 if diff conftest.exp conftest.er2 >/dev/null; then
8212 lt_cv_prog_compiler_static_works=yes
8213 fi
8214 else
8215 lt_cv_prog_compiler_static_works=yes
8216 fi
8217 fi
8218 $RM -r conftest*
8219 LDFLAGS="$save_LDFLAGS"
8220
8221 fi
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8223 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8224
8225 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8226 :
8227 else
8228 lt_prog_compiler_static=
8229 fi
8230
8231
8232
8233
8234
8235
8236
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8238 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8239 if ${lt_cv_prog_compiler_c_o+:} false; then :
8240 $as_echo_n "(cached) " >&6
8241 else
8242 lt_cv_prog_compiler_c_o=no
8243 $RM -r conftest 2>/dev/null
8244 mkdir conftest
8245 cd conftest
8246 mkdir out
8247 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8248
8249 lt_compiler_flag="-o out/conftest2.$ac_objext"
8250 # Insert the option either (1) after the last *FLAGS variable, or
8251 # (2) before a word containing "conftest.", or (3) at the end.
8252 # Note that $ac_compile itself does not contain backslashes and begins
8253 # with a dollar sign (not a hyphen), so the echo should work correctly.
8254 lt_compile=`echo "$ac_compile" | $SED \
8255 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8256 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8257 -e 's:$: $lt_compiler_flag:'`
8258 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8259 (eval "$lt_compile" 2>out/conftest.err)
8260 ac_status=$?
8261 cat out/conftest.err >&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8264 then
8265 # The compiler can only warn and ignore the option if not recognized
8266 # So say no if there are warnings
8267 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8268 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8269 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8270 lt_cv_prog_compiler_c_o=yes
8271 fi
8272 fi
8273 chmod u+w . 2>&5
8274 $RM conftest*
8275 # SGI C++ compiler will create directory out/ii_files/ for
8276 # template instantiation
8277 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8278 $RM out/* && rmdir out
8279 cd ..
8280 $RM -r conftest
8281 $RM conftest*
8282
8283 fi
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8285 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8286
8287
8288
8289
8290
8291
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8293 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8294 if ${lt_cv_prog_compiler_c_o+:} false; then :
8295 $as_echo_n "(cached) " >&6
8296 else
8297 lt_cv_prog_compiler_c_o=no
8298 $RM -r conftest 2>/dev/null
8299 mkdir conftest
8300 cd conftest
8301 mkdir out
8302 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8303
8304 lt_compiler_flag="-o out/conftest2.$ac_objext"
8305 # Insert the option either (1) after the last *FLAGS variable, or
8306 # (2) before a word containing "conftest.", or (3) at the end.
8307 # Note that $ac_compile itself does not contain backslashes and begins
8308 # with a dollar sign (not a hyphen), so the echo should work correctly.
8309 lt_compile=`echo "$ac_compile" | $SED \
8310 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8311 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8312 -e 's:$: $lt_compiler_flag:'`
8313 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8314 (eval "$lt_compile" 2>out/conftest.err)
8315 ac_status=$?
8316 cat out/conftest.err >&5
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8319 then
8320 # The compiler can only warn and ignore the option if not recognized
8321 # So say no if there are warnings
8322 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8323 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8324 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8325 lt_cv_prog_compiler_c_o=yes
8326 fi
8327 fi
8328 chmod u+w . 2>&5
8329 $RM conftest*
8330 # SGI C++ compiler will create directory out/ii_files/ for
8331 # template instantiation
8332 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8333 $RM out/* && rmdir out
8334 cd ..
8335 $RM -r conftest
8336 $RM conftest*
8337
8338 fi
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8340 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8341
8342
8343
8344
8345 hard_links="nottested"
8346 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8347 # do not overwrite the value of need_locks provided by the user
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8349 $as_echo_n "checking if we can lock with hard links... " >&6; }
8350 hard_links=yes
8351 $RM conftest*
8352 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8353 touch conftest.a
8354 ln conftest.a conftest.b 2>&5 || hard_links=no
8355 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8357 $as_echo "$hard_links" >&6; }
8358 if test "$hard_links" = no; then
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8360 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8361 need_locks=warn
8362 fi
8363 else
8364 need_locks=no
8365 fi
8366
8367
8368
8369
8370
8371
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8373 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8374
8375 runpath_var=
8376 allow_undefined_flag=
8377 always_export_symbols=no
8378 archive_cmds=
8379 archive_expsym_cmds=
8380 compiler_needs_object=no
8381 enable_shared_with_static_runtimes=no
8382 export_dynamic_flag_spec=
8383 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8384 hardcode_automatic=no
8385 hardcode_direct=no
8386 hardcode_direct_absolute=no
8387 hardcode_libdir_flag_spec=
8388 hardcode_libdir_separator=
8389 hardcode_minus_L=no
8390 hardcode_shlibpath_var=unsupported
8391 inherit_rpath=no
8392 link_all_deplibs=unknown
8393 module_cmds=
8394 module_expsym_cmds=
8395 old_archive_from_new_cmds=
8396 old_archive_from_expsyms_cmds=
8397 thread_safe_flag_spec=
8398 whole_archive_flag_spec=
8399 # include_expsyms should be a list of space-separated symbols to be *always*
8400 # included in the symbol list
8401 include_expsyms=
8402 # exclude_expsyms can be an extended regexp of symbols to exclude
8403 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8404 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8405 # as well as any symbol that contains `d'.
8406 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8407 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8408 # platforms (ab)use it in PIC code, but their linkers get confused if
8409 # the symbol is explicitly referenced. Since portable code cannot
8410 # rely on this symbol name, it's probably fine to never include it in
8411 # preloaded symbol tables.
8412 # Exclude shared library initialization/finalization symbols.
8413 extract_expsyms_cmds=
8414
8415 case $host_os in
8416 cygwin* | mingw* | pw32* | cegcc*)
8417 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8418 # When not using gcc, we currently assume that we are using
8419 # Microsoft Visual C++.
8420 if test "$GCC" != yes; then
8421 with_gnu_ld=no
8422 fi
8423 ;;
8424 interix*)
8425 # we just hope/assume this is gcc and not c89 (= MSVC++)
8426 with_gnu_ld=yes
8427 ;;
8428 openbsd*)
8429 with_gnu_ld=no
8430 ;;
8431 esac
8432
8433 ld_shlibs=yes
8434
8435 # On some targets, GNU ld is compatible enough with the native linker
8436 # that we're better off using the native interface for both.
8437 lt_use_gnu_ld_interface=no
8438 if test "$with_gnu_ld" = yes; then
8439 case $host_os in
8440 aix*)
8441 # The AIX port of GNU ld has always aspired to compatibility
8442 # with the native linker. However, as the warning in the GNU ld
8443 # block says, versions before 2.19.5* couldn't really create working
8444 # shared libraries, regardless of the interface used.
8445 case `$LD -v 2>&1` in
8446 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8447 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8448 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8449 *)
8450 lt_use_gnu_ld_interface=yes
8451 ;;
8452 esac
8453 ;;
8454 *)
8455 lt_use_gnu_ld_interface=yes
8456 ;;
8457 esac
8458 fi
8459
8460 if test "$lt_use_gnu_ld_interface" = yes; then
8461 # If archive_cmds runs LD, not CC, wlarc should be empty
8462 wlarc='${wl}'
8463
8464 # Set some defaults for GNU ld with shared library support. These
8465 # are reset later if shared libraries are not supported. Putting them
8466 # here allows them to be overridden if necessary.
8467 runpath_var=LD_RUN_PATH
8468 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8469 export_dynamic_flag_spec='${wl}--export-dynamic'
8470 # ancient GNU ld didn't support --whole-archive et. al.
8471 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8472 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8473 else
8474 whole_archive_flag_spec=
8475 fi
8476 supports_anon_versioning=no
8477 case `$LD -v 2>&1` in
8478 *GNU\ gold*) supports_anon_versioning=yes ;;
8479 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8480 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8481 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8482 *\ 2.11.*) ;; # other 2.11 versions
8483 *) supports_anon_versioning=yes ;;
8484 esac
8485
8486 # See if GNU ld supports shared libraries.
8487 case $host_os in
8488 aix[3-9]*)
8489 # On AIX/PPC, the GNU linker is very broken
8490 if test "$host_cpu" != ia64; then
8491 ld_shlibs=no
8492 cat <<_LT_EOF 1>&2
8493
8494 *** Warning: the GNU linker, at least up to release 2.19, is reported
8495 *** to be unable to reliably create shared libraries on AIX.
8496 *** Therefore, libtool is disabling shared libraries support. If you
8497 *** really care for shared libraries, you may want to install binutils
8498 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8499 *** You will then need to restart the configuration process.
8500
8501 _LT_EOF
8502 fi
8503 ;;
8504
8505 amigaos*)
8506 case $host_cpu in
8507 powerpc)
8508 # see comment about AmigaOS4 .so support
8509 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8510 archive_expsym_cmds=''
8511 ;;
8512 m68k)
8513 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)'
8514 hardcode_libdir_flag_spec='-L$libdir'
8515 hardcode_minus_L=yes
8516 ;;
8517 esac
8518 ;;
8519
8520 beos*)
8521 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8522 allow_undefined_flag=unsupported
8523 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8524 # support --undefined. This deserves some investigation. FIXME
8525 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8526 else
8527 ld_shlibs=no
8528 fi
8529 ;;
8530
8531 cygwin* | mingw* | pw32* | cegcc*)
8532 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8533 # as there is no search path for DLLs.
8534 hardcode_libdir_flag_spec='-L$libdir'
8535 export_dynamic_flag_spec='${wl}--export-all-symbols'
8536 allow_undefined_flag=unsupported
8537 always_export_symbols=no
8538 enable_shared_with_static_runtimes=yes
8539 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'
8540 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8541
8542 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8543 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8544 # If the export-symbols file already is a .def file (1st line
8545 # is EXPORTS), use it as is; otherwise, prepend...
8546 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8547 cp $export_symbols $output_objdir/$soname.def;
8548 else
8549 echo EXPORTS > $output_objdir/$soname.def;
8550 cat $export_symbols >> $output_objdir/$soname.def;
8551 fi~
8552 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8553 else
8554 ld_shlibs=no
8555 fi
8556 ;;
8557
8558 haiku*)
8559 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8560 link_all_deplibs=yes
8561 ;;
8562
8563 interix[3-9]*)
8564 hardcode_direct=no
8565 hardcode_shlibpath_var=no
8566 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8567 export_dynamic_flag_spec='${wl}-E'
8568 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8569 # Instead, shared libraries are loaded at an image base (0x10000000 by
8570 # default) and relocated if they conflict, which is a slow very memory
8571 # consuming and fragmenting process. To avoid this, we pick a random,
8572 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8573 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8574 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8575 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'
8576 ;;
8577
8578 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8579 tmp_diet=no
8580 if test "$host_os" = linux-dietlibc; then
8581 case $cc_basename in
8582 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8583 esac
8584 fi
8585 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8586 && test "$tmp_diet" = no
8587 then
8588 tmp_addflag=' $pic_flag'
8589 tmp_sharedflag='-shared'
8590 case $cc_basename,$host_cpu in
8591 pgcc*) # Portland Group C compiler
8592 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'
8593 tmp_addflag=' $pic_flag'
8594 ;;
8595 pgf77* | pgf90* | pgf95* | pgfortran*)
8596 # Portland Group f77 and f90 compilers
8597 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'
8598 tmp_addflag=' $pic_flag -Mnomain' ;;
8599 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8600 tmp_addflag=' -i_dynamic' ;;
8601 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8602 tmp_addflag=' -i_dynamic -nofor_main' ;;
8603 ifc* | ifort*) # Intel Fortran compiler
8604 tmp_addflag=' -nofor_main' ;;
8605 lf95*) # Lahey Fortran 8.1
8606 whole_archive_flag_spec=
8607 tmp_sharedflag='--shared' ;;
8608 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8609 tmp_sharedflag='-qmkshrobj'
8610 tmp_addflag= ;;
8611 nvcc*) # Cuda Compiler Driver 2.2
8612 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'
8613 compiler_needs_object=yes
8614 ;;
8615 esac
8616 case `$CC -V 2>&1 | sed 5q` in
8617 *Sun\ C*) # Sun C 5.9
8618 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'
8619 compiler_needs_object=yes
8620 tmp_sharedflag='-G' ;;
8621 *Sun\ F*) # Sun Fortran 8.3
8622 tmp_sharedflag='-G' ;;
8623 esac
8624 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8625
8626 if test "x$supports_anon_versioning" = xyes; then
8627 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8628 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8629 echo "local: *; };" >> $output_objdir/$libname.ver~
8630 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8631 fi
8632
8633 case $cc_basename in
8634 xlf* | bgf* | bgxlf* | mpixlf*)
8635 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8636 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8637 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8638 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8639 if test "x$supports_anon_versioning" = xyes; then
8640 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8641 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8642 echo "local: *; };" >> $output_objdir/$libname.ver~
8643 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8644 fi
8645 ;;
8646 esac
8647 else
8648 ld_shlibs=no
8649 fi
8650 ;;
8651
8652 netbsd*)
8653 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8654 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8655 wlarc=
8656 else
8657 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8658 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8659 fi
8660 ;;
8661
8662 solaris*)
8663 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8664 ld_shlibs=no
8665 cat <<_LT_EOF 1>&2
8666
8667 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8668 *** create shared libraries on Solaris systems. Therefore, libtool
8669 *** is disabling shared libraries support. We urge you to upgrade GNU
8670 *** binutils to release 2.9.1 or newer. Another option is to modify
8671 *** your PATH or compiler configuration so that the native linker is
8672 *** used, and then restart.
8673
8674 _LT_EOF
8675 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8676 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8677 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8678 else
8679 ld_shlibs=no
8680 fi
8681 ;;
8682
8683 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8684 case `$LD -v 2>&1` in
8685 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8686 ld_shlibs=no
8687 cat <<_LT_EOF 1>&2
8688
8689 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8690 *** reliably create shared libraries on SCO systems. Therefore, libtool
8691 *** is disabling shared libraries support. We urge you to upgrade GNU
8692 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8693 *** your PATH or compiler configuration so that the native linker is
8694 *** used, and then restart.
8695
8696 _LT_EOF
8697 ;;
8698 *)
8699 # For security reasons, it is highly recommended that you always
8700 # use absolute paths for naming shared libraries, and exclude the
8701 # DT_RUNPATH tag from executables and libraries. But doing so
8702 # requires that you compile everything twice, which is a pain.
8703 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8704 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8705 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8706 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8707 else
8708 ld_shlibs=no
8709 fi
8710 ;;
8711 esac
8712 ;;
8713
8714 sunos4*)
8715 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8716 wlarc=
8717 hardcode_direct=yes
8718 hardcode_shlibpath_var=no
8719 ;;
8720
8721 *)
8722 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8723 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8724 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8725 else
8726 ld_shlibs=no
8727 fi
8728 ;;
8729 esac
8730
8731 if test "$ld_shlibs" = no; then
8732 runpath_var=
8733 hardcode_libdir_flag_spec=
8734 export_dynamic_flag_spec=
8735 whole_archive_flag_spec=
8736 fi
8737 else
8738 # PORTME fill in a description of your system's linker (not GNU ld)
8739 case $host_os in
8740 aix3*)
8741 allow_undefined_flag=unsupported
8742 always_export_symbols=yes
8743 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'
8744 # Note: this linker hardcodes the directories in LIBPATH if there
8745 # are no directories specified by -L.
8746 hardcode_minus_L=yes
8747 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8748 # Neither direct hardcoding nor static linking is supported with a
8749 # broken collect2.
8750 hardcode_direct=unsupported
8751 fi
8752 ;;
8753
8754 aix[4-9]*)
8755 if test "$host_cpu" = ia64; then
8756 # On IA64, the linker does run time linking by default, so we don't
8757 # have to do anything special.
8758 aix_use_runtimelinking=no
8759 exp_sym_flag='-Bexport'
8760 no_entry_flag=""
8761 else
8762 # If we're using GNU nm, then we don't want the "-C" option.
8763 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8764 # Also, AIX nm treats weak defined symbols like other global
8765 # defined symbols, whereas GNU nm marks them as "W".
8766 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8767 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'
8768 else
8769 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'
8770 fi
8771 aix_use_runtimelinking=no
8772
8773 # Test if we are trying to use run time linking or normal
8774 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8775 # need to do runtime linking.
8776 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8777 for ld_flag in $LDFLAGS; do
8778 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8779 aix_use_runtimelinking=yes
8780 break
8781 fi
8782 done
8783 ;;
8784 esac
8785
8786 exp_sym_flag='-bexport'
8787 no_entry_flag='-bnoentry'
8788 fi
8789
8790 # When large executables or shared objects are built, AIX ld can
8791 # have problems creating the table of contents. If linking a library
8792 # or program results in "error TOC overflow" add -mminimal-toc to
8793 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8794 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8795
8796 archive_cmds=''
8797 hardcode_direct=yes
8798 hardcode_direct_absolute=yes
8799 hardcode_libdir_separator=':'
8800 link_all_deplibs=yes
8801 file_list_spec='${wl}-f,'
8802
8803 if test "$GCC" = yes; then
8804 case $host_os in aix4.[012]|aix4.[012].*)
8805 # We only want to do this on AIX 4.2 and lower, the check
8806 # below for broken collect2 doesn't work under 4.3+
8807 collect2name=`${CC} -print-prog-name=collect2`
8808 if test -f "$collect2name" &&
8809 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8810 then
8811 # We have reworked collect2
8812 :
8813 else
8814 # We have old collect2
8815 hardcode_direct=unsupported
8816 # It fails to find uninstalled libraries when the uninstalled
8817 # path is not listed in the libpath. Setting hardcode_minus_L
8818 # to unsupported forces relinking
8819 hardcode_minus_L=yes
8820 hardcode_libdir_flag_spec='-L$libdir'
8821 hardcode_libdir_separator=
8822 fi
8823 ;;
8824 esac
8825 shared_flag='-shared'
8826 if test "$aix_use_runtimelinking" = yes; then
8827 shared_flag="$shared_flag "'${wl}-G'
8828 fi
8829 else
8830 # not using gcc
8831 if test "$host_cpu" = ia64; then
8832 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8833 # chokes on -Wl,-G. The following line is correct:
8834 shared_flag='-G'
8835 else
8836 if test "$aix_use_runtimelinking" = yes; then
8837 shared_flag='${wl}-G'
8838 else
8839 shared_flag='${wl}-bM:SRE'
8840 fi
8841 fi
8842 fi
8843
8844 export_dynamic_flag_spec='${wl}-bexpall'
8845 # It seems that -bexpall does not export symbols beginning with
8846 # underscore (_), so it is better to generate a list of symbols to export.
8847 always_export_symbols=yes
8848 if test "$aix_use_runtimelinking" = yes; then
8849 # Warning - without using the other runtime loading flags (-brtl),
8850 # -berok will link without error, but may produce a broken library.
8851 allow_undefined_flag='-berok'
8852 # Determine the default libpath from the value encoded in an
8853 # empty executable.
8854 if test "${lt_cv_aix_libpath+set}" = set; then
8855 aix_libpath=$lt_cv_aix_libpath
8856 else
8857 if ${lt_cv_aix_libpath_+:} false; then :
8858 $as_echo_n "(cached) " >&6
8859 else
8860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8861 /* end confdefs.h. */
8862
8863 int
8864 main ()
8865 {
8866
8867 ;
8868 return 0;
8869 }
8870 _ACEOF
8871 if ac_fn_c_try_link "$LINENO"; then :
8872
8873 lt_aix_libpath_sed='
8874 /Import File Strings/,/^$/ {
8875 /^0/ {
8876 s/^0 *\([^ ]*\) *$/\1/
8877 p
8878 }
8879 }'
8880 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8881 # Check for a 64-bit object if we didn't find anything.
8882 if test -z "$lt_cv_aix_libpath_"; then
8883 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8884 fi
8885 fi
8886 rm -f core conftest.err conftest.$ac_objext \
8887 conftest$ac_exeext conftest.$ac_ext
8888 if test -z "$lt_cv_aix_libpath_"; then
8889 lt_cv_aix_libpath_="/usr/lib:/lib"
8890 fi
8891
8892 fi
8893
8894 aix_libpath=$lt_cv_aix_libpath_
8895 fi
8896
8897 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8898 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"
8899 else
8900 if test "$host_cpu" = ia64; then
8901 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8902 allow_undefined_flag="-z nodefs"
8903 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"
8904 else
8905 # Determine the default libpath from the value encoded in an
8906 # empty executable.
8907 if test "${lt_cv_aix_libpath+set}" = set; then
8908 aix_libpath=$lt_cv_aix_libpath
8909 else
8910 if ${lt_cv_aix_libpath_+:} false; then :
8911 $as_echo_n "(cached) " >&6
8912 else
8913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8914 /* end confdefs.h. */
8915
8916 int
8917 main ()
8918 {
8919
8920 ;
8921 return 0;
8922 }
8923 _ACEOF
8924 if ac_fn_c_try_link "$LINENO"; then :
8925
8926 lt_aix_libpath_sed='
8927 /Import File Strings/,/^$/ {
8928 /^0/ {
8929 s/^0 *\([^ ]*\) *$/\1/
8930 p
8931 }
8932 }'
8933 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8934 # Check for a 64-bit object if we didn't find anything.
8935 if test -z "$lt_cv_aix_libpath_"; then
8936 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8937 fi
8938 fi
8939 rm -f core conftest.err conftest.$ac_objext \
8940 conftest$ac_exeext conftest.$ac_ext
8941 if test -z "$lt_cv_aix_libpath_"; then
8942 lt_cv_aix_libpath_="/usr/lib:/lib"
8943 fi
8944
8945 fi
8946
8947 aix_libpath=$lt_cv_aix_libpath_
8948 fi
8949
8950 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8951 # Warning - without using the other run time loading flags,
8952 # -berok will link without error, but may produce a broken library.
8953 no_undefined_flag=' ${wl}-bernotok'
8954 allow_undefined_flag=' ${wl}-berok'
8955 if test "$with_gnu_ld" = yes; then
8956 # We only use this code for GNU lds that support --whole-archive.
8957 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8958 else
8959 # Exported symbols can be pulled into shared objects from archives
8960 whole_archive_flag_spec='$convenience'
8961 fi
8962 archive_cmds_need_lc=yes
8963 # This is similar to how AIX traditionally builds its shared libraries.
8964 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'
8965 fi
8966 fi
8967 ;;
8968
8969 amigaos*)
8970 case $host_cpu in
8971 powerpc)
8972 # see comment about AmigaOS4 .so support
8973 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8974 archive_expsym_cmds=''
8975 ;;
8976 m68k)
8977 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)'
8978 hardcode_libdir_flag_spec='-L$libdir'
8979 hardcode_minus_L=yes
8980 ;;
8981 esac
8982 ;;
8983
8984 bsdi[45]*)
8985 export_dynamic_flag_spec=-rdynamic
8986 ;;
8987
8988 cygwin* | mingw* | pw32* | cegcc*)
8989 # When not using gcc, we currently assume that we are using
8990 # Microsoft Visual C++.
8991 # hardcode_libdir_flag_spec is actually meaningless, as there is
8992 # no search path for DLLs.
8993 case $cc_basename in
8994 cl*)
8995 # Native MSVC
8996 hardcode_libdir_flag_spec=' '
8997 allow_undefined_flag=unsupported
8998 always_export_symbols=yes
8999 file_list_spec='@'
9000 # Tell ltmain to make .lib files, not .a files.
9001 libext=lib
9002 # Tell ltmain to make .dll files, not .so files.
9003 shrext_cmds=".dll"
9004 # FIXME: Setting linknames here is a bad hack.
9005 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9006 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9007 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9008 else
9009 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9010 fi~
9011 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9012 linknames='
9013 # The linker will not automatically build a static lib if we build a DLL.
9014 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9015 enable_shared_with_static_runtimes=yes
9016 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9017 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9018 # Don't use ranlib
9019 old_postinstall_cmds='chmod 644 $oldlib'
9020 postlink_cmds='lt_outputfile="@OUTPUT@"~
9021 lt_tool_outputfile="@TOOL_OUTPUT@"~
9022 case $lt_outputfile in
9023 *.exe|*.EXE) ;;
9024 *)
9025 lt_outputfile="$lt_outputfile.exe"
9026 lt_tool_outputfile="$lt_tool_outputfile.exe"
9027 ;;
9028 esac~
9029 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9030 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9031 $RM "$lt_outputfile.manifest";
9032 fi'
9033 ;;
9034 *)
9035 # Assume MSVC wrapper
9036 hardcode_libdir_flag_spec=' '
9037 allow_undefined_flag=unsupported
9038 # Tell ltmain to make .lib files, not .a files.
9039 libext=lib
9040 # Tell ltmain to make .dll files, not .so files.
9041 shrext_cmds=".dll"
9042 # FIXME: Setting linknames here is a bad hack.
9043 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9044 # The linker will automatically build a .lib file if we build a DLL.
9045 old_archive_from_new_cmds='true'
9046 # FIXME: Should let the user specify the lib program.
9047 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9048 enable_shared_with_static_runtimes=yes
9049 ;;
9050 esac
9051 ;;
9052
9053 darwin* | rhapsody*)
9054
9055
9056 archive_cmds_need_lc=no
9057 hardcode_direct=no
9058 hardcode_automatic=yes
9059 hardcode_shlibpath_var=unsupported
9060 if test "$lt_cv_ld_force_load" = "yes"; then
9061 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\"`'
9062
9063 else
9064 whole_archive_flag_spec=''
9065 fi
9066 link_all_deplibs=yes
9067 allow_undefined_flag="$_lt_dar_allow_undefined"
9068 case $cc_basename in
9069 ifort*) _lt_dar_can_shared=yes ;;
9070 *) _lt_dar_can_shared=$GCC ;;
9071 esac
9072 if test "$_lt_dar_can_shared" = "yes"; then
9073 output_verbose_link_cmd=func_echo_all
9074 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9075 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9076 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}"
9077 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}"
9078
9079 else
9080 ld_shlibs=no
9081 fi
9082
9083 ;;
9084
9085 dgux*)
9086 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9087 hardcode_libdir_flag_spec='-L$libdir'
9088 hardcode_shlibpath_var=no
9089 ;;
9090
9091 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9092 # support. Future versions do this automatically, but an explicit c++rt0.o
9093 # does not break anything, and helps significantly (at the cost of a little
9094 # extra space).
9095 freebsd2.2*)
9096 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9097 hardcode_libdir_flag_spec='-R$libdir'
9098 hardcode_direct=yes
9099 hardcode_shlibpath_var=no
9100 ;;
9101
9102 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9103 freebsd2.*)
9104 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9105 hardcode_direct=yes
9106 hardcode_minus_L=yes
9107 hardcode_shlibpath_var=no
9108 ;;
9109
9110 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9111 freebsd* | dragonfly*)
9112 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9113 hardcode_libdir_flag_spec='-R$libdir'
9114 hardcode_direct=yes
9115 hardcode_shlibpath_var=no
9116 ;;
9117
9118 hpux9*)
9119 if test "$GCC" = yes; then
9120 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'
9121 else
9122 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'
9123 fi
9124 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9125 hardcode_libdir_separator=:
9126 hardcode_direct=yes
9127
9128 # hardcode_minus_L: Not really in the search PATH,
9129 # but as the default location of the library.
9130 hardcode_minus_L=yes
9131 export_dynamic_flag_spec='${wl}-E'
9132 ;;
9133
9134 hpux10*)
9135 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9136 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9137 else
9138 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9139 fi
9140 if test "$with_gnu_ld" = no; then
9141 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9142 hardcode_libdir_separator=:
9143 hardcode_direct=yes
9144 hardcode_direct_absolute=yes
9145 export_dynamic_flag_spec='${wl}-E'
9146 # hardcode_minus_L: Not really in the search PATH,
9147 # but as the default location of the library.
9148 hardcode_minus_L=yes
9149 fi
9150 ;;
9151
9152 hpux11*)
9153 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9154 case $host_cpu in
9155 hppa*64*)
9156 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9157 ;;
9158 ia64*)
9159 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9160 ;;
9161 *)
9162 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9163 ;;
9164 esac
9165 else
9166 case $host_cpu in
9167 hppa*64*)
9168 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9169 ;;
9170 ia64*)
9171 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9172 ;;
9173 *)
9174
9175 # Older versions of the 11.00 compiler do not understand -b yet
9176 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9178 $as_echo_n "checking if $CC understands -b... " >&6; }
9179 if ${lt_cv_prog_compiler__b+:} false; then :
9180 $as_echo_n "(cached) " >&6
9181 else
9182 lt_cv_prog_compiler__b=no
9183 save_LDFLAGS="$LDFLAGS"
9184 LDFLAGS="$LDFLAGS -b"
9185 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9186 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9187 # The linker can only warn and ignore the option if not recognized
9188 # So say no if there are warnings
9189 if test -s conftest.err; then
9190 # Append any errors to the config.log.
9191 cat conftest.err 1>&5
9192 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9193 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9194 if diff conftest.exp conftest.er2 >/dev/null; then
9195 lt_cv_prog_compiler__b=yes
9196 fi
9197 else
9198 lt_cv_prog_compiler__b=yes
9199 fi
9200 fi
9201 $RM -r conftest*
9202 LDFLAGS="$save_LDFLAGS"
9203
9204 fi
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9206 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9207
9208 if test x"$lt_cv_prog_compiler__b" = xyes; then
9209 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9210 else
9211 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9212 fi
9213
9214 ;;
9215 esac
9216 fi
9217 if test "$with_gnu_ld" = no; then
9218 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9219 hardcode_libdir_separator=:
9220
9221 case $host_cpu in
9222 hppa*64*|ia64*)
9223 hardcode_direct=no
9224 hardcode_shlibpath_var=no
9225 ;;
9226 *)
9227 hardcode_direct=yes
9228 hardcode_direct_absolute=yes
9229 export_dynamic_flag_spec='${wl}-E'
9230
9231 # hardcode_minus_L: Not really in the search PATH,
9232 # but as the default location of the library.
9233 hardcode_minus_L=yes
9234 ;;
9235 esac
9236 fi
9237 ;;
9238
9239 irix5* | irix6* | nonstopux*)
9240 if test "$GCC" = yes; then
9241 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'
9242 # Try to use the -exported_symbol ld option, if it does not
9243 # work, assume that -exports_file does not work either and
9244 # implicitly export all symbols.
9245 # This should be the same for all languages, so no per-tag cache variable.
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9247 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9248 if ${lt_cv_irix_exported_symbol+:} false; then :
9249 $as_echo_n "(cached) " >&6
9250 else
9251 save_LDFLAGS="$LDFLAGS"
9252 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9254 /* end confdefs.h. */
9255 int foo (void) { return 0; }
9256 _ACEOF
9257 if ac_fn_c_try_link "$LINENO"; then :
9258 lt_cv_irix_exported_symbol=yes
9259 else
9260 lt_cv_irix_exported_symbol=no
9261 fi
9262 rm -f core conftest.err conftest.$ac_objext \
9263 conftest$ac_exeext conftest.$ac_ext
9264 LDFLAGS="$save_LDFLAGS"
9265 fi
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9267 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9268 if test "$lt_cv_irix_exported_symbol" = yes; then
9269 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'
9270 fi
9271 else
9272 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'
9273 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'
9274 fi
9275 archive_cmds_need_lc='no'
9276 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9277 hardcode_libdir_separator=:
9278 inherit_rpath=yes
9279 link_all_deplibs=yes
9280 ;;
9281
9282 netbsd*)
9283 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9284 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9285 else
9286 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9287 fi
9288 hardcode_libdir_flag_spec='-R$libdir'
9289 hardcode_direct=yes
9290 hardcode_shlibpath_var=no
9291 ;;
9292
9293 newsos6)
9294 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9295 hardcode_direct=yes
9296 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9297 hardcode_libdir_separator=:
9298 hardcode_shlibpath_var=no
9299 ;;
9300
9301 *nto* | *qnx*)
9302 ;;
9303
9304 openbsd*)
9305 if test -f /usr/libexec/ld.so; then
9306 hardcode_direct=yes
9307 hardcode_shlibpath_var=no
9308 hardcode_direct_absolute=yes
9309 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9310 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9311 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9312 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9313 export_dynamic_flag_spec='${wl}-E'
9314 else
9315 case $host_os in
9316 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9317 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9318 hardcode_libdir_flag_spec='-R$libdir'
9319 ;;
9320 *)
9321 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9322 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9323 ;;
9324 esac
9325 fi
9326 else
9327 ld_shlibs=no
9328 fi
9329 ;;
9330
9331 os2*)
9332 hardcode_libdir_flag_spec='-L$libdir'
9333 hardcode_minus_L=yes
9334 allow_undefined_flag=unsupported
9335 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'
9336 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9337 ;;
9338
9339 osf3*)
9340 if test "$GCC" = yes; then
9341 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9342 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'
9343 else
9344 allow_undefined_flag=' -expect_unresolved \*'
9345 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'
9346 fi
9347 archive_cmds_need_lc='no'
9348 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9349 hardcode_libdir_separator=:
9350 ;;
9351
9352 osf4* | osf5*) # as osf3* with the addition of -msym flag
9353 if test "$GCC" = yes; then
9354 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9355 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'
9356 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9357 else
9358 allow_undefined_flag=' -expect_unresolved \*'
9359 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'
9360 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~
9361 $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'
9362
9363 # Both c and cxx compiler support -rpath directly
9364 hardcode_libdir_flag_spec='-rpath $libdir'
9365 fi
9366 archive_cmds_need_lc='no'
9367 hardcode_libdir_separator=:
9368 ;;
9369
9370 solaris*)
9371 no_undefined_flag=' -z defs'
9372 if test "$GCC" = yes; then
9373 wlarc='${wl}'
9374 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9375 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9376 $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'
9377 else
9378 case `$CC -V 2>&1` in
9379 *"Compilers 5.0"*)
9380 wlarc=''
9381 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9382 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9383 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9384 ;;
9385 *)
9386 wlarc='${wl}'
9387 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9388 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9389 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9390 ;;
9391 esac
9392 fi
9393 hardcode_libdir_flag_spec='-R$libdir'
9394 hardcode_shlibpath_var=no
9395 case $host_os in
9396 solaris2.[0-5] | solaris2.[0-5].*) ;;
9397 *)
9398 # The compiler driver will combine and reorder linker options,
9399 # but understands `-z linker_flag'. GCC discards it without `$wl',
9400 # but is careful enough not to reorder.
9401 # Supported since Solaris 2.6 (maybe 2.5.1?)
9402 if test "$GCC" = yes; then
9403 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9404 else
9405 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9406 fi
9407 ;;
9408 esac
9409 link_all_deplibs=yes
9410 ;;
9411
9412 sunos4*)
9413 if test "x$host_vendor" = xsequent; then
9414 # Use $CC to link under sequent, because it throws in some extra .o
9415 # files that make .init and .fini sections work.
9416 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9417 else
9418 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9419 fi
9420 hardcode_libdir_flag_spec='-L$libdir'
9421 hardcode_direct=yes
9422 hardcode_minus_L=yes
9423 hardcode_shlibpath_var=no
9424 ;;
9425
9426 sysv4)
9427 case $host_vendor in
9428 sni)
9429 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9430 hardcode_direct=yes # is this really true???
9431 ;;
9432 siemens)
9433 ## LD is ld it makes a PLAMLIB
9434 ## CC just makes a GrossModule.
9435 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9436 reload_cmds='$CC -r -o $output$reload_objs'
9437 hardcode_direct=no
9438 ;;
9439 motorola)
9440 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9441 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9442 ;;
9443 esac
9444 runpath_var='LD_RUN_PATH'
9445 hardcode_shlibpath_var=no
9446 ;;
9447
9448 sysv4.3*)
9449 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9450 hardcode_shlibpath_var=no
9451 export_dynamic_flag_spec='-Bexport'
9452 ;;
9453
9454 sysv4*MP*)
9455 if test -d /usr/nec; then
9456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9457 hardcode_shlibpath_var=no
9458 runpath_var=LD_RUN_PATH
9459 hardcode_runpath_var=yes
9460 ld_shlibs=yes
9461 fi
9462 ;;
9463
9464 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9465 no_undefined_flag='${wl}-z,text'
9466 archive_cmds_need_lc=no
9467 hardcode_shlibpath_var=no
9468 runpath_var='LD_RUN_PATH'
9469
9470 if test "$GCC" = yes; then
9471 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9472 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9473 else
9474 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9475 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9476 fi
9477 ;;
9478
9479 sysv5* | sco3.2v5* | sco5v6*)
9480 # Note: We can NOT use -z defs as we might desire, because we do not
9481 # link with -lc, and that would cause any symbols used from libc to
9482 # always be unresolved, which means just about no library would
9483 # ever link correctly. If we're not using GNU ld we use -z text
9484 # though, which does catch some bad symbols but isn't as heavy-handed
9485 # as -z defs.
9486 no_undefined_flag='${wl}-z,text'
9487 allow_undefined_flag='${wl}-z,nodefs'
9488 archive_cmds_need_lc=no
9489 hardcode_shlibpath_var=no
9490 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9491 hardcode_libdir_separator=':'
9492 link_all_deplibs=yes
9493 export_dynamic_flag_spec='${wl}-Bexport'
9494 runpath_var='LD_RUN_PATH'
9495
9496 if test "$GCC" = yes; then
9497 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9498 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9499 else
9500 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9501 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9502 fi
9503 ;;
9504
9505 uts4*)
9506 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9507 hardcode_libdir_flag_spec='-L$libdir'
9508 hardcode_shlibpath_var=no
9509 ;;
9510
9511 *)
9512 ld_shlibs=no
9513 ;;
9514 esac
9515
9516 if test x$host_vendor = xsni; then
9517 case $host in
9518 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9519 export_dynamic_flag_spec='${wl}-Blargedynsym'
9520 ;;
9521 esac
9522 fi
9523 fi
9524
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9526 $as_echo "$ld_shlibs" >&6; }
9527 test "$ld_shlibs" = no && can_build_shared=no
9528
9529 with_gnu_ld=$with_gnu_ld
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545 #
9546 # Do we need to explicitly link libc?
9547 #
9548 case "x$archive_cmds_need_lc" in
9549 x|xyes)
9550 # Assume -lc should be added
9551 archive_cmds_need_lc=yes
9552
9553 if test "$enable_shared" = yes && test "$GCC" = yes; then
9554 case $archive_cmds in
9555 *'~'*)
9556 # FIXME: we may have to deal with multi-command sequences.
9557 ;;
9558 '$CC '*)
9559 # Test whether the compiler implicitly links with -lc since on some
9560 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9561 # to ld, don't add -lc before -lgcc.
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9563 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9564 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9565 $as_echo_n "(cached) " >&6
9566 else
9567 $RM conftest*
9568 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9569
9570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9571 (eval $ac_compile) 2>&5
9572 ac_status=$?
9573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9574 test $ac_status = 0; } 2>conftest.err; then
9575 soname=conftest
9576 lib=conftest
9577 libobjs=conftest.$ac_objext
9578 deplibs=
9579 wl=$lt_prog_compiler_wl
9580 pic_flag=$lt_prog_compiler_pic
9581 compiler_flags=-v
9582 linker_flags=-v
9583 verstring=
9584 output_objdir=.
9585 libname=conftest
9586 lt_save_allow_undefined_flag=$allow_undefined_flag
9587 allow_undefined_flag=
9588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9589 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9590 ac_status=$?
9591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9592 test $ac_status = 0; }
9593 then
9594 lt_cv_archive_cmds_need_lc=no
9595 else
9596 lt_cv_archive_cmds_need_lc=yes
9597 fi
9598 allow_undefined_flag=$lt_save_allow_undefined_flag
9599 else
9600 cat conftest.err 1>&5
9601 fi
9602 $RM conftest*
9603
9604 fi
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9606 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9607 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9608 ;;
9609 esac
9610 fi
9611 ;;
9612 esac
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9766 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9767
9768 if test "$GCC" = yes; then
9769 case $host_os in
9770 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9771 *) lt_awk_arg="/^libraries:/" ;;
9772 esac
9773 case $host_os in
9774 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9775 *) lt_sed_strip_eq="s,=/,/,g" ;;
9776 esac
9777 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9778 case $lt_search_path_spec in
9779 *\;*)
9780 # if the path contains ";" then we assume it to be the separator
9781 # otherwise default to the standard path separator (i.e. ":") - it is
9782 # assumed that no part of a normal pathname contains ";" but that should
9783 # okay in the real world where ";" in dirpaths is itself problematic.
9784 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9785 ;;
9786 *)
9787 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9788 ;;
9789 esac
9790 # Ok, now we have the path, separated by spaces, we can step through it
9791 # and add multilib dir if necessary.
9792 lt_tmp_lt_search_path_spec=
9793 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9794 for lt_sys_path in $lt_search_path_spec; do
9795 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9796 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9797 else
9798 test -d "$lt_sys_path" && \
9799 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9800 fi
9801 done
9802 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9803 BEGIN {RS=" "; FS="/|\n";} {
9804 lt_foo="";
9805 lt_count=0;
9806 for (lt_i = NF; lt_i > 0; lt_i--) {
9807 if ($lt_i != "" && $lt_i != ".") {
9808 if ($lt_i == "..") {
9809 lt_count++;
9810 } else {
9811 if (lt_count == 0) {
9812 lt_foo="/" $lt_i lt_foo;
9813 } else {
9814 lt_count--;
9815 }
9816 }
9817 }
9818 }
9819 if (lt_foo != "") { lt_freq[lt_foo]++; }
9820 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9821 }'`
9822 # AWK program above erroneously prepends '/' to C:/dos/paths
9823 # for these hosts.
9824 case $host_os in
9825 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9826 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9827 esac
9828 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9829 else
9830 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9831 fi
9832 library_names_spec=
9833 libname_spec='lib$name'
9834 soname_spec=
9835 shrext_cmds=".so"
9836 postinstall_cmds=
9837 postuninstall_cmds=
9838 finish_cmds=
9839 finish_eval=
9840 shlibpath_var=
9841 shlibpath_overrides_runpath=unknown
9842 version_type=none
9843 dynamic_linker="$host_os ld.so"
9844 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9845 need_lib_prefix=unknown
9846 hardcode_into_libs=no
9847
9848 # when you set need_version to no, make sure it does not cause -set_version
9849 # flags to be left without arguments
9850 need_version=unknown
9851
9852 case $host_os in
9853 aix3*)
9854 version_type=linux # correct to gnu/linux during the next big refactor
9855 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9856 shlibpath_var=LIBPATH
9857
9858 # AIX 3 has no versioning support, so we append a major version to the name.
9859 soname_spec='${libname}${release}${shared_ext}$major'
9860 ;;
9861
9862 aix[4-9]*)
9863 version_type=linux # correct to gnu/linux during the next big refactor
9864 need_lib_prefix=no
9865 need_version=no
9866 hardcode_into_libs=yes
9867 if test "$host_cpu" = ia64; then
9868 # AIX 5 supports IA64
9869 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9870 shlibpath_var=LD_LIBRARY_PATH
9871 else
9872 # With GCC up to 2.95.x, collect2 would create an import file
9873 # for dependence libraries. The import file would start with
9874 # the line `#! .'. This would cause the generated library to
9875 # depend on `.', always an invalid library. This was fixed in
9876 # development snapshots of GCC prior to 3.0.
9877 case $host_os in
9878 aix4 | aix4.[01] | aix4.[01].*)
9879 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9880 echo ' yes '
9881 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9882 :
9883 else
9884 can_build_shared=no
9885 fi
9886 ;;
9887 esac
9888 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9889 # soname into executable. Probably we can add versioning support to
9890 # collect2, so additional links can be useful in future.
9891 if test "$aix_use_runtimelinking" = yes; then
9892 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9893 # instead of lib<name>.a to let people know that these are not
9894 # typical AIX shared libraries.
9895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9896 else
9897 # We preserve .a as extension for shared libraries through AIX4.2
9898 # and later when we are not doing run time linking.
9899 library_names_spec='${libname}${release}.a $libname.a'
9900 soname_spec='${libname}${release}${shared_ext}$major'
9901 fi
9902 shlibpath_var=LIBPATH
9903 fi
9904 ;;
9905
9906 amigaos*)
9907 case $host_cpu in
9908 powerpc)
9909 # Since July 2007 AmigaOS4 officially supports .so libraries.
9910 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9912 ;;
9913 m68k)
9914 library_names_spec='$libname.ixlibrary $libname.a'
9915 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9916 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'
9917 ;;
9918 esac
9919 ;;
9920
9921 beos*)
9922 library_names_spec='${libname}${shared_ext}'
9923 dynamic_linker="$host_os ld.so"
9924 shlibpath_var=LIBRARY_PATH
9925 ;;
9926
9927 bsdi[45]*)
9928 version_type=linux # correct to gnu/linux during the next big refactor
9929 need_version=no
9930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9931 soname_spec='${libname}${release}${shared_ext}$major'
9932 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9933 shlibpath_var=LD_LIBRARY_PATH
9934 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9935 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9936 # the default ld.so.conf also contains /usr/contrib/lib and
9937 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9938 # libtool to hard-code these into programs
9939 ;;
9940
9941 cygwin* | mingw* | pw32* | cegcc*)
9942 version_type=windows
9943 shrext_cmds=".dll"
9944 need_version=no
9945 need_lib_prefix=no
9946
9947 case $GCC,$cc_basename in
9948 yes,*)
9949 # gcc
9950 library_names_spec='$libname.dll.a'
9951 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9952 postinstall_cmds='base_file=`basename \${file}`~
9953 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9954 dldir=$destdir/`dirname \$dlpath`~
9955 test -d \$dldir || mkdir -p \$dldir~
9956 $install_prog $dir/$dlname \$dldir/$dlname~
9957 chmod a+x \$dldir/$dlname~
9958 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9959 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9960 fi'
9961 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9962 dlpath=$dir/\$dldll~
9963 $RM \$dlpath'
9964 shlibpath_overrides_runpath=yes
9965
9966 case $host_os in
9967 cygwin*)
9968 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9969 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9970
9971 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9972 ;;
9973 mingw* | cegcc*)
9974 # MinGW DLLs use traditional 'lib' prefix
9975 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9976 ;;
9977 pw32*)
9978 # pw32 DLLs use 'pw' prefix rather than 'lib'
9979 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9980 ;;
9981 esac
9982 dynamic_linker='Win32 ld.exe'
9983 ;;
9984
9985 *,cl*)
9986 # Native MSVC
9987 libname_spec='$name'
9988 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9989 library_names_spec='${libname}.dll.lib'
9990
9991 case $build_os in
9992 mingw*)
9993 sys_lib_search_path_spec=
9994 lt_save_ifs=$IFS
9995 IFS=';'
9996 for lt_path in $LIB
9997 do
9998 IFS=$lt_save_ifs
9999 # Let DOS variable expansion print the short 8.3 style file name.
10000 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10001 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10002 done
10003 IFS=$lt_save_ifs
10004 # Convert to MSYS style.
10005 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10006 ;;
10007 cygwin*)
10008 # Convert to unix form, then to dos form, then back to unix form
10009 # but this time dos style (no spaces!) so that the unix form looks
10010 # like /cygdrive/c/PROGRA~1:/cygdr...
10011 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10012 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10013 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10014 ;;
10015 *)
10016 sys_lib_search_path_spec="$LIB"
10017 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10018 # It is most probably a Windows format PATH.
10019 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10020 else
10021 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10022 fi
10023 # FIXME: find the short name or the path components, as spaces are
10024 # common. (e.g. "Program Files" -> "PROGRA~1")
10025 ;;
10026 esac
10027
10028 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10029 postinstall_cmds='base_file=`basename \${file}`~
10030 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10031 dldir=$destdir/`dirname \$dlpath`~
10032 test -d \$dldir || mkdir -p \$dldir~
10033 $install_prog $dir/$dlname \$dldir/$dlname'
10034 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10035 dlpath=$dir/\$dldll~
10036 $RM \$dlpath'
10037 shlibpath_overrides_runpath=yes
10038 dynamic_linker='Win32 link.exe'
10039 ;;
10040
10041 *)
10042 # Assume MSVC wrapper
10043 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10044 dynamic_linker='Win32 ld.exe'
10045 ;;
10046 esac
10047 # FIXME: first we should search . and the directory the executable is in
10048 shlibpath_var=PATH
10049 ;;
10050
10051 darwin* | rhapsody*)
10052 dynamic_linker="$host_os dyld"
10053 version_type=darwin
10054 need_lib_prefix=no
10055 need_version=no
10056 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10057 soname_spec='${libname}${release}${major}$shared_ext'
10058 shlibpath_overrides_runpath=yes
10059 shlibpath_var=DYLD_LIBRARY_PATH
10060 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10061
10062 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10063 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10064 ;;
10065
10066 dgux*)
10067 version_type=linux # correct to gnu/linux during the next big refactor
10068 need_lib_prefix=no
10069 need_version=no
10070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10071 soname_spec='${libname}${release}${shared_ext}$major'
10072 shlibpath_var=LD_LIBRARY_PATH
10073 ;;
10074
10075 freebsd* | dragonfly*)
10076 # DragonFly does not have aout. When/if they implement a new
10077 # versioning mechanism, adjust this.
10078 if test -x /usr/bin/objformat; then
10079 objformat=`/usr/bin/objformat`
10080 else
10081 case $host_os in
10082 freebsd[23].*) objformat=aout ;;
10083 *) objformat=elf ;;
10084 esac
10085 fi
10086 version_type=freebsd-$objformat
10087 case $version_type in
10088 freebsd-elf*)
10089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10090 need_version=no
10091 need_lib_prefix=no
10092 ;;
10093 freebsd-*)
10094 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10095 need_version=yes
10096 ;;
10097 esac
10098 shlibpath_var=LD_LIBRARY_PATH
10099 case $host_os in
10100 freebsd2.*)
10101 shlibpath_overrides_runpath=yes
10102 ;;
10103 freebsd3.[01]* | freebsdelf3.[01]*)
10104 shlibpath_overrides_runpath=yes
10105 hardcode_into_libs=yes
10106 ;;
10107 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10108 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10109 shlibpath_overrides_runpath=no
10110 hardcode_into_libs=yes
10111 ;;
10112 *) # from 4.6 on, and DragonFly
10113 shlibpath_overrides_runpath=yes
10114 hardcode_into_libs=yes
10115 ;;
10116 esac
10117 ;;
10118
10119 gnu*)
10120 version_type=linux # correct to gnu/linux during the next big refactor
10121 need_lib_prefix=no
10122 need_version=no
10123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10124 soname_spec='${libname}${release}${shared_ext}$major'
10125 shlibpath_var=LD_LIBRARY_PATH
10126 shlibpath_overrides_runpath=no
10127 hardcode_into_libs=yes
10128 ;;
10129
10130 haiku*)
10131 version_type=linux # correct to gnu/linux during the next big refactor
10132 need_lib_prefix=no
10133 need_version=no
10134 dynamic_linker="$host_os runtime_loader"
10135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10136 soname_spec='${libname}${release}${shared_ext}$major'
10137 shlibpath_var=LIBRARY_PATH
10138 shlibpath_overrides_runpath=yes
10139 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10140 hardcode_into_libs=yes
10141 ;;
10142
10143 hpux9* | hpux10* | hpux11*)
10144 # Give a soname corresponding to the major version so that dld.sl refuses to
10145 # link against other versions.
10146 version_type=sunos
10147 need_lib_prefix=no
10148 need_version=no
10149 case $host_cpu in
10150 ia64*)
10151 shrext_cmds='.so'
10152 hardcode_into_libs=yes
10153 dynamic_linker="$host_os dld.so"
10154 shlibpath_var=LD_LIBRARY_PATH
10155 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10157 soname_spec='${libname}${release}${shared_ext}$major'
10158 if test "X$HPUX_IA64_MODE" = X32; then
10159 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10160 else
10161 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10162 fi
10163 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10164 ;;
10165 hppa*64*)
10166 shrext_cmds='.sl'
10167 hardcode_into_libs=yes
10168 dynamic_linker="$host_os dld.sl"
10169 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10170 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10172 soname_spec='${libname}${release}${shared_ext}$major'
10173 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10174 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10175 ;;
10176 *)
10177 shrext_cmds='.sl'
10178 dynamic_linker="$host_os dld.sl"
10179 shlibpath_var=SHLIB_PATH
10180 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182 soname_spec='${libname}${release}${shared_ext}$major'
10183 ;;
10184 esac
10185 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10186 postinstall_cmds='chmod 555 $lib'
10187 # or fails outright, so override atomically:
10188 install_override_mode=555
10189 ;;
10190
10191 interix[3-9]*)
10192 version_type=linux # correct to gnu/linux during the next big refactor
10193 need_lib_prefix=no
10194 need_version=no
10195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10196 soname_spec='${libname}${release}${shared_ext}$major'
10197 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10198 shlibpath_var=LD_LIBRARY_PATH
10199 shlibpath_overrides_runpath=no
10200 hardcode_into_libs=yes
10201 ;;
10202
10203 irix5* | irix6* | nonstopux*)
10204 case $host_os in
10205 nonstopux*) version_type=nonstopux ;;
10206 *)
10207 if test "$lt_cv_prog_gnu_ld" = yes; then
10208 version_type=linux # correct to gnu/linux during the next big refactor
10209 else
10210 version_type=irix
10211 fi ;;
10212 esac
10213 need_lib_prefix=no
10214 need_version=no
10215 soname_spec='${libname}${release}${shared_ext}$major'
10216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10217 case $host_os in
10218 irix5* | nonstopux*)
10219 libsuff= shlibsuff=
10220 ;;
10221 *)
10222 case $LD in # libtool.m4 will add one of these switches to LD
10223 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10224 libsuff= shlibsuff= libmagic=32-bit;;
10225 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10226 libsuff=32 shlibsuff=N32 libmagic=N32;;
10227 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10228 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10229 *) libsuff= shlibsuff= libmagic=never-match;;
10230 esac
10231 ;;
10232 esac
10233 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10234 shlibpath_overrides_runpath=no
10235 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10236 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10237 hardcode_into_libs=yes
10238 ;;
10239
10240 # No shared lib support for Linux oldld, aout, or coff.
10241 linux*oldld* | linux*aout* | linux*coff*)
10242 dynamic_linker=no
10243 ;;
10244
10245 # This must be glibc/ELF.
10246 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10247 version_type=linux # correct to gnu/linux during the next big refactor
10248 need_lib_prefix=no
10249 need_version=no
10250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10251 soname_spec='${libname}${release}${shared_ext}$major'
10252 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10253 shlibpath_var=LD_LIBRARY_PATH
10254 shlibpath_overrides_runpath=no
10255
10256 # Some binutils ld are patched to set DT_RUNPATH
10257 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10258 $as_echo_n "(cached) " >&6
10259 else
10260 lt_cv_shlibpath_overrides_runpath=no
10261 save_LDFLAGS=$LDFLAGS
10262 save_libdir=$libdir
10263 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10264 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10266 /* end confdefs.h. */
10267
10268 int
10269 main ()
10270 {
10271
10272 ;
10273 return 0;
10274 }
10275 _ACEOF
10276 if ac_fn_c_try_link "$LINENO"; then :
10277 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10278 lt_cv_shlibpath_overrides_runpath=yes
10279 fi
10280 fi
10281 rm -f core conftest.err conftest.$ac_objext \
10282 conftest$ac_exeext conftest.$ac_ext
10283 LDFLAGS=$save_LDFLAGS
10284 libdir=$save_libdir
10285
10286 fi
10287
10288 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10289
10290 # This implies no fast_install, which is unacceptable.
10291 # Some rework will be needed to allow for fast_install
10292 # before this can be enabled.
10293 hardcode_into_libs=yes
10294
10295 # Append ld.so.conf contents to the search path
10296 if test -f /etc/ld.so.conf; then
10297 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' ' '`
10298 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10299 fi
10300
10301 # We used to test for /lib/ld.so.1 and disable shared libraries on
10302 # powerpc, because MkLinux only supported shared libraries with the
10303 # GNU dynamic linker. Since this was broken with cross compilers,
10304 # most powerpc-linux boxes support dynamic linking these days and
10305 # people can always --disable-shared, the test was removed, and we
10306 # assume the GNU/Linux dynamic linker is in use.
10307 dynamic_linker='GNU/Linux ld.so'
10308 ;;
10309
10310 netbsd*)
10311 version_type=sunos
10312 need_lib_prefix=no
10313 need_version=no
10314 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10316 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10317 dynamic_linker='NetBSD (a.out) ld.so'
10318 else
10319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10320 soname_spec='${libname}${release}${shared_ext}$major'
10321 dynamic_linker='NetBSD ld.elf_so'
10322 fi
10323 shlibpath_var=LD_LIBRARY_PATH
10324 shlibpath_overrides_runpath=yes
10325 hardcode_into_libs=yes
10326 ;;
10327
10328 newsos6)
10329 version_type=linux # correct to gnu/linux during the next big refactor
10330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10331 shlibpath_var=LD_LIBRARY_PATH
10332 shlibpath_overrides_runpath=yes
10333 ;;
10334
10335 *nto* | *qnx*)
10336 version_type=qnx
10337 need_lib_prefix=no
10338 need_version=no
10339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10340 soname_spec='${libname}${release}${shared_ext}$major'
10341 shlibpath_var=LD_LIBRARY_PATH
10342 shlibpath_overrides_runpath=no
10343 hardcode_into_libs=yes
10344 dynamic_linker='ldqnx.so'
10345 ;;
10346
10347 openbsd*)
10348 version_type=sunos
10349 sys_lib_dlsearch_path_spec="/usr/lib"
10350 need_lib_prefix=no
10351 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10352 case $host_os in
10353 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10354 *) need_version=no ;;
10355 esac
10356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10357 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10358 shlibpath_var=LD_LIBRARY_PATH
10359 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10360 case $host_os in
10361 openbsd2.[89] | openbsd2.[89].*)
10362 shlibpath_overrides_runpath=no
10363 ;;
10364 *)
10365 shlibpath_overrides_runpath=yes
10366 ;;
10367 esac
10368 else
10369 shlibpath_overrides_runpath=yes
10370 fi
10371 ;;
10372
10373 os2*)
10374 libname_spec='$name'
10375 shrext_cmds=".dll"
10376 need_lib_prefix=no
10377 library_names_spec='$libname${shared_ext} $libname.a'
10378 dynamic_linker='OS/2 ld.exe'
10379 shlibpath_var=LIBPATH
10380 ;;
10381
10382 osf3* | osf4* | osf5*)
10383 version_type=osf
10384 need_lib_prefix=no
10385 need_version=no
10386 soname_spec='${libname}${release}${shared_ext}$major'
10387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10388 shlibpath_var=LD_LIBRARY_PATH
10389 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10390 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10391 ;;
10392
10393 rdos*)
10394 dynamic_linker=no
10395 ;;
10396
10397 solaris*)
10398 version_type=linux # correct to gnu/linux during the next big refactor
10399 need_lib_prefix=no
10400 need_version=no
10401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10402 soname_spec='${libname}${release}${shared_ext}$major'
10403 shlibpath_var=LD_LIBRARY_PATH
10404 shlibpath_overrides_runpath=yes
10405 hardcode_into_libs=yes
10406 # ldd complains unless libraries are executable
10407 postinstall_cmds='chmod +x $lib'
10408 ;;
10409
10410 sunos4*)
10411 version_type=sunos
10412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10413 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10414 shlibpath_var=LD_LIBRARY_PATH
10415 shlibpath_overrides_runpath=yes
10416 if test "$with_gnu_ld" = yes; then
10417 need_lib_prefix=no
10418 fi
10419 need_version=yes
10420 ;;
10421
10422 sysv4 | sysv4.3*)
10423 version_type=linux # correct to gnu/linux during the next big refactor
10424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10425 soname_spec='${libname}${release}${shared_ext}$major'
10426 shlibpath_var=LD_LIBRARY_PATH
10427 case $host_vendor in
10428 sni)
10429 shlibpath_overrides_runpath=no
10430 need_lib_prefix=no
10431 runpath_var=LD_RUN_PATH
10432 ;;
10433 siemens)
10434 need_lib_prefix=no
10435 ;;
10436 motorola)
10437 need_lib_prefix=no
10438 need_version=no
10439 shlibpath_overrides_runpath=no
10440 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10441 ;;
10442 esac
10443 ;;
10444
10445 sysv4*MP*)
10446 if test -d /usr/nec ;then
10447 version_type=linux # correct to gnu/linux during the next big refactor
10448 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10449 soname_spec='$libname${shared_ext}.$major'
10450 shlibpath_var=LD_LIBRARY_PATH
10451 fi
10452 ;;
10453
10454 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10455 version_type=freebsd-elf
10456 need_lib_prefix=no
10457 need_version=no
10458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10459 soname_spec='${libname}${release}${shared_ext}$major'
10460 shlibpath_var=LD_LIBRARY_PATH
10461 shlibpath_overrides_runpath=yes
10462 hardcode_into_libs=yes
10463 if test "$with_gnu_ld" = yes; then
10464 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10465 else
10466 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10467 case $host_os in
10468 sco3.2v5*)
10469 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10470 ;;
10471 esac
10472 fi
10473 sys_lib_dlsearch_path_spec='/usr/lib'
10474 ;;
10475
10476 tpf*)
10477 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10478 version_type=linux # correct to gnu/linux during the next big refactor
10479 need_lib_prefix=no
10480 need_version=no
10481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10482 shlibpath_var=LD_LIBRARY_PATH
10483 shlibpath_overrides_runpath=no
10484 hardcode_into_libs=yes
10485 ;;
10486
10487 uts4*)
10488 version_type=linux # correct to gnu/linux during the next big refactor
10489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10490 soname_spec='${libname}${release}${shared_ext}$major'
10491 shlibpath_var=LD_LIBRARY_PATH
10492 ;;
10493
10494 *)
10495 dynamic_linker=no
10496 ;;
10497 esac
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10499 $as_echo "$dynamic_linker" >&6; }
10500 test "$dynamic_linker" = no && can_build_shared=no
10501
10502 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10503 if test "$GCC" = yes; then
10504 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10505 fi
10506
10507 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10508 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10509 fi
10510 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10511 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10512 fi
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10606 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10607 hardcode_action=
10608 if test -n "$hardcode_libdir_flag_spec" ||
10609 test -n "$runpath_var" ||
10610 test "X$hardcode_automatic" = "Xyes" ; then
10611
10612 # We can hardcode non-existent directories.
10613 if test "$hardcode_direct" != no &&
10614 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10615 # have to relink, otherwise we might link with an installed library
10616 # when we should be linking with a yet-to-be-installed one
10617 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10618 test "$hardcode_minus_L" != no; then
10619 # Linking always hardcodes the temporary library directory.
10620 hardcode_action=relink
10621 else
10622 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10623 hardcode_action=immediate
10624 fi
10625 else
10626 # We cannot hardcode anything, or else we can only hardcode existing
10627 # directories.
10628 hardcode_action=unsupported
10629 fi
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10631 $as_echo "$hardcode_action" >&6; }
10632
10633 if test "$hardcode_action" = relink ||
10634 test "$inherit_rpath" = yes; then
10635 # Fast installation is not supported
10636 enable_fast_install=no
10637 elif test "$shlibpath_overrides_runpath" = yes ||
10638 test "$enable_shared" = no; then
10639 # Fast installation is not necessary
10640 enable_fast_install=needless
10641 fi
10642
10643
10644
10645
10646
10647
10648 if test "x$enable_dlopen" != xyes; then
10649 enable_dlopen=unknown
10650 enable_dlopen_self=unknown
10651 enable_dlopen_self_static=unknown
10652 else
10653 lt_cv_dlopen=no
10654 lt_cv_dlopen_libs=
10655
10656 case $host_os in
10657 beos*)
10658 lt_cv_dlopen="load_add_on"
10659 lt_cv_dlopen_libs=
10660 lt_cv_dlopen_self=yes
10661 ;;
10662
10663 mingw* | pw32* | cegcc*)
10664 lt_cv_dlopen="LoadLibrary"
10665 lt_cv_dlopen_libs=
10666 ;;
10667
10668 cygwin*)
10669 lt_cv_dlopen="dlopen"
10670 lt_cv_dlopen_libs=
10671 ;;
10672
10673 darwin*)
10674 # if libdl is installed we need to link against it
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10676 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10677 if ${ac_cv_lib_dl_dlopen+:} false; then :
10678 $as_echo_n "(cached) " >&6
10679 else
10680 ac_check_lib_save_LIBS=$LIBS
10681 LIBS="-ldl $LIBS"
10682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10683 /* end confdefs.h. */
10684
10685 /* Override any GCC internal prototype to avoid an error.
10686 Use char because int might match the return type of a GCC
10687 builtin and then its argument prototype would still apply. */
10688 #ifdef __cplusplus
10689 extern "C"
10690 #endif
10691 char dlopen ();
10692 int
10693 main ()
10694 {
10695 return dlopen ();
10696 ;
10697 return 0;
10698 }
10699 _ACEOF
10700 if ac_fn_c_try_link "$LINENO"; then :
10701 ac_cv_lib_dl_dlopen=yes
10702 else
10703 ac_cv_lib_dl_dlopen=no
10704 fi
10705 rm -f core conftest.err conftest.$ac_objext \
10706 conftest$ac_exeext conftest.$ac_ext
10707 LIBS=$ac_check_lib_save_LIBS
10708 fi
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10710 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10711 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10712 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10713 else
10714
10715 lt_cv_dlopen="dyld"
10716 lt_cv_dlopen_libs=
10717 lt_cv_dlopen_self=yes
10718
10719 fi
10720
10721 ;;
10722
10723 *)
10724 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10725 if test "x$ac_cv_func_shl_load" = xyes; then :
10726 lt_cv_dlopen="shl_load"
10727 else
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10729 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10730 if ${ac_cv_lib_dld_shl_load+:} false; then :
10731 $as_echo_n "(cached) " >&6
10732 else
10733 ac_check_lib_save_LIBS=$LIBS
10734 LIBS="-ldld $LIBS"
10735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10736 /* end confdefs.h. */
10737
10738 /* Override any GCC internal prototype to avoid an error.
10739 Use char because int might match the return type of a GCC
10740 builtin and then its argument prototype would still apply. */
10741 #ifdef __cplusplus
10742 extern "C"
10743 #endif
10744 char shl_load ();
10745 int
10746 main ()
10747 {
10748 return shl_load ();
10749 ;
10750 return 0;
10751 }
10752 _ACEOF
10753 if ac_fn_c_try_link "$LINENO"; then :
10754 ac_cv_lib_dld_shl_load=yes
10755 else
10756 ac_cv_lib_dld_shl_load=no
10757 fi
10758 rm -f core conftest.err conftest.$ac_objext \
10759 conftest$ac_exeext conftest.$ac_ext
10760 LIBS=$ac_check_lib_save_LIBS
10761 fi
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10763 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10764 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10765 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10766 else
10767 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10768 if test "x$ac_cv_func_dlopen" = xyes; then :
10769 lt_cv_dlopen="dlopen"
10770 else
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10772 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10773 if ${ac_cv_lib_dl_dlopen+:} false; then :
10774 $as_echo_n "(cached) " >&6
10775 else
10776 ac_check_lib_save_LIBS=$LIBS
10777 LIBS="-ldl $LIBS"
10778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10779 /* end confdefs.h. */
10780
10781 /* Override any GCC internal prototype to avoid an error.
10782 Use char because int might match the return type of a GCC
10783 builtin and then its argument prototype would still apply. */
10784 #ifdef __cplusplus
10785 extern "C"
10786 #endif
10787 char dlopen ();
10788 int
10789 main ()
10790 {
10791 return dlopen ();
10792 ;
10793 return 0;
10794 }
10795 _ACEOF
10796 if ac_fn_c_try_link "$LINENO"; then :
10797 ac_cv_lib_dl_dlopen=yes
10798 else
10799 ac_cv_lib_dl_dlopen=no
10800 fi
10801 rm -f core conftest.err conftest.$ac_objext \
10802 conftest$ac_exeext conftest.$ac_ext
10803 LIBS=$ac_check_lib_save_LIBS
10804 fi
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10806 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10807 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10808 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10809 else
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10811 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10812 if ${ac_cv_lib_svld_dlopen+:} false; then :
10813 $as_echo_n "(cached) " >&6
10814 else
10815 ac_check_lib_save_LIBS=$LIBS
10816 LIBS="-lsvld $LIBS"
10817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10818 /* end confdefs.h. */
10819
10820 /* Override any GCC internal prototype to avoid an error.
10821 Use char because int might match the return type of a GCC
10822 builtin and then its argument prototype would still apply. */
10823 #ifdef __cplusplus
10824 extern "C"
10825 #endif
10826 char dlopen ();
10827 int
10828 main ()
10829 {
10830 return dlopen ();
10831 ;
10832 return 0;
10833 }
10834 _ACEOF
10835 if ac_fn_c_try_link "$LINENO"; then :
10836 ac_cv_lib_svld_dlopen=yes
10837 else
10838 ac_cv_lib_svld_dlopen=no
10839 fi
10840 rm -f core conftest.err conftest.$ac_objext \
10841 conftest$ac_exeext conftest.$ac_ext
10842 LIBS=$ac_check_lib_save_LIBS
10843 fi
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10845 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10846 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10847 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10848 else
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10850 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10851 if ${ac_cv_lib_dld_dld_link+:} false; then :
10852 $as_echo_n "(cached) " >&6
10853 else
10854 ac_check_lib_save_LIBS=$LIBS
10855 LIBS="-ldld $LIBS"
10856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10857 /* end confdefs.h. */
10858
10859 /* Override any GCC internal prototype to avoid an error.
10860 Use char because int might match the return type of a GCC
10861 builtin and then its argument prototype would still apply. */
10862 #ifdef __cplusplus
10863 extern "C"
10864 #endif
10865 char dld_link ();
10866 int
10867 main ()
10868 {
10869 return dld_link ();
10870 ;
10871 return 0;
10872 }
10873 _ACEOF
10874 if ac_fn_c_try_link "$LINENO"; then :
10875 ac_cv_lib_dld_dld_link=yes
10876 else
10877 ac_cv_lib_dld_dld_link=no
10878 fi
10879 rm -f core conftest.err conftest.$ac_objext \
10880 conftest$ac_exeext conftest.$ac_ext
10881 LIBS=$ac_check_lib_save_LIBS
10882 fi
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10884 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10885 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10886 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10887 fi
10888
10889
10890 fi
10891
10892
10893 fi
10894
10895
10896 fi
10897
10898
10899 fi
10900
10901
10902 fi
10903
10904 ;;
10905 esac
10906
10907 if test "x$lt_cv_dlopen" != xno; then
10908 enable_dlopen=yes
10909 else
10910 enable_dlopen=no
10911 fi
10912
10913 case $lt_cv_dlopen in
10914 dlopen)
10915 save_CPPFLAGS="$CPPFLAGS"
10916 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10917
10918 save_LDFLAGS="$LDFLAGS"
10919 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10920
10921 save_LIBS="$LIBS"
10922 LIBS="$lt_cv_dlopen_libs $LIBS"
10923
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10925 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10926 if ${lt_cv_dlopen_self+:} false; then :
10927 $as_echo_n "(cached) " >&6
10928 else
10929 if test "$cross_compiling" = yes; then :
10930 lt_cv_dlopen_self=cross
10931 else
10932 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10933 lt_status=$lt_dlunknown
10934 cat > conftest.$ac_ext <<_LT_EOF
10935 #line $LINENO "configure"
10936 #include "confdefs.h"
10937
10938 #if HAVE_DLFCN_H
10939 #include <dlfcn.h>
10940 #endif
10941
10942 #include <stdio.h>
10943
10944 #ifdef RTLD_GLOBAL
10945 # define LT_DLGLOBAL RTLD_GLOBAL
10946 #else
10947 # ifdef DL_GLOBAL
10948 # define LT_DLGLOBAL DL_GLOBAL
10949 # else
10950 # define LT_DLGLOBAL 0
10951 # endif
10952 #endif
10953
10954 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10955 find out it does not work in some platform. */
10956 #ifndef LT_DLLAZY_OR_NOW
10957 # ifdef RTLD_LAZY
10958 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10959 # else
10960 # ifdef DL_LAZY
10961 # define LT_DLLAZY_OR_NOW DL_LAZY
10962 # else
10963 # ifdef RTLD_NOW
10964 # define LT_DLLAZY_OR_NOW RTLD_NOW
10965 # else
10966 # ifdef DL_NOW
10967 # define LT_DLLAZY_OR_NOW DL_NOW
10968 # else
10969 # define LT_DLLAZY_OR_NOW 0
10970 # endif
10971 # endif
10972 # endif
10973 # endif
10974 #endif
10975
10976 /* When -fvisbility=hidden is used, assume the code has been annotated
10977 correspondingly for the symbols needed. */
10978 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10979 int fnord () __attribute__((visibility("default")));
10980 #endif
10981
10982 int fnord () { return 42; }
10983 int main ()
10984 {
10985 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10986 int status = $lt_dlunknown;
10987
10988 if (self)
10989 {
10990 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10991 else
10992 {
10993 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10994 else puts (dlerror ());
10995 }
10996 /* dlclose (self); */
10997 }
10998 else
10999 puts (dlerror ());
11000
11001 return status;
11002 }
11003 _LT_EOF
11004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11005 (eval $ac_link) 2>&5
11006 ac_status=$?
11007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11008 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11009 (./conftest; exit; ) >&5 2>/dev/null
11010 lt_status=$?
11011 case x$lt_status in
11012 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11013 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11014 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11015 esac
11016 else :
11017 # compilation failed
11018 lt_cv_dlopen_self=no
11019 fi
11020 fi
11021 rm -fr conftest*
11022
11023
11024 fi
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11026 $as_echo "$lt_cv_dlopen_self" >&6; }
11027
11028 if test "x$lt_cv_dlopen_self" = xyes; then
11029 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11031 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11032 if ${lt_cv_dlopen_self_static+:} false; then :
11033 $as_echo_n "(cached) " >&6
11034 else
11035 if test "$cross_compiling" = yes; then :
11036 lt_cv_dlopen_self_static=cross
11037 else
11038 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11039 lt_status=$lt_dlunknown
11040 cat > conftest.$ac_ext <<_LT_EOF
11041 #line $LINENO "configure"
11042 #include "confdefs.h"
11043
11044 #if HAVE_DLFCN_H
11045 #include <dlfcn.h>
11046 #endif
11047
11048 #include <stdio.h>
11049
11050 #ifdef RTLD_GLOBAL
11051 # define LT_DLGLOBAL RTLD_GLOBAL
11052 #else
11053 # ifdef DL_GLOBAL
11054 # define LT_DLGLOBAL DL_GLOBAL
11055 # else
11056 # define LT_DLGLOBAL 0
11057 # endif
11058 #endif
11059
11060 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11061 find out it does not work in some platform. */
11062 #ifndef LT_DLLAZY_OR_NOW
11063 # ifdef RTLD_LAZY
11064 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11065 # else
11066 # ifdef DL_LAZY
11067 # define LT_DLLAZY_OR_NOW DL_LAZY
11068 # else
11069 # ifdef RTLD_NOW
11070 # define LT_DLLAZY_OR_NOW RTLD_NOW
11071 # else
11072 # ifdef DL_NOW
11073 # define LT_DLLAZY_OR_NOW DL_NOW
11074 # else
11075 # define LT_DLLAZY_OR_NOW 0
11076 # endif
11077 # endif
11078 # endif
11079 # endif
11080 #endif
11081
11082 /* When -fvisbility=hidden is used, assume the code has been annotated
11083 correspondingly for the symbols needed. */
11084 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11085 int fnord () __attribute__((visibility("default")));
11086 #endif
11087
11088 int fnord () { return 42; }
11089 int main ()
11090 {
11091 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11092 int status = $lt_dlunknown;
11093
11094 if (self)
11095 {
11096 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11097 else
11098 {
11099 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11100 else puts (dlerror ());
11101 }
11102 /* dlclose (self); */
11103 }
11104 else
11105 puts (dlerror ());
11106
11107 return status;
11108 }
11109 _LT_EOF
11110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11111 (eval $ac_link) 2>&5
11112 ac_status=$?
11113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11114 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11115 (./conftest; exit; ) >&5 2>/dev/null
11116 lt_status=$?
11117 case x$lt_status in
11118 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11119 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11120 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11121 esac
11122 else :
11123 # compilation failed
11124 lt_cv_dlopen_self_static=no
11125 fi
11126 fi
11127 rm -fr conftest*
11128
11129
11130 fi
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11132 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11133 fi
11134
11135 CPPFLAGS="$save_CPPFLAGS"
11136 LDFLAGS="$save_LDFLAGS"
11137 LIBS="$save_LIBS"
11138 ;;
11139 esac
11140
11141 case $lt_cv_dlopen_self in
11142 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11143 *) enable_dlopen_self=unknown ;;
11144 esac
11145
11146 case $lt_cv_dlopen_self_static in
11147 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11148 *) enable_dlopen_self_static=unknown ;;
11149 esac
11150 fi
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168 striplib=
11169 old_striplib=
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11171 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11172 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11173 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11174 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11176 $as_echo "yes" >&6; }
11177 else
11178 # FIXME - insert some real tests, host_os isn't really good enough
11179 case $host_os in
11180 darwin*)
11181 if test -n "$STRIP" ; then
11182 striplib="$STRIP -x"
11183 old_striplib="$STRIP -S"
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11185 $as_echo "yes" >&6; }
11186 else
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11188 $as_echo "no" >&6; }
11189 fi
11190 ;;
11191 *)
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11193 $as_echo "no" >&6; }
11194 ;;
11195 esac
11196 fi
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209 # Report which library types will actually be built
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11211 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11213 $as_echo "$can_build_shared" >&6; }
11214
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11216 $as_echo_n "checking whether to build shared libraries... " >&6; }
11217 test "$can_build_shared" = "no" && enable_shared=no
11218
11219 # On AIX, shared libraries and static libraries use the same namespace, and
11220 # are all built from PIC.
11221 case $host_os in
11222 aix3*)
11223 test "$enable_shared" = yes && enable_static=no
11224 if test -n "$RANLIB"; then
11225 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11226 postinstall_cmds='$RANLIB $lib'
11227 fi
11228 ;;
11229
11230 aix[4-9]*)
11231 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11232 test "$enable_shared" = yes && enable_static=no
11233 fi
11234 ;;
11235 esac
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11237 $as_echo "$enable_shared" >&6; }
11238
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11240 $as_echo_n "checking whether to build static libraries... " >&6; }
11241 # Make sure either enable_shared or enable_static is yes.
11242 test "$enable_shared" = yes || enable_static=yes
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11244 $as_echo "$enable_static" >&6; }
11245
11246
11247
11248
11249 fi
11250 ac_ext=c
11251 ac_cpp='$CPP $CPPFLAGS'
11252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11255
11256 CC="$lt_save_CC"
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272 ac_config_commands="$ac_config_commands libtool"
11273
11274
11275
11276
11277 # Only expand once:
11278
11279
11280
11281 # Require X.Org macros 1.8 or later
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11294 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11295 if ${ac_cv_prog_cc_c99+:} false; then :
11296 $as_echo_n "(cached) " >&6
11297 else
11298 ac_cv_prog_cc_c99=no
11299 ac_save_CC=$CC
11300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11301 /* end confdefs.h. */
11302 #include <stdarg.h>
11303 #include <stdbool.h>
11304 #include <stdlib.h>
11305 #include <wchar.h>
11306 #include <stdio.h>
11307
11308 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11309 #define debug(...) fprintf (stderr, __VA_ARGS__)
11310 #define showlist(...) puts (#__VA_ARGS__)
11311 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11312 static void
11313 test_varargs_macros (void)
11314 {
11315 int x = 1234;
11316 int y = 5678;
11317 debug ("Flag");
11318 debug ("X = %d\n", x);
11319 showlist (The first, second, and third items.);
11320 report (x>y, "x is %d but y is %d", x, y);
11321 }
11322
11323 // Check long long types.
11324 #define BIG64 18446744073709551615ull
11325 #define BIG32 4294967295ul
11326 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11327 #if !BIG_OK
11328 your preprocessor is broken;
11329 #endif
11330 #if BIG_OK
11331 #else
11332 your preprocessor is broken;
11333 #endif
11334 static long long int bignum = -9223372036854775807LL;
11335 static unsigned long long int ubignum = BIG64;
11336
11337 struct incomplete_array
11338 {
11339 int datasize;
11340 double data[];
11341 };
11342
11343 struct named_init {
11344 int number;
11345 const wchar_t *name;
11346 double average;
11347 };
11348
11349 typedef const char *ccp;
11350
11351 static inline int
11352 test_restrict (ccp restrict text)
11353 {
11354 // See if C++-style comments work.
11355 // Iterate through items via the restricted pointer.
11356 // Also check for declarations in for loops.
11357 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11358 continue;
11359 return 0;
11360 }
11361
11362 // Check varargs and va_copy.
11363 static void
11364 test_varargs (const char *format, ...)
11365 {
11366 va_list args;
11367 va_start (args, format);
11368 va_list args_copy;
11369 va_copy (args_copy, args);
11370
11371 const char *str;
11372 int number;
11373 float fnumber;
11374
11375 while (*format)
11376 {
11377 switch (*format++)
11378 {
11379 case 's': // string
11380 str = va_arg (args_copy, const char *);
11381 break;
11382 case 'd': // int
11383 number = va_arg (args_copy, int);
11384 break;
11385 case 'f': // float
11386 fnumber = va_arg (args_copy, double);
11387 break;
11388 default:
11389 break;
11390 }
11391 }
11392 va_end (args_copy);
11393 va_end (args);
11394 }
11395
11396 int
11397 main ()
11398 {
11399
11400 // Check bool.
11401 _Bool success = false;
11402
11403 // Check restrict.
11404 if (test_restrict ("String literal") == 0)
11405 success = true;
11406 char *restrict newvar = "Another string";
11407
11408 // Check varargs.
11409 test_varargs ("s, d' f .", "string", 65, 34.234);
11410 test_varargs_macros ();
11411
11412 // Check flexible array members.
11413 struct incomplete_array *ia =
11414 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11415 ia->datasize = 10;
11416 for (int i = 0; i < ia->datasize; ++i)
11417 ia->data[i] = i * 1.234;
11418
11419 // Check named initializers.
11420 struct named_init ni = {
11421 .number = 34,
11422 .name = L"Test wide string",
11423 .average = 543.34343,
11424 };
11425
11426 ni.number = 58;
11427
11428 int dynamic_array[ni.number];
11429 dynamic_array[ni.number - 1] = 543;
11430
11431 // work around unused variable warnings
11432 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11433 || dynamic_array[ni.number - 1] != 543);
11434
11435 ;
11436 return 0;
11437 }
11438 _ACEOF
11439 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11440 do
11441 CC="$ac_save_CC $ac_arg"
11442 if ac_fn_c_try_compile "$LINENO"; then :
11443 ac_cv_prog_cc_c99=$ac_arg
11444 fi
11445 rm -f core conftest.err conftest.$ac_objext
11446 test "x$ac_cv_prog_cc_c99" != "xno" && break
11447 done
11448 rm -f conftest.$ac_ext
11449 CC=$ac_save_CC
11450
11451 fi
11452 # AC_CACHE_VAL
11453 case "x$ac_cv_prog_cc_c99" in
11454 x)
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11456 $as_echo "none needed" >&6; } ;;
11457 xno)
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11459 $as_echo "unsupported" >&6; } ;;
11460 *)
11461 CC="$CC $ac_cv_prog_cc_c99"
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11463 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11464 esac
11465 if test "x$ac_cv_prog_cc_c99" != xno; then :
11466
11467 fi
11468
11469
11470
11471
11472
11473
11474 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11475 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11476 CLANGCC="yes"
11477 else
11478 CLANGCC="no"
11479 fi
11480
11481 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11482 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11483 INTELCC="yes"
11484 else
11485 INTELCC="no"
11486 fi
11487
11488 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11489 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11490 SUNCC="yes"
11491 else
11492 SUNCC="no"
11493 fi
11494
11495
11496
11497
11498 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11499 if test -n "$ac_tool_prefix"; then
11500 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11501 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11503 $as_echo_n "checking for $ac_word... " >&6; }
11504 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11505 $as_echo_n "(cached) " >&6
11506 else
11507 case $PKG_CONFIG in
11508 [\\/]* | ?:[\\/]*)
11509 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11510 ;;
11511 *)
11512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11513 for as_dir in $PATH
11514 do
11515 IFS=$as_save_IFS
11516 test -z "$as_dir" && as_dir=.
11517 for ac_exec_ext in '' $ac_executable_extensions; do
11518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11519 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11521 break 2
11522 fi
11523 done
11524 done
11525 IFS=$as_save_IFS
11526
11527 ;;
11528 esac
11529 fi
11530 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11531 if test -n "$PKG_CONFIG"; then
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11533 $as_echo "$PKG_CONFIG" >&6; }
11534 else
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11536 $as_echo "no" >&6; }
11537 fi
11538
11539
11540 fi
11541 if test -z "$ac_cv_path_PKG_CONFIG"; then
11542 ac_pt_PKG_CONFIG=$PKG_CONFIG
11543 # Extract the first word of "pkg-config", so it can be a program name with args.
11544 set dummy pkg-config; ac_word=$2
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11546 $as_echo_n "checking for $ac_word... " >&6; }
11547 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11548 $as_echo_n "(cached) " >&6
11549 else
11550 case $ac_pt_PKG_CONFIG in
11551 [\\/]* | ?:[\\/]*)
11552 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11553 ;;
11554 *)
11555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11556 for as_dir in $PATH
11557 do
11558 IFS=$as_save_IFS
11559 test -z "$as_dir" && as_dir=.
11560 for ac_exec_ext in '' $ac_executable_extensions; do
11561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11562 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11564 break 2
11565 fi
11566 done
11567 done
11568 IFS=$as_save_IFS
11569
11570 ;;
11571 esac
11572 fi
11573 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11574 if test -n "$ac_pt_PKG_CONFIG"; then
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11576 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11577 else
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11579 $as_echo "no" >&6; }
11580 fi
11581
11582 if test "x$ac_pt_PKG_CONFIG" = x; then
11583 PKG_CONFIG=""
11584 else
11585 case $cross_compiling:$ac_tool_warned in
11586 yes:)
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11589 ac_tool_warned=yes ;;
11590 esac
11591 PKG_CONFIG=$ac_pt_PKG_CONFIG
11592 fi
11593 else
11594 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11595 fi
11596
11597 fi
11598 if test -n "$PKG_CONFIG"; then
11599 _pkg_min_version=0.9.0
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11601 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11602 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11604 $as_echo "yes" >&6; }
11605 else
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11607 $as_echo "no" >&6; }
11608 PKG_CONFIG=""
11609 fi
11610
11611 fi
11612
11613
11614
11615
11616
11617 # Check whether --enable-selective-werror was given.
11618 if test "${enable_selective_werror+set}" = set; then :
11619 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11620 else
11621 SELECTIVE_WERROR=yes
11622 fi
11623
11624
11625
11626
11627
11628 # -v is too short to test reliably with XORG_TESTSET_CFLAG
11629 if test "x$SUNCC" = "xyes"; then
11630 BASE_CFLAGS="-v"
11631 else
11632 BASE_CFLAGS=""
11633 fi
11634
11635 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649 xorg_testset_save_CFLAGS="$CFLAGS"
11650
11651 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11652 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11654 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11655 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11656 $as_echo_n "(cached) " >&6
11657 else
11658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11659 /* end confdefs.h. */
11660 int i;
11661 _ACEOF
11662 if ac_fn_c_try_compile "$LINENO"; then :
11663 xorg_cv_cc_flag_unknown_warning_option=yes
11664 else
11665 xorg_cv_cc_flag_unknown_warning_option=no
11666 fi
11667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11668 fi
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11670 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11671 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11672 CFLAGS="$xorg_testset_save_CFLAGS"
11673 fi
11674
11675 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11678 fi
11679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11681 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11682 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11683 $as_echo_n "(cached) " >&6
11684 else
11685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11686 /* end confdefs.h. */
11687 int i;
11688 _ACEOF
11689 if ac_fn_c_try_compile "$LINENO"; then :
11690 xorg_cv_cc_flag_unused_command_line_argument=yes
11691 else
11692 xorg_cv_cc_flag_unused_command_line_argument=no
11693 fi
11694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11695 fi
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11697 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11698 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11699 CFLAGS="$xorg_testset_save_CFLAGS"
11700 fi
11701
11702 found="no"
11703
11704 if test $found = "no" ; then
11705 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11707 fi
11708
11709 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11711 fi
11712
11713 CFLAGS="$CFLAGS -Wall"
11714
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
11716 $as_echo_n "checking if $CC supports -Wall... " >&6; }
11717 cacheid=xorg_cv_cc_flag__Wall
11718 if eval \${$cacheid+:} false; then :
11719 $as_echo_n "(cached) " >&6
11720 else
11721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11722 /* end confdefs.h. */
11723 int i;
11724 int
11725 main ()
11726 {
11727
11728 ;
11729 return 0;
11730 }
11731 _ACEOF
11732 if ac_fn_c_try_link "$LINENO"; then :
11733 eval $cacheid=yes
11734 else
11735 eval $cacheid=no
11736 fi
11737 rm -f core conftest.err conftest.$ac_objext \
11738 conftest$ac_exeext conftest.$ac_ext
11739 fi
11740
11741
11742 CFLAGS="$xorg_testset_save_CFLAGS"
11743
11744 eval supported=\$$cacheid
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11746 $as_echo "$supported" >&6; }
11747 if test "$supported" = "yes" ; then
11748 BASE_CFLAGS="$BASE_CFLAGS -Wall"
11749 found="yes"
11750 fi
11751 fi
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767 xorg_testset_save_CFLAGS="$CFLAGS"
11768
11769 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11772 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11773 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11774 $as_echo_n "(cached) " >&6
11775 else
11776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11777 /* end confdefs.h. */
11778 int i;
11779 _ACEOF
11780 if ac_fn_c_try_compile "$LINENO"; then :
11781 xorg_cv_cc_flag_unknown_warning_option=yes
11782 else
11783 xorg_cv_cc_flag_unknown_warning_option=no
11784 fi
11785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11786 fi
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11788 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11789 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11790 CFLAGS="$xorg_testset_save_CFLAGS"
11791 fi
11792
11793 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11796 fi
11797 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11799 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11800 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11801 $as_echo_n "(cached) " >&6
11802 else
11803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11804 /* end confdefs.h. */
11805 int i;
11806 _ACEOF
11807 if ac_fn_c_try_compile "$LINENO"; then :
11808 xorg_cv_cc_flag_unused_command_line_argument=yes
11809 else
11810 xorg_cv_cc_flag_unused_command_line_argument=no
11811 fi
11812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11813 fi
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11815 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11816 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11817 CFLAGS="$xorg_testset_save_CFLAGS"
11818 fi
11819
11820 found="no"
11821
11822 if test $found = "no" ; then
11823 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11825 fi
11826
11827 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11829 fi
11830
11831 CFLAGS="$CFLAGS -Wpointer-arith"
11832
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
11834 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
11835 cacheid=xorg_cv_cc_flag__Wpointer_arith
11836 if eval \${$cacheid+:} false; then :
11837 $as_echo_n "(cached) " >&6
11838 else
11839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11840 /* end confdefs.h. */
11841 int i;
11842 int
11843 main ()
11844 {
11845
11846 ;
11847 return 0;
11848 }
11849 _ACEOF
11850 if ac_fn_c_try_link "$LINENO"; then :
11851 eval $cacheid=yes
11852 else
11853 eval $cacheid=no
11854 fi
11855 rm -f core conftest.err conftest.$ac_objext \
11856 conftest$ac_exeext conftest.$ac_ext
11857 fi
11858
11859
11860 CFLAGS="$xorg_testset_save_CFLAGS"
11861
11862 eval supported=\$$cacheid
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11864 $as_echo "$supported" >&6; }
11865 if test "$supported" = "yes" ; then
11866 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
11867 found="yes"
11868 fi
11869 fi
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885 xorg_testset_save_CFLAGS="$CFLAGS"
11886
11887 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11890 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11891 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11892 $as_echo_n "(cached) " >&6
11893 else
11894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11895 /* end confdefs.h. */
11896 int i;
11897 _ACEOF
11898 if ac_fn_c_try_compile "$LINENO"; then :
11899 xorg_cv_cc_flag_unknown_warning_option=yes
11900 else
11901 xorg_cv_cc_flag_unknown_warning_option=no
11902 fi
11903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11904 fi
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11906 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11907 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11908 CFLAGS="$xorg_testset_save_CFLAGS"
11909 fi
11910
11911 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11914 fi
11915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11917 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11918 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11919 $as_echo_n "(cached) " >&6
11920 else
11921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11922 /* end confdefs.h. */
11923 int i;
11924 _ACEOF
11925 if ac_fn_c_try_compile "$LINENO"; then :
11926 xorg_cv_cc_flag_unused_command_line_argument=yes
11927 else
11928 xorg_cv_cc_flag_unused_command_line_argument=no
11929 fi
11930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11931 fi
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11933 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11934 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11935 CFLAGS="$xorg_testset_save_CFLAGS"
11936 fi
11937
11938 found="no"
11939
11940 if test $found = "no" ; then
11941 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11942 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11943 fi
11944
11945 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11947 fi
11948
11949 CFLAGS="$CFLAGS -Wmissing-declarations"
11950
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
11952 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
11953 cacheid=xorg_cv_cc_flag__Wmissing_declarations
11954 if eval \${$cacheid+:} false; then :
11955 $as_echo_n "(cached) " >&6
11956 else
11957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11958 /* end confdefs.h. */
11959 int i;
11960 int
11961 main ()
11962 {
11963
11964 ;
11965 return 0;
11966 }
11967 _ACEOF
11968 if ac_fn_c_try_link "$LINENO"; then :
11969 eval $cacheid=yes
11970 else
11971 eval $cacheid=no
11972 fi
11973 rm -f core conftest.err conftest.$ac_objext \
11974 conftest$ac_exeext conftest.$ac_ext
11975 fi
11976
11977
11978 CFLAGS="$xorg_testset_save_CFLAGS"
11979
11980 eval supported=\$$cacheid
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11982 $as_echo "$supported" >&6; }
11983 if test "$supported" = "yes" ; then
11984 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
11985 found="yes"
11986 fi
11987 fi
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003 xorg_testset_save_CFLAGS="$CFLAGS"
12004
12005 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12008 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12009 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12010 $as_echo_n "(cached) " >&6
12011 else
12012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12013 /* end confdefs.h. */
12014 int i;
12015 _ACEOF
12016 if ac_fn_c_try_compile "$LINENO"; then :
12017 xorg_cv_cc_flag_unknown_warning_option=yes
12018 else
12019 xorg_cv_cc_flag_unknown_warning_option=no
12020 fi
12021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12022 fi
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12024 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12025 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12026 CFLAGS="$xorg_testset_save_CFLAGS"
12027 fi
12028
12029 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12032 fi
12033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12035 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12036 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12037 $as_echo_n "(cached) " >&6
12038 else
12039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12040 /* end confdefs.h. */
12041 int i;
12042 _ACEOF
12043 if ac_fn_c_try_compile "$LINENO"; then :
12044 xorg_cv_cc_flag_unused_command_line_argument=yes
12045 else
12046 xorg_cv_cc_flag_unused_command_line_argument=no
12047 fi
12048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12049 fi
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12051 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12052 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12053 CFLAGS="$xorg_testset_save_CFLAGS"
12054 fi
12055
12056 found="no"
12057
12058 if test $found = "no" ; then
12059 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12061 fi
12062
12063 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12065 fi
12066
12067 CFLAGS="$CFLAGS -Wformat=2"
12068
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12070 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12071 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
12072 if eval \${$cacheid+:} false; then :
12073 $as_echo_n "(cached) " >&6
12074 else
12075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12076 /* end confdefs.h. */
12077 int i;
12078 int
12079 main ()
12080 {
12081
12082 ;
12083 return 0;
12084 }
12085 _ACEOF
12086 if ac_fn_c_try_link "$LINENO"; then :
12087 eval $cacheid=yes
12088 else
12089 eval $cacheid=no
12090 fi
12091 rm -f core conftest.err conftest.$ac_objext \
12092 conftest$ac_exeext conftest.$ac_ext
12093 fi
12094
12095
12096 CFLAGS="$xorg_testset_save_CFLAGS"
12097
12098 eval supported=\$$cacheid
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12100 $as_echo "$supported" >&6; }
12101 if test "$supported" = "yes" ; then
12102 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12103 found="yes"
12104 fi
12105 fi
12106
12107 if test $found = "no" ; then
12108 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12110 fi
12111
12112 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12114 fi
12115
12116 CFLAGS="$CFLAGS -Wformat"
12117
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12119 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12120 cacheid=xorg_cv_cc_flag__Wformat
12121 if eval \${$cacheid+:} false; then :
12122 $as_echo_n "(cached) " >&6
12123 else
12124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12125 /* end confdefs.h. */
12126 int i;
12127 int
12128 main ()
12129 {
12130
12131 ;
12132 return 0;
12133 }
12134 _ACEOF
12135 if ac_fn_c_try_link "$LINENO"; then :
12136 eval $cacheid=yes
12137 else
12138 eval $cacheid=no
12139 fi
12140 rm -f core conftest.err conftest.$ac_objext \
12141 conftest$ac_exeext conftest.$ac_ext
12142 fi
12143
12144
12145 CFLAGS="$xorg_testset_save_CFLAGS"
12146
12147 eval supported=\$$cacheid
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12149 $as_echo "$supported" >&6; }
12150 if test "$supported" = "yes" ; then
12151 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12152 found="yes"
12153 fi
12154 fi
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172 xorg_testset_save_CFLAGS="$CFLAGS"
12173
12174 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12177 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12178 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12179 $as_echo_n "(cached) " >&6
12180 else
12181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12182 /* end confdefs.h. */
12183 int i;
12184 _ACEOF
12185 if ac_fn_c_try_compile "$LINENO"; then :
12186 xorg_cv_cc_flag_unknown_warning_option=yes
12187 else
12188 xorg_cv_cc_flag_unknown_warning_option=no
12189 fi
12190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12191 fi
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12193 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12194 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12195 CFLAGS="$xorg_testset_save_CFLAGS"
12196 fi
12197
12198 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12201 fi
12202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12204 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12205 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12206 $as_echo_n "(cached) " >&6
12207 else
12208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12209 /* end confdefs.h. */
12210 int i;
12211 _ACEOF
12212 if ac_fn_c_try_compile "$LINENO"; then :
12213 xorg_cv_cc_flag_unused_command_line_argument=yes
12214 else
12215 xorg_cv_cc_flag_unused_command_line_argument=no
12216 fi
12217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12218 fi
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12220 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12221 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12222 CFLAGS="$xorg_testset_save_CFLAGS"
12223 fi
12224
12225 found="no"
12226
12227 if test $found = "no" ; then
12228 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12229 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12230 fi
12231
12232 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12234 fi
12235
12236 CFLAGS="$CFLAGS -Wstrict-prototypes"
12237
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12239 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12240 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12241 if eval \${$cacheid+:} false; then :
12242 $as_echo_n "(cached) " >&6
12243 else
12244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12245 /* end confdefs.h. */
12246 int i;
12247 int
12248 main ()
12249 {
12250
12251 ;
12252 return 0;
12253 }
12254 _ACEOF
12255 if ac_fn_c_try_link "$LINENO"; then :
12256 eval $cacheid=yes
12257 else
12258 eval $cacheid=no
12259 fi
12260 rm -f core conftest.err conftest.$ac_objext \
12261 conftest$ac_exeext conftest.$ac_ext
12262 fi
12263
12264
12265 CFLAGS="$xorg_testset_save_CFLAGS"
12266
12267 eval supported=\$$cacheid
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12269 $as_echo "$supported" >&6; }
12270 if test "$supported" = "yes" ; then
12271 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12272 found="yes"
12273 fi
12274 fi
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290 xorg_testset_save_CFLAGS="$CFLAGS"
12291
12292 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12295 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12296 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12297 $as_echo_n "(cached) " >&6
12298 else
12299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12300 /* end confdefs.h. */
12301 int i;
12302 _ACEOF
12303 if ac_fn_c_try_compile "$LINENO"; then :
12304 xorg_cv_cc_flag_unknown_warning_option=yes
12305 else
12306 xorg_cv_cc_flag_unknown_warning_option=no
12307 fi
12308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12309 fi
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12311 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12312 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12313 CFLAGS="$xorg_testset_save_CFLAGS"
12314 fi
12315
12316 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12319 fi
12320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12322 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12323 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12324 $as_echo_n "(cached) " >&6
12325 else
12326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12327 /* end confdefs.h. */
12328 int i;
12329 _ACEOF
12330 if ac_fn_c_try_compile "$LINENO"; then :
12331 xorg_cv_cc_flag_unused_command_line_argument=yes
12332 else
12333 xorg_cv_cc_flag_unused_command_line_argument=no
12334 fi
12335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12336 fi
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12338 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12339 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12340 CFLAGS="$xorg_testset_save_CFLAGS"
12341 fi
12342
12343 found="no"
12344
12345 if test $found = "no" ; then
12346 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12347 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12348 fi
12349
12350 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12352 fi
12353
12354 CFLAGS="$CFLAGS -Wmissing-prototypes"
12355
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12357 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12358 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12359 if eval \${$cacheid+:} false; then :
12360 $as_echo_n "(cached) " >&6
12361 else
12362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12363 /* end confdefs.h. */
12364 int i;
12365 int
12366 main ()
12367 {
12368
12369 ;
12370 return 0;
12371 }
12372 _ACEOF
12373 if ac_fn_c_try_link "$LINENO"; then :
12374 eval $cacheid=yes
12375 else
12376 eval $cacheid=no
12377 fi
12378 rm -f core conftest.err conftest.$ac_objext \
12379 conftest$ac_exeext conftest.$ac_ext
12380 fi
12381
12382
12383 CFLAGS="$xorg_testset_save_CFLAGS"
12384
12385 eval supported=\$$cacheid
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12387 $as_echo "$supported" >&6; }
12388 if test "$supported" = "yes" ; then
12389 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12390 found="yes"
12391 fi
12392 fi
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408 xorg_testset_save_CFLAGS="$CFLAGS"
12409
12410 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12413 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12414 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12415 $as_echo_n "(cached) " >&6
12416 else
12417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12418 /* end confdefs.h. */
12419 int i;
12420 _ACEOF
12421 if ac_fn_c_try_compile "$LINENO"; then :
12422 xorg_cv_cc_flag_unknown_warning_option=yes
12423 else
12424 xorg_cv_cc_flag_unknown_warning_option=no
12425 fi
12426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12427 fi
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12429 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12430 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12431 CFLAGS="$xorg_testset_save_CFLAGS"
12432 fi
12433
12434 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12437 fi
12438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12440 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12441 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12442 $as_echo_n "(cached) " >&6
12443 else
12444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12445 /* end confdefs.h. */
12446 int i;
12447 _ACEOF
12448 if ac_fn_c_try_compile "$LINENO"; then :
12449 xorg_cv_cc_flag_unused_command_line_argument=yes
12450 else
12451 xorg_cv_cc_flag_unused_command_line_argument=no
12452 fi
12453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12454 fi
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12456 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12457 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12458 CFLAGS="$xorg_testset_save_CFLAGS"
12459 fi
12460
12461 found="no"
12462
12463 if test $found = "no" ; then
12464 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12465 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12466 fi
12467
12468 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12470 fi
12471
12472 CFLAGS="$CFLAGS -Wnested-externs"
12473
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12475 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12476 cacheid=xorg_cv_cc_flag__Wnested_externs
12477 if eval \${$cacheid+:} false; then :
12478 $as_echo_n "(cached) " >&6
12479 else
12480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12481 /* end confdefs.h. */
12482 int i;
12483 int
12484 main ()
12485 {
12486
12487 ;
12488 return 0;
12489 }
12490 _ACEOF
12491 if ac_fn_c_try_link "$LINENO"; then :
12492 eval $cacheid=yes
12493 else
12494 eval $cacheid=no
12495 fi
12496 rm -f core conftest.err conftest.$ac_objext \
12497 conftest$ac_exeext conftest.$ac_ext
12498 fi
12499
12500
12501 CFLAGS="$xorg_testset_save_CFLAGS"
12502
12503 eval supported=\$$cacheid
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12505 $as_echo "$supported" >&6; }
12506 if test "$supported" = "yes" ; then
12507 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12508 found="yes"
12509 fi
12510 fi
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526 xorg_testset_save_CFLAGS="$CFLAGS"
12527
12528 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12531 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12532 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12533 $as_echo_n "(cached) " >&6
12534 else
12535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12536 /* end confdefs.h. */
12537 int i;
12538 _ACEOF
12539 if ac_fn_c_try_compile "$LINENO"; then :
12540 xorg_cv_cc_flag_unknown_warning_option=yes
12541 else
12542 xorg_cv_cc_flag_unknown_warning_option=no
12543 fi
12544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12545 fi
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12547 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12548 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12549 CFLAGS="$xorg_testset_save_CFLAGS"
12550 fi
12551
12552 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12555 fi
12556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12558 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12559 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12560 $as_echo_n "(cached) " >&6
12561 else
12562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12563 /* end confdefs.h. */
12564 int i;
12565 _ACEOF
12566 if ac_fn_c_try_compile "$LINENO"; then :
12567 xorg_cv_cc_flag_unused_command_line_argument=yes
12568 else
12569 xorg_cv_cc_flag_unused_command_line_argument=no
12570 fi
12571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12572 fi
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12574 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12575 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12576 CFLAGS="$xorg_testset_save_CFLAGS"
12577 fi
12578
12579 found="no"
12580
12581 if test $found = "no" ; then
12582 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12583 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12584 fi
12585
12586 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12588 fi
12589
12590 CFLAGS="$CFLAGS -Wbad-function-cast"
12591
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12593 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12594 cacheid=xorg_cv_cc_flag__Wbad_function_cast
12595 if eval \${$cacheid+:} false; then :
12596 $as_echo_n "(cached) " >&6
12597 else
12598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12599 /* end confdefs.h. */
12600 int i;
12601 int
12602 main ()
12603 {
12604
12605 ;
12606 return 0;
12607 }
12608 _ACEOF
12609 if ac_fn_c_try_link "$LINENO"; then :
12610 eval $cacheid=yes
12611 else
12612 eval $cacheid=no
12613 fi
12614 rm -f core conftest.err conftest.$ac_objext \
12615 conftest$ac_exeext conftest.$ac_ext
12616 fi
12617
12618
12619 CFLAGS="$xorg_testset_save_CFLAGS"
12620
12621 eval supported=\$$cacheid
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12623 $as_echo "$supported" >&6; }
12624 if test "$supported" = "yes" ; then
12625 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12626 found="yes"
12627 fi
12628 fi
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644 xorg_testset_save_CFLAGS="$CFLAGS"
12645
12646 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12647 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12649 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12650 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12651 $as_echo_n "(cached) " >&6
12652 else
12653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12654 /* end confdefs.h. */
12655 int i;
12656 _ACEOF
12657 if ac_fn_c_try_compile "$LINENO"; then :
12658 xorg_cv_cc_flag_unknown_warning_option=yes
12659 else
12660 xorg_cv_cc_flag_unknown_warning_option=no
12661 fi
12662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12663 fi
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12665 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12666 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12667 CFLAGS="$xorg_testset_save_CFLAGS"
12668 fi
12669
12670 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12673 fi
12674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12676 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12677 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12678 $as_echo_n "(cached) " >&6
12679 else
12680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12681 /* end confdefs.h. */
12682 int i;
12683 _ACEOF
12684 if ac_fn_c_try_compile "$LINENO"; then :
12685 xorg_cv_cc_flag_unused_command_line_argument=yes
12686 else
12687 xorg_cv_cc_flag_unused_command_line_argument=no
12688 fi
12689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12690 fi
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12692 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12693 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12694 CFLAGS="$xorg_testset_save_CFLAGS"
12695 fi
12696
12697 found="no"
12698
12699 if test $found = "no" ; then
12700 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12701 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12702 fi
12703
12704 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12706 fi
12707
12708 CFLAGS="$CFLAGS -Wold-style-definition"
12709
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12711 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12712 cacheid=xorg_cv_cc_flag__Wold_style_definition
12713 if eval \${$cacheid+:} false; then :
12714 $as_echo_n "(cached) " >&6
12715 else
12716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12717 /* end confdefs.h. */
12718 int i;
12719 int
12720 main ()
12721 {
12722
12723 ;
12724 return 0;
12725 }
12726 _ACEOF
12727 if ac_fn_c_try_link "$LINENO"; then :
12728 eval $cacheid=yes
12729 else
12730 eval $cacheid=no
12731 fi
12732 rm -f core conftest.err conftest.$ac_objext \
12733 conftest$ac_exeext conftest.$ac_ext
12734 fi
12735
12736
12737 CFLAGS="$xorg_testset_save_CFLAGS"
12738
12739 eval supported=\$$cacheid
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12741 $as_echo "$supported" >&6; }
12742 if test "$supported" = "yes" ; then
12743 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12744 found="yes"
12745 fi
12746 fi
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762 xorg_testset_save_CFLAGS="$CFLAGS"
12763
12764 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12765 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12767 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12768 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12769 $as_echo_n "(cached) " >&6
12770 else
12771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12772 /* end confdefs.h. */
12773 int i;
12774 _ACEOF
12775 if ac_fn_c_try_compile "$LINENO"; then :
12776 xorg_cv_cc_flag_unknown_warning_option=yes
12777 else
12778 xorg_cv_cc_flag_unknown_warning_option=no
12779 fi
12780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12781 fi
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12783 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12784 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12785 CFLAGS="$xorg_testset_save_CFLAGS"
12786 fi
12787
12788 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12791 fi
12792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12794 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12795 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12796 $as_echo_n "(cached) " >&6
12797 else
12798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12799 /* end confdefs.h. */
12800 int i;
12801 _ACEOF
12802 if ac_fn_c_try_compile "$LINENO"; then :
12803 xorg_cv_cc_flag_unused_command_line_argument=yes
12804 else
12805 xorg_cv_cc_flag_unused_command_line_argument=no
12806 fi
12807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12808 fi
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12810 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12811 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12812 CFLAGS="$xorg_testset_save_CFLAGS"
12813 fi
12814
12815 found="no"
12816
12817 if test $found = "no" ; then
12818 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12819 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12820 fi
12821
12822 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12824 fi
12825
12826 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12827
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
12829 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
12830 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
12831 if eval \${$cacheid+:} false; then :
12832 $as_echo_n "(cached) " >&6
12833 else
12834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12835 /* end confdefs.h. */
12836 int i;
12837 int
12838 main ()
12839 {
12840
12841 ;
12842 return 0;
12843 }
12844 _ACEOF
12845 if ac_fn_c_try_link "$LINENO"; then :
12846 eval $cacheid=yes
12847 else
12848 eval $cacheid=no
12849 fi
12850 rm -f core conftest.err conftest.$ac_objext \
12851 conftest$ac_exeext conftest.$ac_ext
12852 fi
12853
12854
12855 CFLAGS="$xorg_testset_save_CFLAGS"
12856
12857 eval supported=\$$cacheid
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12859 $as_echo "$supported" >&6; }
12860 if test "$supported" = "yes" ; then
12861 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
12862 found="yes"
12863 fi
12864 fi
12865
12866
12867
12868
12869
12870 # This chunk adds additional warnings that could catch undesired effects.
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884 xorg_testset_save_CFLAGS="$CFLAGS"
12885
12886 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12887 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12889 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12890 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12891 $as_echo_n "(cached) " >&6
12892 else
12893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12894 /* end confdefs.h. */
12895 int i;
12896 _ACEOF
12897 if ac_fn_c_try_compile "$LINENO"; then :
12898 xorg_cv_cc_flag_unknown_warning_option=yes
12899 else
12900 xorg_cv_cc_flag_unknown_warning_option=no
12901 fi
12902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12903 fi
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12905 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12906 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12907 CFLAGS="$xorg_testset_save_CFLAGS"
12908 fi
12909
12910 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12912 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12913 fi
12914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12916 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12917 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12918 $as_echo_n "(cached) " >&6
12919 else
12920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12921 /* end confdefs.h. */
12922 int i;
12923 _ACEOF
12924 if ac_fn_c_try_compile "$LINENO"; then :
12925 xorg_cv_cc_flag_unused_command_line_argument=yes
12926 else
12927 xorg_cv_cc_flag_unused_command_line_argument=no
12928 fi
12929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12930 fi
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12932 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12933 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12934 CFLAGS="$xorg_testset_save_CFLAGS"
12935 fi
12936
12937 found="no"
12938
12939 if test $found = "no" ; then
12940 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12941 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12942 fi
12943
12944 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12946 fi
12947
12948 CFLAGS="$CFLAGS -Wunused"
12949
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
12951 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
12952 cacheid=xorg_cv_cc_flag__Wunused
12953 if eval \${$cacheid+:} 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 int
12960 main ()
12961 {
12962
12963 ;
12964 return 0;
12965 }
12966 _ACEOF
12967 if ac_fn_c_try_link "$LINENO"; then :
12968 eval $cacheid=yes
12969 else
12970 eval $cacheid=no
12971 fi
12972 rm -f core conftest.err conftest.$ac_objext \
12973 conftest$ac_exeext conftest.$ac_ext
12974 fi
12975
12976
12977 CFLAGS="$xorg_testset_save_CFLAGS"
12978
12979 eval supported=\$$cacheid
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12981 $as_echo "$supported" >&6; }
12982 if test "$supported" = "yes" ; then
12983 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
12984 found="yes"
12985 fi
12986 fi
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002 xorg_testset_save_CFLAGS="$CFLAGS"
13003
13004 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13005 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13007 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13008 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13009 $as_echo_n "(cached) " >&6
13010 else
13011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13012 /* end confdefs.h. */
13013 int i;
13014 _ACEOF
13015 if ac_fn_c_try_compile "$LINENO"; then :
13016 xorg_cv_cc_flag_unknown_warning_option=yes
13017 else
13018 xorg_cv_cc_flag_unknown_warning_option=no
13019 fi
13020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13021 fi
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13023 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13024 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13025 CFLAGS="$xorg_testset_save_CFLAGS"
13026 fi
13027
13028 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13030 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13031 fi
13032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13034 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13035 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13036 $as_echo_n "(cached) " >&6
13037 else
13038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13039 /* end confdefs.h. */
13040 int i;
13041 _ACEOF
13042 if ac_fn_c_try_compile "$LINENO"; then :
13043 xorg_cv_cc_flag_unused_command_line_argument=yes
13044 else
13045 xorg_cv_cc_flag_unused_command_line_argument=no
13046 fi
13047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13048 fi
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13050 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13051 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13052 CFLAGS="$xorg_testset_save_CFLAGS"
13053 fi
13054
13055 found="no"
13056
13057 if test $found = "no" ; then
13058 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13059 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13060 fi
13061
13062 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13064 fi
13065
13066 CFLAGS="$CFLAGS -Wuninitialized"
13067
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13069 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13070 cacheid=xorg_cv_cc_flag__Wuninitialized
13071 if eval \${$cacheid+:} 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 int
13078 main ()
13079 {
13080
13081 ;
13082 return 0;
13083 }
13084 _ACEOF
13085 if ac_fn_c_try_link "$LINENO"; then :
13086 eval $cacheid=yes
13087 else
13088 eval $cacheid=no
13089 fi
13090 rm -f core conftest.err conftest.$ac_objext \
13091 conftest$ac_exeext conftest.$ac_ext
13092 fi
13093
13094
13095 CFLAGS="$xorg_testset_save_CFLAGS"
13096
13097 eval supported=\$$cacheid
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13099 $as_echo "$supported" >&6; }
13100 if test "$supported" = "yes" ; then
13101 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13102 found="yes"
13103 fi
13104 fi
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120 xorg_testset_save_CFLAGS="$CFLAGS"
13121
13122 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13123 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13125 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13126 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13127 $as_echo_n "(cached) " >&6
13128 else
13129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13130 /* end confdefs.h. */
13131 int i;
13132 _ACEOF
13133 if ac_fn_c_try_compile "$LINENO"; then :
13134 xorg_cv_cc_flag_unknown_warning_option=yes
13135 else
13136 xorg_cv_cc_flag_unknown_warning_option=no
13137 fi
13138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13139 fi
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13141 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13142 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13143 CFLAGS="$xorg_testset_save_CFLAGS"
13144 fi
13145
13146 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13148 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13149 fi
13150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13152 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13153 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13154 $as_echo_n "(cached) " >&6
13155 else
13156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13157 /* end confdefs.h. */
13158 int i;
13159 _ACEOF
13160 if ac_fn_c_try_compile "$LINENO"; then :
13161 xorg_cv_cc_flag_unused_command_line_argument=yes
13162 else
13163 xorg_cv_cc_flag_unused_command_line_argument=no
13164 fi
13165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13166 fi
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13168 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13169 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13170 CFLAGS="$xorg_testset_save_CFLAGS"
13171 fi
13172
13173 found="no"
13174
13175 if test $found = "no" ; then
13176 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13177 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13178 fi
13179
13180 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13182 fi
13183
13184 CFLAGS="$CFLAGS -Wshadow"
13185
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13187 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13188 cacheid=xorg_cv_cc_flag__Wshadow
13189 if eval \${$cacheid+:} 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 int
13196 main ()
13197 {
13198
13199 ;
13200 return 0;
13201 }
13202 _ACEOF
13203 if ac_fn_c_try_link "$LINENO"; then :
13204 eval $cacheid=yes
13205 else
13206 eval $cacheid=no
13207 fi
13208 rm -f core conftest.err conftest.$ac_objext \
13209 conftest$ac_exeext conftest.$ac_ext
13210 fi
13211
13212
13213 CFLAGS="$xorg_testset_save_CFLAGS"
13214
13215 eval supported=\$$cacheid
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13217 $as_echo "$supported" >&6; }
13218 if test "$supported" = "yes" ; then
13219 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13220 found="yes"
13221 fi
13222 fi
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238 xorg_testset_save_CFLAGS="$CFLAGS"
13239
13240 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13243 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13244 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13245 $as_echo_n "(cached) " >&6
13246 else
13247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13248 /* end confdefs.h. */
13249 int i;
13250 _ACEOF
13251 if ac_fn_c_try_compile "$LINENO"; then :
13252 xorg_cv_cc_flag_unknown_warning_option=yes
13253 else
13254 xorg_cv_cc_flag_unknown_warning_option=no
13255 fi
13256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13257 fi
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13259 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13260 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13261 CFLAGS="$xorg_testset_save_CFLAGS"
13262 fi
13263
13264 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13266 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13267 fi
13268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13270 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13271 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13272 $as_echo_n "(cached) " >&6
13273 else
13274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13275 /* end confdefs.h. */
13276 int i;
13277 _ACEOF
13278 if ac_fn_c_try_compile "$LINENO"; then :
13279 xorg_cv_cc_flag_unused_command_line_argument=yes
13280 else
13281 xorg_cv_cc_flag_unused_command_line_argument=no
13282 fi
13283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13284 fi
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13286 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13287 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13288 CFLAGS="$xorg_testset_save_CFLAGS"
13289 fi
13290
13291 found="no"
13292
13293 if test $found = "no" ; then
13294 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13295 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13296 fi
13297
13298 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13300 fi
13301
13302 CFLAGS="$CFLAGS -Wcast-qual"
13303
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
13305 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
13306 cacheid=xorg_cv_cc_flag__Wcast_qual
13307 if eval \${$cacheid+:} false; then :
13308 $as_echo_n "(cached) " >&6
13309 else
13310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13311 /* end confdefs.h. */
13312 int i;
13313 int
13314 main ()
13315 {
13316
13317 ;
13318 return 0;
13319 }
13320 _ACEOF
13321 if ac_fn_c_try_link "$LINENO"; then :
13322 eval $cacheid=yes
13323 else
13324 eval $cacheid=no
13325 fi
13326 rm -f core conftest.err conftest.$ac_objext \
13327 conftest$ac_exeext conftest.$ac_ext
13328 fi
13329
13330
13331 CFLAGS="$xorg_testset_save_CFLAGS"
13332
13333 eval supported=\$$cacheid
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13335 $as_echo "$supported" >&6; }
13336 if test "$supported" = "yes" ; then
13337 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13338 found="yes"
13339 fi
13340 fi
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356 xorg_testset_save_CFLAGS="$CFLAGS"
13357
13358 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13359 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13361 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13362 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13363 $as_echo_n "(cached) " >&6
13364 else
13365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13366 /* end confdefs.h. */
13367 int i;
13368 _ACEOF
13369 if ac_fn_c_try_compile "$LINENO"; then :
13370 xorg_cv_cc_flag_unknown_warning_option=yes
13371 else
13372 xorg_cv_cc_flag_unknown_warning_option=no
13373 fi
13374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13375 fi
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13377 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13378 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13379 CFLAGS="$xorg_testset_save_CFLAGS"
13380 fi
13381
13382 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13384 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13385 fi
13386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13388 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13389 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13390 $as_echo_n "(cached) " >&6
13391 else
13392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13393 /* end confdefs.h. */
13394 int i;
13395 _ACEOF
13396 if ac_fn_c_try_compile "$LINENO"; then :
13397 xorg_cv_cc_flag_unused_command_line_argument=yes
13398 else
13399 xorg_cv_cc_flag_unused_command_line_argument=no
13400 fi
13401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13402 fi
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13404 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13405 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13406 CFLAGS="$xorg_testset_save_CFLAGS"
13407 fi
13408
13409 found="no"
13410
13411 if test $found = "no" ; then
13412 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13413 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13414 fi
13415
13416 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13418 fi
13419
13420 CFLAGS="$CFLAGS -Wmissing-noreturn"
13421
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13423 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13424 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13425 if eval \${$cacheid+:} false; then :
13426 $as_echo_n "(cached) " >&6
13427 else
13428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13429 /* end confdefs.h. */
13430 int i;
13431 int
13432 main ()
13433 {
13434
13435 ;
13436 return 0;
13437 }
13438 _ACEOF
13439 if ac_fn_c_try_link "$LINENO"; then :
13440 eval $cacheid=yes
13441 else
13442 eval $cacheid=no
13443 fi
13444 rm -f core conftest.err conftest.$ac_objext \
13445 conftest$ac_exeext conftest.$ac_ext
13446 fi
13447
13448
13449 CFLAGS="$xorg_testset_save_CFLAGS"
13450
13451 eval supported=\$$cacheid
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13453 $as_echo "$supported" >&6; }
13454 if test "$supported" = "yes" ; then
13455 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13456 found="yes"
13457 fi
13458 fi
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474 xorg_testset_save_CFLAGS="$CFLAGS"
13475
13476 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13477 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13479 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13480 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13481 $as_echo_n "(cached) " >&6
13482 else
13483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13484 /* end confdefs.h. */
13485 int i;
13486 _ACEOF
13487 if ac_fn_c_try_compile "$LINENO"; then :
13488 xorg_cv_cc_flag_unknown_warning_option=yes
13489 else
13490 xorg_cv_cc_flag_unknown_warning_option=no
13491 fi
13492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13493 fi
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13495 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13496 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13497 CFLAGS="$xorg_testset_save_CFLAGS"
13498 fi
13499
13500 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13503 fi
13504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13506 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13507 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13508 $as_echo_n "(cached) " >&6
13509 else
13510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13511 /* end confdefs.h. */
13512 int i;
13513 _ACEOF
13514 if ac_fn_c_try_compile "$LINENO"; then :
13515 xorg_cv_cc_flag_unused_command_line_argument=yes
13516 else
13517 xorg_cv_cc_flag_unused_command_line_argument=no
13518 fi
13519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13520 fi
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13522 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13523 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13524 CFLAGS="$xorg_testset_save_CFLAGS"
13525 fi
13526
13527 found="no"
13528
13529 if test $found = "no" ; then
13530 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13532 fi
13533
13534 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13536 fi
13537
13538 CFLAGS="$CFLAGS -Wmissing-format-attribute"
13539
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13541 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13542 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
13543 if eval \${$cacheid+:} false; then :
13544 $as_echo_n "(cached) " >&6
13545 else
13546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13547 /* end confdefs.h. */
13548 int i;
13549 int
13550 main ()
13551 {
13552
13553 ;
13554 return 0;
13555 }
13556 _ACEOF
13557 if ac_fn_c_try_link "$LINENO"; then :
13558 eval $cacheid=yes
13559 else
13560 eval $cacheid=no
13561 fi
13562 rm -f core conftest.err conftest.$ac_objext \
13563 conftest$ac_exeext conftest.$ac_ext
13564 fi
13565
13566
13567 CFLAGS="$xorg_testset_save_CFLAGS"
13568
13569 eval supported=\$$cacheid
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13571 $as_echo "$supported" >&6; }
13572 if test "$supported" = "yes" ; then
13573 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13574 found="yes"
13575 fi
13576 fi
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592 xorg_testset_save_CFLAGS="$CFLAGS"
13593
13594 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13595 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13597 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13598 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13599 $as_echo_n "(cached) " >&6
13600 else
13601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13602 /* end confdefs.h. */
13603 int i;
13604 _ACEOF
13605 if ac_fn_c_try_compile "$LINENO"; then :
13606 xorg_cv_cc_flag_unknown_warning_option=yes
13607 else
13608 xorg_cv_cc_flag_unknown_warning_option=no
13609 fi
13610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13611 fi
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13613 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13614 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13615 CFLAGS="$xorg_testset_save_CFLAGS"
13616 fi
13617
13618 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13620 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13621 fi
13622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13624 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13625 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13626 $as_echo_n "(cached) " >&6
13627 else
13628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13629 /* end confdefs.h. */
13630 int i;
13631 _ACEOF
13632 if ac_fn_c_try_compile "$LINENO"; then :
13633 xorg_cv_cc_flag_unused_command_line_argument=yes
13634 else
13635 xorg_cv_cc_flag_unused_command_line_argument=no
13636 fi
13637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13638 fi
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13640 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13641 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13642 CFLAGS="$xorg_testset_save_CFLAGS"
13643 fi
13644
13645 found="no"
13646
13647 if test $found = "no" ; then
13648 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13649 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13650 fi
13651
13652 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13654 fi
13655
13656 CFLAGS="$CFLAGS -Wredundant-decls"
13657
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13659 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13660 cacheid=xorg_cv_cc_flag__Wredundant_decls
13661 if eval \${$cacheid+:} false; then :
13662 $as_echo_n "(cached) " >&6
13663 else
13664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13665 /* end confdefs.h. */
13666 int i;
13667 int
13668 main ()
13669 {
13670
13671 ;
13672 return 0;
13673 }
13674 _ACEOF
13675 if ac_fn_c_try_link "$LINENO"; then :
13676 eval $cacheid=yes
13677 else
13678 eval $cacheid=no
13679 fi
13680 rm -f core conftest.err conftest.$ac_objext \
13681 conftest$ac_exeext conftest.$ac_ext
13682 fi
13683
13684
13685 CFLAGS="$xorg_testset_save_CFLAGS"
13686
13687 eval supported=\$$cacheid
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13689 $as_echo "$supported" >&6; }
13690 if test "$supported" = "yes" ; then
13691 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13692 found="yes"
13693 fi
13694 fi
13695
13696
13697
13698 # These are currently disabled because they are noisy. They will be enabled
13699 # in the future once the codebase is sufficiently modernized to silence
13700 # them. For now, I don't want them to drown out the other warnings.
13701 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
13702 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13703 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13704
13705 # Turn some warnings into errors, so we don't accidently get successful builds
13706 # when there are problems that should be fixed.
13707
13708 if test "x$SELECTIVE_WERROR" = "xyes" ; then
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722 xorg_testset_save_CFLAGS="$CFLAGS"
13723
13724 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13727 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13728 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13729 $as_echo_n "(cached) " >&6
13730 else
13731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13732 /* end confdefs.h. */
13733 int i;
13734 _ACEOF
13735 if ac_fn_c_try_compile "$LINENO"; then :
13736 xorg_cv_cc_flag_unknown_warning_option=yes
13737 else
13738 xorg_cv_cc_flag_unknown_warning_option=no
13739 fi
13740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13741 fi
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13743 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13744 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13745 CFLAGS="$xorg_testset_save_CFLAGS"
13746 fi
13747
13748 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13751 fi
13752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13754 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13755 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13756 $as_echo_n "(cached) " >&6
13757 else
13758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13759 /* end confdefs.h. */
13760 int i;
13761 _ACEOF
13762 if ac_fn_c_try_compile "$LINENO"; then :
13763 xorg_cv_cc_flag_unused_command_line_argument=yes
13764 else
13765 xorg_cv_cc_flag_unused_command_line_argument=no
13766 fi
13767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13768 fi
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13770 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13771 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13772 CFLAGS="$xorg_testset_save_CFLAGS"
13773 fi
13774
13775 found="no"
13776
13777 if test $found = "no" ; then
13778 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13780 fi
13781
13782 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13784 fi
13785
13786 CFLAGS="$CFLAGS -Werror=implicit"
13787
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
13789 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
13790 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
13791 if eval \${$cacheid+:} false; then :
13792 $as_echo_n "(cached) " >&6
13793 else
13794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13795 /* end confdefs.h. */
13796 int i;
13797 int
13798 main ()
13799 {
13800
13801 ;
13802 return 0;
13803 }
13804 _ACEOF
13805 if ac_fn_c_try_link "$LINENO"; then :
13806 eval $cacheid=yes
13807 else
13808 eval $cacheid=no
13809 fi
13810 rm -f core conftest.err conftest.$ac_objext \
13811 conftest$ac_exeext conftest.$ac_ext
13812 fi
13813
13814
13815 CFLAGS="$xorg_testset_save_CFLAGS"
13816
13817 eval supported=\$$cacheid
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13819 $as_echo "$supported" >&6; }
13820 if test "$supported" = "yes" ; then
13821 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
13822 found="yes"
13823 fi
13824 fi
13825
13826 if test $found = "no" ; then
13827 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13828 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13829 fi
13830
13831 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13833 fi
13834
13835 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13836
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
13838 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
13839 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
13840 if eval \${$cacheid+:} false; then :
13841 $as_echo_n "(cached) " >&6
13842 else
13843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13844 /* end confdefs.h. */
13845 int i;
13846 int
13847 main ()
13848 {
13849
13850 ;
13851 return 0;
13852 }
13853 _ACEOF
13854 if ac_fn_c_try_link "$LINENO"; then :
13855 eval $cacheid=yes
13856 else
13857 eval $cacheid=no
13858 fi
13859 rm -f core conftest.err conftest.$ac_objext \
13860 conftest$ac_exeext conftest.$ac_ext
13861 fi
13862
13863
13864 CFLAGS="$xorg_testset_save_CFLAGS"
13865
13866 eval supported=\$$cacheid
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13868 $as_echo "$supported" >&6; }
13869 if test "$supported" = "yes" ; then
13870 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13871 found="yes"
13872 fi
13873 fi
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889 xorg_testset_save_CFLAGS="$CFLAGS"
13890
13891 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13894 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13895 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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 _ACEOF
13902 if ac_fn_c_try_compile "$LINENO"; then :
13903 xorg_cv_cc_flag_unknown_warning_option=yes
13904 else
13905 xorg_cv_cc_flag_unknown_warning_option=no
13906 fi
13907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13908 fi
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13910 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13911 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13912 CFLAGS="$xorg_testset_save_CFLAGS"
13913 fi
13914
13915 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13917 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13918 fi
13919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13921 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13922 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13923 $as_echo_n "(cached) " >&6
13924 else
13925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13926 /* end confdefs.h. */
13927 int i;
13928 _ACEOF
13929 if ac_fn_c_try_compile "$LINENO"; then :
13930 xorg_cv_cc_flag_unused_command_line_argument=yes
13931 else
13932 xorg_cv_cc_flag_unused_command_line_argument=no
13933 fi
13934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13935 fi
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13937 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13938 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13939 CFLAGS="$xorg_testset_save_CFLAGS"
13940 fi
13941
13942 found="no"
13943
13944 if test $found = "no" ; then
13945 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13946 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13947 fi
13948
13949 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13951 fi
13952
13953 CFLAGS="$CFLAGS -Werror=nonnull"
13954
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
13956 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
13957 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
13958 if eval \${$cacheid+:} false; then :
13959 $as_echo_n "(cached) " >&6
13960 else
13961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13962 /* end confdefs.h. */
13963 int i;
13964 int
13965 main ()
13966 {
13967
13968 ;
13969 return 0;
13970 }
13971 _ACEOF
13972 if ac_fn_c_try_link "$LINENO"; then :
13973 eval $cacheid=yes
13974 else
13975 eval $cacheid=no
13976 fi
13977 rm -f core conftest.err conftest.$ac_objext \
13978 conftest$ac_exeext conftest.$ac_ext
13979 fi
13980
13981
13982 CFLAGS="$xorg_testset_save_CFLAGS"
13983
13984 eval supported=\$$cacheid
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13986 $as_echo "$supported" >&6; }
13987 if test "$supported" = "yes" ; then
13988 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
13989 found="yes"
13990 fi
13991 fi
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007 xorg_testset_save_CFLAGS="$CFLAGS"
14008
14009 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14012 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14013 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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 _ACEOF
14020 if ac_fn_c_try_compile "$LINENO"; then :
14021 xorg_cv_cc_flag_unknown_warning_option=yes
14022 else
14023 xorg_cv_cc_flag_unknown_warning_option=no
14024 fi
14025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14026 fi
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14028 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14030 CFLAGS="$xorg_testset_save_CFLAGS"
14031 fi
14032
14033 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14036 fi
14037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14039 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14040 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14041 $as_echo_n "(cached) " >&6
14042 else
14043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14044 /* end confdefs.h. */
14045 int i;
14046 _ACEOF
14047 if ac_fn_c_try_compile "$LINENO"; then :
14048 xorg_cv_cc_flag_unused_command_line_argument=yes
14049 else
14050 xorg_cv_cc_flag_unused_command_line_argument=no
14051 fi
14052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14053 fi
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14055 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14056 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14057 CFLAGS="$xorg_testset_save_CFLAGS"
14058 fi
14059
14060 found="no"
14061
14062 if test $found = "no" ; then
14063 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14064 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14065 fi
14066
14067 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14069 fi
14070
14071 CFLAGS="$CFLAGS -Werror=init-self"
14072
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14074 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14075 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
14076 if eval \${$cacheid+:} false; then :
14077 $as_echo_n "(cached) " >&6
14078 else
14079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14080 /* end confdefs.h. */
14081 int i;
14082 int
14083 main ()
14084 {
14085
14086 ;
14087 return 0;
14088 }
14089 _ACEOF
14090 if ac_fn_c_try_link "$LINENO"; then :
14091 eval $cacheid=yes
14092 else
14093 eval $cacheid=no
14094 fi
14095 rm -f core conftest.err conftest.$ac_objext \
14096 conftest$ac_exeext conftest.$ac_ext
14097 fi
14098
14099
14100 CFLAGS="$xorg_testset_save_CFLAGS"
14101
14102 eval supported=\$$cacheid
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14104 $as_echo "$supported" >&6; }
14105 if test "$supported" = "yes" ; then
14106 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14107 found="yes"
14108 fi
14109 fi
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125 xorg_testset_save_CFLAGS="$CFLAGS"
14126
14127 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14128 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14130 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14131 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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 _ACEOF
14138 if ac_fn_c_try_compile "$LINENO"; then :
14139 xorg_cv_cc_flag_unknown_warning_option=yes
14140 else
14141 xorg_cv_cc_flag_unknown_warning_option=no
14142 fi
14143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14144 fi
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14146 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14147 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14148 CFLAGS="$xorg_testset_save_CFLAGS"
14149 fi
14150
14151 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14153 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14154 fi
14155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14157 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14158 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14159 $as_echo_n "(cached) " >&6
14160 else
14161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14162 /* end confdefs.h. */
14163 int i;
14164 _ACEOF
14165 if ac_fn_c_try_compile "$LINENO"; then :
14166 xorg_cv_cc_flag_unused_command_line_argument=yes
14167 else
14168 xorg_cv_cc_flag_unused_command_line_argument=no
14169 fi
14170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14171 fi
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14173 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14174 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14175 CFLAGS="$xorg_testset_save_CFLAGS"
14176 fi
14177
14178 found="no"
14179
14180 if test $found = "no" ; then
14181 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14183 fi
14184
14185 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14187 fi
14188
14189 CFLAGS="$CFLAGS -Werror=main"
14190
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14192 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14193 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
14194 if eval \${$cacheid+:} false; then :
14195 $as_echo_n "(cached) " >&6
14196 else
14197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14198 /* end confdefs.h. */
14199 int i;
14200 int
14201 main ()
14202 {
14203
14204 ;
14205 return 0;
14206 }
14207 _ACEOF
14208 if ac_fn_c_try_link "$LINENO"; then :
14209 eval $cacheid=yes
14210 else
14211 eval $cacheid=no
14212 fi
14213 rm -f core conftest.err conftest.$ac_objext \
14214 conftest$ac_exeext conftest.$ac_ext
14215 fi
14216
14217
14218 CFLAGS="$xorg_testset_save_CFLAGS"
14219
14220 eval supported=\$$cacheid
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14222 $as_echo "$supported" >&6; }
14223 if test "$supported" = "yes" ; then
14224 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14225 found="yes"
14226 fi
14227 fi
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243 xorg_testset_save_CFLAGS="$CFLAGS"
14244
14245 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14248 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14249 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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 _ACEOF
14256 if ac_fn_c_try_compile "$LINENO"; then :
14257 xorg_cv_cc_flag_unknown_warning_option=yes
14258 else
14259 xorg_cv_cc_flag_unknown_warning_option=no
14260 fi
14261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14262 fi
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14264 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14266 CFLAGS="$xorg_testset_save_CFLAGS"
14267 fi
14268
14269 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14272 fi
14273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14275 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14276 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14277 $as_echo_n "(cached) " >&6
14278 else
14279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14280 /* end confdefs.h. */
14281 int i;
14282 _ACEOF
14283 if ac_fn_c_try_compile "$LINENO"; then :
14284 xorg_cv_cc_flag_unused_command_line_argument=yes
14285 else
14286 xorg_cv_cc_flag_unused_command_line_argument=no
14287 fi
14288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14289 fi
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14291 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14292 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14293 CFLAGS="$xorg_testset_save_CFLAGS"
14294 fi
14295
14296 found="no"
14297
14298 if test $found = "no" ; then
14299 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14301 fi
14302
14303 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14305 fi
14306
14307 CFLAGS="$CFLAGS -Werror=missing-braces"
14308
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14310 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14311 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
14312 if eval \${$cacheid+:} false; then :
14313 $as_echo_n "(cached) " >&6
14314 else
14315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14316 /* end confdefs.h. */
14317 int i;
14318 int
14319 main ()
14320 {
14321
14322 ;
14323 return 0;
14324 }
14325 _ACEOF
14326 if ac_fn_c_try_link "$LINENO"; then :
14327 eval $cacheid=yes
14328 else
14329 eval $cacheid=no
14330 fi
14331 rm -f core conftest.err conftest.$ac_objext \
14332 conftest$ac_exeext conftest.$ac_ext
14333 fi
14334
14335
14336 CFLAGS="$xorg_testset_save_CFLAGS"
14337
14338 eval supported=\$$cacheid
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14340 $as_echo "$supported" >&6; }
14341 if test "$supported" = "yes" ; then
14342 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14343 found="yes"
14344 fi
14345 fi
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361 xorg_testset_save_CFLAGS="$CFLAGS"
14362
14363 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14364 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14366 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14367 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14368 $as_echo_n "(cached) " >&6
14369 else
14370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14371 /* end confdefs.h. */
14372 int i;
14373 _ACEOF
14374 if ac_fn_c_try_compile "$LINENO"; then :
14375 xorg_cv_cc_flag_unknown_warning_option=yes
14376 else
14377 xorg_cv_cc_flag_unknown_warning_option=no
14378 fi
14379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14380 fi
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14382 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14383 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14384 CFLAGS="$xorg_testset_save_CFLAGS"
14385 fi
14386
14387 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14390 fi
14391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14393 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14394 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14395 $as_echo_n "(cached) " >&6
14396 else
14397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14398 /* end confdefs.h. */
14399 int i;
14400 _ACEOF
14401 if ac_fn_c_try_compile "$LINENO"; then :
14402 xorg_cv_cc_flag_unused_command_line_argument=yes
14403 else
14404 xorg_cv_cc_flag_unused_command_line_argument=no
14405 fi
14406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14407 fi
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14409 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14410 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14411 CFLAGS="$xorg_testset_save_CFLAGS"
14412 fi
14413
14414 found="no"
14415
14416 if test $found = "no" ; then
14417 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14419 fi
14420
14421 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14423 fi
14424
14425 CFLAGS="$CFLAGS -Werror=sequence-point"
14426
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14428 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14429 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
14430 if eval \${$cacheid+:} false; then :
14431 $as_echo_n "(cached) " >&6
14432 else
14433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14434 /* end confdefs.h. */
14435 int i;
14436 int
14437 main ()
14438 {
14439
14440 ;
14441 return 0;
14442 }
14443 _ACEOF
14444 if ac_fn_c_try_link "$LINENO"; then :
14445 eval $cacheid=yes
14446 else
14447 eval $cacheid=no
14448 fi
14449 rm -f core conftest.err conftest.$ac_objext \
14450 conftest$ac_exeext conftest.$ac_ext
14451 fi
14452
14453
14454 CFLAGS="$xorg_testset_save_CFLAGS"
14455
14456 eval supported=\$$cacheid
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14458 $as_echo "$supported" >&6; }
14459 if test "$supported" = "yes" ; then
14460 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14461 found="yes"
14462 fi
14463 fi
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479 xorg_testset_save_CFLAGS="$CFLAGS"
14480
14481 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14482 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14484 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14485 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14486 $as_echo_n "(cached) " >&6
14487 else
14488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14489 /* end confdefs.h. */
14490 int i;
14491 _ACEOF
14492 if ac_fn_c_try_compile "$LINENO"; then :
14493 xorg_cv_cc_flag_unknown_warning_option=yes
14494 else
14495 xorg_cv_cc_flag_unknown_warning_option=no
14496 fi
14497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14498 fi
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14500 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14501 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14502 CFLAGS="$xorg_testset_save_CFLAGS"
14503 fi
14504
14505 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14507 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14508 fi
14509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14511 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14512 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14513 $as_echo_n "(cached) " >&6
14514 else
14515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14516 /* end confdefs.h. */
14517 int i;
14518 _ACEOF
14519 if ac_fn_c_try_compile "$LINENO"; then :
14520 xorg_cv_cc_flag_unused_command_line_argument=yes
14521 else
14522 xorg_cv_cc_flag_unused_command_line_argument=no
14523 fi
14524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14525 fi
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14527 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14528 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14529 CFLAGS="$xorg_testset_save_CFLAGS"
14530 fi
14531
14532 found="no"
14533
14534 if test $found = "no" ; then
14535 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14537 fi
14538
14539 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14541 fi
14542
14543 CFLAGS="$CFLAGS -Werror=return-type"
14544
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14546 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14547 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
14548 if eval \${$cacheid+:} false; then :
14549 $as_echo_n "(cached) " >&6
14550 else
14551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14552 /* end confdefs.h. */
14553 int i;
14554 int
14555 main ()
14556 {
14557
14558 ;
14559 return 0;
14560 }
14561 _ACEOF
14562 if ac_fn_c_try_link "$LINENO"; then :
14563 eval $cacheid=yes
14564 else
14565 eval $cacheid=no
14566 fi
14567 rm -f core conftest.err conftest.$ac_objext \
14568 conftest$ac_exeext conftest.$ac_ext
14569 fi
14570
14571
14572 CFLAGS="$xorg_testset_save_CFLAGS"
14573
14574 eval supported=\$$cacheid
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14576 $as_echo "$supported" >&6; }
14577 if test "$supported" = "yes" ; then
14578 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14579 found="yes"
14580 fi
14581 fi
14582
14583 if test $found = "no" ; then
14584 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14585 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14586 fi
14587
14588 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14590 fi
14591
14592 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14593
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14595 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14596 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
14597 if eval \${$cacheid+:} false; then :
14598 $as_echo_n "(cached) " >&6
14599 else
14600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14601 /* end confdefs.h. */
14602 int i;
14603 int
14604 main ()
14605 {
14606
14607 ;
14608 return 0;
14609 }
14610 _ACEOF
14611 if ac_fn_c_try_link "$LINENO"; then :
14612 eval $cacheid=yes
14613 else
14614 eval $cacheid=no
14615 fi
14616 rm -f core conftest.err conftest.$ac_objext \
14617 conftest$ac_exeext conftest.$ac_ext
14618 fi
14619
14620
14621 CFLAGS="$xorg_testset_save_CFLAGS"
14622
14623 eval supported=\$$cacheid
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14625 $as_echo "$supported" >&6; }
14626 if test "$supported" = "yes" ; then
14627 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14628 found="yes"
14629 fi
14630 fi
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646 xorg_testset_save_CFLAGS="$CFLAGS"
14647
14648 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14649 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14651 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14652 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14653 $as_echo_n "(cached) " >&6
14654 else
14655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14656 /* end confdefs.h. */
14657 int i;
14658 _ACEOF
14659 if ac_fn_c_try_compile "$LINENO"; then :
14660 xorg_cv_cc_flag_unknown_warning_option=yes
14661 else
14662 xorg_cv_cc_flag_unknown_warning_option=no
14663 fi
14664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14665 fi
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14667 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14668 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14669 CFLAGS="$xorg_testset_save_CFLAGS"
14670 fi
14671
14672 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14674 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14675 fi
14676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14678 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14679 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14680 $as_echo_n "(cached) " >&6
14681 else
14682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14683 /* end confdefs.h. */
14684 int i;
14685 _ACEOF
14686 if ac_fn_c_try_compile "$LINENO"; then :
14687 xorg_cv_cc_flag_unused_command_line_argument=yes
14688 else
14689 xorg_cv_cc_flag_unused_command_line_argument=no
14690 fi
14691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14692 fi
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14694 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14695 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14696 CFLAGS="$xorg_testset_save_CFLAGS"
14697 fi
14698
14699 found="no"
14700
14701 if test $found = "no" ; then
14702 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14704 fi
14705
14706 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14708 fi
14709
14710 CFLAGS="$CFLAGS -Werror=trigraphs"
14711
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14713 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14714 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
14715 if eval \${$cacheid+:} false; then :
14716 $as_echo_n "(cached) " >&6
14717 else
14718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14719 /* end confdefs.h. */
14720 int i;
14721 int
14722 main ()
14723 {
14724
14725 ;
14726 return 0;
14727 }
14728 _ACEOF
14729 if ac_fn_c_try_link "$LINENO"; then :
14730 eval $cacheid=yes
14731 else
14732 eval $cacheid=no
14733 fi
14734 rm -f core conftest.err conftest.$ac_objext \
14735 conftest$ac_exeext conftest.$ac_ext
14736 fi
14737
14738
14739 CFLAGS="$xorg_testset_save_CFLAGS"
14740
14741 eval supported=\$$cacheid
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14743 $as_echo "$supported" >&6; }
14744 if test "$supported" = "yes" ; then
14745 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14746 found="yes"
14747 fi
14748 fi
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764 xorg_testset_save_CFLAGS="$CFLAGS"
14765
14766 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14767 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14769 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14770 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14771 $as_echo_n "(cached) " >&6
14772 else
14773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14774 /* end confdefs.h. */
14775 int i;
14776 _ACEOF
14777 if ac_fn_c_try_compile "$LINENO"; then :
14778 xorg_cv_cc_flag_unknown_warning_option=yes
14779 else
14780 xorg_cv_cc_flag_unknown_warning_option=no
14781 fi
14782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14783 fi
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14785 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14786 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14787 CFLAGS="$xorg_testset_save_CFLAGS"
14788 fi
14789
14790 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14792 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14793 fi
14794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14796 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14797 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14798 $as_echo_n "(cached) " >&6
14799 else
14800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14801 /* end confdefs.h. */
14802 int i;
14803 _ACEOF
14804 if ac_fn_c_try_compile "$LINENO"; then :
14805 xorg_cv_cc_flag_unused_command_line_argument=yes
14806 else
14807 xorg_cv_cc_flag_unused_command_line_argument=no
14808 fi
14809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14810 fi
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14812 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14813 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14814 CFLAGS="$xorg_testset_save_CFLAGS"
14815 fi
14816
14817 found="no"
14818
14819 if test $found = "no" ; then
14820 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14821 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14822 fi
14823
14824 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14826 fi
14827
14828 CFLAGS="$CFLAGS -Werror=array-bounds"
14829
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
14831 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
14832 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
14833 if eval \${$cacheid+:} false; then :
14834 $as_echo_n "(cached) " >&6
14835 else
14836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14837 /* end confdefs.h. */
14838 int i;
14839 int
14840 main ()
14841 {
14842
14843 ;
14844 return 0;
14845 }
14846 _ACEOF
14847 if ac_fn_c_try_link "$LINENO"; then :
14848 eval $cacheid=yes
14849 else
14850 eval $cacheid=no
14851 fi
14852 rm -f core conftest.err conftest.$ac_objext \
14853 conftest$ac_exeext conftest.$ac_ext
14854 fi
14855
14856
14857 CFLAGS="$xorg_testset_save_CFLAGS"
14858
14859 eval supported=\$$cacheid
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14861 $as_echo "$supported" >&6; }
14862 if test "$supported" = "yes" ; then
14863 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
14864 found="yes"
14865 fi
14866 fi
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882 xorg_testset_save_CFLAGS="$CFLAGS"
14883
14884 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14887 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14888 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14889 $as_echo_n "(cached) " >&6
14890 else
14891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14892 /* end confdefs.h. */
14893 int i;
14894 _ACEOF
14895 if ac_fn_c_try_compile "$LINENO"; then :
14896 xorg_cv_cc_flag_unknown_warning_option=yes
14897 else
14898 xorg_cv_cc_flag_unknown_warning_option=no
14899 fi
14900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14901 fi
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14903 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14904 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14905 CFLAGS="$xorg_testset_save_CFLAGS"
14906 fi
14907
14908 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14910 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14911 fi
14912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14914 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14915 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14916 $as_echo_n "(cached) " >&6
14917 else
14918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14919 /* end confdefs.h. */
14920 int i;
14921 _ACEOF
14922 if ac_fn_c_try_compile "$LINENO"; then :
14923 xorg_cv_cc_flag_unused_command_line_argument=yes
14924 else
14925 xorg_cv_cc_flag_unused_command_line_argument=no
14926 fi
14927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14928 fi
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14930 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14931 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14932 CFLAGS="$xorg_testset_save_CFLAGS"
14933 fi
14934
14935 found="no"
14936
14937 if test $found = "no" ; then
14938 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14940 fi
14941
14942 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14944 fi
14945
14946 CFLAGS="$CFLAGS -Werror=write-strings"
14947
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
14949 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
14950 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
14951 if eval \${$cacheid+:} false; then :
14952 $as_echo_n "(cached) " >&6
14953 else
14954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14955 /* end confdefs.h. */
14956 int i;
14957 int
14958 main ()
14959 {
14960
14961 ;
14962 return 0;
14963 }
14964 _ACEOF
14965 if ac_fn_c_try_link "$LINENO"; then :
14966 eval $cacheid=yes
14967 else
14968 eval $cacheid=no
14969 fi
14970 rm -f core conftest.err conftest.$ac_objext \
14971 conftest$ac_exeext conftest.$ac_ext
14972 fi
14973
14974
14975 CFLAGS="$xorg_testset_save_CFLAGS"
14976
14977 eval supported=\$$cacheid
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14979 $as_echo "$supported" >&6; }
14980 if test "$supported" = "yes" ; then
14981 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
14982 found="yes"
14983 fi
14984 fi
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000 xorg_testset_save_CFLAGS="$CFLAGS"
15001
15002 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15003 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15005 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15006 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15007 $as_echo_n "(cached) " >&6
15008 else
15009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15010 /* end confdefs.h. */
15011 int i;
15012 _ACEOF
15013 if ac_fn_c_try_compile "$LINENO"; then :
15014 xorg_cv_cc_flag_unknown_warning_option=yes
15015 else
15016 xorg_cv_cc_flag_unknown_warning_option=no
15017 fi
15018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15019 fi
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15021 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15022 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15023 CFLAGS="$xorg_testset_save_CFLAGS"
15024 fi
15025
15026 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15029 fi
15030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15032 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15033 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15034 $as_echo_n "(cached) " >&6
15035 else
15036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15037 /* end confdefs.h. */
15038 int i;
15039 _ACEOF
15040 if ac_fn_c_try_compile "$LINENO"; then :
15041 xorg_cv_cc_flag_unused_command_line_argument=yes
15042 else
15043 xorg_cv_cc_flag_unused_command_line_argument=no
15044 fi
15045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15046 fi
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15048 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15049 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15050 CFLAGS="$xorg_testset_save_CFLAGS"
15051 fi
15052
15053 found="no"
15054
15055 if test $found = "no" ; then
15056 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15057 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15058 fi
15059
15060 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15062 fi
15063
15064 CFLAGS="$CFLAGS -Werror=address"
15065
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15067 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15068 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
15069 if eval \${$cacheid+:} false; then :
15070 $as_echo_n "(cached) " >&6
15071 else
15072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15073 /* end confdefs.h. */
15074 int i;
15075 int
15076 main ()
15077 {
15078
15079 ;
15080 return 0;
15081 }
15082 _ACEOF
15083 if ac_fn_c_try_link "$LINENO"; then :
15084 eval $cacheid=yes
15085 else
15086 eval $cacheid=no
15087 fi
15088 rm -f core conftest.err conftest.$ac_objext \
15089 conftest$ac_exeext conftest.$ac_ext
15090 fi
15091
15092
15093 CFLAGS="$xorg_testset_save_CFLAGS"
15094
15095 eval supported=\$$cacheid
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15097 $as_echo "$supported" >&6; }
15098 if test "$supported" = "yes" ; then
15099 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15100 found="yes"
15101 fi
15102 fi
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118 xorg_testset_save_CFLAGS="$CFLAGS"
15119
15120 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15123 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15124 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15125 $as_echo_n "(cached) " >&6
15126 else
15127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15128 /* end confdefs.h. */
15129 int i;
15130 _ACEOF
15131 if ac_fn_c_try_compile "$LINENO"; then :
15132 xorg_cv_cc_flag_unknown_warning_option=yes
15133 else
15134 xorg_cv_cc_flag_unknown_warning_option=no
15135 fi
15136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15137 fi
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15139 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15140 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15141 CFLAGS="$xorg_testset_save_CFLAGS"
15142 fi
15143
15144 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15146 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15147 fi
15148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15150 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15151 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15152 $as_echo_n "(cached) " >&6
15153 else
15154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15155 /* end confdefs.h. */
15156 int i;
15157 _ACEOF
15158 if ac_fn_c_try_compile "$LINENO"; then :
15159 xorg_cv_cc_flag_unused_command_line_argument=yes
15160 else
15161 xorg_cv_cc_flag_unused_command_line_argument=no
15162 fi
15163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15164 fi
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15166 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15167 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15168 CFLAGS="$xorg_testset_save_CFLAGS"
15169 fi
15170
15171 found="no"
15172
15173 if test $found = "no" ; then
15174 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15176 fi
15177
15178 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15180 fi
15181
15182 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15183
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15185 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15186 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
15187 if eval \${$cacheid+:} false; then :
15188 $as_echo_n "(cached) " >&6
15189 else
15190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15191 /* end confdefs.h. */
15192 int i;
15193 int
15194 main ()
15195 {
15196
15197 ;
15198 return 0;
15199 }
15200 _ACEOF
15201 if ac_fn_c_try_link "$LINENO"; then :
15202 eval $cacheid=yes
15203 else
15204 eval $cacheid=no
15205 fi
15206 rm -f core conftest.err conftest.$ac_objext \
15207 conftest$ac_exeext conftest.$ac_ext
15208 fi
15209
15210
15211 CFLAGS="$xorg_testset_save_CFLAGS"
15212
15213 eval supported=\$$cacheid
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15215 $as_echo "$supported" >&6; }
15216 if test "$supported" = "yes" ; then
15217 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15218 found="yes"
15219 fi
15220 fi
15221
15222 if test $found = "no" ; then
15223 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15225 fi
15226
15227 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15229 fi
15230
15231 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15232
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15234 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15235 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
15236 if eval \${$cacheid+:} false; then :
15237 $as_echo_n "(cached) " >&6
15238 else
15239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15240 /* end confdefs.h. */
15241 int i;
15242 int
15243 main ()
15244 {
15245
15246 ;
15247 return 0;
15248 }
15249 _ACEOF
15250 if ac_fn_c_try_link "$LINENO"; then :
15251 eval $cacheid=yes
15252 else
15253 eval $cacheid=no
15254 fi
15255 rm -f core conftest.err conftest.$ac_objext \
15256 conftest$ac_exeext conftest.$ac_ext
15257 fi
15258
15259
15260 CFLAGS="$xorg_testset_save_CFLAGS"
15261
15262 eval supported=\$$cacheid
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15264 $as_echo "$supported" >&6; }
15265 if test "$supported" = "yes" ; then
15266 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15267 found="yes"
15268 fi
15269 fi
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285 xorg_testset_save_CFLAGS="$CFLAGS"
15286
15287 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15290 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15291 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15292 $as_echo_n "(cached) " >&6
15293 else
15294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15295 /* end confdefs.h. */
15296 int i;
15297 _ACEOF
15298 if ac_fn_c_try_compile "$LINENO"; then :
15299 xorg_cv_cc_flag_unknown_warning_option=yes
15300 else
15301 xorg_cv_cc_flag_unknown_warning_option=no
15302 fi
15303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15304 fi
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15306 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15307 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15308 CFLAGS="$xorg_testset_save_CFLAGS"
15309 fi
15310
15311 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15313 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15314 fi
15315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15317 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15318 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15319 $as_echo_n "(cached) " >&6
15320 else
15321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15322 /* end confdefs.h. */
15323 int i;
15324 _ACEOF
15325 if ac_fn_c_try_compile "$LINENO"; then :
15326 xorg_cv_cc_flag_unused_command_line_argument=yes
15327 else
15328 xorg_cv_cc_flag_unused_command_line_argument=no
15329 fi
15330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15331 fi
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15333 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15334 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15335 CFLAGS="$xorg_testset_save_CFLAGS"
15336 fi
15337
15338 found="no"
15339
15340 if test $found = "no" ; then
15341 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15343 fi
15344
15345 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15347 fi
15348
15349 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15350
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15352 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15353 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
15354 if eval \${$cacheid+:} false; then :
15355 $as_echo_n "(cached) " >&6
15356 else
15357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15358 /* end confdefs.h. */
15359 int i;
15360 int
15361 main ()
15362 {
15363
15364 ;
15365 return 0;
15366 }
15367 _ACEOF
15368 if ac_fn_c_try_link "$LINENO"; then :
15369 eval $cacheid=yes
15370 else
15371 eval $cacheid=no
15372 fi
15373 rm -f core conftest.err conftest.$ac_objext \
15374 conftest$ac_exeext conftest.$ac_ext
15375 fi
15376
15377
15378 CFLAGS="$xorg_testset_save_CFLAGS"
15379
15380 eval supported=\$$cacheid
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15382 $as_echo "$supported" >&6; }
15383 if test "$supported" = "yes" ; then
15384 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15385 found="yes"
15386 fi
15387 fi
15388
15389 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15390 else
15391 { $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
15392 $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;}
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406 xorg_testset_save_CFLAGS="$CFLAGS"
15407
15408 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15411 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15412 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15413 $as_echo_n "(cached) " >&6
15414 else
15415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15416 /* end confdefs.h. */
15417 int i;
15418 _ACEOF
15419 if ac_fn_c_try_compile "$LINENO"; then :
15420 xorg_cv_cc_flag_unknown_warning_option=yes
15421 else
15422 xorg_cv_cc_flag_unknown_warning_option=no
15423 fi
15424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15425 fi
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15427 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15428 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15429 CFLAGS="$xorg_testset_save_CFLAGS"
15430 fi
15431
15432 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15435 fi
15436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15438 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15439 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15440 $as_echo_n "(cached) " >&6
15441 else
15442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15443 /* end confdefs.h. */
15444 int i;
15445 _ACEOF
15446 if ac_fn_c_try_compile "$LINENO"; then :
15447 xorg_cv_cc_flag_unused_command_line_argument=yes
15448 else
15449 xorg_cv_cc_flag_unused_command_line_argument=no
15450 fi
15451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15452 fi
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15454 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15455 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15456 CFLAGS="$xorg_testset_save_CFLAGS"
15457 fi
15458
15459 found="no"
15460
15461 if test $found = "no" ; then
15462 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15464 fi
15465
15466 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15468 fi
15469
15470 CFLAGS="$CFLAGS -Wimplicit"
15471
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15473 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15474 cacheid=xorg_cv_cc_flag__Wimplicit
15475 if eval \${$cacheid+:} false; then :
15476 $as_echo_n "(cached) " >&6
15477 else
15478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15479 /* end confdefs.h. */
15480 int i;
15481 int
15482 main ()
15483 {
15484
15485 ;
15486 return 0;
15487 }
15488 _ACEOF
15489 if ac_fn_c_try_link "$LINENO"; then :
15490 eval $cacheid=yes
15491 else
15492 eval $cacheid=no
15493 fi
15494 rm -f core conftest.err conftest.$ac_objext \
15495 conftest$ac_exeext conftest.$ac_ext
15496 fi
15497
15498
15499 CFLAGS="$xorg_testset_save_CFLAGS"
15500
15501 eval supported=\$$cacheid
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15503 $as_echo "$supported" >&6; }
15504 if test "$supported" = "yes" ; then
15505 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15506 found="yes"
15507 fi
15508 fi
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524 xorg_testset_save_CFLAGS="$CFLAGS"
15525
15526 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15529 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15530 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15531 $as_echo_n "(cached) " >&6
15532 else
15533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15534 /* end confdefs.h. */
15535 int i;
15536 _ACEOF
15537 if ac_fn_c_try_compile "$LINENO"; then :
15538 xorg_cv_cc_flag_unknown_warning_option=yes
15539 else
15540 xorg_cv_cc_flag_unknown_warning_option=no
15541 fi
15542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15543 fi
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15545 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15546 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15547 CFLAGS="$xorg_testset_save_CFLAGS"
15548 fi
15549
15550 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15551 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15552 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15553 fi
15554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15556 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15557 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15558 $as_echo_n "(cached) " >&6
15559 else
15560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15561 /* end confdefs.h. */
15562 int i;
15563 _ACEOF
15564 if ac_fn_c_try_compile "$LINENO"; then :
15565 xorg_cv_cc_flag_unused_command_line_argument=yes
15566 else
15567 xorg_cv_cc_flag_unused_command_line_argument=no
15568 fi
15569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15570 fi
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15572 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15573 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15574 CFLAGS="$xorg_testset_save_CFLAGS"
15575 fi
15576
15577 found="no"
15578
15579 if test $found = "no" ; then
15580 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15581 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15582 fi
15583
15584 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15586 fi
15587
15588 CFLAGS="$CFLAGS -Wnonnull"
15589
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15591 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15592 cacheid=xorg_cv_cc_flag__Wnonnull
15593 if eval \${$cacheid+:} false; then :
15594 $as_echo_n "(cached) " >&6
15595 else
15596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15597 /* end confdefs.h. */
15598 int i;
15599 int
15600 main ()
15601 {
15602
15603 ;
15604 return 0;
15605 }
15606 _ACEOF
15607 if ac_fn_c_try_link "$LINENO"; then :
15608 eval $cacheid=yes
15609 else
15610 eval $cacheid=no
15611 fi
15612 rm -f core conftest.err conftest.$ac_objext \
15613 conftest$ac_exeext conftest.$ac_ext
15614 fi
15615
15616
15617 CFLAGS="$xorg_testset_save_CFLAGS"
15618
15619 eval supported=\$$cacheid
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15621 $as_echo "$supported" >&6; }
15622 if test "$supported" = "yes" ; then
15623 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15624 found="yes"
15625 fi
15626 fi
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642 xorg_testset_save_CFLAGS="$CFLAGS"
15643
15644 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15645 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15647 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15648 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15649 $as_echo_n "(cached) " >&6
15650 else
15651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15652 /* end confdefs.h. */
15653 int i;
15654 _ACEOF
15655 if ac_fn_c_try_compile "$LINENO"; then :
15656 xorg_cv_cc_flag_unknown_warning_option=yes
15657 else
15658 xorg_cv_cc_flag_unknown_warning_option=no
15659 fi
15660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15661 fi
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15663 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15664 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15665 CFLAGS="$xorg_testset_save_CFLAGS"
15666 fi
15667
15668 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15670 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15671 fi
15672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15674 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15675 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15676 $as_echo_n "(cached) " >&6
15677 else
15678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15679 /* end confdefs.h. */
15680 int i;
15681 _ACEOF
15682 if ac_fn_c_try_compile "$LINENO"; then :
15683 xorg_cv_cc_flag_unused_command_line_argument=yes
15684 else
15685 xorg_cv_cc_flag_unused_command_line_argument=no
15686 fi
15687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15688 fi
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15690 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15691 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15692 CFLAGS="$xorg_testset_save_CFLAGS"
15693 fi
15694
15695 found="no"
15696
15697 if test $found = "no" ; then
15698 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15700 fi
15701
15702 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15704 fi
15705
15706 CFLAGS="$CFLAGS -Winit-self"
15707
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15709 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15710 cacheid=xorg_cv_cc_flag__Winit_self
15711 if eval \${$cacheid+:} false; then :
15712 $as_echo_n "(cached) " >&6
15713 else
15714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15715 /* end confdefs.h. */
15716 int i;
15717 int
15718 main ()
15719 {
15720
15721 ;
15722 return 0;
15723 }
15724 _ACEOF
15725 if ac_fn_c_try_link "$LINENO"; then :
15726 eval $cacheid=yes
15727 else
15728 eval $cacheid=no
15729 fi
15730 rm -f core conftest.err conftest.$ac_objext \
15731 conftest$ac_exeext conftest.$ac_ext
15732 fi
15733
15734
15735 CFLAGS="$xorg_testset_save_CFLAGS"
15736
15737 eval supported=\$$cacheid
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15739 $as_echo "$supported" >&6; }
15740 if test "$supported" = "yes" ; then
15741 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15742 found="yes"
15743 fi
15744 fi
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760 xorg_testset_save_CFLAGS="$CFLAGS"
15761
15762 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15763 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15765 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15766 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15767 $as_echo_n "(cached) " >&6
15768 else
15769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15770 /* end confdefs.h. */
15771 int i;
15772 _ACEOF
15773 if ac_fn_c_try_compile "$LINENO"; then :
15774 xorg_cv_cc_flag_unknown_warning_option=yes
15775 else
15776 xorg_cv_cc_flag_unknown_warning_option=no
15777 fi
15778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15779 fi
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15781 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15782 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15783 CFLAGS="$xorg_testset_save_CFLAGS"
15784 fi
15785
15786 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15788 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15789 fi
15790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15792 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15793 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15794 $as_echo_n "(cached) " >&6
15795 else
15796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15797 /* end confdefs.h. */
15798 int i;
15799 _ACEOF
15800 if ac_fn_c_try_compile "$LINENO"; then :
15801 xorg_cv_cc_flag_unused_command_line_argument=yes
15802 else
15803 xorg_cv_cc_flag_unused_command_line_argument=no
15804 fi
15805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15806 fi
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15808 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15809 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15810 CFLAGS="$xorg_testset_save_CFLAGS"
15811 fi
15812
15813 found="no"
15814
15815 if test $found = "no" ; then
15816 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15817 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15818 fi
15819
15820 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15822 fi
15823
15824 CFLAGS="$CFLAGS -Wmain"
15825
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
15827 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
15828 cacheid=xorg_cv_cc_flag__Wmain
15829 if eval \${$cacheid+:} false; then :
15830 $as_echo_n "(cached) " >&6
15831 else
15832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15833 /* end confdefs.h. */
15834 int i;
15835 int
15836 main ()
15837 {
15838
15839 ;
15840 return 0;
15841 }
15842 _ACEOF
15843 if ac_fn_c_try_link "$LINENO"; then :
15844 eval $cacheid=yes
15845 else
15846 eval $cacheid=no
15847 fi
15848 rm -f core conftest.err conftest.$ac_objext \
15849 conftest$ac_exeext conftest.$ac_ext
15850 fi
15851
15852
15853 CFLAGS="$xorg_testset_save_CFLAGS"
15854
15855 eval supported=\$$cacheid
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15857 $as_echo "$supported" >&6; }
15858 if test "$supported" = "yes" ; then
15859 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
15860 found="yes"
15861 fi
15862 fi
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878 xorg_testset_save_CFLAGS="$CFLAGS"
15879
15880 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15883 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15884 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15885 $as_echo_n "(cached) " >&6
15886 else
15887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15888 /* end confdefs.h. */
15889 int i;
15890 _ACEOF
15891 if ac_fn_c_try_compile "$LINENO"; then :
15892 xorg_cv_cc_flag_unknown_warning_option=yes
15893 else
15894 xorg_cv_cc_flag_unknown_warning_option=no
15895 fi
15896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15897 fi
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15899 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15900 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15901 CFLAGS="$xorg_testset_save_CFLAGS"
15902 fi
15903
15904 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15906 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15907 fi
15908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15910 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15911 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15912 $as_echo_n "(cached) " >&6
15913 else
15914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15915 /* end confdefs.h. */
15916 int i;
15917 _ACEOF
15918 if ac_fn_c_try_compile "$LINENO"; then :
15919 xorg_cv_cc_flag_unused_command_line_argument=yes
15920 else
15921 xorg_cv_cc_flag_unused_command_line_argument=no
15922 fi
15923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15924 fi
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15926 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15927 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15928 CFLAGS="$xorg_testset_save_CFLAGS"
15929 fi
15930
15931 found="no"
15932
15933 if test $found = "no" ; then
15934 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15935 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15936 fi
15937
15938 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15940 fi
15941
15942 CFLAGS="$CFLAGS -Wmissing-braces"
15943
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
15945 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
15946 cacheid=xorg_cv_cc_flag__Wmissing_braces
15947 if eval \${$cacheid+:} false; then :
15948 $as_echo_n "(cached) " >&6
15949 else
15950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15951 /* end confdefs.h. */
15952 int i;
15953 int
15954 main ()
15955 {
15956
15957 ;
15958 return 0;
15959 }
15960 _ACEOF
15961 if ac_fn_c_try_link "$LINENO"; then :
15962 eval $cacheid=yes
15963 else
15964 eval $cacheid=no
15965 fi
15966 rm -f core conftest.err conftest.$ac_objext \
15967 conftest$ac_exeext conftest.$ac_ext
15968 fi
15969
15970
15971 CFLAGS="$xorg_testset_save_CFLAGS"
15972
15973 eval supported=\$$cacheid
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15975 $as_echo "$supported" >&6; }
15976 if test "$supported" = "yes" ; then
15977 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
15978 found="yes"
15979 fi
15980 fi
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996 xorg_testset_save_CFLAGS="$CFLAGS"
15997
15998 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15999 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16001 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16002 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16003 $as_echo_n "(cached) " >&6
16004 else
16005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16006 /* end confdefs.h. */
16007 int i;
16008 _ACEOF
16009 if ac_fn_c_try_compile "$LINENO"; then :
16010 xorg_cv_cc_flag_unknown_warning_option=yes
16011 else
16012 xorg_cv_cc_flag_unknown_warning_option=no
16013 fi
16014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16015 fi
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16017 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16018 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16019 CFLAGS="$xorg_testset_save_CFLAGS"
16020 fi
16021
16022 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16024 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16025 fi
16026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16028 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16029 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16030 $as_echo_n "(cached) " >&6
16031 else
16032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16033 /* end confdefs.h. */
16034 int i;
16035 _ACEOF
16036 if ac_fn_c_try_compile "$LINENO"; then :
16037 xorg_cv_cc_flag_unused_command_line_argument=yes
16038 else
16039 xorg_cv_cc_flag_unused_command_line_argument=no
16040 fi
16041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16042 fi
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16044 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16045 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16046 CFLAGS="$xorg_testset_save_CFLAGS"
16047 fi
16048
16049 found="no"
16050
16051 if test $found = "no" ; then
16052 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16053 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16054 fi
16055
16056 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16058 fi
16059
16060 CFLAGS="$CFLAGS -Wsequence-point"
16061
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16063 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16064 cacheid=xorg_cv_cc_flag__Wsequence_point
16065 if eval \${$cacheid+:} false; then :
16066 $as_echo_n "(cached) " >&6
16067 else
16068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16069 /* end confdefs.h. */
16070 int i;
16071 int
16072 main ()
16073 {
16074
16075 ;
16076 return 0;
16077 }
16078 _ACEOF
16079 if ac_fn_c_try_link "$LINENO"; then :
16080 eval $cacheid=yes
16081 else
16082 eval $cacheid=no
16083 fi
16084 rm -f core conftest.err conftest.$ac_objext \
16085 conftest$ac_exeext conftest.$ac_ext
16086 fi
16087
16088
16089 CFLAGS="$xorg_testset_save_CFLAGS"
16090
16091 eval supported=\$$cacheid
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16093 $as_echo "$supported" >&6; }
16094 if test "$supported" = "yes" ; then
16095 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16096 found="yes"
16097 fi
16098 fi
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114 xorg_testset_save_CFLAGS="$CFLAGS"
16115
16116 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16117 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16119 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16120 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16121 $as_echo_n "(cached) " >&6
16122 else
16123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16124 /* end confdefs.h. */
16125 int i;
16126 _ACEOF
16127 if ac_fn_c_try_compile "$LINENO"; then :
16128 xorg_cv_cc_flag_unknown_warning_option=yes
16129 else
16130 xorg_cv_cc_flag_unknown_warning_option=no
16131 fi
16132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16133 fi
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16135 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16136 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16137 CFLAGS="$xorg_testset_save_CFLAGS"
16138 fi
16139
16140 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16141 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16142 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16143 fi
16144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16146 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16147 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16148 $as_echo_n "(cached) " >&6
16149 else
16150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16151 /* end confdefs.h. */
16152 int i;
16153 _ACEOF
16154 if ac_fn_c_try_compile "$LINENO"; then :
16155 xorg_cv_cc_flag_unused_command_line_argument=yes
16156 else
16157 xorg_cv_cc_flag_unused_command_line_argument=no
16158 fi
16159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16160 fi
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16162 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16163 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16164 CFLAGS="$xorg_testset_save_CFLAGS"
16165 fi
16166
16167 found="no"
16168
16169 if test $found = "no" ; then
16170 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16171 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16172 fi
16173
16174 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16176 fi
16177
16178 CFLAGS="$CFLAGS -Wreturn-type"
16179
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16181 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16182 cacheid=xorg_cv_cc_flag__Wreturn_type
16183 if eval \${$cacheid+:} false; then :
16184 $as_echo_n "(cached) " >&6
16185 else
16186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16187 /* end confdefs.h. */
16188 int i;
16189 int
16190 main ()
16191 {
16192
16193 ;
16194 return 0;
16195 }
16196 _ACEOF
16197 if ac_fn_c_try_link "$LINENO"; then :
16198 eval $cacheid=yes
16199 else
16200 eval $cacheid=no
16201 fi
16202 rm -f core conftest.err conftest.$ac_objext \
16203 conftest$ac_exeext conftest.$ac_ext
16204 fi
16205
16206
16207 CFLAGS="$xorg_testset_save_CFLAGS"
16208
16209 eval supported=\$$cacheid
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16211 $as_echo "$supported" >&6; }
16212 if test "$supported" = "yes" ; then
16213 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16214 found="yes"
16215 fi
16216 fi
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232 xorg_testset_save_CFLAGS="$CFLAGS"
16233
16234 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16235 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16237 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16238 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16239 $as_echo_n "(cached) " >&6
16240 else
16241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16242 /* end confdefs.h. */
16243 int i;
16244 _ACEOF
16245 if ac_fn_c_try_compile "$LINENO"; then :
16246 xorg_cv_cc_flag_unknown_warning_option=yes
16247 else
16248 xorg_cv_cc_flag_unknown_warning_option=no
16249 fi
16250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16251 fi
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16253 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16254 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16255 CFLAGS="$xorg_testset_save_CFLAGS"
16256 fi
16257
16258 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16260 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16261 fi
16262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16264 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16265 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16266 $as_echo_n "(cached) " >&6
16267 else
16268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16269 /* end confdefs.h. */
16270 int i;
16271 _ACEOF
16272 if ac_fn_c_try_compile "$LINENO"; then :
16273 xorg_cv_cc_flag_unused_command_line_argument=yes
16274 else
16275 xorg_cv_cc_flag_unused_command_line_argument=no
16276 fi
16277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16278 fi
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16280 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16281 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16282 CFLAGS="$xorg_testset_save_CFLAGS"
16283 fi
16284
16285 found="no"
16286
16287 if test $found = "no" ; then
16288 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16290 fi
16291
16292 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16294 fi
16295
16296 CFLAGS="$CFLAGS -Wtrigraphs"
16297
16298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16299 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16300 cacheid=xorg_cv_cc_flag__Wtrigraphs
16301 if eval \${$cacheid+:} false; then :
16302 $as_echo_n "(cached) " >&6
16303 else
16304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16305 /* end confdefs.h. */
16306 int i;
16307 int
16308 main ()
16309 {
16310
16311 ;
16312 return 0;
16313 }
16314 _ACEOF
16315 if ac_fn_c_try_link "$LINENO"; then :
16316 eval $cacheid=yes
16317 else
16318 eval $cacheid=no
16319 fi
16320 rm -f core conftest.err conftest.$ac_objext \
16321 conftest$ac_exeext conftest.$ac_ext
16322 fi
16323
16324
16325 CFLAGS="$xorg_testset_save_CFLAGS"
16326
16327 eval supported=\$$cacheid
16328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16329 $as_echo "$supported" >&6; }
16330 if test "$supported" = "yes" ; then
16331 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16332 found="yes"
16333 fi
16334 fi
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350 xorg_testset_save_CFLAGS="$CFLAGS"
16351
16352 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16353 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16355 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16356 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16357 $as_echo_n "(cached) " >&6
16358 else
16359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16360 /* end confdefs.h. */
16361 int i;
16362 _ACEOF
16363 if ac_fn_c_try_compile "$LINENO"; then :
16364 xorg_cv_cc_flag_unknown_warning_option=yes
16365 else
16366 xorg_cv_cc_flag_unknown_warning_option=no
16367 fi
16368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16369 fi
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16371 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16372 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16373 CFLAGS="$xorg_testset_save_CFLAGS"
16374 fi
16375
16376 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16378 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16379 fi
16380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16382 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16383 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16384 $as_echo_n "(cached) " >&6
16385 else
16386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16387 /* end confdefs.h. */
16388 int i;
16389 _ACEOF
16390 if ac_fn_c_try_compile "$LINENO"; then :
16391 xorg_cv_cc_flag_unused_command_line_argument=yes
16392 else
16393 xorg_cv_cc_flag_unused_command_line_argument=no
16394 fi
16395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16396 fi
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16398 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16399 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16400 CFLAGS="$xorg_testset_save_CFLAGS"
16401 fi
16402
16403 found="no"
16404
16405 if test $found = "no" ; then
16406 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16408 fi
16409
16410 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16412 fi
16413
16414 CFLAGS="$CFLAGS -Warray-bounds"
16415
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16417 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16418 cacheid=xorg_cv_cc_flag__Warray_bounds
16419 if eval \${$cacheid+:} false; then :
16420 $as_echo_n "(cached) " >&6
16421 else
16422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16423 /* end confdefs.h. */
16424 int i;
16425 int
16426 main ()
16427 {
16428
16429 ;
16430 return 0;
16431 }
16432 _ACEOF
16433 if ac_fn_c_try_link "$LINENO"; then :
16434 eval $cacheid=yes
16435 else
16436 eval $cacheid=no
16437 fi
16438 rm -f core conftest.err conftest.$ac_objext \
16439 conftest$ac_exeext conftest.$ac_ext
16440 fi
16441
16442
16443 CFLAGS="$xorg_testset_save_CFLAGS"
16444
16445 eval supported=\$$cacheid
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16447 $as_echo "$supported" >&6; }
16448 if test "$supported" = "yes" ; then
16449 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16450 found="yes"
16451 fi
16452 fi
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468 xorg_testset_save_CFLAGS="$CFLAGS"
16469
16470 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16471 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16473 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16474 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16475 $as_echo_n "(cached) " >&6
16476 else
16477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16478 /* end confdefs.h. */
16479 int i;
16480 _ACEOF
16481 if ac_fn_c_try_compile "$LINENO"; then :
16482 xorg_cv_cc_flag_unknown_warning_option=yes
16483 else
16484 xorg_cv_cc_flag_unknown_warning_option=no
16485 fi
16486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16487 fi
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16489 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16490 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16491 CFLAGS="$xorg_testset_save_CFLAGS"
16492 fi
16493
16494 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16496 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16497 fi
16498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16500 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16501 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16502 $as_echo_n "(cached) " >&6
16503 else
16504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16505 /* end confdefs.h. */
16506 int i;
16507 _ACEOF
16508 if ac_fn_c_try_compile "$LINENO"; then :
16509 xorg_cv_cc_flag_unused_command_line_argument=yes
16510 else
16511 xorg_cv_cc_flag_unused_command_line_argument=no
16512 fi
16513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16514 fi
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16516 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16517 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16518 CFLAGS="$xorg_testset_save_CFLAGS"
16519 fi
16520
16521 found="no"
16522
16523 if test $found = "no" ; then
16524 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16525 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16526 fi
16527
16528 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16530 fi
16531
16532 CFLAGS="$CFLAGS -Wwrite-strings"
16533
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16535 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16536 cacheid=xorg_cv_cc_flag__Wwrite_strings
16537 if eval \${$cacheid+:} false; then :
16538 $as_echo_n "(cached) " >&6
16539 else
16540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16541 /* end confdefs.h. */
16542 int i;
16543 int
16544 main ()
16545 {
16546
16547 ;
16548 return 0;
16549 }
16550 _ACEOF
16551 if ac_fn_c_try_link "$LINENO"; then :
16552 eval $cacheid=yes
16553 else
16554 eval $cacheid=no
16555 fi
16556 rm -f core conftest.err conftest.$ac_objext \
16557 conftest$ac_exeext conftest.$ac_ext
16558 fi
16559
16560
16561 CFLAGS="$xorg_testset_save_CFLAGS"
16562
16563 eval supported=\$$cacheid
16564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16565 $as_echo "$supported" >&6; }
16566 if test "$supported" = "yes" ; then
16567 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16568 found="yes"
16569 fi
16570 fi
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586 xorg_testset_save_CFLAGS="$CFLAGS"
16587
16588 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16589 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16591 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16592 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16593 $as_echo_n "(cached) " >&6
16594 else
16595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16596 /* end confdefs.h. */
16597 int i;
16598 _ACEOF
16599 if ac_fn_c_try_compile "$LINENO"; then :
16600 xorg_cv_cc_flag_unknown_warning_option=yes
16601 else
16602 xorg_cv_cc_flag_unknown_warning_option=no
16603 fi
16604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16605 fi
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16607 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16608 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16609 CFLAGS="$xorg_testset_save_CFLAGS"
16610 fi
16611
16612 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16615 fi
16616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16618 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16619 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16620 $as_echo_n "(cached) " >&6
16621 else
16622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16623 /* end confdefs.h. */
16624 int i;
16625 _ACEOF
16626 if ac_fn_c_try_compile "$LINENO"; then :
16627 xorg_cv_cc_flag_unused_command_line_argument=yes
16628 else
16629 xorg_cv_cc_flag_unused_command_line_argument=no
16630 fi
16631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16632 fi
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16634 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16635 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16636 CFLAGS="$xorg_testset_save_CFLAGS"
16637 fi
16638
16639 found="no"
16640
16641 if test $found = "no" ; then
16642 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16644 fi
16645
16646 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16648 fi
16649
16650 CFLAGS="$CFLAGS -Waddress"
16651
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16653 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
16654 cacheid=xorg_cv_cc_flag__Waddress
16655 if eval \${$cacheid+:} false; then :
16656 $as_echo_n "(cached) " >&6
16657 else
16658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16659 /* end confdefs.h. */
16660 int i;
16661 int
16662 main ()
16663 {
16664
16665 ;
16666 return 0;
16667 }
16668 _ACEOF
16669 if ac_fn_c_try_link "$LINENO"; then :
16670 eval $cacheid=yes
16671 else
16672 eval $cacheid=no
16673 fi
16674 rm -f core conftest.err conftest.$ac_objext \
16675 conftest$ac_exeext conftest.$ac_ext
16676 fi
16677
16678
16679 CFLAGS="$xorg_testset_save_CFLAGS"
16680
16681 eval supported=\$$cacheid
16682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16683 $as_echo "$supported" >&6; }
16684 if test "$supported" = "yes" ; then
16685 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16686 found="yes"
16687 fi
16688 fi
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704 xorg_testset_save_CFLAGS="$CFLAGS"
16705
16706 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16707 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16709 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16710 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16711 $as_echo_n "(cached) " >&6
16712 else
16713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16714 /* end confdefs.h. */
16715 int i;
16716 _ACEOF
16717 if ac_fn_c_try_compile "$LINENO"; then :
16718 xorg_cv_cc_flag_unknown_warning_option=yes
16719 else
16720 xorg_cv_cc_flag_unknown_warning_option=no
16721 fi
16722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16723 fi
16724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16725 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16726 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16727 CFLAGS="$xorg_testset_save_CFLAGS"
16728 fi
16729
16730 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16733 fi
16734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16736 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16737 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16738 $as_echo_n "(cached) " >&6
16739 else
16740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16741 /* end confdefs.h. */
16742 int i;
16743 _ACEOF
16744 if ac_fn_c_try_compile "$LINENO"; then :
16745 xorg_cv_cc_flag_unused_command_line_argument=yes
16746 else
16747 xorg_cv_cc_flag_unused_command_line_argument=no
16748 fi
16749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16750 fi
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16752 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16753 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16754 CFLAGS="$xorg_testset_save_CFLAGS"
16755 fi
16756
16757 found="no"
16758
16759 if test $found = "no" ; then
16760 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16762 fi
16763
16764 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16766 fi
16767
16768 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
16769
16770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
16771 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
16772 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
16773 if eval \${$cacheid+:} false; then :
16774 $as_echo_n "(cached) " >&6
16775 else
16776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16777 /* end confdefs.h. */
16778 int i;
16779 int
16780 main ()
16781 {
16782
16783 ;
16784 return 0;
16785 }
16786 _ACEOF
16787 if ac_fn_c_try_link "$LINENO"; then :
16788 eval $cacheid=yes
16789 else
16790 eval $cacheid=no
16791 fi
16792 rm -f core conftest.err conftest.$ac_objext \
16793 conftest$ac_exeext conftest.$ac_ext
16794 fi
16795
16796
16797 CFLAGS="$xorg_testset_save_CFLAGS"
16798
16799 eval supported=\$$cacheid
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16801 $as_echo "$supported" >&6; }
16802 if test "$supported" = "yes" ; then
16803 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
16804 found="yes"
16805 fi
16806 fi
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822 xorg_testset_save_CFLAGS="$CFLAGS"
16823
16824 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16825 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16827 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16828 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16829 $as_echo_n "(cached) " >&6
16830 else
16831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16832 /* end confdefs.h. */
16833 int i;
16834 _ACEOF
16835 if ac_fn_c_try_compile "$LINENO"; then :
16836 xorg_cv_cc_flag_unknown_warning_option=yes
16837 else
16838 xorg_cv_cc_flag_unknown_warning_option=no
16839 fi
16840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16841 fi
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16843 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16844 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16845 CFLAGS="$xorg_testset_save_CFLAGS"
16846 fi
16847
16848 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16851 fi
16852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16854 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16855 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16856 $as_echo_n "(cached) " >&6
16857 else
16858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16859 /* end confdefs.h. */
16860 int i;
16861 _ACEOF
16862 if ac_fn_c_try_compile "$LINENO"; then :
16863 xorg_cv_cc_flag_unused_command_line_argument=yes
16864 else
16865 xorg_cv_cc_flag_unused_command_line_argument=no
16866 fi
16867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16868 fi
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16870 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16871 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16872 CFLAGS="$xorg_testset_save_CFLAGS"
16873 fi
16874
16875 found="no"
16876
16877 if test $found = "no" ; then
16878 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16879 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16880 fi
16881
16882 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16884 fi
16885
16886 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
16887
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
16889 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
16890 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
16891 if eval \${$cacheid+:} false; then :
16892 $as_echo_n "(cached) " >&6
16893 else
16894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16895 /* end confdefs.h. */
16896 int i;
16897 int
16898 main ()
16899 {
16900
16901 ;
16902 return 0;
16903 }
16904 _ACEOF
16905 if ac_fn_c_try_link "$LINENO"; then :
16906 eval $cacheid=yes
16907 else
16908 eval $cacheid=no
16909 fi
16910 rm -f core conftest.err conftest.$ac_objext \
16911 conftest$ac_exeext conftest.$ac_ext
16912 fi
16913
16914
16915 CFLAGS="$xorg_testset_save_CFLAGS"
16916
16917 eval supported=\$$cacheid
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16919 $as_echo "$supported" >&6; }
16920 if test "$supported" = "yes" ; then
16921 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
16922 found="yes"
16923 fi
16924 fi
16925
16926
16927 fi
16928
16929
16930
16931
16932
16933
16934
16935 CWARNFLAGS="$BASE_CFLAGS"
16936 if test "x$GCC" = xyes ; then
16937 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
16938 fi
16939
16940
16941
16942
16943
16944
16945
16946
16947 # Check whether --enable-strict-compilation was given.
16948 if test "${enable_strict_compilation+set}" = set; then :
16949 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
16950 else
16951 STRICT_COMPILE=no
16952 fi
16953
16954
16955
16956
16957
16958
16959 STRICT_CFLAGS=""
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973 xorg_testset_save_CFLAGS="$CFLAGS"
16974
16975 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16978 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16979 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16980 $as_echo_n "(cached) " >&6
16981 else
16982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16983 /* end confdefs.h. */
16984 int i;
16985 _ACEOF
16986 if ac_fn_c_try_compile "$LINENO"; then :
16987 xorg_cv_cc_flag_unknown_warning_option=yes
16988 else
16989 xorg_cv_cc_flag_unknown_warning_option=no
16990 fi
16991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16992 fi
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16994 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16995 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16996 CFLAGS="$xorg_testset_save_CFLAGS"
16997 fi
16998
16999 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17002 fi
17003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17005 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17006 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17007 $as_echo_n "(cached) " >&6
17008 else
17009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17010 /* end confdefs.h. */
17011 int i;
17012 _ACEOF
17013 if ac_fn_c_try_compile "$LINENO"; then :
17014 xorg_cv_cc_flag_unused_command_line_argument=yes
17015 else
17016 xorg_cv_cc_flag_unused_command_line_argument=no
17017 fi
17018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17019 fi
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17021 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17022 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17023 CFLAGS="$xorg_testset_save_CFLAGS"
17024 fi
17025
17026 found="no"
17027
17028 if test $found = "no" ; then
17029 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17030 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17031 fi
17032
17033 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17035 fi
17036
17037 CFLAGS="$CFLAGS -pedantic"
17038
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17040 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17041 cacheid=xorg_cv_cc_flag__pedantic
17042 if eval \${$cacheid+:} false; then :
17043 $as_echo_n "(cached) " >&6
17044 else
17045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17046 /* end confdefs.h. */
17047 int i;
17048 int
17049 main ()
17050 {
17051
17052 ;
17053 return 0;
17054 }
17055 _ACEOF
17056 if ac_fn_c_try_link "$LINENO"; then :
17057 eval $cacheid=yes
17058 else
17059 eval $cacheid=no
17060 fi
17061 rm -f core conftest.err conftest.$ac_objext \
17062 conftest$ac_exeext conftest.$ac_ext
17063 fi
17064
17065
17066 CFLAGS="$xorg_testset_save_CFLAGS"
17067
17068 eval supported=\$$cacheid
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17070 $as_echo "$supported" >&6; }
17071 if test "$supported" = "yes" ; then
17072 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17073 found="yes"
17074 fi
17075 fi
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091 xorg_testset_save_CFLAGS="$CFLAGS"
17092
17093 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17094 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17096 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17097 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17098 $as_echo_n "(cached) " >&6
17099 else
17100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17101 /* end confdefs.h. */
17102 int i;
17103 _ACEOF
17104 if ac_fn_c_try_compile "$LINENO"; then :
17105 xorg_cv_cc_flag_unknown_warning_option=yes
17106 else
17107 xorg_cv_cc_flag_unknown_warning_option=no
17108 fi
17109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17110 fi
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17112 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17113 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17114 CFLAGS="$xorg_testset_save_CFLAGS"
17115 fi
17116
17117 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17120 fi
17121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17123 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17124 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17125 $as_echo_n "(cached) " >&6
17126 else
17127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17128 /* end confdefs.h. */
17129 int i;
17130 _ACEOF
17131 if ac_fn_c_try_compile "$LINENO"; then :
17132 xorg_cv_cc_flag_unused_command_line_argument=yes
17133 else
17134 xorg_cv_cc_flag_unused_command_line_argument=no
17135 fi
17136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17137 fi
17138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17139 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17140 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17141 CFLAGS="$xorg_testset_save_CFLAGS"
17142 fi
17143
17144 found="no"
17145
17146 if test $found = "no" ; then
17147 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17148 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17149 fi
17150
17151 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17153 fi
17154
17155 CFLAGS="$CFLAGS -Werror"
17156
17157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17158 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17159 cacheid=xorg_cv_cc_flag__Werror
17160 if eval \${$cacheid+:} false; then :
17161 $as_echo_n "(cached) " >&6
17162 else
17163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17164 /* end confdefs.h. */
17165 int i;
17166 int
17167 main ()
17168 {
17169
17170 ;
17171 return 0;
17172 }
17173 _ACEOF
17174 if ac_fn_c_try_link "$LINENO"; then :
17175 eval $cacheid=yes
17176 else
17177 eval $cacheid=no
17178 fi
17179 rm -f core conftest.err conftest.$ac_objext \
17180 conftest$ac_exeext conftest.$ac_ext
17181 fi
17182
17183
17184 CFLAGS="$xorg_testset_save_CFLAGS"
17185
17186 eval supported=\$$cacheid
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17188 $as_echo "$supported" >&6; }
17189 if test "$supported" = "yes" ; then
17190 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17191 found="yes"
17192 fi
17193 fi
17194
17195 if test $found = "no" ; then
17196 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17198 fi
17199
17200 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17202 fi
17203
17204 CFLAGS="$CFLAGS -errwarn"
17205
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17207 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17208 cacheid=xorg_cv_cc_flag__errwarn
17209 if eval \${$cacheid+:} false; then :
17210 $as_echo_n "(cached) " >&6
17211 else
17212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17213 /* end confdefs.h. */
17214 int i;
17215 int
17216 main ()
17217 {
17218
17219 ;
17220 return 0;
17221 }
17222 _ACEOF
17223 if ac_fn_c_try_link "$LINENO"; then :
17224 eval $cacheid=yes
17225 else
17226 eval $cacheid=no
17227 fi
17228 rm -f core conftest.err conftest.$ac_objext \
17229 conftest$ac_exeext conftest.$ac_ext
17230 fi
17231
17232
17233 CFLAGS="$xorg_testset_save_CFLAGS"
17234
17235 eval supported=\$$cacheid
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17237 $as_echo "$supported" >&6; }
17238 if test "$supported" = "yes" ; then
17239 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17240 found="yes"
17241 fi
17242 fi
17243
17244
17245
17246 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17247 # activate it with -Werror, so we add it here explicitly.
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261 xorg_testset_save_CFLAGS="$CFLAGS"
17262
17263 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17266 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17267 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17268 $as_echo_n "(cached) " >&6
17269 else
17270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17271 /* end confdefs.h. */
17272 int i;
17273 _ACEOF
17274 if ac_fn_c_try_compile "$LINENO"; then :
17275 xorg_cv_cc_flag_unknown_warning_option=yes
17276 else
17277 xorg_cv_cc_flag_unknown_warning_option=no
17278 fi
17279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17280 fi
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17282 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17283 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17284 CFLAGS="$xorg_testset_save_CFLAGS"
17285 fi
17286
17287 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17290 fi
17291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17293 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17294 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17295 $as_echo_n "(cached) " >&6
17296 else
17297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17298 /* end confdefs.h. */
17299 int i;
17300 _ACEOF
17301 if ac_fn_c_try_compile "$LINENO"; then :
17302 xorg_cv_cc_flag_unused_command_line_argument=yes
17303 else
17304 xorg_cv_cc_flag_unused_command_line_argument=no
17305 fi
17306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17307 fi
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17309 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17310 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17311 CFLAGS="$xorg_testset_save_CFLAGS"
17312 fi
17313
17314 found="no"
17315
17316 if test $found = "no" ; then
17317 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17319 fi
17320
17321 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17323 fi
17324
17325 CFLAGS="$CFLAGS -Werror=attributes"
17326
17327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17328 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17329 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
17330 if eval \${$cacheid+:} false; then :
17331 $as_echo_n "(cached) " >&6
17332 else
17333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17334 /* end confdefs.h. */
17335 int i;
17336 int
17337 main ()
17338 {
17339
17340 ;
17341 return 0;
17342 }
17343 _ACEOF
17344 if ac_fn_c_try_link "$LINENO"; then :
17345 eval $cacheid=yes
17346 else
17347 eval $cacheid=no
17348 fi
17349 rm -f core conftest.err conftest.$ac_objext \
17350 conftest$ac_exeext conftest.$ac_ext
17351 fi
17352
17353
17354 CFLAGS="$xorg_testset_save_CFLAGS"
17355
17356 eval supported=\$$cacheid
17357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17358 $as_echo "$supported" >&6; }
17359 if test "$supported" = "yes" ; then
17360 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17361 found="yes"
17362 fi
17363 fi
17364
17365
17366
17367 if test "x$STRICT_COMPILE" = "xyes"; then
17368 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17369 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17370 fi
17371
17372
17373
17374
17375
17376
17377 cat >>confdefs.h <<_ACEOF
17378 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17379 _ACEOF
17380
17381 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17382 if test "x$PVM" = "x"; then
17383 PVM="0"
17384 fi
17385
17386 cat >>confdefs.h <<_ACEOF
17387 #define PACKAGE_VERSION_MINOR $PVM
17388 _ACEOF
17389
17390 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17391 if test "x$PVP" = "x"; then
17392 PVP="0"
17393 fi
17394
17395 cat >>confdefs.h <<_ACEOF
17396 #define PACKAGE_VERSION_PATCHLEVEL $PVP
17397 _ACEOF
17398
17399
17400
17401 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17402 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17403 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17404 echo 'git directory not found: installing possibly empty changelog.' >&2)"
17405
17406
17407
17408
17409 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17410 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17411 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17412 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17413 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17414
17415
17416
17417
17418
17419
17420 if test x$APP_MAN_SUFFIX = x ; then
17421 APP_MAN_SUFFIX=1
17422 fi
17423 if test x$APP_MAN_DIR = x ; then
17424 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17425 fi
17426
17427 if test x$LIB_MAN_SUFFIX = x ; then
17428 LIB_MAN_SUFFIX=3
17429 fi
17430 if test x$LIB_MAN_DIR = x ; then
17431 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17432 fi
17433
17434 if test x$FILE_MAN_SUFFIX = x ; then
17435 case $host_os in
17436 solaris*) FILE_MAN_SUFFIX=4 ;;
17437 *) FILE_MAN_SUFFIX=5 ;;
17438 esac
17439 fi
17440 if test x$FILE_MAN_DIR = x ; then
17441 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17442 fi
17443
17444 if test x$MISC_MAN_SUFFIX = x ; then
17445 case $host_os in
17446 solaris*) MISC_MAN_SUFFIX=5 ;;
17447 *) MISC_MAN_SUFFIX=7 ;;
17448 esac
17449 fi
17450 if test x$MISC_MAN_DIR = x ; then
17451 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17452 fi
17453
17454 if test x$DRIVER_MAN_SUFFIX = x ; then
17455 case $host_os in
17456 solaris*) DRIVER_MAN_SUFFIX=7 ;;
17457 *) DRIVER_MAN_SUFFIX=4 ;;
17458 esac
17459 fi
17460 if test x$DRIVER_MAN_DIR = x ; then
17461 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17462 fi
17463
17464 if test x$ADMIN_MAN_SUFFIX = x ; then
17465 case $host_os in
17466 solaris*) ADMIN_MAN_SUFFIX=1m ;;
17467 *) ADMIN_MAN_SUFFIX=8 ;;
17468 esac
17469 fi
17470 if test x$ADMIN_MAN_DIR = x ; then
17471 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17472 fi
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488 XORG_MAN_PAGE="X Version 11"
17489
17490 MAN_SUBSTS="\
17491 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17492 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17493 -e 's|__xservername__|Xorg|g' \
17494 -e 's|__xconfigfile__|xorg.conf|g' \
17495 -e 's|__projectroot__|\$(prefix)|g' \
17496 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
17497 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17498 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17499 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17500 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17501 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17502 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17503
17504
17505
17506 # Check whether --enable-silent-rules was given.
17507 if test "${enable_silent_rules+set}" = set; then :
17508 enableval=$enable_silent_rules;
17509 fi
17510
17511 case $enable_silent_rules in
17512 yes) AM_DEFAULT_VERBOSITY=0;;
17513 no) AM_DEFAULT_VERBOSITY=1;;
17514 *) AM_DEFAULT_VERBOSITY=0;;
17515 esac
17516 AM_BACKSLASH='\'
17517
17518
17519
17520 # Check damageext configuration, strip extra digits from package version to
17521 # find the required protocol version
17522 DAMAGEEXT_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
17523
17524
17525 # Obtain compiler/linker options for depedencies
17526
17527 pkg_failed=no
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDAMAGE" >&5
17529 $as_echo_n "checking for XDAMAGE... " >&6; }
17530
17531 if test -n "$XDAMAGE_CFLAGS"; then
17532 pkg_cv_XDAMAGE_CFLAGS="$XDAMAGE_CFLAGS"
17533 elif test -n "$PKG_CONFIG"; then
17534 if test -n "$PKG_CONFIG" && \
17535 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"damageproto >= \$DAMAGEEXT_VERSION xfixes fixesproto xextproto x11\""; } >&5
17536 ($PKG_CONFIG --exists --print-errors "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11") 2>&5
17537 ac_status=$?
17538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17539 test $ac_status = 0; }; then
17540 pkg_cv_XDAMAGE_CFLAGS=`$PKG_CONFIG --cflags "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11" 2>/dev/null`
17541 else
17542 pkg_failed=yes
17543 fi
17544 else
17545 pkg_failed=untried
17546 fi
17547 if test -n "$XDAMAGE_LIBS"; then
17548 pkg_cv_XDAMAGE_LIBS="$XDAMAGE_LIBS"
17549 elif test -n "$PKG_CONFIG"; then
17550 if test -n "$PKG_CONFIG" && \
17551 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"damageproto >= \$DAMAGEEXT_VERSION xfixes fixesproto xextproto x11\""; } >&5
17552 ($PKG_CONFIG --exists --print-errors "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11") 2>&5
17553 ac_status=$?
17554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17555 test $ac_status = 0; }; then
17556 pkg_cv_XDAMAGE_LIBS=`$PKG_CONFIG --libs "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11" 2>/dev/null`
17557 else
17558 pkg_failed=yes
17559 fi
17560 else
17561 pkg_failed=untried
17562 fi
17563
17564
17565
17566 if test $pkg_failed = yes; then
17567
17568 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17569 _pkg_short_errors_supported=yes
17570 else
17571 _pkg_short_errors_supported=no
17572 fi
17573 if test $_pkg_short_errors_supported = yes; then
17574 XDAMAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11" 2>&1`
17575 else
17576 XDAMAGE_PKG_ERRORS=`$PKG_CONFIG --print-errors "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11" 2>&1`
17577 fi
17578 # Put the nasty error message in config.log where it belongs
17579 echo "$XDAMAGE_PKG_ERRORS" >&5
17580
17581 as_fn_error $? "Package requirements (damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11) were not met:
17582
17583 $XDAMAGE_PKG_ERRORS
17584
17585 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17586 installed software in a non-standard prefix.
17587
17588 Alternatively, you may set the environment variables XDAMAGE_CFLAGS
17589 and XDAMAGE_LIBS to avoid the need to call pkg-config.
17590 See the pkg-config man page for more details.
17591 " "$LINENO" 5
17592 elif test $pkg_failed = untried; then
17593 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17595 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17596 is in your PATH or set the PKG_CONFIG environment variable to the full
17597 path to pkg-config.
17598
17599 Alternatively, you may set the environment variables XDAMAGE_CFLAGS
17600 and XDAMAGE_LIBS to avoid the need to call pkg-config.
17601 See the pkg-config man page for more details.
17602
17603 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17604 See \`config.log' for more details" "$LINENO" 5; }
17605 else
17606 XDAMAGE_CFLAGS=$pkg_cv_XDAMAGE_CFLAGS
17607 XDAMAGE_LIBS=$pkg_cv_XDAMAGE_LIBS
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17609 $as_echo "yes" >&6; }
17610 :
17611 fi
17612
17613 ac_config_files="$ac_config_files Makefile src/Makefile xdamage.pc"
17614
17615 cat >confcache <<\_ACEOF
17616 # This file is a shell script that caches the results of configure
17617 # tests run on this system so they can be shared between configure
17618 # scripts and configure runs, see configure's option --config-cache.
17619 # It is not useful on other systems. If it contains results you don't
17620 # want to keep, you may remove or edit it.
17621 #
17622 # config.status only pays attention to the cache file if you give it
17623 # the --recheck option to rerun configure.
17624 #
17625 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17626 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17627 # following values.
17628
17629 _ACEOF
17630
17631 # The following way of writing the cache mishandles newlines in values,
17632 # but we know of no workaround that is simple, portable, and efficient.
17633 # So, we kill variables containing newlines.
17634 # Ultrix sh set writes to stderr and can't be redirected directly,
17635 # and sets the high bit in the cache file unless we assign to the vars.
17636 (
17637 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17638 eval ac_val=\$$ac_var
17639 case $ac_val in #(
17640 *${as_nl}*)
17641 case $ac_var in #(
17642 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17643 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17644 esac
17645 case $ac_var in #(
17646 _ | IFS | as_nl) ;; #(
17647 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17648 *) { eval $ac_var=; unset $ac_var;} ;;
17649 esac ;;
17650 esac
17651 done
17652
17653 (set) 2>&1 |
17654 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17655 *${as_nl}ac_space=\ *)
17656 # `set' does not quote correctly, so add quotes: double-quote
17657 # substitution turns \\\\ into \\, and sed turns \\ into \.
17658 sed -n \
17659 "s/'/'\\\\''/g;
17660 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17661 ;; #(
17662 *)
17663 # `set' quotes correctly as required by POSIX, so do not add quotes.
17664 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17665 ;;
17666 esac |
17667 sort
17668 ) |
17669 sed '
17670 /^ac_cv_env_/b end
17671 t clear
17672 :clear
17673 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17674 t end
17675 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17676 :end' >>confcache
17677 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17678 if test -w "$cache_file"; then
17679 if test "x$cache_file" != "x/dev/null"; then
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17681 $as_echo "$as_me: updating cache $cache_file" >&6;}
17682 if test ! -f "$cache_file" || test -h "$cache_file"; then
17683 cat confcache >"$cache_file"
17684 else
17685 case $cache_file in #(
17686 */* | ?:*)
17687 mv -f confcache "$cache_file"$$ &&
17688 mv -f "$cache_file"$$ "$cache_file" ;; #(
17689 *)
17690 mv -f confcache "$cache_file" ;;
17691 esac
17692 fi
17693 fi
17694 else
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17696 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17697 fi
17698 fi
17699 rm -f confcache
17700
17701 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17702 # Let make expand exec_prefix.
17703 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17704
17705 DEFS=-DHAVE_CONFIG_H
17706
17707 ac_libobjs=
17708 ac_ltlibobjs=
17709 U=
17710 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17711 # 1. Remove the extension, and $U if already installed.
17712 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17713 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17714 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17715 # will be set to the directory where LIBOBJS objects are built.
17716 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17717 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17718 done
17719 LIBOBJS=$ac_libobjs
17720
17721 LTLIBOBJS=$ac_ltlibobjs
17722
17723
17724 if test -n "$EXEEXT"; then
17725 am__EXEEXT_TRUE=
17726 am__EXEEXT_FALSE='#'
17727 else
17728 am__EXEEXT_TRUE='#'
17729 am__EXEEXT_FALSE=
17730 fi
17731
17732 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17733 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17735 fi
17736 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17737 as_fn_error $? "conditional \"AMDEP\" was never defined.
17738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17739 fi
17740 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17741 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17743 fi
17744
17745 : "${CONFIG_STATUS=./config.status}"
17746 ac_write_fail=0
17747 ac_clean_files_save=$ac_clean_files
17748 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17750 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17751 as_write_fail=0
17752 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17753 #! $SHELL
17754 # Generated by $as_me.
17755 # Run this file to recreate the current configuration.
17756 # Compiler output produced by configure, useful for debugging
17757 # configure, is in config.log if it exists.
17758
17759 debug=false
17760 ac_cs_recheck=false
17761 ac_cs_silent=false
17762
17763 SHELL=\${CONFIG_SHELL-$SHELL}
17764 export SHELL
17765 _ASEOF
17766 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17767 ## -------------------- ##
17768 ## M4sh Initialization. ##
17769 ## -------------------- ##
17770
17771 # Be more Bourne compatible
17772 DUALCASE=1; export DUALCASE # for MKS sh
17773 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17774 emulate sh
17775 NULLCMD=:
17776 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17777 # is contrary to our usage. Disable this feature.
17778 alias -g '${1+"$@"}'='"$@"'
17779 setopt NO_GLOB_SUBST
17780 else
17781 case `(set -o) 2>/dev/null` in #(
17782 *posix*) :
17783 set -o posix ;; #(
17784 *) :
17785 ;;
17786 esac
17787 fi
17788
17789
17790 as_nl='
17791 '
17792 export as_nl
17793 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17794 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17795 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17796 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17797 # Prefer a ksh shell builtin over an external printf program on Solaris,
17798 # but without wasting forks for bash or zsh.
17799 if test -z "$BASH_VERSION$ZSH_VERSION" \
17800 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17801 as_echo='print -r --'
17802 as_echo_n='print -rn --'
17803 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17804 as_echo='printf %s\n'
17805 as_echo_n='printf %s'
17806 else
17807 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17808 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17809 as_echo_n='/usr/ucb/echo -n'
17810 else
17811 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17812 as_echo_n_body='eval
17813 arg=$1;
17814 case $arg in #(
17815 *"$as_nl"*)
17816 expr "X$arg" : "X\\(.*\\)$as_nl";
17817 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17818 esac;
17819 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17820 '
17821 export as_echo_n_body
17822 as_echo_n='sh -c $as_echo_n_body as_echo'
17823 fi
17824 export as_echo_body
17825 as_echo='sh -c $as_echo_body as_echo'
17826 fi
17827
17828 # The user is always right.
17829 if test "${PATH_SEPARATOR+set}" != set; then
17830 PATH_SEPARATOR=:
17831 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17832 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17833 PATH_SEPARATOR=';'
17834 }
17835 fi
17836
17837
17838 # IFS
17839 # We need space, tab and new line, in precisely that order. Quoting is
17840 # there to prevent editors from complaining about space-tab.
17841 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17842 # splitting by setting IFS to empty value.)
17843 IFS=" "" $as_nl"
17844
17845 # Find who we are. Look in the path if we contain no directory separator.
17846 as_myself=
17847 case $0 in #((
17848 *[\\/]* ) as_myself=$0 ;;
17849 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17850 for as_dir in $PATH
17851 do
17852 IFS=$as_save_IFS
17853 test -z "$as_dir" && as_dir=.
17854 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17855 done
17856 IFS=$as_save_IFS
17857
17858 ;;
17859 esac
17860 # We did not find ourselves, most probably we were run as `sh COMMAND'
17861 # in which case we are not to be found in the path.
17862 if test "x$as_myself" = x; then
17863 as_myself=$0
17864 fi
17865 if test ! -f "$as_myself"; then
17866 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17867 exit 1
17868 fi
17869
17870 # Unset variables that we do not need and which cause bugs (e.g. in
17871 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17872 # suppresses any "Segmentation fault" message there. '((' could
17873 # trigger a bug in pdksh 5.2.14.
17874 for as_var in BASH_ENV ENV MAIL MAILPATH
17875 do eval test x\${$as_var+set} = xset \
17876 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17877 done
17878 PS1='$ '
17879 PS2='> '
17880 PS4='+ '
17881
17882 # NLS nuisances.
17883 LC_ALL=C
17884 export LC_ALL
17885 LANGUAGE=C
17886 export LANGUAGE
17887
17888 # CDPATH.
17889 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17890
17891
17892 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17893 # ----------------------------------------
17894 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17895 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17896 # script with STATUS, using 1 if that was 0.
17897 as_fn_error ()
17898 {
17899 as_status=$1; test $as_status -eq 0 && as_status=1
17900 if test "$4"; then
17901 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17902 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17903 fi
17904 $as_echo "$as_me: error: $2" >&2
17905 as_fn_exit $as_status
17906 } # as_fn_error
17907
17908
17909 # as_fn_set_status STATUS
17910 # -----------------------
17911 # Set $? to STATUS, without forking.
17912 as_fn_set_status ()
17913 {
17914 return $1
17915 } # as_fn_set_status
17916
17917 # as_fn_exit STATUS
17918 # -----------------
17919 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17920 as_fn_exit ()
17921 {
17922 set +e
17923 as_fn_set_status $1
17924 exit $1
17925 } # as_fn_exit
17926
17927 # as_fn_unset VAR
17928 # ---------------
17929 # Portably unset VAR.
17930 as_fn_unset ()
17931 {
17932 { eval $1=; unset $1;}
17933 }
17934 as_unset=as_fn_unset
17935 # as_fn_append VAR VALUE
17936 # ----------------------
17937 # Append the text in VALUE to the end of the definition contained in VAR. Take
17938 # advantage of any shell optimizations that allow amortized linear growth over
17939 # repeated appends, instead of the typical quadratic growth present in naive
17940 # implementations.
17941 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17942 eval 'as_fn_append ()
17943 {
17944 eval $1+=\$2
17945 }'
17946 else
17947 as_fn_append ()
17948 {
17949 eval $1=\$$1\$2
17950 }
17951 fi # as_fn_append
17952
17953 # as_fn_arith ARG...
17954 # ------------------
17955 # Perform arithmetic evaluation on the ARGs, and store the result in the
17956 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17957 # must be portable across $(()) and expr.
17958 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17959 eval 'as_fn_arith ()
17960 {
17961 as_val=$(( $* ))
17962 }'
17963 else
17964 as_fn_arith ()
17965 {
17966 as_val=`expr "$@" || test $? -eq 1`
17967 }
17968 fi # as_fn_arith
17969
17970
17971 if expr a : '\(a\)' >/dev/null 2>&1 &&
17972 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17973 as_expr=expr
17974 else
17975 as_expr=false
17976 fi
17977
17978 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17979 as_basename=basename
17980 else
17981 as_basename=false
17982 fi
17983
17984 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17985 as_dirname=dirname
17986 else
17987 as_dirname=false
17988 fi
17989
17990 as_me=`$as_basename -- "$0" ||
17991 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17992 X"$0" : 'X\(//\)$' \| \
17993 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17994 $as_echo X/"$0" |
17995 sed '/^.*\/\([^/][^/]*\)\/*$/{
17996 s//\1/
17997 q
17998 }
17999 /^X\/\(\/\/\)$/{
18000 s//\1/
18001 q
18002 }
18003 /^X\/\(\/\).*/{
18004 s//\1/
18005 q
18006 }
18007 s/.*/./; q'`
18008
18009 # Avoid depending upon Character Ranges.
18010 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18011 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18012 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18013 as_cr_digits='0123456789'
18014 as_cr_alnum=$as_cr_Letters$as_cr_digits
18015
18016 ECHO_C= ECHO_N= ECHO_T=
18017 case `echo -n x` in #(((((
18018 -n*)
18019 case `echo 'xy\c'` in
18020 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18021 xy) ECHO_C='\c';;
18022 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18023 ECHO_T=' ';;
18024 esac;;
18025 *)
18026 ECHO_N='-n';;
18027 esac
18028
18029 rm -f conf$$ conf$$.exe conf$$.file
18030 if test -d conf$$.dir; then
18031 rm -f conf$$.dir/conf$$.file
18032 else
18033 rm -f conf$$.dir
18034 mkdir conf$$.dir 2>/dev/null
18035 fi
18036 if (echo >conf$$.file) 2>/dev/null; then
18037 if ln -s conf$$.file conf$$ 2>/dev/null; then
18038 as_ln_s='ln -s'
18039 # ... but there are two gotchas:
18040 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18041 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18042 # In both cases, we have to default to `cp -p'.
18043 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18044 as_ln_s='cp -p'
18045 elif ln conf$$.file conf$$ 2>/dev/null; then
18046 as_ln_s=ln
18047 else
18048 as_ln_s='cp -p'
18049 fi
18050 else
18051 as_ln_s='cp -p'
18052 fi
18053 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18054 rmdir conf$$.dir 2>/dev/null
18055
18056
18057 # as_fn_mkdir_p
18058 # -------------
18059 # Create "$as_dir" as a directory, including parents if necessary.
18060 as_fn_mkdir_p ()
18061 {
18062
18063 case $as_dir in #(
18064 -*) as_dir=./$as_dir;;
18065 esac
18066 test -d "$as_dir" || eval $as_mkdir_p || {
18067 as_dirs=
18068 while :; do
18069 case $as_dir in #(
18070 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18071 *) as_qdir=$as_dir;;
18072 esac
18073 as_dirs="'$as_qdir' $as_dirs"
18074 as_dir=`$as_dirname -- "$as_dir" ||
18075 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18076 X"$as_dir" : 'X\(//\)[^/]' \| \
18077 X"$as_dir" : 'X\(//\)$' \| \
18078 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18079 $as_echo X"$as_dir" |
18080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18081 s//\1/
18082 q
18083 }
18084 /^X\(\/\/\)[^/].*/{
18085 s//\1/
18086 q
18087 }
18088 /^X\(\/\/\)$/{
18089 s//\1/
18090 q
18091 }
18092 /^X\(\/\).*/{
18093 s//\1/
18094 q
18095 }
18096 s/.*/./; q'`
18097 test -d "$as_dir" && break
18098 done
18099 test -z "$as_dirs" || eval "mkdir $as_dirs"
18100 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18101
18102
18103 } # as_fn_mkdir_p
18104 if mkdir -p . 2>/dev/null; then
18105 as_mkdir_p='mkdir -p "$as_dir"'
18106 else
18107 test -d ./-p && rmdir ./-p
18108 as_mkdir_p=false
18109 fi
18110
18111 if test -x / >/dev/null 2>&1; then
18112 as_test_x='test -x'
18113 else
18114 if ls -dL / >/dev/null 2>&1; then
18115 as_ls_L_option=L
18116 else
18117 as_ls_L_option=
18118 fi
18119 as_test_x='
18120 eval sh -c '\''
18121 if test -d "$1"; then
18122 test -d "$1/.";
18123 else
18124 case $1 in #(
18125 -*)set "./$1";;
18126 esac;
18127 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18128 ???[sx]*):;;*)false;;esac;fi
18129 '\'' sh
18130 '
18131 fi
18132 as_executable_p=$as_test_x
18133
18134 # Sed expression to map a string onto a valid CPP name.
18135 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18136
18137 # Sed expression to map a string onto a valid variable name.
18138 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18139
18140
18141 exec 6>&1
18142 ## ----------------------------------- ##
18143 ## Main body of $CONFIG_STATUS script. ##
18144 ## ----------------------------------- ##
18145 _ASEOF
18146 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18147
18148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18149 # Save the log message, to keep $0 and so on meaningful, and to
18150 # report actual input values of CONFIG_FILES etc. instead of their
18151 # values after options handling.
18152 ac_log="
18153 This file was extended by libXdamage $as_me 1.1.4, which was
18154 generated by GNU Autoconf 2.68. Invocation command line was
18155
18156 CONFIG_FILES = $CONFIG_FILES
18157 CONFIG_HEADERS = $CONFIG_HEADERS
18158 CONFIG_LINKS = $CONFIG_LINKS
18159 CONFIG_COMMANDS = $CONFIG_COMMANDS
18160 $ $0 $@
18161
18162 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18163 "
18164
18165 _ACEOF
18166
18167 case $ac_config_files in *"
18168 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18169 esac
18170
18171 case $ac_config_headers in *"
18172 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18173 esac
18174
18175
18176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18177 # Files that config.status was made for.
18178 config_files="$ac_config_files"
18179 config_headers="$ac_config_headers"
18180 config_commands="$ac_config_commands"
18181
18182 _ACEOF
18183
18184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18185 ac_cs_usage="\
18186 \`$as_me' instantiates files and other configuration actions
18187 from templates according to the current configuration. Unless the files
18188 and actions are specified as TAGs, all are instantiated by default.
18189
18190 Usage: $0 [OPTION]... [TAG]...
18191
18192 -h, --help print this help, then exit
18193 -V, --version print version number and configuration settings, then exit
18194 --config print configuration, then exit
18195 -q, --quiet, --silent
18196 do not print progress messages
18197 -d, --debug don't remove temporary files
18198 --recheck update $as_me by reconfiguring in the same conditions
18199 --file=FILE[:TEMPLATE]
18200 instantiate the configuration file FILE
18201 --header=FILE[:TEMPLATE]
18202 instantiate the configuration header FILE
18203
18204 Configuration files:
18205 $config_files
18206
18207 Configuration headers:
18208 $config_headers
18209
18210 Configuration commands:
18211 $config_commands
18212
18213 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18214
18215 _ACEOF
18216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18217 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18218 ac_cs_version="\\
18219 libXdamage config.status 1.1.4
18220 configured by $0, generated by GNU Autoconf 2.68,
18221 with options \\"\$ac_cs_config\\"
18222
18223 Copyright (C) 2010 Free Software Foundation, Inc.
18224 This config.status script is free software; the Free Software Foundation
18225 gives unlimited permission to copy, distribute and modify it."
18226
18227 ac_pwd='$ac_pwd'
18228 srcdir='$srcdir'
18229 INSTALL='$INSTALL'
18230 MKDIR_P='$MKDIR_P'
18231 AWK='$AWK'
18232 test -n "\$AWK" || AWK=awk
18233 _ACEOF
18234
18235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18236 # The default lists apply if the user does not specify any file.
18237 ac_need_defaults=:
18238 while test $# != 0
18239 do
18240 case $1 in
18241 --*=?*)
18242 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18243 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18244 ac_shift=:
18245 ;;
18246 --*=)
18247 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18248 ac_optarg=
18249 ac_shift=:
18250 ;;
18251 *)
18252 ac_option=$1
18253 ac_optarg=$2
18254 ac_shift=shift
18255 ;;
18256 esac
18257
18258 case $ac_option in
18259 # Handling of the options.
18260 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18261 ac_cs_recheck=: ;;
18262 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18263 $as_echo "$ac_cs_version"; exit ;;
18264 --config | --confi | --conf | --con | --co | --c )
18265 $as_echo "$ac_cs_config"; exit ;;
18266 --debug | --debu | --deb | --de | --d | -d )
18267 debug=: ;;
18268 --file | --fil | --fi | --f )
18269 $ac_shift
18270 case $ac_optarg in
18271 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18272 '') as_fn_error $? "missing file argument" ;;
18273 esac
18274 as_fn_append CONFIG_FILES " '$ac_optarg'"
18275 ac_need_defaults=false;;
18276 --header | --heade | --head | --hea )
18277 $ac_shift
18278 case $ac_optarg in
18279 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18280 esac
18281 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18282 ac_need_defaults=false;;
18283 --he | --h)
18284 # Conflict between --help and --header
18285 as_fn_error $? "ambiguous option: \`$1'
18286 Try \`$0 --help' for more information.";;
18287 --help | --hel | -h )
18288 $as_echo "$ac_cs_usage"; exit ;;
18289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18290 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18291 ac_cs_silent=: ;;
18292
18293 # This is an error.
18294 -*) as_fn_error $? "unrecognized option: \`$1'
18295 Try \`$0 --help' for more information." ;;
18296
18297 *) as_fn_append ac_config_targets " $1"
18298 ac_need_defaults=false ;;
18299
18300 esac
18301 shift
18302 done
18303
18304 ac_configure_extra_args=
18305
18306 if $ac_cs_silent; then
18307 exec 6>/dev/null
18308 ac_configure_extra_args="$ac_configure_extra_args --silent"
18309 fi
18310
18311 _ACEOF
18312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18313 if \$ac_cs_recheck; then
18314 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18315 shift
18316 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18317 CONFIG_SHELL='$SHELL'
18318 export CONFIG_SHELL
18319 exec "\$@"
18320 fi
18321
18322 _ACEOF
18323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18324 exec 5>>config.log
18325 {
18326 echo
18327 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18328 ## Running $as_me. ##
18329 _ASBOX
18330 $as_echo "$ac_log"
18331 } >&5
18332
18333 _ACEOF
18334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18335 #
18336 # INIT-COMMANDS
18337 #
18338 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18339
18340
18341 # The HP-UX ksh and POSIX shell print the target directory to stdout
18342 # if CDPATH is set.
18343 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18344
18345 sed_quote_subst='$sed_quote_subst'
18346 double_quote_subst='$double_quote_subst'
18347 delay_variable_subst='$delay_variable_subst'
18348 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18349 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18350 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18351 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18352 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18353 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18354 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18355 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18356 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18357 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18358 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18359 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18360 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18361 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18362 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18363 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18364 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18365 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18366 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18367 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18368 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18369 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18370 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18371 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18372 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18373 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18374 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18375 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18376 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18377 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18378 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18379 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18380 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18381 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18382 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18383 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18384 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18385 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18386 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18387 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18388 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18389 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18390 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18391 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18392 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18393 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18394 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18395 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18396 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18397 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18398 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18399 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18400 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18401 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18402 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18403 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18404 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"`'
18405 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18406 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18407 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18408 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18409 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18410 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18411 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18412 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18413 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18414 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18415 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18416 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18417 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18418 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18419 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18420 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18421 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18422 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18423 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18424 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18425 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18426 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18427 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18428 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18429 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18430 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18431 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18432 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18433 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18434 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18435 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18436 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18437 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18438 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18439 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18440 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18441 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18442 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18443 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18444 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18445 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18446 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18447 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18448 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18449 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18450 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18451 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18452 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18453 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18454 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18455 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18456 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18457 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18458 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18459 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18460 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18461 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18462 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18463 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18464 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18465 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18466 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18467 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18468 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18469 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18470 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18471 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18472 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18473 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18474 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18475 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18476 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18477 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18478
18479 LTCC='$LTCC'
18480 LTCFLAGS='$LTCFLAGS'
18481 compiler='$compiler_DEFAULT'
18482
18483 # A function that is used when there is no print builtin or printf.
18484 func_fallback_echo ()
18485 {
18486 eval 'cat <<_LTECHO_EOF
18487 \$1
18488 _LTECHO_EOF'
18489 }
18490
18491 # Quote evaled strings.
18492 for var in SHELL \
18493 ECHO \
18494 PATH_SEPARATOR \
18495 SED \
18496 GREP \
18497 EGREP \
18498 FGREP \
18499 LD \
18500 NM \
18501 LN_S \
18502 lt_SP2NL \
18503 lt_NL2SP \
18504 reload_flag \
18505 OBJDUMP \
18506 deplibs_check_method \
18507 file_magic_cmd \
18508 file_magic_glob \
18509 want_nocaseglob \
18510 DLLTOOL \
18511 sharedlib_from_linklib_cmd \
18512 AR \
18513 AR_FLAGS \
18514 archiver_list_spec \
18515 STRIP \
18516 RANLIB \
18517 CC \
18518 CFLAGS \
18519 compiler \
18520 lt_cv_sys_global_symbol_pipe \
18521 lt_cv_sys_global_symbol_to_cdecl \
18522 lt_cv_sys_global_symbol_to_c_name_address \
18523 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18524 nm_file_list_spec \
18525 lt_prog_compiler_no_builtin_flag \
18526 lt_prog_compiler_pic \
18527 lt_prog_compiler_wl \
18528 lt_prog_compiler_static \
18529 lt_cv_prog_compiler_c_o \
18530 need_locks \
18531 MANIFEST_TOOL \
18532 DSYMUTIL \
18533 NMEDIT \
18534 LIPO \
18535 OTOOL \
18536 OTOOL64 \
18537 shrext_cmds \
18538 export_dynamic_flag_spec \
18539 whole_archive_flag_spec \
18540 compiler_needs_object \
18541 with_gnu_ld \
18542 allow_undefined_flag \
18543 no_undefined_flag \
18544 hardcode_libdir_flag_spec \
18545 hardcode_libdir_separator \
18546 exclude_expsyms \
18547 include_expsyms \
18548 file_list_spec \
18549 variables_saved_for_relink \
18550 libname_spec \
18551 library_names_spec \
18552 soname_spec \
18553 install_override_mode \
18554 finish_eval \
18555 old_striplib \
18556 striplib; do
18557 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18558 *[\\\\\\\`\\"\\\$]*)
18559 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18560 ;;
18561 *)
18562 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18563 ;;
18564 esac
18565 done
18566
18567 # Double-quote double-evaled strings.
18568 for var in reload_cmds \
18569 old_postinstall_cmds \
18570 old_postuninstall_cmds \
18571 old_archive_cmds \
18572 extract_expsyms_cmds \
18573 old_archive_from_new_cmds \
18574 old_archive_from_expsyms_cmds \
18575 archive_cmds \
18576 archive_expsym_cmds \
18577 module_cmds \
18578 module_expsym_cmds \
18579 export_symbols_cmds \
18580 prelink_cmds \
18581 postlink_cmds \
18582 postinstall_cmds \
18583 postuninstall_cmds \
18584 finish_cmds \
18585 sys_lib_search_path_spec \
18586 sys_lib_dlsearch_path_spec; do
18587 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18588 *[\\\\\\\`\\"\\\$]*)
18589 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18590 ;;
18591 *)
18592 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18593 ;;
18594 esac
18595 done
18596
18597 ac_aux_dir='$ac_aux_dir'
18598 xsi_shell='$xsi_shell'
18599 lt_shell_append='$lt_shell_append'
18600
18601 # See if we are running on zsh, and set the options which allow our
18602 # commands through without removal of \ escapes INIT.
18603 if test -n "\${ZSH_VERSION+set}" ; then
18604 setopt NO_GLOB_SUBST
18605 fi
18606
18607
18608 PACKAGE='$PACKAGE'
18609 VERSION='$VERSION'
18610 TIMESTAMP='$TIMESTAMP'
18611 RM='$RM'
18612 ofile='$ofile'
18613
18614
18615
18616
18617 _ACEOF
18618
18619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18620
18621 # Handling of arguments.
18622 for ac_config_target in $ac_config_targets
18623 do
18624 case $ac_config_target in
18625 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18626 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18627 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18628 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18629 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18630 "xdamage.pc") CONFIG_FILES="$CONFIG_FILES xdamage.pc" ;;
18631
18632 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18633 esac
18634 done
18635
18636
18637 # If the user did not use the arguments to specify the items to instantiate,
18638 # then the envvar interface is used. Set only those that are not.
18639 # We use the long form for the default assignment because of an extremely
18640 # bizarre bug on SunOS 4.1.3.
18641 if $ac_need_defaults; then
18642 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18643 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18644 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18645 fi
18646
18647 # Have a temporary directory for convenience. Make it in the build tree
18648 # simply because there is no reason against having it here, and in addition,
18649 # creating and moving files from /tmp can sometimes cause problems.
18650 # Hook for its removal unless debugging.
18651 # Note that there is a small window in which the directory will not be cleaned:
18652 # after its creation but before its name has been assigned to `$tmp'.
18653 $debug ||
18654 {
18655 tmp= ac_tmp=
18656 trap 'exit_status=$?
18657 : "${ac_tmp:=$tmp}"
18658 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18659 ' 0
18660 trap 'as_fn_exit 1' 1 2 13 15
18661 }
18662 # Create a (secure) tmp directory for tmp files.
18663
18664 {
18665 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18666 test -d "$tmp"
18667 } ||
18668 {
18669 tmp=./conf$$-$RANDOM
18670 (umask 077 && mkdir "$tmp")
18671 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18672 ac_tmp=$tmp
18673
18674 # Set up the scripts for CONFIG_FILES section.
18675 # No need to generate them if there are no CONFIG_FILES.
18676 # This happens for instance with `./config.status config.h'.
18677 if test -n "$CONFIG_FILES"; then
18678
18679
18680 ac_cr=`echo X | tr X '\015'`
18681 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18682 # But we know of no other shell where ac_cr would be empty at this
18683 # point, so we can use a bashism as a fallback.
18684 if test "x$ac_cr" = x; then
18685 eval ac_cr=\$\'\\r\'
18686 fi
18687 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18688 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18689 ac_cs_awk_cr='\\r'
18690 else
18691 ac_cs_awk_cr=$ac_cr
18692 fi
18693
18694 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18695 _ACEOF
18696
18697
18698 {
18699 echo "cat >conf$$subs.awk <<_ACEOF" &&
18700 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18701 echo "_ACEOF"
18702 } >conf$$subs.sh ||
18703 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18704 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18705 ac_delim='%!_!# '
18706 for ac_last_try in false false false false false :; do
18707 . ./conf$$subs.sh ||
18708 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18709
18710 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18711 if test $ac_delim_n = $ac_delim_num; then
18712 break
18713 elif $ac_last_try; then
18714 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18715 else
18716 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18717 fi
18718 done
18719 rm -f conf$$subs.sh
18720
18721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18722 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18723 _ACEOF
18724 sed -n '
18725 h
18726 s/^/S["/; s/!.*/"]=/
18727 p
18728 g
18729 s/^[^!]*!//
18730 :repl
18731 t repl
18732 s/'"$ac_delim"'$//
18733 t delim
18734 :nl
18735 h
18736 s/\(.\{148\}\)..*/\1/
18737 t more1
18738 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18739 p
18740 n
18741 b repl
18742 :more1
18743 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18744 p
18745 g
18746 s/.\{148\}//
18747 t nl
18748 :delim
18749 h
18750 s/\(.\{148\}\)..*/\1/
18751 t more2
18752 s/["\\]/\\&/g; s/^/"/; s/$/"/
18753 p
18754 b
18755 :more2
18756 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18757 p
18758 g
18759 s/.\{148\}//
18760 t delim
18761 ' <conf$$subs.awk | sed '
18762 /^[^""]/{
18763 N
18764 s/\n//
18765 }
18766 ' >>$CONFIG_STATUS || ac_write_fail=1
18767 rm -f conf$$subs.awk
18768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18769 _ACAWK
18770 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18771 for (key in S) S_is_set[key] = 1
18772 FS = ""
18773
18774 }
18775 {
18776 line = $ 0
18777 nfields = split(line, field, "@")
18778 substed = 0
18779 len = length(field[1])
18780 for (i = 2; i < nfields; i++) {
18781 key = field[i]
18782 keylen = length(key)
18783 if (S_is_set[key]) {
18784 value = S[key]
18785 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18786 len += length(value) + length(field[++i])
18787 substed = 1
18788 } else
18789 len += 1 + keylen
18790 }
18791
18792 print line
18793 }
18794
18795 _ACAWK
18796 _ACEOF
18797 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18798 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18799 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18800 else
18801 cat
18802 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18803 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18804 _ACEOF
18805
18806 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18807 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18808 # trailing colons and then remove the whole line if VPATH becomes empty
18809 # (actually we leave an empty line to preserve line numbers).
18810 if test "x$srcdir" = x.; then
18811 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18812 h
18813 s///
18814 s/^/:/
18815 s/[ ]*$/:/
18816 s/:\$(srcdir):/:/g
18817 s/:\${srcdir}:/:/g
18818 s/:@srcdir@:/:/g
18819 s/^:*//
18820 s/:*$//
18821 x
18822 s/\(=[ ]*\).*/\1/
18823 G
18824 s/\n//
18825 s/^[^=]*=[ ]*$//
18826 }'
18827 fi
18828
18829 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18830 fi # test -n "$CONFIG_FILES"
18831
18832 # Set up the scripts for CONFIG_HEADERS section.
18833 # No need to generate them if there are no CONFIG_HEADERS.
18834 # This happens for instance with `./config.status Makefile'.
18835 if test -n "$CONFIG_HEADERS"; then
18836 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18837 BEGIN {
18838 _ACEOF
18839
18840 # Transform confdefs.h into an awk script `defines.awk', embedded as
18841 # here-document in config.status, that substitutes the proper values into
18842 # config.h.in to produce config.h.
18843
18844 # Create a delimiter string that does not exist in confdefs.h, to ease
18845 # handling of long lines.
18846 ac_delim='%!_!# '
18847 for ac_last_try in false false :; do
18848 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18849 if test -z "$ac_tt"; then
18850 break
18851 elif $ac_last_try; then
18852 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18853 else
18854 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18855 fi
18856 done
18857
18858 # For the awk script, D is an array of macro values keyed by name,
18859 # likewise P contains macro parameters if any. Preserve backslash
18860 # newline sequences.
18861
18862 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18863 sed -n '
18864 s/.\{148\}/&'"$ac_delim"'/g
18865 t rset
18866 :rset
18867 s/^[ ]*#[ ]*define[ ][ ]*/ /
18868 t def
18869 d
18870 :def
18871 s/\\$//
18872 t bsnl
18873 s/["\\]/\\&/g
18874 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18875 D["\1"]=" \3"/p
18876 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18877 d
18878 :bsnl
18879 s/["\\]/\\&/g
18880 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18881 D["\1"]=" \3\\\\\\n"\\/p
18882 t cont
18883 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18884 t cont
18885 d
18886 :cont
18887 n
18888 s/.\{148\}/&'"$ac_delim"'/g
18889 t clear
18890 :clear
18891 s/\\$//
18892 t bsnlc
18893 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18894 d
18895 :bsnlc
18896 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18897 b cont
18898 ' <confdefs.h | sed '
18899 s/'"$ac_delim"'/"\\\
18900 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18901
18902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18903 for (key in D) D_is_set[key] = 1
18904 FS = ""
18905 }
18906 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18907 line = \$ 0
18908 split(line, arg, " ")
18909 if (arg[1] == "#") {
18910 defundef = arg[2]
18911 mac1 = arg[3]
18912 } else {
18913 defundef = substr(arg[1], 2)
18914 mac1 = arg[2]
18915 }
18916 split(mac1, mac2, "(") #)
18917 macro = mac2[1]
18918 prefix = substr(line, 1, index(line, defundef) - 1)
18919 if (D_is_set[macro]) {
18920 # Preserve the white space surrounding the "#".
18921 print prefix "define", macro P[macro] D[macro]
18922 next
18923 } else {
18924 # Replace #undef with comments. This is necessary, for example,
18925 # in the case of _POSIX_SOURCE, which is predefined and required
18926 # on some systems where configure will not decide to define it.
18927 if (defundef == "undef") {
18928 print "/*", prefix defundef, macro, "*/"
18929 next
18930 }
18931 }
18932 }
18933 { print }
18934 _ACAWK
18935 _ACEOF
18936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18937 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18938 fi # test -n "$CONFIG_HEADERS"
18939
18940
18941 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18942 shift
18943 for ac_tag
18944 do
18945 case $ac_tag in
18946 :[FHLC]) ac_mode=$ac_tag; continue;;
18947 esac
18948 case $ac_mode$ac_tag in
18949 :[FHL]*:*);;
18950 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18951 :[FH]-) ac_tag=-:-;;
18952 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18953 esac
18954 ac_save_IFS=$IFS
18955 IFS=:
18956 set x $ac_tag
18957 IFS=$ac_save_IFS
18958 shift
18959 ac_file=$1
18960 shift
18961
18962 case $ac_mode in
18963 :L) ac_source=$1;;
18964 :[FH])
18965 ac_file_inputs=
18966 for ac_f
18967 do
18968 case $ac_f in
18969 -) ac_f="$ac_tmp/stdin";;
18970 *) # Look for the file first in the build tree, then in the source tree
18971 # (if the path is not absolute). The absolute path cannot be DOS-style,
18972 # because $ac_f cannot contain `:'.
18973 test -f "$ac_f" ||
18974 case $ac_f in
18975 [\\/$]*) false;;
18976 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18977 esac ||
18978 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18979 esac
18980 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18981 as_fn_append ac_file_inputs " '$ac_f'"
18982 done
18983
18984 # Let's still pretend it is `configure' which instantiates (i.e., don't
18985 # use $as_me), people would be surprised to read:
18986 # /* config.h. Generated by config.status. */
18987 configure_input='Generated from '`
18988 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18989 `' by configure.'
18990 if test x"$ac_file" != x-; then
18991 configure_input="$ac_file. $configure_input"
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18993 $as_echo "$as_me: creating $ac_file" >&6;}
18994 fi
18995 # Neutralize special characters interpreted by sed in replacement strings.
18996 case $configure_input in #(
18997 *\&* | *\|* | *\\* )
18998 ac_sed_conf_input=`$as_echo "$configure_input" |
18999 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19000 *) ac_sed_conf_input=$configure_input;;
19001 esac
19002
19003 case $ac_tag in
19004 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19005 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19006 esac
19007 ;;
19008 esac
19009
19010 ac_dir=`$as_dirname -- "$ac_file" ||
19011 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19012 X"$ac_file" : 'X\(//\)[^/]' \| \
19013 X"$ac_file" : 'X\(//\)$' \| \
19014 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19015 $as_echo X"$ac_file" |
19016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19017 s//\1/
19018 q
19019 }
19020 /^X\(\/\/\)[^/].*/{
19021 s//\1/
19022 q
19023 }
19024 /^X\(\/\/\)$/{
19025 s//\1/
19026 q
19027 }
19028 /^X\(\/\).*/{
19029 s//\1/
19030 q
19031 }
19032 s/.*/./; q'`
19033 as_dir="$ac_dir"; as_fn_mkdir_p
19034 ac_builddir=.
19035
19036 case "$ac_dir" in
19037 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19038 *)
19039 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19040 # A ".." for each directory in $ac_dir_suffix.
19041 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19042 case $ac_top_builddir_sub in
19043 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19044 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19045 esac ;;
19046 esac
19047 ac_abs_top_builddir=$ac_pwd
19048 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19049 # for backward compatibility:
19050 ac_top_builddir=$ac_top_build_prefix
19051
19052 case $srcdir in
19053 .) # We are building in place.
19054 ac_srcdir=.
19055 ac_top_srcdir=$ac_top_builddir_sub
19056 ac_abs_top_srcdir=$ac_pwd ;;
19057 [\\/]* | ?:[\\/]* ) # Absolute name.
19058 ac_srcdir=$srcdir$ac_dir_suffix;
19059 ac_top_srcdir=$srcdir
19060 ac_abs_top_srcdir=$srcdir ;;
19061 *) # Relative name.
19062 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19063 ac_top_srcdir=$ac_top_build_prefix$srcdir
19064 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19065 esac
19066 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19067
19068
19069 case $ac_mode in
19070 :F)
19071 #
19072 # CONFIG_FILE
19073 #
19074
19075 case $INSTALL in
19076 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19077 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19078 esac
19079 ac_MKDIR_P=$MKDIR_P
19080 case $MKDIR_P in
19081 [\\/$]* | ?:[\\/]* ) ;;
19082 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19083 esac
19084 _ACEOF
19085
19086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19087 # If the template does not know about datarootdir, expand it.
19088 # FIXME: This hack should be removed a few years after 2.60.
19089 ac_datarootdir_hack=; ac_datarootdir_seen=
19090 ac_sed_dataroot='
19091 /datarootdir/ {
19092 p
19093 q
19094 }
19095 /@datadir@/p
19096 /@docdir@/p
19097 /@infodir@/p
19098 /@localedir@/p
19099 /@mandir@/p'
19100 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19101 *datarootdir*) ac_datarootdir_seen=yes;;
19102 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19104 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19105 _ACEOF
19106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19107 ac_datarootdir_hack='
19108 s&@datadir@&$datadir&g
19109 s&@docdir@&$docdir&g
19110 s&@infodir@&$infodir&g
19111 s&@localedir@&$localedir&g
19112 s&@mandir@&$mandir&g
19113 s&\\\${datarootdir}&$datarootdir&g' ;;
19114 esac
19115 _ACEOF
19116
19117 # Neutralize VPATH when `$srcdir' = `.'.
19118 # Shell code in configure.ac might set extrasub.
19119 # FIXME: do we really want to maintain this feature?
19120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19121 ac_sed_extra="$ac_vpsub
19122 $extrasub
19123 _ACEOF
19124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19125 :t
19126 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19127 s|@configure_input@|$ac_sed_conf_input|;t t
19128 s&@top_builddir@&$ac_top_builddir_sub&;t t
19129 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19130 s&@srcdir@&$ac_srcdir&;t t
19131 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19132 s&@top_srcdir@&$ac_top_srcdir&;t t
19133 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19134 s&@builddir@&$ac_builddir&;t t
19135 s&@abs_builddir@&$ac_abs_builddir&;t t
19136 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19137 s&@INSTALL@&$ac_INSTALL&;t t
19138 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19139 $ac_datarootdir_hack
19140 "
19141 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19142 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19143
19144 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19145 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19146 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19147 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19149 which seems to be undefined. Please make sure it is defined" >&5
19150 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19151 which seems to be undefined. Please make sure it is defined" >&2;}
19152
19153 rm -f "$ac_tmp/stdin"
19154 case $ac_file in
19155 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19156 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19157 esac \
19158 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19159 ;;
19160 :H)
19161 #
19162 # CONFIG_HEADER
19163 #
19164 if test x"$ac_file" != x-; then
19165 {
19166 $as_echo "/* $configure_input */" \
19167 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19168 } >"$ac_tmp/config.h" \
19169 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19170 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19171 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19172 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19173 else
19174 rm -f "$ac_file"
19175 mv "$ac_tmp/config.h" "$ac_file" \
19176 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19177 fi
19178 else
19179 $as_echo "/* $configure_input */" \
19180 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19181 || as_fn_error $? "could not create -" "$LINENO" 5
19182 fi
19183 # Compute "$ac_file"'s index in $config_headers.
19184 _am_arg="$ac_file"
19185 _am_stamp_count=1
19186 for _am_header in $config_headers :; do
19187 case $_am_header in
19188 $_am_arg | $_am_arg:* )
19189 break ;;
19190 * )
19191 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19192 esac
19193 done
19194 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19195 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19196 X"$_am_arg" : 'X\(//\)[^/]' \| \
19197 X"$_am_arg" : 'X\(//\)$' \| \
19198 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19199 $as_echo X"$_am_arg" |
19200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19201 s//\1/
19202 q
19203 }
19204 /^X\(\/\/\)[^/].*/{
19205 s//\1/
19206 q
19207 }
19208 /^X\(\/\/\)$/{
19209 s//\1/
19210 q
19211 }
19212 /^X\(\/\).*/{
19213 s//\1/
19214 q
19215 }
19216 s/.*/./; q'`/stamp-h$_am_stamp_count
19217 ;;
19218
19219 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19220 $as_echo "$as_me: executing $ac_file commands" >&6;}
19221 ;;
19222 esac
19223
19224
19225 case $ac_file$ac_mode in
19226 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19227 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19228 # are listed without --file. Let's play safe and only enable the eval
19229 # if we detect the quoting.
19230 case $CONFIG_FILES in
19231 *\'*) eval set x "$CONFIG_FILES" ;;
19232 *) set x $CONFIG_FILES ;;
19233 esac
19234 shift
19235 for mf
19236 do
19237 # Strip MF so we end up with the name of the file.
19238 mf=`echo "$mf" | sed -e 's/:.*$//'`
19239 # Check whether this is an Automake generated Makefile or not.
19240 # We used to match only the files named `Makefile.in', but
19241 # some people rename them; so instead we look at the file content.
19242 # Grep'ing the first line is not enough: some people post-process
19243 # each Makefile.in and add a new line on top of each file to say so.
19244 # Grep'ing the whole file is not good either: AIX grep has a line
19245 # limit of 2048, but all sed's we know have understand at least 4000.
19246 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19247 dirpart=`$as_dirname -- "$mf" ||
19248 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19249 X"$mf" : 'X\(//\)[^/]' \| \
19250 X"$mf" : 'X\(//\)$' \| \
19251 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19252 $as_echo X"$mf" |
19253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19254 s//\1/
19255 q
19256 }
19257 /^X\(\/\/\)[^/].*/{
19258 s//\1/
19259 q
19260 }
19261 /^X\(\/\/\)$/{
19262 s//\1/
19263 q
19264 }
19265 /^X\(\/\).*/{
19266 s//\1/
19267 q
19268 }
19269 s/.*/./; q'`
19270 else
19271 continue
19272 fi
19273 # Extract the definition of DEPDIR, am__include, and am__quote
19274 # from the Makefile without running `make'.
19275 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19276 test -z "$DEPDIR" && continue
19277 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19278 test -z "am__include" && continue
19279 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19280 # When using ansi2knr, U may be empty or an underscore; expand it
19281 U=`sed -n 's/^U = //p' < "$mf"`
19282 # Find all dependency output files, they are included files with
19283 # $(DEPDIR) in their names. We invoke sed twice because it is the
19284 # simplest approach to changing $(DEPDIR) to its actual value in the
19285 # expansion.
19286 for file in `sed -n "
19287 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19288 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19289 # Make sure the directory exists.
19290 test -f "$dirpart/$file" && continue
19291 fdir=`$as_dirname -- "$file" ||
19292 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19293 X"$file" : 'X\(//\)[^/]' \| \
19294 X"$file" : 'X\(//\)$' \| \
19295 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19296 $as_echo X"$file" |
19297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19298 s//\1/
19299 q
19300 }
19301 /^X\(\/\/\)[^/].*/{
19302 s//\1/
19303 q
19304 }
19305 /^X\(\/\/\)$/{
19306 s//\1/
19307 q
19308 }
19309 /^X\(\/\).*/{
19310 s//\1/
19311 q
19312 }
19313 s/.*/./; q'`
19314 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19315 # echo "creating $dirpart/$file"
19316 echo '# dummy' > "$dirpart/$file"
19317 done
19318 done
19319 }
19320 ;;
19321 "libtool":C)
19322
19323 # See if we are running on zsh, and set the options which allow our
19324 # commands through without removal of \ escapes.
19325 if test -n "${ZSH_VERSION+set}" ; then
19326 setopt NO_GLOB_SUBST
19327 fi
19328
19329 cfgfile="${ofile}T"
19330 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19331 $RM "$cfgfile"
19332
19333 cat <<_LT_EOF >> "$cfgfile"
19334 #! $SHELL
19335
19336 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19337 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19338 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19339 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19340 #
19341 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19342 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19343 # Foundation, Inc.
19344 # Written by Gordon Matzigkeit, 1996
19345 #
19346 # This file is part of GNU Libtool.
19347 #
19348 # GNU Libtool is free software; you can redistribute it and/or
19349 # modify it under the terms of the GNU General Public License as
19350 # published by the Free Software Foundation; either version 2 of
19351 # the License, or (at your option) any later version.
19352 #
19353 # As a special exception to the GNU General Public License,
19354 # if you distribute this file as part of a program or library that
19355 # is built using GNU Libtool, you may include this file under the
19356 # same distribution terms that you use for the rest of that program.
19357 #
19358 # GNU Libtool is distributed in the hope that it will be useful,
19359 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19360 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19361 # GNU General Public License for more details.
19362 #
19363 # You should have received a copy of the GNU General Public License
19364 # along with GNU Libtool; see the file COPYING. If not, a copy
19365 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19366 # obtained by writing to the Free Software Foundation, Inc.,
19367 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19368
19369
19370 # The names of the tagged configurations supported by this script.
19371 available_tags=""
19372
19373 # ### BEGIN LIBTOOL CONFIG
19374
19375 # Which release of libtool.m4 was used?
19376 macro_version=$macro_version
19377 macro_revision=$macro_revision
19378
19379 # Whether or not to build shared libraries.
19380 build_libtool_libs=$enable_shared
19381
19382 # Whether or not to build static libraries.
19383 build_old_libs=$enable_static
19384
19385 # What type of objects to build.
19386 pic_mode=$pic_mode
19387
19388 # Whether or not to optimize for fast installation.
19389 fast_install=$enable_fast_install
19390
19391 # Shell to use when invoking shell scripts.
19392 SHELL=$lt_SHELL
19393
19394 # An echo program that protects backslashes.
19395 ECHO=$lt_ECHO
19396
19397 # The PATH separator for the build system.
19398 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19399
19400 # The host system.
19401 host_alias=$host_alias
19402 host=$host
19403 host_os=$host_os
19404
19405 # The build system.
19406 build_alias=$build_alias
19407 build=$build
19408 build_os=$build_os
19409
19410 # A sed program that does not truncate output.
19411 SED=$lt_SED
19412
19413 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19414 Xsed="\$SED -e 1s/^X//"
19415
19416 # A grep program that handles long lines.
19417 GREP=$lt_GREP
19418
19419 # An ERE matcher.
19420 EGREP=$lt_EGREP
19421
19422 # A literal string matcher.
19423 FGREP=$lt_FGREP
19424
19425 # A BSD- or MS-compatible name lister.
19426 NM=$lt_NM
19427
19428 # Whether we need soft or hard links.
19429 LN_S=$lt_LN_S
19430
19431 # What is the maximum length of a command?
19432 max_cmd_len=$max_cmd_len
19433
19434 # Object file suffix (normally "o").
19435 objext=$ac_objext
19436
19437 # Executable file suffix (normally "").
19438 exeext=$exeext
19439
19440 # whether the shell understands "unset".
19441 lt_unset=$lt_unset
19442
19443 # turn spaces into newlines.
19444 SP2NL=$lt_lt_SP2NL
19445
19446 # turn newlines into spaces.
19447 NL2SP=$lt_lt_NL2SP
19448
19449 # convert \$build file names to \$host format.
19450 to_host_file_cmd=$lt_cv_to_host_file_cmd
19451
19452 # convert \$build files to toolchain format.
19453 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19454
19455 # An object symbol dumper.
19456 OBJDUMP=$lt_OBJDUMP
19457
19458 # Method to check whether dependent libraries are shared objects.
19459 deplibs_check_method=$lt_deplibs_check_method
19460
19461 # Command to use when deplibs_check_method = "file_magic".
19462 file_magic_cmd=$lt_file_magic_cmd
19463
19464 # How to find potential files when deplibs_check_method = "file_magic".
19465 file_magic_glob=$lt_file_magic_glob
19466
19467 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19468 want_nocaseglob=$lt_want_nocaseglob
19469
19470 # DLL creation program.
19471 DLLTOOL=$lt_DLLTOOL
19472
19473 # Command to associate shared and link libraries.
19474 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19475
19476 # The archiver.
19477 AR=$lt_AR
19478
19479 # Flags to create an archive.
19480 AR_FLAGS=$lt_AR_FLAGS
19481
19482 # How to feed a file listing to the archiver.
19483 archiver_list_spec=$lt_archiver_list_spec
19484
19485 # A symbol stripping program.
19486 STRIP=$lt_STRIP
19487
19488 # Commands used to install an old-style archive.
19489 RANLIB=$lt_RANLIB
19490 old_postinstall_cmds=$lt_old_postinstall_cmds
19491 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19492
19493 # Whether to use a lock for old archive extraction.
19494 lock_old_archive_extraction=$lock_old_archive_extraction
19495
19496 # A C compiler.
19497 LTCC=$lt_CC
19498
19499 # LTCC compiler flags.
19500 LTCFLAGS=$lt_CFLAGS
19501
19502 # Take the output of nm and produce a listing of raw symbols and C names.
19503 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19504
19505 # Transform the output of nm in a proper C declaration.
19506 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19507
19508 # Transform the output of nm in a C name address pair.
19509 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19510
19511 # Transform the output of nm in a C name address pair when lib prefix is needed.
19512 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19513
19514 # Specify filename containing input files for \$NM.
19515 nm_file_list_spec=$lt_nm_file_list_spec
19516
19517 # The root where to search for dependent libraries,and in which our libraries should be installed.
19518 lt_sysroot=$lt_sysroot
19519
19520 # The name of the directory that contains temporary libtool files.
19521 objdir=$objdir
19522
19523 # Used to examine libraries when file_magic_cmd begins with "file".
19524 MAGIC_CMD=$MAGIC_CMD
19525
19526 # Must we lock files when doing compilation?
19527 need_locks=$lt_need_locks
19528
19529 # Manifest tool.
19530 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19531
19532 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19533 DSYMUTIL=$lt_DSYMUTIL
19534
19535 # Tool to change global to local symbols on Mac OS X.
19536 NMEDIT=$lt_NMEDIT
19537
19538 # Tool to manipulate fat objects and archives on Mac OS X.
19539 LIPO=$lt_LIPO
19540
19541 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19542 OTOOL=$lt_OTOOL
19543
19544 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19545 OTOOL64=$lt_OTOOL64
19546
19547 # Old archive suffix (normally "a").
19548 libext=$libext
19549
19550 # Shared library suffix (normally ".so").
19551 shrext_cmds=$lt_shrext_cmds
19552
19553 # The commands to extract the exported symbol list from a shared archive.
19554 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19555
19556 # Variables whose values should be saved in libtool wrapper scripts and
19557 # restored at link time.
19558 variables_saved_for_relink=$lt_variables_saved_for_relink
19559
19560 # Do we need the "lib" prefix for modules?
19561 need_lib_prefix=$need_lib_prefix
19562
19563 # Do we need a version for libraries?
19564 need_version=$need_version
19565
19566 # Library versioning type.
19567 version_type=$version_type
19568
19569 # Shared library runtime path variable.
19570 runpath_var=$runpath_var
19571
19572 # Shared library path variable.
19573 shlibpath_var=$shlibpath_var
19574
19575 # Is shlibpath searched before the hard-coded library search path?
19576 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19577
19578 # Format of library name prefix.
19579 libname_spec=$lt_libname_spec
19580
19581 # List of archive names. First name is the real one, the rest are links.
19582 # The last name is the one that the linker finds with -lNAME
19583 library_names_spec=$lt_library_names_spec
19584
19585 # The coded name of the library, if different from the real name.
19586 soname_spec=$lt_soname_spec
19587
19588 # Permission mode override for installation of shared libraries.
19589 install_override_mode=$lt_install_override_mode
19590
19591 # Command to use after installation of a shared archive.
19592 postinstall_cmds=$lt_postinstall_cmds
19593
19594 # Command to use after uninstallation of a shared archive.
19595 postuninstall_cmds=$lt_postuninstall_cmds
19596
19597 # Commands used to finish a libtool library installation in a directory.
19598 finish_cmds=$lt_finish_cmds
19599
19600 # As "finish_cmds", except a single script fragment to be evaled but
19601 # not shown.
19602 finish_eval=$lt_finish_eval
19603
19604 # Whether we should hardcode library paths into libraries.
19605 hardcode_into_libs=$hardcode_into_libs
19606
19607 # Compile-time system search path for libraries.
19608 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19609
19610 # Run-time system search path for libraries.
19611 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19612
19613 # Whether dlopen is supported.
19614 dlopen_support=$enable_dlopen
19615
19616 # Whether dlopen of programs is supported.
19617 dlopen_self=$enable_dlopen_self
19618
19619 # Whether dlopen of statically linked programs is supported.
19620 dlopen_self_static=$enable_dlopen_self_static
19621
19622 # Commands to strip libraries.
19623 old_striplib=$lt_old_striplib
19624 striplib=$lt_striplib
19625
19626
19627 # The linker used to build libraries.
19628 LD=$lt_LD
19629
19630 # How to create reloadable object files.
19631 reload_flag=$lt_reload_flag
19632 reload_cmds=$lt_reload_cmds
19633
19634 # Commands used to build an old-style archive.
19635 old_archive_cmds=$lt_old_archive_cmds
19636
19637 # A language specific compiler.
19638 CC=$lt_compiler
19639
19640 # Is the compiler the GNU compiler?
19641 with_gcc=$GCC
19642
19643 # Compiler flag to turn off builtin functions.
19644 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19645
19646 # Additional compiler flags for building library objects.
19647 pic_flag=$lt_lt_prog_compiler_pic
19648
19649 # How to pass a linker flag through the compiler.
19650 wl=$lt_lt_prog_compiler_wl
19651
19652 # Compiler flag to prevent dynamic linking.
19653 link_static_flag=$lt_lt_prog_compiler_static
19654
19655 # Does compiler simultaneously support -c and -o options?
19656 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19657
19658 # Whether or not to add -lc for building shared libraries.
19659 build_libtool_need_lc=$archive_cmds_need_lc
19660
19661 # Whether or not to disallow shared libs when runtime libs are static.
19662 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19663
19664 # Compiler flag to allow reflexive dlopens.
19665 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19666
19667 # Compiler flag to generate shared objects directly from archives.
19668 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19669
19670 # Whether the compiler copes with passing no objects directly.
19671 compiler_needs_object=$lt_compiler_needs_object
19672
19673 # Create an old-style archive from a shared archive.
19674 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19675
19676 # Create a temporary old-style archive to link instead of a shared archive.
19677 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19678
19679 # Commands used to build a shared archive.
19680 archive_cmds=$lt_archive_cmds
19681 archive_expsym_cmds=$lt_archive_expsym_cmds
19682
19683 # Commands used to build a loadable module if different from building
19684 # a shared archive.
19685 module_cmds=$lt_module_cmds
19686 module_expsym_cmds=$lt_module_expsym_cmds
19687
19688 # Whether we are building with GNU ld or not.
19689 with_gnu_ld=$lt_with_gnu_ld
19690
19691 # Flag that allows shared libraries with undefined symbols to be built.
19692 allow_undefined_flag=$lt_allow_undefined_flag
19693
19694 # Flag that enforces no undefined symbols.
19695 no_undefined_flag=$lt_no_undefined_flag
19696
19697 # Flag to hardcode \$libdir into a binary during linking.
19698 # This must work even if \$libdir does not exist
19699 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19700
19701 # Whether we need a single "-rpath" flag with a separated argument.
19702 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19703
19704 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19705 # DIR into the resulting binary.
19706 hardcode_direct=$hardcode_direct
19707
19708 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19709 # DIR into the resulting binary and the resulting library dependency is
19710 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19711 # library is relocated.
19712 hardcode_direct_absolute=$hardcode_direct_absolute
19713
19714 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19715 # into the resulting binary.
19716 hardcode_minus_L=$hardcode_minus_L
19717
19718 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19719 # into the resulting binary.
19720 hardcode_shlibpath_var=$hardcode_shlibpath_var
19721
19722 # Set to "yes" if building a shared library automatically hardcodes DIR
19723 # into the library and all subsequent libraries and executables linked
19724 # against it.
19725 hardcode_automatic=$hardcode_automatic
19726
19727 # Set to yes if linker adds runtime paths of dependent libraries
19728 # to runtime path list.
19729 inherit_rpath=$inherit_rpath
19730
19731 # Whether libtool must link a program against all its dependency libraries.
19732 link_all_deplibs=$link_all_deplibs
19733
19734 # Set to "yes" if exported symbols are required.
19735 always_export_symbols=$always_export_symbols
19736
19737 # The commands to list exported symbols.
19738 export_symbols_cmds=$lt_export_symbols_cmds
19739
19740 # Symbols that should not be listed in the preloaded symbols.
19741 exclude_expsyms=$lt_exclude_expsyms
19742
19743 # Symbols that must always be exported.
19744 include_expsyms=$lt_include_expsyms
19745
19746 # Commands necessary for linking programs (against libraries) with templates.
19747 prelink_cmds=$lt_prelink_cmds
19748
19749 # Commands necessary for finishing linking programs.
19750 postlink_cmds=$lt_postlink_cmds
19751
19752 # Specify filename containing input files.
19753 file_list_spec=$lt_file_list_spec
19754
19755 # How to hardcode a shared library path into an executable.
19756 hardcode_action=$hardcode_action
19757
19758 # ### END LIBTOOL CONFIG
19759
19760 _LT_EOF
19761
19762 case $host_os in
19763 aix3*)
19764 cat <<\_LT_EOF >> "$cfgfile"
19765 # AIX sometimes has problems with the GCC collect2 program. For some
19766 # reason, if we set the COLLECT_NAMES environment variable, the problems
19767 # vanish in a puff of smoke.
19768 if test "X${COLLECT_NAMES+set}" != Xset; then
19769 COLLECT_NAMES=
19770 export COLLECT_NAMES
19771 fi
19772 _LT_EOF
19773 ;;
19774 esac
19775
19776
19777 ltmain="$ac_aux_dir/ltmain.sh"
19778
19779
19780 # We use sed instead of cat because bash on DJGPP gets confused if
19781 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19782 # text mode, it properly converts lines to CR/LF. This bash problem
19783 # is reportedly fixed, but why not run on old versions too?
19784 sed '$q' "$ltmain" >> "$cfgfile" \
19785 || (rm -f "$cfgfile"; exit 1)
19786
19787 if test x"$xsi_shell" = xyes; then
19788 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19789 func_dirname ()\
19790 {\
19791 \ case ${1} in\
19792 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19793 \ * ) func_dirname_result="${3}" ;;\
19794 \ esac\
19795 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19796 && mv -f "$cfgfile.tmp" "$cfgfile" \
19797 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19798 test 0 -eq $? || _lt_function_replace_fail=:
19799
19800
19801 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19802 func_basename ()\
19803 {\
19804 \ func_basename_result="${1##*/}"\
19805 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19806 && mv -f "$cfgfile.tmp" "$cfgfile" \
19807 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19808 test 0 -eq $? || _lt_function_replace_fail=:
19809
19810
19811 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19812 func_dirname_and_basename ()\
19813 {\
19814 \ case ${1} in\
19815 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19816 \ * ) func_dirname_result="${3}" ;;\
19817 \ esac\
19818 \ func_basename_result="${1##*/}"\
19819 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19820 && mv -f "$cfgfile.tmp" "$cfgfile" \
19821 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19822 test 0 -eq $? || _lt_function_replace_fail=:
19823
19824
19825 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19826 func_stripname ()\
19827 {\
19828 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19829 \ # positional parameters, so assign one to ordinary parameter first.\
19830 \ func_stripname_result=${3}\
19831 \ func_stripname_result=${func_stripname_result#"${1}"}\
19832 \ func_stripname_result=${func_stripname_result%"${2}"}\
19833 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19834 && mv -f "$cfgfile.tmp" "$cfgfile" \
19835 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19836 test 0 -eq $? || _lt_function_replace_fail=:
19837
19838
19839 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19840 func_split_long_opt ()\
19841 {\
19842 \ func_split_long_opt_name=${1%%=*}\
19843 \ func_split_long_opt_arg=${1#*=}\
19844 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19845 && mv -f "$cfgfile.tmp" "$cfgfile" \
19846 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19847 test 0 -eq $? || _lt_function_replace_fail=:
19848
19849
19850 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19851 func_split_short_opt ()\
19852 {\
19853 \ func_split_short_opt_arg=${1#??}\
19854 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19855 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19856 && mv -f "$cfgfile.tmp" "$cfgfile" \
19857 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19858 test 0 -eq $? || _lt_function_replace_fail=:
19859
19860
19861 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19862 func_lo2o ()\
19863 {\
19864 \ case ${1} in\
19865 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19866 \ *) func_lo2o_result=${1} ;;\
19867 \ esac\
19868 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19869 && mv -f "$cfgfile.tmp" "$cfgfile" \
19870 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19871 test 0 -eq $? || _lt_function_replace_fail=:
19872
19873
19874 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19875 func_xform ()\
19876 {\
19877 func_xform_result=${1%.*}.lo\
19878 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19879 && mv -f "$cfgfile.tmp" "$cfgfile" \
19880 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19881 test 0 -eq $? || _lt_function_replace_fail=:
19882
19883
19884 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19885 func_arith ()\
19886 {\
19887 func_arith_result=$(( $* ))\
19888 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19889 && mv -f "$cfgfile.tmp" "$cfgfile" \
19890 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19891 test 0 -eq $? || _lt_function_replace_fail=:
19892
19893
19894 sed -e '/^func_len ()$/,/^} # func_len /c\
19895 func_len ()\
19896 {\
19897 func_len_result=${#1}\
19898 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19899 && mv -f "$cfgfile.tmp" "$cfgfile" \
19900 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19901 test 0 -eq $? || _lt_function_replace_fail=:
19902
19903 fi
19904
19905 if test x"$lt_shell_append" = xyes; then
19906 sed -e '/^func_append ()$/,/^} # func_append /c\
19907 func_append ()\
19908 {\
19909 eval "${1}+=\\${2}"\
19910 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19911 && mv -f "$cfgfile.tmp" "$cfgfile" \
19912 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19913 test 0 -eq $? || _lt_function_replace_fail=:
19914
19915
19916 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19917 func_append_quoted ()\
19918 {\
19919 \ func_quote_for_eval "${2}"\
19920 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19921 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19922 && mv -f "$cfgfile.tmp" "$cfgfile" \
19923 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19924 test 0 -eq $? || _lt_function_replace_fail=:
19925
19926
19927 # Save a `func_append' function call where possible by direct use of '+='
19928 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19929 && mv -f "$cfgfile.tmp" "$cfgfile" \
19930 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19931 test 0 -eq $? || _lt_function_replace_fail=:
19932 else
19933 # Save a `func_append' function call even when '+=' is not available
19934 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19935 && mv -f "$cfgfile.tmp" "$cfgfile" \
19936 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19937 test 0 -eq $? || _lt_function_replace_fail=:
19938 fi
19939
19940 if test x"$_lt_function_replace_fail" = x":"; then
19941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19942 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19943 fi
19944
19945
19946 mv -f "$cfgfile" "$ofile" ||
19947 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19948 chmod +x "$ofile"
19949
19950 ;;
19951
19952 esac
19953 done # for ac_tag
19954
19955
19956 as_fn_exit 0
19957 _ACEOF
19958 ac_clean_files=$ac_clean_files_save
19959
19960 test $ac_write_fail = 0 ||
19961 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19962
19963
19964 # configure is writing to config.log, and then calls config.status.
19965 # config.status does its own redirection, appending to config.log.
19966 # Unfortunately, on DOS this fails, as config.log is still kept open
19967 # by configure, so config.status won't be able to write to it; its
19968 # output is simply discarded. So we exec the FD to /dev/null,
19969 # effectively closing config.log, so it can be properly (re)opened and
19970 # appended to by config.status. When coming back to configure, we
19971 # need to make the FD available again.
19972 if test "$no_create" != yes; then
19973 ac_cs_success=:
19974 ac_config_status_args=
19975 test "$silent" = yes &&
19976 ac_config_status_args="$ac_config_status_args --quiet"
19977 exec 5>/dev/null
19978 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19979 exec 5>>config.log
19980 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19981 # would make configure fail if this is the last instruction.
19982 $ac_cs_success || as_fn_exit 1
19983 fi
19984 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19986 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19987 fi
19988
19989