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 libFS 1.0.5.
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='libFS'
573 PACKAGE_TARNAME='libFS'
574 PACKAGE_VERSION='1.0.5'
575 PACKAGE_STRING='libFS 1.0.5'
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 FS_LIBS
628 FS_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 enable_unix_transport
780 enable_tcp_transport
781 enable_ipv6
782 enable_local_transport
783 with_lint
784 enable_lint_library
785 '
786 ac_precious_vars='build_alias
787 host_alias
788 target_alias
789 CC
790 CFLAGS
791 LDFLAGS
792 LIBS
793 CPPFLAGS
794 CPP
795 PKG_CONFIG
796 FS_CFLAGS
797 FS_LIBS
798 LINT
799 LINT_FLAGS'
800
801
802 # Initialize some variables set by options.
803 ac_init_help=
804 ac_init_version=false
805 ac_unrecognized_opts=
806 ac_unrecognized_sep=
807 # The variables have the same names as the options, with
808 # dashes changed to underlines.
809 cache_file=/dev/null
810 exec_prefix=NONE
811 no_create=
812 no_recursion=
813 prefix=NONE
814 program_prefix=NONE
815 program_suffix=NONE
816 program_transform_name=s,x,x,
817 silent=
818 site=
819 srcdir=
820 verbose=
821 x_includes=NONE
822 x_libraries=NONE
823
824 # Installation directory options.
825 # These are left unexpanded so users can "make install exec_prefix=/foo"
826 # and all the variables that are supposed to be based on exec_prefix
827 # by default will actually change.
828 # Use braces instead of parens because sh, perl, etc. also accept them.
829 # (The list follows the same order as the GNU Coding Standards.)
830 bindir='${exec_prefix}/bin'
831 sbindir='${exec_prefix}/sbin'
832 libexecdir='${exec_prefix}/libexec'
833 datarootdir='${prefix}/share'
834 datadir='${datarootdir}'
835 sysconfdir='${prefix}/etc'
836 sharedstatedir='${prefix}/com'
837 localstatedir='${prefix}/var'
838 includedir='${prefix}/include'
839 oldincludedir='/usr/include'
840 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
841 infodir='${datarootdir}/info'
842 htmldir='${docdir}'
843 dvidir='${docdir}'
844 pdfdir='${docdir}'
845 psdir='${docdir}'
846 libdir='${exec_prefix}/lib'
847 localedir='${datarootdir}/locale'
848 mandir='${datarootdir}/man'
849
850 ac_prev=
851 ac_dashdash=
852 for ac_option
853 do
854 # If the previous option needs an argument, assign it.
855 if test -n "$ac_prev"; then
856 eval $ac_prev=\$ac_option
857 ac_prev=
858 continue
859 fi
860
861 case $ac_option in
862 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
863 *=) ac_optarg= ;;
864 *) ac_optarg=yes ;;
865 esac
866
867 # Accept the important Cygnus configure options, so we can diagnose typos.
868
869 case $ac_dashdash$ac_option in
870 --)
871 ac_dashdash=yes ;;
872
873 -bindir | --bindir | --bindi | --bind | --bin | --bi)
874 ac_prev=bindir ;;
875 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
876 bindir=$ac_optarg ;;
877
878 -build | --build | --buil | --bui | --bu)
879 ac_prev=build_alias ;;
880 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
881 build_alias=$ac_optarg ;;
882
883 -cache-file | --cache-file | --cache-fil | --cache-fi \
884 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
885 ac_prev=cache_file ;;
886 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
887 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
888 cache_file=$ac_optarg ;;
889
890 --config-cache | -C)
891 cache_file=config.cache ;;
892
893 -datadir | --datadir | --datadi | --datad)
894 ac_prev=datadir ;;
895 -datadir=* | --datadir=* | --datadi=* | --datad=*)
896 datadir=$ac_optarg ;;
897
898 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
899 | --dataroo | --dataro | --datar)
900 ac_prev=datarootdir ;;
901 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
902 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
903 datarootdir=$ac_optarg ;;
904
905 -disable-* | --disable-*)
906 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
907 # Reject names that are not valid shell variable names.
908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
909 as_fn_error $? "invalid feature name: $ac_useropt"
910 ac_useropt_orig=$ac_useropt
911 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
912 case $ac_user_opts in
913 *"
914 "enable_$ac_useropt"
915 "*) ;;
916 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
917 ac_unrecognized_sep=', ';;
918 esac
919 eval enable_$ac_useropt=no ;;
920
921 -docdir | --docdir | --docdi | --doc | --do)
922 ac_prev=docdir ;;
923 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
924 docdir=$ac_optarg ;;
925
926 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
927 ac_prev=dvidir ;;
928 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
929 dvidir=$ac_optarg ;;
930
931 -enable-* | --enable-*)
932 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
933 # Reject names that are not valid shell variable names.
934 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
935 as_fn_error $? "invalid feature name: $ac_useropt"
936 ac_useropt_orig=$ac_useropt
937 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938 case $ac_user_opts in
939 *"
940 "enable_$ac_useropt"
941 "*) ;;
942 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
943 ac_unrecognized_sep=', ';;
944 esac
945 eval enable_$ac_useropt=\$ac_optarg ;;
946
947 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949 | --exec | --exe | --ex)
950 ac_prev=exec_prefix ;;
951 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953 | --exec=* | --exe=* | --ex=*)
954 exec_prefix=$ac_optarg ;;
955
956 -gas | --gas | --ga | --g)
957 # Obsolete; use --with-gas.
958 with_gas=yes ;;
959
960 -help | --help | --hel | --he | -h)
961 ac_init_help=long ;;
962 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963 ac_init_help=recursive ;;
964 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965 ac_init_help=short ;;
966
967 -host | --host | --hos | --ho)
968 ac_prev=host_alias ;;
969 -host=* | --host=* | --hos=* | --ho=*)
970 host_alias=$ac_optarg ;;
971
972 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973 ac_prev=htmldir ;;
974 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975 | --ht=*)
976 htmldir=$ac_optarg ;;
977
978 -includedir | --includedir | --includedi | --included | --include \
979 | --includ | --inclu | --incl | --inc)
980 ac_prev=includedir ;;
981 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982 | --includ=* | --inclu=* | --incl=* | --inc=*)
983 includedir=$ac_optarg ;;
984
985 -infodir | --infodir | --infodi | --infod | --info | --inf)
986 ac_prev=infodir ;;
987 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988 infodir=$ac_optarg ;;
989
990 -libdir | --libdir | --libdi | --libd)
991 ac_prev=libdir ;;
992 -libdir=* | --libdir=* | --libdi=* | --libd=*)
993 libdir=$ac_optarg ;;
994
995 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996 | --libexe | --libex | --libe)
997 ac_prev=libexecdir ;;
998 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999 | --libexe=* | --libex=* | --libe=*)
1000 libexecdir=$ac_optarg ;;
1001
1002 -localedir | --localedir | --localedi | --localed | --locale)
1003 ac_prev=localedir ;;
1004 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005 localedir=$ac_optarg ;;
1006
1007 -localstatedir | --localstatedir | --localstatedi | --localstated \
1008 | --localstate | --localstat | --localsta | --localst | --locals)
1009 ac_prev=localstatedir ;;
1010 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1011 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1012 localstatedir=$ac_optarg ;;
1013
1014 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015 ac_prev=mandir ;;
1016 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017 mandir=$ac_optarg ;;
1018
1019 -nfp | --nfp | --nf)
1020 # Obsolete; use --without-fp.
1021 with_fp=no ;;
1022
1023 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024 | --no-cr | --no-c | -n)
1025 no_create=yes ;;
1026
1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029 no_recursion=yes ;;
1030
1031 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033 | --oldin | --oldi | --old | --ol | --o)
1034 ac_prev=oldincludedir ;;
1035 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038 oldincludedir=$ac_optarg ;;
1039
1040 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041 ac_prev=prefix ;;
1042 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043 prefix=$ac_optarg ;;
1044
1045 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046 | --program-pre | --program-pr | --program-p)
1047 ac_prev=program_prefix ;;
1048 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050 program_prefix=$ac_optarg ;;
1051
1052 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053 | --program-suf | --program-su | --program-s)
1054 ac_prev=program_suffix ;;
1055 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057 program_suffix=$ac_optarg ;;
1058
1059 -program-transform-name | --program-transform-name \
1060 | --program-transform-nam | --program-transform-na \
1061 | --program-transform-n | --program-transform- \
1062 | --program-transform | --program-transfor \
1063 | --program-transfo | --program-transf \
1064 | --program-trans | --program-tran \
1065 | --progr-tra | --program-tr | --program-t)
1066 ac_prev=program_transform_name ;;
1067 -program-transform-name=* | --program-transform-name=* \
1068 | --program-transform-nam=* | --program-transform-na=* \
1069 | --program-transform-n=* | --program-transform-=* \
1070 | --program-transform=* | --program-transfor=* \
1071 | --program-transfo=* | --program-transf=* \
1072 | --program-trans=* | --program-tran=* \
1073 | --progr-tra=* | --program-tr=* | --program-t=*)
1074 program_transform_name=$ac_optarg ;;
1075
1076 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077 ac_prev=pdfdir ;;
1078 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079 pdfdir=$ac_optarg ;;
1080
1081 -psdir | --psdir | --psdi | --psd | --ps)
1082 ac_prev=psdir ;;
1083 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084 psdir=$ac_optarg ;;
1085
1086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087 | -silent | --silent | --silen | --sile | --sil)
1088 silent=yes ;;
1089
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 ac_prev=sbindir ;;
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 | --sbi=* | --sb=*)
1094 sbindir=$ac_optarg ;;
1095
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1099 | --sha | --sh)
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 | --sha=* | --sh=*)
1105 sharedstatedir=$ac_optarg ;;
1106
1107 -site | --site | --sit)
1108 ac_prev=site ;;
1109 -site=* | --site=* | --sit=*)
1110 site=$ac_optarg ;;
1111
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 ac_prev=srcdir ;;
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1116
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1123
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1128
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 verbose=yes ;;
1131
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1134
1135 -with-* | --with-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error $? "invalid package name: $ac_useropt"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144 "with_$ac_useropt"
1145 "*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=\$ac_optarg ;;
1150
1151 -without-* | --without-*)
1152 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error $? "invalid package name: $ac_useropt"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1159 *"
1160 "with_$ac_useropt"
1161 "*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1164 esac
1165 eval with_$ac_useropt=no ;;
1166
1167 --x)
1168 # Obsolete; use --with-x.
1169 with_x=yes ;;
1170
1171 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1172 | --x-incl | --x-inc | --x-in | --x-i)
1173 ac_prev=x_includes ;;
1174 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1175 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1176 x_includes=$ac_optarg ;;
1177
1178 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1179 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1180 ac_prev=x_libraries ;;
1181 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1182 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1183 x_libraries=$ac_optarg ;;
1184
1185 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1186 Try \`$0 --help' for more information"
1187 ;;
1188
1189 *=*)
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
1192 case $ac_envvar in #(
1193 '' | [0-9]* | *[!_$as_cr_alnum]* )
1194 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1195 esac
1196 eval $ac_envvar=\$ac_optarg
1197 export $ac_envvar ;;
1198
1199 *)
1200 # FIXME: should be removed in autoconf 3.0.
1201 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1204 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1205 ;;
1206
1207 esac
1208 done
1209
1210 if test -n "$ac_prev"; then
1211 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1212 as_fn_error $? "missing argument to $ac_option"
1213 fi
1214
1215 if test -n "$ac_unrecognized_opts"; then
1216 case $enable_option_checking in
1217 no) ;;
1218 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1219 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1220 esac
1221 fi
1222
1223 # Check all directory arguments for consistency.
1224 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1225 datadir sysconfdir sharedstatedir localstatedir includedir \
1226 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1227 libdir localedir mandir
1228 do
1229 eval ac_val=\$$ac_var
1230 # Remove trailing slashes.
1231 case $ac_val in
1232 */ )
1233 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1234 eval $ac_var=\$ac_val;;
1235 esac
1236 # Be sure to have absolute directory names.
1237 case $ac_val in
1238 [\\/$]* | ?:[\\/]* ) continue;;
1239 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1240 esac
1241 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1242 done
1243
1244 # There might be people who depend on the old broken behavior: `$host'
1245 # used to hold the argument of --host etc.
1246 # FIXME: To remove some day.
1247 build=$build_alias
1248 host=$host_alias
1249 target=$target_alias
1250
1251 # FIXME: To remove some day.
1252 if test "x$host_alias" != x; then
1253 if test "x$build_alias" = x; then
1254 cross_compiling=maybe
1255 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1256 If a cross compiler is detected then cross compile mode will be used" >&2
1257 elif test "x$build_alias" != "x$host_alias"; then
1258 cross_compiling=yes
1259 fi
1260 fi
1261
1262 ac_tool_prefix=
1263 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1264
1265 test "$silent" = yes && exec 6>/dev/null
1266
1267
1268 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1269 ac_ls_di=`ls -di .` &&
1270 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1271 as_fn_error $? "working directory cannot be determined"
1272 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1273 as_fn_error $? "pwd does not report name of working directory"
1274
1275
1276 # Find the source files, if location was not specified.
1277 if test -z "$srcdir"; then
1278 ac_srcdir_defaulted=yes
1279 # Try the directory containing this script, then the parent directory.
1280 ac_confdir=`$as_dirname -- "$as_myself" ||
1281 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1282 X"$as_myself" : 'X\(//\)[^/]' \| \
1283 X"$as_myself" : 'X\(//\)$' \| \
1284 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1285 $as_echo X"$as_myself" |
1286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1287 s//\1/
1288 q
1289 }
1290 /^X\(\/\/\)[^/].*/{
1291 s//\1/
1292 q
1293 }
1294 /^X\(\/\/\)$/{
1295 s//\1/
1296 q
1297 }
1298 /^X\(\/\).*/{
1299 s//\1/
1300 q
1301 }
1302 s/.*/./; q'`
1303 srcdir=$ac_confdir
1304 if test ! -r "$srcdir/$ac_unique_file"; then
1305 srcdir=..
1306 fi
1307 else
1308 ac_srcdir_defaulted=no
1309 fi
1310 if test ! -r "$srcdir/$ac_unique_file"; then
1311 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1312 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1313 fi
1314 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1315 ac_abs_confdir=`(
1316 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1317 pwd)`
1318 # When building in place, set srcdir=.
1319 if test "$ac_abs_confdir" = "$ac_pwd"; then
1320 srcdir=.
1321 fi
1322 # Remove unnecessary trailing slashes from srcdir.
1323 # Double slashes in file names in object file debugging info
1324 # mess up M-x gdb in Emacs.
1325 case $srcdir in
1326 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1327 esac
1328 for ac_var in $ac_precious_vars; do
1329 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1330 eval ac_env_${ac_var}_value=\$${ac_var}
1331 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1332 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1333 done
1334
1335 #
1336 # Report the --help message.
1337 #
1338 if test "$ac_init_help" = "long"; then
1339 # Omit some internal or obsolete options to make the list less imposing.
1340 # This message is too long to be a string in the A/UX 3.1 sh.
1341 cat <<_ACEOF
1342 \`configure' configures libFS 1.0.5 to adapt to many kinds of systems.
1343
1344 Usage: $0 [OPTION]... [VAR=VALUE]...
1345
1346 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1347 VAR=VALUE. See below for descriptions of some of the useful variables.
1348
1349 Defaults for the options are specified in brackets.
1350
1351 Configuration:
1352 -h, --help display this help and exit
1353 --help=short display options specific to this package
1354 --help=recursive display the short help of all the included packages
1355 -V, --version display version information and exit
1356 -q, --quiet, --silent do not print \`checking ...' messages
1357 --cache-file=FILE cache test results in FILE [disabled]
1358 -C, --config-cache alias for \`--cache-file=config.cache'
1359 -n, --no-create do not create output files
1360 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1361
1362 Installation directories:
1363 --prefix=PREFIX install architecture-independent files in PREFIX
1364 [$ac_default_prefix]
1365 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1366 [PREFIX]
1367
1368 By default, \`make install' will install all the files in
1369 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1370 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1371 for instance \`--prefix=\$HOME'.
1372
1373 For better control, use the options below.
1374
1375 Fine tuning of the installation directories:
1376 --bindir=DIR user executables [EPREFIX/bin]
1377 --sbindir=DIR system admin executables [EPREFIX/sbin]
1378 --libexecdir=DIR program executables [EPREFIX/libexec]
1379 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1380 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1381 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1382 --libdir=DIR object code libraries [EPREFIX/lib]
1383 --includedir=DIR C header files [PREFIX/include]
1384 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1385 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1386 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1387 --infodir=DIR info documentation [DATAROOTDIR/info]
1388 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1389 --mandir=DIR man documentation [DATAROOTDIR/man]
1390 --docdir=DIR documentation root [DATAROOTDIR/doc/libFS]
1391 --htmldir=DIR html documentation [DOCDIR]
1392 --dvidir=DIR dvi documentation [DOCDIR]
1393 --pdfdir=DIR pdf documentation [DOCDIR]
1394 --psdir=DIR ps documentation [DOCDIR]
1395 _ACEOF
1396
1397 cat <<\_ACEOF
1398
1399 Program names:
1400 --program-prefix=PREFIX prepend PREFIX to installed program names
1401 --program-suffix=SUFFIX append SUFFIX to installed program names
1402 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1403
1404 System types:
1405 --build=BUILD configure for building on BUILD [guessed]
1406 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1407 _ACEOF
1408 fi
1409
1410 if test -n "$ac_init_help"; then
1411 case $ac_init_help in
1412 short | recursive ) echo "Configuration of libFS 1.0.5:";;
1413 esac
1414 cat <<\_ACEOF
1415
1416 Optional Features:
1417 --disable-option-checking ignore unrecognized --enable/--with options
1418 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1419 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1420 --enable-silent-rules less verbose build output (undo: "make V=1")
1421 --disable-silent-rules verbose build output (undo: "make V=0")
1422 --enable-shared[=PKGS] build shared libraries [default=yes]
1423 --enable-static[=PKGS] build static libraries [default=yes]
1424 --enable-fast-install[=PKGS]
1425 optimize for fast installation [default=yes]
1426 --enable-dependency-tracking
1427 do not reject slow dependency extractors
1428 --disable-dependency-tracking
1429 speeds up one-time build
1430 --disable-libtool-lock avoid locking (might break parallel builds)
1431 --disable-selective-werror
1432 Turn off selective compiler errors. (default:
1433 enabled)
1434 --enable-strict-compilation
1435 Enable all warnings from compiler and make them
1436 errors (default: disabled)
1437 --enable-malloc0returnsnull
1438 malloc(0) returns NULL (default: auto)
1439 --enable-unix-transport Enable UNIX domain socket transport
1440 --enable-tcp-transport Enable TCP socket transport
1441 --enable-ipv6 Enable IPv6 support
1442 --enable-local-transport
1443 Enable os-specific local transport
1444 --enable-lint-library Create lint library (default: disabled)
1445
1446 Optional Packages:
1447 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1448 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1449 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1450 both]
1451 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1452 --with-sysroot=DIR Search for dependent libraries within DIR
1453 (or the compiler's sysroot if not specified).
1454 --with-lint Use a lint-style source code checker (default:
1455 disabled)
1456
1457 Some influential environment variables:
1458 CC C compiler command
1459 CFLAGS C compiler flags
1460 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1461 nonstandard directory <lib dir>
1462 LIBS libraries to pass to the linker, e.g. -l<library>
1463 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1464 you have headers in a nonstandard directory <include dir>
1465 CPP C preprocessor
1466 PKG_CONFIG path to pkg-config utility
1467 FS_CFLAGS C compiler flags for FS, overriding pkg-config
1468 FS_LIBS linker flags for FS, overriding pkg-config
1469 LINT Path to a lint-style command
1470 LINT_FLAGS Flags for the lint-style command
1471
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1474
1475 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1476 _ACEOF
1477 ac_status=$?
1478 fi
1479
1480 if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
1482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483 test -d "$ac_dir" ||
1484 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1485 continue
1486 ac_builddir=.
1487
1488 case "$ac_dir" in
1489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 *)
1491 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1492 # A ".." for each directory in $ac_dir_suffix.
1493 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1494 case $ac_top_builddir_sub in
1495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497 esac ;;
1498 esac
1499 ac_abs_top_builddir=$ac_pwd
1500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1501 # for backward compatibility:
1502 ac_top_builddir=$ac_top_build_prefix
1503
1504 case $srcdir in
1505 .) # We are building in place.
1506 ac_srcdir=.
1507 ac_top_srcdir=$ac_top_builddir_sub
1508 ac_abs_top_srcdir=$ac_pwd ;;
1509 [\\/]* | ?:[\\/]* ) # Absolute name.
1510 ac_srcdir=$srcdir$ac_dir_suffix;
1511 ac_top_srcdir=$srcdir
1512 ac_abs_top_srcdir=$srcdir ;;
1513 *) # Relative name.
1514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515 ac_top_srcdir=$ac_top_build_prefix$srcdir
1516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1517 esac
1518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1519
1520 cd "$ac_dir" || { ac_status=$?; continue; }
1521 # Check for guested configure.
1522 if test -f "$ac_srcdir/configure.gnu"; then
1523 echo &&
1524 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525 elif test -f "$ac_srcdir/configure"; then
1526 echo &&
1527 $SHELL "$ac_srcdir/configure" --help=recursive
1528 else
1529 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1530 fi || ac_status=$?
1531 cd "$ac_pwd" || { ac_status=$?; break; }
1532 done
1533 fi
1534
1535 test -n "$ac_init_help" && exit $ac_status
1536 if $ac_init_version; then
1537 cat <<\_ACEOF
1538 libFS configure 1.0.5
1539 generated by GNU Autoconf 2.68
1540
1541 Copyright (C) 2010 Free Software Foundation, Inc.
1542 This configure script is free software; the Free Software Foundation
1543 gives unlimited permission to copy, distribute and modify it.
1544 _ACEOF
1545 exit
1546 fi
1547
1548 ## ------------------------ ##
1549 ## Autoconf initialization. ##
1550 ## ------------------------ ##
1551
1552 # ac_fn_c_try_compile LINENO
1553 # --------------------------
1554 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1555 ac_fn_c_try_compile ()
1556 {
1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558 rm -f conftest.$ac_objext
1559 if { { ac_try="$ac_compile"
1560 case "(($ac_try" in
1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562 *) ac_try_echo=$ac_try;;
1563 esac
1564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565 $as_echo "$ac_try_echo"; } >&5
1566 (eval "$ac_compile") 2>conftest.err
1567 ac_status=$?
1568 if test -s conftest.err; then
1569 grep -v '^ *+' conftest.err >conftest.er1
1570 cat conftest.er1 >&5
1571 mv -f conftest.er1 conftest.err
1572 fi
1573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574 test $ac_status = 0; } && {
1575 test -z "$ac_c_werror_flag" ||
1576 test ! -s conftest.err
1577 } && test -s conftest.$ac_objext; then :
1578 ac_retval=0
1579 else
1580 $as_echo "$as_me: failed program was:" >&5
1581 sed 's/^/| /' conftest.$ac_ext >&5
1582
1583 ac_retval=1
1584 fi
1585 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1586 as_fn_set_status $ac_retval
1587
1588 } # ac_fn_c_try_compile
1589
1590 # ac_fn_c_try_link LINENO
1591 # -----------------------
1592 # Try to link conftest.$ac_ext, and return whether this succeeded.
1593 ac_fn_c_try_link ()
1594 {
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 rm -f conftest.$ac_objext conftest$ac_exeext
1597 if { { ac_try="$ac_link"
1598 case "(($ac_try" in
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1601 esac
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_link") 2>conftest.err
1605 ac_status=$?
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1610 fi
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } && {
1613 test -z "$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1615 } && test -s conftest$ac_exeext && {
1616 test "$cross_compiling" = yes ||
1617 $as_test_x conftest$ac_exeext
1618 }; then :
1619 ac_retval=0
1620 else
1621 $as_echo "$as_me: failed program was:" >&5
1622 sed 's/^/| /' conftest.$ac_ext >&5
1623
1624 ac_retval=1
1625 fi
1626 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1627 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1628 # interfere with the next link command; also delete a directory that is
1629 # left behind by Apple's compiler. We do this before executing the actions.
1630 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632 as_fn_set_status $ac_retval
1633
1634 } # ac_fn_c_try_link
1635
1636 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1637 # -------------------------------------------------------
1638 # Tests whether HEADER exists and can be compiled using the include files in
1639 # INCLUDES, setting the cache variable VAR accordingly.
1640 ac_fn_c_check_header_compile ()
1641 {
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1644 $as_echo_n "checking for $2... " >&6; }
1645 if eval \${$3+:} false; then :
1646 $as_echo_n "(cached) " >&6
1647 else
1648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1649 /* end confdefs.h. */
1650 $4
1651 #include <$2>
1652 _ACEOF
1653 if ac_fn_c_try_compile "$LINENO"; then :
1654 eval "$3=yes"
1655 else
1656 eval "$3=no"
1657 fi
1658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1659 fi
1660 eval ac_res=\$$3
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1662 $as_echo "$ac_res" >&6; }
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664
1665 } # ac_fn_c_check_header_compile
1666
1667 # ac_fn_c_try_cpp LINENO
1668 # ----------------------
1669 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1670 ac_fn_c_try_cpp ()
1671 {
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 if { { ac_try="$ac_cpp conftest.$ac_ext"
1674 case "(($ac_try" in
1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676 *) ac_try_echo=$ac_try;;
1677 esac
1678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679 $as_echo "$ac_try_echo"; } >&5
1680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1681 ac_status=$?
1682 if test -s conftest.err; then
1683 grep -v '^ *+' conftest.err >conftest.er1
1684 cat conftest.er1 >&5
1685 mv -f conftest.er1 conftest.err
1686 fi
1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688 test $ac_status = 0; } > conftest.i && {
1689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1690 test ! -s conftest.err
1691 }; then :
1692 ac_retval=0
1693 else
1694 $as_echo "$as_me: failed program was:" >&5
1695 sed 's/^/| /' conftest.$ac_ext >&5
1696
1697 ac_retval=1
1698 fi
1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700 as_fn_set_status $ac_retval
1701
1702 } # ac_fn_c_try_cpp
1703
1704 # ac_fn_c_try_run LINENO
1705 # ----------------------
1706 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1707 # that executables *can* be run.
1708 ac_fn_c_try_run ()
1709 {
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 if { { ac_try="$ac_link"
1712 case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1715 esac
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_link") 2>&5
1719 ac_status=$?
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1722 { { case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725 esac
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 $as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_try") 2>&5
1729 ac_status=$?
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; }; }; then :
1732 ac_retval=0
1733 else
1734 $as_echo "$as_me: program exited with status $ac_status" >&5
1735 $as_echo "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1737
1738 ac_retval=$ac_status
1739 fi
1740 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742 as_fn_set_status $ac_retval
1743
1744 } # ac_fn_c_try_run
1745
1746 # ac_fn_c_check_func LINENO FUNC VAR
1747 # ----------------------------------
1748 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1749 ac_fn_c_check_func ()
1750 {
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753 $as_echo_n "checking for $2... " >&6; }
1754 if eval \${$3+:} false; then :
1755 $as_echo_n "(cached) " >&6
1756 else
1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758 /* end confdefs.h. */
1759 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1761 #define $2 innocuous_$2
1762
1763 /* System header to define __stub macros and hopefully few prototypes,
1764 which can conflict with char $2 (); below.
1765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1766 <limits.h> exists even on freestanding compilers. */
1767
1768 #ifdef __STDC__
1769 # include <limits.h>
1770 #else
1771 # include <assert.h>
1772 #endif
1773
1774 #undef $2
1775
1776 /* Override any GCC internal prototype to avoid an error.
1777 Use char because int might match the return type of a GCC
1778 builtin and then its argument prototype would still apply. */
1779 #ifdef __cplusplus
1780 extern "C"
1781 #endif
1782 char $2 ();
1783 /* The GNU C library defines this for functions which it implements
1784 to always fail with ENOSYS. Some functions are actually named
1785 something starting with __ and the normal name is an alias. */
1786 #if defined __stub_$2 || defined __stub___$2
1787 choke me
1788 #endif
1789
1790 int
1791 main ()
1792 {
1793 return $2 ();
1794 ;
1795 return 0;
1796 }
1797 _ACEOF
1798 if ac_fn_c_try_link "$LINENO"; then :
1799 eval "$3=yes"
1800 else
1801 eval "$3=no"
1802 fi
1803 rm -f core conftest.err conftest.$ac_objext \
1804 conftest$ac_exeext conftest.$ac_ext
1805 fi
1806 eval ac_res=\$$3
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808 $as_echo "$ac_res" >&6; }
1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810
1811 } # ac_fn_c_check_func
1812
1813 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1814 # ---------------------------------------------
1815 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1816 # accordingly.
1817 ac_fn_c_check_decl ()
1818 {
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 as_decl_name=`echo $2|sed 's/ *(.*//'`
1821 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1823 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1824 if eval \${$3+:} false; then :
1825 $as_echo_n "(cached) " >&6
1826 else
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h. */
1829 $4
1830 int
1831 main ()
1832 {
1833 #ifndef $as_decl_name
1834 #ifdef __cplusplus
1835 (void) $as_decl_use;
1836 #else
1837 (void) $as_decl_name;
1838 #endif
1839 #endif
1840
1841 ;
1842 return 0;
1843 }
1844 _ACEOF
1845 if ac_fn_c_try_compile "$LINENO"; then :
1846 eval "$3=yes"
1847 else
1848 eval "$3=no"
1849 fi
1850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1851 fi
1852 eval ac_res=\$$3
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854 $as_echo "$ac_res" >&6; }
1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1856
1857 } # ac_fn_c_check_decl
1858
1859 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1860 # ----------------------------------------------------
1861 # Tries to find if the field MEMBER exists in type AGGR, after including
1862 # INCLUDES, setting cache variable VAR accordingly.
1863 ac_fn_c_check_member ()
1864 {
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1867 $as_echo_n "checking for $2.$3... " >&6; }
1868 if eval \${$4+:} false; then :
1869 $as_echo_n "(cached) " >&6
1870 else
1871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1872 /* end confdefs.h. */
1873 $5
1874 int
1875 main ()
1876 {
1877 static $2 ac_aggr;
1878 if (ac_aggr.$3)
1879 return 0;
1880 ;
1881 return 0;
1882 }
1883 _ACEOF
1884 if ac_fn_c_try_compile "$LINENO"; then :
1885 eval "$4=yes"
1886 else
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1889 $5
1890 int
1891 main ()
1892 {
1893 static $2 ac_aggr;
1894 if (sizeof ac_aggr.$3)
1895 return 0;
1896 ;
1897 return 0;
1898 }
1899 _ACEOF
1900 if ac_fn_c_try_compile "$LINENO"; then :
1901 eval "$4=yes"
1902 else
1903 eval "$4=no"
1904 fi
1905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1906 fi
1907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1908 fi
1909 eval ac_res=\$$4
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 $as_echo "$ac_res" >&6; }
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913
1914 } # ac_fn_c_check_member
1915
1916 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1917 # -------------------------------------------
1918 # Tests whether TYPE exists after having included INCLUDES, setting cache
1919 # variable VAR accordingly.
1920 ac_fn_c_check_type ()
1921 {
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924 $as_echo_n "checking for $2... " >&6; }
1925 if eval \${$3+:} false; then :
1926 $as_echo_n "(cached) " >&6
1927 else
1928 eval "$3=no"
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h. */
1931 $4
1932 int
1933 main ()
1934 {
1935 if (sizeof ($2))
1936 return 0;
1937 ;
1938 return 0;
1939 }
1940 _ACEOF
1941 if ac_fn_c_try_compile "$LINENO"; then :
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h. */
1944 $4
1945 int
1946 main ()
1947 {
1948 if (sizeof (($2)))
1949 return 0;
1950 ;
1951 return 0;
1952 }
1953 _ACEOF
1954 if ac_fn_c_try_compile "$LINENO"; then :
1955
1956 else
1957 eval "$3=yes"
1958 fi
1959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1960 fi
1961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1962 fi
1963 eval ac_res=\$$3
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1967
1968 } # ac_fn_c_check_type
1969 cat >config.log <<_ACEOF
1970 This file contains any messages produced by compilers while
1971 running configure, to aid debugging if configure makes a mistake.
1972
1973 It was created by libFS $as_me 1.0.5, which was
1974 generated by GNU Autoconf 2.68. Invocation command line was
1975
1976 $ $0 $@
1977
1978 _ACEOF
1979 exec 5>>config.log
1980 {
1981 cat <<_ASUNAME
1982 ## --------- ##
1983 ## Platform. ##
1984 ## --------- ##
1985
1986 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1987 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1988 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1989 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1990 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1991
1992 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1993 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1994
1995 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1996 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1997 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1998 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1999 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2000 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2001 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2002
2003 _ASUNAME
2004
2005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006 for as_dir in $PATH
2007 do
2008 IFS=$as_save_IFS
2009 test -z "$as_dir" && as_dir=.
2010 $as_echo "PATH: $as_dir"
2011 done
2012 IFS=$as_save_IFS
2013
2014 } >&5
2015
2016 cat >&5 <<_ACEOF
2017
2018
2019 ## ----------- ##
2020 ## Core tests. ##
2021 ## ----------- ##
2022
2023 _ACEOF
2024
2025
2026 # Keep a trace of the command line.
2027 # Strip out --no-create and --no-recursion so they do not pile up.
2028 # Strip out --silent because we don't want to record it for future runs.
2029 # Also quote any args containing shell meta-characters.
2030 # Make two passes to allow for proper duplicate-argument suppression.
2031 ac_configure_args=
2032 ac_configure_args0=
2033 ac_configure_args1=
2034 ac_must_keep_next=false
2035 for ac_pass in 1 2
2036 do
2037 for ac_arg
2038 do
2039 case $ac_arg in
2040 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2041 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2042 | -silent | --silent | --silen | --sile | --sil)
2043 continue ;;
2044 *\'*)
2045 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2046 esac
2047 case $ac_pass in
2048 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2049 2)
2050 as_fn_append ac_configure_args1 " '$ac_arg'"
2051 if test $ac_must_keep_next = true; then
2052 ac_must_keep_next=false # Got value, back to normal.
2053 else
2054 case $ac_arg in
2055 *=* | --config-cache | -C | -disable-* | --disable-* \
2056 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2057 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2058 | -with-* | --with-* | -without-* | --without-* | --x)
2059 case "$ac_configure_args0 " in
2060 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2061 esac
2062 ;;
2063 -* ) ac_must_keep_next=true ;;
2064 esac
2065 fi
2066 as_fn_append ac_configure_args " '$ac_arg'"
2067 ;;
2068 esac
2069 done
2070 done
2071 { ac_configure_args0=; unset ac_configure_args0;}
2072 { ac_configure_args1=; unset ac_configure_args1;}
2073
2074 # When interrupted or exit'd, cleanup temporary files, and complete
2075 # config.log. We remove comments because anyway the quotes in there
2076 # would cause problems or look ugly.
2077 # WARNING: Use '\'' to represent an apostrophe within the trap.
2078 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2079 trap 'exit_status=$?
2080 # Save into config.log some information that might help in debugging.
2081 {
2082 echo
2083
2084 $as_echo "## ---------------- ##
2085 ## Cache variables. ##
2086 ## ---------------- ##"
2087 echo
2088 # The following way of writing the cache mishandles newlines in values,
2089 (
2090 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2091 eval ac_val=\$$ac_var
2092 case $ac_val in #(
2093 *${as_nl}*)
2094 case $ac_var in #(
2095 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2096 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2097 esac
2098 case $ac_var in #(
2099 _ | IFS | as_nl) ;; #(
2100 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2101 *) { eval $ac_var=; unset $ac_var;} ;;
2102 esac ;;
2103 esac
2104 done
2105 (set) 2>&1 |
2106 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2107 *${as_nl}ac_space=\ *)
2108 sed -n \
2109 "s/'\''/'\''\\\\'\'''\''/g;
2110 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2111 ;; #(
2112 *)
2113 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2114 ;;
2115 esac |
2116 sort
2117 )
2118 echo
2119
2120 $as_echo "## ----------------- ##
2121 ## Output variables. ##
2122 ## ----------------- ##"
2123 echo
2124 for ac_var in $ac_subst_vars
2125 do
2126 eval ac_val=\$$ac_var
2127 case $ac_val in
2128 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2129 esac
2130 $as_echo "$ac_var='\''$ac_val'\''"
2131 done | sort
2132 echo
2133
2134 if test -n "$ac_subst_files"; then
2135 $as_echo "## ------------------- ##
2136 ## File substitutions. ##
2137 ## ------------------- ##"
2138 echo
2139 for ac_var in $ac_subst_files
2140 do
2141 eval ac_val=\$$ac_var
2142 case $ac_val in
2143 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2144 esac
2145 $as_echo "$ac_var='\''$ac_val'\''"
2146 done | sort
2147 echo
2148 fi
2149
2150 if test -s confdefs.h; then
2151 $as_echo "## ----------- ##
2152 ## confdefs.h. ##
2153 ## ----------- ##"
2154 echo
2155 cat confdefs.h
2156 echo
2157 fi
2158 test "$ac_signal" != 0 &&
2159 $as_echo "$as_me: caught signal $ac_signal"
2160 $as_echo "$as_me: exit $exit_status"
2161 } >&5
2162 rm -f core *.core core.conftest.* &&
2163 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2164 exit $exit_status
2165 ' 0
2166 for ac_signal in 1 2 13 15; do
2167 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2168 done
2169 ac_signal=0
2170
2171 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2172 rm -f -r conftest* confdefs.h
2173
2174 $as_echo "/* confdefs.h */" > confdefs.h
2175
2176 # Predefined preprocessor variables.
2177
2178 cat >>confdefs.h <<_ACEOF
2179 #define PACKAGE_NAME "$PACKAGE_NAME"
2180 _ACEOF
2181
2182 cat >>confdefs.h <<_ACEOF
2183 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2184 _ACEOF
2185
2186 cat >>confdefs.h <<_ACEOF
2187 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2188 _ACEOF
2189
2190 cat >>confdefs.h <<_ACEOF
2191 #define PACKAGE_STRING "$PACKAGE_STRING"
2192 _ACEOF
2193
2194 cat >>confdefs.h <<_ACEOF
2195 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2196 _ACEOF
2197
2198 cat >>confdefs.h <<_ACEOF
2199 #define PACKAGE_URL "$PACKAGE_URL"
2200 _ACEOF
2201
2202
2203 # Let the site file select an alternate cache file if it wants to.
2204 # Prefer an explicitly selected file to automatically selected ones.
2205 ac_site_file1=NONE
2206 ac_site_file2=NONE
2207 if test -n "$CONFIG_SITE"; then
2208 # We do not want a PATH search for config.site.
2209 case $CONFIG_SITE in #((
2210 -*) ac_site_file1=./$CONFIG_SITE;;
2211 */*) ac_site_file1=$CONFIG_SITE;;
2212 *) ac_site_file1=./$CONFIG_SITE;;
2213 esac
2214 elif test "x$prefix" != xNONE; then
2215 ac_site_file1=$prefix/share/config.site
2216 ac_site_file2=$prefix/etc/config.site
2217 else
2218 ac_site_file1=$ac_default_prefix/share/config.site
2219 ac_site_file2=$ac_default_prefix/etc/config.site
2220 fi
2221 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2222 do
2223 test "x$ac_site_file" = xNONE && continue
2224 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2226 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2227 sed 's/^/| /' "$ac_site_file" >&5
2228 . "$ac_site_file" \
2229 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2231 as_fn_error $? "failed to load site script $ac_site_file
2232 See \`config.log' for more details" "$LINENO" 5; }
2233 fi
2234 done
2235
2236 if test -r "$cache_file"; then
2237 # Some versions of bash will fail to source /dev/null (special files
2238 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2239 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2241 $as_echo "$as_me: loading cache $cache_file" >&6;}
2242 case $cache_file in
2243 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2244 *) . "./$cache_file";;
2245 esac
2246 fi
2247 else
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2249 $as_echo "$as_me: creating cache $cache_file" >&6;}
2250 >$cache_file
2251 fi
2252
2253 # Check that the precious variables saved in the cache have kept the same
2254 # value.
2255 ac_cache_corrupted=false
2256 for ac_var in $ac_precious_vars; do
2257 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2258 eval ac_new_set=\$ac_env_${ac_var}_set
2259 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2260 eval ac_new_val=\$ac_env_${ac_var}_value
2261 case $ac_old_set,$ac_new_set in
2262 set,)
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2264 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2265 ac_cache_corrupted=: ;;
2266 ,set)
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2268 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2269 ac_cache_corrupted=: ;;
2270 ,);;
2271 *)
2272 if test "x$ac_old_val" != "x$ac_new_val"; then
2273 # differences in whitespace do not lead to failure.
2274 ac_old_val_w=`echo x $ac_old_val`
2275 ac_new_val_w=`echo x $ac_new_val`
2276 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2278 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2279 ac_cache_corrupted=:
2280 else
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2282 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2283 eval $ac_var=\$ac_old_val
2284 fi
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2286 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2288 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2289 fi;;
2290 esac
2291 # Pass precious variables to config.status.
2292 if test "$ac_new_set" = set; then
2293 case $ac_new_val in
2294 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2295 *) ac_arg=$ac_var=$ac_new_val ;;
2296 esac
2297 case " $ac_configure_args " in
2298 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2299 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2300 esac
2301 fi
2302 done
2303 if $ac_cache_corrupted; then
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2307 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2308 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2309 fi
2310 ## -------------------- ##
2311 ## Main body of script. ##
2312 ## -------------------- ##
2313
2314 ac_ext=c
2315 ac_cpp='$CPP $CPPFLAGS'
2316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2319
2320
2321
2322 ac_config_headers="$ac_config_headers config.h"
2323
2324
2325 # Initialize Automake
2326 am__api_version='1.13'
2327
2328 ac_aux_dir=
2329 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2330 if test -f "$ac_dir/install-sh"; then
2331 ac_aux_dir=$ac_dir
2332 ac_install_sh="$ac_aux_dir/install-sh -c"
2333 break
2334 elif test -f "$ac_dir/install.sh"; then
2335 ac_aux_dir=$ac_dir
2336 ac_install_sh="$ac_aux_dir/install.sh -c"
2337 break
2338 elif test -f "$ac_dir/shtool"; then
2339 ac_aux_dir=$ac_dir
2340 ac_install_sh="$ac_aux_dir/shtool install -c"
2341 break
2342 fi
2343 done
2344 if test -z "$ac_aux_dir"; then
2345 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2346 fi
2347
2348 # These three variables are undocumented and unsupported,
2349 # and are intended to be withdrawn in a future Autoconf release.
2350 # They can cause serious problems if a builder's source tree is in a directory
2351 # whose full name contains unusual characters.
2352 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2353 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2354 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2355
2356
2357 # Find a good install program. We prefer a C program (faster),
2358 # so one script is as good as another. But avoid the broken or
2359 # incompatible versions:
2360 # SysV /etc/install, /usr/sbin/install
2361 # SunOS /usr/etc/install
2362 # IRIX /sbin/install
2363 # AIX /bin/install
2364 # AmigaOS /C/install, which installs bootblocks on floppy discs
2365 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2366 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2367 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2368 # OS/2's system install, which has a completely different semantic
2369 # ./install, which can be erroneously created by make from ./install.sh.
2370 # Reject install programs that cannot install multiple files.
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2372 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2373 if test -z "$INSTALL"; then
2374 if ${ac_cv_path_install+:} false; then :
2375 $as_echo_n "(cached) " >&6
2376 else
2377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378 for as_dir in $PATH
2379 do
2380 IFS=$as_save_IFS
2381 test -z "$as_dir" && as_dir=.
2382 # Account for people who put trailing slashes in PATH elements.
2383 case $as_dir/ in #((
2384 ./ | .// | /[cC]/* | \
2385 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2386 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2387 /usr/ucb/* ) ;;
2388 *)
2389 # OSF1 and SCO ODT 3.0 have their own names for install.
2390 # Don't use installbsd from OSF since it installs stuff as root
2391 # by default.
2392 for ac_prog in ginstall scoinst install; do
2393 for ac_exec_ext in '' $ac_executable_extensions; do
2394 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2395 if test $ac_prog = install &&
2396 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2397 # AIX install. It has an incompatible calling convention.
2398 :
2399 elif test $ac_prog = install &&
2400 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2401 # program-specific install script used by HP pwplus--don't use.
2402 :
2403 else
2404 rm -rf conftest.one conftest.two conftest.dir
2405 echo one > conftest.one
2406 echo two > conftest.two
2407 mkdir conftest.dir
2408 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2409 test -s conftest.one && test -s conftest.two &&
2410 test -s conftest.dir/conftest.one &&
2411 test -s conftest.dir/conftest.two
2412 then
2413 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2414 break 3
2415 fi
2416 fi
2417 fi
2418 done
2419 done
2420 ;;
2421 esac
2422
2423 done
2424 IFS=$as_save_IFS
2425
2426 rm -rf conftest.one conftest.two conftest.dir
2427
2428 fi
2429 if test "${ac_cv_path_install+set}" = set; then
2430 INSTALL=$ac_cv_path_install
2431 else
2432 # As a last resort, use the slow shell script. Don't cache a
2433 # value for INSTALL within a source directory, because that will
2434 # break other packages using the cache if that directory is
2435 # removed, or if the value is a relative name.
2436 INSTALL=$ac_install_sh
2437 fi
2438 fi
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2440 $as_echo "$INSTALL" >&6; }
2441
2442 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2443 # It thinks the first close brace ends the variable substitution.
2444 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2445
2446 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2447
2448 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2449
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2451 $as_echo_n "checking whether build environment is sane... " >&6; }
2452 # Reject unsafe characters in $srcdir or the absolute working directory
2453 # name. Accept space and tab only in the latter.
2454 am_lf='
2455 '
2456 case `pwd` in
2457 *[\\\"\#\$\&\'\`$am_lf]*)
2458 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2459 esac
2460 case $srcdir in
2461 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2462 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2463 esac
2464
2465 # Do 'set' in a subshell so we don't clobber the current shell's
2466 # arguments. Must try -L first in case configure is actually a
2467 # symlink; some systems play weird games with the mod time of symlinks
2468 # (eg FreeBSD returns the mod time of the symlink's containing
2469 # directory).
2470 if (
2471 am_has_slept=no
2472 for am_try in 1 2; do
2473 echo "timestamp, slept: $am_has_slept" > conftest.file
2474 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2475 if test "$*" = "X"; then
2476 # -L didn't work.
2477 set X `ls -t "$srcdir/configure" conftest.file`
2478 fi
2479 if test "$*" != "X $srcdir/configure conftest.file" \
2480 && test "$*" != "X conftest.file $srcdir/configure"; then
2481
2482 # If neither matched, then we have a broken ls. This can happen
2483 # if, for instance, CONFIG_SHELL is bash and it inherits a
2484 # broken ls alias from the environment. This has actually
2485 # happened. Such a system could not be considered "sane".
2486 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2487 alias in your environment" "$LINENO" 5
2488 fi
2489 if test "$2" = conftest.file || test $am_try -eq 2; then
2490 break
2491 fi
2492 # Just in case.
2493 sleep 1
2494 am_has_slept=yes
2495 done
2496 test "$2" = conftest.file
2497 )
2498 then
2499 # Ok.
2500 :
2501 else
2502 as_fn_error $? "newly created file is older than distributed files!
2503 Check your system clock" "$LINENO" 5
2504 fi
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2506 $as_echo "yes" >&6; }
2507 # If we didn't sleep, we still need to ensure time stamps of config.status and
2508 # generated files are strictly newer.
2509 am_sleep_pid=
2510 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2511 ( sleep 1 ) &
2512 am_sleep_pid=$!
2513 fi
2514
2515 rm -f conftest.file
2516
2517 test "$program_prefix" != NONE &&
2518 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2519 # Use a double $ so make ignores it.
2520 test "$program_suffix" != NONE &&
2521 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2522 # Double any \ or $.
2523 # By default was `s,x,x', remove it if useless.
2524 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2525 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2526
2527 # expand $ac_aux_dir to an absolute path
2528 am_aux_dir=`cd $ac_aux_dir && pwd`
2529
2530 if test x"${MISSING+set}" != xset; then
2531 case $am_aux_dir in
2532 *\ * | *\ *)
2533 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2534 *)
2535 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2536 esac
2537 fi
2538 # Use eval to expand $SHELL
2539 if eval "$MISSING --is-lightweight"; then
2540 am_missing_run="$MISSING "
2541 else
2542 am_missing_run=
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2544 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2545 fi
2546
2547 if test x"${install_sh}" != xset; then
2548 case $am_aux_dir in
2549 *\ * | *\ *)
2550 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2551 *)
2552 install_sh="\${SHELL} $am_aux_dir/install-sh"
2553 esac
2554 fi
2555
2556 # Installed binaries are usually stripped using 'strip' when the user
2557 # run "make install-strip". However 'strip' might not be the right
2558 # tool to use in cross-compilation environments, therefore Automake
2559 # will honor the 'STRIP' environment variable to overrule this program.
2560 if test "$cross_compiling" != no; then
2561 if test -n "$ac_tool_prefix"; then
2562 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2563 set dummy ${ac_tool_prefix}strip; ac_word=$2
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2565 $as_echo_n "checking for $ac_word... " >&6; }
2566 if ${ac_cv_prog_STRIP+:} false; then :
2567 $as_echo_n "(cached) " >&6
2568 else
2569 if test -n "$STRIP"; then
2570 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2571 else
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 for as_dir in $PATH
2574 do
2575 IFS=$as_save_IFS
2576 test -z "$as_dir" && as_dir=.
2577 for ac_exec_ext in '' $ac_executable_extensions; do
2578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2579 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2581 break 2
2582 fi
2583 done
2584 done
2585 IFS=$as_save_IFS
2586
2587 fi
2588 fi
2589 STRIP=$ac_cv_prog_STRIP
2590 if test -n "$STRIP"; then
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2592 $as_echo "$STRIP" >&6; }
2593 else
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2595 $as_echo "no" >&6; }
2596 fi
2597
2598
2599 fi
2600 if test -z "$ac_cv_prog_STRIP"; then
2601 ac_ct_STRIP=$STRIP
2602 # Extract the first word of "strip", so it can be a program name with args.
2603 set dummy strip; ac_word=$2
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2605 $as_echo_n "checking for $ac_word... " >&6; }
2606 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2607 $as_echo_n "(cached) " >&6
2608 else
2609 if test -n "$ac_ct_STRIP"; then
2610 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2611 else
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 for as_dir in $PATH
2614 do
2615 IFS=$as_save_IFS
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2619 ac_cv_prog_ac_ct_STRIP="strip"
2620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2621 break 2
2622 fi
2623 done
2624 done
2625 IFS=$as_save_IFS
2626
2627 fi
2628 fi
2629 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2630 if test -n "$ac_ct_STRIP"; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2632 $as_echo "$ac_ct_STRIP" >&6; }
2633 else
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2635 $as_echo "no" >&6; }
2636 fi
2637
2638 if test "x$ac_ct_STRIP" = x; then
2639 STRIP=":"
2640 else
2641 case $cross_compiling:$ac_tool_warned in
2642 yes:)
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2645 ac_tool_warned=yes ;;
2646 esac
2647 STRIP=$ac_ct_STRIP
2648 fi
2649 else
2650 STRIP="$ac_cv_prog_STRIP"
2651 fi
2652
2653 fi
2654 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2655
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2657 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2658 if test -z "$MKDIR_P"; then
2659 if ${ac_cv_path_mkdir+:} false; then :
2660 $as_echo_n "(cached) " >&6
2661 else
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2664 do
2665 IFS=$as_save_IFS
2666 test -z "$as_dir" && as_dir=.
2667 for ac_prog in mkdir gmkdir; do
2668 for ac_exec_ext in '' $ac_executable_extensions; do
2669 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2670 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2671 'mkdir (GNU coreutils) '* | \
2672 'mkdir (coreutils) '* | \
2673 'mkdir (fileutils) '4.1*)
2674 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2675 break 3;;
2676 esac
2677 done
2678 done
2679 done
2680 IFS=$as_save_IFS
2681
2682 fi
2683
2684 test -d ./--version && rmdir ./--version
2685 if test "${ac_cv_path_mkdir+set}" = set; then
2686 MKDIR_P="$ac_cv_path_mkdir -p"
2687 else
2688 # As a last resort, use the slow shell script. Don't cache a
2689 # value for MKDIR_P within a source directory, because that will
2690 # break other packages using the cache if that directory is
2691 # removed, or if the value is a relative name.
2692 MKDIR_P="$ac_install_sh -d"
2693 fi
2694 fi
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2696 $as_echo "$MKDIR_P" >&6; }
2697
2698 for ac_prog in gawk mawk nawk awk
2699 do
2700 # Extract the first word of "$ac_prog", so it can be a program name with args.
2701 set dummy $ac_prog; ac_word=$2
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2703 $as_echo_n "checking for $ac_word... " >&6; }
2704 if ${ac_cv_prog_AWK+:} false; then :
2705 $as_echo_n "(cached) " >&6
2706 else
2707 if test -n "$AWK"; then
2708 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2709 else
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 for as_dir in $PATH
2712 do
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
2716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2717 ac_cv_prog_AWK="$ac_prog"
2718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 break 2
2720 fi
2721 done
2722 done
2723 IFS=$as_save_IFS
2724
2725 fi
2726 fi
2727 AWK=$ac_cv_prog_AWK
2728 if test -n "$AWK"; then
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2730 $as_echo "$AWK" >&6; }
2731 else
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2733 $as_echo "no" >&6; }
2734 fi
2735
2736
2737 test -n "$AWK" && break
2738 done
2739
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2741 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2742 set x ${MAKE-make}
2743 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2744 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2745 $as_echo_n "(cached) " >&6
2746 else
2747 cat >conftest.make <<\_ACEOF
2748 SHELL = /bin/sh
2749 all:
2750 @echo '@@@%%%=$(MAKE)=@@@%%%'
2751 _ACEOF
2752 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2753 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2754 *@@@%%%=?*=@@@%%%*)
2755 eval ac_cv_prog_make_${ac_make}_set=yes;;
2756 *)
2757 eval ac_cv_prog_make_${ac_make}_set=no;;
2758 esac
2759 rm -f conftest.make
2760 fi
2761 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2763 $as_echo "yes" >&6; }
2764 SET_MAKE=
2765 else
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767 $as_echo "no" >&6; }
2768 SET_MAKE="MAKE=${MAKE-make}"
2769 fi
2770
2771 rm -rf .tst 2>/dev/null
2772 mkdir .tst 2>/dev/null
2773 if test -d .tst; then
2774 am__leading_dot=.
2775 else
2776 am__leading_dot=_
2777 fi
2778 rmdir .tst 2>/dev/null
2779
2780 # Check whether --enable-silent-rules was given.
2781 if test "${enable_silent_rules+set}" = set; then :
2782 enableval=$enable_silent_rules;
2783 fi
2784
2785 case $enable_silent_rules in # (((
2786 yes) AM_DEFAULT_VERBOSITY=0;;
2787 no) AM_DEFAULT_VERBOSITY=1;;
2788 *) AM_DEFAULT_VERBOSITY=1;;
2789 esac
2790 am_make=${MAKE-make}
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2792 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2793 if ${am_cv_make_support_nested_variables+:} false; then :
2794 $as_echo_n "(cached) " >&6
2795 else
2796 if $as_echo 'TRUE=$(BAR$(V))
2797 BAR0=false
2798 BAR1=true
2799 V=1
2800 am__doit:
2801 @$(TRUE)
2802 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2803 am_cv_make_support_nested_variables=yes
2804 else
2805 am_cv_make_support_nested_variables=no
2806 fi
2807 fi
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2809 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2810 if test $am_cv_make_support_nested_variables = yes; then
2811 AM_V='$(V)'
2812 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2813 else
2814 AM_V=$AM_DEFAULT_VERBOSITY
2815 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2816 fi
2817 AM_BACKSLASH='\'
2818
2819 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2820 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2821 # is not polluted with repeated "-I."
2822 am__isrc=' -I$(srcdir)'
2823 # test to see if srcdir already configured
2824 if test -f $srcdir/config.status; then
2825 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2826 fi
2827 fi
2828
2829 # test whether we have cygpath
2830 if test -z "$CYGPATH_W"; then
2831 if (cygpath --version) >/dev/null 2>/dev/null; then
2832 CYGPATH_W='cygpath -w'
2833 else
2834 CYGPATH_W=echo
2835 fi
2836 fi
2837
2838
2839 # Define the identity of the package.
2840 PACKAGE='libFS'
2841 VERSION='1.0.5'
2842
2843
2844 cat >>confdefs.h <<_ACEOF
2845 #define PACKAGE "$PACKAGE"
2846 _ACEOF
2847
2848
2849 cat >>confdefs.h <<_ACEOF
2850 #define VERSION "$VERSION"
2851 _ACEOF
2852
2853 # Some tools Automake needs.
2854
2855 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2856
2857
2858 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2859
2860
2861 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2862
2863
2864 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2865
2866
2867 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2868
2869 # For better backward compatibility. To be removed once Automake 1.9.x
2870 # dies out for good. For more background, see:
2871 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2872 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2873 mkdir_p='$(MKDIR_P)'
2874
2875 # We need awk for the "check" target. The system "awk" is bad on
2876 # some platforms.
2877 # Always define AMTAR for backward compatibility. Yes, it's still used
2878 # in the wild :-( We should find a proper way to deprecate it ...
2879 AMTAR='$${TAR-tar}'
2880
2881
2882 # We'll loop over all known methods to create a tar archive until one works.
2883 _am_tools='gnutar pax cpio none'
2884
2885 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2886
2887
2888
2889
2890
2891
2892
2893 # Initialize libtool
2894 case `pwd` in
2895 *\ * | *\ *)
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2897 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2898 esac
2899
2900
2901
2902 macro_version='2.4.2'
2903 macro_revision='1.3337'
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917 ltmain="$ac_aux_dir/ltmain.sh"
2918
2919 # Make sure we can run config.sub.
2920 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2921 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2922
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2924 $as_echo_n "checking build system type... " >&6; }
2925 if ${ac_cv_build+:} false; then :
2926 $as_echo_n "(cached) " >&6
2927 else
2928 ac_build_alias=$build_alias
2929 test "x$ac_build_alias" = x &&
2930 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2931 test "x$ac_build_alias" = x &&
2932 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2933 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2934 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2935
2936 fi
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2938 $as_echo "$ac_cv_build" >&6; }
2939 case $ac_cv_build in
2940 *-*-*) ;;
2941 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2942 esac
2943 build=$ac_cv_build
2944 ac_save_IFS=$IFS; IFS='-'
2945 set x $ac_cv_build
2946 shift
2947 build_cpu=$1
2948 build_vendor=$2
2949 shift; shift
2950 # Remember, the first character of IFS is used to create $*,
2951 # except with old shells:
2952 build_os=$*
2953 IFS=$ac_save_IFS
2954 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2955
2956
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2958 $as_echo_n "checking host system type... " >&6; }
2959 if ${ac_cv_host+:} false; then :
2960 $as_echo_n "(cached) " >&6
2961 else
2962 if test "x$host_alias" = x; then
2963 ac_cv_host=$ac_cv_build
2964 else
2965 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2966 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2967 fi
2968
2969 fi
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2971 $as_echo "$ac_cv_host" >&6; }
2972 case $ac_cv_host in
2973 *-*-*) ;;
2974 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2975 esac
2976 host=$ac_cv_host
2977 ac_save_IFS=$IFS; IFS='-'
2978 set x $ac_cv_host
2979 shift
2980 host_cpu=$1
2981 host_vendor=$2
2982 shift; shift
2983 # Remember, the first character of IFS is used to create $*,
2984 # except with old shells:
2985 host_os=$*
2986 IFS=$ac_save_IFS
2987 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2988
2989
2990 # Backslashify metacharacters that are still active within
2991 # double-quoted strings.
2992 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2993
2994 # Same as above, but do not quote variable references.
2995 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2996
2997 # Sed substitution to delay expansion of an escaped shell variable in a
2998 # double_quote_subst'ed string.
2999 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3000
3001 # Sed substitution to delay expansion of an escaped single quote.
3002 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3003
3004 # Sed substitution to avoid accidental globbing in evaled expressions
3005 no_glob_subst='s/\*/\\\*/g'
3006
3007 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3008 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3009 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3010
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3012 $as_echo_n "checking how to print strings... " >&6; }
3013 # Test print first, because it will be a builtin if present.
3014 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3015 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3016 ECHO='print -r --'
3017 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3018 ECHO='printf %s\n'
3019 else
3020 # Use this function as a fallback that always works.
3021 func_fallback_echo ()
3022 {
3023 eval 'cat <<_LTECHO_EOF
3024 $1
3025 _LTECHO_EOF'
3026 }
3027 ECHO='func_fallback_echo'
3028 fi
3029
3030 # func_echo_all arg...
3031 # Invoke $ECHO with all args, space-separated.
3032 func_echo_all ()
3033 {
3034 $ECHO ""
3035 }
3036
3037 case "$ECHO" in
3038 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3039 $as_echo "printf" >&6; } ;;
3040 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3041 $as_echo "print -r" >&6; } ;;
3042 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3043 $as_echo "cat" >&6; } ;;
3044 esac
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059 DEPDIR="${am__leading_dot}deps"
3060
3061 ac_config_commands="$ac_config_commands depfiles"
3062
3063
3064 am_make=${MAKE-make}
3065 cat > confinc << 'END'
3066 am__doit:
3067 @echo this is the am__doit target
3068 .PHONY: am__doit
3069 END
3070 # If we don't find an include directive, just comment out the code.
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3072 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3073 am__include="#"
3074 am__quote=
3075 _am_result=none
3076 # First try GNU make style include.
3077 echo "include confinc" > confmf
3078 # Ignore all kinds of additional output from 'make'.
3079 case `$am_make -s -f confmf 2> /dev/null` in #(
3080 *the\ am__doit\ target*)
3081 am__include=include
3082 am__quote=
3083 _am_result=GNU
3084 ;;
3085 esac
3086 # Now try BSD make style include.
3087 if test "$am__include" = "#"; then
3088 echo '.include "confinc"' > confmf
3089 case `$am_make -s -f confmf 2> /dev/null` in #(
3090 *the\ am__doit\ target*)
3091 am__include=.include
3092 am__quote="\""
3093 _am_result=BSD
3094 ;;
3095 esac
3096 fi
3097
3098
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3100 $as_echo "$_am_result" >&6; }
3101 rm -f confinc confmf
3102
3103 # Check whether --enable-dependency-tracking was given.
3104 if test "${enable_dependency_tracking+set}" = set; then :
3105 enableval=$enable_dependency_tracking;
3106 fi
3107
3108 if test "x$enable_dependency_tracking" != xno; then
3109 am_depcomp="$ac_aux_dir/depcomp"
3110 AMDEPBACKSLASH='\'
3111 am__nodep='_no'
3112 fi
3113 if test "x$enable_dependency_tracking" != xno; then
3114 AMDEP_TRUE=
3115 AMDEP_FALSE='#'
3116 else
3117 AMDEP_TRUE='#'
3118 AMDEP_FALSE=
3119 fi
3120
3121
3122 ac_ext=c
3123 ac_cpp='$CPP $CPPFLAGS'
3124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3127 if test -n "$ac_tool_prefix"; then
3128 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3129 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3131 $as_echo_n "checking for $ac_word... " >&6; }
3132 if ${ac_cv_prog_CC+:} false; then :
3133 $as_echo_n "(cached) " >&6
3134 else
3135 if test -n "$CC"; then
3136 ac_cv_prog_CC="$CC" # Let the user override the test.
3137 else
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139 for as_dir in $PATH
3140 do
3141 IFS=$as_save_IFS
3142 test -z "$as_dir" && as_dir=.
3143 for ac_exec_ext in '' $ac_executable_extensions; do
3144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3145 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3147 break 2
3148 fi
3149 done
3150 done
3151 IFS=$as_save_IFS
3152
3153 fi
3154 fi
3155 CC=$ac_cv_prog_CC
3156 if test -n "$CC"; then
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3158 $as_echo "$CC" >&6; }
3159 else
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161 $as_echo "no" >&6; }
3162 fi
3163
3164
3165 fi
3166 if test -z "$ac_cv_prog_CC"; then
3167 ac_ct_CC=$CC
3168 # Extract the first word of "gcc", so it can be a program name with args.
3169 set dummy gcc; ac_word=$2
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3171 $as_echo_n "checking for $ac_word... " >&6; }
3172 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3173 $as_echo_n "(cached) " >&6
3174 else
3175 if test -n "$ac_ct_CC"; then
3176 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3177 else
3178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179 for as_dir in $PATH
3180 do
3181 IFS=$as_save_IFS
3182 test -z "$as_dir" && as_dir=.
3183 for ac_exec_ext in '' $ac_executable_extensions; do
3184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3185 ac_cv_prog_ac_ct_CC="gcc"
3186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3187 break 2
3188 fi
3189 done
3190 done
3191 IFS=$as_save_IFS
3192
3193 fi
3194 fi
3195 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3196 if test -n "$ac_ct_CC"; then
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3198 $as_echo "$ac_ct_CC" >&6; }
3199 else
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201 $as_echo "no" >&6; }
3202 fi
3203
3204 if test "x$ac_ct_CC" = x; then
3205 CC=""
3206 else
3207 case $cross_compiling:$ac_tool_warned in
3208 yes:)
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3211 ac_tool_warned=yes ;;
3212 esac
3213 CC=$ac_ct_CC
3214 fi
3215 else
3216 CC="$ac_cv_prog_CC"
3217 fi
3218
3219 if test -z "$CC"; then
3220 if test -n "$ac_tool_prefix"; then
3221 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3222 set dummy ${ac_tool_prefix}cc; ac_word=$2
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3224 $as_echo_n "checking for $ac_word... " >&6; }
3225 if ${ac_cv_prog_CC+:} false; then :
3226 $as_echo_n "(cached) " >&6
3227 else
3228 if test -n "$CC"; then
3229 ac_cv_prog_CC="$CC" # Let the user override the test.
3230 else
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 for as_dir in $PATH
3233 do
3234 IFS=$as_save_IFS
3235 test -z "$as_dir" && as_dir=.
3236 for ac_exec_ext in '' $ac_executable_extensions; do
3237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3238 ac_cv_prog_CC="${ac_tool_prefix}cc"
3239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3240 break 2
3241 fi
3242 done
3243 done
3244 IFS=$as_save_IFS
3245
3246 fi
3247 fi
3248 CC=$ac_cv_prog_CC
3249 if test -n "$CC"; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3251 $as_echo "$CC" >&6; }
3252 else
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 $as_echo "no" >&6; }
3255 fi
3256
3257
3258 fi
3259 fi
3260 if test -z "$CC"; then
3261 # Extract the first word of "cc", so it can be a program name with args.
3262 set dummy cc; ac_word=$2
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3264 $as_echo_n "checking for $ac_word... " >&6; }
3265 if ${ac_cv_prog_CC+:} false; then :
3266 $as_echo_n "(cached) " >&6
3267 else
3268 if test -n "$CC"; then
3269 ac_cv_prog_CC="$CC" # Let the user override the test.
3270 else
3271 ac_prog_rejected=no
3272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 for as_dir in $PATH
3274 do
3275 IFS=$as_save_IFS
3276 test -z "$as_dir" && as_dir=.
3277 for ac_exec_ext in '' $ac_executable_extensions; do
3278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3279 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3280 ac_prog_rejected=yes
3281 continue
3282 fi
3283 ac_cv_prog_CC="cc"
3284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3285 break 2
3286 fi
3287 done
3288 done
3289 IFS=$as_save_IFS
3290
3291 if test $ac_prog_rejected = yes; then
3292 # We found a bogon in the path, so make sure we never use it.
3293 set dummy $ac_cv_prog_CC
3294 shift
3295 if test $# != 0; then
3296 # We chose a different compiler from the bogus one.
3297 # However, it has the same basename, so the bogon will be chosen
3298 # first if we set CC to just the basename; use the full file name.
3299 shift
3300 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3301 fi
3302 fi
3303 fi
3304 fi
3305 CC=$ac_cv_prog_CC
3306 if test -n "$CC"; then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3308 $as_echo "$CC" >&6; }
3309 else
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311 $as_echo "no" >&6; }
3312 fi
3313
3314
3315 fi
3316 if test -z "$CC"; then
3317 if test -n "$ac_tool_prefix"; then
3318 for ac_prog in cl.exe
3319 do
3320 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3321 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323 $as_echo_n "checking for $ac_word... " >&6; }
3324 if ${ac_cv_prog_CC+:} false; then :
3325 $as_echo_n "(cached) " >&6
3326 else
3327 if test -n "$CC"; then
3328 ac_cv_prog_CC="$CC" # Let the user override the test.
3329 else
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331 for as_dir in $PATH
3332 do
3333 IFS=$as_save_IFS
3334 test -z "$as_dir" && as_dir=.
3335 for ac_exec_ext in '' $ac_executable_extensions; do
3336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3337 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3339 break 2
3340 fi
3341 done
3342 done
3343 IFS=$as_save_IFS
3344
3345 fi
3346 fi
3347 CC=$ac_cv_prog_CC
3348 if test -n "$CC"; then
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3350 $as_echo "$CC" >&6; }
3351 else
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 $as_echo "no" >&6; }
3354 fi
3355
3356
3357 test -n "$CC" && break
3358 done
3359 fi
3360 if test -z "$CC"; then
3361 ac_ct_CC=$CC
3362 for ac_prog in cl.exe
3363 do
3364 # Extract the first word of "$ac_prog", so it can be a program name with args.
3365 set dummy $ac_prog; ac_word=$2
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3367 $as_echo_n "checking for $ac_word... " >&6; }
3368 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3369 $as_echo_n "(cached) " >&6
3370 else
3371 if test -n "$ac_ct_CC"; then
3372 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3373 else
3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375 for as_dir in $PATH
3376 do
3377 IFS=$as_save_IFS
3378 test -z "$as_dir" && as_dir=.
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3381 ac_cv_prog_ac_ct_CC="$ac_prog"
3382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3383 break 2
3384 fi
3385 done
3386 done
3387 IFS=$as_save_IFS
3388
3389 fi
3390 fi
3391 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3392 if test -n "$ac_ct_CC"; then
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3394 $as_echo "$ac_ct_CC" >&6; }
3395 else
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397 $as_echo "no" >&6; }
3398 fi
3399
3400
3401 test -n "$ac_ct_CC" && break
3402 done
3403
3404 if test "x$ac_ct_CC" = x; then
3405 CC=""
3406 else
3407 case $cross_compiling:$ac_tool_warned in
3408 yes:)
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3411 ac_tool_warned=yes ;;
3412 esac
3413 CC=$ac_ct_CC
3414 fi
3415 fi
3416
3417 fi
3418
3419
3420 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3422 as_fn_error $? "no acceptable C compiler found in \$PATH
3423 See \`config.log' for more details" "$LINENO" 5; }
3424
3425 # Provide some information about the compiler.
3426 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3427 set X $ac_compile
3428 ac_compiler=$2
3429 for ac_option in --version -v -V -qversion; do
3430 { { ac_try="$ac_compiler $ac_option >&5"
3431 case "(($ac_try" in
3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
3434 esac
3435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3436 $as_echo "$ac_try_echo"; } >&5
3437 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3438 ac_status=$?
3439 if test -s conftest.err; then
3440 sed '10a\
3441 ... rest of stderr output deleted ...
3442 10q' conftest.err >conftest.er1
3443 cat conftest.er1 >&5
3444 fi
3445 rm -f conftest.er1 conftest.err
3446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447 test $ac_status = 0; }
3448 done
3449
3450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3451 /* end confdefs.h. */
3452
3453 int
3454 main ()
3455 {
3456
3457 ;
3458 return 0;
3459 }
3460 _ACEOF
3461 ac_clean_files_save=$ac_clean_files
3462 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3463 # Try to create an executable without -o first, disregard a.out.
3464 # It will help us diagnose broken compilers, and finding out an intuition
3465 # of exeext.
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3467 $as_echo_n "checking whether the C compiler works... " >&6; }
3468 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3469
3470 # The possible output files:
3471 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3472
3473 ac_rmfiles=
3474 for ac_file in $ac_files
3475 do
3476 case $ac_file in
3477 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3478 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3479 esac
3480 done
3481 rm -f $ac_rmfiles
3482
3483 if { { ac_try="$ac_link_default"
3484 case "(($ac_try" in
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3487 esac
3488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3489 $as_echo "$ac_try_echo"; } >&5
3490 (eval "$ac_link_default") 2>&5
3491 ac_status=$?
3492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3493 test $ac_status = 0; }; then :
3494 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3495 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3496 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3497 # so that the user can short-circuit this test for compilers unknown to
3498 # Autoconf.
3499 for ac_file in $ac_files ''
3500 do
3501 test -f "$ac_file" || continue
3502 case $ac_file in
3503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3504 ;;
3505 [ab].out )
3506 # We found the default executable, but exeext='' is most
3507 # certainly right.
3508 break;;
3509 *.* )
3510 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3511 then :; else
3512 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3513 fi
3514 # We set ac_cv_exeext here because the later test for it is not
3515 # safe: cross compilers may not add the suffix if given an `-o'
3516 # argument, so we may need to know it at that point already.
3517 # Even if this section looks crufty: it has the advantage of
3518 # actually working.
3519 break;;
3520 * )
3521 break;;
3522 esac
3523 done
3524 test "$ac_cv_exeext" = no && ac_cv_exeext=
3525
3526 else
3527 ac_file=''
3528 fi
3529 if test -z "$ac_file"; then :
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 $as_echo "no" >&6; }
3532 $as_echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3534
3535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3537 as_fn_error 77 "C compiler cannot create executables
3538 See \`config.log' for more details" "$LINENO" 5; }
3539 else
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3541 $as_echo "yes" >&6; }
3542 fi
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3544 $as_echo_n "checking for C compiler default output file name... " >&6; }
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3546 $as_echo "$ac_file" >&6; }
3547 ac_exeext=$ac_cv_exeext
3548
3549 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3550 ac_clean_files=$ac_clean_files_save
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3552 $as_echo_n "checking for suffix of executables... " >&6; }
3553 if { { ac_try="$ac_link"
3554 case "(($ac_try" in
3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556 *) ac_try_echo=$ac_try;;
3557 esac
3558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3559 $as_echo "$ac_try_echo"; } >&5
3560 (eval "$ac_link") 2>&5
3561 ac_status=$?
3562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3563 test $ac_status = 0; }; then :
3564 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3565 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3566 # work properly (i.e., refer to `conftest.exe'), while it won't with
3567 # `rm'.
3568 for ac_file in conftest.exe conftest conftest.*; do
3569 test -f "$ac_file" || continue
3570 case $ac_file in
3571 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3572 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3573 break;;
3574 * ) break;;
3575 esac
3576 done
3577 else
3578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3580 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3581 See \`config.log' for more details" "$LINENO" 5; }
3582 fi
3583 rm -f conftest conftest$ac_cv_exeext
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3585 $as_echo "$ac_cv_exeext" >&6; }
3586
3587 rm -f conftest.$ac_ext
3588 EXEEXT=$ac_cv_exeext
3589 ac_exeext=$EXEEXT
3590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591 /* end confdefs.h. */
3592 #include <stdio.h>
3593 int
3594 main ()
3595 {
3596 FILE *f = fopen ("conftest.out", "w");
3597 return ferror (f) || fclose (f) != 0;
3598
3599 ;
3600 return 0;
3601 }
3602 _ACEOF
3603 ac_clean_files="$ac_clean_files conftest.out"
3604 # Check that the compiler produces executables we can run. If not, either
3605 # the compiler is broken, or we cross compile.
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3607 $as_echo_n "checking whether we are cross compiling... " >&6; }
3608 if test "$cross_compiling" != yes; then
3609 { { ac_try="$ac_link"
3610 case "(($ac_try" in
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3613 esac
3614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3615 $as_echo "$ac_try_echo"; } >&5
3616 (eval "$ac_link") 2>&5
3617 ac_status=$?
3618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3619 test $ac_status = 0; }
3620 if { ac_try='./conftest$ac_cv_exeext'
3621 { { case "(($ac_try" in
3622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623 *) ac_try_echo=$ac_try;;
3624 esac
3625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3626 $as_echo "$ac_try_echo"; } >&5
3627 (eval "$ac_try") 2>&5
3628 ac_status=$?
3629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3630 test $ac_status = 0; }; }; then
3631 cross_compiling=no
3632 else
3633 if test "$cross_compiling" = maybe; then
3634 cross_compiling=yes
3635 else
3636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3638 as_fn_error $? "cannot run C compiled programs.
3639 If you meant to cross compile, use \`--host'.
3640 See \`config.log' for more details" "$LINENO" 5; }
3641 fi
3642 fi
3643 fi
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3645 $as_echo "$cross_compiling" >&6; }
3646
3647 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3648 ac_clean_files=$ac_clean_files_save
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3650 $as_echo_n "checking for suffix of object files... " >&6; }
3651 if ${ac_cv_objext+:} false; then :
3652 $as_echo_n "(cached) " >&6
3653 else
3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655 /* end confdefs.h. */
3656
3657 int
3658 main ()
3659 {
3660
3661 ;
3662 return 0;
3663 }
3664 _ACEOF
3665 rm -f conftest.o conftest.obj
3666 if { { ac_try="$ac_compile"
3667 case "(($ac_try" in
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3670 esac
3671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3672 $as_echo "$ac_try_echo"; } >&5
3673 (eval "$ac_compile") 2>&5
3674 ac_status=$?
3675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3676 test $ac_status = 0; }; then :
3677 for ac_file in conftest.o conftest.obj conftest.*; do
3678 test -f "$ac_file" || continue;
3679 case $ac_file in
3680 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3681 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3682 break;;
3683 esac
3684 done
3685 else
3686 $as_echo "$as_me: failed program was:" >&5
3687 sed 's/^/| /' conftest.$ac_ext >&5
3688
3689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3691 as_fn_error $? "cannot compute suffix of object files: cannot compile
3692 See \`config.log' for more details" "$LINENO" 5; }
3693 fi
3694 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3695 fi
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3697 $as_echo "$ac_cv_objext" >&6; }
3698 OBJEXT=$ac_cv_objext
3699 ac_objext=$OBJEXT
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3701 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3702 if ${ac_cv_c_compiler_gnu+:} false; then :
3703 $as_echo_n "(cached) " >&6
3704 else
3705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706 /* end confdefs.h. */
3707
3708 int
3709 main ()
3710 {
3711 #ifndef __GNUC__
3712 choke me
3713 #endif
3714
3715 ;
3716 return 0;
3717 }
3718 _ACEOF
3719 if ac_fn_c_try_compile "$LINENO"; then :
3720 ac_compiler_gnu=yes
3721 else
3722 ac_compiler_gnu=no
3723 fi
3724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3726
3727 fi
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3729 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3730 if test $ac_compiler_gnu = yes; then
3731 GCC=yes
3732 else
3733 GCC=
3734 fi
3735 ac_test_CFLAGS=${CFLAGS+set}
3736 ac_save_CFLAGS=$CFLAGS
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3738 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3739 if ${ac_cv_prog_cc_g+:} false; then :
3740 $as_echo_n "(cached) " >&6
3741 else
3742 ac_save_c_werror_flag=$ac_c_werror_flag
3743 ac_c_werror_flag=yes
3744 ac_cv_prog_cc_g=no
3745 CFLAGS="-g"
3746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3747 /* end confdefs.h. */
3748
3749 int
3750 main ()
3751 {
3752
3753 ;
3754 return 0;
3755 }
3756 _ACEOF
3757 if ac_fn_c_try_compile "$LINENO"; then :
3758 ac_cv_prog_cc_g=yes
3759 else
3760 CFLAGS=""
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h. */
3763
3764 int
3765 main ()
3766 {
3767
3768 ;
3769 return 0;
3770 }
3771 _ACEOF
3772 if ac_fn_c_try_compile "$LINENO"; then :
3773
3774 else
3775 ac_c_werror_flag=$ac_save_c_werror_flag
3776 CFLAGS="-g"
3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778 /* end confdefs.h. */
3779
3780 int
3781 main ()
3782 {
3783
3784 ;
3785 return 0;
3786 }
3787 _ACEOF
3788 if ac_fn_c_try_compile "$LINENO"; then :
3789 ac_cv_prog_cc_g=yes
3790 fi
3791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3792 fi
3793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3794 fi
3795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3796 ac_c_werror_flag=$ac_save_c_werror_flag
3797 fi
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3799 $as_echo "$ac_cv_prog_cc_g" >&6; }
3800 if test "$ac_test_CFLAGS" = set; then
3801 CFLAGS=$ac_save_CFLAGS
3802 elif test $ac_cv_prog_cc_g = yes; then
3803 if test "$GCC" = yes; then
3804 CFLAGS="-g -O2"
3805 else
3806 CFLAGS="-g"
3807 fi
3808 else
3809 if test "$GCC" = yes; then
3810 CFLAGS="-O2"
3811 else
3812 CFLAGS=
3813 fi
3814 fi
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3816 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3817 if ${ac_cv_prog_cc_c89+:} false; then :
3818 $as_echo_n "(cached) " >&6
3819 else
3820 ac_cv_prog_cc_c89=no
3821 ac_save_CC=$CC
3822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823 /* end confdefs.h. */
3824 #include <stdarg.h>
3825 #include <stdio.h>
3826 #include <sys/types.h>
3827 #include <sys/stat.h>
3828 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3829 struct buf { int x; };
3830 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3831 static char *e (p, i)
3832 char **p;
3833 int i;
3834 {
3835 return p[i];
3836 }
3837 static char *f (char * (*g) (char **, int), char **p, ...)
3838 {
3839 char *s;
3840 va_list v;
3841 va_start (v,p);
3842 s = g (p, va_arg (v,int));
3843 va_end (v);
3844 return s;
3845 }
3846
3847 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3848 function prototypes and stuff, but not '\xHH' hex character constants.
3849 These don't provoke an error unfortunately, instead are silently treated
3850 as 'x'. The following induces an error, until -std is added to get
3851 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3852 array size at least. It's necessary to write '\x00'==0 to get something
3853 that's true only with -std. */
3854 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3855
3856 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3857 inside strings and character constants. */
3858 #define FOO(x) 'x'
3859 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3860
3861 int test (int i, double x);
3862 struct s1 {int (*f) (int a);};
3863 struct s2 {int (*f) (double a);};
3864 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3865 int argc;
3866 char **argv;
3867 int
3868 main ()
3869 {
3870 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3871 ;
3872 return 0;
3873 }
3874 _ACEOF
3875 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3876 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3877 do
3878 CC="$ac_save_CC $ac_arg"
3879 if ac_fn_c_try_compile "$LINENO"; then :
3880 ac_cv_prog_cc_c89=$ac_arg
3881 fi
3882 rm -f core conftest.err conftest.$ac_objext
3883 test "x$ac_cv_prog_cc_c89" != "xno" && break
3884 done
3885 rm -f conftest.$ac_ext
3886 CC=$ac_save_CC
3887
3888 fi
3889 # AC_CACHE_VAL
3890 case "x$ac_cv_prog_cc_c89" in
3891 x)
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3893 $as_echo "none needed" >&6; } ;;
3894 xno)
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3896 $as_echo "unsupported" >&6; } ;;
3897 *)
3898 CC="$CC $ac_cv_prog_cc_c89"
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3900 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3901 esac
3902 if test "x$ac_cv_prog_cc_c89" != xno; then :
3903
3904 fi
3905
3906 ac_ext=c
3907 ac_cpp='$CPP $CPPFLAGS'
3908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3911
3912 depcc="$CC" am_compiler_list=
3913
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3915 $as_echo_n "checking dependency style of $depcc... " >&6; }
3916 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3917 $as_echo_n "(cached) " >&6
3918 else
3919 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3920 # We make a subdir and do the tests there. Otherwise we can end up
3921 # making bogus files that we don't know about and never remove. For
3922 # instance it was reported that on HP-UX the gcc test will end up
3923 # making a dummy file named 'D' -- because '-MD' means "put the output
3924 # in D".
3925 rm -rf conftest.dir
3926 mkdir conftest.dir
3927 # Copy depcomp to subdir because otherwise we won't find it if we're
3928 # using a relative directory.
3929 cp "$am_depcomp" conftest.dir
3930 cd conftest.dir
3931 # We will build objects and dependencies in a subdirectory because
3932 # it helps to detect inapplicable dependency modes. For instance
3933 # both Tru64's cc and ICC support -MD to output dependencies as a
3934 # side effect of compilation, but ICC will put the dependencies in
3935 # the current directory while Tru64 will put them in the object
3936 # directory.
3937 mkdir sub
3938
3939 am_cv_CC_dependencies_compiler_type=none
3940 if test "$am_compiler_list" = ""; then
3941 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3942 fi
3943 am__universal=false
3944 case " $depcc " in #(
3945 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3946 esac
3947
3948 for depmode in $am_compiler_list; do
3949 # Setup a source with many dependencies, because some compilers
3950 # like to wrap large dependency lists on column 80 (with \), and
3951 # we should not choose a depcomp mode which is confused by this.
3952 #
3953 # We need to recreate these files for each test, as the compiler may
3954 # overwrite some of them when testing with obscure command lines.
3955 # This happens at least with the AIX C compiler.
3956 : > sub/conftest.c
3957 for i in 1 2 3 4 5 6; do
3958 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3959 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3960 # Solaris 10 /bin/sh.
3961 echo '/* dummy */' > sub/conftst$i.h
3962 done
3963 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3964
3965 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3966 # mode. It turns out that the SunPro C++ compiler does not properly
3967 # handle '-M -o', and we need to detect this. Also, some Intel
3968 # versions had trouble with output in subdirs.
3969 am__obj=sub/conftest.${OBJEXT-o}
3970 am__minus_obj="-o $am__obj"
3971 case $depmode in
3972 gcc)
3973 # This depmode causes a compiler race in universal mode.
3974 test "$am__universal" = false || continue
3975 ;;
3976 nosideeffect)
3977 # After this tag, mechanisms are not by side-effect, so they'll
3978 # only be used when explicitly requested.
3979 if test "x$enable_dependency_tracking" = xyes; then
3980 continue
3981 else
3982 break
3983 fi
3984 ;;
3985 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3986 # This compiler won't grok '-c -o', but also, the minuso test has
3987 # not run yet. These depmodes are late enough in the game, and
3988 # so weak that their functioning should not be impacted.
3989 am__obj=conftest.${OBJEXT-o}
3990 am__minus_obj=
3991 ;;
3992 none) break ;;
3993 esac
3994 if depmode=$depmode \
3995 source=sub/conftest.c object=$am__obj \
3996 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3997 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3998 >/dev/null 2>conftest.err &&
3999 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4000 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4001 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4002 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4003 # icc doesn't choke on unknown options, it will just issue warnings
4004 # or remarks (even with -Werror). So we grep stderr for any message
4005 # that says an option was ignored or not supported.
4006 # When given -MP, icc 7.0 and 7.1 complain thusly:
4007 # icc: Command line warning: ignoring option '-M'; no argument required
4008 # The diagnosis changed in icc 8.0:
4009 # icc: Command line remark: option '-MP' not supported
4010 if (grep 'ignoring option' conftest.err ||
4011 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4012 am_cv_CC_dependencies_compiler_type=$depmode
4013 break
4014 fi
4015 fi
4016 done
4017
4018 cd ..
4019 rm -rf conftest.dir
4020 else
4021 am_cv_CC_dependencies_compiler_type=none
4022 fi
4023
4024 fi
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4026 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4027 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4028
4029 if
4030 test "x$enable_dependency_tracking" != xno \
4031 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4032 am__fastdepCC_TRUE=
4033 am__fastdepCC_FALSE='#'
4034 else
4035 am__fastdepCC_TRUE='#'
4036 am__fastdepCC_FALSE=
4037 fi
4038
4039
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4041 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4042 if ${ac_cv_path_SED+:} false; then :
4043 $as_echo_n "(cached) " >&6
4044 else
4045 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4046 for ac_i in 1 2 3 4 5 6 7; do
4047 ac_script="$ac_script$as_nl$ac_script"
4048 done
4049 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4050 { ac_script=; unset ac_script;}
4051 if test -z "$SED"; then
4052 ac_path_SED_found=false
4053 # Loop through the user's path and test for each of PROGNAME-LIST
4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 for as_dir in $PATH
4056 do
4057 IFS=$as_save_IFS
4058 test -z "$as_dir" && as_dir=.
4059 for ac_prog in sed gsed; do
4060 for ac_exec_ext in '' $ac_executable_extensions; do
4061 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4062 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4063 # Check for GNU ac_path_SED and select it if it is found.
4064 # Check for GNU $ac_path_SED
4065 case `"$ac_path_SED" --version 2>&1` in
4066 *GNU*)
4067 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4068 *)
4069 ac_count=0
4070 $as_echo_n 0123456789 >"conftest.in"
4071 while :
4072 do
4073 cat "conftest.in" "conftest.in" >"conftest.tmp"
4074 mv "conftest.tmp" "conftest.in"
4075 cp "conftest.in" "conftest.nl"
4076 $as_echo '' >> "conftest.nl"
4077 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4078 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4079 as_fn_arith $ac_count + 1 && ac_count=$as_val
4080 if test $ac_count -gt ${ac_path_SED_max-0}; then
4081 # Best one so far, save it but keep looking for a better one
4082 ac_cv_path_SED="$ac_path_SED"
4083 ac_path_SED_max=$ac_count
4084 fi
4085 # 10*(2^10) chars as input seems more than enough
4086 test $ac_count -gt 10 && break
4087 done
4088 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4089 esac
4090
4091 $ac_path_SED_found && break 3
4092 done
4093 done
4094 done
4095 IFS=$as_save_IFS
4096 if test -z "$ac_cv_path_SED"; then
4097 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4098 fi
4099 else
4100 ac_cv_path_SED=$SED
4101 fi
4102
4103 fi
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4105 $as_echo "$ac_cv_path_SED" >&6; }
4106 SED="$ac_cv_path_SED"
4107 rm -f conftest.sed
4108
4109 test -z "$SED" && SED=sed
4110 Xsed="$SED -e 1s/^X//"
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4123 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4124 if ${ac_cv_path_GREP+:} false; then :
4125 $as_echo_n "(cached) " >&6
4126 else
4127 if test -z "$GREP"; then
4128 ac_path_GREP_found=false
4129 # Loop through the user's path and test for each of PROGNAME-LIST
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4132 do
4133 IFS=$as_save_IFS
4134 test -z "$as_dir" && as_dir=.
4135 for ac_prog in grep ggrep; do
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4138 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4139 # Check for GNU ac_path_GREP and select it if it is found.
4140 # Check for GNU $ac_path_GREP
4141 case `"$ac_path_GREP" --version 2>&1` in
4142 *GNU*)
4143 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4144 *)
4145 ac_count=0
4146 $as_echo_n 0123456789 >"conftest.in"
4147 while :
4148 do
4149 cat "conftest.in" "conftest.in" >"conftest.tmp"
4150 mv "conftest.tmp" "conftest.in"
4151 cp "conftest.in" "conftest.nl"
4152 $as_echo 'GREP' >> "conftest.nl"
4153 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4154 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4155 as_fn_arith $ac_count + 1 && ac_count=$as_val
4156 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4157 # Best one so far, save it but keep looking for a better one
4158 ac_cv_path_GREP="$ac_path_GREP"
4159 ac_path_GREP_max=$ac_count
4160 fi
4161 # 10*(2^10) chars as input seems more than enough
4162 test $ac_count -gt 10 && break
4163 done
4164 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4165 esac
4166
4167 $ac_path_GREP_found && break 3
4168 done
4169 done
4170 done
4171 IFS=$as_save_IFS
4172 if test -z "$ac_cv_path_GREP"; then
4173 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4174 fi
4175 else
4176 ac_cv_path_GREP=$GREP
4177 fi
4178
4179 fi
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4181 $as_echo "$ac_cv_path_GREP" >&6; }
4182 GREP="$ac_cv_path_GREP"
4183
4184
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4186 $as_echo_n "checking for egrep... " >&6; }
4187 if ${ac_cv_path_EGREP+:} false; then :
4188 $as_echo_n "(cached) " >&6
4189 else
4190 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4191 then ac_cv_path_EGREP="$GREP -E"
4192 else
4193 if test -z "$EGREP"; then
4194 ac_path_EGREP_found=false
4195 # Loop through the user's path and test for each of PROGNAME-LIST
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4198 do
4199 IFS=$as_save_IFS
4200 test -z "$as_dir" && as_dir=.
4201 for ac_prog in egrep; do
4202 for ac_exec_ext in '' $ac_executable_extensions; do
4203 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4204 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4205 # Check for GNU ac_path_EGREP and select it if it is found.
4206 # Check for GNU $ac_path_EGREP
4207 case `"$ac_path_EGREP" --version 2>&1` in
4208 *GNU*)
4209 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4210 *)
4211 ac_count=0
4212 $as_echo_n 0123456789 >"conftest.in"
4213 while :
4214 do
4215 cat "conftest.in" "conftest.in" >"conftest.tmp"
4216 mv "conftest.tmp" "conftest.in"
4217 cp "conftest.in" "conftest.nl"
4218 $as_echo 'EGREP' >> "conftest.nl"
4219 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4220 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4221 as_fn_arith $ac_count + 1 && ac_count=$as_val
4222 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4223 # Best one so far, save it but keep looking for a better one
4224 ac_cv_path_EGREP="$ac_path_EGREP"
4225 ac_path_EGREP_max=$ac_count
4226 fi
4227 # 10*(2^10) chars as input seems more than enough
4228 test $ac_count -gt 10 && break
4229 done
4230 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4231 esac
4232
4233 $ac_path_EGREP_found && break 3
4234 done
4235 done
4236 done
4237 IFS=$as_save_IFS
4238 if test -z "$ac_cv_path_EGREP"; then
4239 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4240 fi
4241 else
4242 ac_cv_path_EGREP=$EGREP
4243 fi
4244
4245 fi
4246 fi
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4248 $as_echo "$ac_cv_path_EGREP" >&6; }
4249 EGREP="$ac_cv_path_EGREP"
4250
4251
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4253 $as_echo_n "checking for fgrep... " >&6; }
4254 if ${ac_cv_path_FGREP+:} false; then :
4255 $as_echo_n "(cached) " >&6
4256 else
4257 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4258 then ac_cv_path_FGREP="$GREP -F"
4259 else
4260 if test -z "$FGREP"; then
4261 ac_path_FGREP_found=false
4262 # Loop through the user's path and test for each of PROGNAME-LIST
4263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4265 do
4266 IFS=$as_save_IFS
4267 test -z "$as_dir" && as_dir=.
4268 for ac_prog in fgrep; do
4269 for ac_exec_ext in '' $ac_executable_extensions; do
4270 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4271 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4272 # Check for GNU ac_path_FGREP and select it if it is found.
4273 # Check for GNU $ac_path_FGREP
4274 case `"$ac_path_FGREP" --version 2>&1` in
4275 *GNU*)
4276 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4277 *)
4278 ac_count=0
4279 $as_echo_n 0123456789 >"conftest.in"
4280 while :
4281 do
4282 cat "conftest.in" "conftest.in" >"conftest.tmp"
4283 mv "conftest.tmp" "conftest.in"
4284 cp "conftest.in" "conftest.nl"
4285 $as_echo 'FGREP' >> "conftest.nl"
4286 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4287 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4288 as_fn_arith $ac_count + 1 && ac_count=$as_val
4289 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4290 # Best one so far, save it but keep looking for a better one
4291 ac_cv_path_FGREP="$ac_path_FGREP"
4292 ac_path_FGREP_max=$ac_count
4293 fi
4294 # 10*(2^10) chars as input seems more than enough
4295 test $ac_count -gt 10 && break
4296 done
4297 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4298 esac
4299
4300 $ac_path_FGREP_found && break 3
4301 done
4302 done
4303 done
4304 IFS=$as_save_IFS
4305 if test -z "$ac_cv_path_FGREP"; then
4306 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4307 fi
4308 else
4309 ac_cv_path_FGREP=$FGREP
4310 fi
4311
4312 fi
4313 fi
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4315 $as_echo "$ac_cv_path_FGREP" >&6; }
4316 FGREP="$ac_cv_path_FGREP"
4317
4318
4319 test -z "$GREP" && GREP=grep
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339 # Check whether --with-gnu-ld was given.
4340 if test "${with_gnu_ld+set}" = set; then :
4341 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4342 else
4343 with_gnu_ld=no
4344 fi
4345
4346 ac_prog=ld
4347 if test "$GCC" = yes; then
4348 # Check if gcc -print-prog-name=ld gives a path.
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4350 $as_echo_n "checking for ld used by $CC... " >&6; }
4351 case $host in
4352 *-*-mingw*)
4353 # gcc leaves a trailing carriage return which upsets mingw
4354 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4355 *)
4356 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4357 esac
4358 case $ac_prog in
4359 # Accept absolute paths.
4360 [\\/]* | ?:[\\/]*)
4361 re_direlt='/[^/][^/]*/\.\./'
4362 # Canonicalize the pathname of ld
4363 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4364 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4365 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4366 done
4367 test -z "$LD" && LD="$ac_prog"
4368 ;;
4369 "")
4370 # If it fails, then pretend we aren't using GCC.
4371 ac_prog=ld
4372 ;;
4373 *)
4374 # If it is relative, then search for the first ld in PATH.
4375 with_gnu_ld=unknown
4376 ;;
4377 esac
4378 elif test "$with_gnu_ld" = yes; then
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4380 $as_echo_n "checking for GNU ld... " >&6; }
4381 else
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4383 $as_echo_n "checking for non-GNU ld... " >&6; }
4384 fi
4385 if ${lt_cv_path_LD+:} false; then :
4386 $as_echo_n "(cached) " >&6
4387 else
4388 if test -z "$LD"; then
4389 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4390 for ac_dir in $PATH; do
4391 IFS="$lt_save_ifs"
4392 test -z "$ac_dir" && ac_dir=.
4393 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4394 lt_cv_path_LD="$ac_dir/$ac_prog"
4395 # Check to see if the program is GNU ld. I'd rather use --version,
4396 # but apparently some variants of GNU ld only accept -v.
4397 # Break only if it was the GNU/non-GNU ld that we prefer.
4398 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4399 *GNU* | *'with BFD'*)
4400 test "$with_gnu_ld" != no && break
4401 ;;
4402 *)
4403 test "$with_gnu_ld" != yes && break
4404 ;;
4405 esac
4406 fi
4407 done
4408 IFS="$lt_save_ifs"
4409 else
4410 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4411 fi
4412 fi
4413
4414 LD="$lt_cv_path_LD"
4415 if test -n "$LD"; then
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4417 $as_echo "$LD" >&6; }
4418 else
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4420 $as_echo "no" >&6; }
4421 fi
4422 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4424 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4425 if ${lt_cv_prog_gnu_ld+:} false; then :
4426 $as_echo_n "(cached) " >&6
4427 else
4428 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4429 case `$LD -v 2>&1 </dev/null` in
4430 *GNU* | *'with BFD'*)
4431 lt_cv_prog_gnu_ld=yes
4432 ;;
4433 *)
4434 lt_cv_prog_gnu_ld=no
4435 ;;
4436 esac
4437 fi
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4439 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4440 with_gnu_ld=$lt_cv_prog_gnu_ld
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4451 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4452 if ${lt_cv_path_NM+:} false; then :
4453 $as_echo_n "(cached) " >&6
4454 else
4455 if test -n "$NM"; then
4456 # Let the user override the test.
4457 lt_cv_path_NM="$NM"
4458 else
4459 lt_nm_to_check="${ac_tool_prefix}nm"
4460 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4461 lt_nm_to_check="$lt_nm_to_check nm"
4462 fi
4463 for lt_tmp_nm in $lt_nm_to_check; do
4464 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4465 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4466 IFS="$lt_save_ifs"
4467 test -z "$ac_dir" && ac_dir=.
4468 tmp_nm="$ac_dir/$lt_tmp_nm"
4469 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4470 # Check to see if the nm accepts a BSD-compat flag.
4471 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4472 # nm: unknown option "B" ignored
4473 # Tru64's nm complains that /dev/null is an invalid object file
4474 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4475 */dev/null* | *'Invalid file or object type'*)
4476 lt_cv_path_NM="$tmp_nm -B"
4477 break
4478 ;;
4479 *)
4480 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4481 */dev/null*)
4482 lt_cv_path_NM="$tmp_nm -p"
4483 break
4484 ;;
4485 *)
4486 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4487 continue # so that we can try to find one that supports BSD flags
4488 ;;
4489 esac
4490 ;;
4491 esac
4492 fi
4493 done
4494 IFS="$lt_save_ifs"
4495 done
4496 : ${lt_cv_path_NM=no}
4497 fi
4498 fi
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4500 $as_echo "$lt_cv_path_NM" >&6; }
4501 if test "$lt_cv_path_NM" != "no"; then
4502 NM="$lt_cv_path_NM"
4503 else
4504 # Didn't find any BSD compatible name lister, look for dumpbin.
4505 if test -n "$DUMPBIN"; then :
4506 # Let the user override the test.
4507 else
4508 if test -n "$ac_tool_prefix"; then
4509 for ac_prog in dumpbin "link -dump"
4510 do
4511 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4512 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4514 $as_echo_n "checking for $ac_word... " >&6; }
4515 if ${ac_cv_prog_DUMPBIN+:} false; then :
4516 $as_echo_n "(cached) " >&6
4517 else
4518 if test -n "$DUMPBIN"; then
4519 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4520 else
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH
4523 do
4524 IFS=$as_save_IFS
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4528 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4530 break 2
4531 fi
4532 done
4533 done
4534 IFS=$as_save_IFS
4535
4536 fi
4537 fi
4538 DUMPBIN=$ac_cv_prog_DUMPBIN
4539 if test -n "$DUMPBIN"; then
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4541 $as_echo "$DUMPBIN" >&6; }
4542 else
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544 $as_echo "no" >&6; }
4545 fi
4546
4547
4548 test -n "$DUMPBIN" && break
4549 done
4550 fi
4551 if test -z "$DUMPBIN"; then
4552 ac_ct_DUMPBIN=$DUMPBIN
4553 for ac_prog in dumpbin "link -dump"
4554 do
4555 # Extract the first word of "$ac_prog", so it can be a program name with args.
4556 set dummy $ac_prog; ac_word=$2
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558 $as_echo_n "checking for $ac_word... " >&6; }
4559 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4560 $as_echo_n "(cached) " >&6
4561 else
4562 if test -n "$ac_ct_DUMPBIN"; then
4563 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4564 else
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 for as_dir in $PATH
4567 do
4568 IFS=$as_save_IFS
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4572 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 break 2
4575 fi
4576 done
4577 done
4578 IFS=$as_save_IFS
4579
4580 fi
4581 fi
4582 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4583 if test -n "$ac_ct_DUMPBIN"; then
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4585 $as_echo "$ac_ct_DUMPBIN" >&6; }
4586 else
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo "no" >&6; }
4589 fi
4590
4591
4592 test -n "$ac_ct_DUMPBIN" && break
4593 done
4594
4595 if test "x$ac_ct_DUMPBIN" = x; then
4596 DUMPBIN=":"
4597 else
4598 case $cross_compiling:$ac_tool_warned in
4599 yes:)
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4602 ac_tool_warned=yes ;;
4603 esac
4604 DUMPBIN=$ac_ct_DUMPBIN
4605 fi
4606 fi
4607
4608 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4609 *COFF*)
4610 DUMPBIN="$DUMPBIN -symbols"
4611 ;;
4612 *)
4613 DUMPBIN=:
4614 ;;
4615 esac
4616 fi
4617
4618 if test "$DUMPBIN" != ":"; then
4619 NM="$DUMPBIN"
4620 fi
4621 fi
4622 test -z "$NM" && NM=nm
4623
4624
4625
4626
4627
4628
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4630 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4631 if ${lt_cv_nm_interface+:} false; then :
4632 $as_echo_n "(cached) " >&6
4633 else
4634 lt_cv_nm_interface="BSD nm"
4635 echo "int some_variable = 0;" > conftest.$ac_ext
4636 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4637 (eval "$ac_compile" 2>conftest.err)
4638 cat conftest.err >&5
4639 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4640 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4641 cat conftest.err >&5
4642 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4643 cat conftest.out >&5
4644 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4645 lt_cv_nm_interface="MS dumpbin"
4646 fi
4647 rm -f conftest*
4648 fi
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4650 $as_echo "$lt_cv_nm_interface" >&6; }
4651
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4653 $as_echo_n "checking whether ln -s works... " >&6; }
4654 LN_S=$as_ln_s
4655 if test "$LN_S" = "ln -s"; then
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4657 $as_echo "yes" >&6; }
4658 else
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4660 $as_echo "no, using $LN_S" >&6; }
4661 fi
4662
4663 # find the maximum length of command line arguments
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4665 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4666 if ${lt_cv_sys_max_cmd_len+:} false; then :
4667 $as_echo_n "(cached) " >&6
4668 else
4669 i=0
4670 teststring="ABCD"
4671
4672 case $build_os in
4673 msdosdjgpp*)
4674 # On DJGPP, this test can blow up pretty badly due to problems in libc
4675 # (any single argument exceeding 2000 bytes causes a buffer overrun
4676 # during glob expansion). Even if it were fixed, the result of this
4677 # check would be larger than it should be.
4678 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4679 ;;
4680
4681 gnu*)
4682 # Under GNU Hurd, this test is not required because there is
4683 # no limit to the length of command line arguments.
4684 # Libtool will interpret -1 as no limit whatsoever
4685 lt_cv_sys_max_cmd_len=-1;
4686 ;;
4687
4688 cygwin* | mingw* | cegcc*)
4689 # On Win9x/ME, this test blows up -- it succeeds, but takes
4690 # about 5 minutes as the teststring grows exponentially.
4691 # Worse, since 9x/ME are not pre-emptively multitasking,
4692 # you end up with a "frozen" computer, even though with patience
4693 # the test eventually succeeds (with a max line length of 256k).
4694 # Instead, let's just punt: use the minimum linelength reported by
4695 # all of the supported platforms: 8192 (on NT/2K/XP).
4696 lt_cv_sys_max_cmd_len=8192;
4697 ;;
4698
4699 mint*)
4700 # On MiNT this can take a long time and run out of memory.
4701 lt_cv_sys_max_cmd_len=8192;
4702 ;;
4703
4704 amigaos*)
4705 # On AmigaOS with pdksh, this test takes hours, literally.
4706 # So we just punt and use a minimum line length of 8192.
4707 lt_cv_sys_max_cmd_len=8192;
4708 ;;
4709
4710 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4711 # This has been around since 386BSD, at least. Likely further.
4712 if test -x /sbin/sysctl; then
4713 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4714 elif test -x /usr/sbin/sysctl; then
4715 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4716 else
4717 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4718 fi
4719 # And add a safety zone
4720 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4721 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4722 ;;
4723
4724 interix*)
4725 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4726 lt_cv_sys_max_cmd_len=196608
4727 ;;
4728
4729 os2*)
4730 # The test takes a long time on OS/2.
4731 lt_cv_sys_max_cmd_len=8192
4732 ;;
4733
4734 osf*)
4735 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4736 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4737 # nice to cause kernel panics so lets avoid the loop below.
4738 # First set a reasonable default.
4739 lt_cv_sys_max_cmd_len=16384
4740 #
4741 if test -x /sbin/sysconfig; then
4742 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4743 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4744 esac
4745 fi
4746 ;;
4747 sco3.2v5*)
4748 lt_cv_sys_max_cmd_len=102400
4749 ;;
4750 sysv5* | sco5v6* | sysv4.2uw2*)
4751 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4752 if test -n "$kargmax"; then
4753 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4754 else
4755 lt_cv_sys_max_cmd_len=32768
4756 fi
4757 ;;
4758 *)
4759 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4760 if test -n "$lt_cv_sys_max_cmd_len"; then
4761 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4762 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4763 else
4764 # Make teststring a little bigger before we do anything with it.
4765 # a 1K string should be a reasonable start.
4766 for i in 1 2 3 4 5 6 7 8 ; do
4767 teststring=$teststring$teststring
4768 done
4769 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4770 # If test is not a shell built-in, we'll probably end up computing a
4771 # maximum length that is only half of the actual maximum length, but
4772 # we can't tell.
4773 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4774 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4775 test $i != 17 # 1/2 MB should be enough
4776 do
4777 i=`expr $i + 1`
4778 teststring=$teststring$teststring
4779 done
4780 # Only check the string length outside the loop.
4781 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4782 teststring=
4783 # Add a significant safety factor because C++ compilers can tack on
4784 # massive amounts of additional arguments before passing them to the
4785 # linker. It appears as though 1/2 is a usable value.
4786 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4787 fi
4788 ;;
4789 esac
4790
4791 fi
4792
4793 if test -n $lt_cv_sys_max_cmd_len ; then
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4795 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4796 else
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4798 $as_echo "none" >&6; }
4799 fi
4800 max_cmd_len=$lt_cv_sys_max_cmd_len
4801
4802
4803
4804
4805
4806
4807 : ${CP="cp -f"}
4808 : ${MV="mv -f"}
4809 : ${RM="rm -f"}
4810
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4812 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4813 # Try some XSI features
4814 xsi_shell=no
4815 ( _lt_dummy="a/b/c"
4816 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4817 = c,a/b,b/c, \
4818 && eval 'test $(( 1 + 1 )) -eq 2 \
4819 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4820 && xsi_shell=yes
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4822 $as_echo "$xsi_shell" >&6; }
4823
4824
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4826 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4827 lt_shell_append=no
4828 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4829 >/dev/null 2>&1 \
4830 && lt_shell_append=yes
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4832 $as_echo "$lt_shell_append" >&6; }
4833
4834
4835 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4836 lt_unset=unset
4837 else
4838 lt_unset=false
4839 fi
4840
4841
4842
4843
4844
4845 # test EBCDIC or ASCII
4846 case `echo X|tr X '\101'` in
4847 A) # ASCII based system
4848 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4849 lt_SP2NL='tr \040 \012'
4850 lt_NL2SP='tr \015\012 \040\040'
4851 ;;
4852 *) # EBCDIC based system
4853 lt_SP2NL='tr \100 \n'
4854 lt_NL2SP='tr \r\n \100\100'
4855 ;;
4856 esac
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4867 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4868 if ${lt_cv_to_host_file_cmd+:} false; then :
4869 $as_echo_n "(cached) " >&6
4870 else
4871 case $host in
4872 *-*-mingw* )
4873 case $build in
4874 *-*-mingw* ) # actually msys
4875 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4876 ;;
4877 *-*-cygwin* )
4878 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4879 ;;
4880 * ) # otherwise, assume *nix
4881 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4882 ;;
4883 esac
4884 ;;
4885 *-*-cygwin* )
4886 case $build in
4887 *-*-mingw* ) # actually msys
4888 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4889 ;;
4890 *-*-cygwin* )
4891 lt_cv_to_host_file_cmd=func_convert_file_noop
4892 ;;
4893 * ) # otherwise, assume *nix
4894 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4895 ;;
4896 esac
4897 ;;
4898 * ) # unhandled hosts (and "normal" native builds)
4899 lt_cv_to_host_file_cmd=func_convert_file_noop
4900 ;;
4901 esac
4902
4903 fi
4904
4905 to_host_file_cmd=$lt_cv_to_host_file_cmd
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4907 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4908
4909
4910
4911
4912
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4914 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4915 if ${lt_cv_to_tool_file_cmd+:} false; then :
4916 $as_echo_n "(cached) " >&6
4917 else
4918 #assume ordinary cross tools, or native build.
4919 lt_cv_to_tool_file_cmd=func_convert_file_noop
4920 case $host in
4921 *-*-mingw* )
4922 case $build in
4923 *-*-mingw* ) # actually msys
4924 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4925 ;;
4926 esac
4927 ;;
4928 esac
4929
4930 fi
4931
4932 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4934 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4935
4936
4937
4938
4939
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4941 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4942 if ${lt_cv_ld_reload_flag+:} false; then :
4943 $as_echo_n "(cached) " >&6
4944 else
4945 lt_cv_ld_reload_flag='-r'
4946 fi
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4948 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4949 reload_flag=$lt_cv_ld_reload_flag
4950 case $reload_flag in
4951 "" | " "*) ;;
4952 *) reload_flag=" $reload_flag" ;;
4953 esac
4954 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4955 case $host_os in
4956 cygwin* | mingw* | pw32* | cegcc*)
4957 if test "$GCC" != yes; then
4958 reload_cmds=false
4959 fi
4960 ;;
4961 darwin*)
4962 if test "$GCC" = yes; then
4963 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4964 else
4965 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4966 fi
4967 ;;
4968 esac
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978 if test -n "$ac_tool_prefix"; then
4979 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4980 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4982 $as_echo_n "checking for $ac_word... " >&6; }
4983 if ${ac_cv_prog_OBJDUMP+:} false; then :
4984 $as_echo_n "(cached) " >&6
4985 else
4986 if test -n "$OBJDUMP"; then
4987 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4988 else
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 for as_dir in $PATH
4991 do
4992 IFS=$as_save_IFS
4993 test -z "$as_dir" && as_dir=.
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4996 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4998 break 2
4999 fi
5000 done
5001 done
5002 IFS=$as_save_IFS
5003
5004 fi
5005 fi
5006 OBJDUMP=$ac_cv_prog_OBJDUMP
5007 if test -n "$OBJDUMP"; then
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5009 $as_echo "$OBJDUMP" >&6; }
5010 else
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5012 $as_echo "no" >&6; }
5013 fi
5014
5015
5016 fi
5017 if test -z "$ac_cv_prog_OBJDUMP"; then
5018 ac_ct_OBJDUMP=$OBJDUMP
5019 # Extract the first word of "objdump", so it can be a program name with args.
5020 set dummy objdump; ac_word=$2
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5022 $as_echo_n "checking for $ac_word... " >&6; }
5023 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5024 $as_echo_n "(cached) " >&6
5025 else
5026 if test -n "$ac_ct_OBJDUMP"; then
5027 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5028 else
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 for as_dir in $PATH
5031 do
5032 IFS=$as_save_IFS
5033 test -z "$as_dir" && as_dir=.
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5036 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5038 break 2
5039 fi
5040 done
5041 done
5042 IFS=$as_save_IFS
5043
5044 fi
5045 fi
5046 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5047 if test -n "$ac_ct_OBJDUMP"; then
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5049 $as_echo "$ac_ct_OBJDUMP" >&6; }
5050 else
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5052 $as_echo "no" >&6; }
5053 fi
5054
5055 if test "x$ac_ct_OBJDUMP" = x; then
5056 OBJDUMP="false"
5057 else
5058 case $cross_compiling:$ac_tool_warned in
5059 yes:)
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5062 ac_tool_warned=yes ;;
5063 esac
5064 OBJDUMP=$ac_ct_OBJDUMP
5065 fi
5066 else
5067 OBJDUMP="$ac_cv_prog_OBJDUMP"
5068 fi
5069
5070 test -z "$OBJDUMP" && OBJDUMP=objdump
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5081 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5082 if ${lt_cv_deplibs_check_method+:} false; then :
5083 $as_echo_n "(cached) " >&6
5084 else
5085 lt_cv_file_magic_cmd='$MAGIC_CMD'
5086 lt_cv_file_magic_test_file=
5087 lt_cv_deplibs_check_method='unknown'
5088 # Need to set the preceding variable on all platforms that support
5089 # interlibrary dependencies.
5090 # 'none' -- dependencies not supported.
5091 # `unknown' -- same as none, but documents that we really don't know.
5092 # 'pass_all' -- all dependencies passed with no checks.
5093 # 'test_compile' -- check by making test program.
5094 # 'file_magic [[regex]]' -- check by looking for files in library path
5095 # which responds to the $file_magic_cmd with a given extended regex.
5096 # If you have `file' or equivalent on your system and you're not sure
5097 # whether `pass_all' will *always* work, you probably want this one.
5098
5099 case $host_os in
5100 aix[4-9]*)
5101 lt_cv_deplibs_check_method=pass_all
5102 ;;
5103
5104 beos*)
5105 lt_cv_deplibs_check_method=pass_all
5106 ;;
5107
5108 bsdi[45]*)
5109 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5110 lt_cv_file_magic_cmd='/usr/bin/file -L'
5111 lt_cv_file_magic_test_file=/shlib/libc.so
5112 ;;
5113
5114 cygwin*)
5115 # func_win32_libid is a shell function defined in ltmain.sh
5116 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5117 lt_cv_file_magic_cmd='func_win32_libid'
5118 ;;
5119
5120 mingw* | pw32*)
5121 # Base MSYS/MinGW do not provide the 'file' command needed by
5122 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5123 # unless we find 'file', for example because we are cross-compiling.
5124 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5125 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5126 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5127 lt_cv_file_magic_cmd='func_win32_libid'
5128 else
5129 # Keep this pattern in sync with the one in func_win32_libid.
5130 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5131 lt_cv_file_magic_cmd='$OBJDUMP -f'
5132 fi
5133 ;;
5134
5135 cegcc*)
5136 # use the weaker test based on 'objdump'. See mingw*.
5137 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5138 lt_cv_file_magic_cmd='$OBJDUMP -f'
5139 ;;
5140
5141 darwin* | rhapsody*)
5142 lt_cv_deplibs_check_method=pass_all
5143 ;;
5144
5145 freebsd* | dragonfly*)
5146 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5147 case $host_cpu in
5148 i*86 )
5149 # Not sure whether the presence of OpenBSD here was a mistake.
5150 # Let's accept both of them until this is cleared up.
5151 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5152 lt_cv_file_magic_cmd=/usr/bin/file
5153 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5154 ;;
5155 esac
5156 else
5157 lt_cv_deplibs_check_method=pass_all
5158 fi
5159 ;;
5160
5161 gnu*)
5162 lt_cv_deplibs_check_method=pass_all
5163 ;;
5164
5165 haiku*)
5166 lt_cv_deplibs_check_method=pass_all
5167 ;;
5168
5169 hpux10.20* | hpux11*)
5170 lt_cv_file_magic_cmd=/usr/bin/file
5171 case $host_cpu in
5172 ia64*)
5173 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5174 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5175 ;;
5176 hppa*64*)
5177 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]'
5178 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5179 ;;
5180 *)
5181 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5182 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5183 ;;
5184 esac
5185 ;;
5186
5187 interix[3-9]*)
5188 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5189 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5190 ;;
5191
5192 irix5* | irix6* | nonstopux*)
5193 case $LD in
5194 *-32|*"-32 ") libmagic=32-bit;;
5195 *-n32|*"-n32 ") libmagic=N32;;
5196 *-64|*"-64 ") libmagic=64-bit;;
5197 *) libmagic=never-match;;
5198 esac
5199 lt_cv_deplibs_check_method=pass_all
5200 ;;
5201
5202 # This must be glibc/ELF.
5203 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5204 lt_cv_deplibs_check_method=pass_all
5205 ;;
5206
5207 netbsd*)
5208 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5209 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5210 else
5211 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5212 fi
5213 ;;
5214
5215 newos6*)
5216 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5217 lt_cv_file_magic_cmd=/usr/bin/file
5218 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5219 ;;
5220
5221 *nto* | *qnx*)
5222 lt_cv_deplibs_check_method=pass_all
5223 ;;
5224
5225 openbsd*)
5226 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5227 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5228 else
5229 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5230 fi
5231 ;;
5232
5233 osf3* | osf4* | osf5*)
5234 lt_cv_deplibs_check_method=pass_all
5235 ;;
5236
5237 rdos*)
5238 lt_cv_deplibs_check_method=pass_all
5239 ;;
5240
5241 solaris*)
5242 lt_cv_deplibs_check_method=pass_all
5243 ;;
5244
5245 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5246 lt_cv_deplibs_check_method=pass_all
5247 ;;
5248
5249 sysv4 | sysv4.3*)
5250 case $host_vendor in
5251 motorola)
5252 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]'
5253 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5254 ;;
5255 ncr)
5256 lt_cv_deplibs_check_method=pass_all
5257 ;;
5258 sequent)
5259 lt_cv_file_magic_cmd='/bin/file'
5260 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5261 ;;
5262 sni)
5263 lt_cv_file_magic_cmd='/bin/file'
5264 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5265 lt_cv_file_magic_test_file=/lib/libc.so
5266 ;;
5267 siemens)
5268 lt_cv_deplibs_check_method=pass_all
5269 ;;
5270 pc)
5271 lt_cv_deplibs_check_method=pass_all
5272 ;;
5273 esac
5274 ;;
5275
5276 tpf*)
5277 lt_cv_deplibs_check_method=pass_all
5278 ;;
5279 esac
5280
5281 fi
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5283 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5284
5285 file_magic_glob=
5286 want_nocaseglob=no
5287 if test "$build" = "$host"; then
5288 case $host_os in
5289 mingw* | pw32*)
5290 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5291 want_nocaseglob=yes
5292 else
5293 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5294 fi
5295 ;;
5296 esac
5297 fi
5298
5299 file_magic_cmd=$lt_cv_file_magic_cmd
5300 deplibs_check_method=$lt_cv_deplibs_check_method
5301 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324 if test -n "$ac_tool_prefix"; then
5325 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5326 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5328 $as_echo_n "checking for $ac_word... " >&6; }
5329 if ${ac_cv_prog_DLLTOOL+:} false; then :
5330 $as_echo_n "(cached) " >&6
5331 else
5332 if test -n "$DLLTOOL"; then
5333 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5334 else
5335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336 for as_dir in $PATH
5337 do
5338 IFS=$as_save_IFS
5339 test -z "$as_dir" && as_dir=.
5340 for ac_exec_ext in '' $ac_executable_extensions; do
5341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5342 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5344 break 2
5345 fi
5346 done
5347 done
5348 IFS=$as_save_IFS
5349
5350 fi
5351 fi
5352 DLLTOOL=$ac_cv_prog_DLLTOOL
5353 if test -n "$DLLTOOL"; then
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5355 $as_echo "$DLLTOOL" >&6; }
5356 else
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 $as_echo "no" >&6; }
5359 fi
5360
5361
5362 fi
5363 if test -z "$ac_cv_prog_DLLTOOL"; then
5364 ac_ct_DLLTOOL=$DLLTOOL
5365 # Extract the first word of "dlltool", so it can be a program name with args.
5366 set dummy dlltool; ac_word=$2
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5368 $as_echo_n "checking for $ac_word... " >&6; }
5369 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5370 $as_echo_n "(cached) " >&6
5371 else
5372 if test -n "$ac_ct_DLLTOOL"; then
5373 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5374 else
5375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376 for as_dir in $PATH
5377 do
5378 IFS=$as_save_IFS
5379 test -z "$as_dir" && as_dir=.
5380 for ac_exec_ext in '' $ac_executable_extensions; do
5381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5382 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5384 break 2
5385 fi
5386 done
5387 done
5388 IFS=$as_save_IFS
5389
5390 fi
5391 fi
5392 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5393 if test -n "$ac_ct_DLLTOOL"; then
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5395 $as_echo "$ac_ct_DLLTOOL" >&6; }
5396 else
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398 $as_echo "no" >&6; }
5399 fi
5400
5401 if test "x$ac_ct_DLLTOOL" = x; then
5402 DLLTOOL="false"
5403 else
5404 case $cross_compiling:$ac_tool_warned in
5405 yes:)
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5408 ac_tool_warned=yes ;;
5409 esac
5410 DLLTOOL=$ac_ct_DLLTOOL
5411 fi
5412 else
5413 DLLTOOL="$ac_cv_prog_DLLTOOL"
5414 fi
5415
5416 test -z "$DLLTOOL" && DLLTOOL=dlltool
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5428 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5429 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5430 $as_echo_n "(cached) " >&6
5431 else
5432 lt_cv_sharedlib_from_linklib_cmd='unknown'
5433
5434 case $host_os in
5435 cygwin* | mingw* | pw32* | cegcc*)
5436 # two different shell functions defined in ltmain.sh
5437 # decide which to use based on capabilities of $DLLTOOL
5438 case `$DLLTOOL --help 2>&1` in
5439 *--identify-strict*)
5440 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5441 ;;
5442 *)
5443 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5444 ;;
5445 esac
5446 ;;
5447 *)
5448 # fallback: assume linklib IS sharedlib
5449 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5450 ;;
5451 esac
5452
5453 fi
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5455 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5456 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5457 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5458
5459
5460
5461
5462
5463
5464
5465
5466 if test -n "$ac_tool_prefix"; then
5467 for ac_prog in ar
5468 do
5469 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5470 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5472 $as_echo_n "checking for $ac_word... " >&6; }
5473 if ${ac_cv_prog_AR+:} false; then :
5474 $as_echo_n "(cached) " >&6
5475 else
5476 if test -n "$AR"; then
5477 ac_cv_prog_AR="$AR" # Let the user override the test.
5478 else
5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480 for as_dir in $PATH
5481 do
5482 IFS=$as_save_IFS
5483 test -z "$as_dir" && as_dir=.
5484 for ac_exec_ext in '' $ac_executable_extensions; do
5485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5486 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5488 break 2
5489 fi
5490 done
5491 done
5492 IFS=$as_save_IFS
5493
5494 fi
5495 fi
5496 AR=$ac_cv_prog_AR
5497 if test -n "$AR"; then
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5499 $as_echo "$AR" >&6; }
5500 else
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502 $as_echo "no" >&6; }
5503 fi
5504
5505
5506 test -n "$AR" && break
5507 done
5508 fi
5509 if test -z "$AR"; then
5510 ac_ct_AR=$AR
5511 for ac_prog in ar
5512 do
5513 # Extract the first word of "$ac_prog", so it can be a program name with args.
5514 set dummy $ac_prog; ac_word=$2
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5516 $as_echo_n "checking for $ac_word... " >&6; }
5517 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5518 $as_echo_n "(cached) " >&6
5519 else
5520 if test -n "$ac_ct_AR"; then
5521 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5522 else
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524 for as_dir in $PATH
5525 do
5526 IFS=$as_save_IFS
5527 test -z "$as_dir" && as_dir=.
5528 for ac_exec_ext in '' $ac_executable_extensions; do
5529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5530 ac_cv_prog_ac_ct_AR="$ac_prog"
5531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5532 break 2
5533 fi
5534 done
5535 done
5536 IFS=$as_save_IFS
5537
5538 fi
5539 fi
5540 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5541 if test -n "$ac_ct_AR"; then
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5543 $as_echo "$ac_ct_AR" >&6; }
5544 else
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5546 $as_echo "no" >&6; }
5547 fi
5548
5549
5550 test -n "$ac_ct_AR" && break
5551 done
5552
5553 if test "x$ac_ct_AR" = x; then
5554 AR="false"
5555 else
5556 case $cross_compiling:$ac_tool_warned in
5557 yes:)
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5560 ac_tool_warned=yes ;;
5561 esac
5562 AR=$ac_ct_AR
5563 fi
5564 fi
5565
5566 : ${AR=ar}
5567 : ${AR_FLAGS=cru}
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5580 $as_echo_n "checking for archiver @FILE support... " >&6; }
5581 if ${lt_cv_ar_at_file+:} false; then :
5582 $as_echo_n "(cached) " >&6
5583 else
5584 lt_cv_ar_at_file=no
5585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5586 /* end confdefs.h. */
5587
5588 int
5589 main ()
5590 {
5591
5592 ;
5593 return 0;
5594 }
5595 _ACEOF
5596 if ac_fn_c_try_compile "$LINENO"; then :
5597 echo conftest.$ac_objext > conftest.lst
5598 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5600 (eval $lt_ar_try) 2>&5
5601 ac_status=$?
5602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5603 test $ac_status = 0; }
5604 if test "$ac_status" -eq 0; then
5605 # Ensure the archiver fails upon bogus file names.
5606 rm -f conftest.$ac_objext libconftest.a
5607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5608 (eval $lt_ar_try) 2>&5
5609 ac_status=$?
5610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5611 test $ac_status = 0; }
5612 if test "$ac_status" -ne 0; then
5613 lt_cv_ar_at_file=@
5614 fi
5615 fi
5616 rm -f conftest.* libconftest.a
5617
5618 fi
5619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5620
5621 fi
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5623 $as_echo "$lt_cv_ar_at_file" >&6; }
5624
5625 if test "x$lt_cv_ar_at_file" = xno; then
5626 archiver_list_spec=
5627 else
5628 archiver_list_spec=$lt_cv_ar_at_file
5629 fi
5630
5631
5632
5633
5634
5635
5636
5637 if test -n "$ac_tool_prefix"; then
5638 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5639 set dummy ${ac_tool_prefix}strip; ac_word=$2
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5641 $as_echo_n "checking for $ac_word... " >&6; }
5642 if ${ac_cv_prog_STRIP+:} false; then :
5643 $as_echo_n "(cached) " >&6
5644 else
5645 if test -n "$STRIP"; then
5646 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5647 else
5648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649 for as_dir in $PATH
5650 do
5651 IFS=$as_save_IFS
5652 test -z "$as_dir" && as_dir=.
5653 for ac_exec_ext in '' $ac_executable_extensions; do
5654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5655 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5657 break 2
5658 fi
5659 done
5660 done
5661 IFS=$as_save_IFS
5662
5663 fi
5664 fi
5665 STRIP=$ac_cv_prog_STRIP
5666 if test -n "$STRIP"; then
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5668 $as_echo "$STRIP" >&6; }
5669 else
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671 $as_echo "no" >&6; }
5672 fi
5673
5674
5675 fi
5676 if test -z "$ac_cv_prog_STRIP"; then
5677 ac_ct_STRIP=$STRIP
5678 # Extract the first word of "strip", so it can be a program name with args.
5679 set dummy strip; ac_word=$2
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5681 $as_echo_n "checking for $ac_word... " >&6; }
5682 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5683 $as_echo_n "(cached) " >&6
5684 else
5685 if test -n "$ac_ct_STRIP"; then
5686 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5687 else
5688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5689 for as_dir in $PATH
5690 do
5691 IFS=$as_save_IFS
5692 test -z "$as_dir" && as_dir=.
5693 for ac_exec_ext in '' $ac_executable_extensions; do
5694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5695 ac_cv_prog_ac_ct_STRIP="strip"
5696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5697 break 2
5698 fi
5699 done
5700 done
5701 IFS=$as_save_IFS
5702
5703 fi
5704 fi
5705 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5706 if test -n "$ac_ct_STRIP"; then
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5708 $as_echo "$ac_ct_STRIP" >&6; }
5709 else
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5711 $as_echo "no" >&6; }
5712 fi
5713
5714 if test "x$ac_ct_STRIP" = x; then
5715 STRIP=":"
5716 else
5717 case $cross_compiling:$ac_tool_warned in
5718 yes:)
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5721 ac_tool_warned=yes ;;
5722 esac
5723 STRIP=$ac_ct_STRIP
5724 fi
5725 else
5726 STRIP="$ac_cv_prog_STRIP"
5727 fi
5728
5729 test -z "$STRIP" && STRIP=:
5730
5731
5732
5733
5734
5735
5736 if test -n "$ac_tool_prefix"; then
5737 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5738 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5740 $as_echo_n "checking for $ac_word... " >&6; }
5741 if ${ac_cv_prog_RANLIB+:} false; then :
5742 $as_echo_n "(cached) " >&6
5743 else
5744 if test -n "$RANLIB"; then
5745 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5746 else
5747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5748 for as_dir in $PATH
5749 do
5750 IFS=$as_save_IFS
5751 test -z "$as_dir" && as_dir=.
5752 for ac_exec_ext in '' $ac_executable_extensions; do
5753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5754 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5756 break 2
5757 fi
5758 done
5759 done
5760 IFS=$as_save_IFS
5761
5762 fi
5763 fi
5764 RANLIB=$ac_cv_prog_RANLIB
5765 if test -n "$RANLIB"; then
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5767 $as_echo "$RANLIB" >&6; }
5768 else
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5770 $as_echo "no" >&6; }
5771 fi
5772
5773
5774 fi
5775 if test -z "$ac_cv_prog_RANLIB"; then
5776 ac_ct_RANLIB=$RANLIB
5777 # Extract the first word of "ranlib", so it can be a program name with args.
5778 set dummy ranlib; ac_word=$2
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5780 $as_echo_n "checking for $ac_word... " >&6; }
5781 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5782 $as_echo_n "(cached) " >&6
5783 else
5784 if test -n "$ac_ct_RANLIB"; then
5785 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5786 else
5787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5788 for as_dir in $PATH
5789 do
5790 IFS=$as_save_IFS
5791 test -z "$as_dir" && as_dir=.
5792 for ac_exec_ext in '' $ac_executable_extensions; do
5793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5794 ac_cv_prog_ac_ct_RANLIB="ranlib"
5795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5796 break 2
5797 fi
5798 done
5799 done
5800 IFS=$as_save_IFS
5801
5802 fi
5803 fi
5804 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5805 if test -n "$ac_ct_RANLIB"; then
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5807 $as_echo "$ac_ct_RANLIB" >&6; }
5808 else
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5810 $as_echo "no" >&6; }
5811 fi
5812
5813 if test "x$ac_ct_RANLIB" = x; then
5814 RANLIB=":"
5815 else
5816 case $cross_compiling:$ac_tool_warned in
5817 yes:)
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5819 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5820 ac_tool_warned=yes ;;
5821 esac
5822 RANLIB=$ac_ct_RANLIB
5823 fi
5824 else
5825 RANLIB="$ac_cv_prog_RANLIB"
5826 fi
5827
5828 test -z "$RANLIB" && RANLIB=:
5829
5830
5831
5832
5833
5834
5835 # Determine commands to create old-style static archives.
5836 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5837 old_postinstall_cmds='chmod 644 $oldlib'
5838 old_postuninstall_cmds=
5839
5840 if test -n "$RANLIB"; then
5841 case $host_os in
5842 openbsd*)
5843 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5844 ;;
5845 *)
5846 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5847 ;;
5848 esac
5849 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5850 fi
5851
5852 case $host_os in
5853 darwin*)
5854 lock_old_archive_extraction=yes ;;
5855 *)
5856 lock_old_archive_extraction=no ;;
5857 esac
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897 # If no C compiler was specified, use CC.
5898 LTCC=${LTCC-"$CC"}
5899
5900 # If no C compiler flags were specified, use CFLAGS.
5901 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5902
5903 # Allow CC to be a program name with arguments.
5904 compiler=$CC
5905
5906
5907 # Check for command to grab the raw symbol name followed by C symbol from nm.
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5909 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5910 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5911 $as_echo_n "(cached) " >&6
5912 else
5913
5914 # These are sane defaults that work on at least a few old systems.
5915 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5916
5917 # Character class describing NM global symbol codes.
5918 symcode='[BCDEGRST]'
5919
5920 # Regexp to match symbols that can be accessed directly from C.
5921 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5922
5923 # Define system-specific variables.
5924 case $host_os in
5925 aix*)
5926 symcode='[BCDT]'
5927 ;;
5928 cygwin* | mingw* | pw32* | cegcc*)
5929 symcode='[ABCDGISTW]'
5930 ;;
5931 hpux*)
5932 if test "$host_cpu" = ia64; then
5933 symcode='[ABCDEGRST]'
5934 fi
5935 ;;
5936 irix* | nonstopux*)
5937 symcode='[BCDEGRST]'
5938 ;;
5939 osf*)
5940 symcode='[BCDEGQRST]'
5941 ;;
5942 solaris*)
5943 symcode='[BDRT]'
5944 ;;
5945 sco3.2v5*)
5946 symcode='[DT]'
5947 ;;
5948 sysv4.2uw2*)
5949 symcode='[DT]'
5950 ;;
5951 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5952 symcode='[ABDT]'
5953 ;;
5954 sysv4)
5955 symcode='[DFNSTU]'
5956 ;;
5957 esac
5958
5959 # If we're using GNU nm, then use its standard symbol codes.
5960 case `$NM -V 2>&1` in
5961 *GNU* | *'with BFD'*)
5962 symcode='[ABCDGIRSTW]' ;;
5963 esac
5964
5965 # Transform an extracted symbol line into a proper C declaration.
5966 # Some systems (esp. on ia64) link data and code symbols differently,
5967 # so use this general approach.
5968 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5969
5970 # Transform an extracted symbol line into symbol name and symbol address
5971 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5972 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'"
5973
5974 # Handle CRLF in mingw tool chain
5975 opt_cr=
5976 case $build_os in
5977 mingw*)
5978 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5979 ;;
5980 esac
5981
5982 # Try without a prefix underscore, then with it.
5983 for ac_symprfx in "" "_"; do
5984
5985 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5986 symxfrm="\\1 $ac_symprfx\\2 \\2"
5987
5988 # Write the raw and C identifiers.
5989 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5990 # Fake it for dumpbin and say T for any non-static function
5991 # and D for any global variable.
5992 # Also find C++ and __fastcall symbols from MSVC++,
5993 # which start with @ or ?.
5994 lt_cv_sys_global_symbol_pipe="$AWK '"\
5995 " {last_section=section; section=\$ 3};"\
5996 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5997 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5998 " \$ 0!~/External *\|/{next};"\
5999 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6000 " {if(hide[section]) next};"\
6001 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6002 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6003 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6004 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6005 " ' prfx=^$ac_symprfx"
6006 else
6007 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6008 fi
6009 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6010
6011 # Check to see that the pipe works correctly.
6012 pipe_works=no
6013
6014 rm -f conftest*
6015 cat > conftest.$ac_ext <<_LT_EOF
6016 #ifdef __cplusplus
6017 extern "C" {
6018 #endif
6019 char nm_test_var;
6020 void nm_test_func(void);
6021 void nm_test_func(void){}
6022 #ifdef __cplusplus
6023 }
6024 #endif
6025 int main(){nm_test_var='a';nm_test_func();return(0);}
6026 _LT_EOF
6027
6028 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6029 (eval $ac_compile) 2>&5
6030 ac_status=$?
6031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6032 test $ac_status = 0; }; then
6033 # Now try to grab the symbols.
6034 nlist=conftest.nm
6035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6036 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6037 ac_status=$?
6038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6039 test $ac_status = 0; } && test -s "$nlist"; then
6040 # Try sorting and uniquifying the output.
6041 if sort "$nlist" | uniq > "$nlist"T; then
6042 mv -f "$nlist"T "$nlist"
6043 else
6044 rm -f "$nlist"T
6045 fi
6046
6047 # Make sure that we snagged all the symbols we need.
6048 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6049 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6050 cat <<_LT_EOF > conftest.$ac_ext
6051 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6052 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6053 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6054 relocations are performed -- see ld's documentation on pseudo-relocs. */
6055 # define LT_DLSYM_CONST
6056 #elif defined(__osf__)
6057 /* This system does not cope well with relocations in const data. */
6058 # define LT_DLSYM_CONST
6059 #else
6060 # define LT_DLSYM_CONST const
6061 #endif
6062
6063 #ifdef __cplusplus
6064 extern "C" {
6065 #endif
6066
6067 _LT_EOF
6068 # Now generate the symbol file.
6069 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6070
6071 cat <<_LT_EOF >> conftest.$ac_ext
6072
6073 /* The mapping between symbol names and symbols. */
6074 LT_DLSYM_CONST struct {
6075 const char *name;
6076 void *address;
6077 }
6078 lt__PROGRAM__LTX_preloaded_symbols[] =
6079 {
6080 { "@PROGRAM@", (void *) 0 },
6081 _LT_EOF
6082 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6083 cat <<\_LT_EOF >> conftest.$ac_ext
6084 {0, (void *) 0}
6085 };
6086
6087 /* This works around a problem in FreeBSD linker */
6088 #ifdef FREEBSD_WORKAROUND
6089 static const void *lt_preloaded_setup() {
6090 return lt__PROGRAM__LTX_preloaded_symbols;
6091 }
6092 #endif
6093
6094 #ifdef __cplusplus
6095 }
6096 #endif
6097 _LT_EOF
6098 # Now try linking the two files.
6099 mv conftest.$ac_objext conftstm.$ac_objext
6100 lt_globsym_save_LIBS=$LIBS
6101 lt_globsym_save_CFLAGS=$CFLAGS
6102 LIBS="conftstm.$ac_objext"
6103 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6105 (eval $ac_link) 2>&5
6106 ac_status=$?
6107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6108 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6109 pipe_works=yes
6110 fi
6111 LIBS=$lt_globsym_save_LIBS
6112 CFLAGS=$lt_globsym_save_CFLAGS
6113 else
6114 echo "cannot find nm_test_func in $nlist" >&5
6115 fi
6116 else
6117 echo "cannot find nm_test_var in $nlist" >&5
6118 fi
6119 else
6120 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6121 fi
6122 else
6123 echo "$progname: failed program was:" >&5
6124 cat conftest.$ac_ext >&5
6125 fi
6126 rm -rf conftest* conftst*
6127
6128 # Do not use the global_symbol_pipe unless it works.
6129 if test "$pipe_works" = yes; then
6130 break
6131 else
6132 lt_cv_sys_global_symbol_pipe=
6133 fi
6134 done
6135
6136 fi
6137
6138 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6139 lt_cv_sys_global_symbol_to_cdecl=
6140 fi
6141 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6143 $as_echo "failed" >&6; }
6144 else
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6146 $as_echo "ok" >&6; }
6147 fi
6148
6149 # Response file support.
6150 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6151 nm_file_list_spec='@'
6152 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6153 nm_file_list_spec='@'
6154 fi
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6183 $as_echo_n "checking for sysroot... " >&6; }
6184
6185 # Check whether --with-sysroot was given.
6186 if test "${with_sysroot+set}" = set; then :
6187 withval=$with_sysroot;
6188 else
6189 with_sysroot=no
6190 fi
6191
6192
6193 lt_sysroot=
6194 case ${with_sysroot} in #(
6195 yes)
6196 if test "$GCC" = yes; then
6197 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6198 fi
6199 ;; #(
6200 /*)
6201 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6202 ;; #(
6203 no|'')
6204 ;; #(
6205 *)
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6207 $as_echo "${with_sysroot}" >&6; }
6208 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6209 ;;
6210 esac
6211
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6213 $as_echo "${lt_sysroot:-no}" >&6; }
6214
6215
6216
6217
6218
6219 # Check whether --enable-libtool-lock was given.
6220 if test "${enable_libtool_lock+set}" = set; then :
6221 enableval=$enable_libtool_lock;
6222 fi
6223
6224 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6225
6226 # Some flags need to be propagated to the compiler or linker for good
6227 # libtool support.
6228 case $host in
6229 ia64-*-hpux*)
6230 # Find out which ABI we are using.
6231 echo 'int i;' > conftest.$ac_ext
6232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6233 (eval $ac_compile) 2>&5
6234 ac_status=$?
6235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6236 test $ac_status = 0; }; then
6237 case `/usr/bin/file conftest.$ac_objext` in
6238 *ELF-32*)
6239 HPUX_IA64_MODE="32"
6240 ;;
6241 *ELF-64*)
6242 HPUX_IA64_MODE="64"
6243 ;;
6244 esac
6245 fi
6246 rm -rf conftest*
6247 ;;
6248 *-*-irix6*)
6249 # Find out which ABI we are using.
6250 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6252 (eval $ac_compile) 2>&5
6253 ac_status=$?
6254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6255 test $ac_status = 0; }; then
6256 if test "$lt_cv_prog_gnu_ld" = yes; then
6257 case `/usr/bin/file conftest.$ac_objext` in
6258 *32-bit*)
6259 LD="${LD-ld} -melf32bsmip"
6260 ;;
6261 *N32*)
6262 LD="${LD-ld} -melf32bmipn32"
6263 ;;
6264 *64-bit*)
6265 LD="${LD-ld} -melf64bmip"
6266 ;;
6267 esac
6268 else
6269 case `/usr/bin/file conftest.$ac_objext` in
6270 *32-bit*)
6271 LD="${LD-ld} -32"
6272 ;;
6273 *N32*)
6274 LD="${LD-ld} -n32"
6275 ;;
6276 *64-bit*)
6277 LD="${LD-ld} -64"
6278 ;;
6279 esac
6280 fi
6281 fi
6282 rm -rf conftest*
6283 ;;
6284
6285 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6286 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6287 # Find out which ABI we are using.
6288 echo 'int i;' > conftest.$ac_ext
6289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6290 (eval $ac_compile) 2>&5
6291 ac_status=$?
6292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6293 test $ac_status = 0; }; then
6294 case `/usr/bin/file conftest.o` in
6295 *32-bit*)
6296 case $host in
6297 x86_64-*kfreebsd*-gnu)
6298 LD="${LD-ld} -m elf_i386_fbsd"
6299 ;;
6300 x86_64-*linux*)
6301 LD="${LD-ld} -m elf_i386"
6302 ;;
6303 ppc64-*linux*|powerpc64-*linux*)
6304 LD="${LD-ld} -m elf32ppclinux"
6305 ;;
6306 s390x-*linux*)
6307 LD="${LD-ld} -m elf_s390"
6308 ;;
6309 sparc64-*linux*)
6310 LD="${LD-ld} -m elf32_sparc"
6311 ;;
6312 esac
6313 ;;
6314 *64-bit*)
6315 case $host in
6316 x86_64-*kfreebsd*-gnu)
6317 LD="${LD-ld} -m elf_x86_64_fbsd"
6318 ;;
6319 x86_64-*linux*)
6320 LD="${LD-ld} -m elf_x86_64"
6321 ;;
6322 ppc*-*linux*|powerpc*-*linux*)
6323 LD="${LD-ld} -m elf64ppc"
6324 ;;
6325 s390*-*linux*|s390*-*tpf*)
6326 LD="${LD-ld} -m elf64_s390"
6327 ;;
6328 sparc*-*linux*)
6329 LD="${LD-ld} -m elf64_sparc"
6330 ;;
6331 esac
6332 ;;
6333 esac
6334 fi
6335 rm -rf conftest*
6336 ;;
6337
6338 *-*-sco3.2v5*)
6339 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6340 SAVE_CFLAGS="$CFLAGS"
6341 CFLAGS="$CFLAGS -belf"
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6343 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6344 if ${lt_cv_cc_needs_belf+:} false; then :
6345 $as_echo_n "(cached) " >&6
6346 else
6347 ac_ext=c
6348 ac_cpp='$CPP $CPPFLAGS'
6349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6352
6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354 /* end confdefs.h. */
6355
6356 int
6357 main ()
6358 {
6359
6360 ;
6361 return 0;
6362 }
6363 _ACEOF
6364 if ac_fn_c_try_link "$LINENO"; then :
6365 lt_cv_cc_needs_belf=yes
6366 else
6367 lt_cv_cc_needs_belf=no
6368 fi
6369 rm -f core conftest.err conftest.$ac_objext \
6370 conftest$ac_exeext conftest.$ac_ext
6371 ac_ext=c
6372 ac_cpp='$CPP $CPPFLAGS'
6373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6376
6377 fi
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6379 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6380 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6381 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6382 CFLAGS="$SAVE_CFLAGS"
6383 fi
6384 ;;
6385 *-*solaris*)
6386 # Find out which ABI we are using.
6387 echo 'int i;' > conftest.$ac_ext
6388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6389 (eval $ac_compile) 2>&5
6390 ac_status=$?
6391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6392 test $ac_status = 0; }; then
6393 case `/usr/bin/file conftest.o` in
6394 *64-bit*)
6395 case $lt_cv_prog_gnu_ld in
6396 yes*)
6397 case $host in
6398 i?86-*-solaris*)
6399 LD="${LD-ld} -m elf_x86_64"
6400 ;;
6401 sparc*-*-solaris*)
6402 LD="${LD-ld} -m elf64_sparc"
6403 ;;
6404 esac
6405 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6406 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6407 LD="${LD-ld}_sol2"
6408 fi
6409 ;;
6410 *)
6411 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6412 LD="${LD-ld} -64"
6413 fi
6414 ;;
6415 esac
6416 ;;
6417 esac
6418 fi
6419 rm -rf conftest*
6420 ;;
6421 esac
6422
6423 need_locks="$enable_libtool_lock"
6424
6425 if test -n "$ac_tool_prefix"; then
6426 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6427 set dummy ${ac_tool_prefix}mt; 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_MANIFEST_TOOL+:} false; then :
6431 $as_echo_n "(cached) " >&6
6432 else
6433 if test -n "$MANIFEST_TOOL"; then
6434 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # 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_MANIFEST_TOOL="${ac_tool_prefix}mt"
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 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6454 if test -n "$MANIFEST_TOOL"; then
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6456 $as_echo "$MANIFEST_TOOL" >&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_MANIFEST_TOOL"; then
6465 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6466 # Extract the first word of "mt", so it can be a program name with args.
6467 set dummy mt; 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_MANIFEST_TOOL+:} false; then :
6471 $as_echo_n "(cached) " >&6
6472 else
6473 if test -n "$ac_ct_MANIFEST_TOOL"; then
6474 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # 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_MANIFEST_TOOL="mt"
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_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6494 if test -n "$ac_ct_MANIFEST_TOOL"; then
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6496 $as_echo "$ac_ct_MANIFEST_TOOL" >&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_MANIFEST_TOOL" = x; then
6503 MANIFEST_TOOL=":"
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 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6512 fi
6513 else
6514 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6515 fi
6516
6517 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6519 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6520 if ${lt_cv_path_mainfest_tool+:} false; then :
6521 $as_echo_n "(cached) " >&6
6522 else
6523 lt_cv_path_mainfest_tool=no
6524 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6525 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6526 cat conftest.err >&5
6527 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6528 lt_cv_path_mainfest_tool=yes
6529 fi
6530 rm -f conftest*
6531 fi
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6533 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6534 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6535 MANIFEST_TOOL=:
6536 fi
6537
6538
6539
6540
6541
6542
6543 case $host_os in
6544 rhapsody* | darwin*)
6545 if test -n "$ac_tool_prefix"; then
6546 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6547 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6549 $as_echo_n "checking for $ac_word... " >&6; }
6550 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6551 $as_echo_n "(cached) " >&6
6552 else
6553 if test -n "$DSYMUTIL"; then
6554 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6555 else
6556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 for as_dir in $PATH
6558 do
6559 IFS=$as_save_IFS
6560 test -z "$as_dir" && as_dir=.
6561 for ac_exec_ext in '' $ac_executable_extensions; do
6562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6563 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6565 break 2
6566 fi
6567 done
6568 done
6569 IFS=$as_save_IFS
6570
6571 fi
6572 fi
6573 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6574 if test -n "$DSYMUTIL"; then
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6576 $as_echo "$DSYMUTIL" >&6; }
6577 else
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579 $as_echo "no" >&6; }
6580 fi
6581
6582
6583 fi
6584 if test -z "$ac_cv_prog_DSYMUTIL"; then
6585 ac_ct_DSYMUTIL=$DSYMUTIL
6586 # Extract the first word of "dsymutil", so it can be a program name with args.
6587 set dummy dsymutil; ac_word=$2
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6589 $as_echo_n "checking for $ac_word... " >&6; }
6590 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6591 $as_echo_n "(cached) " >&6
6592 else
6593 if test -n "$ac_ct_DSYMUTIL"; then
6594 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6595 else
6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597 for as_dir in $PATH
6598 do
6599 IFS=$as_save_IFS
6600 test -z "$as_dir" && as_dir=.
6601 for ac_exec_ext in '' $ac_executable_extensions; do
6602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6603 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6605 break 2
6606 fi
6607 done
6608 done
6609 IFS=$as_save_IFS
6610
6611 fi
6612 fi
6613 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6614 if test -n "$ac_ct_DSYMUTIL"; then
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6616 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6617 else
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619 $as_echo "no" >&6; }
6620 fi
6621
6622 if test "x$ac_ct_DSYMUTIL" = x; then
6623 DSYMUTIL=":"
6624 else
6625 case $cross_compiling:$ac_tool_warned in
6626 yes:)
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6629 ac_tool_warned=yes ;;
6630 esac
6631 DSYMUTIL=$ac_ct_DSYMUTIL
6632 fi
6633 else
6634 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6635 fi
6636
6637 if test -n "$ac_tool_prefix"; then
6638 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6639 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6641 $as_echo_n "checking for $ac_word... " >&6; }
6642 if ${ac_cv_prog_NMEDIT+:} false; then :
6643 $as_echo_n "(cached) " >&6
6644 else
6645 if test -n "$NMEDIT"; then
6646 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6647 else
6648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649 for as_dir in $PATH
6650 do
6651 IFS=$as_save_IFS
6652 test -z "$as_dir" && as_dir=.
6653 for ac_exec_ext in '' $ac_executable_extensions; do
6654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6655 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6657 break 2
6658 fi
6659 done
6660 done
6661 IFS=$as_save_IFS
6662
6663 fi
6664 fi
6665 NMEDIT=$ac_cv_prog_NMEDIT
6666 if test -n "$NMEDIT"; then
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6668 $as_echo "$NMEDIT" >&6; }
6669 else
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6671 $as_echo "no" >&6; }
6672 fi
6673
6674
6675 fi
6676 if test -z "$ac_cv_prog_NMEDIT"; then
6677 ac_ct_NMEDIT=$NMEDIT
6678 # Extract the first word of "nmedit", so it can be a program name with args.
6679 set dummy nmedit; ac_word=$2
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6681 $as_echo_n "checking for $ac_word... " >&6; }
6682 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6683 $as_echo_n "(cached) " >&6
6684 else
6685 if test -n "$ac_ct_NMEDIT"; then
6686 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6687 else
6688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689 for as_dir in $PATH
6690 do
6691 IFS=$as_save_IFS
6692 test -z "$as_dir" && as_dir=.
6693 for ac_exec_ext in '' $ac_executable_extensions; do
6694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6695 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6697 break 2
6698 fi
6699 done
6700 done
6701 IFS=$as_save_IFS
6702
6703 fi
6704 fi
6705 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6706 if test -n "$ac_ct_NMEDIT"; then
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6708 $as_echo "$ac_ct_NMEDIT" >&6; }
6709 else
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6711 $as_echo "no" >&6; }
6712 fi
6713
6714 if test "x$ac_ct_NMEDIT" = x; then
6715 NMEDIT=":"
6716 else
6717 case $cross_compiling:$ac_tool_warned in
6718 yes:)
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6721 ac_tool_warned=yes ;;
6722 esac
6723 NMEDIT=$ac_ct_NMEDIT
6724 fi
6725 else
6726 NMEDIT="$ac_cv_prog_NMEDIT"
6727 fi
6728
6729 if test -n "$ac_tool_prefix"; then
6730 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6731 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6733 $as_echo_n "checking for $ac_word... " >&6; }
6734 if ${ac_cv_prog_LIPO+:} false; then :
6735 $as_echo_n "(cached) " >&6
6736 else
6737 if test -n "$LIPO"; then
6738 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6739 else
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741 for as_dir in $PATH
6742 do
6743 IFS=$as_save_IFS
6744 test -z "$as_dir" && as_dir=.
6745 for ac_exec_ext in '' $ac_executable_extensions; do
6746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6747 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6749 break 2
6750 fi
6751 done
6752 done
6753 IFS=$as_save_IFS
6754
6755 fi
6756 fi
6757 LIPO=$ac_cv_prog_LIPO
6758 if test -n "$LIPO"; then
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6760 $as_echo "$LIPO" >&6; }
6761 else
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6763 $as_echo "no" >&6; }
6764 fi
6765
6766
6767 fi
6768 if test -z "$ac_cv_prog_LIPO"; then
6769 ac_ct_LIPO=$LIPO
6770 # Extract the first word of "lipo", so it can be a program name with args.
6771 set dummy lipo; ac_word=$2
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6773 $as_echo_n "checking for $ac_word... " >&6; }
6774 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6775 $as_echo_n "(cached) " >&6
6776 else
6777 if test -n "$ac_ct_LIPO"; then
6778 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6779 else
6780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781 for as_dir in $PATH
6782 do
6783 IFS=$as_save_IFS
6784 test -z "$as_dir" && as_dir=.
6785 for ac_exec_ext in '' $ac_executable_extensions; do
6786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6787 ac_cv_prog_ac_ct_LIPO="lipo"
6788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6789 break 2
6790 fi
6791 done
6792 done
6793 IFS=$as_save_IFS
6794
6795 fi
6796 fi
6797 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6798 if test -n "$ac_ct_LIPO"; then
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6800 $as_echo "$ac_ct_LIPO" >&6; }
6801 else
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6803 $as_echo "no" >&6; }
6804 fi
6805
6806 if test "x$ac_ct_LIPO" = x; then
6807 LIPO=":"
6808 else
6809 case $cross_compiling:$ac_tool_warned in
6810 yes:)
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6813 ac_tool_warned=yes ;;
6814 esac
6815 LIPO=$ac_ct_LIPO
6816 fi
6817 else
6818 LIPO="$ac_cv_prog_LIPO"
6819 fi
6820
6821 if test -n "$ac_tool_prefix"; then
6822 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6823 set dummy ${ac_tool_prefix}otool; ac_word=$2
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825 $as_echo_n "checking for $ac_word... " >&6; }
6826 if ${ac_cv_prog_OTOOL+:} false; then :
6827 $as_echo_n "(cached) " >&6
6828 else
6829 if test -n "$OTOOL"; then
6830 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6831 else
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 for as_dir in $PATH
6834 do
6835 IFS=$as_save_IFS
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6839 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 break 2
6842 fi
6843 done
6844 done
6845 IFS=$as_save_IFS
6846
6847 fi
6848 fi
6849 OTOOL=$ac_cv_prog_OTOOL
6850 if test -n "$OTOOL"; then
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6852 $as_echo "$OTOOL" >&6; }
6853 else
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855 $as_echo "no" >&6; }
6856 fi
6857
6858
6859 fi
6860 if test -z "$ac_cv_prog_OTOOL"; then
6861 ac_ct_OTOOL=$OTOOL
6862 # Extract the first word of "otool", so it can be a program name with args.
6863 set dummy otool; ac_word=$2
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6865 $as_echo_n "checking for $ac_word... " >&6; }
6866 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6867 $as_echo_n "(cached) " >&6
6868 else
6869 if test -n "$ac_ct_OTOOL"; then
6870 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6871 else
6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 for as_dir in $PATH
6874 do
6875 IFS=$as_save_IFS
6876 test -z "$as_dir" && as_dir=.
6877 for ac_exec_ext in '' $ac_executable_extensions; do
6878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6879 ac_cv_prog_ac_ct_OTOOL="otool"
6880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 break 2
6882 fi
6883 done
6884 done
6885 IFS=$as_save_IFS
6886
6887 fi
6888 fi
6889 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6890 if test -n "$ac_ct_OTOOL"; then
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6892 $as_echo "$ac_ct_OTOOL" >&6; }
6893 else
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6895 $as_echo "no" >&6; }
6896 fi
6897
6898 if test "x$ac_ct_OTOOL" = x; then
6899 OTOOL=":"
6900 else
6901 case $cross_compiling:$ac_tool_warned in
6902 yes:)
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6905 ac_tool_warned=yes ;;
6906 esac
6907 OTOOL=$ac_ct_OTOOL
6908 fi
6909 else
6910 OTOOL="$ac_cv_prog_OTOOL"
6911 fi
6912
6913 if test -n "$ac_tool_prefix"; then
6914 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6915 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6917 $as_echo_n "checking for $ac_word... " >&6; }
6918 if ${ac_cv_prog_OTOOL64+:} false; then :
6919 $as_echo_n "(cached) " >&6
6920 else
6921 if test -n "$OTOOL64"; then
6922 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6923 else
6924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925 for as_dir in $PATH
6926 do
6927 IFS=$as_save_IFS
6928 test -z "$as_dir" && as_dir=.
6929 for ac_exec_ext in '' $ac_executable_extensions; do
6930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6931 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6933 break 2
6934 fi
6935 done
6936 done
6937 IFS=$as_save_IFS
6938
6939 fi
6940 fi
6941 OTOOL64=$ac_cv_prog_OTOOL64
6942 if test -n "$OTOOL64"; then
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6944 $as_echo "$OTOOL64" >&6; }
6945 else
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6947 $as_echo "no" >&6; }
6948 fi
6949
6950
6951 fi
6952 if test -z "$ac_cv_prog_OTOOL64"; then
6953 ac_ct_OTOOL64=$OTOOL64
6954 # Extract the first word of "otool64", so it can be a program name with args.
6955 set dummy otool64; ac_word=$2
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6957 $as_echo_n "checking for $ac_word... " >&6; }
6958 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6959 $as_echo_n "(cached) " >&6
6960 else
6961 if test -n "$ac_ct_OTOOL64"; then
6962 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6963 else
6964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965 for as_dir in $PATH
6966 do
6967 IFS=$as_save_IFS
6968 test -z "$as_dir" && as_dir=.
6969 for ac_exec_ext in '' $ac_executable_extensions; do
6970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6971 ac_cv_prog_ac_ct_OTOOL64="otool64"
6972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6973 break 2
6974 fi
6975 done
6976 done
6977 IFS=$as_save_IFS
6978
6979 fi
6980 fi
6981 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6982 if test -n "$ac_ct_OTOOL64"; then
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6984 $as_echo "$ac_ct_OTOOL64" >&6; }
6985 else
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6987 $as_echo "no" >&6; }
6988 fi
6989
6990 if test "x$ac_ct_OTOOL64" = x; then
6991 OTOOL64=":"
6992 else
6993 case $cross_compiling:$ac_tool_warned in
6994 yes:)
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6997 ac_tool_warned=yes ;;
6998 esac
6999 OTOOL64=$ac_ct_OTOOL64
7000 fi
7001 else
7002 OTOOL64="$ac_cv_prog_OTOOL64"
7003 fi
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7032 $as_echo_n "checking for -single_module linker flag... " >&6; }
7033 if ${lt_cv_apple_cc_single_mod+:} false; then :
7034 $as_echo_n "(cached) " >&6
7035 else
7036 lt_cv_apple_cc_single_mod=no
7037 if test -z "${LT_MULTI_MODULE}"; then
7038 # By default we will add the -single_module flag. You can override
7039 # by either setting the environment variable LT_MULTI_MODULE
7040 # non-empty at configure time, or by adding -multi_module to the
7041 # link flags.
7042 rm -rf libconftest.dylib*
7043 echo "int foo(void){return 1;}" > conftest.c
7044 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7045 -dynamiclib -Wl,-single_module conftest.c" >&5
7046 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7047 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7048 _lt_result=$?
7049 # If there is a non-empty error log, and "single_module"
7050 # appears in it, assume the flag caused a linker warning
7051 if test -s conftest.err && $GREP single_module conftest.err; then
7052 cat conftest.err >&5
7053 # Otherwise, if the output was created with a 0 exit code from
7054 # the compiler, it worked.
7055 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7056 lt_cv_apple_cc_single_mod=yes
7057 else
7058 cat conftest.err >&5
7059 fi
7060 rm -rf libconftest.dylib*
7061 rm -f conftest.*
7062 fi
7063 fi
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7065 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7066
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7068 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7069 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7070 $as_echo_n "(cached) " >&6
7071 else
7072 lt_cv_ld_exported_symbols_list=no
7073 save_LDFLAGS=$LDFLAGS
7074 echo "_main" > conftest.sym
7075 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7077 /* end confdefs.h. */
7078
7079 int
7080 main ()
7081 {
7082
7083 ;
7084 return 0;
7085 }
7086 _ACEOF
7087 if ac_fn_c_try_link "$LINENO"; then :
7088 lt_cv_ld_exported_symbols_list=yes
7089 else
7090 lt_cv_ld_exported_symbols_list=no
7091 fi
7092 rm -f core conftest.err conftest.$ac_objext \
7093 conftest$ac_exeext conftest.$ac_ext
7094 LDFLAGS="$save_LDFLAGS"
7095
7096 fi
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7098 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7099
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7101 $as_echo_n "checking for -force_load linker flag... " >&6; }
7102 if ${lt_cv_ld_force_load+:} false; then :
7103 $as_echo_n "(cached) " >&6
7104 else
7105 lt_cv_ld_force_load=no
7106 cat > conftest.c << _LT_EOF
7107 int forced_loaded() { return 2;}
7108 _LT_EOF
7109 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7110 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7111 echo "$AR cru libconftest.a conftest.o" >&5
7112 $AR cru libconftest.a conftest.o 2>&5
7113 echo "$RANLIB libconftest.a" >&5
7114 $RANLIB libconftest.a 2>&5
7115 cat > conftest.c << _LT_EOF
7116 int main() { return 0;}
7117 _LT_EOF
7118 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7119 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7120 _lt_result=$?
7121 if test -s conftest.err && $GREP force_load conftest.err; then
7122 cat conftest.err >&5
7123 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7124 lt_cv_ld_force_load=yes
7125 else
7126 cat conftest.err >&5
7127 fi
7128 rm -f conftest.err libconftest.a conftest conftest.c
7129 rm -rf conftest.dSYM
7130
7131 fi
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7133 $as_echo "$lt_cv_ld_force_load" >&6; }
7134 case $host_os in
7135 rhapsody* | darwin1.[012])
7136 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7137 darwin1.*)
7138 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7139 darwin*) # darwin 5.x on
7140 # if running on 10.5 or later, the deployment target defaults
7141 # to the OS version, if on x86, and 10.4, the deployment
7142 # target defaults to 10.4. Don't you love it?
7143 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7144 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7145 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7146 10.[012]*)
7147 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7148 10.*)
7149 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7150 esac
7151 ;;
7152 esac
7153 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7154 _lt_dar_single_mod='$single_module'
7155 fi
7156 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7157 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7158 else
7159 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7160 fi
7161 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7162 _lt_dsymutil='~$DSYMUTIL $lib || :'
7163 else
7164 _lt_dsymutil=
7165 fi
7166 ;;
7167 esac
7168
7169 ac_ext=c
7170 ac_cpp='$CPP $CPPFLAGS'
7171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7175 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7176 # On Suns, sometimes $CPP names a directory.
7177 if test -n "$CPP" && test -d "$CPP"; then
7178 CPP=
7179 fi
7180 if test -z "$CPP"; then
7181 if ${ac_cv_prog_CPP+:} false; then :
7182 $as_echo_n "(cached) " >&6
7183 else
7184 # Double quotes because CPP needs to be expanded
7185 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7186 do
7187 ac_preproc_ok=false
7188 for ac_c_preproc_warn_flag in '' yes
7189 do
7190 # Use a header file that comes with gcc, so configuring glibc
7191 # with a fresh cross-compiler works.
7192 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7193 # <limits.h> exists even on freestanding compilers.
7194 # On the NeXT, cc -E runs the code through the compiler's parser,
7195 # not just through cpp. "Syntax error" is here to catch this case.
7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7197 /* end confdefs.h. */
7198 #ifdef __STDC__
7199 # include <limits.h>
7200 #else
7201 # include <assert.h>
7202 #endif
7203 Syntax error
7204 _ACEOF
7205 if ac_fn_c_try_cpp "$LINENO"; then :
7206
7207 else
7208 # Broken: fails on valid input.
7209 continue
7210 fi
7211 rm -f conftest.err conftest.i conftest.$ac_ext
7212
7213 # OK, works on sane cases. Now check whether nonexistent headers
7214 # can be detected and how.
7215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7216 /* end confdefs.h. */
7217 #include <ac_nonexistent.h>
7218 _ACEOF
7219 if ac_fn_c_try_cpp "$LINENO"; then :
7220 # Broken: success on invalid input.
7221 continue
7222 else
7223 # Passes both tests.
7224 ac_preproc_ok=:
7225 break
7226 fi
7227 rm -f conftest.err conftest.i conftest.$ac_ext
7228
7229 done
7230 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7231 rm -f conftest.i conftest.err conftest.$ac_ext
7232 if $ac_preproc_ok; then :
7233 break
7234 fi
7235
7236 done
7237 ac_cv_prog_CPP=$CPP
7238
7239 fi
7240 CPP=$ac_cv_prog_CPP
7241 else
7242 ac_cv_prog_CPP=$CPP
7243 fi
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7245 $as_echo "$CPP" >&6; }
7246 ac_preproc_ok=false
7247 for ac_c_preproc_warn_flag in '' yes
7248 do
7249 # Use a header file that comes with gcc, so configuring glibc
7250 # with a fresh cross-compiler works.
7251 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7252 # <limits.h> exists even on freestanding compilers.
7253 # On the NeXT, cc -E runs the code through the compiler's parser,
7254 # not just through cpp. "Syntax error" is here to catch this case.
7255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7256 /* end confdefs.h. */
7257 #ifdef __STDC__
7258 # include <limits.h>
7259 #else
7260 # include <assert.h>
7261 #endif
7262 Syntax error
7263 _ACEOF
7264 if ac_fn_c_try_cpp "$LINENO"; then :
7265
7266 else
7267 # Broken: fails on valid input.
7268 continue
7269 fi
7270 rm -f conftest.err conftest.i conftest.$ac_ext
7271
7272 # OK, works on sane cases. Now check whether nonexistent headers
7273 # can be detected and how.
7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275 /* end confdefs.h. */
7276 #include <ac_nonexistent.h>
7277 _ACEOF
7278 if ac_fn_c_try_cpp "$LINENO"; then :
7279 # Broken: success on invalid input.
7280 continue
7281 else
7282 # Passes both tests.
7283 ac_preproc_ok=:
7284 break
7285 fi
7286 rm -f conftest.err conftest.i conftest.$ac_ext
7287
7288 done
7289 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7290 rm -f conftest.i conftest.err conftest.$ac_ext
7291 if $ac_preproc_ok; then :
7292
7293 else
7294 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7296 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7297 See \`config.log' for more details" "$LINENO" 5; }
7298 fi
7299
7300 ac_ext=c
7301 ac_cpp='$CPP $CPPFLAGS'
7302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7305
7306
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7308 $as_echo_n "checking for ANSI C header files... " >&6; }
7309 if ${ac_cv_header_stdc+:} false; then :
7310 $as_echo_n "(cached) " >&6
7311 else
7312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7313 /* end confdefs.h. */
7314 #include <stdlib.h>
7315 #include <stdarg.h>
7316 #include <string.h>
7317 #include <float.h>
7318
7319 int
7320 main ()
7321 {
7322
7323 ;
7324 return 0;
7325 }
7326 _ACEOF
7327 if ac_fn_c_try_compile "$LINENO"; then :
7328 ac_cv_header_stdc=yes
7329 else
7330 ac_cv_header_stdc=no
7331 fi
7332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7333
7334 if test $ac_cv_header_stdc = yes; then
7335 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7337 /* end confdefs.h. */
7338 #include <string.h>
7339
7340 _ACEOF
7341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7342 $EGREP "memchr" >/dev/null 2>&1; then :
7343
7344 else
7345 ac_cv_header_stdc=no
7346 fi
7347 rm -f conftest*
7348
7349 fi
7350
7351 if test $ac_cv_header_stdc = yes; then
7352 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354 /* end confdefs.h. */
7355 #include <stdlib.h>
7356
7357 _ACEOF
7358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7359 $EGREP "free" >/dev/null 2>&1; then :
7360
7361 else
7362 ac_cv_header_stdc=no
7363 fi
7364 rm -f conftest*
7365
7366 fi
7367
7368 if test $ac_cv_header_stdc = yes; then
7369 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7370 if test "$cross_compiling" = yes; then :
7371 :
7372 else
7373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7374 /* end confdefs.h. */
7375 #include <ctype.h>
7376 #include <stdlib.h>
7377 #if ((' ' & 0x0FF) == 0x020)
7378 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7379 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7380 #else
7381 # define ISLOWER(c) \
7382 (('a' <= (c) && (c) <= 'i') \
7383 || ('j' <= (c) && (c) <= 'r') \
7384 || ('s' <= (c) && (c) <= 'z'))
7385 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7386 #endif
7387
7388 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7389 int
7390 main ()
7391 {
7392 int i;
7393 for (i = 0; i < 256; i++)
7394 if (XOR (islower (i), ISLOWER (i))
7395 || toupper (i) != TOUPPER (i))
7396 return 2;
7397 return 0;
7398 }
7399 _ACEOF
7400 if ac_fn_c_try_run "$LINENO"; then :
7401
7402 else
7403 ac_cv_header_stdc=no
7404 fi
7405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7406 conftest.$ac_objext conftest.beam conftest.$ac_ext
7407 fi
7408
7409 fi
7410 fi
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7412 $as_echo "$ac_cv_header_stdc" >&6; }
7413 if test $ac_cv_header_stdc = yes; then
7414
7415 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7416
7417 fi
7418
7419 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7420 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7421 inttypes.h stdint.h unistd.h
7422 do :
7423 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7424 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7425 "
7426 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7427 cat >>confdefs.h <<_ACEOF
7428 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7429 _ACEOF
7430
7431 fi
7432
7433 done
7434
7435
7436 for ac_header in dlfcn.h
7437 do :
7438 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7439 "
7440 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7441 cat >>confdefs.h <<_ACEOF
7442 #define HAVE_DLFCN_H 1
7443 _ACEOF
7444
7445 fi
7446
7447 done
7448
7449
7450
7451
7452
7453 # Set options
7454
7455
7456
7457 enable_dlopen=no
7458
7459
7460 enable_win32_dll=no
7461
7462
7463 # Check whether --enable-shared was given.
7464 if test "${enable_shared+set}" = set; then :
7465 enableval=$enable_shared; p=${PACKAGE-default}
7466 case $enableval in
7467 yes) enable_shared=yes ;;
7468 no) enable_shared=no ;;
7469 *)
7470 enable_shared=no
7471 # Look at the argument we got. We use all the common list separators.
7472 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7473 for pkg in $enableval; do
7474 IFS="$lt_save_ifs"
7475 if test "X$pkg" = "X$p"; then
7476 enable_shared=yes
7477 fi
7478 done
7479 IFS="$lt_save_ifs"
7480 ;;
7481 esac
7482 else
7483 enable_shared=yes
7484 fi
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494 # Check whether --enable-static was given.
7495 if test "${enable_static+set}" = set; then :
7496 enableval=$enable_static; p=${PACKAGE-default}
7497 case $enableval in
7498 yes) enable_static=yes ;;
7499 no) enable_static=no ;;
7500 *)
7501 enable_static=no
7502 # Look at the argument we got. We use all the common list separators.
7503 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7504 for pkg in $enableval; do
7505 IFS="$lt_save_ifs"
7506 if test "X$pkg" = "X$p"; then
7507 enable_static=yes
7508 fi
7509 done
7510 IFS="$lt_save_ifs"
7511 ;;
7512 esac
7513 else
7514 enable_static=yes
7515 fi
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526 # Check whether --with-pic was given.
7527 if test "${with_pic+set}" = set; then :
7528 withval=$with_pic; lt_p=${PACKAGE-default}
7529 case $withval in
7530 yes|no) pic_mode=$withval ;;
7531 *)
7532 pic_mode=default
7533 # Look at the argument we got. We use all the common list separators.
7534 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7535 for lt_pkg in $withval; do
7536 IFS="$lt_save_ifs"
7537 if test "X$lt_pkg" = "X$lt_p"; then
7538 pic_mode=yes
7539 fi
7540 done
7541 IFS="$lt_save_ifs"
7542 ;;
7543 esac
7544 else
7545 pic_mode=default
7546 fi
7547
7548
7549 test -z "$pic_mode" && pic_mode=default
7550
7551
7552
7553
7554
7555
7556
7557 # Check whether --enable-fast-install was given.
7558 if test "${enable_fast_install+set}" = set; then :
7559 enableval=$enable_fast_install; p=${PACKAGE-default}
7560 case $enableval in
7561 yes) enable_fast_install=yes ;;
7562 no) enable_fast_install=no ;;
7563 *)
7564 enable_fast_install=no
7565 # Look at the argument we got. We use all the common list separators.
7566 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7567 for pkg in $enableval; do
7568 IFS="$lt_save_ifs"
7569 if test "X$pkg" = "X$p"; then
7570 enable_fast_install=yes
7571 fi
7572 done
7573 IFS="$lt_save_ifs"
7574 ;;
7575 esac
7576 else
7577 enable_fast_install=yes
7578 fi
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590 # This can be used to rebuild libtool when needed
7591 LIBTOOL_DEPS="$ltmain"
7592
7593 # Always use our own libtool.
7594 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625 test -z "$LN_S" && LN_S="ln -s"
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640 if test -n "${ZSH_VERSION+set}" ; then
7641 setopt NO_GLOB_SUBST
7642 fi
7643
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7645 $as_echo_n "checking for objdir... " >&6; }
7646 if ${lt_cv_objdir+:} false; then :
7647 $as_echo_n "(cached) " >&6
7648 else
7649 rm -f .libs 2>/dev/null
7650 mkdir .libs 2>/dev/null
7651 if test -d .libs; then
7652 lt_cv_objdir=.libs
7653 else
7654 # MS-DOS does not allow filenames that begin with a dot.
7655 lt_cv_objdir=_libs
7656 fi
7657 rmdir .libs 2>/dev/null
7658 fi
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7660 $as_echo "$lt_cv_objdir" >&6; }
7661 objdir=$lt_cv_objdir
7662
7663
7664
7665
7666
7667 cat >>confdefs.h <<_ACEOF
7668 #define LT_OBJDIR "$lt_cv_objdir/"
7669 _ACEOF
7670
7671
7672
7673
7674 case $host_os in
7675 aix3*)
7676 # AIX sometimes has problems with the GCC collect2 program. For some
7677 # reason, if we set the COLLECT_NAMES environment variable, the problems
7678 # vanish in a puff of smoke.
7679 if test "X${COLLECT_NAMES+set}" != Xset; then
7680 COLLECT_NAMES=
7681 export COLLECT_NAMES
7682 fi
7683 ;;
7684 esac
7685
7686 # Global variables:
7687 ofile=libtool
7688 can_build_shared=yes
7689
7690 # All known linkers require a `.a' archive for static linking (except MSVC,
7691 # which needs '.lib').
7692 libext=a
7693
7694 with_gnu_ld="$lt_cv_prog_gnu_ld"
7695
7696 old_CC="$CC"
7697 old_CFLAGS="$CFLAGS"
7698
7699 # Set sane defaults for various variables
7700 test -z "$CC" && CC=cc
7701 test -z "$LTCC" && LTCC=$CC
7702 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7703 test -z "$LD" && LD=ld
7704 test -z "$ac_objext" && ac_objext=o
7705
7706 for cc_temp in $compiler""; do
7707 case $cc_temp in
7708 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7709 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7710 \-*) ;;
7711 *) break;;
7712 esac
7713 done
7714 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7715
7716
7717 # Only perform the check for file, if the check method requires it
7718 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7719 case $deplibs_check_method in
7720 file_magic*)
7721 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7723 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7724 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7725 $as_echo_n "(cached) " >&6
7726 else
7727 case $MAGIC_CMD in
7728 [\\/*] | ?:[\\/]*)
7729 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7730 ;;
7731 *)
7732 lt_save_MAGIC_CMD="$MAGIC_CMD"
7733 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7734 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7735 for ac_dir in $ac_dummy; do
7736 IFS="$lt_save_ifs"
7737 test -z "$ac_dir" && ac_dir=.
7738 if test -f $ac_dir/${ac_tool_prefix}file; then
7739 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7740 if test -n "$file_magic_test_file"; then
7741 case $deplibs_check_method in
7742 "file_magic "*)
7743 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7744 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7745 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7746 $EGREP "$file_magic_regex" > /dev/null; then
7747 :
7748 else
7749 cat <<_LT_EOF 1>&2
7750
7751 *** Warning: the command libtool uses to detect shared libraries,
7752 *** $file_magic_cmd, produces output that libtool cannot recognize.
7753 *** The result is that libtool may fail to recognize shared libraries
7754 *** as such. This will affect the creation of libtool libraries that
7755 *** depend on shared libraries, but programs linked with such libtool
7756 *** libraries will work regardless of this problem. Nevertheless, you
7757 *** may want to report the problem to your system manager and/or to
7758 *** bug-libtool@gnu.org
7759
7760 _LT_EOF
7761 fi ;;
7762 esac
7763 fi
7764 break
7765 fi
7766 done
7767 IFS="$lt_save_ifs"
7768 MAGIC_CMD="$lt_save_MAGIC_CMD"
7769 ;;
7770 esac
7771 fi
7772
7773 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7774 if test -n "$MAGIC_CMD"; then
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7776 $as_echo "$MAGIC_CMD" >&6; }
7777 else
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7779 $as_echo "no" >&6; }
7780 fi
7781
7782
7783
7784
7785
7786 if test -z "$lt_cv_path_MAGIC_CMD"; then
7787 if test -n "$ac_tool_prefix"; then
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7789 $as_echo_n "checking for file... " >&6; }
7790 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7791 $as_echo_n "(cached) " >&6
7792 else
7793 case $MAGIC_CMD in
7794 [\\/*] | ?:[\\/]*)
7795 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7796 ;;
7797 *)
7798 lt_save_MAGIC_CMD="$MAGIC_CMD"
7799 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7800 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7801 for ac_dir in $ac_dummy; do
7802 IFS="$lt_save_ifs"
7803 test -z "$ac_dir" && ac_dir=.
7804 if test -f $ac_dir/file; then
7805 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7806 if test -n "$file_magic_test_file"; then
7807 case $deplibs_check_method in
7808 "file_magic "*)
7809 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7810 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7811 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7812 $EGREP "$file_magic_regex" > /dev/null; then
7813 :
7814 else
7815 cat <<_LT_EOF 1>&2
7816
7817 *** Warning: the command libtool uses to detect shared libraries,
7818 *** $file_magic_cmd, produces output that libtool cannot recognize.
7819 *** The result is that libtool may fail to recognize shared libraries
7820 *** as such. This will affect the creation of libtool libraries that
7821 *** depend on shared libraries, but programs linked with such libtool
7822 *** libraries will work regardless of this problem. Nevertheless, you
7823 *** may want to report the problem to your system manager and/or to
7824 *** bug-libtool@gnu.org
7825
7826 _LT_EOF
7827 fi ;;
7828 esac
7829 fi
7830 break
7831 fi
7832 done
7833 IFS="$lt_save_ifs"
7834 MAGIC_CMD="$lt_save_MAGIC_CMD"
7835 ;;
7836 esac
7837 fi
7838
7839 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7840 if test -n "$MAGIC_CMD"; then
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7842 $as_echo "$MAGIC_CMD" >&6; }
7843 else
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845 $as_echo "no" >&6; }
7846 fi
7847
7848
7849 else
7850 MAGIC_CMD=:
7851 fi
7852 fi
7853
7854 fi
7855 ;;
7856 esac
7857
7858 # Use C for the default configuration in the libtool script
7859
7860 lt_save_CC="$CC"
7861 ac_ext=c
7862 ac_cpp='$CPP $CPPFLAGS'
7863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7866
7867
7868 # Source file extension for C test sources.
7869 ac_ext=c
7870
7871 # Object file extension for compiled C test sources.
7872 objext=o
7873 objext=$objext
7874
7875 # Code to be used in simple compile tests
7876 lt_simple_compile_test_code="int some_variable = 0;"
7877
7878 # Code to be used in simple link tests
7879 lt_simple_link_test_code='int main(){return(0);}'
7880
7881
7882
7883
7884
7885
7886
7887 # If no C compiler was specified, use CC.
7888 LTCC=${LTCC-"$CC"}
7889
7890 # If no C compiler flags were specified, use CFLAGS.
7891 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7892
7893 # Allow CC to be a program name with arguments.
7894 compiler=$CC
7895
7896 # Save the default compiler, since it gets overwritten when the other
7897 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7898 compiler_DEFAULT=$CC
7899
7900 # save warnings/boilerplate of simple test code
7901 ac_outfile=conftest.$ac_objext
7902 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7903 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7904 _lt_compiler_boilerplate=`cat conftest.err`
7905 $RM conftest*
7906
7907 ac_outfile=conftest.$ac_objext
7908 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7909 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7910 _lt_linker_boilerplate=`cat conftest.err`
7911 $RM -r conftest*
7912
7913
7914 if test -n "$compiler"; then
7915
7916 lt_prog_compiler_no_builtin_flag=
7917
7918 if test "$GCC" = yes; then
7919 case $cc_basename in
7920 nvcc*)
7921 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7922 *)
7923 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7924 esac
7925
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7927 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7928 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7929 $as_echo_n "(cached) " >&6
7930 else
7931 lt_cv_prog_compiler_rtti_exceptions=no
7932 ac_outfile=conftest.$ac_objext
7933 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7934 lt_compiler_flag="-fno-rtti -fno-exceptions"
7935 # Insert the option either (1) after the last *FLAGS variable, or
7936 # (2) before a word containing "conftest.", or (3) at the end.
7937 # Note that $ac_compile itself does not contain backslashes and begins
7938 # with a dollar sign (not a hyphen), so the echo should work correctly.
7939 # The option is referenced via a variable to avoid confusing sed.
7940 lt_compile=`echo "$ac_compile" | $SED \
7941 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7942 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7943 -e 's:$: $lt_compiler_flag:'`
7944 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7945 (eval "$lt_compile" 2>conftest.err)
7946 ac_status=$?
7947 cat conftest.err >&5
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 if (exit $ac_status) && test -s "$ac_outfile"; then
7950 # The compiler can only warn and ignore the option if not recognized
7951 # So say no if there are warnings other than the usual output.
7952 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7953 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7954 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7955 lt_cv_prog_compiler_rtti_exceptions=yes
7956 fi
7957 fi
7958 $RM conftest*
7959
7960 fi
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7962 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7963
7964 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7965 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7966 else
7967 :
7968 fi
7969
7970 fi
7971
7972
7973
7974
7975
7976
7977 lt_prog_compiler_wl=
7978 lt_prog_compiler_pic=
7979 lt_prog_compiler_static=
7980
7981
7982 if test "$GCC" = yes; then
7983 lt_prog_compiler_wl='-Wl,'
7984 lt_prog_compiler_static='-static'
7985
7986 case $host_os in
7987 aix*)
7988 # All AIX code is PIC.
7989 if test "$host_cpu" = ia64; then
7990 # AIX 5 now supports IA64 processor
7991 lt_prog_compiler_static='-Bstatic'
7992 fi
7993 ;;
7994
7995 amigaos*)
7996 case $host_cpu in
7997 powerpc)
7998 # see comment about AmigaOS4 .so support
7999 lt_prog_compiler_pic='-fPIC'
8000 ;;
8001 m68k)
8002 # FIXME: we need at least 68020 code to build shared libraries, but
8003 # adding the `-m68020' flag to GCC prevents building anything better,
8004 # like `-m68040'.
8005 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8006 ;;
8007 esac
8008 ;;
8009
8010 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8011 # PIC is the default for these OSes.
8012 ;;
8013
8014 mingw* | cygwin* | pw32* | os2* | cegcc*)
8015 # This hack is so that the source file can tell whether it is being
8016 # built for inclusion in a dll (and should export symbols for example).
8017 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8018 # (--disable-auto-import) libraries
8019 lt_prog_compiler_pic='-DDLL_EXPORT'
8020 ;;
8021
8022 darwin* | rhapsody*)
8023 # PIC is the default on this platform
8024 # Common symbols not allowed in MH_DYLIB files
8025 lt_prog_compiler_pic='-fno-common'
8026 ;;
8027
8028 haiku*)
8029 # PIC is the default for Haiku.
8030 # The "-static" flag exists, but is broken.
8031 lt_prog_compiler_static=
8032 ;;
8033
8034 hpux*)
8035 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8036 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8037 # sets the default TLS model and affects inlining.
8038 case $host_cpu in
8039 hppa*64*)
8040 # +Z the default
8041 ;;
8042 *)
8043 lt_prog_compiler_pic='-fPIC'
8044 ;;
8045 esac
8046 ;;
8047
8048 interix[3-9]*)
8049 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8050 # Instead, we relocate shared libraries at runtime.
8051 ;;
8052
8053 msdosdjgpp*)
8054 # Just because we use GCC doesn't mean we suddenly get shared libraries
8055 # on systems that don't support them.
8056 lt_prog_compiler_can_build_shared=no
8057 enable_shared=no
8058 ;;
8059
8060 *nto* | *qnx*)
8061 # QNX uses GNU C++, but need to define -shared option too, otherwise
8062 # it will coredump.
8063 lt_prog_compiler_pic='-fPIC -shared'
8064 ;;
8065
8066 sysv4*MP*)
8067 if test -d /usr/nec; then
8068 lt_prog_compiler_pic=-Kconform_pic
8069 fi
8070 ;;
8071
8072 *)
8073 lt_prog_compiler_pic='-fPIC'
8074 ;;
8075 esac
8076
8077 case $cc_basename in
8078 nvcc*) # Cuda Compiler Driver 2.2
8079 lt_prog_compiler_wl='-Xlinker '
8080 if test -n "$lt_prog_compiler_pic"; then
8081 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8082 fi
8083 ;;
8084 esac
8085 else
8086 # PORTME Check for flag to pass linker flags through the system compiler.
8087 case $host_os in
8088 aix*)
8089 lt_prog_compiler_wl='-Wl,'
8090 if test "$host_cpu" = ia64; then
8091 # AIX 5 now supports IA64 processor
8092 lt_prog_compiler_static='-Bstatic'
8093 else
8094 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8095 fi
8096 ;;
8097
8098 mingw* | cygwin* | pw32* | os2* | cegcc*)
8099 # This hack is so that the source file can tell whether it is being
8100 # built for inclusion in a dll (and should export symbols for example).
8101 lt_prog_compiler_pic='-DDLL_EXPORT'
8102 ;;
8103
8104 hpux9* | hpux10* | hpux11*)
8105 lt_prog_compiler_wl='-Wl,'
8106 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8107 # not for PA HP-UX.
8108 case $host_cpu in
8109 hppa*64*|ia64*)
8110 # +Z the default
8111 ;;
8112 *)
8113 lt_prog_compiler_pic='+Z'
8114 ;;
8115 esac
8116 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8117 lt_prog_compiler_static='${wl}-a ${wl}archive'
8118 ;;
8119
8120 irix5* | irix6* | nonstopux*)
8121 lt_prog_compiler_wl='-Wl,'
8122 # PIC (with -KPIC) is the default.
8123 lt_prog_compiler_static='-non_shared'
8124 ;;
8125
8126 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8127 case $cc_basename in
8128 # old Intel for x86_64 which still supported -KPIC.
8129 ecc*)
8130 lt_prog_compiler_wl='-Wl,'
8131 lt_prog_compiler_pic='-KPIC'
8132 lt_prog_compiler_static='-static'
8133 ;;
8134 # icc used to be incompatible with GCC.
8135 # ICC 10 doesn't accept -KPIC any more.
8136 icc* | ifort*)
8137 lt_prog_compiler_wl='-Wl,'
8138 lt_prog_compiler_pic='-fPIC'
8139 lt_prog_compiler_static='-static'
8140 ;;
8141 # Lahey Fortran 8.1.
8142 lf95*)
8143 lt_prog_compiler_wl='-Wl,'
8144 lt_prog_compiler_pic='--shared'
8145 lt_prog_compiler_static='--static'
8146 ;;
8147 nagfor*)
8148 # NAG Fortran compiler
8149 lt_prog_compiler_wl='-Wl,-Wl,,'
8150 lt_prog_compiler_pic='-PIC'
8151 lt_prog_compiler_static='-Bstatic'
8152 ;;
8153 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8154 # Portland Group compilers (*not* the Pentium gcc compiler,
8155 # which looks to be a dead project)
8156 lt_prog_compiler_wl='-Wl,'
8157 lt_prog_compiler_pic='-fpic'
8158 lt_prog_compiler_static='-Bstatic'
8159 ;;
8160 ccc*)
8161 lt_prog_compiler_wl='-Wl,'
8162 # All Alpha code is PIC.
8163 lt_prog_compiler_static='-non_shared'
8164 ;;
8165 xl* | bgxl* | bgf* | mpixl*)
8166 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8167 lt_prog_compiler_wl='-Wl,'
8168 lt_prog_compiler_pic='-qpic'
8169 lt_prog_compiler_static='-qstaticlink'
8170 ;;
8171 *)
8172 case `$CC -V 2>&1 | sed 5q` in
8173 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8174 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8175 lt_prog_compiler_pic='-KPIC'
8176 lt_prog_compiler_static='-Bstatic'
8177 lt_prog_compiler_wl=''
8178 ;;
8179 *Sun\ F* | *Sun*Fortran*)
8180 lt_prog_compiler_pic='-KPIC'
8181 lt_prog_compiler_static='-Bstatic'
8182 lt_prog_compiler_wl='-Qoption ld '
8183 ;;
8184 *Sun\ C*)
8185 # Sun C 5.9
8186 lt_prog_compiler_pic='-KPIC'
8187 lt_prog_compiler_static='-Bstatic'
8188 lt_prog_compiler_wl='-Wl,'
8189 ;;
8190 *Intel*\ [CF]*Compiler*)
8191 lt_prog_compiler_wl='-Wl,'
8192 lt_prog_compiler_pic='-fPIC'
8193 lt_prog_compiler_static='-static'
8194 ;;
8195 *Portland\ Group*)
8196 lt_prog_compiler_wl='-Wl,'
8197 lt_prog_compiler_pic='-fpic'
8198 lt_prog_compiler_static='-Bstatic'
8199 ;;
8200 esac
8201 ;;
8202 esac
8203 ;;
8204
8205 newsos6)
8206 lt_prog_compiler_pic='-KPIC'
8207 lt_prog_compiler_static='-Bstatic'
8208 ;;
8209
8210 *nto* | *qnx*)
8211 # QNX uses GNU C++, but need to define -shared option too, otherwise
8212 # it will coredump.
8213 lt_prog_compiler_pic='-fPIC -shared'
8214 ;;
8215
8216 osf3* | osf4* | osf5*)
8217 lt_prog_compiler_wl='-Wl,'
8218 # All OSF/1 code is PIC.
8219 lt_prog_compiler_static='-non_shared'
8220 ;;
8221
8222 rdos*)
8223 lt_prog_compiler_static='-non_shared'
8224 ;;
8225
8226 solaris*)
8227 lt_prog_compiler_pic='-KPIC'
8228 lt_prog_compiler_static='-Bstatic'
8229 case $cc_basename in
8230 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8231 lt_prog_compiler_wl='-Qoption ld ';;
8232 *)
8233 lt_prog_compiler_wl='-Wl,';;
8234 esac
8235 ;;
8236
8237 sunos4*)
8238 lt_prog_compiler_wl='-Qoption ld '
8239 lt_prog_compiler_pic='-PIC'
8240 lt_prog_compiler_static='-Bstatic'
8241 ;;
8242
8243 sysv4 | sysv4.2uw2* | sysv4.3*)
8244 lt_prog_compiler_wl='-Wl,'
8245 lt_prog_compiler_pic='-KPIC'
8246 lt_prog_compiler_static='-Bstatic'
8247 ;;
8248
8249 sysv4*MP*)
8250 if test -d /usr/nec ;then
8251 lt_prog_compiler_pic='-Kconform_pic'
8252 lt_prog_compiler_static='-Bstatic'
8253 fi
8254 ;;
8255
8256 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8257 lt_prog_compiler_wl='-Wl,'
8258 lt_prog_compiler_pic='-KPIC'
8259 lt_prog_compiler_static='-Bstatic'
8260 ;;
8261
8262 unicos*)
8263 lt_prog_compiler_wl='-Wl,'
8264 lt_prog_compiler_can_build_shared=no
8265 ;;
8266
8267 uts4*)
8268 lt_prog_compiler_pic='-pic'
8269 lt_prog_compiler_static='-Bstatic'
8270 ;;
8271
8272 *)
8273 lt_prog_compiler_can_build_shared=no
8274 ;;
8275 esac
8276 fi
8277
8278 case $host_os in
8279 # For platforms which do not support PIC, -DPIC is meaningless:
8280 *djgpp*)
8281 lt_prog_compiler_pic=
8282 ;;
8283 *)
8284 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8285 ;;
8286 esac
8287
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8289 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8290 if ${lt_cv_prog_compiler_pic+:} false; then :
8291 $as_echo_n "(cached) " >&6
8292 else
8293 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8294 fi
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8296 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8297 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8298
8299 #
8300 # Check to make sure the PIC flag actually works.
8301 #
8302 if test -n "$lt_prog_compiler_pic"; then
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8304 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8305 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8306 $as_echo_n "(cached) " >&6
8307 else
8308 lt_cv_prog_compiler_pic_works=no
8309 ac_outfile=conftest.$ac_objext
8310 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8311 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8312 # Insert the option either (1) after the last *FLAGS variable, or
8313 # (2) before a word containing "conftest.", or (3) at the end.
8314 # Note that $ac_compile itself does not contain backslashes and begins
8315 # with a dollar sign (not a hyphen), so the echo should work correctly.
8316 # The option is referenced via a variable to avoid confusing sed.
8317 lt_compile=`echo "$ac_compile" | $SED \
8318 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8319 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8320 -e 's:$: $lt_compiler_flag:'`
8321 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8322 (eval "$lt_compile" 2>conftest.err)
8323 ac_status=$?
8324 cat conftest.err >&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 if (exit $ac_status) && test -s "$ac_outfile"; then
8327 # The compiler can only warn and ignore the option if not recognized
8328 # So say no if there are warnings other than the usual output.
8329 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8330 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8331 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8332 lt_cv_prog_compiler_pic_works=yes
8333 fi
8334 fi
8335 $RM conftest*
8336
8337 fi
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8339 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8340
8341 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8342 case $lt_prog_compiler_pic in
8343 "" | " "*) ;;
8344 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8345 esac
8346 else
8347 lt_prog_compiler_pic=
8348 lt_prog_compiler_can_build_shared=no
8349 fi
8350
8351 fi
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363 #
8364 # Check to make sure the static flag actually works.
8365 #
8366 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8368 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8369 if ${lt_cv_prog_compiler_static_works+:} false; then :
8370 $as_echo_n "(cached) " >&6
8371 else
8372 lt_cv_prog_compiler_static_works=no
8373 save_LDFLAGS="$LDFLAGS"
8374 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8375 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8376 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8377 # The linker can only warn and ignore the option if not recognized
8378 # So say no if there are warnings
8379 if test -s conftest.err; then
8380 # Append any errors to the config.log.
8381 cat conftest.err 1>&5
8382 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8383 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8384 if diff conftest.exp conftest.er2 >/dev/null; then
8385 lt_cv_prog_compiler_static_works=yes
8386 fi
8387 else
8388 lt_cv_prog_compiler_static_works=yes
8389 fi
8390 fi
8391 $RM -r conftest*
8392 LDFLAGS="$save_LDFLAGS"
8393
8394 fi
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8396 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8397
8398 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8399 :
8400 else
8401 lt_prog_compiler_static=
8402 fi
8403
8404
8405
8406
8407
8408
8409
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8411 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8412 if ${lt_cv_prog_compiler_c_o+:} false; then :
8413 $as_echo_n "(cached) " >&6
8414 else
8415 lt_cv_prog_compiler_c_o=no
8416 $RM -r conftest 2>/dev/null
8417 mkdir conftest
8418 cd conftest
8419 mkdir out
8420 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8421
8422 lt_compiler_flag="-o out/conftest2.$ac_objext"
8423 # Insert the option either (1) after the last *FLAGS variable, or
8424 # (2) before a word containing "conftest.", or (3) at the end.
8425 # Note that $ac_compile itself does not contain backslashes and begins
8426 # with a dollar sign (not a hyphen), so the echo should work correctly.
8427 lt_compile=`echo "$ac_compile" | $SED \
8428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8430 -e 's:$: $lt_compiler_flag:'`
8431 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8432 (eval "$lt_compile" 2>out/conftest.err)
8433 ac_status=$?
8434 cat out/conftest.err >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8437 then
8438 # The compiler can only warn and ignore the option if not recognized
8439 # So say no if there are warnings
8440 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8441 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8442 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8443 lt_cv_prog_compiler_c_o=yes
8444 fi
8445 fi
8446 chmod u+w . 2>&5
8447 $RM conftest*
8448 # SGI C++ compiler will create directory out/ii_files/ for
8449 # template instantiation
8450 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8451 $RM out/* && rmdir out
8452 cd ..
8453 $RM -r conftest
8454 $RM conftest*
8455
8456 fi
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8458 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8459
8460
8461
8462
8463
8464
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8466 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8467 if ${lt_cv_prog_compiler_c_o+:} false; then :
8468 $as_echo_n "(cached) " >&6
8469 else
8470 lt_cv_prog_compiler_c_o=no
8471 $RM -r conftest 2>/dev/null
8472 mkdir conftest
8473 cd conftest
8474 mkdir out
8475 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8476
8477 lt_compiler_flag="-o out/conftest2.$ac_objext"
8478 # Insert the option either (1) after the last *FLAGS variable, or
8479 # (2) before a word containing "conftest.", or (3) at the end.
8480 # Note that $ac_compile itself does not contain backslashes and begins
8481 # with a dollar sign (not a hyphen), so the echo should work correctly.
8482 lt_compile=`echo "$ac_compile" | $SED \
8483 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8485 -e 's:$: $lt_compiler_flag:'`
8486 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8487 (eval "$lt_compile" 2>out/conftest.err)
8488 ac_status=$?
8489 cat out/conftest.err >&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8492 then
8493 # The compiler can only warn and ignore the option if not recognized
8494 # So say no if there are warnings
8495 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8496 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8497 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8498 lt_cv_prog_compiler_c_o=yes
8499 fi
8500 fi
8501 chmod u+w . 2>&5
8502 $RM conftest*
8503 # SGI C++ compiler will create directory out/ii_files/ for
8504 # template instantiation
8505 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8506 $RM out/* && rmdir out
8507 cd ..
8508 $RM -r conftest
8509 $RM conftest*
8510
8511 fi
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8513 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8514
8515
8516
8517
8518 hard_links="nottested"
8519 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8520 # do not overwrite the value of need_locks provided by the user
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8522 $as_echo_n "checking if we can lock with hard links... " >&6; }
8523 hard_links=yes
8524 $RM conftest*
8525 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8526 touch conftest.a
8527 ln conftest.a conftest.b 2>&5 || hard_links=no
8528 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8530 $as_echo "$hard_links" >&6; }
8531 if test "$hard_links" = no; then
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8533 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8534 need_locks=warn
8535 fi
8536 else
8537 need_locks=no
8538 fi
8539
8540
8541
8542
8543
8544
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8546 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8547
8548 runpath_var=
8549 allow_undefined_flag=
8550 always_export_symbols=no
8551 archive_cmds=
8552 archive_expsym_cmds=
8553 compiler_needs_object=no
8554 enable_shared_with_static_runtimes=no
8555 export_dynamic_flag_spec=
8556 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8557 hardcode_automatic=no
8558 hardcode_direct=no
8559 hardcode_direct_absolute=no
8560 hardcode_libdir_flag_spec=
8561 hardcode_libdir_separator=
8562 hardcode_minus_L=no
8563 hardcode_shlibpath_var=unsupported
8564 inherit_rpath=no
8565 link_all_deplibs=unknown
8566 module_cmds=
8567 module_expsym_cmds=
8568 old_archive_from_new_cmds=
8569 old_archive_from_expsyms_cmds=
8570 thread_safe_flag_spec=
8571 whole_archive_flag_spec=
8572 # include_expsyms should be a list of space-separated symbols to be *always*
8573 # included in the symbol list
8574 include_expsyms=
8575 # exclude_expsyms can be an extended regexp of symbols to exclude
8576 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8577 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8578 # as well as any symbol that contains `d'.
8579 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8580 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8581 # platforms (ab)use it in PIC code, but their linkers get confused if
8582 # the symbol is explicitly referenced. Since portable code cannot
8583 # rely on this symbol name, it's probably fine to never include it in
8584 # preloaded symbol tables.
8585 # Exclude shared library initialization/finalization symbols.
8586 extract_expsyms_cmds=
8587
8588 case $host_os in
8589 cygwin* | mingw* | pw32* | cegcc*)
8590 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8591 # When not using gcc, we currently assume that we are using
8592 # Microsoft Visual C++.
8593 if test "$GCC" != yes; then
8594 with_gnu_ld=no
8595 fi
8596 ;;
8597 interix*)
8598 # we just hope/assume this is gcc and not c89 (= MSVC++)
8599 with_gnu_ld=yes
8600 ;;
8601 openbsd*)
8602 with_gnu_ld=no
8603 ;;
8604 esac
8605
8606 ld_shlibs=yes
8607
8608 # On some targets, GNU ld is compatible enough with the native linker
8609 # that we're better off using the native interface for both.
8610 lt_use_gnu_ld_interface=no
8611 if test "$with_gnu_ld" = yes; then
8612 case $host_os in
8613 aix*)
8614 # The AIX port of GNU ld has always aspired to compatibility
8615 # with the native linker. However, as the warning in the GNU ld
8616 # block says, versions before 2.19.5* couldn't really create working
8617 # shared libraries, regardless of the interface used.
8618 case `$LD -v 2>&1` in
8619 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8620 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8621 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8622 *)
8623 lt_use_gnu_ld_interface=yes
8624 ;;
8625 esac
8626 ;;
8627 *)
8628 lt_use_gnu_ld_interface=yes
8629 ;;
8630 esac
8631 fi
8632
8633 if test "$lt_use_gnu_ld_interface" = yes; then
8634 # If archive_cmds runs LD, not CC, wlarc should be empty
8635 wlarc='${wl}'
8636
8637 # Set some defaults for GNU ld with shared library support. These
8638 # are reset later if shared libraries are not supported. Putting them
8639 # here allows them to be overridden if necessary.
8640 runpath_var=LD_RUN_PATH
8641 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8642 export_dynamic_flag_spec='${wl}--export-dynamic'
8643 # ancient GNU ld didn't support --whole-archive et. al.
8644 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8645 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8646 else
8647 whole_archive_flag_spec=
8648 fi
8649 supports_anon_versioning=no
8650 case `$LD -v 2>&1` in
8651 *GNU\ gold*) supports_anon_versioning=yes ;;
8652 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8653 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8654 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8655 *\ 2.11.*) ;; # other 2.11 versions
8656 *) supports_anon_versioning=yes ;;
8657 esac
8658
8659 # See if GNU ld supports shared libraries.
8660 case $host_os in
8661 aix[3-9]*)
8662 # On AIX/PPC, the GNU linker is very broken
8663 if test "$host_cpu" != ia64; then
8664 ld_shlibs=no
8665 cat <<_LT_EOF 1>&2
8666
8667 *** Warning: the GNU linker, at least up to release 2.19, is reported
8668 *** to be unable to reliably create shared libraries on AIX.
8669 *** Therefore, libtool is disabling shared libraries support. If you
8670 *** really care for shared libraries, you may want to install binutils
8671 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8672 *** You will then need to restart the configuration process.
8673
8674 _LT_EOF
8675 fi
8676 ;;
8677
8678 amigaos*)
8679 case $host_cpu in
8680 powerpc)
8681 # see comment about AmigaOS4 .so support
8682 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8683 archive_expsym_cmds=''
8684 ;;
8685 m68k)
8686 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)'
8687 hardcode_libdir_flag_spec='-L$libdir'
8688 hardcode_minus_L=yes
8689 ;;
8690 esac
8691 ;;
8692
8693 beos*)
8694 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8695 allow_undefined_flag=unsupported
8696 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8697 # support --undefined. This deserves some investigation. FIXME
8698 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8699 else
8700 ld_shlibs=no
8701 fi
8702 ;;
8703
8704 cygwin* | mingw* | pw32* | cegcc*)
8705 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8706 # as there is no search path for DLLs.
8707 hardcode_libdir_flag_spec='-L$libdir'
8708 export_dynamic_flag_spec='${wl}--export-all-symbols'
8709 allow_undefined_flag=unsupported
8710 always_export_symbols=no
8711 enable_shared_with_static_runtimes=yes
8712 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'
8713 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8714
8715 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8716 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8717 # If the export-symbols file already is a .def file (1st line
8718 # is EXPORTS), use it as is; otherwise, prepend...
8719 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8720 cp $export_symbols $output_objdir/$soname.def;
8721 else
8722 echo EXPORTS > $output_objdir/$soname.def;
8723 cat $export_symbols >> $output_objdir/$soname.def;
8724 fi~
8725 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8726 else
8727 ld_shlibs=no
8728 fi
8729 ;;
8730
8731 haiku*)
8732 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8733 link_all_deplibs=yes
8734 ;;
8735
8736 interix[3-9]*)
8737 hardcode_direct=no
8738 hardcode_shlibpath_var=no
8739 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8740 export_dynamic_flag_spec='${wl}-E'
8741 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8742 # Instead, shared libraries are loaded at an image base (0x10000000 by
8743 # default) and relocated if they conflict, which is a slow very memory
8744 # consuming and fragmenting process. To avoid this, we pick a random,
8745 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8746 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8747 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8748 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'
8749 ;;
8750
8751 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8752 tmp_diet=no
8753 if test "$host_os" = linux-dietlibc; then
8754 case $cc_basename in
8755 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8756 esac
8757 fi
8758 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8759 && test "$tmp_diet" = no
8760 then
8761 tmp_addflag=' $pic_flag'
8762 tmp_sharedflag='-shared'
8763 case $cc_basename,$host_cpu in
8764 pgcc*) # Portland Group C compiler
8765 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'
8766 tmp_addflag=' $pic_flag'
8767 ;;
8768 pgf77* | pgf90* | pgf95* | pgfortran*)
8769 # Portland Group f77 and f90 compilers
8770 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'
8771 tmp_addflag=' $pic_flag -Mnomain' ;;
8772 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8773 tmp_addflag=' -i_dynamic' ;;
8774 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8775 tmp_addflag=' -i_dynamic -nofor_main' ;;
8776 ifc* | ifort*) # Intel Fortran compiler
8777 tmp_addflag=' -nofor_main' ;;
8778 lf95*) # Lahey Fortran 8.1
8779 whole_archive_flag_spec=
8780 tmp_sharedflag='--shared' ;;
8781 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8782 tmp_sharedflag='-qmkshrobj'
8783 tmp_addflag= ;;
8784 nvcc*) # Cuda Compiler Driver 2.2
8785 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'
8786 compiler_needs_object=yes
8787 ;;
8788 esac
8789 case `$CC -V 2>&1 | sed 5q` in
8790 *Sun\ C*) # Sun C 5.9
8791 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'
8792 compiler_needs_object=yes
8793 tmp_sharedflag='-G' ;;
8794 *Sun\ F*) # Sun Fortran 8.3
8795 tmp_sharedflag='-G' ;;
8796 esac
8797 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8798
8799 if test "x$supports_anon_versioning" = xyes; then
8800 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8801 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8802 echo "local: *; };" >> $output_objdir/$libname.ver~
8803 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8804 fi
8805
8806 case $cc_basename in
8807 xlf* | bgf* | bgxlf* | mpixlf*)
8808 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8809 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8810 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8811 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8812 if test "x$supports_anon_versioning" = xyes; then
8813 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8814 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8815 echo "local: *; };" >> $output_objdir/$libname.ver~
8816 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8817 fi
8818 ;;
8819 esac
8820 else
8821 ld_shlibs=no
8822 fi
8823 ;;
8824
8825 netbsd*)
8826 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8827 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8828 wlarc=
8829 else
8830 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8831 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8832 fi
8833 ;;
8834
8835 solaris*)
8836 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8837 ld_shlibs=no
8838 cat <<_LT_EOF 1>&2
8839
8840 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8841 *** create shared libraries on Solaris systems. Therefore, libtool
8842 *** is disabling shared libraries support. We urge you to upgrade GNU
8843 *** binutils to release 2.9.1 or newer. Another option is to modify
8844 *** your PATH or compiler configuration so that the native linker is
8845 *** used, and then restart.
8846
8847 _LT_EOF
8848 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8849 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8850 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8851 else
8852 ld_shlibs=no
8853 fi
8854 ;;
8855
8856 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8857 case `$LD -v 2>&1` in
8858 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8859 ld_shlibs=no
8860 cat <<_LT_EOF 1>&2
8861
8862 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8863 *** reliably create shared libraries on SCO systems. Therefore, libtool
8864 *** is disabling shared libraries support. We urge you to upgrade GNU
8865 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8866 *** your PATH or compiler configuration so that the native linker is
8867 *** used, and then restart.
8868
8869 _LT_EOF
8870 ;;
8871 *)
8872 # For security reasons, it is highly recommended that you always
8873 # use absolute paths for naming shared libraries, and exclude the
8874 # DT_RUNPATH tag from executables and libraries. But doing so
8875 # requires that you compile everything twice, which is a pain.
8876 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8877 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8878 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8879 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8880 else
8881 ld_shlibs=no
8882 fi
8883 ;;
8884 esac
8885 ;;
8886
8887 sunos4*)
8888 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8889 wlarc=
8890 hardcode_direct=yes
8891 hardcode_shlibpath_var=no
8892 ;;
8893
8894 *)
8895 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8896 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8897 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8898 else
8899 ld_shlibs=no
8900 fi
8901 ;;
8902 esac
8903
8904 if test "$ld_shlibs" = no; then
8905 runpath_var=
8906 hardcode_libdir_flag_spec=
8907 export_dynamic_flag_spec=
8908 whole_archive_flag_spec=
8909 fi
8910 else
8911 # PORTME fill in a description of your system's linker (not GNU ld)
8912 case $host_os in
8913 aix3*)
8914 allow_undefined_flag=unsupported
8915 always_export_symbols=yes
8916 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'
8917 # Note: this linker hardcodes the directories in LIBPATH if there
8918 # are no directories specified by -L.
8919 hardcode_minus_L=yes
8920 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8921 # Neither direct hardcoding nor static linking is supported with a
8922 # broken collect2.
8923 hardcode_direct=unsupported
8924 fi
8925 ;;
8926
8927 aix[4-9]*)
8928 if test "$host_cpu" = ia64; then
8929 # On IA64, the linker does run time linking by default, so we don't
8930 # have to do anything special.
8931 aix_use_runtimelinking=no
8932 exp_sym_flag='-Bexport'
8933 no_entry_flag=""
8934 else
8935 # If we're using GNU nm, then we don't want the "-C" option.
8936 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8937 # Also, AIX nm treats weak defined symbols like other global
8938 # defined symbols, whereas GNU nm marks them as "W".
8939 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8940 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'
8941 else
8942 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'
8943 fi
8944 aix_use_runtimelinking=no
8945
8946 # Test if we are trying to use run time linking or normal
8947 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8948 # need to do runtime linking.
8949 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8950 for ld_flag in $LDFLAGS; do
8951 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8952 aix_use_runtimelinking=yes
8953 break
8954 fi
8955 done
8956 ;;
8957 esac
8958
8959 exp_sym_flag='-bexport'
8960 no_entry_flag='-bnoentry'
8961 fi
8962
8963 # When large executables or shared objects are built, AIX ld can
8964 # have problems creating the table of contents. If linking a library
8965 # or program results in "error TOC overflow" add -mminimal-toc to
8966 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8967 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8968
8969 archive_cmds=''
8970 hardcode_direct=yes
8971 hardcode_direct_absolute=yes
8972 hardcode_libdir_separator=':'
8973 link_all_deplibs=yes
8974 file_list_spec='${wl}-f,'
8975
8976 if test "$GCC" = yes; then
8977 case $host_os in aix4.[012]|aix4.[012].*)
8978 # We only want to do this on AIX 4.2 and lower, the check
8979 # below for broken collect2 doesn't work under 4.3+
8980 collect2name=`${CC} -print-prog-name=collect2`
8981 if test -f "$collect2name" &&
8982 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8983 then
8984 # We have reworked collect2
8985 :
8986 else
8987 # We have old collect2
8988 hardcode_direct=unsupported
8989 # It fails to find uninstalled libraries when the uninstalled
8990 # path is not listed in the libpath. Setting hardcode_minus_L
8991 # to unsupported forces relinking
8992 hardcode_minus_L=yes
8993 hardcode_libdir_flag_spec='-L$libdir'
8994 hardcode_libdir_separator=
8995 fi
8996 ;;
8997 esac
8998 shared_flag='-shared'
8999 if test "$aix_use_runtimelinking" = yes; then
9000 shared_flag="$shared_flag "'${wl}-G'
9001 fi
9002 else
9003 # not using gcc
9004 if test "$host_cpu" = ia64; then
9005 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9006 # chokes on -Wl,-G. The following line is correct:
9007 shared_flag='-G'
9008 else
9009 if test "$aix_use_runtimelinking" = yes; then
9010 shared_flag='${wl}-G'
9011 else
9012 shared_flag='${wl}-bM:SRE'
9013 fi
9014 fi
9015 fi
9016
9017 export_dynamic_flag_spec='${wl}-bexpall'
9018 # It seems that -bexpall does not export symbols beginning with
9019 # underscore (_), so it is better to generate a list of symbols to export.
9020 always_export_symbols=yes
9021 if test "$aix_use_runtimelinking" = yes; then
9022 # Warning - without using the other runtime loading flags (-brtl),
9023 # -berok will link without error, but may produce a broken library.
9024 allow_undefined_flag='-berok'
9025 # Determine the default libpath from the value encoded in an
9026 # empty executable.
9027 if test "${lt_cv_aix_libpath+set}" = set; then
9028 aix_libpath=$lt_cv_aix_libpath
9029 else
9030 if ${lt_cv_aix_libpath_+:} false; then :
9031 $as_echo_n "(cached) " >&6
9032 else
9033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9034 /* end confdefs.h. */
9035
9036 int
9037 main ()
9038 {
9039
9040 ;
9041 return 0;
9042 }
9043 _ACEOF
9044 if ac_fn_c_try_link "$LINENO"; then :
9045
9046 lt_aix_libpath_sed='
9047 /Import File Strings/,/^$/ {
9048 /^0/ {
9049 s/^0 *\([^ ]*\) *$/\1/
9050 p
9051 }
9052 }'
9053 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9054 # Check for a 64-bit object if we didn't find anything.
9055 if test -z "$lt_cv_aix_libpath_"; then
9056 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9057 fi
9058 fi
9059 rm -f core conftest.err conftest.$ac_objext \
9060 conftest$ac_exeext conftest.$ac_ext
9061 if test -z "$lt_cv_aix_libpath_"; then
9062 lt_cv_aix_libpath_="/usr/lib:/lib"
9063 fi
9064
9065 fi
9066
9067 aix_libpath=$lt_cv_aix_libpath_
9068 fi
9069
9070 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9071 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"
9072 else
9073 if test "$host_cpu" = ia64; then
9074 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9075 allow_undefined_flag="-z nodefs"
9076 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"
9077 else
9078 # Determine the default libpath from the value encoded in an
9079 # empty executable.
9080 if test "${lt_cv_aix_libpath+set}" = set; then
9081 aix_libpath=$lt_cv_aix_libpath
9082 else
9083 if ${lt_cv_aix_libpath_+:} false; then :
9084 $as_echo_n "(cached) " >&6
9085 else
9086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9087 /* end confdefs.h. */
9088
9089 int
9090 main ()
9091 {
9092
9093 ;
9094 return 0;
9095 }
9096 _ACEOF
9097 if ac_fn_c_try_link "$LINENO"; then :
9098
9099 lt_aix_libpath_sed='
9100 /Import File Strings/,/^$/ {
9101 /^0/ {
9102 s/^0 *\([^ ]*\) *$/\1/
9103 p
9104 }
9105 }'
9106 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9107 # Check for a 64-bit object if we didn't find anything.
9108 if test -z "$lt_cv_aix_libpath_"; then
9109 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9110 fi
9111 fi
9112 rm -f core conftest.err conftest.$ac_objext \
9113 conftest$ac_exeext conftest.$ac_ext
9114 if test -z "$lt_cv_aix_libpath_"; then
9115 lt_cv_aix_libpath_="/usr/lib:/lib"
9116 fi
9117
9118 fi
9119
9120 aix_libpath=$lt_cv_aix_libpath_
9121 fi
9122
9123 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9124 # Warning - without using the other run time loading flags,
9125 # -berok will link without error, but may produce a broken library.
9126 no_undefined_flag=' ${wl}-bernotok'
9127 allow_undefined_flag=' ${wl}-berok'
9128 if test "$with_gnu_ld" = yes; then
9129 # We only use this code for GNU lds that support --whole-archive.
9130 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9131 else
9132 # Exported symbols can be pulled into shared objects from archives
9133 whole_archive_flag_spec='$convenience'
9134 fi
9135 archive_cmds_need_lc=yes
9136 # This is similar to how AIX traditionally builds its shared libraries.
9137 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'
9138 fi
9139 fi
9140 ;;
9141
9142 amigaos*)
9143 case $host_cpu in
9144 powerpc)
9145 # see comment about AmigaOS4 .so support
9146 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9147 archive_expsym_cmds=''
9148 ;;
9149 m68k)
9150 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)'
9151 hardcode_libdir_flag_spec='-L$libdir'
9152 hardcode_minus_L=yes
9153 ;;
9154 esac
9155 ;;
9156
9157 bsdi[45]*)
9158 export_dynamic_flag_spec=-rdynamic
9159 ;;
9160
9161 cygwin* | mingw* | pw32* | cegcc*)
9162 # When not using gcc, we currently assume that we are using
9163 # Microsoft Visual C++.
9164 # hardcode_libdir_flag_spec is actually meaningless, as there is
9165 # no search path for DLLs.
9166 case $cc_basename in
9167 cl*)
9168 # Native MSVC
9169 hardcode_libdir_flag_spec=' '
9170 allow_undefined_flag=unsupported
9171 always_export_symbols=yes
9172 file_list_spec='@'
9173 # Tell ltmain to make .lib files, not .a files.
9174 libext=lib
9175 # Tell ltmain to make .dll files, not .so files.
9176 shrext_cmds=".dll"
9177 # FIXME: Setting linknames here is a bad hack.
9178 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9179 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9180 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9181 else
9182 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9183 fi~
9184 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9185 linknames='
9186 # The linker will not automatically build a static lib if we build a DLL.
9187 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9188 enable_shared_with_static_runtimes=yes
9189 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9190 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9191 # Don't use ranlib
9192 old_postinstall_cmds='chmod 644 $oldlib'
9193 postlink_cmds='lt_outputfile="@OUTPUT@"~
9194 lt_tool_outputfile="@TOOL_OUTPUT@"~
9195 case $lt_outputfile in
9196 *.exe|*.EXE) ;;
9197 *)
9198 lt_outputfile="$lt_outputfile.exe"
9199 lt_tool_outputfile="$lt_tool_outputfile.exe"
9200 ;;
9201 esac~
9202 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9203 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9204 $RM "$lt_outputfile.manifest";
9205 fi'
9206 ;;
9207 *)
9208 # Assume MSVC wrapper
9209 hardcode_libdir_flag_spec=' '
9210 allow_undefined_flag=unsupported
9211 # Tell ltmain to make .lib files, not .a files.
9212 libext=lib
9213 # Tell ltmain to make .dll files, not .so files.
9214 shrext_cmds=".dll"
9215 # FIXME: Setting linknames here is a bad hack.
9216 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9217 # The linker will automatically build a .lib file if we build a DLL.
9218 old_archive_from_new_cmds='true'
9219 # FIXME: Should let the user specify the lib program.
9220 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9221 enable_shared_with_static_runtimes=yes
9222 ;;
9223 esac
9224 ;;
9225
9226 darwin* | rhapsody*)
9227
9228
9229 archive_cmds_need_lc=no
9230 hardcode_direct=no
9231 hardcode_automatic=yes
9232 hardcode_shlibpath_var=unsupported
9233 if test "$lt_cv_ld_force_load" = "yes"; then
9234 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\"`'
9235
9236 else
9237 whole_archive_flag_spec=''
9238 fi
9239 link_all_deplibs=yes
9240 allow_undefined_flag="$_lt_dar_allow_undefined"
9241 case $cc_basename in
9242 ifort*) _lt_dar_can_shared=yes ;;
9243 *) _lt_dar_can_shared=$GCC ;;
9244 esac
9245 if test "$_lt_dar_can_shared" = "yes"; then
9246 output_verbose_link_cmd=func_echo_all
9247 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9248 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9249 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}"
9250 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}"
9251
9252 else
9253 ld_shlibs=no
9254 fi
9255
9256 ;;
9257
9258 dgux*)
9259 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9260 hardcode_libdir_flag_spec='-L$libdir'
9261 hardcode_shlibpath_var=no
9262 ;;
9263
9264 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9265 # support. Future versions do this automatically, but an explicit c++rt0.o
9266 # does not break anything, and helps significantly (at the cost of a little
9267 # extra space).
9268 freebsd2.2*)
9269 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9270 hardcode_libdir_flag_spec='-R$libdir'
9271 hardcode_direct=yes
9272 hardcode_shlibpath_var=no
9273 ;;
9274
9275 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9276 freebsd2.*)
9277 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9278 hardcode_direct=yes
9279 hardcode_minus_L=yes
9280 hardcode_shlibpath_var=no
9281 ;;
9282
9283 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9284 freebsd* | dragonfly*)
9285 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9286 hardcode_libdir_flag_spec='-R$libdir'
9287 hardcode_direct=yes
9288 hardcode_shlibpath_var=no
9289 ;;
9290
9291 hpux9*)
9292 if test "$GCC" = yes; then
9293 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'
9294 else
9295 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'
9296 fi
9297 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9298 hardcode_libdir_separator=:
9299 hardcode_direct=yes
9300
9301 # hardcode_minus_L: Not really in the search PATH,
9302 # but as the default location of the library.
9303 hardcode_minus_L=yes
9304 export_dynamic_flag_spec='${wl}-E'
9305 ;;
9306
9307 hpux10*)
9308 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9309 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9310 else
9311 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9312 fi
9313 if test "$with_gnu_ld" = no; then
9314 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9315 hardcode_libdir_separator=:
9316 hardcode_direct=yes
9317 hardcode_direct_absolute=yes
9318 export_dynamic_flag_spec='${wl}-E'
9319 # hardcode_minus_L: Not really in the search PATH,
9320 # but as the default location of the library.
9321 hardcode_minus_L=yes
9322 fi
9323 ;;
9324
9325 hpux11*)
9326 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9327 case $host_cpu in
9328 hppa*64*)
9329 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9330 ;;
9331 ia64*)
9332 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9333 ;;
9334 *)
9335 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9336 ;;
9337 esac
9338 else
9339 case $host_cpu in
9340 hppa*64*)
9341 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9342 ;;
9343 ia64*)
9344 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9345 ;;
9346 *)
9347
9348 # Older versions of the 11.00 compiler do not understand -b yet
9349 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9351 $as_echo_n "checking if $CC understands -b... " >&6; }
9352 if ${lt_cv_prog_compiler__b+:} false; then :
9353 $as_echo_n "(cached) " >&6
9354 else
9355 lt_cv_prog_compiler__b=no
9356 save_LDFLAGS="$LDFLAGS"
9357 LDFLAGS="$LDFLAGS -b"
9358 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9359 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9360 # The linker can only warn and ignore the option if not recognized
9361 # So say no if there are warnings
9362 if test -s conftest.err; then
9363 # Append any errors to the config.log.
9364 cat conftest.err 1>&5
9365 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9366 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9367 if diff conftest.exp conftest.er2 >/dev/null; then
9368 lt_cv_prog_compiler__b=yes
9369 fi
9370 else
9371 lt_cv_prog_compiler__b=yes
9372 fi
9373 fi
9374 $RM -r conftest*
9375 LDFLAGS="$save_LDFLAGS"
9376
9377 fi
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9379 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9380
9381 if test x"$lt_cv_prog_compiler__b" = xyes; then
9382 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9383 else
9384 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9385 fi
9386
9387 ;;
9388 esac
9389 fi
9390 if test "$with_gnu_ld" = no; then
9391 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9392 hardcode_libdir_separator=:
9393
9394 case $host_cpu in
9395 hppa*64*|ia64*)
9396 hardcode_direct=no
9397 hardcode_shlibpath_var=no
9398 ;;
9399 *)
9400 hardcode_direct=yes
9401 hardcode_direct_absolute=yes
9402 export_dynamic_flag_spec='${wl}-E'
9403
9404 # hardcode_minus_L: Not really in the search PATH,
9405 # but as the default location of the library.
9406 hardcode_minus_L=yes
9407 ;;
9408 esac
9409 fi
9410 ;;
9411
9412 irix5* | irix6* | nonstopux*)
9413 if test "$GCC" = yes; then
9414 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'
9415 # Try to use the -exported_symbol ld option, if it does not
9416 # work, assume that -exports_file does not work either and
9417 # implicitly export all symbols.
9418 # This should be the same for all languages, so no per-tag cache variable.
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9420 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9421 if ${lt_cv_irix_exported_symbol+:} false; then :
9422 $as_echo_n "(cached) " >&6
9423 else
9424 save_LDFLAGS="$LDFLAGS"
9425 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9427 /* end confdefs.h. */
9428 int foo (void) { return 0; }
9429 _ACEOF
9430 if ac_fn_c_try_link "$LINENO"; then :
9431 lt_cv_irix_exported_symbol=yes
9432 else
9433 lt_cv_irix_exported_symbol=no
9434 fi
9435 rm -f core conftest.err conftest.$ac_objext \
9436 conftest$ac_exeext conftest.$ac_ext
9437 LDFLAGS="$save_LDFLAGS"
9438 fi
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9440 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9441 if test "$lt_cv_irix_exported_symbol" = yes; then
9442 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'
9443 fi
9444 else
9445 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'
9446 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'
9447 fi
9448 archive_cmds_need_lc='no'
9449 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9450 hardcode_libdir_separator=:
9451 inherit_rpath=yes
9452 link_all_deplibs=yes
9453 ;;
9454
9455 netbsd*)
9456 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9457 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9458 else
9459 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9460 fi
9461 hardcode_libdir_flag_spec='-R$libdir'
9462 hardcode_direct=yes
9463 hardcode_shlibpath_var=no
9464 ;;
9465
9466 newsos6)
9467 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9468 hardcode_direct=yes
9469 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9470 hardcode_libdir_separator=:
9471 hardcode_shlibpath_var=no
9472 ;;
9473
9474 *nto* | *qnx*)
9475 ;;
9476
9477 openbsd*)
9478 if test -f /usr/libexec/ld.so; then
9479 hardcode_direct=yes
9480 hardcode_shlibpath_var=no
9481 hardcode_direct_absolute=yes
9482 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9483 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9484 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9485 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9486 export_dynamic_flag_spec='${wl}-E'
9487 else
9488 case $host_os in
9489 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9490 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9491 hardcode_libdir_flag_spec='-R$libdir'
9492 ;;
9493 *)
9494 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9495 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9496 ;;
9497 esac
9498 fi
9499 else
9500 ld_shlibs=no
9501 fi
9502 ;;
9503
9504 os2*)
9505 hardcode_libdir_flag_spec='-L$libdir'
9506 hardcode_minus_L=yes
9507 allow_undefined_flag=unsupported
9508 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'
9509 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9510 ;;
9511
9512 osf3*)
9513 if test "$GCC" = yes; then
9514 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9515 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'
9516 else
9517 allow_undefined_flag=' -expect_unresolved \*'
9518 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'
9519 fi
9520 archive_cmds_need_lc='no'
9521 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9522 hardcode_libdir_separator=:
9523 ;;
9524
9525 osf4* | osf5*) # as osf3* with the addition of -msym flag
9526 if test "$GCC" = yes; then
9527 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9528 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'
9529 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9530 else
9531 allow_undefined_flag=' -expect_unresolved \*'
9532 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'
9533 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~
9534 $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'
9535
9536 # Both c and cxx compiler support -rpath directly
9537 hardcode_libdir_flag_spec='-rpath $libdir'
9538 fi
9539 archive_cmds_need_lc='no'
9540 hardcode_libdir_separator=:
9541 ;;
9542
9543 solaris*)
9544 no_undefined_flag=' -z defs'
9545 if test "$GCC" = yes; then
9546 wlarc='${wl}'
9547 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9548 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9549 $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'
9550 else
9551 case `$CC -V 2>&1` in
9552 *"Compilers 5.0"*)
9553 wlarc=''
9554 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9555 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9556 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9557 ;;
9558 *)
9559 wlarc='${wl}'
9560 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9561 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9562 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9563 ;;
9564 esac
9565 fi
9566 hardcode_libdir_flag_spec='-R$libdir'
9567 hardcode_shlibpath_var=no
9568 case $host_os in
9569 solaris2.[0-5] | solaris2.[0-5].*) ;;
9570 *)
9571 # The compiler driver will combine and reorder linker options,
9572 # but understands `-z linker_flag'. GCC discards it without `$wl',
9573 # but is careful enough not to reorder.
9574 # Supported since Solaris 2.6 (maybe 2.5.1?)
9575 if test "$GCC" = yes; then
9576 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9577 else
9578 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9579 fi
9580 ;;
9581 esac
9582 link_all_deplibs=yes
9583 ;;
9584
9585 sunos4*)
9586 if test "x$host_vendor" = xsequent; then
9587 # Use $CC to link under sequent, because it throws in some extra .o
9588 # files that make .init and .fini sections work.
9589 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9590 else
9591 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9592 fi
9593 hardcode_libdir_flag_spec='-L$libdir'
9594 hardcode_direct=yes
9595 hardcode_minus_L=yes
9596 hardcode_shlibpath_var=no
9597 ;;
9598
9599 sysv4)
9600 case $host_vendor in
9601 sni)
9602 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9603 hardcode_direct=yes # is this really true???
9604 ;;
9605 siemens)
9606 ## LD is ld it makes a PLAMLIB
9607 ## CC just makes a GrossModule.
9608 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9609 reload_cmds='$CC -r -o $output$reload_objs'
9610 hardcode_direct=no
9611 ;;
9612 motorola)
9613 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9614 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9615 ;;
9616 esac
9617 runpath_var='LD_RUN_PATH'
9618 hardcode_shlibpath_var=no
9619 ;;
9620
9621 sysv4.3*)
9622 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9623 hardcode_shlibpath_var=no
9624 export_dynamic_flag_spec='-Bexport'
9625 ;;
9626
9627 sysv4*MP*)
9628 if test -d /usr/nec; then
9629 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9630 hardcode_shlibpath_var=no
9631 runpath_var=LD_RUN_PATH
9632 hardcode_runpath_var=yes
9633 ld_shlibs=yes
9634 fi
9635 ;;
9636
9637 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9638 no_undefined_flag='${wl}-z,text'
9639 archive_cmds_need_lc=no
9640 hardcode_shlibpath_var=no
9641 runpath_var='LD_RUN_PATH'
9642
9643 if test "$GCC" = yes; then
9644 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9645 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9646 else
9647 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9648 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9649 fi
9650 ;;
9651
9652 sysv5* | sco3.2v5* | sco5v6*)
9653 # Note: We can NOT use -z defs as we might desire, because we do not
9654 # link with -lc, and that would cause any symbols used from libc to
9655 # always be unresolved, which means just about no library would
9656 # ever link correctly. If we're not using GNU ld we use -z text
9657 # though, which does catch some bad symbols but isn't as heavy-handed
9658 # as -z defs.
9659 no_undefined_flag='${wl}-z,text'
9660 allow_undefined_flag='${wl}-z,nodefs'
9661 archive_cmds_need_lc=no
9662 hardcode_shlibpath_var=no
9663 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9664 hardcode_libdir_separator=':'
9665 link_all_deplibs=yes
9666 export_dynamic_flag_spec='${wl}-Bexport'
9667 runpath_var='LD_RUN_PATH'
9668
9669 if test "$GCC" = yes; then
9670 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9671 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9672 else
9673 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9674 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9675 fi
9676 ;;
9677
9678 uts4*)
9679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9680 hardcode_libdir_flag_spec='-L$libdir'
9681 hardcode_shlibpath_var=no
9682 ;;
9683
9684 *)
9685 ld_shlibs=no
9686 ;;
9687 esac
9688
9689 if test x$host_vendor = xsni; then
9690 case $host in
9691 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9692 export_dynamic_flag_spec='${wl}-Blargedynsym'
9693 ;;
9694 esac
9695 fi
9696 fi
9697
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9699 $as_echo "$ld_shlibs" >&6; }
9700 test "$ld_shlibs" = no && can_build_shared=no
9701
9702 with_gnu_ld=$with_gnu_ld
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718 #
9719 # Do we need to explicitly link libc?
9720 #
9721 case "x$archive_cmds_need_lc" in
9722 x|xyes)
9723 # Assume -lc should be added
9724 archive_cmds_need_lc=yes
9725
9726 if test "$enable_shared" = yes && test "$GCC" = yes; then
9727 case $archive_cmds in
9728 *'~'*)
9729 # FIXME: we may have to deal with multi-command sequences.
9730 ;;
9731 '$CC '*)
9732 # Test whether the compiler implicitly links with -lc since on some
9733 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9734 # to ld, don't add -lc before -lgcc.
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9736 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9737 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9738 $as_echo_n "(cached) " >&6
9739 else
9740 $RM conftest*
9741 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9742
9743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9744 (eval $ac_compile) 2>&5
9745 ac_status=$?
9746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9747 test $ac_status = 0; } 2>conftest.err; then
9748 soname=conftest
9749 lib=conftest
9750 libobjs=conftest.$ac_objext
9751 deplibs=
9752 wl=$lt_prog_compiler_wl
9753 pic_flag=$lt_prog_compiler_pic
9754 compiler_flags=-v
9755 linker_flags=-v
9756 verstring=
9757 output_objdir=.
9758 libname=conftest
9759 lt_save_allow_undefined_flag=$allow_undefined_flag
9760 allow_undefined_flag=
9761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9762 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9763 ac_status=$?
9764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9765 test $ac_status = 0; }
9766 then
9767 lt_cv_archive_cmds_need_lc=no
9768 else
9769 lt_cv_archive_cmds_need_lc=yes
9770 fi
9771 allow_undefined_flag=$lt_save_allow_undefined_flag
9772 else
9773 cat conftest.err 1>&5
9774 fi
9775 $RM conftest*
9776
9777 fi
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9779 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9780 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9781 ;;
9782 esac
9783 fi
9784 ;;
9785 esac
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
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9939 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9940
9941 if test "$GCC" = yes; then
9942 case $host_os in
9943 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9944 *) lt_awk_arg="/^libraries:/" ;;
9945 esac
9946 case $host_os in
9947 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9948 *) lt_sed_strip_eq="s,=/,/,g" ;;
9949 esac
9950 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9951 case $lt_search_path_spec in
9952 *\;*)
9953 # if the path contains ";" then we assume it to be the separator
9954 # otherwise default to the standard path separator (i.e. ":") - it is
9955 # assumed that no part of a normal pathname contains ";" but that should
9956 # okay in the real world where ";" in dirpaths is itself problematic.
9957 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9958 ;;
9959 *)
9960 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9961 ;;
9962 esac
9963 # Ok, now we have the path, separated by spaces, we can step through it
9964 # and add multilib dir if necessary.
9965 lt_tmp_lt_search_path_spec=
9966 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9967 for lt_sys_path in $lt_search_path_spec; do
9968 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9969 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9970 else
9971 test -d "$lt_sys_path" && \
9972 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9973 fi
9974 done
9975 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9976 BEGIN {RS=" "; FS="/|\n";} {
9977 lt_foo="";
9978 lt_count=0;
9979 for (lt_i = NF; lt_i > 0; lt_i--) {
9980 if ($lt_i != "" && $lt_i != ".") {
9981 if ($lt_i == "..") {
9982 lt_count++;
9983 } else {
9984 if (lt_count == 0) {
9985 lt_foo="/" $lt_i lt_foo;
9986 } else {
9987 lt_count--;
9988 }
9989 }
9990 }
9991 }
9992 if (lt_foo != "") { lt_freq[lt_foo]++; }
9993 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9994 }'`
9995 # AWK program above erroneously prepends '/' to C:/dos/paths
9996 # for these hosts.
9997 case $host_os in
9998 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9999 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10000 esac
10001 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10002 else
10003 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10004 fi
10005 library_names_spec=
10006 libname_spec='lib$name'
10007 soname_spec=
10008 shrext_cmds=".so"
10009 postinstall_cmds=
10010 postuninstall_cmds=
10011 finish_cmds=
10012 finish_eval=
10013 shlibpath_var=
10014 shlibpath_overrides_runpath=unknown
10015 version_type=none
10016 dynamic_linker="$host_os ld.so"
10017 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10018 need_lib_prefix=unknown
10019 hardcode_into_libs=no
10020
10021 # when you set need_version to no, make sure it does not cause -set_version
10022 # flags to be left without arguments
10023 need_version=unknown
10024
10025 case $host_os in
10026 aix3*)
10027 version_type=linux # correct to gnu/linux during the next big refactor
10028 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10029 shlibpath_var=LIBPATH
10030
10031 # AIX 3 has no versioning support, so we append a major version to the name.
10032 soname_spec='${libname}${release}${shared_ext}$major'
10033 ;;
10034
10035 aix[4-9]*)
10036 version_type=linux # correct to gnu/linux during the next big refactor
10037 need_lib_prefix=no
10038 need_version=no
10039 hardcode_into_libs=yes
10040 if test "$host_cpu" = ia64; then
10041 # AIX 5 supports IA64
10042 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10043 shlibpath_var=LD_LIBRARY_PATH
10044 else
10045 # With GCC up to 2.95.x, collect2 would create an import file
10046 # for dependence libraries. The import file would start with
10047 # the line `#! .'. This would cause the generated library to
10048 # depend on `.', always an invalid library. This was fixed in
10049 # development snapshots of GCC prior to 3.0.
10050 case $host_os in
10051 aix4 | aix4.[01] | aix4.[01].*)
10052 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10053 echo ' yes '
10054 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10055 :
10056 else
10057 can_build_shared=no
10058 fi
10059 ;;
10060 esac
10061 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10062 # soname into executable. Probably we can add versioning support to
10063 # collect2, so additional links can be useful in future.
10064 if test "$aix_use_runtimelinking" = yes; then
10065 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10066 # instead of lib<name>.a to let people know that these are not
10067 # typical AIX shared libraries.
10068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10069 else
10070 # We preserve .a as extension for shared libraries through AIX4.2
10071 # and later when we are not doing run time linking.
10072 library_names_spec='${libname}${release}.a $libname.a'
10073 soname_spec='${libname}${release}${shared_ext}$major'
10074 fi
10075 shlibpath_var=LIBPATH
10076 fi
10077 ;;
10078
10079 amigaos*)
10080 case $host_cpu in
10081 powerpc)
10082 # Since July 2007 AmigaOS4 officially supports .so libraries.
10083 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10085 ;;
10086 m68k)
10087 library_names_spec='$libname.ixlibrary $libname.a'
10088 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10089 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'
10090 ;;
10091 esac
10092 ;;
10093
10094 beos*)
10095 library_names_spec='${libname}${shared_ext}'
10096 dynamic_linker="$host_os ld.so"
10097 shlibpath_var=LIBRARY_PATH
10098 ;;
10099
10100 bsdi[45]*)
10101 version_type=linux # correct to gnu/linux during the next big refactor
10102 need_version=no
10103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10104 soname_spec='${libname}${release}${shared_ext}$major'
10105 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10106 shlibpath_var=LD_LIBRARY_PATH
10107 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10108 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10109 # the default ld.so.conf also contains /usr/contrib/lib and
10110 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10111 # libtool to hard-code these into programs
10112 ;;
10113
10114 cygwin* | mingw* | pw32* | cegcc*)
10115 version_type=windows
10116 shrext_cmds=".dll"
10117 need_version=no
10118 need_lib_prefix=no
10119
10120 case $GCC,$cc_basename in
10121 yes,*)
10122 # gcc
10123 library_names_spec='$libname.dll.a'
10124 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10125 postinstall_cmds='base_file=`basename \${file}`~
10126 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10127 dldir=$destdir/`dirname \$dlpath`~
10128 test -d \$dldir || mkdir -p \$dldir~
10129 $install_prog $dir/$dlname \$dldir/$dlname~
10130 chmod a+x \$dldir/$dlname~
10131 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10132 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10133 fi'
10134 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10135 dlpath=$dir/\$dldll~
10136 $RM \$dlpath'
10137 shlibpath_overrides_runpath=yes
10138
10139 case $host_os in
10140 cygwin*)
10141 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10142 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10143
10144 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10145 ;;
10146 mingw* | cegcc*)
10147 # MinGW DLLs use traditional 'lib' prefix
10148 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10149 ;;
10150 pw32*)
10151 # pw32 DLLs use 'pw' prefix rather than 'lib'
10152 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10153 ;;
10154 esac
10155 dynamic_linker='Win32 ld.exe'
10156 ;;
10157
10158 *,cl*)
10159 # Native MSVC
10160 libname_spec='$name'
10161 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10162 library_names_spec='${libname}.dll.lib'
10163
10164 case $build_os in
10165 mingw*)
10166 sys_lib_search_path_spec=
10167 lt_save_ifs=$IFS
10168 IFS=';'
10169 for lt_path in $LIB
10170 do
10171 IFS=$lt_save_ifs
10172 # Let DOS variable expansion print the short 8.3 style file name.
10173 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10174 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10175 done
10176 IFS=$lt_save_ifs
10177 # Convert to MSYS style.
10178 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10179 ;;
10180 cygwin*)
10181 # Convert to unix form, then to dos form, then back to unix form
10182 # but this time dos style (no spaces!) so that the unix form looks
10183 # like /cygdrive/c/PROGRA~1:/cygdr...
10184 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10185 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10186 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10187 ;;
10188 *)
10189 sys_lib_search_path_spec="$LIB"
10190 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10191 # It is most probably a Windows format PATH.
10192 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10193 else
10194 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10195 fi
10196 # FIXME: find the short name or the path components, as spaces are
10197 # common. (e.g. "Program Files" -> "PROGRA~1")
10198 ;;
10199 esac
10200
10201 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10202 postinstall_cmds='base_file=`basename \${file}`~
10203 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10204 dldir=$destdir/`dirname \$dlpath`~
10205 test -d \$dldir || mkdir -p \$dldir~
10206 $install_prog $dir/$dlname \$dldir/$dlname'
10207 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10208 dlpath=$dir/\$dldll~
10209 $RM \$dlpath'
10210 shlibpath_overrides_runpath=yes
10211 dynamic_linker='Win32 link.exe'
10212 ;;
10213
10214 *)
10215 # Assume MSVC wrapper
10216 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10217 dynamic_linker='Win32 ld.exe'
10218 ;;
10219 esac
10220 # FIXME: first we should search . and the directory the executable is in
10221 shlibpath_var=PATH
10222 ;;
10223
10224 darwin* | rhapsody*)
10225 dynamic_linker="$host_os dyld"
10226 version_type=darwin
10227 need_lib_prefix=no
10228 need_version=no
10229 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10230 soname_spec='${libname}${release}${major}$shared_ext'
10231 shlibpath_overrides_runpath=yes
10232 shlibpath_var=DYLD_LIBRARY_PATH
10233 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10234
10235 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10236 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10237 ;;
10238
10239 dgux*)
10240 version_type=linux # correct to gnu/linux during the next big refactor
10241 need_lib_prefix=no
10242 need_version=no
10243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10244 soname_spec='${libname}${release}${shared_ext}$major'
10245 shlibpath_var=LD_LIBRARY_PATH
10246 ;;
10247
10248 freebsd* | dragonfly*)
10249 # DragonFly does not have aout. When/if they implement a new
10250 # versioning mechanism, adjust this.
10251 if test -x /usr/bin/objformat; then
10252 objformat=`/usr/bin/objformat`
10253 else
10254 case $host_os in
10255 freebsd[23].*) objformat=aout ;;
10256 *) objformat=elf ;;
10257 esac
10258 fi
10259 version_type=freebsd-$objformat
10260 case $version_type in
10261 freebsd-elf*)
10262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10263 need_version=no
10264 need_lib_prefix=no
10265 ;;
10266 freebsd-*)
10267 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10268 need_version=yes
10269 ;;
10270 esac
10271 shlibpath_var=LD_LIBRARY_PATH
10272 case $host_os in
10273 freebsd2.*)
10274 shlibpath_overrides_runpath=yes
10275 ;;
10276 freebsd3.[01]* | freebsdelf3.[01]*)
10277 shlibpath_overrides_runpath=yes
10278 hardcode_into_libs=yes
10279 ;;
10280 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10281 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10282 shlibpath_overrides_runpath=no
10283 hardcode_into_libs=yes
10284 ;;
10285 *) # from 4.6 on, and DragonFly
10286 shlibpath_overrides_runpath=yes
10287 hardcode_into_libs=yes
10288 ;;
10289 esac
10290 ;;
10291
10292 gnu*)
10293 version_type=linux # correct to gnu/linux during the next big refactor
10294 need_lib_prefix=no
10295 need_version=no
10296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10297 soname_spec='${libname}${release}${shared_ext}$major'
10298 shlibpath_var=LD_LIBRARY_PATH
10299 shlibpath_overrides_runpath=no
10300 hardcode_into_libs=yes
10301 ;;
10302
10303 haiku*)
10304 version_type=linux # correct to gnu/linux during the next big refactor
10305 need_lib_prefix=no
10306 need_version=no
10307 dynamic_linker="$host_os runtime_loader"
10308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10309 soname_spec='${libname}${release}${shared_ext}$major'
10310 shlibpath_var=LIBRARY_PATH
10311 shlibpath_overrides_runpath=yes
10312 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10313 hardcode_into_libs=yes
10314 ;;
10315
10316 hpux9* | hpux10* | hpux11*)
10317 # Give a soname corresponding to the major version so that dld.sl refuses to
10318 # link against other versions.
10319 version_type=sunos
10320 need_lib_prefix=no
10321 need_version=no
10322 case $host_cpu in
10323 ia64*)
10324 shrext_cmds='.so'
10325 hardcode_into_libs=yes
10326 dynamic_linker="$host_os dld.so"
10327 shlibpath_var=LD_LIBRARY_PATH
10328 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10330 soname_spec='${libname}${release}${shared_ext}$major'
10331 if test "X$HPUX_IA64_MODE" = X32; then
10332 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10333 else
10334 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10335 fi
10336 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10337 ;;
10338 hppa*64*)
10339 shrext_cmds='.sl'
10340 hardcode_into_libs=yes
10341 dynamic_linker="$host_os dld.sl"
10342 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10343 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10345 soname_spec='${libname}${release}${shared_ext}$major'
10346 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10347 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10348 ;;
10349 *)
10350 shrext_cmds='.sl'
10351 dynamic_linker="$host_os dld.sl"
10352 shlibpath_var=SHLIB_PATH
10353 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10355 soname_spec='${libname}${release}${shared_ext}$major'
10356 ;;
10357 esac
10358 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10359 postinstall_cmds='chmod 555 $lib'
10360 # or fails outright, so override atomically:
10361 install_override_mode=555
10362 ;;
10363
10364 interix[3-9]*)
10365 version_type=linux # correct to gnu/linux during the next big refactor
10366 need_lib_prefix=no
10367 need_version=no
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10369 soname_spec='${libname}${release}${shared_ext}$major'
10370 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10371 shlibpath_var=LD_LIBRARY_PATH
10372 shlibpath_overrides_runpath=no
10373 hardcode_into_libs=yes
10374 ;;
10375
10376 irix5* | irix6* | nonstopux*)
10377 case $host_os in
10378 nonstopux*) version_type=nonstopux ;;
10379 *)
10380 if test "$lt_cv_prog_gnu_ld" = yes; then
10381 version_type=linux # correct to gnu/linux during the next big refactor
10382 else
10383 version_type=irix
10384 fi ;;
10385 esac
10386 need_lib_prefix=no
10387 need_version=no
10388 soname_spec='${libname}${release}${shared_ext}$major'
10389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10390 case $host_os in
10391 irix5* | nonstopux*)
10392 libsuff= shlibsuff=
10393 ;;
10394 *)
10395 case $LD in # libtool.m4 will add one of these switches to LD
10396 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10397 libsuff= shlibsuff= libmagic=32-bit;;
10398 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10399 libsuff=32 shlibsuff=N32 libmagic=N32;;
10400 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10401 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10402 *) libsuff= shlibsuff= libmagic=never-match;;
10403 esac
10404 ;;
10405 esac
10406 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10407 shlibpath_overrides_runpath=no
10408 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10409 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10410 hardcode_into_libs=yes
10411 ;;
10412
10413 # No shared lib support for Linux oldld, aout, or coff.
10414 linux*oldld* | linux*aout* | linux*coff*)
10415 dynamic_linker=no
10416 ;;
10417
10418 # This must be glibc/ELF.
10419 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10420 version_type=linux # correct to gnu/linux during the next big refactor
10421 need_lib_prefix=no
10422 need_version=no
10423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10424 soname_spec='${libname}${release}${shared_ext}$major'
10425 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10426 shlibpath_var=LD_LIBRARY_PATH
10427 shlibpath_overrides_runpath=no
10428
10429 # Some binutils ld are patched to set DT_RUNPATH
10430 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10431 $as_echo_n "(cached) " >&6
10432 else
10433 lt_cv_shlibpath_overrides_runpath=no
10434 save_LDFLAGS=$LDFLAGS
10435 save_libdir=$libdir
10436 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10437 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10439 /* end confdefs.h. */
10440
10441 int
10442 main ()
10443 {
10444
10445 ;
10446 return 0;
10447 }
10448 _ACEOF
10449 if ac_fn_c_try_link "$LINENO"; then :
10450 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10451 lt_cv_shlibpath_overrides_runpath=yes
10452 fi
10453 fi
10454 rm -f core conftest.err conftest.$ac_objext \
10455 conftest$ac_exeext conftest.$ac_ext
10456 LDFLAGS=$save_LDFLAGS
10457 libdir=$save_libdir
10458
10459 fi
10460
10461 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10462
10463 # This implies no fast_install, which is unacceptable.
10464 # Some rework will be needed to allow for fast_install
10465 # before this can be enabled.
10466 hardcode_into_libs=yes
10467
10468 # Append ld.so.conf contents to the search path
10469 if test -f /etc/ld.so.conf; then
10470 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' ' '`
10471 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10472 fi
10473
10474 # We used to test for /lib/ld.so.1 and disable shared libraries on
10475 # powerpc, because MkLinux only supported shared libraries with the
10476 # GNU dynamic linker. Since this was broken with cross compilers,
10477 # most powerpc-linux boxes support dynamic linking these days and
10478 # people can always --disable-shared, the test was removed, and we
10479 # assume the GNU/Linux dynamic linker is in use.
10480 dynamic_linker='GNU/Linux ld.so'
10481 ;;
10482
10483 netbsd*)
10484 version_type=sunos
10485 need_lib_prefix=no
10486 need_version=no
10487 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10489 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10490 dynamic_linker='NetBSD (a.out) ld.so'
10491 else
10492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10493 soname_spec='${libname}${release}${shared_ext}$major'
10494 dynamic_linker='NetBSD ld.elf_so'
10495 fi
10496 shlibpath_var=LD_LIBRARY_PATH
10497 shlibpath_overrides_runpath=yes
10498 hardcode_into_libs=yes
10499 ;;
10500
10501 newsos6)
10502 version_type=linux # correct to gnu/linux during the next big refactor
10503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10504 shlibpath_var=LD_LIBRARY_PATH
10505 shlibpath_overrides_runpath=yes
10506 ;;
10507
10508 *nto* | *qnx*)
10509 version_type=qnx
10510 need_lib_prefix=no
10511 need_version=no
10512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10513 soname_spec='${libname}${release}${shared_ext}$major'
10514 shlibpath_var=LD_LIBRARY_PATH
10515 shlibpath_overrides_runpath=no
10516 hardcode_into_libs=yes
10517 dynamic_linker='ldqnx.so'
10518 ;;
10519
10520 openbsd*)
10521 version_type=sunos
10522 sys_lib_dlsearch_path_spec="/usr/lib"
10523 need_lib_prefix=no
10524 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10525 case $host_os in
10526 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10527 *) need_version=no ;;
10528 esac
10529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10531 shlibpath_var=LD_LIBRARY_PATH
10532 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10533 case $host_os in
10534 openbsd2.[89] | openbsd2.[89].*)
10535 shlibpath_overrides_runpath=no
10536 ;;
10537 *)
10538 shlibpath_overrides_runpath=yes
10539 ;;
10540 esac
10541 else
10542 shlibpath_overrides_runpath=yes
10543 fi
10544 ;;
10545
10546 os2*)
10547 libname_spec='$name'
10548 shrext_cmds=".dll"
10549 need_lib_prefix=no
10550 library_names_spec='$libname${shared_ext} $libname.a'
10551 dynamic_linker='OS/2 ld.exe'
10552 shlibpath_var=LIBPATH
10553 ;;
10554
10555 osf3* | osf4* | osf5*)
10556 version_type=osf
10557 need_lib_prefix=no
10558 need_version=no
10559 soname_spec='${libname}${release}${shared_ext}$major'
10560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10561 shlibpath_var=LD_LIBRARY_PATH
10562 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10563 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10564 ;;
10565
10566 rdos*)
10567 dynamic_linker=no
10568 ;;
10569
10570 solaris*)
10571 version_type=linux # correct to gnu/linux during the next big refactor
10572 need_lib_prefix=no
10573 need_version=no
10574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10575 soname_spec='${libname}${release}${shared_ext}$major'
10576 shlibpath_var=LD_LIBRARY_PATH
10577 shlibpath_overrides_runpath=yes
10578 hardcode_into_libs=yes
10579 # ldd complains unless libraries are executable
10580 postinstall_cmds='chmod +x $lib'
10581 ;;
10582
10583 sunos4*)
10584 version_type=sunos
10585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10586 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10587 shlibpath_var=LD_LIBRARY_PATH
10588 shlibpath_overrides_runpath=yes
10589 if test "$with_gnu_ld" = yes; then
10590 need_lib_prefix=no
10591 fi
10592 need_version=yes
10593 ;;
10594
10595 sysv4 | sysv4.3*)
10596 version_type=linux # correct to gnu/linux during the next big refactor
10597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10598 soname_spec='${libname}${release}${shared_ext}$major'
10599 shlibpath_var=LD_LIBRARY_PATH
10600 case $host_vendor in
10601 sni)
10602 shlibpath_overrides_runpath=no
10603 need_lib_prefix=no
10604 runpath_var=LD_RUN_PATH
10605 ;;
10606 siemens)
10607 need_lib_prefix=no
10608 ;;
10609 motorola)
10610 need_lib_prefix=no
10611 need_version=no
10612 shlibpath_overrides_runpath=no
10613 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10614 ;;
10615 esac
10616 ;;
10617
10618 sysv4*MP*)
10619 if test -d /usr/nec ;then
10620 version_type=linux # correct to gnu/linux during the next big refactor
10621 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10622 soname_spec='$libname${shared_ext}.$major'
10623 shlibpath_var=LD_LIBRARY_PATH
10624 fi
10625 ;;
10626
10627 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10628 version_type=freebsd-elf
10629 need_lib_prefix=no
10630 need_version=no
10631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10632 soname_spec='${libname}${release}${shared_ext}$major'
10633 shlibpath_var=LD_LIBRARY_PATH
10634 shlibpath_overrides_runpath=yes
10635 hardcode_into_libs=yes
10636 if test "$with_gnu_ld" = yes; then
10637 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10638 else
10639 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10640 case $host_os in
10641 sco3.2v5*)
10642 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10643 ;;
10644 esac
10645 fi
10646 sys_lib_dlsearch_path_spec='/usr/lib'
10647 ;;
10648
10649 tpf*)
10650 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10651 version_type=linux # correct to gnu/linux during the next big refactor
10652 need_lib_prefix=no
10653 need_version=no
10654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10655 shlibpath_var=LD_LIBRARY_PATH
10656 shlibpath_overrides_runpath=no
10657 hardcode_into_libs=yes
10658 ;;
10659
10660 uts4*)
10661 version_type=linux # correct to gnu/linux during the next big refactor
10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10663 soname_spec='${libname}${release}${shared_ext}$major'
10664 shlibpath_var=LD_LIBRARY_PATH
10665 ;;
10666
10667 *)
10668 dynamic_linker=no
10669 ;;
10670 esac
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10672 $as_echo "$dynamic_linker" >&6; }
10673 test "$dynamic_linker" = no && can_build_shared=no
10674
10675 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10676 if test "$GCC" = yes; then
10677 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10678 fi
10679
10680 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10681 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10682 fi
10683 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10684 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10685 fi
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10779 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10780 hardcode_action=
10781 if test -n "$hardcode_libdir_flag_spec" ||
10782 test -n "$runpath_var" ||
10783 test "X$hardcode_automatic" = "Xyes" ; then
10784
10785 # We can hardcode non-existent directories.
10786 if test "$hardcode_direct" != no &&
10787 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10788 # have to relink, otherwise we might link with an installed library
10789 # when we should be linking with a yet-to-be-installed one
10790 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10791 test "$hardcode_minus_L" != no; then
10792 # Linking always hardcodes the temporary library directory.
10793 hardcode_action=relink
10794 else
10795 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10796 hardcode_action=immediate
10797 fi
10798 else
10799 # We cannot hardcode anything, or else we can only hardcode existing
10800 # directories.
10801 hardcode_action=unsupported
10802 fi
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10804 $as_echo "$hardcode_action" >&6; }
10805
10806 if test "$hardcode_action" = relink ||
10807 test "$inherit_rpath" = yes; then
10808 # Fast installation is not supported
10809 enable_fast_install=no
10810 elif test "$shlibpath_overrides_runpath" = yes ||
10811 test "$enable_shared" = no; then
10812 # Fast installation is not necessary
10813 enable_fast_install=needless
10814 fi
10815
10816
10817
10818
10819
10820
10821 if test "x$enable_dlopen" != xyes; then
10822 enable_dlopen=unknown
10823 enable_dlopen_self=unknown
10824 enable_dlopen_self_static=unknown
10825 else
10826 lt_cv_dlopen=no
10827 lt_cv_dlopen_libs=
10828
10829 case $host_os in
10830 beos*)
10831 lt_cv_dlopen="load_add_on"
10832 lt_cv_dlopen_libs=
10833 lt_cv_dlopen_self=yes
10834 ;;
10835
10836 mingw* | pw32* | cegcc*)
10837 lt_cv_dlopen="LoadLibrary"
10838 lt_cv_dlopen_libs=
10839 ;;
10840
10841 cygwin*)
10842 lt_cv_dlopen="dlopen"
10843 lt_cv_dlopen_libs=
10844 ;;
10845
10846 darwin*)
10847 # if libdl is installed we need to link against it
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10849 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10850 if ${ac_cv_lib_dl_dlopen+:} false; then :
10851 $as_echo_n "(cached) " >&6
10852 else
10853 ac_check_lib_save_LIBS=$LIBS
10854 LIBS="-ldl $LIBS"
10855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10856 /* end confdefs.h. */
10857
10858 /* Override any GCC internal prototype to avoid an error.
10859 Use char because int might match the return type of a GCC
10860 builtin and then its argument prototype would still apply. */
10861 #ifdef __cplusplus
10862 extern "C"
10863 #endif
10864 char dlopen ();
10865 int
10866 main ()
10867 {
10868 return dlopen ();
10869 ;
10870 return 0;
10871 }
10872 _ACEOF
10873 if ac_fn_c_try_link "$LINENO"; then :
10874 ac_cv_lib_dl_dlopen=yes
10875 else
10876 ac_cv_lib_dl_dlopen=no
10877 fi
10878 rm -f core conftest.err conftest.$ac_objext \
10879 conftest$ac_exeext conftest.$ac_ext
10880 LIBS=$ac_check_lib_save_LIBS
10881 fi
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10883 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10884 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10885 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10886 else
10887
10888 lt_cv_dlopen="dyld"
10889 lt_cv_dlopen_libs=
10890 lt_cv_dlopen_self=yes
10891
10892 fi
10893
10894 ;;
10895
10896 *)
10897 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10898 if test "x$ac_cv_func_shl_load" = xyes; then :
10899 lt_cv_dlopen="shl_load"
10900 else
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10902 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10903 if ${ac_cv_lib_dld_shl_load+:} false; then :
10904 $as_echo_n "(cached) " >&6
10905 else
10906 ac_check_lib_save_LIBS=$LIBS
10907 LIBS="-ldld $LIBS"
10908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10909 /* end confdefs.h. */
10910
10911 /* Override any GCC internal prototype to avoid an error.
10912 Use char because int might match the return type of a GCC
10913 builtin and then its argument prototype would still apply. */
10914 #ifdef __cplusplus
10915 extern "C"
10916 #endif
10917 char shl_load ();
10918 int
10919 main ()
10920 {
10921 return shl_load ();
10922 ;
10923 return 0;
10924 }
10925 _ACEOF
10926 if ac_fn_c_try_link "$LINENO"; then :
10927 ac_cv_lib_dld_shl_load=yes
10928 else
10929 ac_cv_lib_dld_shl_load=no
10930 fi
10931 rm -f core conftest.err conftest.$ac_objext \
10932 conftest$ac_exeext conftest.$ac_ext
10933 LIBS=$ac_check_lib_save_LIBS
10934 fi
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10936 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10937 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10938 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10939 else
10940 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10941 if test "x$ac_cv_func_dlopen" = xyes; then :
10942 lt_cv_dlopen="dlopen"
10943 else
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10945 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10946 if ${ac_cv_lib_dl_dlopen+:} false; then :
10947 $as_echo_n "(cached) " >&6
10948 else
10949 ac_check_lib_save_LIBS=$LIBS
10950 LIBS="-ldl $LIBS"
10951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10952 /* end confdefs.h. */
10953
10954 /* Override any GCC internal prototype to avoid an error.
10955 Use char because int might match the return type of a GCC
10956 builtin and then its argument prototype would still apply. */
10957 #ifdef __cplusplus
10958 extern "C"
10959 #endif
10960 char dlopen ();
10961 int
10962 main ()
10963 {
10964 return dlopen ();
10965 ;
10966 return 0;
10967 }
10968 _ACEOF
10969 if ac_fn_c_try_link "$LINENO"; then :
10970 ac_cv_lib_dl_dlopen=yes
10971 else
10972 ac_cv_lib_dl_dlopen=no
10973 fi
10974 rm -f core conftest.err conftest.$ac_objext \
10975 conftest$ac_exeext conftest.$ac_ext
10976 LIBS=$ac_check_lib_save_LIBS
10977 fi
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10979 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10980 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10981 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10982 else
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10984 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10985 if ${ac_cv_lib_svld_dlopen+:} false; then :
10986 $as_echo_n "(cached) " >&6
10987 else
10988 ac_check_lib_save_LIBS=$LIBS
10989 LIBS="-lsvld $LIBS"
10990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10991 /* end confdefs.h. */
10992
10993 /* Override any GCC internal prototype to avoid an error.
10994 Use char because int might match the return type of a GCC
10995 builtin and then its argument prototype would still apply. */
10996 #ifdef __cplusplus
10997 extern "C"
10998 #endif
10999 char dlopen ();
11000 int
11001 main ()
11002 {
11003 return dlopen ();
11004 ;
11005 return 0;
11006 }
11007 _ACEOF
11008 if ac_fn_c_try_link "$LINENO"; then :
11009 ac_cv_lib_svld_dlopen=yes
11010 else
11011 ac_cv_lib_svld_dlopen=no
11012 fi
11013 rm -f core conftest.err conftest.$ac_objext \
11014 conftest$ac_exeext conftest.$ac_ext
11015 LIBS=$ac_check_lib_save_LIBS
11016 fi
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11018 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11019 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11020 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11021 else
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11023 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11024 if ${ac_cv_lib_dld_dld_link+:} false; then :
11025 $as_echo_n "(cached) " >&6
11026 else
11027 ac_check_lib_save_LIBS=$LIBS
11028 LIBS="-ldld $LIBS"
11029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11030 /* end confdefs.h. */
11031
11032 /* Override any GCC internal prototype to avoid an error.
11033 Use char because int might match the return type of a GCC
11034 builtin and then its argument prototype would still apply. */
11035 #ifdef __cplusplus
11036 extern "C"
11037 #endif
11038 char dld_link ();
11039 int
11040 main ()
11041 {
11042 return dld_link ();
11043 ;
11044 return 0;
11045 }
11046 _ACEOF
11047 if ac_fn_c_try_link "$LINENO"; then :
11048 ac_cv_lib_dld_dld_link=yes
11049 else
11050 ac_cv_lib_dld_dld_link=no
11051 fi
11052 rm -f core conftest.err conftest.$ac_objext \
11053 conftest$ac_exeext conftest.$ac_ext
11054 LIBS=$ac_check_lib_save_LIBS
11055 fi
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11057 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11058 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11059 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11060 fi
11061
11062
11063 fi
11064
11065
11066 fi
11067
11068
11069 fi
11070
11071
11072 fi
11073
11074
11075 fi
11076
11077 ;;
11078 esac
11079
11080 if test "x$lt_cv_dlopen" != xno; then
11081 enable_dlopen=yes
11082 else
11083 enable_dlopen=no
11084 fi
11085
11086 case $lt_cv_dlopen in
11087 dlopen)
11088 save_CPPFLAGS="$CPPFLAGS"
11089 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11090
11091 save_LDFLAGS="$LDFLAGS"
11092 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11093
11094 save_LIBS="$LIBS"
11095 LIBS="$lt_cv_dlopen_libs $LIBS"
11096
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11098 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11099 if ${lt_cv_dlopen_self+:} false; then :
11100 $as_echo_n "(cached) " >&6
11101 else
11102 if test "$cross_compiling" = yes; then :
11103 lt_cv_dlopen_self=cross
11104 else
11105 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11106 lt_status=$lt_dlunknown
11107 cat > conftest.$ac_ext <<_LT_EOF
11108 #line $LINENO "configure"
11109 #include "confdefs.h"
11110
11111 #if HAVE_DLFCN_H
11112 #include <dlfcn.h>
11113 #endif
11114
11115 #include <stdio.h>
11116
11117 #ifdef RTLD_GLOBAL
11118 # define LT_DLGLOBAL RTLD_GLOBAL
11119 #else
11120 # ifdef DL_GLOBAL
11121 # define LT_DLGLOBAL DL_GLOBAL
11122 # else
11123 # define LT_DLGLOBAL 0
11124 # endif
11125 #endif
11126
11127 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11128 find out it does not work in some platform. */
11129 #ifndef LT_DLLAZY_OR_NOW
11130 # ifdef RTLD_LAZY
11131 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11132 # else
11133 # ifdef DL_LAZY
11134 # define LT_DLLAZY_OR_NOW DL_LAZY
11135 # else
11136 # ifdef RTLD_NOW
11137 # define LT_DLLAZY_OR_NOW RTLD_NOW
11138 # else
11139 # ifdef DL_NOW
11140 # define LT_DLLAZY_OR_NOW DL_NOW
11141 # else
11142 # define LT_DLLAZY_OR_NOW 0
11143 # endif
11144 # endif
11145 # endif
11146 # endif
11147 #endif
11148
11149 /* When -fvisbility=hidden is used, assume the code has been annotated
11150 correspondingly for the symbols needed. */
11151 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11152 int fnord () __attribute__((visibility("default")));
11153 #endif
11154
11155 int fnord () { return 42; }
11156 int main ()
11157 {
11158 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11159 int status = $lt_dlunknown;
11160
11161 if (self)
11162 {
11163 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11164 else
11165 {
11166 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11167 else puts (dlerror ());
11168 }
11169 /* dlclose (self); */
11170 }
11171 else
11172 puts (dlerror ());
11173
11174 return status;
11175 }
11176 _LT_EOF
11177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11178 (eval $ac_link) 2>&5
11179 ac_status=$?
11180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11181 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11182 (./conftest; exit; ) >&5 2>/dev/null
11183 lt_status=$?
11184 case x$lt_status in
11185 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11186 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11187 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11188 esac
11189 else :
11190 # compilation failed
11191 lt_cv_dlopen_self=no
11192 fi
11193 fi
11194 rm -fr conftest*
11195
11196
11197 fi
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11199 $as_echo "$lt_cv_dlopen_self" >&6; }
11200
11201 if test "x$lt_cv_dlopen_self" = xyes; then
11202 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11204 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11205 if ${lt_cv_dlopen_self_static+:} false; then :
11206 $as_echo_n "(cached) " >&6
11207 else
11208 if test "$cross_compiling" = yes; then :
11209 lt_cv_dlopen_self_static=cross
11210 else
11211 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11212 lt_status=$lt_dlunknown
11213 cat > conftest.$ac_ext <<_LT_EOF
11214 #line $LINENO "configure"
11215 #include "confdefs.h"
11216
11217 #if HAVE_DLFCN_H
11218 #include <dlfcn.h>
11219 #endif
11220
11221 #include <stdio.h>
11222
11223 #ifdef RTLD_GLOBAL
11224 # define LT_DLGLOBAL RTLD_GLOBAL
11225 #else
11226 # ifdef DL_GLOBAL
11227 # define LT_DLGLOBAL DL_GLOBAL
11228 # else
11229 # define LT_DLGLOBAL 0
11230 # endif
11231 #endif
11232
11233 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11234 find out it does not work in some platform. */
11235 #ifndef LT_DLLAZY_OR_NOW
11236 # ifdef RTLD_LAZY
11237 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11238 # else
11239 # ifdef DL_LAZY
11240 # define LT_DLLAZY_OR_NOW DL_LAZY
11241 # else
11242 # ifdef RTLD_NOW
11243 # define LT_DLLAZY_OR_NOW RTLD_NOW
11244 # else
11245 # ifdef DL_NOW
11246 # define LT_DLLAZY_OR_NOW DL_NOW
11247 # else
11248 # define LT_DLLAZY_OR_NOW 0
11249 # endif
11250 # endif
11251 # endif
11252 # endif
11253 #endif
11254
11255 /* When -fvisbility=hidden is used, assume the code has been annotated
11256 correspondingly for the symbols needed. */
11257 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11258 int fnord () __attribute__((visibility("default")));
11259 #endif
11260
11261 int fnord () { return 42; }
11262 int main ()
11263 {
11264 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11265 int status = $lt_dlunknown;
11266
11267 if (self)
11268 {
11269 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11270 else
11271 {
11272 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11273 else puts (dlerror ());
11274 }
11275 /* dlclose (self); */
11276 }
11277 else
11278 puts (dlerror ());
11279
11280 return status;
11281 }
11282 _LT_EOF
11283 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11284 (eval $ac_link) 2>&5
11285 ac_status=$?
11286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11287 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11288 (./conftest; exit; ) >&5 2>/dev/null
11289 lt_status=$?
11290 case x$lt_status in
11291 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11292 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11293 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11294 esac
11295 else :
11296 # compilation failed
11297 lt_cv_dlopen_self_static=no
11298 fi
11299 fi
11300 rm -fr conftest*
11301
11302
11303 fi
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11305 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11306 fi
11307
11308 CPPFLAGS="$save_CPPFLAGS"
11309 LDFLAGS="$save_LDFLAGS"
11310 LIBS="$save_LIBS"
11311 ;;
11312 esac
11313
11314 case $lt_cv_dlopen_self in
11315 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11316 *) enable_dlopen_self=unknown ;;
11317 esac
11318
11319 case $lt_cv_dlopen_self_static in
11320 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11321 *) enable_dlopen_self_static=unknown ;;
11322 esac
11323 fi
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341 striplib=
11342 old_striplib=
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11344 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11345 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11346 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11347 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11349 $as_echo "yes" >&6; }
11350 else
11351 # FIXME - insert some real tests, host_os isn't really good enough
11352 case $host_os in
11353 darwin*)
11354 if test -n "$STRIP" ; then
11355 striplib="$STRIP -x"
11356 old_striplib="$STRIP -S"
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11358 $as_echo "yes" >&6; }
11359 else
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11361 $as_echo "no" >&6; }
11362 fi
11363 ;;
11364 *)
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11366 $as_echo "no" >&6; }
11367 ;;
11368 esac
11369 fi
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382 # Report which library types will actually be built
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11384 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11386 $as_echo "$can_build_shared" >&6; }
11387
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11389 $as_echo_n "checking whether to build shared libraries... " >&6; }
11390 test "$can_build_shared" = "no" && enable_shared=no
11391
11392 # On AIX, shared libraries and static libraries use the same namespace, and
11393 # are all built from PIC.
11394 case $host_os in
11395 aix3*)
11396 test "$enable_shared" = yes && enable_static=no
11397 if test -n "$RANLIB"; then
11398 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11399 postinstall_cmds='$RANLIB $lib'
11400 fi
11401 ;;
11402
11403 aix[4-9]*)
11404 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11405 test "$enable_shared" = yes && enable_static=no
11406 fi
11407 ;;
11408 esac
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11410 $as_echo "$enable_shared" >&6; }
11411
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11413 $as_echo_n "checking whether to build static libraries... " >&6; }
11414 # Make sure either enable_shared or enable_static is yes.
11415 test "$enable_shared" = yes || enable_static=yes
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11417 $as_echo "$enable_static" >&6; }
11418
11419
11420
11421
11422 fi
11423 ac_ext=c
11424 ac_cpp='$CPP $CPPFLAGS'
11425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11428
11429 CC="$lt_save_CC"
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445 ac_config_commands="$ac_config_commands libtool"
11446
11447
11448
11449
11450 # Only expand once:
11451
11452
11453
11454 # Require X.Org macros 1.8 or later
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11467 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11468 if ${ac_cv_prog_cc_c99+:} false; then :
11469 $as_echo_n "(cached) " >&6
11470 else
11471 ac_cv_prog_cc_c99=no
11472 ac_save_CC=$CC
11473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11474 /* end confdefs.h. */
11475 #include <stdarg.h>
11476 #include <stdbool.h>
11477 #include <stdlib.h>
11478 #include <wchar.h>
11479 #include <stdio.h>
11480
11481 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11482 #define debug(...) fprintf (stderr, __VA_ARGS__)
11483 #define showlist(...) puts (#__VA_ARGS__)
11484 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11485 static void
11486 test_varargs_macros (void)
11487 {
11488 int x = 1234;
11489 int y = 5678;
11490 debug ("Flag");
11491 debug ("X = %d\n", x);
11492 showlist (The first, second, and third items.);
11493 report (x>y, "x is %d but y is %d", x, y);
11494 }
11495
11496 // Check long long types.
11497 #define BIG64 18446744073709551615ull
11498 #define BIG32 4294967295ul
11499 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11500 #if !BIG_OK
11501 your preprocessor is broken;
11502 #endif
11503 #if BIG_OK
11504 #else
11505 your preprocessor is broken;
11506 #endif
11507 static long long int bignum = -9223372036854775807LL;
11508 static unsigned long long int ubignum = BIG64;
11509
11510 struct incomplete_array
11511 {
11512 int datasize;
11513 double data[];
11514 };
11515
11516 struct named_init {
11517 int number;
11518 const wchar_t *name;
11519 double average;
11520 };
11521
11522 typedef const char *ccp;
11523
11524 static inline int
11525 test_restrict (ccp restrict text)
11526 {
11527 // See if C++-style comments work.
11528 // Iterate through items via the restricted pointer.
11529 // Also check for declarations in for loops.
11530 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11531 continue;
11532 return 0;
11533 }
11534
11535 // Check varargs and va_copy.
11536 static void
11537 test_varargs (const char *format, ...)
11538 {
11539 va_list args;
11540 va_start (args, format);
11541 va_list args_copy;
11542 va_copy (args_copy, args);
11543
11544 const char *str;
11545 int number;
11546 float fnumber;
11547
11548 while (*format)
11549 {
11550 switch (*format++)
11551 {
11552 case 's': // string
11553 str = va_arg (args_copy, const char *);
11554 break;
11555 case 'd': // int
11556 number = va_arg (args_copy, int);
11557 break;
11558 case 'f': // float
11559 fnumber = va_arg (args_copy, double);
11560 break;
11561 default:
11562 break;
11563 }
11564 }
11565 va_end (args_copy);
11566 va_end (args);
11567 }
11568
11569 int
11570 main ()
11571 {
11572
11573 // Check bool.
11574 _Bool success = false;
11575
11576 // Check restrict.
11577 if (test_restrict ("String literal") == 0)
11578 success = true;
11579 char *restrict newvar = "Another string";
11580
11581 // Check varargs.
11582 test_varargs ("s, d' f .", "string", 65, 34.234);
11583 test_varargs_macros ();
11584
11585 // Check flexible array members.
11586 struct incomplete_array *ia =
11587 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11588 ia->datasize = 10;
11589 for (int i = 0; i < ia->datasize; ++i)
11590 ia->data[i] = i * 1.234;
11591
11592 // Check named initializers.
11593 struct named_init ni = {
11594 .number = 34,
11595 .name = L"Test wide string",
11596 .average = 543.34343,
11597 };
11598
11599 ni.number = 58;
11600
11601 int dynamic_array[ni.number];
11602 dynamic_array[ni.number - 1] = 543;
11603
11604 // work around unused variable warnings
11605 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11606 || dynamic_array[ni.number - 1] != 543);
11607
11608 ;
11609 return 0;
11610 }
11611 _ACEOF
11612 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11613 do
11614 CC="$ac_save_CC $ac_arg"
11615 if ac_fn_c_try_compile "$LINENO"; then :
11616 ac_cv_prog_cc_c99=$ac_arg
11617 fi
11618 rm -f core conftest.err conftest.$ac_objext
11619 test "x$ac_cv_prog_cc_c99" != "xno" && break
11620 done
11621 rm -f conftest.$ac_ext
11622 CC=$ac_save_CC
11623
11624 fi
11625 # AC_CACHE_VAL
11626 case "x$ac_cv_prog_cc_c99" in
11627 x)
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11629 $as_echo "none needed" >&6; } ;;
11630 xno)
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11632 $as_echo "unsupported" >&6; } ;;
11633 *)
11634 CC="$CC $ac_cv_prog_cc_c99"
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11636 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11637 esac
11638 if test "x$ac_cv_prog_cc_c99" != xno; then :
11639
11640 fi
11641
11642
11643
11644
11645
11646
11647 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11648 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11649 CLANGCC="yes"
11650 else
11651 CLANGCC="no"
11652 fi
11653
11654 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11655 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11656 INTELCC="yes"
11657 else
11658 INTELCC="no"
11659 fi
11660
11661 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11662 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11663 SUNCC="yes"
11664 else
11665 SUNCC="no"
11666 fi
11667
11668
11669
11670
11671 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11672 if test -n "$ac_tool_prefix"; then
11673 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11674 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11676 $as_echo_n "checking for $ac_word... " >&6; }
11677 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11678 $as_echo_n "(cached) " >&6
11679 else
11680 case $PKG_CONFIG in
11681 [\\/]* | ?:[\\/]*)
11682 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11683 ;;
11684 *)
11685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686 for as_dir in $PATH
11687 do
11688 IFS=$as_save_IFS
11689 test -z "$as_dir" && as_dir=.
11690 for ac_exec_ext in '' $ac_executable_extensions; do
11691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11692 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11694 break 2
11695 fi
11696 done
11697 done
11698 IFS=$as_save_IFS
11699
11700 ;;
11701 esac
11702 fi
11703 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11704 if test -n "$PKG_CONFIG"; then
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11706 $as_echo "$PKG_CONFIG" >&6; }
11707 else
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11709 $as_echo "no" >&6; }
11710 fi
11711
11712
11713 fi
11714 if test -z "$ac_cv_path_PKG_CONFIG"; then
11715 ac_pt_PKG_CONFIG=$PKG_CONFIG
11716 # Extract the first word of "pkg-config", so it can be a program name with args.
11717 set dummy pkg-config; ac_word=$2
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11719 $as_echo_n "checking for $ac_word... " >&6; }
11720 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11721 $as_echo_n "(cached) " >&6
11722 else
11723 case $ac_pt_PKG_CONFIG in
11724 [\\/]* | ?:[\\/]*)
11725 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11726 ;;
11727 *)
11728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11729 for as_dir in $PATH
11730 do
11731 IFS=$as_save_IFS
11732 test -z "$as_dir" && as_dir=.
11733 for ac_exec_ext in '' $ac_executable_extensions; do
11734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11735 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11737 break 2
11738 fi
11739 done
11740 done
11741 IFS=$as_save_IFS
11742
11743 ;;
11744 esac
11745 fi
11746 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11747 if test -n "$ac_pt_PKG_CONFIG"; then
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11749 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11750 else
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11752 $as_echo "no" >&6; }
11753 fi
11754
11755 if test "x$ac_pt_PKG_CONFIG" = x; then
11756 PKG_CONFIG=""
11757 else
11758 case $cross_compiling:$ac_tool_warned in
11759 yes:)
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11762 ac_tool_warned=yes ;;
11763 esac
11764 PKG_CONFIG=$ac_pt_PKG_CONFIG
11765 fi
11766 else
11767 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11768 fi
11769
11770 fi
11771 if test -n "$PKG_CONFIG"; then
11772 _pkg_min_version=0.9.0
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11774 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11775 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11777 $as_echo "yes" >&6; }
11778 else
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11780 $as_echo "no" >&6; }
11781 PKG_CONFIG=""
11782 fi
11783
11784 fi
11785
11786
11787
11788
11789
11790 # Check whether --enable-selective-werror was given.
11791 if test "${enable_selective_werror+set}" = set; then :
11792 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11793 else
11794 SELECTIVE_WERROR=yes
11795 fi
11796
11797
11798
11799
11800
11801 # -v is too short to test reliably with XORG_TESTSET_CFLAG
11802 if test "x$SUNCC" = "xyes"; then
11803 BASE_CFLAGS="-v"
11804 else
11805 BASE_CFLAGS=""
11806 fi
11807
11808 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822 xorg_testset_save_CFLAGS="$CFLAGS"
11823
11824 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11825 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11827 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11828 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11829 $as_echo_n "(cached) " >&6
11830 else
11831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11832 /* end confdefs.h. */
11833 int i;
11834 _ACEOF
11835 if ac_fn_c_try_compile "$LINENO"; then :
11836 xorg_cv_cc_flag_unknown_warning_option=yes
11837 else
11838 xorg_cv_cc_flag_unknown_warning_option=no
11839 fi
11840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11841 fi
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11843 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11844 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11845 CFLAGS="$xorg_testset_save_CFLAGS"
11846 fi
11847
11848 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11851 fi
11852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11854 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11855 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11856 $as_echo_n "(cached) " >&6
11857 else
11858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11859 /* end confdefs.h. */
11860 int i;
11861 _ACEOF
11862 if ac_fn_c_try_compile "$LINENO"; then :
11863 xorg_cv_cc_flag_unused_command_line_argument=yes
11864 else
11865 xorg_cv_cc_flag_unused_command_line_argument=no
11866 fi
11867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11868 fi
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11870 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11871 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11872 CFLAGS="$xorg_testset_save_CFLAGS"
11873 fi
11874
11875 found="no"
11876
11877 if test $found = "no" ; then
11878 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11879 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11880 fi
11881
11882 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11884 fi
11885
11886 CFLAGS="$CFLAGS -Wall"
11887
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
11889 $as_echo_n "checking if $CC supports -Wall... " >&6; }
11890 cacheid=xorg_cv_cc_flag__Wall
11891 if eval \${$cacheid+:} false; then :
11892 $as_echo_n "(cached) " >&6
11893 else
11894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11895 /* end confdefs.h. */
11896 int i;
11897 int
11898 main ()
11899 {
11900
11901 ;
11902 return 0;
11903 }
11904 _ACEOF
11905 if ac_fn_c_try_link "$LINENO"; then :
11906 eval $cacheid=yes
11907 else
11908 eval $cacheid=no
11909 fi
11910 rm -f core conftest.err conftest.$ac_objext \
11911 conftest$ac_exeext conftest.$ac_ext
11912 fi
11913
11914
11915 CFLAGS="$xorg_testset_save_CFLAGS"
11916
11917 eval supported=\$$cacheid
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11919 $as_echo "$supported" >&6; }
11920 if test "$supported" = "yes" ; then
11921 BASE_CFLAGS="$BASE_CFLAGS -Wall"
11922 found="yes"
11923 fi
11924 fi
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940 xorg_testset_save_CFLAGS="$CFLAGS"
11941
11942 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11943 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11945 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11946 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11947 $as_echo_n "(cached) " >&6
11948 else
11949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11950 /* end confdefs.h. */
11951 int i;
11952 _ACEOF
11953 if ac_fn_c_try_compile "$LINENO"; then :
11954 xorg_cv_cc_flag_unknown_warning_option=yes
11955 else
11956 xorg_cv_cc_flag_unknown_warning_option=no
11957 fi
11958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11959 fi
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11961 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11962 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11963 CFLAGS="$xorg_testset_save_CFLAGS"
11964 fi
11965
11966 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11969 fi
11970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11972 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11973 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11974 $as_echo_n "(cached) " >&6
11975 else
11976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11977 /* end confdefs.h. */
11978 int i;
11979 _ACEOF
11980 if ac_fn_c_try_compile "$LINENO"; then :
11981 xorg_cv_cc_flag_unused_command_line_argument=yes
11982 else
11983 xorg_cv_cc_flag_unused_command_line_argument=no
11984 fi
11985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11986 fi
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11988 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11989 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11990 CFLAGS="$xorg_testset_save_CFLAGS"
11991 fi
11992
11993 found="no"
11994
11995 if test $found = "no" ; then
11996 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11998 fi
11999
12000 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12002 fi
12003
12004 CFLAGS="$CFLAGS -Wpointer-arith"
12005
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12007 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12008 cacheid=xorg_cv_cc_flag__Wpointer_arith
12009 if eval \${$cacheid+:} false; then :
12010 $as_echo_n "(cached) " >&6
12011 else
12012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12013 /* end confdefs.h. */
12014 int i;
12015 int
12016 main ()
12017 {
12018
12019 ;
12020 return 0;
12021 }
12022 _ACEOF
12023 if ac_fn_c_try_link "$LINENO"; then :
12024 eval $cacheid=yes
12025 else
12026 eval $cacheid=no
12027 fi
12028 rm -f core conftest.err conftest.$ac_objext \
12029 conftest$ac_exeext conftest.$ac_ext
12030 fi
12031
12032
12033 CFLAGS="$xorg_testset_save_CFLAGS"
12034
12035 eval supported=\$$cacheid
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12037 $as_echo "$supported" >&6; }
12038 if test "$supported" = "yes" ; then
12039 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12040 found="yes"
12041 fi
12042 fi
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058 xorg_testset_save_CFLAGS="$CFLAGS"
12059
12060 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12061 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12063 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12064 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12065 $as_echo_n "(cached) " >&6
12066 else
12067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12068 /* end confdefs.h. */
12069 int i;
12070 _ACEOF
12071 if ac_fn_c_try_compile "$LINENO"; then :
12072 xorg_cv_cc_flag_unknown_warning_option=yes
12073 else
12074 xorg_cv_cc_flag_unknown_warning_option=no
12075 fi
12076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12077 fi
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12079 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12080 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12081 CFLAGS="$xorg_testset_save_CFLAGS"
12082 fi
12083
12084 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12087 fi
12088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12090 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12091 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12092 $as_echo_n "(cached) " >&6
12093 else
12094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12095 /* end confdefs.h. */
12096 int i;
12097 _ACEOF
12098 if ac_fn_c_try_compile "$LINENO"; then :
12099 xorg_cv_cc_flag_unused_command_line_argument=yes
12100 else
12101 xorg_cv_cc_flag_unused_command_line_argument=no
12102 fi
12103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12104 fi
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12106 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12107 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12108 CFLAGS="$xorg_testset_save_CFLAGS"
12109 fi
12110
12111 found="no"
12112
12113 if test $found = "no" ; then
12114 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12116 fi
12117
12118 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12120 fi
12121
12122 CFLAGS="$CFLAGS -Wmissing-declarations"
12123
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12125 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12126 cacheid=xorg_cv_cc_flag__Wmissing_declarations
12127 if eval \${$cacheid+:} false; then :
12128 $as_echo_n "(cached) " >&6
12129 else
12130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12131 /* end confdefs.h. */
12132 int i;
12133 int
12134 main ()
12135 {
12136
12137 ;
12138 return 0;
12139 }
12140 _ACEOF
12141 if ac_fn_c_try_link "$LINENO"; then :
12142 eval $cacheid=yes
12143 else
12144 eval $cacheid=no
12145 fi
12146 rm -f core conftest.err conftest.$ac_objext \
12147 conftest$ac_exeext conftest.$ac_ext
12148 fi
12149
12150
12151 CFLAGS="$xorg_testset_save_CFLAGS"
12152
12153 eval supported=\$$cacheid
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12155 $as_echo "$supported" >&6; }
12156 if test "$supported" = "yes" ; then
12157 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12158 found="yes"
12159 fi
12160 fi
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176 xorg_testset_save_CFLAGS="$CFLAGS"
12177
12178 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12179 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12181 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12182 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12183 $as_echo_n "(cached) " >&6
12184 else
12185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12186 /* end confdefs.h. */
12187 int i;
12188 _ACEOF
12189 if ac_fn_c_try_compile "$LINENO"; then :
12190 xorg_cv_cc_flag_unknown_warning_option=yes
12191 else
12192 xorg_cv_cc_flag_unknown_warning_option=no
12193 fi
12194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12195 fi
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12197 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12198 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12199 CFLAGS="$xorg_testset_save_CFLAGS"
12200 fi
12201
12202 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12205 fi
12206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12208 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12209 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12210 $as_echo_n "(cached) " >&6
12211 else
12212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12213 /* end confdefs.h. */
12214 int i;
12215 _ACEOF
12216 if ac_fn_c_try_compile "$LINENO"; then :
12217 xorg_cv_cc_flag_unused_command_line_argument=yes
12218 else
12219 xorg_cv_cc_flag_unused_command_line_argument=no
12220 fi
12221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12222 fi
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12224 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12225 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12226 CFLAGS="$xorg_testset_save_CFLAGS"
12227 fi
12228
12229 found="no"
12230
12231 if test $found = "no" ; then
12232 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12234 fi
12235
12236 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12238 fi
12239
12240 CFLAGS="$CFLAGS -Wformat=2"
12241
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12243 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12244 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
12245 if eval \${$cacheid+:} false; then :
12246 $as_echo_n "(cached) " >&6
12247 else
12248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12249 /* end confdefs.h. */
12250 int i;
12251 int
12252 main ()
12253 {
12254
12255 ;
12256 return 0;
12257 }
12258 _ACEOF
12259 if ac_fn_c_try_link "$LINENO"; then :
12260 eval $cacheid=yes
12261 else
12262 eval $cacheid=no
12263 fi
12264 rm -f core conftest.err conftest.$ac_objext \
12265 conftest$ac_exeext conftest.$ac_ext
12266 fi
12267
12268
12269 CFLAGS="$xorg_testset_save_CFLAGS"
12270
12271 eval supported=\$$cacheid
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12273 $as_echo "$supported" >&6; }
12274 if test "$supported" = "yes" ; then
12275 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12276 found="yes"
12277 fi
12278 fi
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 -Wformat"
12290
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12292 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12293 cacheid=xorg_cv_cc_flag__Wformat
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 -Wformat"
12325 found="yes"
12326 fi
12327 fi
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345 xorg_testset_save_CFLAGS="$CFLAGS"
12346
12347 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12348 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12350 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12351 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12352 $as_echo_n "(cached) " >&6
12353 else
12354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12355 /* end confdefs.h. */
12356 int i;
12357 _ACEOF
12358 if ac_fn_c_try_compile "$LINENO"; then :
12359 xorg_cv_cc_flag_unknown_warning_option=yes
12360 else
12361 xorg_cv_cc_flag_unknown_warning_option=no
12362 fi
12363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12364 fi
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12366 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12367 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12368 CFLAGS="$xorg_testset_save_CFLAGS"
12369 fi
12370
12371 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12372 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12373 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12374 fi
12375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12377 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12378 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12379 $as_echo_n "(cached) " >&6
12380 else
12381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12382 /* end confdefs.h. */
12383 int i;
12384 _ACEOF
12385 if ac_fn_c_try_compile "$LINENO"; then :
12386 xorg_cv_cc_flag_unused_command_line_argument=yes
12387 else
12388 xorg_cv_cc_flag_unused_command_line_argument=no
12389 fi
12390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12391 fi
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12393 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12394 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12395 CFLAGS="$xorg_testset_save_CFLAGS"
12396 fi
12397
12398 found="no"
12399
12400 if test $found = "no" ; then
12401 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12402 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12403 fi
12404
12405 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12407 fi
12408
12409 CFLAGS="$CFLAGS -Wstrict-prototypes"
12410
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12412 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12413 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12414 if eval \${$cacheid+:} false; then :
12415 $as_echo_n "(cached) " >&6
12416 else
12417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12418 /* end confdefs.h. */
12419 int i;
12420 int
12421 main ()
12422 {
12423
12424 ;
12425 return 0;
12426 }
12427 _ACEOF
12428 if ac_fn_c_try_link "$LINENO"; then :
12429 eval $cacheid=yes
12430 else
12431 eval $cacheid=no
12432 fi
12433 rm -f core conftest.err conftest.$ac_objext \
12434 conftest$ac_exeext conftest.$ac_ext
12435 fi
12436
12437
12438 CFLAGS="$xorg_testset_save_CFLAGS"
12439
12440 eval supported=\$$cacheid
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12442 $as_echo "$supported" >&6; }
12443 if test "$supported" = "yes" ; then
12444 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12445 found="yes"
12446 fi
12447 fi
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463 xorg_testset_save_CFLAGS="$CFLAGS"
12464
12465 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12466 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12468 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12469 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12470 $as_echo_n "(cached) " >&6
12471 else
12472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12473 /* end confdefs.h. */
12474 int i;
12475 _ACEOF
12476 if ac_fn_c_try_compile "$LINENO"; then :
12477 xorg_cv_cc_flag_unknown_warning_option=yes
12478 else
12479 xorg_cv_cc_flag_unknown_warning_option=no
12480 fi
12481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12482 fi
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12484 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12485 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12486 CFLAGS="$xorg_testset_save_CFLAGS"
12487 fi
12488
12489 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12491 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12492 fi
12493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12495 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12496 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12497 $as_echo_n "(cached) " >&6
12498 else
12499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12500 /* end confdefs.h. */
12501 int i;
12502 _ACEOF
12503 if ac_fn_c_try_compile "$LINENO"; then :
12504 xorg_cv_cc_flag_unused_command_line_argument=yes
12505 else
12506 xorg_cv_cc_flag_unused_command_line_argument=no
12507 fi
12508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12509 fi
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12511 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12512 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12513 CFLAGS="$xorg_testset_save_CFLAGS"
12514 fi
12515
12516 found="no"
12517
12518 if test $found = "no" ; then
12519 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12521 fi
12522
12523 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12525 fi
12526
12527 CFLAGS="$CFLAGS -Wmissing-prototypes"
12528
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12530 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12531 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12532 if eval \${$cacheid+:} false; then :
12533 $as_echo_n "(cached) " >&6
12534 else
12535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12536 /* end confdefs.h. */
12537 int i;
12538 int
12539 main ()
12540 {
12541
12542 ;
12543 return 0;
12544 }
12545 _ACEOF
12546 if ac_fn_c_try_link "$LINENO"; then :
12547 eval $cacheid=yes
12548 else
12549 eval $cacheid=no
12550 fi
12551 rm -f core conftest.err conftest.$ac_objext \
12552 conftest$ac_exeext conftest.$ac_ext
12553 fi
12554
12555
12556 CFLAGS="$xorg_testset_save_CFLAGS"
12557
12558 eval supported=\$$cacheid
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12560 $as_echo "$supported" >&6; }
12561 if test "$supported" = "yes" ; then
12562 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12563 found="yes"
12564 fi
12565 fi
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581 xorg_testset_save_CFLAGS="$CFLAGS"
12582
12583 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12584 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12586 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12587 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12588 $as_echo_n "(cached) " >&6
12589 else
12590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12591 /* end confdefs.h. */
12592 int i;
12593 _ACEOF
12594 if ac_fn_c_try_compile "$LINENO"; then :
12595 xorg_cv_cc_flag_unknown_warning_option=yes
12596 else
12597 xorg_cv_cc_flag_unknown_warning_option=no
12598 fi
12599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12600 fi
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12602 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12603 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12604 CFLAGS="$xorg_testset_save_CFLAGS"
12605 fi
12606
12607 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12610 fi
12611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12613 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12614 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12615 $as_echo_n "(cached) " >&6
12616 else
12617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12618 /* end confdefs.h. */
12619 int i;
12620 _ACEOF
12621 if ac_fn_c_try_compile "$LINENO"; then :
12622 xorg_cv_cc_flag_unused_command_line_argument=yes
12623 else
12624 xorg_cv_cc_flag_unused_command_line_argument=no
12625 fi
12626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12627 fi
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12629 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12630 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12631 CFLAGS="$xorg_testset_save_CFLAGS"
12632 fi
12633
12634 found="no"
12635
12636 if test $found = "no" ; then
12637 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12639 fi
12640
12641 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12643 fi
12644
12645 CFLAGS="$CFLAGS -Wnested-externs"
12646
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12648 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12649 cacheid=xorg_cv_cc_flag__Wnested_externs
12650 if eval \${$cacheid+:} false; then :
12651 $as_echo_n "(cached) " >&6
12652 else
12653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12654 /* end confdefs.h. */
12655 int i;
12656 int
12657 main ()
12658 {
12659
12660 ;
12661 return 0;
12662 }
12663 _ACEOF
12664 if ac_fn_c_try_link "$LINENO"; then :
12665 eval $cacheid=yes
12666 else
12667 eval $cacheid=no
12668 fi
12669 rm -f core conftest.err conftest.$ac_objext \
12670 conftest$ac_exeext conftest.$ac_ext
12671 fi
12672
12673
12674 CFLAGS="$xorg_testset_save_CFLAGS"
12675
12676 eval supported=\$$cacheid
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12678 $as_echo "$supported" >&6; }
12679 if test "$supported" = "yes" ; then
12680 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12681 found="yes"
12682 fi
12683 fi
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699 xorg_testset_save_CFLAGS="$CFLAGS"
12700
12701 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12704 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12705 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12706 $as_echo_n "(cached) " >&6
12707 else
12708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12709 /* end confdefs.h. */
12710 int i;
12711 _ACEOF
12712 if ac_fn_c_try_compile "$LINENO"; then :
12713 xorg_cv_cc_flag_unknown_warning_option=yes
12714 else
12715 xorg_cv_cc_flag_unknown_warning_option=no
12716 fi
12717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12718 fi
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12720 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12721 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12722 CFLAGS="$xorg_testset_save_CFLAGS"
12723 fi
12724
12725 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12728 fi
12729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12731 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12732 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12733 $as_echo_n "(cached) " >&6
12734 else
12735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12736 /* end confdefs.h. */
12737 int i;
12738 _ACEOF
12739 if ac_fn_c_try_compile "$LINENO"; then :
12740 xorg_cv_cc_flag_unused_command_line_argument=yes
12741 else
12742 xorg_cv_cc_flag_unused_command_line_argument=no
12743 fi
12744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12745 fi
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12747 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12748 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12749 CFLAGS="$xorg_testset_save_CFLAGS"
12750 fi
12751
12752 found="no"
12753
12754 if test $found = "no" ; then
12755 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12757 fi
12758
12759 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12761 fi
12762
12763 CFLAGS="$CFLAGS -Wbad-function-cast"
12764
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12766 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12767 cacheid=xorg_cv_cc_flag__Wbad_function_cast
12768 if eval \${$cacheid+:} false; then :
12769 $as_echo_n "(cached) " >&6
12770 else
12771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12772 /* end confdefs.h. */
12773 int i;
12774 int
12775 main ()
12776 {
12777
12778 ;
12779 return 0;
12780 }
12781 _ACEOF
12782 if ac_fn_c_try_link "$LINENO"; then :
12783 eval $cacheid=yes
12784 else
12785 eval $cacheid=no
12786 fi
12787 rm -f core conftest.err conftest.$ac_objext \
12788 conftest$ac_exeext conftest.$ac_ext
12789 fi
12790
12791
12792 CFLAGS="$xorg_testset_save_CFLAGS"
12793
12794 eval supported=\$$cacheid
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12796 $as_echo "$supported" >&6; }
12797 if test "$supported" = "yes" ; then
12798 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12799 found="yes"
12800 fi
12801 fi
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817 xorg_testset_save_CFLAGS="$CFLAGS"
12818
12819 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12822 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12823 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12824 $as_echo_n "(cached) " >&6
12825 else
12826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12827 /* end confdefs.h. */
12828 int i;
12829 _ACEOF
12830 if ac_fn_c_try_compile "$LINENO"; then :
12831 xorg_cv_cc_flag_unknown_warning_option=yes
12832 else
12833 xorg_cv_cc_flag_unknown_warning_option=no
12834 fi
12835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12836 fi
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12838 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12839 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12840 CFLAGS="$xorg_testset_save_CFLAGS"
12841 fi
12842
12843 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12846 fi
12847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12849 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12850 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12851 $as_echo_n "(cached) " >&6
12852 else
12853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12854 /* end confdefs.h. */
12855 int i;
12856 _ACEOF
12857 if ac_fn_c_try_compile "$LINENO"; then :
12858 xorg_cv_cc_flag_unused_command_line_argument=yes
12859 else
12860 xorg_cv_cc_flag_unused_command_line_argument=no
12861 fi
12862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12863 fi
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12865 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12866 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12867 CFLAGS="$xorg_testset_save_CFLAGS"
12868 fi
12869
12870 found="no"
12871
12872 if test $found = "no" ; then
12873 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12875 fi
12876
12877 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12879 fi
12880
12881 CFLAGS="$CFLAGS -Wold-style-definition"
12882
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12884 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12885 cacheid=xorg_cv_cc_flag__Wold_style_definition
12886 if eval \${$cacheid+:} false; then :
12887 $as_echo_n "(cached) " >&6
12888 else
12889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12890 /* end confdefs.h. */
12891 int i;
12892 int
12893 main ()
12894 {
12895
12896 ;
12897 return 0;
12898 }
12899 _ACEOF
12900 if ac_fn_c_try_link "$LINENO"; then :
12901 eval $cacheid=yes
12902 else
12903 eval $cacheid=no
12904 fi
12905 rm -f core conftest.err conftest.$ac_objext \
12906 conftest$ac_exeext conftest.$ac_ext
12907 fi
12908
12909
12910 CFLAGS="$xorg_testset_save_CFLAGS"
12911
12912 eval supported=\$$cacheid
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12914 $as_echo "$supported" >&6; }
12915 if test "$supported" = "yes" ; then
12916 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12917 found="yes"
12918 fi
12919 fi
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935 xorg_testset_save_CFLAGS="$CFLAGS"
12936
12937 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12940 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12941 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12942 $as_echo_n "(cached) " >&6
12943 else
12944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12945 /* end confdefs.h. */
12946 int i;
12947 _ACEOF
12948 if ac_fn_c_try_compile "$LINENO"; then :
12949 xorg_cv_cc_flag_unknown_warning_option=yes
12950 else
12951 xorg_cv_cc_flag_unknown_warning_option=no
12952 fi
12953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12954 fi
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12956 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12957 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12958 CFLAGS="$xorg_testset_save_CFLAGS"
12959 fi
12960
12961 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12964 fi
12965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12967 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12968 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12969 $as_echo_n "(cached) " >&6
12970 else
12971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12972 /* end confdefs.h. */
12973 int i;
12974 _ACEOF
12975 if ac_fn_c_try_compile "$LINENO"; then :
12976 xorg_cv_cc_flag_unused_command_line_argument=yes
12977 else
12978 xorg_cv_cc_flag_unused_command_line_argument=no
12979 fi
12980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12981 fi
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12983 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12984 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12985 CFLAGS="$xorg_testset_save_CFLAGS"
12986 fi
12987
12988 found="no"
12989
12990 if test $found = "no" ; then
12991 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12993 fi
12994
12995 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12997 fi
12998
12999 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13000
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13002 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13003 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13004 if eval \${$cacheid+:} false; then :
13005 $as_echo_n "(cached) " >&6
13006 else
13007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13008 /* end confdefs.h. */
13009 int i;
13010 int
13011 main ()
13012 {
13013
13014 ;
13015 return 0;
13016 }
13017 _ACEOF
13018 if ac_fn_c_try_link "$LINENO"; then :
13019 eval $cacheid=yes
13020 else
13021 eval $cacheid=no
13022 fi
13023 rm -f core conftest.err conftest.$ac_objext \
13024 conftest$ac_exeext conftest.$ac_ext
13025 fi
13026
13027
13028 CFLAGS="$xorg_testset_save_CFLAGS"
13029
13030 eval supported=\$$cacheid
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13032 $as_echo "$supported" >&6; }
13033 if test "$supported" = "yes" ; then
13034 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13035 found="yes"
13036 fi
13037 fi
13038
13039
13040
13041
13042
13043 # This chunk adds additional warnings that could catch undesired effects.
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057 xorg_testset_save_CFLAGS="$CFLAGS"
13058
13059 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13062 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13063 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13064 $as_echo_n "(cached) " >&6
13065 else
13066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13067 /* end confdefs.h. */
13068 int i;
13069 _ACEOF
13070 if ac_fn_c_try_compile "$LINENO"; then :
13071 xorg_cv_cc_flag_unknown_warning_option=yes
13072 else
13073 xorg_cv_cc_flag_unknown_warning_option=no
13074 fi
13075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13076 fi
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13078 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13079 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13080 CFLAGS="$xorg_testset_save_CFLAGS"
13081 fi
13082
13083 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13086 fi
13087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13089 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13090 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13091 $as_echo_n "(cached) " >&6
13092 else
13093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13094 /* end confdefs.h. */
13095 int i;
13096 _ACEOF
13097 if ac_fn_c_try_compile "$LINENO"; then :
13098 xorg_cv_cc_flag_unused_command_line_argument=yes
13099 else
13100 xorg_cv_cc_flag_unused_command_line_argument=no
13101 fi
13102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13103 fi
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13105 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13106 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13107 CFLAGS="$xorg_testset_save_CFLAGS"
13108 fi
13109
13110 found="no"
13111
13112 if test $found = "no" ; then
13113 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13114 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13115 fi
13116
13117 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13119 fi
13120
13121 CFLAGS="$CFLAGS -Wunused"
13122
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13124 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13125 cacheid=xorg_cv_cc_flag__Wunused
13126 if eval \${$cacheid+:} false; then :
13127 $as_echo_n "(cached) " >&6
13128 else
13129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13130 /* end confdefs.h. */
13131 int i;
13132 int
13133 main ()
13134 {
13135
13136 ;
13137 return 0;
13138 }
13139 _ACEOF
13140 if ac_fn_c_try_link "$LINENO"; then :
13141 eval $cacheid=yes
13142 else
13143 eval $cacheid=no
13144 fi
13145 rm -f core conftest.err conftest.$ac_objext \
13146 conftest$ac_exeext conftest.$ac_ext
13147 fi
13148
13149
13150 CFLAGS="$xorg_testset_save_CFLAGS"
13151
13152 eval supported=\$$cacheid
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13154 $as_echo "$supported" >&6; }
13155 if test "$supported" = "yes" ; then
13156 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13157 found="yes"
13158 fi
13159 fi
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175 xorg_testset_save_CFLAGS="$CFLAGS"
13176
13177 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13178 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13180 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13181 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13182 $as_echo_n "(cached) " >&6
13183 else
13184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13185 /* end confdefs.h. */
13186 int i;
13187 _ACEOF
13188 if ac_fn_c_try_compile "$LINENO"; then :
13189 xorg_cv_cc_flag_unknown_warning_option=yes
13190 else
13191 xorg_cv_cc_flag_unknown_warning_option=no
13192 fi
13193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13194 fi
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13196 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13197 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13198 CFLAGS="$xorg_testset_save_CFLAGS"
13199 fi
13200
13201 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13204 fi
13205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13207 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13208 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13209 $as_echo_n "(cached) " >&6
13210 else
13211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13212 /* end confdefs.h. */
13213 int i;
13214 _ACEOF
13215 if ac_fn_c_try_compile "$LINENO"; then :
13216 xorg_cv_cc_flag_unused_command_line_argument=yes
13217 else
13218 xorg_cv_cc_flag_unused_command_line_argument=no
13219 fi
13220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13221 fi
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13223 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13224 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13225 CFLAGS="$xorg_testset_save_CFLAGS"
13226 fi
13227
13228 found="no"
13229
13230 if test $found = "no" ; then
13231 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13232 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13233 fi
13234
13235 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13237 fi
13238
13239 CFLAGS="$CFLAGS -Wuninitialized"
13240
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13242 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13243 cacheid=xorg_cv_cc_flag__Wuninitialized
13244 if eval \${$cacheid+:} false; then :
13245 $as_echo_n "(cached) " >&6
13246 else
13247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13248 /* end confdefs.h. */
13249 int i;
13250 int
13251 main ()
13252 {
13253
13254 ;
13255 return 0;
13256 }
13257 _ACEOF
13258 if ac_fn_c_try_link "$LINENO"; then :
13259 eval $cacheid=yes
13260 else
13261 eval $cacheid=no
13262 fi
13263 rm -f core conftest.err conftest.$ac_objext \
13264 conftest$ac_exeext conftest.$ac_ext
13265 fi
13266
13267
13268 CFLAGS="$xorg_testset_save_CFLAGS"
13269
13270 eval supported=\$$cacheid
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13272 $as_echo "$supported" >&6; }
13273 if test "$supported" = "yes" ; then
13274 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13275 found="yes"
13276 fi
13277 fi
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293 xorg_testset_save_CFLAGS="$CFLAGS"
13294
13295 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13296 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13298 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13299 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13300 $as_echo_n "(cached) " >&6
13301 else
13302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13303 /* end confdefs.h. */
13304 int i;
13305 _ACEOF
13306 if ac_fn_c_try_compile "$LINENO"; then :
13307 xorg_cv_cc_flag_unknown_warning_option=yes
13308 else
13309 xorg_cv_cc_flag_unknown_warning_option=no
13310 fi
13311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13312 fi
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13314 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13315 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13316 CFLAGS="$xorg_testset_save_CFLAGS"
13317 fi
13318
13319 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13322 fi
13323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13325 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13326 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13327 $as_echo_n "(cached) " >&6
13328 else
13329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13330 /* end confdefs.h. */
13331 int i;
13332 _ACEOF
13333 if ac_fn_c_try_compile "$LINENO"; then :
13334 xorg_cv_cc_flag_unused_command_line_argument=yes
13335 else
13336 xorg_cv_cc_flag_unused_command_line_argument=no
13337 fi
13338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13339 fi
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13341 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13342 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13343 CFLAGS="$xorg_testset_save_CFLAGS"
13344 fi
13345
13346 found="no"
13347
13348 if test $found = "no" ; then
13349 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13350 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13351 fi
13352
13353 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13355 fi
13356
13357 CFLAGS="$CFLAGS -Wshadow"
13358
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13360 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13361 cacheid=xorg_cv_cc_flag__Wshadow
13362 if eval \${$cacheid+:} false; then :
13363 $as_echo_n "(cached) " >&6
13364 else
13365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13366 /* end confdefs.h. */
13367 int i;
13368 int
13369 main ()
13370 {
13371
13372 ;
13373 return 0;
13374 }
13375 _ACEOF
13376 if ac_fn_c_try_link "$LINENO"; then :
13377 eval $cacheid=yes
13378 else
13379 eval $cacheid=no
13380 fi
13381 rm -f core conftest.err conftest.$ac_objext \
13382 conftest$ac_exeext conftest.$ac_ext
13383 fi
13384
13385
13386 CFLAGS="$xorg_testset_save_CFLAGS"
13387
13388 eval supported=\$$cacheid
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13390 $as_echo "$supported" >&6; }
13391 if test "$supported" = "yes" ; then
13392 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13393 found="yes"
13394 fi
13395 fi
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411 xorg_testset_save_CFLAGS="$CFLAGS"
13412
13413 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13414 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13416 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13417 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13418 $as_echo_n "(cached) " >&6
13419 else
13420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13421 /* end confdefs.h. */
13422 int i;
13423 _ACEOF
13424 if ac_fn_c_try_compile "$LINENO"; then :
13425 xorg_cv_cc_flag_unknown_warning_option=yes
13426 else
13427 xorg_cv_cc_flag_unknown_warning_option=no
13428 fi
13429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13430 fi
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13432 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13433 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13434 CFLAGS="$xorg_testset_save_CFLAGS"
13435 fi
13436
13437 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13440 fi
13441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13443 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13444 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13445 $as_echo_n "(cached) " >&6
13446 else
13447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13448 /* end confdefs.h. */
13449 int i;
13450 _ACEOF
13451 if ac_fn_c_try_compile "$LINENO"; then :
13452 xorg_cv_cc_flag_unused_command_line_argument=yes
13453 else
13454 xorg_cv_cc_flag_unused_command_line_argument=no
13455 fi
13456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13457 fi
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13459 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13460 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13461 CFLAGS="$xorg_testset_save_CFLAGS"
13462 fi
13463
13464 found="no"
13465
13466 if test $found = "no" ; then
13467 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13468 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13469 fi
13470
13471 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13473 fi
13474
13475 CFLAGS="$CFLAGS -Wcast-qual"
13476
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
13478 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
13479 cacheid=xorg_cv_cc_flag__Wcast_qual
13480 if eval \${$cacheid+:} false; then :
13481 $as_echo_n "(cached) " >&6
13482 else
13483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13484 /* end confdefs.h. */
13485 int i;
13486 int
13487 main ()
13488 {
13489
13490 ;
13491 return 0;
13492 }
13493 _ACEOF
13494 if ac_fn_c_try_link "$LINENO"; then :
13495 eval $cacheid=yes
13496 else
13497 eval $cacheid=no
13498 fi
13499 rm -f core conftest.err conftest.$ac_objext \
13500 conftest$ac_exeext conftest.$ac_ext
13501 fi
13502
13503
13504 CFLAGS="$xorg_testset_save_CFLAGS"
13505
13506 eval supported=\$$cacheid
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13508 $as_echo "$supported" >&6; }
13509 if test "$supported" = "yes" ; then
13510 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13511 found="yes"
13512 fi
13513 fi
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529 xorg_testset_save_CFLAGS="$CFLAGS"
13530
13531 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13532 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13534 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13535 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13536 $as_echo_n "(cached) " >&6
13537 else
13538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13539 /* end confdefs.h. */
13540 int i;
13541 _ACEOF
13542 if ac_fn_c_try_compile "$LINENO"; then :
13543 xorg_cv_cc_flag_unknown_warning_option=yes
13544 else
13545 xorg_cv_cc_flag_unknown_warning_option=no
13546 fi
13547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13548 fi
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13550 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13551 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13552 CFLAGS="$xorg_testset_save_CFLAGS"
13553 fi
13554
13555 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13557 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13558 fi
13559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13561 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13562 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13563 $as_echo_n "(cached) " >&6
13564 else
13565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13566 /* end confdefs.h. */
13567 int i;
13568 _ACEOF
13569 if ac_fn_c_try_compile "$LINENO"; then :
13570 xorg_cv_cc_flag_unused_command_line_argument=yes
13571 else
13572 xorg_cv_cc_flag_unused_command_line_argument=no
13573 fi
13574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13575 fi
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13577 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13578 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13579 CFLAGS="$xorg_testset_save_CFLAGS"
13580 fi
13581
13582 found="no"
13583
13584 if test $found = "no" ; then
13585 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13586 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13587 fi
13588
13589 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13591 fi
13592
13593 CFLAGS="$CFLAGS -Wmissing-noreturn"
13594
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13596 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13597 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13598 if eval \${$cacheid+:} false; then :
13599 $as_echo_n "(cached) " >&6
13600 else
13601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13602 /* end confdefs.h. */
13603 int i;
13604 int
13605 main ()
13606 {
13607
13608 ;
13609 return 0;
13610 }
13611 _ACEOF
13612 if ac_fn_c_try_link "$LINENO"; then :
13613 eval $cacheid=yes
13614 else
13615 eval $cacheid=no
13616 fi
13617 rm -f core conftest.err conftest.$ac_objext \
13618 conftest$ac_exeext conftest.$ac_ext
13619 fi
13620
13621
13622 CFLAGS="$xorg_testset_save_CFLAGS"
13623
13624 eval supported=\$$cacheid
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13626 $as_echo "$supported" >&6; }
13627 if test "$supported" = "yes" ; then
13628 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13629 found="yes"
13630 fi
13631 fi
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647 xorg_testset_save_CFLAGS="$CFLAGS"
13648
13649 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13650 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13652 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13653 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13654 $as_echo_n "(cached) " >&6
13655 else
13656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13657 /* end confdefs.h. */
13658 int i;
13659 _ACEOF
13660 if ac_fn_c_try_compile "$LINENO"; then :
13661 xorg_cv_cc_flag_unknown_warning_option=yes
13662 else
13663 xorg_cv_cc_flag_unknown_warning_option=no
13664 fi
13665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13666 fi
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13668 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13669 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13670 CFLAGS="$xorg_testset_save_CFLAGS"
13671 fi
13672
13673 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13676 fi
13677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13679 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13680 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13681 $as_echo_n "(cached) " >&6
13682 else
13683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13684 /* end confdefs.h. */
13685 int i;
13686 _ACEOF
13687 if ac_fn_c_try_compile "$LINENO"; then :
13688 xorg_cv_cc_flag_unused_command_line_argument=yes
13689 else
13690 xorg_cv_cc_flag_unused_command_line_argument=no
13691 fi
13692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13693 fi
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13695 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13696 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13697 CFLAGS="$xorg_testset_save_CFLAGS"
13698 fi
13699
13700 found="no"
13701
13702 if test $found = "no" ; then
13703 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13704 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13705 fi
13706
13707 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13709 fi
13710
13711 CFLAGS="$CFLAGS -Wmissing-format-attribute"
13712
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13714 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13715 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
13716 if eval \${$cacheid+:} false; then :
13717 $as_echo_n "(cached) " >&6
13718 else
13719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13720 /* end confdefs.h. */
13721 int i;
13722 int
13723 main ()
13724 {
13725
13726 ;
13727 return 0;
13728 }
13729 _ACEOF
13730 if ac_fn_c_try_link "$LINENO"; then :
13731 eval $cacheid=yes
13732 else
13733 eval $cacheid=no
13734 fi
13735 rm -f core conftest.err conftest.$ac_objext \
13736 conftest$ac_exeext conftest.$ac_ext
13737 fi
13738
13739
13740 CFLAGS="$xorg_testset_save_CFLAGS"
13741
13742 eval supported=\$$cacheid
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13744 $as_echo "$supported" >&6; }
13745 if test "$supported" = "yes" ; then
13746 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13747 found="yes"
13748 fi
13749 fi
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765 xorg_testset_save_CFLAGS="$CFLAGS"
13766
13767 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13770 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13771 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13772 $as_echo_n "(cached) " >&6
13773 else
13774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13775 /* end confdefs.h. */
13776 int i;
13777 _ACEOF
13778 if ac_fn_c_try_compile "$LINENO"; then :
13779 xorg_cv_cc_flag_unknown_warning_option=yes
13780 else
13781 xorg_cv_cc_flag_unknown_warning_option=no
13782 fi
13783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13784 fi
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13786 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13787 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13788 CFLAGS="$xorg_testset_save_CFLAGS"
13789 fi
13790
13791 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13792 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13793 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13794 fi
13795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13797 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13798 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13799 $as_echo_n "(cached) " >&6
13800 else
13801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13802 /* end confdefs.h. */
13803 int i;
13804 _ACEOF
13805 if ac_fn_c_try_compile "$LINENO"; then :
13806 xorg_cv_cc_flag_unused_command_line_argument=yes
13807 else
13808 xorg_cv_cc_flag_unused_command_line_argument=no
13809 fi
13810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13811 fi
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13813 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13814 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13815 CFLAGS="$xorg_testset_save_CFLAGS"
13816 fi
13817
13818 found="no"
13819
13820 if test $found = "no" ; then
13821 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13823 fi
13824
13825 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13827 fi
13828
13829 CFLAGS="$CFLAGS -Wredundant-decls"
13830
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13832 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13833 cacheid=xorg_cv_cc_flag__Wredundant_decls
13834 if eval \${$cacheid+:} false; then :
13835 $as_echo_n "(cached) " >&6
13836 else
13837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13838 /* end confdefs.h. */
13839 int i;
13840 int
13841 main ()
13842 {
13843
13844 ;
13845 return 0;
13846 }
13847 _ACEOF
13848 if ac_fn_c_try_link "$LINENO"; then :
13849 eval $cacheid=yes
13850 else
13851 eval $cacheid=no
13852 fi
13853 rm -f core conftest.err conftest.$ac_objext \
13854 conftest$ac_exeext conftest.$ac_ext
13855 fi
13856
13857
13858 CFLAGS="$xorg_testset_save_CFLAGS"
13859
13860 eval supported=\$$cacheid
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13862 $as_echo "$supported" >&6; }
13863 if test "$supported" = "yes" ; then
13864 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13865 found="yes"
13866 fi
13867 fi
13868
13869
13870
13871 # These are currently disabled because they are noisy. They will be enabled
13872 # in the future once the codebase is sufficiently modernized to silence
13873 # them. For now, I don't want them to drown out the other warnings.
13874 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
13875 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13876 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13877
13878 # Turn some warnings into errors, so we don't accidently get successful builds
13879 # when there are problems that should be fixed.
13880
13881 if test "x$SELECTIVE_WERROR" = "xyes" ; then
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895 xorg_testset_save_CFLAGS="$CFLAGS"
13896
13897 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13900 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13901 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13902 $as_echo_n "(cached) " >&6
13903 else
13904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13905 /* end confdefs.h. */
13906 int i;
13907 _ACEOF
13908 if ac_fn_c_try_compile "$LINENO"; then :
13909 xorg_cv_cc_flag_unknown_warning_option=yes
13910 else
13911 xorg_cv_cc_flag_unknown_warning_option=no
13912 fi
13913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13914 fi
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13916 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13917 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13918 CFLAGS="$xorg_testset_save_CFLAGS"
13919 fi
13920
13921 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13923 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13924 fi
13925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13927 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13928 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13929 $as_echo_n "(cached) " >&6
13930 else
13931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13932 /* end confdefs.h. */
13933 int i;
13934 _ACEOF
13935 if ac_fn_c_try_compile "$LINENO"; then :
13936 xorg_cv_cc_flag_unused_command_line_argument=yes
13937 else
13938 xorg_cv_cc_flag_unused_command_line_argument=no
13939 fi
13940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13941 fi
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13943 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13944 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13945 CFLAGS="$xorg_testset_save_CFLAGS"
13946 fi
13947
13948 found="no"
13949
13950 if test $found = "no" ; then
13951 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13952 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13953 fi
13954
13955 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13957 fi
13958
13959 CFLAGS="$CFLAGS -Werror=implicit"
13960
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
13962 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
13963 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
13964 if eval \${$cacheid+:} false; then :
13965 $as_echo_n "(cached) " >&6
13966 else
13967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13968 /* end confdefs.h. */
13969 int i;
13970 int
13971 main ()
13972 {
13973
13974 ;
13975 return 0;
13976 }
13977 _ACEOF
13978 if ac_fn_c_try_link "$LINENO"; then :
13979 eval $cacheid=yes
13980 else
13981 eval $cacheid=no
13982 fi
13983 rm -f core conftest.err conftest.$ac_objext \
13984 conftest$ac_exeext conftest.$ac_ext
13985 fi
13986
13987
13988 CFLAGS="$xorg_testset_save_CFLAGS"
13989
13990 eval supported=\$$cacheid
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13992 $as_echo "$supported" >&6; }
13993 if test "$supported" = "yes" ; then
13994 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
13995 found="yes"
13996 fi
13997 fi
13998
13999 if test $found = "no" ; then
14000 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14002 fi
14003
14004 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14006 fi
14007
14008 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14009
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14011 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14012 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
14013 if eval \${$cacheid+:} false; then :
14014 $as_echo_n "(cached) " >&6
14015 else
14016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14017 /* end confdefs.h. */
14018 int i;
14019 int
14020 main ()
14021 {
14022
14023 ;
14024 return 0;
14025 }
14026 _ACEOF
14027 if ac_fn_c_try_link "$LINENO"; then :
14028 eval $cacheid=yes
14029 else
14030 eval $cacheid=no
14031 fi
14032 rm -f core conftest.err conftest.$ac_objext \
14033 conftest$ac_exeext conftest.$ac_ext
14034 fi
14035
14036
14037 CFLAGS="$xorg_testset_save_CFLAGS"
14038
14039 eval supported=\$$cacheid
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14041 $as_echo "$supported" >&6; }
14042 if test "$supported" = "yes" ; then
14043 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14044 found="yes"
14045 fi
14046 fi
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062 xorg_testset_save_CFLAGS="$CFLAGS"
14063
14064 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14065 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14067 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14068 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14069 $as_echo_n "(cached) " >&6
14070 else
14071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14072 /* end confdefs.h. */
14073 int i;
14074 _ACEOF
14075 if ac_fn_c_try_compile "$LINENO"; then :
14076 xorg_cv_cc_flag_unknown_warning_option=yes
14077 else
14078 xorg_cv_cc_flag_unknown_warning_option=no
14079 fi
14080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14081 fi
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14083 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14084 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14085 CFLAGS="$xorg_testset_save_CFLAGS"
14086 fi
14087
14088 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14090 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14091 fi
14092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14094 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14095 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14096 $as_echo_n "(cached) " >&6
14097 else
14098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14099 /* end confdefs.h. */
14100 int i;
14101 _ACEOF
14102 if ac_fn_c_try_compile "$LINENO"; then :
14103 xorg_cv_cc_flag_unused_command_line_argument=yes
14104 else
14105 xorg_cv_cc_flag_unused_command_line_argument=no
14106 fi
14107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14108 fi
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14110 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14111 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14112 CFLAGS="$xorg_testset_save_CFLAGS"
14113 fi
14114
14115 found="no"
14116
14117 if test $found = "no" ; then
14118 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14120 fi
14121
14122 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14124 fi
14125
14126 CFLAGS="$CFLAGS -Werror=nonnull"
14127
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14129 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14130 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
14131 if eval \${$cacheid+:} false; then :
14132 $as_echo_n "(cached) " >&6
14133 else
14134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14135 /* end confdefs.h. */
14136 int i;
14137 int
14138 main ()
14139 {
14140
14141 ;
14142 return 0;
14143 }
14144 _ACEOF
14145 if ac_fn_c_try_link "$LINENO"; then :
14146 eval $cacheid=yes
14147 else
14148 eval $cacheid=no
14149 fi
14150 rm -f core conftest.err conftest.$ac_objext \
14151 conftest$ac_exeext conftest.$ac_ext
14152 fi
14153
14154
14155 CFLAGS="$xorg_testset_save_CFLAGS"
14156
14157 eval supported=\$$cacheid
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14159 $as_echo "$supported" >&6; }
14160 if test "$supported" = "yes" ; then
14161 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14162 found="yes"
14163 fi
14164 fi
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180 xorg_testset_save_CFLAGS="$CFLAGS"
14181
14182 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14185 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14186 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14187 $as_echo_n "(cached) " >&6
14188 else
14189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14190 /* end confdefs.h. */
14191 int i;
14192 _ACEOF
14193 if ac_fn_c_try_compile "$LINENO"; then :
14194 xorg_cv_cc_flag_unknown_warning_option=yes
14195 else
14196 xorg_cv_cc_flag_unknown_warning_option=no
14197 fi
14198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14199 fi
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14201 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14202 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14203 CFLAGS="$xorg_testset_save_CFLAGS"
14204 fi
14205
14206 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14209 fi
14210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14212 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14213 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14214 $as_echo_n "(cached) " >&6
14215 else
14216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14217 /* end confdefs.h. */
14218 int i;
14219 _ACEOF
14220 if ac_fn_c_try_compile "$LINENO"; then :
14221 xorg_cv_cc_flag_unused_command_line_argument=yes
14222 else
14223 xorg_cv_cc_flag_unused_command_line_argument=no
14224 fi
14225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14226 fi
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14228 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14229 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14230 CFLAGS="$xorg_testset_save_CFLAGS"
14231 fi
14232
14233 found="no"
14234
14235 if test $found = "no" ; then
14236 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14238 fi
14239
14240 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14242 fi
14243
14244 CFLAGS="$CFLAGS -Werror=init-self"
14245
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14247 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14248 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
14249 if eval \${$cacheid+:} false; then :
14250 $as_echo_n "(cached) " >&6
14251 else
14252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14253 /* end confdefs.h. */
14254 int i;
14255 int
14256 main ()
14257 {
14258
14259 ;
14260 return 0;
14261 }
14262 _ACEOF
14263 if ac_fn_c_try_link "$LINENO"; then :
14264 eval $cacheid=yes
14265 else
14266 eval $cacheid=no
14267 fi
14268 rm -f core conftest.err conftest.$ac_objext \
14269 conftest$ac_exeext conftest.$ac_ext
14270 fi
14271
14272
14273 CFLAGS="$xorg_testset_save_CFLAGS"
14274
14275 eval supported=\$$cacheid
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14277 $as_echo "$supported" >&6; }
14278 if test "$supported" = "yes" ; then
14279 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14280 found="yes"
14281 fi
14282 fi
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298 xorg_testset_save_CFLAGS="$CFLAGS"
14299
14300 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14301 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14303 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14304 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14305 $as_echo_n "(cached) " >&6
14306 else
14307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14308 /* end confdefs.h. */
14309 int i;
14310 _ACEOF
14311 if ac_fn_c_try_compile "$LINENO"; then :
14312 xorg_cv_cc_flag_unknown_warning_option=yes
14313 else
14314 xorg_cv_cc_flag_unknown_warning_option=no
14315 fi
14316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14317 fi
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14319 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14320 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14321 CFLAGS="$xorg_testset_save_CFLAGS"
14322 fi
14323
14324 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14327 fi
14328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14330 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14331 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14332 $as_echo_n "(cached) " >&6
14333 else
14334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14335 /* end confdefs.h. */
14336 int i;
14337 _ACEOF
14338 if ac_fn_c_try_compile "$LINENO"; then :
14339 xorg_cv_cc_flag_unused_command_line_argument=yes
14340 else
14341 xorg_cv_cc_flag_unused_command_line_argument=no
14342 fi
14343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14344 fi
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14346 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14347 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14348 CFLAGS="$xorg_testset_save_CFLAGS"
14349 fi
14350
14351 found="no"
14352
14353 if test $found = "no" ; then
14354 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14356 fi
14357
14358 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14360 fi
14361
14362 CFLAGS="$CFLAGS -Werror=main"
14363
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14365 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14366 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
14367 if eval \${$cacheid+:} false; then :
14368 $as_echo_n "(cached) " >&6
14369 else
14370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14371 /* end confdefs.h. */
14372 int i;
14373 int
14374 main ()
14375 {
14376
14377 ;
14378 return 0;
14379 }
14380 _ACEOF
14381 if ac_fn_c_try_link "$LINENO"; then :
14382 eval $cacheid=yes
14383 else
14384 eval $cacheid=no
14385 fi
14386 rm -f core conftest.err conftest.$ac_objext \
14387 conftest$ac_exeext conftest.$ac_ext
14388 fi
14389
14390
14391 CFLAGS="$xorg_testset_save_CFLAGS"
14392
14393 eval supported=\$$cacheid
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14395 $as_echo "$supported" >&6; }
14396 if test "$supported" = "yes" ; then
14397 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14398 found="yes"
14399 fi
14400 fi
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416 xorg_testset_save_CFLAGS="$CFLAGS"
14417
14418 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14419 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14421 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14422 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14423 $as_echo_n "(cached) " >&6
14424 else
14425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14426 /* end confdefs.h. */
14427 int i;
14428 _ACEOF
14429 if ac_fn_c_try_compile "$LINENO"; then :
14430 xorg_cv_cc_flag_unknown_warning_option=yes
14431 else
14432 xorg_cv_cc_flag_unknown_warning_option=no
14433 fi
14434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14435 fi
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14437 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14438 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14439 CFLAGS="$xorg_testset_save_CFLAGS"
14440 fi
14441
14442 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14445 fi
14446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14448 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14449 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14450 $as_echo_n "(cached) " >&6
14451 else
14452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14453 /* end confdefs.h. */
14454 int i;
14455 _ACEOF
14456 if ac_fn_c_try_compile "$LINENO"; then :
14457 xorg_cv_cc_flag_unused_command_line_argument=yes
14458 else
14459 xorg_cv_cc_flag_unused_command_line_argument=no
14460 fi
14461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14462 fi
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14464 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14465 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14466 CFLAGS="$xorg_testset_save_CFLAGS"
14467 fi
14468
14469 found="no"
14470
14471 if test $found = "no" ; then
14472 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14473 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14474 fi
14475
14476 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14478 fi
14479
14480 CFLAGS="$CFLAGS -Werror=missing-braces"
14481
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14483 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14484 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
14485 if eval \${$cacheid+:} false; then :
14486 $as_echo_n "(cached) " >&6
14487 else
14488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14489 /* end confdefs.h. */
14490 int i;
14491 int
14492 main ()
14493 {
14494
14495 ;
14496 return 0;
14497 }
14498 _ACEOF
14499 if ac_fn_c_try_link "$LINENO"; then :
14500 eval $cacheid=yes
14501 else
14502 eval $cacheid=no
14503 fi
14504 rm -f core conftest.err conftest.$ac_objext \
14505 conftest$ac_exeext conftest.$ac_ext
14506 fi
14507
14508
14509 CFLAGS="$xorg_testset_save_CFLAGS"
14510
14511 eval supported=\$$cacheid
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14513 $as_echo "$supported" >&6; }
14514 if test "$supported" = "yes" ; then
14515 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14516 found="yes"
14517 fi
14518 fi
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534 xorg_testset_save_CFLAGS="$CFLAGS"
14535
14536 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14537 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14539 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14540 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14541 $as_echo_n "(cached) " >&6
14542 else
14543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14544 /* end confdefs.h. */
14545 int i;
14546 _ACEOF
14547 if ac_fn_c_try_compile "$LINENO"; then :
14548 xorg_cv_cc_flag_unknown_warning_option=yes
14549 else
14550 xorg_cv_cc_flag_unknown_warning_option=no
14551 fi
14552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14553 fi
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14555 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14557 CFLAGS="$xorg_testset_save_CFLAGS"
14558 fi
14559
14560 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14563 fi
14564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14566 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14567 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14568 $as_echo_n "(cached) " >&6
14569 else
14570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14571 /* end confdefs.h. */
14572 int i;
14573 _ACEOF
14574 if ac_fn_c_try_compile "$LINENO"; then :
14575 xorg_cv_cc_flag_unused_command_line_argument=yes
14576 else
14577 xorg_cv_cc_flag_unused_command_line_argument=no
14578 fi
14579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14580 fi
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14582 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14583 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14584 CFLAGS="$xorg_testset_save_CFLAGS"
14585 fi
14586
14587 found="no"
14588
14589 if test $found = "no" ; then
14590 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14592 fi
14593
14594 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14596 fi
14597
14598 CFLAGS="$CFLAGS -Werror=sequence-point"
14599
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14601 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14602 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
14603 if eval \${$cacheid+:} false; then :
14604 $as_echo_n "(cached) " >&6
14605 else
14606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14607 /* end confdefs.h. */
14608 int i;
14609 int
14610 main ()
14611 {
14612
14613 ;
14614 return 0;
14615 }
14616 _ACEOF
14617 if ac_fn_c_try_link "$LINENO"; then :
14618 eval $cacheid=yes
14619 else
14620 eval $cacheid=no
14621 fi
14622 rm -f core conftest.err conftest.$ac_objext \
14623 conftest$ac_exeext conftest.$ac_ext
14624 fi
14625
14626
14627 CFLAGS="$xorg_testset_save_CFLAGS"
14628
14629 eval supported=\$$cacheid
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14631 $as_echo "$supported" >&6; }
14632 if test "$supported" = "yes" ; then
14633 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14634 found="yes"
14635 fi
14636 fi
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652 xorg_testset_save_CFLAGS="$CFLAGS"
14653
14654 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14655 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14657 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14658 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14659 $as_echo_n "(cached) " >&6
14660 else
14661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14662 /* end confdefs.h. */
14663 int i;
14664 _ACEOF
14665 if ac_fn_c_try_compile "$LINENO"; then :
14666 xorg_cv_cc_flag_unknown_warning_option=yes
14667 else
14668 xorg_cv_cc_flag_unknown_warning_option=no
14669 fi
14670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14671 fi
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14673 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14674 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14675 CFLAGS="$xorg_testset_save_CFLAGS"
14676 fi
14677
14678 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14680 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14681 fi
14682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14684 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14685 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14686 $as_echo_n "(cached) " >&6
14687 else
14688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14689 /* end confdefs.h. */
14690 int i;
14691 _ACEOF
14692 if ac_fn_c_try_compile "$LINENO"; then :
14693 xorg_cv_cc_flag_unused_command_line_argument=yes
14694 else
14695 xorg_cv_cc_flag_unused_command_line_argument=no
14696 fi
14697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14698 fi
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14700 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14701 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14702 CFLAGS="$xorg_testset_save_CFLAGS"
14703 fi
14704
14705 found="no"
14706
14707 if test $found = "no" ; then
14708 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14709 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14710 fi
14711
14712 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14714 fi
14715
14716 CFLAGS="$CFLAGS -Werror=return-type"
14717
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14719 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14720 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
14721 if eval \${$cacheid+:} false; then :
14722 $as_echo_n "(cached) " >&6
14723 else
14724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14725 /* end confdefs.h. */
14726 int i;
14727 int
14728 main ()
14729 {
14730
14731 ;
14732 return 0;
14733 }
14734 _ACEOF
14735 if ac_fn_c_try_link "$LINENO"; then :
14736 eval $cacheid=yes
14737 else
14738 eval $cacheid=no
14739 fi
14740 rm -f core conftest.err conftest.$ac_objext \
14741 conftest$ac_exeext conftest.$ac_ext
14742 fi
14743
14744
14745 CFLAGS="$xorg_testset_save_CFLAGS"
14746
14747 eval supported=\$$cacheid
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14749 $as_echo "$supported" >&6; }
14750 if test "$supported" = "yes" ; then
14751 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14752 found="yes"
14753 fi
14754 fi
14755
14756 if test $found = "no" ; then
14757 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14758 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14759 fi
14760
14761 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14763 fi
14764
14765 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14766
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14768 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14769 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
14770 if eval \${$cacheid+:} false; then :
14771 $as_echo_n "(cached) " >&6
14772 else
14773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14774 /* end confdefs.h. */
14775 int i;
14776 int
14777 main ()
14778 {
14779
14780 ;
14781 return 0;
14782 }
14783 _ACEOF
14784 if ac_fn_c_try_link "$LINENO"; then :
14785 eval $cacheid=yes
14786 else
14787 eval $cacheid=no
14788 fi
14789 rm -f core conftest.err conftest.$ac_objext \
14790 conftest$ac_exeext conftest.$ac_ext
14791 fi
14792
14793
14794 CFLAGS="$xorg_testset_save_CFLAGS"
14795
14796 eval supported=\$$cacheid
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14798 $as_echo "$supported" >&6; }
14799 if test "$supported" = "yes" ; then
14800 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14801 found="yes"
14802 fi
14803 fi
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819 xorg_testset_save_CFLAGS="$CFLAGS"
14820
14821 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14824 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14825 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14826 $as_echo_n "(cached) " >&6
14827 else
14828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14829 /* end confdefs.h. */
14830 int i;
14831 _ACEOF
14832 if ac_fn_c_try_compile "$LINENO"; then :
14833 xorg_cv_cc_flag_unknown_warning_option=yes
14834 else
14835 xorg_cv_cc_flag_unknown_warning_option=no
14836 fi
14837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14838 fi
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14840 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14841 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14842 CFLAGS="$xorg_testset_save_CFLAGS"
14843 fi
14844
14845 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14847 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14848 fi
14849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14851 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14852 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14853 $as_echo_n "(cached) " >&6
14854 else
14855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14856 /* end confdefs.h. */
14857 int i;
14858 _ACEOF
14859 if ac_fn_c_try_compile "$LINENO"; then :
14860 xorg_cv_cc_flag_unused_command_line_argument=yes
14861 else
14862 xorg_cv_cc_flag_unused_command_line_argument=no
14863 fi
14864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14865 fi
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14867 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14868 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14869 CFLAGS="$xorg_testset_save_CFLAGS"
14870 fi
14871
14872 found="no"
14873
14874 if test $found = "no" ; then
14875 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14877 fi
14878
14879 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14881 fi
14882
14883 CFLAGS="$CFLAGS -Werror=trigraphs"
14884
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14886 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14887 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
14888 if eval \${$cacheid+:} false; then :
14889 $as_echo_n "(cached) " >&6
14890 else
14891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14892 /* end confdefs.h. */
14893 int i;
14894 int
14895 main ()
14896 {
14897
14898 ;
14899 return 0;
14900 }
14901 _ACEOF
14902 if ac_fn_c_try_link "$LINENO"; then :
14903 eval $cacheid=yes
14904 else
14905 eval $cacheid=no
14906 fi
14907 rm -f core conftest.err conftest.$ac_objext \
14908 conftest$ac_exeext conftest.$ac_ext
14909 fi
14910
14911
14912 CFLAGS="$xorg_testset_save_CFLAGS"
14913
14914 eval supported=\$$cacheid
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14916 $as_echo "$supported" >&6; }
14917 if test "$supported" = "yes" ; then
14918 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14919 found="yes"
14920 fi
14921 fi
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937 xorg_testset_save_CFLAGS="$CFLAGS"
14938
14939 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14940 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14942 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14943 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14944 $as_echo_n "(cached) " >&6
14945 else
14946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14947 /* end confdefs.h. */
14948 int i;
14949 _ACEOF
14950 if ac_fn_c_try_compile "$LINENO"; then :
14951 xorg_cv_cc_flag_unknown_warning_option=yes
14952 else
14953 xorg_cv_cc_flag_unknown_warning_option=no
14954 fi
14955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14956 fi
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14958 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14959 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14960 CFLAGS="$xorg_testset_save_CFLAGS"
14961 fi
14962
14963 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14966 fi
14967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14969 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14970 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14971 $as_echo_n "(cached) " >&6
14972 else
14973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14974 /* end confdefs.h. */
14975 int i;
14976 _ACEOF
14977 if ac_fn_c_try_compile "$LINENO"; then :
14978 xorg_cv_cc_flag_unused_command_line_argument=yes
14979 else
14980 xorg_cv_cc_flag_unused_command_line_argument=no
14981 fi
14982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14983 fi
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14985 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14986 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14987 CFLAGS="$xorg_testset_save_CFLAGS"
14988 fi
14989
14990 found="no"
14991
14992 if test $found = "no" ; then
14993 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14994 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14995 fi
14996
14997 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14999 fi
15000
15001 CFLAGS="$CFLAGS -Werror=array-bounds"
15002
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15004 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15005 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
15006 if eval \${$cacheid+:} false; then :
15007 $as_echo_n "(cached) " >&6
15008 else
15009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15010 /* end confdefs.h. */
15011 int i;
15012 int
15013 main ()
15014 {
15015
15016 ;
15017 return 0;
15018 }
15019 _ACEOF
15020 if ac_fn_c_try_link "$LINENO"; then :
15021 eval $cacheid=yes
15022 else
15023 eval $cacheid=no
15024 fi
15025 rm -f core conftest.err conftest.$ac_objext \
15026 conftest$ac_exeext conftest.$ac_ext
15027 fi
15028
15029
15030 CFLAGS="$xorg_testset_save_CFLAGS"
15031
15032 eval supported=\$$cacheid
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15034 $as_echo "$supported" >&6; }
15035 if test "$supported" = "yes" ; then
15036 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15037 found="yes"
15038 fi
15039 fi
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055 xorg_testset_save_CFLAGS="$CFLAGS"
15056
15057 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15058 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15060 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15061 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15062 $as_echo_n "(cached) " >&6
15063 else
15064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15065 /* end confdefs.h. */
15066 int i;
15067 _ACEOF
15068 if ac_fn_c_try_compile "$LINENO"; then :
15069 xorg_cv_cc_flag_unknown_warning_option=yes
15070 else
15071 xorg_cv_cc_flag_unknown_warning_option=no
15072 fi
15073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15074 fi
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15076 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15077 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15078 CFLAGS="$xorg_testset_save_CFLAGS"
15079 fi
15080
15081 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15084 fi
15085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15087 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15088 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15089 $as_echo_n "(cached) " >&6
15090 else
15091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15092 /* end confdefs.h. */
15093 int i;
15094 _ACEOF
15095 if ac_fn_c_try_compile "$LINENO"; then :
15096 xorg_cv_cc_flag_unused_command_line_argument=yes
15097 else
15098 xorg_cv_cc_flag_unused_command_line_argument=no
15099 fi
15100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15101 fi
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15103 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15104 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15105 CFLAGS="$xorg_testset_save_CFLAGS"
15106 fi
15107
15108 found="no"
15109
15110 if test $found = "no" ; then
15111 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15113 fi
15114
15115 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15117 fi
15118
15119 CFLAGS="$CFLAGS -Werror=write-strings"
15120
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15122 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15123 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
15124 if eval \${$cacheid+:} false; then :
15125 $as_echo_n "(cached) " >&6
15126 else
15127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15128 /* end confdefs.h. */
15129 int i;
15130 int
15131 main ()
15132 {
15133
15134 ;
15135 return 0;
15136 }
15137 _ACEOF
15138 if ac_fn_c_try_link "$LINENO"; then :
15139 eval $cacheid=yes
15140 else
15141 eval $cacheid=no
15142 fi
15143 rm -f core conftest.err conftest.$ac_objext \
15144 conftest$ac_exeext conftest.$ac_ext
15145 fi
15146
15147
15148 CFLAGS="$xorg_testset_save_CFLAGS"
15149
15150 eval supported=\$$cacheid
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15152 $as_echo "$supported" >&6; }
15153 if test "$supported" = "yes" ; then
15154 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15155 found="yes"
15156 fi
15157 fi
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173 xorg_testset_save_CFLAGS="$CFLAGS"
15174
15175 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15178 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15179 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15180 $as_echo_n "(cached) " >&6
15181 else
15182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15183 /* end confdefs.h. */
15184 int i;
15185 _ACEOF
15186 if ac_fn_c_try_compile "$LINENO"; then :
15187 xorg_cv_cc_flag_unknown_warning_option=yes
15188 else
15189 xorg_cv_cc_flag_unknown_warning_option=no
15190 fi
15191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15192 fi
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15194 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15195 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15196 CFLAGS="$xorg_testset_save_CFLAGS"
15197 fi
15198
15199 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15201 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15202 fi
15203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15205 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15206 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15207 $as_echo_n "(cached) " >&6
15208 else
15209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15210 /* end confdefs.h. */
15211 int i;
15212 _ACEOF
15213 if ac_fn_c_try_compile "$LINENO"; then :
15214 xorg_cv_cc_flag_unused_command_line_argument=yes
15215 else
15216 xorg_cv_cc_flag_unused_command_line_argument=no
15217 fi
15218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15219 fi
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15221 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15222 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15223 CFLAGS="$xorg_testset_save_CFLAGS"
15224 fi
15225
15226 found="no"
15227
15228 if test $found = "no" ; then
15229 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15230 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15231 fi
15232
15233 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15235 fi
15236
15237 CFLAGS="$CFLAGS -Werror=address"
15238
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15240 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15241 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
15242 if eval \${$cacheid+:} false; then :
15243 $as_echo_n "(cached) " >&6
15244 else
15245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15246 /* end confdefs.h. */
15247 int i;
15248 int
15249 main ()
15250 {
15251
15252 ;
15253 return 0;
15254 }
15255 _ACEOF
15256 if ac_fn_c_try_link "$LINENO"; then :
15257 eval $cacheid=yes
15258 else
15259 eval $cacheid=no
15260 fi
15261 rm -f core conftest.err conftest.$ac_objext \
15262 conftest$ac_exeext conftest.$ac_ext
15263 fi
15264
15265
15266 CFLAGS="$xorg_testset_save_CFLAGS"
15267
15268 eval supported=\$$cacheid
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15270 $as_echo "$supported" >&6; }
15271 if test "$supported" = "yes" ; then
15272 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15273 found="yes"
15274 fi
15275 fi
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291 xorg_testset_save_CFLAGS="$CFLAGS"
15292
15293 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15296 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15297 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15298 $as_echo_n "(cached) " >&6
15299 else
15300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15301 /* end confdefs.h. */
15302 int i;
15303 _ACEOF
15304 if ac_fn_c_try_compile "$LINENO"; then :
15305 xorg_cv_cc_flag_unknown_warning_option=yes
15306 else
15307 xorg_cv_cc_flag_unknown_warning_option=no
15308 fi
15309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15310 fi
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15312 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15313 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15314 CFLAGS="$xorg_testset_save_CFLAGS"
15315 fi
15316
15317 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15320 fi
15321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15323 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15324 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15325 $as_echo_n "(cached) " >&6
15326 else
15327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15328 /* end confdefs.h. */
15329 int i;
15330 _ACEOF
15331 if ac_fn_c_try_compile "$LINENO"; then :
15332 xorg_cv_cc_flag_unused_command_line_argument=yes
15333 else
15334 xorg_cv_cc_flag_unused_command_line_argument=no
15335 fi
15336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15337 fi
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15339 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15340 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15341 CFLAGS="$xorg_testset_save_CFLAGS"
15342 fi
15343
15344 found="no"
15345
15346 if test $found = "no" ; then
15347 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15348 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15349 fi
15350
15351 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15353 fi
15354
15355 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15356
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15358 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15359 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
15360 if eval \${$cacheid+:} false; then :
15361 $as_echo_n "(cached) " >&6
15362 else
15363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15364 /* end confdefs.h. */
15365 int i;
15366 int
15367 main ()
15368 {
15369
15370 ;
15371 return 0;
15372 }
15373 _ACEOF
15374 if ac_fn_c_try_link "$LINENO"; then :
15375 eval $cacheid=yes
15376 else
15377 eval $cacheid=no
15378 fi
15379 rm -f core conftest.err conftest.$ac_objext \
15380 conftest$ac_exeext conftest.$ac_ext
15381 fi
15382
15383
15384 CFLAGS="$xorg_testset_save_CFLAGS"
15385
15386 eval supported=\$$cacheid
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15388 $as_echo "$supported" >&6; }
15389 if test "$supported" = "yes" ; then
15390 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15391 found="yes"
15392 fi
15393 fi
15394
15395 if test $found = "no" ; then
15396 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15398 fi
15399
15400 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15402 fi
15403
15404 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15405
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15407 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15408 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
15409 if eval \${$cacheid+:} false; then :
15410 $as_echo_n "(cached) " >&6
15411 else
15412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15413 /* end confdefs.h. */
15414 int i;
15415 int
15416 main ()
15417 {
15418
15419 ;
15420 return 0;
15421 }
15422 _ACEOF
15423 if ac_fn_c_try_link "$LINENO"; then :
15424 eval $cacheid=yes
15425 else
15426 eval $cacheid=no
15427 fi
15428 rm -f core conftest.err conftest.$ac_objext \
15429 conftest$ac_exeext conftest.$ac_ext
15430 fi
15431
15432
15433 CFLAGS="$xorg_testset_save_CFLAGS"
15434
15435 eval supported=\$$cacheid
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15437 $as_echo "$supported" >&6; }
15438 if test "$supported" = "yes" ; then
15439 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15440 found="yes"
15441 fi
15442 fi
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458 xorg_testset_save_CFLAGS="$CFLAGS"
15459
15460 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15463 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15464 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15465 $as_echo_n "(cached) " >&6
15466 else
15467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15468 /* end confdefs.h. */
15469 int i;
15470 _ACEOF
15471 if ac_fn_c_try_compile "$LINENO"; then :
15472 xorg_cv_cc_flag_unknown_warning_option=yes
15473 else
15474 xorg_cv_cc_flag_unknown_warning_option=no
15475 fi
15476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15477 fi
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15479 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15480 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15481 CFLAGS="$xorg_testset_save_CFLAGS"
15482 fi
15483
15484 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15486 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15487 fi
15488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15490 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15491 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15492 $as_echo_n "(cached) " >&6
15493 else
15494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15495 /* end confdefs.h. */
15496 int i;
15497 _ACEOF
15498 if ac_fn_c_try_compile "$LINENO"; then :
15499 xorg_cv_cc_flag_unused_command_line_argument=yes
15500 else
15501 xorg_cv_cc_flag_unused_command_line_argument=no
15502 fi
15503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15504 fi
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15506 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15507 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15508 CFLAGS="$xorg_testset_save_CFLAGS"
15509 fi
15510
15511 found="no"
15512
15513 if test $found = "no" ; then
15514 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15515 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15516 fi
15517
15518 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15520 fi
15521
15522 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15523
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15525 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15526 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
15527 if eval \${$cacheid+:} false; then :
15528 $as_echo_n "(cached) " >&6
15529 else
15530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15531 /* end confdefs.h. */
15532 int i;
15533 int
15534 main ()
15535 {
15536
15537 ;
15538 return 0;
15539 }
15540 _ACEOF
15541 if ac_fn_c_try_link "$LINENO"; then :
15542 eval $cacheid=yes
15543 else
15544 eval $cacheid=no
15545 fi
15546 rm -f core conftest.err conftest.$ac_objext \
15547 conftest$ac_exeext conftest.$ac_ext
15548 fi
15549
15550
15551 CFLAGS="$xorg_testset_save_CFLAGS"
15552
15553 eval supported=\$$cacheid
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15555 $as_echo "$supported" >&6; }
15556 if test "$supported" = "yes" ; then
15557 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15558 found="yes"
15559 fi
15560 fi
15561
15562 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15563 else
15564 { $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
15565 $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;}
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579 xorg_testset_save_CFLAGS="$CFLAGS"
15580
15581 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15584 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15585 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15586 $as_echo_n "(cached) " >&6
15587 else
15588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15589 /* end confdefs.h. */
15590 int i;
15591 _ACEOF
15592 if ac_fn_c_try_compile "$LINENO"; then :
15593 xorg_cv_cc_flag_unknown_warning_option=yes
15594 else
15595 xorg_cv_cc_flag_unknown_warning_option=no
15596 fi
15597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15598 fi
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15600 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15601 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15602 CFLAGS="$xorg_testset_save_CFLAGS"
15603 fi
15604
15605 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15608 fi
15609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15611 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15612 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15613 $as_echo_n "(cached) " >&6
15614 else
15615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15616 /* end confdefs.h. */
15617 int i;
15618 _ACEOF
15619 if ac_fn_c_try_compile "$LINENO"; then :
15620 xorg_cv_cc_flag_unused_command_line_argument=yes
15621 else
15622 xorg_cv_cc_flag_unused_command_line_argument=no
15623 fi
15624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15625 fi
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15627 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15628 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15629 CFLAGS="$xorg_testset_save_CFLAGS"
15630 fi
15631
15632 found="no"
15633
15634 if test $found = "no" ; then
15635 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15637 fi
15638
15639 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15641 fi
15642
15643 CFLAGS="$CFLAGS -Wimplicit"
15644
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15646 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15647 cacheid=xorg_cv_cc_flag__Wimplicit
15648 if eval \${$cacheid+:} false; then :
15649 $as_echo_n "(cached) " >&6
15650 else
15651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15652 /* end confdefs.h. */
15653 int i;
15654 int
15655 main ()
15656 {
15657
15658 ;
15659 return 0;
15660 }
15661 _ACEOF
15662 if ac_fn_c_try_link "$LINENO"; then :
15663 eval $cacheid=yes
15664 else
15665 eval $cacheid=no
15666 fi
15667 rm -f core conftest.err conftest.$ac_objext \
15668 conftest$ac_exeext conftest.$ac_ext
15669 fi
15670
15671
15672 CFLAGS="$xorg_testset_save_CFLAGS"
15673
15674 eval supported=\$$cacheid
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15676 $as_echo "$supported" >&6; }
15677 if test "$supported" = "yes" ; then
15678 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15679 found="yes"
15680 fi
15681 fi
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697 xorg_testset_save_CFLAGS="$CFLAGS"
15698
15699 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15700 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15702 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15703 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15704 $as_echo_n "(cached) " >&6
15705 else
15706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15707 /* end confdefs.h. */
15708 int i;
15709 _ACEOF
15710 if ac_fn_c_try_compile "$LINENO"; then :
15711 xorg_cv_cc_flag_unknown_warning_option=yes
15712 else
15713 xorg_cv_cc_flag_unknown_warning_option=no
15714 fi
15715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15716 fi
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15718 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15719 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15720 CFLAGS="$xorg_testset_save_CFLAGS"
15721 fi
15722
15723 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15726 fi
15727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15729 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15730 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15731 $as_echo_n "(cached) " >&6
15732 else
15733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15734 /* end confdefs.h. */
15735 int i;
15736 _ACEOF
15737 if ac_fn_c_try_compile "$LINENO"; then :
15738 xorg_cv_cc_flag_unused_command_line_argument=yes
15739 else
15740 xorg_cv_cc_flag_unused_command_line_argument=no
15741 fi
15742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15743 fi
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15745 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15746 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15747 CFLAGS="$xorg_testset_save_CFLAGS"
15748 fi
15749
15750 found="no"
15751
15752 if test $found = "no" ; then
15753 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15754 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15755 fi
15756
15757 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15759 fi
15760
15761 CFLAGS="$CFLAGS -Wnonnull"
15762
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15764 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15765 cacheid=xorg_cv_cc_flag__Wnonnull
15766 if eval \${$cacheid+:} false; then :
15767 $as_echo_n "(cached) " >&6
15768 else
15769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15770 /* end confdefs.h. */
15771 int i;
15772 int
15773 main ()
15774 {
15775
15776 ;
15777 return 0;
15778 }
15779 _ACEOF
15780 if ac_fn_c_try_link "$LINENO"; then :
15781 eval $cacheid=yes
15782 else
15783 eval $cacheid=no
15784 fi
15785 rm -f core conftest.err conftest.$ac_objext \
15786 conftest$ac_exeext conftest.$ac_ext
15787 fi
15788
15789
15790 CFLAGS="$xorg_testset_save_CFLAGS"
15791
15792 eval supported=\$$cacheid
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15794 $as_echo "$supported" >&6; }
15795 if test "$supported" = "yes" ; then
15796 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15797 found="yes"
15798 fi
15799 fi
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815 xorg_testset_save_CFLAGS="$CFLAGS"
15816
15817 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15820 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15821 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15822 $as_echo_n "(cached) " >&6
15823 else
15824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15825 /* end confdefs.h. */
15826 int i;
15827 _ACEOF
15828 if ac_fn_c_try_compile "$LINENO"; then :
15829 xorg_cv_cc_flag_unknown_warning_option=yes
15830 else
15831 xorg_cv_cc_flag_unknown_warning_option=no
15832 fi
15833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15834 fi
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15836 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15837 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15838 CFLAGS="$xorg_testset_save_CFLAGS"
15839 fi
15840
15841 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15844 fi
15845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15847 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15848 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15849 $as_echo_n "(cached) " >&6
15850 else
15851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15852 /* end confdefs.h. */
15853 int i;
15854 _ACEOF
15855 if ac_fn_c_try_compile "$LINENO"; then :
15856 xorg_cv_cc_flag_unused_command_line_argument=yes
15857 else
15858 xorg_cv_cc_flag_unused_command_line_argument=no
15859 fi
15860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15861 fi
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15863 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15864 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15865 CFLAGS="$xorg_testset_save_CFLAGS"
15866 fi
15867
15868 found="no"
15869
15870 if test $found = "no" ; then
15871 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15873 fi
15874
15875 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15877 fi
15878
15879 CFLAGS="$CFLAGS -Winit-self"
15880
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15882 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15883 cacheid=xorg_cv_cc_flag__Winit_self
15884 if eval \${$cacheid+:} false; then :
15885 $as_echo_n "(cached) " >&6
15886 else
15887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15888 /* end confdefs.h. */
15889 int i;
15890 int
15891 main ()
15892 {
15893
15894 ;
15895 return 0;
15896 }
15897 _ACEOF
15898 if ac_fn_c_try_link "$LINENO"; then :
15899 eval $cacheid=yes
15900 else
15901 eval $cacheid=no
15902 fi
15903 rm -f core conftest.err conftest.$ac_objext \
15904 conftest$ac_exeext conftest.$ac_ext
15905 fi
15906
15907
15908 CFLAGS="$xorg_testset_save_CFLAGS"
15909
15910 eval supported=\$$cacheid
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15912 $as_echo "$supported" >&6; }
15913 if test "$supported" = "yes" ; then
15914 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15915 found="yes"
15916 fi
15917 fi
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933 xorg_testset_save_CFLAGS="$CFLAGS"
15934
15935 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15936 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15938 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15939 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15940 $as_echo_n "(cached) " >&6
15941 else
15942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15943 /* end confdefs.h. */
15944 int i;
15945 _ACEOF
15946 if ac_fn_c_try_compile "$LINENO"; then :
15947 xorg_cv_cc_flag_unknown_warning_option=yes
15948 else
15949 xorg_cv_cc_flag_unknown_warning_option=no
15950 fi
15951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15952 fi
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15954 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15955 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15956 CFLAGS="$xorg_testset_save_CFLAGS"
15957 fi
15958
15959 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15962 fi
15963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15965 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15966 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15967 $as_echo_n "(cached) " >&6
15968 else
15969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15970 /* end confdefs.h. */
15971 int i;
15972 _ACEOF
15973 if ac_fn_c_try_compile "$LINENO"; then :
15974 xorg_cv_cc_flag_unused_command_line_argument=yes
15975 else
15976 xorg_cv_cc_flag_unused_command_line_argument=no
15977 fi
15978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15979 fi
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15981 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15982 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15983 CFLAGS="$xorg_testset_save_CFLAGS"
15984 fi
15985
15986 found="no"
15987
15988 if test $found = "no" ; then
15989 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15990 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15991 fi
15992
15993 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15995 fi
15996
15997 CFLAGS="$CFLAGS -Wmain"
15998
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16000 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
16001 cacheid=xorg_cv_cc_flag__Wmain
16002 if eval \${$cacheid+:} false; then :
16003 $as_echo_n "(cached) " >&6
16004 else
16005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16006 /* end confdefs.h. */
16007 int i;
16008 int
16009 main ()
16010 {
16011
16012 ;
16013 return 0;
16014 }
16015 _ACEOF
16016 if ac_fn_c_try_link "$LINENO"; then :
16017 eval $cacheid=yes
16018 else
16019 eval $cacheid=no
16020 fi
16021 rm -f core conftest.err conftest.$ac_objext \
16022 conftest$ac_exeext conftest.$ac_ext
16023 fi
16024
16025
16026 CFLAGS="$xorg_testset_save_CFLAGS"
16027
16028 eval supported=\$$cacheid
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16030 $as_echo "$supported" >&6; }
16031 if test "$supported" = "yes" ; then
16032 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16033 found="yes"
16034 fi
16035 fi
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051 xorg_testset_save_CFLAGS="$CFLAGS"
16052
16053 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16054 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16056 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16057 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16058 $as_echo_n "(cached) " >&6
16059 else
16060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16061 /* end confdefs.h. */
16062 int i;
16063 _ACEOF
16064 if ac_fn_c_try_compile "$LINENO"; then :
16065 xorg_cv_cc_flag_unknown_warning_option=yes
16066 else
16067 xorg_cv_cc_flag_unknown_warning_option=no
16068 fi
16069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16070 fi
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16072 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16073 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16074 CFLAGS="$xorg_testset_save_CFLAGS"
16075 fi
16076
16077 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16080 fi
16081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16083 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16084 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16085 $as_echo_n "(cached) " >&6
16086 else
16087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16088 /* end confdefs.h. */
16089 int i;
16090 _ACEOF
16091 if ac_fn_c_try_compile "$LINENO"; then :
16092 xorg_cv_cc_flag_unused_command_line_argument=yes
16093 else
16094 xorg_cv_cc_flag_unused_command_line_argument=no
16095 fi
16096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16097 fi
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16099 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16100 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16101 CFLAGS="$xorg_testset_save_CFLAGS"
16102 fi
16103
16104 found="no"
16105
16106 if test $found = "no" ; then
16107 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16109 fi
16110
16111 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16113 fi
16114
16115 CFLAGS="$CFLAGS -Wmissing-braces"
16116
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16118 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16119 cacheid=xorg_cv_cc_flag__Wmissing_braces
16120 if eval \${$cacheid+:} false; then :
16121 $as_echo_n "(cached) " >&6
16122 else
16123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16124 /* end confdefs.h. */
16125 int i;
16126 int
16127 main ()
16128 {
16129
16130 ;
16131 return 0;
16132 }
16133 _ACEOF
16134 if ac_fn_c_try_link "$LINENO"; then :
16135 eval $cacheid=yes
16136 else
16137 eval $cacheid=no
16138 fi
16139 rm -f core conftest.err conftest.$ac_objext \
16140 conftest$ac_exeext conftest.$ac_ext
16141 fi
16142
16143
16144 CFLAGS="$xorg_testset_save_CFLAGS"
16145
16146 eval supported=\$$cacheid
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16148 $as_echo "$supported" >&6; }
16149 if test "$supported" = "yes" ; then
16150 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16151 found="yes"
16152 fi
16153 fi
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169 xorg_testset_save_CFLAGS="$CFLAGS"
16170
16171 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16172 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16174 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16175 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16176 $as_echo_n "(cached) " >&6
16177 else
16178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16179 /* end confdefs.h. */
16180 int i;
16181 _ACEOF
16182 if ac_fn_c_try_compile "$LINENO"; then :
16183 xorg_cv_cc_flag_unknown_warning_option=yes
16184 else
16185 xorg_cv_cc_flag_unknown_warning_option=no
16186 fi
16187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16188 fi
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16190 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16191 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16192 CFLAGS="$xorg_testset_save_CFLAGS"
16193 fi
16194
16195 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16198 fi
16199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16201 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16202 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16203 $as_echo_n "(cached) " >&6
16204 else
16205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16206 /* end confdefs.h. */
16207 int i;
16208 _ACEOF
16209 if ac_fn_c_try_compile "$LINENO"; then :
16210 xorg_cv_cc_flag_unused_command_line_argument=yes
16211 else
16212 xorg_cv_cc_flag_unused_command_line_argument=no
16213 fi
16214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16215 fi
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16217 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16218 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16219 CFLAGS="$xorg_testset_save_CFLAGS"
16220 fi
16221
16222 found="no"
16223
16224 if test $found = "no" ; then
16225 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16227 fi
16228
16229 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16231 fi
16232
16233 CFLAGS="$CFLAGS -Wsequence-point"
16234
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16236 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16237 cacheid=xorg_cv_cc_flag__Wsequence_point
16238 if eval \${$cacheid+:} false; then :
16239 $as_echo_n "(cached) " >&6
16240 else
16241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16242 /* end confdefs.h. */
16243 int i;
16244 int
16245 main ()
16246 {
16247
16248 ;
16249 return 0;
16250 }
16251 _ACEOF
16252 if ac_fn_c_try_link "$LINENO"; then :
16253 eval $cacheid=yes
16254 else
16255 eval $cacheid=no
16256 fi
16257 rm -f core conftest.err conftest.$ac_objext \
16258 conftest$ac_exeext conftest.$ac_ext
16259 fi
16260
16261
16262 CFLAGS="$xorg_testset_save_CFLAGS"
16263
16264 eval supported=\$$cacheid
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16266 $as_echo "$supported" >&6; }
16267 if test "$supported" = "yes" ; then
16268 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16269 found="yes"
16270 fi
16271 fi
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287 xorg_testset_save_CFLAGS="$CFLAGS"
16288
16289 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16290 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16292 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16293 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16294 $as_echo_n "(cached) " >&6
16295 else
16296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16297 /* end confdefs.h. */
16298 int i;
16299 _ACEOF
16300 if ac_fn_c_try_compile "$LINENO"; then :
16301 xorg_cv_cc_flag_unknown_warning_option=yes
16302 else
16303 xorg_cv_cc_flag_unknown_warning_option=no
16304 fi
16305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16306 fi
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16308 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16309 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16310 CFLAGS="$xorg_testset_save_CFLAGS"
16311 fi
16312
16313 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16315 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16316 fi
16317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16319 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16320 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16321 $as_echo_n "(cached) " >&6
16322 else
16323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16324 /* end confdefs.h. */
16325 int i;
16326 _ACEOF
16327 if ac_fn_c_try_compile "$LINENO"; then :
16328 xorg_cv_cc_flag_unused_command_line_argument=yes
16329 else
16330 xorg_cv_cc_flag_unused_command_line_argument=no
16331 fi
16332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16333 fi
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16335 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16336 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16337 CFLAGS="$xorg_testset_save_CFLAGS"
16338 fi
16339
16340 found="no"
16341
16342 if test $found = "no" ; then
16343 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16344 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16345 fi
16346
16347 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16349 fi
16350
16351 CFLAGS="$CFLAGS -Wreturn-type"
16352
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16354 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16355 cacheid=xorg_cv_cc_flag__Wreturn_type
16356 if eval \${$cacheid+:} false; then :
16357 $as_echo_n "(cached) " >&6
16358 else
16359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16360 /* end confdefs.h. */
16361 int i;
16362 int
16363 main ()
16364 {
16365
16366 ;
16367 return 0;
16368 }
16369 _ACEOF
16370 if ac_fn_c_try_link "$LINENO"; then :
16371 eval $cacheid=yes
16372 else
16373 eval $cacheid=no
16374 fi
16375 rm -f core conftest.err conftest.$ac_objext \
16376 conftest$ac_exeext conftest.$ac_ext
16377 fi
16378
16379
16380 CFLAGS="$xorg_testset_save_CFLAGS"
16381
16382 eval supported=\$$cacheid
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16384 $as_echo "$supported" >&6; }
16385 if test "$supported" = "yes" ; then
16386 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16387 found="yes"
16388 fi
16389 fi
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405 xorg_testset_save_CFLAGS="$CFLAGS"
16406
16407 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16408 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16410 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16411 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16412 $as_echo_n "(cached) " >&6
16413 else
16414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16415 /* end confdefs.h. */
16416 int i;
16417 _ACEOF
16418 if ac_fn_c_try_compile "$LINENO"; then :
16419 xorg_cv_cc_flag_unknown_warning_option=yes
16420 else
16421 xorg_cv_cc_flag_unknown_warning_option=no
16422 fi
16423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16424 fi
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16426 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16427 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16428 CFLAGS="$xorg_testset_save_CFLAGS"
16429 fi
16430
16431 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16434 fi
16435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16437 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16438 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16439 $as_echo_n "(cached) " >&6
16440 else
16441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16442 /* end confdefs.h. */
16443 int i;
16444 _ACEOF
16445 if ac_fn_c_try_compile "$LINENO"; then :
16446 xorg_cv_cc_flag_unused_command_line_argument=yes
16447 else
16448 xorg_cv_cc_flag_unused_command_line_argument=no
16449 fi
16450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16451 fi
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16453 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16454 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16455 CFLAGS="$xorg_testset_save_CFLAGS"
16456 fi
16457
16458 found="no"
16459
16460 if test $found = "no" ; then
16461 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16463 fi
16464
16465 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16467 fi
16468
16469 CFLAGS="$CFLAGS -Wtrigraphs"
16470
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16472 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16473 cacheid=xorg_cv_cc_flag__Wtrigraphs
16474 if eval \${$cacheid+:} false; then :
16475 $as_echo_n "(cached) " >&6
16476 else
16477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16478 /* end confdefs.h. */
16479 int i;
16480 int
16481 main ()
16482 {
16483
16484 ;
16485 return 0;
16486 }
16487 _ACEOF
16488 if ac_fn_c_try_link "$LINENO"; then :
16489 eval $cacheid=yes
16490 else
16491 eval $cacheid=no
16492 fi
16493 rm -f core conftest.err conftest.$ac_objext \
16494 conftest$ac_exeext conftest.$ac_ext
16495 fi
16496
16497
16498 CFLAGS="$xorg_testset_save_CFLAGS"
16499
16500 eval supported=\$$cacheid
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16502 $as_echo "$supported" >&6; }
16503 if test "$supported" = "yes" ; then
16504 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16505 found="yes"
16506 fi
16507 fi
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523 xorg_testset_save_CFLAGS="$CFLAGS"
16524
16525 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16526 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16528 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16529 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16530 $as_echo_n "(cached) " >&6
16531 else
16532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16533 /* end confdefs.h. */
16534 int i;
16535 _ACEOF
16536 if ac_fn_c_try_compile "$LINENO"; then :
16537 xorg_cv_cc_flag_unknown_warning_option=yes
16538 else
16539 xorg_cv_cc_flag_unknown_warning_option=no
16540 fi
16541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16542 fi
16543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16544 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16545 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16546 CFLAGS="$xorg_testset_save_CFLAGS"
16547 fi
16548
16549 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16552 fi
16553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16555 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16556 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16557 $as_echo_n "(cached) " >&6
16558 else
16559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16560 /* end confdefs.h. */
16561 int i;
16562 _ACEOF
16563 if ac_fn_c_try_compile "$LINENO"; then :
16564 xorg_cv_cc_flag_unused_command_line_argument=yes
16565 else
16566 xorg_cv_cc_flag_unused_command_line_argument=no
16567 fi
16568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16569 fi
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16571 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16572 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16573 CFLAGS="$xorg_testset_save_CFLAGS"
16574 fi
16575
16576 found="no"
16577
16578 if test $found = "no" ; then
16579 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16580 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16581 fi
16582
16583 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16585 fi
16586
16587 CFLAGS="$CFLAGS -Warray-bounds"
16588
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16590 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16591 cacheid=xorg_cv_cc_flag__Warray_bounds
16592 if eval \${$cacheid+:} false; then :
16593 $as_echo_n "(cached) " >&6
16594 else
16595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16596 /* end confdefs.h. */
16597 int i;
16598 int
16599 main ()
16600 {
16601
16602 ;
16603 return 0;
16604 }
16605 _ACEOF
16606 if ac_fn_c_try_link "$LINENO"; then :
16607 eval $cacheid=yes
16608 else
16609 eval $cacheid=no
16610 fi
16611 rm -f core conftest.err conftest.$ac_objext \
16612 conftest$ac_exeext conftest.$ac_ext
16613 fi
16614
16615
16616 CFLAGS="$xorg_testset_save_CFLAGS"
16617
16618 eval supported=\$$cacheid
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16620 $as_echo "$supported" >&6; }
16621 if test "$supported" = "yes" ; then
16622 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16623 found="yes"
16624 fi
16625 fi
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641 xorg_testset_save_CFLAGS="$CFLAGS"
16642
16643 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16644 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16646 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16647 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16648 $as_echo_n "(cached) " >&6
16649 else
16650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16651 /* end confdefs.h. */
16652 int i;
16653 _ACEOF
16654 if ac_fn_c_try_compile "$LINENO"; then :
16655 xorg_cv_cc_flag_unknown_warning_option=yes
16656 else
16657 xorg_cv_cc_flag_unknown_warning_option=no
16658 fi
16659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16660 fi
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16662 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16663 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16664 CFLAGS="$xorg_testset_save_CFLAGS"
16665 fi
16666
16667 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16669 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16670 fi
16671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16673 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16674 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16675 $as_echo_n "(cached) " >&6
16676 else
16677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16678 /* end confdefs.h. */
16679 int i;
16680 _ACEOF
16681 if ac_fn_c_try_compile "$LINENO"; then :
16682 xorg_cv_cc_flag_unused_command_line_argument=yes
16683 else
16684 xorg_cv_cc_flag_unused_command_line_argument=no
16685 fi
16686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16687 fi
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16689 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16690 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16691 CFLAGS="$xorg_testset_save_CFLAGS"
16692 fi
16693
16694 found="no"
16695
16696 if test $found = "no" ; then
16697 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16699 fi
16700
16701 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16703 fi
16704
16705 CFLAGS="$CFLAGS -Wwrite-strings"
16706
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16708 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16709 cacheid=xorg_cv_cc_flag__Wwrite_strings
16710 if eval \${$cacheid+:} false; then :
16711 $as_echo_n "(cached) " >&6
16712 else
16713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16714 /* end confdefs.h. */
16715 int i;
16716 int
16717 main ()
16718 {
16719
16720 ;
16721 return 0;
16722 }
16723 _ACEOF
16724 if ac_fn_c_try_link "$LINENO"; then :
16725 eval $cacheid=yes
16726 else
16727 eval $cacheid=no
16728 fi
16729 rm -f core conftest.err conftest.$ac_objext \
16730 conftest$ac_exeext conftest.$ac_ext
16731 fi
16732
16733
16734 CFLAGS="$xorg_testset_save_CFLAGS"
16735
16736 eval supported=\$$cacheid
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16738 $as_echo "$supported" >&6; }
16739 if test "$supported" = "yes" ; then
16740 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16741 found="yes"
16742 fi
16743 fi
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759 xorg_testset_save_CFLAGS="$CFLAGS"
16760
16761 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16762 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16764 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16765 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16766 $as_echo_n "(cached) " >&6
16767 else
16768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16769 /* end confdefs.h. */
16770 int i;
16771 _ACEOF
16772 if ac_fn_c_try_compile "$LINENO"; then :
16773 xorg_cv_cc_flag_unknown_warning_option=yes
16774 else
16775 xorg_cv_cc_flag_unknown_warning_option=no
16776 fi
16777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16778 fi
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16780 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16781 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16782 CFLAGS="$xorg_testset_save_CFLAGS"
16783 fi
16784
16785 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16787 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16788 fi
16789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16791 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16792 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16793 $as_echo_n "(cached) " >&6
16794 else
16795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16796 /* end confdefs.h. */
16797 int i;
16798 _ACEOF
16799 if ac_fn_c_try_compile "$LINENO"; then :
16800 xorg_cv_cc_flag_unused_command_line_argument=yes
16801 else
16802 xorg_cv_cc_flag_unused_command_line_argument=no
16803 fi
16804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16805 fi
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16807 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16808 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16809 CFLAGS="$xorg_testset_save_CFLAGS"
16810 fi
16811
16812 found="no"
16813
16814 if test $found = "no" ; then
16815 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16816 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16817 fi
16818
16819 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16821 fi
16822
16823 CFLAGS="$CFLAGS -Waddress"
16824
16825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16826 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
16827 cacheid=xorg_cv_cc_flag__Waddress
16828 if eval \${$cacheid+:} false; then :
16829 $as_echo_n "(cached) " >&6
16830 else
16831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16832 /* end confdefs.h. */
16833 int i;
16834 int
16835 main ()
16836 {
16837
16838 ;
16839 return 0;
16840 }
16841 _ACEOF
16842 if ac_fn_c_try_link "$LINENO"; then :
16843 eval $cacheid=yes
16844 else
16845 eval $cacheid=no
16846 fi
16847 rm -f core conftest.err conftest.$ac_objext \
16848 conftest$ac_exeext conftest.$ac_ext
16849 fi
16850
16851
16852 CFLAGS="$xorg_testset_save_CFLAGS"
16853
16854 eval supported=\$$cacheid
16855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16856 $as_echo "$supported" >&6; }
16857 if test "$supported" = "yes" ; then
16858 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16859 found="yes"
16860 fi
16861 fi
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877 xorg_testset_save_CFLAGS="$CFLAGS"
16878
16879 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16880 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16882 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16883 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16884 $as_echo_n "(cached) " >&6
16885 else
16886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16887 /* end confdefs.h. */
16888 int i;
16889 _ACEOF
16890 if ac_fn_c_try_compile "$LINENO"; then :
16891 xorg_cv_cc_flag_unknown_warning_option=yes
16892 else
16893 xorg_cv_cc_flag_unknown_warning_option=no
16894 fi
16895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16896 fi
16897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16898 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16899 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16900 CFLAGS="$xorg_testset_save_CFLAGS"
16901 fi
16902
16903 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16905 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16906 fi
16907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16909 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16910 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16911 $as_echo_n "(cached) " >&6
16912 else
16913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16914 /* end confdefs.h. */
16915 int i;
16916 _ACEOF
16917 if ac_fn_c_try_compile "$LINENO"; then :
16918 xorg_cv_cc_flag_unused_command_line_argument=yes
16919 else
16920 xorg_cv_cc_flag_unused_command_line_argument=no
16921 fi
16922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16923 fi
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16925 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16926 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16927 CFLAGS="$xorg_testset_save_CFLAGS"
16928 fi
16929
16930 found="no"
16931
16932 if test $found = "no" ; then
16933 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16935 fi
16936
16937 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16939 fi
16940
16941 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
16942
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
16944 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
16945 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
16946 if eval \${$cacheid+:} false; then :
16947 $as_echo_n "(cached) " >&6
16948 else
16949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16950 /* end confdefs.h. */
16951 int i;
16952 int
16953 main ()
16954 {
16955
16956 ;
16957 return 0;
16958 }
16959 _ACEOF
16960 if ac_fn_c_try_link "$LINENO"; then :
16961 eval $cacheid=yes
16962 else
16963 eval $cacheid=no
16964 fi
16965 rm -f core conftest.err conftest.$ac_objext \
16966 conftest$ac_exeext conftest.$ac_ext
16967 fi
16968
16969
16970 CFLAGS="$xorg_testset_save_CFLAGS"
16971
16972 eval supported=\$$cacheid
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16974 $as_echo "$supported" >&6; }
16975 if test "$supported" = "yes" ; then
16976 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
16977 found="yes"
16978 fi
16979 fi
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995 xorg_testset_save_CFLAGS="$CFLAGS"
16996
16997 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16998 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17000 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17001 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17002 $as_echo_n "(cached) " >&6
17003 else
17004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17005 /* end confdefs.h. */
17006 int i;
17007 _ACEOF
17008 if ac_fn_c_try_compile "$LINENO"; then :
17009 xorg_cv_cc_flag_unknown_warning_option=yes
17010 else
17011 xorg_cv_cc_flag_unknown_warning_option=no
17012 fi
17013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17014 fi
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17016 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17017 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17018 CFLAGS="$xorg_testset_save_CFLAGS"
17019 fi
17020
17021 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17024 fi
17025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17027 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17028 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17029 $as_echo_n "(cached) " >&6
17030 else
17031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17032 /* end confdefs.h. */
17033 int i;
17034 _ACEOF
17035 if ac_fn_c_try_compile "$LINENO"; then :
17036 xorg_cv_cc_flag_unused_command_line_argument=yes
17037 else
17038 xorg_cv_cc_flag_unused_command_line_argument=no
17039 fi
17040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17041 fi
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17043 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17044 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17045 CFLAGS="$xorg_testset_save_CFLAGS"
17046 fi
17047
17048 found="no"
17049
17050 if test $found = "no" ; then
17051 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17052 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17053 fi
17054
17055 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17056 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17057 fi
17058
17059 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17060
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17062 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17063 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17064 if eval \${$cacheid+:} false; then :
17065 $as_echo_n "(cached) " >&6
17066 else
17067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17068 /* end confdefs.h. */
17069 int i;
17070 int
17071 main ()
17072 {
17073
17074 ;
17075 return 0;
17076 }
17077 _ACEOF
17078 if ac_fn_c_try_link "$LINENO"; then :
17079 eval $cacheid=yes
17080 else
17081 eval $cacheid=no
17082 fi
17083 rm -f core conftest.err conftest.$ac_objext \
17084 conftest$ac_exeext conftest.$ac_ext
17085 fi
17086
17087
17088 CFLAGS="$xorg_testset_save_CFLAGS"
17089
17090 eval supported=\$$cacheid
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17092 $as_echo "$supported" >&6; }
17093 if test "$supported" = "yes" ; then
17094 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17095 found="yes"
17096 fi
17097 fi
17098
17099
17100 fi
17101
17102
17103
17104
17105
17106
17107
17108 CWARNFLAGS="$BASE_CFLAGS"
17109 if test "x$GCC" = xyes ; then
17110 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17111 fi
17112
17113
17114
17115
17116
17117
17118
17119
17120 # Check whether --enable-strict-compilation was given.
17121 if test "${enable_strict_compilation+set}" = set; then :
17122 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17123 else
17124 STRICT_COMPILE=no
17125 fi
17126
17127
17128
17129
17130
17131
17132 STRICT_CFLAGS=""
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146 xorg_testset_save_CFLAGS="$CFLAGS"
17147
17148 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17151 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17152 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17153 $as_echo_n "(cached) " >&6
17154 else
17155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17156 /* end confdefs.h. */
17157 int i;
17158 _ACEOF
17159 if ac_fn_c_try_compile "$LINENO"; then :
17160 xorg_cv_cc_flag_unknown_warning_option=yes
17161 else
17162 xorg_cv_cc_flag_unknown_warning_option=no
17163 fi
17164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17165 fi
17166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17167 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17168 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17169 CFLAGS="$xorg_testset_save_CFLAGS"
17170 fi
17171
17172 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17175 fi
17176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17178 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17179 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17180 $as_echo_n "(cached) " >&6
17181 else
17182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17183 /* end confdefs.h. */
17184 int i;
17185 _ACEOF
17186 if ac_fn_c_try_compile "$LINENO"; then :
17187 xorg_cv_cc_flag_unused_command_line_argument=yes
17188 else
17189 xorg_cv_cc_flag_unused_command_line_argument=no
17190 fi
17191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17192 fi
17193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17194 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17195 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17196 CFLAGS="$xorg_testset_save_CFLAGS"
17197 fi
17198
17199 found="no"
17200
17201 if test $found = "no" ; then
17202 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17204 fi
17205
17206 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17208 fi
17209
17210 CFLAGS="$CFLAGS -pedantic"
17211
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17213 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17214 cacheid=xorg_cv_cc_flag__pedantic
17215 if eval \${$cacheid+:} false; then :
17216 $as_echo_n "(cached) " >&6
17217 else
17218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17219 /* end confdefs.h. */
17220 int i;
17221 int
17222 main ()
17223 {
17224
17225 ;
17226 return 0;
17227 }
17228 _ACEOF
17229 if ac_fn_c_try_link "$LINENO"; then :
17230 eval $cacheid=yes
17231 else
17232 eval $cacheid=no
17233 fi
17234 rm -f core conftest.err conftest.$ac_objext \
17235 conftest$ac_exeext conftest.$ac_ext
17236 fi
17237
17238
17239 CFLAGS="$xorg_testset_save_CFLAGS"
17240
17241 eval supported=\$$cacheid
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17243 $as_echo "$supported" >&6; }
17244 if test "$supported" = "yes" ; then
17245 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17246 found="yes"
17247 fi
17248 fi
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264 xorg_testset_save_CFLAGS="$CFLAGS"
17265
17266 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17267 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17269 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17270 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17271 $as_echo_n "(cached) " >&6
17272 else
17273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17274 /* end confdefs.h. */
17275 int i;
17276 _ACEOF
17277 if ac_fn_c_try_compile "$LINENO"; then :
17278 xorg_cv_cc_flag_unknown_warning_option=yes
17279 else
17280 xorg_cv_cc_flag_unknown_warning_option=no
17281 fi
17282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17283 fi
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17285 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17286 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17287 CFLAGS="$xorg_testset_save_CFLAGS"
17288 fi
17289
17290 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17292 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17293 fi
17294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17296 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17297 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17298 $as_echo_n "(cached) " >&6
17299 else
17300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17301 /* end confdefs.h. */
17302 int i;
17303 _ACEOF
17304 if ac_fn_c_try_compile "$LINENO"; then :
17305 xorg_cv_cc_flag_unused_command_line_argument=yes
17306 else
17307 xorg_cv_cc_flag_unused_command_line_argument=no
17308 fi
17309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17310 fi
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17312 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17313 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17314 CFLAGS="$xorg_testset_save_CFLAGS"
17315 fi
17316
17317 found="no"
17318
17319 if test $found = "no" ; then
17320 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17322 fi
17323
17324 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17326 fi
17327
17328 CFLAGS="$CFLAGS -Werror"
17329
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17331 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17332 cacheid=xorg_cv_cc_flag__Werror
17333 if eval \${$cacheid+:} false; then :
17334 $as_echo_n "(cached) " >&6
17335 else
17336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17337 /* end confdefs.h. */
17338 int i;
17339 int
17340 main ()
17341 {
17342
17343 ;
17344 return 0;
17345 }
17346 _ACEOF
17347 if ac_fn_c_try_link "$LINENO"; then :
17348 eval $cacheid=yes
17349 else
17350 eval $cacheid=no
17351 fi
17352 rm -f core conftest.err conftest.$ac_objext \
17353 conftest$ac_exeext conftest.$ac_ext
17354 fi
17355
17356
17357 CFLAGS="$xorg_testset_save_CFLAGS"
17358
17359 eval supported=\$$cacheid
17360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17361 $as_echo "$supported" >&6; }
17362 if test "$supported" = "yes" ; then
17363 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17364 found="yes"
17365 fi
17366 fi
17367
17368 if test $found = "no" ; then
17369 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17370 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17371 fi
17372
17373 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17375 fi
17376
17377 CFLAGS="$CFLAGS -errwarn"
17378
17379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17380 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17381 cacheid=xorg_cv_cc_flag__errwarn
17382 if eval \${$cacheid+:} false; then :
17383 $as_echo_n "(cached) " >&6
17384 else
17385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17386 /* end confdefs.h. */
17387 int i;
17388 int
17389 main ()
17390 {
17391
17392 ;
17393 return 0;
17394 }
17395 _ACEOF
17396 if ac_fn_c_try_link "$LINENO"; then :
17397 eval $cacheid=yes
17398 else
17399 eval $cacheid=no
17400 fi
17401 rm -f core conftest.err conftest.$ac_objext \
17402 conftest$ac_exeext conftest.$ac_ext
17403 fi
17404
17405
17406 CFLAGS="$xorg_testset_save_CFLAGS"
17407
17408 eval supported=\$$cacheid
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17410 $as_echo "$supported" >&6; }
17411 if test "$supported" = "yes" ; then
17412 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17413 found="yes"
17414 fi
17415 fi
17416
17417
17418
17419 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17420 # activate it with -Werror, so we add it here explicitly.
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434 xorg_testset_save_CFLAGS="$CFLAGS"
17435
17436 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17437 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17439 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17440 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17441 $as_echo_n "(cached) " >&6
17442 else
17443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17444 /* end confdefs.h. */
17445 int i;
17446 _ACEOF
17447 if ac_fn_c_try_compile "$LINENO"; then :
17448 xorg_cv_cc_flag_unknown_warning_option=yes
17449 else
17450 xorg_cv_cc_flag_unknown_warning_option=no
17451 fi
17452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17453 fi
17454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17455 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17456 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17457 CFLAGS="$xorg_testset_save_CFLAGS"
17458 fi
17459
17460 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17463 fi
17464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17466 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17467 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17468 $as_echo_n "(cached) " >&6
17469 else
17470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17471 /* end confdefs.h. */
17472 int i;
17473 _ACEOF
17474 if ac_fn_c_try_compile "$LINENO"; then :
17475 xorg_cv_cc_flag_unused_command_line_argument=yes
17476 else
17477 xorg_cv_cc_flag_unused_command_line_argument=no
17478 fi
17479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17480 fi
17481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17482 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17483 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17484 CFLAGS="$xorg_testset_save_CFLAGS"
17485 fi
17486
17487 found="no"
17488
17489 if test $found = "no" ; then
17490 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17491 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17492 fi
17493
17494 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17496 fi
17497
17498 CFLAGS="$CFLAGS -Werror=attributes"
17499
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17501 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17502 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
17503 if eval \${$cacheid+:} false; then :
17504 $as_echo_n "(cached) " >&6
17505 else
17506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17507 /* end confdefs.h. */
17508 int i;
17509 int
17510 main ()
17511 {
17512
17513 ;
17514 return 0;
17515 }
17516 _ACEOF
17517 if ac_fn_c_try_link "$LINENO"; then :
17518 eval $cacheid=yes
17519 else
17520 eval $cacheid=no
17521 fi
17522 rm -f core conftest.err conftest.$ac_objext \
17523 conftest$ac_exeext conftest.$ac_ext
17524 fi
17525
17526
17527 CFLAGS="$xorg_testset_save_CFLAGS"
17528
17529 eval supported=\$$cacheid
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17531 $as_echo "$supported" >&6; }
17532 if test "$supported" = "yes" ; then
17533 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17534 found="yes"
17535 fi
17536 fi
17537
17538
17539
17540 if test "x$STRICT_COMPILE" = "xyes"; then
17541 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17542 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17543 fi
17544
17545
17546
17547
17548
17549
17550 cat >>confdefs.h <<_ACEOF
17551 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17552 _ACEOF
17553
17554 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17555 if test "x$PVM" = "x"; then
17556 PVM="0"
17557 fi
17558
17559 cat >>confdefs.h <<_ACEOF
17560 #define PACKAGE_VERSION_MINOR $PVM
17561 _ACEOF
17562
17563 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17564 if test "x$PVP" = "x"; then
17565 PVP="0"
17566 fi
17567
17568 cat >>confdefs.h <<_ACEOF
17569 #define PACKAGE_VERSION_PATCHLEVEL $PVP
17570 _ACEOF
17571
17572
17573
17574 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17575 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17576 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17577 echo 'git directory not found: installing possibly empty changelog.' >&2)"
17578
17579
17580
17581
17582 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17583 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17584 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17585 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17586 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17587
17588
17589
17590
17591
17592
17593 if test x$APP_MAN_SUFFIX = x ; then
17594 APP_MAN_SUFFIX=1
17595 fi
17596 if test x$APP_MAN_DIR = x ; then
17597 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17598 fi
17599
17600 if test x$LIB_MAN_SUFFIX = x ; then
17601 LIB_MAN_SUFFIX=3
17602 fi
17603 if test x$LIB_MAN_DIR = x ; then
17604 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17605 fi
17606
17607 if test x$FILE_MAN_SUFFIX = x ; then
17608 case $host_os in
17609 solaris*) FILE_MAN_SUFFIX=4 ;;
17610 *) FILE_MAN_SUFFIX=5 ;;
17611 esac
17612 fi
17613 if test x$FILE_MAN_DIR = x ; then
17614 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17615 fi
17616
17617 if test x$MISC_MAN_SUFFIX = x ; then
17618 case $host_os in
17619 solaris*) MISC_MAN_SUFFIX=5 ;;
17620 *) MISC_MAN_SUFFIX=7 ;;
17621 esac
17622 fi
17623 if test x$MISC_MAN_DIR = x ; then
17624 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17625 fi
17626
17627 if test x$DRIVER_MAN_SUFFIX = x ; then
17628 case $host_os in
17629 solaris*) DRIVER_MAN_SUFFIX=7 ;;
17630 *) DRIVER_MAN_SUFFIX=4 ;;
17631 esac
17632 fi
17633 if test x$DRIVER_MAN_DIR = x ; then
17634 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17635 fi
17636
17637 if test x$ADMIN_MAN_SUFFIX = x ; then
17638 case $host_os in
17639 solaris*) ADMIN_MAN_SUFFIX=1m ;;
17640 *) ADMIN_MAN_SUFFIX=8 ;;
17641 esac
17642 fi
17643 if test x$ADMIN_MAN_DIR = x ; then
17644 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17645 fi
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661 XORG_MAN_PAGE="X Version 11"
17662
17663 MAN_SUBSTS="\
17664 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17665 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17666 -e 's|__xservername__|Xorg|g' \
17667 -e 's|__xconfigfile__|xorg.conf|g' \
17668 -e 's|__projectroot__|\$(prefix)|g' \
17669 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
17670 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17671 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17672 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17673 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17674 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17675 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17676
17677
17678
17679 # Check whether --enable-silent-rules was given.
17680 if test "${enable_silent_rules+set}" = set; then :
17681 enableval=$enable_silent_rules;
17682 fi
17683
17684 case $enable_silent_rules in # (((
17685 yes) AM_DEFAULT_VERBOSITY=0;;
17686 no) AM_DEFAULT_VERBOSITY=1;;
17687 *) AM_DEFAULT_VERBOSITY=0;;
17688 esac
17689 am_make=${MAKE-make}
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
17691 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
17692 if ${am_cv_make_support_nested_variables+:} false; then :
17693 $as_echo_n "(cached) " >&6
17694 else
17695 if $as_echo 'TRUE=$(BAR$(V))
17696 BAR0=false
17697 BAR1=true
17698 V=1
17699 am__doit:
17700 @$(TRUE)
17701 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
17702 am_cv_make_support_nested_variables=yes
17703 else
17704 am_cv_make_support_nested_variables=no
17705 fi
17706 fi
17707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
17708 $as_echo "$am_cv_make_support_nested_variables" >&6; }
17709 if test $am_cv_make_support_nested_variables = yes; then
17710 AM_V='$(V)'
17711 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17712 else
17713 AM_V=$AM_DEFAULT_VERBOSITY
17714 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17715 fi
17716 AM_BACKSLASH='\'
17717
17718
17719
17720 # Check whether --enable-malloc0returnsnull was given.
17721 if test "${enable_malloc0returnsnull+set}" = set; then :
17722 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
17723 else
17724 MALLOC_ZERO_RETURNS_NULL=auto
17725 fi
17726
17727
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
17729 $as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
17730 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
17731 if test "$cross_compiling" = yes; then :
17732 MALLOC_ZERO_RETURNS_NULL=yes
17733 else
17734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17735 /* end confdefs.h. */
17736
17737 #include <stdlib.h>
17738
17739 int
17740 main ()
17741 {
17742
17743 char *m0, *r0, *c0, *p;
17744 m0 = malloc(0);
17745 p = malloc(10);
17746 r0 = realloc(p,0);
17747 c0 = calloc(0,10);
17748 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
17749
17750 ;
17751 return 0;
17752 }
17753 _ACEOF
17754 if ac_fn_c_try_run "$LINENO"; then :
17755 MALLOC_ZERO_RETURNS_NULL=yes
17756 else
17757 MALLOC_ZERO_RETURNS_NULL=no
17758 fi
17759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17760 conftest.$ac_objext conftest.beam conftest.$ac_ext
17761 fi
17762
17763 fi
17764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
17765 $as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
17766
17767 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
17768 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
17769 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
17770 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
17771 else
17772 MALLOC_ZERO_CFLAGS=""
17773 XMALLOC_ZERO_CFLAGS=""
17774 XTMALLOC_ZERO_CFLAGS=""
17775 fi
17776
17777
17778
17779
17780
17781
17782 # Obtain compiler/linker options for depedencies
17783
17784 pkg_failed=no
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FS" >&5
17786 $as_echo_n "checking for FS... " >&6; }
17787
17788 if test -n "$FS_CFLAGS"; then
17789 pkg_cv_FS_CFLAGS="$FS_CFLAGS"
17790 elif test -n "$PKG_CONFIG"; then
17791 if test -n "$PKG_CONFIG" && \
17792 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 fontsproto xtrans\""; } >&5
17793 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 fontsproto xtrans") 2>&5
17794 ac_status=$?
17795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17796 test $ac_status = 0; }; then
17797 pkg_cv_FS_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 fontsproto xtrans" 2>/dev/null`
17798 else
17799 pkg_failed=yes
17800 fi
17801 else
17802 pkg_failed=untried
17803 fi
17804 if test -n "$FS_LIBS"; then
17805 pkg_cv_FS_LIBS="$FS_LIBS"
17806 elif test -n "$PKG_CONFIG"; then
17807 if test -n "$PKG_CONFIG" && \
17808 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 fontsproto xtrans\""; } >&5
17809 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 fontsproto xtrans") 2>&5
17810 ac_status=$?
17811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17812 test $ac_status = 0; }; then
17813 pkg_cv_FS_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 fontsproto xtrans" 2>/dev/null`
17814 else
17815 pkg_failed=yes
17816 fi
17817 else
17818 pkg_failed=untried
17819 fi
17820
17821
17822
17823 if test $pkg_failed = yes; then
17824
17825 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17826 _pkg_short_errors_supported=yes
17827 else
17828 _pkg_short_errors_supported=no
17829 fi
17830 if test $_pkg_short_errors_supported = yes; then
17831 FS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.17 fontsproto xtrans" 2>&1`
17832 else
17833 FS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.17 fontsproto xtrans" 2>&1`
17834 fi
17835 # Put the nasty error message in config.log where it belongs
17836 echo "$FS_PKG_ERRORS" >&5
17837
17838 as_fn_error $? "Package requirements (xproto >= 7.0.17 fontsproto xtrans) were not met:
17839
17840 $FS_PKG_ERRORS
17841
17842 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17843 installed software in a non-standard prefix.
17844
17845 Alternatively, you may set the environment variables FS_CFLAGS
17846 and FS_LIBS to avoid the need to call pkg-config.
17847 See the pkg-config man page for more details.
17848 " "$LINENO" 5
17849 elif test $pkg_failed = untried; then
17850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17852 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17853 is in your PATH or set the PKG_CONFIG environment variable to the full
17854 path to pkg-config.
17855
17856 Alternatively, you may set the environment variables FS_CFLAGS
17857 and FS_LIBS to avoid the need to call pkg-config.
17858 See the pkg-config man page for more details.
17859
17860 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17861 See \`config.log' for more details" "$LINENO" 5; }
17862 else
17863 FS_CFLAGS=$pkg_cv_FS_CFLAGS
17864 FS_LIBS=$pkg_cv_FS_LIBS
17865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17866 $as_echo "yes" >&6; }
17867 :
17868 fi
17869
17870 # Find needed libraries for TCP sockets (pre-pended in $LIBS)
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
17872 $as_echo_n "checking return type of signal handlers... " >&6; }
17873 if ${ac_cv_type_signal+:} false; then :
17874 $as_echo_n "(cached) " >&6
17875 else
17876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17877 /* end confdefs.h. */
17878 #include <sys/types.h>
17879 #include <signal.h>
17880
17881 int
17882 main ()
17883 {
17884 return *(signal (0, 0)) (0) == 1;
17885 ;
17886 return 0;
17887 }
17888 _ACEOF
17889 if ac_fn_c_try_compile "$LINENO"; then :
17890 ac_cv_type_signal=int
17891 else
17892 ac_cv_type_signal=void
17893 fi
17894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17895 fi
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
17897 $as_echo "$ac_cv_type_signal" >&6; }
17898
17899 cat >>confdefs.h <<_ACEOF
17900 #define RETSIGTYPE $ac_cv_type_signal
17901 _ACEOF
17902
17903
17904
17905
17906
17907 case $host_os in
17908 mingw*) unixdef="no" ;;
17909 *) unixdef="yes" ;;
17910 esac
17911 # Check whether --enable-unix-transport was given.
17912 if test "${enable_unix_transport+set}" = set; then :
17913 enableval=$enable_unix_transport; UNIXCONN=$enableval
17914 else
17915 UNIXCONN=$unixdef
17916 fi
17917
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
17919 $as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
17920 if test "$UNIXCONN" = "yes"; then
17921
17922 $as_echo "#define UNIXCONN 1" >>confdefs.h
17923
17924 fi
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
17926 $as_echo "$UNIXCONN" >&6; }
17927 # Check whether --enable-tcp-transport was given.
17928 if test "${enable_tcp_transport+set}" = set; then :
17929 enableval=$enable_tcp_transport; TCPCONN=$enableval
17930 else
17931 TCPCONN=yes
17932 fi
17933
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
17935 $as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
17937 $as_echo "$TCPCONN" >&6; }
17938 if test "$TCPCONN" = "yes"; then
17939
17940 $as_echo "#define TCPCONN 1" >>confdefs.h
17941
17942
17943 # SVR4 hides these in libraries other than libc
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
17945 $as_echo_n "checking for library containing socket... " >&6; }
17946 if ${ac_cv_search_socket+:} false; then :
17947 $as_echo_n "(cached) " >&6
17948 else
17949 ac_func_search_save_LIBS=$LIBS
17950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17951 /* end confdefs.h. */
17952
17953 /* Override any GCC internal prototype to avoid an error.
17954 Use char because int might match the return type of a GCC
17955 builtin and then its argument prototype would still apply. */
17956 #ifdef __cplusplus
17957 extern "C"
17958 #endif
17959 char socket ();
17960 int
17961 main ()
17962 {
17963 return socket ();
17964 ;
17965 return 0;
17966 }
17967 _ACEOF
17968 for ac_lib in '' socket; do
17969 if test -z "$ac_lib"; then
17970 ac_res="none required"
17971 else
17972 ac_res=-l$ac_lib
17973 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17974 fi
17975 if ac_fn_c_try_link "$LINENO"; then :
17976 ac_cv_search_socket=$ac_res
17977 fi
17978 rm -f core conftest.err conftest.$ac_objext \
17979 conftest$ac_exeext
17980 if ${ac_cv_search_socket+:} false; then :
17981 break
17982 fi
17983 done
17984 if ${ac_cv_search_socket+:} false; then :
17985
17986 else
17987 ac_cv_search_socket=no
17988 fi
17989 rm conftest.$ac_ext
17990 LIBS=$ac_func_search_save_LIBS
17991 fi
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
17993 $as_echo "$ac_cv_search_socket" >&6; }
17994 ac_res=$ac_cv_search_socket
17995 if test "$ac_res" != no; then :
17996 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17997
17998 fi
17999
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
18001 $as_echo_n "checking for library containing gethostbyname... " >&6; }
18002 if ${ac_cv_search_gethostbyname+:} false; then :
18003 $as_echo_n "(cached) " >&6
18004 else
18005 ac_func_search_save_LIBS=$LIBS
18006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18007 /* end confdefs.h. */
18008
18009 /* Override any GCC internal prototype to avoid an error.
18010 Use char because int might match the return type of a GCC
18011 builtin and then its argument prototype would still apply. */
18012 #ifdef __cplusplus
18013 extern "C"
18014 #endif
18015 char gethostbyname ();
18016 int
18017 main ()
18018 {
18019 return gethostbyname ();
18020 ;
18021 return 0;
18022 }
18023 _ACEOF
18024 for ac_lib in '' nsl; do
18025 if test -z "$ac_lib"; then
18026 ac_res="none required"
18027 else
18028 ac_res=-l$ac_lib
18029 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18030 fi
18031 if ac_fn_c_try_link "$LINENO"; then :
18032 ac_cv_search_gethostbyname=$ac_res
18033 fi
18034 rm -f core conftest.err conftest.$ac_objext \
18035 conftest$ac_exeext
18036 if ${ac_cv_search_gethostbyname+:} false; then :
18037 break
18038 fi
18039 done
18040 if ${ac_cv_search_gethostbyname+:} false; then :
18041
18042 else
18043 ac_cv_search_gethostbyname=no
18044 fi
18045 rm conftest.$ac_ext
18046 LIBS=$ac_func_search_save_LIBS
18047 fi
18048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
18049 $as_echo "$ac_cv_search_gethostbyname" >&6; }
18050 ac_res=$ac_cv_search_gethostbyname
18051 if test "$ac_res" != no; then :
18052 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18053
18054 fi
18055
18056 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
18058 $as_echo_n "checking for main in -lws2_32... " >&6; }
18059 if ${ac_cv_lib_ws2_32_main+:} false; then :
18060 $as_echo_n "(cached) " >&6
18061 else
18062 ac_check_lib_save_LIBS=$LIBS
18063 LIBS="-lws2_32 $LIBS"
18064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18065 /* end confdefs.h. */
18066
18067
18068 int
18069 main ()
18070 {
18071 return main ();
18072 ;
18073 return 0;
18074 }
18075 _ACEOF
18076 if ac_fn_c_try_link "$LINENO"; then :
18077 ac_cv_lib_ws2_32_main=yes
18078 else
18079 ac_cv_lib_ws2_32_main=no
18080 fi
18081 rm -f core conftest.err conftest.$ac_objext \
18082 conftest$ac_exeext conftest.$ac_ext
18083 LIBS=$ac_check_lib_save_LIBS
18084 fi
18085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
18086 $as_echo "$ac_cv_lib_ws2_32_main" >&6; }
18087 if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
18088 cat >>confdefs.h <<_ACEOF
18089 #define HAVE_LIBWS2_32 1
18090 _ACEOF
18091
18092 LIBS="-lws2_32 $LIBS"
18093
18094 fi
18095 ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
18096
18097 fi
18098
18099 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
18100 # Check whether --enable-ipv6 was given.
18101 if test "${enable_ipv6+set}" = set; then :
18102 enableval=$enable_ipv6; IPV6CONN=$enableval
18103 else
18104 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
18105 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
18106 IPV6CONN=yes
18107 else
18108 IPV6CONN=no
18109 fi
18110
18111 fi
18112
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
18114 $as_echo_n "checking if IPv6 support should be built... " >&6; }
18115 if test "$IPV6CONN" = "yes"; then
18116
18117 $as_echo "#define IPv6 1" >>confdefs.h
18118
18119 fi
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
18121 $as_echo "$IPV6CONN" >&6; }
18122
18123 # 4.3BSD-Reno added a new member to struct sockaddr_in
18124 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
18125 #include <sys/types.h>
18126 #include <sys/socket.h>
18127 #include <netinet/in.h>
18128
18129 "
18130 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
18131
18132 $as_echo "#define BSD44SOCKETS 1" >>confdefs.h
18133
18134 fi
18135
18136
18137 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
18138 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
18139 $ac_includes_default
18140 #include <sys/socket.h>
18141 "
18142 if test "x$ac_cv_type_socklen_t" = xyes; then :
18143
18144 cat >>confdefs.h <<_ACEOF
18145 #define HAVE_SOCKLEN_T 1
18146 _ACEOF
18147
18148
18149 fi
18150
18151
18152
18153 fi
18154 case $host_os in
18155 solaris*|sco*|sysv4*) localdef="yes" ;;
18156 *) localdef="no" ;;
18157 esac
18158 # Check whether --enable-local-transport was given.
18159 if test "${enable_local_transport+set}" = set; then :
18160 enableval=$enable_local_transport; LOCALCONN=$enableval
18161 else
18162 LOCALCONN=$localdef
18163 fi
18164
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
18166 $as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
18168 $as_echo "$LOCALCONN" >&6; }
18169 if test "$LOCALCONN" = "yes"; then
18170
18171 $as_echo "#define LOCALCONN 1" >>confdefs.h
18172
18173 fi
18174
18175
18176
18177 # Allow checking code with lint, sparse, etc.
18178
18179
18180
18181
18182
18183 # Check whether --with-lint was given.
18184 if test "${with_lint+set}" = set; then :
18185 withval=$with_lint; use_lint=$withval
18186 else
18187 use_lint=no
18188 fi
18189
18190
18191 # Obtain platform specific info like program name and options
18192 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
18193 case $host_os in
18194 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
18195 lint_name=splint
18196 lint_options="-badflag"
18197 ;;
18198 *freebsd* | *netbsd*)
18199 lint_name=lint
18200 lint_options="-u -b"
18201 ;;
18202 *solaris*)
18203 lint_name=lint
18204 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
18205 ;;
18206 esac
18207
18208 # Test for the presence of the program (either guessed by the code or spelled out by the user)
18209 if test "x$use_lint" = x"yes" ; then
18210 # Extract the first word of "$lint_name", so it can be a program name with args.
18211 set dummy $lint_name; ac_word=$2
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18213 $as_echo_n "checking for $ac_word... " >&6; }
18214 if ${ac_cv_path_LINT+:} false; then :
18215 $as_echo_n "(cached) " >&6
18216 else
18217 case $LINT in
18218 [\\/]* | ?:[\\/]*)
18219 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
18220 ;;
18221 *)
18222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18223 for as_dir in $PATH
18224 do
18225 IFS=$as_save_IFS
18226 test -z "$as_dir" && as_dir=.
18227 for ac_exec_ext in '' $ac_executable_extensions; do
18228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18229 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
18230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18231 break 2
18232 fi
18233 done
18234 done
18235 IFS=$as_save_IFS
18236
18237 ;;
18238 esac
18239 fi
18240 LINT=$ac_cv_path_LINT
18241 if test -n "$LINT"; then
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
18243 $as_echo "$LINT" >&6; }
18244 else
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18246 $as_echo "no" >&6; }
18247 fi
18248
18249
18250 if test "x$LINT" = "x"; then
18251 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
18252 fi
18253 elif test "x$use_lint" = x"no" ; then
18254 if test "x$LINT" != "x"; then
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
18256 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
18257 fi
18258 else
18259 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
18260 fi
18261
18262 # User supplied flags override default flags
18263 if test "x$LINT_FLAGS" != "x"; then
18264 lint_options=$LINT_FLAGS
18265 fi
18266
18267 LINT_FLAGS=$lint_options
18268
18269 if test "x$LINT" != x; then
18270 LINT_TRUE=
18271 LINT_FALSE='#'
18272 else
18273 LINT_TRUE='#'
18274 LINT_FALSE=
18275 fi
18276
18277
18278
18279
18280
18281 # Check whether --enable-lint-library was given.
18282 if test "${enable_lint_library+set}" = set; then :
18283 enableval=$enable_lint_library; make_lint_lib=$enableval
18284 else
18285 make_lint_lib=no
18286 fi
18287
18288
18289 if test "x$make_lint_lib" = x"yes" ; then
18290 LINTLIB=llib-lFS.ln
18291 if test "x$LINT" = "x"; then
18292 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
18293 fi
18294 elif test "x$make_lint_lib" != x"no" ; then
18295 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
18296 fi
18297
18298
18299 if test x$make_lint_lib != xno; then
18300 MAKE_LINT_LIB_TRUE=
18301 MAKE_LINT_LIB_FALSE='#'
18302 else
18303 MAKE_LINT_LIB_TRUE='#'
18304 MAKE_LINT_LIB_FALSE=
18305 fi
18306
18307
18308
18309
18310 ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile libfs.pc"
18311
18312 cat >confcache <<\_ACEOF
18313 # This file is a shell script that caches the results of configure
18314 # tests run on this system so they can be shared between configure
18315 # scripts and configure runs, see configure's option --config-cache.
18316 # It is not useful on other systems. If it contains results you don't
18317 # want to keep, you may remove or edit it.
18318 #
18319 # config.status only pays attention to the cache file if you give it
18320 # the --recheck option to rerun configure.
18321 #
18322 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18323 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18324 # following values.
18325
18326 _ACEOF
18327
18328 # The following way of writing the cache mishandles newlines in values,
18329 # but we know of no workaround that is simple, portable, and efficient.
18330 # So, we kill variables containing newlines.
18331 # Ultrix sh set writes to stderr and can't be redirected directly,
18332 # and sets the high bit in the cache file unless we assign to the vars.
18333 (
18334 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18335 eval ac_val=\$$ac_var
18336 case $ac_val in #(
18337 *${as_nl}*)
18338 case $ac_var in #(
18339 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18340 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18341 esac
18342 case $ac_var in #(
18343 _ | IFS | as_nl) ;; #(
18344 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18345 *) { eval $ac_var=; unset $ac_var;} ;;
18346 esac ;;
18347 esac
18348 done
18349
18350 (set) 2>&1 |
18351 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18352 *${as_nl}ac_space=\ *)
18353 # `set' does not quote correctly, so add quotes: double-quote
18354 # substitution turns \\\\ into \\, and sed turns \\ into \.
18355 sed -n \
18356 "s/'/'\\\\''/g;
18357 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18358 ;; #(
18359 *)
18360 # `set' quotes correctly as required by POSIX, so do not add quotes.
18361 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18362 ;;
18363 esac |
18364 sort
18365 ) |
18366 sed '
18367 /^ac_cv_env_/b end
18368 t clear
18369 :clear
18370 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18371 t end
18372 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18373 :end' >>confcache
18374 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18375 if test -w "$cache_file"; then
18376 if test "x$cache_file" != "x/dev/null"; then
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18378 $as_echo "$as_me: updating cache $cache_file" >&6;}
18379 if test ! -f "$cache_file" || test -h "$cache_file"; then
18380 cat confcache >"$cache_file"
18381 else
18382 case $cache_file in #(
18383 */* | ?:*)
18384 mv -f confcache "$cache_file"$$ &&
18385 mv -f "$cache_file"$$ "$cache_file" ;; #(
18386 *)
18387 mv -f confcache "$cache_file" ;;
18388 esac
18389 fi
18390 fi
18391 else
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18393 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18394 fi
18395 fi
18396 rm -f confcache
18397
18398 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18399 # Let make expand exec_prefix.
18400 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18401
18402 DEFS=-DHAVE_CONFIG_H
18403
18404 ac_libobjs=
18405 ac_ltlibobjs=
18406 U=
18407 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18408 # 1. Remove the extension, and $U if already installed.
18409 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18410 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18411 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18412 # will be set to the directory where LIBOBJS objects are built.
18413 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18414 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18415 done
18416 LIBOBJS=$ac_libobjs
18417
18418 LTLIBOBJS=$ac_ltlibobjs
18419
18420
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18422 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18423 if test -n "$am_sleep_pid"; then
18424 # Hide warnings about reused PIDs.
18425 wait $am_sleep_pid 2>/dev/null
18426 fi
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18428 $as_echo "done" >&6; }
18429 if test -n "$EXEEXT"; then
18430 am__EXEEXT_TRUE=
18431 am__EXEEXT_FALSE='#'
18432 else
18433 am__EXEEXT_TRUE='#'
18434 am__EXEEXT_FALSE=
18435 fi
18436
18437 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18438 as_fn_error $? "conditional \"AMDEP\" was never defined.
18439 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18440 fi
18441 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18442 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18443 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18444 fi
18445 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
18446 as_fn_error $? "conditional \"LINT\" was never defined.
18447 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18448 fi
18449 if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
18450 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
18451 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18452 fi
18453
18454 : "${CONFIG_STATUS=./config.status}"
18455 ac_write_fail=0
18456 ac_clean_files_save=$ac_clean_files
18457 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18459 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18460 as_write_fail=0
18461 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18462 #! $SHELL
18463 # Generated by $as_me.
18464 # Run this file to recreate the current configuration.
18465 # Compiler output produced by configure, useful for debugging
18466 # configure, is in config.log if it exists.
18467
18468 debug=false
18469 ac_cs_recheck=false
18470 ac_cs_silent=false
18471
18472 SHELL=\${CONFIG_SHELL-$SHELL}
18473 export SHELL
18474 _ASEOF
18475 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18476 ## -------------------- ##
18477 ## M4sh Initialization. ##
18478 ## -------------------- ##
18479
18480 # Be more Bourne compatible
18481 DUALCASE=1; export DUALCASE # for MKS sh
18482 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18483 emulate sh
18484 NULLCMD=:
18485 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18486 # is contrary to our usage. Disable this feature.
18487 alias -g '${1+"$@"}'='"$@"'
18488 setopt NO_GLOB_SUBST
18489 else
18490 case `(set -o) 2>/dev/null` in #(
18491 *posix*) :
18492 set -o posix ;; #(
18493 *) :
18494 ;;
18495 esac
18496 fi
18497
18498
18499 as_nl='
18500 '
18501 export as_nl
18502 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18503 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18504 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18505 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18506 # Prefer a ksh shell builtin over an external printf program on Solaris,
18507 # but without wasting forks for bash or zsh.
18508 if test -z "$BASH_VERSION$ZSH_VERSION" \
18509 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18510 as_echo='print -r --'
18511 as_echo_n='print -rn --'
18512 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18513 as_echo='printf %s\n'
18514 as_echo_n='printf %s'
18515 else
18516 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18517 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18518 as_echo_n='/usr/ucb/echo -n'
18519 else
18520 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18521 as_echo_n_body='eval
18522 arg=$1;
18523 case $arg in #(
18524 *"$as_nl"*)
18525 expr "X$arg" : "X\\(.*\\)$as_nl";
18526 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18527 esac;
18528 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18529 '
18530 export as_echo_n_body
18531 as_echo_n='sh -c $as_echo_n_body as_echo'
18532 fi
18533 export as_echo_body
18534 as_echo='sh -c $as_echo_body as_echo'
18535 fi
18536
18537 # The user is always right.
18538 if test "${PATH_SEPARATOR+set}" != set; then
18539 PATH_SEPARATOR=:
18540 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18541 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18542 PATH_SEPARATOR=';'
18543 }
18544 fi
18545
18546
18547 # IFS
18548 # We need space, tab and new line, in precisely that order. Quoting is
18549 # there to prevent editors from complaining about space-tab.
18550 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18551 # splitting by setting IFS to empty value.)
18552 IFS=" "" $as_nl"
18553
18554 # Find who we are. Look in the path if we contain no directory separator.
18555 as_myself=
18556 case $0 in #((
18557 *[\\/]* ) as_myself=$0 ;;
18558 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18559 for as_dir in $PATH
18560 do
18561 IFS=$as_save_IFS
18562 test -z "$as_dir" && as_dir=.
18563 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18564 done
18565 IFS=$as_save_IFS
18566
18567 ;;
18568 esac
18569 # We did not find ourselves, most probably we were run as `sh COMMAND'
18570 # in which case we are not to be found in the path.
18571 if test "x$as_myself" = x; then
18572 as_myself=$0
18573 fi
18574 if test ! -f "$as_myself"; then
18575 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18576 exit 1
18577 fi
18578
18579 # Unset variables that we do not need and which cause bugs (e.g. in
18580 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18581 # suppresses any "Segmentation fault" message there. '((' could
18582 # trigger a bug in pdksh 5.2.14.
18583 for as_var in BASH_ENV ENV MAIL MAILPATH
18584 do eval test x\${$as_var+set} = xset \
18585 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18586 done
18587 PS1='$ '
18588 PS2='> '
18589 PS4='+ '
18590
18591 # NLS nuisances.
18592 LC_ALL=C
18593 export LC_ALL
18594 LANGUAGE=C
18595 export LANGUAGE
18596
18597 # CDPATH.
18598 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18599
18600
18601 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18602 # ----------------------------------------
18603 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18604 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18605 # script with STATUS, using 1 if that was 0.
18606 as_fn_error ()
18607 {
18608 as_status=$1; test $as_status -eq 0 && as_status=1
18609 if test "$4"; then
18610 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18611 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18612 fi
18613 $as_echo "$as_me: error: $2" >&2
18614 as_fn_exit $as_status
18615 } # as_fn_error
18616
18617
18618 # as_fn_set_status STATUS
18619 # -----------------------
18620 # Set $? to STATUS, without forking.
18621 as_fn_set_status ()
18622 {
18623 return $1
18624 } # as_fn_set_status
18625
18626 # as_fn_exit STATUS
18627 # -----------------
18628 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18629 as_fn_exit ()
18630 {
18631 set +e
18632 as_fn_set_status $1
18633 exit $1
18634 } # as_fn_exit
18635
18636 # as_fn_unset VAR
18637 # ---------------
18638 # Portably unset VAR.
18639 as_fn_unset ()
18640 {
18641 { eval $1=; unset $1;}
18642 }
18643 as_unset=as_fn_unset
18644 # as_fn_append VAR VALUE
18645 # ----------------------
18646 # Append the text in VALUE to the end of the definition contained in VAR. Take
18647 # advantage of any shell optimizations that allow amortized linear growth over
18648 # repeated appends, instead of the typical quadratic growth present in naive
18649 # implementations.
18650 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18651 eval 'as_fn_append ()
18652 {
18653 eval $1+=\$2
18654 }'
18655 else
18656 as_fn_append ()
18657 {
18658 eval $1=\$$1\$2
18659 }
18660 fi # as_fn_append
18661
18662 # as_fn_arith ARG...
18663 # ------------------
18664 # Perform arithmetic evaluation on the ARGs, and store the result in the
18665 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18666 # must be portable across $(()) and expr.
18667 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18668 eval 'as_fn_arith ()
18669 {
18670 as_val=$(( $* ))
18671 }'
18672 else
18673 as_fn_arith ()
18674 {
18675 as_val=`expr "$@" || test $? -eq 1`
18676 }
18677 fi # as_fn_arith
18678
18679
18680 if expr a : '\(a\)' >/dev/null 2>&1 &&
18681 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18682 as_expr=expr
18683 else
18684 as_expr=false
18685 fi
18686
18687 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18688 as_basename=basename
18689 else
18690 as_basename=false
18691 fi
18692
18693 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18694 as_dirname=dirname
18695 else
18696 as_dirname=false
18697 fi
18698
18699 as_me=`$as_basename -- "$0" ||
18700 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18701 X"$0" : 'X\(//\)$' \| \
18702 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18703 $as_echo X/"$0" |
18704 sed '/^.*\/\([^/][^/]*\)\/*$/{
18705 s//\1/
18706 q
18707 }
18708 /^X\/\(\/\/\)$/{
18709 s//\1/
18710 q
18711 }
18712 /^X\/\(\/\).*/{
18713 s//\1/
18714 q
18715 }
18716 s/.*/./; q'`
18717
18718 # Avoid depending upon Character Ranges.
18719 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18720 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18721 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18722 as_cr_digits='0123456789'
18723 as_cr_alnum=$as_cr_Letters$as_cr_digits
18724
18725 ECHO_C= ECHO_N= ECHO_T=
18726 case `echo -n x` in #(((((
18727 -n*)
18728 case `echo 'xy\c'` in
18729 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18730 xy) ECHO_C='\c';;
18731 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18732 ECHO_T=' ';;
18733 esac;;
18734 *)
18735 ECHO_N='-n';;
18736 esac
18737
18738 rm -f conf$$ conf$$.exe conf$$.file
18739 if test -d conf$$.dir; then
18740 rm -f conf$$.dir/conf$$.file
18741 else
18742 rm -f conf$$.dir
18743 mkdir conf$$.dir 2>/dev/null
18744 fi
18745 if (echo >conf$$.file) 2>/dev/null; then
18746 if ln -s conf$$.file conf$$ 2>/dev/null; then
18747 as_ln_s='ln -s'
18748 # ... but there are two gotchas:
18749 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18750 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18751 # In both cases, we have to default to `cp -p'.
18752 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18753 as_ln_s='cp -p'
18754 elif ln conf$$.file conf$$ 2>/dev/null; then
18755 as_ln_s=ln
18756 else
18757 as_ln_s='cp -p'
18758 fi
18759 else
18760 as_ln_s='cp -p'
18761 fi
18762 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18763 rmdir conf$$.dir 2>/dev/null
18764
18765
18766 # as_fn_mkdir_p
18767 # -------------
18768 # Create "$as_dir" as a directory, including parents if necessary.
18769 as_fn_mkdir_p ()
18770 {
18771
18772 case $as_dir in #(
18773 -*) as_dir=./$as_dir;;
18774 esac
18775 test -d "$as_dir" || eval $as_mkdir_p || {
18776 as_dirs=
18777 while :; do
18778 case $as_dir in #(
18779 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18780 *) as_qdir=$as_dir;;
18781 esac
18782 as_dirs="'$as_qdir' $as_dirs"
18783 as_dir=`$as_dirname -- "$as_dir" ||
18784 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18785 X"$as_dir" : 'X\(//\)[^/]' \| \
18786 X"$as_dir" : 'X\(//\)$' \| \
18787 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18788 $as_echo X"$as_dir" |
18789 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18790 s//\1/
18791 q
18792 }
18793 /^X\(\/\/\)[^/].*/{
18794 s//\1/
18795 q
18796 }
18797 /^X\(\/\/\)$/{
18798 s//\1/
18799 q
18800 }
18801 /^X\(\/\).*/{
18802 s//\1/
18803 q
18804 }
18805 s/.*/./; q'`
18806 test -d "$as_dir" && break
18807 done
18808 test -z "$as_dirs" || eval "mkdir $as_dirs"
18809 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18810
18811
18812 } # as_fn_mkdir_p
18813 if mkdir -p . 2>/dev/null; then
18814 as_mkdir_p='mkdir -p "$as_dir"'
18815 else
18816 test -d ./-p && rmdir ./-p
18817 as_mkdir_p=false
18818 fi
18819
18820 if test -x / >/dev/null 2>&1; then
18821 as_test_x='test -x'
18822 else
18823 if ls -dL / >/dev/null 2>&1; then
18824 as_ls_L_option=L
18825 else
18826 as_ls_L_option=
18827 fi
18828 as_test_x='
18829 eval sh -c '\''
18830 if test -d "$1"; then
18831 test -d "$1/.";
18832 else
18833 case $1 in #(
18834 -*)set "./$1";;
18835 esac;
18836 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18837 ???[sx]*):;;*)false;;esac;fi
18838 '\'' sh
18839 '
18840 fi
18841 as_executable_p=$as_test_x
18842
18843 # Sed expression to map a string onto a valid CPP name.
18844 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18845
18846 # Sed expression to map a string onto a valid variable name.
18847 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18848
18849
18850 exec 6>&1
18851 ## ----------------------------------- ##
18852 ## Main body of $CONFIG_STATUS script. ##
18853 ## ----------------------------------- ##
18854 _ASEOF
18855 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18856
18857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18858 # Save the log message, to keep $0 and so on meaningful, and to
18859 # report actual input values of CONFIG_FILES etc. instead of their
18860 # values after options handling.
18861 ac_log="
18862 This file was extended by libFS $as_me 1.0.5, which was
18863 generated by GNU Autoconf 2.68. Invocation command line was
18864
18865 CONFIG_FILES = $CONFIG_FILES
18866 CONFIG_HEADERS = $CONFIG_HEADERS
18867 CONFIG_LINKS = $CONFIG_LINKS
18868 CONFIG_COMMANDS = $CONFIG_COMMANDS
18869 $ $0 $@
18870
18871 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18872 "
18873
18874 _ACEOF
18875
18876 case $ac_config_files in *"
18877 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18878 esac
18879
18880 case $ac_config_headers in *"
18881 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18882 esac
18883
18884
18885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18886 # Files that config.status was made for.
18887 config_files="$ac_config_files"
18888 config_headers="$ac_config_headers"
18889 config_commands="$ac_config_commands"
18890
18891 _ACEOF
18892
18893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18894 ac_cs_usage="\
18895 \`$as_me' instantiates files and other configuration actions
18896 from templates according to the current configuration. Unless the files
18897 and actions are specified as TAGs, all are instantiated by default.
18898
18899 Usage: $0 [OPTION]... [TAG]...
18900
18901 -h, --help print this help, then exit
18902 -V, --version print version number and configuration settings, then exit
18903 --config print configuration, then exit
18904 -q, --quiet, --silent
18905 do not print progress messages
18906 -d, --debug don't remove temporary files
18907 --recheck update $as_me by reconfiguring in the same conditions
18908 --file=FILE[:TEMPLATE]
18909 instantiate the configuration file FILE
18910 --header=FILE[:TEMPLATE]
18911 instantiate the configuration header FILE
18912
18913 Configuration files:
18914 $config_files
18915
18916 Configuration headers:
18917 $config_headers
18918
18919 Configuration commands:
18920 $config_commands
18921
18922 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18923
18924 _ACEOF
18925 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18926 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18927 ac_cs_version="\\
18928 libFS config.status 1.0.5
18929 configured by $0, generated by GNU Autoconf 2.68,
18930 with options \\"\$ac_cs_config\\"
18931
18932 Copyright (C) 2010 Free Software Foundation, Inc.
18933 This config.status script is free software; the Free Software Foundation
18934 gives unlimited permission to copy, distribute and modify it."
18935
18936 ac_pwd='$ac_pwd'
18937 srcdir='$srcdir'
18938 INSTALL='$INSTALL'
18939 MKDIR_P='$MKDIR_P'
18940 AWK='$AWK'
18941 test -n "\$AWK" || AWK=awk
18942 _ACEOF
18943
18944 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18945 # The default lists apply if the user does not specify any file.
18946 ac_need_defaults=:
18947 while test $# != 0
18948 do
18949 case $1 in
18950 --*=?*)
18951 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18952 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18953 ac_shift=:
18954 ;;
18955 --*=)
18956 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18957 ac_optarg=
18958 ac_shift=:
18959 ;;
18960 *)
18961 ac_option=$1
18962 ac_optarg=$2
18963 ac_shift=shift
18964 ;;
18965 esac
18966
18967 case $ac_option in
18968 # Handling of the options.
18969 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18970 ac_cs_recheck=: ;;
18971 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18972 $as_echo "$ac_cs_version"; exit ;;
18973 --config | --confi | --conf | --con | --co | --c )
18974 $as_echo "$ac_cs_config"; exit ;;
18975 --debug | --debu | --deb | --de | --d | -d )
18976 debug=: ;;
18977 --file | --fil | --fi | --f )
18978 $ac_shift
18979 case $ac_optarg in
18980 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18981 '') as_fn_error $? "missing file argument" ;;
18982 esac
18983 as_fn_append CONFIG_FILES " '$ac_optarg'"
18984 ac_need_defaults=false;;
18985 --header | --heade | --head | --hea )
18986 $ac_shift
18987 case $ac_optarg in
18988 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18989 esac
18990 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18991 ac_need_defaults=false;;
18992 --he | --h)
18993 # Conflict between --help and --header
18994 as_fn_error $? "ambiguous option: \`$1'
18995 Try \`$0 --help' for more information.";;
18996 --help | --hel | -h )
18997 $as_echo "$ac_cs_usage"; exit ;;
18998 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18999 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19000 ac_cs_silent=: ;;
19001
19002 # This is an error.
19003 -*) as_fn_error $? "unrecognized option: \`$1'
19004 Try \`$0 --help' for more information." ;;
19005
19006 *) as_fn_append ac_config_targets " $1"
19007 ac_need_defaults=false ;;
19008
19009 esac
19010 shift
19011 done
19012
19013 ac_configure_extra_args=
19014
19015 if $ac_cs_silent; then
19016 exec 6>/dev/null
19017 ac_configure_extra_args="$ac_configure_extra_args --silent"
19018 fi
19019
19020 _ACEOF
19021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19022 if \$ac_cs_recheck; then
19023 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19024 shift
19025 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19026 CONFIG_SHELL='$SHELL'
19027 export CONFIG_SHELL
19028 exec "\$@"
19029 fi
19030
19031 _ACEOF
19032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19033 exec 5>>config.log
19034 {
19035 echo
19036 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19037 ## Running $as_me. ##
19038 _ASBOX
19039 $as_echo "$ac_log"
19040 } >&5
19041
19042 _ACEOF
19043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19044 #
19045 # INIT-COMMANDS
19046 #
19047 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19048
19049
19050 # The HP-UX ksh and POSIX shell print the target directory to stdout
19051 # if CDPATH is set.
19052 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19053
19054 sed_quote_subst='$sed_quote_subst'
19055 double_quote_subst='$double_quote_subst'
19056 delay_variable_subst='$delay_variable_subst'
19057 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19058 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19059 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19060 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19061 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19062 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19063 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19064 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19065 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19066 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19067 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19068 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19069 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19070 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19071 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19072 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19073 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19074 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19075 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19076 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19077 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19078 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19079 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19080 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19081 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19082 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19083 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19084 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19085 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19086 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19087 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19088 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19089 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19090 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19091 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19092 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19093 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19094 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19095 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19096 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19097 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19098 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19099 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19100 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19101 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19102 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19103 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19104 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19105 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19106 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19107 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19108 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19109 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19110 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19111 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19112 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19113 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"`'
19114 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19115 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19116 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19117 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19118 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19119 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19120 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19121 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19122 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19123 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19124 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19125 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19126 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19127 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19128 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19129 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19130 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19131 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19132 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19133 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19134 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19135 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19136 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19137 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19138 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19139 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19140 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19141 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19142 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19143 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19144 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19145 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19146 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19147 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19148 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19149 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19150 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19151 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19152 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19153 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19154 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19155 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19156 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19157 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19158 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19159 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19160 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19161 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19162 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19163 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19164 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19165 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19166 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19167 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19168 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19169 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19170 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19171 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19172 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19173 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19174 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19175 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19176 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19177 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19178 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19179 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19180 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19181 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19182 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19183 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19184 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19185 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19186 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19187
19188 LTCC='$LTCC'
19189 LTCFLAGS='$LTCFLAGS'
19190 compiler='$compiler_DEFAULT'
19191
19192 # A function that is used when there is no print builtin or printf.
19193 func_fallback_echo ()
19194 {
19195 eval 'cat <<_LTECHO_EOF
19196 \$1
19197 _LTECHO_EOF'
19198 }
19199
19200 # Quote evaled strings.
19201 for var in SHELL \
19202 ECHO \
19203 PATH_SEPARATOR \
19204 SED \
19205 GREP \
19206 EGREP \
19207 FGREP \
19208 LD \
19209 NM \
19210 LN_S \
19211 lt_SP2NL \
19212 lt_NL2SP \
19213 reload_flag \
19214 OBJDUMP \
19215 deplibs_check_method \
19216 file_magic_cmd \
19217 file_magic_glob \
19218 want_nocaseglob \
19219 DLLTOOL \
19220 sharedlib_from_linklib_cmd \
19221 AR \
19222 AR_FLAGS \
19223 archiver_list_spec \
19224 STRIP \
19225 RANLIB \
19226 CC \
19227 CFLAGS \
19228 compiler \
19229 lt_cv_sys_global_symbol_pipe \
19230 lt_cv_sys_global_symbol_to_cdecl \
19231 lt_cv_sys_global_symbol_to_c_name_address \
19232 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19233 nm_file_list_spec \
19234 lt_prog_compiler_no_builtin_flag \
19235 lt_prog_compiler_pic \
19236 lt_prog_compiler_wl \
19237 lt_prog_compiler_static \
19238 lt_cv_prog_compiler_c_o \
19239 need_locks \
19240 MANIFEST_TOOL \
19241 DSYMUTIL \
19242 NMEDIT \
19243 LIPO \
19244 OTOOL \
19245 OTOOL64 \
19246 shrext_cmds \
19247 export_dynamic_flag_spec \
19248 whole_archive_flag_spec \
19249 compiler_needs_object \
19250 with_gnu_ld \
19251 allow_undefined_flag \
19252 no_undefined_flag \
19253 hardcode_libdir_flag_spec \
19254 hardcode_libdir_separator \
19255 exclude_expsyms \
19256 include_expsyms \
19257 file_list_spec \
19258 variables_saved_for_relink \
19259 libname_spec \
19260 library_names_spec \
19261 soname_spec \
19262 install_override_mode \
19263 finish_eval \
19264 old_striplib \
19265 striplib; do
19266 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19267 *[\\\\\\\`\\"\\\$]*)
19268 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19269 ;;
19270 *)
19271 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19272 ;;
19273 esac
19274 done
19275
19276 # Double-quote double-evaled strings.
19277 for var in reload_cmds \
19278 old_postinstall_cmds \
19279 old_postuninstall_cmds \
19280 old_archive_cmds \
19281 extract_expsyms_cmds \
19282 old_archive_from_new_cmds \
19283 old_archive_from_expsyms_cmds \
19284 archive_cmds \
19285 archive_expsym_cmds \
19286 module_cmds \
19287 module_expsym_cmds \
19288 export_symbols_cmds \
19289 prelink_cmds \
19290 postlink_cmds \
19291 postinstall_cmds \
19292 postuninstall_cmds \
19293 finish_cmds \
19294 sys_lib_search_path_spec \
19295 sys_lib_dlsearch_path_spec; do
19296 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19297 *[\\\\\\\`\\"\\\$]*)
19298 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19299 ;;
19300 *)
19301 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19302 ;;
19303 esac
19304 done
19305
19306 ac_aux_dir='$ac_aux_dir'
19307 xsi_shell='$xsi_shell'
19308 lt_shell_append='$lt_shell_append'
19309
19310 # See if we are running on zsh, and set the options which allow our
19311 # commands through without removal of \ escapes INIT.
19312 if test -n "\${ZSH_VERSION+set}" ; then
19313 setopt NO_GLOB_SUBST
19314 fi
19315
19316
19317 PACKAGE='$PACKAGE'
19318 VERSION='$VERSION'
19319 TIMESTAMP='$TIMESTAMP'
19320 RM='$RM'
19321 ofile='$ofile'
19322
19323
19324
19325
19326 _ACEOF
19327
19328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19329
19330 # Handling of arguments.
19331 for ac_config_target in $ac_config_targets
19332 do
19333 case $ac_config_target in
19334 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19335 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19336 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19337 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19338 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19339 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
19340 "libfs.pc") CONFIG_FILES="$CONFIG_FILES libfs.pc" ;;
19341
19342 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19343 esac
19344 done
19345
19346
19347 # If the user did not use the arguments to specify the items to instantiate,
19348 # then the envvar interface is used. Set only those that are not.
19349 # We use the long form for the default assignment because of an extremely
19350 # bizarre bug on SunOS 4.1.3.
19351 if $ac_need_defaults; then
19352 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19353 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19354 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19355 fi
19356
19357 # Have a temporary directory for convenience. Make it in the build tree
19358 # simply because there is no reason against having it here, and in addition,
19359 # creating and moving files from /tmp can sometimes cause problems.
19360 # Hook for its removal unless debugging.
19361 # Note that there is a small window in which the directory will not be cleaned:
19362 # after its creation but before its name has been assigned to `$tmp'.
19363 $debug ||
19364 {
19365 tmp= ac_tmp=
19366 trap 'exit_status=$?
19367 : "${ac_tmp:=$tmp}"
19368 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19369 ' 0
19370 trap 'as_fn_exit 1' 1 2 13 15
19371 }
19372 # Create a (secure) tmp directory for tmp files.
19373
19374 {
19375 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19376 test -d "$tmp"
19377 } ||
19378 {
19379 tmp=./conf$$-$RANDOM
19380 (umask 077 && mkdir "$tmp")
19381 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19382 ac_tmp=$tmp
19383
19384 # Set up the scripts for CONFIG_FILES section.
19385 # No need to generate them if there are no CONFIG_FILES.
19386 # This happens for instance with `./config.status config.h'.
19387 if test -n "$CONFIG_FILES"; then
19388
19389
19390 ac_cr=`echo X | tr X '\015'`
19391 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19392 # But we know of no other shell where ac_cr would be empty at this
19393 # point, so we can use a bashism as a fallback.
19394 if test "x$ac_cr" = x; then
19395 eval ac_cr=\$\'\\r\'
19396 fi
19397 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19398 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19399 ac_cs_awk_cr='\\r'
19400 else
19401 ac_cs_awk_cr=$ac_cr
19402 fi
19403
19404 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19405 _ACEOF
19406
19407
19408 {
19409 echo "cat >conf$$subs.awk <<_ACEOF" &&
19410 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19411 echo "_ACEOF"
19412 } >conf$$subs.sh ||
19413 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19414 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19415 ac_delim='%!_!# '
19416 for ac_last_try in false false false false false :; do
19417 . ./conf$$subs.sh ||
19418 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19419
19420 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19421 if test $ac_delim_n = $ac_delim_num; then
19422 break
19423 elif $ac_last_try; then
19424 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19425 else
19426 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19427 fi
19428 done
19429 rm -f conf$$subs.sh
19430
19431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19432 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19433 _ACEOF
19434 sed -n '
19435 h
19436 s/^/S["/; s/!.*/"]=/
19437 p
19438 g
19439 s/^[^!]*!//
19440 :repl
19441 t repl
19442 s/'"$ac_delim"'$//
19443 t delim
19444 :nl
19445 h
19446 s/\(.\{148\}\)..*/\1/
19447 t more1
19448 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19449 p
19450 n
19451 b repl
19452 :more1
19453 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19454 p
19455 g
19456 s/.\{148\}//
19457 t nl
19458 :delim
19459 h
19460 s/\(.\{148\}\)..*/\1/
19461 t more2
19462 s/["\\]/\\&/g; s/^/"/; s/$/"/
19463 p
19464 b
19465 :more2
19466 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19467 p
19468 g
19469 s/.\{148\}//
19470 t delim
19471 ' <conf$$subs.awk | sed '
19472 /^[^""]/{
19473 N
19474 s/\n//
19475 }
19476 ' >>$CONFIG_STATUS || ac_write_fail=1
19477 rm -f conf$$subs.awk
19478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19479 _ACAWK
19480 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19481 for (key in S) S_is_set[key] = 1
19482 FS = ""
19483
19484 }
19485 {
19486 line = $ 0
19487 nfields = split(line, field, "@")
19488 substed = 0
19489 len = length(field[1])
19490 for (i = 2; i < nfields; i++) {
19491 key = field[i]
19492 keylen = length(key)
19493 if (S_is_set[key]) {
19494 value = S[key]
19495 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19496 len += length(value) + length(field[++i])
19497 substed = 1
19498 } else
19499 len += 1 + keylen
19500 }
19501
19502 print line
19503 }
19504
19505 _ACAWK
19506 _ACEOF
19507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19508 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19509 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19510 else
19511 cat
19512 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19513 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19514 _ACEOF
19515
19516 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19517 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19518 # trailing colons and then remove the whole line if VPATH becomes empty
19519 # (actually we leave an empty line to preserve line numbers).
19520 if test "x$srcdir" = x.; then
19521 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19522 h
19523 s///
19524 s/^/:/
19525 s/[ ]*$/:/
19526 s/:\$(srcdir):/:/g
19527 s/:\${srcdir}:/:/g
19528 s/:@srcdir@:/:/g
19529 s/^:*//
19530 s/:*$//
19531 x
19532 s/\(=[ ]*\).*/\1/
19533 G
19534 s/\n//
19535 s/^[^=]*=[ ]*$//
19536 }'
19537 fi
19538
19539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19540 fi # test -n "$CONFIG_FILES"
19541
19542 # Set up the scripts for CONFIG_HEADERS section.
19543 # No need to generate them if there are no CONFIG_HEADERS.
19544 # This happens for instance with `./config.status Makefile'.
19545 if test -n "$CONFIG_HEADERS"; then
19546 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19547 BEGIN {
19548 _ACEOF
19549
19550 # Transform confdefs.h into an awk script `defines.awk', embedded as
19551 # here-document in config.status, that substitutes the proper values into
19552 # config.h.in to produce config.h.
19553
19554 # Create a delimiter string that does not exist in confdefs.h, to ease
19555 # handling of long lines.
19556 ac_delim='%!_!# '
19557 for ac_last_try in false false :; do
19558 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19559 if test -z "$ac_tt"; then
19560 break
19561 elif $ac_last_try; then
19562 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19563 else
19564 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19565 fi
19566 done
19567
19568 # For the awk script, D is an array of macro values keyed by name,
19569 # likewise P contains macro parameters if any. Preserve backslash
19570 # newline sequences.
19571
19572 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19573 sed -n '
19574 s/.\{148\}/&'"$ac_delim"'/g
19575 t rset
19576 :rset
19577 s/^[ ]*#[ ]*define[ ][ ]*/ /
19578 t def
19579 d
19580 :def
19581 s/\\$//
19582 t bsnl
19583 s/["\\]/\\&/g
19584 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19585 D["\1"]=" \3"/p
19586 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19587 d
19588 :bsnl
19589 s/["\\]/\\&/g
19590 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19591 D["\1"]=" \3\\\\\\n"\\/p
19592 t cont
19593 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19594 t cont
19595 d
19596 :cont
19597 n
19598 s/.\{148\}/&'"$ac_delim"'/g
19599 t clear
19600 :clear
19601 s/\\$//
19602 t bsnlc
19603 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19604 d
19605 :bsnlc
19606 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19607 b cont
19608 ' <confdefs.h | sed '
19609 s/'"$ac_delim"'/"\\\
19610 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19611
19612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19613 for (key in D) D_is_set[key] = 1
19614 FS = ""
19615 }
19616 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19617 line = \$ 0
19618 split(line, arg, " ")
19619 if (arg[1] == "#") {
19620 defundef = arg[2]
19621 mac1 = arg[3]
19622 } else {
19623 defundef = substr(arg[1], 2)
19624 mac1 = arg[2]
19625 }
19626 split(mac1, mac2, "(") #)
19627 macro = mac2[1]
19628 prefix = substr(line, 1, index(line, defundef) - 1)
19629 if (D_is_set[macro]) {
19630 # Preserve the white space surrounding the "#".
19631 print prefix "define", macro P[macro] D[macro]
19632 next
19633 } else {
19634 # Replace #undef with comments. This is necessary, for example,
19635 # in the case of _POSIX_SOURCE, which is predefined and required
19636 # on some systems where configure will not decide to define it.
19637 if (defundef == "undef") {
19638 print "/*", prefix defundef, macro, "*/"
19639 next
19640 }
19641 }
19642 }
19643 { print }
19644 _ACAWK
19645 _ACEOF
19646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19647 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19648 fi # test -n "$CONFIG_HEADERS"
19649
19650
19651 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19652 shift
19653 for ac_tag
19654 do
19655 case $ac_tag in
19656 :[FHLC]) ac_mode=$ac_tag; continue;;
19657 esac
19658 case $ac_mode$ac_tag in
19659 :[FHL]*:*);;
19660 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19661 :[FH]-) ac_tag=-:-;;
19662 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19663 esac
19664 ac_save_IFS=$IFS
19665 IFS=:
19666 set x $ac_tag
19667 IFS=$ac_save_IFS
19668 shift
19669 ac_file=$1
19670 shift
19671
19672 case $ac_mode in
19673 :L) ac_source=$1;;
19674 :[FH])
19675 ac_file_inputs=
19676 for ac_f
19677 do
19678 case $ac_f in
19679 -) ac_f="$ac_tmp/stdin";;
19680 *) # Look for the file first in the build tree, then in the source tree
19681 # (if the path is not absolute). The absolute path cannot be DOS-style,
19682 # because $ac_f cannot contain `:'.
19683 test -f "$ac_f" ||
19684 case $ac_f in
19685 [\\/$]*) false;;
19686 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19687 esac ||
19688 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19689 esac
19690 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19691 as_fn_append ac_file_inputs " '$ac_f'"
19692 done
19693
19694 # Let's still pretend it is `configure' which instantiates (i.e., don't
19695 # use $as_me), people would be surprised to read:
19696 # /* config.h. Generated by config.status. */
19697 configure_input='Generated from '`
19698 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19699 `' by configure.'
19700 if test x"$ac_file" != x-; then
19701 configure_input="$ac_file. $configure_input"
19702 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19703 $as_echo "$as_me: creating $ac_file" >&6;}
19704 fi
19705 # Neutralize special characters interpreted by sed in replacement strings.
19706 case $configure_input in #(
19707 *\&* | *\|* | *\\* )
19708 ac_sed_conf_input=`$as_echo "$configure_input" |
19709 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19710 *) ac_sed_conf_input=$configure_input;;
19711 esac
19712
19713 case $ac_tag in
19714 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19715 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19716 esac
19717 ;;
19718 esac
19719
19720 ac_dir=`$as_dirname -- "$ac_file" ||
19721 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19722 X"$ac_file" : 'X\(//\)[^/]' \| \
19723 X"$ac_file" : 'X\(//\)$' \| \
19724 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19725 $as_echo X"$ac_file" |
19726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19727 s//\1/
19728 q
19729 }
19730 /^X\(\/\/\)[^/].*/{
19731 s//\1/
19732 q
19733 }
19734 /^X\(\/\/\)$/{
19735 s//\1/
19736 q
19737 }
19738 /^X\(\/\).*/{
19739 s//\1/
19740 q
19741 }
19742 s/.*/./; q'`
19743 as_dir="$ac_dir"; as_fn_mkdir_p
19744 ac_builddir=.
19745
19746 case "$ac_dir" in
19747 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19748 *)
19749 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19750 # A ".." for each directory in $ac_dir_suffix.
19751 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19752 case $ac_top_builddir_sub in
19753 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19754 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19755 esac ;;
19756 esac
19757 ac_abs_top_builddir=$ac_pwd
19758 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19759 # for backward compatibility:
19760 ac_top_builddir=$ac_top_build_prefix
19761
19762 case $srcdir in
19763 .) # We are building in place.
19764 ac_srcdir=.
19765 ac_top_srcdir=$ac_top_builddir_sub
19766 ac_abs_top_srcdir=$ac_pwd ;;
19767 [\\/]* | ?:[\\/]* ) # Absolute name.
19768 ac_srcdir=$srcdir$ac_dir_suffix;
19769 ac_top_srcdir=$srcdir
19770 ac_abs_top_srcdir=$srcdir ;;
19771 *) # Relative name.
19772 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19773 ac_top_srcdir=$ac_top_build_prefix$srcdir
19774 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19775 esac
19776 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19777
19778
19779 case $ac_mode in
19780 :F)
19781 #
19782 # CONFIG_FILE
19783 #
19784
19785 case $INSTALL in
19786 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19787 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19788 esac
19789 ac_MKDIR_P=$MKDIR_P
19790 case $MKDIR_P in
19791 [\\/$]* | ?:[\\/]* ) ;;
19792 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19793 esac
19794 _ACEOF
19795
19796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19797 # If the template does not know about datarootdir, expand it.
19798 # FIXME: This hack should be removed a few years after 2.60.
19799 ac_datarootdir_hack=; ac_datarootdir_seen=
19800 ac_sed_dataroot='
19801 /datarootdir/ {
19802 p
19803 q
19804 }
19805 /@datadir@/p
19806 /@docdir@/p
19807 /@infodir@/p
19808 /@localedir@/p
19809 /@mandir@/p'
19810 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19811 *datarootdir*) ac_datarootdir_seen=yes;;
19812 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19814 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19815 _ACEOF
19816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19817 ac_datarootdir_hack='
19818 s&@datadir@&$datadir&g
19819 s&@docdir@&$docdir&g
19820 s&@infodir@&$infodir&g
19821 s&@localedir@&$localedir&g
19822 s&@mandir@&$mandir&g
19823 s&\\\${datarootdir}&$datarootdir&g' ;;
19824 esac
19825 _ACEOF
19826
19827 # Neutralize VPATH when `$srcdir' = `.'.
19828 # Shell code in configure.ac might set extrasub.
19829 # FIXME: do we really want to maintain this feature?
19830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19831 ac_sed_extra="$ac_vpsub
19832 $extrasub
19833 _ACEOF
19834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19835 :t
19836 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19837 s|@configure_input@|$ac_sed_conf_input|;t t
19838 s&@top_builddir@&$ac_top_builddir_sub&;t t
19839 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19840 s&@srcdir@&$ac_srcdir&;t t
19841 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19842 s&@top_srcdir@&$ac_top_srcdir&;t t
19843 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19844 s&@builddir@&$ac_builddir&;t t
19845 s&@abs_builddir@&$ac_abs_builddir&;t t
19846 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19847 s&@INSTALL@&$ac_INSTALL&;t t
19848 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19849 $ac_datarootdir_hack
19850 "
19851 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19852 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19853
19854 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19855 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19856 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19857 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19859 which seems to be undefined. Please make sure it is defined" >&5
19860 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19861 which seems to be undefined. Please make sure it is defined" >&2;}
19862
19863 rm -f "$ac_tmp/stdin"
19864 case $ac_file in
19865 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19866 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19867 esac \
19868 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19869 ;;
19870 :H)
19871 #
19872 # CONFIG_HEADER
19873 #
19874 if test x"$ac_file" != x-; then
19875 {
19876 $as_echo "/* $configure_input */" \
19877 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19878 } >"$ac_tmp/config.h" \
19879 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19880 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19881 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19882 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19883 else
19884 rm -f "$ac_file"
19885 mv "$ac_tmp/config.h" "$ac_file" \
19886 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19887 fi
19888 else
19889 $as_echo "/* $configure_input */" \
19890 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19891 || as_fn_error $? "could not create -" "$LINENO" 5
19892 fi
19893 # Compute "$ac_file"'s index in $config_headers.
19894 _am_arg="$ac_file"
19895 _am_stamp_count=1
19896 for _am_header in $config_headers :; do
19897 case $_am_header in
19898 $_am_arg | $_am_arg:* )
19899 break ;;
19900 * )
19901 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19902 esac
19903 done
19904 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19905 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19906 X"$_am_arg" : 'X\(//\)[^/]' \| \
19907 X"$_am_arg" : 'X\(//\)$' \| \
19908 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19909 $as_echo X"$_am_arg" |
19910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19911 s//\1/
19912 q
19913 }
19914 /^X\(\/\/\)[^/].*/{
19915 s//\1/
19916 q
19917 }
19918 /^X\(\/\/\)$/{
19919 s//\1/
19920 q
19921 }
19922 /^X\(\/\).*/{
19923 s//\1/
19924 q
19925 }
19926 s/.*/./; q'`/stamp-h$_am_stamp_count
19927 ;;
19928
19929 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19930 $as_echo "$as_me: executing $ac_file commands" >&6;}
19931 ;;
19932 esac
19933
19934
19935 case $ac_file$ac_mode in
19936 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19937 # Older Autoconf quotes --file arguments for eval, but not when files
19938 # are listed without --file. Let's play safe and only enable the eval
19939 # if we detect the quoting.
19940 case $CONFIG_FILES in
19941 *\'*) eval set x "$CONFIG_FILES" ;;
19942 *) set x $CONFIG_FILES ;;
19943 esac
19944 shift
19945 for mf
19946 do
19947 # Strip MF so we end up with the name of the file.
19948 mf=`echo "$mf" | sed -e 's/:.*$//'`
19949 # Check whether this is an Automake generated Makefile or not.
19950 # We used to match only the files named 'Makefile.in', but
19951 # some people rename them; so instead we look at the file content.
19952 # Grep'ing the first line is not enough: some people post-process
19953 # each Makefile.in and add a new line on top of each file to say so.
19954 # Grep'ing the whole file is not good either: AIX grep has a line
19955 # limit of 2048, but all sed's we know have understand at least 4000.
19956 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19957 dirpart=`$as_dirname -- "$mf" ||
19958 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19959 X"$mf" : 'X\(//\)[^/]' \| \
19960 X"$mf" : 'X\(//\)$' \| \
19961 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19962 $as_echo X"$mf" |
19963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19964 s//\1/
19965 q
19966 }
19967 /^X\(\/\/\)[^/].*/{
19968 s//\1/
19969 q
19970 }
19971 /^X\(\/\/\)$/{
19972 s//\1/
19973 q
19974 }
19975 /^X\(\/\).*/{
19976 s//\1/
19977 q
19978 }
19979 s/.*/./; q'`
19980 else
19981 continue
19982 fi
19983 # Extract the definition of DEPDIR, am__include, and am__quote
19984 # from the Makefile without running 'make'.
19985 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19986 test -z "$DEPDIR" && continue
19987 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19988 test -z "$am__include" && continue
19989 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19990 # Find all dependency output files, they are included files with
19991 # $(DEPDIR) in their names. We invoke sed twice because it is the
19992 # simplest approach to changing $(DEPDIR) to its actual value in the
19993 # expansion.
19994 for file in `sed -n "
19995 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19996 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19997 # Make sure the directory exists.
19998 test -f "$dirpart/$file" && continue
19999 fdir=`$as_dirname -- "$file" ||
20000 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20001 X"$file" : 'X\(//\)[^/]' \| \
20002 X"$file" : 'X\(//\)$' \| \
20003 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20004 $as_echo X"$file" |
20005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20006 s//\1/
20007 q
20008 }
20009 /^X\(\/\/\)[^/].*/{
20010 s//\1/
20011 q
20012 }
20013 /^X\(\/\/\)$/{
20014 s//\1/
20015 q
20016 }
20017 /^X\(\/\).*/{
20018 s//\1/
20019 q
20020 }
20021 s/.*/./; q'`
20022 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20023 # echo "creating $dirpart/$file"
20024 echo '# dummy' > "$dirpart/$file"
20025 done
20026 done
20027 }
20028 ;;
20029 "libtool":C)
20030
20031 # See if we are running on zsh, and set the options which allow our
20032 # commands through without removal of \ escapes.
20033 if test -n "${ZSH_VERSION+set}" ; then
20034 setopt NO_GLOB_SUBST
20035 fi
20036
20037 cfgfile="${ofile}T"
20038 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20039 $RM "$cfgfile"
20040
20041 cat <<_LT_EOF >> "$cfgfile"
20042 #! $SHELL
20043
20044 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20045 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20046 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20047 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20048 #
20049 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20050 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20051 # Foundation, Inc.
20052 # Written by Gordon Matzigkeit, 1996
20053 #
20054 # This file is part of GNU Libtool.
20055 #
20056 # GNU Libtool is free software; you can redistribute it and/or
20057 # modify it under the terms of the GNU General Public License as
20058 # published by the Free Software Foundation; either version 2 of
20059 # the License, or (at your option) any later version.
20060 #
20061 # As a special exception to the GNU General Public License,
20062 # if you distribute this file as part of a program or library that
20063 # is built using GNU Libtool, you may include this file under the
20064 # same distribution terms that you use for the rest of that program.
20065 #
20066 # GNU Libtool is distributed in the hope that it will be useful,
20067 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20068 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20069 # GNU General Public License for more details.
20070 #
20071 # You should have received a copy of the GNU General Public License
20072 # along with GNU Libtool; see the file COPYING. If not, a copy
20073 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20074 # obtained by writing to the Free Software Foundation, Inc.,
20075 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20076
20077
20078 # The names of the tagged configurations supported by this script.
20079 available_tags=""
20080
20081 # ### BEGIN LIBTOOL CONFIG
20082
20083 # Which release of libtool.m4 was used?
20084 macro_version=$macro_version
20085 macro_revision=$macro_revision
20086
20087 # Whether or not to build shared libraries.
20088 build_libtool_libs=$enable_shared
20089
20090 # Whether or not to build static libraries.
20091 build_old_libs=$enable_static
20092
20093 # What type of objects to build.
20094 pic_mode=$pic_mode
20095
20096 # Whether or not to optimize for fast installation.
20097 fast_install=$enable_fast_install
20098
20099 # Shell to use when invoking shell scripts.
20100 SHELL=$lt_SHELL
20101
20102 # An echo program that protects backslashes.
20103 ECHO=$lt_ECHO
20104
20105 # The PATH separator for the build system.
20106 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20107
20108 # The host system.
20109 host_alias=$host_alias
20110 host=$host
20111 host_os=$host_os
20112
20113 # The build system.
20114 build_alias=$build_alias
20115 build=$build
20116 build_os=$build_os
20117
20118 # A sed program that does not truncate output.
20119 SED=$lt_SED
20120
20121 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20122 Xsed="\$SED -e 1s/^X//"
20123
20124 # A grep program that handles long lines.
20125 GREP=$lt_GREP
20126
20127 # An ERE matcher.
20128 EGREP=$lt_EGREP
20129
20130 # A literal string matcher.
20131 FGREP=$lt_FGREP
20132
20133 # A BSD- or MS-compatible name lister.
20134 NM=$lt_NM
20135
20136 # Whether we need soft or hard links.
20137 LN_S=$lt_LN_S
20138
20139 # What is the maximum length of a command?
20140 max_cmd_len=$max_cmd_len
20141
20142 # Object file suffix (normally "o").
20143 objext=$ac_objext
20144
20145 # Executable file suffix (normally "").
20146 exeext=$exeext
20147
20148 # whether the shell understands "unset".
20149 lt_unset=$lt_unset
20150
20151 # turn spaces into newlines.
20152 SP2NL=$lt_lt_SP2NL
20153
20154 # turn newlines into spaces.
20155 NL2SP=$lt_lt_NL2SP
20156
20157 # convert \$build file names to \$host format.
20158 to_host_file_cmd=$lt_cv_to_host_file_cmd
20159
20160 # convert \$build files to toolchain format.
20161 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20162
20163 # An object symbol dumper.
20164 OBJDUMP=$lt_OBJDUMP
20165
20166 # Method to check whether dependent libraries are shared objects.
20167 deplibs_check_method=$lt_deplibs_check_method
20168
20169 # Command to use when deplibs_check_method = "file_magic".
20170 file_magic_cmd=$lt_file_magic_cmd
20171
20172 # How to find potential files when deplibs_check_method = "file_magic".
20173 file_magic_glob=$lt_file_magic_glob
20174
20175 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20176 want_nocaseglob=$lt_want_nocaseglob
20177
20178 # DLL creation program.
20179 DLLTOOL=$lt_DLLTOOL
20180
20181 # Command to associate shared and link libraries.
20182 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20183
20184 # The archiver.
20185 AR=$lt_AR
20186
20187 # Flags to create an archive.
20188 AR_FLAGS=$lt_AR_FLAGS
20189
20190 # How to feed a file listing to the archiver.
20191 archiver_list_spec=$lt_archiver_list_spec
20192
20193 # A symbol stripping program.
20194 STRIP=$lt_STRIP
20195
20196 # Commands used to install an old-style archive.
20197 RANLIB=$lt_RANLIB
20198 old_postinstall_cmds=$lt_old_postinstall_cmds
20199 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20200
20201 # Whether to use a lock for old archive extraction.
20202 lock_old_archive_extraction=$lock_old_archive_extraction
20203
20204 # A C compiler.
20205 LTCC=$lt_CC
20206
20207 # LTCC compiler flags.
20208 LTCFLAGS=$lt_CFLAGS
20209
20210 # Take the output of nm and produce a listing of raw symbols and C names.
20211 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20212
20213 # Transform the output of nm in a proper C declaration.
20214 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20215
20216 # Transform the output of nm in a C name address pair.
20217 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20218
20219 # Transform the output of nm in a C name address pair when lib prefix is needed.
20220 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20221
20222 # Specify filename containing input files for \$NM.
20223 nm_file_list_spec=$lt_nm_file_list_spec
20224
20225 # The root where to search for dependent libraries,and in which our libraries should be installed.
20226 lt_sysroot=$lt_sysroot
20227
20228 # The name of the directory that contains temporary libtool files.
20229 objdir=$objdir
20230
20231 # Used to examine libraries when file_magic_cmd begins with "file".
20232 MAGIC_CMD=$MAGIC_CMD
20233
20234 # Must we lock files when doing compilation?
20235 need_locks=$lt_need_locks
20236
20237 # Manifest tool.
20238 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20239
20240 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20241 DSYMUTIL=$lt_DSYMUTIL
20242
20243 # Tool to change global to local symbols on Mac OS X.
20244 NMEDIT=$lt_NMEDIT
20245
20246 # Tool to manipulate fat objects and archives on Mac OS X.
20247 LIPO=$lt_LIPO
20248
20249 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20250 OTOOL=$lt_OTOOL
20251
20252 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20253 OTOOL64=$lt_OTOOL64
20254
20255 # Old archive suffix (normally "a").
20256 libext=$libext
20257
20258 # Shared library suffix (normally ".so").
20259 shrext_cmds=$lt_shrext_cmds
20260
20261 # The commands to extract the exported symbol list from a shared archive.
20262 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20263
20264 # Variables whose values should be saved in libtool wrapper scripts and
20265 # restored at link time.
20266 variables_saved_for_relink=$lt_variables_saved_for_relink
20267
20268 # Do we need the "lib" prefix for modules?
20269 need_lib_prefix=$need_lib_prefix
20270
20271 # Do we need a version for libraries?
20272 need_version=$need_version
20273
20274 # Library versioning type.
20275 version_type=$version_type
20276
20277 # Shared library runtime path variable.
20278 runpath_var=$runpath_var
20279
20280 # Shared library path variable.
20281 shlibpath_var=$shlibpath_var
20282
20283 # Is shlibpath searched before the hard-coded library search path?
20284 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20285
20286 # Format of library name prefix.
20287 libname_spec=$lt_libname_spec
20288
20289 # List of archive names. First name is the real one, the rest are links.
20290 # The last name is the one that the linker finds with -lNAME
20291 library_names_spec=$lt_library_names_spec
20292
20293 # The coded name of the library, if different from the real name.
20294 soname_spec=$lt_soname_spec
20295
20296 # Permission mode override for installation of shared libraries.
20297 install_override_mode=$lt_install_override_mode
20298
20299 # Command to use after installation of a shared archive.
20300 postinstall_cmds=$lt_postinstall_cmds
20301
20302 # Command to use after uninstallation of a shared archive.
20303 postuninstall_cmds=$lt_postuninstall_cmds
20304
20305 # Commands used to finish a libtool library installation in a directory.
20306 finish_cmds=$lt_finish_cmds
20307
20308 # As "finish_cmds", except a single script fragment to be evaled but
20309 # not shown.
20310 finish_eval=$lt_finish_eval
20311
20312 # Whether we should hardcode library paths into libraries.
20313 hardcode_into_libs=$hardcode_into_libs
20314
20315 # Compile-time system search path for libraries.
20316 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20317
20318 # Run-time system search path for libraries.
20319 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20320
20321 # Whether dlopen is supported.
20322 dlopen_support=$enable_dlopen
20323
20324 # Whether dlopen of programs is supported.
20325 dlopen_self=$enable_dlopen_self
20326
20327 # Whether dlopen of statically linked programs is supported.
20328 dlopen_self_static=$enable_dlopen_self_static
20329
20330 # Commands to strip libraries.
20331 old_striplib=$lt_old_striplib
20332 striplib=$lt_striplib
20333
20334
20335 # The linker used to build libraries.
20336 LD=$lt_LD
20337
20338 # How to create reloadable object files.
20339 reload_flag=$lt_reload_flag
20340 reload_cmds=$lt_reload_cmds
20341
20342 # Commands used to build an old-style archive.
20343 old_archive_cmds=$lt_old_archive_cmds
20344
20345 # A language specific compiler.
20346 CC=$lt_compiler
20347
20348 # Is the compiler the GNU compiler?
20349 with_gcc=$GCC
20350
20351 # Compiler flag to turn off builtin functions.
20352 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20353
20354 # Additional compiler flags for building library objects.
20355 pic_flag=$lt_lt_prog_compiler_pic
20356
20357 # How to pass a linker flag through the compiler.
20358 wl=$lt_lt_prog_compiler_wl
20359
20360 # Compiler flag to prevent dynamic linking.
20361 link_static_flag=$lt_lt_prog_compiler_static
20362
20363 # Does compiler simultaneously support -c and -o options?
20364 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20365
20366 # Whether or not to add -lc for building shared libraries.
20367 build_libtool_need_lc=$archive_cmds_need_lc
20368
20369 # Whether or not to disallow shared libs when runtime libs are static.
20370 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20371
20372 # Compiler flag to allow reflexive dlopens.
20373 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20374
20375 # Compiler flag to generate shared objects directly from archives.
20376 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20377
20378 # Whether the compiler copes with passing no objects directly.
20379 compiler_needs_object=$lt_compiler_needs_object
20380
20381 # Create an old-style archive from a shared archive.
20382 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20383
20384 # Create a temporary old-style archive to link instead of a shared archive.
20385 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20386
20387 # Commands used to build a shared archive.
20388 archive_cmds=$lt_archive_cmds
20389 archive_expsym_cmds=$lt_archive_expsym_cmds
20390
20391 # Commands used to build a loadable module if different from building
20392 # a shared archive.
20393 module_cmds=$lt_module_cmds
20394 module_expsym_cmds=$lt_module_expsym_cmds
20395
20396 # Whether we are building with GNU ld or not.
20397 with_gnu_ld=$lt_with_gnu_ld
20398
20399 # Flag that allows shared libraries with undefined symbols to be built.
20400 allow_undefined_flag=$lt_allow_undefined_flag
20401
20402 # Flag that enforces no undefined symbols.
20403 no_undefined_flag=$lt_no_undefined_flag
20404
20405 # Flag to hardcode \$libdir into a binary during linking.
20406 # This must work even if \$libdir does not exist
20407 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20408
20409 # Whether we need a single "-rpath" flag with a separated argument.
20410 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20411
20412 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20413 # DIR into the resulting binary.
20414 hardcode_direct=$hardcode_direct
20415
20416 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20417 # DIR into the resulting binary and the resulting library dependency is
20418 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20419 # library is relocated.
20420 hardcode_direct_absolute=$hardcode_direct_absolute
20421
20422 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20423 # into the resulting binary.
20424 hardcode_minus_L=$hardcode_minus_L
20425
20426 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20427 # into the resulting binary.
20428 hardcode_shlibpath_var=$hardcode_shlibpath_var
20429
20430 # Set to "yes" if building a shared library automatically hardcodes DIR
20431 # into the library and all subsequent libraries and executables linked
20432 # against it.
20433 hardcode_automatic=$hardcode_automatic
20434
20435 # Set to yes if linker adds runtime paths of dependent libraries
20436 # to runtime path list.
20437 inherit_rpath=$inherit_rpath
20438
20439 # Whether libtool must link a program against all its dependency libraries.
20440 link_all_deplibs=$link_all_deplibs
20441
20442 # Set to "yes" if exported symbols are required.
20443 always_export_symbols=$always_export_symbols
20444
20445 # The commands to list exported symbols.
20446 export_symbols_cmds=$lt_export_symbols_cmds
20447
20448 # Symbols that should not be listed in the preloaded symbols.
20449 exclude_expsyms=$lt_exclude_expsyms
20450
20451 # Symbols that must always be exported.
20452 include_expsyms=$lt_include_expsyms
20453
20454 # Commands necessary for linking programs (against libraries) with templates.
20455 prelink_cmds=$lt_prelink_cmds
20456
20457 # Commands necessary for finishing linking programs.
20458 postlink_cmds=$lt_postlink_cmds
20459
20460 # Specify filename containing input files.
20461 file_list_spec=$lt_file_list_spec
20462
20463 # How to hardcode a shared library path into an executable.
20464 hardcode_action=$hardcode_action
20465
20466 # ### END LIBTOOL CONFIG
20467
20468 _LT_EOF
20469
20470 case $host_os in
20471 aix3*)
20472 cat <<\_LT_EOF >> "$cfgfile"
20473 # AIX sometimes has problems with the GCC collect2 program. For some
20474 # reason, if we set the COLLECT_NAMES environment variable, the problems
20475 # vanish in a puff of smoke.
20476 if test "X${COLLECT_NAMES+set}" != Xset; then
20477 COLLECT_NAMES=
20478 export COLLECT_NAMES
20479 fi
20480 _LT_EOF
20481 ;;
20482 esac
20483
20484
20485 ltmain="$ac_aux_dir/ltmain.sh"
20486
20487
20488 # We use sed instead of cat because bash on DJGPP gets confused if
20489 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20490 # text mode, it properly converts lines to CR/LF. This bash problem
20491 # is reportedly fixed, but why not run on old versions too?
20492 sed '$q' "$ltmain" >> "$cfgfile" \
20493 || (rm -f "$cfgfile"; exit 1)
20494
20495 if test x"$xsi_shell" = xyes; then
20496 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20497 func_dirname ()\
20498 {\
20499 \ case ${1} in\
20500 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20501 \ * ) func_dirname_result="${3}" ;;\
20502 \ esac\
20503 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20504 && mv -f "$cfgfile.tmp" "$cfgfile" \
20505 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20506 test 0 -eq $? || _lt_function_replace_fail=:
20507
20508
20509 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20510 func_basename ()\
20511 {\
20512 \ func_basename_result="${1##*/}"\
20513 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20514 && mv -f "$cfgfile.tmp" "$cfgfile" \
20515 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20516 test 0 -eq $? || _lt_function_replace_fail=:
20517
20518
20519 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20520 func_dirname_and_basename ()\
20521 {\
20522 \ case ${1} in\
20523 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20524 \ * ) func_dirname_result="${3}" ;;\
20525 \ esac\
20526 \ func_basename_result="${1##*/}"\
20527 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20528 && mv -f "$cfgfile.tmp" "$cfgfile" \
20529 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20530 test 0 -eq $? || _lt_function_replace_fail=:
20531
20532
20533 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20534 func_stripname ()\
20535 {\
20536 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20537 \ # positional parameters, so assign one to ordinary parameter first.\
20538 \ func_stripname_result=${3}\
20539 \ func_stripname_result=${func_stripname_result#"${1}"}\
20540 \ func_stripname_result=${func_stripname_result%"${2}"}\
20541 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20542 && mv -f "$cfgfile.tmp" "$cfgfile" \
20543 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20544 test 0 -eq $? || _lt_function_replace_fail=:
20545
20546
20547 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20548 func_split_long_opt ()\
20549 {\
20550 \ func_split_long_opt_name=${1%%=*}\
20551 \ func_split_long_opt_arg=${1#*=}\
20552 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20553 && mv -f "$cfgfile.tmp" "$cfgfile" \
20554 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20555 test 0 -eq $? || _lt_function_replace_fail=:
20556
20557
20558 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20559 func_split_short_opt ()\
20560 {\
20561 \ func_split_short_opt_arg=${1#??}\
20562 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20563 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20564 && mv -f "$cfgfile.tmp" "$cfgfile" \
20565 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20566 test 0 -eq $? || _lt_function_replace_fail=:
20567
20568
20569 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20570 func_lo2o ()\
20571 {\
20572 \ case ${1} in\
20573 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20574 \ *) func_lo2o_result=${1} ;;\
20575 \ esac\
20576 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20577 && mv -f "$cfgfile.tmp" "$cfgfile" \
20578 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20579 test 0 -eq $? || _lt_function_replace_fail=:
20580
20581
20582 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20583 func_xform ()\
20584 {\
20585 func_xform_result=${1%.*}.lo\
20586 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20587 && mv -f "$cfgfile.tmp" "$cfgfile" \
20588 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20589 test 0 -eq $? || _lt_function_replace_fail=:
20590
20591
20592 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20593 func_arith ()\
20594 {\
20595 func_arith_result=$(( $* ))\
20596 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20597 && mv -f "$cfgfile.tmp" "$cfgfile" \
20598 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20599 test 0 -eq $? || _lt_function_replace_fail=:
20600
20601
20602 sed -e '/^func_len ()$/,/^} # func_len /c\
20603 func_len ()\
20604 {\
20605 func_len_result=${#1}\
20606 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20607 && mv -f "$cfgfile.tmp" "$cfgfile" \
20608 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20609 test 0 -eq $? || _lt_function_replace_fail=:
20610
20611 fi
20612
20613 if test x"$lt_shell_append" = xyes; then
20614 sed -e '/^func_append ()$/,/^} # func_append /c\
20615 func_append ()\
20616 {\
20617 eval "${1}+=\\${2}"\
20618 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20619 && mv -f "$cfgfile.tmp" "$cfgfile" \
20620 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20621 test 0 -eq $? || _lt_function_replace_fail=:
20622
20623
20624 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20625 func_append_quoted ()\
20626 {\
20627 \ func_quote_for_eval "${2}"\
20628 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20629 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20630 && mv -f "$cfgfile.tmp" "$cfgfile" \
20631 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20632 test 0 -eq $? || _lt_function_replace_fail=:
20633
20634
20635 # Save a `func_append' function call where possible by direct use of '+='
20636 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20637 && mv -f "$cfgfile.tmp" "$cfgfile" \
20638 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20639 test 0 -eq $? || _lt_function_replace_fail=:
20640 else
20641 # Save a `func_append' function call even when '+=' is not available
20642 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20643 && mv -f "$cfgfile.tmp" "$cfgfile" \
20644 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20645 test 0 -eq $? || _lt_function_replace_fail=:
20646 fi
20647
20648 if test x"$_lt_function_replace_fail" = x":"; then
20649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20650 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20651 fi
20652
20653
20654 mv -f "$cfgfile" "$ofile" ||
20655 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20656 chmod +x "$ofile"
20657
20658 ;;
20659
20660 esac
20661 done # for ac_tag
20662
20663
20664 as_fn_exit 0
20665 _ACEOF
20666 ac_clean_files=$ac_clean_files_save
20667
20668 test $ac_write_fail = 0 ||
20669 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20670
20671
20672 # configure is writing to config.log, and then calls config.status.
20673 # config.status does its own redirection, appending to config.log.
20674 # Unfortunately, on DOS this fails, as config.log is still kept open
20675 # by configure, so config.status won't be able to write to it; its
20676 # output is simply discarded. So we exec the FD to /dev/null,
20677 # effectively closing config.log, so it can be properly (re)opened and
20678 # appended to by config.status. When coming back to configure, we
20679 # need to make the FD available again.
20680 if test "$no_create" != yes; then
20681 ac_cs_success=:
20682 ac_config_status_args=
20683 test "$silent" = yes &&
20684 ac_config_status_args="$ac_config_status_args --quiet"
20685 exec 5>/dev/null
20686 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20687 exec 5>>config.log
20688 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20689 # would make configure fail if this is the last instruction.
20690 $ac_cs_success || as_fn_exit 1
20691 fi
20692 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20694 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20695 fi
20696
20697