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 libXv 1.0.8.
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='libXv'
573 PACKAGE_TARNAME='libXv'
574 PACKAGE_VERSION='1.0.8'
575 PACKAGE_STRING='libXv 1.0.8'
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 MAKE_LINT_LIB_FALSE
621 MAKE_LINT_LIB_TRUE
622 LINTLIB
623 LINT_FALSE
624 LINT_TRUE
625 LINT_FLAGS
626 LINT
627 XV_LIBS
628 XV_CFLAGS
629 XTMALLOC_ZERO_CFLAGS
630 XMALLOC_ZERO_CFLAGS
631 MALLOC_ZERO_CFLAGS
632 MAN_SUBSTS
633 XORG_MAN_PAGE
634 ADMIN_MAN_DIR
635 DRIVER_MAN_DIR
636 MISC_MAN_DIR
637 FILE_MAN_DIR
638 LIB_MAN_DIR
639 APP_MAN_DIR
640 ADMIN_MAN_SUFFIX
641 DRIVER_MAN_SUFFIX
642 MISC_MAN_SUFFIX
643 FILE_MAN_SUFFIX
644 LIB_MAN_SUFFIX
645 APP_MAN_SUFFIX
646 INSTALL_CMD
647 PKG_CONFIG
648 CHANGELOG_CMD
649 STRICT_CFLAGS
650 CWARNFLAGS
651 BASE_CFLAGS
652 CPP
653 OTOOL64
654 OTOOL
655 LIPO
656 NMEDIT
657 DSYMUTIL
658 MANIFEST_TOOL
659 RANLIB
660 ac_ct_AR
661 AR
662 DLLTOOL
663 OBJDUMP
664 LN_S
665 NM
666 ac_ct_DUMPBIN
667 DUMPBIN
668 LD
669 FGREP
670 EGREP
671 GREP
672 SED
673 am__fastdepCC_FALSE
674 am__fastdepCC_TRUE
675 CCDEPMODE
676 am__nodep
677 AMDEPBACKSLASH
678 AMDEP_FALSE
679 AMDEP_TRUE
680 am__quote
681 am__include
682 DEPDIR
683 OBJEXT
684 EXEEXT
685 ac_ct_CC
686 CPPFLAGS
687 LDFLAGS
688 CFLAGS
689 CC
690 host_os
691 host_vendor
692 host_cpu
693 host
694 build_os
695 build_vendor
696 build_cpu
697 build
698 LIBTOOL
699 AM_BACKSLASH
700 AM_DEFAULT_VERBOSITY
701 AM_DEFAULT_V
702 AM_V
703 am__untar
704 am__tar
705 AMTAR
706 am__leading_dot
707 SET_MAKE
708 AWK
709 mkdir_p
710 MKDIR_P
711 INSTALL_STRIP_PROGRAM
712 STRIP
713 install_sh
714 MAKEINFO
715 AUTOHEADER
716 AUTOMAKE
717 AUTOCONF
718 ACLOCAL
719 VERSION
720 PACKAGE
721 CYGPATH_W
722 am__isrc
723 INSTALL_DATA
724 INSTALL_SCRIPT
725 INSTALL_PROGRAM
726 target_alias
727 host_alias
728 build_alias
729 LIBS
730 ECHO_T
731 ECHO_N
732 ECHO_C
733 DEFS
734 mandir
735 localedir
736 libdir
737 psdir
738 pdfdir
739 dvidir
740 htmldir
741 infodir
742 docdir
743 oldincludedir
744 includedir
745 localstatedir
746 sharedstatedir
747 sysconfdir
748 datadir
749 datarootdir
750 libexecdir
751 sbindir
752 bindir
753 program_transform_name
754 prefix
755 exec_prefix
756 PACKAGE_URL
757 PACKAGE_BUGREPORT
758 PACKAGE_STRING
759 PACKAGE_VERSION
760 PACKAGE_TARNAME
761 PACKAGE_NAME
762 PATH_SEPARATOR
763 SHELL'
764 ac_subst_files=''
765 ac_user_opts='
766 enable_option_checking
767 enable_silent_rules
768 enable_shared
769 enable_static
770 with_pic
771 enable_fast_install
772 enable_dependency_tracking
773 with_gnu_ld
774 with_sysroot
775 enable_libtool_lock
776 enable_selective_werror
777 enable_strict_compilation
778 enable_malloc0returnsnull
779 with_lint
780 enable_lint_library
781 '
782 ac_precious_vars='build_alias
783 host_alias
784 target_alias
785 CC
786 CFLAGS
787 LDFLAGS
788 LIBS
789 CPPFLAGS
790 CPP
791 PKG_CONFIG
792 XV_CFLAGS
793 XV_LIBS
794 LINT
795 LINT_FLAGS'
796
797
798 # Initialize some variables set by options.
799 ac_init_help=
800 ac_init_version=false
801 ac_unrecognized_opts=
802 ac_unrecognized_sep=
803 # The variables have the same names as the options, with
804 # dashes changed to underlines.
805 cache_file=/dev/null
806 exec_prefix=NONE
807 no_create=
808 no_recursion=
809 prefix=NONE
810 program_prefix=NONE
811 program_suffix=NONE
812 program_transform_name=s,x,x,
813 silent=
814 site=
815 srcdir=
816 verbose=
817 x_includes=NONE
818 x_libraries=NONE
819
820 # Installation directory options.
821 # These are left unexpanded so users can "make install exec_prefix=/foo"
822 # and all the variables that are supposed to be based on exec_prefix
823 # by default will actually change.
824 # Use braces instead of parens because sh, perl, etc. also accept them.
825 # (The list follows the same order as the GNU Coding Standards.)
826 bindir='${exec_prefix}/bin'
827 sbindir='${exec_prefix}/sbin'
828 libexecdir='${exec_prefix}/libexec'
829 datarootdir='${prefix}/share'
830 datadir='${datarootdir}'
831 sysconfdir='${prefix}/etc'
832 sharedstatedir='${prefix}/com'
833 localstatedir='${prefix}/var'
834 includedir='${prefix}/include'
835 oldincludedir='/usr/include'
836 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
837 infodir='${datarootdir}/info'
838 htmldir='${docdir}'
839 dvidir='${docdir}'
840 pdfdir='${docdir}'
841 psdir='${docdir}'
842 libdir='${exec_prefix}/lib'
843 localedir='${datarootdir}/locale'
844 mandir='${datarootdir}/man'
845
846 ac_prev=
847 ac_dashdash=
848 for ac_option
849 do
850 # If the previous option needs an argument, assign it.
851 if test -n "$ac_prev"; then
852 eval $ac_prev=\$ac_option
853 ac_prev=
854 continue
855 fi
856
857 case $ac_option in
858 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
859 *=) ac_optarg= ;;
860 *) ac_optarg=yes ;;
861 esac
862
863 # Accept the important Cygnus configure options, so we can diagnose typos.
864
865 case $ac_dashdash$ac_option in
866 --)
867 ac_dashdash=yes ;;
868
869 -bindir | --bindir | --bindi | --bind | --bin | --bi)
870 ac_prev=bindir ;;
871 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
872 bindir=$ac_optarg ;;
873
874 -build | --build | --buil | --bui | --bu)
875 ac_prev=build_alias ;;
876 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
877 build_alias=$ac_optarg ;;
878
879 -cache-file | --cache-file | --cache-fil | --cache-fi \
880 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
881 ac_prev=cache_file ;;
882 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
883 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
884 cache_file=$ac_optarg ;;
885
886 --config-cache | -C)
887 cache_file=config.cache ;;
888
889 -datadir | --datadir | --datadi | --datad)
890 ac_prev=datadir ;;
891 -datadir=* | --datadir=* | --datadi=* | --datad=*)
892 datadir=$ac_optarg ;;
893
894 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
895 | --dataroo | --dataro | --datar)
896 ac_prev=datarootdir ;;
897 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
898 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
899 datarootdir=$ac_optarg ;;
900
901 -disable-* | --disable-*)
902 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
903 # Reject names that are not valid shell variable names.
904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905 as_fn_error $? "invalid feature name: $ac_useropt"
906 ac_useropt_orig=$ac_useropt
907 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908 case $ac_user_opts in
909 *"
910 "enable_$ac_useropt"
911 "*) ;;
912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
913 ac_unrecognized_sep=', ';;
914 esac
915 eval enable_$ac_useropt=no ;;
916
917 -docdir | --docdir | --docdi | --doc | --do)
918 ac_prev=docdir ;;
919 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
920 docdir=$ac_optarg ;;
921
922 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
923 ac_prev=dvidir ;;
924 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
925 dvidir=$ac_optarg ;;
926
927 -enable-* | --enable-*)
928 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
929 # Reject names that are not valid shell variable names.
930 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931 as_fn_error $? "invalid feature name: $ac_useropt"
932 ac_useropt_orig=$ac_useropt
933 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
934 case $ac_user_opts in
935 *"
936 "enable_$ac_useropt"
937 "*) ;;
938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
939 ac_unrecognized_sep=', ';;
940 esac
941 eval enable_$ac_useropt=\$ac_optarg ;;
942
943 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
944 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
945 | --exec | --exe | --ex)
946 ac_prev=exec_prefix ;;
947 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
948 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
949 | --exec=* | --exe=* | --ex=*)
950 exec_prefix=$ac_optarg ;;
951
952 -gas | --gas | --ga | --g)
953 # Obsolete; use --with-gas.
954 with_gas=yes ;;
955
956 -help | --help | --hel | --he | -h)
957 ac_init_help=long ;;
958 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
959 ac_init_help=recursive ;;
960 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
961 ac_init_help=short ;;
962
963 -host | --host | --hos | --ho)
964 ac_prev=host_alias ;;
965 -host=* | --host=* | --hos=* | --ho=*)
966 host_alias=$ac_optarg ;;
967
968 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
969 ac_prev=htmldir ;;
970 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
971 | --ht=*)
972 htmldir=$ac_optarg ;;
973
974 -includedir | --includedir | --includedi | --included | --include \
975 | --includ | --inclu | --incl | --inc)
976 ac_prev=includedir ;;
977 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
978 | --includ=* | --inclu=* | --incl=* | --inc=*)
979 includedir=$ac_optarg ;;
980
981 -infodir | --infodir | --infodi | --infod | --info | --inf)
982 ac_prev=infodir ;;
983 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
984 infodir=$ac_optarg ;;
985
986 -libdir | --libdir | --libdi | --libd)
987 ac_prev=libdir ;;
988 -libdir=* | --libdir=* | --libdi=* | --libd=*)
989 libdir=$ac_optarg ;;
990
991 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
992 | --libexe | --libex | --libe)
993 ac_prev=libexecdir ;;
994 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
995 | --libexe=* | --libex=* | --libe=*)
996 libexecdir=$ac_optarg ;;
997
998 -localedir | --localedir | --localedi | --localed | --locale)
999 ac_prev=localedir ;;
1000 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1001 localedir=$ac_optarg ;;
1002
1003 -localstatedir | --localstatedir | --localstatedi | --localstated \
1004 | --localstate | --localstat | --localsta | --localst | --locals)
1005 ac_prev=localstatedir ;;
1006 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1007 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1008 localstatedir=$ac_optarg ;;
1009
1010 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1011 ac_prev=mandir ;;
1012 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1013 mandir=$ac_optarg ;;
1014
1015 -nfp | --nfp | --nf)
1016 # Obsolete; use --without-fp.
1017 with_fp=no ;;
1018
1019 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1020 | --no-cr | --no-c | -n)
1021 no_create=yes ;;
1022
1023 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1024 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1025 no_recursion=yes ;;
1026
1027 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1028 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1029 | --oldin | --oldi | --old | --ol | --o)
1030 ac_prev=oldincludedir ;;
1031 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1032 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1033 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1034 oldincludedir=$ac_optarg ;;
1035
1036 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1037 ac_prev=prefix ;;
1038 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1039 prefix=$ac_optarg ;;
1040
1041 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1042 | --program-pre | --program-pr | --program-p)
1043 ac_prev=program_prefix ;;
1044 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1045 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1046 program_prefix=$ac_optarg ;;
1047
1048 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1049 | --program-suf | --program-su | --program-s)
1050 ac_prev=program_suffix ;;
1051 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1052 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1053 program_suffix=$ac_optarg ;;
1054
1055 -program-transform-name | --program-transform-name \
1056 | --program-transform-nam | --program-transform-na \
1057 | --program-transform-n | --program-transform- \
1058 | --program-transform | --program-transfor \
1059 | --program-transfo | --program-transf \
1060 | --program-trans | --program-tran \
1061 | --progr-tra | --program-tr | --program-t)
1062 ac_prev=program_transform_name ;;
1063 -program-transform-name=* | --program-transform-name=* \
1064 | --program-transform-nam=* | --program-transform-na=* \
1065 | --program-transform-n=* | --program-transform-=* \
1066 | --program-transform=* | --program-transfor=* \
1067 | --program-transfo=* | --program-transf=* \
1068 | --program-trans=* | --program-tran=* \
1069 | --progr-tra=* | --program-tr=* | --program-t=*)
1070 program_transform_name=$ac_optarg ;;
1071
1072 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1073 ac_prev=pdfdir ;;
1074 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1075 pdfdir=$ac_optarg ;;
1076
1077 -psdir | --psdir | --psdi | --psd | --ps)
1078 ac_prev=psdir ;;
1079 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1080 psdir=$ac_optarg ;;
1081
1082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083 | -silent | --silent | --silen | --sile | --sil)
1084 silent=yes ;;
1085
1086 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1087 ac_prev=sbindir ;;
1088 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1089 | --sbi=* | --sb=*)
1090 sbindir=$ac_optarg ;;
1091
1092 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1093 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1094 | --sharedst | --shareds | --shared | --share | --shar \
1095 | --sha | --sh)
1096 ac_prev=sharedstatedir ;;
1097 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1098 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1099 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1100 | --sha=* | --sh=*)
1101 sharedstatedir=$ac_optarg ;;
1102
1103 -site | --site | --sit)
1104 ac_prev=site ;;
1105 -site=* | --site=* | --sit=*)
1106 site=$ac_optarg ;;
1107
1108 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1109 ac_prev=srcdir ;;
1110 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1111 srcdir=$ac_optarg ;;
1112
1113 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1114 | --syscon | --sysco | --sysc | --sys | --sy)
1115 ac_prev=sysconfdir ;;
1116 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1117 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1118 sysconfdir=$ac_optarg ;;
1119
1120 -target | --target | --targe | --targ | --tar | --ta | --t)
1121 ac_prev=target_alias ;;
1122 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1123 target_alias=$ac_optarg ;;
1124
1125 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1126 verbose=yes ;;
1127
1128 -version | --version | --versio | --versi | --vers | -V)
1129 ac_init_version=: ;;
1130
1131 -with-* | --with-*)
1132 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135 as_fn_error $? "invalid package name: $ac_useropt"
1136 ac_useropt_orig=$ac_useropt
1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1139 *"
1140 "with_$ac_useropt"
1141 "*) ;;
1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1143 ac_unrecognized_sep=', ';;
1144 esac
1145 eval with_$ac_useropt=\$ac_optarg ;;
1146
1147 -without-* | --without-*)
1148 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151 as_fn_error $? "invalid package name: $ac_useropt"
1152 ac_useropt_orig=$ac_useropt
1153 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154 case $ac_user_opts in
1155 *"
1156 "with_$ac_useropt"
1157 "*) ;;
1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1159 ac_unrecognized_sep=', ';;
1160 esac
1161 eval with_$ac_useropt=no ;;
1162
1163 --x)
1164 # Obsolete; use --with-x.
1165 with_x=yes ;;
1166
1167 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1168 | --x-incl | --x-inc | --x-in | --x-i)
1169 ac_prev=x_includes ;;
1170 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1171 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1172 x_includes=$ac_optarg ;;
1173
1174 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1175 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1176 ac_prev=x_libraries ;;
1177 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1178 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1179 x_libraries=$ac_optarg ;;
1180
1181 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1182 Try \`$0 --help' for more information"
1183 ;;
1184
1185 *=*)
1186 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1187 # Reject names that are not valid shell variable names.
1188 case $ac_envvar in #(
1189 '' | [0-9]* | *[!_$as_cr_alnum]* )
1190 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1191 esac
1192 eval $ac_envvar=\$ac_optarg
1193 export $ac_envvar ;;
1194
1195 *)
1196 # FIXME: should be removed in autoconf 3.0.
1197 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1198 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1199 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1200 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1201 ;;
1202
1203 esac
1204 done
1205
1206 if test -n "$ac_prev"; then
1207 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1208 as_fn_error $? "missing argument to $ac_option"
1209 fi
1210
1211 if test -n "$ac_unrecognized_opts"; then
1212 case $enable_option_checking in
1213 no) ;;
1214 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1215 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1216 esac
1217 fi
1218
1219 # Check all directory arguments for consistency.
1220 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1221 datadir sysconfdir sharedstatedir localstatedir includedir \
1222 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1223 libdir localedir mandir
1224 do
1225 eval ac_val=\$$ac_var
1226 # Remove trailing slashes.
1227 case $ac_val in
1228 */ )
1229 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1230 eval $ac_var=\$ac_val;;
1231 esac
1232 # Be sure to have absolute directory names.
1233 case $ac_val in
1234 [\\/$]* | ?:[\\/]* ) continue;;
1235 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1236 esac
1237 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1238 done
1239
1240 # There might be people who depend on the old broken behavior: `$host'
1241 # used to hold the argument of --host etc.
1242 # FIXME: To remove some day.
1243 build=$build_alias
1244 host=$host_alias
1245 target=$target_alias
1246
1247 # FIXME: To remove some day.
1248 if test "x$host_alias" != x; then
1249 if test "x$build_alias" = x; then
1250 cross_compiling=maybe
1251 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1252 If a cross compiler is detected then cross compile mode will be used" >&2
1253 elif test "x$build_alias" != "x$host_alias"; then
1254 cross_compiling=yes
1255 fi
1256 fi
1257
1258 ac_tool_prefix=
1259 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1260
1261 test "$silent" = yes && exec 6>/dev/null
1262
1263
1264 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1265 ac_ls_di=`ls -di .` &&
1266 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1267 as_fn_error $? "working directory cannot be determined"
1268 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1269 as_fn_error $? "pwd does not report name of working directory"
1270
1271
1272 # Find the source files, if location was not specified.
1273 if test -z "$srcdir"; then
1274 ac_srcdir_defaulted=yes
1275 # Try the directory containing this script, then the parent directory.
1276 ac_confdir=`$as_dirname -- "$as_myself" ||
1277 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1278 X"$as_myself" : 'X\(//\)[^/]' \| \
1279 X"$as_myself" : 'X\(//\)$' \| \
1280 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1281 $as_echo X"$as_myself" |
1282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\/\)[^/].*/{
1287 s//\1/
1288 q
1289 }
1290 /^X\(\/\/\)$/{
1291 s//\1/
1292 q
1293 }
1294 /^X\(\/\).*/{
1295 s//\1/
1296 q
1297 }
1298 s/.*/./; q'`
1299 srcdir=$ac_confdir
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301 srcdir=..
1302 fi
1303 else
1304 ac_srcdir_defaulted=no
1305 fi
1306 if test ! -r "$srcdir/$ac_unique_file"; then
1307 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1308 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1309 fi
1310 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1311 ac_abs_confdir=`(
1312 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1313 pwd)`
1314 # When building in place, set srcdir=.
1315 if test "$ac_abs_confdir" = "$ac_pwd"; then
1316 srcdir=.
1317 fi
1318 # Remove unnecessary trailing slashes from srcdir.
1319 # Double slashes in file names in object file debugging info
1320 # mess up M-x gdb in Emacs.
1321 case $srcdir in
1322 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1323 esac
1324 for ac_var in $ac_precious_vars; do
1325 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_env_${ac_var}_value=\$${ac_var}
1327 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1329 done
1330
1331 #
1332 # Report the --help message.
1333 #
1334 if test "$ac_init_help" = "long"; then
1335 # Omit some internal or obsolete options to make the list less imposing.
1336 # This message is too long to be a string in the A/UX 3.1 sh.
1337 cat <<_ACEOF
1338 \`configure' configures libXv 1.0.8 to adapt to many kinds of systems.
1339
1340 Usage: $0 [OPTION]... [VAR=VALUE]...
1341
1342 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1343 VAR=VALUE. See below for descriptions of some of the useful variables.
1344
1345 Defaults for the options are specified in brackets.
1346
1347 Configuration:
1348 -h, --help display this help and exit
1349 --help=short display options specific to this package
1350 --help=recursive display the short help of all the included packages
1351 -V, --version display version information and exit
1352 -q, --quiet, --silent do not print \`checking ...' messages
1353 --cache-file=FILE cache test results in FILE [disabled]
1354 -C, --config-cache alias for \`--cache-file=config.cache'
1355 -n, --no-create do not create output files
1356 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1357
1358 Installation directories:
1359 --prefix=PREFIX install architecture-independent files in PREFIX
1360 [$ac_default_prefix]
1361 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1362 [PREFIX]
1363
1364 By default, \`make install' will install all the files in
1365 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1366 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1367 for instance \`--prefix=\$HOME'.
1368
1369 For better control, use the options below.
1370
1371 Fine tuning of the installation directories:
1372 --bindir=DIR user executables [EPREFIX/bin]
1373 --sbindir=DIR system admin executables [EPREFIX/sbin]
1374 --libexecdir=DIR program executables [EPREFIX/libexec]
1375 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1376 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1377 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1378 --libdir=DIR object code libraries [EPREFIX/lib]
1379 --includedir=DIR C header files [PREFIX/include]
1380 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1381 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1382 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1383 --infodir=DIR info documentation [DATAROOTDIR/info]
1384 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1385 --mandir=DIR man documentation [DATAROOTDIR/man]
1386 --docdir=DIR documentation root [DATAROOTDIR/doc/libXv]
1387 --htmldir=DIR html documentation [DOCDIR]
1388 --dvidir=DIR dvi documentation [DOCDIR]
1389 --pdfdir=DIR pdf documentation [DOCDIR]
1390 --psdir=DIR ps documentation [DOCDIR]
1391 _ACEOF
1392
1393 cat <<\_ACEOF
1394
1395 Program names:
1396 --program-prefix=PREFIX prepend PREFIX to installed program names
1397 --program-suffix=SUFFIX append SUFFIX to installed program names
1398 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1399
1400 System types:
1401 --build=BUILD configure for building on BUILD [guessed]
1402 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1403 _ACEOF
1404 fi
1405
1406 if test -n "$ac_init_help"; then
1407 case $ac_init_help in
1408 short | recursive ) echo "Configuration of libXv 1.0.8:";;
1409 esac
1410 cat <<\_ACEOF
1411
1412 Optional Features:
1413 --disable-option-checking ignore unrecognized --enable/--with options
1414 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1415 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1416 --enable-silent-rules less verbose build output (undo: "make V=1")
1417 --disable-silent-rules verbose build output (undo: "make V=0")
1418 --enable-shared[=PKGS] build shared libraries [default=yes]
1419 --enable-static[=PKGS] build static libraries [default=yes]
1420 --enable-fast-install[=PKGS]
1421 optimize for fast installation [default=yes]
1422 --enable-dependency-tracking
1423 do not reject slow dependency extractors
1424 --disable-dependency-tracking
1425 speeds up one-time build
1426 --disable-libtool-lock avoid locking (might break parallel builds)
1427 --disable-selective-werror
1428 Turn off selective compiler errors. (default:
1429 enabled)
1430 --enable-strict-compilation
1431 Enable all warnings from compiler and make them
1432 errors (default: disabled)
1433 --enable-malloc0returnsnull
1434 malloc(0) returns NULL (default: auto)
1435 --enable-lint-library Create lint library (default: disabled)
1436
1437 Optional Packages:
1438 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1439 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1440 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1441 both]
1442 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1443 --with-sysroot=DIR Search for dependent libraries within DIR
1444 (or the compiler's sysroot if not specified).
1445 --with-lint Use a lint-style source code checker (default:
1446 disabled)
1447
1448 Some influential environment variables:
1449 CC C compiler command
1450 CFLAGS C compiler flags
1451 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1452 nonstandard directory <lib dir>
1453 LIBS libraries to pass to the linker, e.g. -l<library>
1454 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1455 you have headers in a nonstandard directory <include dir>
1456 CPP C preprocessor
1457 PKG_CONFIG path to pkg-config utility
1458 XV_CFLAGS C compiler flags for XV, overriding pkg-config
1459 XV_LIBS linker flags for XV, overriding pkg-config
1460 LINT Path to a lint-style command
1461 LINT_FLAGS Flags for the lint-style command
1462
1463 Use these variables to override the choices made by `configure' or to help
1464 it to find libraries and programs with nonstandard names/locations.
1465
1466 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1467 _ACEOF
1468 ac_status=$?
1469 fi
1470
1471 if test "$ac_init_help" = "recursive"; then
1472 # If there are subdirs, report their specific --help.
1473 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1474 test -d "$ac_dir" ||
1475 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1476 continue
1477 ac_builddir=.
1478
1479 case "$ac_dir" in
1480 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481 *)
1482 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1483 # A ".." for each directory in $ac_dir_suffix.
1484 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1485 case $ac_top_builddir_sub in
1486 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1488 esac ;;
1489 esac
1490 ac_abs_top_builddir=$ac_pwd
1491 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1492 # for backward compatibility:
1493 ac_top_builddir=$ac_top_build_prefix
1494
1495 case $srcdir in
1496 .) # We are building in place.
1497 ac_srcdir=.
1498 ac_top_srcdir=$ac_top_builddir_sub
1499 ac_abs_top_srcdir=$ac_pwd ;;
1500 [\\/]* | ?:[\\/]* ) # Absolute name.
1501 ac_srcdir=$srcdir$ac_dir_suffix;
1502 ac_top_srcdir=$srcdir
1503 ac_abs_top_srcdir=$srcdir ;;
1504 *) # Relative name.
1505 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1506 ac_top_srcdir=$ac_top_build_prefix$srcdir
1507 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1508 esac
1509 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1510
1511 cd "$ac_dir" || { ac_status=$?; continue; }
1512 # Check for guested configure.
1513 if test -f "$ac_srcdir/configure.gnu"; then
1514 echo &&
1515 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1516 elif test -f "$ac_srcdir/configure"; then
1517 echo &&
1518 $SHELL "$ac_srcdir/configure" --help=recursive
1519 else
1520 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1521 fi || ac_status=$?
1522 cd "$ac_pwd" || { ac_status=$?; break; }
1523 done
1524 fi
1525
1526 test -n "$ac_init_help" && exit $ac_status
1527 if $ac_init_version; then
1528 cat <<\_ACEOF
1529 libXv configure 1.0.8
1530 generated by GNU Autoconf 2.68
1531
1532 Copyright (C) 2010 Free Software Foundation, Inc.
1533 This configure script is free software; the Free Software Foundation
1534 gives unlimited permission to copy, distribute and modify it.
1535 _ACEOF
1536 exit
1537 fi
1538
1539 ## ------------------------ ##
1540 ## Autoconf initialization. ##
1541 ## ------------------------ ##
1542
1543 # ac_fn_c_try_compile LINENO
1544 # --------------------------
1545 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1546 ac_fn_c_try_compile ()
1547 {
1548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1549 rm -f conftest.$ac_objext
1550 if { { ac_try="$ac_compile"
1551 case "(($ac_try" in
1552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1553 *) ac_try_echo=$ac_try;;
1554 esac
1555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1556 $as_echo "$ac_try_echo"; } >&5
1557 (eval "$ac_compile") 2>conftest.err
1558 ac_status=$?
1559 if test -s conftest.err; then
1560 grep -v '^ *+' conftest.err >conftest.er1
1561 cat conftest.er1 >&5
1562 mv -f conftest.er1 conftest.err
1563 fi
1564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565 test $ac_status = 0; } && {
1566 test -z "$ac_c_werror_flag" ||
1567 test ! -s conftest.err
1568 } && test -s conftest.$ac_objext; then :
1569 ac_retval=0
1570 else
1571 $as_echo "$as_me: failed program was:" >&5
1572 sed 's/^/| /' conftest.$ac_ext >&5
1573
1574 ac_retval=1
1575 fi
1576 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1577 as_fn_set_status $ac_retval
1578
1579 } # ac_fn_c_try_compile
1580
1581 # ac_fn_c_try_link LINENO
1582 # -----------------------
1583 # Try to link conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_link ()
1585 {
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 rm -f conftest.$ac_objext conftest$ac_exeext
1588 if { { ac_try="$ac_link"
1589 case "(($ac_try" in
1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591 *) ac_try_echo=$ac_try;;
1592 esac
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 $as_echo "$ac_try_echo"; } >&5
1595 (eval "$ac_link") 2>conftest.err
1596 ac_status=$?
1597 if test -s conftest.err; then
1598 grep -v '^ *+' conftest.err >conftest.er1
1599 cat conftest.er1 >&5
1600 mv -f conftest.er1 conftest.err
1601 fi
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; } && {
1604 test -z "$ac_c_werror_flag" ||
1605 test ! -s conftest.err
1606 } && test -s conftest$ac_exeext && {
1607 test "$cross_compiling" = yes ||
1608 $as_test_x conftest$ac_exeext
1609 }; then :
1610 ac_retval=0
1611 else
1612 $as_echo "$as_me: failed program was:" >&5
1613 sed 's/^/| /' conftest.$ac_ext >&5
1614
1615 ac_retval=1
1616 fi
1617 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1618 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1619 # interfere with the next link command; also delete a directory that is
1620 # left behind by Apple's compiler. We do this before executing the actions.
1621 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1622 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1623 as_fn_set_status $ac_retval
1624
1625 } # ac_fn_c_try_link
1626
1627 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1628 # -------------------------------------------------------
1629 # Tests whether HEADER exists and can be compiled using the include files in
1630 # INCLUDES, setting the cache variable VAR accordingly.
1631 ac_fn_c_check_header_compile ()
1632 {
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1635 $as_echo_n "checking for $2... " >&6; }
1636 if eval \${$3+:} false; then :
1637 $as_echo_n "(cached) " >&6
1638 else
1639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1640 /* end confdefs.h. */
1641 $4
1642 #include <$2>
1643 _ACEOF
1644 if ac_fn_c_try_compile "$LINENO"; then :
1645 eval "$3=yes"
1646 else
1647 eval "$3=no"
1648 fi
1649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1650 fi
1651 eval ac_res=\$$3
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1653 $as_echo "$ac_res" >&6; }
1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655
1656 } # ac_fn_c_check_header_compile
1657
1658 # ac_fn_c_try_cpp LINENO
1659 # ----------------------
1660 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1661 ac_fn_c_try_cpp ()
1662 {
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 if { { ac_try="$ac_cpp conftest.$ac_ext"
1665 case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1668 esac
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1672 ac_status=$?
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1677 fi
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } > conftest.i && {
1680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1681 test ! -s conftest.err
1682 }; then :
1683 ac_retval=0
1684 else
1685 $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1687
1688 ac_retval=1
1689 fi
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691 as_fn_set_status $ac_retval
1692
1693 } # ac_fn_c_try_cpp
1694
1695 # ac_fn_c_try_run LINENO
1696 # ----------------------
1697 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1698 # that executables *can* be run.
1699 ac_fn_c_try_run ()
1700 {
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 if { { ac_try="$ac_link"
1703 case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_link") 2>&5
1710 ac_status=$?
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1713 { { case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_try") 2>&5
1720 ac_status=$?
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; }; }; then :
1723 ac_retval=0
1724 else
1725 $as_echo "$as_me: program exited with status $ac_status" >&5
1726 $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1728
1729 ac_retval=$ac_status
1730 fi
1731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 as_fn_set_status $ac_retval
1734
1735 } # ac_fn_c_try_run
1736
1737 # ac_fn_c_check_func LINENO FUNC VAR
1738 # ----------------------------------
1739 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1740 ac_fn_c_check_func ()
1741 {
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744 $as_echo_n "checking for $2... " >&6; }
1745 if eval \${$3+:} false; then :
1746 $as_echo_n "(cached) " >&6
1747 else
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1750 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1752 #define $2 innocuous_$2
1753
1754 /* System header to define __stub macros and hopefully few prototypes,
1755 which can conflict with char $2 (); below.
1756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1757 <limits.h> exists even on freestanding compilers. */
1758
1759 #ifdef __STDC__
1760 # include <limits.h>
1761 #else
1762 # include <assert.h>
1763 #endif
1764
1765 #undef $2
1766
1767 /* Override any GCC internal prototype to avoid an error.
1768 Use char because int might match the return type of a GCC
1769 builtin and then its argument prototype would still apply. */
1770 #ifdef __cplusplus
1771 extern "C"
1772 #endif
1773 char $2 ();
1774 /* The GNU C library defines this for functions which it implements
1775 to always fail with ENOSYS. Some functions are actually named
1776 something starting with __ and the normal name is an alias. */
1777 #if defined __stub_$2 || defined __stub___$2
1778 choke me
1779 #endif
1780
1781 int
1782 main ()
1783 {
1784 return $2 ();
1785 ;
1786 return 0;
1787 }
1788 _ACEOF
1789 if ac_fn_c_try_link "$LINENO"; then :
1790 eval "$3=yes"
1791 else
1792 eval "$3=no"
1793 fi
1794 rm -f core conftest.err conftest.$ac_objext \
1795 conftest$ac_exeext conftest.$ac_ext
1796 fi
1797 eval ac_res=\$$3
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799 $as_echo "$ac_res" >&6; }
1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801
1802 } # ac_fn_c_check_func
1803
1804 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1805 # ---------------------------------------------
1806 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1807 # accordingly.
1808 ac_fn_c_check_decl ()
1809 {
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 as_decl_name=`echo $2|sed 's/ *(.*//'`
1812 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1814 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1815 if eval \${$3+:} false; then :
1816 $as_echo_n "(cached) " >&6
1817 else
1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819 /* end confdefs.h. */
1820 $4
1821 int
1822 main ()
1823 {
1824 #ifndef $as_decl_name
1825 #ifdef __cplusplus
1826 (void) $as_decl_use;
1827 #else
1828 (void) $as_decl_name;
1829 #endif
1830 #endif
1831
1832 ;
1833 return 0;
1834 }
1835 _ACEOF
1836 if ac_fn_c_try_compile "$LINENO"; then :
1837 eval "$3=yes"
1838 else
1839 eval "$3=no"
1840 fi
1841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1842 fi
1843 eval ac_res=\$$3
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1845 $as_echo "$ac_res" >&6; }
1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847
1848 } # ac_fn_c_check_decl
1849 cat >config.log <<_ACEOF
1850 This file contains any messages produced by compilers while
1851 running configure, to aid debugging if configure makes a mistake.
1852
1853 It was created by libXv $as_me 1.0.8, which was
1854 generated by GNU Autoconf 2.68. Invocation command line was
1855
1856 $ $0 $@
1857
1858 _ACEOF
1859 exec 5>>config.log
1860 {
1861 cat <<_ASUNAME
1862 ## --------- ##
1863 ## Platform. ##
1864 ## --------- ##
1865
1866 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1867 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1868 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1869 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1870 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1871
1872 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1873 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1874
1875 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1876 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1877 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1878 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1879 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1880 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1881 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1882
1883 _ASUNAME
1884
1885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1886 for as_dir in $PATH
1887 do
1888 IFS=$as_save_IFS
1889 test -z "$as_dir" && as_dir=.
1890 $as_echo "PATH: $as_dir"
1891 done
1892 IFS=$as_save_IFS
1893
1894 } >&5
1895
1896 cat >&5 <<_ACEOF
1897
1898
1899 ## ----------- ##
1900 ## Core tests. ##
1901 ## ----------- ##
1902
1903 _ACEOF
1904
1905
1906 # Keep a trace of the command line.
1907 # Strip out --no-create and --no-recursion so they do not pile up.
1908 # Strip out --silent because we don't want to record it for future runs.
1909 # Also quote any args containing shell meta-characters.
1910 # Make two passes to allow for proper duplicate-argument suppression.
1911 ac_configure_args=
1912 ac_configure_args0=
1913 ac_configure_args1=
1914 ac_must_keep_next=false
1915 for ac_pass in 1 2
1916 do
1917 for ac_arg
1918 do
1919 case $ac_arg in
1920 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1921 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1922 | -silent | --silent | --silen | --sile | --sil)
1923 continue ;;
1924 *\'*)
1925 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1926 esac
1927 case $ac_pass in
1928 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1929 2)
1930 as_fn_append ac_configure_args1 " '$ac_arg'"
1931 if test $ac_must_keep_next = true; then
1932 ac_must_keep_next=false # Got value, back to normal.
1933 else
1934 case $ac_arg in
1935 *=* | --config-cache | -C | -disable-* | --disable-* \
1936 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1937 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1938 | -with-* | --with-* | -without-* | --without-* | --x)
1939 case "$ac_configure_args0 " in
1940 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1941 esac
1942 ;;
1943 -* ) ac_must_keep_next=true ;;
1944 esac
1945 fi
1946 as_fn_append ac_configure_args " '$ac_arg'"
1947 ;;
1948 esac
1949 done
1950 done
1951 { ac_configure_args0=; unset ac_configure_args0;}
1952 { ac_configure_args1=; unset ac_configure_args1;}
1953
1954 # When interrupted or exit'd, cleanup temporary files, and complete
1955 # config.log. We remove comments because anyway the quotes in there
1956 # would cause problems or look ugly.
1957 # WARNING: Use '\'' to represent an apostrophe within the trap.
1958 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1959 trap 'exit_status=$?
1960 # Save into config.log some information that might help in debugging.
1961 {
1962 echo
1963
1964 $as_echo "## ---------------- ##
1965 ## Cache variables. ##
1966 ## ---------------- ##"
1967 echo
1968 # The following way of writing the cache mishandles newlines in values,
1969 (
1970 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1971 eval ac_val=\$$ac_var
1972 case $ac_val in #(
1973 *${as_nl}*)
1974 case $ac_var in #(
1975 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1976 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1977 esac
1978 case $ac_var in #(
1979 _ | IFS | as_nl) ;; #(
1980 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1981 *) { eval $ac_var=; unset $ac_var;} ;;
1982 esac ;;
1983 esac
1984 done
1985 (set) 2>&1 |
1986 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1987 *${as_nl}ac_space=\ *)
1988 sed -n \
1989 "s/'\''/'\''\\\\'\'''\''/g;
1990 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1991 ;; #(
1992 *)
1993 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1994 ;;
1995 esac |
1996 sort
1997 )
1998 echo
1999
2000 $as_echo "## ----------------- ##
2001 ## Output variables. ##
2002 ## ----------------- ##"
2003 echo
2004 for ac_var in $ac_subst_vars
2005 do
2006 eval ac_val=\$$ac_var
2007 case $ac_val in
2008 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2009 esac
2010 $as_echo "$ac_var='\''$ac_val'\''"
2011 done | sort
2012 echo
2013
2014 if test -n "$ac_subst_files"; then
2015 $as_echo "## ------------------- ##
2016 ## File substitutions. ##
2017 ## ------------------- ##"
2018 echo
2019 for ac_var in $ac_subst_files
2020 do
2021 eval ac_val=\$$ac_var
2022 case $ac_val in
2023 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2024 esac
2025 $as_echo "$ac_var='\''$ac_val'\''"
2026 done | sort
2027 echo
2028 fi
2029
2030 if test -s confdefs.h; then
2031 $as_echo "## ----------- ##
2032 ## confdefs.h. ##
2033 ## ----------- ##"
2034 echo
2035 cat confdefs.h
2036 echo
2037 fi
2038 test "$ac_signal" != 0 &&
2039 $as_echo "$as_me: caught signal $ac_signal"
2040 $as_echo "$as_me: exit $exit_status"
2041 } >&5
2042 rm -f core *.core core.conftest.* &&
2043 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2044 exit $exit_status
2045 ' 0
2046 for ac_signal in 1 2 13 15; do
2047 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2048 done
2049 ac_signal=0
2050
2051 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2052 rm -f -r conftest* confdefs.h
2053
2054 $as_echo "/* confdefs.h */" > confdefs.h
2055
2056 # Predefined preprocessor variables.
2057
2058 cat >>confdefs.h <<_ACEOF
2059 #define PACKAGE_NAME "$PACKAGE_NAME"
2060 _ACEOF
2061
2062 cat >>confdefs.h <<_ACEOF
2063 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2064 _ACEOF
2065
2066 cat >>confdefs.h <<_ACEOF
2067 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2068 _ACEOF
2069
2070 cat >>confdefs.h <<_ACEOF
2071 #define PACKAGE_STRING "$PACKAGE_STRING"
2072 _ACEOF
2073
2074 cat >>confdefs.h <<_ACEOF
2075 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2076 _ACEOF
2077
2078 cat >>confdefs.h <<_ACEOF
2079 #define PACKAGE_URL "$PACKAGE_URL"
2080 _ACEOF
2081
2082
2083 # Let the site file select an alternate cache file if it wants to.
2084 # Prefer an explicitly selected file to automatically selected ones.
2085 ac_site_file1=NONE
2086 ac_site_file2=NONE
2087 if test -n "$CONFIG_SITE"; then
2088 # We do not want a PATH search for config.site.
2089 case $CONFIG_SITE in #((
2090 -*) ac_site_file1=./$CONFIG_SITE;;
2091 */*) ac_site_file1=$CONFIG_SITE;;
2092 *) ac_site_file1=./$CONFIG_SITE;;
2093 esac
2094 elif test "x$prefix" != xNONE; then
2095 ac_site_file1=$prefix/share/config.site
2096 ac_site_file2=$prefix/etc/config.site
2097 else
2098 ac_site_file1=$ac_default_prefix/share/config.site
2099 ac_site_file2=$ac_default_prefix/etc/config.site
2100 fi
2101 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2102 do
2103 test "x$ac_site_file" = xNONE && continue
2104 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2106 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2107 sed 's/^/| /' "$ac_site_file" >&5
2108 . "$ac_site_file" \
2109 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2111 as_fn_error $? "failed to load site script $ac_site_file
2112 See \`config.log' for more details" "$LINENO" 5; }
2113 fi
2114 done
2115
2116 if test -r "$cache_file"; then
2117 # Some versions of bash will fail to source /dev/null (special files
2118 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2119 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2121 $as_echo "$as_me: loading cache $cache_file" >&6;}
2122 case $cache_file in
2123 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2124 *) . "./$cache_file";;
2125 esac
2126 fi
2127 else
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2129 $as_echo "$as_me: creating cache $cache_file" >&6;}
2130 >$cache_file
2131 fi
2132
2133 # Check that the precious variables saved in the cache have kept the same
2134 # value.
2135 ac_cache_corrupted=false
2136 for ac_var in $ac_precious_vars; do
2137 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2138 eval ac_new_set=\$ac_env_${ac_var}_set
2139 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2140 eval ac_new_val=\$ac_env_${ac_var}_value
2141 case $ac_old_set,$ac_new_set in
2142 set,)
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2144 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2145 ac_cache_corrupted=: ;;
2146 ,set)
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2148 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2149 ac_cache_corrupted=: ;;
2150 ,);;
2151 *)
2152 if test "x$ac_old_val" != "x$ac_new_val"; then
2153 # differences in whitespace do not lead to failure.
2154 ac_old_val_w=`echo x $ac_old_val`
2155 ac_new_val_w=`echo x $ac_new_val`
2156 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2158 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2159 ac_cache_corrupted=:
2160 else
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2162 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2163 eval $ac_var=\$ac_old_val
2164 fi
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2166 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2168 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2169 fi;;
2170 esac
2171 # Pass precious variables to config.status.
2172 if test "$ac_new_set" = set; then
2173 case $ac_new_val in
2174 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2175 *) ac_arg=$ac_var=$ac_new_val ;;
2176 esac
2177 case " $ac_configure_args " in
2178 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2179 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2180 esac
2181 fi
2182 done
2183 if $ac_cache_corrupted; then
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2187 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2188 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2189 fi
2190 ## -------------------- ##
2191 ## Main body of script. ##
2192 ## -------------------- ##
2193
2194 ac_ext=c
2195 ac_cpp='$CPP $CPPFLAGS'
2196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2199
2200
2201
2202 ac_config_headers="$ac_config_headers config.h"
2203
2204
2205 # Initialize Automake
2206 am__api_version='1.13'
2207
2208 ac_aux_dir=
2209 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2210 if test -f "$ac_dir/install-sh"; then
2211 ac_aux_dir=$ac_dir
2212 ac_install_sh="$ac_aux_dir/install-sh -c"
2213 break
2214 elif test -f "$ac_dir/install.sh"; then
2215 ac_aux_dir=$ac_dir
2216 ac_install_sh="$ac_aux_dir/install.sh -c"
2217 break
2218 elif test -f "$ac_dir/shtool"; then
2219 ac_aux_dir=$ac_dir
2220 ac_install_sh="$ac_aux_dir/shtool install -c"
2221 break
2222 fi
2223 done
2224 if test -z "$ac_aux_dir"; then
2225 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2226 fi
2227
2228 # These three variables are undocumented and unsupported,
2229 # and are intended to be withdrawn in a future Autoconf release.
2230 # They can cause serious problems if a builder's source tree is in a directory
2231 # whose full name contains unusual characters.
2232 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2233 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2234 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2235
2236
2237 # Find a good install program. We prefer a C program (faster),
2238 # so one script is as good as another. But avoid the broken or
2239 # incompatible versions:
2240 # SysV /etc/install, /usr/sbin/install
2241 # SunOS /usr/etc/install
2242 # IRIX /sbin/install
2243 # AIX /bin/install
2244 # AmigaOS /C/install, which installs bootblocks on floppy discs
2245 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2246 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2247 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2248 # OS/2's system install, which has a completely different semantic
2249 # ./install, which can be erroneously created by make from ./install.sh.
2250 # Reject install programs that cannot install multiple files.
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2252 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2253 if test -z "$INSTALL"; then
2254 if ${ac_cv_path_install+:} false; then :
2255 $as_echo_n "(cached) " >&6
2256 else
2257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258 for as_dir in $PATH
2259 do
2260 IFS=$as_save_IFS
2261 test -z "$as_dir" && as_dir=.
2262 # Account for people who put trailing slashes in PATH elements.
2263 case $as_dir/ in #((
2264 ./ | .// | /[cC]/* | \
2265 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2266 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2267 /usr/ucb/* ) ;;
2268 *)
2269 # OSF1 and SCO ODT 3.0 have their own names for install.
2270 # Don't use installbsd from OSF since it installs stuff as root
2271 # by default.
2272 for ac_prog in ginstall scoinst install; do
2273 for ac_exec_ext in '' $ac_executable_extensions; do
2274 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2275 if test $ac_prog = install &&
2276 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2277 # AIX install. It has an incompatible calling convention.
2278 :
2279 elif test $ac_prog = install &&
2280 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2281 # program-specific install script used by HP pwplus--don't use.
2282 :
2283 else
2284 rm -rf conftest.one conftest.two conftest.dir
2285 echo one > conftest.one
2286 echo two > conftest.two
2287 mkdir conftest.dir
2288 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2289 test -s conftest.one && test -s conftest.two &&
2290 test -s conftest.dir/conftest.one &&
2291 test -s conftest.dir/conftest.two
2292 then
2293 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2294 break 3
2295 fi
2296 fi
2297 fi
2298 done
2299 done
2300 ;;
2301 esac
2302
2303 done
2304 IFS=$as_save_IFS
2305
2306 rm -rf conftest.one conftest.two conftest.dir
2307
2308 fi
2309 if test "${ac_cv_path_install+set}" = set; then
2310 INSTALL=$ac_cv_path_install
2311 else
2312 # As a last resort, use the slow shell script. Don't cache a
2313 # value for INSTALL within a source directory, because that will
2314 # break other packages using the cache if that directory is
2315 # removed, or if the value is a relative name.
2316 INSTALL=$ac_install_sh
2317 fi
2318 fi
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2320 $as_echo "$INSTALL" >&6; }
2321
2322 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2323 # It thinks the first close brace ends the variable substitution.
2324 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2325
2326 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2327
2328 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2329
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2331 $as_echo_n "checking whether build environment is sane... " >&6; }
2332 # Reject unsafe characters in $srcdir or the absolute working directory
2333 # name. Accept space and tab only in the latter.
2334 am_lf='
2335 '
2336 case `pwd` in
2337 *[\\\"\#\$\&\'\`$am_lf]*)
2338 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2339 esac
2340 case $srcdir in
2341 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2342 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2343 esac
2344
2345 # Do 'set' in a subshell so we don't clobber the current shell's
2346 # arguments. Must try -L first in case configure is actually a
2347 # symlink; some systems play weird games with the mod time of symlinks
2348 # (eg FreeBSD returns the mod time of the symlink's containing
2349 # directory).
2350 if (
2351 am_has_slept=no
2352 for am_try in 1 2; do
2353 echo "timestamp, slept: $am_has_slept" > conftest.file
2354 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2355 if test "$*" = "X"; then
2356 # -L didn't work.
2357 set X `ls -t "$srcdir/configure" conftest.file`
2358 fi
2359 if test "$*" != "X $srcdir/configure conftest.file" \
2360 && test "$*" != "X conftest.file $srcdir/configure"; then
2361
2362 # If neither matched, then we have a broken ls. This can happen
2363 # if, for instance, CONFIG_SHELL is bash and it inherits a
2364 # broken ls alias from the environment. This has actually
2365 # happened. Such a system could not be considered "sane".
2366 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2367 alias in your environment" "$LINENO" 5
2368 fi
2369 if test "$2" = conftest.file || test $am_try -eq 2; then
2370 break
2371 fi
2372 # Just in case.
2373 sleep 1
2374 am_has_slept=yes
2375 done
2376 test "$2" = conftest.file
2377 )
2378 then
2379 # Ok.
2380 :
2381 else
2382 as_fn_error $? "newly created file is older than distributed files!
2383 Check your system clock" "$LINENO" 5
2384 fi
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2386 $as_echo "yes" >&6; }
2387 # If we didn't sleep, we still need to ensure time stamps of config.status and
2388 # generated files are strictly newer.
2389 am_sleep_pid=
2390 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2391 ( sleep 1 ) &
2392 am_sleep_pid=$!
2393 fi
2394
2395 rm -f conftest.file
2396
2397 test "$program_prefix" != NONE &&
2398 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2399 # Use a double $ so make ignores it.
2400 test "$program_suffix" != NONE &&
2401 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2402 # Double any \ or $.
2403 # By default was `s,x,x', remove it if useless.
2404 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2405 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2406
2407 # expand $ac_aux_dir to an absolute path
2408 am_aux_dir=`cd $ac_aux_dir && pwd`
2409
2410 if test x"${MISSING+set}" != xset; then
2411 case $am_aux_dir in
2412 *\ * | *\ *)
2413 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2414 *)
2415 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2416 esac
2417 fi
2418 # Use eval to expand $SHELL
2419 if eval "$MISSING --is-lightweight"; then
2420 am_missing_run="$MISSING "
2421 else
2422 am_missing_run=
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2424 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2425 fi
2426
2427 if test x"${install_sh}" != xset; then
2428 case $am_aux_dir in
2429 *\ * | *\ *)
2430 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2431 *)
2432 install_sh="\${SHELL} $am_aux_dir/install-sh"
2433 esac
2434 fi
2435
2436 # Installed binaries are usually stripped using 'strip' when the user
2437 # run "make install-strip". However 'strip' might not be the right
2438 # tool to use in cross-compilation environments, therefore Automake
2439 # will honor the 'STRIP' environment variable to overrule this program.
2440 if test "$cross_compiling" != no; then
2441 if test -n "$ac_tool_prefix"; then
2442 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2443 set dummy ${ac_tool_prefix}strip; ac_word=$2
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2445 $as_echo_n "checking for $ac_word... " >&6; }
2446 if ${ac_cv_prog_STRIP+:} false; then :
2447 $as_echo_n "(cached) " >&6
2448 else
2449 if test -n "$STRIP"; then
2450 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2451 else
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 for as_dir in $PATH
2454 do
2455 IFS=$as_save_IFS
2456 test -z "$as_dir" && as_dir=.
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2459 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2461 break 2
2462 fi
2463 done
2464 done
2465 IFS=$as_save_IFS
2466
2467 fi
2468 fi
2469 STRIP=$ac_cv_prog_STRIP
2470 if test -n "$STRIP"; then
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2472 $as_echo "$STRIP" >&6; }
2473 else
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2475 $as_echo "no" >&6; }
2476 fi
2477
2478
2479 fi
2480 if test -z "$ac_cv_prog_STRIP"; then
2481 ac_ct_STRIP=$STRIP
2482 # Extract the first word of "strip", so it can be a program name with args.
2483 set dummy strip; ac_word=$2
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2485 $as_echo_n "checking for $ac_word... " >&6; }
2486 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2487 $as_echo_n "(cached) " >&6
2488 else
2489 if test -n "$ac_ct_STRIP"; then
2490 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2491 else
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH
2494 do
2495 IFS=$as_save_IFS
2496 test -z "$as_dir" && as_dir=.
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2499 ac_cv_prog_ac_ct_STRIP="strip"
2500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2501 break 2
2502 fi
2503 done
2504 done
2505 IFS=$as_save_IFS
2506
2507 fi
2508 fi
2509 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2510 if test -n "$ac_ct_STRIP"; then
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2512 $as_echo "$ac_ct_STRIP" >&6; }
2513 else
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2515 $as_echo "no" >&6; }
2516 fi
2517
2518 if test "x$ac_ct_STRIP" = x; then
2519 STRIP=":"
2520 else
2521 case $cross_compiling:$ac_tool_warned in
2522 yes:)
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2525 ac_tool_warned=yes ;;
2526 esac
2527 STRIP=$ac_ct_STRIP
2528 fi
2529 else
2530 STRIP="$ac_cv_prog_STRIP"
2531 fi
2532
2533 fi
2534 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2535
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2537 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2538 if test -z "$MKDIR_P"; then
2539 if ${ac_cv_path_mkdir+:} false; then :
2540 $as_echo_n "(cached) " >&6
2541 else
2542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2544 do
2545 IFS=$as_save_IFS
2546 test -z "$as_dir" && as_dir=.
2547 for ac_prog in mkdir gmkdir; do
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2550 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2551 'mkdir (GNU coreutils) '* | \
2552 'mkdir (coreutils) '* | \
2553 'mkdir (fileutils) '4.1*)
2554 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2555 break 3;;
2556 esac
2557 done
2558 done
2559 done
2560 IFS=$as_save_IFS
2561
2562 fi
2563
2564 test -d ./--version && rmdir ./--version
2565 if test "${ac_cv_path_mkdir+set}" = set; then
2566 MKDIR_P="$ac_cv_path_mkdir -p"
2567 else
2568 # As a last resort, use the slow shell script. Don't cache a
2569 # value for MKDIR_P within a source directory, because that will
2570 # break other packages using the cache if that directory is
2571 # removed, or if the value is a relative name.
2572 MKDIR_P="$ac_install_sh -d"
2573 fi
2574 fi
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2576 $as_echo "$MKDIR_P" >&6; }
2577
2578 for ac_prog in gawk mawk nawk awk
2579 do
2580 # Extract the first word of "$ac_prog", so it can be a program name with args.
2581 set dummy $ac_prog; ac_word=$2
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2583 $as_echo_n "checking for $ac_word... " >&6; }
2584 if ${ac_cv_prog_AWK+:} false; then :
2585 $as_echo_n "(cached) " >&6
2586 else
2587 if test -n "$AWK"; then
2588 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2589 else
2590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591 for as_dir in $PATH
2592 do
2593 IFS=$as_save_IFS
2594 test -z "$as_dir" && as_dir=.
2595 for ac_exec_ext in '' $ac_executable_extensions; do
2596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2597 ac_cv_prog_AWK="$ac_prog"
2598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2599 break 2
2600 fi
2601 done
2602 done
2603 IFS=$as_save_IFS
2604
2605 fi
2606 fi
2607 AWK=$ac_cv_prog_AWK
2608 if test -n "$AWK"; then
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2610 $as_echo "$AWK" >&6; }
2611 else
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2613 $as_echo "no" >&6; }
2614 fi
2615
2616
2617 test -n "$AWK" && break
2618 done
2619
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2621 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2622 set x ${MAKE-make}
2623 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2624 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2625 $as_echo_n "(cached) " >&6
2626 else
2627 cat >conftest.make <<\_ACEOF
2628 SHELL = /bin/sh
2629 all:
2630 @echo '@@@%%%=$(MAKE)=@@@%%%'
2631 _ACEOF
2632 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2633 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2634 *@@@%%%=?*=@@@%%%*)
2635 eval ac_cv_prog_make_${ac_make}_set=yes;;
2636 *)
2637 eval ac_cv_prog_make_${ac_make}_set=no;;
2638 esac
2639 rm -f conftest.make
2640 fi
2641 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2643 $as_echo "yes" >&6; }
2644 SET_MAKE=
2645 else
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2647 $as_echo "no" >&6; }
2648 SET_MAKE="MAKE=${MAKE-make}"
2649 fi
2650
2651 rm -rf .tst 2>/dev/null
2652 mkdir .tst 2>/dev/null
2653 if test -d .tst; then
2654 am__leading_dot=.
2655 else
2656 am__leading_dot=_
2657 fi
2658 rmdir .tst 2>/dev/null
2659
2660 # Check whether --enable-silent-rules was given.
2661 if test "${enable_silent_rules+set}" = set; then :
2662 enableval=$enable_silent_rules;
2663 fi
2664
2665 case $enable_silent_rules in # (((
2666 yes) AM_DEFAULT_VERBOSITY=0;;
2667 no) AM_DEFAULT_VERBOSITY=1;;
2668 *) AM_DEFAULT_VERBOSITY=1;;
2669 esac
2670 am_make=${MAKE-make}
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2672 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2673 if ${am_cv_make_support_nested_variables+:} false; then :
2674 $as_echo_n "(cached) " >&6
2675 else
2676 if $as_echo 'TRUE=$(BAR$(V))
2677 BAR0=false
2678 BAR1=true
2679 V=1
2680 am__doit:
2681 @$(TRUE)
2682 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2683 am_cv_make_support_nested_variables=yes
2684 else
2685 am_cv_make_support_nested_variables=no
2686 fi
2687 fi
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2689 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2690 if test $am_cv_make_support_nested_variables = yes; then
2691 AM_V='$(V)'
2692 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2693 else
2694 AM_V=$AM_DEFAULT_VERBOSITY
2695 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2696 fi
2697 AM_BACKSLASH='\'
2698
2699 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2700 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2701 # is not polluted with repeated "-I."
2702 am__isrc=' -I$(srcdir)'
2703 # test to see if srcdir already configured
2704 if test -f $srcdir/config.status; then
2705 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2706 fi
2707 fi
2708
2709 # test whether we have cygpath
2710 if test -z "$CYGPATH_W"; then
2711 if (cygpath --version) >/dev/null 2>/dev/null; then
2712 CYGPATH_W='cygpath -w'
2713 else
2714 CYGPATH_W=echo
2715 fi
2716 fi
2717
2718
2719 # Define the identity of the package.
2720 PACKAGE='libXv'
2721 VERSION='1.0.8'
2722
2723
2724 cat >>confdefs.h <<_ACEOF
2725 #define PACKAGE "$PACKAGE"
2726 _ACEOF
2727
2728
2729 cat >>confdefs.h <<_ACEOF
2730 #define VERSION "$VERSION"
2731 _ACEOF
2732
2733 # Some tools Automake needs.
2734
2735 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2736
2737
2738 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2739
2740
2741 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2742
2743
2744 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2745
2746
2747 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2748
2749 # For better backward compatibility. To be removed once Automake 1.9.x
2750 # dies out for good. For more background, see:
2751 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2752 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2753 mkdir_p='$(MKDIR_P)'
2754
2755 # We need awk for the "check" target. The system "awk" is bad on
2756 # some platforms.
2757 # Always define AMTAR for backward compatibility. Yes, it's still used
2758 # in the wild :-( We should find a proper way to deprecate it ...
2759 AMTAR='$${TAR-tar}'
2760
2761
2762 # We'll loop over all known methods to create a tar archive until one works.
2763 _am_tools='gnutar pax cpio none'
2764
2765 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2766
2767
2768
2769
2770
2771
2772
2773 # Initialize libtool
2774 case `pwd` in
2775 *\ * | *\ *)
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2777 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2778 esac
2779
2780
2781
2782 macro_version='2.4.2'
2783 macro_revision='1.3337'
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797 ltmain="$ac_aux_dir/ltmain.sh"
2798
2799 # Make sure we can run config.sub.
2800 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2801 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2802
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2804 $as_echo_n "checking build system type... " >&6; }
2805 if ${ac_cv_build+:} false; then :
2806 $as_echo_n "(cached) " >&6
2807 else
2808 ac_build_alias=$build_alias
2809 test "x$ac_build_alias" = x &&
2810 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2811 test "x$ac_build_alias" = x &&
2812 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2813 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2814 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2815
2816 fi
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2818 $as_echo "$ac_cv_build" >&6; }
2819 case $ac_cv_build in
2820 *-*-*) ;;
2821 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2822 esac
2823 build=$ac_cv_build
2824 ac_save_IFS=$IFS; IFS='-'
2825 set x $ac_cv_build
2826 shift
2827 build_cpu=$1
2828 build_vendor=$2
2829 shift; shift
2830 # Remember, the first character of IFS is used to create $*,
2831 # except with old shells:
2832 build_os=$*
2833 IFS=$ac_save_IFS
2834 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2835
2836
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2838 $as_echo_n "checking host system type... " >&6; }
2839 if ${ac_cv_host+:} false; then :
2840 $as_echo_n "(cached) " >&6
2841 else
2842 if test "x$host_alias" = x; then
2843 ac_cv_host=$ac_cv_build
2844 else
2845 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2846 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2847 fi
2848
2849 fi
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2851 $as_echo "$ac_cv_host" >&6; }
2852 case $ac_cv_host in
2853 *-*-*) ;;
2854 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2855 esac
2856 host=$ac_cv_host
2857 ac_save_IFS=$IFS; IFS='-'
2858 set x $ac_cv_host
2859 shift
2860 host_cpu=$1
2861 host_vendor=$2
2862 shift; shift
2863 # Remember, the first character of IFS is used to create $*,
2864 # except with old shells:
2865 host_os=$*
2866 IFS=$ac_save_IFS
2867 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2868
2869
2870 # Backslashify metacharacters that are still active within
2871 # double-quoted strings.
2872 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2873
2874 # Same as above, but do not quote variable references.
2875 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2876
2877 # Sed substitution to delay expansion of an escaped shell variable in a
2878 # double_quote_subst'ed string.
2879 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2880
2881 # Sed substitution to delay expansion of an escaped single quote.
2882 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2883
2884 # Sed substitution to avoid accidental globbing in evaled expressions
2885 no_glob_subst='s/\*/\\\*/g'
2886
2887 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2888 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2889 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2890
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2892 $as_echo_n "checking how to print strings... " >&6; }
2893 # Test print first, because it will be a builtin if present.
2894 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2895 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2896 ECHO='print -r --'
2897 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2898 ECHO='printf %s\n'
2899 else
2900 # Use this function as a fallback that always works.
2901 func_fallback_echo ()
2902 {
2903 eval 'cat <<_LTECHO_EOF
2904 $1
2905 _LTECHO_EOF'
2906 }
2907 ECHO='func_fallback_echo'
2908 fi
2909
2910 # func_echo_all arg...
2911 # Invoke $ECHO with all args, space-separated.
2912 func_echo_all ()
2913 {
2914 $ECHO ""
2915 }
2916
2917 case "$ECHO" in
2918 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2919 $as_echo "printf" >&6; } ;;
2920 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2921 $as_echo "print -r" >&6; } ;;
2922 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2923 $as_echo "cat" >&6; } ;;
2924 esac
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939 DEPDIR="${am__leading_dot}deps"
2940
2941 ac_config_commands="$ac_config_commands depfiles"
2942
2943
2944 am_make=${MAKE-make}
2945 cat > confinc << 'END'
2946 am__doit:
2947 @echo this is the am__doit target
2948 .PHONY: am__doit
2949 END
2950 # If we don't find an include directive, just comment out the code.
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2952 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2953 am__include="#"
2954 am__quote=
2955 _am_result=none
2956 # First try GNU make style include.
2957 echo "include confinc" > confmf
2958 # Ignore all kinds of additional output from 'make'.
2959 case `$am_make -s -f confmf 2> /dev/null` in #(
2960 *the\ am__doit\ target*)
2961 am__include=include
2962 am__quote=
2963 _am_result=GNU
2964 ;;
2965 esac
2966 # Now try BSD make style include.
2967 if test "$am__include" = "#"; then
2968 echo '.include "confinc"' > confmf
2969 case `$am_make -s -f confmf 2> /dev/null` in #(
2970 *the\ am__doit\ target*)
2971 am__include=.include
2972 am__quote="\""
2973 _am_result=BSD
2974 ;;
2975 esac
2976 fi
2977
2978
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2980 $as_echo "$_am_result" >&6; }
2981 rm -f confinc confmf
2982
2983 # Check whether --enable-dependency-tracking was given.
2984 if test "${enable_dependency_tracking+set}" = set; then :
2985 enableval=$enable_dependency_tracking;
2986 fi
2987
2988 if test "x$enable_dependency_tracking" != xno; then
2989 am_depcomp="$ac_aux_dir/depcomp"
2990 AMDEPBACKSLASH='\'
2991 am__nodep='_no'
2992 fi
2993 if test "x$enable_dependency_tracking" != xno; then
2994 AMDEP_TRUE=
2995 AMDEP_FALSE='#'
2996 else
2997 AMDEP_TRUE='#'
2998 AMDEP_FALSE=
2999 fi
3000
3001
3002 ac_ext=c
3003 ac_cpp='$CPP $CPPFLAGS'
3004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3007 if test -n "$ac_tool_prefix"; then
3008 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3009 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3011 $as_echo_n "checking for $ac_word... " >&6; }
3012 if ${ac_cv_prog_CC+:} false; then :
3013 $as_echo_n "(cached) " >&6
3014 else
3015 if test -n "$CC"; then
3016 ac_cv_prog_CC="$CC" # Let the user override the test.
3017 else
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 for as_dir in $PATH
3020 do
3021 IFS=$as_save_IFS
3022 test -z "$as_dir" && as_dir=.
3023 for ac_exec_ext in '' $ac_executable_extensions; do
3024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3025 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3027 break 2
3028 fi
3029 done
3030 done
3031 IFS=$as_save_IFS
3032
3033 fi
3034 fi
3035 CC=$ac_cv_prog_CC
3036 if test -n "$CC"; then
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3038 $as_echo "$CC" >&6; }
3039 else
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041 $as_echo "no" >&6; }
3042 fi
3043
3044
3045 fi
3046 if test -z "$ac_cv_prog_CC"; then
3047 ac_ct_CC=$CC
3048 # Extract the first word of "gcc", so it can be a program name with args.
3049 set dummy gcc; 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_ac_ct_CC+:} false; then :
3053 $as_echo_n "(cached) " >&6
3054 else
3055 if test -n "$ac_ct_CC"; then
3056 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="gcc"
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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3076 if test -n "$ac_ct_CC"; then
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3078 $as_echo "$ac_ct_CC" >&6; }
3079 else
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081 $as_echo "no" >&6; }
3082 fi
3083
3084 if test "x$ac_ct_CC" = x; then
3085 CC=""
3086 else
3087 case $cross_compiling:$ac_tool_warned in
3088 yes:)
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3091 ac_tool_warned=yes ;;
3092 esac
3093 CC=$ac_ct_CC
3094 fi
3095 else
3096 CC="$ac_cv_prog_CC"
3097 fi
3098
3099 if test -z "$CC"; then
3100 if test -n "$ac_tool_prefix"; then
3101 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3102 set dummy ${ac_tool_prefix}cc; ac_word=$2
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3104 $as_echo_n "checking for $ac_word... " >&6; }
3105 if ${ac_cv_prog_CC+:} false; then :
3106 $as_echo_n "(cached) " >&6
3107 else
3108 if test -n "$CC"; then
3109 ac_cv_prog_CC="$CC" # Let the user override the test.
3110 else
3111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112 for as_dir in $PATH
3113 do
3114 IFS=$as_save_IFS
3115 test -z "$as_dir" && as_dir=.
3116 for ac_exec_ext in '' $ac_executable_extensions; do
3117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3118 ac_cv_prog_CC="${ac_tool_prefix}cc"
3119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3120 break 2
3121 fi
3122 done
3123 done
3124 IFS=$as_save_IFS
3125
3126 fi
3127 fi
3128 CC=$ac_cv_prog_CC
3129 if test -n "$CC"; then
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3131 $as_echo "$CC" >&6; }
3132 else
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134 $as_echo "no" >&6; }
3135 fi
3136
3137
3138 fi
3139 fi
3140 if test -z "$CC"; then
3141 # Extract the first word of "cc", so it can be a program name with args.
3142 set dummy cc; ac_word=$2
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3144 $as_echo_n "checking for $ac_word... " >&6; }
3145 if ${ac_cv_prog_CC+:} false; then :
3146 $as_echo_n "(cached) " >&6
3147 else
3148 if test -n "$CC"; then
3149 ac_cv_prog_CC="$CC" # Let the user override the test.
3150 else
3151 ac_prog_rejected=no
3152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153 for as_dir in $PATH
3154 do
3155 IFS=$as_save_IFS
3156 test -z "$as_dir" && as_dir=.
3157 for ac_exec_ext in '' $ac_executable_extensions; do
3158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3159 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3160 ac_prog_rejected=yes
3161 continue
3162 fi
3163 ac_cv_prog_CC="cc"
3164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 break 2
3166 fi
3167 done
3168 done
3169 IFS=$as_save_IFS
3170
3171 if test $ac_prog_rejected = yes; then
3172 # We found a bogon in the path, so make sure we never use it.
3173 set dummy $ac_cv_prog_CC
3174 shift
3175 if test $# != 0; then
3176 # We chose a different compiler from the bogus one.
3177 # However, it has the same basename, so the bogon will be chosen
3178 # first if we set CC to just the basename; use the full file name.
3179 shift
3180 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3181 fi
3182 fi
3183 fi
3184 fi
3185 CC=$ac_cv_prog_CC
3186 if test -n "$CC"; then
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3188 $as_echo "$CC" >&6; }
3189 else
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191 $as_echo "no" >&6; }
3192 fi
3193
3194
3195 fi
3196 if test -z "$CC"; then
3197 if test -n "$ac_tool_prefix"; then
3198 for ac_prog in cl.exe
3199 do
3200 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3201 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3203 $as_echo_n "checking for $ac_word... " >&6; }
3204 if ${ac_cv_prog_CC+:} false; then :
3205 $as_echo_n "(cached) " >&6
3206 else
3207 if test -n "$CC"; then
3208 ac_cv_prog_CC="$CC" # Let the user override the test.
3209 else
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH
3212 do
3213 IFS=$as_save_IFS
3214 test -z "$as_dir" && as_dir=.
3215 for ac_exec_ext in '' $ac_executable_extensions; do
3216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3217 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3219 break 2
3220 fi
3221 done
3222 done
3223 IFS=$as_save_IFS
3224
3225 fi
3226 fi
3227 CC=$ac_cv_prog_CC
3228 if test -n "$CC"; then
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3230 $as_echo "$CC" >&6; }
3231 else
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233 $as_echo "no" >&6; }
3234 fi
3235
3236
3237 test -n "$CC" && break
3238 done
3239 fi
3240 if test -z "$CC"; then
3241 ac_ct_CC=$CC
3242 for ac_prog in cl.exe
3243 do
3244 # Extract the first word of "$ac_prog", so it can be a program name with args.
3245 set dummy $ac_prog; ac_word=$2
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3247 $as_echo_n "checking for $ac_word... " >&6; }
3248 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3249 $as_echo_n "(cached) " >&6
3250 else
3251 if test -n "$ac_ct_CC"; then
3252 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3253 else
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 for as_dir in $PATH
3256 do
3257 IFS=$as_save_IFS
3258 test -z "$as_dir" && as_dir=.
3259 for ac_exec_ext in '' $ac_executable_extensions; do
3260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3261 ac_cv_prog_ac_ct_CC="$ac_prog"
3262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3263 break 2
3264 fi
3265 done
3266 done
3267 IFS=$as_save_IFS
3268
3269 fi
3270 fi
3271 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3272 if test -n "$ac_ct_CC"; then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3274 $as_echo "$ac_ct_CC" >&6; }
3275 else
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3277 $as_echo "no" >&6; }
3278 fi
3279
3280
3281 test -n "$ac_ct_CC" && break
3282 done
3283
3284 if test "x$ac_ct_CC" = x; then
3285 CC=""
3286 else
3287 case $cross_compiling:$ac_tool_warned in
3288 yes:)
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3291 ac_tool_warned=yes ;;
3292 esac
3293 CC=$ac_ct_CC
3294 fi
3295 fi
3296
3297 fi
3298
3299
3300 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3302 as_fn_error $? "no acceptable C compiler found in \$PATH
3303 See \`config.log' for more details" "$LINENO" 5; }
3304
3305 # Provide some information about the compiler.
3306 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3307 set X $ac_compile
3308 ac_compiler=$2
3309 for ac_option in --version -v -V -qversion; do
3310 { { ac_try="$ac_compiler $ac_option >&5"
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_compiler $ac_option >&5") 2>conftest.err
3318 ac_status=$?
3319 if test -s conftest.err; then
3320 sed '10a\
3321 ... rest of stderr output deleted ...
3322 10q' conftest.err >conftest.er1
3323 cat conftest.er1 >&5
3324 fi
3325 rm -f conftest.er1 conftest.err
3326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3327 test $ac_status = 0; }
3328 done
3329
3330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3331 /* end confdefs.h. */
3332
3333 int
3334 main ()
3335 {
3336
3337 ;
3338 return 0;
3339 }
3340 _ACEOF
3341 ac_clean_files_save=$ac_clean_files
3342 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3343 # Try to create an executable without -o first, disregard a.out.
3344 # It will help us diagnose broken compilers, and finding out an intuition
3345 # of exeext.
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3347 $as_echo_n "checking whether the C compiler works... " >&6; }
3348 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3349
3350 # The possible output files:
3351 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3352
3353 ac_rmfiles=
3354 for ac_file in $ac_files
3355 do
3356 case $ac_file in
3357 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3358 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3359 esac
3360 done
3361 rm -f $ac_rmfiles
3362
3363 if { { ac_try="$ac_link_default"
3364 case "(($ac_try" in
3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366 *) ac_try_echo=$ac_try;;
3367 esac
3368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3369 $as_echo "$ac_try_echo"; } >&5
3370 (eval "$ac_link_default") 2>&5
3371 ac_status=$?
3372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3373 test $ac_status = 0; }; then :
3374 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3375 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3376 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3377 # so that the user can short-circuit this test for compilers unknown to
3378 # Autoconf.
3379 for ac_file in $ac_files ''
3380 do
3381 test -f "$ac_file" || continue
3382 case $ac_file in
3383 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3384 ;;
3385 [ab].out )
3386 # We found the default executable, but exeext='' is most
3387 # certainly right.
3388 break;;
3389 *.* )
3390 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3391 then :; else
3392 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3393 fi
3394 # We set ac_cv_exeext here because the later test for it is not
3395 # safe: cross compilers may not add the suffix if given an `-o'
3396 # argument, so we may need to know it at that point already.
3397 # Even if this section looks crufty: it has the advantage of
3398 # actually working.
3399 break;;
3400 * )
3401 break;;
3402 esac
3403 done
3404 test "$ac_cv_exeext" = no && ac_cv_exeext=
3405
3406 else
3407 ac_file=''
3408 fi
3409 if test -z "$ac_file"; then :
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411 $as_echo "no" >&6; }
3412 $as_echo "$as_me: failed program was:" >&5
3413 sed 's/^/| /' conftest.$ac_ext >&5
3414
3415 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3417 as_fn_error 77 "C compiler cannot create executables
3418 See \`config.log' for more details" "$LINENO" 5; }
3419 else
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3421 $as_echo "yes" >&6; }
3422 fi
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3424 $as_echo_n "checking for C compiler default output file name... " >&6; }
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3426 $as_echo "$ac_file" >&6; }
3427 ac_exeext=$ac_cv_exeext
3428
3429 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3430 ac_clean_files=$ac_clean_files_save
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3432 $as_echo_n "checking for suffix of executables... " >&6; }
3433 if { { ac_try="$ac_link"
3434 case "(($ac_try" in
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3437 esac
3438 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3439 $as_echo "$ac_try_echo"; } >&5
3440 (eval "$ac_link") 2>&5
3441 ac_status=$?
3442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3443 test $ac_status = 0; }; then :
3444 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3445 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3446 # work properly (i.e., refer to `conftest.exe'), while it won't with
3447 # `rm'.
3448 for ac_file in conftest.exe conftest conftest.*; do
3449 test -f "$ac_file" || continue
3450 case $ac_file in
3451 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3452 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3453 break;;
3454 * ) break;;
3455 esac
3456 done
3457 else
3458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3460 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3461 See \`config.log' for more details" "$LINENO" 5; }
3462 fi
3463 rm -f conftest conftest$ac_cv_exeext
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3465 $as_echo "$ac_cv_exeext" >&6; }
3466
3467 rm -f conftest.$ac_ext
3468 EXEEXT=$ac_cv_exeext
3469 ac_exeext=$EXEEXT
3470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3471 /* end confdefs.h. */
3472 #include <stdio.h>
3473 int
3474 main ()
3475 {
3476 FILE *f = fopen ("conftest.out", "w");
3477 return ferror (f) || fclose (f) != 0;
3478
3479 ;
3480 return 0;
3481 }
3482 _ACEOF
3483 ac_clean_files="$ac_clean_files conftest.out"
3484 # Check that the compiler produces executables we can run. If not, either
3485 # the compiler is broken, or we cross compile.
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3487 $as_echo_n "checking whether we are cross compiling... " >&6; }
3488 if test "$cross_compiling" != yes; then
3489 { { ac_try="$ac_link"
3490 case "(($ac_try" in
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3493 esac
3494 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3495 $as_echo "$ac_try_echo"; } >&5
3496 (eval "$ac_link") 2>&5
3497 ac_status=$?
3498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3499 test $ac_status = 0; }
3500 if { ac_try='./conftest$ac_cv_exeext'
3501 { { case "(($ac_try" in
3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503 *) ac_try_echo=$ac_try;;
3504 esac
3505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3506 $as_echo "$ac_try_echo"; } >&5
3507 (eval "$ac_try") 2>&5
3508 ac_status=$?
3509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3510 test $ac_status = 0; }; }; then
3511 cross_compiling=no
3512 else
3513 if test "$cross_compiling" = maybe; then
3514 cross_compiling=yes
3515 else
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 run C compiled programs.
3519 If you meant to cross compile, use \`--host'.
3520 See \`config.log' for more details" "$LINENO" 5; }
3521 fi
3522 fi
3523 fi
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3525 $as_echo "$cross_compiling" >&6; }
3526
3527 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3528 ac_clean_files=$ac_clean_files_save
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3530 $as_echo_n "checking for suffix of object files... " >&6; }
3531 if ${ac_cv_objext+:} false; then :
3532 $as_echo_n "(cached) " >&6
3533 else
3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535 /* end confdefs.h. */
3536
3537 int
3538 main ()
3539 {
3540
3541 ;
3542 return 0;
3543 }
3544 _ACEOF
3545 rm -f conftest.o conftest.obj
3546 if { { ac_try="$ac_compile"
3547 case "(($ac_try" in
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3550 esac
3551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3552 $as_echo "$ac_try_echo"; } >&5
3553 (eval "$ac_compile") 2>&5
3554 ac_status=$?
3555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3556 test $ac_status = 0; }; then :
3557 for ac_file in conftest.o conftest.obj conftest.*; do
3558 test -f "$ac_file" || continue;
3559 case $ac_file in
3560 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3561 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3562 break;;
3563 esac
3564 done
3565 else
3566 $as_echo "$as_me: failed program was:" >&5
3567 sed 's/^/| /' conftest.$ac_ext >&5
3568
3569 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3571 as_fn_error $? "cannot compute suffix of object files: cannot compile
3572 See \`config.log' for more details" "$LINENO" 5; }
3573 fi
3574 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3575 fi
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3577 $as_echo "$ac_cv_objext" >&6; }
3578 OBJEXT=$ac_cv_objext
3579 ac_objext=$OBJEXT
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3581 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3582 if ${ac_cv_c_compiler_gnu+:} false; then :
3583 $as_echo_n "(cached) " >&6
3584 else
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h. */
3587
3588 int
3589 main ()
3590 {
3591 #ifndef __GNUC__
3592 choke me
3593 #endif
3594
3595 ;
3596 return 0;
3597 }
3598 _ACEOF
3599 if ac_fn_c_try_compile "$LINENO"; then :
3600 ac_compiler_gnu=yes
3601 else
3602 ac_compiler_gnu=no
3603 fi
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3606
3607 fi
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3609 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3610 if test $ac_compiler_gnu = yes; then
3611 GCC=yes
3612 else
3613 GCC=
3614 fi
3615 ac_test_CFLAGS=${CFLAGS+set}
3616 ac_save_CFLAGS=$CFLAGS
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3618 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3619 if ${ac_cv_prog_cc_g+:} false; then :
3620 $as_echo_n "(cached) " >&6
3621 else
3622 ac_save_c_werror_flag=$ac_c_werror_flag
3623 ac_c_werror_flag=yes
3624 ac_cv_prog_cc_g=no
3625 CFLAGS="-g"
3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627 /* end confdefs.h. */
3628
3629 int
3630 main ()
3631 {
3632
3633 ;
3634 return 0;
3635 }
3636 _ACEOF
3637 if ac_fn_c_try_compile "$LINENO"; then :
3638 ac_cv_prog_cc_g=yes
3639 else
3640 CFLAGS=""
3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h. */
3643
3644 int
3645 main ()
3646 {
3647
3648 ;
3649 return 0;
3650 }
3651 _ACEOF
3652 if ac_fn_c_try_compile "$LINENO"; then :
3653
3654 else
3655 ac_c_werror_flag=$ac_save_c_werror_flag
3656 CFLAGS="-g"
3657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658 /* end confdefs.h. */
3659
3660 int
3661 main ()
3662 {
3663
3664 ;
3665 return 0;
3666 }
3667 _ACEOF
3668 if ac_fn_c_try_compile "$LINENO"; then :
3669 ac_cv_prog_cc_g=yes
3670 fi
3671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3672 fi
3673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3674 fi
3675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3676 ac_c_werror_flag=$ac_save_c_werror_flag
3677 fi
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3679 $as_echo "$ac_cv_prog_cc_g" >&6; }
3680 if test "$ac_test_CFLAGS" = set; then
3681 CFLAGS=$ac_save_CFLAGS
3682 elif test $ac_cv_prog_cc_g = yes; then
3683 if test "$GCC" = yes; then
3684 CFLAGS="-g -O2"
3685 else
3686 CFLAGS="-g"
3687 fi
3688 else
3689 if test "$GCC" = yes; then
3690 CFLAGS="-O2"
3691 else
3692 CFLAGS=
3693 fi
3694 fi
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3696 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3697 if ${ac_cv_prog_cc_c89+:} false; then :
3698 $as_echo_n "(cached) " >&6
3699 else
3700 ac_cv_prog_cc_c89=no
3701 ac_save_CC=$CC
3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h. */
3704 #include <stdarg.h>
3705 #include <stdio.h>
3706 #include <sys/types.h>
3707 #include <sys/stat.h>
3708 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3709 struct buf { int x; };
3710 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3711 static char *e (p, i)
3712 char **p;
3713 int i;
3714 {
3715 return p[i];
3716 }
3717 static char *f (char * (*g) (char **, int), char **p, ...)
3718 {
3719 char *s;
3720 va_list v;
3721 va_start (v,p);
3722 s = g (p, va_arg (v,int));
3723 va_end (v);
3724 return s;
3725 }
3726
3727 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3728 function prototypes and stuff, but not '\xHH' hex character constants.
3729 These don't provoke an error unfortunately, instead are silently treated
3730 as 'x'. The following induces an error, until -std is added to get
3731 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3732 array size at least. It's necessary to write '\x00'==0 to get something
3733 that's true only with -std. */
3734 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3735
3736 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3737 inside strings and character constants. */
3738 #define FOO(x) 'x'
3739 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3740
3741 int test (int i, double x);
3742 struct s1 {int (*f) (int a);};
3743 struct s2 {int (*f) (double a);};
3744 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3745 int argc;
3746 char **argv;
3747 int
3748 main ()
3749 {
3750 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3751 ;
3752 return 0;
3753 }
3754 _ACEOF
3755 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3756 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3757 do
3758 CC="$ac_save_CC $ac_arg"
3759 if ac_fn_c_try_compile "$LINENO"; then :
3760 ac_cv_prog_cc_c89=$ac_arg
3761 fi
3762 rm -f core conftest.err conftest.$ac_objext
3763 test "x$ac_cv_prog_cc_c89" != "xno" && break
3764 done
3765 rm -f conftest.$ac_ext
3766 CC=$ac_save_CC
3767
3768 fi
3769 # AC_CACHE_VAL
3770 case "x$ac_cv_prog_cc_c89" in
3771 x)
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3773 $as_echo "none needed" >&6; } ;;
3774 xno)
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3776 $as_echo "unsupported" >&6; } ;;
3777 *)
3778 CC="$CC $ac_cv_prog_cc_c89"
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3780 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3781 esac
3782 if test "x$ac_cv_prog_cc_c89" != xno; then :
3783
3784 fi
3785
3786 ac_ext=c
3787 ac_cpp='$CPP $CPPFLAGS'
3788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3791
3792 depcc="$CC" am_compiler_list=
3793
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3795 $as_echo_n "checking dependency style of $depcc... " >&6; }
3796 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3797 $as_echo_n "(cached) " >&6
3798 else
3799 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3800 # We make a subdir and do the tests there. Otherwise we can end up
3801 # making bogus files that we don't know about and never remove. For
3802 # instance it was reported that on HP-UX the gcc test will end up
3803 # making a dummy file named 'D' -- because '-MD' means "put the output
3804 # in D".
3805 rm -rf conftest.dir
3806 mkdir conftest.dir
3807 # Copy depcomp to subdir because otherwise we won't find it if we're
3808 # using a relative directory.
3809 cp "$am_depcomp" conftest.dir
3810 cd conftest.dir
3811 # We will build objects and dependencies in a subdirectory because
3812 # it helps to detect inapplicable dependency modes. For instance
3813 # both Tru64's cc and ICC support -MD to output dependencies as a
3814 # side effect of compilation, but ICC will put the dependencies in
3815 # the current directory while Tru64 will put them in the object
3816 # directory.
3817 mkdir sub
3818
3819 am_cv_CC_dependencies_compiler_type=none
3820 if test "$am_compiler_list" = ""; then
3821 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3822 fi
3823 am__universal=false
3824 case " $depcc " in #(
3825 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3826 esac
3827
3828 for depmode in $am_compiler_list; do
3829 # Setup a source with many dependencies, because some compilers
3830 # like to wrap large dependency lists on column 80 (with \), and
3831 # we should not choose a depcomp mode which is confused by this.
3832 #
3833 # We need to recreate these files for each test, as the compiler may
3834 # overwrite some of them when testing with obscure command lines.
3835 # This happens at least with the AIX C compiler.
3836 : > sub/conftest.c
3837 for i in 1 2 3 4 5 6; do
3838 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3839 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3840 # Solaris 10 /bin/sh.
3841 echo '/* dummy */' > sub/conftst$i.h
3842 done
3843 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3844
3845 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3846 # mode. It turns out that the SunPro C++ compiler does not properly
3847 # handle '-M -o', and we need to detect this. Also, some Intel
3848 # versions had trouble with output in subdirs.
3849 am__obj=sub/conftest.${OBJEXT-o}
3850 am__minus_obj="-o $am__obj"
3851 case $depmode in
3852 gcc)
3853 # This depmode causes a compiler race in universal mode.
3854 test "$am__universal" = false || continue
3855 ;;
3856 nosideeffect)
3857 # After this tag, mechanisms are not by side-effect, so they'll
3858 # only be used when explicitly requested.
3859 if test "x$enable_dependency_tracking" = xyes; then
3860 continue
3861 else
3862 break
3863 fi
3864 ;;
3865 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3866 # This compiler won't grok '-c -o', but also, the minuso test has
3867 # not run yet. These depmodes are late enough in the game, and
3868 # so weak that their functioning should not be impacted.
3869 am__obj=conftest.${OBJEXT-o}
3870 am__minus_obj=
3871 ;;
3872 none) break ;;
3873 esac
3874 if depmode=$depmode \
3875 source=sub/conftest.c object=$am__obj \
3876 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3877 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3878 >/dev/null 2>conftest.err &&
3879 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3880 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3881 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3882 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3883 # icc doesn't choke on unknown options, it will just issue warnings
3884 # or remarks (even with -Werror). So we grep stderr for any message
3885 # that says an option was ignored or not supported.
3886 # When given -MP, icc 7.0 and 7.1 complain thusly:
3887 # icc: Command line warning: ignoring option '-M'; no argument required
3888 # The diagnosis changed in icc 8.0:
3889 # icc: Command line remark: option '-MP' not supported
3890 if (grep 'ignoring option' conftest.err ||
3891 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3892 am_cv_CC_dependencies_compiler_type=$depmode
3893 break
3894 fi
3895 fi
3896 done
3897
3898 cd ..
3899 rm -rf conftest.dir
3900 else
3901 am_cv_CC_dependencies_compiler_type=none
3902 fi
3903
3904 fi
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3906 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3907 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3908
3909 if
3910 test "x$enable_dependency_tracking" != xno \
3911 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3912 am__fastdepCC_TRUE=
3913 am__fastdepCC_FALSE='#'
3914 else
3915 am__fastdepCC_TRUE='#'
3916 am__fastdepCC_FALSE=
3917 fi
3918
3919
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3921 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3922 if ${ac_cv_path_SED+:} false; then :
3923 $as_echo_n "(cached) " >&6
3924 else
3925 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3926 for ac_i in 1 2 3 4 5 6 7; do
3927 ac_script="$ac_script$as_nl$ac_script"
3928 done
3929 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3930 { ac_script=; unset ac_script;}
3931 if test -z "$SED"; then
3932 ac_path_SED_found=false
3933 # Loop through the user's path and test for each of PROGNAME-LIST
3934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935 for as_dir in $PATH
3936 do
3937 IFS=$as_save_IFS
3938 test -z "$as_dir" && as_dir=.
3939 for ac_prog in sed gsed; do
3940 for ac_exec_ext in '' $ac_executable_extensions; do
3941 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3942 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3943 # Check for GNU ac_path_SED and select it if it is found.
3944 # Check for GNU $ac_path_SED
3945 case `"$ac_path_SED" --version 2>&1` in
3946 *GNU*)
3947 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3948 *)
3949 ac_count=0
3950 $as_echo_n 0123456789 >"conftest.in"
3951 while :
3952 do
3953 cat "conftest.in" "conftest.in" >"conftest.tmp"
3954 mv "conftest.tmp" "conftest.in"
3955 cp "conftest.in" "conftest.nl"
3956 $as_echo '' >> "conftest.nl"
3957 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3958 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3959 as_fn_arith $ac_count + 1 && ac_count=$as_val
3960 if test $ac_count -gt ${ac_path_SED_max-0}; then
3961 # Best one so far, save it but keep looking for a better one
3962 ac_cv_path_SED="$ac_path_SED"
3963 ac_path_SED_max=$ac_count
3964 fi
3965 # 10*(2^10) chars as input seems more than enough
3966 test $ac_count -gt 10 && break
3967 done
3968 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3969 esac
3970
3971 $ac_path_SED_found && break 3
3972 done
3973 done
3974 done
3975 IFS=$as_save_IFS
3976 if test -z "$ac_cv_path_SED"; then
3977 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3978 fi
3979 else
3980 ac_cv_path_SED=$SED
3981 fi
3982
3983 fi
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3985 $as_echo "$ac_cv_path_SED" >&6; }
3986 SED="$ac_cv_path_SED"
3987 rm -f conftest.sed
3988
3989 test -z "$SED" && SED=sed
3990 Xsed="$SED -e 1s/^X//"
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4003 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4004 if ${ac_cv_path_GREP+:} false; then :
4005 $as_echo_n "(cached) " >&6
4006 else
4007 if test -z "$GREP"; then
4008 ac_path_GREP_found=false
4009 # Loop through the user's path and test for each of PROGNAME-LIST
4010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4012 do
4013 IFS=$as_save_IFS
4014 test -z "$as_dir" && as_dir=.
4015 for ac_prog in grep ggrep; do
4016 for ac_exec_ext in '' $ac_executable_extensions; do
4017 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4018 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4019 # Check for GNU ac_path_GREP and select it if it is found.
4020 # Check for GNU $ac_path_GREP
4021 case `"$ac_path_GREP" --version 2>&1` in
4022 *GNU*)
4023 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4024 *)
4025 ac_count=0
4026 $as_echo_n 0123456789 >"conftest.in"
4027 while :
4028 do
4029 cat "conftest.in" "conftest.in" >"conftest.tmp"
4030 mv "conftest.tmp" "conftest.in"
4031 cp "conftest.in" "conftest.nl"
4032 $as_echo 'GREP' >> "conftest.nl"
4033 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4034 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4035 as_fn_arith $ac_count + 1 && ac_count=$as_val
4036 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4037 # Best one so far, save it but keep looking for a better one
4038 ac_cv_path_GREP="$ac_path_GREP"
4039 ac_path_GREP_max=$ac_count
4040 fi
4041 # 10*(2^10) chars as input seems more than enough
4042 test $ac_count -gt 10 && break
4043 done
4044 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4045 esac
4046
4047 $ac_path_GREP_found && break 3
4048 done
4049 done
4050 done
4051 IFS=$as_save_IFS
4052 if test -z "$ac_cv_path_GREP"; then
4053 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4054 fi
4055 else
4056 ac_cv_path_GREP=$GREP
4057 fi
4058
4059 fi
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4061 $as_echo "$ac_cv_path_GREP" >&6; }
4062 GREP="$ac_cv_path_GREP"
4063
4064
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4066 $as_echo_n "checking for egrep... " >&6; }
4067 if ${ac_cv_path_EGREP+:} false; then :
4068 $as_echo_n "(cached) " >&6
4069 else
4070 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4071 then ac_cv_path_EGREP="$GREP -E"
4072 else
4073 if test -z "$EGREP"; then
4074 ac_path_EGREP_found=false
4075 # Loop through the user's path and test for each of PROGNAME-LIST
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4078 do
4079 IFS=$as_save_IFS
4080 test -z "$as_dir" && as_dir=.
4081 for ac_prog in egrep; do
4082 for ac_exec_ext in '' $ac_executable_extensions; do
4083 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4084 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4085 # Check for GNU ac_path_EGREP and select it if it is found.
4086 # Check for GNU $ac_path_EGREP
4087 case `"$ac_path_EGREP" --version 2>&1` in
4088 *GNU*)
4089 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4090 *)
4091 ac_count=0
4092 $as_echo_n 0123456789 >"conftest.in"
4093 while :
4094 do
4095 cat "conftest.in" "conftest.in" >"conftest.tmp"
4096 mv "conftest.tmp" "conftest.in"
4097 cp "conftest.in" "conftest.nl"
4098 $as_echo 'EGREP' >> "conftest.nl"
4099 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4100 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4101 as_fn_arith $ac_count + 1 && ac_count=$as_val
4102 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4103 # Best one so far, save it but keep looking for a better one
4104 ac_cv_path_EGREP="$ac_path_EGREP"
4105 ac_path_EGREP_max=$ac_count
4106 fi
4107 # 10*(2^10) chars as input seems more than enough
4108 test $ac_count -gt 10 && break
4109 done
4110 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4111 esac
4112
4113 $ac_path_EGREP_found && break 3
4114 done
4115 done
4116 done
4117 IFS=$as_save_IFS
4118 if test -z "$ac_cv_path_EGREP"; then
4119 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4120 fi
4121 else
4122 ac_cv_path_EGREP=$EGREP
4123 fi
4124
4125 fi
4126 fi
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4128 $as_echo "$ac_cv_path_EGREP" >&6; }
4129 EGREP="$ac_cv_path_EGREP"
4130
4131
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4133 $as_echo_n "checking for fgrep... " >&6; }
4134 if ${ac_cv_path_FGREP+:} false; then :
4135 $as_echo_n "(cached) " >&6
4136 else
4137 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4138 then ac_cv_path_FGREP="$GREP -F"
4139 else
4140 if test -z "$FGREP"; then
4141 ac_path_FGREP_found=false
4142 # Loop through the user's path and test for each of PROGNAME-LIST
4143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4144 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4145 do
4146 IFS=$as_save_IFS
4147 test -z "$as_dir" && as_dir=.
4148 for ac_prog in fgrep; do
4149 for ac_exec_ext in '' $ac_executable_extensions; do
4150 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4151 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4152 # Check for GNU ac_path_FGREP and select it if it is found.
4153 # Check for GNU $ac_path_FGREP
4154 case `"$ac_path_FGREP" --version 2>&1` in
4155 *GNU*)
4156 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4157 *)
4158 ac_count=0
4159 $as_echo_n 0123456789 >"conftest.in"
4160 while :
4161 do
4162 cat "conftest.in" "conftest.in" >"conftest.tmp"
4163 mv "conftest.tmp" "conftest.in"
4164 cp "conftest.in" "conftest.nl"
4165 $as_echo 'FGREP' >> "conftest.nl"
4166 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4167 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4168 as_fn_arith $ac_count + 1 && ac_count=$as_val
4169 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4170 # Best one so far, save it but keep looking for a better one
4171 ac_cv_path_FGREP="$ac_path_FGREP"
4172 ac_path_FGREP_max=$ac_count
4173 fi
4174 # 10*(2^10) chars as input seems more than enough
4175 test $ac_count -gt 10 && break
4176 done
4177 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4178 esac
4179
4180 $ac_path_FGREP_found && break 3
4181 done
4182 done
4183 done
4184 IFS=$as_save_IFS
4185 if test -z "$ac_cv_path_FGREP"; then
4186 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4187 fi
4188 else
4189 ac_cv_path_FGREP=$FGREP
4190 fi
4191
4192 fi
4193 fi
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4195 $as_echo "$ac_cv_path_FGREP" >&6; }
4196 FGREP="$ac_cv_path_FGREP"
4197
4198
4199 test -z "$GREP" && GREP=grep
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219 # Check whether --with-gnu-ld was given.
4220 if test "${with_gnu_ld+set}" = set; then :
4221 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4222 else
4223 with_gnu_ld=no
4224 fi
4225
4226 ac_prog=ld
4227 if test "$GCC" = yes; then
4228 # Check if gcc -print-prog-name=ld gives a path.
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4230 $as_echo_n "checking for ld used by $CC... " >&6; }
4231 case $host in
4232 *-*-mingw*)
4233 # gcc leaves a trailing carriage return which upsets mingw
4234 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4235 *)
4236 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4237 esac
4238 case $ac_prog in
4239 # Accept absolute paths.
4240 [\\/]* | ?:[\\/]*)
4241 re_direlt='/[^/][^/]*/\.\./'
4242 # Canonicalize the pathname of ld
4243 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4244 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4245 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4246 done
4247 test -z "$LD" && LD="$ac_prog"
4248 ;;
4249 "")
4250 # If it fails, then pretend we aren't using GCC.
4251 ac_prog=ld
4252 ;;
4253 *)
4254 # If it is relative, then search for the first ld in PATH.
4255 with_gnu_ld=unknown
4256 ;;
4257 esac
4258 elif test "$with_gnu_ld" = yes; then
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4260 $as_echo_n "checking for GNU ld... " >&6; }
4261 else
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4263 $as_echo_n "checking for non-GNU ld... " >&6; }
4264 fi
4265 if ${lt_cv_path_LD+:} false; then :
4266 $as_echo_n "(cached) " >&6
4267 else
4268 if test -z "$LD"; then
4269 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4270 for ac_dir in $PATH; do
4271 IFS="$lt_save_ifs"
4272 test -z "$ac_dir" && ac_dir=.
4273 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4274 lt_cv_path_LD="$ac_dir/$ac_prog"
4275 # Check to see if the program is GNU ld. I'd rather use --version,
4276 # but apparently some variants of GNU ld only accept -v.
4277 # Break only if it was the GNU/non-GNU ld that we prefer.
4278 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4279 *GNU* | *'with BFD'*)
4280 test "$with_gnu_ld" != no && break
4281 ;;
4282 *)
4283 test "$with_gnu_ld" != yes && break
4284 ;;
4285 esac
4286 fi
4287 done
4288 IFS="$lt_save_ifs"
4289 else
4290 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4291 fi
4292 fi
4293
4294 LD="$lt_cv_path_LD"
4295 if test -n "$LD"; then
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4297 $as_echo "$LD" >&6; }
4298 else
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4300 $as_echo "no" >&6; }
4301 fi
4302 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4304 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4305 if ${lt_cv_prog_gnu_ld+:} false; then :
4306 $as_echo_n "(cached) " >&6
4307 else
4308 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4309 case `$LD -v 2>&1 </dev/null` in
4310 *GNU* | *'with BFD'*)
4311 lt_cv_prog_gnu_ld=yes
4312 ;;
4313 *)
4314 lt_cv_prog_gnu_ld=no
4315 ;;
4316 esac
4317 fi
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4319 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4320 with_gnu_ld=$lt_cv_prog_gnu_ld
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4331 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4332 if ${lt_cv_path_NM+:} false; then :
4333 $as_echo_n "(cached) " >&6
4334 else
4335 if test -n "$NM"; then
4336 # Let the user override the test.
4337 lt_cv_path_NM="$NM"
4338 else
4339 lt_nm_to_check="${ac_tool_prefix}nm"
4340 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4341 lt_nm_to_check="$lt_nm_to_check nm"
4342 fi
4343 for lt_tmp_nm in $lt_nm_to_check; do
4344 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4345 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4346 IFS="$lt_save_ifs"
4347 test -z "$ac_dir" && ac_dir=.
4348 tmp_nm="$ac_dir/$lt_tmp_nm"
4349 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4350 # Check to see if the nm accepts a BSD-compat flag.
4351 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4352 # nm: unknown option "B" ignored
4353 # Tru64's nm complains that /dev/null is an invalid object file
4354 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4355 */dev/null* | *'Invalid file or object type'*)
4356 lt_cv_path_NM="$tmp_nm -B"
4357 break
4358 ;;
4359 *)
4360 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4361 */dev/null*)
4362 lt_cv_path_NM="$tmp_nm -p"
4363 break
4364 ;;
4365 *)
4366 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4367 continue # so that we can try to find one that supports BSD flags
4368 ;;
4369 esac
4370 ;;
4371 esac
4372 fi
4373 done
4374 IFS="$lt_save_ifs"
4375 done
4376 : ${lt_cv_path_NM=no}
4377 fi
4378 fi
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4380 $as_echo "$lt_cv_path_NM" >&6; }
4381 if test "$lt_cv_path_NM" != "no"; then
4382 NM="$lt_cv_path_NM"
4383 else
4384 # Didn't find any BSD compatible name lister, look for dumpbin.
4385 if test -n "$DUMPBIN"; then :
4386 # Let the user override the test.
4387 else
4388 if test -n "$ac_tool_prefix"; then
4389 for ac_prog in dumpbin "link -dump"
4390 do
4391 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4392 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4394 $as_echo_n "checking for $ac_word... " >&6; }
4395 if ${ac_cv_prog_DUMPBIN+:} false; then :
4396 $as_echo_n "(cached) " >&6
4397 else
4398 if test -n "$DUMPBIN"; then
4399 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4400 else
4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402 for as_dir in $PATH
4403 do
4404 IFS=$as_save_IFS
4405 test -z "$as_dir" && as_dir=.
4406 for ac_exec_ext in '' $ac_executable_extensions; do
4407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4408 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4410 break 2
4411 fi
4412 done
4413 done
4414 IFS=$as_save_IFS
4415
4416 fi
4417 fi
4418 DUMPBIN=$ac_cv_prog_DUMPBIN
4419 if test -n "$DUMPBIN"; then
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4421 $as_echo "$DUMPBIN" >&6; }
4422 else
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4424 $as_echo "no" >&6; }
4425 fi
4426
4427
4428 test -n "$DUMPBIN" && break
4429 done
4430 fi
4431 if test -z "$DUMPBIN"; then
4432 ac_ct_DUMPBIN=$DUMPBIN
4433 for ac_prog in dumpbin "link -dump"
4434 do
4435 # Extract the first word of "$ac_prog", so it can be a program name with args.
4436 set dummy $ac_prog; ac_word=$2
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4438 $as_echo_n "checking for $ac_word... " >&6; }
4439 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4440 $as_echo_n "(cached) " >&6
4441 else
4442 if test -n "$ac_ct_DUMPBIN"; then
4443 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4444 else
4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 for as_dir in $PATH
4447 do
4448 IFS=$as_save_IFS
4449 test -z "$as_dir" && as_dir=.
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4452 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4454 break 2
4455 fi
4456 done
4457 done
4458 IFS=$as_save_IFS
4459
4460 fi
4461 fi
4462 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4463 if test -n "$ac_ct_DUMPBIN"; then
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4465 $as_echo "$ac_ct_DUMPBIN" >&6; }
4466 else
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4468 $as_echo "no" >&6; }
4469 fi
4470
4471
4472 test -n "$ac_ct_DUMPBIN" && break
4473 done
4474
4475 if test "x$ac_ct_DUMPBIN" = x; then
4476 DUMPBIN=":"
4477 else
4478 case $cross_compiling:$ac_tool_warned in
4479 yes:)
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4482 ac_tool_warned=yes ;;
4483 esac
4484 DUMPBIN=$ac_ct_DUMPBIN
4485 fi
4486 fi
4487
4488 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4489 *COFF*)
4490 DUMPBIN="$DUMPBIN -symbols"
4491 ;;
4492 *)
4493 DUMPBIN=:
4494 ;;
4495 esac
4496 fi
4497
4498 if test "$DUMPBIN" != ":"; then
4499 NM="$DUMPBIN"
4500 fi
4501 fi
4502 test -z "$NM" && NM=nm
4503
4504
4505
4506
4507
4508
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4510 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4511 if ${lt_cv_nm_interface+:} false; then :
4512 $as_echo_n "(cached) " >&6
4513 else
4514 lt_cv_nm_interface="BSD nm"
4515 echo "int some_variable = 0;" > conftest.$ac_ext
4516 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4517 (eval "$ac_compile" 2>conftest.err)
4518 cat conftest.err >&5
4519 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4520 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4521 cat conftest.err >&5
4522 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4523 cat conftest.out >&5
4524 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4525 lt_cv_nm_interface="MS dumpbin"
4526 fi
4527 rm -f conftest*
4528 fi
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4530 $as_echo "$lt_cv_nm_interface" >&6; }
4531
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4533 $as_echo_n "checking whether ln -s works... " >&6; }
4534 LN_S=$as_ln_s
4535 if test "$LN_S" = "ln -s"; then
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4537 $as_echo "yes" >&6; }
4538 else
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4540 $as_echo "no, using $LN_S" >&6; }
4541 fi
4542
4543 # find the maximum length of command line arguments
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4545 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4546 if ${lt_cv_sys_max_cmd_len+:} false; then :
4547 $as_echo_n "(cached) " >&6
4548 else
4549 i=0
4550 teststring="ABCD"
4551
4552 case $build_os in
4553 msdosdjgpp*)
4554 # On DJGPP, this test can blow up pretty badly due to problems in libc
4555 # (any single argument exceeding 2000 bytes causes a buffer overrun
4556 # during glob expansion). Even if it were fixed, the result of this
4557 # check would be larger than it should be.
4558 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4559 ;;
4560
4561 gnu*)
4562 # Under GNU Hurd, this test is not required because there is
4563 # no limit to the length of command line arguments.
4564 # Libtool will interpret -1 as no limit whatsoever
4565 lt_cv_sys_max_cmd_len=-1;
4566 ;;
4567
4568 cygwin* | mingw* | cegcc*)
4569 # On Win9x/ME, this test blows up -- it succeeds, but takes
4570 # about 5 minutes as the teststring grows exponentially.
4571 # Worse, since 9x/ME are not pre-emptively multitasking,
4572 # you end up with a "frozen" computer, even though with patience
4573 # the test eventually succeeds (with a max line length of 256k).
4574 # Instead, let's just punt: use the minimum linelength reported by
4575 # all of the supported platforms: 8192 (on NT/2K/XP).
4576 lt_cv_sys_max_cmd_len=8192;
4577 ;;
4578
4579 mint*)
4580 # On MiNT this can take a long time and run out of memory.
4581 lt_cv_sys_max_cmd_len=8192;
4582 ;;
4583
4584 amigaos*)
4585 # On AmigaOS with pdksh, this test takes hours, literally.
4586 # So we just punt and use a minimum line length of 8192.
4587 lt_cv_sys_max_cmd_len=8192;
4588 ;;
4589
4590 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4591 # This has been around since 386BSD, at least. Likely further.
4592 if test -x /sbin/sysctl; then
4593 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4594 elif test -x /usr/sbin/sysctl; then
4595 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4596 else
4597 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4598 fi
4599 # And add a safety zone
4600 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4601 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4602 ;;
4603
4604 interix*)
4605 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4606 lt_cv_sys_max_cmd_len=196608
4607 ;;
4608
4609 os2*)
4610 # The test takes a long time on OS/2.
4611 lt_cv_sys_max_cmd_len=8192
4612 ;;
4613
4614 osf*)
4615 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4616 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4617 # nice to cause kernel panics so lets avoid the loop below.
4618 # First set a reasonable default.
4619 lt_cv_sys_max_cmd_len=16384
4620 #
4621 if test -x /sbin/sysconfig; then
4622 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4623 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4624 esac
4625 fi
4626 ;;
4627 sco3.2v5*)
4628 lt_cv_sys_max_cmd_len=102400
4629 ;;
4630 sysv5* | sco5v6* | sysv4.2uw2*)
4631 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4632 if test -n "$kargmax"; then
4633 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4634 else
4635 lt_cv_sys_max_cmd_len=32768
4636 fi
4637 ;;
4638 *)
4639 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4640 if test -n "$lt_cv_sys_max_cmd_len"; then
4641 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4642 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4643 else
4644 # Make teststring a little bigger before we do anything with it.
4645 # a 1K string should be a reasonable start.
4646 for i in 1 2 3 4 5 6 7 8 ; do
4647 teststring=$teststring$teststring
4648 done
4649 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4650 # If test is not a shell built-in, we'll probably end up computing a
4651 # maximum length that is only half of the actual maximum length, but
4652 # we can't tell.
4653 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4654 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4655 test $i != 17 # 1/2 MB should be enough
4656 do
4657 i=`expr $i + 1`
4658 teststring=$teststring$teststring
4659 done
4660 # Only check the string length outside the loop.
4661 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4662 teststring=
4663 # Add a significant safety factor because C++ compilers can tack on
4664 # massive amounts of additional arguments before passing them to the
4665 # linker. It appears as though 1/2 is a usable value.
4666 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4667 fi
4668 ;;
4669 esac
4670
4671 fi
4672
4673 if test -n $lt_cv_sys_max_cmd_len ; then
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4675 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4676 else
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4678 $as_echo "none" >&6; }
4679 fi
4680 max_cmd_len=$lt_cv_sys_max_cmd_len
4681
4682
4683
4684
4685
4686
4687 : ${CP="cp -f"}
4688 : ${MV="mv -f"}
4689 : ${RM="rm -f"}
4690
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4692 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4693 # Try some XSI features
4694 xsi_shell=no
4695 ( _lt_dummy="a/b/c"
4696 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4697 = c,a/b,b/c, \
4698 && eval 'test $(( 1 + 1 )) -eq 2 \
4699 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4700 && xsi_shell=yes
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4702 $as_echo "$xsi_shell" >&6; }
4703
4704
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4706 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4707 lt_shell_append=no
4708 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4709 >/dev/null 2>&1 \
4710 && lt_shell_append=yes
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4712 $as_echo "$lt_shell_append" >&6; }
4713
4714
4715 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4716 lt_unset=unset
4717 else
4718 lt_unset=false
4719 fi
4720
4721
4722
4723
4724
4725 # test EBCDIC or ASCII
4726 case `echo X|tr X '\101'` in
4727 A) # ASCII based system
4728 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4729 lt_SP2NL='tr \040 \012'
4730 lt_NL2SP='tr \015\012 \040\040'
4731 ;;
4732 *) # EBCDIC based system
4733 lt_SP2NL='tr \100 \n'
4734 lt_NL2SP='tr \r\n \100\100'
4735 ;;
4736 esac
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4747 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4748 if ${lt_cv_to_host_file_cmd+:} false; then :
4749 $as_echo_n "(cached) " >&6
4750 else
4751 case $host in
4752 *-*-mingw* )
4753 case $build in
4754 *-*-mingw* ) # actually msys
4755 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4756 ;;
4757 *-*-cygwin* )
4758 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4759 ;;
4760 * ) # otherwise, assume *nix
4761 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4762 ;;
4763 esac
4764 ;;
4765 *-*-cygwin* )
4766 case $build in
4767 *-*-mingw* ) # actually msys
4768 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4769 ;;
4770 *-*-cygwin* )
4771 lt_cv_to_host_file_cmd=func_convert_file_noop
4772 ;;
4773 * ) # otherwise, assume *nix
4774 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4775 ;;
4776 esac
4777 ;;
4778 * ) # unhandled hosts (and "normal" native builds)
4779 lt_cv_to_host_file_cmd=func_convert_file_noop
4780 ;;
4781 esac
4782
4783 fi
4784
4785 to_host_file_cmd=$lt_cv_to_host_file_cmd
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4787 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4788
4789
4790
4791
4792
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4794 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4795 if ${lt_cv_to_tool_file_cmd+:} false; then :
4796 $as_echo_n "(cached) " >&6
4797 else
4798 #assume ordinary cross tools, or native build.
4799 lt_cv_to_tool_file_cmd=func_convert_file_noop
4800 case $host in
4801 *-*-mingw* )
4802 case $build in
4803 *-*-mingw* ) # actually msys
4804 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4805 ;;
4806 esac
4807 ;;
4808 esac
4809
4810 fi
4811
4812 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4814 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4815
4816
4817
4818
4819
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4821 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4822 if ${lt_cv_ld_reload_flag+:} false; then :
4823 $as_echo_n "(cached) " >&6
4824 else
4825 lt_cv_ld_reload_flag='-r'
4826 fi
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4828 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4829 reload_flag=$lt_cv_ld_reload_flag
4830 case $reload_flag in
4831 "" | " "*) ;;
4832 *) reload_flag=" $reload_flag" ;;
4833 esac
4834 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4835 case $host_os in
4836 cygwin* | mingw* | pw32* | cegcc*)
4837 if test "$GCC" != yes; then
4838 reload_cmds=false
4839 fi
4840 ;;
4841 darwin*)
4842 if test "$GCC" = yes; then
4843 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4844 else
4845 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4846 fi
4847 ;;
4848 esac
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858 if test -n "$ac_tool_prefix"; then
4859 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4860 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4862 $as_echo_n "checking for $ac_word... " >&6; }
4863 if ${ac_cv_prog_OBJDUMP+:} false; then :
4864 $as_echo_n "(cached) " >&6
4865 else
4866 if test -n "$OBJDUMP"; then
4867 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4868 else
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 for as_dir in $PATH
4871 do
4872 IFS=$as_save_IFS
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4876 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 break 2
4879 fi
4880 done
4881 done
4882 IFS=$as_save_IFS
4883
4884 fi
4885 fi
4886 OBJDUMP=$ac_cv_prog_OBJDUMP
4887 if test -n "$OBJDUMP"; then
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4889 $as_echo "$OBJDUMP" >&6; }
4890 else
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892 $as_echo "no" >&6; }
4893 fi
4894
4895
4896 fi
4897 if test -z "$ac_cv_prog_OBJDUMP"; then
4898 ac_ct_OBJDUMP=$OBJDUMP
4899 # Extract the first word of "objdump", so it can be a program name with args.
4900 set dummy objdump; ac_word=$2
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4902 $as_echo_n "checking for $ac_word... " >&6; }
4903 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4904 $as_echo_n "(cached) " >&6
4905 else
4906 if test -n "$ac_ct_OBJDUMP"; then
4907 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4908 else
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 for as_dir in $PATH
4911 do
4912 IFS=$as_save_IFS
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4916 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 break 2
4919 fi
4920 done
4921 done
4922 IFS=$as_save_IFS
4923
4924 fi
4925 fi
4926 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4927 if test -n "$ac_ct_OBJDUMP"; then
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4929 $as_echo "$ac_ct_OBJDUMP" >&6; }
4930 else
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4932 $as_echo "no" >&6; }
4933 fi
4934
4935 if test "x$ac_ct_OBJDUMP" = x; then
4936 OBJDUMP="false"
4937 else
4938 case $cross_compiling:$ac_tool_warned in
4939 yes:)
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4942 ac_tool_warned=yes ;;
4943 esac
4944 OBJDUMP=$ac_ct_OBJDUMP
4945 fi
4946 else
4947 OBJDUMP="$ac_cv_prog_OBJDUMP"
4948 fi
4949
4950 test -z "$OBJDUMP" && OBJDUMP=objdump
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4961 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4962 if ${lt_cv_deplibs_check_method+:} false; then :
4963 $as_echo_n "(cached) " >&6
4964 else
4965 lt_cv_file_magic_cmd='$MAGIC_CMD'
4966 lt_cv_file_magic_test_file=
4967 lt_cv_deplibs_check_method='unknown'
4968 # Need to set the preceding variable on all platforms that support
4969 # interlibrary dependencies.
4970 # 'none' -- dependencies not supported.
4971 # `unknown' -- same as none, but documents that we really don't know.
4972 # 'pass_all' -- all dependencies passed with no checks.
4973 # 'test_compile' -- check by making test program.
4974 # 'file_magic [[regex]]' -- check by looking for files in library path
4975 # which responds to the $file_magic_cmd with a given extended regex.
4976 # If you have `file' or equivalent on your system and you're not sure
4977 # whether `pass_all' will *always* work, you probably want this one.
4978
4979 case $host_os in
4980 aix[4-9]*)
4981 lt_cv_deplibs_check_method=pass_all
4982 ;;
4983
4984 beos*)
4985 lt_cv_deplibs_check_method=pass_all
4986 ;;
4987
4988 bsdi[45]*)
4989 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4990 lt_cv_file_magic_cmd='/usr/bin/file -L'
4991 lt_cv_file_magic_test_file=/shlib/libc.so
4992 ;;
4993
4994 cygwin*)
4995 # func_win32_libid is a shell function defined in ltmain.sh
4996 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4997 lt_cv_file_magic_cmd='func_win32_libid'
4998 ;;
4999
5000 mingw* | pw32*)
5001 # Base MSYS/MinGW do not provide the 'file' command needed by
5002 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5003 # unless we find 'file', for example because we are cross-compiling.
5004 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5005 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5006 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5007 lt_cv_file_magic_cmd='func_win32_libid'
5008 else
5009 # Keep this pattern in sync with the one in func_win32_libid.
5010 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5011 lt_cv_file_magic_cmd='$OBJDUMP -f'
5012 fi
5013 ;;
5014
5015 cegcc*)
5016 # use the weaker test based on 'objdump'. See mingw*.
5017 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5018 lt_cv_file_magic_cmd='$OBJDUMP -f'
5019 ;;
5020
5021 darwin* | rhapsody*)
5022 lt_cv_deplibs_check_method=pass_all
5023 ;;
5024
5025 freebsd* | dragonfly*)
5026 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5027 case $host_cpu in
5028 i*86 )
5029 # Not sure whether the presence of OpenBSD here was a mistake.
5030 # Let's accept both of them until this is cleared up.
5031 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5032 lt_cv_file_magic_cmd=/usr/bin/file
5033 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5034 ;;
5035 esac
5036 else
5037 lt_cv_deplibs_check_method=pass_all
5038 fi
5039 ;;
5040
5041 gnu*)
5042 lt_cv_deplibs_check_method=pass_all
5043 ;;
5044
5045 haiku*)
5046 lt_cv_deplibs_check_method=pass_all
5047 ;;
5048
5049 hpux10.20* | hpux11*)
5050 lt_cv_file_magic_cmd=/usr/bin/file
5051 case $host_cpu in
5052 ia64*)
5053 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5054 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5055 ;;
5056 hppa*64*)
5057 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]'
5058 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5059 ;;
5060 *)
5061 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5062 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5063 ;;
5064 esac
5065 ;;
5066
5067 interix[3-9]*)
5068 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5069 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5070 ;;
5071
5072 irix5* | irix6* | nonstopux*)
5073 case $LD in
5074 *-32|*"-32 ") libmagic=32-bit;;
5075 *-n32|*"-n32 ") libmagic=N32;;
5076 *-64|*"-64 ") libmagic=64-bit;;
5077 *) libmagic=never-match;;
5078 esac
5079 lt_cv_deplibs_check_method=pass_all
5080 ;;
5081
5082 # This must be glibc/ELF.
5083 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5084 lt_cv_deplibs_check_method=pass_all
5085 ;;
5086
5087 netbsd*)
5088 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5089 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5090 else
5091 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5092 fi
5093 ;;
5094
5095 newos6*)
5096 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5097 lt_cv_file_magic_cmd=/usr/bin/file
5098 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5099 ;;
5100
5101 *nto* | *qnx*)
5102 lt_cv_deplibs_check_method=pass_all
5103 ;;
5104
5105 openbsd*)
5106 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5107 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5108 else
5109 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5110 fi
5111 ;;
5112
5113 osf3* | osf4* | osf5*)
5114 lt_cv_deplibs_check_method=pass_all
5115 ;;
5116
5117 rdos*)
5118 lt_cv_deplibs_check_method=pass_all
5119 ;;
5120
5121 solaris*)
5122 lt_cv_deplibs_check_method=pass_all
5123 ;;
5124
5125 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5126 lt_cv_deplibs_check_method=pass_all
5127 ;;
5128
5129 sysv4 | sysv4.3*)
5130 case $host_vendor in
5131 motorola)
5132 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]'
5133 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5134 ;;
5135 ncr)
5136 lt_cv_deplibs_check_method=pass_all
5137 ;;
5138 sequent)
5139 lt_cv_file_magic_cmd='/bin/file'
5140 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5141 ;;
5142 sni)
5143 lt_cv_file_magic_cmd='/bin/file'
5144 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5145 lt_cv_file_magic_test_file=/lib/libc.so
5146 ;;
5147 siemens)
5148 lt_cv_deplibs_check_method=pass_all
5149 ;;
5150 pc)
5151 lt_cv_deplibs_check_method=pass_all
5152 ;;
5153 esac
5154 ;;
5155
5156 tpf*)
5157 lt_cv_deplibs_check_method=pass_all
5158 ;;
5159 esac
5160
5161 fi
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5163 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5164
5165 file_magic_glob=
5166 want_nocaseglob=no
5167 if test "$build" = "$host"; then
5168 case $host_os in
5169 mingw* | pw32*)
5170 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5171 want_nocaseglob=yes
5172 else
5173 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5174 fi
5175 ;;
5176 esac
5177 fi
5178
5179 file_magic_cmd=$lt_cv_file_magic_cmd
5180 deplibs_check_method=$lt_cv_deplibs_check_method
5181 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204 if test -n "$ac_tool_prefix"; then
5205 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5206 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5208 $as_echo_n "checking for $ac_word... " >&6; }
5209 if ${ac_cv_prog_DLLTOOL+:} false; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 if test -n "$DLLTOOL"; then
5213 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5214 else
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 for as_dir in $PATH
5217 do
5218 IFS=$as_save_IFS
5219 test -z "$as_dir" && as_dir=.
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5222 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5224 break 2
5225 fi
5226 done
5227 done
5228 IFS=$as_save_IFS
5229
5230 fi
5231 fi
5232 DLLTOOL=$ac_cv_prog_DLLTOOL
5233 if test -n "$DLLTOOL"; then
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5235 $as_echo "$DLLTOOL" >&6; }
5236 else
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238 $as_echo "no" >&6; }
5239 fi
5240
5241
5242 fi
5243 if test -z "$ac_cv_prog_DLLTOOL"; then
5244 ac_ct_DLLTOOL=$DLLTOOL
5245 # Extract the first word of "dlltool", so it can be a program name with args.
5246 set dummy dlltool; ac_word=$2
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248 $as_echo_n "checking for $ac_word... " >&6; }
5249 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5250 $as_echo_n "(cached) " >&6
5251 else
5252 if test -n "$ac_ct_DLLTOOL"; then
5253 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5254 else
5255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 for as_dir in $PATH
5257 do
5258 IFS=$as_save_IFS
5259 test -z "$as_dir" && as_dir=.
5260 for ac_exec_ext in '' $ac_executable_extensions; do
5261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5262 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5264 break 2
5265 fi
5266 done
5267 done
5268 IFS=$as_save_IFS
5269
5270 fi
5271 fi
5272 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5273 if test -n "$ac_ct_DLLTOOL"; then
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5275 $as_echo "$ac_ct_DLLTOOL" >&6; }
5276 else
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5278 $as_echo "no" >&6; }
5279 fi
5280
5281 if test "x$ac_ct_DLLTOOL" = x; then
5282 DLLTOOL="false"
5283 else
5284 case $cross_compiling:$ac_tool_warned in
5285 yes:)
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5288 ac_tool_warned=yes ;;
5289 esac
5290 DLLTOOL=$ac_ct_DLLTOOL
5291 fi
5292 else
5293 DLLTOOL="$ac_cv_prog_DLLTOOL"
5294 fi
5295
5296 test -z "$DLLTOOL" && DLLTOOL=dlltool
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5308 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5309 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5310 $as_echo_n "(cached) " >&6
5311 else
5312 lt_cv_sharedlib_from_linklib_cmd='unknown'
5313
5314 case $host_os in
5315 cygwin* | mingw* | pw32* | cegcc*)
5316 # two different shell functions defined in ltmain.sh
5317 # decide which to use based on capabilities of $DLLTOOL
5318 case `$DLLTOOL --help 2>&1` in
5319 *--identify-strict*)
5320 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5321 ;;
5322 *)
5323 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5324 ;;
5325 esac
5326 ;;
5327 *)
5328 # fallback: assume linklib IS sharedlib
5329 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5330 ;;
5331 esac
5332
5333 fi
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5335 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5336 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5337 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5338
5339
5340
5341
5342
5343
5344
5345
5346 if test -n "$ac_tool_prefix"; then
5347 for ac_prog in ar
5348 do
5349 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5350 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5352 $as_echo_n "checking for $ac_word... " >&6; }
5353 if ${ac_cv_prog_AR+:} false; then :
5354 $as_echo_n "(cached) " >&6
5355 else
5356 if test -n "$AR"; then
5357 ac_cv_prog_AR="$AR" # Let the user override the test.
5358 else
5359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 for as_dir in $PATH
5361 do
5362 IFS=$as_save_IFS
5363 test -z "$as_dir" && as_dir=.
5364 for ac_exec_ext in '' $ac_executable_extensions; do
5365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5366 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 break 2
5369 fi
5370 done
5371 done
5372 IFS=$as_save_IFS
5373
5374 fi
5375 fi
5376 AR=$ac_cv_prog_AR
5377 if test -n "$AR"; then
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5379 $as_echo "$AR" >&6; }
5380 else
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382 $as_echo "no" >&6; }
5383 fi
5384
5385
5386 test -n "$AR" && break
5387 done
5388 fi
5389 if test -z "$AR"; then
5390 ac_ct_AR=$AR
5391 for ac_prog in ar
5392 do
5393 # Extract the first word of "$ac_prog", so it can be a program name with args.
5394 set dummy $ac_prog; ac_word=$2
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5396 $as_echo_n "checking for $ac_word... " >&6; }
5397 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5398 $as_echo_n "(cached) " >&6
5399 else
5400 if test -n "$ac_ct_AR"; then
5401 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5402 else
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 for as_dir in $PATH
5405 do
5406 IFS=$as_save_IFS
5407 test -z "$as_dir" && as_dir=.
5408 for ac_exec_ext in '' $ac_executable_extensions; do
5409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5410 ac_cv_prog_ac_ct_AR="$ac_prog"
5411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5412 break 2
5413 fi
5414 done
5415 done
5416 IFS=$as_save_IFS
5417
5418 fi
5419 fi
5420 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5421 if test -n "$ac_ct_AR"; then
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5423 $as_echo "$ac_ct_AR" >&6; }
5424 else
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426 $as_echo "no" >&6; }
5427 fi
5428
5429
5430 test -n "$ac_ct_AR" && break
5431 done
5432
5433 if test "x$ac_ct_AR" = x; then
5434 AR="false"
5435 else
5436 case $cross_compiling:$ac_tool_warned in
5437 yes:)
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5440 ac_tool_warned=yes ;;
5441 esac
5442 AR=$ac_ct_AR
5443 fi
5444 fi
5445
5446 : ${AR=ar}
5447 : ${AR_FLAGS=cru}
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5460 $as_echo_n "checking for archiver @FILE support... " >&6; }
5461 if ${lt_cv_ar_at_file+:} false; then :
5462 $as_echo_n "(cached) " >&6
5463 else
5464 lt_cv_ar_at_file=no
5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h. */
5467
5468 int
5469 main ()
5470 {
5471
5472 ;
5473 return 0;
5474 }
5475 _ACEOF
5476 if ac_fn_c_try_compile "$LINENO"; then :
5477 echo conftest.$ac_objext > conftest.lst
5478 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5480 (eval $lt_ar_try) 2>&5
5481 ac_status=$?
5482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5483 test $ac_status = 0; }
5484 if test "$ac_status" -eq 0; then
5485 # Ensure the archiver fails upon bogus file names.
5486 rm -f conftest.$ac_objext libconftest.a
5487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5488 (eval $lt_ar_try) 2>&5
5489 ac_status=$?
5490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5491 test $ac_status = 0; }
5492 if test "$ac_status" -ne 0; then
5493 lt_cv_ar_at_file=@
5494 fi
5495 fi
5496 rm -f conftest.* libconftest.a
5497
5498 fi
5499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5500
5501 fi
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5503 $as_echo "$lt_cv_ar_at_file" >&6; }
5504
5505 if test "x$lt_cv_ar_at_file" = xno; then
5506 archiver_list_spec=
5507 else
5508 archiver_list_spec=$lt_cv_ar_at_file
5509 fi
5510
5511
5512
5513
5514
5515
5516
5517 if test -n "$ac_tool_prefix"; then
5518 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5519 set dummy ${ac_tool_prefix}strip; ac_word=$2
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5521 $as_echo_n "checking for $ac_word... " >&6; }
5522 if ${ac_cv_prog_STRIP+:} false; then :
5523 $as_echo_n "(cached) " >&6
5524 else
5525 if test -n "$STRIP"; then
5526 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5527 else
5528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 for as_dir in $PATH
5530 do
5531 IFS=$as_save_IFS
5532 test -z "$as_dir" && as_dir=.
5533 for ac_exec_ext in '' $ac_executable_extensions; do
5534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5535 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5537 break 2
5538 fi
5539 done
5540 done
5541 IFS=$as_save_IFS
5542
5543 fi
5544 fi
5545 STRIP=$ac_cv_prog_STRIP
5546 if test -n "$STRIP"; then
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5548 $as_echo "$STRIP" >&6; }
5549 else
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5551 $as_echo "no" >&6; }
5552 fi
5553
5554
5555 fi
5556 if test -z "$ac_cv_prog_STRIP"; then
5557 ac_ct_STRIP=$STRIP
5558 # Extract the first word of "strip", so it can be a program name with args.
5559 set dummy strip; ac_word=$2
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5561 $as_echo_n "checking for $ac_word... " >&6; }
5562 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5563 $as_echo_n "(cached) " >&6
5564 else
5565 if test -n "$ac_ct_STRIP"; then
5566 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5567 else
5568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569 for as_dir in $PATH
5570 do
5571 IFS=$as_save_IFS
5572 test -z "$as_dir" && as_dir=.
5573 for ac_exec_ext in '' $ac_executable_extensions; do
5574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5575 ac_cv_prog_ac_ct_STRIP="strip"
5576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5577 break 2
5578 fi
5579 done
5580 done
5581 IFS=$as_save_IFS
5582
5583 fi
5584 fi
5585 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5586 if test -n "$ac_ct_STRIP"; then
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5588 $as_echo "$ac_ct_STRIP" >&6; }
5589 else
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5591 $as_echo "no" >&6; }
5592 fi
5593
5594 if test "x$ac_ct_STRIP" = x; then
5595 STRIP=":"
5596 else
5597 case $cross_compiling:$ac_tool_warned in
5598 yes:)
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5601 ac_tool_warned=yes ;;
5602 esac
5603 STRIP=$ac_ct_STRIP
5604 fi
5605 else
5606 STRIP="$ac_cv_prog_STRIP"
5607 fi
5608
5609 test -z "$STRIP" && STRIP=:
5610
5611
5612
5613
5614
5615
5616 if test -n "$ac_tool_prefix"; then
5617 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5618 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5620 $as_echo_n "checking for $ac_word... " >&6; }
5621 if ${ac_cv_prog_RANLIB+:} false; then :
5622 $as_echo_n "(cached) " >&6
5623 else
5624 if test -n "$RANLIB"; then
5625 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5626 else
5627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628 for as_dir in $PATH
5629 do
5630 IFS=$as_save_IFS
5631 test -z "$as_dir" && as_dir=.
5632 for ac_exec_ext in '' $ac_executable_extensions; do
5633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5634 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5636 break 2
5637 fi
5638 done
5639 done
5640 IFS=$as_save_IFS
5641
5642 fi
5643 fi
5644 RANLIB=$ac_cv_prog_RANLIB
5645 if test -n "$RANLIB"; then
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5647 $as_echo "$RANLIB" >&6; }
5648 else
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650 $as_echo "no" >&6; }
5651 fi
5652
5653
5654 fi
5655 if test -z "$ac_cv_prog_RANLIB"; then
5656 ac_ct_RANLIB=$RANLIB
5657 # Extract the first word of "ranlib", so it can be a program name with args.
5658 set dummy ranlib; ac_word=$2
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5660 $as_echo_n "checking for $ac_word... " >&6; }
5661 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5662 $as_echo_n "(cached) " >&6
5663 else
5664 if test -n "$ac_ct_RANLIB"; then
5665 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5666 else
5667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668 for as_dir in $PATH
5669 do
5670 IFS=$as_save_IFS
5671 test -z "$as_dir" && as_dir=.
5672 for ac_exec_ext in '' $ac_executable_extensions; do
5673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5674 ac_cv_prog_ac_ct_RANLIB="ranlib"
5675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5676 break 2
5677 fi
5678 done
5679 done
5680 IFS=$as_save_IFS
5681
5682 fi
5683 fi
5684 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5685 if test -n "$ac_ct_RANLIB"; then
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5687 $as_echo "$ac_ct_RANLIB" >&6; }
5688 else
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5690 $as_echo "no" >&6; }
5691 fi
5692
5693 if test "x$ac_ct_RANLIB" = x; then
5694 RANLIB=":"
5695 else
5696 case $cross_compiling:$ac_tool_warned in
5697 yes:)
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5700 ac_tool_warned=yes ;;
5701 esac
5702 RANLIB=$ac_ct_RANLIB
5703 fi
5704 else
5705 RANLIB="$ac_cv_prog_RANLIB"
5706 fi
5707
5708 test -z "$RANLIB" && RANLIB=:
5709
5710
5711
5712
5713
5714
5715 # Determine commands to create old-style static archives.
5716 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5717 old_postinstall_cmds='chmod 644 $oldlib'
5718 old_postuninstall_cmds=
5719
5720 if test -n "$RANLIB"; then
5721 case $host_os in
5722 openbsd*)
5723 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5724 ;;
5725 *)
5726 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5727 ;;
5728 esac
5729 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5730 fi
5731
5732 case $host_os in
5733 darwin*)
5734 lock_old_archive_extraction=yes ;;
5735 *)
5736 lock_old_archive_extraction=no ;;
5737 esac
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777 # If no C compiler was specified, use CC.
5778 LTCC=${LTCC-"$CC"}
5779
5780 # If no C compiler flags were specified, use CFLAGS.
5781 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5782
5783 # Allow CC to be a program name with arguments.
5784 compiler=$CC
5785
5786
5787 # Check for command to grab the raw symbol name followed by C symbol from nm.
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5789 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5790 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5791 $as_echo_n "(cached) " >&6
5792 else
5793
5794 # These are sane defaults that work on at least a few old systems.
5795 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5796
5797 # Character class describing NM global symbol codes.
5798 symcode='[BCDEGRST]'
5799
5800 # Regexp to match symbols that can be accessed directly from C.
5801 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5802
5803 # Define system-specific variables.
5804 case $host_os in
5805 aix*)
5806 symcode='[BCDT]'
5807 ;;
5808 cygwin* | mingw* | pw32* | cegcc*)
5809 symcode='[ABCDGISTW]'
5810 ;;
5811 hpux*)
5812 if test "$host_cpu" = ia64; then
5813 symcode='[ABCDEGRST]'
5814 fi
5815 ;;
5816 irix* | nonstopux*)
5817 symcode='[BCDEGRST]'
5818 ;;
5819 osf*)
5820 symcode='[BCDEGQRST]'
5821 ;;
5822 solaris*)
5823 symcode='[BDRT]'
5824 ;;
5825 sco3.2v5*)
5826 symcode='[DT]'
5827 ;;
5828 sysv4.2uw2*)
5829 symcode='[DT]'
5830 ;;
5831 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5832 symcode='[ABDT]'
5833 ;;
5834 sysv4)
5835 symcode='[DFNSTU]'
5836 ;;
5837 esac
5838
5839 # If we're using GNU nm, then use its standard symbol codes.
5840 case `$NM -V 2>&1` in
5841 *GNU* | *'with BFD'*)
5842 symcode='[ABCDGIRSTW]' ;;
5843 esac
5844
5845 # Transform an extracted symbol line into a proper C declaration.
5846 # Some systems (esp. on ia64) link data and code symbols differently,
5847 # so use this general approach.
5848 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5849
5850 # Transform an extracted symbol line into symbol name and symbol address
5851 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5852 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'"
5853
5854 # Handle CRLF in mingw tool chain
5855 opt_cr=
5856 case $build_os in
5857 mingw*)
5858 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5859 ;;
5860 esac
5861
5862 # Try without a prefix underscore, then with it.
5863 for ac_symprfx in "" "_"; do
5864
5865 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5866 symxfrm="\\1 $ac_symprfx\\2 \\2"
5867
5868 # Write the raw and C identifiers.
5869 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5870 # Fake it for dumpbin and say T for any non-static function
5871 # and D for any global variable.
5872 # Also find C++ and __fastcall symbols from MSVC++,
5873 # which start with @ or ?.
5874 lt_cv_sys_global_symbol_pipe="$AWK '"\
5875 " {last_section=section; section=\$ 3};"\
5876 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5877 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5878 " \$ 0!~/External *\|/{next};"\
5879 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5880 " {if(hide[section]) next};"\
5881 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5882 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5883 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5884 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5885 " ' prfx=^$ac_symprfx"
5886 else
5887 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5888 fi
5889 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5890
5891 # Check to see that the pipe works correctly.
5892 pipe_works=no
5893
5894 rm -f conftest*
5895 cat > conftest.$ac_ext <<_LT_EOF
5896 #ifdef __cplusplus
5897 extern "C" {
5898 #endif
5899 char nm_test_var;
5900 void nm_test_func(void);
5901 void nm_test_func(void){}
5902 #ifdef __cplusplus
5903 }
5904 #endif
5905 int main(){nm_test_var='a';nm_test_func();return(0);}
5906 _LT_EOF
5907
5908 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5909 (eval $ac_compile) 2>&5
5910 ac_status=$?
5911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5912 test $ac_status = 0; }; then
5913 # Now try to grab the symbols.
5914 nlist=conftest.nm
5915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5916 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5917 ac_status=$?
5918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5919 test $ac_status = 0; } && test -s "$nlist"; then
5920 # Try sorting and uniquifying the output.
5921 if sort "$nlist" | uniq > "$nlist"T; then
5922 mv -f "$nlist"T "$nlist"
5923 else
5924 rm -f "$nlist"T
5925 fi
5926
5927 # Make sure that we snagged all the symbols we need.
5928 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5929 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5930 cat <<_LT_EOF > conftest.$ac_ext
5931 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5932 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5933 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5934 relocations are performed -- see ld's documentation on pseudo-relocs. */
5935 # define LT_DLSYM_CONST
5936 #elif defined(__osf__)
5937 /* This system does not cope well with relocations in const data. */
5938 # define LT_DLSYM_CONST
5939 #else
5940 # define LT_DLSYM_CONST const
5941 #endif
5942
5943 #ifdef __cplusplus
5944 extern "C" {
5945 #endif
5946
5947 _LT_EOF
5948 # Now generate the symbol file.
5949 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5950
5951 cat <<_LT_EOF >> conftest.$ac_ext
5952
5953 /* The mapping between symbol names and symbols. */
5954 LT_DLSYM_CONST struct {
5955 const char *name;
5956 void *address;
5957 }
5958 lt__PROGRAM__LTX_preloaded_symbols[] =
5959 {
5960 { "@PROGRAM@", (void *) 0 },
5961 _LT_EOF
5962 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5963 cat <<\_LT_EOF >> conftest.$ac_ext
5964 {0, (void *) 0}
5965 };
5966
5967 /* This works around a problem in FreeBSD linker */
5968 #ifdef FREEBSD_WORKAROUND
5969 static const void *lt_preloaded_setup() {
5970 return lt__PROGRAM__LTX_preloaded_symbols;
5971 }
5972 #endif
5973
5974 #ifdef __cplusplus
5975 }
5976 #endif
5977 _LT_EOF
5978 # Now try linking the two files.
5979 mv conftest.$ac_objext conftstm.$ac_objext
5980 lt_globsym_save_LIBS=$LIBS
5981 lt_globsym_save_CFLAGS=$CFLAGS
5982 LIBS="conftstm.$ac_objext"
5983 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5984 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5985 (eval $ac_link) 2>&5
5986 ac_status=$?
5987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5988 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5989 pipe_works=yes
5990 fi
5991 LIBS=$lt_globsym_save_LIBS
5992 CFLAGS=$lt_globsym_save_CFLAGS
5993 else
5994 echo "cannot find nm_test_func in $nlist" >&5
5995 fi
5996 else
5997 echo "cannot find nm_test_var in $nlist" >&5
5998 fi
5999 else
6000 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6001 fi
6002 else
6003 echo "$progname: failed program was:" >&5
6004 cat conftest.$ac_ext >&5
6005 fi
6006 rm -rf conftest* conftst*
6007
6008 # Do not use the global_symbol_pipe unless it works.
6009 if test "$pipe_works" = yes; then
6010 break
6011 else
6012 lt_cv_sys_global_symbol_pipe=
6013 fi
6014 done
6015
6016 fi
6017
6018 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6019 lt_cv_sys_global_symbol_to_cdecl=
6020 fi
6021 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6023 $as_echo "failed" >&6; }
6024 else
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6026 $as_echo "ok" >&6; }
6027 fi
6028
6029 # Response file support.
6030 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6031 nm_file_list_spec='@'
6032 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6033 nm_file_list_spec='@'
6034 fi
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6063 $as_echo_n "checking for sysroot... " >&6; }
6064
6065 # Check whether --with-sysroot was given.
6066 if test "${with_sysroot+set}" = set; then :
6067 withval=$with_sysroot;
6068 else
6069 with_sysroot=no
6070 fi
6071
6072
6073 lt_sysroot=
6074 case ${with_sysroot} in #(
6075 yes)
6076 if test "$GCC" = yes; then
6077 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6078 fi
6079 ;; #(
6080 /*)
6081 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6082 ;; #(
6083 no|'')
6084 ;; #(
6085 *)
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6087 $as_echo "${with_sysroot}" >&6; }
6088 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6089 ;;
6090 esac
6091
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6093 $as_echo "${lt_sysroot:-no}" >&6; }
6094
6095
6096
6097
6098
6099 # Check whether --enable-libtool-lock was given.
6100 if test "${enable_libtool_lock+set}" = set; then :
6101 enableval=$enable_libtool_lock;
6102 fi
6103
6104 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6105
6106 # Some flags need to be propagated to the compiler or linker for good
6107 # libtool support.
6108 case $host in
6109 ia64-*-hpux*)
6110 # Find out which ABI we are using.
6111 echo 'int i;' > conftest.$ac_ext
6112 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6113 (eval $ac_compile) 2>&5
6114 ac_status=$?
6115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6116 test $ac_status = 0; }; then
6117 case `/usr/bin/file conftest.$ac_objext` in
6118 *ELF-32*)
6119 HPUX_IA64_MODE="32"
6120 ;;
6121 *ELF-64*)
6122 HPUX_IA64_MODE="64"
6123 ;;
6124 esac
6125 fi
6126 rm -rf conftest*
6127 ;;
6128 *-*-irix6*)
6129 # Find out which ABI we are using.
6130 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6132 (eval $ac_compile) 2>&5
6133 ac_status=$?
6134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6135 test $ac_status = 0; }; then
6136 if test "$lt_cv_prog_gnu_ld" = yes; then
6137 case `/usr/bin/file conftest.$ac_objext` in
6138 *32-bit*)
6139 LD="${LD-ld} -melf32bsmip"
6140 ;;
6141 *N32*)
6142 LD="${LD-ld} -melf32bmipn32"
6143 ;;
6144 *64-bit*)
6145 LD="${LD-ld} -melf64bmip"
6146 ;;
6147 esac
6148 else
6149 case `/usr/bin/file conftest.$ac_objext` in
6150 *32-bit*)
6151 LD="${LD-ld} -32"
6152 ;;
6153 *N32*)
6154 LD="${LD-ld} -n32"
6155 ;;
6156 *64-bit*)
6157 LD="${LD-ld} -64"
6158 ;;
6159 esac
6160 fi
6161 fi
6162 rm -rf conftest*
6163 ;;
6164
6165 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6166 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6167 # Find out which ABI we are using.
6168 echo 'int i;' > conftest.$ac_ext
6169 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6170 (eval $ac_compile) 2>&5
6171 ac_status=$?
6172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6173 test $ac_status = 0; }; then
6174 case `/usr/bin/file conftest.o` in
6175 *32-bit*)
6176 case $host in
6177 x86_64-*kfreebsd*-gnu)
6178 LD="${LD-ld} -m elf_i386_fbsd"
6179 ;;
6180 x86_64-*linux*)
6181 LD="${LD-ld} -m elf_i386"
6182 ;;
6183 ppc64-*linux*|powerpc64-*linux*)
6184 LD="${LD-ld} -m elf32ppclinux"
6185 ;;
6186 s390x-*linux*)
6187 LD="${LD-ld} -m elf_s390"
6188 ;;
6189 sparc64-*linux*)
6190 LD="${LD-ld} -m elf32_sparc"
6191 ;;
6192 esac
6193 ;;
6194 *64-bit*)
6195 case $host in
6196 x86_64-*kfreebsd*-gnu)
6197 LD="${LD-ld} -m elf_x86_64_fbsd"
6198 ;;
6199 x86_64-*linux*)
6200 LD="${LD-ld} -m elf_x86_64"
6201 ;;
6202 ppc*-*linux*|powerpc*-*linux*)
6203 LD="${LD-ld} -m elf64ppc"
6204 ;;
6205 s390*-*linux*|s390*-*tpf*)
6206 LD="${LD-ld} -m elf64_s390"
6207 ;;
6208 sparc*-*linux*)
6209 LD="${LD-ld} -m elf64_sparc"
6210 ;;
6211 esac
6212 ;;
6213 esac
6214 fi
6215 rm -rf conftest*
6216 ;;
6217
6218 *-*-sco3.2v5*)
6219 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6220 SAVE_CFLAGS="$CFLAGS"
6221 CFLAGS="$CFLAGS -belf"
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6223 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6224 if ${lt_cv_cc_needs_belf+:} false; then :
6225 $as_echo_n "(cached) " >&6
6226 else
6227 ac_ext=c
6228 ac_cpp='$CPP $CPPFLAGS'
6229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6232
6233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6234 /* end confdefs.h. */
6235
6236 int
6237 main ()
6238 {
6239
6240 ;
6241 return 0;
6242 }
6243 _ACEOF
6244 if ac_fn_c_try_link "$LINENO"; then :
6245 lt_cv_cc_needs_belf=yes
6246 else
6247 lt_cv_cc_needs_belf=no
6248 fi
6249 rm -f core conftest.err conftest.$ac_objext \
6250 conftest$ac_exeext conftest.$ac_ext
6251 ac_ext=c
6252 ac_cpp='$CPP $CPPFLAGS'
6253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6256
6257 fi
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6259 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6260 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6261 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6262 CFLAGS="$SAVE_CFLAGS"
6263 fi
6264 ;;
6265 *-*solaris*)
6266 # Find out which ABI we are using.
6267 echo 'int i;' > conftest.$ac_ext
6268 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6269 (eval $ac_compile) 2>&5
6270 ac_status=$?
6271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6272 test $ac_status = 0; }; then
6273 case `/usr/bin/file conftest.o` in
6274 *64-bit*)
6275 case $lt_cv_prog_gnu_ld in
6276 yes*)
6277 case $host in
6278 i?86-*-solaris*)
6279 LD="${LD-ld} -m elf_x86_64"
6280 ;;
6281 sparc*-*-solaris*)
6282 LD="${LD-ld} -m elf64_sparc"
6283 ;;
6284 esac
6285 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6286 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6287 LD="${LD-ld}_sol2"
6288 fi
6289 ;;
6290 *)
6291 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6292 LD="${LD-ld} -64"
6293 fi
6294 ;;
6295 esac
6296 ;;
6297 esac
6298 fi
6299 rm -rf conftest*
6300 ;;
6301 esac
6302
6303 need_locks="$enable_libtool_lock"
6304
6305 if test -n "$ac_tool_prefix"; then
6306 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6307 set dummy ${ac_tool_prefix}mt; ac_word=$2
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6309 $as_echo_n "checking for $ac_word... " >&6; }
6310 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6311 $as_echo_n "(cached) " >&6
6312 else
6313 if test -n "$MANIFEST_TOOL"; then
6314 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6315 else
6316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317 for as_dir in $PATH
6318 do
6319 IFS=$as_save_IFS
6320 test -z "$as_dir" && as_dir=.
6321 for ac_exec_ext in '' $ac_executable_extensions; do
6322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6323 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6325 break 2
6326 fi
6327 done
6328 done
6329 IFS=$as_save_IFS
6330
6331 fi
6332 fi
6333 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6334 if test -n "$MANIFEST_TOOL"; then
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6336 $as_echo "$MANIFEST_TOOL" >&6; }
6337 else
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6339 $as_echo "no" >&6; }
6340 fi
6341
6342
6343 fi
6344 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6345 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6346 # Extract the first word of "mt", so it can be a program name with args.
6347 set dummy mt; ac_word=$2
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6349 $as_echo_n "checking for $ac_word... " >&6; }
6350 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6351 $as_echo_n "(cached) " >&6
6352 else
6353 if test -n "$ac_ct_MANIFEST_TOOL"; then
6354 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6355 else
6356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357 for as_dir in $PATH
6358 do
6359 IFS=$as_save_IFS
6360 test -z "$as_dir" && as_dir=.
6361 for ac_exec_ext in '' $ac_executable_extensions; do
6362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6363 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6365 break 2
6366 fi
6367 done
6368 done
6369 IFS=$as_save_IFS
6370
6371 fi
6372 fi
6373 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6374 if test -n "$ac_ct_MANIFEST_TOOL"; then
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6376 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6377 else
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6379 $as_echo "no" >&6; }
6380 fi
6381
6382 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6383 MANIFEST_TOOL=":"
6384 else
6385 case $cross_compiling:$ac_tool_warned in
6386 yes:)
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6389 ac_tool_warned=yes ;;
6390 esac
6391 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6392 fi
6393 else
6394 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6395 fi
6396
6397 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6399 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6400 if ${lt_cv_path_mainfest_tool+:} false; then :
6401 $as_echo_n "(cached) " >&6
6402 else
6403 lt_cv_path_mainfest_tool=no
6404 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6405 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6406 cat conftest.err >&5
6407 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6408 lt_cv_path_mainfest_tool=yes
6409 fi
6410 rm -f conftest*
6411 fi
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6413 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6414 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6415 MANIFEST_TOOL=:
6416 fi
6417
6418
6419
6420
6421
6422
6423 case $host_os in
6424 rhapsody* | darwin*)
6425 if test -n "$ac_tool_prefix"; then
6426 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6427 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6429 $as_echo_n "checking for $ac_word... " >&6; }
6430 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6431 $as_echo_n "(cached) " >&6
6432 else
6433 if test -n "$DSYMUTIL"; then
6434 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6435 else
6436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437 for as_dir in $PATH
6438 do
6439 IFS=$as_save_IFS
6440 test -z "$as_dir" && as_dir=.
6441 for ac_exec_ext in '' $ac_executable_extensions; do
6442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6443 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6445 break 2
6446 fi
6447 done
6448 done
6449 IFS=$as_save_IFS
6450
6451 fi
6452 fi
6453 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6454 if test -n "$DSYMUTIL"; then
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6456 $as_echo "$DSYMUTIL" >&6; }
6457 else
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6459 $as_echo "no" >&6; }
6460 fi
6461
6462
6463 fi
6464 if test -z "$ac_cv_prog_DSYMUTIL"; then
6465 ac_ct_DSYMUTIL=$DSYMUTIL
6466 # Extract the first word of "dsymutil", so it can be a program name with args.
6467 set dummy dsymutil; ac_word=$2
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6469 $as_echo_n "checking for $ac_word... " >&6; }
6470 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6471 $as_echo_n "(cached) " >&6
6472 else
6473 if test -n "$ac_ct_DSYMUTIL"; then
6474 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6475 else
6476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6477 for as_dir in $PATH
6478 do
6479 IFS=$as_save_IFS
6480 test -z "$as_dir" && as_dir=.
6481 for ac_exec_ext in '' $ac_executable_extensions; do
6482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6483 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6485 break 2
6486 fi
6487 done
6488 done
6489 IFS=$as_save_IFS
6490
6491 fi
6492 fi
6493 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6494 if test -n "$ac_ct_DSYMUTIL"; then
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6496 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6497 else
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6499 $as_echo "no" >&6; }
6500 fi
6501
6502 if test "x$ac_ct_DSYMUTIL" = x; then
6503 DSYMUTIL=":"
6504 else
6505 case $cross_compiling:$ac_tool_warned in
6506 yes:)
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6509 ac_tool_warned=yes ;;
6510 esac
6511 DSYMUTIL=$ac_ct_DSYMUTIL
6512 fi
6513 else
6514 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6515 fi
6516
6517 if test -n "$ac_tool_prefix"; then
6518 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6519 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6521 $as_echo_n "checking for $ac_word... " >&6; }
6522 if ${ac_cv_prog_NMEDIT+:} false; then :
6523 $as_echo_n "(cached) " >&6
6524 else
6525 if test -n "$NMEDIT"; then
6526 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6527 else
6528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 for as_dir in $PATH
6530 do
6531 IFS=$as_save_IFS
6532 test -z "$as_dir" && as_dir=.
6533 for ac_exec_ext in '' $ac_executable_extensions; do
6534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6535 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6537 break 2
6538 fi
6539 done
6540 done
6541 IFS=$as_save_IFS
6542
6543 fi
6544 fi
6545 NMEDIT=$ac_cv_prog_NMEDIT
6546 if test -n "$NMEDIT"; then
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6548 $as_echo "$NMEDIT" >&6; }
6549 else
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6551 $as_echo "no" >&6; }
6552 fi
6553
6554
6555 fi
6556 if test -z "$ac_cv_prog_NMEDIT"; then
6557 ac_ct_NMEDIT=$NMEDIT
6558 # Extract the first word of "nmedit", so it can be a program name with args.
6559 set dummy nmedit; ac_word=$2
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6561 $as_echo_n "checking for $ac_word... " >&6; }
6562 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6563 $as_echo_n "(cached) " >&6
6564 else
6565 if test -n "$ac_ct_NMEDIT"; then
6566 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6567 else
6568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569 for as_dir in $PATH
6570 do
6571 IFS=$as_save_IFS
6572 test -z "$as_dir" && as_dir=.
6573 for ac_exec_ext in '' $ac_executable_extensions; do
6574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6575 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6577 break 2
6578 fi
6579 done
6580 done
6581 IFS=$as_save_IFS
6582
6583 fi
6584 fi
6585 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6586 if test -n "$ac_ct_NMEDIT"; then
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6588 $as_echo "$ac_ct_NMEDIT" >&6; }
6589 else
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6591 $as_echo "no" >&6; }
6592 fi
6593
6594 if test "x$ac_ct_NMEDIT" = x; then
6595 NMEDIT=":"
6596 else
6597 case $cross_compiling:$ac_tool_warned in
6598 yes:)
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6601 ac_tool_warned=yes ;;
6602 esac
6603 NMEDIT=$ac_ct_NMEDIT
6604 fi
6605 else
6606 NMEDIT="$ac_cv_prog_NMEDIT"
6607 fi
6608
6609 if test -n "$ac_tool_prefix"; then
6610 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6611 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6613 $as_echo_n "checking for $ac_word... " >&6; }
6614 if ${ac_cv_prog_LIPO+:} false; then :
6615 $as_echo_n "(cached) " >&6
6616 else
6617 if test -n "$LIPO"; then
6618 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6619 else
6620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 for as_dir in $PATH
6622 do
6623 IFS=$as_save_IFS
6624 test -z "$as_dir" && as_dir=.
6625 for ac_exec_ext in '' $ac_executable_extensions; do
6626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6627 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6629 break 2
6630 fi
6631 done
6632 done
6633 IFS=$as_save_IFS
6634
6635 fi
6636 fi
6637 LIPO=$ac_cv_prog_LIPO
6638 if test -n "$LIPO"; then
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6640 $as_echo "$LIPO" >&6; }
6641 else
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6643 $as_echo "no" >&6; }
6644 fi
6645
6646
6647 fi
6648 if test -z "$ac_cv_prog_LIPO"; then
6649 ac_ct_LIPO=$LIPO
6650 # Extract the first word of "lipo", so it can be a program name with args.
6651 set dummy lipo; ac_word=$2
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6653 $as_echo_n "checking for $ac_word... " >&6; }
6654 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6655 $as_echo_n "(cached) " >&6
6656 else
6657 if test -n "$ac_ct_LIPO"; then
6658 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6659 else
6660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661 for as_dir in $PATH
6662 do
6663 IFS=$as_save_IFS
6664 test -z "$as_dir" && as_dir=.
6665 for ac_exec_ext in '' $ac_executable_extensions; do
6666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6667 ac_cv_prog_ac_ct_LIPO="lipo"
6668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6669 break 2
6670 fi
6671 done
6672 done
6673 IFS=$as_save_IFS
6674
6675 fi
6676 fi
6677 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6678 if test -n "$ac_ct_LIPO"; then
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6680 $as_echo "$ac_ct_LIPO" >&6; }
6681 else
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6683 $as_echo "no" >&6; }
6684 fi
6685
6686 if test "x$ac_ct_LIPO" = x; then
6687 LIPO=":"
6688 else
6689 case $cross_compiling:$ac_tool_warned in
6690 yes:)
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6693 ac_tool_warned=yes ;;
6694 esac
6695 LIPO=$ac_ct_LIPO
6696 fi
6697 else
6698 LIPO="$ac_cv_prog_LIPO"
6699 fi
6700
6701 if test -n "$ac_tool_prefix"; then
6702 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6703 set dummy ${ac_tool_prefix}otool; ac_word=$2
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6705 $as_echo_n "checking for $ac_word... " >&6; }
6706 if ${ac_cv_prog_OTOOL+:} false; then :
6707 $as_echo_n "(cached) " >&6
6708 else
6709 if test -n "$OTOOL"; then
6710 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6711 else
6712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713 for as_dir in $PATH
6714 do
6715 IFS=$as_save_IFS
6716 test -z "$as_dir" && as_dir=.
6717 for ac_exec_ext in '' $ac_executable_extensions; do
6718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6719 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6721 break 2
6722 fi
6723 done
6724 done
6725 IFS=$as_save_IFS
6726
6727 fi
6728 fi
6729 OTOOL=$ac_cv_prog_OTOOL
6730 if test -n "$OTOOL"; then
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6732 $as_echo "$OTOOL" >&6; }
6733 else
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6735 $as_echo "no" >&6; }
6736 fi
6737
6738
6739 fi
6740 if test -z "$ac_cv_prog_OTOOL"; then
6741 ac_ct_OTOOL=$OTOOL
6742 # Extract the first word of "otool", so it can be a program name with args.
6743 set dummy otool; ac_word=$2
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6745 $as_echo_n "checking for $ac_word... " >&6; }
6746 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6747 $as_echo_n "(cached) " >&6
6748 else
6749 if test -n "$ac_ct_OTOOL"; then
6750 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6751 else
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753 for as_dir in $PATH
6754 do
6755 IFS=$as_save_IFS
6756 test -z "$as_dir" && as_dir=.
6757 for ac_exec_ext in '' $ac_executable_extensions; do
6758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6759 ac_cv_prog_ac_ct_OTOOL="otool"
6760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6761 break 2
6762 fi
6763 done
6764 done
6765 IFS=$as_save_IFS
6766
6767 fi
6768 fi
6769 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6770 if test -n "$ac_ct_OTOOL"; then
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6772 $as_echo "$ac_ct_OTOOL" >&6; }
6773 else
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6775 $as_echo "no" >&6; }
6776 fi
6777
6778 if test "x$ac_ct_OTOOL" = x; then
6779 OTOOL=":"
6780 else
6781 case $cross_compiling:$ac_tool_warned in
6782 yes:)
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6785 ac_tool_warned=yes ;;
6786 esac
6787 OTOOL=$ac_ct_OTOOL
6788 fi
6789 else
6790 OTOOL="$ac_cv_prog_OTOOL"
6791 fi
6792
6793 if test -n "$ac_tool_prefix"; then
6794 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6795 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6797 $as_echo_n "checking for $ac_word... " >&6; }
6798 if ${ac_cv_prog_OTOOL64+:} false; then :
6799 $as_echo_n "(cached) " >&6
6800 else
6801 if test -n "$OTOOL64"; then
6802 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6803 else
6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805 for as_dir in $PATH
6806 do
6807 IFS=$as_save_IFS
6808 test -z "$as_dir" && as_dir=.
6809 for ac_exec_ext in '' $ac_executable_extensions; do
6810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6811 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6813 break 2
6814 fi
6815 done
6816 done
6817 IFS=$as_save_IFS
6818
6819 fi
6820 fi
6821 OTOOL64=$ac_cv_prog_OTOOL64
6822 if test -n "$OTOOL64"; then
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6824 $as_echo "$OTOOL64" >&6; }
6825 else
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6827 $as_echo "no" >&6; }
6828 fi
6829
6830
6831 fi
6832 if test -z "$ac_cv_prog_OTOOL64"; then
6833 ac_ct_OTOOL64=$OTOOL64
6834 # Extract the first word of "otool64", so it can be a program name with args.
6835 set dummy otool64; ac_word=$2
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837 $as_echo_n "checking for $ac_word... " >&6; }
6838 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6839 $as_echo_n "(cached) " >&6
6840 else
6841 if test -n "$ac_ct_OTOOL64"; then
6842 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6843 else
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 for as_dir in $PATH
6846 do
6847 IFS=$as_save_IFS
6848 test -z "$as_dir" && as_dir=.
6849 for ac_exec_ext in '' $ac_executable_extensions; do
6850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6851 ac_cv_prog_ac_ct_OTOOL64="otool64"
6852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6853 break 2
6854 fi
6855 done
6856 done
6857 IFS=$as_save_IFS
6858
6859 fi
6860 fi
6861 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6862 if test -n "$ac_ct_OTOOL64"; then
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6864 $as_echo "$ac_ct_OTOOL64" >&6; }
6865 else
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867 $as_echo "no" >&6; }
6868 fi
6869
6870 if test "x$ac_ct_OTOOL64" = x; then
6871 OTOOL64=":"
6872 else
6873 case $cross_compiling:$ac_tool_warned in
6874 yes:)
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6877 ac_tool_warned=yes ;;
6878 esac
6879 OTOOL64=$ac_ct_OTOOL64
6880 fi
6881 else
6882 OTOOL64="$ac_cv_prog_OTOOL64"
6883 fi
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6912 $as_echo_n "checking for -single_module linker flag... " >&6; }
6913 if ${lt_cv_apple_cc_single_mod+:} false; then :
6914 $as_echo_n "(cached) " >&6
6915 else
6916 lt_cv_apple_cc_single_mod=no
6917 if test -z "${LT_MULTI_MODULE}"; then
6918 # By default we will add the -single_module flag. You can override
6919 # by either setting the environment variable LT_MULTI_MODULE
6920 # non-empty at configure time, or by adding -multi_module to the
6921 # link flags.
6922 rm -rf libconftest.dylib*
6923 echo "int foo(void){return 1;}" > conftest.c
6924 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6925 -dynamiclib -Wl,-single_module conftest.c" >&5
6926 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6927 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6928 _lt_result=$?
6929 # If there is a non-empty error log, and "single_module"
6930 # appears in it, assume the flag caused a linker warning
6931 if test -s conftest.err && $GREP single_module conftest.err; then
6932 cat conftest.err >&5
6933 # Otherwise, if the output was created with a 0 exit code from
6934 # the compiler, it worked.
6935 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6936 lt_cv_apple_cc_single_mod=yes
6937 else
6938 cat conftest.err >&5
6939 fi
6940 rm -rf libconftest.dylib*
6941 rm -f conftest.*
6942 fi
6943 fi
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6945 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6946
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6948 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6949 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6950 $as_echo_n "(cached) " >&6
6951 else
6952 lt_cv_ld_exported_symbols_list=no
6953 save_LDFLAGS=$LDFLAGS
6954 echo "_main" > conftest.sym
6955 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6957 /* end confdefs.h. */
6958
6959 int
6960 main ()
6961 {
6962
6963 ;
6964 return 0;
6965 }
6966 _ACEOF
6967 if ac_fn_c_try_link "$LINENO"; then :
6968 lt_cv_ld_exported_symbols_list=yes
6969 else
6970 lt_cv_ld_exported_symbols_list=no
6971 fi
6972 rm -f core conftest.err conftest.$ac_objext \
6973 conftest$ac_exeext conftest.$ac_ext
6974 LDFLAGS="$save_LDFLAGS"
6975
6976 fi
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6978 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6979
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6981 $as_echo_n "checking for -force_load linker flag... " >&6; }
6982 if ${lt_cv_ld_force_load+:} false; then :
6983 $as_echo_n "(cached) " >&6
6984 else
6985 lt_cv_ld_force_load=no
6986 cat > conftest.c << _LT_EOF
6987 int forced_loaded() { return 2;}
6988 _LT_EOF
6989 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6990 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6991 echo "$AR cru libconftest.a conftest.o" >&5
6992 $AR cru libconftest.a conftest.o 2>&5
6993 echo "$RANLIB libconftest.a" >&5
6994 $RANLIB libconftest.a 2>&5
6995 cat > conftest.c << _LT_EOF
6996 int main() { return 0;}
6997 _LT_EOF
6998 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6999 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7000 _lt_result=$?
7001 if test -s conftest.err && $GREP force_load conftest.err; then
7002 cat conftest.err >&5
7003 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7004 lt_cv_ld_force_load=yes
7005 else
7006 cat conftest.err >&5
7007 fi
7008 rm -f conftest.err libconftest.a conftest conftest.c
7009 rm -rf conftest.dSYM
7010
7011 fi
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7013 $as_echo "$lt_cv_ld_force_load" >&6; }
7014 case $host_os in
7015 rhapsody* | darwin1.[012])
7016 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7017 darwin1.*)
7018 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7019 darwin*) # darwin 5.x on
7020 # if running on 10.5 or later, the deployment target defaults
7021 # to the OS version, if on x86, and 10.4, the deployment
7022 # target defaults to 10.4. Don't you love it?
7023 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7024 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7025 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7026 10.[012]*)
7027 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7028 10.*)
7029 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7030 esac
7031 ;;
7032 esac
7033 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7034 _lt_dar_single_mod='$single_module'
7035 fi
7036 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7037 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7038 else
7039 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7040 fi
7041 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7042 _lt_dsymutil='~$DSYMUTIL $lib || :'
7043 else
7044 _lt_dsymutil=
7045 fi
7046 ;;
7047 esac
7048
7049 ac_ext=c
7050 ac_cpp='$CPP $CPPFLAGS'
7051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7055 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7056 # On Suns, sometimes $CPP names a directory.
7057 if test -n "$CPP" && test -d "$CPP"; then
7058 CPP=
7059 fi
7060 if test -z "$CPP"; then
7061 if ${ac_cv_prog_CPP+:} false; then :
7062 $as_echo_n "(cached) " >&6
7063 else
7064 # Double quotes because CPP needs to be expanded
7065 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7066 do
7067 ac_preproc_ok=false
7068 for ac_c_preproc_warn_flag in '' yes
7069 do
7070 # Use a header file that comes with gcc, so configuring glibc
7071 # with a fresh cross-compiler works.
7072 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7073 # <limits.h> exists even on freestanding compilers.
7074 # On the NeXT, cc -E runs the code through the compiler's parser,
7075 # not just through cpp. "Syntax error" is here to catch this case.
7076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7077 /* end confdefs.h. */
7078 #ifdef __STDC__
7079 # include <limits.h>
7080 #else
7081 # include <assert.h>
7082 #endif
7083 Syntax error
7084 _ACEOF
7085 if ac_fn_c_try_cpp "$LINENO"; then :
7086
7087 else
7088 # Broken: fails on valid input.
7089 continue
7090 fi
7091 rm -f conftest.err conftest.i conftest.$ac_ext
7092
7093 # OK, works on sane cases. Now check whether nonexistent headers
7094 # can be detected and how.
7095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096 /* end confdefs.h. */
7097 #include <ac_nonexistent.h>
7098 _ACEOF
7099 if ac_fn_c_try_cpp "$LINENO"; then :
7100 # Broken: success on invalid input.
7101 continue
7102 else
7103 # Passes both tests.
7104 ac_preproc_ok=:
7105 break
7106 fi
7107 rm -f conftest.err conftest.i conftest.$ac_ext
7108
7109 done
7110 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7111 rm -f conftest.i conftest.err conftest.$ac_ext
7112 if $ac_preproc_ok; then :
7113 break
7114 fi
7115
7116 done
7117 ac_cv_prog_CPP=$CPP
7118
7119 fi
7120 CPP=$ac_cv_prog_CPP
7121 else
7122 ac_cv_prog_CPP=$CPP
7123 fi
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7125 $as_echo "$CPP" >&6; }
7126 ac_preproc_ok=false
7127 for ac_c_preproc_warn_flag in '' yes
7128 do
7129 # Use a header file that comes with gcc, so configuring glibc
7130 # with a fresh cross-compiler works.
7131 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7132 # <limits.h> exists even on freestanding compilers.
7133 # On the NeXT, cc -E runs the code through the compiler's parser,
7134 # not just through cpp. "Syntax error" is here to catch this case.
7135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136 /* end confdefs.h. */
7137 #ifdef __STDC__
7138 # include <limits.h>
7139 #else
7140 # include <assert.h>
7141 #endif
7142 Syntax error
7143 _ACEOF
7144 if ac_fn_c_try_cpp "$LINENO"; then :
7145
7146 else
7147 # Broken: fails on valid input.
7148 continue
7149 fi
7150 rm -f conftest.err conftest.i conftest.$ac_ext
7151
7152 # OK, works on sane cases. Now check whether nonexistent headers
7153 # can be detected and how.
7154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7155 /* end confdefs.h. */
7156 #include <ac_nonexistent.h>
7157 _ACEOF
7158 if ac_fn_c_try_cpp "$LINENO"; then :
7159 # Broken: success on invalid input.
7160 continue
7161 else
7162 # Passes both tests.
7163 ac_preproc_ok=:
7164 break
7165 fi
7166 rm -f conftest.err conftest.i conftest.$ac_ext
7167
7168 done
7169 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7170 rm -f conftest.i conftest.err conftest.$ac_ext
7171 if $ac_preproc_ok; then :
7172
7173 else
7174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7176 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7177 See \`config.log' for more details" "$LINENO" 5; }
7178 fi
7179
7180 ac_ext=c
7181 ac_cpp='$CPP $CPPFLAGS'
7182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7185
7186
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7188 $as_echo_n "checking for ANSI C header files... " >&6; }
7189 if ${ac_cv_header_stdc+:} false; then :
7190 $as_echo_n "(cached) " >&6
7191 else
7192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7193 /* end confdefs.h. */
7194 #include <stdlib.h>
7195 #include <stdarg.h>
7196 #include <string.h>
7197 #include <float.h>
7198
7199 int
7200 main ()
7201 {
7202
7203 ;
7204 return 0;
7205 }
7206 _ACEOF
7207 if ac_fn_c_try_compile "$LINENO"; then :
7208 ac_cv_header_stdc=yes
7209 else
7210 ac_cv_header_stdc=no
7211 fi
7212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7213
7214 if test $ac_cv_header_stdc = yes; then
7215 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7217 /* end confdefs.h. */
7218 #include <string.h>
7219
7220 _ACEOF
7221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7222 $EGREP "memchr" >/dev/null 2>&1; then :
7223
7224 else
7225 ac_cv_header_stdc=no
7226 fi
7227 rm -f conftest*
7228
7229 fi
7230
7231 if test $ac_cv_header_stdc = yes; then
7232 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234 /* end confdefs.h. */
7235 #include <stdlib.h>
7236
7237 _ACEOF
7238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7239 $EGREP "free" >/dev/null 2>&1; then :
7240
7241 else
7242 ac_cv_header_stdc=no
7243 fi
7244 rm -f conftest*
7245
7246 fi
7247
7248 if test $ac_cv_header_stdc = yes; then
7249 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7250 if test "$cross_compiling" = yes; then :
7251 :
7252 else
7253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7254 /* end confdefs.h. */
7255 #include <ctype.h>
7256 #include <stdlib.h>
7257 #if ((' ' & 0x0FF) == 0x020)
7258 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7259 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7260 #else
7261 # define ISLOWER(c) \
7262 (('a' <= (c) && (c) <= 'i') \
7263 || ('j' <= (c) && (c) <= 'r') \
7264 || ('s' <= (c) && (c) <= 'z'))
7265 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7266 #endif
7267
7268 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7269 int
7270 main ()
7271 {
7272 int i;
7273 for (i = 0; i < 256; i++)
7274 if (XOR (islower (i), ISLOWER (i))
7275 || toupper (i) != TOUPPER (i))
7276 return 2;
7277 return 0;
7278 }
7279 _ACEOF
7280 if ac_fn_c_try_run "$LINENO"; then :
7281
7282 else
7283 ac_cv_header_stdc=no
7284 fi
7285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7286 conftest.$ac_objext conftest.beam conftest.$ac_ext
7287 fi
7288
7289 fi
7290 fi
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7292 $as_echo "$ac_cv_header_stdc" >&6; }
7293 if test $ac_cv_header_stdc = yes; then
7294
7295 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7296
7297 fi
7298
7299 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7300 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7301 inttypes.h stdint.h unistd.h
7302 do :
7303 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7304 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7305 "
7306 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7307 cat >>confdefs.h <<_ACEOF
7308 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7309 _ACEOF
7310
7311 fi
7312
7313 done
7314
7315
7316 for ac_header in dlfcn.h
7317 do :
7318 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7319 "
7320 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7321 cat >>confdefs.h <<_ACEOF
7322 #define HAVE_DLFCN_H 1
7323 _ACEOF
7324
7325 fi
7326
7327 done
7328
7329
7330
7331
7332
7333 # Set options
7334
7335
7336
7337 enable_dlopen=no
7338
7339
7340 enable_win32_dll=no
7341
7342
7343 # Check whether --enable-shared was given.
7344 if test "${enable_shared+set}" = set; then :
7345 enableval=$enable_shared; p=${PACKAGE-default}
7346 case $enableval in
7347 yes) enable_shared=yes ;;
7348 no) enable_shared=no ;;
7349 *)
7350 enable_shared=no
7351 # Look at the argument we got. We use all the common list separators.
7352 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7353 for pkg in $enableval; do
7354 IFS="$lt_save_ifs"
7355 if test "X$pkg" = "X$p"; then
7356 enable_shared=yes
7357 fi
7358 done
7359 IFS="$lt_save_ifs"
7360 ;;
7361 esac
7362 else
7363 enable_shared=yes
7364 fi
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374 # Check whether --enable-static was given.
7375 if test "${enable_static+set}" = set; then :
7376 enableval=$enable_static; p=${PACKAGE-default}
7377 case $enableval in
7378 yes) enable_static=yes ;;
7379 no) enable_static=no ;;
7380 *)
7381 enable_static=no
7382 # Look at the argument we got. We use all the common list separators.
7383 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7384 for pkg in $enableval; do
7385 IFS="$lt_save_ifs"
7386 if test "X$pkg" = "X$p"; then
7387 enable_static=yes
7388 fi
7389 done
7390 IFS="$lt_save_ifs"
7391 ;;
7392 esac
7393 else
7394 enable_static=yes
7395 fi
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406 # Check whether --with-pic was given.
7407 if test "${with_pic+set}" = set; then :
7408 withval=$with_pic; lt_p=${PACKAGE-default}
7409 case $withval in
7410 yes|no) pic_mode=$withval ;;
7411 *)
7412 pic_mode=default
7413 # Look at the argument we got. We use all the common list separators.
7414 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7415 for lt_pkg in $withval; do
7416 IFS="$lt_save_ifs"
7417 if test "X$lt_pkg" = "X$lt_p"; then
7418 pic_mode=yes
7419 fi
7420 done
7421 IFS="$lt_save_ifs"
7422 ;;
7423 esac
7424 else
7425 pic_mode=default
7426 fi
7427
7428
7429 test -z "$pic_mode" && pic_mode=default
7430
7431
7432
7433
7434
7435
7436
7437 # Check whether --enable-fast-install was given.
7438 if test "${enable_fast_install+set}" = set; then :
7439 enableval=$enable_fast_install; p=${PACKAGE-default}
7440 case $enableval in
7441 yes) enable_fast_install=yes ;;
7442 no) enable_fast_install=no ;;
7443 *)
7444 enable_fast_install=no
7445 # Look at the argument we got. We use all the common list separators.
7446 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7447 for pkg in $enableval; do
7448 IFS="$lt_save_ifs"
7449 if test "X$pkg" = "X$p"; then
7450 enable_fast_install=yes
7451 fi
7452 done
7453 IFS="$lt_save_ifs"
7454 ;;
7455 esac
7456 else
7457 enable_fast_install=yes
7458 fi
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470 # This can be used to rebuild libtool when needed
7471 LIBTOOL_DEPS="$ltmain"
7472
7473 # Always use our own libtool.
7474 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505 test -z "$LN_S" && LN_S="ln -s"
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520 if test -n "${ZSH_VERSION+set}" ; then
7521 setopt NO_GLOB_SUBST
7522 fi
7523
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7525 $as_echo_n "checking for objdir... " >&6; }
7526 if ${lt_cv_objdir+:} false; then :
7527 $as_echo_n "(cached) " >&6
7528 else
7529 rm -f .libs 2>/dev/null
7530 mkdir .libs 2>/dev/null
7531 if test -d .libs; then
7532 lt_cv_objdir=.libs
7533 else
7534 # MS-DOS does not allow filenames that begin with a dot.
7535 lt_cv_objdir=_libs
7536 fi
7537 rmdir .libs 2>/dev/null
7538 fi
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7540 $as_echo "$lt_cv_objdir" >&6; }
7541 objdir=$lt_cv_objdir
7542
7543
7544
7545
7546
7547 cat >>confdefs.h <<_ACEOF
7548 #define LT_OBJDIR "$lt_cv_objdir/"
7549 _ACEOF
7550
7551
7552
7553
7554 case $host_os in
7555 aix3*)
7556 # AIX sometimes has problems with the GCC collect2 program. For some
7557 # reason, if we set the COLLECT_NAMES environment variable, the problems
7558 # vanish in a puff of smoke.
7559 if test "X${COLLECT_NAMES+set}" != Xset; then
7560 COLLECT_NAMES=
7561 export COLLECT_NAMES
7562 fi
7563 ;;
7564 esac
7565
7566 # Global variables:
7567 ofile=libtool
7568 can_build_shared=yes
7569
7570 # All known linkers require a `.a' archive for static linking (except MSVC,
7571 # which needs '.lib').
7572 libext=a
7573
7574 with_gnu_ld="$lt_cv_prog_gnu_ld"
7575
7576 old_CC="$CC"
7577 old_CFLAGS="$CFLAGS"
7578
7579 # Set sane defaults for various variables
7580 test -z "$CC" && CC=cc
7581 test -z "$LTCC" && LTCC=$CC
7582 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7583 test -z "$LD" && LD=ld
7584 test -z "$ac_objext" && ac_objext=o
7585
7586 for cc_temp in $compiler""; do
7587 case $cc_temp in
7588 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7589 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7590 \-*) ;;
7591 *) break;;
7592 esac
7593 done
7594 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7595
7596
7597 # Only perform the check for file, if the check method requires it
7598 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7599 case $deplibs_check_method in
7600 file_magic*)
7601 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7603 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7604 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7605 $as_echo_n "(cached) " >&6
7606 else
7607 case $MAGIC_CMD in
7608 [\\/*] | ?:[\\/]*)
7609 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7610 ;;
7611 *)
7612 lt_save_MAGIC_CMD="$MAGIC_CMD"
7613 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7614 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7615 for ac_dir in $ac_dummy; do
7616 IFS="$lt_save_ifs"
7617 test -z "$ac_dir" && ac_dir=.
7618 if test -f $ac_dir/${ac_tool_prefix}file; then
7619 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7620 if test -n "$file_magic_test_file"; then
7621 case $deplibs_check_method in
7622 "file_magic "*)
7623 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7624 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7625 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7626 $EGREP "$file_magic_regex" > /dev/null; then
7627 :
7628 else
7629 cat <<_LT_EOF 1>&2
7630
7631 *** Warning: the command libtool uses to detect shared libraries,
7632 *** $file_magic_cmd, produces output that libtool cannot recognize.
7633 *** The result is that libtool may fail to recognize shared libraries
7634 *** as such. This will affect the creation of libtool libraries that
7635 *** depend on shared libraries, but programs linked with such libtool
7636 *** libraries will work regardless of this problem. Nevertheless, you
7637 *** may want to report the problem to your system manager and/or to
7638 *** bug-libtool@gnu.org
7639
7640 _LT_EOF
7641 fi ;;
7642 esac
7643 fi
7644 break
7645 fi
7646 done
7647 IFS="$lt_save_ifs"
7648 MAGIC_CMD="$lt_save_MAGIC_CMD"
7649 ;;
7650 esac
7651 fi
7652
7653 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7654 if test -n "$MAGIC_CMD"; then
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7656 $as_echo "$MAGIC_CMD" >&6; }
7657 else
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7659 $as_echo "no" >&6; }
7660 fi
7661
7662
7663
7664
7665
7666 if test -z "$lt_cv_path_MAGIC_CMD"; then
7667 if test -n "$ac_tool_prefix"; then
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7669 $as_echo_n "checking for file... " >&6; }
7670 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7671 $as_echo_n "(cached) " >&6
7672 else
7673 case $MAGIC_CMD in
7674 [\\/*] | ?:[\\/]*)
7675 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7676 ;;
7677 *)
7678 lt_save_MAGIC_CMD="$MAGIC_CMD"
7679 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7680 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7681 for ac_dir in $ac_dummy; do
7682 IFS="$lt_save_ifs"
7683 test -z "$ac_dir" && ac_dir=.
7684 if test -f $ac_dir/file; then
7685 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7686 if test -n "$file_magic_test_file"; then
7687 case $deplibs_check_method in
7688 "file_magic "*)
7689 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7690 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7691 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7692 $EGREP "$file_magic_regex" > /dev/null; then
7693 :
7694 else
7695 cat <<_LT_EOF 1>&2
7696
7697 *** Warning: the command libtool uses to detect shared libraries,
7698 *** $file_magic_cmd, produces output that libtool cannot recognize.
7699 *** The result is that libtool may fail to recognize shared libraries
7700 *** as such. This will affect the creation of libtool libraries that
7701 *** depend on shared libraries, but programs linked with such libtool
7702 *** libraries will work regardless of this problem. Nevertheless, you
7703 *** may want to report the problem to your system manager and/or to
7704 *** bug-libtool@gnu.org
7705
7706 _LT_EOF
7707 fi ;;
7708 esac
7709 fi
7710 break
7711 fi
7712 done
7713 IFS="$lt_save_ifs"
7714 MAGIC_CMD="$lt_save_MAGIC_CMD"
7715 ;;
7716 esac
7717 fi
7718
7719 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7720 if test -n "$MAGIC_CMD"; then
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7722 $as_echo "$MAGIC_CMD" >&6; }
7723 else
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7725 $as_echo "no" >&6; }
7726 fi
7727
7728
7729 else
7730 MAGIC_CMD=:
7731 fi
7732 fi
7733
7734 fi
7735 ;;
7736 esac
7737
7738 # Use C for the default configuration in the libtool script
7739
7740 lt_save_CC="$CC"
7741 ac_ext=c
7742 ac_cpp='$CPP $CPPFLAGS'
7743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7746
7747
7748 # Source file extension for C test sources.
7749 ac_ext=c
7750
7751 # Object file extension for compiled C test sources.
7752 objext=o
7753 objext=$objext
7754
7755 # Code to be used in simple compile tests
7756 lt_simple_compile_test_code="int some_variable = 0;"
7757
7758 # Code to be used in simple link tests
7759 lt_simple_link_test_code='int main(){return(0);}'
7760
7761
7762
7763
7764
7765
7766
7767 # If no C compiler was specified, use CC.
7768 LTCC=${LTCC-"$CC"}
7769
7770 # If no C compiler flags were specified, use CFLAGS.
7771 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7772
7773 # Allow CC to be a program name with arguments.
7774 compiler=$CC
7775
7776 # Save the default compiler, since it gets overwritten when the other
7777 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7778 compiler_DEFAULT=$CC
7779
7780 # save warnings/boilerplate of simple test code
7781 ac_outfile=conftest.$ac_objext
7782 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7783 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7784 _lt_compiler_boilerplate=`cat conftest.err`
7785 $RM conftest*
7786
7787 ac_outfile=conftest.$ac_objext
7788 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7789 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7790 _lt_linker_boilerplate=`cat conftest.err`
7791 $RM -r conftest*
7792
7793
7794 if test -n "$compiler"; then
7795
7796 lt_prog_compiler_no_builtin_flag=
7797
7798 if test "$GCC" = yes; then
7799 case $cc_basename in
7800 nvcc*)
7801 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7802 *)
7803 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7804 esac
7805
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7807 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7808 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7809 $as_echo_n "(cached) " >&6
7810 else
7811 lt_cv_prog_compiler_rtti_exceptions=no
7812 ac_outfile=conftest.$ac_objext
7813 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7814 lt_compiler_flag="-fno-rtti -fno-exceptions"
7815 # Insert the option either (1) after the last *FLAGS variable, or
7816 # (2) before a word containing "conftest.", or (3) at the end.
7817 # Note that $ac_compile itself does not contain backslashes and begins
7818 # with a dollar sign (not a hyphen), so the echo should work correctly.
7819 # The option is referenced via a variable to avoid confusing sed.
7820 lt_compile=`echo "$ac_compile" | $SED \
7821 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7823 -e 's:$: $lt_compiler_flag:'`
7824 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7825 (eval "$lt_compile" 2>conftest.err)
7826 ac_status=$?
7827 cat conftest.err >&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 if (exit $ac_status) && test -s "$ac_outfile"; then
7830 # The compiler can only warn and ignore the option if not recognized
7831 # So say no if there are warnings other than the usual output.
7832 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7833 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7834 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7835 lt_cv_prog_compiler_rtti_exceptions=yes
7836 fi
7837 fi
7838 $RM conftest*
7839
7840 fi
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7842 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7843
7844 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7845 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7846 else
7847 :
7848 fi
7849
7850 fi
7851
7852
7853
7854
7855
7856
7857 lt_prog_compiler_wl=
7858 lt_prog_compiler_pic=
7859 lt_prog_compiler_static=
7860
7861
7862 if test "$GCC" = yes; then
7863 lt_prog_compiler_wl='-Wl,'
7864 lt_prog_compiler_static='-static'
7865
7866 case $host_os in
7867 aix*)
7868 # All AIX code is PIC.
7869 if test "$host_cpu" = ia64; then
7870 # AIX 5 now supports IA64 processor
7871 lt_prog_compiler_static='-Bstatic'
7872 fi
7873 ;;
7874
7875 amigaos*)
7876 case $host_cpu in
7877 powerpc)
7878 # see comment about AmigaOS4 .so support
7879 lt_prog_compiler_pic='-fPIC'
7880 ;;
7881 m68k)
7882 # FIXME: we need at least 68020 code to build shared libraries, but
7883 # adding the `-m68020' flag to GCC prevents building anything better,
7884 # like `-m68040'.
7885 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7886 ;;
7887 esac
7888 ;;
7889
7890 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7891 # PIC is the default for these OSes.
7892 ;;
7893
7894 mingw* | cygwin* | pw32* | os2* | cegcc*)
7895 # This hack is so that the source file can tell whether it is being
7896 # built for inclusion in a dll (and should export symbols for example).
7897 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7898 # (--disable-auto-import) libraries
7899 lt_prog_compiler_pic='-DDLL_EXPORT'
7900 ;;
7901
7902 darwin* | rhapsody*)
7903 # PIC is the default on this platform
7904 # Common symbols not allowed in MH_DYLIB files
7905 lt_prog_compiler_pic='-fno-common'
7906 ;;
7907
7908 haiku*)
7909 # PIC is the default for Haiku.
7910 # The "-static" flag exists, but is broken.
7911 lt_prog_compiler_static=
7912 ;;
7913
7914 hpux*)
7915 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7916 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7917 # sets the default TLS model and affects inlining.
7918 case $host_cpu in
7919 hppa*64*)
7920 # +Z the default
7921 ;;
7922 *)
7923 lt_prog_compiler_pic='-fPIC'
7924 ;;
7925 esac
7926 ;;
7927
7928 interix[3-9]*)
7929 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7930 # Instead, we relocate shared libraries at runtime.
7931 ;;
7932
7933 msdosdjgpp*)
7934 # Just because we use GCC doesn't mean we suddenly get shared libraries
7935 # on systems that don't support them.
7936 lt_prog_compiler_can_build_shared=no
7937 enable_shared=no
7938 ;;
7939
7940 *nto* | *qnx*)
7941 # QNX uses GNU C++, but need to define -shared option too, otherwise
7942 # it will coredump.
7943 lt_prog_compiler_pic='-fPIC -shared'
7944 ;;
7945
7946 sysv4*MP*)
7947 if test -d /usr/nec; then
7948 lt_prog_compiler_pic=-Kconform_pic
7949 fi
7950 ;;
7951
7952 *)
7953 lt_prog_compiler_pic='-fPIC'
7954 ;;
7955 esac
7956
7957 case $cc_basename in
7958 nvcc*) # Cuda Compiler Driver 2.2
7959 lt_prog_compiler_wl='-Xlinker '
7960 if test -n "$lt_prog_compiler_pic"; then
7961 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7962 fi
7963 ;;
7964 esac
7965 else
7966 # PORTME Check for flag to pass linker flags through the system compiler.
7967 case $host_os in
7968 aix*)
7969 lt_prog_compiler_wl='-Wl,'
7970 if test "$host_cpu" = ia64; then
7971 # AIX 5 now supports IA64 processor
7972 lt_prog_compiler_static='-Bstatic'
7973 else
7974 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7975 fi
7976 ;;
7977
7978 mingw* | cygwin* | pw32* | os2* | cegcc*)
7979 # This hack is so that the source file can tell whether it is being
7980 # built for inclusion in a dll (and should export symbols for example).
7981 lt_prog_compiler_pic='-DDLL_EXPORT'
7982 ;;
7983
7984 hpux9* | hpux10* | hpux11*)
7985 lt_prog_compiler_wl='-Wl,'
7986 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7987 # not for PA HP-UX.
7988 case $host_cpu in
7989 hppa*64*|ia64*)
7990 # +Z the default
7991 ;;
7992 *)
7993 lt_prog_compiler_pic='+Z'
7994 ;;
7995 esac
7996 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7997 lt_prog_compiler_static='${wl}-a ${wl}archive'
7998 ;;
7999
8000 irix5* | irix6* | nonstopux*)
8001 lt_prog_compiler_wl='-Wl,'
8002 # PIC (with -KPIC) is the default.
8003 lt_prog_compiler_static='-non_shared'
8004 ;;
8005
8006 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8007 case $cc_basename in
8008 # old Intel for x86_64 which still supported -KPIC.
8009 ecc*)
8010 lt_prog_compiler_wl='-Wl,'
8011 lt_prog_compiler_pic='-KPIC'
8012 lt_prog_compiler_static='-static'
8013 ;;
8014 # icc used to be incompatible with GCC.
8015 # ICC 10 doesn't accept -KPIC any more.
8016 icc* | ifort*)
8017 lt_prog_compiler_wl='-Wl,'
8018 lt_prog_compiler_pic='-fPIC'
8019 lt_prog_compiler_static='-static'
8020 ;;
8021 # Lahey Fortran 8.1.
8022 lf95*)
8023 lt_prog_compiler_wl='-Wl,'
8024 lt_prog_compiler_pic='--shared'
8025 lt_prog_compiler_static='--static'
8026 ;;
8027 nagfor*)
8028 # NAG Fortran compiler
8029 lt_prog_compiler_wl='-Wl,-Wl,,'
8030 lt_prog_compiler_pic='-PIC'
8031 lt_prog_compiler_static='-Bstatic'
8032 ;;
8033 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8034 # Portland Group compilers (*not* the Pentium gcc compiler,
8035 # which looks to be a dead project)
8036 lt_prog_compiler_wl='-Wl,'
8037 lt_prog_compiler_pic='-fpic'
8038 lt_prog_compiler_static='-Bstatic'
8039 ;;
8040 ccc*)
8041 lt_prog_compiler_wl='-Wl,'
8042 # All Alpha code is PIC.
8043 lt_prog_compiler_static='-non_shared'
8044 ;;
8045 xl* | bgxl* | bgf* | mpixl*)
8046 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8047 lt_prog_compiler_wl='-Wl,'
8048 lt_prog_compiler_pic='-qpic'
8049 lt_prog_compiler_static='-qstaticlink'
8050 ;;
8051 *)
8052 case `$CC -V 2>&1 | sed 5q` in
8053 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8054 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8055 lt_prog_compiler_pic='-KPIC'
8056 lt_prog_compiler_static='-Bstatic'
8057 lt_prog_compiler_wl=''
8058 ;;
8059 *Sun\ F* | *Sun*Fortran*)
8060 lt_prog_compiler_pic='-KPIC'
8061 lt_prog_compiler_static='-Bstatic'
8062 lt_prog_compiler_wl='-Qoption ld '
8063 ;;
8064 *Sun\ C*)
8065 # Sun C 5.9
8066 lt_prog_compiler_pic='-KPIC'
8067 lt_prog_compiler_static='-Bstatic'
8068 lt_prog_compiler_wl='-Wl,'
8069 ;;
8070 *Intel*\ [CF]*Compiler*)
8071 lt_prog_compiler_wl='-Wl,'
8072 lt_prog_compiler_pic='-fPIC'
8073 lt_prog_compiler_static='-static'
8074 ;;
8075 *Portland\ Group*)
8076 lt_prog_compiler_wl='-Wl,'
8077 lt_prog_compiler_pic='-fpic'
8078 lt_prog_compiler_static='-Bstatic'
8079 ;;
8080 esac
8081 ;;
8082 esac
8083 ;;
8084
8085 newsos6)
8086 lt_prog_compiler_pic='-KPIC'
8087 lt_prog_compiler_static='-Bstatic'
8088 ;;
8089
8090 *nto* | *qnx*)
8091 # QNX uses GNU C++, but need to define -shared option too, otherwise
8092 # it will coredump.
8093 lt_prog_compiler_pic='-fPIC -shared'
8094 ;;
8095
8096 osf3* | osf4* | osf5*)
8097 lt_prog_compiler_wl='-Wl,'
8098 # All OSF/1 code is PIC.
8099 lt_prog_compiler_static='-non_shared'
8100 ;;
8101
8102 rdos*)
8103 lt_prog_compiler_static='-non_shared'
8104 ;;
8105
8106 solaris*)
8107 lt_prog_compiler_pic='-KPIC'
8108 lt_prog_compiler_static='-Bstatic'
8109 case $cc_basename in
8110 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8111 lt_prog_compiler_wl='-Qoption ld ';;
8112 *)
8113 lt_prog_compiler_wl='-Wl,';;
8114 esac
8115 ;;
8116
8117 sunos4*)
8118 lt_prog_compiler_wl='-Qoption ld '
8119 lt_prog_compiler_pic='-PIC'
8120 lt_prog_compiler_static='-Bstatic'
8121 ;;
8122
8123 sysv4 | sysv4.2uw2* | sysv4.3*)
8124 lt_prog_compiler_wl='-Wl,'
8125 lt_prog_compiler_pic='-KPIC'
8126 lt_prog_compiler_static='-Bstatic'
8127 ;;
8128
8129 sysv4*MP*)
8130 if test -d /usr/nec ;then
8131 lt_prog_compiler_pic='-Kconform_pic'
8132 lt_prog_compiler_static='-Bstatic'
8133 fi
8134 ;;
8135
8136 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8137 lt_prog_compiler_wl='-Wl,'
8138 lt_prog_compiler_pic='-KPIC'
8139 lt_prog_compiler_static='-Bstatic'
8140 ;;
8141
8142 unicos*)
8143 lt_prog_compiler_wl='-Wl,'
8144 lt_prog_compiler_can_build_shared=no
8145 ;;
8146
8147 uts4*)
8148 lt_prog_compiler_pic='-pic'
8149 lt_prog_compiler_static='-Bstatic'
8150 ;;
8151
8152 *)
8153 lt_prog_compiler_can_build_shared=no
8154 ;;
8155 esac
8156 fi
8157
8158 case $host_os in
8159 # For platforms which do not support PIC, -DPIC is meaningless:
8160 *djgpp*)
8161 lt_prog_compiler_pic=
8162 ;;
8163 *)
8164 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8165 ;;
8166 esac
8167
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8169 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8170 if ${lt_cv_prog_compiler_pic+:} false; then :
8171 $as_echo_n "(cached) " >&6
8172 else
8173 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8174 fi
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8176 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8177 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8178
8179 #
8180 # Check to make sure the PIC flag actually works.
8181 #
8182 if test -n "$lt_prog_compiler_pic"; then
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8184 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8185 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8186 $as_echo_n "(cached) " >&6
8187 else
8188 lt_cv_prog_compiler_pic_works=no
8189 ac_outfile=conftest.$ac_objext
8190 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8191 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8192 # Insert the option either (1) after the last *FLAGS variable, or
8193 # (2) before a word containing "conftest.", or (3) at the end.
8194 # Note that $ac_compile itself does not contain backslashes and begins
8195 # with a dollar sign (not a hyphen), so the echo should work correctly.
8196 # The option is referenced via a variable to avoid confusing sed.
8197 lt_compile=`echo "$ac_compile" | $SED \
8198 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8199 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8200 -e 's:$: $lt_compiler_flag:'`
8201 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8202 (eval "$lt_compile" 2>conftest.err)
8203 ac_status=$?
8204 cat conftest.err >&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 if (exit $ac_status) && test -s "$ac_outfile"; then
8207 # The compiler can only warn and ignore the option if not recognized
8208 # So say no if there are warnings other than the usual output.
8209 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8210 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8211 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8212 lt_cv_prog_compiler_pic_works=yes
8213 fi
8214 fi
8215 $RM conftest*
8216
8217 fi
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8219 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8220
8221 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8222 case $lt_prog_compiler_pic in
8223 "" | " "*) ;;
8224 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8225 esac
8226 else
8227 lt_prog_compiler_pic=
8228 lt_prog_compiler_can_build_shared=no
8229 fi
8230
8231 fi
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243 #
8244 # Check to make sure the static flag actually works.
8245 #
8246 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8248 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8249 if ${lt_cv_prog_compiler_static_works+:} false; then :
8250 $as_echo_n "(cached) " >&6
8251 else
8252 lt_cv_prog_compiler_static_works=no
8253 save_LDFLAGS="$LDFLAGS"
8254 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8255 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8256 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8257 # The linker can only warn and ignore the option if not recognized
8258 # So say no if there are warnings
8259 if test -s conftest.err; then
8260 # Append any errors to the config.log.
8261 cat conftest.err 1>&5
8262 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8263 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8264 if diff conftest.exp conftest.er2 >/dev/null; then
8265 lt_cv_prog_compiler_static_works=yes
8266 fi
8267 else
8268 lt_cv_prog_compiler_static_works=yes
8269 fi
8270 fi
8271 $RM -r conftest*
8272 LDFLAGS="$save_LDFLAGS"
8273
8274 fi
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8276 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8277
8278 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8279 :
8280 else
8281 lt_prog_compiler_static=
8282 fi
8283
8284
8285
8286
8287
8288
8289
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8291 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8292 if ${lt_cv_prog_compiler_c_o+:} false; then :
8293 $as_echo_n "(cached) " >&6
8294 else
8295 lt_cv_prog_compiler_c_o=no
8296 $RM -r conftest 2>/dev/null
8297 mkdir conftest
8298 cd conftest
8299 mkdir out
8300 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8301
8302 lt_compiler_flag="-o out/conftest2.$ac_objext"
8303 # Insert the option either (1) after the last *FLAGS variable, or
8304 # (2) before a word containing "conftest.", or (3) at the end.
8305 # Note that $ac_compile itself does not contain backslashes and begins
8306 # with a dollar sign (not a hyphen), so the echo should work correctly.
8307 lt_compile=`echo "$ac_compile" | $SED \
8308 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8309 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8310 -e 's:$: $lt_compiler_flag:'`
8311 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8312 (eval "$lt_compile" 2>out/conftest.err)
8313 ac_status=$?
8314 cat out/conftest.err >&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8317 then
8318 # The compiler can only warn and ignore the option if not recognized
8319 # So say no if there are warnings
8320 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8321 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8322 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8323 lt_cv_prog_compiler_c_o=yes
8324 fi
8325 fi
8326 chmod u+w . 2>&5
8327 $RM conftest*
8328 # SGI C++ compiler will create directory out/ii_files/ for
8329 # template instantiation
8330 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8331 $RM out/* && rmdir out
8332 cd ..
8333 $RM -r conftest
8334 $RM conftest*
8335
8336 fi
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8338 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8339
8340
8341
8342
8343
8344
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8346 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8347 if ${lt_cv_prog_compiler_c_o+:} false; then :
8348 $as_echo_n "(cached) " >&6
8349 else
8350 lt_cv_prog_compiler_c_o=no
8351 $RM -r conftest 2>/dev/null
8352 mkdir conftest
8353 cd conftest
8354 mkdir out
8355 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8356
8357 lt_compiler_flag="-o out/conftest2.$ac_objext"
8358 # Insert the option either (1) after the last *FLAGS variable, or
8359 # (2) before a word containing "conftest.", or (3) at the end.
8360 # Note that $ac_compile itself does not contain backslashes and begins
8361 # with a dollar sign (not a hyphen), so the echo should work correctly.
8362 lt_compile=`echo "$ac_compile" | $SED \
8363 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8364 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8365 -e 's:$: $lt_compiler_flag:'`
8366 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8367 (eval "$lt_compile" 2>out/conftest.err)
8368 ac_status=$?
8369 cat out/conftest.err >&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8372 then
8373 # The compiler can only warn and ignore the option if not recognized
8374 # So say no if there are warnings
8375 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8376 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8377 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8378 lt_cv_prog_compiler_c_o=yes
8379 fi
8380 fi
8381 chmod u+w . 2>&5
8382 $RM conftest*
8383 # SGI C++ compiler will create directory out/ii_files/ for
8384 # template instantiation
8385 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8386 $RM out/* && rmdir out
8387 cd ..
8388 $RM -r conftest
8389 $RM conftest*
8390
8391 fi
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8393 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8394
8395
8396
8397
8398 hard_links="nottested"
8399 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8400 # do not overwrite the value of need_locks provided by the user
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8402 $as_echo_n "checking if we can lock with hard links... " >&6; }
8403 hard_links=yes
8404 $RM conftest*
8405 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8406 touch conftest.a
8407 ln conftest.a conftest.b 2>&5 || hard_links=no
8408 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8410 $as_echo "$hard_links" >&6; }
8411 if test "$hard_links" = no; then
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8413 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8414 need_locks=warn
8415 fi
8416 else
8417 need_locks=no
8418 fi
8419
8420
8421
8422
8423
8424
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8426 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8427
8428 runpath_var=
8429 allow_undefined_flag=
8430 always_export_symbols=no
8431 archive_cmds=
8432 archive_expsym_cmds=
8433 compiler_needs_object=no
8434 enable_shared_with_static_runtimes=no
8435 export_dynamic_flag_spec=
8436 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8437 hardcode_automatic=no
8438 hardcode_direct=no
8439 hardcode_direct_absolute=no
8440 hardcode_libdir_flag_spec=
8441 hardcode_libdir_separator=
8442 hardcode_minus_L=no
8443 hardcode_shlibpath_var=unsupported
8444 inherit_rpath=no
8445 link_all_deplibs=unknown
8446 module_cmds=
8447 module_expsym_cmds=
8448 old_archive_from_new_cmds=
8449 old_archive_from_expsyms_cmds=
8450 thread_safe_flag_spec=
8451 whole_archive_flag_spec=
8452 # include_expsyms should be a list of space-separated symbols to be *always*
8453 # included in the symbol list
8454 include_expsyms=
8455 # exclude_expsyms can be an extended regexp of symbols to exclude
8456 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8457 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8458 # as well as any symbol that contains `d'.
8459 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8460 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8461 # platforms (ab)use it in PIC code, but their linkers get confused if
8462 # the symbol is explicitly referenced. Since portable code cannot
8463 # rely on this symbol name, it's probably fine to never include it in
8464 # preloaded symbol tables.
8465 # Exclude shared library initialization/finalization symbols.
8466 extract_expsyms_cmds=
8467
8468 case $host_os in
8469 cygwin* | mingw* | pw32* | cegcc*)
8470 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8471 # When not using gcc, we currently assume that we are using
8472 # Microsoft Visual C++.
8473 if test "$GCC" != yes; then
8474 with_gnu_ld=no
8475 fi
8476 ;;
8477 interix*)
8478 # we just hope/assume this is gcc and not c89 (= MSVC++)
8479 with_gnu_ld=yes
8480 ;;
8481 openbsd*)
8482 with_gnu_ld=no
8483 ;;
8484 esac
8485
8486 ld_shlibs=yes
8487
8488 # On some targets, GNU ld is compatible enough with the native linker
8489 # that we're better off using the native interface for both.
8490 lt_use_gnu_ld_interface=no
8491 if test "$with_gnu_ld" = yes; then
8492 case $host_os in
8493 aix*)
8494 # The AIX port of GNU ld has always aspired to compatibility
8495 # with the native linker. However, as the warning in the GNU ld
8496 # block says, versions before 2.19.5* couldn't really create working
8497 # shared libraries, regardless of the interface used.
8498 case `$LD -v 2>&1` in
8499 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8500 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8501 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8502 *)
8503 lt_use_gnu_ld_interface=yes
8504 ;;
8505 esac
8506 ;;
8507 *)
8508 lt_use_gnu_ld_interface=yes
8509 ;;
8510 esac
8511 fi
8512
8513 if test "$lt_use_gnu_ld_interface" = yes; then
8514 # If archive_cmds runs LD, not CC, wlarc should be empty
8515 wlarc='${wl}'
8516
8517 # Set some defaults for GNU ld with shared library support. These
8518 # are reset later if shared libraries are not supported. Putting them
8519 # here allows them to be overridden if necessary.
8520 runpath_var=LD_RUN_PATH
8521 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8522 export_dynamic_flag_spec='${wl}--export-dynamic'
8523 # ancient GNU ld didn't support --whole-archive et. al.
8524 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8525 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8526 else
8527 whole_archive_flag_spec=
8528 fi
8529 supports_anon_versioning=no
8530 case `$LD -v 2>&1` in
8531 *GNU\ gold*) supports_anon_versioning=yes ;;
8532 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8533 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8534 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8535 *\ 2.11.*) ;; # other 2.11 versions
8536 *) supports_anon_versioning=yes ;;
8537 esac
8538
8539 # See if GNU ld supports shared libraries.
8540 case $host_os in
8541 aix[3-9]*)
8542 # On AIX/PPC, the GNU linker is very broken
8543 if test "$host_cpu" != ia64; then
8544 ld_shlibs=no
8545 cat <<_LT_EOF 1>&2
8546
8547 *** Warning: the GNU linker, at least up to release 2.19, is reported
8548 *** to be unable to reliably create shared libraries on AIX.
8549 *** Therefore, libtool is disabling shared libraries support. If you
8550 *** really care for shared libraries, you may want to install binutils
8551 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8552 *** You will then need to restart the configuration process.
8553
8554 _LT_EOF
8555 fi
8556 ;;
8557
8558 amigaos*)
8559 case $host_cpu in
8560 powerpc)
8561 # see comment about AmigaOS4 .so support
8562 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8563 archive_expsym_cmds=''
8564 ;;
8565 m68k)
8566 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)'
8567 hardcode_libdir_flag_spec='-L$libdir'
8568 hardcode_minus_L=yes
8569 ;;
8570 esac
8571 ;;
8572
8573 beos*)
8574 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8575 allow_undefined_flag=unsupported
8576 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8577 # support --undefined. This deserves some investigation. FIXME
8578 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8579 else
8580 ld_shlibs=no
8581 fi
8582 ;;
8583
8584 cygwin* | mingw* | pw32* | cegcc*)
8585 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8586 # as there is no search path for DLLs.
8587 hardcode_libdir_flag_spec='-L$libdir'
8588 export_dynamic_flag_spec='${wl}--export-all-symbols'
8589 allow_undefined_flag=unsupported
8590 always_export_symbols=no
8591 enable_shared_with_static_runtimes=yes
8592 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'
8593 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8594
8595 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8596 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8597 # If the export-symbols file already is a .def file (1st line
8598 # is EXPORTS), use it as is; otherwise, prepend...
8599 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8600 cp $export_symbols $output_objdir/$soname.def;
8601 else
8602 echo EXPORTS > $output_objdir/$soname.def;
8603 cat $export_symbols >> $output_objdir/$soname.def;
8604 fi~
8605 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8606 else
8607 ld_shlibs=no
8608 fi
8609 ;;
8610
8611 haiku*)
8612 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8613 link_all_deplibs=yes
8614 ;;
8615
8616 interix[3-9]*)
8617 hardcode_direct=no
8618 hardcode_shlibpath_var=no
8619 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8620 export_dynamic_flag_spec='${wl}-E'
8621 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8622 # Instead, shared libraries are loaded at an image base (0x10000000 by
8623 # default) and relocated if they conflict, which is a slow very memory
8624 # consuming and fragmenting process. To avoid this, we pick a random,
8625 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8626 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8627 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8628 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'
8629 ;;
8630
8631 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8632 tmp_diet=no
8633 if test "$host_os" = linux-dietlibc; then
8634 case $cc_basename in
8635 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8636 esac
8637 fi
8638 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8639 && test "$tmp_diet" = no
8640 then
8641 tmp_addflag=' $pic_flag'
8642 tmp_sharedflag='-shared'
8643 case $cc_basename,$host_cpu in
8644 pgcc*) # Portland Group C compiler
8645 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'
8646 tmp_addflag=' $pic_flag'
8647 ;;
8648 pgf77* | pgf90* | pgf95* | pgfortran*)
8649 # Portland Group f77 and f90 compilers
8650 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'
8651 tmp_addflag=' $pic_flag -Mnomain' ;;
8652 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8653 tmp_addflag=' -i_dynamic' ;;
8654 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8655 tmp_addflag=' -i_dynamic -nofor_main' ;;
8656 ifc* | ifort*) # Intel Fortran compiler
8657 tmp_addflag=' -nofor_main' ;;
8658 lf95*) # Lahey Fortran 8.1
8659 whole_archive_flag_spec=
8660 tmp_sharedflag='--shared' ;;
8661 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8662 tmp_sharedflag='-qmkshrobj'
8663 tmp_addflag= ;;
8664 nvcc*) # Cuda Compiler Driver 2.2
8665 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'
8666 compiler_needs_object=yes
8667 ;;
8668 esac
8669 case `$CC -V 2>&1 | sed 5q` in
8670 *Sun\ C*) # Sun C 5.9
8671 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'
8672 compiler_needs_object=yes
8673 tmp_sharedflag='-G' ;;
8674 *Sun\ F*) # Sun Fortran 8.3
8675 tmp_sharedflag='-G' ;;
8676 esac
8677 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8678
8679 if test "x$supports_anon_versioning" = xyes; then
8680 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8681 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8682 echo "local: *; };" >> $output_objdir/$libname.ver~
8683 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8684 fi
8685
8686 case $cc_basename in
8687 xlf* | bgf* | bgxlf* | mpixlf*)
8688 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8689 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8690 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8691 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8692 if test "x$supports_anon_versioning" = xyes; then
8693 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8694 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8695 echo "local: *; };" >> $output_objdir/$libname.ver~
8696 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8697 fi
8698 ;;
8699 esac
8700 else
8701 ld_shlibs=no
8702 fi
8703 ;;
8704
8705 netbsd*)
8706 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8707 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8708 wlarc=
8709 else
8710 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8711 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8712 fi
8713 ;;
8714
8715 solaris*)
8716 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8717 ld_shlibs=no
8718 cat <<_LT_EOF 1>&2
8719
8720 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8721 *** create shared libraries on Solaris systems. Therefore, libtool
8722 *** is disabling shared libraries support. We urge you to upgrade GNU
8723 *** binutils to release 2.9.1 or newer. Another option is to modify
8724 *** your PATH or compiler configuration so that the native linker is
8725 *** used, and then restart.
8726
8727 _LT_EOF
8728 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8729 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8730 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8731 else
8732 ld_shlibs=no
8733 fi
8734 ;;
8735
8736 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8737 case `$LD -v 2>&1` in
8738 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8739 ld_shlibs=no
8740 cat <<_LT_EOF 1>&2
8741
8742 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8743 *** reliably create shared libraries on SCO systems. Therefore, libtool
8744 *** is disabling shared libraries support. We urge you to upgrade GNU
8745 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8746 *** your PATH or compiler configuration so that the native linker is
8747 *** used, and then restart.
8748
8749 _LT_EOF
8750 ;;
8751 *)
8752 # For security reasons, it is highly recommended that you always
8753 # use absolute paths for naming shared libraries, and exclude the
8754 # DT_RUNPATH tag from executables and libraries. But doing so
8755 # requires that you compile everything twice, which is a pain.
8756 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8757 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8758 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8759 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8760 else
8761 ld_shlibs=no
8762 fi
8763 ;;
8764 esac
8765 ;;
8766
8767 sunos4*)
8768 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8769 wlarc=
8770 hardcode_direct=yes
8771 hardcode_shlibpath_var=no
8772 ;;
8773
8774 *)
8775 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8776 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8777 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8778 else
8779 ld_shlibs=no
8780 fi
8781 ;;
8782 esac
8783
8784 if test "$ld_shlibs" = no; then
8785 runpath_var=
8786 hardcode_libdir_flag_spec=
8787 export_dynamic_flag_spec=
8788 whole_archive_flag_spec=
8789 fi
8790 else
8791 # PORTME fill in a description of your system's linker (not GNU ld)
8792 case $host_os in
8793 aix3*)
8794 allow_undefined_flag=unsupported
8795 always_export_symbols=yes
8796 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'
8797 # Note: this linker hardcodes the directories in LIBPATH if there
8798 # are no directories specified by -L.
8799 hardcode_minus_L=yes
8800 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8801 # Neither direct hardcoding nor static linking is supported with a
8802 # broken collect2.
8803 hardcode_direct=unsupported
8804 fi
8805 ;;
8806
8807 aix[4-9]*)
8808 if test "$host_cpu" = ia64; then
8809 # On IA64, the linker does run time linking by default, so we don't
8810 # have to do anything special.
8811 aix_use_runtimelinking=no
8812 exp_sym_flag='-Bexport'
8813 no_entry_flag=""
8814 else
8815 # If we're using GNU nm, then we don't want the "-C" option.
8816 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8817 # Also, AIX nm treats weak defined symbols like other global
8818 # defined symbols, whereas GNU nm marks them as "W".
8819 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8820 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'
8821 else
8822 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'
8823 fi
8824 aix_use_runtimelinking=no
8825
8826 # Test if we are trying to use run time linking or normal
8827 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8828 # need to do runtime linking.
8829 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8830 for ld_flag in $LDFLAGS; do
8831 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8832 aix_use_runtimelinking=yes
8833 break
8834 fi
8835 done
8836 ;;
8837 esac
8838
8839 exp_sym_flag='-bexport'
8840 no_entry_flag='-bnoentry'
8841 fi
8842
8843 # When large executables or shared objects are built, AIX ld can
8844 # have problems creating the table of contents. If linking a library
8845 # or program results in "error TOC overflow" add -mminimal-toc to
8846 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8847 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8848
8849 archive_cmds=''
8850 hardcode_direct=yes
8851 hardcode_direct_absolute=yes
8852 hardcode_libdir_separator=':'
8853 link_all_deplibs=yes
8854 file_list_spec='${wl}-f,'
8855
8856 if test "$GCC" = yes; then
8857 case $host_os in aix4.[012]|aix4.[012].*)
8858 # We only want to do this on AIX 4.2 and lower, the check
8859 # below for broken collect2 doesn't work under 4.3+
8860 collect2name=`${CC} -print-prog-name=collect2`
8861 if test -f "$collect2name" &&
8862 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8863 then
8864 # We have reworked collect2
8865 :
8866 else
8867 # We have old collect2
8868 hardcode_direct=unsupported
8869 # It fails to find uninstalled libraries when the uninstalled
8870 # path is not listed in the libpath. Setting hardcode_minus_L
8871 # to unsupported forces relinking
8872 hardcode_minus_L=yes
8873 hardcode_libdir_flag_spec='-L$libdir'
8874 hardcode_libdir_separator=
8875 fi
8876 ;;
8877 esac
8878 shared_flag='-shared'
8879 if test "$aix_use_runtimelinking" = yes; then
8880 shared_flag="$shared_flag "'${wl}-G'
8881 fi
8882 else
8883 # not using gcc
8884 if test "$host_cpu" = ia64; then
8885 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8886 # chokes on -Wl,-G. The following line is correct:
8887 shared_flag='-G'
8888 else
8889 if test "$aix_use_runtimelinking" = yes; then
8890 shared_flag='${wl}-G'
8891 else
8892 shared_flag='${wl}-bM:SRE'
8893 fi
8894 fi
8895 fi
8896
8897 export_dynamic_flag_spec='${wl}-bexpall'
8898 # It seems that -bexpall does not export symbols beginning with
8899 # underscore (_), so it is better to generate a list of symbols to export.
8900 always_export_symbols=yes
8901 if test "$aix_use_runtimelinking" = yes; then
8902 # Warning - without using the other runtime loading flags (-brtl),
8903 # -berok will link without error, but may produce a broken library.
8904 allow_undefined_flag='-berok'
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 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"
8952 else
8953 if test "$host_cpu" = ia64; then
8954 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8955 allow_undefined_flag="-z nodefs"
8956 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"
8957 else
8958 # Determine the default libpath from the value encoded in an
8959 # empty executable.
8960 if test "${lt_cv_aix_libpath+set}" = set; then
8961 aix_libpath=$lt_cv_aix_libpath
8962 else
8963 if ${lt_cv_aix_libpath_+:} false; then :
8964 $as_echo_n "(cached) " >&6
8965 else
8966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8967 /* end confdefs.h. */
8968
8969 int
8970 main ()
8971 {
8972
8973 ;
8974 return 0;
8975 }
8976 _ACEOF
8977 if ac_fn_c_try_link "$LINENO"; then :
8978
8979 lt_aix_libpath_sed='
8980 /Import File Strings/,/^$/ {
8981 /^0/ {
8982 s/^0 *\([^ ]*\) *$/\1/
8983 p
8984 }
8985 }'
8986 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8987 # Check for a 64-bit object if we didn't find anything.
8988 if test -z "$lt_cv_aix_libpath_"; then
8989 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8990 fi
8991 fi
8992 rm -f core conftest.err conftest.$ac_objext \
8993 conftest$ac_exeext conftest.$ac_ext
8994 if test -z "$lt_cv_aix_libpath_"; then
8995 lt_cv_aix_libpath_="/usr/lib:/lib"
8996 fi
8997
8998 fi
8999
9000 aix_libpath=$lt_cv_aix_libpath_
9001 fi
9002
9003 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9004 # Warning - without using the other run time loading flags,
9005 # -berok will link without error, but may produce a broken library.
9006 no_undefined_flag=' ${wl}-bernotok'
9007 allow_undefined_flag=' ${wl}-berok'
9008 if test "$with_gnu_ld" = yes; then
9009 # We only use this code for GNU lds that support --whole-archive.
9010 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9011 else
9012 # Exported symbols can be pulled into shared objects from archives
9013 whole_archive_flag_spec='$convenience'
9014 fi
9015 archive_cmds_need_lc=yes
9016 # This is similar to how AIX traditionally builds its shared libraries.
9017 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'
9018 fi
9019 fi
9020 ;;
9021
9022 amigaos*)
9023 case $host_cpu in
9024 powerpc)
9025 # see comment about AmigaOS4 .so support
9026 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9027 archive_expsym_cmds=''
9028 ;;
9029 m68k)
9030 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)'
9031 hardcode_libdir_flag_spec='-L$libdir'
9032 hardcode_minus_L=yes
9033 ;;
9034 esac
9035 ;;
9036
9037 bsdi[45]*)
9038 export_dynamic_flag_spec=-rdynamic
9039 ;;
9040
9041 cygwin* | mingw* | pw32* | cegcc*)
9042 # When not using gcc, we currently assume that we are using
9043 # Microsoft Visual C++.
9044 # hardcode_libdir_flag_spec is actually meaningless, as there is
9045 # no search path for DLLs.
9046 case $cc_basename in
9047 cl*)
9048 # Native MSVC
9049 hardcode_libdir_flag_spec=' '
9050 allow_undefined_flag=unsupported
9051 always_export_symbols=yes
9052 file_list_spec='@'
9053 # Tell ltmain to make .lib files, not .a files.
9054 libext=lib
9055 # Tell ltmain to make .dll files, not .so files.
9056 shrext_cmds=".dll"
9057 # FIXME: Setting linknames here is a bad hack.
9058 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9059 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9060 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9061 else
9062 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9063 fi~
9064 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9065 linknames='
9066 # The linker will not automatically build a static lib if we build a DLL.
9067 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9068 enable_shared_with_static_runtimes=yes
9069 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9070 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9071 # Don't use ranlib
9072 old_postinstall_cmds='chmod 644 $oldlib'
9073 postlink_cmds='lt_outputfile="@OUTPUT@"~
9074 lt_tool_outputfile="@TOOL_OUTPUT@"~
9075 case $lt_outputfile in
9076 *.exe|*.EXE) ;;
9077 *)
9078 lt_outputfile="$lt_outputfile.exe"
9079 lt_tool_outputfile="$lt_tool_outputfile.exe"
9080 ;;
9081 esac~
9082 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9083 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9084 $RM "$lt_outputfile.manifest";
9085 fi'
9086 ;;
9087 *)
9088 # Assume MSVC wrapper
9089 hardcode_libdir_flag_spec=' '
9090 allow_undefined_flag=unsupported
9091 # Tell ltmain to make .lib files, not .a files.
9092 libext=lib
9093 # Tell ltmain to make .dll files, not .so files.
9094 shrext_cmds=".dll"
9095 # FIXME: Setting linknames here is a bad hack.
9096 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9097 # The linker will automatically build a .lib file if we build a DLL.
9098 old_archive_from_new_cmds='true'
9099 # FIXME: Should let the user specify the lib program.
9100 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9101 enable_shared_with_static_runtimes=yes
9102 ;;
9103 esac
9104 ;;
9105
9106 darwin* | rhapsody*)
9107
9108
9109 archive_cmds_need_lc=no
9110 hardcode_direct=no
9111 hardcode_automatic=yes
9112 hardcode_shlibpath_var=unsupported
9113 if test "$lt_cv_ld_force_load" = "yes"; then
9114 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\"`'
9115
9116 else
9117 whole_archive_flag_spec=''
9118 fi
9119 link_all_deplibs=yes
9120 allow_undefined_flag="$_lt_dar_allow_undefined"
9121 case $cc_basename in
9122 ifort*) _lt_dar_can_shared=yes ;;
9123 *) _lt_dar_can_shared=$GCC ;;
9124 esac
9125 if test "$_lt_dar_can_shared" = "yes"; then
9126 output_verbose_link_cmd=func_echo_all
9127 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9128 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9129 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}"
9130 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}"
9131
9132 else
9133 ld_shlibs=no
9134 fi
9135
9136 ;;
9137
9138 dgux*)
9139 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9140 hardcode_libdir_flag_spec='-L$libdir'
9141 hardcode_shlibpath_var=no
9142 ;;
9143
9144 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9145 # support. Future versions do this automatically, but an explicit c++rt0.o
9146 # does not break anything, and helps significantly (at the cost of a little
9147 # extra space).
9148 freebsd2.2*)
9149 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9150 hardcode_libdir_flag_spec='-R$libdir'
9151 hardcode_direct=yes
9152 hardcode_shlibpath_var=no
9153 ;;
9154
9155 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9156 freebsd2.*)
9157 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9158 hardcode_direct=yes
9159 hardcode_minus_L=yes
9160 hardcode_shlibpath_var=no
9161 ;;
9162
9163 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9164 freebsd* | dragonfly*)
9165 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9166 hardcode_libdir_flag_spec='-R$libdir'
9167 hardcode_direct=yes
9168 hardcode_shlibpath_var=no
9169 ;;
9170
9171 hpux9*)
9172 if test "$GCC" = yes; then
9173 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'
9174 else
9175 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'
9176 fi
9177 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9178 hardcode_libdir_separator=:
9179 hardcode_direct=yes
9180
9181 # hardcode_minus_L: Not really in the search PATH,
9182 # but as the default location of the library.
9183 hardcode_minus_L=yes
9184 export_dynamic_flag_spec='${wl}-E'
9185 ;;
9186
9187 hpux10*)
9188 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9189 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9190 else
9191 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9192 fi
9193 if test "$with_gnu_ld" = no; then
9194 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9195 hardcode_libdir_separator=:
9196 hardcode_direct=yes
9197 hardcode_direct_absolute=yes
9198 export_dynamic_flag_spec='${wl}-E'
9199 # hardcode_minus_L: Not really in the search PATH,
9200 # but as the default location of the library.
9201 hardcode_minus_L=yes
9202 fi
9203 ;;
9204
9205 hpux11*)
9206 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9207 case $host_cpu in
9208 hppa*64*)
9209 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9210 ;;
9211 ia64*)
9212 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9213 ;;
9214 *)
9215 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9216 ;;
9217 esac
9218 else
9219 case $host_cpu in
9220 hppa*64*)
9221 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9222 ;;
9223 ia64*)
9224 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9225 ;;
9226 *)
9227
9228 # Older versions of the 11.00 compiler do not understand -b yet
9229 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9231 $as_echo_n "checking if $CC understands -b... " >&6; }
9232 if ${lt_cv_prog_compiler__b+:} false; then :
9233 $as_echo_n "(cached) " >&6
9234 else
9235 lt_cv_prog_compiler__b=no
9236 save_LDFLAGS="$LDFLAGS"
9237 LDFLAGS="$LDFLAGS -b"
9238 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9239 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9240 # The linker can only warn and ignore the option if not recognized
9241 # So say no if there are warnings
9242 if test -s conftest.err; then
9243 # Append any errors to the config.log.
9244 cat conftest.err 1>&5
9245 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9246 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9247 if diff conftest.exp conftest.er2 >/dev/null; then
9248 lt_cv_prog_compiler__b=yes
9249 fi
9250 else
9251 lt_cv_prog_compiler__b=yes
9252 fi
9253 fi
9254 $RM -r conftest*
9255 LDFLAGS="$save_LDFLAGS"
9256
9257 fi
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9259 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9260
9261 if test x"$lt_cv_prog_compiler__b" = xyes; then
9262 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9263 else
9264 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9265 fi
9266
9267 ;;
9268 esac
9269 fi
9270 if test "$with_gnu_ld" = no; then
9271 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9272 hardcode_libdir_separator=:
9273
9274 case $host_cpu in
9275 hppa*64*|ia64*)
9276 hardcode_direct=no
9277 hardcode_shlibpath_var=no
9278 ;;
9279 *)
9280 hardcode_direct=yes
9281 hardcode_direct_absolute=yes
9282 export_dynamic_flag_spec='${wl}-E'
9283
9284 # hardcode_minus_L: Not really in the search PATH,
9285 # but as the default location of the library.
9286 hardcode_minus_L=yes
9287 ;;
9288 esac
9289 fi
9290 ;;
9291
9292 irix5* | irix6* | nonstopux*)
9293 if test "$GCC" = yes; then
9294 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'
9295 # Try to use the -exported_symbol ld option, if it does not
9296 # work, assume that -exports_file does not work either and
9297 # implicitly export all symbols.
9298 # This should be the same for all languages, so no per-tag cache variable.
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9300 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9301 if ${lt_cv_irix_exported_symbol+:} false; then :
9302 $as_echo_n "(cached) " >&6
9303 else
9304 save_LDFLAGS="$LDFLAGS"
9305 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9307 /* end confdefs.h. */
9308 int foo (void) { return 0; }
9309 _ACEOF
9310 if ac_fn_c_try_link "$LINENO"; then :
9311 lt_cv_irix_exported_symbol=yes
9312 else
9313 lt_cv_irix_exported_symbol=no
9314 fi
9315 rm -f core conftest.err conftest.$ac_objext \
9316 conftest$ac_exeext conftest.$ac_ext
9317 LDFLAGS="$save_LDFLAGS"
9318 fi
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9320 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9321 if test "$lt_cv_irix_exported_symbol" = yes; then
9322 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'
9323 fi
9324 else
9325 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'
9326 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'
9327 fi
9328 archive_cmds_need_lc='no'
9329 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9330 hardcode_libdir_separator=:
9331 inherit_rpath=yes
9332 link_all_deplibs=yes
9333 ;;
9334
9335 netbsd*)
9336 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9337 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9338 else
9339 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9340 fi
9341 hardcode_libdir_flag_spec='-R$libdir'
9342 hardcode_direct=yes
9343 hardcode_shlibpath_var=no
9344 ;;
9345
9346 newsos6)
9347 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9348 hardcode_direct=yes
9349 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9350 hardcode_libdir_separator=:
9351 hardcode_shlibpath_var=no
9352 ;;
9353
9354 *nto* | *qnx*)
9355 ;;
9356
9357 openbsd*)
9358 if test -f /usr/libexec/ld.so; then
9359 hardcode_direct=yes
9360 hardcode_shlibpath_var=no
9361 hardcode_direct_absolute=yes
9362 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9363 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9364 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9365 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9366 export_dynamic_flag_spec='${wl}-E'
9367 else
9368 case $host_os in
9369 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9370 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9371 hardcode_libdir_flag_spec='-R$libdir'
9372 ;;
9373 *)
9374 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9375 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9376 ;;
9377 esac
9378 fi
9379 else
9380 ld_shlibs=no
9381 fi
9382 ;;
9383
9384 os2*)
9385 hardcode_libdir_flag_spec='-L$libdir'
9386 hardcode_minus_L=yes
9387 allow_undefined_flag=unsupported
9388 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'
9389 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9390 ;;
9391
9392 osf3*)
9393 if test "$GCC" = yes; then
9394 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9395 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'
9396 else
9397 allow_undefined_flag=' -expect_unresolved \*'
9398 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'
9399 fi
9400 archive_cmds_need_lc='no'
9401 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9402 hardcode_libdir_separator=:
9403 ;;
9404
9405 osf4* | osf5*) # as osf3* with the addition of -msym flag
9406 if test "$GCC" = yes; then
9407 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9408 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'
9409 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9410 else
9411 allow_undefined_flag=' -expect_unresolved \*'
9412 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'
9413 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~
9414 $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'
9415
9416 # Both c and cxx compiler support -rpath directly
9417 hardcode_libdir_flag_spec='-rpath $libdir'
9418 fi
9419 archive_cmds_need_lc='no'
9420 hardcode_libdir_separator=:
9421 ;;
9422
9423 solaris*)
9424 no_undefined_flag=' -z defs'
9425 if test "$GCC" = yes; then
9426 wlarc='${wl}'
9427 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9428 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9429 $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'
9430 else
9431 case `$CC -V 2>&1` in
9432 *"Compilers 5.0"*)
9433 wlarc=''
9434 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9435 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9436 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9437 ;;
9438 *)
9439 wlarc='${wl}'
9440 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9441 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9442 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9443 ;;
9444 esac
9445 fi
9446 hardcode_libdir_flag_spec='-R$libdir'
9447 hardcode_shlibpath_var=no
9448 case $host_os in
9449 solaris2.[0-5] | solaris2.[0-5].*) ;;
9450 *)
9451 # The compiler driver will combine and reorder linker options,
9452 # but understands `-z linker_flag'. GCC discards it without `$wl',
9453 # but is careful enough not to reorder.
9454 # Supported since Solaris 2.6 (maybe 2.5.1?)
9455 if test "$GCC" = yes; then
9456 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9457 else
9458 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9459 fi
9460 ;;
9461 esac
9462 link_all_deplibs=yes
9463 ;;
9464
9465 sunos4*)
9466 if test "x$host_vendor" = xsequent; then
9467 # Use $CC to link under sequent, because it throws in some extra .o
9468 # files that make .init and .fini sections work.
9469 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9470 else
9471 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9472 fi
9473 hardcode_libdir_flag_spec='-L$libdir'
9474 hardcode_direct=yes
9475 hardcode_minus_L=yes
9476 hardcode_shlibpath_var=no
9477 ;;
9478
9479 sysv4)
9480 case $host_vendor in
9481 sni)
9482 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9483 hardcode_direct=yes # is this really true???
9484 ;;
9485 siemens)
9486 ## LD is ld it makes a PLAMLIB
9487 ## CC just makes a GrossModule.
9488 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9489 reload_cmds='$CC -r -o $output$reload_objs'
9490 hardcode_direct=no
9491 ;;
9492 motorola)
9493 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9494 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9495 ;;
9496 esac
9497 runpath_var='LD_RUN_PATH'
9498 hardcode_shlibpath_var=no
9499 ;;
9500
9501 sysv4.3*)
9502 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9503 hardcode_shlibpath_var=no
9504 export_dynamic_flag_spec='-Bexport'
9505 ;;
9506
9507 sysv4*MP*)
9508 if test -d /usr/nec; then
9509 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9510 hardcode_shlibpath_var=no
9511 runpath_var=LD_RUN_PATH
9512 hardcode_runpath_var=yes
9513 ld_shlibs=yes
9514 fi
9515 ;;
9516
9517 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9518 no_undefined_flag='${wl}-z,text'
9519 archive_cmds_need_lc=no
9520 hardcode_shlibpath_var=no
9521 runpath_var='LD_RUN_PATH'
9522
9523 if test "$GCC" = yes; then
9524 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9525 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9526 else
9527 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9528 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9529 fi
9530 ;;
9531
9532 sysv5* | sco3.2v5* | sco5v6*)
9533 # Note: We can NOT use -z defs as we might desire, because we do not
9534 # link with -lc, and that would cause any symbols used from libc to
9535 # always be unresolved, which means just about no library would
9536 # ever link correctly. If we're not using GNU ld we use -z text
9537 # though, which does catch some bad symbols but isn't as heavy-handed
9538 # as -z defs.
9539 no_undefined_flag='${wl}-z,text'
9540 allow_undefined_flag='${wl}-z,nodefs'
9541 archive_cmds_need_lc=no
9542 hardcode_shlibpath_var=no
9543 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9544 hardcode_libdir_separator=':'
9545 link_all_deplibs=yes
9546 export_dynamic_flag_spec='${wl}-Bexport'
9547 runpath_var='LD_RUN_PATH'
9548
9549 if test "$GCC" = yes; then
9550 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9551 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9552 else
9553 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9554 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9555 fi
9556 ;;
9557
9558 uts4*)
9559 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9560 hardcode_libdir_flag_spec='-L$libdir'
9561 hardcode_shlibpath_var=no
9562 ;;
9563
9564 *)
9565 ld_shlibs=no
9566 ;;
9567 esac
9568
9569 if test x$host_vendor = xsni; then
9570 case $host in
9571 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9572 export_dynamic_flag_spec='${wl}-Blargedynsym'
9573 ;;
9574 esac
9575 fi
9576 fi
9577
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9579 $as_echo "$ld_shlibs" >&6; }
9580 test "$ld_shlibs" = no && can_build_shared=no
9581
9582 with_gnu_ld=$with_gnu_ld
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598 #
9599 # Do we need to explicitly link libc?
9600 #
9601 case "x$archive_cmds_need_lc" in
9602 x|xyes)
9603 # Assume -lc should be added
9604 archive_cmds_need_lc=yes
9605
9606 if test "$enable_shared" = yes && test "$GCC" = yes; then
9607 case $archive_cmds in
9608 *'~'*)
9609 # FIXME: we may have to deal with multi-command sequences.
9610 ;;
9611 '$CC '*)
9612 # Test whether the compiler implicitly links with -lc since on some
9613 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9614 # to ld, don't add -lc before -lgcc.
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9616 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9617 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9618 $as_echo_n "(cached) " >&6
9619 else
9620 $RM conftest*
9621 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9622
9623 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9624 (eval $ac_compile) 2>&5
9625 ac_status=$?
9626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9627 test $ac_status = 0; } 2>conftest.err; then
9628 soname=conftest
9629 lib=conftest
9630 libobjs=conftest.$ac_objext
9631 deplibs=
9632 wl=$lt_prog_compiler_wl
9633 pic_flag=$lt_prog_compiler_pic
9634 compiler_flags=-v
9635 linker_flags=-v
9636 verstring=
9637 output_objdir=.
9638 libname=conftest
9639 lt_save_allow_undefined_flag=$allow_undefined_flag
9640 allow_undefined_flag=
9641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9642 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9643 ac_status=$?
9644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9645 test $ac_status = 0; }
9646 then
9647 lt_cv_archive_cmds_need_lc=no
9648 else
9649 lt_cv_archive_cmds_need_lc=yes
9650 fi
9651 allow_undefined_flag=$lt_save_allow_undefined_flag
9652 else
9653 cat conftest.err 1>&5
9654 fi
9655 $RM conftest*
9656
9657 fi
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9659 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9660 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9661 ;;
9662 esac
9663 fi
9664 ;;
9665 esac
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
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9819 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9820
9821 if test "$GCC" = yes; then
9822 case $host_os in
9823 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9824 *) lt_awk_arg="/^libraries:/" ;;
9825 esac
9826 case $host_os in
9827 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9828 *) lt_sed_strip_eq="s,=/,/,g" ;;
9829 esac
9830 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9831 case $lt_search_path_spec in
9832 *\;*)
9833 # if the path contains ";" then we assume it to be the separator
9834 # otherwise default to the standard path separator (i.e. ":") - it is
9835 # assumed that no part of a normal pathname contains ";" but that should
9836 # okay in the real world where ";" in dirpaths is itself problematic.
9837 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9838 ;;
9839 *)
9840 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9841 ;;
9842 esac
9843 # Ok, now we have the path, separated by spaces, we can step through it
9844 # and add multilib dir if necessary.
9845 lt_tmp_lt_search_path_spec=
9846 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9847 for lt_sys_path in $lt_search_path_spec; do
9848 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9849 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9850 else
9851 test -d "$lt_sys_path" && \
9852 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9853 fi
9854 done
9855 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9856 BEGIN {RS=" "; FS="/|\n";} {
9857 lt_foo="";
9858 lt_count=0;
9859 for (lt_i = NF; lt_i > 0; lt_i--) {
9860 if ($lt_i != "" && $lt_i != ".") {
9861 if ($lt_i == "..") {
9862 lt_count++;
9863 } else {
9864 if (lt_count == 0) {
9865 lt_foo="/" $lt_i lt_foo;
9866 } else {
9867 lt_count--;
9868 }
9869 }
9870 }
9871 }
9872 if (lt_foo != "") { lt_freq[lt_foo]++; }
9873 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9874 }'`
9875 # AWK program above erroneously prepends '/' to C:/dos/paths
9876 # for these hosts.
9877 case $host_os in
9878 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9879 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9880 esac
9881 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9882 else
9883 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9884 fi
9885 library_names_spec=
9886 libname_spec='lib$name'
9887 soname_spec=
9888 shrext_cmds=".so"
9889 postinstall_cmds=
9890 postuninstall_cmds=
9891 finish_cmds=
9892 finish_eval=
9893 shlibpath_var=
9894 shlibpath_overrides_runpath=unknown
9895 version_type=none
9896 dynamic_linker="$host_os ld.so"
9897 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9898 need_lib_prefix=unknown
9899 hardcode_into_libs=no
9900
9901 # when you set need_version to no, make sure it does not cause -set_version
9902 # flags to be left without arguments
9903 need_version=unknown
9904
9905 case $host_os in
9906 aix3*)
9907 version_type=linux # correct to gnu/linux during the next big refactor
9908 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9909 shlibpath_var=LIBPATH
9910
9911 # AIX 3 has no versioning support, so we append a major version to the name.
9912 soname_spec='${libname}${release}${shared_ext}$major'
9913 ;;
9914
9915 aix[4-9]*)
9916 version_type=linux # correct to gnu/linux during the next big refactor
9917 need_lib_prefix=no
9918 need_version=no
9919 hardcode_into_libs=yes
9920 if test "$host_cpu" = ia64; then
9921 # AIX 5 supports IA64
9922 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9923 shlibpath_var=LD_LIBRARY_PATH
9924 else
9925 # With GCC up to 2.95.x, collect2 would create an import file
9926 # for dependence libraries. The import file would start with
9927 # the line `#! .'. This would cause the generated library to
9928 # depend on `.', always an invalid library. This was fixed in
9929 # development snapshots of GCC prior to 3.0.
9930 case $host_os in
9931 aix4 | aix4.[01] | aix4.[01].*)
9932 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9933 echo ' yes '
9934 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9935 :
9936 else
9937 can_build_shared=no
9938 fi
9939 ;;
9940 esac
9941 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9942 # soname into executable. Probably we can add versioning support to
9943 # collect2, so additional links can be useful in future.
9944 if test "$aix_use_runtimelinking" = yes; then
9945 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9946 # instead of lib<name>.a to let people know that these are not
9947 # typical AIX shared libraries.
9948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9949 else
9950 # We preserve .a as extension for shared libraries through AIX4.2
9951 # and later when we are not doing run time linking.
9952 library_names_spec='${libname}${release}.a $libname.a'
9953 soname_spec='${libname}${release}${shared_ext}$major'
9954 fi
9955 shlibpath_var=LIBPATH
9956 fi
9957 ;;
9958
9959 amigaos*)
9960 case $host_cpu in
9961 powerpc)
9962 # Since July 2007 AmigaOS4 officially supports .so libraries.
9963 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9965 ;;
9966 m68k)
9967 library_names_spec='$libname.ixlibrary $libname.a'
9968 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9969 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'
9970 ;;
9971 esac
9972 ;;
9973
9974 beos*)
9975 library_names_spec='${libname}${shared_ext}'
9976 dynamic_linker="$host_os ld.so"
9977 shlibpath_var=LIBRARY_PATH
9978 ;;
9979
9980 bsdi[45]*)
9981 version_type=linux # correct to gnu/linux during the next big refactor
9982 need_version=no
9983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9984 soname_spec='${libname}${release}${shared_ext}$major'
9985 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9986 shlibpath_var=LD_LIBRARY_PATH
9987 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9988 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9989 # the default ld.so.conf also contains /usr/contrib/lib and
9990 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9991 # libtool to hard-code these into programs
9992 ;;
9993
9994 cygwin* | mingw* | pw32* | cegcc*)
9995 version_type=windows
9996 shrext_cmds=".dll"
9997 need_version=no
9998 need_lib_prefix=no
9999
10000 case $GCC,$cc_basename in
10001 yes,*)
10002 # gcc
10003 library_names_spec='$libname.dll.a'
10004 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10005 postinstall_cmds='base_file=`basename \${file}`~
10006 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10007 dldir=$destdir/`dirname \$dlpath`~
10008 test -d \$dldir || mkdir -p \$dldir~
10009 $install_prog $dir/$dlname \$dldir/$dlname~
10010 chmod a+x \$dldir/$dlname~
10011 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10012 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10013 fi'
10014 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10015 dlpath=$dir/\$dldll~
10016 $RM \$dlpath'
10017 shlibpath_overrides_runpath=yes
10018
10019 case $host_os in
10020 cygwin*)
10021 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10022 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10023
10024 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10025 ;;
10026 mingw* | cegcc*)
10027 # MinGW DLLs use traditional 'lib' prefix
10028 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10029 ;;
10030 pw32*)
10031 # pw32 DLLs use 'pw' prefix rather than 'lib'
10032 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10033 ;;
10034 esac
10035 dynamic_linker='Win32 ld.exe'
10036 ;;
10037
10038 *,cl*)
10039 # Native MSVC
10040 libname_spec='$name'
10041 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10042 library_names_spec='${libname}.dll.lib'
10043
10044 case $build_os in
10045 mingw*)
10046 sys_lib_search_path_spec=
10047 lt_save_ifs=$IFS
10048 IFS=';'
10049 for lt_path in $LIB
10050 do
10051 IFS=$lt_save_ifs
10052 # Let DOS variable expansion print the short 8.3 style file name.
10053 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10054 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10055 done
10056 IFS=$lt_save_ifs
10057 # Convert to MSYS style.
10058 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10059 ;;
10060 cygwin*)
10061 # Convert to unix form, then to dos form, then back to unix form
10062 # but this time dos style (no spaces!) so that the unix form looks
10063 # like /cygdrive/c/PROGRA~1:/cygdr...
10064 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10065 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10066 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10067 ;;
10068 *)
10069 sys_lib_search_path_spec="$LIB"
10070 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10071 # It is most probably a Windows format PATH.
10072 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10073 else
10074 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10075 fi
10076 # FIXME: find the short name or the path components, as spaces are
10077 # common. (e.g. "Program Files" -> "PROGRA~1")
10078 ;;
10079 esac
10080
10081 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10082 postinstall_cmds='base_file=`basename \${file}`~
10083 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10084 dldir=$destdir/`dirname \$dlpath`~
10085 test -d \$dldir || mkdir -p \$dldir~
10086 $install_prog $dir/$dlname \$dldir/$dlname'
10087 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10088 dlpath=$dir/\$dldll~
10089 $RM \$dlpath'
10090 shlibpath_overrides_runpath=yes
10091 dynamic_linker='Win32 link.exe'
10092 ;;
10093
10094 *)
10095 # Assume MSVC wrapper
10096 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10097 dynamic_linker='Win32 ld.exe'
10098 ;;
10099 esac
10100 # FIXME: first we should search . and the directory the executable is in
10101 shlibpath_var=PATH
10102 ;;
10103
10104 darwin* | rhapsody*)
10105 dynamic_linker="$host_os dyld"
10106 version_type=darwin
10107 need_lib_prefix=no
10108 need_version=no
10109 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10110 soname_spec='${libname}${release}${major}$shared_ext'
10111 shlibpath_overrides_runpath=yes
10112 shlibpath_var=DYLD_LIBRARY_PATH
10113 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10114
10115 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10116 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10117 ;;
10118
10119 dgux*)
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 ;;
10127
10128 freebsd* | dragonfly*)
10129 # DragonFly does not have aout. When/if they implement a new
10130 # versioning mechanism, adjust this.
10131 if test -x /usr/bin/objformat; then
10132 objformat=`/usr/bin/objformat`
10133 else
10134 case $host_os in
10135 freebsd[23].*) objformat=aout ;;
10136 *) objformat=elf ;;
10137 esac
10138 fi
10139 version_type=freebsd-$objformat
10140 case $version_type in
10141 freebsd-elf*)
10142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10143 need_version=no
10144 need_lib_prefix=no
10145 ;;
10146 freebsd-*)
10147 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10148 need_version=yes
10149 ;;
10150 esac
10151 shlibpath_var=LD_LIBRARY_PATH
10152 case $host_os in
10153 freebsd2.*)
10154 shlibpath_overrides_runpath=yes
10155 ;;
10156 freebsd3.[01]* | freebsdelf3.[01]*)
10157 shlibpath_overrides_runpath=yes
10158 hardcode_into_libs=yes
10159 ;;
10160 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10161 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10162 shlibpath_overrides_runpath=no
10163 hardcode_into_libs=yes
10164 ;;
10165 *) # from 4.6 on, and DragonFly
10166 shlibpath_overrides_runpath=yes
10167 hardcode_into_libs=yes
10168 ;;
10169 esac
10170 ;;
10171
10172 gnu*)
10173 version_type=linux # correct to gnu/linux during the next big refactor
10174 need_lib_prefix=no
10175 need_version=no
10176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10177 soname_spec='${libname}${release}${shared_ext}$major'
10178 shlibpath_var=LD_LIBRARY_PATH
10179 shlibpath_overrides_runpath=no
10180 hardcode_into_libs=yes
10181 ;;
10182
10183 haiku*)
10184 version_type=linux # correct to gnu/linux during the next big refactor
10185 need_lib_prefix=no
10186 need_version=no
10187 dynamic_linker="$host_os runtime_loader"
10188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10189 soname_spec='${libname}${release}${shared_ext}$major'
10190 shlibpath_var=LIBRARY_PATH
10191 shlibpath_overrides_runpath=yes
10192 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10193 hardcode_into_libs=yes
10194 ;;
10195
10196 hpux9* | hpux10* | hpux11*)
10197 # Give a soname corresponding to the major version so that dld.sl refuses to
10198 # link against other versions.
10199 version_type=sunos
10200 need_lib_prefix=no
10201 need_version=no
10202 case $host_cpu in
10203 ia64*)
10204 shrext_cmds='.so'
10205 hardcode_into_libs=yes
10206 dynamic_linker="$host_os dld.so"
10207 shlibpath_var=LD_LIBRARY_PATH
10208 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10210 soname_spec='${libname}${release}${shared_ext}$major'
10211 if test "X$HPUX_IA64_MODE" = X32; then
10212 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10213 else
10214 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10215 fi
10216 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10217 ;;
10218 hppa*64*)
10219 shrext_cmds='.sl'
10220 hardcode_into_libs=yes
10221 dynamic_linker="$host_os dld.sl"
10222 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10223 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10225 soname_spec='${libname}${release}${shared_ext}$major'
10226 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10227 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10228 ;;
10229 *)
10230 shrext_cmds='.sl'
10231 dynamic_linker="$host_os dld.sl"
10232 shlibpath_var=SHLIB_PATH
10233 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10235 soname_spec='${libname}${release}${shared_ext}$major'
10236 ;;
10237 esac
10238 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10239 postinstall_cmds='chmod 555 $lib'
10240 # or fails outright, so override atomically:
10241 install_override_mode=555
10242 ;;
10243
10244 interix[3-9]*)
10245 version_type=linux # correct to gnu/linux during the next big refactor
10246 need_lib_prefix=no
10247 need_version=no
10248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10249 soname_spec='${libname}${release}${shared_ext}$major'
10250 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10251 shlibpath_var=LD_LIBRARY_PATH
10252 shlibpath_overrides_runpath=no
10253 hardcode_into_libs=yes
10254 ;;
10255
10256 irix5* | irix6* | nonstopux*)
10257 case $host_os in
10258 nonstopux*) version_type=nonstopux ;;
10259 *)
10260 if test "$lt_cv_prog_gnu_ld" = yes; then
10261 version_type=linux # correct to gnu/linux during the next big refactor
10262 else
10263 version_type=irix
10264 fi ;;
10265 esac
10266 need_lib_prefix=no
10267 need_version=no
10268 soname_spec='${libname}${release}${shared_ext}$major'
10269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10270 case $host_os in
10271 irix5* | nonstopux*)
10272 libsuff= shlibsuff=
10273 ;;
10274 *)
10275 case $LD in # libtool.m4 will add one of these switches to LD
10276 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10277 libsuff= shlibsuff= libmagic=32-bit;;
10278 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10279 libsuff=32 shlibsuff=N32 libmagic=N32;;
10280 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10281 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10282 *) libsuff= shlibsuff= libmagic=never-match;;
10283 esac
10284 ;;
10285 esac
10286 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10287 shlibpath_overrides_runpath=no
10288 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10289 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10290 hardcode_into_libs=yes
10291 ;;
10292
10293 # No shared lib support for Linux oldld, aout, or coff.
10294 linux*oldld* | linux*aout* | linux*coff*)
10295 dynamic_linker=no
10296 ;;
10297
10298 # This must be glibc/ELF.
10299 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10300 version_type=linux # correct to gnu/linux during the next big refactor
10301 need_lib_prefix=no
10302 need_version=no
10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10304 soname_spec='${libname}${release}${shared_ext}$major'
10305 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10306 shlibpath_var=LD_LIBRARY_PATH
10307 shlibpath_overrides_runpath=no
10308
10309 # Some binutils ld are patched to set DT_RUNPATH
10310 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10311 $as_echo_n "(cached) " >&6
10312 else
10313 lt_cv_shlibpath_overrides_runpath=no
10314 save_LDFLAGS=$LDFLAGS
10315 save_libdir=$libdir
10316 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10317 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10319 /* end confdefs.h. */
10320
10321 int
10322 main ()
10323 {
10324
10325 ;
10326 return 0;
10327 }
10328 _ACEOF
10329 if ac_fn_c_try_link "$LINENO"; then :
10330 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10331 lt_cv_shlibpath_overrides_runpath=yes
10332 fi
10333 fi
10334 rm -f core conftest.err conftest.$ac_objext \
10335 conftest$ac_exeext conftest.$ac_ext
10336 LDFLAGS=$save_LDFLAGS
10337 libdir=$save_libdir
10338
10339 fi
10340
10341 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10342
10343 # This implies no fast_install, which is unacceptable.
10344 # Some rework will be needed to allow for fast_install
10345 # before this can be enabled.
10346 hardcode_into_libs=yes
10347
10348 # Append ld.so.conf contents to the search path
10349 if test -f /etc/ld.so.conf; then
10350 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' ' '`
10351 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10352 fi
10353
10354 # We used to test for /lib/ld.so.1 and disable shared libraries on
10355 # powerpc, because MkLinux only supported shared libraries with the
10356 # GNU dynamic linker. Since this was broken with cross compilers,
10357 # most powerpc-linux boxes support dynamic linking these days and
10358 # people can always --disable-shared, the test was removed, and we
10359 # assume the GNU/Linux dynamic linker is in use.
10360 dynamic_linker='GNU/Linux ld.so'
10361 ;;
10362
10363 netbsd*)
10364 version_type=sunos
10365 need_lib_prefix=no
10366 need_version=no
10367 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10369 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10370 dynamic_linker='NetBSD (a.out) ld.so'
10371 else
10372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10373 soname_spec='${libname}${release}${shared_ext}$major'
10374 dynamic_linker='NetBSD ld.elf_so'
10375 fi
10376 shlibpath_var=LD_LIBRARY_PATH
10377 shlibpath_overrides_runpath=yes
10378 hardcode_into_libs=yes
10379 ;;
10380
10381 newsos6)
10382 version_type=linux # correct to gnu/linux during the next big refactor
10383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10384 shlibpath_var=LD_LIBRARY_PATH
10385 shlibpath_overrides_runpath=yes
10386 ;;
10387
10388 *nto* | *qnx*)
10389 version_type=qnx
10390 need_lib_prefix=no
10391 need_version=no
10392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10393 soname_spec='${libname}${release}${shared_ext}$major'
10394 shlibpath_var=LD_LIBRARY_PATH
10395 shlibpath_overrides_runpath=no
10396 hardcode_into_libs=yes
10397 dynamic_linker='ldqnx.so'
10398 ;;
10399
10400 openbsd*)
10401 version_type=sunos
10402 sys_lib_dlsearch_path_spec="/usr/lib"
10403 need_lib_prefix=no
10404 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10405 case $host_os in
10406 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10407 *) need_version=no ;;
10408 esac
10409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10410 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10411 shlibpath_var=LD_LIBRARY_PATH
10412 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10413 case $host_os in
10414 openbsd2.[89] | openbsd2.[89].*)
10415 shlibpath_overrides_runpath=no
10416 ;;
10417 *)
10418 shlibpath_overrides_runpath=yes
10419 ;;
10420 esac
10421 else
10422 shlibpath_overrides_runpath=yes
10423 fi
10424 ;;
10425
10426 os2*)
10427 libname_spec='$name'
10428 shrext_cmds=".dll"
10429 need_lib_prefix=no
10430 library_names_spec='$libname${shared_ext} $libname.a'
10431 dynamic_linker='OS/2 ld.exe'
10432 shlibpath_var=LIBPATH
10433 ;;
10434
10435 osf3* | osf4* | osf5*)
10436 version_type=osf
10437 need_lib_prefix=no
10438 need_version=no
10439 soname_spec='${libname}${release}${shared_ext}$major'
10440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10441 shlibpath_var=LD_LIBRARY_PATH
10442 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10443 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10444 ;;
10445
10446 rdos*)
10447 dynamic_linker=no
10448 ;;
10449
10450 solaris*)
10451 version_type=linux # correct to gnu/linux during the next big refactor
10452 need_lib_prefix=no
10453 need_version=no
10454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10455 soname_spec='${libname}${release}${shared_ext}$major'
10456 shlibpath_var=LD_LIBRARY_PATH
10457 shlibpath_overrides_runpath=yes
10458 hardcode_into_libs=yes
10459 # ldd complains unless libraries are executable
10460 postinstall_cmds='chmod +x $lib'
10461 ;;
10462
10463 sunos4*)
10464 version_type=sunos
10465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10466 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10467 shlibpath_var=LD_LIBRARY_PATH
10468 shlibpath_overrides_runpath=yes
10469 if test "$with_gnu_ld" = yes; then
10470 need_lib_prefix=no
10471 fi
10472 need_version=yes
10473 ;;
10474
10475 sysv4 | sysv4.3*)
10476 version_type=linux # correct to gnu/linux during the next big refactor
10477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10478 soname_spec='${libname}${release}${shared_ext}$major'
10479 shlibpath_var=LD_LIBRARY_PATH
10480 case $host_vendor in
10481 sni)
10482 shlibpath_overrides_runpath=no
10483 need_lib_prefix=no
10484 runpath_var=LD_RUN_PATH
10485 ;;
10486 siemens)
10487 need_lib_prefix=no
10488 ;;
10489 motorola)
10490 need_lib_prefix=no
10491 need_version=no
10492 shlibpath_overrides_runpath=no
10493 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10494 ;;
10495 esac
10496 ;;
10497
10498 sysv4*MP*)
10499 if test -d /usr/nec ;then
10500 version_type=linux # correct to gnu/linux during the next big refactor
10501 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10502 soname_spec='$libname${shared_ext}.$major'
10503 shlibpath_var=LD_LIBRARY_PATH
10504 fi
10505 ;;
10506
10507 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10508 version_type=freebsd-elf
10509 need_lib_prefix=no
10510 need_version=no
10511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10512 soname_spec='${libname}${release}${shared_ext}$major'
10513 shlibpath_var=LD_LIBRARY_PATH
10514 shlibpath_overrides_runpath=yes
10515 hardcode_into_libs=yes
10516 if test "$with_gnu_ld" = yes; then
10517 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10518 else
10519 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10520 case $host_os in
10521 sco3.2v5*)
10522 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10523 ;;
10524 esac
10525 fi
10526 sys_lib_dlsearch_path_spec='/usr/lib'
10527 ;;
10528
10529 tpf*)
10530 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10531 version_type=linux # correct to gnu/linux during the next big refactor
10532 need_lib_prefix=no
10533 need_version=no
10534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10535 shlibpath_var=LD_LIBRARY_PATH
10536 shlibpath_overrides_runpath=no
10537 hardcode_into_libs=yes
10538 ;;
10539
10540 uts4*)
10541 version_type=linux # correct to gnu/linux during the next big refactor
10542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10543 soname_spec='${libname}${release}${shared_ext}$major'
10544 shlibpath_var=LD_LIBRARY_PATH
10545 ;;
10546
10547 *)
10548 dynamic_linker=no
10549 ;;
10550 esac
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10552 $as_echo "$dynamic_linker" >&6; }
10553 test "$dynamic_linker" = no && can_build_shared=no
10554
10555 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10556 if test "$GCC" = yes; then
10557 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10558 fi
10559
10560 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10561 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10562 fi
10563 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10564 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10565 fi
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
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10659 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10660 hardcode_action=
10661 if test -n "$hardcode_libdir_flag_spec" ||
10662 test -n "$runpath_var" ||
10663 test "X$hardcode_automatic" = "Xyes" ; then
10664
10665 # We can hardcode non-existent directories.
10666 if test "$hardcode_direct" != no &&
10667 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10668 # have to relink, otherwise we might link with an installed library
10669 # when we should be linking with a yet-to-be-installed one
10670 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10671 test "$hardcode_minus_L" != no; then
10672 # Linking always hardcodes the temporary library directory.
10673 hardcode_action=relink
10674 else
10675 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10676 hardcode_action=immediate
10677 fi
10678 else
10679 # We cannot hardcode anything, or else we can only hardcode existing
10680 # directories.
10681 hardcode_action=unsupported
10682 fi
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10684 $as_echo "$hardcode_action" >&6; }
10685
10686 if test "$hardcode_action" = relink ||
10687 test "$inherit_rpath" = yes; then
10688 # Fast installation is not supported
10689 enable_fast_install=no
10690 elif test "$shlibpath_overrides_runpath" = yes ||
10691 test "$enable_shared" = no; then
10692 # Fast installation is not necessary
10693 enable_fast_install=needless
10694 fi
10695
10696
10697
10698
10699
10700
10701 if test "x$enable_dlopen" != xyes; then
10702 enable_dlopen=unknown
10703 enable_dlopen_self=unknown
10704 enable_dlopen_self_static=unknown
10705 else
10706 lt_cv_dlopen=no
10707 lt_cv_dlopen_libs=
10708
10709 case $host_os in
10710 beos*)
10711 lt_cv_dlopen="load_add_on"
10712 lt_cv_dlopen_libs=
10713 lt_cv_dlopen_self=yes
10714 ;;
10715
10716 mingw* | pw32* | cegcc*)
10717 lt_cv_dlopen="LoadLibrary"
10718 lt_cv_dlopen_libs=
10719 ;;
10720
10721 cygwin*)
10722 lt_cv_dlopen="dlopen"
10723 lt_cv_dlopen_libs=
10724 ;;
10725
10726 darwin*)
10727 # if libdl is installed we need to link against it
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10729 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10730 if ${ac_cv_lib_dl_dlopen+:} false; then :
10731 $as_echo_n "(cached) " >&6
10732 else
10733 ac_check_lib_save_LIBS=$LIBS
10734 LIBS="-ldl $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 dlopen ();
10745 int
10746 main ()
10747 {
10748 return dlopen ();
10749 ;
10750 return 0;
10751 }
10752 _ACEOF
10753 if ac_fn_c_try_link "$LINENO"; then :
10754 ac_cv_lib_dl_dlopen=yes
10755 else
10756 ac_cv_lib_dl_dlopen=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_dl_dlopen" >&5
10763 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10764 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10765 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10766 else
10767
10768 lt_cv_dlopen="dyld"
10769 lt_cv_dlopen_libs=
10770 lt_cv_dlopen_self=yes
10771
10772 fi
10773
10774 ;;
10775
10776 *)
10777 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10778 if test "x$ac_cv_func_shl_load" = xyes; then :
10779 lt_cv_dlopen="shl_load"
10780 else
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10782 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10783 if ${ac_cv_lib_dld_shl_load+:} false; then :
10784 $as_echo_n "(cached) " >&6
10785 else
10786 ac_check_lib_save_LIBS=$LIBS
10787 LIBS="-ldld $LIBS"
10788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10789 /* end confdefs.h. */
10790
10791 /* Override any GCC internal prototype to avoid an error.
10792 Use char because int might match the return type of a GCC
10793 builtin and then its argument prototype would still apply. */
10794 #ifdef __cplusplus
10795 extern "C"
10796 #endif
10797 char shl_load ();
10798 int
10799 main ()
10800 {
10801 return shl_load ();
10802 ;
10803 return 0;
10804 }
10805 _ACEOF
10806 if ac_fn_c_try_link "$LINENO"; then :
10807 ac_cv_lib_dld_shl_load=yes
10808 else
10809 ac_cv_lib_dld_shl_load=no
10810 fi
10811 rm -f core conftest.err conftest.$ac_objext \
10812 conftest$ac_exeext conftest.$ac_ext
10813 LIBS=$ac_check_lib_save_LIBS
10814 fi
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10816 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10817 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10818 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10819 else
10820 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10821 if test "x$ac_cv_func_dlopen" = xyes; then :
10822 lt_cv_dlopen="dlopen"
10823 else
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10825 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10826 if ${ac_cv_lib_dl_dlopen+:} false; then :
10827 $as_echo_n "(cached) " >&6
10828 else
10829 ac_check_lib_save_LIBS=$LIBS
10830 LIBS="-ldl $LIBS"
10831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10832 /* end confdefs.h. */
10833
10834 /* Override any GCC internal prototype to avoid an error.
10835 Use char because int might match the return type of a GCC
10836 builtin and then its argument prototype would still apply. */
10837 #ifdef __cplusplus
10838 extern "C"
10839 #endif
10840 char dlopen ();
10841 int
10842 main ()
10843 {
10844 return dlopen ();
10845 ;
10846 return 0;
10847 }
10848 _ACEOF
10849 if ac_fn_c_try_link "$LINENO"; then :
10850 ac_cv_lib_dl_dlopen=yes
10851 else
10852 ac_cv_lib_dl_dlopen=no
10853 fi
10854 rm -f core conftest.err conftest.$ac_objext \
10855 conftest$ac_exeext conftest.$ac_ext
10856 LIBS=$ac_check_lib_save_LIBS
10857 fi
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10859 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10860 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10861 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10862 else
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10864 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10865 if ${ac_cv_lib_svld_dlopen+:} false; then :
10866 $as_echo_n "(cached) " >&6
10867 else
10868 ac_check_lib_save_LIBS=$LIBS
10869 LIBS="-lsvld $LIBS"
10870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10871 /* end confdefs.h. */
10872
10873 /* Override any GCC internal prototype to avoid an error.
10874 Use char because int might match the return type of a GCC
10875 builtin and then its argument prototype would still apply. */
10876 #ifdef __cplusplus
10877 extern "C"
10878 #endif
10879 char dlopen ();
10880 int
10881 main ()
10882 {
10883 return dlopen ();
10884 ;
10885 return 0;
10886 }
10887 _ACEOF
10888 if ac_fn_c_try_link "$LINENO"; then :
10889 ac_cv_lib_svld_dlopen=yes
10890 else
10891 ac_cv_lib_svld_dlopen=no
10892 fi
10893 rm -f core conftest.err conftest.$ac_objext \
10894 conftest$ac_exeext conftest.$ac_ext
10895 LIBS=$ac_check_lib_save_LIBS
10896 fi
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10898 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10899 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10900 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10901 else
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10903 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10904 if ${ac_cv_lib_dld_dld_link+:} false; then :
10905 $as_echo_n "(cached) " >&6
10906 else
10907 ac_check_lib_save_LIBS=$LIBS
10908 LIBS="-ldld $LIBS"
10909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10910 /* end confdefs.h. */
10911
10912 /* Override any GCC internal prototype to avoid an error.
10913 Use char because int might match the return type of a GCC
10914 builtin and then its argument prototype would still apply. */
10915 #ifdef __cplusplus
10916 extern "C"
10917 #endif
10918 char dld_link ();
10919 int
10920 main ()
10921 {
10922 return dld_link ();
10923 ;
10924 return 0;
10925 }
10926 _ACEOF
10927 if ac_fn_c_try_link "$LINENO"; then :
10928 ac_cv_lib_dld_dld_link=yes
10929 else
10930 ac_cv_lib_dld_dld_link=no
10931 fi
10932 rm -f core conftest.err conftest.$ac_objext \
10933 conftest$ac_exeext conftest.$ac_ext
10934 LIBS=$ac_check_lib_save_LIBS
10935 fi
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10937 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10938 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10939 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10940 fi
10941
10942
10943 fi
10944
10945
10946 fi
10947
10948
10949 fi
10950
10951
10952 fi
10953
10954
10955 fi
10956
10957 ;;
10958 esac
10959
10960 if test "x$lt_cv_dlopen" != xno; then
10961 enable_dlopen=yes
10962 else
10963 enable_dlopen=no
10964 fi
10965
10966 case $lt_cv_dlopen in
10967 dlopen)
10968 save_CPPFLAGS="$CPPFLAGS"
10969 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10970
10971 save_LDFLAGS="$LDFLAGS"
10972 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10973
10974 save_LIBS="$LIBS"
10975 LIBS="$lt_cv_dlopen_libs $LIBS"
10976
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10978 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10979 if ${lt_cv_dlopen_self+:} false; then :
10980 $as_echo_n "(cached) " >&6
10981 else
10982 if test "$cross_compiling" = yes; then :
10983 lt_cv_dlopen_self=cross
10984 else
10985 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10986 lt_status=$lt_dlunknown
10987 cat > conftest.$ac_ext <<_LT_EOF
10988 #line $LINENO "configure"
10989 #include "confdefs.h"
10990
10991 #if HAVE_DLFCN_H
10992 #include <dlfcn.h>
10993 #endif
10994
10995 #include <stdio.h>
10996
10997 #ifdef RTLD_GLOBAL
10998 # define LT_DLGLOBAL RTLD_GLOBAL
10999 #else
11000 # ifdef DL_GLOBAL
11001 # define LT_DLGLOBAL DL_GLOBAL
11002 # else
11003 # define LT_DLGLOBAL 0
11004 # endif
11005 #endif
11006
11007 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11008 find out it does not work in some platform. */
11009 #ifndef LT_DLLAZY_OR_NOW
11010 # ifdef RTLD_LAZY
11011 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11012 # else
11013 # ifdef DL_LAZY
11014 # define LT_DLLAZY_OR_NOW DL_LAZY
11015 # else
11016 # ifdef RTLD_NOW
11017 # define LT_DLLAZY_OR_NOW RTLD_NOW
11018 # else
11019 # ifdef DL_NOW
11020 # define LT_DLLAZY_OR_NOW DL_NOW
11021 # else
11022 # define LT_DLLAZY_OR_NOW 0
11023 # endif
11024 # endif
11025 # endif
11026 # endif
11027 #endif
11028
11029 /* When -fvisbility=hidden is used, assume the code has been annotated
11030 correspondingly for the symbols needed. */
11031 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11032 int fnord () __attribute__((visibility("default")));
11033 #endif
11034
11035 int fnord () { return 42; }
11036 int main ()
11037 {
11038 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11039 int status = $lt_dlunknown;
11040
11041 if (self)
11042 {
11043 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11044 else
11045 {
11046 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11047 else puts (dlerror ());
11048 }
11049 /* dlclose (self); */
11050 }
11051 else
11052 puts (dlerror ());
11053
11054 return status;
11055 }
11056 _LT_EOF
11057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11058 (eval $ac_link) 2>&5
11059 ac_status=$?
11060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11061 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11062 (./conftest; exit; ) >&5 2>/dev/null
11063 lt_status=$?
11064 case x$lt_status in
11065 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11066 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11067 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11068 esac
11069 else :
11070 # compilation failed
11071 lt_cv_dlopen_self=no
11072 fi
11073 fi
11074 rm -fr conftest*
11075
11076
11077 fi
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11079 $as_echo "$lt_cv_dlopen_self" >&6; }
11080
11081 if test "x$lt_cv_dlopen_self" = xyes; then
11082 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11084 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11085 if ${lt_cv_dlopen_self_static+:} false; then :
11086 $as_echo_n "(cached) " >&6
11087 else
11088 if test "$cross_compiling" = yes; then :
11089 lt_cv_dlopen_self_static=cross
11090 else
11091 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11092 lt_status=$lt_dlunknown
11093 cat > conftest.$ac_ext <<_LT_EOF
11094 #line $LINENO "configure"
11095 #include "confdefs.h"
11096
11097 #if HAVE_DLFCN_H
11098 #include <dlfcn.h>
11099 #endif
11100
11101 #include <stdio.h>
11102
11103 #ifdef RTLD_GLOBAL
11104 # define LT_DLGLOBAL RTLD_GLOBAL
11105 #else
11106 # ifdef DL_GLOBAL
11107 # define LT_DLGLOBAL DL_GLOBAL
11108 # else
11109 # define LT_DLGLOBAL 0
11110 # endif
11111 #endif
11112
11113 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11114 find out it does not work in some platform. */
11115 #ifndef LT_DLLAZY_OR_NOW
11116 # ifdef RTLD_LAZY
11117 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11118 # else
11119 # ifdef DL_LAZY
11120 # define LT_DLLAZY_OR_NOW DL_LAZY
11121 # else
11122 # ifdef RTLD_NOW
11123 # define LT_DLLAZY_OR_NOW RTLD_NOW
11124 # else
11125 # ifdef DL_NOW
11126 # define LT_DLLAZY_OR_NOW DL_NOW
11127 # else
11128 # define LT_DLLAZY_OR_NOW 0
11129 # endif
11130 # endif
11131 # endif
11132 # endif
11133 #endif
11134
11135 /* When -fvisbility=hidden is used, assume the code has been annotated
11136 correspondingly for the symbols needed. */
11137 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11138 int fnord () __attribute__((visibility("default")));
11139 #endif
11140
11141 int fnord () { return 42; }
11142 int main ()
11143 {
11144 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11145 int status = $lt_dlunknown;
11146
11147 if (self)
11148 {
11149 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11150 else
11151 {
11152 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11153 else puts (dlerror ());
11154 }
11155 /* dlclose (self); */
11156 }
11157 else
11158 puts (dlerror ());
11159
11160 return status;
11161 }
11162 _LT_EOF
11163 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11164 (eval $ac_link) 2>&5
11165 ac_status=$?
11166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11167 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11168 (./conftest; exit; ) >&5 2>/dev/null
11169 lt_status=$?
11170 case x$lt_status in
11171 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11172 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11173 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11174 esac
11175 else :
11176 # compilation failed
11177 lt_cv_dlopen_self_static=no
11178 fi
11179 fi
11180 rm -fr conftest*
11181
11182
11183 fi
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11185 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11186 fi
11187
11188 CPPFLAGS="$save_CPPFLAGS"
11189 LDFLAGS="$save_LDFLAGS"
11190 LIBS="$save_LIBS"
11191 ;;
11192 esac
11193
11194 case $lt_cv_dlopen_self in
11195 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11196 *) enable_dlopen_self=unknown ;;
11197 esac
11198
11199 case $lt_cv_dlopen_self_static in
11200 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11201 *) enable_dlopen_self_static=unknown ;;
11202 esac
11203 fi
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221 striplib=
11222 old_striplib=
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11224 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11225 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11226 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11227 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11229 $as_echo "yes" >&6; }
11230 else
11231 # FIXME - insert some real tests, host_os isn't really good enough
11232 case $host_os in
11233 darwin*)
11234 if test -n "$STRIP" ; then
11235 striplib="$STRIP -x"
11236 old_striplib="$STRIP -S"
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11238 $as_echo "yes" >&6; }
11239 else
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11241 $as_echo "no" >&6; }
11242 fi
11243 ;;
11244 *)
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11246 $as_echo "no" >&6; }
11247 ;;
11248 esac
11249 fi
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262 # Report which library types will actually be built
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11264 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11266 $as_echo "$can_build_shared" >&6; }
11267
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11269 $as_echo_n "checking whether to build shared libraries... " >&6; }
11270 test "$can_build_shared" = "no" && enable_shared=no
11271
11272 # On AIX, shared libraries and static libraries use the same namespace, and
11273 # are all built from PIC.
11274 case $host_os in
11275 aix3*)
11276 test "$enable_shared" = yes && enable_static=no
11277 if test -n "$RANLIB"; then
11278 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11279 postinstall_cmds='$RANLIB $lib'
11280 fi
11281 ;;
11282
11283 aix[4-9]*)
11284 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11285 test "$enable_shared" = yes && enable_static=no
11286 fi
11287 ;;
11288 esac
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11290 $as_echo "$enable_shared" >&6; }
11291
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11293 $as_echo_n "checking whether to build static libraries... " >&6; }
11294 # Make sure either enable_shared or enable_static is yes.
11295 test "$enable_shared" = yes || enable_static=yes
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11297 $as_echo "$enable_static" >&6; }
11298
11299
11300
11301
11302 fi
11303 ac_ext=c
11304 ac_cpp='$CPP $CPPFLAGS'
11305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11308
11309 CC="$lt_save_CC"
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325 ac_config_commands="$ac_config_commands libtool"
11326
11327
11328
11329
11330 # Only expand once:
11331
11332
11333
11334 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11347 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11348 if ${ac_cv_prog_cc_c99+:} false; then :
11349 $as_echo_n "(cached) " >&6
11350 else
11351 ac_cv_prog_cc_c99=no
11352 ac_save_CC=$CC
11353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11354 /* end confdefs.h. */
11355 #include <stdarg.h>
11356 #include <stdbool.h>
11357 #include <stdlib.h>
11358 #include <wchar.h>
11359 #include <stdio.h>
11360
11361 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11362 #define debug(...) fprintf (stderr, __VA_ARGS__)
11363 #define showlist(...) puts (#__VA_ARGS__)
11364 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11365 static void
11366 test_varargs_macros (void)
11367 {
11368 int x = 1234;
11369 int y = 5678;
11370 debug ("Flag");
11371 debug ("X = %d\n", x);
11372 showlist (The first, second, and third items.);
11373 report (x>y, "x is %d but y is %d", x, y);
11374 }
11375
11376 // Check long long types.
11377 #define BIG64 18446744073709551615ull
11378 #define BIG32 4294967295ul
11379 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11380 #if !BIG_OK
11381 your preprocessor is broken;
11382 #endif
11383 #if BIG_OK
11384 #else
11385 your preprocessor is broken;
11386 #endif
11387 static long long int bignum = -9223372036854775807LL;
11388 static unsigned long long int ubignum = BIG64;
11389
11390 struct incomplete_array
11391 {
11392 int datasize;
11393 double data[];
11394 };
11395
11396 struct named_init {
11397 int number;
11398 const wchar_t *name;
11399 double average;
11400 };
11401
11402 typedef const char *ccp;
11403
11404 static inline int
11405 test_restrict (ccp restrict text)
11406 {
11407 // See if C++-style comments work.
11408 // Iterate through items via the restricted pointer.
11409 // Also check for declarations in for loops.
11410 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11411 continue;
11412 return 0;
11413 }
11414
11415 // Check varargs and va_copy.
11416 static void
11417 test_varargs (const char *format, ...)
11418 {
11419 va_list args;
11420 va_start (args, format);
11421 va_list args_copy;
11422 va_copy (args_copy, args);
11423
11424 const char *str;
11425 int number;
11426 float fnumber;
11427
11428 while (*format)
11429 {
11430 switch (*format++)
11431 {
11432 case 's': // string
11433 str = va_arg (args_copy, const char *);
11434 break;
11435 case 'd': // int
11436 number = va_arg (args_copy, int);
11437 break;
11438 case 'f': // float
11439 fnumber = va_arg (args_copy, double);
11440 break;
11441 default:
11442 break;
11443 }
11444 }
11445 va_end (args_copy);
11446 va_end (args);
11447 }
11448
11449 int
11450 main ()
11451 {
11452
11453 // Check bool.
11454 _Bool success = false;
11455
11456 // Check restrict.
11457 if (test_restrict ("String literal") == 0)
11458 success = true;
11459 char *restrict newvar = "Another string";
11460
11461 // Check varargs.
11462 test_varargs ("s, d' f .", "string", 65, 34.234);
11463 test_varargs_macros ();
11464
11465 // Check flexible array members.
11466 struct incomplete_array *ia =
11467 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11468 ia->datasize = 10;
11469 for (int i = 0; i < ia->datasize; ++i)
11470 ia->data[i] = i * 1.234;
11471
11472 // Check named initializers.
11473 struct named_init ni = {
11474 .number = 34,
11475 .name = L"Test wide string",
11476 .average = 543.34343,
11477 };
11478
11479 ni.number = 58;
11480
11481 int dynamic_array[ni.number];
11482 dynamic_array[ni.number - 1] = 543;
11483
11484 // work around unused variable warnings
11485 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11486 || dynamic_array[ni.number - 1] != 543);
11487
11488 ;
11489 return 0;
11490 }
11491 _ACEOF
11492 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11493 do
11494 CC="$ac_save_CC $ac_arg"
11495 if ac_fn_c_try_compile "$LINENO"; then :
11496 ac_cv_prog_cc_c99=$ac_arg
11497 fi
11498 rm -f core conftest.err conftest.$ac_objext
11499 test "x$ac_cv_prog_cc_c99" != "xno" && break
11500 done
11501 rm -f conftest.$ac_ext
11502 CC=$ac_save_CC
11503
11504 fi
11505 # AC_CACHE_VAL
11506 case "x$ac_cv_prog_cc_c99" in
11507 x)
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11509 $as_echo "none needed" >&6; } ;;
11510 xno)
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11512 $as_echo "unsupported" >&6; } ;;
11513 *)
11514 CC="$CC $ac_cv_prog_cc_c99"
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11516 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11517 esac
11518 if test "x$ac_cv_prog_cc_c99" != xno; then :
11519
11520 fi
11521
11522
11523
11524
11525
11526
11527 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11528 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11529 CLANGCC="yes"
11530 else
11531 CLANGCC="no"
11532 fi
11533
11534 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11535 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11536 INTELCC="yes"
11537 else
11538 INTELCC="no"
11539 fi
11540
11541 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11542 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11543 SUNCC="yes"
11544 else
11545 SUNCC="no"
11546 fi
11547
11548
11549
11550
11551 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11552 if test -n "$ac_tool_prefix"; then
11553 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11554 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11556 $as_echo_n "checking for $ac_word... " >&6; }
11557 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11558 $as_echo_n "(cached) " >&6
11559 else
11560 case $PKG_CONFIG in
11561 [\\/]* | ?:[\\/]*)
11562 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11563 ;;
11564 *)
11565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11566 for as_dir in $PATH
11567 do
11568 IFS=$as_save_IFS
11569 test -z "$as_dir" && as_dir=.
11570 for ac_exec_ext in '' $ac_executable_extensions; do
11571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11572 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11574 break 2
11575 fi
11576 done
11577 done
11578 IFS=$as_save_IFS
11579
11580 ;;
11581 esac
11582 fi
11583 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11584 if test -n "$PKG_CONFIG"; then
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11586 $as_echo "$PKG_CONFIG" >&6; }
11587 else
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11589 $as_echo "no" >&6; }
11590 fi
11591
11592
11593 fi
11594 if test -z "$ac_cv_path_PKG_CONFIG"; then
11595 ac_pt_PKG_CONFIG=$PKG_CONFIG
11596 # Extract the first word of "pkg-config", so it can be a program name with args.
11597 set dummy pkg-config; ac_word=$2
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11599 $as_echo_n "checking for $ac_word... " >&6; }
11600 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11601 $as_echo_n "(cached) " >&6
11602 else
11603 case $ac_pt_PKG_CONFIG in
11604 [\\/]* | ?:[\\/]*)
11605 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11606 ;;
11607 *)
11608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11609 for as_dir in $PATH
11610 do
11611 IFS=$as_save_IFS
11612 test -z "$as_dir" && as_dir=.
11613 for ac_exec_ext in '' $ac_executable_extensions; do
11614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11615 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11617 break 2
11618 fi
11619 done
11620 done
11621 IFS=$as_save_IFS
11622
11623 ;;
11624 esac
11625 fi
11626 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11627 if test -n "$ac_pt_PKG_CONFIG"; then
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11629 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11630 else
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11632 $as_echo "no" >&6; }
11633 fi
11634
11635 if test "x$ac_pt_PKG_CONFIG" = x; then
11636 PKG_CONFIG=""
11637 else
11638 case $cross_compiling:$ac_tool_warned in
11639 yes:)
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11642 ac_tool_warned=yes ;;
11643 esac
11644 PKG_CONFIG=$ac_pt_PKG_CONFIG
11645 fi
11646 else
11647 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11648 fi
11649
11650 fi
11651 if test -n "$PKG_CONFIG"; then
11652 _pkg_min_version=0.9.0
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11654 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11655 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11657 $as_echo "yes" >&6; }
11658 else
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11660 $as_echo "no" >&6; }
11661 PKG_CONFIG=""
11662 fi
11663
11664 fi
11665
11666
11667
11668
11669
11670 # Check whether --enable-selective-werror was given.
11671 if test "${enable_selective_werror+set}" = set; then :
11672 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11673 else
11674 SELECTIVE_WERROR=yes
11675 fi
11676
11677
11678
11679
11680
11681 # -v is too short to test reliably with XORG_TESTSET_CFLAG
11682 if test "x$SUNCC" = "xyes"; then
11683 BASE_CFLAGS="-v"
11684 else
11685 BASE_CFLAGS=""
11686 fi
11687
11688 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702 xorg_testset_save_CFLAGS="$CFLAGS"
11703
11704 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11705 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11707 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11708 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11709 $as_echo_n "(cached) " >&6
11710 else
11711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11712 /* end confdefs.h. */
11713 int i;
11714 _ACEOF
11715 if ac_fn_c_try_compile "$LINENO"; then :
11716 xorg_cv_cc_flag_unknown_warning_option=yes
11717 else
11718 xorg_cv_cc_flag_unknown_warning_option=no
11719 fi
11720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11721 fi
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11723 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11724 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11725 CFLAGS="$xorg_testset_save_CFLAGS"
11726 fi
11727
11728 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11731 fi
11732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11734 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11735 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11736 $as_echo_n "(cached) " >&6
11737 else
11738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11739 /* end confdefs.h. */
11740 int i;
11741 _ACEOF
11742 if ac_fn_c_try_compile "$LINENO"; then :
11743 xorg_cv_cc_flag_unused_command_line_argument=yes
11744 else
11745 xorg_cv_cc_flag_unused_command_line_argument=no
11746 fi
11747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11748 fi
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11750 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11751 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11752 CFLAGS="$xorg_testset_save_CFLAGS"
11753 fi
11754
11755 found="no"
11756
11757 if test $found = "no" ; then
11758 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11759 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11760 fi
11761
11762 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11764 fi
11765
11766 CFLAGS="$CFLAGS -Wall"
11767
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
11769 $as_echo_n "checking if $CC supports -Wall... " >&6; }
11770 cacheid=xorg_cv_cc_flag__Wall
11771 if eval \${$cacheid+:} false; then :
11772 $as_echo_n "(cached) " >&6
11773 else
11774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11775 /* end confdefs.h. */
11776 int i;
11777 int
11778 main ()
11779 {
11780
11781 ;
11782 return 0;
11783 }
11784 _ACEOF
11785 if ac_fn_c_try_link "$LINENO"; then :
11786 eval $cacheid=yes
11787 else
11788 eval $cacheid=no
11789 fi
11790 rm -f core conftest.err conftest.$ac_objext \
11791 conftest$ac_exeext conftest.$ac_ext
11792 fi
11793
11794
11795 CFLAGS="$xorg_testset_save_CFLAGS"
11796
11797 eval supported=\$$cacheid
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11799 $as_echo "$supported" >&6; }
11800 if test "$supported" = "yes" ; then
11801 BASE_CFLAGS="$BASE_CFLAGS -Wall"
11802 found="yes"
11803 fi
11804 fi
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820 xorg_testset_save_CFLAGS="$CFLAGS"
11821
11822 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11825 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11826 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11827 $as_echo_n "(cached) " >&6
11828 else
11829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11830 /* end confdefs.h. */
11831 int i;
11832 _ACEOF
11833 if ac_fn_c_try_compile "$LINENO"; then :
11834 xorg_cv_cc_flag_unknown_warning_option=yes
11835 else
11836 xorg_cv_cc_flag_unknown_warning_option=no
11837 fi
11838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11839 fi
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11841 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11842 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11843 CFLAGS="$xorg_testset_save_CFLAGS"
11844 fi
11845
11846 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11847 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11848 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11849 fi
11850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11852 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11853 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11854 $as_echo_n "(cached) " >&6
11855 else
11856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11857 /* end confdefs.h. */
11858 int i;
11859 _ACEOF
11860 if ac_fn_c_try_compile "$LINENO"; then :
11861 xorg_cv_cc_flag_unused_command_line_argument=yes
11862 else
11863 xorg_cv_cc_flag_unused_command_line_argument=no
11864 fi
11865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11866 fi
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11868 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11869 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11870 CFLAGS="$xorg_testset_save_CFLAGS"
11871 fi
11872
11873 found="no"
11874
11875 if test $found = "no" ; then
11876 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11877 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11878 fi
11879
11880 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11882 fi
11883
11884 CFLAGS="$CFLAGS -Wpointer-arith"
11885
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
11887 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
11888 cacheid=xorg_cv_cc_flag__Wpointer_arith
11889 if eval \${$cacheid+:} false; then :
11890 $as_echo_n "(cached) " >&6
11891 else
11892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11893 /* end confdefs.h. */
11894 int i;
11895 int
11896 main ()
11897 {
11898
11899 ;
11900 return 0;
11901 }
11902 _ACEOF
11903 if ac_fn_c_try_link "$LINENO"; then :
11904 eval $cacheid=yes
11905 else
11906 eval $cacheid=no
11907 fi
11908 rm -f core conftest.err conftest.$ac_objext \
11909 conftest$ac_exeext conftest.$ac_ext
11910 fi
11911
11912
11913 CFLAGS="$xorg_testset_save_CFLAGS"
11914
11915 eval supported=\$$cacheid
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11917 $as_echo "$supported" >&6; }
11918 if test "$supported" = "yes" ; then
11919 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
11920 found="yes"
11921 fi
11922 fi
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938 xorg_testset_save_CFLAGS="$CFLAGS"
11939
11940 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11941 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11943 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11944 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11945 $as_echo_n "(cached) " >&6
11946 else
11947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11948 /* end confdefs.h. */
11949 int i;
11950 _ACEOF
11951 if ac_fn_c_try_compile "$LINENO"; then :
11952 xorg_cv_cc_flag_unknown_warning_option=yes
11953 else
11954 xorg_cv_cc_flag_unknown_warning_option=no
11955 fi
11956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11957 fi
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11959 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11960 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11961 CFLAGS="$xorg_testset_save_CFLAGS"
11962 fi
11963
11964 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11967 fi
11968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11970 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11971 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11972 $as_echo_n "(cached) " >&6
11973 else
11974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11975 /* end confdefs.h. */
11976 int i;
11977 _ACEOF
11978 if ac_fn_c_try_compile "$LINENO"; then :
11979 xorg_cv_cc_flag_unused_command_line_argument=yes
11980 else
11981 xorg_cv_cc_flag_unused_command_line_argument=no
11982 fi
11983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11984 fi
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11986 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11987 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11988 CFLAGS="$xorg_testset_save_CFLAGS"
11989 fi
11990
11991 found="no"
11992
11993 if test $found = "no" ; then
11994 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11996 fi
11997
11998 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12000 fi
12001
12002 CFLAGS="$CFLAGS -Wmissing-declarations"
12003
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12005 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12006 cacheid=xorg_cv_cc_flag__Wmissing_declarations
12007 if eval \${$cacheid+:} false; then :
12008 $as_echo_n "(cached) " >&6
12009 else
12010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12011 /* end confdefs.h. */
12012 int i;
12013 int
12014 main ()
12015 {
12016
12017 ;
12018 return 0;
12019 }
12020 _ACEOF
12021 if ac_fn_c_try_link "$LINENO"; then :
12022 eval $cacheid=yes
12023 else
12024 eval $cacheid=no
12025 fi
12026 rm -f core conftest.err conftest.$ac_objext \
12027 conftest$ac_exeext conftest.$ac_ext
12028 fi
12029
12030
12031 CFLAGS="$xorg_testset_save_CFLAGS"
12032
12033 eval supported=\$$cacheid
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12035 $as_echo "$supported" >&6; }
12036 if test "$supported" = "yes" ; then
12037 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12038 found="yes"
12039 fi
12040 fi
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056 xorg_testset_save_CFLAGS="$CFLAGS"
12057
12058 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12059 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12061 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12062 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12063 $as_echo_n "(cached) " >&6
12064 else
12065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12066 /* end confdefs.h. */
12067 int i;
12068 _ACEOF
12069 if ac_fn_c_try_compile "$LINENO"; then :
12070 xorg_cv_cc_flag_unknown_warning_option=yes
12071 else
12072 xorg_cv_cc_flag_unknown_warning_option=no
12073 fi
12074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12075 fi
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12077 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12078 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12079 CFLAGS="$xorg_testset_save_CFLAGS"
12080 fi
12081
12082 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12084 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12085 fi
12086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12088 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12089 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12090 $as_echo_n "(cached) " >&6
12091 else
12092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12093 /* end confdefs.h. */
12094 int i;
12095 _ACEOF
12096 if ac_fn_c_try_compile "$LINENO"; then :
12097 xorg_cv_cc_flag_unused_command_line_argument=yes
12098 else
12099 xorg_cv_cc_flag_unused_command_line_argument=no
12100 fi
12101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12102 fi
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12104 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12105 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12106 CFLAGS="$xorg_testset_save_CFLAGS"
12107 fi
12108
12109 found="no"
12110
12111 if test $found = "no" ; then
12112 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12114 fi
12115
12116 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12118 fi
12119
12120 CFLAGS="$CFLAGS -Wformat=2"
12121
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12123 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12124 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
12125 if eval \${$cacheid+:} false; then :
12126 $as_echo_n "(cached) " >&6
12127 else
12128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12129 /* end confdefs.h. */
12130 int i;
12131 int
12132 main ()
12133 {
12134
12135 ;
12136 return 0;
12137 }
12138 _ACEOF
12139 if ac_fn_c_try_link "$LINENO"; then :
12140 eval $cacheid=yes
12141 else
12142 eval $cacheid=no
12143 fi
12144 rm -f core conftest.err conftest.$ac_objext \
12145 conftest$ac_exeext conftest.$ac_ext
12146 fi
12147
12148
12149 CFLAGS="$xorg_testset_save_CFLAGS"
12150
12151 eval supported=\$$cacheid
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12153 $as_echo "$supported" >&6; }
12154 if test "$supported" = "yes" ; then
12155 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12156 found="yes"
12157 fi
12158 fi
12159
12160 if test $found = "no" ; then
12161 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12162 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12163 fi
12164
12165 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12167 fi
12168
12169 CFLAGS="$CFLAGS -Wformat"
12170
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12172 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12173 cacheid=xorg_cv_cc_flag__Wformat
12174 if eval \${$cacheid+:} false; then :
12175 $as_echo_n "(cached) " >&6
12176 else
12177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12178 /* end confdefs.h. */
12179 int i;
12180 int
12181 main ()
12182 {
12183
12184 ;
12185 return 0;
12186 }
12187 _ACEOF
12188 if ac_fn_c_try_link "$LINENO"; then :
12189 eval $cacheid=yes
12190 else
12191 eval $cacheid=no
12192 fi
12193 rm -f core conftest.err conftest.$ac_objext \
12194 conftest$ac_exeext conftest.$ac_ext
12195 fi
12196
12197
12198 CFLAGS="$xorg_testset_save_CFLAGS"
12199
12200 eval supported=\$$cacheid
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12202 $as_echo "$supported" >&6; }
12203 if test "$supported" = "yes" ; then
12204 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12205 found="yes"
12206 fi
12207 fi
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225 xorg_testset_save_CFLAGS="$CFLAGS"
12226
12227 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12230 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12231 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12232 $as_echo_n "(cached) " >&6
12233 else
12234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12235 /* end confdefs.h. */
12236 int i;
12237 _ACEOF
12238 if ac_fn_c_try_compile "$LINENO"; then :
12239 xorg_cv_cc_flag_unknown_warning_option=yes
12240 else
12241 xorg_cv_cc_flag_unknown_warning_option=no
12242 fi
12243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12244 fi
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12246 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12247 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12248 CFLAGS="$xorg_testset_save_CFLAGS"
12249 fi
12250
12251 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12254 fi
12255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12257 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12258 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12259 $as_echo_n "(cached) " >&6
12260 else
12261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12262 /* end confdefs.h. */
12263 int i;
12264 _ACEOF
12265 if ac_fn_c_try_compile "$LINENO"; then :
12266 xorg_cv_cc_flag_unused_command_line_argument=yes
12267 else
12268 xorg_cv_cc_flag_unused_command_line_argument=no
12269 fi
12270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12271 fi
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12273 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12274 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12275 CFLAGS="$xorg_testset_save_CFLAGS"
12276 fi
12277
12278 found="no"
12279
12280 if test $found = "no" ; then
12281 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12282 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12283 fi
12284
12285 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12287 fi
12288
12289 CFLAGS="$CFLAGS -Wstrict-prototypes"
12290
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12292 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12293 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12294 if eval \${$cacheid+:} false; then :
12295 $as_echo_n "(cached) " >&6
12296 else
12297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12298 /* end confdefs.h. */
12299 int i;
12300 int
12301 main ()
12302 {
12303
12304 ;
12305 return 0;
12306 }
12307 _ACEOF
12308 if ac_fn_c_try_link "$LINENO"; then :
12309 eval $cacheid=yes
12310 else
12311 eval $cacheid=no
12312 fi
12313 rm -f core conftest.err conftest.$ac_objext \
12314 conftest$ac_exeext conftest.$ac_ext
12315 fi
12316
12317
12318 CFLAGS="$xorg_testset_save_CFLAGS"
12319
12320 eval supported=\$$cacheid
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12322 $as_echo "$supported" >&6; }
12323 if test "$supported" = "yes" ; then
12324 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12325 found="yes"
12326 fi
12327 fi
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343 xorg_testset_save_CFLAGS="$CFLAGS"
12344
12345 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12348 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12349 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12350 $as_echo_n "(cached) " >&6
12351 else
12352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12353 /* end confdefs.h. */
12354 int i;
12355 _ACEOF
12356 if ac_fn_c_try_compile "$LINENO"; then :
12357 xorg_cv_cc_flag_unknown_warning_option=yes
12358 else
12359 xorg_cv_cc_flag_unknown_warning_option=no
12360 fi
12361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12362 fi
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12364 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12365 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12366 CFLAGS="$xorg_testset_save_CFLAGS"
12367 fi
12368
12369 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12372 fi
12373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12375 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12376 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12377 $as_echo_n "(cached) " >&6
12378 else
12379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12380 /* end confdefs.h. */
12381 int i;
12382 _ACEOF
12383 if ac_fn_c_try_compile "$LINENO"; then :
12384 xorg_cv_cc_flag_unused_command_line_argument=yes
12385 else
12386 xorg_cv_cc_flag_unused_command_line_argument=no
12387 fi
12388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12389 fi
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12391 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12392 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12393 CFLAGS="$xorg_testset_save_CFLAGS"
12394 fi
12395
12396 found="no"
12397
12398 if test $found = "no" ; then
12399 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12401 fi
12402
12403 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12405 fi
12406
12407 CFLAGS="$CFLAGS -Wmissing-prototypes"
12408
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12410 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12411 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12412 if eval \${$cacheid+:} false; then :
12413 $as_echo_n "(cached) " >&6
12414 else
12415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12416 /* end confdefs.h. */
12417 int i;
12418 int
12419 main ()
12420 {
12421
12422 ;
12423 return 0;
12424 }
12425 _ACEOF
12426 if ac_fn_c_try_link "$LINENO"; then :
12427 eval $cacheid=yes
12428 else
12429 eval $cacheid=no
12430 fi
12431 rm -f core conftest.err conftest.$ac_objext \
12432 conftest$ac_exeext conftest.$ac_ext
12433 fi
12434
12435
12436 CFLAGS="$xorg_testset_save_CFLAGS"
12437
12438 eval supported=\$$cacheid
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12440 $as_echo "$supported" >&6; }
12441 if test "$supported" = "yes" ; then
12442 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12443 found="yes"
12444 fi
12445 fi
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461 xorg_testset_save_CFLAGS="$CFLAGS"
12462
12463 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12466 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12467 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12468 $as_echo_n "(cached) " >&6
12469 else
12470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12471 /* end confdefs.h. */
12472 int i;
12473 _ACEOF
12474 if ac_fn_c_try_compile "$LINENO"; then :
12475 xorg_cv_cc_flag_unknown_warning_option=yes
12476 else
12477 xorg_cv_cc_flag_unknown_warning_option=no
12478 fi
12479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12480 fi
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12482 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12483 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12484 CFLAGS="$xorg_testset_save_CFLAGS"
12485 fi
12486
12487 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12490 fi
12491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12493 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12494 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12495 $as_echo_n "(cached) " >&6
12496 else
12497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12498 /* end confdefs.h. */
12499 int i;
12500 _ACEOF
12501 if ac_fn_c_try_compile "$LINENO"; then :
12502 xorg_cv_cc_flag_unused_command_line_argument=yes
12503 else
12504 xorg_cv_cc_flag_unused_command_line_argument=no
12505 fi
12506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12507 fi
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12509 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12510 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12511 CFLAGS="$xorg_testset_save_CFLAGS"
12512 fi
12513
12514 found="no"
12515
12516 if test $found = "no" ; then
12517 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12518 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12519 fi
12520
12521 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12523 fi
12524
12525 CFLAGS="$CFLAGS -Wnested-externs"
12526
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12528 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12529 cacheid=xorg_cv_cc_flag__Wnested_externs
12530 if eval \${$cacheid+:} false; then :
12531 $as_echo_n "(cached) " >&6
12532 else
12533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12534 /* end confdefs.h. */
12535 int i;
12536 int
12537 main ()
12538 {
12539
12540 ;
12541 return 0;
12542 }
12543 _ACEOF
12544 if ac_fn_c_try_link "$LINENO"; then :
12545 eval $cacheid=yes
12546 else
12547 eval $cacheid=no
12548 fi
12549 rm -f core conftest.err conftest.$ac_objext \
12550 conftest$ac_exeext conftest.$ac_ext
12551 fi
12552
12553
12554 CFLAGS="$xorg_testset_save_CFLAGS"
12555
12556 eval supported=\$$cacheid
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12558 $as_echo "$supported" >&6; }
12559 if test "$supported" = "yes" ; then
12560 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12561 found="yes"
12562 fi
12563 fi
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579 xorg_testset_save_CFLAGS="$CFLAGS"
12580
12581 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12584 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12585 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12586 $as_echo_n "(cached) " >&6
12587 else
12588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12589 /* end confdefs.h. */
12590 int i;
12591 _ACEOF
12592 if ac_fn_c_try_compile "$LINENO"; then :
12593 xorg_cv_cc_flag_unknown_warning_option=yes
12594 else
12595 xorg_cv_cc_flag_unknown_warning_option=no
12596 fi
12597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12598 fi
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12600 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12601 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12602 CFLAGS="$xorg_testset_save_CFLAGS"
12603 fi
12604
12605 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12608 fi
12609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12611 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12612 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12613 $as_echo_n "(cached) " >&6
12614 else
12615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12616 /* end confdefs.h. */
12617 int i;
12618 _ACEOF
12619 if ac_fn_c_try_compile "$LINENO"; then :
12620 xorg_cv_cc_flag_unused_command_line_argument=yes
12621 else
12622 xorg_cv_cc_flag_unused_command_line_argument=no
12623 fi
12624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12625 fi
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12627 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12628 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12629 CFLAGS="$xorg_testset_save_CFLAGS"
12630 fi
12631
12632 found="no"
12633
12634 if test $found = "no" ; then
12635 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12637 fi
12638
12639 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12641 fi
12642
12643 CFLAGS="$CFLAGS -Wbad-function-cast"
12644
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12646 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12647 cacheid=xorg_cv_cc_flag__Wbad_function_cast
12648 if eval \${$cacheid+:} false; then :
12649 $as_echo_n "(cached) " >&6
12650 else
12651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12652 /* end confdefs.h. */
12653 int i;
12654 int
12655 main ()
12656 {
12657
12658 ;
12659 return 0;
12660 }
12661 _ACEOF
12662 if ac_fn_c_try_link "$LINENO"; then :
12663 eval $cacheid=yes
12664 else
12665 eval $cacheid=no
12666 fi
12667 rm -f core conftest.err conftest.$ac_objext \
12668 conftest$ac_exeext conftest.$ac_ext
12669 fi
12670
12671
12672 CFLAGS="$xorg_testset_save_CFLAGS"
12673
12674 eval supported=\$$cacheid
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12676 $as_echo "$supported" >&6; }
12677 if test "$supported" = "yes" ; then
12678 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12679 found="yes"
12680 fi
12681 fi
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697 xorg_testset_save_CFLAGS="$CFLAGS"
12698
12699 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12700 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12702 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12703 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12704 $as_echo_n "(cached) " >&6
12705 else
12706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12707 /* end confdefs.h. */
12708 int i;
12709 _ACEOF
12710 if ac_fn_c_try_compile "$LINENO"; then :
12711 xorg_cv_cc_flag_unknown_warning_option=yes
12712 else
12713 xorg_cv_cc_flag_unknown_warning_option=no
12714 fi
12715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12716 fi
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12718 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12719 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12720 CFLAGS="$xorg_testset_save_CFLAGS"
12721 fi
12722
12723 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12726 fi
12727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12729 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12730 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12731 $as_echo_n "(cached) " >&6
12732 else
12733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12734 /* end confdefs.h. */
12735 int i;
12736 _ACEOF
12737 if ac_fn_c_try_compile "$LINENO"; then :
12738 xorg_cv_cc_flag_unused_command_line_argument=yes
12739 else
12740 xorg_cv_cc_flag_unused_command_line_argument=no
12741 fi
12742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12743 fi
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12745 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12746 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12747 CFLAGS="$xorg_testset_save_CFLAGS"
12748 fi
12749
12750 found="no"
12751
12752 if test $found = "no" ; then
12753 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12754 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12755 fi
12756
12757 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12759 fi
12760
12761 CFLAGS="$CFLAGS -Wold-style-definition"
12762
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12764 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12765 cacheid=xorg_cv_cc_flag__Wold_style_definition
12766 if eval \${$cacheid+:} false; then :
12767 $as_echo_n "(cached) " >&6
12768 else
12769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12770 /* end confdefs.h. */
12771 int i;
12772 int
12773 main ()
12774 {
12775
12776 ;
12777 return 0;
12778 }
12779 _ACEOF
12780 if ac_fn_c_try_link "$LINENO"; then :
12781 eval $cacheid=yes
12782 else
12783 eval $cacheid=no
12784 fi
12785 rm -f core conftest.err conftest.$ac_objext \
12786 conftest$ac_exeext conftest.$ac_ext
12787 fi
12788
12789
12790 CFLAGS="$xorg_testset_save_CFLAGS"
12791
12792 eval supported=\$$cacheid
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12794 $as_echo "$supported" >&6; }
12795 if test "$supported" = "yes" ; then
12796 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12797 found="yes"
12798 fi
12799 fi
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815 xorg_testset_save_CFLAGS="$CFLAGS"
12816
12817 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12820 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12821 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12822 $as_echo_n "(cached) " >&6
12823 else
12824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12825 /* end confdefs.h. */
12826 int i;
12827 _ACEOF
12828 if ac_fn_c_try_compile "$LINENO"; then :
12829 xorg_cv_cc_flag_unknown_warning_option=yes
12830 else
12831 xorg_cv_cc_flag_unknown_warning_option=no
12832 fi
12833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12834 fi
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12836 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12837 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12838 CFLAGS="$xorg_testset_save_CFLAGS"
12839 fi
12840
12841 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12844 fi
12845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12847 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12848 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12849 $as_echo_n "(cached) " >&6
12850 else
12851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12852 /* end confdefs.h. */
12853 int i;
12854 _ACEOF
12855 if ac_fn_c_try_compile "$LINENO"; then :
12856 xorg_cv_cc_flag_unused_command_line_argument=yes
12857 else
12858 xorg_cv_cc_flag_unused_command_line_argument=no
12859 fi
12860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12861 fi
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12863 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12864 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12865 CFLAGS="$xorg_testset_save_CFLAGS"
12866 fi
12867
12868 found="no"
12869
12870 if test $found = "no" ; then
12871 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12873 fi
12874
12875 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12877 fi
12878
12879 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12880
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
12882 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
12883 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
12884 if eval \${$cacheid+:} false; then :
12885 $as_echo_n "(cached) " >&6
12886 else
12887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12888 /* end confdefs.h. */
12889 int i;
12890 int
12891 main ()
12892 {
12893
12894 ;
12895 return 0;
12896 }
12897 _ACEOF
12898 if ac_fn_c_try_link "$LINENO"; then :
12899 eval $cacheid=yes
12900 else
12901 eval $cacheid=no
12902 fi
12903 rm -f core conftest.err conftest.$ac_objext \
12904 conftest$ac_exeext conftest.$ac_ext
12905 fi
12906
12907
12908 CFLAGS="$xorg_testset_save_CFLAGS"
12909
12910 eval supported=\$$cacheid
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12912 $as_echo "$supported" >&6; }
12913 if test "$supported" = "yes" ; then
12914 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
12915 found="yes"
12916 fi
12917 fi
12918
12919
12920
12921
12922
12923 # This chunk adds additional warnings that could catch undesired effects.
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937 xorg_testset_save_CFLAGS="$CFLAGS"
12938
12939 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12940 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12942 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12943 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12944 $as_echo_n "(cached) " >&6
12945 else
12946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12947 /* end confdefs.h. */
12948 int i;
12949 _ACEOF
12950 if ac_fn_c_try_compile "$LINENO"; then :
12951 xorg_cv_cc_flag_unknown_warning_option=yes
12952 else
12953 xorg_cv_cc_flag_unknown_warning_option=no
12954 fi
12955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12956 fi
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12958 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12959 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12960 CFLAGS="$xorg_testset_save_CFLAGS"
12961 fi
12962
12963 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12966 fi
12967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12969 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12970 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12971 $as_echo_n "(cached) " >&6
12972 else
12973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12974 /* end confdefs.h. */
12975 int i;
12976 _ACEOF
12977 if ac_fn_c_try_compile "$LINENO"; then :
12978 xorg_cv_cc_flag_unused_command_line_argument=yes
12979 else
12980 xorg_cv_cc_flag_unused_command_line_argument=no
12981 fi
12982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12983 fi
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12985 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12986 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12987 CFLAGS="$xorg_testset_save_CFLAGS"
12988 fi
12989
12990 found="no"
12991
12992 if test $found = "no" ; then
12993 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12994 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12995 fi
12996
12997 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12999 fi
13000
13001 CFLAGS="$CFLAGS -Wunused"
13002
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13004 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13005 cacheid=xorg_cv_cc_flag__Wunused
13006 if eval \${$cacheid+:} false; then :
13007 $as_echo_n "(cached) " >&6
13008 else
13009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13010 /* end confdefs.h. */
13011 int i;
13012 int
13013 main ()
13014 {
13015
13016 ;
13017 return 0;
13018 }
13019 _ACEOF
13020 if ac_fn_c_try_link "$LINENO"; then :
13021 eval $cacheid=yes
13022 else
13023 eval $cacheid=no
13024 fi
13025 rm -f core conftest.err conftest.$ac_objext \
13026 conftest$ac_exeext conftest.$ac_ext
13027 fi
13028
13029
13030 CFLAGS="$xorg_testset_save_CFLAGS"
13031
13032 eval supported=\$$cacheid
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13034 $as_echo "$supported" >&6; }
13035 if test "$supported" = "yes" ; then
13036 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13037 found="yes"
13038 fi
13039 fi
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055 xorg_testset_save_CFLAGS="$CFLAGS"
13056
13057 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13058 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13060 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13061 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13062 $as_echo_n "(cached) " >&6
13063 else
13064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13065 /* end confdefs.h. */
13066 int i;
13067 _ACEOF
13068 if ac_fn_c_try_compile "$LINENO"; then :
13069 xorg_cv_cc_flag_unknown_warning_option=yes
13070 else
13071 xorg_cv_cc_flag_unknown_warning_option=no
13072 fi
13073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13074 fi
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13076 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13077 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13078 CFLAGS="$xorg_testset_save_CFLAGS"
13079 fi
13080
13081 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13084 fi
13085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13087 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13088 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13089 $as_echo_n "(cached) " >&6
13090 else
13091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13092 /* end confdefs.h. */
13093 int i;
13094 _ACEOF
13095 if ac_fn_c_try_compile "$LINENO"; then :
13096 xorg_cv_cc_flag_unused_command_line_argument=yes
13097 else
13098 xorg_cv_cc_flag_unused_command_line_argument=no
13099 fi
13100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13101 fi
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13103 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13104 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13105 CFLAGS="$xorg_testset_save_CFLAGS"
13106 fi
13107
13108 found="no"
13109
13110 if test $found = "no" ; then
13111 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13113 fi
13114
13115 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13117 fi
13118
13119 CFLAGS="$CFLAGS -Wuninitialized"
13120
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13122 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13123 cacheid=xorg_cv_cc_flag__Wuninitialized
13124 if eval \${$cacheid+:} false; then :
13125 $as_echo_n "(cached) " >&6
13126 else
13127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13128 /* end confdefs.h. */
13129 int i;
13130 int
13131 main ()
13132 {
13133
13134 ;
13135 return 0;
13136 }
13137 _ACEOF
13138 if ac_fn_c_try_link "$LINENO"; then :
13139 eval $cacheid=yes
13140 else
13141 eval $cacheid=no
13142 fi
13143 rm -f core conftest.err conftest.$ac_objext \
13144 conftest$ac_exeext conftest.$ac_ext
13145 fi
13146
13147
13148 CFLAGS="$xorg_testset_save_CFLAGS"
13149
13150 eval supported=\$$cacheid
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13152 $as_echo "$supported" >&6; }
13153 if test "$supported" = "yes" ; then
13154 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13155 found="yes"
13156 fi
13157 fi
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173 xorg_testset_save_CFLAGS="$CFLAGS"
13174
13175 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13178 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13179 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13180 $as_echo_n "(cached) " >&6
13181 else
13182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13183 /* end confdefs.h. */
13184 int i;
13185 _ACEOF
13186 if ac_fn_c_try_compile "$LINENO"; then :
13187 xorg_cv_cc_flag_unknown_warning_option=yes
13188 else
13189 xorg_cv_cc_flag_unknown_warning_option=no
13190 fi
13191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13192 fi
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13194 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13195 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13196 CFLAGS="$xorg_testset_save_CFLAGS"
13197 fi
13198
13199 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13201 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13202 fi
13203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13205 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13206 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13207 $as_echo_n "(cached) " >&6
13208 else
13209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13210 /* end confdefs.h. */
13211 int i;
13212 _ACEOF
13213 if ac_fn_c_try_compile "$LINENO"; then :
13214 xorg_cv_cc_flag_unused_command_line_argument=yes
13215 else
13216 xorg_cv_cc_flag_unused_command_line_argument=no
13217 fi
13218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13219 fi
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13221 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13222 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13223 CFLAGS="$xorg_testset_save_CFLAGS"
13224 fi
13225
13226 found="no"
13227
13228 if test $found = "no" ; then
13229 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13230 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13231 fi
13232
13233 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13235 fi
13236
13237 CFLAGS="$CFLAGS -Wshadow"
13238
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13240 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13241 cacheid=xorg_cv_cc_flag__Wshadow
13242 if eval \${$cacheid+:} false; then :
13243 $as_echo_n "(cached) " >&6
13244 else
13245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13246 /* end confdefs.h. */
13247 int i;
13248 int
13249 main ()
13250 {
13251
13252 ;
13253 return 0;
13254 }
13255 _ACEOF
13256 if ac_fn_c_try_link "$LINENO"; then :
13257 eval $cacheid=yes
13258 else
13259 eval $cacheid=no
13260 fi
13261 rm -f core conftest.err conftest.$ac_objext \
13262 conftest$ac_exeext conftest.$ac_ext
13263 fi
13264
13265
13266 CFLAGS="$xorg_testset_save_CFLAGS"
13267
13268 eval supported=\$$cacheid
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13270 $as_echo "$supported" >&6; }
13271 if test "$supported" = "yes" ; then
13272 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13273 found="yes"
13274 fi
13275 fi
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291 xorg_testset_save_CFLAGS="$CFLAGS"
13292
13293 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13296 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13297 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13298 $as_echo_n "(cached) " >&6
13299 else
13300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13301 /* end confdefs.h. */
13302 int i;
13303 _ACEOF
13304 if ac_fn_c_try_compile "$LINENO"; then :
13305 xorg_cv_cc_flag_unknown_warning_option=yes
13306 else
13307 xorg_cv_cc_flag_unknown_warning_option=no
13308 fi
13309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13310 fi
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13312 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13313 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13314 CFLAGS="$xorg_testset_save_CFLAGS"
13315 fi
13316
13317 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13320 fi
13321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13323 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13324 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13325 $as_echo_n "(cached) " >&6
13326 else
13327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13328 /* end confdefs.h. */
13329 int i;
13330 _ACEOF
13331 if ac_fn_c_try_compile "$LINENO"; then :
13332 xorg_cv_cc_flag_unused_command_line_argument=yes
13333 else
13334 xorg_cv_cc_flag_unused_command_line_argument=no
13335 fi
13336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13337 fi
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13339 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13340 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13341 CFLAGS="$xorg_testset_save_CFLAGS"
13342 fi
13343
13344 found="no"
13345
13346 if test $found = "no" ; then
13347 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13348 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13349 fi
13350
13351 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13353 fi
13354
13355 CFLAGS="$CFLAGS -Wcast-qual"
13356
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
13358 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
13359 cacheid=xorg_cv_cc_flag__Wcast_qual
13360 if eval \${$cacheid+:} false; then :
13361 $as_echo_n "(cached) " >&6
13362 else
13363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13364 /* end confdefs.h. */
13365 int i;
13366 int
13367 main ()
13368 {
13369
13370 ;
13371 return 0;
13372 }
13373 _ACEOF
13374 if ac_fn_c_try_link "$LINENO"; then :
13375 eval $cacheid=yes
13376 else
13377 eval $cacheid=no
13378 fi
13379 rm -f core conftest.err conftest.$ac_objext \
13380 conftest$ac_exeext conftest.$ac_ext
13381 fi
13382
13383
13384 CFLAGS="$xorg_testset_save_CFLAGS"
13385
13386 eval supported=\$$cacheid
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13388 $as_echo "$supported" >&6; }
13389 if test "$supported" = "yes" ; then
13390 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13391 found="yes"
13392 fi
13393 fi
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409 xorg_testset_save_CFLAGS="$CFLAGS"
13410
13411 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13412 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13414 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13415 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13416 $as_echo_n "(cached) " >&6
13417 else
13418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13419 /* end confdefs.h. */
13420 int i;
13421 _ACEOF
13422 if ac_fn_c_try_compile "$LINENO"; then :
13423 xorg_cv_cc_flag_unknown_warning_option=yes
13424 else
13425 xorg_cv_cc_flag_unknown_warning_option=no
13426 fi
13427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13428 fi
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13430 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13431 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13432 CFLAGS="$xorg_testset_save_CFLAGS"
13433 fi
13434
13435 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13437 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13438 fi
13439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13441 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13442 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13443 $as_echo_n "(cached) " >&6
13444 else
13445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13446 /* end confdefs.h. */
13447 int i;
13448 _ACEOF
13449 if ac_fn_c_try_compile "$LINENO"; then :
13450 xorg_cv_cc_flag_unused_command_line_argument=yes
13451 else
13452 xorg_cv_cc_flag_unused_command_line_argument=no
13453 fi
13454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13455 fi
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13457 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13458 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13459 CFLAGS="$xorg_testset_save_CFLAGS"
13460 fi
13461
13462 found="no"
13463
13464 if test $found = "no" ; then
13465 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13466 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13467 fi
13468
13469 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13471 fi
13472
13473 CFLAGS="$CFLAGS -Wmissing-noreturn"
13474
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13476 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13477 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13478 if eval \${$cacheid+:} false; then :
13479 $as_echo_n "(cached) " >&6
13480 else
13481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13482 /* end confdefs.h. */
13483 int i;
13484 int
13485 main ()
13486 {
13487
13488 ;
13489 return 0;
13490 }
13491 _ACEOF
13492 if ac_fn_c_try_link "$LINENO"; then :
13493 eval $cacheid=yes
13494 else
13495 eval $cacheid=no
13496 fi
13497 rm -f core conftest.err conftest.$ac_objext \
13498 conftest$ac_exeext conftest.$ac_ext
13499 fi
13500
13501
13502 CFLAGS="$xorg_testset_save_CFLAGS"
13503
13504 eval supported=\$$cacheid
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13506 $as_echo "$supported" >&6; }
13507 if test "$supported" = "yes" ; then
13508 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13509 found="yes"
13510 fi
13511 fi
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527 xorg_testset_save_CFLAGS="$CFLAGS"
13528
13529 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13530 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13532 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13533 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13534 $as_echo_n "(cached) " >&6
13535 else
13536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13537 /* end confdefs.h. */
13538 int i;
13539 _ACEOF
13540 if ac_fn_c_try_compile "$LINENO"; then :
13541 xorg_cv_cc_flag_unknown_warning_option=yes
13542 else
13543 xorg_cv_cc_flag_unknown_warning_option=no
13544 fi
13545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13546 fi
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13548 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13549 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13550 CFLAGS="$xorg_testset_save_CFLAGS"
13551 fi
13552
13553 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13555 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13556 fi
13557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13559 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13560 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13561 $as_echo_n "(cached) " >&6
13562 else
13563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13564 /* end confdefs.h. */
13565 int i;
13566 _ACEOF
13567 if ac_fn_c_try_compile "$LINENO"; then :
13568 xorg_cv_cc_flag_unused_command_line_argument=yes
13569 else
13570 xorg_cv_cc_flag_unused_command_line_argument=no
13571 fi
13572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13573 fi
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13575 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13576 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13577 CFLAGS="$xorg_testset_save_CFLAGS"
13578 fi
13579
13580 found="no"
13581
13582 if test $found = "no" ; then
13583 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13584 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13585 fi
13586
13587 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13589 fi
13590
13591 CFLAGS="$CFLAGS -Wmissing-format-attribute"
13592
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13594 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13595 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
13596 if eval \${$cacheid+:} false; then :
13597 $as_echo_n "(cached) " >&6
13598 else
13599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13600 /* end confdefs.h. */
13601 int i;
13602 int
13603 main ()
13604 {
13605
13606 ;
13607 return 0;
13608 }
13609 _ACEOF
13610 if ac_fn_c_try_link "$LINENO"; then :
13611 eval $cacheid=yes
13612 else
13613 eval $cacheid=no
13614 fi
13615 rm -f core conftest.err conftest.$ac_objext \
13616 conftest$ac_exeext conftest.$ac_ext
13617 fi
13618
13619
13620 CFLAGS="$xorg_testset_save_CFLAGS"
13621
13622 eval supported=\$$cacheid
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13624 $as_echo "$supported" >&6; }
13625 if test "$supported" = "yes" ; then
13626 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13627 found="yes"
13628 fi
13629 fi
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645 xorg_testset_save_CFLAGS="$CFLAGS"
13646
13647 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13650 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13651 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13652 $as_echo_n "(cached) " >&6
13653 else
13654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13655 /* end confdefs.h. */
13656 int i;
13657 _ACEOF
13658 if ac_fn_c_try_compile "$LINENO"; then :
13659 xorg_cv_cc_flag_unknown_warning_option=yes
13660 else
13661 xorg_cv_cc_flag_unknown_warning_option=no
13662 fi
13663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13664 fi
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13666 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13667 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13668 CFLAGS="$xorg_testset_save_CFLAGS"
13669 fi
13670
13671 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13672 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13673 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13674 fi
13675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13677 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13678 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13679 $as_echo_n "(cached) " >&6
13680 else
13681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13682 /* end confdefs.h. */
13683 int i;
13684 _ACEOF
13685 if ac_fn_c_try_compile "$LINENO"; then :
13686 xorg_cv_cc_flag_unused_command_line_argument=yes
13687 else
13688 xorg_cv_cc_flag_unused_command_line_argument=no
13689 fi
13690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13691 fi
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13693 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13694 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13695 CFLAGS="$xorg_testset_save_CFLAGS"
13696 fi
13697
13698 found="no"
13699
13700 if test $found = "no" ; then
13701 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13703 fi
13704
13705 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13707 fi
13708
13709 CFLAGS="$CFLAGS -Wredundant-decls"
13710
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13712 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13713 cacheid=xorg_cv_cc_flag__Wredundant_decls
13714 if eval \${$cacheid+:} false; then :
13715 $as_echo_n "(cached) " >&6
13716 else
13717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13718 /* end confdefs.h. */
13719 int i;
13720 int
13721 main ()
13722 {
13723
13724 ;
13725 return 0;
13726 }
13727 _ACEOF
13728 if ac_fn_c_try_link "$LINENO"; then :
13729 eval $cacheid=yes
13730 else
13731 eval $cacheid=no
13732 fi
13733 rm -f core conftest.err conftest.$ac_objext \
13734 conftest$ac_exeext conftest.$ac_ext
13735 fi
13736
13737
13738 CFLAGS="$xorg_testset_save_CFLAGS"
13739
13740 eval supported=\$$cacheid
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13742 $as_echo "$supported" >&6; }
13743 if test "$supported" = "yes" ; then
13744 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13745 found="yes"
13746 fi
13747 fi
13748
13749
13750
13751 # These are currently disabled because they are noisy. They will be enabled
13752 # in the future once the codebase is sufficiently modernized to silence
13753 # them. For now, I don't want them to drown out the other warnings.
13754 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
13755 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13756 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13757
13758 # Turn some warnings into errors, so we don't accidently get successful builds
13759 # when there are problems that should be fixed.
13760
13761 if test "x$SELECTIVE_WERROR" = "xyes" ; then
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775 xorg_testset_save_CFLAGS="$CFLAGS"
13776
13777 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13778 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13780 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13781 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13782 $as_echo_n "(cached) " >&6
13783 else
13784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13785 /* end confdefs.h. */
13786 int i;
13787 _ACEOF
13788 if ac_fn_c_try_compile "$LINENO"; then :
13789 xorg_cv_cc_flag_unknown_warning_option=yes
13790 else
13791 xorg_cv_cc_flag_unknown_warning_option=no
13792 fi
13793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13794 fi
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13796 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13797 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13798 CFLAGS="$xorg_testset_save_CFLAGS"
13799 fi
13800
13801 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13804 fi
13805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13807 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13808 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13809 $as_echo_n "(cached) " >&6
13810 else
13811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13812 /* end confdefs.h. */
13813 int i;
13814 _ACEOF
13815 if ac_fn_c_try_compile "$LINENO"; then :
13816 xorg_cv_cc_flag_unused_command_line_argument=yes
13817 else
13818 xorg_cv_cc_flag_unused_command_line_argument=no
13819 fi
13820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13821 fi
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13823 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13824 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13825 CFLAGS="$xorg_testset_save_CFLAGS"
13826 fi
13827
13828 found="no"
13829
13830 if test $found = "no" ; then
13831 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13833 fi
13834
13835 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13837 fi
13838
13839 CFLAGS="$CFLAGS -Werror=implicit"
13840
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
13842 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
13843 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
13844 if eval \${$cacheid+:} false; then :
13845 $as_echo_n "(cached) " >&6
13846 else
13847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13848 /* end confdefs.h. */
13849 int i;
13850 int
13851 main ()
13852 {
13853
13854 ;
13855 return 0;
13856 }
13857 _ACEOF
13858 if ac_fn_c_try_link "$LINENO"; then :
13859 eval $cacheid=yes
13860 else
13861 eval $cacheid=no
13862 fi
13863 rm -f core conftest.err conftest.$ac_objext \
13864 conftest$ac_exeext conftest.$ac_ext
13865 fi
13866
13867
13868 CFLAGS="$xorg_testset_save_CFLAGS"
13869
13870 eval supported=\$$cacheid
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13872 $as_echo "$supported" >&6; }
13873 if test "$supported" = "yes" ; then
13874 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
13875 found="yes"
13876 fi
13877 fi
13878
13879 if test $found = "no" ; then
13880 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13882 fi
13883
13884 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13886 fi
13887
13888 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13889
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
13891 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
13892 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
13893 if eval \${$cacheid+:} false; then :
13894 $as_echo_n "(cached) " >&6
13895 else
13896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13897 /* end confdefs.h. */
13898 int i;
13899 int
13900 main ()
13901 {
13902
13903 ;
13904 return 0;
13905 }
13906 _ACEOF
13907 if ac_fn_c_try_link "$LINENO"; then :
13908 eval $cacheid=yes
13909 else
13910 eval $cacheid=no
13911 fi
13912 rm -f core conftest.err conftest.$ac_objext \
13913 conftest$ac_exeext conftest.$ac_ext
13914 fi
13915
13916
13917 CFLAGS="$xorg_testset_save_CFLAGS"
13918
13919 eval supported=\$$cacheid
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13921 $as_echo "$supported" >&6; }
13922 if test "$supported" = "yes" ; then
13923 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13924 found="yes"
13925 fi
13926 fi
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942 xorg_testset_save_CFLAGS="$CFLAGS"
13943
13944 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13945 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13947 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13948 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13949 $as_echo_n "(cached) " >&6
13950 else
13951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13952 /* end confdefs.h. */
13953 int i;
13954 _ACEOF
13955 if ac_fn_c_try_compile "$LINENO"; then :
13956 xorg_cv_cc_flag_unknown_warning_option=yes
13957 else
13958 xorg_cv_cc_flag_unknown_warning_option=no
13959 fi
13960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13961 fi
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13963 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13964 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13965 CFLAGS="$xorg_testset_save_CFLAGS"
13966 fi
13967
13968 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13971 fi
13972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13974 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13975 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13976 $as_echo_n "(cached) " >&6
13977 else
13978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13979 /* end confdefs.h. */
13980 int i;
13981 _ACEOF
13982 if ac_fn_c_try_compile "$LINENO"; then :
13983 xorg_cv_cc_flag_unused_command_line_argument=yes
13984 else
13985 xorg_cv_cc_flag_unused_command_line_argument=no
13986 fi
13987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13988 fi
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13990 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13991 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13992 CFLAGS="$xorg_testset_save_CFLAGS"
13993 fi
13994
13995 found="no"
13996
13997 if test $found = "no" ; then
13998 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13999 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14000 fi
14001
14002 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14004 fi
14005
14006 CFLAGS="$CFLAGS -Werror=nonnull"
14007
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14009 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14010 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
14011 if eval \${$cacheid+:} false; then :
14012 $as_echo_n "(cached) " >&6
14013 else
14014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14015 /* end confdefs.h. */
14016 int i;
14017 int
14018 main ()
14019 {
14020
14021 ;
14022 return 0;
14023 }
14024 _ACEOF
14025 if ac_fn_c_try_link "$LINENO"; then :
14026 eval $cacheid=yes
14027 else
14028 eval $cacheid=no
14029 fi
14030 rm -f core conftest.err conftest.$ac_objext \
14031 conftest$ac_exeext conftest.$ac_ext
14032 fi
14033
14034
14035 CFLAGS="$xorg_testset_save_CFLAGS"
14036
14037 eval supported=\$$cacheid
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14039 $as_echo "$supported" >&6; }
14040 if test "$supported" = "yes" ; then
14041 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14042 found="yes"
14043 fi
14044 fi
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060 xorg_testset_save_CFLAGS="$CFLAGS"
14061
14062 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14063 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14065 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14066 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14067 $as_echo_n "(cached) " >&6
14068 else
14069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14070 /* end confdefs.h. */
14071 int i;
14072 _ACEOF
14073 if ac_fn_c_try_compile "$LINENO"; then :
14074 xorg_cv_cc_flag_unknown_warning_option=yes
14075 else
14076 xorg_cv_cc_flag_unknown_warning_option=no
14077 fi
14078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14079 fi
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14081 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14082 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14083 CFLAGS="$xorg_testset_save_CFLAGS"
14084 fi
14085
14086 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14087 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14088 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14089 fi
14090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14092 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14093 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14094 $as_echo_n "(cached) " >&6
14095 else
14096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14097 /* end confdefs.h. */
14098 int i;
14099 _ACEOF
14100 if ac_fn_c_try_compile "$LINENO"; then :
14101 xorg_cv_cc_flag_unused_command_line_argument=yes
14102 else
14103 xorg_cv_cc_flag_unused_command_line_argument=no
14104 fi
14105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14106 fi
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14108 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14109 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14110 CFLAGS="$xorg_testset_save_CFLAGS"
14111 fi
14112
14113 found="no"
14114
14115 if test $found = "no" ; then
14116 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14117 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14118 fi
14119
14120 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14122 fi
14123
14124 CFLAGS="$CFLAGS -Werror=init-self"
14125
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14127 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14128 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
14129 if eval \${$cacheid+:} false; then :
14130 $as_echo_n "(cached) " >&6
14131 else
14132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14133 /* end confdefs.h. */
14134 int i;
14135 int
14136 main ()
14137 {
14138
14139 ;
14140 return 0;
14141 }
14142 _ACEOF
14143 if ac_fn_c_try_link "$LINENO"; then :
14144 eval $cacheid=yes
14145 else
14146 eval $cacheid=no
14147 fi
14148 rm -f core conftest.err conftest.$ac_objext \
14149 conftest$ac_exeext conftest.$ac_ext
14150 fi
14151
14152
14153 CFLAGS="$xorg_testset_save_CFLAGS"
14154
14155 eval supported=\$$cacheid
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14157 $as_echo "$supported" >&6; }
14158 if test "$supported" = "yes" ; then
14159 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14160 found="yes"
14161 fi
14162 fi
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178 xorg_testset_save_CFLAGS="$CFLAGS"
14179
14180 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14181 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14183 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14184 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14185 $as_echo_n "(cached) " >&6
14186 else
14187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14188 /* end confdefs.h. */
14189 int i;
14190 _ACEOF
14191 if ac_fn_c_try_compile "$LINENO"; then :
14192 xorg_cv_cc_flag_unknown_warning_option=yes
14193 else
14194 xorg_cv_cc_flag_unknown_warning_option=no
14195 fi
14196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14197 fi
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14199 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14200 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14201 CFLAGS="$xorg_testset_save_CFLAGS"
14202 fi
14203
14204 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14206 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14207 fi
14208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14210 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14211 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14212 $as_echo_n "(cached) " >&6
14213 else
14214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14215 /* end confdefs.h. */
14216 int i;
14217 _ACEOF
14218 if ac_fn_c_try_compile "$LINENO"; then :
14219 xorg_cv_cc_flag_unused_command_line_argument=yes
14220 else
14221 xorg_cv_cc_flag_unused_command_line_argument=no
14222 fi
14223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14224 fi
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14226 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14227 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14228 CFLAGS="$xorg_testset_save_CFLAGS"
14229 fi
14230
14231 found="no"
14232
14233 if test $found = "no" ; then
14234 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14235 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14236 fi
14237
14238 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14240 fi
14241
14242 CFLAGS="$CFLAGS -Werror=main"
14243
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14245 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14246 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
14247 if eval \${$cacheid+:} false; then :
14248 $as_echo_n "(cached) " >&6
14249 else
14250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14251 /* end confdefs.h. */
14252 int i;
14253 int
14254 main ()
14255 {
14256
14257 ;
14258 return 0;
14259 }
14260 _ACEOF
14261 if ac_fn_c_try_link "$LINENO"; then :
14262 eval $cacheid=yes
14263 else
14264 eval $cacheid=no
14265 fi
14266 rm -f core conftest.err conftest.$ac_objext \
14267 conftest$ac_exeext conftest.$ac_ext
14268 fi
14269
14270
14271 CFLAGS="$xorg_testset_save_CFLAGS"
14272
14273 eval supported=\$$cacheid
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14275 $as_echo "$supported" >&6; }
14276 if test "$supported" = "yes" ; then
14277 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14278 found="yes"
14279 fi
14280 fi
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296 xorg_testset_save_CFLAGS="$CFLAGS"
14297
14298 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14301 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14302 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14303 $as_echo_n "(cached) " >&6
14304 else
14305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14306 /* end confdefs.h. */
14307 int i;
14308 _ACEOF
14309 if ac_fn_c_try_compile "$LINENO"; then :
14310 xorg_cv_cc_flag_unknown_warning_option=yes
14311 else
14312 xorg_cv_cc_flag_unknown_warning_option=no
14313 fi
14314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14315 fi
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14317 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14318 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14319 CFLAGS="$xorg_testset_save_CFLAGS"
14320 fi
14321
14322 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14324 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14325 fi
14326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14328 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14329 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14330 $as_echo_n "(cached) " >&6
14331 else
14332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14333 /* end confdefs.h. */
14334 int i;
14335 _ACEOF
14336 if ac_fn_c_try_compile "$LINENO"; then :
14337 xorg_cv_cc_flag_unused_command_line_argument=yes
14338 else
14339 xorg_cv_cc_flag_unused_command_line_argument=no
14340 fi
14341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14342 fi
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14344 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14345 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14346 CFLAGS="$xorg_testset_save_CFLAGS"
14347 fi
14348
14349 found="no"
14350
14351 if test $found = "no" ; then
14352 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14353 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14354 fi
14355
14356 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14358 fi
14359
14360 CFLAGS="$CFLAGS -Werror=missing-braces"
14361
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14363 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14364 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
14365 if eval \${$cacheid+:} false; then :
14366 $as_echo_n "(cached) " >&6
14367 else
14368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14369 /* end confdefs.h. */
14370 int i;
14371 int
14372 main ()
14373 {
14374
14375 ;
14376 return 0;
14377 }
14378 _ACEOF
14379 if ac_fn_c_try_link "$LINENO"; then :
14380 eval $cacheid=yes
14381 else
14382 eval $cacheid=no
14383 fi
14384 rm -f core conftest.err conftest.$ac_objext \
14385 conftest$ac_exeext conftest.$ac_ext
14386 fi
14387
14388
14389 CFLAGS="$xorg_testset_save_CFLAGS"
14390
14391 eval supported=\$$cacheid
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14393 $as_echo "$supported" >&6; }
14394 if test "$supported" = "yes" ; then
14395 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14396 found="yes"
14397 fi
14398 fi
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414 xorg_testset_save_CFLAGS="$CFLAGS"
14415
14416 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14417 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14419 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14420 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14421 $as_echo_n "(cached) " >&6
14422 else
14423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14424 /* end confdefs.h. */
14425 int i;
14426 _ACEOF
14427 if ac_fn_c_try_compile "$LINENO"; then :
14428 xorg_cv_cc_flag_unknown_warning_option=yes
14429 else
14430 xorg_cv_cc_flag_unknown_warning_option=no
14431 fi
14432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14433 fi
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14435 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14436 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14437 CFLAGS="$xorg_testset_save_CFLAGS"
14438 fi
14439
14440 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14442 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14443 fi
14444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14446 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14447 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14448 $as_echo_n "(cached) " >&6
14449 else
14450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14451 /* end confdefs.h. */
14452 int i;
14453 _ACEOF
14454 if ac_fn_c_try_compile "$LINENO"; then :
14455 xorg_cv_cc_flag_unused_command_line_argument=yes
14456 else
14457 xorg_cv_cc_flag_unused_command_line_argument=no
14458 fi
14459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14460 fi
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14462 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14463 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14464 CFLAGS="$xorg_testset_save_CFLAGS"
14465 fi
14466
14467 found="no"
14468
14469 if test $found = "no" ; then
14470 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14471 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14472 fi
14473
14474 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14476 fi
14477
14478 CFLAGS="$CFLAGS -Werror=sequence-point"
14479
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14481 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14482 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
14483 if eval \${$cacheid+:} false; then :
14484 $as_echo_n "(cached) " >&6
14485 else
14486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14487 /* end confdefs.h. */
14488 int i;
14489 int
14490 main ()
14491 {
14492
14493 ;
14494 return 0;
14495 }
14496 _ACEOF
14497 if ac_fn_c_try_link "$LINENO"; then :
14498 eval $cacheid=yes
14499 else
14500 eval $cacheid=no
14501 fi
14502 rm -f core conftest.err conftest.$ac_objext \
14503 conftest$ac_exeext conftest.$ac_ext
14504 fi
14505
14506
14507 CFLAGS="$xorg_testset_save_CFLAGS"
14508
14509 eval supported=\$$cacheid
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14511 $as_echo "$supported" >&6; }
14512 if test "$supported" = "yes" ; then
14513 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14514 found="yes"
14515 fi
14516 fi
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532 xorg_testset_save_CFLAGS="$CFLAGS"
14533
14534 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14535 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14537 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14538 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14539 $as_echo_n "(cached) " >&6
14540 else
14541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14542 /* end confdefs.h. */
14543 int i;
14544 _ACEOF
14545 if ac_fn_c_try_compile "$LINENO"; then :
14546 xorg_cv_cc_flag_unknown_warning_option=yes
14547 else
14548 xorg_cv_cc_flag_unknown_warning_option=no
14549 fi
14550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14551 fi
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14553 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14554 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14555 CFLAGS="$xorg_testset_save_CFLAGS"
14556 fi
14557
14558 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14561 fi
14562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14564 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14565 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14566 $as_echo_n "(cached) " >&6
14567 else
14568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14569 /* end confdefs.h. */
14570 int i;
14571 _ACEOF
14572 if ac_fn_c_try_compile "$LINENO"; then :
14573 xorg_cv_cc_flag_unused_command_line_argument=yes
14574 else
14575 xorg_cv_cc_flag_unused_command_line_argument=no
14576 fi
14577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14578 fi
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14580 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14581 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14582 CFLAGS="$xorg_testset_save_CFLAGS"
14583 fi
14584
14585 found="no"
14586
14587 if test $found = "no" ; then
14588 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14589 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14590 fi
14591
14592 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14594 fi
14595
14596 CFLAGS="$CFLAGS -Werror=return-type"
14597
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14599 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14600 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
14601 if eval \${$cacheid+:} false; then :
14602 $as_echo_n "(cached) " >&6
14603 else
14604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14605 /* end confdefs.h. */
14606 int i;
14607 int
14608 main ()
14609 {
14610
14611 ;
14612 return 0;
14613 }
14614 _ACEOF
14615 if ac_fn_c_try_link "$LINENO"; then :
14616 eval $cacheid=yes
14617 else
14618 eval $cacheid=no
14619 fi
14620 rm -f core conftest.err conftest.$ac_objext \
14621 conftest$ac_exeext conftest.$ac_ext
14622 fi
14623
14624
14625 CFLAGS="$xorg_testset_save_CFLAGS"
14626
14627 eval supported=\$$cacheid
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14629 $as_echo "$supported" >&6; }
14630 if test "$supported" = "yes" ; then
14631 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14632 found="yes"
14633 fi
14634 fi
14635
14636 if test $found = "no" ; then
14637 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14639 fi
14640
14641 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14643 fi
14644
14645 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14646
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14648 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14649 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
14650 if eval \${$cacheid+:} false; then :
14651 $as_echo_n "(cached) " >&6
14652 else
14653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14654 /* end confdefs.h. */
14655 int i;
14656 int
14657 main ()
14658 {
14659
14660 ;
14661 return 0;
14662 }
14663 _ACEOF
14664 if ac_fn_c_try_link "$LINENO"; then :
14665 eval $cacheid=yes
14666 else
14667 eval $cacheid=no
14668 fi
14669 rm -f core conftest.err conftest.$ac_objext \
14670 conftest$ac_exeext conftest.$ac_ext
14671 fi
14672
14673
14674 CFLAGS="$xorg_testset_save_CFLAGS"
14675
14676 eval supported=\$$cacheid
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14678 $as_echo "$supported" >&6; }
14679 if test "$supported" = "yes" ; then
14680 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14681 found="yes"
14682 fi
14683 fi
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699 xorg_testset_save_CFLAGS="$CFLAGS"
14700
14701 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14704 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14705 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14706 $as_echo_n "(cached) " >&6
14707 else
14708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14709 /* end confdefs.h. */
14710 int i;
14711 _ACEOF
14712 if ac_fn_c_try_compile "$LINENO"; then :
14713 xorg_cv_cc_flag_unknown_warning_option=yes
14714 else
14715 xorg_cv_cc_flag_unknown_warning_option=no
14716 fi
14717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14718 fi
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14720 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14721 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14722 CFLAGS="$xorg_testset_save_CFLAGS"
14723 fi
14724
14725 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14728 fi
14729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14731 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14732 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14733 $as_echo_n "(cached) " >&6
14734 else
14735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14736 /* end confdefs.h. */
14737 int i;
14738 _ACEOF
14739 if ac_fn_c_try_compile "$LINENO"; then :
14740 xorg_cv_cc_flag_unused_command_line_argument=yes
14741 else
14742 xorg_cv_cc_flag_unused_command_line_argument=no
14743 fi
14744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14745 fi
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14747 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14748 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14749 CFLAGS="$xorg_testset_save_CFLAGS"
14750 fi
14751
14752 found="no"
14753
14754 if test $found = "no" ; then
14755 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14757 fi
14758
14759 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14761 fi
14762
14763 CFLAGS="$CFLAGS -Werror=trigraphs"
14764
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14766 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14767 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
14768 if eval \${$cacheid+:} false; then :
14769 $as_echo_n "(cached) " >&6
14770 else
14771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14772 /* end confdefs.h. */
14773 int i;
14774 int
14775 main ()
14776 {
14777
14778 ;
14779 return 0;
14780 }
14781 _ACEOF
14782 if ac_fn_c_try_link "$LINENO"; then :
14783 eval $cacheid=yes
14784 else
14785 eval $cacheid=no
14786 fi
14787 rm -f core conftest.err conftest.$ac_objext \
14788 conftest$ac_exeext conftest.$ac_ext
14789 fi
14790
14791
14792 CFLAGS="$xorg_testset_save_CFLAGS"
14793
14794 eval supported=\$$cacheid
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14796 $as_echo "$supported" >&6; }
14797 if test "$supported" = "yes" ; then
14798 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14799 found="yes"
14800 fi
14801 fi
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817 xorg_testset_save_CFLAGS="$CFLAGS"
14818
14819 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14822 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14823 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14824 $as_echo_n "(cached) " >&6
14825 else
14826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14827 /* end confdefs.h. */
14828 int i;
14829 _ACEOF
14830 if ac_fn_c_try_compile "$LINENO"; then :
14831 xorg_cv_cc_flag_unknown_warning_option=yes
14832 else
14833 xorg_cv_cc_flag_unknown_warning_option=no
14834 fi
14835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14836 fi
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14838 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14839 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14840 CFLAGS="$xorg_testset_save_CFLAGS"
14841 fi
14842
14843 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14846 fi
14847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14849 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14850 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14851 $as_echo_n "(cached) " >&6
14852 else
14853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14854 /* end confdefs.h. */
14855 int i;
14856 _ACEOF
14857 if ac_fn_c_try_compile "$LINENO"; then :
14858 xorg_cv_cc_flag_unused_command_line_argument=yes
14859 else
14860 xorg_cv_cc_flag_unused_command_line_argument=no
14861 fi
14862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14863 fi
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14865 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14866 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14867 CFLAGS="$xorg_testset_save_CFLAGS"
14868 fi
14869
14870 found="no"
14871
14872 if test $found = "no" ; then
14873 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14875 fi
14876
14877 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14879 fi
14880
14881 CFLAGS="$CFLAGS -Werror=array-bounds"
14882
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
14884 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
14885 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
14886 if eval \${$cacheid+:} false; then :
14887 $as_echo_n "(cached) " >&6
14888 else
14889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14890 /* end confdefs.h. */
14891 int i;
14892 int
14893 main ()
14894 {
14895
14896 ;
14897 return 0;
14898 }
14899 _ACEOF
14900 if ac_fn_c_try_link "$LINENO"; then :
14901 eval $cacheid=yes
14902 else
14903 eval $cacheid=no
14904 fi
14905 rm -f core conftest.err conftest.$ac_objext \
14906 conftest$ac_exeext conftest.$ac_ext
14907 fi
14908
14909
14910 CFLAGS="$xorg_testset_save_CFLAGS"
14911
14912 eval supported=\$$cacheid
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14914 $as_echo "$supported" >&6; }
14915 if test "$supported" = "yes" ; then
14916 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
14917 found="yes"
14918 fi
14919 fi
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935 xorg_testset_save_CFLAGS="$CFLAGS"
14936
14937 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14940 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14941 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14942 $as_echo_n "(cached) " >&6
14943 else
14944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14945 /* end confdefs.h. */
14946 int i;
14947 _ACEOF
14948 if ac_fn_c_try_compile "$LINENO"; then :
14949 xorg_cv_cc_flag_unknown_warning_option=yes
14950 else
14951 xorg_cv_cc_flag_unknown_warning_option=no
14952 fi
14953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14954 fi
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14956 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14957 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14958 CFLAGS="$xorg_testset_save_CFLAGS"
14959 fi
14960
14961 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14964 fi
14965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14967 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14968 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14969 $as_echo_n "(cached) " >&6
14970 else
14971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14972 /* end confdefs.h. */
14973 int i;
14974 _ACEOF
14975 if ac_fn_c_try_compile "$LINENO"; then :
14976 xorg_cv_cc_flag_unused_command_line_argument=yes
14977 else
14978 xorg_cv_cc_flag_unused_command_line_argument=no
14979 fi
14980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14981 fi
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14983 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14984 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14985 CFLAGS="$xorg_testset_save_CFLAGS"
14986 fi
14987
14988 found="no"
14989
14990 if test $found = "no" ; then
14991 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14993 fi
14994
14995 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14997 fi
14998
14999 CFLAGS="$CFLAGS -Werror=write-strings"
15000
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15002 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15003 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
15004 if eval \${$cacheid+:} false; then :
15005 $as_echo_n "(cached) " >&6
15006 else
15007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15008 /* end confdefs.h. */
15009 int i;
15010 int
15011 main ()
15012 {
15013
15014 ;
15015 return 0;
15016 }
15017 _ACEOF
15018 if ac_fn_c_try_link "$LINENO"; then :
15019 eval $cacheid=yes
15020 else
15021 eval $cacheid=no
15022 fi
15023 rm -f core conftest.err conftest.$ac_objext \
15024 conftest$ac_exeext conftest.$ac_ext
15025 fi
15026
15027
15028 CFLAGS="$xorg_testset_save_CFLAGS"
15029
15030 eval supported=\$$cacheid
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15032 $as_echo "$supported" >&6; }
15033 if test "$supported" = "yes" ; then
15034 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15035 found="yes"
15036 fi
15037 fi
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053 xorg_testset_save_CFLAGS="$CFLAGS"
15054
15055 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15058 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15059 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15060 $as_echo_n "(cached) " >&6
15061 else
15062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15063 /* end confdefs.h. */
15064 int i;
15065 _ACEOF
15066 if ac_fn_c_try_compile "$LINENO"; then :
15067 xorg_cv_cc_flag_unknown_warning_option=yes
15068 else
15069 xorg_cv_cc_flag_unknown_warning_option=no
15070 fi
15071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15072 fi
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15074 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15075 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15076 CFLAGS="$xorg_testset_save_CFLAGS"
15077 fi
15078
15079 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15082 fi
15083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15085 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15086 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15087 $as_echo_n "(cached) " >&6
15088 else
15089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15090 /* end confdefs.h. */
15091 int i;
15092 _ACEOF
15093 if ac_fn_c_try_compile "$LINENO"; then :
15094 xorg_cv_cc_flag_unused_command_line_argument=yes
15095 else
15096 xorg_cv_cc_flag_unused_command_line_argument=no
15097 fi
15098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15099 fi
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15101 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15102 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15103 CFLAGS="$xorg_testset_save_CFLAGS"
15104 fi
15105
15106 found="no"
15107
15108 if test $found = "no" ; then
15109 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15111 fi
15112
15113 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15115 fi
15116
15117 CFLAGS="$CFLAGS -Werror=address"
15118
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15120 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15121 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
15122 if eval \${$cacheid+:} false; then :
15123 $as_echo_n "(cached) " >&6
15124 else
15125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15126 /* end confdefs.h. */
15127 int i;
15128 int
15129 main ()
15130 {
15131
15132 ;
15133 return 0;
15134 }
15135 _ACEOF
15136 if ac_fn_c_try_link "$LINENO"; then :
15137 eval $cacheid=yes
15138 else
15139 eval $cacheid=no
15140 fi
15141 rm -f core conftest.err conftest.$ac_objext \
15142 conftest$ac_exeext conftest.$ac_ext
15143 fi
15144
15145
15146 CFLAGS="$xorg_testset_save_CFLAGS"
15147
15148 eval supported=\$$cacheid
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15150 $as_echo "$supported" >&6; }
15151 if test "$supported" = "yes" ; then
15152 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15153 found="yes"
15154 fi
15155 fi
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171 xorg_testset_save_CFLAGS="$CFLAGS"
15172
15173 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15176 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15177 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15178 $as_echo_n "(cached) " >&6
15179 else
15180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15181 /* end confdefs.h. */
15182 int i;
15183 _ACEOF
15184 if ac_fn_c_try_compile "$LINENO"; then :
15185 xorg_cv_cc_flag_unknown_warning_option=yes
15186 else
15187 xorg_cv_cc_flag_unknown_warning_option=no
15188 fi
15189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15190 fi
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15192 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15193 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15194 CFLAGS="$xorg_testset_save_CFLAGS"
15195 fi
15196
15197 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15200 fi
15201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15203 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15204 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15205 $as_echo_n "(cached) " >&6
15206 else
15207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15208 /* end confdefs.h. */
15209 int i;
15210 _ACEOF
15211 if ac_fn_c_try_compile "$LINENO"; then :
15212 xorg_cv_cc_flag_unused_command_line_argument=yes
15213 else
15214 xorg_cv_cc_flag_unused_command_line_argument=no
15215 fi
15216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15217 fi
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15219 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15220 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15221 CFLAGS="$xorg_testset_save_CFLAGS"
15222 fi
15223
15224 found="no"
15225
15226 if test $found = "no" ; then
15227 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15229 fi
15230
15231 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15233 fi
15234
15235 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15236
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15238 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15239 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
15240 if eval \${$cacheid+:} false; then :
15241 $as_echo_n "(cached) " >&6
15242 else
15243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15244 /* end confdefs.h. */
15245 int i;
15246 int
15247 main ()
15248 {
15249
15250 ;
15251 return 0;
15252 }
15253 _ACEOF
15254 if ac_fn_c_try_link "$LINENO"; then :
15255 eval $cacheid=yes
15256 else
15257 eval $cacheid=no
15258 fi
15259 rm -f core conftest.err conftest.$ac_objext \
15260 conftest$ac_exeext conftest.$ac_ext
15261 fi
15262
15263
15264 CFLAGS="$xorg_testset_save_CFLAGS"
15265
15266 eval supported=\$$cacheid
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15268 $as_echo "$supported" >&6; }
15269 if test "$supported" = "yes" ; then
15270 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15271 found="yes"
15272 fi
15273 fi
15274
15275 if test $found = "no" ; then
15276 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15277 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15278 fi
15279
15280 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15282 fi
15283
15284 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15285
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15287 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15288 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
15289 if eval \${$cacheid+:} false; then :
15290 $as_echo_n "(cached) " >&6
15291 else
15292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15293 /* end confdefs.h. */
15294 int i;
15295 int
15296 main ()
15297 {
15298
15299 ;
15300 return 0;
15301 }
15302 _ACEOF
15303 if ac_fn_c_try_link "$LINENO"; then :
15304 eval $cacheid=yes
15305 else
15306 eval $cacheid=no
15307 fi
15308 rm -f core conftest.err conftest.$ac_objext \
15309 conftest$ac_exeext conftest.$ac_ext
15310 fi
15311
15312
15313 CFLAGS="$xorg_testset_save_CFLAGS"
15314
15315 eval supported=\$$cacheid
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15317 $as_echo "$supported" >&6; }
15318 if test "$supported" = "yes" ; then
15319 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15320 found="yes"
15321 fi
15322 fi
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338 xorg_testset_save_CFLAGS="$CFLAGS"
15339
15340 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15343 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15344 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15345 $as_echo_n "(cached) " >&6
15346 else
15347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15348 /* end confdefs.h. */
15349 int i;
15350 _ACEOF
15351 if ac_fn_c_try_compile "$LINENO"; then :
15352 xorg_cv_cc_flag_unknown_warning_option=yes
15353 else
15354 xorg_cv_cc_flag_unknown_warning_option=no
15355 fi
15356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15357 fi
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15359 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15360 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15361 CFLAGS="$xorg_testset_save_CFLAGS"
15362 fi
15363
15364 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15366 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15367 fi
15368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15370 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15371 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15372 $as_echo_n "(cached) " >&6
15373 else
15374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15375 /* end confdefs.h. */
15376 int i;
15377 _ACEOF
15378 if ac_fn_c_try_compile "$LINENO"; then :
15379 xorg_cv_cc_flag_unused_command_line_argument=yes
15380 else
15381 xorg_cv_cc_flag_unused_command_line_argument=no
15382 fi
15383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15384 fi
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15386 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15387 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15388 CFLAGS="$xorg_testset_save_CFLAGS"
15389 fi
15390
15391 found="no"
15392
15393 if test $found = "no" ; then
15394 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15395 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15396 fi
15397
15398 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15400 fi
15401
15402 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15403
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15405 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15406 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
15407 if eval \${$cacheid+:} false; then :
15408 $as_echo_n "(cached) " >&6
15409 else
15410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15411 /* end confdefs.h. */
15412 int i;
15413 int
15414 main ()
15415 {
15416
15417 ;
15418 return 0;
15419 }
15420 _ACEOF
15421 if ac_fn_c_try_link "$LINENO"; then :
15422 eval $cacheid=yes
15423 else
15424 eval $cacheid=no
15425 fi
15426 rm -f core conftest.err conftest.$ac_objext \
15427 conftest$ac_exeext conftest.$ac_ext
15428 fi
15429
15430
15431 CFLAGS="$xorg_testset_save_CFLAGS"
15432
15433 eval supported=\$$cacheid
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15435 $as_echo "$supported" >&6; }
15436 if test "$supported" = "yes" ; then
15437 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15438 found="yes"
15439 fi
15440 fi
15441
15442 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15443 else
15444 { $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
15445 $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;}
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459 xorg_testset_save_CFLAGS="$CFLAGS"
15460
15461 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15464 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15465 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15466 $as_echo_n "(cached) " >&6
15467 else
15468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15469 /* end confdefs.h. */
15470 int i;
15471 _ACEOF
15472 if ac_fn_c_try_compile "$LINENO"; then :
15473 xorg_cv_cc_flag_unknown_warning_option=yes
15474 else
15475 xorg_cv_cc_flag_unknown_warning_option=no
15476 fi
15477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15478 fi
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15480 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15481 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15482 CFLAGS="$xorg_testset_save_CFLAGS"
15483 fi
15484
15485 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15486 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15488 fi
15489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15491 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15492 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15493 $as_echo_n "(cached) " >&6
15494 else
15495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15496 /* end confdefs.h. */
15497 int i;
15498 _ACEOF
15499 if ac_fn_c_try_compile "$LINENO"; then :
15500 xorg_cv_cc_flag_unused_command_line_argument=yes
15501 else
15502 xorg_cv_cc_flag_unused_command_line_argument=no
15503 fi
15504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15505 fi
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15507 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15508 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15509 CFLAGS="$xorg_testset_save_CFLAGS"
15510 fi
15511
15512 found="no"
15513
15514 if test $found = "no" ; then
15515 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15516 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15517 fi
15518
15519 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15521 fi
15522
15523 CFLAGS="$CFLAGS -Wimplicit"
15524
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15526 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15527 cacheid=xorg_cv_cc_flag__Wimplicit
15528 if eval \${$cacheid+:} false; then :
15529 $as_echo_n "(cached) " >&6
15530 else
15531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15532 /* end confdefs.h. */
15533 int i;
15534 int
15535 main ()
15536 {
15537
15538 ;
15539 return 0;
15540 }
15541 _ACEOF
15542 if ac_fn_c_try_link "$LINENO"; then :
15543 eval $cacheid=yes
15544 else
15545 eval $cacheid=no
15546 fi
15547 rm -f core conftest.err conftest.$ac_objext \
15548 conftest$ac_exeext conftest.$ac_ext
15549 fi
15550
15551
15552 CFLAGS="$xorg_testset_save_CFLAGS"
15553
15554 eval supported=\$$cacheid
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15556 $as_echo "$supported" >&6; }
15557 if test "$supported" = "yes" ; then
15558 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15559 found="yes"
15560 fi
15561 fi
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577 xorg_testset_save_CFLAGS="$CFLAGS"
15578
15579 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15580 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15582 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15583 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15584 $as_echo_n "(cached) " >&6
15585 else
15586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15587 /* end confdefs.h. */
15588 int i;
15589 _ACEOF
15590 if ac_fn_c_try_compile "$LINENO"; then :
15591 xorg_cv_cc_flag_unknown_warning_option=yes
15592 else
15593 xorg_cv_cc_flag_unknown_warning_option=no
15594 fi
15595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15596 fi
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15598 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15599 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15600 CFLAGS="$xorg_testset_save_CFLAGS"
15601 fi
15602
15603 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15606 fi
15607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15609 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15610 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15611 $as_echo_n "(cached) " >&6
15612 else
15613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15614 /* end confdefs.h. */
15615 int i;
15616 _ACEOF
15617 if ac_fn_c_try_compile "$LINENO"; then :
15618 xorg_cv_cc_flag_unused_command_line_argument=yes
15619 else
15620 xorg_cv_cc_flag_unused_command_line_argument=no
15621 fi
15622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15623 fi
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15625 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15626 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15627 CFLAGS="$xorg_testset_save_CFLAGS"
15628 fi
15629
15630 found="no"
15631
15632 if test $found = "no" ; then
15633 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15635 fi
15636
15637 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15639 fi
15640
15641 CFLAGS="$CFLAGS -Wnonnull"
15642
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15644 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15645 cacheid=xorg_cv_cc_flag__Wnonnull
15646 if eval \${$cacheid+:} false; then :
15647 $as_echo_n "(cached) " >&6
15648 else
15649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15650 /* end confdefs.h. */
15651 int i;
15652 int
15653 main ()
15654 {
15655
15656 ;
15657 return 0;
15658 }
15659 _ACEOF
15660 if ac_fn_c_try_link "$LINENO"; then :
15661 eval $cacheid=yes
15662 else
15663 eval $cacheid=no
15664 fi
15665 rm -f core conftest.err conftest.$ac_objext \
15666 conftest$ac_exeext conftest.$ac_ext
15667 fi
15668
15669
15670 CFLAGS="$xorg_testset_save_CFLAGS"
15671
15672 eval supported=\$$cacheid
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15674 $as_echo "$supported" >&6; }
15675 if test "$supported" = "yes" ; then
15676 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15677 found="yes"
15678 fi
15679 fi
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695 xorg_testset_save_CFLAGS="$CFLAGS"
15696
15697 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15700 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15701 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15702 $as_echo_n "(cached) " >&6
15703 else
15704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15705 /* end confdefs.h. */
15706 int i;
15707 _ACEOF
15708 if ac_fn_c_try_compile "$LINENO"; then :
15709 xorg_cv_cc_flag_unknown_warning_option=yes
15710 else
15711 xorg_cv_cc_flag_unknown_warning_option=no
15712 fi
15713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15714 fi
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15716 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15717 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15718 CFLAGS="$xorg_testset_save_CFLAGS"
15719 fi
15720
15721 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15724 fi
15725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15727 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15728 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15729 $as_echo_n "(cached) " >&6
15730 else
15731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15732 /* end confdefs.h. */
15733 int i;
15734 _ACEOF
15735 if ac_fn_c_try_compile "$LINENO"; then :
15736 xorg_cv_cc_flag_unused_command_line_argument=yes
15737 else
15738 xorg_cv_cc_flag_unused_command_line_argument=no
15739 fi
15740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15741 fi
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15743 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15744 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15745 CFLAGS="$xorg_testset_save_CFLAGS"
15746 fi
15747
15748 found="no"
15749
15750 if test $found = "no" ; then
15751 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15753 fi
15754
15755 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15757 fi
15758
15759 CFLAGS="$CFLAGS -Winit-self"
15760
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15762 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15763 cacheid=xorg_cv_cc_flag__Winit_self
15764 if eval \${$cacheid+:} false; then :
15765 $as_echo_n "(cached) " >&6
15766 else
15767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15768 /* end confdefs.h. */
15769 int i;
15770 int
15771 main ()
15772 {
15773
15774 ;
15775 return 0;
15776 }
15777 _ACEOF
15778 if ac_fn_c_try_link "$LINENO"; then :
15779 eval $cacheid=yes
15780 else
15781 eval $cacheid=no
15782 fi
15783 rm -f core conftest.err conftest.$ac_objext \
15784 conftest$ac_exeext conftest.$ac_ext
15785 fi
15786
15787
15788 CFLAGS="$xorg_testset_save_CFLAGS"
15789
15790 eval supported=\$$cacheid
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15792 $as_echo "$supported" >&6; }
15793 if test "$supported" = "yes" ; then
15794 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15795 found="yes"
15796 fi
15797 fi
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813 xorg_testset_save_CFLAGS="$CFLAGS"
15814
15815 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15816 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15818 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15819 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15820 $as_echo_n "(cached) " >&6
15821 else
15822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15823 /* end confdefs.h. */
15824 int i;
15825 _ACEOF
15826 if ac_fn_c_try_compile "$LINENO"; then :
15827 xorg_cv_cc_flag_unknown_warning_option=yes
15828 else
15829 xorg_cv_cc_flag_unknown_warning_option=no
15830 fi
15831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15832 fi
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15834 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15835 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15836 CFLAGS="$xorg_testset_save_CFLAGS"
15837 fi
15838
15839 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15842 fi
15843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15845 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15846 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15847 $as_echo_n "(cached) " >&6
15848 else
15849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15850 /* end confdefs.h. */
15851 int i;
15852 _ACEOF
15853 if ac_fn_c_try_compile "$LINENO"; then :
15854 xorg_cv_cc_flag_unused_command_line_argument=yes
15855 else
15856 xorg_cv_cc_flag_unused_command_line_argument=no
15857 fi
15858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15859 fi
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15861 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15862 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15863 CFLAGS="$xorg_testset_save_CFLAGS"
15864 fi
15865
15866 found="no"
15867
15868 if test $found = "no" ; then
15869 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15870 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15871 fi
15872
15873 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15875 fi
15876
15877 CFLAGS="$CFLAGS -Wmain"
15878
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
15880 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
15881 cacheid=xorg_cv_cc_flag__Wmain
15882 if eval \${$cacheid+:} false; then :
15883 $as_echo_n "(cached) " >&6
15884 else
15885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15886 /* end confdefs.h. */
15887 int i;
15888 int
15889 main ()
15890 {
15891
15892 ;
15893 return 0;
15894 }
15895 _ACEOF
15896 if ac_fn_c_try_link "$LINENO"; then :
15897 eval $cacheid=yes
15898 else
15899 eval $cacheid=no
15900 fi
15901 rm -f core conftest.err conftest.$ac_objext \
15902 conftest$ac_exeext conftest.$ac_ext
15903 fi
15904
15905
15906 CFLAGS="$xorg_testset_save_CFLAGS"
15907
15908 eval supported=\$$cacheid
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15910 $as_echo "$supported" >&6; }
15911 if test "$supported" = "yes" ; then
15912 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
15913 found="yes"
15914 fi
15915 fi
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931 xorg_testset_save_CFLAGS="$CFLAGS"
15932
15933 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15936 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15937 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15938 $as_echo_n "(cached) " >&6
15939 else
15940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15941 /* end confdefs.h. */
15942 int i;
15943 _ACEOF
15944 if ac_fn_c_try_compile "$LINENO"; then :
15945 xorg_cv_cc_flag_unknown_warning_option=yes
15946 else
15947 xorg_cv_cc_flag_unknown_warning_option=no
15948 fi
15949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15950 fi
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15952 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15953 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15954 CFLAGS="$xorg_testset_save_CFLAGS"
15955 fi
15956
15957 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15960 fi
15961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15963 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15964 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15965 $as_echo_n "(cached) " >&6
15966 else
15967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15968 /* end confdefs.h. */
15969 int i;
15970 _ACEOF
15971 if ac_fn_c_try_compile "$LINENO"; then :
15972 xorg_cv_cc_flag_unused_command_line_argument=yes
15973 else
15974 xorg_cv_cc_flag_unused_command_line_argument=no
15975 fi
15976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15977 fi
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15979 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15980 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15981 CFLAGS="$xorg_testset_save_CFLAGS"
15982 fi
15983
15984 found="no"
15985
15986 if test $found = "no" ; then
15987 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15989 fi
15990
15991 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15993 fi
15994
15995 CFLAGS="$CFLAGS -Wmissing-braces"
15996
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
15998 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
15999 cacheid=xorg_cv_cc_flag__Wmissing_braces
16000 if eval \${$cacheid+:} false; then :
16001 $as_echo_n "(cached) " >&6
16002 else
16003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16004 /* end confdefs.h. */
16005 int i;
16006 int
16007 main ()
16008 {
16009
16010 ;
16011 return 0;
16012 }
16013 _ACEOF
16014 if ac_fn_c_try_link "$LINENO"; then :
16015 eval $cacheid=yes
16016 else
16017 eval $cacheid=no
16018 fi
16019 rm -f core conftest.err conftest.$ac_objext \
16020 conftest$ac_exeext conftest.$ac_ext
16021 fi
16022
16023
16024 CFLAGS="$xorg_testset_save_CFLAGS"
16025
16026 eval supported=\$$cacheid
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16028 $as_echo "$supported" >&6; }
16029 if test "$supported" = "yes" ; then
16030 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16031 found="yes"
16032 fi
16033 fi
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049 xorg_testset_save_CFLAGS="$CFLAGS"
16050
16051 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16052 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16054 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16055 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16056 $as_echo_n "(cached) " >&6
16057 else
16058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16059 /* end confdefs.h. */
16060 int i;
16061 _ACEOF
16062 if ac_fn_c_try_compile "$LINENO"; then :
16063 xorg_cv_cc_flag_unknown_warning_option=yes
16064 else
16065 xorg_cv_cc_flag_unknown_warning_option=no
16066 fi
16067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16068 fi
16069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16070 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16071 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16072 CFLAGS="$xorg_testset_save_CFLAGS"
16073 fi
16074
16075 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16077 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16078 fi
16079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16081 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16082 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16083 $as_echo_n "(cached) " >&6
16084 else
16085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16086 /* end confdefs.h. */
16087 int i;
16088 _ACEOF
16089 if ac_fn_c_try_compile "$LINENO"; then :
16090 xorg_cv_cc_flag_unused_command_line_argument=yes
16091 else
16092 xorg_cv_cc_flag_unused_command_line_argument=no
16093 fi
16094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16095 fi
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16097 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16098 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16099 CFLAGS="$xorg_testset_save_CFLAGS"
16100 fi
16101
16102 found="no"
16103
16104 if test $found = "no" ; then
16105 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16107 fi
16108
16109 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16111 fi
16112
16113 CFLAGS="$CFLAGS -Wsequence-point"
16114
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16116 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16117 cacheid=xorg_cv_cc_flag__Wsequence_point
16118 if eval \${$cacheid+:} false; then :
16119 $as_echo_n "(cached) " >&6
16120 else
16121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16122 /* end confdefs.h. */
16123 int i;
16124 int
16125 main ()
16126 {
16127
16128 ;
16129 return 0;
16130 }
16131 _ACEOF
16132 if ac_fn_c_try_link "$LINENO"; then :
16133 eval $cacheid=yes
16134 else
16135 eval $cacheid=no
16136 fi
16137 rm -f core conftest.err conftest.$ac_objext \
16138 conftest$ac_exeext conftest.$ac_ext
16139 fi
16140
16141
16142 CFLAGS="$xorg_testset_save_CFLAGS"
16143
16144 eval supported=\$$cacheid
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16146 $as_echo "$supported" >&6; }
16147 if test "$supported" = "yes" ; then
16148 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16149 found="yes"
16150 fi
16151 fi
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167 xorg_testset_save_CFLAGS="$CFLAGS"
16168
16169 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16172 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16173 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16174 $as_echo_n "(cached) " >&6
16175 else
16176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16177 /* end confdefs.h. */
16178 int i;
16179 _ACEOF
16180 if ac_fn_c_try_compile "$LINENO"; then :
16181 xorg_cv_cc_flag_unknown_warning_option=yes
16182 else
16183 xorg_cv_cc_flag_unknown_warning_option=no
16184 fi
16185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16186 fi
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16188 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16189 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16190 CFLAGS="$xorg_testset_save_CFLAGS"
16191 fi
16192
16193 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16196 fi
16197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16199 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16200 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16201 $as_echo_n "(cached) " >&6
16202 else
16203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16204 /* end confdefs.h. */
16205 int i;
16206 _ACEOF
16207 if ac_fn_c_try_compile "$LINENO"; then :
16208 xorg_cv_cc_flag_unused_command_line_argument=yes
16209 else
16210 xorg_cv_cc_flag_unused_command_line_argument=no
16211 fi
16212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16213 fi
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16215 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16216 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16217 CFLAGS="$xorg_testset_save_CFLAGS"
16218 fi
16219
16220 found="no"
16221
16222 if test $found = "no" ; then
16223 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16225 fi
16226
16227 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16229 fi
16230
16231 CFLAGS="$CFLAGS -Wreturn-type"
16232
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16234 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16235 cacheid=xorg_cv_cc_flag__Wreturn_type
16236 if eval \${$cacheid+:} false; then :
16237 $as_echo_n "(cached) " >&6
16238 else
16239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16240 /* end confdefs.h. */
16241 int i;
16242 int
16243 main ()
16244 {
16245
16246 ;
16247 return 0;
16248 }
16249 _ACEOF
16250 if ac_fn_c_try_link "$LINENO"; then :
16251 eval $cacheid=yes
16252 else
16253 eval $cacheid=no
16254 fi
16255 rm -f core conftest.err conftest.$ac_objext \
16256 conftest$ac_exeext conftest.$ac_ext
16257 fi
16258
16259
16260 CFLAGS="$xorg_testset_save_CFLAGS"
16261
16262 eval supported=\$$cacheid
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16264 $as_echo "$supported" >&6; }
16265 if test "$supported" = "yes" ; then
16266 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16267 found="yes"
16268 fi
16269 fi
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285 xorg_testset_save_CFLAGS="$CFLAGS"
16286
16287 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16290 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16291 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16292 $as_echo_n "(cached) " >&6
16293 else
16294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16295 /* end confdefs.h. */
16296 int i;
16297 _ACEOF
16298 if ac_fn_c_try_compile "$LINENO"; then :
16299 xorg_cv_cc_flag_unknown_warning_option=yes
16300 else
16301 xorg_cv_cc_flag_unknown_warning_option=no
16302 fi
16303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16304 fi
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16306 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16307 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16308 CFLAGS="$xorg_testset_save_CFLAGS"
16309 fi
16310
16311 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16313 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16314 fi
16315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16317 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16318 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16319 $as_echo_n "(cached) " >&6
16320 else
16321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16322 /* end confdefs.h. */
16323 int i;
16324 _ACEOF
16325 if ac_fn_c_try_compile "$LINENO"; then :
16326 xorg_cv_cc_flag_unused_command_line_argument=yes
16327 else
16328 xorg_cv_cc_flag_unused_command_line_argument=no
16329 fi
16330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16331 fi
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16333 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16334 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16335 CFLAGS="$xorg_testset_save_CFLAGS"
16336 fi
16337
16338 found="no"
16339
16340 if test $found = "no" ; then
16341 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16343 fi
16344
16345 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16347 fi
16348
16349 CFLAGS="$CFLAGS -Wtrigraphs"
16350
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16352 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16353 cacheid=xorg_cv_cc_flag__Wtrigraphs
16354 if eval \${$cacheid+:} false; then :
16355 $as_echo_n "(cached) " >&6
16356 else
16357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16358 /* end confdefs.h. */
16359 int i;
16360 int
16361 main ()
16362 {
16363
16364 ;
16365 return 0;
16366 }
16367 _ACEOF
16368 if ac_fn_c_try_link "$LINENO"; then :
16369 eval $cacheid=yes
16370 else
16371 eval $cacheid=no
16372 fi
16373 rm -f core conftest.err conftest.$ac_objext \
16374 conftest$ac_exeext conftest.$ac_ext
16375 fi
16376
16377
16378 CFLAGS="$xorg_testset_save_CFLAGS"
16379
16380 eval supported=\$$cacheid
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16382 $as_echo "$supported" >&6; }
16383 if test "$supported" = "yes" ; then
16384 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16385 found="yes"
16386 fi
16387 fi
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403 xorg_testset_save_CFLAGS="$CFLAGS"
16404
16405 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16406 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16408 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16409 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16410 $as_echo_n "(cached) " >&6
16411 else
16412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16413 /* end confdefs.h. */
16414 int i;
16415 _ACEOF
16416 if ac_fn_c_try_compile "$LINENO"; then :
16417 xorg_cv_cc_flag_unknown_warning_option=yes
16418 else
16419 xorg_cv_cc_flag_unknown_warning_option=no
16420 fi
16421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16422 fi
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16424 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16425 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16426 CFLAGS="$xorg_testset_save_CFLAGS"
16427 fi
16428
16429 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16431 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16432 fi
16433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16435 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16436 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16437 $as_echo_n "(cached) " >&6
16438 else
16439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16440 /* end confdefs.h. */
16441 int i;
16442 _ACEOF
16443 if ac_fn_c_try_compile "$LINENO"; then :
16444 xorg_cv_cc_flag_unused_command_line_argument=yes
16445 else
16446 xorg_cv_cc_flag_unused_command_line_argument=no
16447 fi
16448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16449 fi
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16451 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16452 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16453 CFLAGS="$xorg_testset_save_CFLAGS"
16454 fi
16455
16456 found="no"
16457
16458 if test $found = "no" ; then
16459 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16460 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16461 fi
16462
16463 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16465 fi
16466
16467 CFLAGS="$CFLAGS -Warray-bounds"
16468
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16470 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16471 cacheid=xorg_cv_cc_flag__Warray_bounds
16472 if eval \${$cacheid+:} false; then :
16473 $as_echo_n "(cached) " >&6
16474 else
16475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16476 /* end confdefs.h. */
16477 int i;
16478 int
16479 main ()
16480 {
16481
16482 ;
16483 return 0;
16484 }
16485 _ACEOF
16486 if ac_fn_c_try_link "$LINENO"; then :
16487 eval $cacheid=yes
16488 else
16489 eval $cacheid=no
16490 fi
16491 rm -f core conftest.err conftest.$ac_objext \
16492 conftest$ac_exeext conftest.$ac_ext
16493 fi
16494
16495
16496 CFLAGS="$xorg_testset_save_CFLAGS"
16497
16498 eval supported=\$$cacheid
16499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16500 $as_echo "$supported" >&6; }
16501 if test "$supported" = "yes" ; then
16502 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16503 found="yes"
16504 fi
16505 fi
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521 xorg_testset_save_CFLAGS="$CFLAGS"
16522
16523 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16524 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16526 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16527 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16528 $as_echo_n "(cached) " >&6
16529 else
16530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16531 /* end confdefs.h. */
16532 int i;
16533 _ACEOF
16534 if ac_fn_c_try_compile "$LINENO"; then :
16535 xorg_cv_cc_flag_unknown_warning_option=yes
16536 else
16537 xorg_cv_cc_flag_unknown_warning_option=no
16538 fi
16539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16540 fi
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16542 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16543 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16544 CFLAGS="$xorg_testset_save_CFLAGS"
16545 fi
16546
16547 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16548 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16549 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16550 fi
16551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16553 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16554 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16555 $as_echo_n "(cached) " >&6
16556 else
16557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16558 /* end confdefs.h. */
16559 int i;
16560 _ACEOF
16561 if ac_fn_c_try_compile "$LINENO"; then :
16562 xorg_cv_cc_flag_unused_command_line_argument=yes
16563 else
16564 xorg_cv_cc_flag_unused_command_line_argument=no
16565 fi
16566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16567 fi
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16569 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16570 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16571 CFLAGS="$xorg_testset_save_CFLAGS"
16572 fi
16573
16574 found="no"
16575
16576 if test $found = "no" ; then
16577 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16578 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16579 fi
16580
16581 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16583 fi
16584
16585 CFLAGS="$CFLAGS -Wwrite-strings"
16586
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16588 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16589 cacheid=xorg_cv_cc_flag__Wwrite_strings
16590 if eval \${$cacheid+:} false; then :
16591 $as_echo_n "(cached) " >&6
16592 else
16593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16594 /* end confdefs.h. */
16595 int i;
16596 int
16597 main ()
16598 {
16599
16600 ;
16601 return 0;
16602 }
16603 _ACEOF
16604 if ac_fn_c_try_link "$LINENO"; then :
16605 eval $cacheid=yes
16606 else
16607 eval $cacheid=no
16608 fi
16609 rm -f core conftest.err conftest.$ac_objext \
16610 conftest$ac_exeext conftest.$ac_ext
16611 fi
16612
16613
16614 CFLAGS="$xorg_testset_save_CFLAGS"
16615
16616 eval supported=\$$cacheid
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16618 $as_echo "$supported" >&6; }
16619 if test "$supported" = "yes" ; then
16620 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16621 found="yes"
16622 fi
16623 fi
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639 xorg_testset_save_CFLAGS="$CFLAGS"
16640
16641 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16642 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16644 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16645 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16646 $as_echo_n "(cached) " >&6
16647 else
16648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16649 /* end confdefs.h. */
16650 int i;
16651 _ACEOF
16652 if ac_fn_c_try_compile "$LINENO"; then :
16653 xorg_cv_cc_flag_unknown_warning_option=yes
16654 else
16655 xorg_cv_cc_flag_unknown_warning_option=no
16656 fi
16657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16658 fi
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16660 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16661 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16662 CFLAGS="$xorg_testset_save_CFLAGS"
16663 fi
16664
16665 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16666 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16667 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16668 fi
16669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16671 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16672 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16673 $as_echo_n "(cached) " >&6
16674 else
16675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16676 /* end confdefs.h. */
16677 int i;
16678 _ACEOF
16679 if ac_fn_c_try_compile "$LINENO"; then :
16680 xorg_cv_cc_flag_unused_command_line_argument=yes
16681 else
16682 xorg_cv_cc_flag_unused_command_line_argument=no
16683 fi
16684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16685 fi
16686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16687 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16688 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16689 CFLAGS="$xorg_testset_save_CFLAGS"
16690 fi
16691
16692 found="no"
16693
16694 if test $found = "no" ; then
16695 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16696 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16697 fi
16698
16699 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16701 fi
16702
16703 CFLAGS="$CFLAGS -Waddress"
16704
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16706 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
16707 cacheid=xorg_cv_cc_flag__Waddress
16708 if eval \${$cacheid+:} false; then :
16709 $as_echo_n "(cached) " >&6
16710 else
16711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16712 /* end confdefs.h. */
16713 int i;
16714 int
16715 main ()
16716 {
16717
16718 ;
16719 return 0;
16720 }
16721 _ACEOF
16722 if ac_fn_c_try_link "$LINENO"; then :
16723 eval $cacheid=yes
16724 else
16725 eval $cacheid=no
16726 fi
16727 rm -f core conftest.err conftest.$ac_objext \
16728 conftest$ac_exeext conftest.$ac_ext
16729 fi
16730
16731
16732 CFLAGS="$xorg_testset_save_CFLAGS"
16733
16734 eval supported=\$$cacheid
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16736 $as_echo "$supported" >&6; }
16737 if test "$supported" = "yes" ; then
16738 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16739 found="yes"
16740 fi
16741 fi
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757 xorg_testset_save_CFLAGS="$CFLAGS"
16758
16759 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16760 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16762 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16763 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16764 $as_echo_n "(cached) " >&6
16765 else
16766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16767 /* end confdefs.h. */
16768 int i;
16769 _ACEOF
16770 if ac_fn_c_try_compile "$LINENO"; then :
16771 xorg_cv_cc_flag_unknown_warning_option=yes
16772 else
16773 xorg_cv_cc_flag_unknown_warning_option=no
16774 fi
16775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16776 fi
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16778 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16779 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16780 CFLAGS="$xorg_testset_save_CFLAGS"
16781 fi
16782
16783 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16785 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16786 fi
16787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16789 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16790 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16791 $as_echo_n "(cached) " >&6
16792 else
16793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16794 /* end confdefs.h. */
16795 int i;
16796 _ACEOF
16797 if ac_fn_c_try_compile "$LINENO"; then :
16798 xorg_cv_cc_flag_unused_command_line_argument=yes
16799 else
16800 xorg_cv_cc_flag_unused_command_line_argument=no
16801 fi
16802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16803 fi
16804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16805 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16806 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16807 CFLAGS="$xorg_testset_save_CFLAGS"
16808 fi
16809
16810 found="no"
16811
16812 if test $found = "no" ; then
16813 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16814 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16815 fi
16816
16817 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16818 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16819 fi
16820
16821 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
16822
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
16824 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
16825 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
16826 if eval \${$cacheid+:} false; then :
16827 $as_echo_n "(cached) " >&6
16828 else
16829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16830 /* end confdefs.h. */
16831 int i;
16832 int
16833 main ()
16834 {
16835
16836 ;
16837 return 0;
16838 }
16839 _ACEOF
16840 if ac_fn_c_try_link "$LINENO"; then :
16841 eval $cacheid=yes
16842 else
16843 eval $cacheid=no
16844 fi
16845 rm -f core conftest.err conftest.$ac_objext \
16846 conftest$ac_exeext conftest.$ac_ext
16847 fi
16848
16849
16850 CFLAGS="$xorg_testset_save_CFLAGS"
16851
16852 eval supported=\$$cacheid
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16854 $as_echo "$supported" >&6; }
16855 if test "$supported" = "yes" ; then
16856 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
16857 found="yes"
16858 fi
16859 fi
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875 xorg_testset_save_CFLAGS="$CFLAGS"
16876
16877 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16878 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16880 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16881 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16882 $as_echo_n "(cached) " >&6
16883 else
16884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16885 /* end confdefs.h. */
16886 int i;
16887 _ACEOF
16888 if ac_fn_c_try_compile "$LINENO"; then :
16889 xorg_cv_cc_flag_unknown_warning_option=yes
16890 else
16891 xorg_cv_cc_flag_unknown_warning_option=no
16892 fi
16893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16894 fi
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16896 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16897 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16898 CFLAGS="$xorg_testset_save_CFLAGS"
16899 fi
16900
16901 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16903 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16904 fi
16905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16907 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16908 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16909 $as_echo_n "(cached) " >&6
16910 else
16911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16912 /* end confdefs.h. */
16913 int i;
16914 _ACEOF
16915 if ac_fn_c_try_compile "$LINENO"; then :
16916 xorg_cv_cc_flag_unused_command_line_argument=yes
16917 else
16918 xorg_cv_cc_flag_unused_command_line_argument=no
16919 fi
16920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16921 fi
16922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16923 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16924 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16925 CFLAGS="$xorg_testset_save_CFLAGS"
16926 fi
16927
16928 found="no"
16929
16930 if test $found = "no" ; then
16931 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16932 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16933 fi
16934
16935 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16937 fi
16938
16939 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
16940
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
16942 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
16943 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
16944 if eval \${$cacheid+:} false; then :
16945 $as_echo_n "(cached) " >&6
16946 else
16947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16948 /* end confdefs.h. */
16949 int i;
16950 int
16951 main ()
16952 {
16953
16954 ;
16955 return 0;
16956 }
16957 _ACEOF
16958 if ac_fn_c_try_link "$LINENO"; then :
16959 eval $cacheid=yes
16960 else
16961 eval $cacheid=no
16962 fi
16963 rm -f core conftest.err conftest.$ac_objext \
16964 conftest$ac_exeext conftest.$ac_ext
16965 fi
16966
16967
16968 CFLAGS="$xorg_testset_save_CFLAGS"
16969
16970 eval supported=\$$cacheid
16971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16972 $as_echo "$supported" >&6; }
16973 if test "$supported" = "yes" ; then
16974 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
16975 found="yes"
16976 fi
16977 fi
16978
16979
16980 fi
16981
16982
16983
16984
16985
16986
16987
16988 CWARNFLAGS="$BASE_CFLAGS"
16989 if test "x$GCC" = xyes ; then
16990 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
16991 fi
16992
16993
16994
16995
16996
16997
16998
16999
17000 # Check whether --enable-strict-compilation was given.
17001 if test "${enable_strict_compilation+set}" = set; then :
17002 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17003 else
17004 STRICT_COMPILE=no
17005 fi
17006
17007
17008
17009
17010
17011
17012 STRICT_CFLAGS=""
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026 xorg_testset_save_CFLAGS="$CFLAGS"
17027
17028 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17029 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17031 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17032 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17033 $as_echo_n "(cached) " >&6
17034 else
17035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17036 /* end confdefs.h. */
17037 int i;
17038 _ACEOF
17039 if ac_fn_c_try_compile "$LINENO"; then :
17040 xorg_cv_cc_flag_unknown_warning_option=yes
17041 else
17042 xorg_cv_cc_flag_unknown_warning_option=no
17043 fi
17044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17045 fi
17046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17047 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17048 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17049 CFLAGS="$xorg_testset_save_CFLAGS"
17050 fi
17051
17052 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17053 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17054 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17055 fi
17056 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17058 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17059 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17060 $as_echo_n "(cached) " >&6
17061 else
17062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17063 /* end confdefs.h. */
17064 int i;
17065 _ACEOF
17066 if ac_fn_c_try_compile "$LINENO"; then :
17067 xorg_cv_cc_flag_unused_command_line_argument=yes
17068 else
17069 xorg_cv_cc_flag_unused_command_line_argument=no
17070 fi
17071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17072 fi
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17074 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17075 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17076 CFLAGS="$xorg_testset_save_CFLAGS"
17077 fi
17078
17079 found="no"
17080
17081 if test $found = "no" ; then
17082 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17084 fi
17085
17086 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17088 fi
17089
17090 CFLAGS="$CFLAGS -pedantic"
17091
17092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17093 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17094 cacheid=xorg_cv_cc_flag__pedantic
17095 if eval \${$cacheid+:} false; then :
17096 $as_echo_n "(cached) " >&6
17097 else
17098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17099 /* end confdefs.h. */
17100 int i;
17101 int
17102 main ()
17103 {
17104
17105 ;
17106 return 0;
17107 }
17108 _ACEOF
17109 if ac_fn_c_try_link "$LINENO"; then :
17110 eval $cacheid=yes
17111 else
17112 eval $cacheid=no
17113 fi
17114 rm -f core conftest.err conftest.$ac_objext \
17115 conftest$ac_exeext conftest.$ac_ext
17116 fi
17117
17118
17119 CFLAGS="$xorg_testset_save_CFLAGS"
17120
17121 eval supported=\$$cacheid
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17123 $as_echo "$supported" >&6; }
17124 if test "$supported" = "yes" ; then
17125 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17126 found="yes"
17127 fi
17128 fi
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144 xorg_testset_save_CFLAGS="$CFLAGS"
17145
17146 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17147 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17149 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17150 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17151 $as_echo_n "(cached) " >&6
17152 else
17153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17154 /* end confdefs.h. */
17155 int i;
17156 _ACEOF
17157 if ac_fn_c_try_compile "$LINENO"; then :
17158 xorg_cv_cc_flag_unknown_warning_option=yes
17159 else
17160 xorg_cv_cc_flag_unknown_warning_option=no
17161 fi
17162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17163 fi
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17165 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17166 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17167 CFLAGS="$xorg_testset_save_CFLAGS"
17168 fi
17169
17170 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17171 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17172 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17173 fi
17174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17176 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17177 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17178 $as_echo_n "(cached) " >&6
17179 else
17180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17181 /* end confdefs.h. */
17182 int i;
17183 _ACEOF
17184 if ac_fn_c_try_compile "$LINENO"; then :
17185 xorg_cv_cc_flag_unused_command_line_argument=yes
17186 else
17187 xorg_cv_cc_flag_unused_command_line_argument=no
17188 fi
17189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17190 fi
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17192 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17193 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17194 CFLAGS="$xorg_testset_save_CFLAGS"
17195 fi
17196
17197 found="no"
17198
17199 if test $found = "no" ; then
17200 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17201 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17202 fi
17203
17204 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17206 fi
17207
17208 CFLAGS="$CFLAGS -Werror"
17209
17210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17211 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17212 cacheid=xorg_cv_cc_flag__Werror
17213 if eval \${$cacheid+:} false; then :
17214 $as_echo_n "(cached) " >&6
17215 else
17216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17217 /* end confdefs.h. */
17218 int i;
17219 int
17220 main ()
17221 {
17222
17223 ;
17224 return 0;
17225 }
17226 _ACEOF
17227 if ac_fn_c_try_link "$LINENO"; then :
17228 eval $cacheid=yes
17229 else
17230 eval $cacheid=no
17231 fi
17232 rm -f core conftest.err conftest.$ac_objext \
17233 conftest$ac_exeext conftest.$ac_ext
17234 fi
17235
17236
17237 CFLAGS="$xorg_testset_save_CFLAGS"
17238
17239 eval supported=\$$cacheid
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17241 $as_echo "$supported" >&6; }
17242 if test "$supported" = "yes" ; then
17243 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17244 found="yes"
17245 fi
17246 fi
17247
17248 if test $found = "no" ; then
17249 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17250 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17251 fi
17252
17253 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17255 fi
17256
17257 CFLAGS="$CFLAGS -errwarn"
17258
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17260 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17261 cacheid=xorg_cv_cc_flag__errwarn
17262 if eval \${$cacheid+:} false; then :
17263 $as_echo_n "(cached) " >&6
17264 else
17265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17266 /* end confdefs.h. */
17267 int i;
17268 int
17269 main ()
17270 {
17271
17272 ;
17273 return 0;
17274 }
17275 _ACEOF
17276 if ac_fn_c_try_link "$LINENO"; then :
17277 eval $cacheid=yes
17278 else
17279 eval $cacheid=no
17280 fi
17281 rm -f core conftest.err conftest.$ac_objext \
17282 conftest$ac_exeext conftest.$ac_ext
17283 fi
17284
17285
17286 CFLAGS="$xorg_testset_save_CFLAGS"
17287
17288 eval supported=\$$cacheid
17289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17290 $as_echo "$supported" >&6; }
17291 if test "$supported" = "yes" ; then
17292 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17293 found="yes"
17294 fi
17295 fi
17296
17297
17298
17299 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17300 # activate it with -Werror, so we add it here explicitly.
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314 xorg_testset_save_CFLAGS="$CFLAGS"
17315
17316 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17319 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17320 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17321 $as_echo_n "(cached) " >&6
17322 else
17323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17324 /* end confdefs.h. */
17325 int i;
17326 _ACEOF
17327 if ac_fn_c_try_compile "$LINENO"; then :
17328 xorg_cv_cc_flag_unknown_warning_option=yes
17329 else
17330 xorg_cv_cc_flag_unknown_warning_option=no
17331 fi
17332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17333 fi
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17335 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17336 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17337 CFLAGS="$xorg_testset_save_CFLAGS"
17338 fi
17339
17340 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17343 fi
17344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17346 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17347 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17348 $as_echo_n "(cached) " >&6
17349 else
17350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17351 /* end confdefs.h. */
17352 int i;
17353 _ACEOF
17354 if ac_fn_c_try_compile "$LINENO"; then :
17355 xorg_cv_cc_flag_unused_command_line_argument=yes
17356 else
17357 xorg_cv_cc_flag_unused_command_line_argument=no
17358 fi
17359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17360 fi
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17362 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17363 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17364 CFLAGS="$xorg_testset_save_CFLAGS"
17365 fi
17366
17367 found="no"
17368
17369 if test $found = "no" ; then
17370 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17372 fi
17373
17374 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17376 fi
17377
17378 CFLAGS="$CFLAGS -Werror=attributes"
17379
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17381 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17382 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
17383 if eval \${$cacheid+:} false; then :
17384 $as_echo_n "(cached) " >&6
17385 else
17386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17387 /* end confdefs.h. */
17388 int i;
17389 int
17390 main ()
17391 {
17392
17393 ;
17394 return 0;
17395 }
17396 _ACEOF
17397 if ac_fn_c_try_link "$LINENO"; then :
17398 eval $cacheid=yes
17399 else
17400 eval $cacheid=no
17401 fi
17402 rm -f core conftest.err conftest.$ac_objext \
17403 conftest$ac_exeext conftest.$ac_ext
17404 fi
17405
17406
17407 CFLAGS="$xorg_testset_save_CFLAGS"
17408
17409 eval supported=\$$cacheid
17410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17411 $as_echo "$supported" >&6; }
17412 if test "$supported" = "yes" ; then
17413 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17414 found="yes"
17415 fi
17416 fi
17417
17418
17419
17420 if test "x$STRICT_COMPILE" = "xyes"; then
17421 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17422 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17423 fi
17424
17425
17426
17427
17428
17429
17430 cat >>confdefs.h <<_ACEOF
17431 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17432 _ACEOF
17433
17434 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17435 if test "x$PVM" = "x"; then
17436 PVM="0"
17437 fi
17438
17439 cat >>confdefs.h <<_ACEOF
17440 #define PACKAGE_VERSION_MINOR $PVM
17441 _ACEOF
17442
17443 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17444 if test "x$PVP" = "x"; then
17445 PVP="0"
17446 fi
17447
17448 cat >>confdefs.h <<_ACEOF
17449 #define PACKAGE_VERSION_PATCHLEVEL $PVP
17450 _ACEOF
17451
17452
17453
17454 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17455 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17456 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17457 echo 'git directory not found: installing possibly empty changelog.' >&2)"
17458
17459
17460
17461
17462 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17463 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17464 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17465 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17466 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17467
17468
17469
17470
17471
17472
17473 if test x$APP_MAN_SUFFIX = x ; then
17474 APP_MAN_SUFFIX=1
17475 fi
17476 if test x$APP_MAN_DIR = x ; then
17477 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17478 fi
17479
17480 if test x$LIB_MAN_SUFFIX = x ; then
17481 LIB_MAN_SUFFIX=3
17482 fi
17483 if test x$LIB_MAN_DIR = x ; then
17484 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17485 fi
17486
17487 if test x$FILE_MAN_SUFFIX = x ; then
17488 case $host_os in
17489 solaris*) FILE_MAN_SUFFIX=4 ;;
17490 *) FILE_MAN_SUFFIX=5 ;;
17491 esac
17492 fi
17493 if test x$FILE_MAN_DIR = x ; then
17494 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17495 fi
17496
17497 if test x$MISC_MAN_SUFFIX = x ; then
17498 case $host_os in
17499 solaris*) MISC_MAN_SUFFIX=5 ;;
17500 *) MISC_MAN_SUFFIX=7 ;;
17501 esac
17502 fi
17503 if test x$MISC_MAN_DIR = x ; then
17504 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17505 fi
17506
17507 if test x$DRIVER_MAN_SUFFIX = x ; then
17508 case $host_os in
17509 solaris*) DRIVER_MAN_SUFFIX=7 ;;
17510 *) DRIVER_MAN_SUFFIX=4 ;;
17511 esac
17512 fi
17513 if test x$DRIVER_MAN_DIR = x ; then
17514 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17515 fi
17516
17517 if test x$ADMIN_MAN_SUFFIX = x ; then
17518 case $host_os in
17519 solaris*) ADMIN_MAN_SUFFIX=1m ;;
17520 *) ADMIN_MAN_SUFFIX=8 ;;
17521 esac
17522 fi
17523 if test x$ADMIN_MAN_DIR = x ; then
17524 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17525 fi
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541 XORG_MAN_PAGE="X Version 11"
17542
17543 MAN_SUBSTS="\
17544 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17545 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17546 -e 's|__xservername__|Xorg|g' \
17547 -e 's|__xconfigfile__|xorg.conf|g' \
17548 -e 's|__projectroot__|\$(prefix)|g' \
17549 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
17550 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17551 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17552 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17553 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17554 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17555 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17556
17557
17558
17559 # Check whether --enable-silent-rules was given.
17560 if test "${enable_silent_rules+set}" = set; then :
17561 enableval=$enable_silent_rules;
17562 fi
17563
17564 case $enable_silent_rules in # (((
17565 yes) AM_DEFAULT_VERBOSITY=0;;
17566 no) AM_DEFAULT_VERBOSITY=1;;
17567 *) AM_DEFAULT_VERBOSITY=0;;
17568 esac
17569 am_make=${MAKE-make}
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
17571 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
17572 if ${am_cv_make_support_nested_variables+:} false; then :
17573 $as_echo_n "(cached) " >&6
17574 else
17575 if $as_echo 'TRUE=$(BAR$(V))
17576 BAR0=false
17577 BAR1=true
17578 V=1
17579 am__doit:
17580 @$(TRUE)
17581 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
17582 am_cv_make_support_nested_variables=yes
17583 else
17584 am_cv_make_support_nested_variables=no
17585 fi
17586 fi
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
17588 $as_echo "$am_cv_make_support_nested_variables" >&6; }
17589 if test $am_cv_make_support_nested_variables = yes; then
17590 AM_V='$(V)'
17591 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17592 else
17593 AM_V=$AM_DEFAULT_VERBOSITY
17594 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17595 fi
17596 AM_BACKSLASH='\'
17597
17598
17599
17600 # Check whether --enable-malloc0returnsnull was given.
17601 if test "${enable_malloc0returnsnull+set}" = set; then :
17602 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
17603 else
17604 MALLOC_ZERO_RETURNS_NULL=auto
17605 fi
17606
17607
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
17609 $as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
17610 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
17611 if test "$cross_compiling" = yes; then :
17612 MALLOC_ZERO_RETURNS_NULL=yes
17613 else
17614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17615 /* end confdefs.h. */
17616
17617 #include <stdlib.h>
17618
17619 int
17620 main ()
17621 {
17622
17623 char *m0, *r0, *c0, *p;
17624 m0 = malloc(0);
17625 p = malloc(10);
17626 r0 = realloc(p,0);
17627 c0 = calloc(0,10);
17628 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
17629
17630 ;
17631 return 0;
17632 }
17633 _ACEOF
17634 if ac_fn_c_try_run "$LINENO"; then :
17635 MALLOC_ZERO_RETURNS_NULL=yes
17636 else
17637 MALLOC_ZERO_RETURNS_NULL=no
17638 fi
17639 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17640 conftest.$ac_objext conftest.beam conftest.$ac_ext
17641 fi
17642
17643 fi
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
17645 $as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
17646
17647 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
17648 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
17649 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
17650 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
17651 else
17652 MALLOC_ZERO_CFLAGS=""
17653 XMALLOC_ZERO_CFLAGS=""
17654 XTMALLOC_ZERO_CFLAGS=""
17655 fi
17656
17657
17658
17659
17660
17661
17662 # Obtain compiler/linker options for depedencies
17663
17664 pkg_failed=no
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XV" >&5
17666 $as_echo_n "checking for XV... " >&6; }
17667
17668 if test -n "$XV_CFLAGS"; then
17669 pkg_cv_XV_CFLAGS="$XV_CFLAGS"
17670 elif test -n "$PKG_CONFIG"; then
17671 if test -n "$PKG_CONFIG" && \
17672 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto videoproto\""; } >&5
17673 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto videoproto") 2>&5
17674 ac_status=$?
17675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17676 test $ac_status = 0; }; then
17677 pkg_cv_XV_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xextproto videoproto" 2>/dev/null`
17678 else
17679 pkg_failed=yes
17680 fi
17681 else
17682 pkg_failed=untried
17683 fi
17684 if test -n "$XV_LIBS"; then
17685 pkg_cv_XV_LIBS="$XV_LIBS"
17686 elif test -n "$PKG_CONFIG"; then
17687 if test -n "$PKG_CONFIG" && \
17688 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto videoproto\""; } >&5
17689 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto videoproto") 2>&5
17690 ac_status=$?
17691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17692 test $ac_status = 0; }; then
17693 pkg_cv_XV_LIBS=`$PKG_CONFIG --libs "x11 xext xextproto videoproto" 2>/dev/null`
17694 else
17695 pkg_failed=yes
17696 fi
17697 else
17698 pkg_failed=untried
17699 fi
17700
17701
17702
17703 if test $pkg_failed = yes; then
17704
17705 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17706 _pkg_short_errors_supported=yes
17707 else
17708 _pkg_short_errors_supported=no
17709 fi
17710 if test $_pkg_short_errors_supported = yes; then
17711 XV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext xextproto videoproto" 2>&1`
17712 else
17713 XV_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext xextproto videoproto" 2>&1`
17714 fi
17715 # Put the nasty error message in config.log where it belongs
17716 echo "$XV_PKG_ERRORS" >&5
17717
17718 as_fn_error $? "Package requirements (x11 xext xextproto videoproto) were not met:
17719
17720 $XV_PKG_ERRORS
17721
17722 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17723 installed software in a non-standard prefix.
17724
17725 Alternatively, you may set the environment variables XV_CFLAGS
17726 and XV_LIBS to avoid the need to call pkg-config.
17727 See the pkg-config man page for more details.
17728 " "$LINENO" 5
17729 elif test $pkg_failed = untried; then
17730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17732 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17733 is in your PATH or set the PKG_CONFIG environment variable to the full
17734 path to pkg-config.
17735
17736 Alternatively, you may set the environment variables XV_CFLAGS
17737 and XV_LIBS to avoid the need to call pkg-config.
17738 See the pkg-config man page for more details.
17739
17740 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17741 See \`config.log' for more details" "$LINENO" 5; }
17742 else
17743 XV_CFLAGS=$pkg_cv_XV_CFLAGS
17744 XV_LIBS=$pkg_cv_XV_LIBS
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17746 $as_echo "yes" >&6; }
17747 :
17748 fi
17749
17750 # Check for _XEatDataWords function that may be patched into older Xlib release
17751 SAVE_LIBS="$LIBS"
17752 LIBS="$XV_LIBS"
17753 for ac_func in _XEatDataWords
17754 do :
17755 ac_fn_c_check_func "$LINENO" "_XEatDataWords" "ac_cv_func__XEatDataWords"
17756 if test "x$ac_cv_func__XEatDataWords" = xyes; then :
17757 cat >>confdefs.h <<_ACEOF
17758 #define HAVE__XEATDATAWORDS 1
17759 _ACEOF
17760
17761 fi
17762 done
17763
17764 LIBS="$SAVE_LIBS"
17765
17766 # Allow checking code with lint, sparse, etc.
17767
17768
17769
17770
17771
17772 # Check whether --with-lint was given.
17773 if test "${with_lint+set}" = set; then :
17774 withval=$with_lint; use_lint=$withval
17775 else
17776 use_lint=no
17777 fi
17778
17779
17780 # Obtain platform specific info like program name and options
17781 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
17782 case $host_os in
17783 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
17784 lint_name=splint
17785 lint_options="-badflag"
17786 ;;
17787 *freebsd* | *netbsd*)
17788 lint_name=lint
17789 lint_options="-u -b"
17790 ;;
17791 *solaris*)
17792 lint_name=lint
17793 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
17794 ;;
17795 esac
17796
17797 # Test for the presence of the program (either guessed by the code or spelled out by the user)
17798 if test "x$use_lint" = x"yes" ; then
17799 # Extract the first word of "$lint_name", so it can be a program name with args.
17800 set dummy $lint_name; ac_word=$2
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17802 $as_echo_n "checking for $ac_word... " >&6; }
17803 if ${ac_cv_path_LINT+:} false; then :
17804 $as_echo_n "(cached) " >&6
17805 else
17806 case $LINT in
17807 [\\/]* | ?:[\\/]*)
17808 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
17809 ;;
17810 *)
17811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17812 for as_dir in $PATH
17813 do
17814 IFS=$as_save_IFS
17815 test -z "$as_dir" && as_dir=.
17816 for ac_exec_ext in '' $ac_executable_extensions; do
17817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17818 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
17819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17820 break 2
17821 fi
17822 done
17823 done
17824 IFS=$as_save_IFS
17825
17826 ;;
17827 esac
17828 fi
17829 LINT=$ac_cv_path_LINT
17830 if test -n "$LINT"; then
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
17832 $as_echo "$LINT" >&6; }
17833 else
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17835 $as_echo "no" >&6; }
17836 fi
17837
17838
17839 if test "x$LINT" = "x"; then
17840 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
17841 fi
17842 elif test "x$use_lint" = x"no" ; then
17843 if test "x$LINT" != "x"; then
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
17845 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
17846 fi
17847 else
17848 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
17849 fi
17850
17851 # User supplied flags override default flags
17852 if test "x$LINT_FLAGS" != "x"; then
17853 lint_options=$LINT_FLAGS
17854 fi
17855
17856 LINT_FLAGS=$lint_options
17857
17858 if test "x$LINT" != x; then
17859 LINT_TRUE=
17860 LINT_FALSE='#'
17861 else
17862 LINT_TRUE='#'
17863 LINT_FALSE=
17864 fi
17865
17866
17867
17868
17869
17870 # Check whether --enable-lint-library was given.
17871 if test "${enable_lint_library+set}" = set; then :
17872 enableval=$enable_lint_library; make_lint_lib=$enableval
17873 else
17874 make_lint_lib=no
17875 fi
17876
17877
17878 if test "x$make_lint_lib" = x"yes" ; then
17879 LINTLIB=llib-lXv.ln
17880 if test "x$LINT" = "x"; then
17881 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
17882 fi
17883 elif test "x$make_lint_lib" != x"no" ; then
17884 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
17885 fi
17886
17887
17888 if test x$make_lint_lib != xno; then
17889 MAKE_LINT_LIB_TRUE=
17890 MAKE_LINT_LIB_FALSE='#'
17891 else
17892 MAKE_LINT_LIB_TRUE='#'
17893 MAKE_LINT_LIB_FALSE=
17894 fi
17895
17896
17897
17898
17899 ac_config_files="$ac_config_files Makefile include/Makefile include/X11/Makefile include/X11/extensions/Makefile src/Makefile man/Makefile xv.pc"
17900
17901 cat >confcache <<\_ACEOF
17902 # This file is a shell script that caches the results of configure
17903 # tests run on this system so they can be shared between configure
17904 # scripts and configure runs, see configure's option --config-cache.
17905 # It is not useful on other systems. If it contains results you don't
17906 # want to keep, you may remove or edit it.
17907 #
17908 # config.status only pays attention to the cache file if you give it
17909 # the --recheck option to rerun configure.
17910 #
17911 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17912 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17913 # following values.
17914
17915 _ACEOF
17916
17917 # The following way of writing the cache mishandles newlines in values,
17918 # but we know of no workaround that is simple, portable, and efficient.
17919 # So, we kill variables containing newlines.
17920 # Ultrix sh set writes to stderr and can't be redirected directly,
17921 # and sets the high bit in the cache file unless we assign to the vars.
17922 (
17923 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17924 eval ac_val=\$$ac_var
17925 case $ac_val in #(
17926 *${as_nl}*)
17927 case $ac_var in #(
17928 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17929 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17930 esac
17931 case $ac_var in #(
17932 _ | IFS | as_nl) ;; #(
17933 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17934 *) { eval $ac_var=; unset $ac_var;} ;;
17935 esac ;;
17936 esac
17937 done
17938
17939 (set) 2>&1 |
17940 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17941 *${as_nl}ac_space=\ *)
17942 # `set' does not quote correctly, so add quotes: double-quote
17943 # substitution turns \\\\ into \\, and sed turns \\ into \.
17944 sed -n \
17945 "s/'/'\\\\''/g;
17946 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17947 ;; #(
17948 *)
17949 # `set' quotes correctly as required by POSIX, so do not add quotes.
17950 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17951 ;;
17952 esac |
17953 sort
17954 ) |
17955 sed '
17956 /^ac_cv_env_/b end
17957 t clear
17958 :clear
17959 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17960 t end
17961 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17962 :end' >>confcache
17963 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17964 if test -w "$cache_file"; then
17965 if test "x$cache_file" != "x/dev/null"; then
17966 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17967 $as_echo "$as_me: updating cache $cache_file" >&6;}
17968 if test ! -f "$cache_file" || test -h "$cache_file"; then
17969 cat confcache >"$cache_file"
17970 else
17971 case $cache_file in #(
17972 */* | ?:*)
17973 mv -f confcache "$cache_file"$$ &&
17974 mv -f "$cache_file"$$ "$cache_file" ;; #(
17975 *)
17976 mv -f confcache "$cache_file" ;;
17977 esac
17978 fi
17979 fi
17980 else
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17982 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17983 fi
17984 fi
17985 rm -f confcache
17986
17987 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17988 # Let make expand exec_prefix.
17989 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17990
17991 DEFS=-DHAVE_CONFIG_H
17992
17993 ac_libobjs=
17994 ac_ltlibobjs=
17995 U=
17996 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17997 # 1. Remove the extension, and $U if already installed.
17998 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17999 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18000 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18001 # will be set to the directory where LIBOBJS objects are built.
18002 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18003 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18004 done
18005 LIBOBJS=$ac_libobjs
18006
18007 LTLIBOBJS=$ac_ltlibobjs
18008
18009
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18011 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18012 if test -n "$am_sleep_pid"; then
18013 # Hide warnings about reused PIDs.
18014 wait $am_sleep_pid 2>/dev/null
18015 fi
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18017 $as_echo "done" >&6; }
18018 if test -n "$EXEEXT"; then
18019 am__EXEEXT_TRUE=
18020 am__EXEEXT_FALSE='#'
18021 else
18022 am__EXEEXT_TRUE='#'
18023 am__EXEEXT_FALSE=
18024 fi
18025
18026 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18027 as_fn_error $? "conditional \"AMDEP\" was never defined.
18028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18029 fi
18030 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18031 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18033 fi
18034 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
18035 as_fn_error $? "conditional \"LINT\" was never defined.
18036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18037 fi
18038 if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
18039 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
18040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18041 fi
18042
18043 : "${CONFIG_STATUS=./config.status}"
18044 ac_write_fail=0
18045 ac_clean_files_save=$ac_clean_files
18046 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18048 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18049 as_write_fail=0
18050 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18051 #! $SHELL
18052 # Generated by $as_me.
18053 # Run this file to recreate the current configuration.
18054 # Compiler output produced by configure, useful for debugging
18055 # configure, is in config.log if it exists.
18056
18057 debug=false
18058 ac_cs_recheck=false
18059 ac_cs_silent=false
18060
18061 SHELL=\${CONFIG_SHELL-$SHELL}
18062 export SHELL
18063 _ASEOF
18064 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18065 ## -------------------- ##
18066 ## M4sh Initialization. ##
18067 ## -------------------- ##
18068
18069 # Be more Bourne compatible
18070 DUALCASE=1; export DUALCASE # for MKS sh
18071 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18072 emulate sh
18073 NULLCMD=:
18074 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18075 # is contrary to our usage. Disable this feature.
18076 alias -g '${1+"$@"}'='"$@"'
18077 setopt NO_GLOB_SUBST
18078 else
18079 case `(set -o) 2>/dev/null` in #(
18080 *posix*) :
18081 set -o posix ;; #(
18082 *) :
18083 ;;
18084 esac
18085 fi
18086
18087
18088 as_nl='
18089 '
18090 export as_nl
18091 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18092 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18093 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18094 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18095 # Prefer a ksh shell builtin over an external printf program on Solaris,
18096 # but without wasting forks for bash or zsh.
18097 if test -z "$BASH_VERSION$ZSH_VERSION" \
18098 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18099 as_echo='print -r --'
18100 as_echo_n='print -rn --'
18101 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18102 as_echo='printf %s\n'
18103 as_echo_n='printf %s'
18104 else
18105 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18106 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18107 as_echo_n='/usr/ucb/echo -n'
18108 else
18109 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18110 as_echo_n_body='eval
18111 arg=$1;
18112 case $arg in #(
18113 *"$as_nl"*)
18114 expr "X$arg" : "X\\(.*\\)$as_nl";
18115 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18116 esac;
18117 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18118 '
18119 export as_echo_n_body
18120 as_echo_n='sh -c $as_echo_n_body as_echo'
18121 fi
18122 export as_echo_body
18123 as_echo='sh -c $as_echo_body as_echo'
18124 fi
18125
18126 # The user is always right.
18127 if test "${PATH_SEPARATOR+set}" != set; then
18128 PATH_SEPARATOR=:
18129 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18130 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18131 PATH_SEPARATOR=';'
18132 }
18133 fi
18134
18135
18136 # IFS
18137 # We need space, tab and new line, in precisely that order. Quoting is
18138 # there to prevent editors from complaining about space-tab.
18139 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18140 # splitting by setting IFS to empty value.)
18141 IFS=" "" $as_nl"
18142
18143 # Find who we are. Look in the path if we contain no directory separator.
18144 as_myself=
18145 case $0 in #((
18146 *[\\/]* ) as_myself=$0 ;;
18147 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18148 for as_dir in $PATH
18149 do
18150 IFS=$as_save_IFS
18151 test -z "$as_dir" && as_dir=.
18152 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18153 done
18154 IFS=$as_save_IFS
18155
18156 ;;
18157 esac
18158 # We did not find ourselves, most probably we were run as `sh COMMAND'
18159 # in which case we are not to be found in the path.
18160 if test "x$as_myself" = x; then
18161 as_myself=$0
18162 fi
18163 if test ! -f "$as_myself"; then
18164 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18165 exit 1
18166 fi
18167
18168 # Unset variables that we do not need and which cause bugs (e.g. in
18169 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18170 # suppresses any "Segmentation fault" message there. '((' could
18171 # trigger a bug in pdksh 5.2.14.
18172 for as_var in BASH_ENV ENV MAIL MAILPATH
18173 do eval test x\${$as_var+set} = xset \
18174 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18175 done
18176 PS1='$ '
18177 PS2='> '
18178 PS4='+ '
18179
18180 # NLS nuisances.
18181 LC_ALL=C
18182 export LC_ALL
18183 LANGUAGE=C
18184 export LANGUAGE
18185
18186 # CDPATH.
18187 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18188
18189
18190 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18191 # ----------------------------------------
18192 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18193 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18194 # script with STATUS, using 1 if that was 0.
18195 as_fn_error ()
18196 {
18197 as_status=$1; test $as_status -eq 0 && as_status=1
18198 if test "$4"; then
18199 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18200 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18201 fi
18202 $as_echo "$as_me: error: $2" >&2
18203 as_fn_exit $as_status
18204 } # as_fn_error
18205
18206
18207 # as_fn_set_status STATUS
18208 # -----------------------
18209 # Set $? to STATUS, without forking.
18210 as_fn_set_status ()
18211 {
18212 return $1
18213 } # as_fn_set_status
18214
18215 # as_fn_exit STATUS
18216 # -----------------
18217 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18218 as_fn_exit ()
18219 {
18220 set +e
18221 as_fn_set_status $1
18222 exit $1
18223 } # as_fn_exit
18224
18225 # as_fn_unset VAR
18226 # ---------------
18227 # Portably unset VAR.
18228 as_fn_unset ()
18229 {
18230 { eval $1=; unset $1;}
18231 }
18232 as_unset=as_fn_unset
18233 # as_fn_append VAR VALUE
18234 # ----------------------
18235 # Append the text in VALUE to the end of the definition contained in VAR. Take
18236 # advantage of any shell optimizations that allow amortized linear growth over
18237 # repeated appends, instead of the typical quadratic growth present in naive
18238 # implementations.
18239 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18240 eval 'as_fn_append ()
18241 {
18242 eval $1+=\$2
18243 }'
18244 else
18245 as_fn_append ()
18246 {
18247 eval $1=\$$1\$2
18248 }
18249 fi # as_fn_append
18250
18251 # as_fn_arith ARG...
18252 # ------------------
18253 # Perform arithmetic evaluation on the ARGs, and store the result in the
18254 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18255 # must be portable across $(()) and expr.
18256 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18257 eval 'as_fn_arith ()
18258 {
18259 as_val=$(( $* ))
18260 }'
18261 else
18262 as_fn_arith ()
18263 {
18264 as_val=`expr "$@" || test $? -eq 1`
18265 }
18266 fi # as_fn_arith
18267
18268
18269 if expr a : '\(a\)' >/dev/null 2>&1 &&
18270 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18271 as_expr=expr
18272 else
18273 as_expr=false
18274 fi
18275
18276 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18277 as_basename=basename
18278 else
18279 as_basename=false
18280 fi
18281
18282 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18283 as_dirname=dirname
18284 else
18285 as_dirname=false
18286 fi
18287
18288 as_me=`$as_basename -- "$0" ||
18289 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18290 X"$0" : 'X\(//\)$' \| \
18291 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18292 $as_echo X/"$0" |
18293 sed '/^.*\/\([^/][^/]*\)\/*$/{
18294 s//\1/
18295 q
18296 }
18297 /^X\/\(\/\/\)$/{
18298 s//\1/
18299 q
18300 }
18301 /^X\/\(\/\).*/{
18302 s//\1/
18303 q
18304 }
18305 s/.*/./; q'`
18306
18307 # Avoid depending upon Character Ranges.
18308 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18309 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18310 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18311 as_cr_digits='0123456789'
18312 as_cr_alnum=$as_cr_Letters$as_cr_digits
18313
18314 ECHO_C= ECHO_N= ECHO_T=
18315 case `echo -n x` in #(((((
18316 -n*)
18317 case `echo 'xy\c'` in
18318 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18319 xy) ECHO_C='\c';;
18320 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18321 ECHO_T=' ';;
18322 esac;;
18323 *)
18324 ECHO_N='-n';;
18325 esac
18326
18327 rm -f conf$$ conf$$.exe conf$$.file
18328 if test -d conf$$.dir; then
18329 rm -f conf$$.dir/conf$$.file
18330 else
18331 rm -f conf$$.dir
18332 mkdir conf$$.dir 2>/dev/null
18333 fi
18334 if (echo >conf$$.file) 2>/dev/null; then
18335 if ln -s conf$$.file conf$$ 2>/dev/null; then
18336 as_ln_s='ln -s'
18337 # ... but there are two gotchas:
18338 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18339 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18340 # In both cases, we have to default to `cp -p'.
18341 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18342 as_ln_s='cp -p'
18343 elif ln conf$$.file conf$$ 2>/dev/null; then
18344 as_ln_s=ln
18345 else
18346 as_ln_s='cp -p'
18347 fi
18348 else
18349 as_ln_s='cp -p'
18350 fi
18351 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18352 rmdir conf$$.dir 2>/dev/null
18353
18354
18355 # as_fn_mkdir_p
18356 # -------------
18357 # Create "$as_dir" as a directory, including parents if necessary.
18358 as_fn_mkdir_p ()
18359 {
18360
18361 case $as_dir in #(
18362 -*) as_dir=./$as_dir;;
18363 esac
18364 test -d "$as_dir" || eval $as_mkdir_p || {
18365 as_dirs=
18366 while :; do
18367 case $as_dir in #(
18368 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18369 *) as_qdir=$as_dir;;
18370 esac
18371 as_dirs="'$as_qdir' $as_dirs"
18372 as_dir=`$as_dirname -- "$as_dir" ||
18373 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18374 X"$as_dir" : 'X\(//\)[^/]' \| \
18375 X"$as_dir" : 'X\(//\)$' \| \
18376 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18377 $as_echo X"$as_dir" |
18378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18379 s//\1/
18380 q
18381 }
18382 /^X\(\/\/\)[^/].*/{
18383 s//\1/
18384 q
18385 }
18386 /^X\(\/\/\)$/{
18387 s//\1/
18388 q
18389 }
18390 /^X\(\/\).*/{
18391 s//\1/
18392 q
18393 }
18394 s/.*/./; q'`
18395 test -d "$as_dir" && break
18396 done
18397 test -z "$as_dirs" || eval "mkdir $as_dirs"
18398 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18399
18400
18401 } # as_fn_mkdir_p
18402 if mkdir -p . 2>/dev/null; then
18403 as_mkdir_p='mkdir -p "$as_dir"'
18404 else
18405 test -d ./-p && rmdir ./-p
18406 as_mkdir_p=false
18407 fi
18408
18409 if test -x / >/dev/null 2>&1; then
18410 as_test_x='test -x'
18411 else
18412 if ls -dL / >/dev/null 2>&1; then
18413 as_ls_L_option=L
18414 else
18415 as_ls_L_option=
18416 fi
18417 as_test_x='
18418 eval sh -c '\''
18419 if test -d "$1"; then
18420 test -d "$1/.";
18421 else
18422 case $1 in #(
18423 -*)set "./$1";;
18424 esac;
18425 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18426 ???[sx]*):;;*)false;;esac;fi
18427 '\'' sh
18428 '
18429 fi
18430 as_executable_p=$as_test_x
18431
18432 # Sed expression to map a string onto a valid CPP name.
18433 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18434
18435 # Sed expression to map a string onto a valid variable name.
18436 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18437
18438
18439 exec 6>&1
18440 ## ----------------------------------- ##
18441 ## Main body of $CONFIG_STATUS script. ##
18442 ## ----------------------------------- ##
18443 _ASEOF
18444 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18445
18446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18447 # Save the log message, to keep $0 and so on meaningful, and to
18448 # report actual input values of CONFIG_FILES etc. instead of their
18449 # values after options handling.
18450 ac_log="
18451 This file was extended by libXv $as_me 1.0.8, which was
18452 generated by GNU Autoconf 2.68. Invocation command line was
18453
18454 CONFIG_FILES = $CONFIG_FILES
18455 CONFIG_HEADERS = $CONFIG_HEADERS
18456 CONFIG_LINKS = $CONFIG_LINKS
18457 CONFIG_COMMANDS = $CONFIG_COMMANDS
18458 $ $0 $@
18459
18460 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18461 "
18462
18463 _ACEOF
18464
18465 case $ac_config_files in *"
18466 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18467 esac
18468
18469 case $ac_config_headers in *"
18470 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18471 esac
18472
18473
18474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18475 # Files that config.status was made for.
18476 config_files="$ac_config_files"
18477 config_headers="$ac_config_headers"
18478 config_commands="$ac_config_commands"
18479
18480 _ACEOF
18481
18482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18483 ac_cs_usage="\
18484 \`$as_me' instantiates files and other configuration actions
18485 from templates according to the current configuration. Unless the files
18486 and actions are specified as TAGs, all are instantiated by default.
18487
18488 Usage: $0 [OPTION]... [TAG]...
18489
18490 -h, --help print this help, then exit
18491 -V, --version print version number and configuration settings, then exit
18492 --config print configuration, then exit
18493 -q, --quiet, --silent
18494 do not print progress messages
18495 -d, --debug don't remove temporary files
18496 --recheck update $as_me by reconfiguring in the same conditions
18497 --file=FILE[:TEMPLATE]
18498 instantiate the configuration file FILE
18499 --header=FILE[:TEMPLATE]
18500 instantiate the configuration header FILE
18501
18502 Configuration files:
18503 $config_files
18504
18505 Configuration headers:
18506 $config_headers
18507
18508 Configuration commands:
18509 $config_commands
18510
18511 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18512
18513 _ACEOF
18514 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18515 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18516 ac_cs_version="\\
18517 libXv config.status 1.0.8
18518 configured by $0, generated by GNU Autoconf 2.68,
18519 with options \\"\$ac_cs_config\\"
18520
18521 Copyright (C) 2010 Free Software Foundation, Inc.
18522 This config.status script is free software; the Free Software Foundation
18523 gives unlimited permission to copy, distribute and modify it."
18524
18525 ac_pwd='$ac_pwd'
18526 srcdir='$srcdir'
18527 INSTALL='$INSTALL'
18528 MKDIR_P='$MKDIR_P'
18529 AWK='$AWK'
18530 test -n "\$AWK" || AWK=awk
18531 _ACEOF
18532
18533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18534 # The default lists apply if the user does not specify any file.
18535 ac_need_defaults=:
18536 while test $# != 0
18537 do
18538 case $1 in
18539 --*=?*)
18540 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18541 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18542 ac_shift=:
18543 ;;
18544 --*=)
18545 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18546 ac_optarg=
18547 ac_shift=:
18548 ;;
18549 *)
18550 ac_option=$1
18551 ac_optarg=$2
18552 ac_shift=shift
18553 ;;
18554 esac
18555
18556 case $ac_option in
18557 # Handling of the options.
18558 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18559 ac_cs_recheck=: ;;
18560 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18561 $as_echo "$ac_cs_version"; exit ;;
18562 --config | --confi | --conf | --con | --co | --c )
18563 $as_echo "$ac_cs_config"; exit ;;
18564 --debug | --debu | --deb | --de | --d | -d )
18565 debug=: ;;
18566 --file | --fil | --fi | --f )
18567 $ac_shift
18568 case $ac_optarg in
18569 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18570 '') as_fn_error $? "missing file argument" ;;
18571 esac
18572 as_fn_append CONFIG_FILES " '$ac_optarg'"
18573 ac_need_defaults=false;;
18574 --header | --heade | --head | --hea )
18575 $ac_shift
18576 case $ac_optarg in
18577 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18578 esac
18579 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18580 ac_need_defaults=false;;
18581 --he | --h)
18582 # Conflict between --help and --header
18583 as_fn_error $? "ambiguous option: \`$1'
18584 Try \`$0 --help' for more information.";;
18585 --help | --hel | -h )
18586 $as_echo "$ac_cs_usage"; exit ;;
18587 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18588 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18589 ac_cs_silent=: ;;
18590
18591 # This is an error.
18592 -*) as_fn_error $? "unrecognized option: \`$1'
18593 Try \`$0 --help' for more information." ;;
18594
18595 *) as_fn_append ac_config_targets " $1"
18596 ac_need_defaults=false ;;
18597
18598 esac
18599 shift
18600 done
18601
18602 ac_configure_extra_args=
18603
18604 if $ac_cs_silent; then
18605 exec 6>/dev/null
18606 ac_configure_extra_args="$ac_configure_extra_args --silent"
18607 fi
18608
18609 _ACEOF
18610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18611 if \$ac_cs_recheck; then
18612 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18613 shift
18614 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18615 CONFIG_SHELL='$SHELL'
18616 export CONFIG_SHELL
18617 exec "\$@"
18618 fi
18619
18620 _ACEOF
18621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18622 exec 5>>config.log
18623 {
18624 echo
18625 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18626 ## Running $as_me. ##
18627 _ASBOX
18628 $as_echo "$ac_log"
18629 } >&5
18630
18631 _ACEOF
18632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18633 #
18634 # INIT-COMMANDS
18635 #
18636 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18637
18638
18639 # The HP-UX ksh and POSIX shell print the target directory to stdout
18640 # if CDPATH is set.
18641 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18642
18643 sed_quote_subst='$sed_quote_subst'
18644 double_quote_subst='$double_quote_subst'
18645 delay_variable_subst='$delay_variable_subst'
18646 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18647 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18648 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18649 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18650 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18651 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18652 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18653 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18654 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18655 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18656 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18657 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18658 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18659 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18660 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18661 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18662 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18663 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18664 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18665 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18666 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18667 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18668 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18669 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18670 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18671 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18672 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18673 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18674 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18675 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18676 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18677 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18678 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18679 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18680 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18681 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18682 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18683 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18684 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18685 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18686 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18687 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18688 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18689 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18690 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18691 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18692 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18693 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18694 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18695 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18696 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18697 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18698 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18699 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18700 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18701 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18702 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"`'
18703 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18704 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18705 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18706 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18707 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18708 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18709 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18710 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18711 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18712 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18713 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18714 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18715 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18716 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18717 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18718 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18719 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18720 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18721 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18722 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18723 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18724 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18725 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18726 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18727 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18728 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18729 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18730 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18731 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18732 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18733 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18734 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18735 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18736 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18737 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18738 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18739 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18740 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18741 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18742 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18743 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18744 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18745 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18746 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18747 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18748 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18749 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18750 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18751 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18752 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18753 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18754 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18755 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18756 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18757 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18758 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18759 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18760 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18761 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18762 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18763 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18764 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18765 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18766 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18767 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18768 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18769 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18770 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18771 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18772 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18773 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18774 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18775 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18776
18777 LTCC='$LTCC'
18778 LTCFLAGS='$LTCFLAGS'
18779 compiler='$compiler_DEFAULT'
18780
18781 # A function that is used when there is no print builtin or printf.
18782 func_fallback_echo ()
18783 {
18784 eval 'cat <<_LTECHO_EOF
18785 \$1
18786 _LTECHO_EOF'
18787 }
18788
18789 # Quote evaled strings.
18790 for var in SHELL \
18791 ECHO \
18792 PATH_SEPARATOR \
18793 SED \
18794 GREP \
18795 EGREP \
18796 FGREP \
18797 LD \
18798 NM \
18799 LN_S \
18800 lt_SP2NL \
18801 lt_NL2SP \
18802 reload_flag \
18803 OBJDUMP \
18804 deplibs_check_method \
18805 file_magic_cmd \
18806 file_magic_glob \
18807 want_nocaseglob \
18808 DLLTOOL \
18809 sharedlib_from_linklib_cmd \
18810 AR \
18811 AR_FLAGS \
18812 archiver_list_spec \
18813 STRIP \
18814 RANLIB \
18815 CC \
18816 CFLAGS \
18817 compiler \
18818 lt_cv_sys_global_symbol_pipe \
18819 lt_cv_sys_global_symbol_to_cdecl \
18820 lt_cv_sys_global_symbol_to_c_name_address \
18821 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18822 nm_file_list_spec \
18823 lt_prog_compiler_no_builtin_flag \
18824 lt_prog_compiler_pic \
18825 lt_prog_compiler_wl \
18826 lt_prog_compiler_static \
18827 lt_cv_prog_compiler_c_o \
18828 need_locks \
18829 MANIFEST_TOOL \
18830 DSYMUTIL \
18831 NMEDIT \
18832 LIPO \
18833 OTOOL \
18834 OTOOL64 \
18835 shrext_cmds \
18836 export_dynamic_flag_spec \
18837 whole_archive_flag_spec \
18838 compiler_needs_object \
18839 with_gnu_ld \
18840 allow_undefined_flag \
18841 no_undefined_flag \
18842 hardcode_libdir_flag_spec \
18843 hardcode_libdir_separator \
18844 exclude_expsyms \
18845 include_expsyms \
18846 file_list_spec \
18847 variables_saved_for_relink \
18848 libname_spec \
18849 library_names_spec \
18850 soname_spec \
18851 install_override_mode \
18852 finish_eval \
18853 old_striplib \
18854 striplib; do
18855 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18856 *[\\\\\\\`\\"\\\$]*)
18857 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18858 ;;
18859 *)
18860 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18861 ;;
18862 esac
18863 done
18864
18865 # Double-quote double-evaled strings.
18866 for var in reload_cmds \
18867 old_postinstall_cmds \
18868 old_postuninstall_cmds \
18869 old_archive_cmds \
18870 extract_expsyms_cmds \
18871 old_archive_from_new_cmds \
18872 old_archive_from_expsyms_cmds \
18873 archive_cmds \
18874 archive_expsym_cmds \
18875 module_cmds \
18876 module_expsym_cmds \
18877 export_symbols_cmds \
18878 prelink_cmds \
18879 postlink_cmds \
18880 postinstall_cmds \
18881 postuninstall_cmds \
18882 finish_cmds \
18883 sys_lib_search_path_spec \
18884 sys_lib_dlsearch_path_spec; do
18885 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18886 *[\\\\\\\`\\"\\\$]*)
18887 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18888 ;;
18889 *)
18890 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18891 ;;
18892 esac
18893 done
18894
18895 ac_aux_dir='$ac_aux_dir'
18896 xsi_shell='$xsi_shell'
18897 lt_shell_append='$lt_shell_append'
18898
18899 # See if we are running on zsh, and set the options which allow our
18900 # commands through without removal of \ escapes INIT.
18901 if test -n "\${ZSH_VERSION+set}" ; then
18902 setopt NO_GLOB_SUBST
18903 fi
18904
18905
18906 PACKAGE='$PACKAGE'
18907 VERSION='$VERSION'
18908 TIMESTAMP='$TIMESTAMP'
18909 RM='$RM'
18910 ofile='$ofile'
18911
18912
18913
18914
18915 _ACEOF
18916
18917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18918
18919 # Handling of arguments.
18920 for ac_config_target in $ac_config_targets
18921 do
18922 case $ac_config_target in
18923 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18924 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18925 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18926 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18927 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18928 "include/X11/Makefile") CONFIG_FILES="$CONFIG_FILES include/X11/Makefile" ;;
18929 "include/X11/extensions/Makefile") CONFIG_FILES="$CONFIG_FILES include/X11/extensions/Makefile" ;;
18930 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18931 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18932 "xv.pc") CONFIG_FILES="$CONFIG_FILES xv.pc" ;;
18933
18934 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18935 esac
18936 done
18937
18938
18939 # If the user did not use the arguments to specify the items to instantiate,
18940 # then the envvar interface is used. Set only those that are not.
18941 # We use the long form for the default assignment because of an extremely
18942 # bizarre bug on SunOS 4.1.3.
18943 if $ac_need_defaults; then
18944 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18945 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18946 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18947 fi
18948
18949 # Have a temporary directory for convenience. Make it in the build tree
18950 # simply because there is no reason against having it here, and in addition,
18951 # creating and moving files from /tmp can sometimes cause problems.
18952 # Hook for its removal unless debugging.
18953 # Note that there is a small window in which the directory will not be cleaned:
18954 # after its creation but before its name has been assigned to `$tmp'.
18955 $debug ||
18956 {
18957 tmp= ac_tmp=
18958 trap 'exit_status=$?
18959 : "${ac_tmp:=$tmp}"
18960 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18961 ' 0
18962 trap 'as_fn_exit 1' 1 2 13 15
18963 }
18964 # Create a (secure) tmp directory for tmp files.
18965
18966 {
18967 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18968 test -d "$tmp"
18969 } ||
18970 {
18971 tmp=./conf$$-$RANDOM
18972 (umask 077 && mkdir "$tmp")
18973 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18974 ac_tmp=$tmp
18975
18976 # Set up the scripts for CONFIG_FILES section.
18977 # No need to generate them if there are no CONFIG_FILES.
18978 # This happens for instance with `./config.status config.h'.
18979 if test -n "$CONFIG_FILES"; then
18980
18981
18982 ac_cr=`echo X | tr X '\015'`
18983 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18984 # But we know of no other shell where ac_cr would be empty at this
18985 # point, so we can use a bashism as a fallback.
18986 if test "x$ac_cr" = x; then
18987 eval ac_cr=\$\'\\r\'
18988 fi
18989 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18990 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18991 ac_cs_awk_cr='\\r'
18992 else
18993 ac_cs_awk_cr=$ac_cr
18994 fi
18995
18996 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18997 _ACEOF
18998
18999
19000 {
19001 echo "cat >conf$$subs.awk <<_ACEOF" &&
19002 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19003 echo "_ACEOF"
19004 } >conf$$subs.sh ||
19005 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19006 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19007 ac_delim='%!_!# '
19008 for ac_last_try in false false false false false :; do
19009 . ./conf$$subs.sh ||
19010 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19011
19012 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19013 if test $ac_delim_n = $ac_delim_num; then
19014 break
19015 elif $ac_last_try; then
19016 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19017 else
19018 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19019 fi
19020 done
19021 rm -f conf$$subs.sh
19022
19023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19024 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19025 _ACEOF
19026 sed -n '
19027 h
19028 s/^/S["/; s/!.*/"]=/
19029 p
19030 g
19031 s/^[^!]*!//
19032 :repl
19033 t repl
19034 s/'"$ac_delim"'$//
19035 t delim
19036 :nl
19037 h
19038 s/\(.\{148\}\)..*/\1/
19039 t more1
19040 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19041 p
19042 n
19043 b repl
19044 :more1
19045 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19046 p
19047 g
19048 s/.\{148\}//
19049 t nl
19050 :delim
19051 h
19052 s/\(.\{148\}\)..*/\1/
19053 t more2
19054 s/["\\]/\\&/g; s/^/"/; s/$/"/
19055 p
19056 b
19057 :more2
19058 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19059 p
19060 g
19061 s/.\{148\}//
19062 t delim
19063 ' <conf$$subs.awk | sed '
19064 /^[^""]/{
19065 N
19066 s/\n//
19067 }
19068 ' >>$CONFIG_STATUS || ac_write_fail=1
19069 rm -f conf$$subs.awk
19070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19071 _ACAWK
19072 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19073 for (key in S) S_is_set[key] = 1
19074 FS = ""
19075
19076 }
19077 {
19078 line = $ 0
19079 nfields = split(line, field, "@")
19080 substed = 0
19081 len = length(field[1])
19082 for (i = 2; i < nfields; i++) {
19083 key = field[i]
19084 keylen = length(key)
19085 if (S_is_set[key]) {
19086 value = S[key]
19087 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19088 len += length(value) + length(field[++i])
19089 substed = 1
19090 } else
19091 len += 1 + keylen
19092 }
19093
19094 print line
19095 }
19096
19097 _ACAWK
19098 _ACEOF
19099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19100 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19101 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19102 else
19103 cat
19104 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19105 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19106 _ACEOF
19107
19108 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19109 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19110 # trailing colons and then remove the whole line if VPATH becomes empty
19111 # (actually we leave an empty line to preserve line numbers).
19112 if test "x$srcdir" = x.; then
19113 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19114 h
19115 s///
19116 s/^/:/
19117 s/[ ]*$/:/
19118 s/:\$(srcdir):/:/g
19119 s/:\${srcdir}:/:/g
19120 s/:@srcdir@:/:/g
19121 s/^:*//
19122 s/:*$//
19123 x
19124 s/\(=[ ]*\).*/\1/
19125 G
19126 s/\n//
19127 s/^[^=]*=[ ]*$//
19128 }'
19129 fi
19130
19131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19132 fi # test -n "$CONFIG_FILES"
19133
19134 # Set up the scripts for CONFIG_HEADERS section.
19135 # No need to generate them if there are no CONFIG_HEADERS.
19136 # This happens for instance with `./config.status Makefile'.
19137 if test -n "$CONFIG_HEADERS"; then
19138 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19139 BEGIN {
19140 _ACEOF
19141
19142 # Transform confdefs.h into an awk script `defines.awk', embedded as
19143 # here-document in config.status, that substitutes the proper values into
19144 # config.h.in to produce config.h.
19145
19146 # Create a delimiter string that does not exist in confdefs.h, to ease
19147 # handling of long lines.
19148 ac_delim='%!_!# '
19149 for ac_last_try in false false :; do
19150 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19151 if test -z "$ac_tt"; then
19152 break
19153 elif $ac_last_try; then
19154 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19155 else
19156 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19157 fi
19158 done
19159
19160 # For the awk script, D is an array of macro values keyed by name,
19161 # likewise P contains macro parameters if any. Preserve backslash
19162 # newline sequences.
19163
19164 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19165 sed -n '
19166 s/.\{148\}/&'"$ac_delim"'/g
19167 t rset
19168 :rset
19169 s/^[ ]*#[ ]*define[ ][ ]*/ /
19170 t def
19171 d
19172 :def
19173 s/\\$//
19174 t bsnl
19175 s/["\\]/\\&/g
19176 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19177 D["\1"]=" \3"/p
19178 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19179 d
19180 :bsnl
19181 s/["\\]/\\&/g
19182 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19183 D["\1"]=" \3\\\\\\n"\\/p
19184 t cont
19185 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19186 t cont
19187 d
19188 :cont
19189 n
19190 s/.\{148\}/&'"$ac_delim"'/g
19191 t clear
19192 :clear
19193 s/\\$//
19194 t bsnlc
19195 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19196 d
19197 :bsnlc
19198 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19199 b cont
19200 ' <confdefs.h | sed '
19201 s/'"$ac_delim"'/"\\\
19202 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19203
19204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19205 for (key in D) D_is_set[key] = 1
19206 FS = ""
19207 }
19208 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19209 line = \$ 0
19210 split(line, arg, " ")
19211 if (arg[1] == "#") {
19212 defundef = arg[2]
19213 mac1 = arg[3]
19214 } else {
19215 defundef = substr(arg[1], 2)
19216 mac1 = arg[2]
19217 }
19218 split(mac1, mac2, "(") #)
19219 macro = mac2[1]
19220 prefix = substr(line, 1, index(line, defundef) - 1)
19221 if (D_is_set[macro]) {
19222 # Preserve the white space surrounding the "#".
19223 print prefix "define", macro P[macro] D[macro]
19224 next
19225 } else {
19226 # Replace #undef with comments. This is necessary, for example,
19227 # in the case of _POSIX_SOURCE, which is predefined and required
19228 # on some systems where configure will not decide to define it.
19229 if (defundef == "undef") {
19230 print "/*", prefix defundef, macro, "*/"
19231 next
19232 }
19233 }
19234 }
19235 { print }
19236 _ACAWK
19237 _ACEOF
19238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19239 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19240 fi # test -n "$CONFIG_HEADERS"
19241
19242
19243 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19244 shift
19245 for ac_tag
19246 do
19247 case $ac_tag in
19248 :[FHLC]) ac_mode=$ac_tag; continue;;
19249 esac
19250 case $ac_mode$ac_tag in
19251 :[FHL]*:*);;
19252 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19253 :[FH]-) ac_tag=-:-;;
19254 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19255 esac
19256 ac_save_IFS=$IFS
19257 IFS=:
19258 set x $ac_tag
19259 IFS=$ac_save_IFS
19260 shift
19261 ac_file=$1
19262 shift
19263
19264 case $ac_mode in
19265 :L) ac_source=$1;;
19266 :[FH])
19267 ac_file_inputs=
19268 for ac_f
19269 do
19270 case $ac_f in
19271 -) ac_f="$ac_tmp/stdin";;
19272 *) # Look for the file first in the build tree, then in the source tree
19273 # (if the path is not absolute). The absolute path cannot be DOS-style,
19274 # because $ac_f cannot contain `:'.
19275 test -f "$ac_f" ||
19276 case $ac_f in
19277 [\\/$]*) false;;
19278 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19279 esac ||
19280 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19281 esac
19282 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19283 as_fn_append ac_file_inputs " '$ac_f'"
19284 done
19285
19286 # Let's still pretend it is `configure' which instantiates (i.e., don't
19287 # use $as_me), people would be surprised to read:
19288 # /* config.h. Generated by config.status. */
19289 configure_input='Generated from '`
19290 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19291 `' by configure.'
19292 if test x"$ac_file" != x-; then
19293 configure_input="$ac_file. $configure_input"
19294 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19295 $as_echo "$as_me: creating $ac_file" >&6;}
19296 fi
19297 # Neutralize special characters interpreted by sed in replacement strings.
19298 case $configure_input in #(
19299 *\&* | *\|* | *\\* )
19300 ac_sed_conf_input=`$as_echo "$configure_input" |
19301 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19302 *) ac_sed_conf_input=$configure_input;;
19303 esac
19304
19305 case $ac_tag in
19306 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19307 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19308 esac
19309 ;;
19310 esac
19311
19312 ac_dir=`$as_dirname -- "$ac_file" ||
19313 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19314 X"$ac_file" : 'X\(//\)[^/]' \| \
19315 X"$ac_file" : 'X\(//\)$' \| \
19316 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19317 $as_echo X"$ac_file" |
19318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19319 s//\1/
19320 q
19321 }
19322 /^X\(\/\/\)[^/].*/{
19323 s//\1/
19324 q
19325 }
19326 /^X\(\/\/\)$/{
19327 s//\1/
19328 q
19329 }
19330 /^X\(\/\).*/{
19331 s//\1/
19332 q
19333 }
19334 s/.*/./; q'`
19335 as_dir="$ac_dir"; as_fn_mkdir_p
19336 ac_builddir=.
19337
19338 case "$ac_dir" in
19339 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19340 *)
19341 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19342 # A ".." for each directory in $ac_dir_suffix.
19343 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19344 case $ac_top_builddir_sub in
19345 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19346 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19347 esac ;;
19348 esac
19349 ac_abs_top_builddir=$ac_pwd
19350 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19351 # for backward compatibility:
19352 ac_top_builddir=$ac_top_build_prefix
19353
19354 case $srcdir in
19355 .) # We are building in place.
19356 ac_srcdir=.
19357 ac_top_srcdir=$ac_top_builddir_sub
19358 ac_abs_top_srcdir=$ac_pwd ;;
19359 [\\/]* | ?:[\\/]* ) # Absolute name.
19360 ac_srcdir=$srcdir$ac_dir_suffix;
19361 ac_top_srcdir=$srcdir
19362 ac_abs_top_srcdir=$srcdir ;;
19363 *) # Relative name.
19364 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19365 ac_top_srcdir=$ac_top_build_prefix$srcdir
19366 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19367 esac
19368 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19369
19370
19371 case $ac_mode in
19372 :F)
19373 #
19374 # CONFIG_FILE
19375 #
19376
19377 case $INSTALL in
19378 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19379 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19380 esac
19381 ac_MKDIR_P=$MKDIR_P
19382 case $MKDIR_P in
19383 [\\/$]* | ?:[\\/]* ) ;;
19384 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19385 esac
19386 _ACEOF
19387
19388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19389 # If the template does not know about datarootdir, expand it.
19390 # FIXME: This hack should be removed a few years after 2.60.
19391 ac_datarootdir_hack=; ac_datarootdir_seen=
19392 ac_sed_dataroot='
19393 /datarootdir/ {
19394 p
19395 q
19396 }
19397 /@datadir@/p
19398 /@docdir@/p
19399 /@infodir@/p
19400 /@localedir@/p
19401 /@mandir@/p'
19402 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19403 *datarootdir*) ac_datarootdir_seen=yes;;
19404 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19406 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19407 _ACEOF
19408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19409 ac_datarootdir_hack='
19410 s&@datadir@&$datadir&g
19411 s&@docdir@&$docdir&g
19412 s&@infodir@&$infodir&g
19413 s&@localedir@&$localedir&g
19414 s&@mandir@&$mandir&g
19415 s&\\\${datarootdir}&$datarootdir&g' ;;
19416 esac
19417 _ACEOF
19418
19419 # Neutralize VPATH when `$srcdir' = `.'.
19420 # Shell code in configure.ac might set extrasub.
19421 # FIXME: do we really want to maintain this feature?
19422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19423 ac_sed_extra="$ac_vpsub
19424 $extrasub
19425 _ACEOF
19426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19427 :t
19428 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19429 s|@configure_input@|$ac_sed_conf_input|;t t
19430 s&@top_builddir@&$ac_top_builddir_sub&;t t
19431 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19432 s&@srcdir@&$ac_srcdir&;t t
19433 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19434 s&@top_srcdir@&$ac_top_srcdir&;t t
19435 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19436 s&@builddir@&$ac_builddir&;t t
19437 s&@abs_builddir@&$ac_abs_builddir&;t t
19438 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19439 s&@INSTALL@&$ac_INSTALL&;t t
19440 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19441 $ac_datarootdir_hack
19442 "
19443 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19444 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19445
19446 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19447 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19448 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19449 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19451 which seems to be undefined. Please make sure it is defined" >&5
19452 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19453 which seems to be undefined. Please make sure it is defined" >&2;}
19454
19455 rm -f "$ac_tmp/stdin"
19456 case $ac_file in
19457 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19458 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19459 esac \
19460 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19461 ;;
19462 :H)
19463 #
19464 # CONFIG_HEADER
19465 #
19466 if test x"$ac_file" != x-; then
19467 {
19468 $as_echo "/* $configure_input */" \
19469 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19470 } >"$ac_tmp/config.h" \
19471 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19472 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19473 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19474 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19475 else
19476 rm -f "$ac_file"
19477 mv "$ac_tmp/config.h" "$ac_file" \
19478 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19479 fi
19480 else
19481 $as_echo "/* $configure_input */" \
19482 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19483 || as_fn_error $? "could not create -" "$LINENO" 5
19484 fi
19485 # Compute "$ac_file"'s index in $config_headers.
19486 _am_arg="$ac_file"
19487 _am_stamp_count=1
19488 for _am_header in $config_headers :; do
19489 case $_am_header in
19490 $_am_arg | $_am_arg:* )
19491 break ;;
19492 * )
19493 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19494 esac
19495 done
19496 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19497 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19498 X"$_am_arg" : 'X\(//\)[^/]' \| \
19499 X"$_am_arg" : 'X\(//\)$' \| \
19500 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19501 $as_echo X"$_am_arg" |
19502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19503 s//\1/
19504 q
19505 }
19506 /^X\(\/\/\)[^/].*/{
19507 s//\1/
19508 q
19509 }
19510 /^X\(\/\/\)$/{
19511 s//\1/
19512 q
19513 }
19514 /^X\(\/\).*/{
19515 s//\1/
19516 q
19517 }
19518 s/.*/./; q'`/stamp-h$_am_stamp_count
19519 ;;
19520
19521 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19522 $as_echo "$as_me: executing $ac_file commands" >&6;}
19523 ;;
19524 esac
19525
19526
19527 case $ac_file$ac_mode in
19528 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19529 # Older Autoconf quotes --file arguments for eval, but not when files
19530 # are listed without --file. Let's play safe and only enable the eval
19531 # if we detect the quoting.
19532 case $CONFIG_FILES in
19533 *\'*) eval set x "$CONFIG_FILES" ;;
19534 *) set x $CONFIG_FILES ;;
19535 esac
19536 shift
19537 for mf
19538 do
19539 # Strip MF so we end up with the name of the file.
19540 mf=`echo "$mf" | sed -e 's/:.*$//'`
19541 # Check whether this is an Automake generated Makefile or not.
19542 # We used to match only the files named 'Makefile.in', but
19543 # some people rename them; so instead we look at the file content.
19544 # Grep'ing the first line is not enough: some people post-process
19545 # each Makefile.in and add a new line on top of each file to say so.
19546 # Grep'ing the whole file is not good either: AIX grep has a line
19547 # limit of 2048, but all sed's we know have understand at least 4000.
19548 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19549 dirpart=`$as_dirname -- "$mf" ||
19550 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19551 X"$mf" : 'X\(//\)[^/]' \| \
19552 X"$mf" : 'X\(//\)$' \| \
19553 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19554 $as_echo X"$mf" |
19555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19556 s//\1/
19557 q
19558 }
19559 /^X\(\/\/\)[^/].*/{
19560 s//\1/
19561 q
19562 }
19563 /^X\(\/\/\)$/{
19564 s//\1/
19565 q
19566 }
19567 /^X\(\/\).*/{
19568 s//\1/
19569 q
19570 }
19571 s/.*/./; q'`
19572 else
19573 continue
19574 fi
19575 # Extract the definition of DEPDIR, am__include, and am__quote
19576 # from the Makefile without running 'make'.
19577 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19578 test -z "$DEPDIR" && continue
19579 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19580 test -z "$am__include" && continue
19581 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19582 # Find all dependency output files, they are included files with
19583 # $(DEPDIR) in their names. We invoke sed twice because it is the
19584 # simplest approach to changing $(DEPDIR) to its actual value in the
19585 # expansion.
19586 for file in `sed -n "
19587 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19588 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19589 # Make sure the directory exists.
19590 test -f "$dirpart/$file" && continue
19591 fdir=`$as_dirname -- "$file" ||
19592 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19593 X"$file" : 'X\(//\)[^/]' \| \
19594 X"$file" : 'X\(//\)$' \| \
19595 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19596 $as_echo X"$file" |
19597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19598 s//\1/
19599 q
19600 }
19601 /^X\(\/\/\)[^/].*/{
19602 s//\1/
19603 q
19604 }
19605 /^X\(\/\/\)$/{
19606 s//\1/
19607 q
19608 }
19609 /^X\(\/\).*/{
19610 s//\1/
19611 q
19612 }
19613 s/.*/./; q'`
19614 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19615 # echo "creating $dirpart/$file"
19616 echo '# dummy' > "$dirpart/$file"
19617 done
19618 done
19619 }
19620 ;;
19621 "libtool":C)
19622
19623 # See if we are running on zsh, and set the options which allow our
19624 # commands through without removal of \ escapes.
19625 if test -n "${ZSH_VERSION+set}" ; then
19626 setopt NO_GLOB_SUBST
19627 fi
19628
19629 cfgfile="${ofile}T"
19630 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19631 $RM "$cfgfile"
19632
19633 cat <<_LT_EOF >> "$cfgfile"
19634 #! $SHELL
19635
19636 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19637 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19638 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19639 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19640 #
19641 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19642 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19643 # Foundation, Inc.
19644 # Written by Gordon Matzigkeit, 1996
19645 #
19646 # This file is part of GNU Libtool.
19647 #
19648 # GNU Libtool is free software; you can redistribute it and/or
19649 # modify it under the terms of the GNU General Public License as
19650 # published by the Free Software Foundation; either version 2 of
19651 # the License, or (at your option) any later version.
19652 #
19653 # As a special exception to the GNU General Public License,
19654 # if you distribute this file as part of a program or library that
19655 # is built using GNU Libtool, you may include this file under the
19656 # same distribution terms that you use for the rest of that program.
19657 #
19658 # GNU Libtool is distributed in the hope that it will be useful,
19659 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19660 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19661 # GNU General Public License for more details.
19662 #
19663 # You should have received a copy of the GNU General Public License
19664 # along with GNU Libtool; see the file COPYING. If not, a copy
19665 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19666 # obtained by writing to the Free Software Foundation, Inc.,
19667 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19668
19669
19670 # The names of the tagged configurations supported by this script.
19671 available_tags=""
19672
19673 # ### BEGIN LIBTOOL CONFIG
19674
19675 # Which release of libtool.m4 was used?
19676 macro_version=$macro_version
19677 macro_revision=$macro_revision
19678
19679 # Whether or not to build shared libraries.
19680 build_libtool_libs=$enable_shared
19681
19682 # Whether or not to build static libraries.
19683 build_old_libs=$enable_static
19684
19685 # What type of objects to build.
19686 pic_mode=$pic_mode
19687
19688 # Whether or not to optimize for fast installation.
19689 fast_install=$enable_fast_install
19690
19691 # Shell to use when invoking shell scripts.
19692 SHELL=$lt_SHELL
19693
19694 # An echo program that protects backslashes.
19695 ECHO=$lt_ECHO
19696
19697 # The PATH separator for the build system.
19698 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19699
19700 # The host system.
19701 host_alias=$host_alias
19702 host=$host
19703 host_os=$host_os
19704
19705 # The build system.
19706 build_alias=$build_alias
19707 build=$build
19708 build_os=$build_os
19709
19710 # A sed program that does not truncate output.
19711 SED=$lt_SED
19712
19713 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19714 Xsed="\$SED -e 1s/^X//"
19715
19716 # A grep program that handles long lines.
19717 GREP=$lt_GREP
19718
19719 # An ERE matcher.
19720 EGREP=$lt_EGREP
19721
19722 # A literal string matcher.
19723 FGREP=$lt_FGREP
19724
19725 # A BSD- or MS-compatible name lister.
19726 NM=$lt_NM
19727
19728 # Whether we need soft or hard links.
19729 LN_S=$lt_LN_S
19730
19731 # What is the maximum length of a command?
19732 max_cmd_len=$max_cmd_len
19733
19734 # Object file suffix (normally "o").
19735 objext=$ac_objext
19736
19737 # Executable file suffix (normally "").
19738 exeext=$exeext
19739
19740 # whether the shell understands "unset".
19741 lt_unset=$lt_unset
19742
19743 # turn spaces into newlines.
19744 SP2NL=$lt_lt_SP2NL
19745
19746 # turn newlines into spaces.
19747 NL2SP=$lt_lt_NL2SP
19748
19749 # convert \$build file names to \$host format.
19750 to_host_file_cmd=$lt_cv_to_host_file_cmd
19751
19752 # convert \$build files to toolchain format.
19753 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19754
19755 # An object symbol dumper.
19756 OBJDUMP=$lt_OBJDUMP
19757
19758 # Method to check whether dependent libraries are shared objects.
19759 deplibs_check_method=$lt_deplibs_check_method
19760
19761 # Command to use when deplibs_check_method = "file_magic".
19762 file_magic_cmd=$lt_file_magic_cmd
19763
19764 # How to find potential files when deplibs_check_method = "file_magic".
19765 file_magic_glob=$lt_file_magic_glob
19766
19767 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19768 want_nocaseglob=$lt_want_nocaseglob
19769
19770 # DLL creation program.
19771 DLLTOOL=$lt_DLLTOOL
19772
19773 # Command to associate shared and link libraries.
19774 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19775
19776 # The archiver.
19777 AR=$lt_AR
19778
19779 # Flags to create an archive.
19780 AR_FLAGS=$lt_AR_FLAGS
19781
19782 # How to feed a file listing to the archiver.
19783 archiver_list_spec=$lt_archiver_list_spec
19784
19785 # A symbol stripping program.
19786 STRIP=$lt_STRIP
19787
19788 # Commands used to install an old-style archive.
19789 RANLIB=$lt_RANLIB
19790 old_postinstall_cmds=$lt_old_postinstall_cmds
19791 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19792
19793 # Whether to use a lock for old archive extraction.
19794 lock_old_archive_extraction=$lock_old_archive_extraction
19795
19796 # A C compiler.
19797 LTCC=$lt_CC
19798
19799 # LTCC compiler flags.
19800 LTCFLAGS=$lt_CFLAGS
19801
19802 # Take the output of nm and produce a listing of raw symbols and C names.
19803 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19804
19805 # Transform the output of nm in a proper C declaration.
19806 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19807
19808 # Transform the output of nm in a C name address pair.
19809 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19810
19811 # Transform the output of nm in a C name address pair when lib prefix is needed.
19812 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19813
19814 # Specify filename containing input files for \$NM.
19815 nm_file_list_spec=$lt_nm_file_list_spec
19816
19817 # The root where to search for dependent libraries,and in which our libraries should be installed.
19818 lt_sysroot=$lt_sysroot
19819
19820 # The name of the directory that contains temporary libtool files.
19821 objdir=$objdir
19822
19823 # Used to examine libraries when file_magic_cmd begins with "file".
19824 MAGIC_CMD=$MAGIC_CMD
19825
19826 # Must we lock files when doing compilation?
19827 need_locks=$lt_need_locks
19828
19829 # Manifest tool.
19830 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19831
19832 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19833 DSYMUTIL=$lt_DSYMUTIL
19834
19835 # Tool to change global to local symbols on Mac OS X.
19836 NMEDIT=$lt_NMEDIT
19837
19838 # Tool to manipulate fat objects and archives on Mac OS X.
19839 LIPO=$lt_LIPO
19840
19841 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19842 OTOOL=$lt_OTOOL
19843
19844 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19845 OTOOL64=$lt_OTOOL64
19846
19847 # Old archive suffix (normally "a").
19848 libext=$libext
19849
19850 # Shared library suffix (normally ".so").
19851 shrext_cmds=$lt_shrext_cmds
19852
19853 # The commands to extract the exported symbol list from a shared archive.
19854 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19855
19856 # Variables whose values should be saved in libtool wrapper scripts and
19857 # restored at link time.
19858 variables_saved_for_relink=$lt_variables_saved_for_relink
19859
19860 # Do we need the "lib" prefix for modules?
19861 need_lib_prefix=$need_lib_prefix
19862
19863 # Do we need a version for libraries?
19864 need_version=$need_version
19865
19866 # Library versioning type.
19867 version_type=$version_type
19868
19869 # Shared library runtime path variable.
19870 runpath_var=$runpath_var
19871
19872 # Shared library path variable.
19873 shlibpath_var=$shlibpath_var
19874
19875 # Is shlibpath searched before the hard-coded library search path?
19876 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19877
19878 # Format of library name prefix.
19879 libname_spec=$lt_libname_spec
19880
19881 # List of archive names. First name is the real one, the rest are links.
19882 # The last name is the one that the linker finds with -lNAME
19883 library_names_spec=$lt_library_names_spec
19884
19885 # The coded name of the library, if different from the real name.
19886 soname_spec=$lt_soname_spec
19887
19888 # Permission mode override for installation of shared libraries.
19889 install_override_mode=$lt_install_override_mode
19890
19891 # Command to use after installation of a shared archive.
19892 postinstall_cmds=$lt_postinstall_cmds
19893
19894 # Command to use after uninstallation of a shared archive.
19895 postuninstall_cmds=$lt_postuninstall_cmds
19896
19897 # Commands used to finish a libtool library installation in a directory.
19898 finish_cmds=$lt_finish_cmds
19899
19900 # As "finish_cmds", except a single script fragment to be evaled but
19901 # not shown.
19902 finish_eval=$lt_finish_eval
19903
19904 # Whether we should hardcode library paths into libraries.
19905 hardcode_into_libs=$hardcode_into_libs
19906
19907 # Compile-time system search path for libraries.
19908 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19909
19910 # Run-time system search path for libraries.
19911 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19912
19913 # Whether dlopen is supported.
19914 dlopen_support=$enable_dlopen
19915
19916 # Whether dlopen of programs is supported.
19917 dlopen_self=$enable_dlopen_self
19918
19919 # Whether dlopen of statically linked programs is supported.
19920 dlopen_self_static=$enable_dlopen_self_static
19921
19922 # Commands to strip libraries.
19923 old_striplib=$lt_old_striplib
19924 striplib=$lt_striplib
19925
19926
19927 # The linker used to build libraries.
19928 LD=$lt_LD
19929
19930 # How to create reloadable object files.
19931 reload_flag=$lt_reload_flag
19932 reload_cmds=$lt_reload_cmds
19933
19934 # Commands used to build an old-style archive.
19935 old_archive_cmds=$lt_old_archive_cmds
19936
19937 # A language specific compiler.
19938 CC=$lt_compiler
19939
19940 # Is the compiler the GNU compiler?
19941 with_gcc=$GCC
19942
19943 # Compiler flag to turn off builtin functions.
19944 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19945
19946 # Additional compiler flags for building library objects.
19947 pic_flag=$lt_lt_prog_compiler_pic
19948
19949 # How to pass a linker flag through the compiler.
19950 wl=$lt_lt_prog_compiler_wl
19951
19952 # Compiler flag to prevent dynamic linking.
19953 link_static_flag=$lt_lt_prog_compiler_static
19954
19955 # Does compiler simultaneously support -c and -o options?
19956 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19957
19958 # Whether or not to add -lc for building shared libraries.
19959 build_libtool_need_lc=$archive_cmds_need_lc
19960
19961 # Whether or not to disallow shared libs when runtime libs are static.
19962 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19963
19964 # Compiler flag to allow reflexive dlopens.
19965 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19966
19967 # Compiler flag to generate shared objects directly from archives.
19968 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19969
19970 # Whether the compiler copes with passing no objects directly.
19971 compiler_needs_object=$lt_compiler_needs_object
19972
19973 # Create an old-style archive from a shared archive.
19974 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19975
19976 # Create a temporary old-style archive to link instead of a shared archive.
19977 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19978
19979 # Commands used to build a shared archive.
19980 archive_cmds=$lt_archive_cmds
19981 archive_expsym_cmds=$lt_archive_expsym_cmds
19982
19983 # Commands used to build a loadable module if different from building
19984 # a shared archive.
19985 module_cmds=$lt_module_cmds
19986 module_expsym_cmds=$lt_module_expsym_cmds
19987
19988 # Whether we are building with GNU ld or not.
19989 with_gnu_ld=$lt_with_gnu_ld
19990
19991 # Flag that allows shared libraries with undefined symbols to be built.
19992 allow_undefined_flag=$lt_allow_undefined_flag
19993
19994 # Flag that enforces no undefined symbols.
19995 no_undefined_flag=$lt_no_undefined_flag
19996
19997 # Flag to hardcode \$libdir into a binary during linking.
19998 # This must work even if \$libdir does not exist
19999 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20000
20001 # Whether we need a single "-rpath" flag with a separated argument.
20002 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20003
20004 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20005 # DIR into the resulting binary.
20006 hardcode_direct=$hardcode_direct
20007
20008 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20009 # DIR into the resulting binary and the resulting library dependency is
20010 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20011 # library is relocated.
20012 hardcode_direct_absolute=$hardcode_direct_absolute
20013
20014 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20015 # into the resulting binary.
20016 hardcode_minus_L=$hardcode_minus_L
20017
20018 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20019 # into the resulting binary.
20020 hardcode_shlibpath_var=$hardcode_shlibpath_var
20021
20022 # Set to "yes" if building a shared library automatically hardcodes DIR
20023 # into the library and all subsequent libraries and executables linked
20024 # against it.
20025 hardcode_automatic=$hardcode_automatic
20026
20027 # Set to yes if linker adds runtime paths of dependent libraries
20028 # to runtime path list.
20029 inherit_rpath=$inherit_rpath
20030
20031 # Whether libtool must link a program against all its dependency libraries.
20032 link_all_deplibs=$link_all_deplibs
20033
20034 # Set to "yes" if exported symbols are required.
20035 always_export_symbols=$always_export_symbols
20036
20037 # The commands to list exported symbols.
20038 export_symbols_cmds=$lt_export_symbols_cmds
20039
20040 # Symbols that should not be listed in the preloaded symbols.
20041 exclude_expsyms=$lt_exclude_expsyms
20042
20043 # Symbols that must always be exported.
20044 include_expsyms=$lt_include_expsyms
20045
20046 # Commands necessary for linking programs (against libraries) with templates.
20047 prelink_cmds=$lt_prelink_cmds
20048
20049 # Commands necessary for finishing linking programs.
20050 postlink_cmds=$lt_postlink_cmds
20051
20052 # Specify filename containing input files.
20053 file_list_spec=$lt_file_list_spec
20054
20055 # How to hardcode a shared library path into an executable.
20056 hardcode_action=$hardcode_action
20057
20058 # ### END LIBTOOL CONFIG
20059
20060 _LT_EOF
20061
20062 case $host_os in
20063 aix3*)
20064 cat <<\_LT_EOF >> "$cfgfile"
20065 # AIX sometimes has problems with the GCC collect2 program. For some
20066 # reason, if we set the COLLECT_NAMES environment variable, the problems
20067 # vanish in a puff of smoke.
20068 if test "X${COLLECT_NAMES+set}" != Xset; then
20069 COLLECT_NAMES=
20070 export COLLECT_NAMES
20071 fi
20072 _LT_EOF
20073 ;;
20074 esac
20075
20076
20077 ltmain="$ac_aux_dir/ltmain.sh"
20078
20079
20080 # We use sed instead of cat because bash on DJGPP gets confused if
20081 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20082 # text mode, it properly converts lines to CR/LF. This bash problem
20083 # is reportedly fixed, but why not run on old versions too?
20084 sed '$q' "$ltmain" >> "$cfgfile" \
20085 || (rm -f "$cfgfile"; exit 1)
20086
20087 if test x"$xsi_shell" = xyes; then
20088 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20089 func_dirname ()\
20090 {\
20091 \ case ${1} in\
20092 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20093 \ * ) func_dirname_result="${3}" ;;\
20094 \ esac\
20095 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20096 && mv -f "$cfgfile.tmp" "$cfgfile" \
20097 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20098 test 0 -eq $? || _lt_function_replace_fail=:
20099
20100
20101 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20102 func_basename ()\
20103 {\
20104 \ func_basename_result="${1##*/}"\
20105 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20106 && mv -f "$cfgfile.tmp" "$cfgfile" \
20107 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20108 test 0 -eq $? || _lt_function_replace_fail=:
20109
20110
20111 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20112 func_dirname_and_basename ()\
20113 {\
20114 \ case ${1} in\
20115 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20116 \ * ) func_dirname_result="${3}" ;;\
20117 \ esac\
20118 \ func_basename_result="${1##*/}"\
20119 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20120 && mv -f "$cfgfile.tmp" "$cfgfile" \
20121 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20122 test 0 -eq $? || _lt_function_replace_fail=:
20123
20124
20125 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20126 func_stripname ()\
20127 {\
20128 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20129 \ # positional parameters, so assign one to ordinary parameter first.\
20130 \ func_stripname_result=${3}\
20131 \ func_stripname_result=${func_stripname_result#"${1}"}\
20132 \ func_stripname_result=${func_stripname_result%"${2}"}\
20133 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20134 && mv -f "$cfgfile.tmp" "$cfgfile" \
20135 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20136 test 0 -eq $? || _lt_function_replace_fail=:
20137
20138
20139 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20140 func_split_long_opt ()\
20141 {\
20142 \ func_split_long_opt_name=${1%%=*}\
20143 \ func_split_long_opt_arg=${1#*=}\
20144 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20145 && mv -f "$cfgfile.tmp" "$cfgfile" \
20146 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20147 test 0 -eq $? || _lt_function_replace_fail=:
20148
20149
20150 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20151 func_split_short_opt ()\
20152 {\
20153 \ func_split_short_opt_arg=${1#??}\
20154 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20155 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20156 && mv -f "$cfgfile.tmp" "$cfgfile" \
20157 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20158 test 0 -eq $? || _lt_function_replace_fail=:
20159
20160
20161 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20162 func_lo2o ()\
20163 {\
20164 \ case ${1} in\
20165 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20166 \ *) func_lo2o_result=${1} ;;\
20167 \ esac\
20168 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20169 && mv -f "$cfgfile.tmp" "$cfgfile" \
20170 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20171 test 0 -eq $? || _lt_function_replace_fail=:
20172
20173
20174 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20175 func_xform ()\
20176 {\
20177 func_xform_result=${1%.*}.lo\
20178 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20179 && mv -f "$cfgfile.tmp" "$cfgfile" \
20180 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20181 test 0 -eq $? || _lt_function_replace_fail=:
20182
20183
20184 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20185 func_arith ()\
20186 {\
20187 func_arith_result=$(( $* ))\
20188 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20189 && mv -f "$cfgfile.tmp" "$cfgfile" \
20190 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20191 test 0 -eq $? || _lt_function_replace_fail=:
20192
20193
20194 sed -e '/^func_len ()$/,/^} # func_len /c\
20195 func_len ()\
20196 {\
20197 func_len_result=${#1}\
20198 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20199 && mv -f "$cfgfile.tmp" "$cfgfile" \
20200 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20201 test 0 -eq $? || _lt_function_replace_fail=:
20202
20203 fi
20204
20205 if test x"$lt_shell_append" = xyes; then
20206 sed -e '/^func_append ()$/,/^} # func_append /c\
20207 func_append ()\
20208 {\
20209 eval "${1}+=\\${2}"\
20210 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20211 && mv -f "$cfgfile.tmp" "$cfgfile" \
20212 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20213 test 0 -eq $? || _lt_function_replace_fail=:
20214
20215
20216 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20217 func_append_quoted ()\
20218 {\
20219 \ func_quote_for_eval "${2}"\
20220 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20221 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20222 && mv -f "$cfgfile.tmp" "$cfgfile" \
20223 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20224 test 0 -eq $? || _lt_function_replace_fail=:
20225
20226
20227 # Save a `func_append' function call where possible by direct use of '+='
20228 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20229 && mv -f "$cfgfile.tmp" "$cfgfile" \
20230 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20231 test 0 -eq $? || _lt_function_replace_fail=:
20232 else
20233 # Save a `func_append' function call even when '+=' is not available
20234 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20235 && mv -f "$cfgfile.tmp" "$cfgfile" \
20236 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20237 test 0 -eq $? || _lt_function_replace_fail=:
20238 fi
20239
20240 if test x"$_lt_function_replace_fail" = x":"; then
20241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20242 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20243 fi
20244
20245
20246 mv -f "$cfgfile" "$ofile" ||
20247 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20248 chmod +x "$ofile"
20249
20250 ;;
20251
20252 esac
20253 done # for ac_tag
20254
20255
20256 as_fn_exit 0
20257 _ACEOF
20258 ac_clean_files=$ac_clean_files_save
20259
20260 test $ac_write_fail = 0 ||
20261 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20262
20263
20264 # configure is writing to config.log, and then calls config.status.
20265 # config.status does its own redirection, appending to config.log.
20266 # Unfortunately, on DOS this fails, as config.log is still kept open
20267 # by configure, so config.status won't be able to write to it; its
20268 # output is simply discarded. So we exec the FD to /dev/null,
20269 # effectively closing config.log, so it can be properly (re)opened and
20270 # appended to by config.status. When coming back to configure, we
20271 # need to make the FD available again.
20272 if test "$no_create" != yes; then
20273 ac_cs_success=:
20274 ac_config_status_args=
20275 test "$silent" = yes &&
20276 ac_config_status_args="$ac_config_status_args --quiet"
20277 exec 5>/dev/null
20278 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20279 exec 5>>config.log
20280 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20281 # would make configure fail if this is the last instruction.
20282 $ac_cs_success || as_fn_exit 1
20283 fi
20284 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20286 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20287 fi
20288
20289