configure revision 1.1.1.5 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libFS 1.0.6.
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 test \$(( 1 + 1 )) = 2 || exit 1
178
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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.6'
575 PACKAGE_STRING='libFS 1.0.6'
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 OTOOL64
653 OTOOL
654 LIPO
655 NMEDIT
656 DSYMUTIL
657 MANIFEST_TOOL
658 RANLIB
659 ac_ct_AR
660 AR
661 DLLTOOL
662 OBJDUMP
663 LN_S
664 NM
665 ac_ct_DUMPBIN
666 DUMPBIN
667 LD
668 FGREP
669 SED
670 host_os
671 host_vendor
672 host_cpu
673 host
674 build_os
675 build_vendor
676 build_cpu
677 build
678 LIBTOOL
679 EGREP
680 GREP
681 CPP
682 am__fastdepCC_FALSE
683 am__fastdepCC_TRUE
684 CCDEPMODE
685 am__nodep
686 AMDEPBACKSLASH
687 AMDEP_FALSE
688 AMDEP_TRUE
689 am__quote
690 am__include
691 DEPDIR
692 OBJEXT
693 EXEEXT
694 ac_ct_CC
695 CPPFLAGS
696 LDFLAGS
697 CFLAGS
698 CC
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_dependency_tracking
769 enable_shared
770 enable_static
771 with_pic
772 enable_fast_install
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.6 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.6:";;
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-dependency-tracking
1423 do not reject slow dependency extractors
1424 --disable-dependency-tracking
1425 speeds up one-time build
1426 --enable-shared[=PKGS] build shared libraries [default=yes]
1427 --enable-static[=PKGS] build static libraries [default=yes]
1428 --enable-fast-install[=PKGS]
1429 optimize for fast installation [default=yes]
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.6
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_cpp LINENO
1591 # ----------------------
1592 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1593 ac_fn_c_try_cpp ()
1594 {
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 if { { ac_try="$ac_cpp conftest.$ac_ext"
1597 case "(($ac_try" in
1598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599 *) ac_try_echo=$ac_try;;
1600 esac
1601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602 $as_echo "$ac_try_echo"; } >&5
1603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1604 ac_status=$?
1605 if test -s conftest.err; then
1606 grep -v '^ *+' conftest.err >conftest.er1
1607 cat conftest.er1 >&5
1608 mv -f conftest.er1 conftest.err
1609 fi
1610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611 test $ac_status = 0; } > conftest.i && {
1612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1613 test ! -s conftest.err
1614 }; then :
1615 ac_retval=0
1616 else
1617 $as_echo "$as_me: failed program was:" >&5
1618 sed 's/^/| /' conftest.$ac_ext >&5
1619
1620 ac_retval=1
1621 fi
1622 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1623 as_fn_set_status $ac_retval
1624
1625 } # ac_fn_c_try_cpp
1626
1627 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1628 # -------------------------------------------------------
1629 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1630 # the include files in INCLUDES and setting the cache variable VAR
1631 # accordingly.
1632 ac_fn_c_check_header_mongrel ()
1633 {
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 if eval \${$3+:} false; then :
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1637 $as_echo_n "checking for $2... " >&6; }
1638 if eval \${$3+:} false; then :
1639 $as_echo_n "(cached) " >&6
1640 fi
1641 eval ac_res=\$$3
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1643 $as_echo "$ac_res" >&6; }
1644 else
1645 # Is the header compilable?
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1647 $as_echo_n "checking $2 usability... " >&6; }
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 ac_header_compiler=yes
1655 else
1656 ac_header_compiler=no
1657 fi
1658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1660 $as_echo "$ac_header_compiler" >&6; }
1661
1662 # Is the header present?
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1664 $as_echo_n "checking $2 presence... " >&6; }
1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666 /* end confdefs.h. */
1667 #include <$2>
1668 _ACEOF
1669 if ac_fn_c_try_cpp "$LINENO"; then :
1670 ac_header_preproc=yes
1671 else
1672 ac_header_preproc=no
1673 fi
1674 rm -f conftest.err conftest.i conftest.$ac_ext
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1676 $as_echo "$ac_header_preproc" >&6; }
1677
1678 # So? What about this header?
1679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1680 yes:no: )
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1682 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1684 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1685 ;;
1686 no:yes:* )
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1688 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1690 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1692 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1694 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1696 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1697 ( $as_echo "## ---------------------------------------------------------------------- ##
1698 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1699 ## ---------------------------------------------------------------------- ##"
1700 ) | sed "s/^/$as_me: WARNING: /" >&2
1701 ;;
1702 esac
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1704 $as_echo_n "checking for $2... " >&6; }
1705 if eval \${$3+:} false; then :
1706 $as_echo_n "(cached) " >&6
1707 else
1708 eval "$3=\$ac_header_compiler"
1709 fi
1710 eval ac_res=\$$3
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1712 $as_echo "$ac_res" >&6; }
1713 fi
1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715
1716 } # ac_fn_c_check_header_mongrel
1717
1718 # ac_fn_c_try_run LINENO
1719 # ----------------------
1720 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1721 # that executables *can* be run.
1722 ac_fn_c_try_run ()
1723 {
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 if { { ac_try="$ac_link"
1726 case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_link") 2>&5
1733 ac_status=$?
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1736 { { case "(($ac_try" in
1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738 *) ac_try_echo=$ac_try;;
1739 esac
1740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741 $as_echo "$ac_try_echo"; } >&5
1742 (eval "$ac_try") 2>&5
1743 ac_status=$?
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; }; }; then :
1746 ac_retval=0
1747 else
1748 $as_echo "$as_me: program exited with status $ac_status" >&5
1749 $as_echo "$as_me: failed program was:" >&5
1750 sed 's/^/| /' conftest.$ac_ext >&5
1751
1752 ac_retval=$ac_status
1753 fi
1754 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756 as_fn_set_status $ac_retval
1757
1758 } # ac_fn_c_try_run
1759
1760 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1761 # -------------------------------------------------------
1762 # Tests whether HEADER exists and can be compiled using the include files in
1763 # INCLUDES, setting the cache variable VAR accordingly.
1764 ac_fn_c_check_header_compile ()
1765 {
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768 $as_echo_n "checking for $2... " >&6; }
1769 if eval \${$3+:} false; then :
1770 $as_echo_n "(cached) " >&6
1771 else
1772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773 /* end confdefs.h. */
1774 $4
1775 #include <$2>
1776 _ACEOF
1777 if ac_fn_c_try_compile "$LINENO"; then :
1778 eval "$3=yes"
1779 else
1780 eval "$3=no"
1781 fi
1782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1783 fi
1784 eval ac_res=\$$3
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 $as_echo "$ac_res" >&6; }
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788
1789 } # ac_fn_c_check_header_compile
1790
1791 # ac_fn_c_try_link LINENO
1792 # -----------------------
1793 # Try to link conftest.$ac_ext, and return whether this succeeded.
1794 ac_fn_c_try_link ()
1795 {
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 rm -f conftest.$ac_objext conftest$ac_exeext
1798 if { { ac_try="$ac_link"
1799 case "(($ac_try" in
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1802 esac
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 $as_echo "$ac_try_echo"; } >&5
1805 (eval "$ac_link") 2>conftest.err
1806 ac_status=$?
1807 if test -s conftest.err; then
1808 grep -v '^ *+' conftest.err >conftest.er1
1809 cat conftest.er1 >&5
1810 mv -f conftest.er1 conftest.err
1811 fi
1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; } && {
1814 test -z "$ac_c_werror_flag" ||
1815 test ! -s conftest.err
1816 } && test -s conftest$ac_exeext && {
1817 test "$cross_compiling" = yes ||
1818 $as_test_x conftest$ac_exeext
1819 }; then :
1820 ac_retval=0
1821 else
1822 $as_echo "$as_me: failed program was:" >&5
1823 sed 's/^/| /' conftest.$ac_ext >&5
1824
1825 ac_retval=1
1826 fi
1827 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1828 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1829 # interfere with the next link command; also delete a directory that is
1830 # left behind by Apple's compiler. We do this before executing the actions.
1831 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833 as_fn_set_status $ac_retval
1834
1835 } # ac_fn_c_try_link
1836
1837 # ac_fn_c_check_func LINENO FUNC VAR
1838 # ----------------------------------
1839 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1840 ac_fn_c_check_func ()
1841 {
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844 $as_echo_n "checking for $2... " >&6; }
1845 if eval \${$3+:} false; then :
1846 $as_echo_n "(cached) " >&6
1847 else
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1850 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1852 #define $2 innocuous_$2
1853
1854 /* System header to define __stub macros and hopefully few prototypes,
1855 which can conflict with char $2 (); below.
1856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1857 <limits.h> exists even on freestanding compilers. */
1858
1859 #ifdef __STDC__
1860 # include <limits.h>
1861 #else
1862 # include <assert.h>
1863 #endif
1864
1865 #undef $2
1866
1867 /* Override any GCC internal prototype to avoid an error.
1868 Use char because int might match the return type of a GCC
1869 builtin and then its argument prototype would still apply. */
1870 #ifdef __cplusplus
1871 extern "C"
1872 #endif
1873 char $2 ();
1874 /* The GNU C library defines this for functions which it implements
1875 to always fail with ENOSYS. Some functions are actually named
1876 something starting with __ and the normal name is an alias. */
1877 #if defined __stub_$2 || defined __stub___$2
1878 choke me
1879 #endif
1880
1881 int
1882 main ()
1883 {
1884 return $2 ();
1885 ;
1886 return 0;
1887 }
1888 _ACEOF
1889 if ac_fn_c_try_link "$LINENO"; then :
1890 eval "$3=yes"
1891 else
1892 eval "$3=no"
1893 fi
1894 rm -f core conftest.err conftest.$ac_objext \
1895 conftest$ac_exeext conftest.$ac_ext
1896 fi
1897 eval ac_res=\$$3
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899 $as_echo "$ac_res" >&6; }
1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901
1902 } # ac_fn_c_check_func
1903
1904 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1905 # ---------------------------------------------
1906 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1907 # accordingly.
1908 ac_fn_c_check_decl ()
1909 {
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 as_decl_name=`echo $2|sed 's/ *(.*//'`
1912 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1914 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1915 if eval \${$3+:} false; then :
1916 $as_echo_n "(cached) " >&6
1917 else
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1920 $4
1921 int
1922 main ()
1923 {
1924 #ifndef $as_decl_name
1925 #ifdef __cplusplus
1926 (void) $as_decl_use;
1927 #else
1928 (void) $as_decl_name;
1929 #endif
1930 #endif
1931
1932 ;
1933 return 0;
1934 }
1935 _ACEOF
1936 if ac_fn_c_try_compile "$LINENO"; then :
1937 eval "$3=yes"
1938 else
1939 eval "$3=no"
1940 fi
1941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1942 fi
1943 eval ac_res=\$$3
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945 $as_echo "$ac_res" >&6; }
1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947
1948 } # ac_fn_c_check_decl
1949
1950 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1951 # ----------------------------------------------------
1952 # Tries to find if the field MEMBER exists in type AGGR, after including
1953 # INCLUDES, setting cache variable VAR accordingly.
1954 ac_fn_c_check_member ()
1955 {
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1958 $as_echo_n "checking for $2.$3... " >&6; }
1959 if eval \${$4+:} false; then :
1960 $as_echo_n "(cached) " >&6
1961 else
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1964 $5
1965 int
1966 main ()
1967 {
1968 static $2 ac_aggr;
1969 if (ac_aggr.$3)
1970 return 0;
1971 ;
1972 return 0;
1973 }
1974 _ACEOF
1975 if ac_fn_c_try_compile "$LINENO"; then :
1976 eval "$4=yes"
1977 else
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1980 $5
1981 int
1982 main ()
1983 {
1984 static $2 ac_aggr;
1985 if (sizeof ac_aggr.$3)
1986 return 0;
1987 ;
1988 return 0;
1989 }
1990 _ACEOF
1991 if ac_fn_c_try_compile "$LINENO"; then :
1992 eval "$4=yes"
1993 else
1994 eval "$4=no"
1995 fi
1996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997 fi
1998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999 fi
2000 eval ac_res=\$$4
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002 $as_echo "$ac_res" >&6; }
2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004
2005 } # ac_fn_c_check_member
2006
2007 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2008 # -------------------------------------------
2009 # Tests whether TYPE exists after having included INCLUDES, setting cache
2010 # variable VAR accordingly.
2011 ac_fn_c_check_type ()
2012 {
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015 $as_echo_n "checking for $2... " >&6; }
2016 if eval \${$3+:} false; then :
2017 $as_echo_n "(cached) " >&6
2018 else
2019 eval "$3=no"
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2022 $4
2023 int
2024 main ()
2025 {
2026 if (sizeof ($2))
2027 return 0;
2028 ;
2029 return 0;
2030 }
2031 _ACEOF
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2035 $4
2036 int
2037 main ()
2038 {
2039 if (sizeof (($2)))
2040 return 0;
2041 ;
2042 return 0;
2043 }
2044 _ACEOF
2045 if ac_fn_c_try_compile "$LINENO"; then :
2046
2047 else
2048 eval "$3=yes"
2049 fi
2050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051 fi
2052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053 fi
2054 eval ac_res=\$$3
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2056 $as_echo "$ac_res" >&6; }
2057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058
2059 } # ac_fn_c_check_type
2060 cat >config.log <<_ACEOF
2061 This file contains any messages produced by compilers while
2062 running configure, to aid debugging if configure makes a mistake.
2063
2064 It was created by libFS $as_me 1.0.6, which was
2065 generated by GNU Autoconf 2.68. Invocation command line was
2066
2067 $ $0 $@
2068
2069 _ACEOF
2070 exec 5>>config.log
2071 {
2072 cat <<_ASUNAME
2073 ## --------- ##
2074 ## Platform. ##
2075 ## --------- ##
2076
2077 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2078 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2079 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2080 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2081 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2082
2083 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2084 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2085
2086 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2087 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2088 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2089 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2090 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2091 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2092 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2093
2094 _ASUNAME
2095
2096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097 for as_dir in $PATH
2098 do
2099 IFS=$as_save_IFS
2100 test -z "$as_dir" && as_dir=.
2101 $as_echo "PATH: $as_dir"
2102 done
2103 IFS=$as_save_IFS
2104
2105 } >&5
2106
2107 cat >&5 <<_ACEOF
2108
2109
2110 ## ----------- ##
2111 ## Core tests. ##
2112 ## ----------- ##
2113
2114 _ACEOF
2115
2116
2117 # Keep a trace of the command line.
2118 # Strip out --no-create and --no-recursion so they do not pile up.
2119 # Strip out --silent because we don't want to record it for future runs.
2120 # Also quote any args containing shell meta-characters.
2121 # Make two passes to allow for proper duplicate-argument suppression.
2122 ac_configure_args=
2123 ac_configure_args0=
2124 ac_configure_args1=
2125 ac_must_keep_next=false
2126 for ac_pass in 1 2
2127 do
2128 for ac_arg
2129 do
2130 case $ac_arg in
2131 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2133 | -silent | --silent | --silen | --sile | --sil)
2134 continue ;;
2135 *\'*)
2136 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2137 esac
2138 case $ac_pass in
2139 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2140 2)
2141 as_fn_append ac_configure_args1 " '$ac_arg'"
2142 if test $ac_must_keep_next = true; then
2143 ac_must_keep_next=false # Got value, back to normal.
2144 else
2145 case $ac_arg in
2146 *=* | --config-cache | -C | -disable-* | --disable-* \
2147 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2148 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2149 | -with-* | --with-* | -without-* | --without-* | --x)
2150 case "$ac_configure_args0 " in
2151 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2152 esac
2153 ;;
2154 -* ) ac_must_keep_next=true ;;
2155 esac
2156 fi
2157 as_fn_append ac_configure_args " '$ac_arg'"
2158 ;;
2159 esac
2160 done
2161 done
2162 { ac_configure_args0=; unset ac_configure_args0;}
2163 { ac_configure_args1=; unset ac_configure_args1;}
2164
2165 # When interrupted or exit'd, cleanup temporary files, and complete
2166 # config.log. We remove comments because anyway the quotes in there
2167 # would cause problems or look ugly.
2168 # WARNING: Use '\'' to represent an apostrophe within the trap.
2169 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2170 trap 'exit_status=$?
2171 # Save into config.log some information that might help in debugging.
2172 {
2173 echo
2174
2175 $as_echo "## ---------------- ##
2176 ## Cache variables. ##
2177 ## ---------------- ##"
2178 echo
2179 # The following way of writing the cache mishandles newlines in values,
2180 (
2181 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2182 eval ac_val=\$$ac_var
2183 case $ac_val in #(
2184 *${as_nl}*)
2185 case $ac_var in #(
2186 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2187 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2188 esac
2189 case $ac_var in #(
2190 _ | IFS | as_nl) ;; #(
2191 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2192 *) { eval $ac_var=; unset $ac_var;} ;;
2193 esac ;;
2194 esac
2195 done
2196 (set) 2>&1 |
2197 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2198 *${as_nl}ac_space=\ *)
2199 sed -n \
2200 "s/'\''/'\''\\\\'\'''\''/g;
2201 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2202 ;; #(
2203 *)
2204 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2205 ;;
2206 esac |
2207 sort
2208 )
2209 echo
2210
2211 $as_echo "## ----------------- ##
2212 ## Output variables. ##
2213 ## ----------------- ##"
2214 echo
2215 for ac_var in $ac_subst_vars
2216 do
2217 eval ac_val=\$$ac_var
2218 case $ac_val in
2219 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2220 esac
2221 $as_echo "$ac_var='\''$ac_val'\''"
2222 done | sort
2223 echo
2224
2225 if test -n "$ac_subst_files"; then
2226 $as_echo "## ------------------- ##
2227 ## File substitutions. ##
2228 ## ------------------- ##"
2229 echo
2230 for ac_var in $ac_subst_files
2231 do
2232 eval ac_val=\$$ac_var
2233 case $ac_val in
2234 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2235 esac
2236 $as_echo "$ac_var='\''$ac_val'\''"
2237 done | sort
2238 echo
2239 fi
2240
2241 if test -s confdefs.h; then
2242 $as_echo "## ----------- ##
2243 ## confdefs.h. ##
2244 ## ----------- ##"
2245 echo
2246 cat confdefs.h
2247 echo
2248 fi
2249 test "$ac_signal" != 0 &&
2250 $as_echo "$as_me: caught signal $ac_signal"
2251 $as_echo "$as_me: exit $exit_status"
2252 } >&5
2253 rm -f core *.core core.conftest.* &&
2254 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2255 exit $exit_status
2256 ' 0
2257 for ac_signal in 1 2 13 15; do
2258 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2259 done
2260 ac_signal=0
2261
2262 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2263 rm -f -r conftest* confdefs.h
2264
2265 $as_echo "/* confdefs.h */" > confdefs.h
2266
2267 # Predefined preprocessor variables.
2268
2269 cat >>confdefs.h <<_ACEOF
2270 #define PACKAGE_NAME "$PACKAGE_NAME"
2271 _ACEOF
2272
2273 cat >>confdefs.h <<_ACEOF
2274 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2275 _ACEOF
2276
2277 cat >>confdefs.h <<_ACEOF
2278 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2279 _ACEOF
2280
2281 cat >>confdefs.h <<_ACEOF
2282 #define PACKAGE_STRING "$PACKAGE_STRING"
2283 _ACEOF
2284
2285 cat >>confdefs.h <<_ACEOF
2286 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2287 _ACEOF
2288
2289 cat >>confdefs.h <<_ACEOF
2290 #define PACKAGE_URL "$PACKAGE_URL"
2291 _ACEOF
2292
2293
2294 # Let the site file select an alternate cache file if it wants to.
2295 # Prefer an explicitly selected file to automatically selected ones.
2296 ac_site_file1=NONE
2297 ac_site_file2=NONE
2298 if test -n "$CONFIG_SITE"; then
2299 # We do not want a PATH search for config.site.
2300 case $CONFIG_SITE in #((
2301 -*) ac_site_file1=./$CONFIG_SITE;;
2302 */*) ac_site_file1=$CONFIG_SITE;;
2303 *) ac_site_file1=./$CONFIG_SITE;;
2304 esac
2305 elif test "x$prefix" != xNONE; then
2306 ac_site_file1=$prefix/share/config.site
2307 ac_site_file2=$prefix/etc/config.site
2308 else
2309 ac_site_file1=$ac_default_prefix/share/config.site
2310 ac_site_file2=$ac_default_prefix/etc/config.site
2311 fi
2312 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2313 do
2314 test "x$ac_site_file" = xNONE && continue
2315 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2317 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2318 sed 's/^/| /' "$ac_site_file" >&5
2319 . "$ac_site_file" \
2320 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2322 as_fn_error $? "failed to load site script $ac_site_file
2323 See \`config.log' for more details" "$LINENO" 5; }
2324 fi
2325 done
2326
2327 if test -r "$cache_file"; then
2328 # Some versions of bash will fail to source /dev/null (special files
2329 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2330 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2332 $as_echo "$as_me: loading cache $cache_file" >&6;}
2333 case $cache_file in
2334 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2335 *) . "./$cache_file";;
2336 esac
2337 fi
2338 else
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2340 $as_echo "$as_me: creating cache $cache_file" >&6;}
2341 >$cache_file
2342 fi
2343
2344 # Check that the precious variables saved in the cache have kept the same
2345 # value.
2346 ac_cache_corrupted=false
2347 for ac_var in $ac_precious_vars; do
2348 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2349 eval ac_new_set=\$ac_env_${ac_var}_set
2350 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2351 eval ac_new_val=\$ac_env_${ac_var}_value
2352 case $ac_old_set,$ac_new_set in
2353 set,)
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2355 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2356 ac_cache_corrupted=: ;;
2357 ,set)
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2359 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2360 ac_cache_corrupted=: ;;
2361 ,);;
2362 *)
2363 if test "x$ac_old_val" != "x$ac_new_val"; then
2364 # differences in whitespace do not lead to failure.
2365 ac_old_val_w=`echo x $ac_old_val`
2366 ac_new_val_w=`echo x $ac_new_val`
2367 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2369 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2370 ac_cache_corrupted=:
2371 else
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2373 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2374 eval $ac_var=\$ac_old_val
2375 fi
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2377 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2379 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2380 fi;;
2381 esac
2382 # Pass precious variables to config.status.
2383 if test "$ac_new_set" = set; then
2384 case $ac_new_val in
2385 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2386 *) ac_arg=$ac_var=$ac_new_val ;;
2387 esac
2388 case " $ac_configure_args " in
2389 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2390 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2391 esac
2392 fi
2393 done
2394 if $ac_cache_corrupted; then
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2398 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2399 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2400 fi
2401 ## -------------------- ##
2402 ## Main body of script. ##
2403 ## -------------------- ##
2404
2405 ac_ext=c
2406 ac_cpp='$CPP $CPPFLAGS'
2407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2410
2411
2412
2413 ac_config_headers="$ac_config_headers config.h"
2414
2415
2416 # Initialize Automake
2417 am__api_version='1.14'
2418
2419 ac_aux_dir=
2420 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2421 if test -f "$ac_dir/install-sh"; then
2422 ac_aux_dir=$ac_dir
2423 ac_install_sh="$ac_aux_dir/install-sh -c"
2424 break
2425 elif test -f "$ac_dir/install.sh"; then
2426 ac_aux_dir=$ac_dir
2427 ac_install_sh="$ac_aux_dir/install.sh -c"
2428 break
2429 elif test -f "$ac_dir/shtool"; then
2430 ac_aux_dir=$ac_dir
2431 ac_install_sh="$ac_aux_dir/shtool install -c"
2432 break
2433 fi
2434 done
2435 if test -z "$ac_aux_dir"; then
2436 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2437 fi
2438
2439 # These three variables are undocumented and unsupported,
2440 # and are intended to be withdrawn in a future Autoconf release.
2441 # They can cause serious problems if a builder's source tree is in a directory
2442 # whose full name contains unusual characters.
2443 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2444 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2445 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2446
2447
2448 # Find a good install program. We prefer a C program (faster),
2449 # so one script is as good as another. But avoid the broken or
2450 # incompatible versions:
2451 # SysV /etc/install, /usr/sbin/install
2452 # SunOS /usr/etc/install
2453 # IRIX /sbin/install
2454 # AIX /bin/install
2455 # AmigaOS /C/install, which installs bootblocks on floppy discs
2456 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2457 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2458 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2459 # OS/2's system install, which has a completely different semantic
2460 # ./install, which can be erroneously created by make from ./install.sh.
2461 # Reject install programs that cannot install multiple files.
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2463 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2464 if test -z "$INSTALL"; then
2465 if ${ac_cv_path_install+:} false; then :
2466 $as_echo_n "(cached) " >&6
2467 else
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 for as_dir in $PATH
2470 do
2471 IFS=$as_save_IFS
2472 test -z "$as_dir" && as_dir=.
2473 # Account for people who put trailing slashes in PATH elements.
2474 case $as_dir/ in #((
2475 ./ | .// | /[cC]/* | \
2476 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2477 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2478 /usr/ucb/* ) ;;
2479 *)
2480 # OSF1 and SCO ODT 3.0 have their own names for install.
2481 # Don't use installbsd from OSF since it installs stuff as root
2482 # by default.
2483 for ac_prog in ginstall scoinst install; do
2484 for ac_exec_ext in '' $ac_executable_extensions; do
2485 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2486 if test $ac_prog = install &&
2487 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2488 # AIX install. It has an incompatible calling convention.
2489 :
2490 elif test $ac_prog = install &&
2491 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2492 # program-specific install script used by HP pwplus--don't use.
2493 :
2494 else
2495 rm -rf conftest.one conftest.two conftest.dir
2496 echo one > conftest.one
2497 echo two > conftest.two
2498 mkdir conftest.dir
2499 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2500 test -s conftest.one && test -s conftest.two &&
2501 test -s conftest.dir/conftest.one &&
2502 test -s conftest.dir/conftest.two
2503 then
2504 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2505 break 3
2506 fi
2507 fi
2508 fi
2509 done
2510 done
2511 ;;
2512 esac
2513
2514 done
2515 IFS=$as_save_IFS
2516
2517 rm -rf conftest.one conftest.two conftest.dir
2518
2519 fi
2520 if test "${ac_cv_path_install+set}" = set; then
2521 INSTALL=$ac_cv_path_install
2522 else
2523 # As a last resort, use the slow shell script. Don't cache a
2524 # value for INSTALL within a source directory, because that will
2525 # break other packages using the cache if that directory is
2526 # removed, or if the value is a relative name.
2527 INSTALL=$ac_install_sh
2528 fi
2529 fi
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2531 $as_echo "$INSTALL" >&6; }
2532
2533 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2534 # It thinks the first close brace ends the variable substitution.
2535 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2536
2537 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2538
2539 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2540
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2542 $as_echo_n "checking whether build environment is sane... " >&6; }
2543 # Reject unsafe characters in $srcdir or the absolute working directory
2544 # name. Accept space and tab only in the latter.
2545 am_lf='
2546 '
2547 case `pwd` in
2548 *[\\\"\#\$\&\'\`$am_lf]*)
2549 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2550 esac
2551 case $srcdir in
2552 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2553 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2554 esac
2555
2556 # Do 'set' in a subshell so we don't clobber the current shell's
2557 # arguments. Must try -L first in case configure is actually a
2558 # symlink; some systems play weird games with the mod time of symlinks
2559 # (eg FreeBSD returns the mod time of the symlink's containing
2560 # directory).
2561 if (
2562 am_has_slept=no
2563 for am_try in 1 2; do
2564 echo "timestamp, slept: $am_has_slept" > conftest.file
2565 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2566 if test "$*" = "X"; then
2567 # -L didn't work.
2568 set X `ls -t "$srcdir/configure" conftest.file`
2569 fi
2570 if test "$*" != "X $srcdir/configure conftest.file" \
2571 && test "$*" != "X conftest.file $srcdir/configure"; then
2572
2573 # If neither matched, then we have a broken ls. This can happen
2574 # if, for instance, CONFIG_SHELL is bash and it inherits a
2575 # broken ls alias from the environment. This has actually
2576 # happened. Such a system could not be considered "sane".
2577 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2578 alias in your environment" "$LINENO" 5
2579 fi
2580 if test "$2" = conftest.file || test $am_try -eq 2; then
2581 break
2582 fi
2583 # Just in case.
2584 sleep 1
2585 am_has_slept=yes
2586 done
2587 test "$2" = conftest.file
2588 )
2589 then
2590 # Ok.
2591 :
2592 else
2593 as_fn_error $? "newly created file is older than distributed files!
2594 Check your system clock" "$LINENO" 5
2595 fi
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2597 $as_echo "yes" >&6; }
2598 # If we didn't sleep, we still need to ensure time stamps of config.status and
2599 # generated files are strictly newer.
2600 am_sleep_pid=
2601 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2602 ( sleep 1 ) &
2603 am_sleep_pid=$!
2604 fi
2605
2606 rm -f conftest.file
2607
2608 test "$program_prefix" != NONE &&
2609 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2610 # Use a double $ so make ignores it.
2611 test "$program_suffix" != NONE &&
2612 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2613 # Double any \ or $.
2614 # By default was `s,x,x', remove it if useless.
2615 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2616 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2617
2618 # expand $ac_aux_dir to an absolute path
2619 am_aux_dir=`cd $ac_aux_dir && pwd`
2620
2621 if test x"${MISSING+set}" != xset; then
2622 case $am_aux_dir in
2623 *\ * | *\ *)
2624 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2625 *)
2626 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2627 esac
2628 fi
2629 # Use eval to expand $SHELL
2630 if eval "$MISSING --is-lightweight"; then
2631 am_missing_run="$MISSING "
2632 else
2633 am_missing_run=
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2635 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2636 fi
2637
2638 if test x"${install_sh}" != xset; then
2639 case $am_aux_dir in
2640 *\ * | *\ *)
2641 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2642 *)
2643 install_sh="\${SHELL} $am_aux_dir/install-sh"
2644 esac
2645 fi
2646
2647 # Installed binaries are usually stripped using 'strip' when the user
2648 # run "make install-strip". However 'strip' might not be the right
2649 # tool to use in cross-compilation environments, therefore Automake
2650 # will honor the 'STRIP' environment variable to overrule this program.
2651 if test "$cross_compiling" != no; then
2652 if test -n "$ac_tool_prefix"; then
2653 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2654 set dummy ${ac_tool_prefix}strip; ac_word=$2
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2656 $as_echo_n "checking for $ac_word... " >&6; }
2657 if ${ac_cv_prog_STRIP+:} false; then :
2658 $as_echo_n "(cached) " >&6
2659 else
2660 if test -n "$STRIP"; then
2661 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2662 else
2663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664 for as_dir in $PATH
2665 do
2666 IFS=$as_save_IFS
2667 test -z "$as_dir" && as_dir=.
2668 for ac_exec_ext in '' $ac_executable_extensions; do
2669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2670 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2672 break 2
2673 fi
2674 done
2675 done
2676 IFS=$as_save_IFS
2677
2678 fi
2679 fi
2680 STRIP=$ac_cv_prog_STRIP
2681 if test -n "$STRIP"; then
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2683 $as_echo "$STRIP" >&6; }
2684 else
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2686 $as_echo "no" >&6; }
2687 fi
2688
2689
2690 fi
2691 if test -z "$ac_cv_prog_STRIP"; then
2692 ac_ct_STRIP=$STRIP
2693 # Extract the first word of "strip", so it can be a program name with args.
2694 set dummy strip; ac_word=$2
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2696 $as_echo_n "checking for $ac_word... " >&6; }
2697 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2698 $as_echo_n "(cached) " >&6
2699 else
2700 if test -n "$ac_ct_STRIP"; then
2701 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2702 else
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2705 do
2706 IFS=$as_save_IFS
2707 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2710 ac_cv_prog_ac_ct_STRIP="strip"
2711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2712 break 2
2713 fi
2714 done
2715 done
2716 IFS=$as_save_IFS
2717
2718 fi
2719 fi
2720 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2721 if test -n "$ac_ct_STRIP"; then
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2723 $as_echo "$ac_ct_STRIP" >&6; }
2724 else
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2726 $as_echo "no" >&6; }
2727 fi
2728
2729 if test "x$ac_ct_STRIP" = x; then
2730 STRIP=":"
2731 else
2732 case $cross_compiling:$ac_tool_warned in
2733 yes:)
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2736 ac_tool_warned=yes ;;
2737 esac
2738 STRIP=$ac_ct_STRIP
2739 fi
2740 else
2741 STRIP="$ac_cv_prog_STRIP"
2742 fi
2743
2744 fi
2745 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2746
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2748 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2749 if test -z "$MKDIR_P"; then
2750 if ${ac_cv_path_mkdir+:} false; then :
2751 $as_echo_n "(cached) " >&6
2752 else
2753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2755 do
2756 IFS=$as_save_IFS
2757 test -z "$as_dir" && as_dir=.
2758 for ac_prog in mkdir gmkdir; do
2759 for ac_exec_ext in '' $ac_executable_extensions; do
2760 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2761 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2762 'mkdir (GNU coreutils) '* | \
2763 'mkdir (coreutils) '* | \
2764 'mkdir (fileutils) '4.1*)
2765 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2766 break 3;;
2767 esac
2768 done
2769 done
2770 done
2771 IFS=$as_save_IFS
2772
2773 fi
2774
2775 test -d ./--version && rmdir ./--version
2776 if test "${ac_cv_path_mkdir+set}" = set; then
2777 MKDIR_P="$ac_cv_path_mkdir -p"
2778 else
2779 # As a last resort, use the slow shell script. Don't cache a
2780 # value for MKDIR_P within a source directory, because that will
2781 # break other packages using the cache if that directory is
2782 # removed, or if the value is a relative name.
2783 MKDIR_P="$ac_install_sh -d"
2784 fi
2785 fi
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2787 $as_echo "$MKDIR_P" >&6; }
2788
2789 for ac_prog in gawk mawk nawk awk
2790 do
2791 # Extract the first word of "$ac_prog", so it can be a program name with args.
2792 set dummy $ac_prog; ac_word=$2
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794 $as_echo_n "checking for $ac_word... " >&6; }
2795 if ${ac_cv_prog_AWK+:} false; then :
2796 $as_echo_n "(cached) " >&6
2797 else
2798 if test -n "$AWK"; then
2799 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2800 else
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 for as_dir in $PATH
2803 do
2804 IFS=$as_save_IFS
2805 test -z "$as_dir" && as_dir=.
2806 for ac_exec_ext in '' $ac_executable_extensions; do
2807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2808 ac_cv_prog_AWK="$ac_prog"
2809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 break 2
2811 fi
2812 done
2813 done
2814 IFS=$as_save_IFS
2815
2816 fi
2817 fi
2818 AWK=$ac_cv_prog_AWK
2819 if test -n "$AWK"; then
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2821 $as_echo "$AWK" >&6; }
2822 else
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824 $as_echo "no" >&6; }
2825 fi
2826
2827
2828 test -n "$AWK" && break
2829 done
2830
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2832 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2833 set x ${MAKE-make}
2834 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2835 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2836 $as_echo_n "(cached) " >&6
2837 else
2838 cat >conftest.make <<\_ACEOF
2839 SHELL = /bin/sh
2840 all:
2841 @echo '@@@%%%=$(MAKE)=@@@%%%'
2842 _ACEOF
2843 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2844 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2845 *@@@%%%=?*=@@@%%%*)
2846 eval ac_cv_prog_make_${ac_make}_set=yes;;
2847 *)
2848 eval ac_cv_prog_make_${ac_make}_set=no;;
2849 esac
2850 rm -f conftest.make
2851 fi
2852 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2854 $as_echo "yes" >&6; }
2855 SET_MAKE=
2856 else
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2858 $as_echo "no" >&6; }
2859 SET_MAKE="MAKE=${MAKE-make}"
2860 fi
2861
2862 rm -rf .tst 2>/dev/null
2863 mkdir .tst 2>/dev/null
2864 if test -d .tst; then
2865 am__leading_dot=.
2866 else
2867 am__leading_dot=_
2868 fi
2869 rmdir .tst 2>/dev/null
2870
2871 # Check whether --enable-silent-rules was given.
2872 if test "${enable_silent_rules+set}" = set; then :
2873 enableval=$enable_silent_rules;
2874 fi
2875
2876 case $enable_silent_rules in # (((
2877 yes) AM_DEFAULT_VERBOSITY=0;;
2878 no) AM_DEFAULT_VERBOSITY=1;;
2879 *) AM_DEFAULT_VERBOSITY=1;;
2880 esac
2881 am_make=${MAKE-make}
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2883 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2884 if ${am_cv_make_support_nested_variables+:} false; then :
2885 $as_echo_n "(cached) " >&6
2886 else
2887 if $as_echo 'TRUE=$(BAR$(V))
2888 BAR0=false
2889 BAR1=true
2890 V=1
2891 am__doit:
2892 @$(TRUE)
2893 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2894 am_cv_make_support_nested_variables=yes
2895 else
2896 am_cv_make_support_nested_variables=no
2897 fi
2898 fi
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2900 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2901 if test $am_cv_make_support_nested_variables = yes; then
2902 AM_V='$(V)'
2903 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2904 else
2905 AM_V=$AM_DEFAULT_VERBOSITY
2906 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2907 fi
2908 AM_BACKSLASH='\'
2909
2910 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2911 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2912 # is not polluted with repeated "-I."
2913 am__isrc=' -I$(srcdir)'
2914 # test to see if srcdir already configured
2915 if test -f $srcdir/config.status; then
2916 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2917 fi
2918 fi
2919
2920 # test whether we have cygpath
2921 if test -z "$CYGPATH_W"; then
2922 if (cygpath --version) >/dev/null 2>/dev/null; then
2923 CYGPATH_W='cygpath -w'
2924 else
2925 CYGPATH_W=echo
2926 fi
2927 fi
2928
2929
2930 # Define the identity of the package.
2931 PACKAGE='libFS'
2932 VERSION='1.0.6'
2933
2934
2935 cat >>confdefs.h <<_ACEOF
2936 #define PACKAGE "$PACKAGE"
2937 _ACEOF
2938
2939
2940 cat >>confdefs.h <<_ACEOF
2941 #define VERSION "$VERSION"
2942 _ACEOF
2943
2944 # Some tools Automake needs.
2945
2946 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2947
2948
2949 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2950
2951
2952 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2953
2954
2955 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2956
2957
2958 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2959
2960 # For better backward compatibility. To be removed once Automake 1.9.x
2961 # dies out for good. For more background, see:
2962 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2963 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2964 mkdir_p='$(MKDIR_P)'
2965
2966 # We need awk for the "check" target. The system "awk" is bad on
2967 # some platforms.
2968 # Always define AMTAR for backward compatibility. Yes, it's still used
2969 # in the wild :-( We should find a proper way to deprecate it ...
2970 AMTAR='$${TAR-tar}'
2971
2972
2973 # We'll loop over all known methods to create a tar archive until one works.
2974 _am_tools='gnutar pax cpio none'
2975
2976 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2977
2978
2979
2980
2981
2982
2983 # POSIX will say in a future version that running "rm -f" with no argument
2984 # is OK; and we want to be able to make that assumption in our Makefile
2985 # recipes. So use an aggressive probe to check that the usage we want is
2986 # actually supported "in the wild" to an acceptable degree.
2987 # See automake bug#10828.
2988 # To make any issue more visible, cause the running configure to be aborted
2989 # by default if the 'rm' program in use doesn't match our expectations; the
2990 # user can still override this though.
2991 if rm -f && rm -fr && rm -rf; then : OK; else
2992 cat >&2 <<'END'
2993 Oops!
2994
2995 Your 'rm' program seems unable to run without file operands specified
2996 on the command line, even when the '-f' option is present. This is contrary
2997 to the behaviour of most rm programs out there, and not conforming with
2998 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2999
3000 Please tell bug-automake@gnu.org about your system, including the value
3001 of your $PATH and any error possibly output before this message. This
3002 can help us improve future automake versions.
3003
3004 END
3005 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3006 echo 'Configuration will proceed anyway, since you have set the' >&2
3007 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3008 echo >&2
3009 else
3010 cat >&2 <<'END'
3011 Aborting the configuration process, to ensure you take notice of the issue.
3012
3013 You can download and install GNU coreutils to get an 'rm' implementation
3014 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3015
3016 If you want to complete the configuration process using your problematic
3017 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3018 to "yes", and re-run configure.
3019
3020 END
3021 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3022 fi
3023 fi
3024
3025 # Set common system defines for POSIX extensions, such as _GNU_SOURCE
3026 # Must be called before any macros that run the compiler (like
3027 # AC_PROG_LIBTOOL) to avoid autoconf errors.
3028 DEPDIR="${am__leading_dot}deps"
3029
3030 ac_config_commands="$ac_config_commands depfiles"
3031
3032
3033 am_make=${MAKE-make}
3034 cat > confinc << 'END'
3035 am__doit:
3036 @echo this is the am__doit target
3037 .PHONY: am__doit
3038 END
3039 # If we don't find an include directive, just comment out the code.
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3041 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3042 am__include="#"
3043 am__quote=
3044 _am_result=none
3045 # First try GNU make style include.
3046 echo "include confinc" > confmf
3047 # Ignore all kinds of additional output from 'make'.
3048 case `$am_make -s -f confmf 2> /dev/null` in #(
3049 *the\ am__doit\ target*)
3050 am__include=include
3051 am__quote=
3052 _am_result=GNU
3053 ;;
3054 esac
3055 # Now try BSD make style include.
3056 if test "$am__include" = "#"; then
3057 echo '.include "confinc"' > confmf
3058 case `$am_make -s -f confmf 2> /dev/null` in #(
3059 *the\ am__doit\ target*)
3060 am__include=.include
3061 am__quote="\""
3062 _am_result=BSD
3063 ;;
3064 esac
3065 fi
3066
3067
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3069 $as_echo "$_am_result" >&6; }
3070 rm -f confinc confmf
3071
3072 # Check whether --enable-dependency-tracking was given.
3073 if test "${enable_dependency_tracking+set}" = set; then :
3074 enableval=$enable_dependency_tracking;
3075 fi
3076
3077 if test "x$enable_dependency_tracking" != xno; then
3078 am_depcomp="$ac_aux_dir/depcomp"
3079 AMDEPBACKSLASH='\'
3080 am__nodep='_no'
3081 fi
3082 if test "x$enable_dependency_tracking" != xno; then
3083 AMDEP_TRUE=
3084 AMDEP_FALSE='#'
3085 else
3086 AMDEP_TRUE='#'
3087 AMDEP_FALSE=
3088 fi
3089
3090
3091 ac_ext=c
3092 ac_cpp='$CPP $CPPFLAGS'
3093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3096 if test -n "$ac_tool_prefix"; then
3097 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3098 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3100 $as_echo_n "checking for $ac_word... " >&6; }
3101 if ${ac_cv_prog_CC+:} false; then :
3102 $as_echo_n "(cached) " >&6
3103 else
3104 if test -n "$CC"; then
3105 ac_cv_prog_CC="$CC" # Let the user override the test.
3106 else
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 for as_dir in $PATH
3109 do
3110 IFS=$as_save_IFS
3111 test -z "$as_dir" && as_dir=.
3112 for ac_exec_ext in '' $ac_executable_extensions; do
3113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3114 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3116 break 2
3117 fi
3118 done
3119 done
3120 IFS=$as_save_IFS
3121
3122 fi
3123 fi
3124 CC=$ac_cv_prog_CC
3125 if test -n "$CC"; then
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3127 $as_echo "$CC" >&6; }
3128 else
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130 $as_echo "no" >&6; }
3131 fi
3132
3133
3134 fi
3135 if test -z "$ac_cv_prog_CC"; then
3136 ac_ct_CC=$CC
3137 # Extract the first word of "gcc", so it can be a program name with args.
3138 set dummy gcc; ac_word=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3142 $as_echo_n "(cached) " >&6
3143 else
3144 if test -n "$ac_ct_CC"; then
3145 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3149 do
3150 IFS=$as_save_IFS
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154 ac_cv_prog_ac_ct_CC="gcc"
3155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3156 break 2
3157 fi
3158 done
3159 done
3160 IFS=$as_save_IFS
3161
3162 fi
3163 fi
3164 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3165 if test -n "$ac_ct_CC"; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3167 $as_echo "$ac_ct_CC" >&6; }
3168 else
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3171 fi
3172
3173 if test "x$ac_ct_CC" = x; then
3174 CC=""
3175 else
3176 case $cross_compiling:$ac_tool_warned in
3177 yes:)
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3180 ac_tool_warned=yes ;;
3181 esac
3182 CC=$ac_ct_CC
3183 fi
3184 else
3185 CC="$ac_cv_prog_CC"
3186 fi
3187
3188 if test -z "$CC"; then
3189 if test -n "$ac_tool_prefix"; then
3190 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3191 set dummy ${ac_tool_prefix}cc; ac_word=$2
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3193 $as_echo_n "checking for $ac_word... " >&6; }
3194 if ${ac_cv_prog_CC+:} false; then :
3195 $as_echo_n "(cached) " >&6
3196 else
3197 if test -n "$CC"; then
3198 ac_cv_prog_CC="$CC" # Let the user override the test.
3199 else
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 for as_dir in $PATH
3202 do
3203 IFS=$as_save_IFS
3204 test -z "$as_dir" && as_dir=.
3205 for ac_exec_ext in '' $ac_executable_extensions; do
3206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3207 ac_cv_prog_CC="${ac_tool_prefix}cc"
3208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3209 break 2
3210 fi
3211 done
3212 done
3213 IFS=$as_save_IFS
3214
3215 fi
3216 fi
3217 CC=$ac_cv_prog_CC
3218 if test -n "$CC"; then
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3220 $as_echo "$CC" >&6; }
3221 else
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223 $as_echo "no" >&6; }
3224 fi
3225
3226
3227 fi
3228 fi
3229 if test -z "$CC"; then
3230 # Extract the first word of "cc", so it can be a program name with args.
3231 set dummy cc; ac_word=$2
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3233 $as_echo_n "checking for $ac_word... " >&6; }
3234 if ${ac_cv_prog_CC+:} false; then :
3235 $as_echo_n "(cached) " >&6
3236 else
3237 if test -n "$CC"; then
3238 ac_cv_prog_CC="$CC" # Let the user override the test.
3239 else
3240 ac_prog_rejected=no
3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 for as_dir in $PATH
3243 do
3244 IFS=$as_save_IFS
3245 test -z "$as_dir" && as_dir=.
3246 for ac_exec_ext in '' $ac_executable_extensions; do
3247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3248 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3249 ac_prog_rejected=yes
3250 continue
3251 fi
3252 ac_cv_prog_CC="cc"
3253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3254 break 2
3255 fi
3256 done
3257 done
3258 IFS=$as_save_IFS
3259
3260 if test $ac_prog_rejected = yes; then
3261 # We found a bogon in the path, so make sure we never use it.
3262 set dummy $ac_cv_prog_CC
3263 shift
3264 if test $# != 0; then
3265 # We chose a different compiler from the bogus one.
3266 # However, it has the same basename, so the bogon will be chosen
3267 # first if we set CC to just the basename; use the full file name.
3268 shift
3269 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3270 fi
3271 fi
3272 fi
3273 fi
3274 CC=$ac_cv_prog_CC
3275 if test -n "$CC"; then
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3277 $as_echo "$CC" >&6; }
3278 else
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280 $as_echo "no" >&6; }
3281 fi
3282
3283
3284 fi
3285 if test -z "$CC"; then
3286 if test -n "$ac_tool_prefix"; then
3287 for ac_prog in cl.exe
3288 do
3289 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3290 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3292 $as_echo_n "checking for $ac_word... " >&6; }
3293 if ${ac_cv_prog_CC+:} false; then :
3294 $as_echo_n "(cached) " >&6
3295 else
3296 if test -n "$CC"; then
3297 ac_cv_prog_CC="$CC" # Let the user override the test.
3298 else
3299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300 for as_dir in $PATH
3301 do
3302 IFS=$as_save_IFS
3303 test -z "$as_dir" && as_dir=.
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3306 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3308 break 2
3309 fi
3310 done
3311 done
3312 IFS=$as_save_IFS
3313
3314 fi
3315 fi
3316 CC=$ac_cv_prog_CC
3317 if test -n "$CC"; then
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3319 $as_echo "$CC" >&6; }
3320 else
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3322 $as_echo "no" >&6; }
3323 fi
3324
3325
3326 test -n "$CC" && break
3327 done
3328 fi
3329 if test -z "$CC"; then
3330 ac_ct_CC=$CC
3331 for ac_prog in cl.exe
3332 do
3333 # Extract the first word of "$ac_prog", so it can be a program name with args.
3334 set dummy $ac_prog; ac_word=$2
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3336 $as_echo_n "checking for $ac_word... " >&6; }
3337 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3338 $as_echo_n "(cached) " >&6
3339 else
3340 if test -n "$ac_ct_CC"; then
3341 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3342 else
3343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344 for as_dir in $PATH
3345 do
3346 IFS=$as_save_IFS
3347 test -z "$as_dir" && as_dir=.
3348 for ac_exec_ext in '' $ac_executable_extensions; do
3349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3350 ac_cv_prog_ac_ct_CC="$ac_prog"
3351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3352 break 2
3353 fi
3354 done
3355 done
3356 IFS=$as_save_IFS
3357
3358 fi
3359 fi
3360 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3361 if test -n "$ac_ct_CC"; then
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3363 $as_echo "$ac_ct_CC" >&6; }
3364 else
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 $as_echo "no" >&6; }
3367 fi
3368
3369
3370 test -n "$ac_ct_CC" && break
3371 done
3372
3373 if test "x$ac_ct_CC" = x; then
3374 CC=""
3375 else
3376 case $cross_compiling:$ac_tool_warned in
3377 yes:)
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3380 ac_tool_warned=yes ;;
3381 esac
3382 CC=$ac_ct_CC
3383 fi
3384 fi
3385
3386 fi
3387
3388
3389 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3391 as_fn_error $? "no acceptable C compiler found in \$PATH
3392 See \`config.log' for more details" "$LINENO" 5; }
3393
3394 # Provide some information about the compiler.
3395 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3396 set X $ac_compile
3397 ac_compiler=$2
3398 for ac_option in --version -v -V -qversion; do
3399 { { ac_try="$ac_compiler $ac_option >&5"
3400 case "(($ac_try" in
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3403 esac
3404 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3405 $as_echo "$ac_try_echo"; } >&5
3406 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3407 ac_status=$?
3408 if test -s conftest.err; then
3409 sed '10a\
3410 ... rest of stderr output deleted ...
3411 10q' conftest.err >conftest.er1
3412 cat conftest.er1 >&5
3413 fi
3414 rm -f conftest.er1 conftest.err
3415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3416 test $ac_status = 0; }
3417 done
3418
3419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420 /* end confdefs.h. */
3421
3422 int
3423 main ()
3424 {
3425
3426 ;
3427 return 0;
3428 }
3429 _ACEOF
3430 ac_clean_files_save=$ac_clean_files
3431 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3432 # Try to create an executable without -o first, disregard a.out.
3433 # It will help us diagnose broken compilers, and finding out an intuition
3434 # of exeext.
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3436 $as_echo_n "checking whether the C compiler works... " >&6; }
3437 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3438
3439 # The possible output files:
3440 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3441
3442 ac_rmfiles=
3443 for ac_file in $ac_files
3444 do
3445 case $ac_file in
3446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3447 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3448 esac
3449 done
3450 rm -f $ac_rmfiles
3451
3452 if { { ac_try="$ac_link_default"
3453 case "(($ac_try" in
3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3456 esac
3457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3458 $as_echo "$ac_try_echo"; } >&5
3459 (eval "$ac_link_default") 2>&5
3460 ac_status=$?
3461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3462 test $ac_status = 0; }; then :
3463 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3464 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3465 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3466 # so that the user can short-circuit this test for compilers unknown to
3467 # Autoconf.
3468 for ac_file in $ac_files ''
3469 do
3470 test -f "$ac_file" || continue
3471 case $ac_file in
3472 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3473 ;;
3474 [ab].out )
3475 # We found the default executable, but exeext='' is most
3476 # certainly right.
3477 break;;
3478 *.* )
3479 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3480 then :; else
3481 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3482 fi
3483 # We set ac_cv_exeext here because the later test for it is not
3484 # safe: cross compilers may not add the suffix if given an `-o'
3485 # argument, so we may need to know it at that point already.
3486 # Even if this section looks crufty: it has the advantage of
3487 # actually working.
3488 break;;
3489 * )
3490 break;;
3491 esac
3492 done
3493 test "$ac_cv_exeext" = no && ac_cv_exeext=
3494
3495 else
3496 ac_file=''
3497 fi
3498 if test -z "$ac_file"; then :
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3500 $as_echo "no" >&6; }
3501 $as_echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3503
3504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3506 as_fn_error 77 "C compiler cannot create executables
3507 See \`config.log' for more details" "$LINENO" 5; }
3508 else
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3510 $as_echo "yes" >&6; }
3511 fi
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3513 $as_echo_n "checking for C compiler default output file name... " >&6; }
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3515 $as_echo "$ac_file" >&6; }
3516 ac_exeext=$ac_cv_exeext
3517
3518 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3519 ac_clean_files=$ac_clean_files_save
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3521 $as_echo_n "checking for suffix of executables... " >&6; }
3522 if { { ac_try="$ac_link"
3523 case "(($ac_try" in
3524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525 *) ac_try_echo=$ac_try;;
3526 esac
3527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3528 $as_echo "$ac_try_echo"; } >&5
3529 (eval "$ac_link") 2>&5
3530 ac_status=$?
3531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3532 test $ac_status = 0; }; then :
3533 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3534 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3535 # work properly (i.e., refer to `conftest.exe'), while it won't with
3536 # `rm'.
3537 for ac_file in conftest.exe conftest conftest.*; do
3538 test -f "$ac_file" || continue
3539 case $ac_file in
3540 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3541 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3542 break;;
3543 * ) break;;
3544 esac
3545 done
3546 else
3547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3549 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3550 See \`config.log' for more details" "$LINENO" 5; }
3551 fi
3552 rm -f conftest conftest$ac_cv_exeext
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3554 $as_echo "$ac_cv_exeext" >&6; }
3555
3556 rm -f conftest.$ac_ext
3557 EXEEXT=$ac_cv_exeext
3558 ac_exeext=$EXEEXT
3559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560 /* end confdefs.h. */
3561 #include <stdio.h>
3562 int
3563 main ()
3564 {
3565 FILE *f = fopen ("conftest.out", "w");
3566 return ferror (f) || fclose (f) != 0;
3567
3568 ;
3569 return 0;
3570 }
3571 _ACEOF
3572 ac_clean_files="$ac_clean_files conftest.out"
3573 # Check that the compiler produces executables we can run. If not, either
3574 # the compiler is broken, or we cross compile.
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3576 $as_echo_n "checking whether we are cross compiling... " >&6; }
3577 if test "$cross_compiling" != yes; then
3578 { { ac_try="$ac_link"
3579 case "(($ac_try" in
3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581 *) ac_try_echo=$ac_try;;
3582 esac
3583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3584 $as_echo "$ac_try_echo"; } >&5
3585 (eval "$ac_link") 2>&5
3586 ac_status=$?
3587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3588 test $ac_status = 0; }
3589 if { ac_try='./conftest$ac_cv_exeext'
3590 { { case "(($ac_try" in
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3593 esac
3594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3595 $as_echo "$ac_try_echo"; } >&5
3596 (eval "$ac_try") 2>&5
3597 ac_status=$?
3598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3599 test $ac_status = 0; }; }; then
3600 cross_compiling=no
3601 else
3602 if test "$cross_compiling" = maybe; then
3603 cross_compiling=yes
3604 else
3605 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3607 as_fn_error $? "cannot run C compiled programs.
3608 If you meant to cross compile, use \`--host'.
3609 See \`config.log' for more details" "$LINENO" 5; }
3610 fi
3611 fi
3612 fi
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3614 $as_echo "$cross_compiling" >&6; }
3615
3616 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3617 ac_clean_files=$ac_clean_files_save
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3619 $as_echo_n "checking for suffix of object files... " >&6; }
3620 if ${ac_cv_objext+:} false; then :
3621 $as_echo_n "(cached) " >&6
3622 else
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h. */
3625
3626 int
3627 main ()
3628 {
3629
3630 ;
3631 return 0;
3632 }
3633 _ACEOF
3634 rm -f conftest.o conftest.obj
3635 if { { ac_try="$ac_compile"
3636 case "(($ac_try" in
3637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638 *) ac_try_echo=$ac_try;;
3639 esac
3640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3641 $as_echo "$ac_try_echo"; } >&5
3642 (eval "$ac_compile") 2>&5
3643 ac_status=$?
3644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3645 test $ac_status = 0; }; then :
3646 for ac_file in conftest.o conftest.obj conftest.*; do
3647 test -f "$ac_file" || continue;
3648 case $ac_file in
3649 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3650 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3651 break;;
3652 esac
3653 done
3654 else
3655 $as_echo "$as_me: failed program was:" >&5
3656 sed 's/^/| /' conftest.$ac_ext >&5
3657
3658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3660 as_fn_error $? "cannot compute suffix of object files: cannot compile
3661 See \`config.log' for more details" "$LINENO" 5; }
3662 fi
3663 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3664 fi
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3666 $as_echo "$ac_cv_objext" >&6; }
3667 OBJEXT=$ac_cv_objext
3668 ac_objext=$OBJEXT
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3670 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3671 if ${ac_cv_c_compiler_gnu+:} false; then :
3672 $as_echo_n "(cached) " >&6
3673 else
3674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675 /* end confdefs.h. */
3676
3677 int
3678 main ()
3679 {
3680 #ifndef __GNUC__
3681 choke me
3682 #endif
3683
3684 ;
3685 return 0;
3686 }
3687 _ACEOF
3688 if ac_fn_c_try_compile "$LINENO"; then :
3689 ac_compiler_gnu=yes
3690 else
3691 ac_compiler_gnu=no
3692 fi
3693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3694 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3695
3696 fi
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3698 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3699 if test $ac_compiler_gnu = yes; then
3700 GCC=yes
3701 else
3702 GCC=
3703 fi
3704 ac_test_CFLAGS=${CFLAGS+set}
3705 ac_save_CFLAGS=$CFLAGS
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3707 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3708 if ${ac_cv_prog_cc_g+:} false; then :
3709 $as_echo_n "(cached) " >&6
3710 else
3711 ac_save_c_werror_flag=$ac_c_werror_flag
3712 ac_c_werror_flag=yes
3713 ac_cv_prog_cc_g=no
3714 CFLAGS="-g"
3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h. */
3717
3718 int
3719 main ()
3720 {
3721
3722 ;
3723 return 0;
3724 }
3725 _ACEOF
3726 if ac_fn_c_try_compile "$LINENO"; then :
3727 ac_cv_prog_cc_g=yes
3728 else
3729 CFLAGS=""
3730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731 /* end confdefs.h. */
3732
3733 int
3734 main ()
3735 {
3736
3737 ;
3738 return 0;
3739 }
3740 _ACEOF
3741 if ac_fn_c_try_compile "$LINENO"; then :
3742
3743 else
3744 ac_c_werror_flag=$ac_save_c_werror_flag
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 fi
3760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3761 fi
3762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3763 fi
3764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3765 ac_c_werror_flag=$ac_save_c_werror_flag
3766 fi
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3768 $as_echo "$ac_cv_prog_cc_g" >&6; }
3769 if test "$ac_test_CFLAGS" = set; then
3770 CFLAGS=$ac_save_CFLAGS
3771 elif test $ac_cv_prog_cc_g = yes; then
3772 if test "$GCC" = yes; then
3773 CFLAGS="-g -O2"
3774 else
3775 CFLAGS="-g"
3776 fi
3777 else
3778 if test "$GCC" = yes; then
3779 CFLAGS="-O2"
3780 else
3781 CFLAGS=
3782 fi
3783 fi
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3785 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3786 if ${ac_cv_prog_cc_c89+:} false; then :
3787 $as_echo_n "(cached) " >&6
3788 else
3789 ac_cv_prog_cc_c89=no
3790 ac_save_CC=$CC
3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792 /* end confdefs.h. */
3793 #include <stdarg.h>
3794 #include <stdio.h>
3795 #include <sys/types.h>
3796 #include <sys/stat.h>
3797 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3798 struct buf { int x; };
3799 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3800 static char *e (p, i)
3801 char **p;
3802 int i;
3803 {
3804 return p[i];
3805 }
3806 static char *f (char * (*g) (char **, int), char **p, ...)
3807 {
3808 char *s;
3809 va_list v;
3810 va_start (v,p);
3811 s = g (p, va_arg (v,int));
3812 va_end (v);
3813 return s;
3814 }
3815
3816 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3817 function prototypes and stuff, but not '\xHH' hex character constants.
3818 These don't provoke an error unfortunately, instead are silently treated
3819 as 'x'. The following induces an error, until -std is added to get
3820 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3821 array size at least. It's necessary to write '\x00'==0 to get something
3822 that's true only with -std. */
3823 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3824
3825 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3826 inside strings and character constants. */
3827 #define FOO(x) 'x'
3828 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3829
3830 int test (int i, double x);
3831 struct s1 {int (*f) (int a);};
3832 struct s2 {int (*f) (double a);};
3833 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3834 int argc;
3835 char **argv;
3836 int
3837 main ()
3838 {
3839 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3840 ;
3841 return 0;
3842 }
3843 _ACEOF
3844 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3845 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3846 do
3847 CC="$ac_save_CC $ac_arg"
3848 if ac_fn_c_try_compile "$LINENO"; then :
3849 ac_cv_prog_cc_c89=$ac_arg
3850 fi
3851 rm -f core conftest.err conftest.$ac_objext
3852 test "x$ac_cv_prog_cc_c89" != "xno" && break
3853 done
3854 rm -f conftest.$ac_ext
3855 CC=$ac_save_CC
3856
3857 fi
3858 # AC_CACHE_VAL
3859 case "x$ac_cv_prog_cc_c89" in
3860 x)
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3862 $as_echo "none needed" >&6; } ;;
3863 xno)
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3865 $as_echo "unsupported" >&6; } ;;
3866 *)
3867 CC="$CC $ac_cv_prog_cc_c89"
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3869 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3870 esac
3871 if test "x$ac_cv_prog_cc_c89" != xno; then :
3872
3873 fi
3874
3875 ac_ext=c
3876 ac_cpp='$CPP $CPPFLAGS'
3877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3880
3881 ac_ext=c
3882 ac_cpp='$CPP $CPPFLAGS'
3883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3887 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3888 if ${am_cv_prog_cc_c_o+:} false; then :
3889 $as_echo_n "(cached) " >&6
3890 else
3891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3892 /* end confdefs.h. */
3893
3894 int
3895 main ()
3896 {
3897
3898 ;
3899 return 0;
3900 }
3901 _ACEOF
3902 # Make sure it works both with $CC and with simple cc.
3903 # Following AC_PROG_CC_C_O, we do the test twice because some
3904 # compilers refuse to overwrite an existing .o file with -o,
3905 # though they will create one.
3906 am_cv_prog_cc_c_o=yes
3907 for am_i in 1 2; do
3908 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3909 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3910 ac_status=$?
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); } \
3913 && test -f conftest2.$ac_objext; then
3914 : OK
3915 else
3916 am_cv_prog_cc_c_o=no
3917 break
3918 fi
3919 done
3920 rm -f core conftest*
3921 unset am_i
3922 fi
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3924 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3925 if test "$am_cv_prog_cc_c_o" != yes; then
3926 # Losing compiler, so override with the script.
3927 # FIXME: It is wrong to rewrite CC.
3928 # But if we don't then we get into trouble of one sort or another.
3929 # A longer-term fix would be to have automake use am__CC in this case,
3930 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3931 CC="$am_aux_dir/compile $CC"
3932 fi
3933 ac_ext=c
3934 ac_cpp='$CPP $CPPFLAGS'
3935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3938
3939
3940 depcc="$CC" am_compiler_list=
3941
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3943 $as_echo_n "checking dependency style of $depcc... " >&6; }
3944 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3945 $as_echo_n "(cached) " >&6
3946 else
3947 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3948 # We make a subdir and do the tests there. Otherwise we can end up
3949 # making bogus files that we don't know about and never remove. For
3950 # instance it was reported that on HP-UX the gcc test will end up
3951 # making a dummy file named 'D' -- because '-MD' means "put the output
3952 # in D".
3953 rm -rf conftest.dir
3954 mkdir conftest.dir
3955 # Copy depcomp to subdir because otherwise we won't find it if we're
3956 # using a relative directory.
3957 cp "$am_depcomp" conftest.dir
3958 cd conftest.dir
3959 # We will build objects and dependencies in a subdirectory because
3960 # it helps to detect inapplicable dependency modes. For instance
3961 # both Tru64's cc and ICC support -MD to output dependencies as a
3962 # side effect of compilation, but ICC will put the dependencies in
3963 # the current directory while Tru64 will put them in the object
3964 # directory.
3965 mkdir sub
3966
3967 am_cv_CC_dependencies_compiler_type=none
3968 if test "$am_compiler_list" = ""; then
3969 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3970 fi
3971 am__universal=false
3972 case " $depcc " in #(
3973 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3974 esac
3975
3976 for depmode in $am_compiler_list; do
3977 # Setup a source with many dependencies, because some compilers
3978 # like to wrap large dependency lists on column 80 (with \), and
3979 # we should not choose a depcomp mode which is confused by this.
3980 #
3981 # We need to recreate these files for each test, as the compiler may
3982 # overwrite some of them when testing with obscure command lines.
3983 # This happens at least with the AIX C compiler.
3984 : > sub/conftest.c
3985 for i in 1 2 3 4 5 6; do
3986 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3987 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3988 # Solaris 10 /bin/sh.
3989 echo '/* dummy */' > sub/conftst$i.h
3990 done
3991 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3992
3993 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3994 # mode. It turns out that the SunPro C++ compiler does not properly
3995 # handle '-M -o', and we need to detect this. Also, some Intel
3996 # versions had trouble with output in subdirs.
3997 am__obj=sub/conftest.${OBJEXT-o}
3998 am__minus_obj="-o $am__obj"
3999 case $depmode in
4000 gcc)
4001 # This depmode causes a compiler race in universal mode.
4002 test "$am__universal" = false || continue
4003 ;;
4004 nosideeffect)
4005 # After this tag, mechanisms are not by side-effect, so they'll
4006 # only be used when explicitly requested.
4007 if test "x$enable_dependency_tracking" = xyes; then
4008 continue
4009 else
4010 break
4011 fi
4012 ;;
4013 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4014 # This compiler won't grok '-c -o', but also, the minuso test has
4015 # not run yet. These depmodes are late enough in the game, and
4016 # so weak that their functioning should not be impacted.
4017 am__obj=conftest.${OBJEXT-o}
4018 am__minus_obj=
4019 ;;
4020 none) break ;;
4021 esac
4022 if depmode=$depmode \
4023 source=sub/conftest.c object=$am__obj \
4024 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4025 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4026 >/dev/null 2>conftest.err &&
4027 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4028 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4029 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4030 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4031 # icc doesn't choke on unknown options, it will just issue warnings
4032 # or remarks (even with -Werror). So we grep stderr for any message
4033 # that says an option was ignored or not supported.
4034 # When given -MP, icc 7.0 and 7.1 complain thusly:
4035 # icc: Command line warning: ignoring option '-M'; no argument required
4036 # The diagnosis changed in icc 8.0:
4037 # icc: Command line remark: option '-MP' not supported
4038 if (grep 'ignoring option' conftest.err ||
4039 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4040 am_cv_CC_dependencies_compiler_type=$depmode
4041 break
4042 fi
4043 fi
4044 done
4045
4046 cd ..
4047 rm -rf conftest.dir
4048 else
4049 am_cv_CC_dependencies_compiler_type=none
4050 fi
4051
4052 fi
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4054 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4055 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4056
4057 if
4058 test "x$enable_dependency_tracking" != xno \
4059 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4060 am__fastdepCC_TRUE=
4061 am__fastdepCC_FALSE='#'
4062 else
4063 am__fastdepCC_TRUE='#'
4064 am__fastdepCC_FALSE=
4065 fi
4066
4067
4068
4069 ac_ext=c
4070 ac_cpp='$CPP $CPPFLAGS'
4071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4075 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4076 # On Suns, sometimes $CPP names a directory.
4077 if test -n "$CPP" && test -d "$CPP"; then
4078 CPP=
4079 fi
4080 if test -z "$CPP"; then
4081 if ${ac_cv_prog_CPP+:} false; then :
4082 $as_echo_n "(cached) " >&6
4083 else
4084 # Double quotes because CPP needs to be expanded
4085 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4086 do
4087 ac_preproc_ok=false
4088 for ac_c_preproc_warn_flag in '' yes
4089 do
4090 # Use a header file that comes with gcc, so configuring glibc
4091 # with a fresh cross-compiler works.
4092 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4093 # <limits.h> exists even on freestanding compilers.
4094 # On the NeXT, cc -E runs the code through the compiler's parser,
4095 # not just through cpp. "Syntax error" is here to catch this case.
4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h. */
4098 #ifdef __STDC__
4099 # include <limits.h>
4100 #else
4101 # include <assert.h>
4102 #endif
4103 Syntax error
4104 _ACEOF
4105 if ac_fn_c_try_cpp "$LINENO"; then :
4106
4107 else
4108 # Broken: fails on valid input.
4109 continue
4110 fi
4111 rm -f conftest.err conftest.i conftest.$ac_ext
4112
4113 # OK, works on sane cases. Now check whether nonexistent headers
4114 # can be detected and how.
4115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116 /* end confdefs.h. */
4117 #include <ac_nonexistent.h>
4118 _ACEOF
4119 if ac_fn_c_try_cpp "$LINENO"; then :
4120 # Broken: success on invalid input.
4121 continue
4122 else
4123 # Passes both tests.
4124 ac_preproc_ok=:
4125 break
4126 fi
4127 rm -f conftest.err conftest.i conftest.$ac_ext
4128
4129 done
4130 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4131 rm -f conftest.i conftest.err conftest.$ac_ext
4132 if $ac_preproc_ok; then :
4133 break
4134 fi
4135
4136 done
4137 ac_cv_prog_CPP=$CPP
4138
4139 fi
4140 CPP=$ac_cv_prog_CPP
4141 else
4142 ac_cv_prog_CPP=$CPP
4143 fi
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4145 $as_echo "$CPP" >&6; }
4146 ac_preproc_ok=false
4147 for ac_c_preproc_warn_flag in '' yes
4148 do
4149 # Use a header file that comes with gcc, so configuring glibc
4150 # with a fresh cross-compiler works.
4151 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4152 # <limits.h> exists even on freestanding compilers.
4153 # On the NeXT, cc -E runs the code through the compiler's parser,
4154 # not just through cpp. "Syntax error" is here to catch this case.
4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156 /* end confdefs.h. */
4157 #ifdef __STDC__
4158 # include <limits.h>
4159 #else
4160 # include <assert.h>
4161 #endif
4162 Syntax error
4163 _ACEOF
4164 if ac_fn_c_try_cpp "$LINENO"; then :
4165
4166 else
4167 # Broken: fails on valid input.
4168 continue
4169 fi
4170 rm -f conftest.err conftest.i conftest.$ac_ext
4171
4172 # OK, works on sane cases. Now check whether nonexistent headers
4173 # can be detected and how.
4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h. */
4176 #include <ac_nonexistent.h>
4177 _ACEOF
4178 if ac_fn_c_try_cpp "$LINENO"; then :
4179 # Broken: success on invalid input.
4180 continue
4181 else
4182 # Passes both tests.
4183 ac_preproc_ok=:
4184 break
4185 fi
4186 rm -f conftest.err conftest.i conftest.$ac_ext
4187
4188 done
4189 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4190 rm -f conftest.i conftest.err conftest.$ac_ext
4191 if $ac_preproc_ok; then :
4192
4193 else
4194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4196 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4197 See \`config.log' for more details" "$LINENO" 5; }
4198 fi
4199
4200 ac_ext=c
4201 ac_cpp='$CPP $CPPFLAGS'
4202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4205
4206
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4208 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4209 if ${ac_cv_path_GREP+:} false; then :
4210 $as_echo_n "(cached) " >&6
4211 else
4212 if test -z "$GREP"; then
4213 ac_path_GREP_found=false
4214 # Loop through the user's path and test for each of PROGNAME-LIST
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4217 do
4218 IFS=$as_save_IFS
4219 test -z "$as_dir" && as_dir=.
4220 for ac_prog in grep ggrep; do
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4223 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4224 # Check for GNU ac_path_GREP and select it if it is found.
4225 # Check for GNU $ac_path_GREP
4226 case `"$ac_path_GREP" --version 2>&1` in
4227 *GNU*)
4228 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4229 *)
4230 ac_count=0
4231 $as_echo_n 0123456789 >"conftest.in"
4232 while :
4233 do
4234 cat "conftest.in" "conftest.in" >"conftest.tmp"
4235 mv "conftest.tmp" "conftest.in"
4236 cp "conftest.in" "conftest.nl"
4237 $as_echo 'GREP' >> "conftest.nl"
4238 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4239 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4240 as_fn_arith $ac_count + 1 && ac_count=$as_val
4241 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4242 # Best one so far, save it but keep looking for a better one
4243 ac_cv_path_GREP="$ac_path_GREP"
4244 ac_path_GREP_max=$ac_count
4245 fi
4246 # 10*(2^10) chars as input seems more than enough
4247 test $ac_count -gt 10 && break
4248 done
4249 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4250 esac
4251
4252 $ac_path_GREP_found && break 3
4253 done
4254 done
4255 done
4256 IFS=$as_save_IFS
4257 if test -z "$ac_cv_path_GREP"; then
4258 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4259 fi
4260 else
4261 ac_cv_path_GREP=$GREP
4262 fi
4263
4264 fi
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4266 $as_echo "$ac_cv_path_GREP" >&6; }
4267 GREP="$ac_cv_path_GREP"
4268
4269
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4271 $as_echo_n "checking for egrep... " >&6; }
4272 if ${ac_cv_path_EGREP+:} false; then :
4273 $as_echo_n "(cached) " >&6
4274 else
4275 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4276 then ac_cv_path_EGREP="$GREP -E"
4277 else
4278 if test -z "$EGREP"; then
4279 ac_path_EGREP_found=false
4280 # Loop through the user's path and test for each of PROGNAME-LIST
4281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4283 do
4284 IFS=$as_save_IFS
4285 test -z "$as_dir" && as_dir=.
4286 for ac_prog in egrep; do
4287 for ac_exec_ext in '' $ac_executable_extensions; do
4288 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4289 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4290 # Check for GNU ac_path_EGREP and select it if it is found.
4291 # Check for GNU $ac_path_EGREP
4292 case `"$ac_path_EGREP" --version 2>&1` in
4293 *GNU*)
4294 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4295 *)
4296 ac_count=0
4297 $as_echo_n 0123456789 >"conftest.in"
4298 while :
4299 do
4300 cat "conftest.in" "conftest.in" >"conftest.tmp"
4301 mv "conftest.tmp" "conftest.in"
4302 cp "conftest.in" "conftest.nl"
4303 $as_echo 'EGREP' >> "conftest.nl"
4304 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4305 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4306 as_fn_arith $ac_count + 1 && ac_count=$as_val
4307 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4308 # Best one so far, save it but keep looking for a better one
4309 ac_cv_path_EGREP="$ac_path_EGREP"
4310 ac_path_EGREP_max=$ac_count
4311 fi
4312 # 10*(2^10) chars as input seems more than enough
4313 test $ac_count -gt 10 && break
4314 done
4315 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4316 esac
4317
4318 $ac_path_EGREP_found && break 3
4319 done
4320 done
4321 done
4322 IFS=$as_save_IFS
4323 if test -z "$ac_cv_path_EGREP"; then
4324 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4325 fi
4326 else
4327 ac_cv_path_EGREP=$EGREP
4328 fi
4329
4330 fi
4331 fi
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4333 $as_echo "$ac_cv_path_EGREP" >&6; }
4334 EGREP="$ac_cv_path_EGREP"
4335
4336
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4338 $as_echo_n "checking for ANSI C header files... " >&6; }
4339 if ${ac_cv_header_stdc+:} false; then :
4340 $as_echo_n "(cached) " >&6
4341 else
4342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343 /* end confdefs.h. */
4344 #include <stdlib.h>
4345 #include <stdarg.h>
4346 #include <string.h>
4347 #include <float.h>
4348
4349 int
4350 main ()
4351 {
4352
4353 ;
4354 return 0;
4355 }
4356 _ACEOF
4357 if ac_fn_c_try_compile "$LINENO"; then :
4358 ac_cv_header_stdc=yes
4359 else
4360 ac_cv_header_stdc=no
4361 fi
4362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4363
4364 if test $ac_cv_header_stdc = yes; then
4365 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367 /* end confdefs.h. */
4368 #include <string.h>
4369
4370 _ACEOF
4371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4372 $EGREP "memchr" >/dev/null 2>&1; then :
4373
4374 else
4375 ac_cv_header_stdc=no
4376 fi
4377 rm -f conftest*
4378
4379 fi
4380
4381 if test $ac_cv_header_stdc = yes; then
4382 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4384 /* end confdefs.h. */
4385 #include <stdlib.h>
4386
4387 _ACEOF
4388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4389 $EGREP "free" >/dev/null 2>&1; then :
4390
4391 else
4392 ac_cv_header_stdc=no
4393 fi
4394 rm -f conftest*
4395
4396 fi
4397
4398 if test $ac_cv_header_stdc = yes; then
4399 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4400 if test "$cross_compiling" = yes; then :
4401 :
4402 else
4403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404 /* end confdefs.h. */
4405 #include <ctype.h>
4406 #include <stdlib.h>
4407 #if ((' ' & 0x0FF) == 0x020)
4408 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4409 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4410 #else
4411 # define ISLOWER(c) \
4412 (('a' <= (c) && (c) <= 'i') \
4413 || ('j' <= (c) && (c) <= 'r') \
4414 || ('s' <= (c) && (c) <= 'z'))
4415 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4416 #endif
4417
4418 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4419 int
4420 main ()
4421 {
4422 int i;
4423 for (i = 0; i < 256; i++)
4424 if (XOR (islower (i), ISLOWER (i))
4425 || toupper (i) != TOUPPER (i))
4426 return 2;
4427 return 0;
4428 }
4429 _ACEOF
4430 if ac_fn_c_try_run "$LINENO"; then :
4431
4432 else
4433 ac_cv_header_stdc=no
4434 fi
4435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4436 conftest.$ac_objext conftest.beam conftest.$ac_ext
4437 fi
4438
4439 fi
4440 fi
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4442 $as_echo "$ac_cv_header_stdc" >&6; }
4443 if test $ac_cv_header_stdc = yes; then
4444
4445 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4446
4447 fi
4448
4449 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4450 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4451 inttypes.h stdint.h unistd.h
4452 do :
4453 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4454 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4455 "
4456 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4457 cat >>confdefs.h <<_ACEOF
4458 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4459 _ACEOF
4460
4461 fi
4462
4463 done
4464
4465
4466
4467 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4468 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4469 MINIX=yes
4470 else
4471 MINIX=
4472 fi
4473
4474
4475 if test "$MINIX" = yes; then
4476
4477 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4478
4479
4480 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4481
4482
4483 $as_echo "#define _MINIX 1" >>confdefs.h
4484
4485 fi
4486
4487
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4489 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4490 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4491 $as_echo_n "(cached) " >&6
4492 else
4493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h. */
4495
4496 # define __EXTENSIONS__ 1
4497 $ac_includes_default
4498 int
4499 main ()
4500 {
4501
4502 ;
4503 return 0;
4504 }
4505 _ACEOF
4506 if ac_fn_c_try_compile "$LINENO"; then :
4507 ac_cv_safe_to_define___extensions__=yes
4508 else
4509 ac_cv_safe_to_define___extensions__=no
4510 fi
4511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4512 fi
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4514 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4515 test $ac_cv_safe_to_define___extensions__ = yes &&
4516 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4517
4518 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4519
4520 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4521
4522 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4523
4524 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4525
4526
4527
4528 # Initialize libtool
4529 case `pwd` in
4530 *\ * | *\ *)
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4532 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4533 esac
4534
4535
4536
4537 macro_version='2.4.2'
4538 macro_revision='1.3337'
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552 ltmain="$ac_aux_dir/ltmain.sh"
4553
4554 # Make sure we can run config.sub.
4555 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4556 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4557
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4559 $as_echo_n "checking build system type... " >&6; }
4560 if ${ac_cv_build+:} false; then :
4561 $as_echo_n "(cached) " >&6
4562 else
4563 ac_build_alias=$build_alias
4564 test "x$ac_build_alias" = x &&
4565 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4566 test "x$ac_build_alias" = x &&
4567 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4568 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4569 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4570
4571 fi
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4573 $as_echo "$ac_cv_build" >&6; }
4574 case $ac_cv_build in
4575 *-*-*) ;;
4576 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4577 esac
4578 build=$ac_cv_build
4579 ac_save_IFS=$IFS; IFS='-'
4580 set x $ac_cv_build
4581 shift
4582 build_cpu=$1
4583 build_vendor=$2
4584 shift; shift
4585 # Remember, the first character of IFS is used to create $*,
4586 # except with old shells:
4587 build_os=$*
4588 IFS=$ac_save_IFS
4589 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4590
4591
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4593 $as_echo_n "checking host system type... " >&6; }
4594 if ${ac_cv_host+:} false; then :
4595 $as_echo_n "(cached) " >&6
4596 else
4597 if test "x$host_alias" = x; then
4598 ac_cv_host=$ac_cv_build
4599 else
4600 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4601 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4602 fi
4603
4604 fi
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4606 $as_echo "$ac_cv_host" >&6; }
4607 case $ac_cv_host in
4608 *-*-*) ;;
4609 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4610 esac
4611 host=$ac_cv_host
4612 ac_save_IFS=$IFS; IFS='-'
4613 set x $ac_cv_host
4614 shift
4615 host_cpu=$1
4616 host_vendor=$2
4617 shift; shift
4618 # Remember, the first character of IFS is used to create $*,
4619 # except with old shells:
4620 host_os=$*
4621 IFS=$ac_save_IFS
4622 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4623
4624
4625 # Backslashify metacharacters that are still active within
4626 # double-quoted strings.
4627 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4628
4629 # Same as above, but do not quote variable references.
4630 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4631
4632 # Sed substitution to delay expansion of an escaped shell variable in a
4633 # double_quote_subst'ed string.
4634 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4635
4636 # Sed substitution to delay expansion of an escaped single quote.
4637 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4638
4639 # Sed substitution to avoid accidental globbing in evaled expressions
4640 no_glob_subst='s/\*/\\\*/g'
4641
4642 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4643 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4644 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4645
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4647 $as_echo_n "checking how to print strings... " >&6; }
4648 # Test print first, because it will be a builtin if present.
4649 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4650 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4651 ECHO='print -r --'
4652 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4653 ECHO='printf %s\n'
4654 else
4655 # Use this function as a fallback that always works.
4656 func_fallback_echo ()
4657 {
4658 eval 'cat <<_LTECHO_EOF
4659 $1
4660 _LTECHO_EOF'
4661 }
4662 ECHO='func_fallback_echo'
4663 fi
4664
4665 # func_echo_all arg...
4666 # Invoke $ECHO with all args, space-separated.
4667 func_echo_all ()
4668 {
4669 $ECHO ""
4670 }
4671
4672 case "$ECHO" in
4673 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4674 $as_echo "printf" >&6; } ;;
4675 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4676 $as_echo "print -r" >&6; } ;;
4677 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4678 $as_echo "cat" >&6; } ;;
4679 esac
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4695 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4696 if ${ac_cv_path_SED+:} false; then :
4697 $as_echo_n "(cached) " >&6
4698 else
4699 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4700 for ac_i in 1 2 3 4 5 6 7; do
4701 ac_script="$ac_script$as_nl$ac_script"
4702 done
4703 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4704 { ac_script=; unset ac_script;}
4705 if test -z "$SED"; then
4706 ac_path_SED_found=false
4707 # Loop through the user's path and test for each of PROGNAME-LIST
4708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 for as_dir in $PATH
4710 do
4711 IFS=$as_save_IFS
4712 test -z "$as_dir" && as_dir=.
4713 for ac_prog in sed gsed; do
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4716 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4717 # Check for GNU ac_path_SED and select it if it is found.
4718 # Check for GNU $ac_path_SED
4719 case `"$ac_path_SED" --version 2>&1` in
4720 *GNU*)
4721 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4722 *)
4723 ac_count=0
4724 $as_echo_n 0123456789 >"conftest.in"
4725 while :
4726 do
4727 cat "conftest.in" "conftest.in" >"conftest.tmp"
4728 mv "conftest.tmp" "conftest.in"
4729 cp "conftest.in" "conftest.nl"
4730 $as_echo '' >> "conftest.nl"
4731 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4732 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4733 as_fn_arith $ac_count + 1 && ac_count=$as_val
4734 if test $ac_count -gt ${ac_path_SED_max-0}; then
4735 # Best one so far, save it but keep looking for a better one
4736 ac_cv_path_SED="$ac_path_SED"
4737 ac_path_SED_max=$ac_count
4738 fi
4739 # 10*(2^10) chars as input seems more than enough
4740 test $ac_count -gt 10 && break
4741 done
4742 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4743 esac
4744
4745 $ac_path_SED_found && break 3
4746 done
4747 done
4748 done
4749 IFS=$as_save_IFS
4750 if test -z "$ac_cv_path_SED"; then
4751 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4752 fi
4753 else
4754 ac_cv_path_SED=$SED
4755 fi
4756
4757 fi
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4759 $as_echo "$ac_cv_path_SED" >&6; }
4760 SED="$ac_cv_path_SED"
4761 rm -f conftest.sed
4762
4763 test -z "$SED" && SED=sed
4764 Xsed="$SED -e 1s/^X//"
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4777 $as_echo_n "checking for fgrep... " >&6; }
4778 if ${ac_cv_path_FGREP+:} false; then :
4779 $as_echo_n "(cached) " >&6
4780 else
4781 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4782 then ac_cv_path_FGREP="$GREP -F"
4783 else
4784 if test -z "$FGREP"; then
4785 ac_path_FGREP_found=false
4786 # Loop through the user's path and test for each of PROGNAME-LIST
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4789 do
4790 IFS=$as_save_IFS
4791 test -z "$as_dir" && as_dir=.
4792 for ac_prog in fgrep; do
4793 for ac_exec_ext in '' $ac_executable_extensions; do
4794 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4795 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4796 # Check for GNU ac_path_FGREP and select it if it is found.
4797 # Check for GNU $ac_path_FGREP
4798 case `"$ac_path_FGREP" --version 2>&1` in
4799 *GNU*)
4800 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4801 *)
4802 ac_count=0
4803 $as_echo_n 0123456789 >"conftest.in"
4804 while :
4805 do
4806 cat "conftest.in" "conftest.in" >"conftest.tmp"
4807 mv "conftest.tmp" "conftest.in"
4808 cp "conftest.in" "conftest.nl"
4809 $as_echo 'FGREP' >> "conftest.nl"
4810 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4811 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4812 as_fn_arith $ac_count + 1 && ac_count=$as_val
4813 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4814 # Best one so far, save it but keep looking for a better one
4815 ac_cv_path_FGREP="$ac_path_FGREP"
4816 ac_path_FGREP_max=$ac_count
4817 fi
4818 # 10*(2^10) chars as input seems more than enough
4819 test $ac_count -gt 10 && break
4820 done
4821 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4822 esac
4823
4824 $ac_path_FGREP_found && break 3
4825 done
4826 done
4827 done
4828 IFS=$as_save_IFS
4829 if test -z "$ac_cv_path_FGREP"; then
4830 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4831 fi
4832 else
4833 ac_cv_path_FGREP=$FGREP
4834 fi
4835
4836 fi
4837 fi
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4839 $as_echo "$ac_cv_path_FGREP" >&6; }
4840 FGREP="$ac_cv_path_FGREP"
4841
4842
4843 test -z "$GREP" && GREP=grep
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863 # Check whether --with-gnu-ld was given.
4864 if test "${with_gnu_ld+set}" = set; then :
4865 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4866 else
4867 with_gnu_ld=no
4868 fi
4869
4870 ac_prog=ld
4871 if test "$GCC" = yes; then
4872 # Check if gcc -print-prog-name=ld gives a path.
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4874 $as_echo_n "checking for ld used by $CC... " >&6; }
4875 case $host in
4876 *-*-mingw*)
4877 # gcc leaves a trailing carriage return which upsets mingw
4878 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4879 *)
4880 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4881 esac
4882 case $ac_prog in
4883 # Accept absolute paths.
4884 [\\/]* | ?:[\\/]*)
4885 re_direlt='/[^/][^/]*/\.\./'
4886 # Canonicalize the pathname of ld
4887 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4888 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4889 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4890 done
4891 test -z "$LD" && LD="$ac_prog"
4892 ;;
4893 "")
4894 # If it fails, then pretend we aren't using GCC.
4895 ac_prog=ld
4896 ;;
4897 *)
4898 # If it is relative, then search for the first ld in PATH.
4899 with_gnu_ld=unknown
4900 ;;
4901 esac
4902 elif test "$with_gnu_ld" = yes; then
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4904 $as_echo_n "checking for GNU ld... " >&6; }
4905 else
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4907 $as_echo_n "checking for non-GNU ld... " >&6; }
4908 fi
4909 if ${lt_cv_path_LD+:} false; then :
4910 $as_echo_n "(cached) " >&6
4911 else
4912 if test -z "$LD"; then
4913 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4914 for ac_dir in $PATH; do
4915 IFS="$lt_save_ifs"
4916 test -z "$ac_dir" && ac_dir=.
4917 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4918 lt_cv_path_LD="$ac_dir/$ac_prog"
4919 # Check to see if the program is GNU ld. I'd rather use --version,
4920 # but apparently some variants of GNU ld only accept -v.
4921 # Break only if it was the GNU/non-GNU ld that we prefer.
4922 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4923 *GNU* | *'with BFD'*)
4924 test "$with_gnu_ld" != no && break
4925 ;;
4926 *)
4927 test "$with_gnu_ld" != yes && break
4928 ;;
4929 esac
4930 fi
4931 done
4932 IFS="$lt_save_ifs"
4933 else
4934 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4935 fi
4936 fi
4937
4938 LD="$lt_cv_path_LD"
4939 if test -n "$LD"; then
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4941 $as_echo "$LD" >&6; }
4942 else
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4944 $as_echo "no" >&6; }
4945 fi
4946 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4948 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4949 if ${lt_cv_prog_gnu_ld+:} false; then :
4950 $as_echo_n "(cached) " >&6
4951 else
4952 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4953 case `$LD -v 2>&1 </dev/null` in
4954 *GNU* | *'with BFD'*)
4955 lt_cv_prog_gnu_ld=yes
4956 ;;
4957 *)
4958 lt_cv_prog_gnu_ld=no
4959 ;;
4960 esac
4961 fi
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4963 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4964 with_gnu_ld=$lt_cv_prog_gnu_ld
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4975 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4976 if ${lt_cv_path_NM+:} false; then :
4977 $as_echo_n "(cached) " >&6
4978 else
4979 if test -n "$NM"; then
4980 # Let the user override the test.
4981 lt_cv_path_NM="$NM"
4982 else
4983 lt_nm_to_check="${ac_tool_prefix}nm"
4984 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4985 lt_nm_to_check="$lt_nm_to_check nm"
4986 fi
4987 for lt_tmp_nm in $lt_nm_to_check; do
4988 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4989 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4990 IFS="$lt_save_ifs"
4991 test -z "$ac_dir" && ac_dir=.
4992 tmp_nm="$ac_dir/$lt_tmp_nm"
4993 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4994 # Check to see if the nm accepts a BSD-compat flag.
4995 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4996 # nm: unknown option "B" ignored
4997 # Tru64's nm complains that /dev/null is an invalid object file
4998 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4999 */dev/null* | *'Invalid file or object type'*)
5000 lt_cv_path_NM="$tmp_nm -B"
5001 break
5002 ;;
5003 *)
5004 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5005 */dev/null*)
5006 lt_cv_path_NM="$tmp_nm -p"
5007 break
5008 ;;
5009 *)
5010 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5011 continue # so that we can try to find one that supports BSD flags
5012 ;;
5013 esac
5014 ;;
5015 esac
5016 fi
5017 done
5018 IFS="$lt_save_ifs"
5019 done
5020 : ${lt_cv_path_NM=no}
5021 fi
5022 fi
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5024 $as_echo "$lt_cv_path_NM" >&6; }
5025 if test "$lt_cv_path_NM" != "no"; then
5026 NM="$lt_cv_path_NM"
5027 else
5028 # Didn't find any BSD compatible name lister, look for dumpbin.
5029 if test -n "$DUMPBIN"; then :
5030 # Let the user override the test.
5031 else
5032 if test -n "$ac_tool_prefix"; then
5033 for ac_prog in dumpbin "link -dump"
5034 do
5035 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5036 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5038 $as_echo_n "checking for $ac_word... " >&6; }
5039 if ${ac_cv_prog_DUMPBIN+:} false; then :
5040 $as_echo_n "(cached) " >&6
5041 else
5042 if test -n "$DUMPBIN"; then
5043 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5044 else
5045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046 for as_dir in $PATH
5047 do
5048 IFS=$as_save_IFS
5049 test -z "$as_dir" && as_dir=.
5050 for ac_exec_ext in '' $ac_executable_extensions; do
5051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5052 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5054 break 2
5055 fi
5056 done
5057 done
5058 IFS=$as_save_IFS
5059
5060 fi
5061 fi
5062 DUMPBIN=$ac_cv_prog_DUMPBIN
5063 if test -n "$DUMPBIN"; then
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5065 $as_echo "$DUMPBIN" >&6; }
5066 else
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5068 $as_echo "no" >&6; }
5069 fi
5070
5071
5072 test -n "$DUMPBIN" && break
5073 done
5074 fi
5075 if test -z "$DUMPBIN"; then
5076 ac_ct_DUMPBIN=$DUMPBIN
5077 for ac_prog in dumpbin "link -dump"
5078 do
5079 # Extract the first word of "$ac_prog", so it can be a program name with args.
5080 set dummy $ac_prog; ac_word=$2
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5082 $as_echo_n "checking for $ac_word... " >&6; }
5083 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5084 $as_echo_n "(cached) " >&6
5085 else
5086 if test -n "$ac_ct_DUMPBIN"; then
5087 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5088 else
5089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090 for as_dir in $PATH
5091 do
5092 IFS=$as_save_IFS
5093 test -z "$as_dir" && as_dir=.
5094 for ac_exec_ext in '' $ac_executable_extensions; do
5095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5096 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5098 break 2
5099 fi
5100 done
5101 done
5102 IFS=$as_save_IFS
5103
5104 fi
5105 fi
5106 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5107 if test -n "$ac_ct_DUMPBIN"; then
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5109 $as_echo "$ac_ct_DUMPBIN" >&6; }
5110 else
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5112 $as_echo "no" >&6; }
5113 fi
5114
5115
5116 test -n "$ac_ct_DUMPBIN" && break
5117 done
5118
5119 if test "x$ac_ct_DUMPBIN" = x; then
5120 DUMPBIN=":"
5121 else
5122 case $cross_compiling:$ac_tool_warned in
5123 yes:)
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5126 ac_tool_warned=yes ;;
5127 esac
5128 DUMPBIN=$ac_ct_DUMPBIN
5129 fi
5130 fi
5131
5132 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5133 *COFF*)
5134 DUMPBIN="$DUMPBIN -symbols"
5135 ;;
5136 *)
5137 DUMPBIN=:
5138 ;;
5139 esac
5140 fi
5141
5142 if test "$DUMPBIN" != ":"; then
5143 NM="$DUMPBIN"
5144 fi
5145 fi
5146 test -z "$NM" && NM=nm
5147
5148
5149
5150
5151
5152
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5154 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5155 if ${lt_cv_nm_interface+:} false; then :
5156 $as_echo_n "(cached) " >&6
5157 else
5158 lt_cv_nm_interface="BSD nm"
5159 echo "int some_variable = 0;" > conftest.$ac_ext
5160 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5161 (eval "$ac_compile" 2>conftest.err)
5162 cat conftest.err >&5
5163 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5164 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5165 cat conftest.err >&5
5166 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5167 cat conftest.out >&5
5168 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5169 lt_cv_nm_interface="MS dumpbin"
5170 fi
5171 rm -f conftest*
5172 fi
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5174 $as_echo "$lt_cv_nm_interface" >&6; }
5175
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5177 $as_echo_n "checking whether ln -s works... " >&6; }
5178 LN_S=$as_ln_s
5179 if test "$LN_S" = "ln -s"; then
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5181 $as_echo "yes" >&6; }
5182 else
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5184 $as_echo "no, using $LN_S" >&6; }
5185 fi
5186
5187 # find the maximum length of command line arguments
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5189 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5190 if ${lt_cv_sys_max_cmd_len+:} false; then :
5191 $as_echo_n "(cached) " >&6
5192 else
5193 i=0
5194 teststring="ABCD"
5195
5196 case $build_os in
5197 msdosdjgpp*)
5198 # On DJGPP, this test can blow up pretty badly due to problems in libc
5199 # (any single argument exceeding 2000 bytes causes a buffer overrun
5200 # during glob expansion). Even if it were fixed, the result of this
5201 # check would be larger than it should be.
5202 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5203 ;;
5204
5205 gnu*)
5206 # Under GNU Hurd, this test is not required because there is
5207 # no limit to the length of command line arguments.
5208 # Libtool will interpret -1 as no limit whatsoever
5209 lt_cv_sys_max_cmd_len=-1;
5210 ;;
5211
5212 cygwin* | mingw* | cegcc*)
5213 # On Win9x/ME, this test blows up -- it succeeds, but takes
5214 # about 5 minutes as the teststring grows exponentially.
5215 # Worse, since 9x/ME are not pre-emptively multitasking,
5216 # you end up with a "frozen" computer, even though with patience
5217 # the test eventually succeeds (with a max line length of 256k).
5218 # Instead, let's just punt: use the minimum linelength reported by
5219 # all of the supported platforms: 8192 (on NT/2K/XP).
5220 lt_cv_sys_max_cmd_len=8192;
5221 ;;
5222
5223 mint*)
5224 # On MiNT this can take a long time and run out of memory.
5225 lt_cv_sys_max_cmd_len=8192;
5226 ;;
5227
5228 amigaos*)
5229 # On AmigaOS with pdksh, this test takes hours, literally.
5230 # So we just punt and use a minimum line length of 8192.
5231 lt_cv_sys_max_cmd_len=8192;
5232 ;;
5233
5234 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5235 # This has been around since 386BSD, at least. Likely further.
5236 if test -x /sbin/sysctl; then
5237 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5238 elif test -x /usr/sbin/sysctl; then
5239 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5240 else
5241 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5242 fi
5243 # And add a safety zone
5244 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5245 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5246 ;;
5247
5248 interix*)
5249 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5250 lt_cv_sys_max_cmd_len=196608
5251 ;;
5252
5253 os2*)
5254 # The test takes a long time on OS/2.
5255 lt_cv_sys_max_cmd_len=8192
5256 ;;
5257
5258 osf*)
5259 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5260 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5261 # nice to cause kernel panics so lets avoid the loop below.
5262 # First set a reasonable default.
5263 lt_cv_sys_max_cmd_len=16384
5264 #
5265 if test -x /sbin/sysconfig; then
5266 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5267 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5268 esac
5269 fi
5270 ;;
5271 sco3.2v5*)
5272 lt_cv_sys_max_cmd_len=102400
5273 ;;
5274 sysv5* | sco5v6* | sysv4.2uw2*)
5275 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5276 if test -n "$kargmax"; then
5277 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5278 else
5279 lt_cv_sys_max_cmd_len=32768
5280 fi
5281 ;;
5282 *)
5283 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5284 if test -n "$lt_cv_sys_max_cmd_len"; then
5285 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5286 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5287 else
5288 # Make teststring a little bigger before we do anything with it.
5289 # a 1K string should be a reasonable start.
5290 for i in 1 2 3 4 5 6 7 8 ; do
5291 teststring=$teststring$teststring
5292 done
5293 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5294 # If test is not a shell built-in, we'll probably end up computing a
5295 # maximum length that is only half of the actual maximum length, but
5296 # we can't tell.
5297 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5298 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5299 test $i != 17 # 1/2 MB should be enough
5300 do
5301 i=`expr $i + 1`
5302 teststring=$teststring$teststring
5303 done
5304 # Only check the string length outside the loop.
5305 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5306 teststring=
5307 # Add a significant safety factor because C++ compilers can tack on
5308 # massive amounts of additional arguments before passing them to the
5309 # linker. It appears as though 1/2 is a usable value.
5310 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5311 fi
5312 ;;
5313 esac
5314
5315 fi
5316
5317 if test -n $lt_cv_sys_max_cmd_len ; then
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5319 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5320 else
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5322 $as_echo "none" >&6; }
5323 fi
5324 max_cmd_len=$lt_cv_sys_max_cmd_len
5325
5326
5327
5328
5329
5330
5331 : ${CP="cp -f"}
5332 : ${MV="mv -f"}
5333 : ${RM="rm -f"}
5334
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5336 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5337 # Try some XSI features
5338 xsi_shell=no
5339 ( _lt_dummy="a/b/c"
5340 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5341 = c,a/b,b/c, \
5342 && eval 'test $(( 1 + 1 )) -eq 2 \
5343 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5344 && xsi_shell=yes
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5346 $as_echo "$xsi_shell" >&6; }
5347
5348
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5350 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5351 lt_shell_append=no
5352 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5353 >/dev/null 2>&1 \
5354 && lt_shell_append=yes
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5356 $as_echo "$lt_shell_append" >&6; }
5357
5358
5359 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5360 lt_unset=unset
5361 else
5362 lt_unset=false
5363 fi
5364
5365
5366
5367
5368
5369 # test EBCDIC or ASCII
5370 case `echo X|tr X '\101'` in
5371 A) # ASCII based system
5372 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5373 lt_SP2NL='tr \040 \012'
5374 lt_NL2SP='tr \015\012 \040\040'
5375 ;;
5376 *) # EBCDIC based system
5377 lt_SP2NL='tr \100 \n'
5378 lt_NL2SP='tr \r\n \100\100'
5379 ;;
5380 esac
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5391 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5392 if ${lt_cv_to_host_file_cmd+:} false; then :
5393 $as_echo_n "(cached) " >&6
5394 else
5395 case $host in
5396 *-*-mingw* )
5397 case $build in
5398 *-*-mingw* ) # actually msys
5399 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5400 ;;
5401 *-*-cygwin* )
5402 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5403 ;;
5404 * ) # otherwise, assume *nix
5405 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5406 ;;
5407 esac
5408 ;;
5409 *-*-cygwin* )
5410 case $build in
5411 *-*-mingw* ) # actually msys
5412 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5413 ;;
5414 *-*-cygwin* )
5415 lt_cv_to_host_file_cmd=func_convert_file_noop
5416 ;;
5417 * ) # otherwise, assume *nix
5418 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5419 ;;
5420 esac
5421 ;;
5422 * ) # unhandled hosts (and "normal" native builds)
5423 lt_cv_to_host_file_cmd=func_convert_file_noop
5424 ;;
5425 esac
5426
5427 fi
5428
5429 to_host_file_cmd=$lt_cv_to_host_file_cmd
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5431 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5432
5433
5434
5435
5436
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5438 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5439 if ${lt_cv_to_tool_file_cmd+:} false; then :
5440 $as_echo_n "(cached) " >&6
5441 else
5442 #assume ordinary cross tools, or native build.
5443 lt_cv_to_tool_file_cmd=func_convert_file_noop
5444 case $host in
5445 *-*-mingw* )
5446 case $build in
5447 *-*-mingw* ) # actually msys
5448 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5449 ;;
5450 esac
5451 ;;
5452 esac
5453
5454 fi
5455
5456 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5458 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5459
5460
5461
5462
5463
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5465 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5466 if ${lt_cv_ld_reload_flag+:} false; then :
5467 $as_echo_n "(cached) " >&6
5468 else
5469 lt_cv_ld_reload_flag='-r'
5470 fi
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5472 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5473 reload_flag=$lt_cv_ld_reload_flag
5474 case $reload_flag in
5475 "" | " "*) ;;
5476 *) reload_flag=" $reload_flag" ;;
5477 esac
5478 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5479 case $host_os in
5480 cygwin* | mingw* | pw32* | cegcc*)
5481 if test "$GCC" != yes; then
5482 reload_cmds=false
5483 fi
5484 ;;
5485 darwin*)
5486 if test "$GCC" = yes; then
5487 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5488 else
5489 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5490 fi
5491 ;;
5492 esac
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502 if test -n "$ac_tool_prefix"; then
5503 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5504 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5506 $as_echo_n "checking for $ac_word... " >&6; }
5507 if ${ac_cv_prog_OBJDUMP+:} false; then :
5508 $as_echo_n "(cached) " >&6
5509 else
5510 if test -n "$OBJDUMP"; then
5511 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5512 else
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 for as_dir in $PATH
5515 do
5516 IFS=$as_save_IFS
5517 test -z "$as_dir" && as_dir=.
5518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5520 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5522 break 2
5523 fi
5524 done
5525 done
5526 IFS=$as_save_IFS
5527
5528 fi
5529 fi
5530 OBJDUMP=$ac_cv_prog_OBJDUMP
5531 if test -n "$OBJDUMP"; then
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5533 $as_echo "$OBJDUMP" >&6; }
5534 else
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536 $as_echo "no" >&6; }
5537 fi
5538
5539
5540 fi
5541 if test -z "$ac_cv_prog_OBJDUMP"; then
5542 ac_ct_OBJDUMP=$OBJDUMP
5543 # Extract the first word of "objdump", so it can be a program name with args.
5544 set dummy objdump; ac_word=$2
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5546 $as_echo_n "checking for $ac_word... " >&6; }
5547 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5548 $as_echo_n "(cached) " >&6
5549 else
5550 if test -n "$ac_ct_OBJDUMP"; then
5551 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5552 else
5553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554 for as_dir in $PATH
5555 do
5556 IFS=$as_save_IFS
5557 test -z "$as_dir" && as_dir=.
5558 for ac_exec_ext in '' $ac_executable_extensions; do
5559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5560 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5562 break 2
5563 fi
5564 done
5565 done
5566 IFS=$as_save_IFS
5567
5568 fi
5569 fi
5570 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5571 if test -n "$ac_ct_OBJDUMP"; then
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5573 $as_echo "$ac_ct_OBJDUMP" >&6; }
5574 else
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5576 $as_echo "no" >&6; }
5577 fi
5578
5579 if test "x$ac_ct_OBJDUMP" = x; then
5580 OBJDUMP="false"
5581 else
5582 case $cross_compiling:$ac_tool_warned in
5583 yes:)
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5586 ac_tool_warned=yes ;;
5587 esac
5588 OBJDUMP=$ac_ct_OBJDUMP
5589 fi
5590 else
5591 OBJDUMP="$ac_cv_prog_OBJDUMP"
5592 fi
5593
5594 test -z "$OBJDUMP" && OBJDUMP=objdump
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5605 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5606 if ${lt_cv_deplibs_check_method+:} false; then :
5607 $as_echo_n "(cached) " >&6
5608 else
5609 lt_cv_file_magic_cmd='$MAGIC_CMD'
5610 lt_cv_file_magic_test_file=
5611 lt_cv_deplibs_check_method='unknown'
5612 # Need to set the preceding variable on all platforms that support
5613 # interlibrary dependencies.
5614 # 'none' -- dependencies not supported.
5615 # `unknown' -- same as none, but documents that we really don't know.
5616 # 'pass_all' -- all dependencies passed with no checks.
5617 # 'test_compile' -- check by making test program.
5618 # 'file_magic [[regex]]' -- check by looking for files in library path
5619 # which responds to the $file_magic_cmd with a given extended regex.
5620 # If you have `file' or equivalent on your system and you're not sure
5621 # whether `pass_all' will *always* work, you probably want this one.
5622
5623 case $host_os in
5624 aix[4-9]*)
5625 lt_cv_deplibs_check_method=pass_all
5626 ;;
5627
5628 beos*)
5629 lt_cv_deplibs_check_method=pass_all
5630 ;;
5631
5632 bsdi[45]*)
5633 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5634 lt_cv_file_magic_cmd='/usr/bin/file -L'
5635 lt_cv_file_magic_test_file=/shlib/libc.so
5636 ;;
5637
5638 cygwin*)
5639 # func_win32_libid is a shell function defined in ltmain.sh
5640 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5641 lt_cv_file_magic_cmd='func_win32_libid'
5642 ;;
5643
5644 mingw* | pw32*)
5645 # Base MSYS/MinGW do not provide the 'file' command needed by
5646 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5647 # unless we find 'file', for example because we are cross-compiling.
5648 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5649 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5650 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5651 lt_cv_file_magic_cmd='func_win32_libid'
5652 else
5653 # Keep this pattern in sync with the one in func_win32_libid.
5654 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5655 lt_cv_file_magic_cmd='$OBJDUMP -f'
5656 fi
5657 ;;
5658
5659 cegcc*)
5660 # use the weaker test based on 'objdump'. See mingw*.
5661 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5662 lt_cv_file_magic_cmd='$OBJDUMP -f'
5663 ;;
5664
5665 darwin* | rhapsody*)
5666 lt_cv_deplibs_check_method=pass_all
5667 ;;
5668
5669 freebsd* | dragonfly*)
5670 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5671 case $host_cpu in
5672 i*86 )
5673 # Not sure whether the presence of OpenBSD here was a mistake.
5674 # Let's accept both of them until this is cleared up.
5675 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5676 lt_cv_file_magic_cmd=/usr/bin/file
5677 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5678 ;;
5679 esac
5680 else
5681 lt_cv_deplibs_check_method=pass_all
5682 fi
5683 ;;
5684
5685 gnu*)
5686 lt_cv_deplibs_check_method=pass_all
5687 ;;
5688
5689 haiku*)
5690 lt_cv_deplibs_check_method=pass_all
5691 ;;
5692
5693 hpux10.20* | hpux11*)
5694 lt_cv_file_magic_cmd=/usr/bin/file
5695 case $host_cpu in
5696 ia64*)
5697 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5698 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5699 ;;
5700 hppa*64*)
5701 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]'
5702 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5703 ;;
5704 *)
5705 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5706 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5707 ;;
5708 esac
5709 ;;
5710
5711 interix[3-9]*)
5712 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5713 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5714 ;;
5715
5716 irix5* | irix6* | nonstopux*)
5717 case $LD in
5718 *-32|*"-32 ") libmagic=32-bit;;
5719 *-n32|*"-n32 ") libmagic=N32;;
5720 *-64|*"-64 ") libmagic=64-bit;;
5721 *) libmagic=never-match;;
5722 esac
5723 lt_cv_deplibs_check_method=pass_all
5724 ;;
5725
5726 # This must be glibc/ELF.
5727 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5728 lt_cv_deplibs_check_method=pass_all
5729 ;;
5730
5731 netbsd*)
5732 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5733 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5734 else
5735 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5736 fi
5737 ;;
5738
5739 newos6*)
5740 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5741 lt_cv_file_magic_cmd=/usr/bin/file
5742 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5743 ;;
5744
5745 *nto* | *qnx*)
5746 lt_cv_deplibs_check_method=pass_all
5747 ;;
5748
5749 openbsd*)
5750 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5751 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5752 else
5753 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5754 fi
5755 ;;
5756
5757 osf3* | osf4* | osf5*)
5758 lt_cv_deplibs_check_method=pass_all
5759 ;;
5760
5761 rdos*)
5762 lt_cv_deplibs_check_method=pass_all
5763 ;;
5764
5765 solaris*)
5766 lt_cv_deplibs_check_method=pass_all
5767 ;;
5768
5769 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5770 lt_cv_deplibs_check_method=pass_all
5771 ;;
5772
5773 sysv4 | sysv4.3*)
5774 case $host_vendor in
5775 motorola)
5776 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]'
5777 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5778 ;;
5779 ncr)
5780 lt_cv_deplibs_check_method=pass_all
5781 ;;
5782 sequent)
5783 lt_cv_file_magic_cmd='/bin/file'
5784 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5785 ;;
5786 sni)
5787 lt_cv_file_magic_cmd='/bin/file'
5788 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5789 lt_cv_file_magic_test_file=/lib/libc.so
5790 ;;
5791 siemens)
5792 lt_cv_deplibs_check_method=pass_all
5793 ;;
5794 pc)
5795 lt_cv_deplibs_check_method=pass_all
5796 ;;
5797 esac
5798 ;;
5799
5800 tpf*)
5801 lt_cv_deplibs_check_method=pass_all
5802 ;;
5803 esac
5804
5805 fi
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5807 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5808
5809 file_magic_glob=
5810 want_nocaseglob=no
5811 if test "$build" = "$host"; then
5812 case $host_os in
5813 mingw* | pw32*)
5814 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5815 want_nocaseglob=yes
5816 else
5817 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5818 fi
5819 ;;
5820 esac
5821 fi
5822
5823 file_magic_cmd=$lt_cv_file_magic_cmd
5824 deplibs_check_method=$lt_cv_deplibs_check_method
5825 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848 if test -n "$ac_tool_prefix"; then
5849 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5850 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5852 $as_echo_n "checking for $ac_word... " >&6; }
5853 if ${ac_cv_prog_DLLTOOL+:} false; then :
5854 $as_echo_n "(cached) " >&6
5855 else
5856 if test -n "$DLLTOOL"; then
5857 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5858 else
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 for as_dir in $PATH
5861 do
5862 IFS=$as_save_IFS
5863 test -z "$as_dir" && as_dir=.
5864 for ac_exec_ext in '' $ac_executable_extensions; do
5865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5866 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5868 break 2
5869 fi
5870 done
5871 done
5872 IFS=$as_save_IFS
5873
5874 fi
5875 fi
5876 DLLTOOL=$ac_cv_prog_DLLTOOL
5877 if test -n "$DLLTOOL"; then
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5879 $as_echo "$DLLTOOL" >&6; }
5880 else
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5882 $as_echo "no" >&6; }
5883 fi
5884
5885
5886 fi
5887 if test -z "$ac_cv_prog_DLLTOOL"; then
5888 ac_ct_DLLTOOL=$DLLTOOL
5889 # Extract the first word of "dlltool", so it can be a program name with args.
5890 set dummy dlltool; ac_word=$2
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5892 $as_echo_n "checking for $ac_word... " >&6; }
5893 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5894 $as_echo_n "(cached) " >&6
5895 else
5896 if test -n "$ac_ct_DLLTOOL"; then
5897 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5898 else
5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 for as_dir in $PATH
5901 do
5902 IFS=$as_save_IFS
5903 test -z "$as_dir" && as_dir=.
5904 for ac_exec_ext in '' $ac_executable_extensions; do
5905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5906 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5908 break 2
5909 fi
5910 done
5911 done
5912 IFS=$as_save_IFS
5913
5914 fi
5915 fi
5916 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5917 if test -n "$ac_ct_DLLTOOL"; then
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5919 $as_echo "$ac_ct_DLLTOOL" >&6; }
5920 else
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5922 $as_echo "no" >&6; }
5923 fi
5924
5925 if test "x$ac_ct_DLLTOOL" = x; then
5926 DLLTOOL="false"
5927 else
5928 case $cross_compiling:$ac_tool_warned in
5929 yes:)
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5932 ac_tool_warned=yes ;;
5933 esac
5934 DLLTOOL=$ac_ct_DLLTOOL
5935 fi
5936 else
5937 DLLTOOL="$ac_cv_prog_DLLTOOL"
5938 fi
5939
5940 test -z "$DLLTOOL" && DLLTOOL=dlltool
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5952 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5953 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5954 $as_echo_n "(cached) " >&6
5955 else
5956 lt_cv_sharedlib_from_linklib_cmd='unknown'
5957
5958 case $host_os in
5959 cygwin* | mingw* | pw32* | cegcc*)
5960 # two different shell functions defined in ltmain.sh
5961 # decide which to use based on capabilities of $DLLTOOL
5962 case `$DLLTOOL --help 2>&1` in
5963 *--identify-strict*)
5964 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5965 ;;
5966 *)
5967 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5968 ;;
5969 esac
5970 ;;
5971 *)
5972 # fallback: assume linklib IS sharedlib
5973 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5974 ;;
5975 esac
5976
5977 fi
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5979 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5980 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5981 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5982
5983
5984
5985
5986
5987
5988
5989 if test -n "$ac_tool_prefix"; then
5990 for ac_prog in ar
5991 do
5992 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5993 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5995 $as_echo_n "checking for $ac_word... " >&6; }
5996 if ${ac_cv_prog_AR+:} false; then :
5997 $as_echo_n "(cached) " >&6
5998 else
5999 if test -n "$AR"; then
6000 ac_cv_prog_AR="$AR" # Let the user override the test.
6001 else
6002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003 for as_dir in $PATH
6004 do
6005 IFS=$as_save_IFS
6006 test -z "$as_dir" && as_dir=.
6007 for ac_exec_ext in '' $ac_executable_extensions; do
6008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6009 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6011 break 2
6012 fi
6013 done
6014 done
6015 IFS=$as_save_IFS
6016
6017 fi
6018 fi
6019 AR=$ac_cv_prog_AR
6020 if test -n "$AR"; then
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6022 $as_echo "$AR" >&6; }
6023 else
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6025 $as_echo "no" >&6; }
6026 fi
6027
6028
6029 test -n "$AR" && break
6030 done
6031 fi
6032 if test -z "$AR"; then
6033 ac_ct_AR=$AR
6034 for ac_prog in ar
6035 do
6036 # Extract the first word of "$ac_prog", so it can be a program name with args.
6037 set dummy $ac_prog; ac_word=$2
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6039 $as_echo_n "checking for $ac_word... " >&6; }
6040 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6041 $as_echo_n "(cached) " >&6
6042 else
6043 if test -n "$ac_ct_AR"; then
6044 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6045 else
6046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047 for as_dir in $PATH
6048 do
6049 IFS=$as_save_IFS
6050 test -z "$as_dir" && as_dir=.
6051 for ac_exec_ext in '' $ac_executable_extensions; do
6052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6053 ac_cv_prog_ac_ct_AR="$ac_prog"
6054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6055 break 2
6056 fi
6057 done
6058 done
6059 IFS=$as_save_IFS
6060
6061 fi
6062 fi
6063 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6064 if test -n "$ac_ct_AR"; then
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6066 $as_echo "$ac_ct_AR" >&6; }
6067 else
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6069 $as_echo "no" >&6; }
6070 fi
6071
6072
6073 test -n "$ac_ct_AR" && break
6074 done
6075
6076 if test "x$ac_ct_AR" = x; then
6077 AR="false"
6078 else
6079 case $cross_compiling:$ac_tool_warned in
6080 yes:)
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6083 ac_tool_warned=yes ;;
6084 esac
6085 AR=$ac_ct_AR
6086 fi
6087 fi
6088
6089 : ${AR=ar}
6090 : ${AR_FLAGS=cru}
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6103 $as_echo_n "checking for archiver @FILE support... " >&6; }
6104 if ${lt_cv_ar_at_file+:} false; then :
6105 $as_echo_n "(cached) " >&6
6106 else
6107 lt_cv_ar_at_file=no
6108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6109 /* end confdefs.h. */
6110
6111 int
6112 main ()
6113 {
6114
6115 ;
6116 return 0;
6117 }
6118 _ACEOF
6119 if ac_fn_c_try_compile "$LINENO"; then :
6120 echo conftest.$ac_objext > conftest.lst
6121 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6123 (eval $lt_ar_try) 2>&5
6124 ac_status=$?
6125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6126 test $ac_status = 0; }
6127 if test "$ac_status" -eq 0; then
6128 # Ensure the archiver fails upon bogus file names.
6129 rm -f conftest.$ac_objext libconftest.a
6130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6131 (eval $lt_ar_try) 2>&5
6132 ac_status=$?
6133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6134 test $ac_status = 0; }
6135 if test "$ac_status" -ne 0; then
6136 lt_cv_ar_at_file=@
6137 fi
6138 fi
6139 rm -f conftest.* libconftest.a
6140
6141 fi
6142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6143
6144 fi
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6146 $as_echo "$lt_cv_ar_at_file" >&6; }
6147
6148 if test "x$lt_cv_ar_at_file" = xno; then
6149 archiver_list_spec=
6150 else
6151 archiver_list_spec=$lt_cv_ar_at_file
6152 fi
6153
6154
6155
6156
6157
6158
6159
6160 if test -n "$ac_tool_prefix"; then
6161 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6162 set dummy ${ac_tool_prefix}strip; ac_word=$2
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6164 $as_echo_n "checking for $ac_word... " >&6; }
6165 if ${ac_cv_prog_STRIP+:} false; then :
6166 $as_echo_n "(cached) " >&6
6167 else
6168 if test -n "$STRIP"; then
6169 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6170 else
6171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6172 for as_dir in $PATH
6173 do
6174 IFS=$as_save_IFS
6175 test -z "$as_dir" && as_dir=.
6176 for ac_exec_ext in '' $ac_executable_extensions; do
6177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6178 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6180 break 2
6181 fi
6182 done
6183 done
6184 IFS=$as_save_IFS
6185
6186 fi
6187 fi
6188 STRIP=$ac_cv_prog_STRIP
6189 if test -n "$STRIP"; then
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6191 $as_echo "$STRIP" >&6; }
6192 else
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6194 $as_echo "no" >&6; }
6195 fi
6196
6197
6198 fi
6199 if test -z "$ac_cv_prog_STRIP"; then
6200 ac_ct_STRIP=$STRIP
6201 # Extract the first word of "strip", so it can be a program name with args.
6202 set dummy strip; ac_word=$2
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6204 $as_echo_n "checking for $ac_word... " >&6; }
6205 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6206 $as_echo_n "(cached) " >&6
6207 else
6208 if test -n "$ac_ct_STRIP"; then
6209 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6210 else
6211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6212 for as_dir in $PATH
6213 do
6214 IFS=$as_save_IFS
6215 test -z "$as_dir" && as_dir=.
6216 for ac_exec_ext in '' $ac_executable_extensions; do
6217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6218 ac_cv_prog_ac_ct_STRIP="strip"
6219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6220 break 2
6221 fi
6222 done
6223 done
6224 IFS=$as_save_IFS
6225
6226 fi
6227 fi
6228 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6229 if test -n "$ac_ct_STRIP"; then
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6231 $as_echo "$ac_ct_STRIP" >&6; }
6232 else
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6234 $as_echo "no" >&6; }
6235 fi
6236
6237 if test "x$ac_ct_STRIP" = x; then
6238 STRIP=":"
6239 else
6240 case $cross_compiling:$ac_tool_warned in
6241 yes:)
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6244 ac_tool_warned=yes ;;
6245 esac
6246 STRIP=$ac_ct_STRIP
6247 fi
6248 else
6249 STRIP="$ac_cv_prog_STRIP"
6250 fi
6251
6252 test -z "$STRIP" && STRIP=:
6253
6254
6255
6256
6257
6258
6259 if test -n "$ac_tool_prefix"; then
6260 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6261 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6263 $as_echo_n "checking for $ac_word... " >&6; }
6264 if ${ac_cv_prog_RANLIB+:} false; then :
6265 $as_echo_n "(cached) " >&6
6266 else
6267 if test -n "$RANLIB"; then
6268 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6269 else
6270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271 for as_dir in $PATH
6272 do
6273 IFS=$as_save_IFS
6274 test -z "$as_dir" && as_dir=.
6275 for ac_exec_ext in '' $ac_executable_extensions; do
6276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6277 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6279 break 2
6280 fi
6281 done
6282 done
6283 IFS=$as_save_IFS
6284
6285 fi
6286 fi
6287 RANLIB=$ac_cv_prog_RANLIB
6288 if test -n "$RANLIB"; then
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6290 $as_echo "$RANLIB" >&6; }
6291 else
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6293 $as_echo "no" >&6; }
6294 fi
6295
6296
6297 fi
6298 if test -z "$ac_cv_prog_RANLIB"; then
6299 ac_ct_RANLIB=$RANLIB
6300 # Extract the first word of "ranlib", so it can be a program name with args.
6301 set dummy ranlib; ac_word=$2
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303 $as_echo_n "checking for $ac_word... " >&6; }
6304 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6305 $as_echo_n "(cached) " >&6
6306 else
6307 if test -n "$ac_ct_RANLIB"; then
6308 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6309 else
6310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311 for as_dir in $PATH
6312 do
6313 IFS=$as_save_IFS
6314 test -z "$as_dir" && as_dir=.
6315 for ac_exec_ext in '' $ac_executable_extensions; do
6316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6317 ac_cv_prog_ac_ct_RANLIB="ranlib"
6318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6319 break 2
6320 fi
6321 done
6322 done
6323 IFS=$as_save_IFS
6324
6325 fi
6326 fi
6327 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6328 if test -n "$ac_ct_RANLIB"; then
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6330 $as_echo "$ac_ct_RANLIB" >&6; }
6331 else
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333 $as_echo "no" >&6; }
6334 fi
6335
6336 if test "x$ac_ct_RANLIB" = x; then
6337 RANLIB=":"
6338 else
6339 case $cross_compiling:$ac_tool_warned in
6340 yes:)
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6343 ac_tool_warned=yes ;;
6344 esac
6345 RANLIB=$ac_ct_RANLIB
6346 fi
6347 else
6348 RANLIB="$ac_cv_prog_RANLIB"
6349 fi
6350
6351 test -z "$RANLIB" && RANLIB=:
6352
6353
6354
6355
6356
6357
6358 # Determine commands to create old-style static archives.
6359 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6360 old_postinstall_cmds='chmod 644 $oldlib'
6361 old_postuninstall_cmds=
6362
6363 if test -n "$RANLIB"; then
6364 case $host_os in
6365 openbsd*)
6366 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6367 ;;
6368 *)
6369 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6370 ;;
6371 esac
6372 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6373 fi
6374
6375 case $host_os in
6376 darwin*)
6377 lock_old_archive_extraction=yes ;;
6378 *)
6379 lock_old_archive_extraction=no ;;
6380 esac
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420 # If no C compiler was specified, use CC.
6421 LTCC=${LTCC-"$CC"}
6422
6423 # If no C compiler flags were specified, use CFLAGS.
6424 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6425
6426 # Allow CC to be a program name with arguments.
6427 compiler=$CC
6428
6429
6430 # Check for command to grab the raw symbol name followed by C symbol from nm.
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6432 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6433 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6434 $as_echo_n "(cached) " >&6
6435 else
6436
6437 # These are sane defaults that work on at least a few old systems.
6438 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6439
6440 # Character class describing NM global symbol codes.
6441 symcode='[BCDEGRST]'
6442
6443 # Regexp to match symbols that can be accessed directly from C.
6444 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6445
6446 # Define system-specific variables.
6447 case $host_os in
6448 aix*)
6449 symcode='[BCDT]'
6450 ;;
6451 cygwin* | mingw* | pw32* | cegcc*)
6452 symcode='[ABCDGISTW]'
6453 ;;
6454 hpux*)
6455 if test "$host_cpu" = ia64; then
6456 symcode='[ABCDEGRST]'
6457 fi
6458 ;;
6459 irix* | nonstopux*)
6460 symcode='[BCDEGRST]'
6461 ;;
6462 osf*)
6463 symcode='[BCDEGQRST]'
6464 ;;
6465 solaris*)
6466 symcode='[BDRT]'
6467 ;;
6468 sco3.2v5*)
6469 symcode='[DT]'
6470 ;;
6471 sysv4.2uw2*)
6472 symcode='[DT]'
6473 ;;
6474 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6475 symcode='[ABDT]'
6476 ;;
6477 sysv4)
6478 symcode='[DFNSTU]'
6479 ;;
6480 esac
6481
6482 # If we're using GNU nm, then use its standard symbol codes.
6483 case `$NM -V 2>&1` in
6484 *GNU* | *'with BFD'*)
6485 symcode='[ABCDGIRSTW]' ;;
6486 esac
6487
6488 # Transform an extracted symbol line into a proper C declaration.
6489 # Some systems (esp. on ia64) link data and code symbols differently,
6490 # so use this general approach.
6491 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6492
6493 # Transform an extracted symbol line into symbol name and symbol address
6494 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6495 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'"
6496
6497 # Handle CRLF in mingw tool chain
6498 opt_cr=
6499 case $build_os in
6500 mingw*)
6501 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6502 ;;
6503 esac
6504
6505 # Try without a prefix underscore, then with it.
6506 for ac_symprfx in "" "_"; do
6507
6508 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6509 symxfrm="\\1 $ac_symprfx\\2 \\2"
6510
6511 # Write the raw and C identifiers.
6512 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6513 # Fake it for dumpbin and say T for any non-static function
6514 # and D for any global variable.
6515 # Also find C++ and __fastcall symbols from MSVC++,
6516 # which start with @ or ?.
6517 lt_cv_sys_global_symbol_pipe="$AWK '"\
6518 " {last_section=section; section=\$ 3};"\
6519 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6520 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6521 " \$ 0!~/External *\|/{next};"\
6522 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6523 " {if(hide[section]) next};"\
6524 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6525 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6526 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6527 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6528 " ' prfx=^$ac_symprfx"
6529 else
6530 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6531 fi
6532 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6533
6534 # Check to see that the pipe works correctly.
6535 pipe_works=no
6536
6537 rm -f conftest*
6538 cat > conftest.$ac_ext <<_LT_EOF
6539 #ifdef __cplusplus
6540 extern "C" {
6541 #endif
6542 char nm_test_var;
6543 void nm_test_func(void);
6544 void nm_test_func(void){}
6545 #ifdef __cplusplus
6546 }
6547 #endif
6548 int main(){nm_test_var='a';nm_test_func();return(0);}
6549 _LT_EOF
6550
6551 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6552 (eval $ac_compile) 2>&5
6553 ac_status=$?
6554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6555 test $ac_status = 0; }; then
6556 # Now try to grab the symbols.
6557 nlist=conftest.nm
6558 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6559 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6560 ac_status=$?
6561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6562 test $ac_status = 0; } && test -s "$nlist"; then
6563 # Try sorting and uniquifying the output.
6564 if sort "$nlist" | uniq > "$nlist"T; then
6565 mv -f "$nlist"T "$nlist"
6566 else
6567 rm -f "$nlist"T
6568 fi
6569
6570 # Make sure that we snagged all the symbols we need.
6571 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6572 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6573 cat <<_LT_EOF > conftest.$ac_ext
6574 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6575 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6576 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6577 relocations are performed -- see ld's documentation on pseudo-relocs. */
6578 # define LT_DLSYM_CONST
6579 #elif defined(__osf__)
6580 /* This system does not cope well with relocations in const data. */
6581 # define LT_DLSYM_CONST
6582 #else
6583 # define LT_DLSYM_CONST const
6584 #endif
6585
6586 #ifdef __cplusplus
6587 extern "C" {
6588 #endif
6589
6590 _LT_EOF
6591 # Now generate the symbol file.
6592 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6593
6594 cat <<_LT_EOF >> conftest.$ac_ext
6595
6596 /* The mapping between symbol names and symbols. */
6597 LT_DLSYM_CONST struct {
6598 const char *name;
6599 void *address;
6600 }
6601 lt__PROGRAM__LTX_preloaded_symbols[] =
6602 {
6603 { "@PROGRAM@", (void *) 0 },
6604 _LT_EOF
6605 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6606 cat <<\_LT_EOF >> conftest.$ac_ext
6607 {0, (void *) 0}
6608 };
6609
6610 /* This works around a problem in FreeBSD linker */
6611 #ifdef FREEBSD_WORKAROUND
6612 static const void *lt_preloaded_setup() {
6613 return lt__PROGRAM__LTX_preloaded_symbols;
6614 }
6615 #endif
6616
6617 #ifdef __cplusplus
6618 }
6619 #endif
6620 _LT_EOF
6621 # Now try linking the two files.
6622 mv conftest.$ac_objext conftstm.$ac_objext
6623 lt_globsym_save_LIBS=$LIBS
6624 lt_globsym_save_CFLAGS=$CFLAGS
6625 LIBS="conftstm.$ac_objext"
6626 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6628 (eval $ac_link) 2>&5
6629 ac_status=$?
6630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6631 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6632 pipe_works=yes
6633 fi
6634 LIBS=$lt_globsym_save_LIBS
6635 CFLAGS=$lt_globsym_save_CFLAGS
6636 else
6637 echo "cannot find nm_test_func in $nlist" >&5
6638 fi
6639 else
6640 echo "cannot find nm_test_var in $nlist" >&5
6641 fi
6642 else
6643 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6644 fi
6645 else
6646 echo "$progname: failed program was:" >&5
6647 cat conftest.$ac_ext >&5
6648 fi
6649 rm -rf conftest* conftst*
6650
6651 # Do not use the global_symbol_pipe unless it works.
6652 if test "$pipe_works" = yes; then
6653 break
6654 else
6655 lt_cv_sys_global_symbol_pipe=
6656 fi
6657 done
6658
6659 fi
6660
6661 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6662 lt_cv_sys_global_symbol_to_cdecl=
6663 fi
6664 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6666 $as_echo "failed" >&6; }
6667 else
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6669 $as_echo "ok" >&6; }
6670 fi
6671
6672 # Response file support.
6673 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6674 nm_file_list_spec='@'
6675 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6676 nm_file_list_spec='@'
6677 fi
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6706 $as_echo_n "checking for sysroot... " >&6; }
6707
6708 # Check whether --with-sysroot was given.
6709 if test "${with_sysroot+set}" = set; then :
6710 withval=$with_sysroot;
6711 else
6712 with_sysroot=no
6713 fi
6714
6715
6716 lt_sysroot=
6717 case ${with_sysroot} in #(
6718 yes)
6719 if test "$GCC" = yes; then
6720 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6721 fi
6722 ;; #(
6723 /*)
6724 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6725 ;; #(
6726 no|'')
6727 ;; #(
6728 *)
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6730 $as_echo "${with_sysroot}" >&6; }
6731 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6732 ;;
6733 esac
6734
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6736 $as_echo "${lt_sysroot:-no}" >&6; }
6737
6738
6739
6740
6741
6742 # Check whether --enable-libtool-lock was given.
6743 if test "${enable_libtool_lock+set}" = set; then :
6744 enableval=$enable_libtool_lock;
6745 fi
6746
6747 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6748
6749 # Some flags need to be propagated to the compiler or linker for good
6750 # libtool support.
6751 case $host in
6752 ia64-*-hpux*)
6753 # Find out which ABI we are using.
6754 echo 'int i;' > conftest.$ac_ext
6755 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6756 (eval $ac_compile) 2>&5
6757 ac_status=$?
6758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6759 test $ac_status = 0; }; then
6760 case `/usr/bin/file conftest.$ac_objext` in
6761 *ELF-32*)
6762 HPUX_IA64_MODE="32"
6763 ;;
6764 *ELF-64*)
6765 HPUX_IA64_MODE="64"
6766 ;;
6767 esac
6768 fi
6769 rm -rf conftest*
6770 ;;
6771 *-*-irix6*)
6772 # Find out which ABI we are using.
6773 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6775 (eval $ac_compile) 2>&5
6776 ac_status=$?
6777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6778 test $ac_status = 0; }; then
6779 if test "$lt_cv_prog_gnu_ld" = yes; then
6780 case `/usr/bin/file conftest.$ac_objext` in
6781 *32-bit*)
6782 LD="${LD-ld} -melf32bsmip"
6783 ;;
6784 *N32*)
6785 LD="${LD-ld} -melf32bmipn32"
6786 ;;
6787 *64-bit*)
6788 LD="${LD-ld} -melf64bmip"
6789 ;;
6790 esac
6791 else
6792 case `/usr/bin/file conftest.$ac_objext` in
6793 *32-bit*)
6794 LD="${LD-ld} -32"
6795 ;;
6796 *N32*)
6797 LD="${LD-ld} -n32"
6798 ;;
6799 *64-bit*)
6800 LD="${LD-ld} -64"
6801 ;;
6802 esac
6803 fi
6804 fi
6805 rm -rf conftest*
6806 ;;
6807
6808 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6809 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6810 # Find out which ABI we are using.
6811 echo 'int i;' > conftest.$ac_ext
6812 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6813 (eval $ac_compile) 2>&5
6814 ac_status=$?
6815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6816 test $ac_status = 0; }; then
6817 case `/usr/bin/file conftest.o` in
6818 *32-bit*)
6819 case $host in
6820 x86_64-*kfreebsd*-gnu)
6821 LD="${LD-ld} -m elf_i386_fbsd"
6822 ;;
6823 x86_64-*linux*)
6824 LD="${LD-ld} -m elf_i386"
6825 ;;
6826 ppc64-*linux*|powerpc64-*linux*)
6827 LD="${LD-ld} -m elf32ppclinux"
6828 ;;
6829 s390x-*linux*)
6830 LD="${LD-ld} -m elf_s390"
6831 ;;
6832 sparc64-*linux*)
6833 LD="${LD-ld} -m elf32_sparc"
6834 ;;
6835 esac
6836 ;;
6837 *64-bit*)
6838 case $host in
6839 x86_64-*kfreebsd*-gnu)
6840 LD="${LD-ld} -m elf_x86_64_fbsd"
6841 ;;
6842 x86_64-*linux*)
6843 LD="${LD-ld} -m elf_x86_64"
6844 ;;
6845 ppc*-*linux*|powerpc*-*linux*)
6846 LD="${LD-ld} -m elf64ppc"
6847 ;;
6848 s390*-*linux*|s390*-*tpf*)
6849 LD="${LD-ld} -m elf64_s390"
6850 ;;
6851 sparc*-*linux*)
6852 LD="${LD-ld} -m elf64_sparc"
6853 ;;
6854 esac
6855 ;;
6856 esac
6857 fi
6858 rm -rf conftest*
6859 ;;
6860
6861 *-*-sco3.2v5*)
6862 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6863 SAVE_CFLAGS="$CFLAGS"
6864 CFLAGS="$CFLAGS -belf"
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6866 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6867 if ${lt_cv_cc_needs_belf+:} false; then :
6868 $as_echo_n "(cached) " >&6
6869 else
6870 ac_ext=c
6871 ac_cpp='$CPP $CPPFLAGS'
6872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6875
6876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6877 /* end confdefs.h. */
6878
6879 int
6880 main ()
6881 {
6882
6883 ;
6884 return 0;
6885 }
6886 _ACEOF
6887 if ac_fn_c_try_link "$LINENO"; then :
6888 lt_cv_cc_needs_belf=yes
6889 else
6890 lt_cv_cc_needs_belf=no
6891 fi
6892 rm -f core conftest.err conftest.$ac_objext \
6893 conftest$ac_exeext conftest.$ac_ext
6894 ac_ext=c
6895 ac_cpp='$CPP $CPPFLAGS'
6896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6899
6900 fi
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6902 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6903 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6904 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6905 CFLAGS="$SAVE_CFLAGS"
6906 fi
6907 ;;
6908 *-*solaris*)
6909 # Find out which ABI we are using.
6910 echo 'int i;' > conftest.$ac_ext
6911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6912 (eval $ac_compile) 2>&5
6913 ac_status=$?
6914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6915 test $ac_status = 0; }; then
6916 case `/usr/bin/file conftest.o` in
6917 *64-bit*)
6918 case $lt_cv_prog_gnu_ld in
6919 yes*)
6920 case $host in
6921 i?86-*-solaris*)
6922 LD="${LD-ld} -m elf_x86_64"
6923 ;;
6924 sparc*-*-solaris*)
6925 LD="${LD-ld} -m elf64_sparc"
6926 ;;
6927 esac
6928 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6929 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6930 LD="${LD-ld}_sol2"
6931 fi
6932 ;;
6933 *)
6934 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6935 LD="${LD-ld} -64"
6936 fi
6937 ;;
6938 esac
6939 ;;
6940 esac
6941 fi
6942 rm -rf conftest*
6943 ;;
6944 esac
6945
6946 need_locks="$enable_libtool_lock"
6947
6948 if test -n "$ac_tool_prefix"; then
6949 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6950 set dummy ${ac_tool_prefix}mt; ac_word=$2
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6952 $as_echo_n "checking for $ac_word... " >&6; }
6953 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6954 $as_echo_n "(cached) " >&6
6955 else
6956 if test -n "$MANIFEST_TOOL"; then
6957 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6958 else
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960 for as_dir in $PATH
6961 do
6962 IFS=$as_save_IFS
6963 test -z "$as_dir" && as_dir=.
6964 for ac_exec_ext in '' $ac_executable_extensions; do
6965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6966 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6968 break 2
6969 fi
6970 done
6971 done
6972 IFS=$as_save_IFS
6973
6974 fi
6975 fi
6976 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6977 if test -n "$MANIFEST_TOOL"; then
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6979 $as_echo "$MANIFEST_TOOL" >&6; }
6980 else
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6982 $as_echo "no" >&6; }
6983 fi
6984
6985
6986 fi
6987 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6988 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6989 # Extract the first word of "mt", so it can be a program name with args.
6990 set dummy mt; ac_word=$2
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6992 $as_echo_n "checking for $ac_word... " >&6; }
6993 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6994 $as_echo_n "(cached) " >&6
6995 else
6996 if test -n "$ac_ct_MANIFEST_TOOL"; then
6997 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6998 else
6999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000 for as_dir in $PATH
7001 do
7002 IFS=$as_save_IFS
7003 test -z "$as_dir" && as_dir=.
7004 for ac_exec_ext in '' $ac_executable_extensions; do
7005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7006 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7008 break 2
7009 fi
7010 done
7011 done
7012 IFS=$as_save_IFS
7013
7014 fi
7015 fi
7016 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7017 if test -n "$ac_ct_MANIFEST_TOOL"; then
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7019 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7020 else
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7022 $as_echo "no" >&6; }
7023 fi
7024
7025 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7026 MANIFEST_TOOL=":"
7027 else
7028 case $cross_compiling:$ac_tool_warned in
7029 yes:)
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7032 ac_tool_warned=yes ;;
7033 esac
7034 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7035 fi
7036 else
7037 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7038 fi
7039
7040 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7042 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7043 if ${lt_cv_path_mainfest_tool+:} false; then :
7044 $as_echo_n "(cached) " >&6
7045 else
7046 lt_cv_path_mainfest_tool=no
7047 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7048 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7049 cat conftest.err >&5
7050 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7051 lt_cv_path_mainfest_tool=yes
7052 fi
7053 rm -f conftest*
7054 fi
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7056 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7057 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7058 MANIFEST_TOOL=:
7059 fi
7060
7061
7062
7063
7064
7065
7066 case $host_os in
7067 rhapsody* | darwin*)
7068 if test -n "$ac_tool_prefix"; then
7069 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7070 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7072 $as_echo_n "checking for $ac_word... " >&6; }
7073 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7074 $as_echo_n "(cached) " >&6
7075 else
7076 if test -n "$DSYMUTIL"; then
7077 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7078 else
7079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080 for as_dir in $PATH
7081 do
7082 IFS=$as_save_IFS
7083 test -z "$as_dir" && as_dir=.
7084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7086 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7088 break 2
7089 fi
7090 done
7091 done
7092 IFS=$as_save_IFS
7093
7094 fi
7095 fi
7096 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7097 if test -n "$DSYMUTIL"; then
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7099 $as_echo "$DSYMUTIL" >&6; }
7100 else
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7102 $as_echo "no" >&6; }
7103 fi
7104
7105
7106 fi
7107 if test -z "$ac_cv_prog_DSYMUTIL"; then
7108 ac_ct_DSYMUTIL=$DSYMUTIL
7109 # Extract the first word of "dsymutil", so it can be a program name with args.
7110 set dummy dsymutil; ac_word=$2
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7112 $as_echo_n "checking for $ac_word... " >&6; }
7113 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7114 $as_echo_n "(cached) " >&6
7115 else
7116 if test -n "$ac_ct_DSYMUTIL"; then
7117 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7118 else
7119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120 for as_dir in $PATH
7121 do
7122 IFS=$as_save_IFS
7123 test -z "$as_dir" && as_dir=.
7124 for ac_exec_ext in '' $ac_executable_extensions; do
7125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7126 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 break 2
7129 fi
7130 done
7131 done
7132 IFS=$as_save_IFS
7133
7134 fi
7135 fi
7136 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7137 if test -n "$ac_ct_DSYMUTIL"; then
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7139 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7140 else
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142 $as_echo "no" >&6; }
7143 fi
7144
7145 if test "x$ac_ct_DSYMUTIL" = x; then
7146 DSYMUTIL=":"
7147 else
7148 case $cross_compiling:$ac_tool_warned in
7149 yes:)
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7152 ac_tool_warned=yes ;;
7153 esac
7154 DSYMUTIL=$ac_ct_DSYMUTIL
7155 fi
7156 else
7157 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7158 fi
7159
7160 if test -n "$ac_tool_prefix"; then
7161 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7162 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7164 $as_echo_n "checking for $ac_word... " >&6; }
7165 if ${ac_cv_prog_NMEDIT+:} false; then :
7166 $as_echo_n "(cached) " >&6
7167 else
7168 if test -n "$NMEDIT"; then
7169 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7170 else
7171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172 for as_dir in $PATH
7173 do
7174 IFS=$as_save_IFS
7175 test -z "$as_dir" && as_dir=.
7176 for ac_exec_ext in '' $ac_executable_extensions; do
7177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7178 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7180 break 2
7181 fi
7182 done
7183 done
7184 IFS=$as_save_IFS
7185
7186 fi
7187 fi
7188 NMEDIT=$ac_cv_prog_NMEDIT
7189 if test -n "$NMEDIT"; then
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7191 $as_echo "$NMEDIT" >&6; }
7192 else
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7194 $as_echo "no" >&6; }
7195 fi
7196
7197
7198 fi
7199 if test -z "$ac_cv_prog_NMEDIT"; then
7200 ac_ct_NMEDIT=$NMEDIT
7201 # Extract the first word of "nmedit", so it can be a program name with args.
7202 set dummy nmedit; ac_word=$2
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7204 $as_echo_n "checking for $ac_word... " >&6; }
7205 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7206 $as_echo_n "(cached) " >&6
7207 else
7208 if test -n "$ac_ct_NMEDIT"; then
7209 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7210 else
7211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212 for as_dir in $PATH
7213 do
7214 IFS=$as_save_IFS
7215 test -z "$as_dir" && as_dir=.
7216 for ac_exec_ext in '' $ac_executable_extensions; do
7217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7218 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7220 break 2
7221 fi
7222 done
7223 done
7224 IFS=$as_save_IFS
7225
7226 fi
7227 fi
7228 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7229 if test -n "$ac_ct_NMEDIT"; then
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7231 $as_echo "$ac_ct_NMEDIT" >&6; }
7232 else
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7234 $as_echo "no" >&6; }
7235 fi
7236
7237 if test "x$ac_ct_NMEDIT" = x; then
7238 NMEDIT=":"
7239 else
7240 case $cross_compiling:$ac_tool_warned in
7241 yes:)
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7244 ac_tool_warned=yes ;;
7245 esac
7246 NMEDIT=$ac_ct_NMEDIT
7247 fi
7248 else
7249 NMEDIT="$ac_cv_prog_NMEDIT"
7250 fi
7251
7252 if test -n "$ac_tool_prefix"; then
7253 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7254 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7256 $as_echo_n "checking for $ac_word... " >&6; }
7257 if ${ac_cv_prog_LIPO+:} false; then :
7258 $as_echo_n "(cached) " >&6
7259 else
7260 if test -n "$LIPO"; then
7261 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7262 else
7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264 for as_dir in $PATH
7265 do
7266 IFS=$as_save_IFS
7267 test -z "$as_dir" && as_dir=.
7268 for ac_exec_ext in '' $ac_executable_extensions; do
7269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7270 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7272 break 2
7273 fi
7274 done
7275 done
7276 IFS=$as_save_IFS
7277
7278 fi
7279 fi
7280 LIPO=$ac_cv_prog_LIPO
7281 if test -n "$LIPO"; then
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7283 $as_echo "$LIPO" >&6; }
7284 else
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7286 $as_echo "no" >&6; }
7287 fi
7288
7289
7290 fi
7291 if test -z "$ac_cv_prog_LIPO"; then
7292 ac_ct_LIPO=$LIPO
7293 # Extract the first word of "lipo", so it can be a program name with args.
7294 set dummy lipo; ac_word=$2
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7296 $as_echo_n "checking for $ac_word... " >&6; }
7297 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7298 $as_echo_n "(cached) " >&6
7299 else
7300 if test -n "$ac_ct_LIPO"; then
7301 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7302 else
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304 for as_dir in $PATH
7305 do
7306 IFS=$as_save_IFS
7307 test -z "$as_dir" && as_dir=.
7308 for ac_exec_ext in '' $ac_executable_extensions; do
7309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7310 ac_cv_prog_ac_ct_LIPO="lipo"
7311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7312 break 2
7313 fi
7314 done
7315 done
7316 IFS=$as_save_IFS
7317
7318 fi
7319 fi
7320 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7321 if test -n "$ac_ct_LIPO"; then
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7323 $as_echo "$ac_ct_LIPO" >&6; }
7324 else
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326 $as_echo "no" >&6; }
7327 fi
7328
7329 if test "x$ac_ct_LIPO" = x; then
7330 LIPO=":"
7331 else
7332 case $cross_compiling:$ac_tool_warned in
7333 yes:)
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7336 ac_tool_warned=yes ;;
7337 esac
7338 LIPO=$ac_ct_LIPO
7339 fi
7340 else
7341 LIPO="$ac_cv_prog_LIPO"
7342 fi
7343
7344 if test -n "$ac_tool_prefix"; then
7345 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7346 set dummy ${ac_tool_prefix}otool; ac_word=$2
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7348 $as_echo_n "checking for $ac_word... " >&6; }
7349 if ${ac_cv_prog_OTOOL+:} false; then :
7350 $as_echo_n "(cached) " >&6
7351 else
7352 if test -n "$OTOOL"; then
7353 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7354 else
7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 for as_dir in $PATH
7357 do
7358 IFS=$as_save_IFS
7359 test -z "$as_dir" && as_dir=.
7360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7362 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7364 break 2
7365 fi
7366 done
7367 done
7368 IFS=$as_save_IFS
7369
7370 fi
7371 fi
7372 OTOOL=$ac_cv_prog_OTOOL
7373 if test -n "$OTOOL"; then
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7375 $as_echo "$OTOOL" >&6; }
7376 else
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7378 $as_echo "no" >&6; }
7379 fi
7380
7381
7382 fi
7383 if test -z "$ac_cv_prog_OTOOL"; then
7384 ac_ct_OTOOL=$OTOOL
7385 # Extract the first word of "otool", so it can be a program name with args.
7386 set dummy otool; ac_word=$2
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7388 $as_echo_n "checking for $ac_word... " >&6; }
7389 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7390 $as_echo_n "(cached) " >&6
7391 else
7392 if test -n "$ac_ct_OTOOL"; then
7393 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7394 else
7395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396 for as_dir in $PATH
7397 do
7398 IFS=$as_save_IFS
7399 test -z "$as_dir" && as_dir=.
7400 for ac_exec_ext in '' $ac_executable_extensions; do
7401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7402 ac_cv_prog_ac_ct_OTOOL="otool"
7403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7404 break 2
7405 fi
7406 done
7407 done
7408 IFS=$as_save_IFS
7409
7410 fi
7411 fi
7412 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7413 if test -n "$ac_ct_OTOOL"; then
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7415 $as_echo "$ac_ct_OTOOL" >&6; }
7416 else
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7418 $as_echo "no" >&6; }
7419 fi
7420
7421 if test "x$ac_ct_OTOOL" = x; then
7422 OTOOL=":"
7423 else
7424 case $cross_compiling:$ac_tool_warned in
7425 yes:)
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7428 ac_tool_warned=yes ;;
7429 esac
7430 OTOOL=$ac_ct_OTOOL
7431 fi
7432 else
7433 OTOOL="$ac_cv_prog_OTOOL"
7434 fi
7435
7436 if test -n "$ac_tool_prefix"; then
7437 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7438 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7440 $as_echo_n "checking for $ac_word... " >&6; }
7441 if ${ac_cv_prog_OTOOL64+:} false; then :
7442 $as_echo_n "(cached) " >&6
7443 else
7444 if test -n "$OTOOL64"; then
7445 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7446 else
7447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448 for as_dir in $PATH
7449 do
7450 IFS=$as_save_IFS
7451 test -z "$as_dir" && as_dir=.
7452 for ac_exec_ext in '' $ac_executable_extensions; do
7453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7454 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7456 break 2
7457 fi
7458 done
7459 done
7460 IFS=$as_save_IFS
7461
7462 fi
7463 fi
7464 OTOOL64=$ac_cv_prog_OTOOL64
7465 if test -n "$OTOOL64"; then
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7467 $as_echo "$OTOOL64" >&6; }
7468 else
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7470 $as_echo "no" >&6; }
7471 fi
7472
7473
7474 fi
7475 if test -z "$ac_cv_prog_OTOOL64"; then
7476 ac_ct_OTOOL64=$OTOOL64
7477 # Extract the first word of "otool64", so it can be a program name with args.
7478 set dummy otool64; ac_word=$2
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7480 $as_echo_n "checking for $ac_word... " >&6; }
7481 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7482 $as_echo_n "(cached) " >&6
7483 else
7484 if test -n "$ac_ct_OTOOL64"; then
7485 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7486 else
7487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488 for as_dir in $PATH
7489 do
7490 IFS=$as_save_IFS
7491 test -z "$as_dir" && as_dir=.
7492 for ac_exec_ext in '' $ac_executable_extensions; do
7493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7494 ac_cv_prog_ac_ct_OTOOL64="otool64"
7495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7496 break 2
7497 fi
7498 done
7499 done
7500 IFS=$as_save_IFS
7501
7502 fi
7503 fi
7504 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7505 if test -n "$ac_ct_OTOOL64"; then
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7507 $as_echo "$ac_ct_OTOOL64" >&6; }
7508 else
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7510 $as_echo "no" >&6; }
7511 fi
7512
7513 if test "x$ac_ct_OTOOL64" = x; then
7514 OTOOL64=":"
7515 else
7516 case $cross_compiling:$ac_tool_warned in
7517 yes:)
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7519 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7520 ac_tool_warned=yes ;;
7521 esac
7522 OTOOL64=$ac_ct_OTOOL64
7523 fi
7524 else
7525 OTOOL64="$ac_cv_prog_OTOOL64"
7526 fi
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7555 $as_echo_n "checking for -single_module linker flag... " >&6; }
7556 if ${lt_cv_apple_cc_single_mod+:} false; then :
7557 $as_echo_n "(cached) " >&6
7558 else
7559 lt_cv_apple_cc_single_mod=no
7560 if test -z "${LT_MULTI_MODULE}"; then
7561 # By default we will add the -single_module flag. You can override
7562 # by either setting the environment variable LT_MULTI_MODULE
7563 # non-empty at configure time, or by adding -multi_module to the
7564 # link flags.
7565 rm -rf libconftest.dylib*
7566 echo "int foo(void){return 1;}" > conftest.c
7567 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7568 -dynamiclib -Wl,-single_module conftest.c" >&5
7569 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7570 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7571 _lt_result=$?
7572 # If there is a non-empty error log, and "single_module"
7573 # appears in it, assume the flag caused a linker warning
7574 if test -s conftest.err && $GREP single_module conftest.err; then
7575 cat conftest.err >&5
7576 # Otherwise, if the output was created with a 0 exit code from
7577 # the compiler, it worked.
7578 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7579 lt_cv_apple_cc_single_mod=yes
7580 else
7581 cat conftest.err >&5
7582 fi
7583 rm -rf libconftest.dylib*
7584 rm -f conftest.*
7585 fi
7586 fi
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7588 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7589
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7591 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7592 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7593 $as_echo_n "(cached) " >&6
7594 else
7595 lt_cv_ld_exported_symbols_list=no
7596 save_LDFLAGS=$LDFLAGS
7597 echo "_main" > conftest.sym
7598 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7600 /* end confdefs.h. */
7601
7602 int
7603 main ()
7604 {
7605
7606 ;
7607 return 0;
7608 }
7609 _ACEOF
7610 if ac_fn_c_try_link "$LINENO"; then :
7611 lt_cv_ld_exported_symbols_list=yes
7612 else
7613 lt_cv_ld_exported_symbols_list=no
7614 fi
7615 rm -f core conftest.err conftest.$ac_objext \
7616 conftest$ac_exeext conftest.$ac_ext
7617 LDFLAGS="$save_LDFLAGS"
7618
7619 fi
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7621 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7622
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7624 $as_echo_n "checking for -force_load linker flag... " >&6; }
7625 if ${lt_cv_ld_force_load+:} false; then :
7626 $as_echo_n "(cached) " >&6
7627 else
7628 lt_cv_ld_force_load=no
7629 cat > conftest.c << _LT_EOF
7630 int forced_loaded() { return 2;}
7631 _LT_EOF
7632 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7633 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7634 echo "$AR cru libconftest.a conftest.o" >&5
7635 $AR cru libconftest.a conftest.o 2>&5
7636 echo "$RANLIB libconftest.a" >&5
7637 $RANLIB libconftest.a 2>&5
7638 cat > conftest.c << _LT_EOF
7639 int main() { return 0;}
7640 _LT_EOF
7641 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7642 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7643 _lt_result=$?
7644 if test -s conftest.err && $GREP force_load conftest.err; then
7645 cat conftest.err >&5
7646 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7647 lt_cv_ld_force_load=yes
7648 else
7649 cat conftest.err >&5
7650 fi
7651 rm -f conftest.err libconftest.a conftest conftest.c
7652 rm -rf conftest.dSYM
7653
7654 fi
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7656 $as_echo "$lt_cv_ld_force_load" >&6; }
7657 case $host_os in
7658 rhapsody* | darwin1.[012])
7659 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7660 darwin1.*)
7661 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7662 darwin*) # darwin 5.x on
7663 # if running on 10.5 or later, the deployment target defaults
7664 # to the OS version, if on x86, and 10.4, the deployment
7665 # target defaults to 10.4. Don't you love it?
7666 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7667 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7668 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7669 10.[012]*)
7670 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7671 10.*)
7672 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7673 esac
7674 ;;
7675 esac
7676 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7677 _lt_dar_single_mod='$single_module'
7678 fi
7679 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7680 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7681 else
7682 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7683 fi
7684 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7685 _lt_dsymutil='~$DSYMUTIL $lib || :'
7686 else
7687 _lt_dsymutil=
7688 fi
7689 ;;
7690 esac
7691
7692 for ac_header in dlfcn.h
7693 do :
7694 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7695 "
7696 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7697 cat >>confdefs.h <<_ACEOF
7698 #define HAVE_DLFCN_H 1
7699 _ACEOF
7700
7701 fi
7702
7703 done
7704
7705
7706
7707
7708
7709 # Set options
7710
7711
7712
7713 enable_dlopen=no
7714
7715
7716 enable_win32_dll=no
7717
7718
7719 # Check whether --enable-shared was given.
7720 if test "${enable_shared+set}" = set; then :
7721 enableval=$enable_shared; p=${PACKAGE-default}
7722 case $enableval in
7723 yes) enable_shared=yes ;;
7724 no) enable_shared=no ;;
7725 *)
7726 enable_shared=no
7727 # Look at the argument we got. We use all the common list separators.
7728 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7729 for pkg in $enableval; do
7730 IFS="$lt_save_ifs"
7731 if test "X$pkg" = "X$p"; then
7732 enable_shared=yes
7733 fi
7734 done
7735 IFS="$lt_save_ifs"
7736 ;;
7737 esac
7738 else
7739 enable_shared=yes
7740 fi
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750 # Check whether --enable-static was given.
7751 if test "${enable_static+set}" = set; then :
7752 enableval=$enable_static; p=${PACKAGE-default}
7753 case $enableval in
7754 yes) enable_static=yes ;;
7755 no) enable_static=no ;;
7756 *)
7757 enable_static=no
7758 # Look at the argument we got. We use all the common list separators.
7759 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7760 for pkg in $enableval; do
7761 IFS="$lt_save_ifs"
7762 if test "X$pkg" = "X$p"; then
7763 enable_static=yes
7764 fi
7765 done
7766 IFS="$lt_save_ifs"
7767 ;;
7768 esac
7769 else
7770 enable_static=yes
7771 fi
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782 # Check whether --with-pic was given.
7783 if test "${with_pic+set}" = set; then :
7784 withval=$with_pic; lt_p=${PACKAGE-default}
7785 case $withval in
7786 yes|no) pic_mode=$withval ;;
7787 *)
7788 pic_mode=default
7789 # Look at the argument we got. We use all the common list separators.
7790 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7791 for lt_pkg in $withval; do
7792 IFS="$lt_save_ifs"
7793 if test "X$lt_pkg" = "X$lt_p"; then
7794 pic_mode=yes
7795 fi
7796 done
7797 IFS="$lt_save_ifs"
7798 ;;
7799 esac
7800 else
7801 pic_mode=default
7802 fi
7803
7804
7805 test -z "$pic_mode" && pic_mode=default
7806
7807
7808
7809
7810
7811
7812
7813 # Check whether --enable-fast-install was given.
7814 if test "${enable_fast_install+set}" = set; then :
7815 enableval=$enable_fast_install; p=${PACKAGE-default}
7816 case $enableval in
7817 yes) enable_fast_install=yes ;;
7818 no) enable_fast_install=no ;;
7819 *)
7820 enable_fast_install=no
7821 # Look at the argument we got. We use all the common list separators.
7822 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7823 for pkg in $enableval; do
7824 IFS="$lt_save_ifs"
7825 if test "X$pkg" = "X$p"; then
7826 enable_fast_install=yes
7827 fi
7828 done
7829 IFS="$lt_save_ifs"
7830 ;;
7831 esac
7832 else
7833 enable_fast_install=yes
7834 fi
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846 # This can be used to rebuild libtool when needed
7847 LIBTOOL_DEPS="$ltmain"
7848
7849 # Always use our own libtool.
7850 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881 test -z "$LN_S" && LN_S="ln -s"
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896 if test -n "${ZSH_VERSION+set}" ; then
7897 setopt NO_GLOB_SUBST
7898 fi
7899
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7901 $as_echo_n "checking for objdir... " >&6; }
7902 if ${lt_cv_objdir+:} false; then :
7903 $as_echo_n "(cached) " >&6
7904 else
7905 rm -f .libs 2>/dev/null
7906 mkdir .libs 2>/dev/null
7907 if test -d .libs; then
7908 lt_cv_objdir=.libs
7909 else
7910 # MS-DOS does not allow filenames that begin with a dot.
7911 lt_cv_objdir=_libs
7912 fi
7913 rmdir .libs 2>/dev/null
7914 fi
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7916 $as_echo "$lt_cv_objdir" >&6; }
7917 objdir=$lt_cv_objdir
7918
7919
7920
7921
7922
7923 cat >>confdefs.h <<_ACEOF
7924 #define LT_OBJDIR "$lt_cv_objdir/"
7925 _ACEOF
7926
7927
7928
7929
7930 case $host_os in
7931 aix3*)
7932 # AIX sometimes has problems with the GCC collect2 program. For some
7933 # reason, if we set the COLLECT_NAMES environment variable, the problems
7934 # vanish in a puff of smoke.
7935 if test "X${COLLECT_NAMES+set}" != Xset; then
7936 COLLECT_NAMES=
7937 export COLLECT_NAMES
7938 fi
7939 ;;
7940 esac
7941
7942 # Global variables:
7943 ofile=libtool
7944 can_build_shared=yes
7945
7946 # All known linkers require a `.a' archive for static linking (except MSVC,
7947 # which needs '.lib').
7948 libext=a
7949
7950 with_gnu_ld="$lt_cv_prog_gnu_ld"
7951
7952 old_CC="$CC"
7953 old_CFLAGS="$CFLAGS"
7954
7955 # Set sane defaults for various variables
7956 test -z "$CC" && CC=cc
7957 test -z "$LTCC" && LTCC=$CC
7958 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7959 test -z "$LD" && LD=ld
7960 test -z "$ac_objext" && ac_objext=o
7961
7962 for cc_temp in $compiler""; do
7963 case $cc_temp in
7964 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7965 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7966 \-*) ;;
7967 *) break;;
7968 esac
7969 done
7970 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7971
7972
7973 # Only perform the check for file, if the check method requires it
7974 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7975 case $deplibs_check_method in
7976 file_magic*)
7977 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7979 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7980 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7981 $as_echo_n "(cached) " >&6
7982 else
7983 case $MAGIC_CMD in
7984 [\\/*] | ?:[\\/]*)
7985 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7986 ;;
7987 *)
7988 lt_save_MAGIC_CMD="$MAGIC_CMD"
7989 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7990 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7991 for ac_dir in $ac_dummy; do
7992 IFS="$lt_save_ifs"
7993 test -z "$ac_dir" && ac_dir=.
7994 if test -f $ac_dir/${ac_tool_prefix}file; then
7995 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7996 if test -n "$file_magic_test_file"; then
7997 case $deplibs_check_method in
7998 "file_magic "*)
7999 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8000 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8001 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8002 $EGREP "$file_magic_regex" > /dev/null; then
8003 :
8004 else
8005 cat <<_LT_EOF 1>&2
8006
8007 *** Warning: the command libtool uses to detect shared libraries,
8008 *** $file_magic_cmd, produces output that libtool cannot recognize.
8009 *** The result is that libtool may fail to recognize shared libraries
8010 *** as such. This will affect the creation of libtool libraries that
8011 *** depend on shared libraries, but programs linked with such libtool
8012 *** libraries will work regardless of this problem. Nevertheless, you
8013 *** may want to report the problem to your system manager and/or to
8014 *** bug-libtool@gnu.org
8015
8016 _LT_EOF
8017 fi ;;
8018 esac
8019 fi
8020 break
8021 fi
8022 done
8023 IFS="$lt_save_ifs"
8024 MAGIC_CMD="$lt_save_MAGIC_CMD"
8025 ;;
8026 esac
8027 fi
8028
8029 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8030 if test -n "$MAGIC_CMD"; then
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8032 $as_echo "$MAGIC_CMD" >&6; }
8033 else
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8035 $as_echo "no" >&6; }
8036 fi
8037
8038
8039
8040
8041
8042 if test -z "$lt_cv_path_MAGIC_CMD"; then
8043 if test -n "$ac_tool_prefix"; then
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8045 $as_echo_n "checking for file... " >&6; }
8046 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8047 $as_echo_n "(cached) " >&6
8048 else
8049 case $MAGIC_CMD in
8050 [\\/*] | ?:[\\/]*)
8051 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8052 ;;
8053 *)
8054 lt_save_MAGIC_CMD="$MAGIC_CMD"
8055 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8056 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8057 for ac_dir in $ac_dummy; do
8058 IFS="$lt_save_ifs"
8059 test -z "$ac_dir" && ac_dir=.
8060 if test -f $ac_dir/file; then
8061 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8062 if test -n "$file_magic_test_file"; then
8063 case $deplibs_check_method in
8064 "file_magic "*)
8065 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8066 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8067 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8068 $EGREP "$file_magic_regex" > /dev/null; then
8069 :
8070 else
8071 cat <<_LT_EOF 1>&2
8072
8073 *** Warning: the command libtool uses to detect shared libraries,
8074 *** $file_magic_cmd, produces output that libtool cannot recognize.
8075 *** The result is that libtool may fail to recognize shared libraries
8076 *** as such. This will affect the creation of libtool libraries that
8077 *** depend on shared libraries, but programs linked with such libtool
8078 *** libraries will work regardless of this problem. Nevertheless, you
8079 *** may want to report the problem to your system manager and/or to
8080 *** bug-libtool@gnu.org
8081
8082 _LT_EOF
8083 fi ;;
8084 esac
8085 fi
8086 break
8087 fi
8088 done
8089 IFS="$lt_save_ifs"
8090 MAGIC_CMD="$lt_save_MAGIC_CMD"
8091 ;;
8092 esac
8093 fi
8094
8095 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8096 if test -n "$MAGIC_CMD"; then
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8098 $as_echo "$MAGIC_CMD" >&6; }
8099 else
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8101 $as_echo "no" >&6; }
8102 fi
8103
8104
8105 else
8106 MAGIC_CMD=:
8107 fi
8108 fi
8109
8110 fi
8111 ;;
8112 esac
8113
8114 # Use C for the default configuration in the libtool script
8115
8116 lt_save_CC="$CC"
8117 ac_ext=c
8118 ac_cpp='$CPP $CPPFLAGS'
8119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8122
8123
8124 # Source file extension for C test sources.
8125 ac_ext=c
8126
8127 # Object file extension for compiled C test sources.
8128 objext=o
8129 objext=$objext
8130
8131 # Code to be used in simple compile tests
8132 lt_simple_compile_test_code="int some_variable = 0;"
8133
8134 # Code to be used in simple link tests
8135 lt_simple_link_test_code='int main(){return(0);}'
8136
8137
8138
8139
8140
8141
8142
8143 # If no C compiler was specified, use CC.
8144 LTCC=${LTCC-"$CC"}
8145
8146 # If no C compiler flags were specified, use CFLAGS.
8147 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8148
8149 # Allow CC to be a program name with arguments.
8150 compiler=$CC
8151
8152 # Save the default compiler, since it gets overwritten when the other
8153 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8154 compiler_DEFAULT=$CC
8155
8156 # save warnings/boilerplate of simple test code
8157 ac_outfile=conftest.$ac_objext
8158 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8159 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8160 _lt_compiler_boilerplate=`cat conftest.err`
8161 $RM conftest*
8162
8163 ac_outfile=conftest.$ac_objext
8164 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8165 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8166 _lt_linker_boilerplate=`cat conftest.err`
8167 $RM -r conftest*
8168
8169
8170 if test -n "$compiler"; then
8171
8172 lt_prog_compiler_no_builtin_flag=
8173
8174 if test "$GCC" = yes; then
8175 case $cc_basename in
8176 nvcc*)
8177 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8178 *)
8179 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8180 esac
8181
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8183 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8184 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8185 $as_echo_n "(cached) " >&6
8186 else
8187 lt_cv_prog_compiler_rtti_exceptions=no
8188 ac_outfile=conftest.$ac_objext
8189 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8190 lt_compiler_flag="-fno-rtti -fno-exceptions"
8191 # Insert the option either (1) after the last *FLAGS variable, or
8192 # (2) before a word containing "conftest.", or (3) at the end.
8193 # Note that $ac_compile itself does not contain backslashes and begins
8194 # with a dollar sign (not a hyphen), so the echo should work correctly.
8195 # The option is referenced via a variable to avoid confusing sed.
8196 lt_compile=`echo "$ac_compile" | $SED \
8197 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8198 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8199 -e 's:$: $lt_compiler_flag:'`
8200 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8201 (eval "$lt_compile" 2>conftest.err)
8202 ac_status=$?
8203 cat conftest.err >&5
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 if (exit $ac_status) && test -s "$ac_outfile"; then
8206 # The compiler can only warn and ignore the option if not recognized
8207 # So say no if there are warnings other than the usual output.
8208 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8209 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8210 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8211 lt_cv_prog_compiler_rtti_exceptions=yes
8212 fi
8213 fi
8214 $RM conftest*
8215
8216 fi
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8218 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8219
8220 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8221 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8222 else
8223 :
8224 fi
8225
8226 fi
8227
8228
8229
8230
8231
8232
8233 lt_prog_compiler_wl=
8234 lt_prog_compiler_pic=
8235 lt_prog_compiler_static=
8236
8237
8238 if test "$GCC" = yes; then
8239 lt_prog_compiler_wl='-Wl,'
8240 lt_prog_compiler_static='-static'
8241
8242 case $host_os in
8243 aix*)
8244 # All AIX code is PIC.
8245 if test "$host_cpu" = ia64; then
8246 # AIX 5 now supports IA64 processor
8247 lt_prog_compiler_static='-Bstatic'
8248 fi
8249 ;;
8250
8251 amigaos*)
8252 case $host_cpu in
8253 powerpc)
8254 # see comment about AmigaOS4 .so support
8255 lt_prog_compiler_pic='-fPIC'
8256 ;;
8257 m68k)
8258 # FIXME: we need at least 68020 code to build shared libraries, but
8259 # adding the `-m68020' flag to GCC prevents building anything better,
8260 # like `-m68040'.
8261 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8262 ;;
8263 esac
8264 ;;
8265
8266 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8267 # PIC is the default for these OSes.
8268 ;;
8269
8270 mingw* | cygwin* | pw32* | os2* | cegcc*)
8271 # This hack is so that the source file can tell whether it is being
8272 # built for inclusion in a dll (and should export symbols for example).
8273 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8274 # (--disable-auto-import) libraries
8275 lt_prog_compiler_pic='-DDLL_EXPORT'
8276 ;;
8277
8278 darwin* | rhapsody*)
8279 # PIC is the default on this platform
8280 # Common symbols not allowed in MH_DYLIB files
8281 lt_prog_compiler_pic='-fno-common'
8282 ;;
8283
8284 haiku*)
8285 # PIC is the default for Haiku.
8286 # The "-static" flag exists, but is broken.
8287 lt_prog_compiler_static=
8288 ;;
8289
8290 hpux*)
8291 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8292 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8293 # sets the default TLS model and affects inlining.
8294 case $host_cpu in
8295 hppa*64*)
8296 # +Z the default
8297 ;;
8298 *)
8299 lt_prog_compiler_pic='-fPIC'
8300 ;;
8301 esac
8302 ;;
8303
8304 interix[3-9]*)
8305 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8306 # Instead, we relocate shared libraries at runtime.
8307 ;;
8308
8309 msdosdjgpp*)
8310 # Just because we use GCC doesn't mean we suddenly get shared libraries
8311 # on systems that don't support them.
8312 lt_prog_compiler_can_build_shared=no
8313 enable_shared=no
8314 ;;
8315
8316 *nto* | *qnx*)
8317 # QNX uses GNU C++, but need to define -shared option too, otherwise
8318 # it will coredump.
8319 lt_prog_compiler_pic='-fPIC -shared'
8320 ;;
8321
8322 sysv4*MP*)
8323 if test -d /usr/nec; then
8324 lt_prog_compiler_pic=-Kconform_pic
8325 fi
8326 ;;
8327
8328 *)
8329 lt_prog_compiler_pic='-fPIC'
8330 ;;
8331 esac
8332
8333 case $cc_basename in
8334 nvcc*) # Cuda Compiler Driver 2.2
8335 lt_prog_compiler_wl='-Xlinker '
8336 if test -n "$lt_prog_compiler_pic"; then
8337 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8338 fi
8339 ;;
8340 esac
8341 else
8342 # PORTME Check for flag to pass linker flags through the system compiler.
8343 case $host_os in
8344 aix*)
8345 lt_prog_compiler_wl='-Wl,'
8346 if test "$host_cpu" = ia64; then
8347 # AIX 5 now supports IA64 processor
8348 lt_prog_compiler_static='-Bstatic'
8349 else
8350 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8351 fi
8352 ;;
8353
8354 mingw* | cygwin* | pw32* | os2* | cegcc*)
8355 # This hack is so that the source file can tell whether it is being
8356 # built for inclusion in a dll (and should export symbols for example).
8357 lt_prog_compiler_pic='-DDLL_EXPORT'
8358 ;;
8359
8360 hpux9* | hpux10* | hpux11*)
8361 lt_prog_compiler_wl='-Wl,'
8362 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8363 # not for PA HP-UX.
8364 case $host_cpu in
8365 hppa*64*|ia64*)
8366 # +Z the default
8367 ;;
8368 *)
8369 lt_prog_compiler_pic='+Z'
8370 ;;
8371 esac
8372 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8373 lt_prog_compiler_static='${wl}-a ${wl}archive'
8374 ;;
8375
8376 irix5* | irix6* | nonstopux*)
8377 lt_prog_compiler_wl='-Wl,'
8378 # PIC (with -KPIC) is the default.
8379 lt_prog_compiler_static='-non_shared'
8380 ;;
8381
8382 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8383 case $cc_basename in
8384 # old Intel for x86_64 which still supported -KPIC.
8385 ecc*)
8386 lt_prog_compiler_wl='-Wl,'
8387 lt_prog_compiler_pic='-KPIC'
8388 lt_prog_compiler_static='-static'
8389 ;;
8390 # icc used to be incompatible with GCC.
8391 # ICC 10 doesn't accept -KPIC any more.
8392 icc* | ifort*)
8393 lt_prog_compiler_wl='-Wl,'
8394 lt_prog_compiler_pic='-fPIC'
8395 lt_prog_compiler_static='-static'
8396 ;;
8397 # Lahey Fortran 8.1.
8398 lf95*)
8399 lt_prog_compiler_wl='-Wl,'
8400 lt_prog_compiler_pic='--shared'
8401 lt_prog_compiler_static='--static'
8402 ;;
8403 nagfor*)
8404 # NAG Fortran compiler
8405 lt_prog_compiler_wl='-Wl,-Wl,,'
8406 lt_prog_compiler_pic='-PIC'
8407 lt_prog_compiler_static='-Bstatic'
8408 ;;
8409 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8410 # Portland Group compilers (*not* the Pentium gcc compiler,
8411 # which looks to be a dead project)
8412 lt_prog_compiler_wl='-Wl,'
8413 lt_prog_compiler_pic='-fpic'
8414 lt_prog_compiler_static='-Bstatic'
8415 ;;
8416 ccc*)
8417 lt_prog_compiler_wl='-Wl,'
8418 # All Alpha code is PIC.
8419 lt_prog_compiler_static='-non_shared'
8420 ;;
8421 xl* | bgxl* | bgf* | mpixl*)
8422 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8423 lt_prog_compiler_wl='-Wl,'
8424 lt_prog_compiler_pic='-qpic'
8425 lt_prog_compiler_static='-qstaticlink'
8426 ;;
8427 *)
8428 case `$CC -V 2>&1 | sed 5q` in
8429 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8430 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8431 lt_prog_compiler_pic='-KPIC'
8432 lt_prog_compiler_static='-Bstatic'
8433 lt_prog_compiler_wl=''
8434 ;;
8435 *Sun\ F* | *Sun*Fortran*)
8436 lt_prog_compiler_pic='-KPIC'
8437 lt_prog_compiler_static='-Bstatic'
8438 lt_prog_compiler_wl='-Qoption ld '
8439 ;;
8440 *Sun\ C*)
8441 # Sun C 5.9
8442 lt_prog_compiler_pic='-KPIC'
8443 lt_prog_compiler_static='-Bstatic'
8444 lt_prog_compiler_wl='-Wl,'
8445 ;;
8446 *Intel*\ [CF]*Compiler*)
8447 lt_prog_compiler_wl='-Wl,'
8448 lt_prog_compiler_pic='-fPIC'
8449 lt_prog_compiler_static='-static'
8450 ;;
8451 *Portland\ Group*)
8452 lt_prog_compiler_wl='-Wl,'
8453 lt_prog_compiler_pic='-fpic'
8454 lt_prog_compiler_static='-Bstatic'
8455 ;;
8456 esac
8457 ;;
8458 esac
8459 ;;
8460
8461 newsos6)
8462 lt_prog_compiler_pic='-KPIC'
8463 lt_prog_compiler_static='-Bstatic'
8464 ;;
8465
8466 *nto* | *qnx*)
8467 # QNX uses GNU C++, but need to define -shared option too, otherwise
8468 # it will coredump.
8469 lt_prog_compiler_pic='-fPIC -shared'
8470 ;;
8471
8472 osf3* | osf4* | osf5*)
8473 lt_prog_compiler_wl='-Wl,'
8474 # All OSF/1 code is PIC.
8475 lt_prog_compiler_static='-non_shared'
8476 ;;
8477
8478 rdos*)
8479 lt_prog_compiler_static='-non_shared'
8480 ;;
8481
8482 solaris*)
8483 lt_prog_compiler_pic='-KPIC'
8484 lt_prog_compiler_static='-Bstatic'
8485 case $cc_basename in
8486 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8487 lt_prog_compiler_wl='-Qoption ld ';;
8488 *)
8489 lt_prog_compiler_wl='-Wl,';;
8490 esac
8491 ;;
8492
8493 sunos4*)
8494 lt_prog_compiler_wl='-Qoption ld '
8495 lt_prog_compiler_pic='-PIC'
8496 lt_prog_compiler_static='-Bstatic'
8497 ;;
8498
8499 sysv4 | sysv4.2uw2* | sysv4.3*)
8500 lt_prog_compiler_wl='-Wl,'
8501 lt_prog_compiler_pic='-KPIC'
8502 lt_prog_compiler_static='-Bstatic'
8503 ;;
8504
8505 sysv4*MP*)
8506 if test -d /usr/nec ;then
8507 lt_prog_compiler_pic='-Kconform_pic'
8508 lt_prog_compiler_static='-Bstatic'
8509 fi
8510 ;;
8511
8512 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8513 lt_prog_compiler_wl='-Wl,'
8514 lt_prog_compiler_pic='-KPIC'
8515 lt_prog_compiler_static='-Bstatic'
8516 ;;
8517
8518 unicos*)
8519 lt_prog_compiler_wl='-Wl,'
8520 lt_prog_compiler_can_build_shared=no
8521 ;;
8522
8523 uts4*)
8524 lt_prog_compiler_pic='-pic'
8525 lt_prog_compiler_static='-Bstatic'
8526 ;;
8527
8528 *)
8529 lt_prog_compiler_can_build_shared=no
8530 ;;
8531 esac
8532 fi
8533
8534 case $host_os in
8535 # For platforms which do not support PIC, -DPIC is meaningless:
8536 *djgpp*)
8537 lt_prog_compiler_pic=
8538 ;;
8539 *)
8540 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8541 ;;
8542 esac
8543
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8545 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8546 if ${lt_cv_prog_compiler_pic+:} false; then :
8547 $as_echo_n "(cached) " >&6
8548 else
8549 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8550 fi
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8552 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8553 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8554
8555 #
8556 # Check to make sure the PIC flag actually works.
8557 #
8558 if test -n "$lt_prog_compiler_pic"; then
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8560 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8561 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8562 $as_echo_n "(cached) " >&6
8563 else
8564 lt_cv_prog_compiler_pic_works=no
8565 ac_outfile=conftest.$ac_objext
8566 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8567 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8568 # Insert the option either (1) after the last *FLAGS variable, or
8569 # (2) before a word containing "conftest.", or (3) at the end.
8570 # Note that $ac_compile itself does not contain backslashes and begins
8571 # with a dollar sign (not a hyphen), so the echo should work correctly.
8572 # The option is referenced via a variable to avoid confusing sed.
8573 lt_compile=`echo "$ac_compile" | $SED \
8574 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8575 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8576 -e 's:$: $lt_compiler_flag:'`
8577 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8578 (eval "$lt_compile" 2>conftest.err)
8579 ac_status=$?
8580 cat conftest.err >&5
8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 if (exit $ac_status) && test -s "$ac_outfile"; then
8583 # The compiler can only warn and ignore the option if not recognized
8584 # So say no if there are warnings other than the usual output.
8585 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8586 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8587 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8588 lt_cv_prog_compiler_pic_works=yes
8589 fi
8590 fi
8591 $RM conftest*
8592
8593 fi
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8595 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8596
8597 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8598 case $lt_prog_compiler_pic in
8599 "" | " "*) ;;
8600 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8601 esac
8602 else
8603 lt_prog_compiler_pic=
8604 lt_prog_compiler_can_build_shared=no
8605 fi
8606
8607 fi
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619 #
8620 # Check to make sure the static flag actually works.
8621 #
8622 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8624 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8625 if ${lt_cv_prog_compiler_static_works+:} false; then :
8626 $as_echo_n "(cached) " >&6
8627 else
8628 lt_cv_prog_compiler_static_works=no
8629 save_LDFLAGS="$LDFLAGS"
8630 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8631 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8632 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8633 # The linker can only warn and ignore the option if not recognized
8634 # So say no if there are warnings
8635 if test -s conftest.err; then
8636 # Append any errors to the config.log.
8637 cat conftest.err 1>&5
8638 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8639 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8640 if diff conftest.exp conftest.er2 >/dev/null; then
8641 lt_cv_prog_compiler_static_works=yes
8642 fi
8643 else
8644 lt_cv_prog_compiler_static_works=yes
8645 fi
8646 fi
8647 $RM -r conftest*
8648 LDFLAGS="$save_LDFLAGS"
8649
8650 fi
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8652 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8653
8654 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8655 :
8656 else
8657 lt_prog_compiler_static=
8658 fi
8659
8660
8661
8662
8663
8664
8665
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8667 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8668 if ${lt_cv_prog_compiler_c_o+:} false; then :
8669 $as_echo_n "(cached) " >&6
8670 else
8671 lt_cv_prog_compiler_c_o=no
8672 $RM -r conftest 2>/dev/null
8673 mkdir conftest
8674 cd conftest
8675 mkdir out
8676 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8677
8678 lt_compiler_flag="-o out/conftest2.$ac_objext"
8679 # Insert the option either (1) after the last *FLAGS variable, or
8680 # (2) before a word containing "conftest.", or (3) at the end.
8681 # Note that $ac_compile itself does not contain backslashes and begins
8682 # with a dollar sign (not a hyphen), so the echo should work correctly.
8683 lt_compile=`echo "$ac_compile" | $SED \
8684 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8685 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8686 -e 's:$: $lt_compiler_flag:'`
8687 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8688 (eval "$lt_compile" 2>out/conftest.err)
8689 ac_status=$?
8690 cat out/conftest.err >&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8693 then
8694 # The compiler can only warn and ignore the option if not recognized
8695 # So say no if there are warnings
8696 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8697 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8698 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8699 lt_cv_prog_compiler_c_o=yes
8700 fi
8701 fi
8702 chmod u+w . 2>&5
8703 $RM conftest*
8704 # SGI C++ compiler will create directory out/ii_files/ for
8705 # template instantiation
8706 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8707 $RM out/* && rmdir out
8708 cd ..
8709 $RM -r conftest
8710 $RM conftest*
8711
8712 fi
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8714 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8715
8716
8717
8718
8719
8720
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8722 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8723 if ${lt_cv_prog_compiler_c_o+:} false; then :
8724 $as_echo_n "(cached) " >&6
8725 else
8726 lt_cv_prog_compiler_c_o=no
8727 $RM -r conftest 2>/dev/null
8728 mkdir conftest
8729 cd conftest
8730 mkdir out
8731 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8732
8733 lt_compiler_flag="-o out/conftest2.$ac_objext"
8734 # Insert the option either (1) after the last *FLAGS variable, or
8735 # (2) before a word containing "conftest.", or (3) at the end.
8736 # Note that $ac_compile itself does not contain backslashes and begins
8737 # with a dollar sign (not a hyphen), so the echo should work correctly.
8738 lt_compile=`echo "$ac_compile" | $SED \
8739 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8740 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8741 -e 's:$: $lt_compiler_flag:'`
8742 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8743 (eval "$lt_compile" 2>out/conftest.err)
8744 ac_status=$?
8745 cat out/conftest.err >&5
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8748 then
8749 # The compiler can only warn and ignore the option if not recognized
8750 # So say no if there are warnings
8751 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8752 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8753 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8754 lt_cv_prog_compiler_c_o=yes
8755 fi
8756 fi
8757 chmod u+w . 2>&5
8758 $RM conftest*
8759 # SGI C++ compiler will create directory out/ii_files/ for
8760 # template instantiation
8761 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8762 $RM out/* && rmdir out
8763 cd ..
8764 $RM -r conftest
8765 $RM conftest*
8766
8767 fi
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8769 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8770
8771
8772
8773
8774 hard_links="nottested"
8775 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8776 # do not overwrite the value of need_locks provided by the user
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8778 $as_echo_n "checking if we can lock with hard links... " >&6; }
8779 hard_links=yes
8780 $RM conftest*
8781 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8782 touch conftest.a
8783 ln conftest.a conftest.b 2>&5 || hard_links=no
8784 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8786 $as_echo "$hard_links" >&6; }
8787 if test "$hard_links" = no; then
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8789 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8790 need_locks=warn
8791 fi
8792 else
8793 need_locks=no
8794 fi
8795
8796
8797
8798
8799
8800
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8802 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8803
8804 runpath_var=
8805 allow_undefined_flag=
8806 always_export_symbols=no
8807 archive_cmds=
8808 archive_expsym_cmds=
8809 compiler_needs_object=no
8810 enable_shared_with_static_runtimes=no
8811 export_dynamic_flag_spec=
8812 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8813 hardcode_automatic=no
8814 hardcode_direct=no
8815 hardcode_direct_absolute=no
8816 hardcode_libdir_flag_spec=
8817 hardcode_libdir_separator=
8818 hardcode_minus_L=no
8819 hardcode_shlibpath_var=unsupported
8820 inherit_rpath=no
8821 link_all_deplibs=unknown
8822 module_cmds=
8823 module_expsym_cmds=
8824 old_archive_from_new_cmds=
8825 old_archive_from_expsyms_cmds=
8826 thread_safe_flag_spec=
8827 whole_archive_flag_spec=
8828 # include_expsyms should be a list of space-separated symbols to be *always*
8829 # included in the symbol list
8830 include_expsyms=
8831 # exclude_expsyms can be an extended regexp of symbols to exclude
8832 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8833 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8834 # as well as any symbol that contains `d'.
8835 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8836 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8837 # platforms (ab)use it in PIC code, but their linkers get confused if
8838 # the symbol is explicitly referenced. Since portable code cannot
8839 # rely on this symbol name, it's probably fine to never include it in
8840 # preloaded symbol tables.
8841 # Exclude shared library initialization/finalization symbols.
8842 extract_expsyms_cmds=
8843
8844 case $host_os in
8845 cygwin* | mingw* | pw32* | cegcc*)
8846 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8847 # When not using gcc, we currently assume that we are using
8848 # Microsoft Visual C++.
8849 if test "$GCC" != yes; then
8850 with_gnu_ld=no
8851 fi
8852 ;;
8853 interix*)
8854 # we just hope/assume this is gcc and not c89 (= MSVC++)
8855 with_gnu_ld=yes
8856 ;;
8857 openbsd*)
8858 with_gnu_ld=no
8859 ;;
8860 esac
8861
8862 ld_shlibs=yes
8863
8864 # On some targets, GNU ld is compatible enough with the native linker
8865 # that we're better off using the native interface for both.
8866 lt_use_gnu_ld_interface=no
8867 if test "$with_gnu_ld" = yes; then
8868 case $host_os in
8869 aix*)
8870 # The AIX port of GNU ld has always aspired to compatibility
8871 # with the native linker. However, as the warning in the GNU ld
8872 # block says, versions before 2.19.5* couldn't really create working
8873 # shared libraries, regardless of the interface used.
8874 case `$LD -v 2>&1` in
8875 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8876 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8877 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8878 *)
8879 lt_use_gnu_ld_interface=yes
8880 ;;
8881 esac
8882 ;;
8883 *)
8884 lt_use_gnu_ld_interface=yes
8885 ;;
8886 esac
8887 fi
8888
8889 if test "$lt_use_gnu_ld_interface" = yes; then
8890 # If archive_cmds runs LD, not CC, wlarc should be empty
8891 wlarc='${wl}'
8892
8893 # Set some defaults for GNU ld with shared library support. These
8894 # are reset later if shared libraries are not supported. Putting them
8895 # here allows them to be overridden if necessary.
8896 runpath_var=LD_RUN_PATH
8897 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8898 export_dynamic_flag_spec='${wl}--export-dynamic'
8899 # ancient GNU ld didn't support --whole-archive et. al.
8900 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8901 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8902 else
8903 whole_archive_flag_spec=
8904 fi
8905 supports_anon_versioning=no
8906 case `$LD -v 2>&1` in
8907 *GNU\ gold*) supports_anon_versioning=yes ;;
8908 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8909 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8910 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8911 *\ 2.11.*) ;; # other 2.11 versions
8912 *) supports_anon_versioning=yes ;;
8913 esac
8914
8915 # See if GNU ld supports shared libraries.
8916 case $host_os in
8917 aix[3-9]*)
8918 # On AIX/PPC, the GNU linker is very broken
8919 if test "$host_cpu" != ia64; then
8920 ld_shlibs=no
8921 cat <<_LT_EOF 1>&2
8922
8923 *** Warning: the GNU linker, at least up to release 2.19, is reported
8924 *** to be unable to reliably create shared libraries on AIX.
8925 *** Therefore, libtool is disabling shared libraries support. If you
8926 *** really care for shared libraries, you may want to install binutils
8927 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8928 *** You will then need to restart the configuration process.
8929
8930 _LT_EOF
8931 fi
8932 ;;
8933
8934 amigaos*)
8935 case $host_cpu in
8936 powerpc)
8937 # see comment about AmigaOS4 .so support
8938 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8939 archive_expsym_cmds=''
8940 ;;
8941 m68k)
8942 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)'
8943 hardcode_libdir_flag_spec='-L$libdir'
8944 hardcode_minus_L=yes
8945 ;;
8946 esac
8947 ;;
8948
8949 beos*)
8950 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8951 allow_undefined_flag=unsupported
8952 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8953 # support --undefined. This deserves some investigation. FIXME
8954 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8955 else
8956 ld_shlibs=no
8957 fi
8958 ;;
8959
8960 cygwin* | mingw* | pw32* | cegcc*)
8961 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8962 # as there is no search path for DLLs.
8963 hardcode_libdir_flag_spec='-L$libdir'
8964 export_dynamic_flag_spec='${wl}--export-all-symbols'
8965 allow_undefined_flag=unsupported
8966 always_export_symbols=no
8967 enable_shared_with_static_runtimes=yes
8968 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'
8969 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8970
8971 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8972 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8973 # If the export-symbols file already is a .def file (1st line
8974 # is EXPORTS), use it as is; otherwise, prepend...
8975 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8976 cp $export_symbols $output_objdir/$soname.def;
8977 else
8978 echo EXPORTS > $output_objdir/$soname.def;
8979 cat $export_symbols >> $output_objdir/$soname.def;
8980 fi~
8981 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8982 else
8983 ld_shlibs=no
8984 fi
8985 ;;
8986
8987 haiku*)
8988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8989 link_all_deplibs=yes
8990 ;;
8991
8992 interix[3-9]*)
8993 hardcode_direct=no
8994 hardcode_shlibpath_var=no
8995 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8996 export_dynamic_flag_spec='${wl}-E'
8997 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8998 # Instead, shared libraries are loaded at an image base (0x10000000 by
8999 # default) and relocated if they conflict, which is a slow very memory
9000 # consuming and fragmenting process. To avoid this, we pick a random,
9001 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9002 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9003 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9004 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'
9005 ;;
9006
9007 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9008 tmp_diet=no
9009 if test "$host_os" = linux-dietlibc; then
9010 case $cc_basename in
9011 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9012 esac
9013 fi
9014 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9015 && test "$tmp_diet" = no
9016 then
9017 tmp_addflag=' $pic_flag'
9018 tmp_sharedflag='-shared'
9019 case $cc_basename,$host_cpu in
9020 pgcc*) # Portland Group C compiler
9021 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'
9022 tmp_addflag=' $pic_flag'
9023 ;;
9024 pgf77* | pgf90* | pgf95* | pgfortran*)
9025 # Portland Group f77 and f90 compilers
9026 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'
9027 tmp_addflag=' $pic_flag -Mnomain' ;;
9028 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9029 tmp_addflag=' -i_dynamic' ;;
9030 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9031 tmp_addflag=' -i_dynamic -nofor_main' ;;
9032 ifc* | ifort*) # Intel Fortran compiler
9033 tmp_addflag=' -nofor_main' ;;
9034 lf95*) # Lahey Fortran 8.1
9035 whole_archive_flag_spec=
9036 tmp_sharedflag='--shared' ;;
9037 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9038 tmp_sharedflag='-qmkshrobj'
9039 tmp_addflag= ;;
9040 nvcc*) # Cuda Compiler Driver 2.2
9041 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'
9042 compiler_needs_object=yes
9043 ;;
9044 esac
9045 case `$CC -V 2>&1 | sed 5q` in
9046 *Sun\ C*) # Sun C 5.9
9047 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'
9048 compiler_needs_object=yes
9049 tmp_sharedflag='-G' ;;
9050 *Sun\ F*) # Sun Fortran 8.3
9051 tmp_sharedflag='-G' ;;
9052 esac
9053 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9054
9055 if test "x$supports_anon_versioning" = xyes; then
9056 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9057 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9058 echo "local: *; };" >> $output_objdir/$libname.ver~
9059 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9060 fi
9061
9062 case $cc_basename in
9063 xlf* | bgf* | bgxlf* | mpixlf*)
9064 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9065 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9066 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9067 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9068 if test "x$supports_anon_versioning" = xyes; then
9069 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9070 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9071 echo "local: *; };" >> $output_objdir/$libname.ver~
9072 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9073 fi
9074 ;;
9075 esac
9076 else
9077 ld_shlibs=no
9078 fi
9079 ;;
9080
9081 netbsd*)
9082 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9083 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9084 wlarc=
9085 else
9086 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9087 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9088 fi
9089 ;;
9090
9091 solaris*)
9092 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9093 ld_shlibs=no
9094 cat <<_LT_EOF 1>&2
9095
9096 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9097 *** create shared libraries on Solaris systems. Therefore, libtool
9098 *** is disabling shared libraries support. We urge you to upgrade GNU
9099 *** binutils to release 2.9.1 or newer. Another option is to modify
9100 *** your PATH or compiler configuration so that the native linker is
9101 *** used, and then restart.
9102
9103 _LT_EOF
9104 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9105 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9106 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9107 else
9108 ld_shlibs=no
9109 fi
9110 ;;
9111
9112 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9113 case `$LD -v 2>&1` in
9114 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9115 ld_shlibs=no
9116 cat <<_LT_EOF 1>&2
9117
9118 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9119 *** reliably create shared libraries on SCO systems. Therefore, libtool
9120 *** is disabling shared libraries support. We urge you to upgrade GNU
9121 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9122 *** your PATH or compiler configuration so that the native linker is
9123 *** used, and then restart.
9124
9125 _LT_EOF
9126 ;;
9127 *)
9128 # For security reasons, it is highly recommended that you always
9129 # use absolute paths for naming shared libraries, and exclude the
9130 # DT_RUNPATH tag from executables and libraries. But doing so
9131 # requires that you compile everything twice, which is a pain.
9132 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9133 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9134 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9135 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9136 else
9137 ld_shlibs=no
9138 fi
9139 ;;
9140 esac
9141 ;;
9142
9143 sunos4*)
9144 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9145 wlarc=
9146 hardcode_direct=yes
9147 hardcode_shlibpath_var=no
9148 ;;
9149
9150 *)
9151 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9152 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9153 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9154 else
9155 ld_shlibs=no
9156 fi
9157 ;;
9158 esac
9159
9160 if test "$ld_shlibs" = no; then
9161 runpath_var=
9162 hardcode_libdir_flag_spec=
9163 export_dynamic_flag_spec=
9164 whole_archive_flag_spec=
9165 fi
9166 else
9167 # PORTME fill in a description of your system's linker (not GNU ld)
9168 case $host_os in
9169 aix3*)
9170 allow_undefined_flag=unsupported
9171 always_export_symbols=yes
9172 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'
9173 # Note: this linker hardcodes the directories in LIBPATH if there
9174 # are no directories specified by -L.
9175 hardcode_minus_L=yes
9176 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9177 # Neither direct hardcoding nor static linking is supported with a
9178 # broken collect2.
9179 hardcode_direct=unsupported
9180 fi
9181 ;;
9182
9183 aix[4-9]*)
9184 if test "$host_cpu" = ia64; then
9185 # On IA64, the linker does run time linking by default, so we don't
9186 # have to do anything special.
9187 aix_use_runtimelinking=no
9188 exp_sym_flag='-Bexport'
9189 no_entry_flag=""
9190 else
9191 # If we're using GNU nm, then we don't want the "-C" option.
9192 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9193 # Also, AIX nm treats weak defined symbols like other global
9194 # defined symbols, whereas GNU nm marks them as "W".
9195 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9196 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'
9197 else
9198 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'
9199 fi
9200 aix_use_runtimelinking=no
9201
9202 # Test if we are trying to use run time linking or normal
9203 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9204 # need to do runtime linking.
9205 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9206 for ld_flag in $LDFLAGS; do
9207 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9208 aix_use_runtimelinking=yes
9209 break
9210 fi
9211 done
9212 ;;
9213 esac
9214
9215 exp_sym_flag='-bexport'
9216 no_entry_flag='-bnoentry'
9217 fi
9218
9219 # When large executables or shared objects are built, AIX ld can
9220 # have problems creating the table of contents. If linking a library
9221 # or program results in "error TOC overflow" add -mminimal-toc to
9222 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9223 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9224
9225 archive_cmds=''
9226 hardcode_direct=yes
9227 hardcode_direct_absolute=yes
9228 hardcode_libdir_separator=':'
9229 link_all_deplibs=yes
9230 file_list_spec='${wl}-f,'
9231
9232 if test "$GCC" = yes; then
9233 case $host_os in aix4.[012]|aix4.[012].*)
9234 # We only want to do this on AIX 4.2 and lower, the check
9235 # below for broken collect2 doesn't work under 4.3+
9236 collect2name=`${CC} -print-prog-name=collect2`
9237 if test -f "$collect2name" &&
9238 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9239 then
9240 # We have reworked collect2
9241 :
9242 else
9243 # We have old collect2
9244 hardcode_direct=unsupported
9245 # It fails to find uninstalled libraries when the uninstalled
9246 # path is not listed in the libpath. Setting hardcode_minus_L
9247 # to unsupported forces relinking
9248 hardcode_minus_L=yes
9249 hardcode_libdir_flag_spec='-L$libdir'
9250 hardcode_libdir_separator=
9251 fi
9252 ;;
9253 esac
9254 shared_flag='-shared'
9255 if test "$aix_use_runtimelinking" = yes; then
9256 shared_flag="$shared_flag "'${wl}-G'
9257 fi
9258 else
9259 # not using gcc
9260 if test "$host_cpu" = ia64; then
9261 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9262 # chokes on -Wl,-G. The following line is correct:
9263 shared_flag='-G'
9264 else
9265 if test "$aix_use_runtimelinking" = yes; then
9266 shared_flag='${wl}-G'
9267 else
9268 shared_flag='${wl}-bM:SRE'
9269 fi
9270 fi
9271 fi
9272
9273 export_dynamic_flag_spec='${wl}-bexpall'
9274 # It seems that -bexpall does not export symbols beginning with
9275 # underscore (_), so it is better to generate a list of symbols to export.
9276 always_export_symbols=yes
9277 if test "$aix_use_runtimelinking" = yes; then
9278 # Warning - without using the other runtime loading flags (-brtl),
9279 # -berok will link without error, but may produce a broken library.
9280 allow_undefined_flag='-berok'
9281 # Determine the default libpath from the value encoded in an
9282 # empty executable.
9283 if test "${lt_cv_aix_libpath+set}" = set; then
9284 aix_libpath=$lt_cv_aix_libpath
9285 else
9286 if ${lt_cv_aix_libpath_+:} false; then :
9287 $as_echo_n "(cached) " >&6
9288 else
9289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9290 /* end confdefs.h. */
9291
9292 int
9293 main ()
9294 {
9295
9296 ;
9297 return 0;
9298 }
9299 _ACEOF
9300 if ac_fn_c_try_link "$LINENO"; then :
9301
9302 lt_aix_libpath_sed='
9303 /Import File Strings/,/^$/ {
9304 /^0/ {
9305 s/^0 *\([^ ]*\) *$/\1/
9306 p
9307 }
9308 }'
9309 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9310 # Check for a 64-bit object if we didn't find anything.
9311 if test -z "$lt_cv_aix_libpath_"; then
9312 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9313 fi
9314 fi
9315 rm -f core conftest.err conftest.$ac_objext \
9316 conftest$ac_exeext conftest.$ac_ext
9317 if test -z "$lt_cv_aix_libpath_"; then
9318 lt_cv_aix_libpath_="/usr/lib:/lib"
9319 fi
9320
9321 fi
9322
9323 aix_libpath=$lt_cv_aix_libpath_
9324 fi
9325
9326 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9327 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"
9328 else
9329 if test "$host_cpu" = ia64; then
9330 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9331 allow_undefined_flag="-z nodefs"
9332 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"
9333 else
9334 # Determine the default libpath from the value encoded in an
9335 # empty executable.
9336 if test "${lt_cv_aix_libpath+set}" = set; then
9337 aix_libpath=$lt_cv_aix_libpath
9338 else
9339 if ${lt_cv_aix_libpath_+:} false; then :
9340 $as_echo_n "(cached) " >&6
9341 else
9342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9343 /* end confdefs.h. */
9344
9345 int
9346 main ()
9347 {
9348
9349 ;
9350 return 0;
9351 }
9352 _ACEOF
9353 if ac_fn_c_try_link "$LINENO"; then :
9354
9355 lt_aix_libpath_sed='
9356 /Import File Strings/,/^$/ {
9357 /^0/ {
9358 s/^0 *\([^ ]*\) *$/\1/
9359 p
9360 }
9361 }'
9362 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9363 # Check for a 64-bit object if we didn't find anything.
9364 if test -z "$lt_cv_aix_libpath_"; then
9365 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9366 fi
9367 fi
9368 rm -f core conftest.err conftest.$ac_objext \
9369 conftest$ac_exeext conftest.$ac_ext
9370 if test -z "$lt_cv_aix_libpath_"; then
9371 lt_cv_aix_libpath_="/usr/lib:/lib"
9372 fi
9373
9374 fi
9375
9376 aix_libpath=$lt_cv_aix_libpath_
9377 fi
9378
9379 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9380 # Warning - without using the other run time loading flags,
9381 # -berok will link without error, but may produce a broken library.
9382 no_undefined_flag=' ${wl}-bernotok'
9383 allow_undefined_flag=' ${wl}-berok'
9384 if test "$with_gnu_ld" = yes; then
9385 # We only use this code for GNU lds that support --whole-archive.
9386 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9387 else
9388 # Exported symbols can be pulled into shared objects from archives
9389 whole_archive_flag_spec='$convenience'
9390 fi
9391 archive_cmds_need_lc=yes
9392 # This is similar to how AIX traditionally builds its shared libraries.
9393 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'
9394 fi
9395 fi
9396 ;;
9397
9398 amigaos*)
9399 case $host_cpu in
9400 powerpc)
9401 # see comment about AmigaOS4 .so support
9402 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9403 archive_expsym_cmds=''
9404 ;;
9405 m68k)
9406 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)'
9407 hardcode_libdir_flag_spec='-L$libdir'
9408 hardcode_minus_L=yes
9409 ;;
9410 esac
9411 ;;
9412
9413 bsdi[45]*)
9414 export_dynamic_flag_spec=-rdynamic
9415 ;;
9416
9417 cygwin* | mingw* | pw32* | cegcc*)
9418 # When not using gcc, we currently assume that we are using
9419 # Microsoft Visual C++.
9420 # hardcode_libdir_flag_spec is actually meaningless, as there is
9421 # no search path for DLLs.
9422 case $cc_basename in
9423 cl*)
9424 # Native MSVC
9425 hardcode_libdir_flag_spec=' '
9426 allow_undefined_flag=unsupported
9427 always_export_symbols=yes
9428 file_list_spec='@'
9429 # Tell ltmain to make .lib files, not .a files.
9430 libext=lib
9431 # Tell ltmain to make .dll files, not .so files.
9432 shrext_cmds=".dll"
9433 # FIXME: Setting linknames here is a bad hack.
9434 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9435 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9436 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9437 else
9438 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9439 fi~
9440 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9441 linknames='
9442 # The linker will not automatically build a static lib if we build a DLL.
9443 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9444 enable_shared_with_static_runtimes=yes
9445 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9446 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9447 # Don't use ranlib
9448 old_postinstall_cmds='chmod 644 $oldlib'
9449 postlink_cmds='lt_outputfile="@OUTPUT@"~
9450 lt_tool_outputfile="@TOOL_OUTPUT@"~
9451 case $lt_outputfile in
9452 *.exe|*.EXE) ;;
9453 *)
9454 lt_outputfile="$lt_outputfile.exe"
9455 lt_tool_outputfile="$lt_tool_outputfile.exe"
9456 ;;
9457 esac~
9458 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9459 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9460 $RM "$lt_outputfile.manifest";
9461 fi'
9462 ;;
9463 *)
9464 # Assume MSVC wrapper
9465 hardcode_libdir_flag_spec=' '
9466 allow_undefined_flag=unsupported
9467 # Tell ltmain to make .lib files, not .a files.
9468 libext=lib
9469 # Tell ltmain to make .dll files, not .so files.
9470 shrext_cmds=".dll"
9471 # FIXME: Setting linknames here is a bad hack.
9472 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9473 # The linker will automatically build a .lib file if we build a DLL.
9474 old_archive_from_new_cmds='true'
9475 # FIXME: Should let the user specify the lib program.
9476 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9477 enable_shared_with_static_runtimes=yes
9478 ;;
9479 esac
9480 ;;
9481
9482 darwin* | rhapsody*)
9483
9484
9485 archive_cmds_need_lc=no
9486 hardcode_direct=no
9487 hardcode_automatic=yes
9488 hardcode_shlibpath_var=unsupported
9489 if test "$lt_cv_ld_force_load" = "yes"; then
9490 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\"`'
9491
9492 else
9493 whole_archive_flag_spec=''
9494 fi
9495 link_all_deplibs=yes
9496 allow_undefined_flag="$_lt_dar_allow_undefined"
9497 case $cc_basename in
9498 ifort*) _lt_dar_can_shared=yes ;;
9499 *) _lt_dar_can_shared=$GCC ;;
9500 esac
9501 if test "$_lt_dar_can_shared" = "yes"; then
9502 output_verbose_link_cmd=func_echo_all
9503 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9504 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9505 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}"
9506 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}"
9507
9508 else
9509 ld_shlibs=no
9510 fi
9511
9512 ;;
9513
9514 dgux*)
9515 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9516 hardcode_libdir_flag_spec='-L$libdir'
9517 hardcode_shlibpath_var=no
9518 ;;
9519
9520 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9521 # support. Future versions do this automatically, but an explicit c++rt0.o
9522 # does not break anything, and helps significantly (at the cost of a little
9523 # extra space).
9524 freebsd2.2*)
9525 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9526 hardcode_libdir_flag_spec='-R$libdir'
9527 hardcode_direct=yes
9528 hardcode_shlibpath_var=no
9529 ;;
9530
9531 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9532 freebsd2.*)
9533 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9534 hardcode_direct=yes
9535 hardcode_minus_L=yes
9536 hardcode_shlibpath_var=no
9537 ;;
9538
9539 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9540 freebsd* | dragonfly*)
9541 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9542 hardcode_libdir_flag_spec='-R$libdir'
9543 hardcode_direct=yes
9544 hardcode_shlibpath_var=no
9545 ;;
9546
9547 hpux9*)
9548 if test "$GCC" = yes; then
9549 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'
9550 else
9551 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'
9552 fi
9553 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9554 hardcode_libdir_separator=:
9555 hardcode_direct=yes
9556
9557 # hardcode_minus_L: Not really in the search PATH,
9558 # but as the default location of the library.
9559 hardcode_minus_L=yes
9560 export_dynamic_flag_spec='${wl}-E'
9561 ;;
9562
9563 hpux10*)
9564 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9565 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9566 else
9567 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9568 fi
9569 if test "$with_gnu_ld" = no; then
9570 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9571 hardcode_libdir_separator=:
9572 hardcode_direct=yes
9573 hardcode_direct_absolute=yes
9574 export_dynamic_flag_spec='${wl}-E'
9575 # hardcode_minus_L: Not really in the search PATH,
9576 # but as the default location of the library.
9577 hardcode_minus_L=yes
9578 fi
9579 ;;
9580
9581 hpux11*)
9582 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9583 case $host_cpu in
9584 hppa*64*)
9585 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9586 ;;
9587 ia64*)
9588 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9589 ;;
9590 *)
9591 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9592 ;;
9593 esac
9594 else
9595 case $host_cpu in
9596 hppa*64*)
9597 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9598 ;;
9599 ia64*)
9600 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9601 ;;
9602 *)
9603
9604 # Older versions of the 11.00 compiler do not understand -b yet
9605 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9607 $as_echo_n "checking if $CC understands -b... " >&6; }
9608 if ${lt_cv_prog_compiler__b+:} false; then :
9609 $as_echo_n "(cached) " >&6
9610 else
9611 lt_cv_prog_compiler__b=no
9612 save_LDFLAGS="$LDFLAGS"
9613 LDFLAGS="$LDFLAGS -b"
9614 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9615 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9616 # The linker can only warn and ignore the option if not recognized
9617 # So say no if there are warnings
9618 if test -s conftest.err; then
9619 # Append any errors to the config.log.
9620 cat conftest.err 1>&5
9621 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9622 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9623 if diff conftest.exp conftest.er2 >/dev/null; then
9624 lt_cv_prog_compiler__b=yes
9625 fi
9626 else
9627 lt_cv_prog_compiler__b=yes
9628 fi
9629 fi
9630 $RM -r conftest*
9631 LDFLAGS="$save_LDFLAGS"
9632
9633 fi
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9635 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9636
9637 if test x"$lt_cv_prog_compiler__b" = xyes; then
9638 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9639 else
9640 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9641 fi
9642
9643 ;;
9644 esac
9645 fi
9646 if test "$with_gnu_ld" = no; then
9647 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9648 hardcode_libdir_separator=:
9649
9650 case $host_cpu in
9651 hppa*64*|ia64*)
9652 hardcode_direct=no
9653 hardcode_shlibpath_var=no
9654 ;;
9655 *)
9656 hardcode_direct=yes
9657 hardcode_direct_absolute=yes
9658 export_dynamic_flag_spec='${wl}-E'
9659
9660 # hardcode_minus_L: Not really in the search PATH,
9661 # but as the default location of the library.
9662 hardcode_minus_L=yes
9663 ;;
9664 esac
9665 fi
9666 ;;
9667
9668 irix5* | irix6* | nonstopux*)
9669 if test "$GCC" = yes; then
9670 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'
9671 # Try to use the -exported_symbol ld option, if it does not
9672 # work, assume that -exports_file does not work either and
9673 # implicitly export all symbols.
9674 # This should be the same for all languages, so no per-tag cache variable.
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9676 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9677 if ${lt_cv_irix_exported_symbol+:} false; then :
9678 $as_echo_n "(cached) " >&6
9679 else
9680 save_LDFLAGS="$LDFLAGS"
9681 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9683 /* end confdefs.h. */
9684 int foo (void) { return 0; }
9685 _ACEOF
9686 if ac_fn_c_try_link "$LINENO"; then :
9687 lt_cv_irix_exported_symbol=yes
9688 else
9689 lt_cv_irix_exported_symbol=no
9690 fi
9691 rm -f core conftest.err conftest.$ac_objext \
9692 conftest$ac_exeext conftest.$ac_ext
9693 LDFLAGS="$save_LDFLAGS"
9694 fi
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9696 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9697 if test "$lt_cv_irix_exported_symbol" = yes; then
9698 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'
9699 fi
9700 else
9701 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'
9702 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'
9703 fi
9704 archive_cmds_need_lc='no'
9705 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9706 hardcode_libdir_separator=:
9707 inherit_rpath=yes
9708 link_all_deplibs=yes
9709 ;;
9710
9711 netbsd*)
9712 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9713 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9714 else
9715 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9716 fi
9717 hardcode_libdir_flag_spec='-R$libdir'
9718 hardcode_direct=yes
9719 hardcode_shlibpath_var=no
9720 ;;
9721
9722 newsos6)
9723 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9724 hardcode_direct=yes
9725 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9726 hardcode_libdir_separator=:
9727 hardcode_shlibpath_var=no
9728 ;;
9729
9730 *nto* | *qnx*)
9731 ;;
9732
9733 openbsd*)
9734 if test -f /usr/libexec/ld.so; then
9735 hardcode_direct=yes
9736 hardcode_shlibpath_var=no
9737 hardcode_direct_absolute=yes
9738 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9739 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9740 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9741 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9742 export_dynamic_flag_spec='${wl}-E'
9743 else
9744 case $host_os in
9745 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9746 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9747 hardcode_libdir_flag_spec='-R$libdir'
9748 ;;
9749 *)
9750 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9751 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9752 ;;
9753 esac
9754 fi
9755 else
9756 ld_shlibs=no
9757 fi
9758 ;;
9759
9760 os2*)
9761 hardcode_libdir_flag_spec='-L$libdir'
9762 hardcode_minus_L=yes
9763 allow_undefined_flag=unsupported
9764 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'
9765 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9766 ;;
9767
9768 osf3*)
9769 if test "$GCC" = yes; then
9770 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9771 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'
9772 else
9773 allow_undefined_flag=' -expect_unresolved \*'
9774 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'
9775 fi
9776 archive_cmds_need_lc='no'
9777 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9778 hardcode_libdir_separator=:
9779 ;;
9780
9781 osf4* | osf5*) # as osf3* with the addition of -msym flag
9782 if test "$GCC" = yes; then
9783 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9784 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'
9785 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9786 else
9787 allow_undefined_flag=' -expect_unresolved \*'
9788 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'
9789 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~
9790 $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'
9791
9792 # Both c and cxx compiler support -rpath directly
9793 hardcode_libdir_flag_spec='-rpath $libdir'
9794 fi
9795 archive_cmds_need_lc='no'
9796 hardcode_libdir_separator=:
9797 ;;
9798
9799 solaris*)
9800 no_undefined_flag=' -z defs'
9801 if test "$GCC" = yes; then
9802 wlarc='${wl}'
9803 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9804 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9805 $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'
9806 else
9807 case `$CC -V 2>&1` in
9808 *"Compilers 5.0"*)
9809 wlarc=''
9810 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9811 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9812 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9813 ;;
9814 *)
9815 wlarc='${wl}'
9816 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9817 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9818 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9819 ;;
9820 esac
9821 fi
9822 hardcode_libdir_flag_spec='-R$libdir'
9823 hardcode_shlibpath_var=no
9824 case $host_os in
9825 solaris2.[0-5] | solaris2.[0-5].*) ;;
9826 *)
9827 # The compiler driver will combine and reorder linker options,
9828 # but understands `-z linker_flag'. GCC discards it without `$wl',
9829 # but is careful enough not to reorder.
9830 # Supported since Solaris 2.6 (maybe 2.5.1?)
9831 if test "$GCC" = yes; then
9832 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9833 else
9834 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9835 fi
9836 ;;
9837 esac
9838 link_all_deplibs=yes
9839 ;;
9840
9841 sunos4*)
9842 if test "x$host_vendor" = xsequent; then
9843 # Use $CC to link under sequent, because it throws in some extra .o
9844 # files that make .init and .fini sections work.
9845 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9846 else
9847 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9848 fi
9849 hardcode_libdir_flag_spec='-L$libdir'
9850 hardcode_direct=yes
9851 hardcode_minus_L=yes
9852 hardcode_shlibpath_var=no
9853 ;;
9854
9855 sysv4)
9856 case $host_vendor in
9857 sni)
9858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9859 hardcode_direct=yes # is this really true???
9860 ;;
9861 siemens)
9862 ## LD is ld it makes a PLAMLIB
9863 ## CC just makes a GrossModule.
9864 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9865 reload_cmds='$CC -r -o $output$reload_objs'
9866 hardcode_direct=no
9867 ;;
9868 motorola)
9869 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9870 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9871 ;;
9872 esac
9873 runpath_var='LD_RUN_PATH'
9874 hardcode_shlibpath_var=no
9875 ;;
9876
9877 sysv4.3*)
9878 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9879 hardcode_shlibpath_var=no
9880 export_dynamic_flag_spec='-Bexport'
9881 ;;
9882
9883 sysv4*MP*)
9884 if test -d /usr/nec; then
9885 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9886 hardcode_shlibpath_var=no
9887 runpath_var=LD_RUN_PATH
9888 hardcode_runpath_var=yes
9889 ld_shlibs=yes
9890 fi
9891 ;;
9892
9893 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9894 no_undefined_flag='${wl}-z,text'
9895 archive_cmds_need_lc=no
9896 hardcode_shlibpath_var=no
9897 runpath_var='LD_RUN_PATH'
9898
9899 if test "$GCC" = yes; then
9900 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9901 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9902 else
9903 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9904 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9905 fi
9906 ;;
9907
9908 sysv5* | sco3.2v5* | sco5v6*)
9909 # Note: We can NOT use -z defs as we might desire, because we do not
9910 # link with -lc, and that would cause any symbols used from libc to
9911 # always be unresolved, which means just about no library would
9912 # ever link correctly. If we're not using GNU ld we use -z text
9913 # though, which does catch some bad symbols but isn't as heavy-handed
9914 # as -z defs.
9915 no_undefined_flag='${wl}-z,text'
9916 allow_undefined_flag='${wl}-z,nodefs'
9917 archive_cmds_need_lc=no
9918 hardcode_shlibpath_var=no
9919 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9920 hardcode_libdir_separator=':'
9921 link_all_deplibs=yes
9922 export_dynamic_flag_spec='${wl}-Bexport'
9923 runpath_var='LD_RUN_PATH'
9924
9925 if test "$GCC" = yes; then
9926 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9927 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9928 else
9929 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9930 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9931 fi
9932 ;;
9933
9934 uts4*)
9935 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9936 hardcode_libdir_flag_spec='-L$libdir'
9937 hardcode_shlibpath_var=no
9938 ;;
9939
9940 *)
9941 ld_shlibs=no
9942 ;;
9943 esac
9944
9945 if test x$host_vendor = xsni; then
9946 case $host in
9947 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9948 export_dynamic_flag_spec='${wl}-Blargedynsym'
9949 ;;
9950 esac
9951 fi
9952 fi
9953
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9955 $as_echo "$ld_shlibs" >&6; }
9956 test "$ld_shlibs" = no && can_build_shared=no
9957
9958 with_gnu_ld=$with_gnu_ld
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974 #
9975 # Do we need to explicitly link libc?
9976 #
9977 case "x$archive_cmds_need_lc" in
9978 x|xyes)
9979 # Assume -lc should be added
9980 archive_cmds_need_lc=yes
9981
9982 if test "$enable_shared" = yes && test "$GCC" = yes; then
9983 case $archive_cmds in
9984 *'~'*)
9985 # FIXME: we may have to deal with multi-command sequences.
9986 ;;
9987 '$CC '*)
9988 # Test whether the compiler implicitly links with -lc since on some
9989 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9990 # to ld, don't add -lc before -lgcc.
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9992 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9993 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9994 $as_echo_n "(cached) " >&6
9995 else
9996 $RM conftest*
9997 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9998
9999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10000 (eval $ac_compile) 2>&5
10001 ac_status=$?
10002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10003 test $ac_status = 0; } 2>conftest.err; then
10004 soname=conftest
10005 lib=conftest
10006 libobjs=conftest.$ac_objext
10007 deplibs=
10008 wl=$lt_prog_compiler_wl
10009 pic_flag=$lt_prog_compiler_pic
10010 compiler_flags=-v
10011 linker_flags=-v
10012 verstring=
10013 output_objdir=.
10014 libname=conftest
10015 lt_save_allow_undefined_flag=$allow_undefined_flag
10016 allow_undefined_flag=
10017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10018 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10019 ac_status=$?
10020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10021 test $ac_status = 0; }
10022 then
10023 lt_cv_archive_cmds_need_lc=no
10024 else
10025 lt_cv_archive_cmds_need_lc=yes
10026 fi
10027 allow_undefined_flag=$lt_save_allow_undefined_flag
10028 else
10029 cat conftest.err 1>&5
10030 fi
10031 $RM conftest*
10032
10033 fi
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10035 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10036 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10037 ;;
10038 esac
10039 fi
10040 ;;
10041 esac
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10195 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10196
10197 if test "$GCC" = yes; then
10198 case $host_os in
10199 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10200 *) lt_awk_arg="/^libraries:/" ;;
10201 esac
10202 case $host_os in
10203 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10204 *) lt_sed_strip_eq="s,=/,/,g" ;;
10205 esac
10206 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10207 case $lt_search_path_spec in
10208 *\;*)
10209 # if the path contains ";" then we assume it to be the separator
10210 # otherwise default to the standard path separator (i.e. ":") - it is
10211 # assumed that no part of a normal pathname contains ";" but that should
10212 # okay in the real world where ";" in dirpaths is itself problematic.
10213 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10214 ;;
10215 *)
10216 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10217 ;;
10218 esac
10219 # Ok, now we have the path, separated by spaces, we can step through it
10220 # and add multilib dir if necessary.
10221 lt_tmp_lt_search_path_spec=
10222 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10223 for lt_sys_path in $lt_search_path_spec; do
10224 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10225 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10226 else
10227 test -d "$lt_sys_path" && \
10228 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10229 fi
10230 done
10231 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10232 BEGIN {RS=" "; FS="/|\n";} {
10233 lt_foo="";
10234 lt_count=0;
10235 for (lt_i = NF; lt_i > 0; lt_i--) {
10236 if ($lt_i != "" && $lt_i != ".") {
10237 if ($lt_i == "..") {
10238 lt_count++;
10239 } else {
10240 if (lt_count == 0) {
10241 lt_foo="/" $lt_i lt_foo;
10242 } else {
10243 lt_count--;
10244 }
10245 }
10246 }
10247 }
10248 if (lt_foo != "") { lt_freq[lt_foo]++; }
10249 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10250 }'`
10251 # AWK program above erroneously prepends '/' to C:/dos/paths
10252 # for these hosts.
10253 case $host_os in
10254 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10255 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10256 esac
10257 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10258 else
10259 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10260 fi
10261 library_names_spec=
10262 libname_spec='lib$name'
10263 soname_spec=
10264 shrext_cmds=".so"
10265 postinstall_cmds=
10266 postuninstall_cmds=
10267 finish_cmds=
10268 finish_eval=
10269 shlibpath_var=
10270 shlibpath_overrides_runpath=unknown
10271 version_type=none
10272 dynamic_linker="$host_os ld.so"
10273 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10274 need_lib_prefix=unknown
10275 hardcode_into_libs=no
10276
10277 # when you set need_version to no, make sure it does not cause -set_version
10278 # flags to be left without arguments
10279 need_version=unknown
10280
10281 case $host_os in
10282 aix3*)
10283 version_type=linux # correct to gnu/linux during the next big refactor
10284 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10285 shlibpath_var=LIBPATH
10286
10287 # AIX 3 has no versioning support, so we append a major version to the name.
10288 soname_spec='${libname}${release}${shared_ext}$major'
10289 ;;
10290
10291 aix[4-9]*)
10292 version_type=linux # correct to gnu/linux during the next big refactor
10293 need_lib_prefix=no
10294 need_version=no
10295 hardcode_into_libs=yes
10296 if test "$host_cpu" = ia64; then
10297 # AIX 5 supports IA64
10298 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10299 shlibpath_var=LD_LIBRARY_PATH
10300 else
10301 # With GCC up to 2.95.x, collect2 would create an import file
10302 # for dependence libraries. The import file would start with
10303 # the line `#! .'. This would cause the generated library to
10304 # depend on `.', always an invalid library. This was fixed in
10305 # development snapshots of GCC prior to 3.0.
10306 case $host_os in
10307 aix4 | aix4.[01] | aix4.[01].*)
10308 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10309 echo ' yes '
10310 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10311 :
10312 else
10313 can_build_shared=no
10314 fi
10315 ;;
10316 esac
10317 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10318 # soname into executable. Probably we can add versioning support to
10319 # collect2, so additional links can be useful in future.
10320 if test "$aix_use_runtimelinking" = yes; then
10321 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10322 # instead of lib<name>.a to let people know that these are not
10323 # typical AIX shared libraries.
10324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10325 else
10326 # We preserve .a as extension for shared libraries through AIX4.2
10327 # and later when we are not doing run time linking.
10328 library_names_spec='${libname}${release}.a $libname.a'
10329 soname_spec='${libname}${release}${shared_ext}$major'
10330 fi
10331 shlibpath_var=LIBPATH
10332 fi
10333 ;;
10334
10335 amigaos*)
10336 case $host_cpu in
10337 powerpc)
10338 # Since July 2007 AmigaOS4 officially supports .so libraries.
10339 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10341 ;;
10342 m68k)
10343 library_names_spec='$libname.ixlibrary $libname.a'
10344 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10345 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'
10346 ;;
10347 esac
10348 ;;
10349
10350 beos*)
10351 library_names_spec='${libname}${shared_ext}'
10352 dynamic_linker="$host_os ld.so"
10353 shlibpath_var=LIBRARY_PATH
10354 ;;
10355
10356 bsdi[45]*)
10357 version_type=linux # correct to gnu/linux during the next big refactor
10358 need_version=no
10359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10360 soname_spec='${libname}${release}${shared_ext}$major'
10361 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10362 shlibpath_var=LD_LIBRARY_PATH
10363 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10364 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10365 # the default ld.so.conf also contains /usr/contrib/lib and
10366 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10367 # libtool to hard-code these into programs
10368 ;;
10369
10370 cygwin* | mingw* | pw32* | cegcc*)
10371 version_type=windows
10372 shrext_cmds=".dll"
10373 need_version=no
10374 need_lib_prefix=no
10375
10376 case $GCC,$cc_basename in
10377 yes,*)
10378 # gcc
10379 library_names_spec='$libname.dll.a'
10380 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10381 postinstall_cmds='base_file=`basename \${file}`~
10382 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10383 dldir=$destdir/`dirname \$dlpath`~
10384 test -d \$dldir || mkdir -p \$dldir~
10385 $install_prog $dir/$dlname \$dldir/$dlname~
10386 chmod a+x \$dldir/$dlname~
10387 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10388 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10389 fi'
10390 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10391 dlpath=$dir/\$dldll~
10392 $RM \$dlpath'
10393 shlibpath_overrides_runpath=yes
10394
10395 case $host_os in
10396 cygwin*)
10397 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10398 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10399
10400 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10401 ;;
10402 mingw* | cegcc*)
10403 # MinGW DLLs use traditional 'lib' prefix
10404 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10405 ;;
10406 pw32*)
10407 # pw32 DLLs use 'pw' prefix rather than 'lib'
10408 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10409 ;;
10410 esac
10411 dynamic_linker='Win32 ld.exe'
10412 ;;
10413
10414 *,cl*)
10415 # Native MSVC
10416 libname_spec='$name'
10417 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10418 library_names_spec='${libname}.dll.lib'
10419
10420 case $build_os in
10421 mingw*)
10422 sys_lib_search_path_spec=
10423 lt_save_ifs=$IFS
10424 IFS=';'
10425 for lt_path in $LIB
10426 do
10427 IFS=$lt_save_ifs
10428 # Let DOS variable expansion print the short 8.3 style file name.
10429 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10430 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10431 done
10432 IFS=$lt_save_ifs
10433 # Convert to MSYS style.
10434 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10435 ;;
10436 cygwin*)
10437 # Convert to unix form, then to dos form, then back to unix form
10438 # but this time dos style (no spaces!) so that the unix form looks
10439 # like /cygdrive/c/PROGRA~1:/cygdr...
10440 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10441 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10442 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10443 ;;
10444 *)
10445 sys_lib_search_path_spec="$LIB"
10446 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10447 # It is most probably a Windows format PATH.
10448 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10449 else
10450 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10451 fi
10452 # FIXME: find the short name or the path components, as spaces are
10453 # common. (e.g. "Program Files" -> "PROGRA~1")
10454 ;;
10455 esac
10456
10457 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10458 postinstall_cmds='base_file=`basename \${file}`~
10459 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10460 dldir=$destdir/`dirname \$dlpath`~
10461 test -d \$dldir || mkdir -p \$dldir~
10462 $install_prog $dir/$dlname \$dldir/$dlname'
10463 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10464 dlpath=$dir/\$dldll~
10465 $RM \$dlpath'
10466 shlibpath_overrides_runpath=yes
10467 dynamic_linker='Win32 link.exe'
10468 ;;
10469
10470 *)
10471 # Assume MSVC wrapper
10472 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10473 dynamic_linker='Win32 ld.exe'
10474 ;;
10475 esac
10476 # FIXME: first we should search . and the directory the executable is in
10477 shlibpath_var=PATH
10478 ;;
10479
10480 darwin* | rhapsody*)
10481 dynamic_linker="$host_os dyld"
10482 version_type=darwin
10483 need_lib_prefix=no
10484 need_version=no
10485 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10486 soname_spec='${libname}${release}${major}$shared_ext'
10487 shlibpath_overrides_runpath=yes
10488 shlibpath_var=DYLD_LIBRARY_PATH
10489 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10490
10491 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10492 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10493 ;;
10494
10495 dgux*)
10496 version_type=linux # correct to gnu/linux during the next big refactor
10497 need_lib_prefix=no
10498 need_version=no
10499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10500 soname_spec='${libname}${release}${shared_ext}$major'
10501 shlibpath_var=LD_LIBRARY_PATH
10502 ;;
10503
10504 freebsd* | dragonfly*)
10505 # DragonFly does not have aout. When/if they implement a new
10506 # versioning mechanism, adjust this.
10507 if test -x /usr/bin/objformat; then
10508 objformat=`/usr/bin/objformat`
10509 else
10510 case $host_os in
10511 freebsd[23].*) objformat=aout ;;
10512 *) objformat=elf ;;
10513 esac
10514 fi
10515 version_type=freebsd-$objformat
10516 case $version_type in
10517 freebsd-elf*)
10518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10519 need_version=no
10520 need_lib_prefix=no
10521 ;;
10522 freebsd-*)
10523 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10524 need_version=yes
10525 ;;
10526 esac
10527 shlibpath_var=LD_LIBRARY_PATH
10528 case $host_os in
10529 freebsd2.*)
10530 shlibpath_overrides_runpath=yes
10531 ;;
10532 freebsd3.[01]* | freebsdelf3.[01]*)
10533 shlibpath_overrides_runpath=yes
10534 hardcode_into_libs=yes
10535 ;;
10536 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10537 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10538 shlibpath_overrides_runpath=no
10539 hardcode_into_libs=yes
10540 ;;
10541 *) # from 4.6 on, and DragonFly
10542 shlibpath_overrides_runpath=yes
10543 hardcode_into_libs=yes
10544 ;;
10545 esac
10546 ;;
10547
10548 gnu*)
10549 version_type=linux # correct to gnu/linux during the next big refactor
10550 need_lib_prefix=no
10551 need_version=no
10552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10553 soname_spec='${libname}${release}${shared_ext}$major'
10554 shlibpath_var=LD_LIBRARY_PATH
10555 shlibpath_overrides_runpath=no
10556 hardcode_into_libs=yes
10557 ;;
10558
10559 haiku*)
10560 version_type=linux # correct to gnu/linux during the next big refactor
10561 need_lib_prefix=no
10562 need_version=no
10563 dynamic_linker="$host_os runtime_loader"
10564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10565 soname_spec='${libname}${release}${shared_ext}$major'
10566 shlibpath_var=LIBRARY_PATH
10567 shlibpath_overrides_runpath=yes
10568 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10569 hardcode_into_libs=yes
10570 ;;
10571
10572 hpux9* | hpux10* | hpux11*)
10573 # Give a soname corresponding to the major version so that dld.sl refuses to
10574 # link against other versions.
10575 version_type=sunos
10576 need_lib_prefix=no
10577 need_version=no
10578 case $host_cpu in
10579 ia64*)
10580 shrext_cmds='.so'
10581 hardcode_into_libs=yes
10582 dynamic_linker="$host_os dld.so"
10583 shlibpath_var=LD_LIBRARY_PATH
10584 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10586 soname_spec='${libname}${release}${shared_ext}$major'
10587 if test "X$HPUX_IA64_MODE" = X32; then
10588 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10589 else
10590 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10591 fi
10592 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10593 ;;
10594 hppa*64*)
10595 shrext_cmds='.sl'
10596 hardcode_into_libs=yes
10597 dynamic_linker="$host_os dld.sl"
10598 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10599 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10601 soname_spec='${libname}${release}${shared_ext}$major'
10602 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10603 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10604 ;;
10605 *)
10606 shrext_cmds='.sl'
10607 dynamic_linker="$host_os dld.sl"
10608 shlibpath_var=SHLIB_PATH
10609 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10611 soname_spec='${libname}${release}${shared_ext}$major'
10612 ;;
10613 esac
10614 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10615 postinstall_cmds='chmod 555 $lib'
10616 # or fails outright, so override atomically:
10617 install_override_mode=555
10618 ;;
10619
10620 interix[3-9]*)
10621 version_type=linux # correct to gnu/linux during the next big refactor
10622 need_lib_prefix=no
10623 need_version=no
10624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10625 soname_spec='${libname}${release}${shared_ext}$major'
10626 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10627 shlibpath_var=LD_LIBRARY_PATH
10628 shlibpath_overrides_runpath=no
10629 hardcode_into_libs=yes
10630 ;;
10631
10632 irix5* | irix6* | nonstopux*)
10633 case $host_os in
10634 nonstopux*) version_type=nonstopux ;;
10635 *)
10636 if test "$lt_cv_prog_gnu_ld" = yes; then
10637 version_type=linux # correct to gnu/linux during the next big refactor
10638 else
10639 version_type=irix
10640 fi ;;
10641 esac
10642 need_lib_prefix=no
10643 need_version=no
10644 soname_spec='${libname}${release}${shared_ext}$major'
10645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10646 case $host_os in
10647 irix5* | nonstopux*)
10648 libsuff= shlibsuff=
10649 ;;
10650 *)
10651 case $LD in # libtool.m4 will add one of these switches to LD
10652 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10653 libsuff= shlibsuff= libmagic=32-bit;;
10654 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10655 libsuff=32 shlibsuff=N32 libmagic=N32;;
10656 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10657 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10658 *) libsuff= shlibsuff= libmagic=never-match;;
10659 esac
10660 ;;
10661 esac
10662 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10663 shlibpath_overrides_runpath=no
10664 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10665 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10666 hardcode_into_libs=yes
10667 ;;
10668
10669 # No shared lib support for Linux oldld, aout, or coff.
10670 linux*oldld* | linux*aout* | linux*coff*)
10671 dynamic_linker=no
10672 ;;
10673
10674 # This must be glibc/ELF.
10675 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10676 version_type=linux # correct to gnu/linux during the next big refactor
10677 need_lib_prefix=no
10678 need_version=no
10679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10680 soname_spec='${libname}${release}${shared_ext}$major'
10681 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10682 shlibpath_var=LD_LIBRARY_PATH
10683 shlibpath_overrides_runpath=no
10684
10685 # Some binutils ld are patched to set DT_RUNPATH
10686 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10687 $as_echo_n "(cached) " >&6
10688 else
10689 lt_cv_shlibpath_overrides_runpath=no
10690 save_LDFLAGS=$LDFLAGS
10691 save_libdir=$libdir
10692 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10693 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10695 /* end confdefs.h. */
10696
10697 int
10698 main ()
10699 {
10700
10701 ;
10702 return 0;
10703 }
10704 _ACEOF
10705 if ac_fn_c_try_link "$LINENO"; then :
10706 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10707 lt_cv_shlibpath_overrides_runpath=yes
10708 fi
10709 fi
10710 rm -f core conftest.err conftest.$ac_objext \
10711 conftest$ac_exeext conftest.$ac_ext
10712 LDFLAGS=$save_LDFLAGS
10713 libdir=$save_libdir
10714
10715 fi
10716
10717 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10718
10719 # This implies no fast_install, which is unacceptable.
10720 # Some rework will be needed to allow for fast_install
10721 # before this can be enabled.
10722 hardcode_into_libs=yes
10723
10724 # Append ld.so.conf contents to the search path
10725 if test -f /etc/ld.so.conf; then
10726 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' ' '`
10727 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10728 fi
10729
10730 # We used to test for /lib/ld.so.1 and disable shared libraries on
10731 # powerpc, because MkLinux only supported shared libraries with the
10732 # GNU dynamic linker. Since this was broken with cross compilers,
10733 # most powerpc-linux boxes support dynamic linking these days and
10734 # people can always --disable-shared, the test was removed, and we
10735 # assume the GNU/Linux dynamic linker is in use.
10736 dynamic_linker='GNU/Linux ld.so'
10737 ;;
10738
10739 netbsd*)
10740 version_type=sunos
10741 need_lib_prefix=no
10742 need_version=no
10743 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10745 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10746 dynamic_linker='NetBSD (a.out) ld.so'
10747 else
10748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10749 soname_spec='${libname}${release}${shared_ext}$major'
10750 dynamic_linker='NetBSD ld.elf_so'
10751 fi
10752 shlibpath_var=LD_LIBRARY_PATH
10753 shlibpath_overrides_runpath=yes
10754 hardcode_into_libs=yes
10755 ;;
10756
10757 newsos6)
10758 version_type=linux # correct to gnu/linux during the next big refactor
10759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10760 shlibpath_var=LD_LIBRARY_PATH
10761 shlibpath_overrides_runpath=yes
10762 ;;
10763
10764 *nto* | *qnx*)
10765 version_type=qnx
10766 need_lib_prefix=no
10767 need_version=no
10768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10769 soname_spec='${libname}${release}${shared_ext}$major'
10770 shlibpath_var=LD_LIBRARY_PATH
10771 shlibpath_overrides_runpath=no
10772 hardcode_into_libs=yes
10773 dynamic_linker='ldqnx.so'
10774 ;;
10775
10776 openbsd*)
10777 version_type=sunos
10778 sys_lib_dlsearch_path_spec="/usr/lib"
10779 need_lib_prefix=no
10780 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10781 case $host_os in
10782 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10783 *) need_version=no ;;
10784 esac
10785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10786 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10787 shlibpath_var=LD_LIBRARY_PATH
10788 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10789 case $host_os in
10790 openbsd2.[89] | openbsd2.[89].*)
10791 shlibpath_overrides_runpath=no
10792 ;;
10793 *)
10794 shlibpath_overrides_runpath=yes
10795 ;;
10796 esac
10797 else
10798 shlibpath_overrides_runpath=yes
10799 fi
10800 ;;
10801
10802 os2*)
10803 libname_spec='$name'
10804 shrext_cmds=".dll"
10805 need_lib_prefix=no
10806 library_names_spec='$libname${shared_ext} $libname.a'
10807 dynamic_linker='OS/2 ld.exe'
10808 shlibpath_var=LIBPATH
10809 ;;
10810
10811 osf3* | osf4* | osf5*)
10812 version_type=osf
10813 need_lib_prefix=no
10814 need_version=no
10815 soname_spec='${libname}${release}${shared_ext}$major'
10816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10817 shlibpath_var=LD_LIBRARY_PATH
10818 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10819 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10820 ;;
10821
10822 rdos*)
10823 dynamic_linker=no
10824 ;;
10825
10826 solaris*)
10827 version_type=linux # correct to gnu/linux during the next big refactor
10828 need_lib_prefix=no
10829 need_version=no
10830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10831 soname_spec='${libname}${release}${shared_ext}$major'
10832 shlibpath_var=LD_LIBRARY_PATH
10833 shlibpath_overrides_runpath=yes
10834 hardcode_into_libs=yes
10835 # ldd complains unless libraries are executable
10836 postinstall_cmds='chmod +x $lib'
10837 ;;
10838
10839 sunos4*)
10840 version_type=sunos
10841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10842 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10843 shlibpath_var=LD_LIBRARY_PATH
10844 shlibpath_overrides_runpath=yes
10845 if test "$with_gnu_ld" = yes; then
10846 need_lib_prefix=no
10847 fi
10848 need_version=yes
10849 ;;
10850
10851 sysv4 | sysv4.3*)
10852 version_type=linux # correct to gnu/linux during the next big refactor
10853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10854 soname_spec='${libname}${release}${shared_ext}$major'
10855 shlibpath_var=LD_LIBRARY_PATH
10856 case $host_vendor in
10857 sni)
10858 shlibpath_overrides_runpath=no
10859 need_lib_prefix=no
10860 runpath_var=LD_RUN_PATH
10861 ;;
10862 siemens)
10863 need_lib_prefix=no
10864 ;;
10865 motorola)
10866 need_lib_prefix=no
10867 need_version=no
10868 shlibpath_overrides_runpath=no
10869 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10870 ;;
10871 esac
10872 ;;
10873
10874 sysv4*MP*)
10875 if test -d /usr/nec ;then
10876 version_type=linux # correct to gnu/linux during the next big refactor
10877 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10878 soname_spec='$libname${shared_ext}.$major'
10879 shlibpath_var=LD_LIBRARY_PATH
10880 fi
10881 ;;
10882
10883 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10884 version_type=freebsd-elf
10885 need_lib_prefix=no
10886 need_version=no
10887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10888 soname_spec='${libname}${release}${shared_ext}$major'
10889 shlibpath_var=LD_LIBRARY_PATH
10890 shlibpath_overrides_runpath=yes
10891 hardcode_into_libs=yes
10892 if test "$with_gnu_ld" = yes; then
10893 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10894 else
10895 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10896 case $host_os in
10897 sco3.2v5*)
10898 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10899 ;;
10900 esac
10901 fi
10902 sys_lib_dlsearch_path_spec='/usr/lib'
10903 ;;
10904
10905 tpf*)
10906 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10907 version_type=linux # correct to gnu/linux during the next big refactor
10908 need_lib_prefix=no
10909 need_version=no
10910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10911 shlibpath_var=LD_LIBRARY_PATH
10912 shlibpath_overrides_runpath=no
10913 hardcode_into_libs=yes
10914 ;;
10915
10916 uts4*)
10917 version_type=linux # correct to gnu/linux during the next big refactor
10918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10919 soname_spec='${libname}${release}${shared_ext}$major'
10920 shlibpath_var=LD_LIBRARY_PATH
10921 ;;
10922
10923 *)
10924 dynamic_linker=no
10925 ;;
10926 esac
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10928 $as_echo "$dynamic_linker" >&6; }
10929 test "$dynamic_linker" = no && can_build_shared=no
10930
10931 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10932 if test "$GCC" = yes; then
10933 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10934 fi
10935
10936 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10937 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10938 fi
10939 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10940 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10941 fi
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11035 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11036 hardcode_action=
11037 if test -n "$hardcode_libdir_flag_spec" ||
11038 test -n "$runpath_var" ||
11039 test "X$hardcode_automatic" = "Xyes" ; then
11040
11041 # We can hardcode non-existent directories.
11042 if test "$hardcode_direct" != no &&
11043 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11044 # have to relink, otherwise we might link with an installed library
11045 # when we should be linking with a yet-to-be-installed one
11046 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11047 test "$hardcode_minus_L" != no; then
11048 # Linking always hardcodes the temporary library directory.
11049 hardcode_action=relink
11050 else
11051 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11052 hardcode_action=immediate
11053 fi
11054 else
11055 # We cannot hardcode anything, or else we can only hardcode existing
11056 # directories.
11057 hardcode_action=unsupported
11058 fi
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11060 $as_echo "$hardcode_action" >&6; }
11061
11062 if test "$hardcode_action" = relink ||
11063 test "$inherit_rpath" = yes; then
11064 # Fast installation is not supported
11065 enable_fast_install=no
11066 elif test "$shlibpath_overrides_runpath" = yes ||
11067 test "$enable_shared" = no; then
11068 # Fast installation is not necessary
11069 enable_fast_install=needless
11070 fi
11071
11072
11073
11074
11075
11076
11077 if test "x$enable_dlopen" != xyes; then
11078 enable_dlopen=unknown
11079 enable_dlopen_self=unknown
11080 enable_dlopen_self_static=unknown
11081 else
11082 lt_cv_dlopen=no
11083 lt_cv_dlopen_libs=
11084
11085 case $host_os in
11086 beos*)
11087 lt_cv_dlopen="load_add_on"
11088 lt_cv_dlopen_libs=
11089 lt_cv_dlopen_self=yes
11090 ;;
11091
11092 mingw* | pw32* | cegcc*)
11093 lt_cv_dlopen="LoadLibrary"
11094 lt_cv_dlopen_libs=
11095 ;;
11096
11097 cygwin*)
11098 lt_cv_dlopen="dlopen"
11099 lt_cv_dlopen_libs=
11100 ;;
11101
11102 darwin*)
11103 # if libdl is installed we need to link against it
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11105 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11106 if ${ac_cv_lib_dl_dlopen+:} false; then :
11107 $as_echo_n "(cached) " >&6
11108 else
11109 ac_check_lib_save_LIBS=$LIBS
11110 LIBS="-ldl $LIBS"
11111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11112 /* end confdefs.h. */
11113
11114 /* Override any GCC internal prototype to avoid an error.
11115 Use char because int might match the return type of a GCC
11116 builtin and then its argument prototype would still apply. */
11117 #ifdef __cplusplus
11118 extern "C"
11119 #endif
11120 char dlopen ();
11121 int
11122 main ()
11123 {
11124 return dlopen ();
11125 ;
11126 return 0;
11127 }
11128 _ACEOF
11129 if ac_fn_c_try_link "$LINENO"; then :
11130 ac_cv_lib_dl_dlopen=yes
11131 else
11132 ac_cv_lib_dl_dlopen=no
11133 fi
11134 rm -f core conftest.err conftest.$ac_objext \
11135 conftest$ac_exeext conftest.$ac_ext
11136 LIBS=$ac_check_lib_save_LIBS
11137 fi
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11139 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11140 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11141 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11142 else
11143
11144 lt_cv_dlopen="dyld"
11145 lt_cv_dlopen_libs=
11146 lt_cv_dlopen_self=yes
11147
11148 fi
11149
11150 ;;
11151
11152 *)
11153 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11154 if test "x$ac_cv_func_shl_load" = xyes; then :
11155 lt_cv_dlopen="shl_load"
11156 else
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11158 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11159 if ${ac_cv_lib_dld_shl_load+:} false; then :
11160 $as_echo_n "(cached) " >&6
11161 else
11162 ac_check_lib_save_LIBS=$LIBS
11163 LIBS="-ldld $LIBS"
11164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11165 /* end confdefs.h. */
11166
11167 /* Override any GCC internal prototype to avoid an error.
11168 Use char because int might match the return type of a GCC
11169 builtin and then its argument prototype would still apply. */
11170 #ifdef __cplusplus
11171 extern "C"
11172 #endif
11173 char shl_load ();
11174 int
11175 main ()
11176 {
11177 return shl_load ();
11178 ;
11179 return 0;
11180 }
11181 _ACEOF
11182 if ac_fn_c_try_link "$LINENO"; then :
11183 ac_cv_lib_dld_shl_load=yes
11184 else
11185 ac_cv_lib_dld_shl_load=no
11186 fi
11187 rm -f core conftest.err conftest.$ac_objext \
11188 conftest$ac_exeext conftest.$ac_ext
11189 LIBS=$ac_check_lib_save_LIBS
11190 fi
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11192 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11193 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11194 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11195 else
11196 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11197 if test "x$ac_cv_func_dlopen" = xyes; then :
11198 lt_cv_dlopen="dlopen"
11199 else
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11201 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11202 if ${ac_cv_lib_dl_dlopen+:} false; then :
11203 $as_echo_n "(cached) " >&6
11204 else
11205 ac_check_lib_save_LIBS=$LIBS
11206 LIBS="-ldl $LIBS"
11207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11208 /* end confdefs.h. */
11209
11210 /* Override any GCC internal prototype to avoid an error.
11211 Use char because int might match the return type of a GCC
11212 builtin and then its argument prototype would still apply. */
11213 #ifdef __cplusplus
11214 extern "C"
11215 #endif
11216 char dlopen ();
11217 int
11218 main ()
11219 {
11220 return dlopen ();
11221 ;
11222 return 0;
11223 }
11224 _ACEOF
11225 if ac_fn_c_try_link "$LINENO"; then :
11226 ac_cv_lib_dl_dlopen=yes
11227 else
11228 ac_cv_lib_dl_dlopen=no
11229 fi
11230 rm -f core conftest.err conftest.$ac_objext \
11231 conftest$ac_exeext conftest.$ac_ext
11232 LIBS=$ac_check_lib_save_LIBS
11233 fi
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11235 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11236 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11237 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11238 else
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11240 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11241 if ${ac_cv_lib_svld_dlopen+:} false; then :
11242 $as_echo_n "(cached) " >&6
11243 else
11244 ac_check_lib_save_LIBS=$LIBS
11245 LIBS="-lsvld $LIBS"
11246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11247 /* end confdefs.h. */
11248
11249 /* Override any GCC internal prototype to avoid an error.
11250 Use char because int might match the return type of a GCC
11251 builtin and then its argument prototype would still apply. */
11252 #ifdef __cplusplus
11253 extern "C"
11254 #endif
11255 char dlopen ();
11256 int
11257 main ()
11258 {
11259 return dlopen ();
11260 ;
11261 return 0;
11262 }
11263 _ACEOF
11264 if ac_fn_c_try_link "$LINENO"; then :
11265 ac_cv_lib_svld_dlopen=yes
11266 else
11267 ac_cv_lib_svld_dlopen=no
11268 fi
11269 rm -f core conftest.err conftest.$ac_objext \
11270 conftest$ac_exeext conftest.$ac_ext
11271 LIBS=$ac_check_lib_save_LIBS
11272 fi
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11274 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11275 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11276 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11277 else
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11279 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11280 if ${ac_cv_lib_dld_dld_link+:} false; then :
11281 $as_echo_n "(cached) " >&6
11282 else
11283 ac_check_lib_save_LIBS=$LIBS
11284 LIBS="-ldld $LIBS"
11285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11286 /* end confdefs.h. */
11287
11288 /* Override any GCC internal prototype to avoid an error.
11289 Use char because int might match the return type of a GCC
11290 builtin and then its argument prototype would still apply. */
11291 #ifdef __cplusplus
11292 extern "C"
11293 #endif
11294 char dld_link ();
11295 int
11296 main ()
11297 {
11298 return dld_link ();
11299 ;
11300 return 0;
11301 }
11302 _ACEOF
11303 if ac_fn_c_try_link "$LINENO"; then :
11304 ac_cv_lib_dld_dld_link=yes
11305 else
11306 ac_cv_lib_dld_dld_link=no
11307 fi
11308 rm -f core conftest.err conftest.$ac_objext \
11309 conftest$ac_exeext conftest.$ac_ext
11310 LIBS=$ac_check_lib_save_LIBS
11311 fi
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11313 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11314 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11315 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11316 fi
11317
11318
11319 fi
11320
11321
11322 fi
11323
11324
11325 fi
11326
11327
11328 fi
11329
11330
11331 fi
11332
11333 ;;
11334 esac
11335
11336 if test "x$lt_cv_dlopen" != xno; then
11337 enable_dlopen=yes
11338 else
11339 enable_dlopen=no
11340 fi
11341
11342 case $lt_cv_dlopen in
11343 dlopen)
11344 save_CPPFLAGS="$CPPFLAGS"
11345 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11346
11347 save_LDFLAGS="$LDFLAGS"
11348 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11349
11350 save_LIBS="$LIBS"
11351 LIBS="$lt_cv_dlopen_libs $LIBS"
11352
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11354 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11355 if ${lt_cv_dlopen_self+:} false; then :
11356 $as_echo_n "(cached) " >&6
11357 else
11358 if test "$cross_compiling" = yes; then :
11359 lt_cv_dlopen_self=cross
11360 else
11361 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11362 lt_status=$lt_dlunknown
11363 cat > conftest.$ac_ext <<_LT_EOF
11364 #line $LINENO "configure"
11365 #include "confdefs.h"
11366
11367 #if HAVE_DLFCN_H
11368 #include <dlfcn.h>
11369 #endif
11370
11371 #include <stdio.h>
11372
11373 #ifdef RTLD_GLOBAL
11374 # define LT_DLGLOBAL RTLD_GLOBAL
11375 #else
11376 # ifdef DL_GLOBAL
11377 # define LT_DLGLOBAL DL_GLOBAL
11378 # else
11379 # define LT_DLGLOBAL 0
11380 # endif
11381 #endif
11382
11383 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11384 find out it does not work in some platform. */
11385 #ifndef LT_DLLAZY_OR_NOW
11386 # ifdef RTLD_LAZY
11387 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11388 # else
11389 # ifdef DL_LAZY
11390 # define LT_DLLAZY_OR_NOW DL_LAZY
11391 # else
11392 # ifdef RTLD_NOW
11393 # define LT_DLLAZY_OR_NOW RTLD_NOW
11394 # else
11395 # ifdef DL_NOW
11396 # define LT_DLLAZY_OR_NOW DL_NOW
11397 # else
11398 # define LT_DLLAZY_OR_NOW 0
11399 # endif
11400 # endif
11401 # endif
11402 # endif
11403 #endif
11404
11405 /* When -fvisbility=hidden is used, assume the code has been annotated
11406 correspondingly for the symbols needed. */
11407 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11408 int fnord () __attribute__((visibility("default")));
11409 #endif
11410
11411 int fnord () { return 42; }
11412 int main ()
11413 {
11414 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11415 int status = $lt_dlunknown;
11416
11417 if (self)
11418 {
11419 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11420 else
11421 {
11422 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11423 else puts (dlerror ());
11424 }
11425 /* dlclose (self); */
11426 }
11427 else
11428 puts (dlerror ());
11429
11430 return status;
11431 }
11432 _LT_EOF
11433 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11434 (eval $ac_link) 2>&5
11435 ac_status=$?
11436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11437 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11438 (./conftest; exit; ) >&5 2>/dev/null
11439 lt_status=$?
11440 case x$lt_status in
11441 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11442 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11443 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11444 esac
11445 else :
11446 # compilation failed
11447 lt_cv_dlopen_self=no
11448 fi
11449 fi
11450 rm -fr conftest*
11451
11452
11453 fi
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11455 $as_echo "$lt_cv_dlopen_self" >&6; }
11456
11457 if test "x$lt_cv_dlopen_self" = xyes; then
11458 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11460 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11461 if ${lt_cv_dlopen_self_static+:} false; then :
11462 $as_echo_n "(cached) " >&6
11463 else
11464 if test "$cross_compiling" = yes; then :
11465 lt_cv_dlopen_self_static=cross
11466 else
11467 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11468 lt_status=$lt_dlunknown
11469 cat > conftest.$ac_ext <<_LT_EOF
11470 #line $LINENO "configure"
11471 #include "confdefs.h"
11472
11473 #if HAVE_DLFCN_H
11474 #include <dlfcn.h>
11475 #endif
11476
11477 #include <stdio.h>
11478
11479 #ifdef RTLD_GLOBAL
11480 # define LT_DLGLOBAL RTLD_GLOBAL
11481 #else
11482 # ifdef DL_GLOBAL
11483 # define LT_DLGLOBAL DL_GLOBAL
11484 # else
11485 # define LT_DLGLOBAL 0
11486 # endif
11487 #endif
11488
11489 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11490 find out it does not work in some platform. */
11491 #ifndef LT_DLLAZY_OR_NOW
11492 # ifdef RTLD_LAZY
11493 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11494 # else
11495 # ifdef DL_LAZY
11496 # define LT_DLLAZY_OR_NOW DL_LAZY
11497 # else
11498 # ifdef RTLD_NOW
11499 # define LT_DLLAZY_OR_NOW RTLD_NOW
11500 # else
11501 # ifdef DL_NOW
11502 # define LT_DLLAZY_OR_NOW DL_NOW
11503 # else
11504 # define LT_DLLAZY_OR_NOW 0
11505 # endif
11506 # endif
11507 # endif
11508 # endif
11509 #endif
11510
11511 /* When -fvisbility=hidden is used, assume the code has been annotated
11512 correspondingly for the symbols needed. */
11513 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11514 int fnord () __attribute__((visibility("default")));
11515 #endif
11516
11517 int fnord () { return 42; }
11518 int main ()
11519 {
11520 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11521 int status = $lt_dlunknown;
11522
11523 if (self)
11524 {
11525 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11526 else
11527 {
11528 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11529 else puts (dlerror ());
11530 }
11531 /* dlclose (self); */
11532 }
11533 else
11534 puts (dlerror ());
11535
11536 return status;
11537 }
11538 _LT_EOF
11539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11540 (eval $ac_link) 2>&5
11541 ac_status=$?
11542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11543 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11544 (./conftest; exit; ) >&5 2>/dev/null
11545 lt_status=$?
11546 case x$lt_status in
11547 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11548 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11549 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11550 esac
11551 else :
11552 # compilation failed
11553 lt_cv_dlopen_self_static=no
11554 fi
11555 fi
11556 rm -fr conftest*
11557
11558
11559 fi
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11561 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11562 fi
11563
11564 CPPFLAGS="$save_CPPFLAGS"
11565 LDFLAGS="$save_LDFLAGS"
11566 LIBS="$save_LIBS"
11567 ;;
11568 esac
11569
11570 case $lt_cv_dlopen_self in
11571 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11572 *) enable_dlopen_self=unknown ;;
11573 esac
11574
11575 case $lt_cv_dlopen_self_static in
11576 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11577 *) enable_dlopen_self_static=unknown ;;
11578 esac
11579 fi
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597 striplib=
11598 old_striplib=
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11600 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11601 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11602 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11603 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11605 $as_echo "yes" >&6; }
11606 else
11607 # FIXME - insert some real tests, host_os isn't really good enough
11608 case $host_os in
11609 darwin*)
11610 if test -n "$STRIP" ; then
11611 striplib="$STRIP -x"
11612 old_striplib="$STRIP -S"
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11614 $as_echo "yes" >&6; }
11615 else
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11617 $as_echo "no" >&6; }
11618 fi
11619 ;;
11620 *)
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11622 $as_echo "no" >&6; }
11623 ;;
11624 esac
11625 fi
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638 # Report which library types will actually be built
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11640 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11642 $as_echo "$can_build_shared" >&6; }
11643
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11645 $as_echo_n "checking whether to build shared libraries... " >&6; }
11646 test "$can_build_shared" = "no" && enable_shared=no
11647
11648 # On AIX, shared libraries and static libraries use the same namespace, and
11649 # are all built from PIC.
11650 case $host_os in
11651 aix3*)
11652 test "$enable_shared" = yes && enable_static=no
11653 if test -n "$RANLIB"; then
11654 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11655 postinstall_cmds='$RANLIB $lib'
11656 fi
11657 ;;
11658
11659 aix[4-9]*)
11660 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11661 test "$enable_shared" = yes && enable_static=no
11662 fi
11663 ;;
11664 esac
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11666 $as_echo "$enable_shared" >&6; }
11667
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11669 $as_echo_n "checking whether to build static libraries... " >&6; }
11670 # Make sure either enable_shared or enable_static is yes.
11671 test "$enable_shared" = yes || enable_static=yes
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11673 $as_echo "$enable_static" >&6; }
11674
11675
11676
11677
11678 fi
11679 ac_ext=c
11680 ac_cpp='$CPP $CPPFLAGS'
11681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11684
11685 CC="$lt_save_CC"
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701 ac_config_commands="$ac_config_commands libtool"
11702
11703
11704
11705
11706 # Only expand once:
11707
11708
11709
11710 # Require X.Org macros 1.8 or later
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11723 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11724 if ${ac_cv_prog_cc_c99+:} false; then :
11725 $as_echo_n "(cached) " >&6
11726 else
11727 ac_cv_prog_cc_c99=no
11728 ac_save_CC=$CC
11729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11730 /* end confdefs.h. */
11731 #include <stdarg.h>
11732 #include <stdbool.h>
11733 #include <stdlib.h>
11734 #include <wchar.h>
11735 #include <stdio.h>
11736
11737 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11738 #define debug(...) fprintf (stderr, __VA_ARGS__)
11739 #define showlist(...) puts (#__VA_ARGS__)
11740 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11741 static void
11742 test_varargs_macros (void)
11743 {
11744 int x = 1234;
11745 int y = 5678;
11746 debug ("Flag");
11747 debug ("X = %d\n", x);
11748 showlist (The first, second, and third items.);
11749 report (x>y, "x is %d but y is %d", x, y);
11750 }
11751
11752 // Check long long types.
11753 #define BIG64 18446744073709551615ull
11754 #define BIG32 4294967295ul
11755 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11756 #if !BIG_OK
11757 your preprocessor is broken;
11758 #endif
11759 #if BIG_OK
11760 #else
11761 your preprocessor is broken;
11762 #endif
11763 static long long int bignum = -9223372036854775807LL;
11764 static unsigned long long int ubignum = BIG64;
11765
11766 struct incomplete_array
11767 {
11768 int datasize;
11769 double data[];
11770 };
11771
11772 struct named_init {
11773 int number;
11774 const wchar_t *name;
11775 double average;
11776 };
11777
11778 typedef const char *ccp;
11779
11780 static inline int
11781 test_restrict (ccp restrict text)
11782 {
11783 // See if C++-style comments work.
11784 // Iterate through items via the restricted pointer.
11785 // Also check for declarations in for loops.
11786 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11787 continue;
11788 return 0;
11789 }
11790
11791 // Check varargs and va_copy.
11792 static void
11793 test_varargs (const char *format, ...)
11794 {
11795 va_list args;
11796 va_start (args, format);
11797 va_list args_copy;
11798 va_copy (args_copy, args);
11799
11800 const char *str;
11801 int number;
11802 float fnumber;
11803
11804 while (*format)
11805 {
11806 switch (*format++)
11807 {
11808 case 's': // string
11809 str = va_arg (args_copy, const char *);
11810 break;
11811 case 'd': // int
11812 number = va_arg (args_copy, int);
11813 break;
11814 case 'f': // float
11815 fnumber = va_arg (args_copy, double);
11816 break;
11817 default:
11818 break;
11819 }
11820 }
11821 va_end (args_copy);
11822 va_end (args);
11823 }
11824
11825 int
11826 main ()
11827 {
11828
11829 // Check bool.
11830 _Bool success = false;
11831
11832 // Check restrict.
11833 if (test_restrict ("String literal") == 0)
11834 success = true;
11835 char *restrict newvar = "Another string";
11836
11837 // Check varargs.
11838 test_varargs ("s, d' f .", "string", 65, 34.234);
11839 test_varargs_macros ();
11840
11841 // Check flexible array members.
11842 struct incomplete_array *ia =
11843 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11844 ia->datasize = 10;
11845 for (int i = 0; i < ia->datasize; ++i)
11846 ia->data[i] = i * 1.234;
11847
11848 // Check named initializers.
11849 struct named_init ni = {
11850 .number = 34,
11851 .name = L"Test wide string",
11852 .average = 543.34343,
11853 };
11854
11855 ni.number = 58;
11856
11857 int dynamic_array[ni.number];
11858 dynamic_array[ni.number - 1] = 543;
11859
11860 // work around unused variable warnings
11861 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11862 || dynamic_array[ni.number - 1] != 543);
11863
11864 ;
11865 return 0;
11866 }
11867 _ACEOF
11868 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11869 do
11870 CC="$ac_save_CC $ac_arg"
11871 if ac_fn_c_try_compile "$LINENO"; then :
11872 ac_cv_prog_cc_c99=$ac_arg
11873 fi
11874 rm -f core conftest.err conftest.$ac_objext
11875 test "x$ac_cv_prog_cc_c99" != "xno" && break
11876 done
11877 rm -f conftest.$ac_ext
11878 CC=$ac_save_CC
11879
11880 fi
11881 # AC_CACHE_VAL
11882 case "x$ac_cv_prog_cc_c99" in
11883 x)
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11885 $as_echo "none needed" >&6; } ;;
11886 xno)
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11888 $as_echo "unsupported" >&6; } ;;
11889 *)
11890 CC="$CC $ac_cv_prog_cc_c99"
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11892 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11893 esac
11894 if test "x$ac_cv_prog_cc_c99" != xno; then :
11895
11896 fi
11897
11898
11899
11900
11901
11902
11903 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11904 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11905 CLANGCC="yes"
11906 else
11907 CLANGCC="no"
11908 fi
11909
11910 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11911 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11912 INTELCC="yes"
11913 else
11914 INTELCC="no"
11915 fi
11916
11917 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11918 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11919 SUNCC="yes"
11920 else
11921 SUNCC="no"
11922 fi
11923
11924
11925
11926
11927 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11928 if test -n "$ac_tool_prefix"; then
11929 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11930 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11932 $as_echo_n "checking for $ac_word... " >&6; }
11933 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11934 $as_echo_n "(cached) " >&6
11935 else
11936 case $PKG_CONFIG in
11937 [\\/]* | ?:[\\/]*)
11938 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11939 ;;
11940 *)
11941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11942 for as_dir in $PATH
11943 do
11944 IFS=$as_save_IFS
11945 test -z "$as_dir" && as_dir=.
11946 for ac_exec_ext in '' $ac_executable_extensions; do
11947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11948 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11950 break 2
11951 fi
11952 done
11953 done
11954 IFS=$as_save_IFS
11955
11956 ;;
11957 esac
11958 fi
11959 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11960 if test -n "$PKG_CONFIG"; then
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11962 $as_echo "$PKG_CONFIG" >&6; }
11963 else
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11965 $as_echo "no" >&6; }
11966 fi
11967
11968
11969 fi
11970 if test -z "$ac_cv_path_PKG_CONFIG"; then
11971 ac_pt_PKG_CONFIG=$PKG_CONFIG
11972 # Extract the first word of "pkg-config", so it can be a program name with args.
11973 set dummy pkg-config; ac_word=$2
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11975 $as_echo_n "checking for $ac_word... " >&6; }
11976 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11977 $as_echo_n "(cached) " >&6
11978 else
11979 case $ac_pt_PKG_CONFIG in
11980 [\\/]* | ?:[\\/]*)
11981 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11982 ;;
11983 *)
11984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11985 for as_dir in $PATH
11986 do
11987 IFS=$as_save_IFS
11988 test -z "$as_dir" && as_dir=.
11989 for ac_exec_ext in '' $ac_executable_extensions; do
11990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11991 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11993 break 2
11994 fi
11995 done
11996 done
11997 IFS=$as_save_IFS
11998
11999 ;;
12000 esac
12001 fi
12002 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12003 if test -n "$ac_pt_PKG_CONFIG"; then
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12005 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12006 else
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12008 $as_echo "no" >&6; }
12009 fi
12010
12011 if test "x$ac_pt_PKG_CONFIG" = x; then
12012 PKG_CONFIG=""
12013 else
12014 case $cross_compiling:$ac_tool_warned in
12015 yes:)
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12018 ac_tool_warned=yes ;;
12019 esac
12020 PKG_CONFIG=$ac_pt_PKG_CONFIG
12021 fi
12022 else
12023 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12024 fi
12025
12026 fi
12027 if test -n "$PKG_CONFIG"; then
12028 _pkg_min_version=0.9.0
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12030 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12031 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12033 $as_echo "yes" >&6; }
12034 else
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12036 $as_echo "no" >&6; }
12037 PKG_CONFIG=""
12038 fi
12039
12040 fi
12041
12042
12043
12044
12045
12046 # Check whether --enable-selective-werror was given.
12047 if test "${enable_selective_werror+set}" = set; then :
12048 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12049 else
12050 SELECTIVE_WERROR=yes
12051 fi
12052
12053
12054
12055
12056
12057 # -v is too short to test reliably with XORG_TESTSET_CFLAG
12058 if test "x$SUNCC" = "xyes"; then
12059 BASE_CFLAGS="-v"
12060 else
12061 BASE_CFLAGS=""
12062 fi
12063
12064 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078 xorg_testset_save_CFLAGS="$CFLAGS"
12079
12080 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12083 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12084 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12085 $as_echo_n "(cached) " >&6
12086 else
12087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12088 /* end confdefs.h. */
12089 int i;
12090 _ACEOF
12091 if ac_fn_c_try_compile "$LINENO"; then :
12092 xorg_cv_cc_flag_unknown_warning_option=yes
12093 else
12094 xorg_cv_cc_flag_unknown_warning_option=no
12095 fi
12096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12097 fi
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12099 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12100 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12101 CFLAGS="$xorg_testset_save_CFLAGS"
12102 fi
12103
12104 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12107 fi
12108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12110 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12111 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12112 $as_echo_n "(cached) " >&6
12113 else
12114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12115 /* end confdefs.h. */
12116 int i;
12117 _ACEOF
12118 if ac_fn_c_try_compile "$LINENO"; then :
12119 xorg_cv_cc_flag_unused_command_line_argument=yes
12120 else
12121 xorg_cv_cc_flag_unused_command_line_argument=no
12122 fi
12123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12124 fi
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12126 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12127 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12128 CFLAGS="$xorg_testset_save_CFLAGS"
12129 fi
12130
12131 found="no"
12132
12133 if test $found = "no" ; then
12134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12136 fi
12137
12138 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12140 fi
12141
12142 CFLAGS="$CFLAGS -Wall"
12143
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12145 $as_echo_n "checking if $CC supports -Wall... " >&6; }
12146 cacheid=xorg_cv_cc_flag__Wall
12147 if eval \${$cacheid+:} false; then :
12148 $as_echo_n "(cached) " >&6
12149 else
12150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12151 /* end confdefs.h. */
12152 int i;
12153 int
12154 main ()
12155 {
12156
12157 ;
12158 return 0;
12159 }
12160 _ACEOF
12161 if ac_fn_c_try_link "$LINENO"; then :
12162 eval $cacheid=yes
12163 else
12164 eval $cacheid=no
12165 fi
12166 rm -f core conftest.err conftest.$ac_objext \
12167 conftest$ac_exeext conftest.$ac_ext
12168 fi
12169
12170
12171 CFLAGS="$xorg_testset_save_CFLAGS"
12172
12173 eval supported=\$$cacheid
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12175 $as_echo "$supported" >&6; }
12176 if test "$supported" = "yes" ; then
12177 BASE_CFLAGS="$BASE_CFLAGS -Wall"
12178 found="yes"
12179 fi
12180 fi
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196 xorg_testset_save_CFLAGS="$CFLAGS"
12197
12198 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12201 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12202 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12203 $as_echo_n "(cached) " >&6
12204 else
12205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12206 /* end confdefs.h. */
12207 int i;
12208 _ACEOF
12209 if ac_fn_c_try_compile "$LINENO"; then :
12210 xorg_cv_cc_flag_unknown_warning_option=yes
12211 else
12212 xorg_cv_cc_flag_unknown_warning_option=no
12213 fi
12214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12215 fi
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12217 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12218 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12219 CFLAGS="$xorg_testset_save_CFLAGS"
12220 fi
12221
12222 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12225 fi
12226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12228 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12229 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12230 $as_echo_n "(cached) " >&6
12231 else
12232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12233 /* end confdefs.h. */
12234 int i;
12235 _ACEOF
12236 if ac_fn_c_try_compile "$LINENO"; then :
12237 xorg_cv_cc_flag_unused_command_line_argument=yes
12238 else
12239 xorg_cv_cc_flag_unused_command_line_argument=no
12240 fi
12241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12242 fi
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12244 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12245 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12246 CFLAGS="$xorg_testset_save_CFLAGS"
12247 fi
12248
12249 found="no"
12250
12251 if test $found = "no" ; then
12252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12254 fi
12255
12256 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12258 fi
12259
12260 CFLAGS="$CFLAGS -Wpointer-arith"
12261
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12263 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12264 cacheid=xorg_cv_cc_flag__Wpointer_arith
12265 if eval \${$cacheid+:} false; then :
12266 $as_echo_n "(cached) " >&6
12267 else
12268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12269 /* end confdefs.h. */
12270 int i;
12271 int
12272 main ()
12273 {
12274
12275 ;
12276 return 0;
12277 }
12278 _ACEOF
12279 if ac_fn_c_try_link "$LINENO"; then :
12280 eval $cacheid=yes
12281 else
12282 eval $cacheid=no
12283 fi
12284 rm -f core conftest.err conftest.$ac_objext \
12285 conftest$ac_exeext conftest.$ac_ext
12286 fi
12287
12288
12289 CFLAGS="$xorg_testset_save_CFLAGS"
12290
12291 eval supported=\$$cacheid
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12293 $as_echo "$supported" >&6; }
12294 if test "$supported" = "yes" ; then
12295 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12296 found="yes"
12297 fi
12298 fi
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314 xorg_testset_save_CFLAGS="$CFLAGS"
12315
12316 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12319 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12320 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12321 $as_echo_n "(cached) " >&6
12322 else
12323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12324 /* end confdefs.h. */
12325 int i;
12326 _ACEOF
12327 if ac_fn_c_try_compile "$LINENO"; then :
12328 xorg_cv_cc_flag_unknown_warning_option=yes
12329 else
12330 xorg_cv_cc_flag_unknown_warning_option=no
12331 fi
12332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12333 fi
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12335 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12336 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12337 CFLAGS="$xorg_testset_save_CFLAGS"
12338 fi
12339
12340 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12343 fi
12344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12346 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12347 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12348 $as_echo_n "(cached) " >&6
12349 else
12350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12351 /* end confdefs.h. */
12352 int i;
12353 _ACEOF
12354 if ac_fn_c_try_compile "$LINENO"; then :
12355 xorg_cv_cc_flag_unused_command_line_argument=yes
12356 else
12357 xorg_cv_cc_flag_unused_command_line_argument=no
12358 fi
12359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12360 fi
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12362 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12363 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12364 CFLAGS="$xorg_testset_save_CFLAGS"
12365 fi
12366
12367 found="no"
12368
12369 if test $found = "no" ; then
12370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12372 fi
12373
12374 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12376 fi
12377
12378 CFLAGS="$CFLAGS -Wmissing-declarations"
12379
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12381 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12382 cacheid=xorg_cv_cc_flag__Wmissing_declarations
12383 if eval \${$cacheid+:} false; then :
12384 $as_echo_n "(cached) " >&6
12385 else
12386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12387 /* end confdefs.h. */
12388 int i;
12389 int
12390 main ()
12391 {
12392
12393 ;
12394 return 0;
12395 }
12396 _ACEOF
12397 if ac_fn_c_try_link "$LINENO"; then :
12398 eval $cacheid=yes
12399 else
12400 eval $cacheid=no
12401 fi
12402 rm -f core conftest.err conftest.$ac_objext \
12403 conftest$ac_exeext conftest.$ac_ext
12404 fi
12405
12406
12407 CFLAGS="$xorg_testset_save_CFLAGS"
12408
12409 eval supported=\$$cacheid
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12411 $as_echo "$supported" >&6; }
12412 if test "$supported" = "yes" ; then
12413 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12414 found="yes"
12415 fi
12416 fi
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432 xorg_testset_save_CFLAGS="$CFLAGS"
12433
12434 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12435 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12437 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12438 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12439 $as_echo_n "(cached) " >&6
12440 else
12441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12442 /* end confdefs.h. */
12443 int i;
12444 _ACEOF
12445 if ac_fn_c_try_compile "$LINENO"; then :
12446 xorg_cv_cc_flag_unknown_warning_option=yes
12447 else
12448 xorg_cv_cc_flag_unknown_warning_option=no
12449 fi
12450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12451 fi
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12453 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12454 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12455 CFLAGS="$xorg_testset_save_CFLAGS"
12456 fi
12457
12458 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12460 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12461 fi
12462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12464 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12465 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12466 $as_echo_n "(cached) " >&6
12467 else
12468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12469 /* end confdefs.h. */
12470 int i;
12471 _ACEOF
12472 if ac_fn_c_try_compile "$LINENO"; then :
12473 xorg_cv_cc_flag_unused_command_line_argument=yes
12474 else
12475 xorg_cv_cc_flag_unused_command_line_argument=no
12476 fi
12477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12478 fi
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12480 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12481 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12482 CFLAGS="$xorg_testset_save_CFLAGS"
12483 fi
12484
12485 found="no"
12486
12487 if test $found = "no" ; then
12488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12490 fi
12491
12492 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12494 fi
12495
12496 CFLAGS="$CFLAGS -Wformat=2"
12497
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12499 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12500 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
12501 if eval \${$cacheid+:} false; then :
12502 $as_echo_n "(cached) " >&6
12503 else
12504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12505 /* end confdefs.h. */
12506 int i;
12507 int
12508 main ()
12509 {
12510
12511 ;
12512 return 0;
12513 }
12514 _ACEOF
12515 if ac_fn_c_try_link "$LINENO"; then :
12516 eval $cacheid=yes
12517 else
12518 eval $cacheid=no
12519 fi
12520 rm -f core conftest.err conftest.$ac_objext \
12521 conftest$ac_exeext conftest.$ac_ext
12522 fi
12523
12524
12525 CFLAGS="$xorg_testset_save_CFLAGS"
12526
12527 eval supported=\$$cacheid
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12529 $as_echo "$supported" >&6; }
12530 if test "$supported" = "yes" ; then
12531 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12532 found="yes"
12533 fi
12534 fi
12535
12536 if test $found = "no" ; then
12537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12538 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12539 fi
12540
12541 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12543 fi
12544
12545 CFLAGS="$CFLAGS -Wformat"
12546
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12548 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12549 cacheid=xorg_cv_cc_flag__Wformat
12550 if eval \${$cacheid+:} false; then :
12551 $as_echo_n "(cached) " >&6
12552 else
12553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12554 /* end confdefs.h. */
12555 int i;
12556 int
12557 main ()
12558 {
12559
12560 ;
12561 return 0;
12562 }
12563 _ACEOF
12564 if ac_fn_c_try_link "$LINENO"; then :
12565 eval $cacheid=yes
12566 else
12567 eval $cacheid=no
12568 fi
12569 rm -f core conftest.err conftest.$ac_objext \
12570 conftest$ac_exeext conftest.$ac_ext
12571 fi
12572
12573
12574 CFLAGS="$xorg_testset_save_CFLAGS"
12575
12576 eval supported=\$$cacheid
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12578 $as_echo "$supported" >&6; }
12579 if test "$supported" = "yes" ; then
12580 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12581 found="yes"
12582 fi
12583 fi
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601 xorg_testset_save_CFLAGS="$CFLAGS"
12602
12603 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12604 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12606 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12607 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12608 $as_echo_n "(cached) " >&6
12609 else
12610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12611 /* end confdefs.h. */
12612 int i;
12613 _ACEOF
12614 if ac_fn_c_try_compile "$LINENO"; then :
12615 xorg_cv_cc_flag_unknown_warning_option=yes
12616 else
12617 xorg_cv_cc_flag_unknown_warning_option=no
12618 fi
12619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12620 fi
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12622 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12623 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12624 CFLAGS="$xorg_testset_save_CFLAGS"
12625 fi
12626
12627 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12630 fi
12631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12633 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12634 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12635 $as_echo_n "(cached) " >&6
12636 else
12637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12638 /* end confdefs.h. */
12639 int i;
12640 _ACEOF
12641 if ac_fn_c_try_compile "$LINENO"; then :
12642 xorg_cv_cc_flag_unused_command_line_argument=yes
12643 else
12644 xorg_cv_cc_flag_unused_command_line_argument=no
12645 fi
12646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12647 fi
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12649 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12650 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12651 CFLAGS="$xorg_testset_save_CFLAGS"
12652 fi
12653
12654 found="no"
12655
12656 if test $found = "no" ; then
12657 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12659 fi
12660
12661 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12663 fi
12664
12665 CFLAGS="$CFLAGS -Wstrict-prototypes"
12666
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12668 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12669 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12670 if eval \${$cacheid+:} false; then :
12671 $as_echo_n "(cached) " >&6
12672 else
12673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12674 /* end confdefs.h. */
12675 int i;
12676 int
12677 main ()
12678 {
12679
12680 ;
12681 return 0;
12682 }
12683 _ACEOF
12684 if ac_fn_c_try_link "$LINENO"; then :
12685 eval $cacheid=yes
12686 else
12687 eval $cacheid=no
12688 fi
12689 rm -f core conftest.err conftest.$ac_objext \
12690 conftest$ac_exeext conftest.$ac_ext
12691 fi
12692
12693
12694 CFLAGS="$xorg_testset_save_CFLAGS"
12695
12696 eval supported=\$$cacheid
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12698 $as_echo "$supported" >&6; }
12699 if test "$supported" = "yes" ; then
12700 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12701 found="yes"
12702 fi
12703 fi
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719 xorg_testset_save_CFLAGS="$CFLAGS"
12720
12721 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12724 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12725 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12726 $as_echo_n "(cached) " >&6
12727 else
12728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12729 /* end confdefs.h. */
12730 int i;
12731 _ACEOF
12732 if ac_fn_c_try_compile "$LINENO"; then :
12733 xorg_cv_cc_flag_unknown_warning_option=yes
12734 else
12735 xorg_cv_cc_flag_unknown_warning_option=no
12736 fi
12737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12738 fi
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12740 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12741 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12742 CFLAGS="$xorg_testset_save_CFLAGS"
12743 fi
12744
12745 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12747 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12748 fi
12749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12751 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12752 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12753 $as_echo_n "(cached) " >&6
12754 else
12755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12756 /* end confdefs.h. */
12757 int i;
12758 _ACEOF
12759 if ac_fn_c_try_compile "$LINENO"; then :
12760 xorg_cv_cc_flag_unused_command_line_argument=yes
12761 else
12762 xorg_cv_cc_flag_unused_command_line_argument=no
12763 fi
12764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12765 fi
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12767 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12768 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12769 CFLAGS="$xorg_testset_save_CFLAGS"
12770 fi
12771
12772 found="no"
12773
12774 if test $found = "no" ; then
12775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12776 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12777 fi
12778
12779 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12781 fi
12782
12783 CFLAGS="$CFLAGS -Wmissing-prototypes"
12784
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12786 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12787 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12788 if eval \${$cacheid+:} false; then :
12789 $as_echo_n "(cached) " >&6
12790 else
12791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12792 /* end confdefs.h. */
12793 int i;
12794 int
12795 main ()
12796 {
12797
12798 ;
12799 return 0;
12800 }
12801 _ACEOF
12802 if ac_fn_c_try_link "$LINENO"; then :
12803 eval $cacheid=yes
12804 else
12805 eval $cacheid=no
12806 fi
12807 rm -f core conftest.err conftest.$ac_objext \
12808 conftest$ac_exeext conftest.$ac_ext
12809 fi
12810
12811
12812 CFLAGS="$xorg_testset_save_CFLAGS"
12813
12814 eval supported=\$$cacheid
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12816 $as_echo "$supported" >&6; }
12817 if test "$supported" = "yes" ; then
12818 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12819 found="yes"
12820 fi
12821 fi
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837 xorg_testset_save_CFLAGS="$CFLAGS"
12838
12839 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12840 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12842 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12843 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12844 $as_echo_n "(cached) " >&6
12845 else
12846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12847 /* end confdefs.h. */
12848 int i;
12849 _ACEOF
12850 if ac_fn_c_try_compile "$LINENO"; then :
12851 xorg_cv_cc_flag_unknown_warning_option=yes
12852 else
12853 xorg_cv_cc_flag_unknown_warning_option=no
12854 fi
12855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12856 fi
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12858 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12859 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12860 CFLAGS="$xorg_testset_save_CFLAGS"
12861 fi
12862
12863 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12866 fi
12867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12869 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12870 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12871 $as_echo_n "(cached) " >&6
12872 else
12873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12874 /* end confdefs.h. */
12875 int i;
12876 _ACEOF
12877 if ac_fn_c_try_compile "$LINENO"; then :
12878 xorg_cv_cc_flag_unused_command_line_argument=yes
12879 else
12880 xorg_cv_cc_flag_unused_command_line_argument=no
12881 fi
12882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12883 fi
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12885 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12886 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12887 CFLAGS="$xorg_testset_save_CFLAGS"
12888 fi
12889
12890 found="no"
12891
12892 if test $found = "no" ; then
12893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12895 fi
12896
12897 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12899 fi
12900
12901 CFLAGS="$CFLAGS -Wnested-externs"
12902
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12904 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12905 cacheid=xorg_cv_cc_flag__Wnested_externs
12906 if eval \${$cacheid+:} false; then :
12907 $as_echo_n "(cached) " >&6
12908 else
12909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12910 /* end confdefs.h. */
12911 int i;
12912 int
12913 main ()
12914 {
12915
12916 ;
12917 return 0;
12918 }
12919 _ACEOF
12920 if ac_fn_c_try_link "$LINENO"; then :
12921 eval $cacheid=yes
12922 else
12923 eval $cacheid=no
12924 fi
12925 rm -f core conftest.err conftest.$ac_objext \
12926 conftest$ac_exeext conftest.$ac_ext
12927 fi
12928
12929
12930 CFLAGS="$xorg_testset_save_CFLAGS"
12931
12932 eval supported=\$$cacheid
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12934 $as_echo "$supported" >&6; }
12935 if test "$supported" = "yes" ; then
12936 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12937 found="yes"
12938 fi
12939 fi
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955 xorg_testset_save_CFLAGS="$CFLAGS"
12956
12957 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12960 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12961 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12962 $as_echo_n "(cached) " >&6
12963 else
12964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12965 /* end confdefs.h. */
12966 int i;
12967 _ACEOF
12968 if ac_fn_c_try_compile "$LINENO"; then :
12969 xorg_cv_cc_flag_unknown_warning_option=yes
12970 else
12971 xorg_cv_cc_flag_unknown_warning_option=no
12972 fi
12973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12974 fi
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12976 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12977 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12978 CFLAGS="$xorg_testset_save_CFLAGS"
12979 fi
12980
12981 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12983 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12984 fi
12985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12987 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12988 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12989 $as_echo_n "(cached) " >&6
12990 else
12991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12992 /* end confdefs.h. */
12993 int i;
12994 _ACEOF
12995 if ac_fn_c_try_compile "$LINENO"; then :
12996 xorg_cv_cc_flag_unused_command_line_argument=yes
12997 else
12998 xorg_cv_cc_flag_unused_command_line_argument=no
12999 fi
13000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13001 fi
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13003 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13004 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13005 CFLAGS="$xorg_testset_save_CFLAGS"
13006 fi
13007
13008 found="no"
13009
13010 if test $found = "no" ; then
13011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13013 fi
13014
13015 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13017 fi
13018
13019 CFLAGS="$CFLAGS -Wbad-function-cast"
13020
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13022 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13023 cacheid=xorg_cv_cc_flag__Wbad_function_cast
13024 if eval \${$cacheid+:} false; then :
13025 $as_echo_n "(cached) " >&6
13026 else
13027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13028 /* end confdefs.h. */
13029 int i;
13030 int
13031 main ()
13032 {
13033
13034 ;
13035 return 0;
13036 }
13037 _ACEOF
13038 if ac_fn_c_try_link "$LINENO"; then :
13039 eval $cacheid=yes
13040 else
13041 eval $cacheid=no
13042 fi
13043 rm -f core conftest.err conftest.$ac_objext \
13044 conftest$ac_exeext conftest.$ac_ext
13045 fi
13046
13047
13048 CFLAGS="$xorg_testset_save_CFLAGS"
13049
13050 eval supported=\$$cacheid
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13052 $as_echo "$supported" >&6; }
13053 if test "$supported" = "yes" ; then
13054 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13055 found="yes"
13056 fi
13057 fi
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073 xorg_testset_save_CFLAGS="$CFLAGS"
13074
13075 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13078 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13079 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13080 $as_echo_n "(cached) " >&6
13081 else
13082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13083 /* end confdefs.h. */
13084 int i;
13085 _ACEOF
13086 if ac_fn_c_try_compile "$LINENO"; then :
13087 xorg_cv_cc_flag_unknown_warning_option=yes
13088 else
13089 xorg_cv_cc_flag_unknown_warning_option=no
13090 fi
13091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13092 fi
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13094 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13095 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13096 CFLAGS="$xorg_testset_save_CFLAGS"
13097 fi
13098
13099 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13102 fi
13103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13105 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13106 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13107 $as_echo_n "(cached) " >&6
13108 else
13109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13110 /* end confdefs.h. */
13111 int i;
13112 _ACEOF
13113 if ac_fn_c_try_compile "$LINENO"; then :
13114 xorg_cv_cc_flag_unused_command_line_argument=yes
13115 else
13116 xorg_cv_cc_flag_unused_command_line_argument=no
13117 fi
13118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13119 fi
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13121 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13122 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13123 CFLAGS="$xorg_testset_save_CFLAGS"
13124 fi
13125
13126 found="no"
13127
13128 if test $found = "no" ; then
13129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13131 fi
13132
13133 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13135 fi
13136
13137 CFLAGS="$CFLAGS -Wold-style-definition"
13138
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13140 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13141 cacheid=xorg_cv_cc_flag__Wold_style_definition
13142 if eval \${$cacheid+:} false; then :
13143 $as_echo_n "(cached) " >&6
13144 else
13145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13146 /* end confdefs.h. */
13147 int i;
13148 int
13149 main ()
13150 {
13151
13152 ;
13153 return 0;
13154 }
13155 _ACEOF
13156 if ac_fn_c_try_link "$LINENO"; then :
13157 eval $cacheid=yes
13158 else
13159 eval $cacheid=no
13160 fi
13161 rm -f core conftest.err conftest.$ac_objext \
13162 conftest$ac_exeext conftest.$ac_ext
13163 fi
13164
13165
13166 CFLAGS="$xorg_testset_save_CFLAGS"
13167
13168 eval supported=\$$cacheid
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13170 $as_echo "$supported" >&6; }
13171 if test "$supported" = "yes" ; then
13172 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13173 found="yes"
13174 fi
13175 fi
13176
13177 if test $found = "no" ; then
13178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13179 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13180 fi
13181
13182 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13184 fi
13185
13186 CFLAGS="$CFLAGS -fd"
13187
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13189 $as_echo_n "checking if $CC supports -fd... " >&6; }
13190 cacheid=xorg_cv_cc_flag__fd
13191 if eval \${$cacheid+:} false; then :
13192 $as_echo_n "(cached) " >&6
13193 else
13194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13195 /* end confdefs.h. */
13196 int i;
13197 int
13198 main ()
13199 {
13200
13201 ;
13202 return 0;
13203 }
13204 _ACEOF
13205 if ac_fn_c_try_link "$LINENO"; then :
13206 eval $cacheid=yes
13207 else
13208 eval $cacheid=no
13209 fi
13210 rm -f core conftest.err conftest.$ac_objext \
13211 conftest$ac_exeext conftest.$ac_ext
13212 fi
13213
13214
13215 CFLAGS="$xorg_testset_save_CFLAGS"
13216
13217 eval supported=\$$cacheid
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13219 $as_echo "$supported" >&6; }
13220 if test "$supported" = "yes" ; then
13221 BASE_CFLAGS="$BASE_CFLAGS -fd"
13222 found="yes"
13223 fi
13224 fi
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240 xorg_testset_save_CFLAGS="$CFLAGS"
13241
13242 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13243 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13245 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13246 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13247 $as_echo_n "(cached) " >&6
13248 else
13249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13250 /* end confdefs.h. */
13251 int i;
13252 _ACEOF
13253 if ac_fn_c_try_compile "$LINENO"; then :
13254 xorg_cv_cc_flag_unknown_warning_option=yes
13255 else
13256 xorg_cv_cc_flag_unknown_warning_option=no
13257 fi
13258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13259 fi
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13261 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13262 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13263 CFLAGS="$xorg_testset_save_CFLAGS"
13264 fi
13265
13266 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13269 fi
13270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13272 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13273 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13274 $as_echo_n "(cached) " >&6
13275 else
13276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h. */
13278 int i;
13279 _ACEOF
13280 if ac_fn_c_try_compile "$LINENO"; then :
13281 xorg_cv_cc_flag_unused_command_line_argument=yes
13282 else
13283 xorg_cv_cc_flag_unused_command_line_argument=no
13284 fi
13285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13286 fi
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13288 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13289 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13290 CFLAGS="$xorg_testset_save_CFLAGS"
13291 fi
13292
13293 found="no"
13294
13295 if test $found = "no" ; then
13296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13297 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13298 fi
13299
13300 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13302 fi
13303
13304 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13305
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13307 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13308 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13309 if eval \${$cacheid+:} false; then :
13310 $as_echo_n "(cached) " >&6
13311 else
13312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13313 /* end confdefs.h. */
13314 int i;
13315 int
13316 main ()
13317 {
13318
13319 ;
13320 return 0;
13321 }
13322 _ACEOF
13323 if ac_fn_c_try_link "$LINENO"; then :
13324 eval $cacheid=yes
13325 else
13326 eval $cacheid=no
13327 fi
13328 rm -f core conftest.err conftest.$ac_objext \
13329 conftest$ac_exeext conftest.$ac_ext
13330 fi
13331
13332
13333 CFLAGS="$xorg_testset_save_CFLAGS"
13334
13335 eval supported=\$$cacheid
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13337 $as_echo "$supported" >&6; }
13338 if test "$supported" = "yes" ; then
13339 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13340 found="yes"
13341 fi
13342 fi
13343
13344
13345
13346
13347
13348 # This chunk adds additional warnings that could catch undesired effects.
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362 xorg_testset_save_CFLAGS="$CFLAGS"
13363
13364 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13365 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13367 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13368 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13369 $as_echo_n "(cached) " >&6
13370 else
13371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13372 /* end confdefs.h. */
13373 int i;
13374 _ACEOF
13375 if ac_fn_c_try_compile "$LINENO"; then :
13376 xorg_cv_cc_flag_unknown_warning_option=yes
13377 else
13378 xorg_cv_cc_flag_unknown_warning_option=no
13379 fi
13380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13381 fi
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13383 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13384 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13385 CFLAGS="$xorg_testset_save_CFLAGS"
13386 fi
13387
13388 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13389 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13390 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13391 fi
13392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13394 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13395 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13396 $as_echo_n "(cached) " >&6
13397 else
13398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13399 /* end confdefs.h. */
13400 int i;
13401 _ACEOF
13402 if ac_fn_c_try_compile "$LINENO"; then :
13403 xorg_cv_cc_flag_unused_command_line_argument=yes
13404 else
13405 xorg_cv_cc_flag_unused_command_line_argument=no
13406 fi
13407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13408 fi
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13410 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13411 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13412 CFLAGS="$xorg_testset_save_CFLAGS"
13413 fi
13414
13415 found="no"
13416
13417 if test $found = "no" ; then
13418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13419 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13420 fi
13421
13422 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13424 fi
13425
13426 CFLAGS="$CFLAGS -Wunused"
13427
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13429 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13430 cacheid=xorg_cv_cc_flag__Wunused
13431 if eval \${$cacheid+:} false; then :
13432 $as_echo_n "(cached) " >&6
13433 else
13434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13435 /* end confdefs.h. */
13436 int i;
13437 int
13438 main ()
13439 {
13440
13441 ;
13442 return 0;
13443 }
13444 _ACEOF
13445 if ac_fn_c_try_link "$LINENO"; then :
13446 eval $cacheid=yes
13447 else
13448 eval $cacheid=no
13449 fi
13450 rm -f core conftest.err conftest.$ac_objext \
13451 conftest$ac_exeext conftest.$ac_ext
13452 fi
13453
13454
13455 CFLAGS="$xorg_testset_save_CFLAGS"
13456
13457 eval supported=\$$cacheid
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13459 $as_echo "$supported" >&6; }
13460 if test "$supported" = "yes" ; then
13461 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13462 found="yes"
13463 fi
13464 fi
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480 xorg_testset_save_CFLAGS="$CFLAGS"
13481
13482 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13483 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13485 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13486 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13487 $as_echo_n "(cached) " >&6
13488 else
13489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13490 /* end confdefs.h. */
13491 int i;
13492 _ACEOF
13493 if ac_fn_c_try_compile "$LINENO"; then :
13494 xorg_cv_cc_flag_unknown_warning_option=yes
13495 else
13496 xorg_cv_cc_flag_unknown_warning_option=no
13497 fi
13498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13499 fi
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13501 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13502 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13503 CFLAGS="$xorg_testset_save_CFLAGS"
13504 fi
13505
13506 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13509 fi
13510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13512 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13513 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13514 $as_echo_n "(cached) " >&6
13515 else
13516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13517 /* end confdefs.h. */
13518 int i;
13519 _ACEOF
13520 if ac_fn_c_try_compile "$LINENO"; then :
13521 xorg_cv_cc_flag_unused_command_line_argument=yes
13522 else
13523 xorg_cv_cc_flag_unused_command_line_argument=no
13524 fi
13525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13526 fi
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13528 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13529 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13530 CFLAGS="$xorg_testset_save_CFLAGS"
13531 fi
13532
13533 found="no"
13534
13535 if test $found = "no" ; then
13536 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13537 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13538 fi
13539
13540 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13542 fi
13543
13544 CFLAGS="$CFLAGS -Wuninitialized"
13545
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13547 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13548 cacheid=xorg_cv_cc_flag__Wuninitialized
13549 if eval \${$cacheid+:} false; then :
13550 $as_echo_n "(cached) " >&6
13551 else
13552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13553 /* end confdefs.h. */
13554 int i;
13555 int
13556 main ()
13557 {
13558
13559 ;
13560 return 0;
13561 }
13562 _ACEOF
13563 if ac_fn_c_try_link "$LINENO"; then :
13564 eval $cacheid=yes
13565 else
13566 eval $cacheid=no
13567 fi
13568 rm -f core conftest.err conftest.$ac_objext \
13569 conftest$ac_exeext conftest.$ac_ext
13570 fi
13571
13572
13573 CFLAGS="$xorg_testset_save_CFLAGS"
13574
13575 eval supported=\$$cacheid
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13577 $as_echo "$supported" >&6; }
13578 if test "$supported" = "yes" ; then
13579 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13580 found="yes"
13581 fi
13582 fi
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598 xorg_testset_save_CFLAGS="$CFLAGS"
13599
13600 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13601 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13603 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13604 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13605 $as_echo_n "(cached) " >&6
13606 else
13607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13608 /* end confdefs.h. */
13609 int i;
13610 _ACEOF
13611 if ac_fn_c_try_compile "$LINENO"; then :
13612 xorg_cv_cc_flag_unknown_warning_option=yes
13613 else
13614 xorg_cv_cc_flag_unknown_warning_option=no
13615 fi
13616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13617 fi
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13619 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13620 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13621 CFLAGS="$xorg_testset_save_CFLAGS"
13622 fi
13623
13624 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13627 fi
13628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13630 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13631 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13632 $as_echo_n "(cached) " >&6
13633 else
13634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13635 /* end confdefs.h. */
13636 int i;
13637 _ACEOF
13638 if ac_fn_c_try_compile "$LINENO"; then :
13639 xorg_cv_cc_flag_unused_command_line_argument=yes
13640 else
13641 xorg_cv_cc_flag_unused_command_line_argument=no
13642 fi
13643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13644 fi
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13646 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13647 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13648 CFLAGS="$xorg_testset_save_CFLAGS"
13649 fi
13650
13651 found="no"
13652
13653 if test $found = "no" ; then
13654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13655 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13656 fi
13657
13658 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13660 fi
13661
13662 CFLAGS="$CFLAGS -Wshadow"
13663
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13665 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13666 cacheid=xorg_cv_cc_flag__Wshadow
13667 if eval \${$cacheid+:} false; then :
13668 $as_echo_n "(cached) " >&6
13669 else
13670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13671 /* end confdefs.h. */
13672 int i;
13673 int
13674 main ()
13675 {
13676
13677 ;
13678 return 0;
13679 }
13680 _ACEOF
13681 if ac_fn_c_try_link "$LINENO"; then :
13682 eval $cacheid=yes
13683 else
13684 eval $cacheid=no
13685 fi
13686 rm -f core conftest.err conftest.$ac_objext \
13687 conftest$ac_exeext conftest.$ac_ext
13688 fi
13689
13690
13691 CFLAGS="$xorg_testset_save_CFLAGS"
13692
13693 eval supported=\$$cacheid
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13695 $as_echo "$supported" >&6; }
13696 if test "$supported" = "yes" ; then
13697 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13698 found="yes"
13699 fi
13700 fi
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716 xorg_testset_save_CFLAGS="$CFLAGS"
13717
13718 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13719 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13721 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13722 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13723 $as_echo_n "(cached) " >&6
13724 else
13725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13726 /* end confdefs.h. */
13727 int i;
13728 _ACEOF
13729 if ac_fn_c_try_compile "$LINENO"; then :
13730 xorg_cv_cc_flag_unknown_warning_option=yes
13731 else
13732 xorg_cv_cc_flag_unknown_warning_option=no
13733 fi
13734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13735 fi
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13737 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13738 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13739 CFLAGS="$xorg_testset_save_CFLAGS"
13740 fi
13741
13742 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13745 fi
13746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13748 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13749 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13750 $as_echo_n "(cached) " >&6
13751 else
13752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13753 /* end confdefs.h. */
13754 int i;
13755 _ACEOF
13756 if ac_fn_c_try_compile "$LINENO"; then :
13757 xorg_cv_cc_flag_unused_command_line_argument=yes
13758 else
13759 xorg_cv_cc_flag_unused_command_line_argument=no
13760 fi
13761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13762 fi
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13764 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13765 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13766 CFLAGS="$xorg_testset_save_CFLAGS"
13767 fi
13768
13769 found="no"
13770
13771 if test $found = "no" ; then
13772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13773 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13774 fi
13775
13776 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13778 fi
13779
13780 CFLAGS="$CFLAGS -Wmissing-noreturn"
13781
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13783 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13784 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13785 if eval \${$cacheid+:} false; then :
13786 $as_echo_n "(cached) " >&6
13787 else
13788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13789 /* end confdefs.h. */
13790 int i;
13791 int
13792 main ()
13793 {
13794
13795 ;
13796 return 0;
13797 }
13798 _ACEOF
13799 if ac_fn_c_try_link "$LINENO"; then :
13800 eval $cacheid=yes
13801 else
13802 eval $cacheid=no
13803 fi
13804 rm -f core conftest.err conftest.$ac_objext \
13805 conftest$ac_exeext conftest.$ac_ext
13806 fi
13807
13808
13809 CFLAGS="$xorg_testset_save_CFLAGS"
13810
13811 eval supported=\$$cacheid
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13813 $as_echo "$supported" >&6; }
13814 if test "$supported" = "yes" ; then
13815 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13816 found="yes"
13817 fi
13818 fi
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834 xorg_testset_save_CFLAGS="$CFLAGS"
13835
13836 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13839 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13840 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13841 $as_echo_n "(cached) " >&6
13842 else
13843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13844 /* end confdefs.h. */
13845 int i;
13846 _ACEOF
13847 if ac_fn_c_try_compile "$LINENO"; then :
13848 xorg_cv_cc_flag_unknown_warning_option=yes
13849 else
13850 xorg_cv_cc_flag_unknown_warning_option=no
13851 fi
13852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13853 fi
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13855 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13856 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13857 CFLAGS="$xorg_testset_save_CFLAGS"
13858 fi
13859
13860 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13863 fi
13864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13866 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13867 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13868 $as_echo_n "(cached) " >&6
13869 else
13870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13871 /* end confdefs.h. */
13872 int i;
13873 _ACEOF
13874 if ac_fn_c_try_compile "$LINENO"; then :
13875 xorg_cv_cc_flag_unused_command_line_argument=yes
13876 else
13877 xorg_cv_cc_flag_unused_command_line_argument=no
13878 fi
13879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13880 fi
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13882 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13883 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13884 CFLAGS="$xorg_testset_save_CFLAGS"
13885 fi
13886
13887 found="no"
13888
13889 if test $found = "no" ; then
13890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13892 fi
13893
13894 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13896 fi
13897
13898 CFLAGS="$CFLAGS -Wmissing-format-attribute"
13899
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13901 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13902 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
13903 if eval \${$cacheid+:} false; then :
13904 $as_echo_n "(cached) " >&6
13905 else
13906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13907 /* end confdefs.h. */
13908 int i;
13909 int
13910 main ()
13911 {
13912
13913 ;
13914 return 0;
13915 }
13916 _ACEOF
13917 if ac_fn_c_try_link "$LINENO"; then :
13918 eval $cacheid=yes
13919 else
13920 eval $cacheid=no
13921 fi
13922 rm -f core conftest.err conftest.$ac_objext \
13923 conftest$ac_exeext conftest.$ac_ext
13924 fi
13925
13926
13927 CFLAGS="$xorg_testset_save_CFLAGS"
13928
13929 eval supported=\$$cacheid
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13931 $as_echo "$supported" >&6; }
13932 if test "$supported" = "yes" ; then
13933 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13934 found="yes"
13935 fi
13936 fi
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952 xorg_testset_save_CFLAGS="$CFLAGS"
13953
13954 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13957 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13958 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13959 $as_echo_n "(cached) " >&6
13960 else
13961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13962 /* end confdefs.h. */
13963 int i;
13964 _ACEOF
13965 if ac_fn_c_try_compile "$LINENO"; then :
13966 xorg_cv_cc_flag_unknown_warning_option=yes
13967 else
13968 xorg_cv_cc_flag_unknown_warning_option=no
13969 fi
13970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13971 fi
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13973 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13974 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13975 CFLAGS="$xorg_testset_save_CFLAGS"
13976 fi
13977
13978 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13981 fi
13982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13984 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13985 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13986 $as_echo_n "(cached) " >&6
13987 else
13988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13989 /* end confdefs.h. */
13990 int i;
13991 _ACEOF
13992 if ac_fn_c_try_compile "$LINENO"; then :
13993 xorg_cv_cc_flag_unused_command_line_argument=yes
13994 else
13995 xorg_cv_cc_flag_unused_command_line_argument=no
13996 fi
13997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13998 fi
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14000 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14001 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14002 CFLAGS="$xorg_testset_save_CFLAGS"
14003 fi
14004
14005 found="no"
14006
14007 if test $found = "no" ; then
14008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14009 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14010 fi
14011
14012 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14014 fi
14015
14016 CFLAGS="$CFLAGS -Wredundant-decls"
14017
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14019 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14020 cacheid=xorg_cv_cc_flag__Wredundant_decls
14021 if eval \${$cacheid+:} false; then :
14022 $as_echo_n "(cached) " >&6
14023 else
14024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14025 /* end confdefs.h. */
14026 int i;
14027 int
14028 main ()
14029 {
14030
14031 ;
14032 return 0;
14033 }
14034 _ACEOF
14035 if ac_fn_c_try_link "$LINENO"; then :
14036 eval $cacheid=yes
14037 else
14038 eval $cacheid=no
14039 fi
14040 rm -f core conftest.err conftest.$ac_objext \
14041 conftest$ac_exeext conftest.$ac_ext
14042 fi
14043
14044
14045 CFLAGS="$xorg_testset_save_CFLAGS"
14046
14047 eval supported=\$$cacheid
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14049 $as_echo "$supported" >&6; }
14050 if test "$supported" = "yes" ; then
14051 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14052 found="yes"
14053 fi
14054 fi
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070 xorg_testset_save_CFLAGS="$CFLAGS"
14071
14072 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14075 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14076 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14077 $as_echo_n "(cached) " >&6
14078 else
14079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14080 /* end confdefs.h. */
14081 int i;
14082 _ACEOF
14083 if ac_fn_c_try_compile "$LINENO"; then :
14084 xorg_cv_cc_flag_unknown_warning_option=yes
14085 else
14086 xorg_cv_cc_flag_unknown_warning_option=no
14087 fi
14088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14089 fi
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14091 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14092 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14093 CFLAGS="$xorg_testset_save_CFLAGS"
14094 fi
14095
14096 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14098 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14099 fi
14100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14102 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14103 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14104 $as_echo_n "(cached) " >&6
14105 else
14106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14107 /* end confdefs.h. */
14108 int i;
14109 _ACEOF
14110 if ac_fn_c_try_compile "$LINENO"; then :
14111 xorg_cv_cc_flag_unused_command_line_argument=yes
14112 else
14113 xorg_cv_cc_flag_unused_command_line_argument=no
14114 fi
14115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14116 fi
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14118 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14119 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14120 CFLAGS="$xorg_testset_save_CFLAGS"
14121 fi
14122
14123 found="no"
14124
14125 if test $found = "no" ; then
14126 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14127 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14128 fi
14129
14130 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14132 fi
14133
14134 CFLAGS="$CFLAGS -Wlogical-op"
14135
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14137 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14138 cacheid=xorg_cv_cc_flag__Wlogical_op
14139 if eval \${$cacheid+:} false; then :
14140 $as_echo_n "(cached) " >&6
14141 else
14142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14143 /* end confdefs.h. */
14144 int i;
14145 int
14146 main ()
14147 {
14148
14149 ;
14150 return 0;
14151 }
14152 _ACEOF
14153 if ac_fn_c_try_link "$LINENO"; then :
14154 eval $cacheid=yes
14155 else
14156 eval $cacheid=no
14157 fi
14158 rm -f core conftest.err conftest.$ac_objext \
14159 conftest$ac_exeext conftest.$ac_ext
14160 fi
14161
14162
14163 CFLAGS="$xorg_testset_save_CFLAGS"
14164
14165 eval supported=\$$cacheid
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14167 $as_echo "$supported" >&6; }
14168 if test "$supported" = "yes" ; then
14169 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14170 found="yes"
14171 fi
14172 fi
14173
14174
14175
14176 # These are currently disabled because they are noisy. They will be enabled
14177 # in the future once the codebase is sufficiently modernized to silence
14178 # them. For now, I don't want them to drown out the other warnings.
14179 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14180 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14181 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14182
14183 # Turn some warnings into errors, so we don't accidently get successful builds
14184 # when there are problems that should be fixed.
14185
14186 if test "x$SELECTIVE_WERROR" = "xyes" ; then
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200 xorg_testset_save_CFLAGS="$CFLAGS"
14201
14202 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14205 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14206 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14207 $as_echo_n "(cached) " >&6
14208 else
14209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14210 /* end confdefs.h. */
14211 int i;
14212 _ACEOF
14213 if ac_fn_c_try_compile "$LINENO"; then :
14214 xorg_cv_cc_flag_unknown_warning_option=yes
14215 else
14216 xorg_cv_cc_flag_unknown_warning_option=no
14217 fi
14218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14219 fi
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14221 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14222 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14223 CFLAGS="$xorg_testset_save_CFLAGS"
14224 fi
14225
14226 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14229 fi
14230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14232 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14233 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14234 $as_echo_n "(cached) " >&6
14235 else
14236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14237 /* end confdefs.h. */
14238 int i;
14239 _ACEOF
14240 if ac_fn_c_try_compile "$LINENO"; then :
14241 xorg_cv_cc_flag_unused_command_line_argument=yes
14242 else
14243 xorg_cv_cc_flag_unused_command_line_argument=no
14244 fi
14245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14246 fi
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14248 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14249 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14250 CFLAGS="$xorg_testset_save_CFLAGS"
14251 fi
14252
14253 found="no"
14254
14255 if test $found = "no" ; then
14256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14258 fi
14259
14260 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14262 fi
14263
14264 CFLAGS="$CFLAGS -Werror=implicit"
14265
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14267 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14268 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
14269 if eval \${$cacheid+:} false; then :
14270 $as_echo_n "(cached) " >&6
14271 else
14272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14273 /* end confdefs.h. */
14274 int i;
14275 int
14276 main ()
14277 {
14278
14279 ;
14280 return 0;
14281 }
14282 _ACEOF
14283 if ac_fn_c_try_link "$LINENO"; then :
14284 eval $cacheid=yes
14285 else
14286 eval $cacheid=no
14287 fi
14288 rm -f core conftest.err conftest.$ac_objext \
14289 conftest$ac_exeext conftest.$ac_ext
14290 fi
14291
14292
14293 CFLAGS="$xorg_testset_save_CFLAGS"
14294
14295 eval supported=\$$cacheid
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14297 $as_echo "$supported" >&6; }
14298 if test "$supported" = "yes" ; then
14299 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14300 found="yes"
14301 fi
14302 fi
14303
14304 if test $found = "no" ; then
14305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14306 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14307 fi
14308
14309 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14311 fi
14312
14313 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14314
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14316 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14317 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
14318 if eval \${$cacheid+:} false; then :
14319 $as_echo_n "(cached) " >&6
14320 else
14321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14322 /* end confdefs.h. */
14323 int i;
14324 int
14325 main ()
14326 {
14327
14328 ;
14329 return 0;
14330 }
14331 _ACEOF
14332 if ac_fn_c_try_link "$LINENO"; then :
14333 eval $cacheid=yes
14334 else
14335 eval $cacheid=no
14336 fi
14337 rm -f core conftest.err conftest.$ac_objext \
14338 conftest$ac_exeext conftest.$ac_ext
14339 fi
14340
14341
14342 CFLAGS="$xorg_testset_save_CFLAGS"
14343
14344 eval supported=\$$cacheid
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14346 $as_echo "$supported" >&6; }
14347 if test "$supported" = "yes" ; then
14348 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14349 found="yes"
14350 fi
14351 fi
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367 xorg_testset_save_CFLAGS="$CFLAGS"
14368
14369 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14370 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14372 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14373 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14374 $as_echo_n "(cached) " >&6
14375 else
14376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14377 /* end confdefs.h. */
14378 int i;
14379 _ACEOF
14380 if ac_fn_c_try_compile "$LINENO"; then :
14381 xorg_cv_cc_flag_unknown_warning_option=yes
14382 else
14383 xorg_cv_cc_flag_unknown_warning_option=no
14384 fi
14385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14386 fi
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14388 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14389 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14390 CFLAGS="$xorg_testset_save_CFLAGS"
14391 fi
14392
14393 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14395 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14396 fi
14397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14399 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14400 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14401 $as_echo_n "(cached) " >&6
14402 else
14403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14404 /* end confdefs.h. */
14405 int i;
14406 _ACEOF
14407 if ac_fn_c_try_compile "$LINENO"; then :
14408 xorg_cv_cc_flag_unused_command_line_argument=yes
14409 else
14410 xorg_cv_cc_flag_unused_command_line_argument=no
14411 fi
14412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14413 fi
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14415 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14416 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14417 CFLAGS="$xorg_testset_save_CFLAGS"
14418 fi
14419
14420 found="no"
14421
14422 if test $found = "no" ; then
14423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14424 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14425 fi
14426
14427 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14428 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14429 fi
14430
14431 CFLAGS="$CFLAGS -Werror=nonnull"
14432
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14434 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14435 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
14436 if eval \${$cacheid+:} false; then :
14437 $as_echo_n "(cached) " >&6
14438 else
14439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14440 /* end confdefs.h. */
14441 int i;
14442 int
14443 main ()
14444 {
14445
14446 ;
14447 return 0;
14448 }
14449 _ACEOF
14450 if ac_fn_c_try_link "$LINENO"; then :
14451 eval $cacheid=yes
14452 else
14453 eval $cacheid=no
14454 fi
14455 rm -f core conftest.err conftest.$ac_objext \
14456 conftest$ac_exeext conftest.$ac_ext
14457 fi
14458
14459
14460 CFLAGS="$xorg_testset_save_CFLAGS"
14461
14462 eval supported=\$$cacheid
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14464 $as_echo "$supported" >&6; }
14465 if test "$supported" = "yes" ; then
14466 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14467 found="yes"
14468 fi
14469 fi
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485 xorg_testset_save_CFLAGS="$CFLAGS"
14486
14487 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14488 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14490 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14491 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14492 $as_echo_n "(cached) " >&6
14493 else
14494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14495 /* end confdefs.h. */
14496 int i;
14497 _ACEOF
14498 if ac_fn_c_try_compile "$LINENO"; then :
14499 xorg_cv_cc_flag_unknown_warning_option=yes
14500 else
14501 xorg_cv_cc_flag_unknown_warning_option=no
14502 fi
14503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14504 fi
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14506 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14507 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14508 CFLAGS="$xorg_testset_save_CFLAGS"
14509 fi
14510
14511 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14514 fi
14515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14517 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14518 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14519 $as_echo_n "(cached) " >&6
14520 else
14521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14522 /* end confdefs.h. */
14523 int i;
14524 _ACEOF
14525 if ac_fn_c_try_compile "$LINENO"; then :
14526 xorg_cv_cc_flag_unused_command_line_argument=yes
14527 else
14528 xorg_cv_cc_flag_unused_command_line_argument=no
14529 fi
14530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14531 fi
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14533 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14534 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14535 CFLAGS="$xorg_testset_save_CFLAGS"
14536 fi
14537
14538 found="no"
14539
14540 if test $found = "no" ; then
14541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14543 fi
14544
14545 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14547 fi
14548
14549 CFLAGS="$CFLAGS -Werror=init-self"
14550
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14552 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14553 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
14554 if eval \${$cacheid+:} false; then :
14555 $as_echo_n "(cached) " >&6
14556 else
14557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14558 /* end confdefs.h. */
14559 int i;
14560 int
14561 main ()
14562 {
14563
14564 ;
14565 return 0;
14566 }
14567 _ACEOF
14568 if ac_fn_c_try_link "$LINENO"; then :
14569 eval $cacheid=yes
14570 else
14571 eval $cacheid=no
14572 fi
14573 rm -f core conftest.err conftest.$ac_objext \
14574 conftest$ac_exeext conftest.$ac_ext
14575 fi
14576
14577
14578 CFLAGS="$xorg_testset_save_CFLAGS"
14579
14580 eval supported=\$$cacheid
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14582 $as_echo "$supported" >&6; }
14583 if test "$supported" = "yes" ; then
14584 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14585 found="yes"
14586 fi
14587 fi
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603 xorg_testset_save_CFLAGS="$CFLAGS"
14604
14605 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14608 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14609 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14610 $as_echo_n "(cached) " >&6
14611 else
14612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14613 /* end confdefs.h. */
14614 int i;
14615 _ACEOF
14616 if ac_fn_c_try_compile "$LINENO"; then :
14617 xorg_cv_cc_flag_unknown_warning_option=yes
14618 else
14619 xorg_cv_cc_flag_unknown_warning_option=no
14620 fi
14621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14622 fi
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14624 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14625 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14626 CFLAGS="$xorg_testset_save_CFLAGS"
14627 fi
14628
14629 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14631 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14632 fi
14633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14635 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14636 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14637 $as_echo_n "(cached) " >&6
14638 else
14639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14640 /* end confdefs.h. */
14641 int i;
14642 _ACEOF
14643 if ac_fn_c_try_compile "$LINENO"; then :
14644 xorg_cv_cc_flag_unused_command_line_argument=yes
14645 else
14646 xorg_cv_cc_flag_unused_command_line_argument=no
14647 fi
14648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14649 fi
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14651 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14652 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14653 CFLAGS="$xorg_testset_save_CFLAGS"
14654 fi
14655
14656 found="no"
14657
14658 if test $found = "no" ; then
14659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14661 fi
14662
14663 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14665 fi
14666
14667 CFLAGS="$CFLAGS -Werror=main"
14668
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14670 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14671 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
14672 if eval \${$cacheid+:} false; then :
14673 $as_echo_n "(cached) " >&6
14674 else
14675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14676 /* end confdefs.h. */
14677 int i;
14678 int
14679 main ()
14680 {
14681
14682 ;
14683 return 0;
14684 }
14685 _ACEOF
14686 if ac_fn_c_try_link "$LINENO"; then :
14687 eval $cacheid=yes
14688 else
14689 eval $cacheid=no
14690 fi
14691 rm -f core conftest.err conftest.$ac_objext \
14692 conftest$ac_exeext conftest.$ac_ext
14693 fi
14694
14695
14696 CFLAGS="$xorg_testset_save_CFLAGS"
14697
14698 eval supported=\$$cacheid
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14700 $as_echo "$supported" >&6; }
14701 if test "$supported" = "yes" ; then
14702 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14703 found="yes"
14704 fi
14705 fi
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721 xorg_testset_save_CFLAGS="$CFLAGS"
14722
14723 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14724 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14726 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14727 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14728 $as_echo_n "(cached) " >&6
14729 else
14730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14731 /* end confdefs.h. */
14732 int i;
14733 _ACEOF
14734 if ac_fn_c_try_compile "$LINENO"; then :
14735 xorg_cv_cc_flag_unknown_warning_option=yes
14736 else
14737 xorg_cv_cc_flag_unknown_warning_option=no
14738 fi
14739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14740 fi
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14742 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14743 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14744 CFLAGS="$xorg_testset_save_CFLAGS"
14745 fi
14746
14747 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14749 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14750 fi
14751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14753 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14754 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14755 $as_echo_n "(cached) " >&6
14756 else
14757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14758 /* end confdefs.h. */
14759 int i;
14760 _ACEOF
14761 if ac_fn_c_try_compile "$LINENO"; then :
14762 xorg_cv_cc_flag_unused_command_line_argument=yes
14763 else
14764 xorg_cv_cc_flag_unused_command_line_argument=no
14765 fi
14766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14767 fi
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14769 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14770 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14771 CFLAGS="$xorg_testset_save_CFLAGS"
14772 fi
14773
14774 found="no"
14775
14776 if test $found = "no" ; then
14777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14778 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14779 fi
14780
14781 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14783 fi
14784
14785 CFLAGS="$CFLAGS -Werror=missing-braces"
14786
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14788 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14789 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
14790 if eval \${$cacheid+:} false; then :
14791 $as_echo_n "(cached) " >&6
14792 else
14793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14794 /* end confdefs.h. */
14795 int i;
14796 int
14797 main ()
14798 {
14799
14800 ;
14801 return 0;
14802 }
14803 _ACEOF
14804 if ac_fn_c_try_link "$LINENO"; then :
14805 eval $cacheid=yes
14806 else
14807 eval $cacheid=no
14808 fi
14809 rm -f core conftest.err conftest.$ac_objext \
14810 conftest$ac_exeext conftest.$ac_ext
14811 fi
14812
14813
14814 CFLAGS="$xorg_testset_save_CFLAGS"
14815
14816 eval supported=\$$cacheid
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14818 $as_echo "$supported" >&6; }
14819 if test "$supported" = "yes" ; then
14820 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14821 found="yes"
14822 fi
14823 fi
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839 xorg_testset_save_CFLAGS="$CFLAGS"
14840
14841 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14842 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14844 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14845 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14846 $as_echo_n "(cached) " >&6
14847 else
14848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14849 /* end confdefs.h. */
14850 int i;
14851 _ACEOF
14852 if ac_fn_c_try_compile "$LINENO"; then :
14853 xorg_cv_cc_flag_unknown_warning_option=yes
14854 else
14855 xorg_cv_cc_flag_unknown_warning_option=no
14856 fi
14857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14858 fi
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14860 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14861 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14862 CFLAGS="$xorg_testset_save_CFLAGS"
14863 fi
14864
14865 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14866 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14867 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14868 fi
14869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14871 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14872 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14873 $as_echo_n "(cached) " >&6
14874 else
14875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14876 /* end confdefs.h. */
14877 int i;
14878 _ACEOF
14879 if ac_fn_c_try_compile "$LINENO"; then :
14880 xorg_cv_cc_flag_unused_command_line_argument=yes
14881 else
14882 xorg_cv_cc_flag_unused_command_line_argument=no
14883 fi
14884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14885 fi
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14887 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14888 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14889 CFLAGS="$xorg_testset_save_CFLAGS"
14890 fi
14891
14892 found="no"
14893
14894 if test $found = "no" ; then
14895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14897 fi
14898
14899 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14901 fi
14902
14903 CFLAGS="$CFLAGS -Werror=sequence-point"
14904
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14906 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14907 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
14908 if eval \${$cacheid+:} false; then :
14909 $as_echo_n "(cached) " >&6
14910 else
14911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14912 /* end confdefs.h. */
14913 int i;
14914 int
14915 main ()
14916 {
14917
14918 ;
14919 return 0;
14920 }
14921 _ACEOF
14922 if ac_fn_c_try_link "$LINENO"; then :
14923 eval $cacheid=yes
14924 else
14925 eval $cacheid=no
14926 fi
14927 rm -f core conftest.err conftest.$ac_objext \
14928 conftest$ac_exeext conftest.$ac_ext
14929 fi
14930
14931
14932 CFLAGS="$xorg_testset_save_CFLAGS"
14933
14934 eval supported=\$$cacheid
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14936 $as_echo "$supported" >&6; }
14937 if test "$supported" = "yes" ; then
14938 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14939 found="yes"
14940 fi
14941 fi
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957 xorg_testset_save_CFLAGS="$CFLAGS"
14958
14959 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14962 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14963 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14964 $as_echo_n "(cached) " >&6
14965 else
14966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14967 /* end confdefs.h. */
14968 int i;
14969 _ACEOF
14970 if ac_fn_c_try_compile "$LINENO"; then :
14971 xorg_cv_cc_flag_unknown_warning_option=yes
14972 else
14973 xorg_cv_cc_flag_unknown_warning_option=no
14974 fi
14975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14976 fi
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14978 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14979 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14980 CFLAGS="$xorg_testset_save_CFLAGS"
14981 fi
14982
14983 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14986 fi
14987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14989 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14990 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14991 $as_echo_n "(cached) " >&6
14992 else
14993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14994 /* end confdefs.h. */
14995 int i;
14996 _ACEOF
14997 if ac_fn_c_try_compile "$LINENO"; then :
14998 xorg_cv_cc_flag_unused_command_line_argument=yes
14999 else
15000 xorg_cv_cc_flag_unused_command_line_argument=no
15001 fi
15002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15003 fi
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15005 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15006 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15007 CFLAGS="$xorg_testset_save_CFLAGS"
15008 fi
15009
15010 found="no"
15011
15012 if test $found = "no" ; then
15013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15014 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15015 fi
15016
15017 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15019 fi
15020
15021 CFLAGS="$CFLAGS -Werror=return-type"
15022
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15024 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15025 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
15026 if eval \${$cacheid+:} false; then :
15027 $as_echo_n "(cached) " >&6
15028 else
15029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15030 /* end confdefs.h. */
15031 int i;
15032 int
15033 main ()
15034 {
15035
15036 ;
15037 return 0;
15038 }
15039 _ACEOF
15040 if ac_fn_c_try_link "$LINENO"; then :
15041 eval $cacheid=yes
15042 else
15043 eval $cacheid=no
15044 fi
15045 rm -f core conftest.err conftest.$ac_objext \
15046 conftest$ac_exeext conftest.$ac_ext
15047 fi
15048
15049
15050 CFLAGS="$xorg_testset_save_CFLAGS"
15051
15052 eval supported=\$$cacheid
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15054 $as_echo "$supported" >&6; }
15055 if test "$supported" = "yes" ; then
15056 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15057 found="yes"
15058 fi
15059 fi
15060
15061 if test $found = "no" ; then
15062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15063 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15064 fi
15065
15066 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15068 fi
15069
15070 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15071
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15073 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15074 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
15075 if eval \${$cacheid+:} false; then :
15076 $as_echo_n "(cached) " >&6
15077 else
15078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15079 /* end confdefs.h. */
15080 int i;
15081 int
15082 main ()
15083 {
15084
15085 ;
15086 return 0;
15087 }
15088 _ACEOF
15089 if ac_fn_c_try_link "$LINENO"; then :
15090 eval $cacheid=yes
15091 else
15092 eval $cacheid=no
15093 fi
15094 rm -f core conftest.err conftest.$ac_objext \
15095 conftest$ac_exeext conftest.$ac_ext
15096 fi
15097
15098
15099 CFLAGS="$xorg_testset_save_CFLAGS"
15100
15101 eval supported=\$$cacheid
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15103 $as_echo "$supported" >&6; }
15104 if test "$supported" = "yes" ; then
15105 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15106 found="yes"
15107 fi
15108 fi
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124 xorg_testset_save_CFLAGS="$CFLAGS"
15125
15126 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15127 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15129 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15130 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15131 $as_echo_n "(cached) " >&6
15132 else
15133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15134 /* end confdefs.h. */
15135 int i;
15136 _ACEOF
15137 if ac_fn_c_try_compile "$LINENO"; then :
15138 xorg_cv_cc_flag_unknown_warning_option=yes
15139 else
15140 xorg_cv_cc_flag_unknown_warning_option=no
15141 fi
15142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15143 fi
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15145 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15146 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15147 CFLAGS="$xorg_testset_save_CFLAGS"
15148 fi
15149
15150 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15153 fi
15154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15156 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15157 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15158 $as_echo_n "(cached) " >&6
15159 else
15160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15161 /* end confdefs.h. */
15162 int i;
15163 _ACEOF
15164 if ac_fn_c_try_compile "$LINENO"; then :
15165 xorg_cv_cc_flag_unused_command_line_argument=yes
15166 else
15167 xorg_cv_cc_flag_unused_command_line_argument=no
15168 fi
15169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15170 fi
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15172 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15173 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15174 CFLAGS="$xorg_testset_save_CFLAGS"
15175 fi
15176
15177 found="no"
15178
15179 if test $found = "no" ; then
15180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15181 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15182 fi
15183
15184 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15186 fi
15187
15188 CFLAGS="$CFLAGS -Werror=trigraphs"
15189
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15191 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15192 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
15193 if eval \${$cacheid+:} false; then :
15194 $as_echo_n "(cached) " >&6
15195 else
15196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15197 /* end confdefs.h. */
15198 int i;
15199 int
15200 main ()
15201 {
15202
15203 ;
15204 return 0;
15205 }
15206 _ACEOF
15207 if ac_fn_c_try_link "$LINENO"; then :
15208 eval $cacheid=yes
15209 else
15210 eval $cacheid=no
15211 fi
15212 rm -f core conftest.err conftest.$ac_objext \
15213 conftest$ac_exeext conftest.$ac_ext
15214 fi
15215
15216
15217 CFLAGS="$xorg_testset_save_CFLAGS"
15218
15219 eval supported=\$$cacheid
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15221 $as_echo "$supported" >&6; }
15222 if test "$supported" = "yes" ; then
15223 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15224 found="yes"
15225 fi
15226 fi
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242 xorg_testset_save_CFLAGS="$CFLAGS"
15243
15244 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15247 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15248 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15249 $as_echo_n "(cached) " >&6
15250 else
15251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15252 /* end confdefs.h. */
15253 int i;
15254 _ACEOF
15255 if ac_fn_c_try_compile "$LINENO"; then :
15256 xorg_cv_cc_flag_unknown_warning_option=yes
15257 else
15258 xorg_cv_cc_flag_unknown_warning_option=no
15259 fi
15260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15261 fi
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15263 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15264 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15265 CFLAGS="$xorg_testset_save_CFLAGS"
15266 fi
15267
15268 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15271 fi
15272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15274 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15275 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15276 $as_echo_n "(cached) " >&6
15277 else
15278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15279 /* end confdefs.h. */
15280 int i;
15281 _ACEOF
15282 if ac_fn_c_try_compile "$LINENO"; then :
15283 xorg_cv_cc_flag_unused_command_line_argument=yes
15284 else
15285 xorg_cv_cc_flag_unused_command_line_argument=no
15286 fi
15287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15288 fi
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15290 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15291 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15292 CFLAGS="$xorg_testset_save_CFLAGS"
15293 fi
15294
15295 found="no"
15296
15297 if test $found = "no" ; then
15298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15300 fi
15301
15302 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15304 fi
15305
15306 CFLAGS="$CFLAGS -Werror=array-bounds"
15307
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15309 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15310 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
15311 if eval \${$cacheid+:} false; then :
15312 $as_echo_n "(cached) " >&6
15313 else
15314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15315 /* end confdefs.h. */
15316 int i;
15317 int
15318 main ()
15319 {
15320
15321 ;
15322 return 0;
15323 }
15324 _ACEOF
15325 if ac_fn_c_try_link "$LINENO"; then :
15326 eval $cacheid=yes
15327 else
15328 eval $cacheid=no
15329 fi
15330 rm -f core conftest.err conftest.$ac_objext \
15331 conftest$ac_exeext conftest.$ac_ext
15332 fi
15333
15334
15335 CFLAGS="$xorg_testset_save_CFLAGS"
15336
15337 eval supported=\$$cacheid
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15339 $as_echo "$supported" >&6; }
15340 if test "$supported" = "yes" ; then
15341 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15342 found="yes"
15343 fi
15344 fi
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360 xorg_testset_save_CFLAGS="$CFLAGS"
15361
15362 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15363 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15365 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15366 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15367 $as_echo_n "(cached) " >&6
15368 else
15369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15370 /* end confdefs.h. */
15371 int i;
15372 _ACEOF
15373 if ac_fn_c_try_compile "$LINENO"; then :
15374 xorg_cv_cc_flag_unknown_warning_option=yes
15375 else
15376 xorg_cv_cc_flag_unknown_warning_option=no
15377 fi
15378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15379 fi
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15381 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15382 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15383 CFLAGS="$xorg_testset_save_CFLAGS"
15384 fi
15385
15386 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15388 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15389 fi
15390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15392 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15393 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15394 $as_echo_n "(cached) " >&6
15395 else
15396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15397 /* end confdefs.h. */
15398 int i;
15399 _ACEOF
15400 if ac_fn_c_try_compile "$LINENO"; then :
15401 xorg_cv_cc_flag_unused_command_line_argument=yes
15402 else
15403 xorg_cv_cc_flag_unused_command_line_argument=no
15404 fi
15405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15406 fi
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15408 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15409 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15410 CFLAGS="$xorg_testset_save_CFLAGS"
15411 fi
15412
15413 found="no"
15414
15415 if test $found = "no" ; then
15416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15417 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15418 fi
15419
15420 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15422 fi
15423
15424 CFLAGS="$CFLAGS -Werror=write-strings"
15425
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15427 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15428 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
15429 if eval \${$cacheid+:} false; then :
15430 $as_echo_n "(cached) " >&6
15431 else
15432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15433 /* end confdefs.h. */
15434 int i;
15435 int
15436 main ()
15437 {
15438
15439 ;
15440 return 0;
15441 }
15442 _ACEOF
15443 if ac_fn_c_try_link "$LINENO"; then :
15444 eval $cacheid=yes
15445 else
15446 eval $cacheid=no
15447 fi
15448 rm -f core conftest.err conftest.$ac_objext \
15449 conftest$ac_exeext conftest.$ac_ext
15450 fi
15451
15452
15453 CFLAGS="$xorg_testset_save_CFLAGS"
15454
15455 eval supported=\$$cacheid
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15457 $as_echo "$supported" >&6; }
15458 if test "$supported" = "yes" ; then
15459 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15460 found="yes"
15461 fi
15462 fi
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478 xorg_testset_save_CFLAGS="$CFLAGS"
15479
15480 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15481 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15483 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15484 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15485 $as_echo_n "(cached) " >&6
15486 else
15487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15488 /* end confdefs.h. */
15489 int i;
15490 _ACEOF
15491 if ac_fn_c_try_compile "$LINENO"; then :
15492 xorg_cv_cc_flag_unknown_warning_option=yes
15493 else
15494 xorg_cv_cc_flag_unknown_warning_option=no
15495 fi
15496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15497 fi
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15499 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15500 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15501 CFLAGS="$xorg_testset_save_CFLAGS"
15502 fi
15503
15504 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15505 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15506 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15507 fi
15508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15510 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15511 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15512 $as_echo_n "(cached) " >&6
15513 else
15514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15515 /* end confdefs.h. */
15516 int i;
15517 _ACEOF
15518 if ac_fn_c_try_compile "$LINENO"; then :
15519 xorg_cv_cc_flag_unused_command_line_argument=yes
15520 else
15521 xorg_cv_cc_flag_unused_command_line_argument=no
15522 fi
15523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15524 fi
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15526 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15527 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15528 CFLAGS="$xorg_testset_save_CFLAGS"
15529 fi
15530
15531 found="no"
15532
15533 if test $found = "no" ; then
15534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15535 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15536 fi
15537
15538 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15540 fi
15541
15542 CFLAGS="$CFLAGS -Werror=address"
15543
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15545 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15546 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
15547 if eval \${$cacheid+:} false; then :
15548 $as_echo_n "(cached) " >&6
15549 else
15550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15551 /* end confdefs.h. */
15552 int i;
15553 int
15554 main ()
15555 {
15556
15557 ;
15558 return 0;
15559 }
15560 _ACEOF
15561 if ac_fn_c_try_link "$LINENO"; then :
15562 eval $cacheid=yes
15563 else
15564 eval $cacheid=no
15565 fi
15566 rm -f core conftest.err conftest.$ac_objext \
15567 conftest$ac_exeext conftest.$ac_ext
15568 fi
15569
15570
15571 CFLAGS="$xorg_testset_save_CFLAGS"
15572
15573 eval supported=\$$cacheid
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15575 $as_echo "$supported" >&6; }
15576 if test "$supported" = "yes" ; then
15577 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15578 found="yes"
15579 fi
15580 fi
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596 xorg_testset_save_CFLAGS="$CFLAGS"
15597
15598 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15599 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15601 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15602 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15603 $as_echo_n "(cached) " >&6
15604 else
15605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15606 /* end confdefs.h. */
15607 int i;
15608 _ACEOF
15609 if ac_fn_c_try_compile "$LINENO"; then :
15610 xorg_cv_cc_flag_unknown_warning_option=yes
15611 else
15612 xorg_cv_cc_flag_unknown_warning_option=no
15613 fi
15614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15615 fi
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15617 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15618 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15619 CFLAGS="$xorg_testset_save_CFLAGS"
15620 fi
15621
15622 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15624 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15625 fi
15626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15628 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15629 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15630 $as_echo_n "(cached) " >&6
15631 else
15632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15633 /* end confdefs.h. */
15634 int i;
15635 _ACEOF
15636 if ac_fn_c_try_compile "$LINENO"; then :
15637 xorg_cv_cc_flag_unused_command_line_argument=yes
15638 else
15639 xorg_cv_cc_flag_unused_command_line_argument=no
15640 fi
15641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15642 fi
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15644 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15645 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15646 CFLAGS="$xorg_testset_save_CFLAGS"
15647 fi
15648
15649 found="no"
15650
15651 if test $found = "no" ; then
15652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15653 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15654 fi
15655
15656 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15658 fi
15659
15660 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15661
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15663 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15664 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
15665 if eval \${$cacheid+:} false; then :
15666 $as_echo_n "(cached) " >&6
15667 else
15668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15669 /* end confdefs.h. */
15670 int i;
15671 int
15672 main ()
15673 {
15674
15675 ;
15676 return 0;
15677 }
15678 _ACEOF
15679 if ac_fn_c_try_link "$LINENO"; then :
15680 eval $cacheid=yes
15681 else
15682 eval $cacheid=no
15683 fi
15684 rm -f core conftest.err conftest.$ac_objext \
15685 conftest$ac_exeext conftest.$ac_ext
15686 fi
15687
15688
15689 CFLAGS="$xorg_testset_save_CFLAGS"
15690
15691 eval supported=\$$cacheid
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15693 $as_echo "$supported" >&6; }
15694 if test "$supported" = "yes" ; then
15695 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15696 found="yes"
15697 fi
15698 fi
15699
15700 if test $found = "no" ; then
15701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15703 fi
15704
15705 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15707 fi
15708
15709 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15710
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15712 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15713 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
15714 if eval \${$cacheid+:} false; then :
15715 $as_echo_n "(cached) " >&6
15716 else
15717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15718 /* end confdefs.h. */
15719 int i;
15720 int
15721 main ()
15722 {
15723
15724 ;
15725 return 0;
15726 }
15727 _ACEOF
15728 if ac_fn_c_try_link "$LINENO"; then :
15729 eval $cacheid=yes
15730 else
15731 eval $cacheid=no
15732 fi
15733 rm -f core conftest.err conftest.$ac_objext \
15734 conftest$ac_exeext conftest.$ac_ext
15735 fi
15736
15737
15738 CFLAGS="$xorg_testset_save_CFLAGS"
15739
15740 eval supported=\$$cacheid
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15742 $as_echo "$supported" >&6; }
15743 if test "$supported" = "yes" ; then
15744 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15745 found="yes"
15746 fi
15747 fi
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763 xorg_testset_save_CFLAGS="$CFLAGS"
15764
15765 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15768 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15769 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15770 $as_echo_n "(cached) " >&6
15771 else
15772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15773 /* end confdefs.h. */
15774 int i;
15775 _ACEOF
15776 if ac_fn_c_try_compile "$LINENO"; then :
15777 xorg_cv_cc_flag_unknown_warning_option=yes
15778 else
15779 xorg_cv_cc_flag_unknown_warning_option=no
15780 fi
15781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15782 fi
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15784 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15785 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15786 CFLAGS="$xorg_testset_save_CFLAGS"
15787 fi
15788
15789 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15791 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15792 fi
15793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15795 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15796 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15797 $as_echo_n "(cached) " >&6
15798 else
15799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15800 /* end confdefs.h. */
15801 int i;
15802 _ACEOF
15803 if ac_fn_c_try_compile "$LINENO"; then :
15804 xorg_cv_cc_flag_unused_command_line_argument=yes
15805 else
15806 xorg_cv_cc_flag_unused_command_line_argument=no
15807 fi
15808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15809 fi
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15811 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15812 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15813 CFLAGS="$xorg_testset_save_CFLAGS"
15814 fi
15815
15816 found="no"
15817
15818 if test $found = "no" ; then
15819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15821 fi
15822
15823 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15825 fi
15826
15827 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15828
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15830 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15831 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
15832 if eval \${$cacheid+:} false; then :
15833 $as_echo_n "(cached) " >&6
15834 else
15835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15836 /* end confdefs.h. */
15837 int i;
15838 int
15839 main ()
15840 {
15841
15842 ;
15843 return 0;
15844 }
15845 _ACEOF
15846 if ac_fn_c_try_link "$LINENO"; then :
15847 eval $cacheid=yes
15848 else
15849 eval $cacheid=no
15850 fi
15851 rm -f core conftest.err conftest.$ac_objext \
15852 conftest$ac_exeext conftest.$ac_ext
15853 fi
15854
15855
15856 CFLAGS="$xorg_testset_save_CFLAGS"
15857
15858 eval supported=\$$cacheid
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15860 $as_echo "$supported" >&6; }
15861 if test "$supported" = "yes" ; then
15862 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15863 found="yes"
15864 fi
15865 fi
15866
15867 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15868 else
15869 { $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
15870 $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;}
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884 xorg_testset_save_CFLAGS="$CFLAGS"
15885
15886 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15887 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15889 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15890 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15891 $as_echo_n "(cached) " >&6
15892 else
15893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15894 /* end confdefs.h. */
15895 int i;
15896 _ACEOF
15897 if ac_fn_c_try_compile "$LINENO"; then :
15898 xorg_cv_cc_flag_unknown_warning_option=yes
15899 else
15900 xorg_cv_cc_flag_unknown_warning_option=no
15901 fi
15902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15903 fi
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15905 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15906 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15907 CFLAGS="$xorg_testset_save_CFLAGS"
15908 fi
15909
15910 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15912 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15913 fi
15914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15916 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15917 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15918 $as_echo_n "(cached) " >&6
15919 else
15920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15921 /* end confdefs.h. */
15922 int i;
15923 _ACEOF
15924 if ac_fn_c_try_compile "$LINENO"; then :
15925 xorg_cv_cc_flag_unused_command_line_argument=yes
15926 else
15927 xorg_cv_cc_flag_unused_command_line_argument=no
15928 fi
15929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15930 fi
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15932 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15933 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15934 CFLAGS="$xorg_testset_save_CFLAGS"
15935 fi
15936
15937 found="no"
15938
15939 if test $found = "no" ; then
15940 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15941 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15942 fi
15943
15944 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15946 fi
15947
15948 CFLAGS="$CFLAGS -Wimplicit"
15949
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15951 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15952 cacheid=xorg_cv_cc_flag__Wimplicit
15953 if eval \${$cacheid+:} false; then :
15954 $as_echo_n "(cached) " >&6
15955 else
15956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15957 /* end confdefs.h. */
15958 int i;
15959 int
15960 main ()
15961 {
15962
15963 ;
15964 return 0;
15965 }
15966 _ACEOF
15967 if ac_fn_c_try_link "$LINENO"; then :
15968 eval $cacheid=yes
15969 else
15970 eval $cacheid=no
15971 fi
15972 rm -f core conftest.err conftest.$ac_objext \
15973 conftest$ac_exeext conftest.$ac_ext
15974 fi
15975
15976
15977 CFLAGS="$xorg_testset_save_CFLAGS"
15978
15979 eval supported=\$$cacheid
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15981 $as_echo "$supported" >&6; }
15982 if test "$supported" = "yes" ; then
15983 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15984 found="yes"
15985 fi
15986 fi
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002 xorg_testset_save_CFLAGS="$CFLAGS"
16003
16004 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16005 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16007 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16008 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16009 $as_echo_n "(cached) " >&6
16010 else
16011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16012 /* end confdefs.h. */
16013 int i;
16014 _ACEOF
16015 if ac_fn_c_try_compile "$LINENO"; then :
16016 xorg_cv_cc_flag_unknown_warning_option=yes
16017 else
16018 xorg_cv_cc_flag_unknown_warning_option=no
16019 fi
16020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16021 fi
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16023 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16024 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16025 CFLAGS="$xorg_testset_save_CFLAGS"
16026 fi
16027
16028 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16030 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16031 fi
16032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16034 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16035 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16036 $as_echo_n "(cached) " >&6
16037 else
16038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16039 /* end confdefs.h. */
16040 int i;
16041 _ACEOF
16042 if ac_fn_c_try_compile "$LINENO"; then :
16043 xorg_cv_cc_flag_unused_command_line_argument=yes
16044 else
16045 xorg_cv_cc_flag_unused_command_line_argument=no
16046 fi
16047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16048 fi
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16050 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16051 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16052 CFLAGS="$xorg_testset_save_CFLAGS"
16053 fi
16054
16055 found="no"
16056
16057 if test $found = "no" ; then
16058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16059 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16060 fi
16061
16062 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16064 fi
16065
16066 CFLAGS="$CFLAGS -Wnonnull"
16067
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16069 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16070 cacheid=xorg_cv_cc_flag__Wnonnull
16071 if eval \${$cacheid+:} false; then :
16072 $as_echo_n "(cached) " >&6
16073 else
16074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16075 /* end confdefs.h. */
16076 int i;
16077 int
16078 main ()
16079 {
16080
16081 ;
16082 return 0;
16083 }
16084 _ACEOF
16085 if ac_fn_c_try_link "$LINENO"; then :
16086 eval $cacheid=yes
16087 else
16088 eval $cacheid=no
16089 fi
16090 rm -f core conftest.err conftest.$ac_objext \
16091 conftest$ac_exeext conftest.$ac_ext
16092 fi
16093
16094
16095 CFLAGS="$xorg_testset_save_CFLAGS"
16096
16097 eval supported=\$$cacheid
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16099 $as_echo "$supported" >&6; }
16100 if test "$supported" = "yes" ; then
16101 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16102 found="yes"
16103 fi
16104 fi
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120 xorg_testset_save_CFLAGS="$CFLAGS"
16121
16122 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16123 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16125 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16126 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16127 $as_echo_n "(cached) " >&6
16128 else
16129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16130 /* end confdefs.h. */
16131 int i;
16132 _ACEOF
16133 if ac_fn_c_try_compile "$LINENO"; then :
16134 xorg_cv_cc_flag_unknown_warning_option=yes
16135 else
16136 xorg_cv_cc_flag_unknown_warning_option=no
16137 fi
16138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16139 fi
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16141 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16142 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16143 CFLAGS="$xorg_testset_save_CFLAGS"
16144 fi
16145
16146 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16148 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16149 fi
16150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16152 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16153 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16154 $as_echo_n "(cached) " >&6
16155 else
16156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16157 /* end confdefs.h. */
16158 int i;
16159 _ACEOF
16160 if ac_fn_c_try_compile "$LINENO"; then :
16161 xorg_cv_cc_flag_unused_command_line_argument=yes
16162 else
16163 xorg_cv_cc_flag_unused_command_line_argument=no
16164 fi
16165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16166 fi
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16168 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16169 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16170 CFLAGS="$xorg_testset_save_CFLAGS"
16171 fi
16172
16173 found="no"
16174
16175 if test $found = "no" ; then
16176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16177 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16178 fi
16179
16180 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16182 fi
16183
16184 CFLAGS="$CFLAGS -Winit-self"
16185
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16187 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16188 cacheid=xorg_cv_cc_flag__Winit_self
16189 if eval \${$cacheid+:} false; then :
16190 $as_echo_n "(cached) " >&6
16191 else
16192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16193 /* end confdefs.h. */
16194 int i;
16195 int
16196 main ()
16197 {
16198
16199 ;
16200 return 0;
16201 }
16202 _ACEOF
16203 if ac_fn_c_try_link "$LINENO"; then :
16204 eval $cacheid=yes
16205 else
16206 eval $cacheid=no
16207 fi
16208 rm -f core conftest.err conftest.$ac_objext \
16209 conftest$ac_exeext conftest.$ac_ext
16210 fi
16211
16212
16213 CFLAGS="$xorg_testset_save_CFLAGS"
16214
16215 eval supported=\$$cacheid
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16217 $as_echo "$supported" >&6; }
16218 if test "$supported" = "yes" ; then
16219 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16220 found="yes"
16221 fi
16222 fi
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238 xorg_testset_save_CFLAGS="$CFLAGS"
16239
16240 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16243 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16244 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16245 $as_echo_n "(cached) " >&6
16246 else
16247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16248 /* end confdefs.h. */
16249 int i;
16250 _ACEOF
16251 if ac_fn_c_try_compile "$LINENO"; then :
16252 xorg_cv_cc_flag_unknown_warning_option=yes
16253 else
16254 xorg_cv_cc_flag_unknown_warning_option=no
16255 fi
16256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16257 fi
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16259 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16260 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16261 CFLAGS="$xorg_testset_save_CFLAGS"
16262 fi
16263
16264 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16266 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16267 fi
16268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16270 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16271 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16272 $as_echo_n "(cached) " >&6
16273 else
16274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16275 /* end confdefs.h. */
16276 int i;
16277 _ACEOF
16278 if ac_fn_c_try_compile "$LINENO"; then :
16279 xorg_cv_cc_flag_unused_command_line_argument=yes
16280 else
16281 xorg_cv_cc_flag_unused_command_line_argument=no
16282 fi
16283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16284 fi
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16286 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16287 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16288 CFLAGS="$xorg_testset_save_CFLAGS"
16289 fi
16290
16291 found="no"
16292
16293 if test $found = "no" ; then
16294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16295 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16296 fi
16297
16298 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16300 fi
16301
16302 CFLAGS="$CFLAGS -Wmain"
16303
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16305 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
16306 cacheid=xorg_cv_cc_flag__Wmain
16307 if eval \${$cacheid+:} false; then :
16308 $as_echo_n "(cached) " >&6
16309 else
16310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16311 /* end confdefs.h. */
16312 int i;
16313 int
16314 main ()
16315 {
16316
16317 ;
16318 return 0;
16319 }
16320 _ACEOF
16321 if ac_fn_c_try_link "$LINENO"; then :
16322 eval $cacheid=yes
16323 else
16324 eval $cacheid=no
16325 fi
16326 rm -f core conftest.err conftest.$ac_objext \
16327 conftest$ac_exeext conftest.$ac_ext
16328 fi
16329
16330
16331 CFLAGS="$xorg_testset_save_CFLAGS"
16332
16333 eval supported=\$$cacheid
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16335 $as_echo "$supported" >&6; }
16336 if test "$supported" = "yes" ; then
16337 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16338 found="yes"
16339 fi
16340 fi
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356 xorg_testset_save_CFLAGS="$CFLAGS"
16357
16358 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16359 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16361 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16362 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16363 $as_echo_n "(cached) " >&6
16364 else
16365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16366 /* end confdefs.h. */
16367 int i;
16368 _ACEOF
16369 if ac_fn_c_try_compile "$LINENO"; then :
16370 xorg_cv_cc_flag_unknown_warning_option=yes
16371 else
16372 xorg_cv_cc_flag_unknown_warning_option=no
16373 fi
16374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16375 fi
16376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16377 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16378 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16379 CFLAGS="$xorg_testset_save_CFLAGS"
16380 fi
16381
16382 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16384 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16385 fi
16386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16388 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16389 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16390 $as_echo_n "(cached) " >&6
16391 else
16392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16393 /* end confdefs.h. */
16394 int i;
16395 _ACEOF
16396 if ac_fn_c_try_compile "$LINENO"; then :
16397 xorg_cv_cc_flag_unused_command_line_argument=yes
16398 else
16399 xorg_cv_cc_flag_unused_command_line_argument=no
16400 fi
16401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16402 fi
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16404 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16405 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16406 CFLAGS="$xorg_testset_save_CFLAGS"
16407 fi
16408
16409 found="no"
16410
16411 if test $found = "no" ; then
16412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16413 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16414 fi
16415
16416 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16418 fi
16419
16420 CFLAGS="$CFLAGS -Wmissing-braces"
16421
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16423 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16424 cacheid=xorg_cv_cc_flag__Wmissing_braces
16425 if eval \${$cacheid+:} false; then :
16426 $as_echo_n "(cached) " >&6
16427 else
16428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16429 /* end confdefs.h. */
16430 int i;
16431 int
16432 main ()
16433 {
16434
16435 ;
16436 return 0;
16437 }
16438 _ACEOF
16439 if ac_fn_c_try_link "$LINENO"; then :
16440 eval $cacheid=yes
16441 else
16442 eval $cacheid=no
16443 fi
16444 rm -f core conftest.err conftest.$ac_objext \
16445 conftest$ac_exeext conftest.$ac_ext
16446 fi
16447
16448
16449 CFLAGS="$xorg_testset_save_CFLAGS"
16450
16451 eval supported=\$$cacheid
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16453 $as_echo "$supported" >&6; }
16454 if test "$supported" = "yes" ; then
16455 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16456 found="yes"
16457 fi
16458 fi
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474 xorg_testset_save_CFLAGS="$CFLAGS"
16475
16476 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16477 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16479 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16480 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16481 $as_echo_n "(cached) " >&6
16482 else
16483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16484 /* end confdefs.h. */
16485 int i;
16486 _ACEOF
16487 if ac_fn_c_try_compile "$LINENO"; then :
16488 xorg_cv_cc_flag_unknown_warning_option=yes
16489 else
16490 xorg_cv_cc_flag_unknown_warning_option=no
16491 fi
16492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16493 fi
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16495 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16496 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16497 CFLAGS="$xorg_testset_save_CFLAGS"
16498 fi
16499
16500 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16503 fi
16504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16506 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16507 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16508 $as_echo_n "(cached) " >&6
16509 else
16510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16511 /* end confdefs.h. */
16512 int i;
16513 _ACEOF
16514 if ac_fn_c_try_compile "$LINENO"; then :
16515 xorg_cv_cc_flag_unused_command_line_argument=yes
16516 else
16517 xorg_cv_cc_flag_unused_command_line_argument=no
16518 fi
16519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16520 fi
16521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16522 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16523 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16524 CFLAGS="$xorg_testset_save_CFLAGS"
16525 fi
16526
16527 found="no"
16528
16529 if test $found = "no" ; then
16530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16532 fi
16533
16534 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16536 fi
16537
16538 CFLAGS="$CFLAGS -Wsequence-point"
16539
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16541 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16542 cacheid=xorg_cv_cc_flag__Wsequence_point
16543 if eval \${$cacheid+:} false; then :
16544 $as_echo_n "(cached) " >&6
16545 else
16546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16547 /* end confdefs.h. */
16548 int i;
16549 int
16550 main ()
16551 {
16552
16553 ;
16554 return 0;
16555 }
16556 _ACEOF
16557 if ac_fn_c_try_link "$LINENO"; then :
16558 eval $cacheid=yes
16559 else
16560 eval $cacheid=no
16561 fi
16562 rm -f core conftest.err conftest.$ac_objext \
16563 conftest$ac_exeext conftest.$ac_ext
16564 fi
16565
16566
16567 CFLAGS="$xorg_testset_save_CFLAGS"
16568
16569 eval supported=\$$cacheid
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16571 $as_echo "$supported" >&6; }
16572 if test "$supported" = "yes" ; then
16573 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16574 found="yes"
16575 fi
16576 fi
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592 xorg_testset_save_CFLAGS="$CFLAGS"
16593
16594 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16595 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16597 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16598 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16599 $as_echo_n "(cached) " >&6
16600 else
16601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16602 /* end confdefs.h. */
16603 int i;
16604 _ACEOF
16605 if ac_fn_c_try_compile "$LINENO"; then :
16606 xorg_cv_cc_flag_unknown_warning_option=yes
16607 else
16608 xorg_cv_cc_flag_unknown_warning_option=no
16609 fi
16610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16611 fi
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16613 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16614 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16615 CFLAGS="$xorg_testset_save_CFLAGS"
16616 fi
16617
16618 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16620 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16621 fi
16622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16624 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16625 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16626 $as_echo_n "(cached) " >&6
16627 else
16628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16629 /* end confdefs.h. */
16630 int i;
16631 _ACEOF
16632 if ac_fn_c_try_compile "$LINENO"; then :
16633 xorg_cv_cc_flag_unused_command_line_argument=yes
16634 else
16635 xorg_cv_cc_flag_unused_command_line_argument=no
16636 fi
16637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16638 fi
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16640 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16641 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16642 CFLAGS="$xorg_testset_save_CFLAGS"
16643 fi
16644
16645 found="no"
16646
16647 if test $found = "no" ; then
16648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16649 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16650 fi
16651
16652 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16654 fi
16655
16656 CFLAGS="$CFLAGS -Wreturn-type"
16657
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16659 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16660 cacheid=xorg_cv_cc_flag__Wreturn_type
16661 if eval \${$cacheid+:} false; then :
16662 $as_echo_n "(cached) " >&6
16663 else
16664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16665 /* end confdefs.h. */
16666 int i;
16667 int
16668 main ()
16669 {
16670
16671 ;
16672 return 0;
16673 }
16674 _ACEOF
16675 if ac_fn_c_try_link "$LINENO"; then :
16676 eval $cacheid=yes
16677 else
16678 eval $cacheid=no
16679 fi
16680 rm -f core conftest.err conftest.$ac_objext \
16681 conftest$ac_exeext conftest.$ac_ext
16682 fi
16683
16684
16685 CFLAGS="$xorg_testset_save_CFLAGS"
16686
16687 eval supported=\$$cacheid
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16689 $as_echo "$supported" >&6; }
16690 if test "$supported" = "yes" ; then
16691 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16692 found="yes"
16693 fi
16694 fi
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710 xorg_testset_save_CFLAGS="$CFLAGS"
16711
16712 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16713 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16715 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16716 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16717 $as_echo_n "(cached) " >&6
16718 else
16719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16720 /* end confdefs.h. */
16721 int i;
16722 _ACEOF
16723 if ac_fn_c_try_compile "$LINENO"; then :
16724 xorg_cv_cc_flag_unknown_warning_option=yes
16725 else
16726 xorg_cv_cc_flag_unknown_warning_option=no
16727 fi
16728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16729 fi
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16731 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16732 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16733 CFLAGS="$xorg_testset_save_CFLAGS"
16734 fi
16735
16736 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16737 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16738 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16739 fi
16740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16742 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16743 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16744 $as_echo_n "(cached) " >&6
16745 else
16746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16747 /* end confdefs.h. */
16748 int i;
16749 _ACEOF
16750 if ac_fn_c_try_compile "$LINENO"; then :
16751 xorg_cv_cc_flag_unused_command_line_argument=yes
16752 else
16753 xorg_cv_cc_flag_unused_command_line_argument=no
16754 fi
16755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16756 fi
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16758 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16759 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16760 CFLAGS="$xorg_testset_save_CFLAGS"
16761 fi
16762
16763 found="no"
16764
16765 if test $found = "no" ; then
16766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16767 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16768 fi
16769
16770 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16772 fi
16773
16774 CFLAGS="$CFLAGS -Wtrigraphs"
16775
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16777 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16778 cacheid=xorg_cv_cc_flag__Wtrigraphs
16779 if eval \${$cacheid+:} false; then :
16780 $as_echo_n "(cached) " >&6
16781 else
16782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16783 /* end confdefs.h. */
16784 int i;
16785 int
16786 main ()
16787 {
16788
16789 ;
16790 return 0;
16791 }
16792 _ACEOF
16793 if ac_fn_c_try_link "$LINENO"; then :
16794 eval $cacheid=yes
16795 else
16796 eval $cacheid=no
16797 fi
16798 rm -f core conftest.err conftest.$ac_objext \
16799 conftest$ac_exeext conftest.$ac_ext
16800 fi
16801
16802
16803 CFLAGS="$xorg_testset_save_CFLAGS"
16804
16805 eval supported=\$$cacheid
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16807 $as_echo "$supported" >&6; }
16808 if test "$supported" = "yes" ; then
16809 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16810 found="yes"
16811 fi
16812 fi
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828 xorg_testset_save_CFLAGS="$CFLAGS"
16829
16830 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16831 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16833 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16834 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16835 $as_echo_n "(cached) " >&6
16836 else
16837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16838 /* end confdefs.h. */
16839 int i;
16840 _ACEOF
16841 if ac_fn_c_try_compile "$LINENO"; then :
16842 xorg_cv_cc_flag_unknown_warning_option=yes
16843 else
16844 xorg_cv_cc_flag_unknown_warning_option=no
16845 fi
16846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16847 fi
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16849 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16850 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16851 CFLAGS="$xorg_testset_save_CFLAGS"
16852 fi
16853
16854 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16856 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16857 fi
16858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16860 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16861 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16862 $as_echo_n "(cached) " >&6
16863 else
16864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16865 /* end confdefs.h. */
16866 int i;
16867 _ACEOF
16868 if ac_fn_c_try_compile "$LINENO"; then :
16869 xorg_cv_cc_flag_unused_command_line_argument=yes
16870 else
16871 xorg_cv_cc_flag_unused_command_line_argument=no
16872 fi
16873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16874 fi
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16876 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16877 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16878 CFLAGS="$xorg_testset_save_CFLAGS"
16879 fi
16880
16881 found="no"
16882
16883 if test $found = "no" ; then
16884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16886 fi
16887
16888 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16890 fi
16891
16892 CFLAGS="$CFLAGS -Warray-bounds"
16893
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16895 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16896 cacheid=xorg_cv_cc_flag__Warray_bounds
16897 if eval \${$cacheid+:} false; then :
16898 $as_echo_n "(cached) " >&6
16899 else
16900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16901 /* end confdefs.h. */
16902 int i;
16903 int
16904 main ()
16905 {
16906
16907 ;
16908 return 0;
16909 }
16910 _ACEOF
16911 if ac_fn_c_try_link "$LINENO"; then :
16912 eval $cacheid=yes
16913 else
16914 eval $cacheid=no
16915 fi
16916 rm -f core conftest.err conftest.$ac_objext \
16917 conftest$ac_exeext conftest.$ac_ext
16918 fi
16919
16920
16921 CFLAGS="$xorg_testset_save_CFLAGS"
16922
16923 eval supported=\$$cacheid
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16925 $as_echo "$supported" >&6; }
16926 if test "$supported" = "yes" ; then
16927 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16928 found="yes"
16929 fi
16930 fi
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946 xorg_testset_save_CFLAGS="$CFLAGS"
16947
16948 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16949 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16951 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16952 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16953 $as_echo_n "(cached) " >&6
16954 else
16955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16956 /* end confdefs.h. */
16957 int i;
16958 _ACEOF
16959 if ac_fn_c_try_compile "$LINENO"; then :
16960 xorg_cv_cc_flag_unknown_warning_option=yes
16961 else
16962 xorg_cv_cc_flag_unknown_warning_option=no
16963 fi
16964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16965 fi
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16967 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16968 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16969 CFLAGS="$xorg_testset_save_CFLAGS"
16970 fi
16971
16972 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16974 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16975 fi
16976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16978 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16979 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16980 $as_echo_n "(cached) " >&6
16981 else
16982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16983 /* end confdefs.h. */
16984 int i;
16985 _ACEOF
16986 if ac_fn_c_try_compile "$LINENO"; then :
16987 xorg_cv_cc_flag_unused_command_line_argument=yes
16988 else
16989 xorg_cv_cc_flag_unused_command_line_argument=no
16990 fi
16991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16992 fi
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16994 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16995 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16996 CFLAGS="$xorg_testset_save_CFLAGS"
16997 fi
16998
16999 found="no"
17000
17001 if test $found = "no" ; then
17002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17003 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17004 fi
17005
17006 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17008 fi
17009
17010 CFLAGS="$CFLAGS -Wwrite-strings"
17011
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17013 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17014 cacheid=xorg_cv_cc_flag__Wwrite_strings
17015 if eval \${$cacheid+:} false; then :
17016 $as_echo_n "(cached) " >&6
17017 else
17018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17019 /* end confdefs.h. */
17020 int i;
17021 int
17022 main ()
17023 {
17024
17025 ;
17026 return 0;
17027 }
17028 _ACEOF
17029 if ac_fn_c_try_link "$LINENO"; then :
17030 eval $cacheid=yes
17031 else
17032 eval $cacheid=no
17033 fi
17034 rm -f core conftest.err conftest.$ac_objext \
17035 conftest$ac_exeext conftest.$ac_ext
17036 fi
17037
17038
17039 CFLAGS="$xorg_testset_save_CFLAGS"
17040
17041 eval supported=\$$cacheid
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17043 $as_echo "$supported" >&6; }
17044 if test "$supported" = "yes" ; then
17045 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17046 found="yes"
17047 fi
17048 fi
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064 xorg_testset_save_CFLAGS="$CFLAGS"
17065
17066 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17067 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17069 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17070 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17071 $as_echo_n "(cached) " >&6
17072 else
17073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17074 /* end confdefs.h. */
17075 int i;
17076 _ACEOF
17077 if ac_fn_c_try_compile "$LINENO"; then :
17078 xorg_cv_cc_flag_unknown_warning_option=yes
17079 else
17080 xorg_cv_cc_flag_unknown_warning_option=no
17081 fi
17082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17083 fi
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17085 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17086 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17087 CFLAGS="$xorg_testset_save_CFLAGS"
17088 fi
17089
17090 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17092 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17093 fi
17094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17096 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17097 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17098 $as_echo_n "(cached) " >&6
17099 else
17100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17101 /* end confdefs.h. */
17102 int i;
17103 _ACEOF
17104 if ac_fn_c_try_compile "$LINENO"; then :
17105 xorg_cv_cc_flag_unused_command_line_argument=yes
17106 else
17107 xorg_cv_cc_flag_unused_command_line_argument=no
17108 fi
17109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17110 fi
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17112 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17113 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17114 CFLAGS="$xorg_testset_save_CFLAGS"
17115 fi
17116
17117 found="no"
17118
17119 if test $found = "no" ; then
17120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17122 fi
17123
17124 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17126 fi
17127
17128 CFLAGS="$CFLAGS -Waddress"
17129
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17131 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
17132 cacheid=xorg_cv_cc_flag__Waddress
17133 if eval \${$cacheid+:} false; then :
17134 $as_echo_n "(cached) " >&6
17135 else
17136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17137 /* end confdefs.h. */
17138 int i;
17139 int
17140 main ()
17141 {
17142
17143 ;
17144 return 0;
17145 }
17146 _ACEOF
17147 if ac_fn_c_try_link "$LINENO"; then :
17148 eval $cacheid=yes
17149 else
17150 eval $cacheid=no
17151 fi
17152 rm -f core conftest.err conftest.$ac_objext \
17153 conftest$ac_exeext conftest.$ac_ext
17154 fi
17155
17156
17157 CFLAGS="$xorg_testset_save_CFLAGS"
17158
17159 eval supported=\$$cacheid
17160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17161 $as_echo "$supported" >&6; }
17162 if test "$supported" = "yes" ; then
17163 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17164 found="yes"
17165 fi
17166 fi
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182 xorg_testset_save_CFLAGS="$CFLAGS"
17183
17184 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17185 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17187 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17188 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17189 $as_echo_n "(cached) " >&6
17190 else
17191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17192 /* end confdefs.h. */
17193 int i;
17194 _ACEOF
17195 if ac_fn_c_try_compile "$LINENO"; then :
17196 xorg_cv_cc_flag_unknown_warning_option=yes
17197 else
17198 xorg_cv_cc_flag_unknown_warning_option=no
17199 fi
17200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17201 fi
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17203 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17204 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17205 CFLAGS="$xorg_testset_save_CFLAGS"
17206 fi
17207
17208 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17211 fi
17212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17214 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17215 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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 _ACEOF
17222 if ac_fn_c_try_compile "$LINENO"; then :
17223 xorg_cv_cc_flag_unused_command_line_argument=yes
17224 else
17225 xorg_cv_cc_flag_unused_command_line_argument=no
17226 fi
17227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17228 fi
17229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17230 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17231 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17232 CFLAGS="$xorg_testset_save_CFLAGS"
17233 fi
17234
17235 found="no"
17236
17237 if test $found = "no" ; then
17238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17240 fi
17241
17242 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17244 fi
17245
17246 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17247
17248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17249 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17250 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17251 if eval \${$cacheid+:} false; then :
17252 $as_echo_n "(cached) " >&6
17253 else
17254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17255 /* end confdefs.h. */
17256 int i;
17257 int
17258 main ()
17259 {
17260
17261 ;
17262 return 0;
17263 }
17264 _ACEOF
17265 if ac_fn_c_try_link "$LINENO"; then :
17266 eval $cacheid=yes
17267 else
17268 eval $cacheid=no
17269 fi
17270 rm -f core conftest.err conftest.$ac_objext \
17271 conftest$ac_exeext conftest.$ac_ext
17272 fi
17273
17274
17275 CFLAGS="$xorg_testset_save_CFLAGS"
17276
17277 eval supported=\$$cacheid
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17279 $as_echo "$supported" >&6; }
17280 if test "$supported" = "yes" ; then
17281 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17282 found="yes"
17283 fi
17284 fi
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300 xorg_testset_save_CFLAGS="$CFLAGS"
17301
17302 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17305 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17306 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17307 $as_echo_n "(cached) " >&6
17308 else
17309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17310 /* end confdefs.h. */
17311 int i;
17312 _ACEOF
17313 if ac_fn_c_try_compile "$LINENO"; then :
17314 xorg_cv_cc_flag_unknown_warning_option=yes
17315 else
17316 xorg_cv_cc_flag_unknown_warning_option=no
17317 fi
17318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17319 fi
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17321 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17322 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17323 CFLAGS="$xorg_testset_save_CFLAGS"
17324 fi
17325
17326 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17328 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17329 fi
17330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17332 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17333 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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 _ACEOF
17340 if ac_fn_c_try_compile "$LINENO"; then :
17341 xorg_cv_cc_flag_unused_command_line_argument=yes
17342 else
17343 xorg_cv_cc_flag_unused_command_line_argument=no
17344 fi
17345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17346 fi
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17348 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17349 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17350 CFLAGS="$xorg_testset_save_CFLAGS"
17351 fi
17352
17353 found="no"
17354
17355 if test $found = "no" ; then
17356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17358 fi
17359
17360 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17362 fi
17363
17364 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17365
17366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17367 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17368 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17369 if eval \${$cacheid+:} false; then :
17370 $as_echo_n "(cached) " >&6
17371 else
17372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17373 /* end confdefs.h. */
17374 int i;
17375 int
17376 main ()
17377 {
17378
17379 ;
17380 return 0;
17381 }
17382 _ACEOF
17383 if ac_fn_c_try_link "$LINENO"; then :
17384 eval $cacheid=yes
17385 else
17386 eval $cacheid=no
17387 fi
17388 rm -f core conftest.err conftest.$ac_objext \
17389 conftest$ac_exeext conftest.$ac_ext
17390 fi
17391
17392
17393 CFLAGS="$xorg_testset_save_CFLAGS"
17394
17395 eval supported=\$$cacheid
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17397 $as_echo "$supported" >&6; }
17398 if test "$supported" = "yes" ; then
17399 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17400 found="yes"
17401 fi
17402 fi
17403
17404
17405 fi
17406
17407
17408
17409
17410
17411
17412
17413 CWARNFLAGS="$BASE_CFLAGS"
17414 if test "x$GCC" = xyes ; then
17415 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17416 fi
17417
17418
17419
17420
17421
17422
17423
17424
17425 # Check whether --enable-strict-compilation was given.
17426 if test "${enable_strict_compilation+set}" = set; then :
17427 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17428 else
17429 STRICT_COMPILE=no
17430 fi
17431
17432
17433
17434
17435
17436
17437 STRICT_CFLAGS=""
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451 xorg_testset_save_CFLAGS="$CFLAGS"
17452
17453 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17454 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17456 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17457 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17458 $as_echo_n "(cached) " >&6
17459 else
17460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17461 /* end confdefs.h. */
17462 int i;
17463 _ACEOF
17464 if ac_fn_c_try_compile "$LINENO"; then :
17465 xorg_cv_cc_flag_unknown_warning_option=yes
17466 else
17467 xorg_cv_cc_flag_unknown_warning_option=no
17468 fi
17469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17470 fi
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17472 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17473 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17474 CFLAGS="$xorg_testset_save_CFLAGS"
17475 fi
17476
17477 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17478 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17479 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17480 fi
17481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17483 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17484 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17485 $as_echo_n "(cached) " >&6
17486 else
17487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17488 /* end confdefs.h. */
17489 int i;
17490 _ACEOF
17491 if ac_fn_c_try_compile "$LINENO"; then :
17492 xorg_cv_cc_flag_unused_command_line_argument=yes
17493 else
17494 xorg_cv_cc_flag_unused_command_line_argument=no
17495 fi
17496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17497 fi
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17499 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17500 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17501 CFLAGS="$xorg_testset_save_CFLAGS"
17502 fi
17503
17504 found="no"
17505
17506 if test $found = "no" ; then
17507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17509 fi
17510
17511 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17513 fi
17514
17515 CFLAGS="$CFLAGS -pedantic"
17516
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17518 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17519 cacheid=xorg_cv_cc_flag__pedantic
17520 if eval \${$cacheid+:} false; then :
17521 $as_echo_n "(cached) " >&6
17522 else
17523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17524 /* end confdefs.h. */
17525 int i;
17526 int
17527 main ()
17528 {
17529
17530 ;
17531 return 0;
17532 }
17533 _ACEOF
17534 if ac_fn_c_try_link "$LINENO"; then :
17535 eval $cacheid=yes
17536 else
17537 eval $cacheid=no
17538 fi
17539 rm -f core conftest.err conftest.$ac_objext \
17540 conftest$ac_exeext conftest.$ac_ext
17541 fi
17542
17543
17544 CFLAGS="$xorg_testset_save_CFLAGS"
17545
17546 eval supported=\$$cacheid
17547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17548 $as_echo "$supported" >&6; }
17549 if test "$supported" = "yes" ; then
17550 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17551 found="yes"
17552 fi
17553 fi
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569 xorg_testset_save_CFLAGS="$CFLAGS"
17570
17571 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17572 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17574 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17575 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17576 $as_echo_n "(cached) " >&6
17577 else
17578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17579 /* end confdefs.h. */
17580 int i;
17581 _ACEOF
17582 if ac_fn_c_try_compile "$LINENO"; then :
17583 xorg_cv_cc_flag_unknown_warning_option=yes
17584 else
17585 xorg_cv_cc_flag_unknown_warning_option=no
17586 fi
17587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17588 fi
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17590 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17591 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17592 CFLAGS="$xorg_testset_save_CFLAGS"
17593 fi
17594
17595 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17597 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17598 fi
17599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17601 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17602 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17603 $as_echo_n "(cached) " >&6
17604 else
17605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17606 /* end confdefs.h. */
17607 int i;
17608 _ACEOF
17609 if ac_fn_c_try_compile "$LINENO"; then :
17610 xorg_cv_cc_flag_unused_command_line_argument=yes
17611 else
17612 xorg_cv_cc_flag_unused_command_line_argument=no
17613 fi
17614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17615 fi
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17617 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17618 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17619 CFLAGS="$xorg_testset_save_CFLAGS"
17620 fi
17621
17622 found="no"
17623
17624 if test $found = "no" ; then
17625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17627 fi
17628
17629 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17631 fi
17632
17633 CFLAGS="$CFLAGS -Werror"
17634
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17636 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17637 cacheid=xorg_cv_cc_flag__Werror
17638 if eval \${$cacheid+:} false; then :
17639 $as_echo_n "(cached) " >&6
17640 else
17641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17642 /* end confdefs.h. */
17643 int i;
17644 int
17645 main ()
17646 {
17647
17648 ;
17649 return 0;
17650 }
17651 _ACEOF
17652 if ac_fn_c_try_link "$LINENO"; then :
17653 eval $cacheid=yes
17654 else
17655 eval $cacheid=no
17656 fi
17657 rm -f core conftest.err conftest.$ac_objext \
17658 conftest$ac_exeext conftest.$ac_ext
17659 fi
17660
17661
17662 CFLAGS="$xorg_testset_save_CFLAGS"
17663
17664 eval supported=\$$cacheid
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17666 $as_echo "$supported" >&6; }
17667 if test "$supported" = "yes" ; then
17668 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17669 found="yes"
17670 fi
17671 fi
17672
17673 if test $found = "no" ; then
17674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17676 fi
17677
17678 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17680 fi
17681
17682 CFLAGS="$CFLAGS -errwarn"
17683
17684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17685 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17686 cacheid=xorg_cv_cc_flag__errwarn
17687 if eval \${$cacheid+:} false; then :
17688 $as_echo_n "(cached) " >&6
17689 else
17690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17691 /* end confdefs.h. */
17692 int i;
17693 int
17694 main ()
17695 {
17696
17697 ;
17698 return 0;
17699 }
17700 _ACEOF
17701 if ac_fn_c_try_link "$LINENO"; then :
17702 eval $cacheid=yes
17703 else
17704 eval $cacheid=no
17705 fi
17706 rm -f core conftest.err conftest.$ac_objext \
17707 conftest$ac_exeext conftest.$ac_ext
17708 fi
17709
17710
17711 CFLAGS="$xorg_testset_save_CFLAGS"
17712
17713 eval supported=\$$cacheid
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17715 $as_echo "$supported" >&6; }
17716 if test "$supported" = "yes" ; then
17717 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17718 found="yes"
17719 fi
17720 fi
17721
17722
17723
17724 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17725 # activate it with -Werror, so we add it here explicitly.
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739 xorg_testset_save_CFLAGS="$CFLAGS"
17740
17741 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17742 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17744 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17745 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17746 $as_echo_n "(cached) " >&6
17747 else
17748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17749 /* end confdefs.h. */
17750 int i;
17751 _ACEOF
17752 if ac_fn_c_try_compile "$LINENO"; then :
17753 xorg_cv_cc_flag_unknown_warning_option=yes
17754 else
17755 xorg_cv_cc_flag_unknown_warning_option=no
17756 fi
17757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17758 fi
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17760 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17761 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17762 CFLAGS="$xorg_testset_save_CFLAGS"
17763 fi
17764
17765 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17767 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17768 fi
17769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17771 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17772 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17773 $as_echo_n "(cached) " >&6
17774 else
17775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17776 /* end confdefs.h. */
17777 int i;
17778 _ACEOF
17779 if ac_fn_c_try_compile "$LINENO"; then :
17780 xorg_cv_cc_flag_unused_command_line_argument=yes
17781 else
17782 xorg_cv_cc_flag_unused_command_line_argument=no
17783 fi
17784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17785 fi
17786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17787 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17788 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17789 CFLAGS="$xorg_testset_save_CFLAGS"
17790 fi
17791
17792 found="no"
17793
17794 if test $found = "no" ; then
17795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17797 fi
17798
17799 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17801 fi
17802
17803 CFLAGS="$CFLAGS -Werror=attributes"
17804
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17806 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17807 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
17808 if eval \${$cacheid+:} false; then :
17809 $as_echo_n "(cached) " >&6
17810 else
17811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17812 /* end confdefs.h. */
17813 int i;
17814 int
17815 main ()
17816 {
17817
17818 ;
17819 return 0;
17820 }
17821 _ACEOF
17822 if ac_fn_c_try_link "$LINENO"; then :
17823 eval $cacheid=yes
17824 else
17825 eval $cacheid=no
17826 fi
17827 rm -f core conftest.err conftest.$ac_objext \
17828 conftest$ac_exeext conftest.$ac_ext
17829 fi
17830
17831
17832 CFLAGS="$xorg_testset_save_CFLAGS"
17833
17834 eval supported=\$$cacheid
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17836 $as_echo "$supported" >&6; }
17837 if test "$supported" = "yes" ; then
17838 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17839 found="yes"
17840 fi
17841 fi
17842
17843
17844
17845 if test "x$STRICT_COMPILE" = "xyes"; then
17846 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17847 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17848 fi
17849
17850
17851
17852
17853
17854
17855 cat >>confdefs.h <<_ACEOF
17856 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17857 _ACEOF
17858
17859 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17860 if test "x$PVM" = "x"; then
17861 PVM="0"
17862 fi
17863
17864 cat >>confdefs.h <<_ACEOF
17865 #define PACKAGE_VERSION_MINOR $PVM
17866 _ACEOF
17867
17868 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17869 if test "x$PVP" = "x"; then
17870 PVP="0"
17871 fi
17872
17873 cat >>confdefs.h <<_ACEOF
17874 #define PACKAGE_VERSION_PATCHLEVEL $PVP
17875 _ACEOF
17876
17877
17878
17879 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17880 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17881 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17882 echo 'git directory not found: installing possibly empty changelog.' >&2)"
17883
17884
17885
17886
17887 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17888 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17889 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17890 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17891 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17892
17893
17894
17895
17896
17897
17898 if test x$APP_MAN_SUFFIX = x ; then
17899 APP_MAN_SUFFIX=1
17900 fi
17901 if test x$APP_MAN_DIR = x ; then
17902 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17903 fi
17904
17905 if test x$LIB_MAN_SUFFIX = x ; then
17906 LIB_MAN_SUFFIX=3
17907 fi
17908 if test x$LIB_MAN_DIR = x ; then
17909 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17910 fi
17911
17912 if test x$FILE_MAN_SUFFIX = x ; then
17913 case $host_os in
17914 solaris*) FILE_MAN_SUFFIX=4 ;;
17915 *) FILE_MAN_SUFFIX=5 ;;
17916 esac
17917 fi
17918 if test x$FILE_MAN_DIR = x ; then
17919 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17920 fi
17921
17922 if test x$MISC_MAN_SUFFIX = x ; then
17923 case $host_os in
17924 solaris*) MISC_MAN_SUFFIX=5 ;;
17925 *) MISC_MAN_SUFFIX=7 ;;
17926 esac
17927 fi
17928 if test x$MISC_MAN_DIR = x ; then
17929 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17930 fi
17931
17932 if test x$DRIVER_MAN_SUFFIX = x ; then
17933 case $host_os in
17934 solaris*) DRIVER_MAN_SUFFIX=7 ;;
17935 *) DRIVER_MAN_SUFFIX=4 ;;
17936 esac
17937 fi
17938 if test x$DRIVER_MAN_DIR = x ; then
17939 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17940 fi
17941
17942 if test x$ADMIN_MAN_SUFFIX = x ; then
17943 case $host_os in
17944 solaris*) ADMIN_MAN_SUFFIX=1m ;;
17945 *) ADMIN_MAN_SUFFIX=8 ;;
17946 esac
17947 fi
17948 if test x$ADMIN_MAN_DIR = x ; then
17949 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17950 fi
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966 XORG_MAN_PAGE="X Version 11"
17967
17968 MAN_SUBSTS="\
17969 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17970 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17971 -e 's|__xservername__|Xorg|g' \
17972 -e 's|__xconfigfile__|xorg.conf|g' \
17973 -e 's|__projectroot__|\$(prefix)|g' \
17974 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
17975 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17976 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17977 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17978 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17979 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17980 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17981
17982
17983
17984 # Check whether --enable-silent-rules was given.
17985 if test "${enable_silent_rules+set}" = set; then :
17986 enableval=$enable_silent_rules;
17987 fi
17988
17989 case $enable_silent_rules in # (((
17990 yes) AM_DEFAULT_VERBOSITY=0;;
17991 no) AM_DEFAULT_VERBOSITY=1;;
17992 *) AM_DEFAULT_VERBOSITY=0;;
17993 esac
17994 am_make=${MAKE-make}
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
17996 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
17997 if ${am_cv_make_support_nested_variables+:} false; then :
17998 $as_echo_n "(cached) " >&6
17999 else
18000 if $as_echo 'TRUE=$(BAR$(V))
18001 BAR0=false
18002 BAR1=true
18003 V=1
18004 am__doit:
18005 @$(TRUE)
18006 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18007 am_cv_make_support_nested_variables=yes
18008 else
18009 am_cv_make_support_nested_variables=no
18010 fi
18011 fi
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18013 $as_echo "$am_cv_make_support_nested_variables" >&6; }
18014 if test $am_cv_make_support_nested_variables = yes; then
18015 AM_V='$(V)'
18016 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18017 else
18018 AM_V=$AM_DEFAULT_VERBOSITY
18019 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18020 fi
18021 AM_BACKSLASH='\'
18022
18023
18024
18025 # Check whether --enable-malloc0returnsnull was given.
18026 if test "${enable_malloc0returnsnull+set}" = set; then :
18027 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
18028 else
18029 MALLOC_ZERO_RETURNS_NULL=auto
18030 fi
18031
18032
18033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
18034 $as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
18035 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
18036 if ${xorg_cv_malloc0_returns_null+:} false; then :
18037 $as_echo_n "(cached) " >&6
18038 else
18039 if test "$cross_compiling" = yes; then :
18040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18042 as_fn_error $? "cannot run test program while cross compiling
18043 See \`config.log' for more details" "$LINENO" 5; }
18044 else
18045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18046 /* end confdefs.h. */
18047
18048 #include <stdlib.h>
18049
18050 int
18051 main ()
18052 {
18053
18054 char *m0, *r0, *c0, *p;
18055 m0 = malloc(0);
18056 p = malloc(10);
18057 r0 = realloc(p,0);
18058 c0 = calloc(0,10);
18059 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
18060
18061 ;
18062 return 0;
18063 }
18064 _ACEOF
18065 if ac_fn_c_try_run "$LINENO"; then :
18066 xorg_cv_malloc0_returns_null=yes
18067 else
18068 xorg_cv_malloc0_returns_null=no
18069 fi
18070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18071 conftest.$ac_objext conftest.beam conftest.$ac_ext
18072 fi
18073
18074 fi
18075
18076 MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
18077 fi
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
18079 $as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
18080
18081 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
18082 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
18083 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
18084 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
18085 else
18086 MALLOC_ZERO_CFLAGS=""
18087 XMALLOC_ZERO_CFLAGS=""
18088 XTMALLOC_ZERO_CFLAGS=""
18089 fi
18090
18091
18092
18093
18094
18095
18096 # Obtain compiler/linker options for depedencies
18097
18098 pkg_failed=no
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FS" >&5
18100 $as_echo_n "checking for FS... " >&6; }
18101
18102 if test -n "$FS_CFLAGS"; then
18103 pkg_cv_FS_CFLAGS="$FS_CFLAGS"
18104 elif test -n "$PKG_CONFIG"; then
18105 if test -n "$PKG_CONFIG" && \
18106 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 fontsproto xtrans\""; } >&5
18107 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 fontsproto xtrans") 2>&5
18108 ac_status=$?
18109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18110 test $ac_status = 0; }; then
18111 pkg_cv_FS_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 fontsproto xtrans" 2>/dev/null`
18112 else
18113 pkg_failed=yes
18114 fi
18115 else
18116 pkg_failed=untried
18117 fi
18118 if test -n "$FS_LIBS"; then
18119 pkg_cv_FS_LIBS="$FS_LIBS"
18120 elif test -n "$PKG_CONFIG"; then
18121 if test -n "$PKG_CONFIG" && \
18122 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 fontsproto xtrans\""; } >&5
18123 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 fontsproto xtrans") 2>&5
18124 ac_status=$?
18125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18126 test $ac_status = 0; }; then
18127 pkg_cv_FS_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 fontsproto xtrans" 2>/dev/null`
18128 else
18129 pkg_failed=yes
18130 fi
18131 else
18132 pkg_failed=untried
18133 fi
18134
18135
18136
18137 if test $pkg_failed = yes; then
18138
18139 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18140 _pkg_short_errors_supported=yes
18141 else
18142 _pkg_short_errors_supported=no
18143 fi
18144 if test $_pkg_short_errors_supported = yes; then
18145 FS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.17 fontsproto xtrans" 2>&1`
18146 else
18147 FS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.17 fontsproto xtrans" 2>&1`
18148 fi
18149 # Put the nasty error message in config.log where it belongs
18150 echo "$FS_PKG_ERRORS" >&5
18151
18152 as_fn_error $? "Package requirements (xproto >= 7.0.17 fontsproto xtrans) were not met:
18153
18154 $FS_PKG_ERRORS
18155
18156 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18157 installed software in a non-standard prefix.
18158
18159 Alternatively, you may set the environment variables FS_CFLAGS
18160 and FS_LIBS to avoid the need to call pkg-config.
18161 See the pkg-config man page for more details.
18162 " "$LINENO" 5
18163 elif test $pkg_failed = untried; then
18164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18166 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18167 is in your PATH or set the PKG_CONFIG environment variable to the full
18168 path to pkg-config.
18169
18170 Alternatively, you may set the environment variables FS_CFLAGS
18171 and FS_LIBS to avoid the need to call pkg-config.
18172 See the pkg-config man page for more details.
18173
18174 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18175 See \`config.log' for more details" "$LINENO" 5; }
18176 else
18177 FS_CFLAGS=$pkg_cv_FS_CFLAGS
18178 FS_LIBS=$pkg_cv_FS_LIBS
18179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18180 $as_echo "yes" >&6; }
18181 :
18182 fi
18183
18184 # Find needed libraries for TCP sockets (pre-pended in $LIBS)
18185
18186
18187 case $host_os in
18188 mingw*) unixdef="no" ;;
18189 *) unixdef="yes" ;;
18190 esac
18191 # Check whether --enable-unix-transport was given.
18192 if test "${enable_unix_transport+set}" = set; then :
18193 enableval=$enable_unix_transport; UNIXCONN=$enableval
18194 else
18195 UNIXCONN=$unixdef
18196 fi
18197
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
18199 $as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
18200 if test "$UNIXCONN" = "yes"; then
18201
18202 $as_echo "#define UNIXCONN 1" >>confdefs.h
18203
18204 fi
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
18206 $as_echo "$UNIXCONN" >&6; }
18207 # Check whether --enable-tcp-transport was given.
18208 if test "${enable_tcp_transport+set}" = set; then :
18209 enableval=$enable_tcp_transport; TCPCONN=$enableval
18210 else
18211 TCPCONN=yes
18212 fi
18213
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
18215 $as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
18216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
18217 $as_echo "$TCPCONN" >&6; }
18218 if test "$TCPCONN" = "yes"; then
18219
18220 $as_echo "#define TCPCONN 1" >>confdefs.h
18221
18222
18223 # SVR4 hides these in libraries other than libc
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
18225 $as_echo_n "checking for library containing socket... " >&6; }
18226 if ${ac_cv_search_socket+:} false; then :
18227 $as_echo_n "(cached) " >&6
18228 else
18229 ac_func_search_save_LIBS=$LIBS
18230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18231 /* end confdefs.h. */
18232
18233 /* Override any GCC internal prototype to avoid an error.
18234 Use char because int might match the return type of a GCC
18235 builtin and then its argument prototype would still apply. */
18236 #ifdef __cplusplus
18237 extern "C"
18238 #endif
18239 char socket ();
18240 int
18241 main ()
18242 {
18243 return socket ();
18244 ;
18245 return 0;
18246 }
18247 _ACEOF
18248 for ac_lib in '' socket; do
18249 if test -z "$ac_lib"; then
18250 ac_res="none required"
18251 else
18252 ac_res=-l$ac_lib
18253 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18254 fi
18255 if ac_fn_c_try_link "$LINENO"; then :
18256 ac_cv_search_socket=$ac_res
18257 fi
18258 rm -f core conftest.err conftest.$ac_objext \
18259 conftest$ac_exeext
18260 if ${ac_cv_search_socket+:} false; then :
18261 break
18262 fi
18263 done
18264 if ${ac_cv_search_socket+:} false; then :
18265
18266 else
18267 ac_cv_search_socket=no
18268 fi
18269 rm conftest.$ac_ext
18270 LIBS=$ac_func_search_save_LIBS
18271 fi
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
18273 $as_echo "$ac_cv_search_socket" >&6; }
18274 ac_res=$ac_cv_search_socket
18275 if test "$ac_res" != no; then :
18276 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18277
18278 fi
18279
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
18281 $as_echo_n "checking for library containing gethostbyname... " >&6; }
18282 if ${ac_cv_search_gethostbyname+:} false; then :
18283 $as_echo_n "(cached) " >&6
18284 else
18285 ac_func_search_save_LIBS=$LIBS
18286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18287 /* end confdefs.h. */
18288
18289 /* Override any GCC internal prototype to avoid an error.
18290 Use char because int might match the return type of a GCC
18291 builtin and then its argument prototype would still apply. */
18292 #ifdef __cplusplus
18293 extern "C"
18294 #endif
18295 char gethostbyname ();
18296 int
18297 main ()
18298 {
18299 return gethostbyname ();
18300 ;
18301 return 0;
18302 }
18303 _ACEOF
18304 for ac_lib in '' nsl; do
18305 if test -z "$ac_lib"; then
18306 ac_res="none required"
18307 else
18308 ac_res=-l$ac_lib
18309 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18310 fi
18311 if ac_fn_c_try_link "$LINENO"; then :
18312 ac_cv_search_gethostbyname=$ac_res
18313 fi
18314 rm -f core conftest.err conftest.$ac_objext \
18315 conftest$ac_exeext
18316 if ${ac_cv_search_gethostbyname+:} false; then :
18317 break
18318 fi
18319 done
18320 if ${ac_cv_search_gethostbyname+:} false; then :
18321
18322 else
18323 ac_cv_search_gethostbyname=no
18324 fi
18325 rm conftest.$ac_ext
18326 LIBS=$ac_func_search_save_LIBS
18327 fi
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
18329 $as_echo "$ac_cv_search_gethostbyname" >&6; }
18330 ac_res=$ac_cv_search_gethostbyname
18331 if test "$ac_res" != no; then :
18332 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18333
18334 fi
18335
18336 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
18337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
18338 $as_echo_n "checking for main in -lws2_32... " >&6; }
18339 if ${ac_cv_lib_ws2_32_main+:} false; then :
18340 $as_echo_n "(cached) " >&6
18341 else
18342 ac_check_lib_save_LIBS=$LIBS
18343 LIBS="-lws2_32 $LIBS"
18344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18345 /* end confdefs.h. */
18346
18347
18348 int
18349 main ()
18350 {
18351 return main ();
18352 ;
18353 return 0;
18354 }
18355 _ACEOF
18356 if ac_fn_c_try_link "$LINENO"; then :
18357 ac_cv_lib_ws2_32_main=yes
18358 else
18359 ac_cv_lib_ws2_32_main=no
18360 fi
18361 rm -f core conftest.err conftest.$ac_objext \
18362 conftest$ac_exeext conftest.$ac_ext
18363 LIBS=$ac_check_lib_save_LIBS
18364 fi
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
18366 $as_echo "$ac_cv_lib_ws2_32_main" >&6; }
18367 if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
18368 cat >>confdefs.h <<_ACEOF
18369 #define HAVE_LIBWS2_32 1
18370 _ACEOF
18371
18372 LIBS="-lws2_32 $LIBS"
18373
18374 fi
18375
18376 fi
18377
18378 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
18379 # Check whether --enable-ipv6 was given.
18380 if test "${enable_ipv6+set}" = set; then :
18381 enableval=$enable_ipv6; IPV6CONN=$enableval
18382 else
18383 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
18384 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
18385 IPV6CONN=yes
18386 else
18387 IPV6CONN=no
18388 fi
18389
18390 fi
18391
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
18393 $as_echo_n "checking if IPv6 support should be built... " >&6; }
18394 if test "$IPV6CONN" = "yes"; then
18395
18396 $as_echo "#define IPv6 1" >>confdefs.h
18397
18398 fi
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
18400 $as_echo "$IPV6CONN" >&6; }
18401
18402 # 4.3BSD-Reno added a new member to struct sockaddr_in
18403 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
18404 #include <sys/types.h>
18405 #include <sys/socket.h>
18406 #include <netinet/in.h>
18407
18408 "
18409 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
18410
18411 $as_echo "#define BSD44SOCKETS 1" >>confdefs.h
18412
18413 fi
18414
18415
18416 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
18417 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
18418 $ac_includes_default
18419 #include <sys/socket.h>
18420 "
18421 if test "x$ac_cv_type_socklen_t" = xyes; then :
18422
18423 cat >>confdefs.h <<_ACEOF
18424 #define HAVE_SOCKLEN_T 1
18425 _ACEOF
18426
18427
18428 fi
18429
18430
18431 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
18432 # _XOPEN_SOURCE to get it (such as on Solaris)
18433 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
18434 $ac_includes_default
18435 #include <sys/socket.h>
18436
18437 "
18438 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
18439
18440 fi
18441
18442 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
18443 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
18444 unset ac_cv_member_struct_msghdr_msg_control
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
18446 $as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
18447 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
18448 #define _XOPEN_SOURCE 600
18449 $ac_includes_default
18450 #include <sys/socket.h>
18451
18452 "
18453 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
18454
18455 $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
18456
18457
18458 fi
18459
18460 fi
18461 # If that didn't work, fall back to XPG5/UNIX98 with C89
18462 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
18463 unset ac_cv_member_struct_msghdr_msg_control
18464 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
18465 $as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
18466 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
18467 #define _XOPEN_SOURCE 500
18468 $ac_includes_default
18469 #include <sys/socket.h>
18470
18471 "
18472 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
18473
18474 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
18475
18476
18477 fi
18478
18479 fi
18480
18481
18482
18483 fi
18484 case $host_os in
18485 solaris*|sco*|sysv4*) localdef="yes" ;;
18486 *) localdef="no" ;;
18487 esac
18488 # Check whether --enable-local-transport was given.
18489 if test "${enable_local_transport+set}" = set; then :
18490 enableval=$enable_local_transport; LOCALCONN=$enableval
18491 else
18492 LOCALCONN=$localdef
18493 fi
18494
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
18496 $as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
18497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
18498 $as_echo "$LOCALCONN" >&6; }
18499 if test "$LOCALCONN" = "yes"; then
18500
18501 $as_echo "#define LOCALCONN 1" >>confdefs.h
18502
18503 fi
18504
18505
18506
18507 # Checks for library functions.
18508 for ac_func in strlcpy
18509 do :
18510 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
18511 if test "x$ac_cv_func_strlcpy" = xyes; then :
18512 cat >>confdefs.h <<_ACEOF
18513 #define HAVE_STRLCPY 1
18514 _ACEOF
18515
18516 fi
18517 done
18518
18519
18520 # Allow checking code with lint, sparse, etc.
18521
18522
18523
18524
18525
18526 # Check whether --with-lint was given.
18527 if test "${with_lint+set}" = set; then :
18528 withval=$with_lint; use_lint=$withval
18529 else
18530 use_lint=no
18531 fi
18532
18533
18534 # Obtain platform specific info like program name and options
18535 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
18536 case $host_os in
18537 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
18538 lint_name=splint
18539 lint_options="-badflag"
18540 ;;
18541 *freebsd* | *netbsd*)
18542 lint_name=lint
18543 lint_options="-u -b"
18544 ;;
18545 *solaris*)
18546 lint_name=lint
18547 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
18548 ;;
18549 esac
18550
18551 # Test for the presence of the program (either guessed by the code or spelled out by the user)
18552 if test "x$use_lint" = x"yes" ; then
18553 # Extract the first word of "$lint_name", so it can be a program name with args.
18554 set dummy $lint_name; ac_word=$2
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18556 $as_echo_n "checking for $ac_word... " >&6; }
18557 if ${ac_cv_path_LINT+:} false; then :
18558 $as_echo_n "(cached) " >&6
18559 else
18560 case $LINT in
18561 [\\/]* | ?:[\\/]*)
18562 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
18563 ;;
18564 *)
18565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18566 for as_dir in $PATH
18567 do
18568 IFS=$as_save_IFS
18569 test -z "$as_dir" && as_dir=.
18570 for ac_exec_ext in '' $ac_executable_extensions; do
18571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18572 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
18573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18574 break 2
18575 fi
18576 done
18577 done
18578 IFS=$as_save_IFS
18579
18580 ;;
18581 esac
18582 fi
18583 LINT=$ac_cv_path_LINT
18584 if test -n "$LINT"; then
18585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
18586 $as_echo "$LINT" >&6; }
18587 else
18588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18589 $as_echo "no" >&6; }
18590 fi
18591
18592
18593 if test "x$LINT" = "x"; then
18594 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
18595 fi
18596 elif test "x$use_lint" = x"no" ; then
18597 if test "x$LINT" != "x"; then
18598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
18599 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
18600 fi
18601 else
18602 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
18603 fi
18604
18605 # User supplied flags override default flags
18606 if test "x$LINT_FLAGS" != "x"; then
18607 lint_options=$LINT_FLAGS
18608 fi
18609
18610 LINT_FLAGS=$lint_options
18611
18612 if test "x$LINT" != x; then
18613 LINT_TRUE=
18614 LINT_FALSE='#'
18615 else
18616 LINT_TRUE='#'
18617 LINT_FALSE=
18618 fi
18619
18620
18621
18622
18623
18624 # Check whether --enable-lint-library was given.
18625 if test "${enable_lint_library+set}" = set; then :
18626 enableval=$enable_lint_library; make_lint_lib=$enableval
18627 else
18628 make_lint_lib=no
18629 fi
18630
18631
18632 if test "x$make_lint_lib" = x"yes" ; then
18633 LINTLIB=llib-lFS.ln
18634 if test "x$LINT" = "x"; then
18635 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
18636 fi
18637 elif test "x$make_lint_lib" != x"no" ; then
18638 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
18639 fi
18640
18641
18642 if test x$make_lint_lib != xno; then
18643 MAKE_LINT_LIB_TRUE=
18644 MAKE_LINT_LIB_FALSE='#'
18645 else
18646 MAKE_LINT_LIB_TRUE='#'
18647 MAKE_LINT_LIB_FALSE=
18648 fi
18649
18650
18651
18652
18653 ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile libfs.pc"
18654
18655 cat >confcache <<\_ACEOF
18656 # This file is a shell script that caches the results of configure
18657 # tests run on this system so they can be shared between configure
18658 # scripts and configure runs, see configure's option --config-cache.
18659 # It is not useful on other systems. If it contains results you don't
18660 # want to keep, you may remove or edit it.
18661 #
18662 # config.status only pays attention to the cache file if you give it
18663 # the --recheck option to rerun configure.
18664 #
18665 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18666 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18667 # following values.
18668
18669 _ACEOF
18670
18671 # The following way of writing the cache mishandles newlines in values,
18672 # but we know of no workaround that is simple, portable, and efficient.
18673 # So, we kill variables containing newlines.
18674 # Ultrix sh set writes to stderr and can't be redirected directly,
18675 # and sets the high bit in the cache file unless we assign to the vars.
18676 (
18677 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18678 eval ac_val=\$$ac_var
18679 case $ac_val in #(
18680 *${as_nl}*)
18681 case $ac_var in #(
18682 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18683 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18684 esac
18685 case $ac_var in #(
18686 _ | IFS | as_nl) ;; #(
18687 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18688 *) { eval $ac_var=; unset $ac_var;} ;;
18689 esac ;;
18690 esac
18691 done
18692
18693 (set) 2>&1 |
18694 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18695 *${as_nl}ac_space=\ *)
18696 # `set' does not quote correctly, so add quotes: double-quote
18697 # substitution turns \\\\ into \\, and sed turns \\ into \.
18698 sed -n \
18699 "s/'/'\\\\''/g;
18700 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18701 ;; #(
18702 *)
18703 # `set' quotes correctly as required by POSIX, so do not add quotes.
18704 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18705 ;;
18706 esac |
18707 sort
18708 ) |
18709 sed '
18710 /^ac_cv_env_/b end
18711 t clear
18712 :clear
18713 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18714 t end
18715 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18716 :end' >>confcache
18717 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18718 if test -w "$cache_file"; then
18719 if test "x$cache_file" != "x/dev/null"; then
18720 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18721 $as_echo "$as_me: updating cache $cache_file" >&6;}
18722 if test ! -f "$cache_file" || test -h "$cache_file"; then
18723 cat confcache >"$cache_file"
18724 else
18725 case $cache_file in #(
18726 */* | ?:*)
18727 mv -f confcache "$cache_file"$$ &&
18728 mv -f "$cache_file"$$ "$cache_file" ;; #(
18729 *)
18730 mv -f confcache "$cache_file" ;;
18731 esac
18732 fi
18733 fi
18734 else
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18736 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18737 fi
18738 fi
18739 rm -f confcache
18740
18741 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18742 # Let make expand exec_prefix.
18743 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18744
18745 DEFS=-DHAVE_CONFIG_H
18746
18747 ac_libobjs=
18748 ac_ltlibobjs=
18749 U=
18750 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18751 # 1. Remove the extension, and $U if already installed.
18752 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18753 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18754 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18755 # will be set to the directory where LIBOBJS objects are built.
18756 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18757 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18758 done
18759 LIBOBJS=$ac_libobjs
18760
18761 LTLIBOBJS=$ac_ltlibobjs
18762
18763
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18765 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18766 if test -n "$am_sleep_pid"; then
18767 # Hide warnings about reused PIDs.
18768 wait $am_sleep_pid 2>/dev/null
18769 fi
18770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18771 $as_echo "done" >&6; }
18772 if test -n "$EXEEXT"; then
18773 am__EXEEXT_TRUE=
18774 am__EXEEXT_FALSE='#'
18775 else
18776 am__EXEEXT_TRUE='#'
18777 am__EXEEXT_FALSE=
18778 fi
18779
18780 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18781 as_fn_error $? "conditional \"AMDEP\" was never defined.
18782 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18783 fi
18784 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18785 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18786 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18787 fi
18788 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
18789 as_fn_error $? "conditional \"LINT\" was never defined.
18790 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18791 fi
18792 if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
18793 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
18794 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18795 fi
18796
18797 : "${CONFIG_STATUS=./config.status}"
18798 ac_write_fail=0
18799 ac_clean_files_save=$ac_clean_files
18800 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18801 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18802 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18803 as_write_fail=0
18804 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18805 #! $SHELL
18806 # Generated by $as_me.
18807 # Run this file to recreate the current configuration.
18808 # Compiler output produced by configure, useful for debugging
18809 # configure, is in config.log if it exists.
18810
18811 debug=false
18812 ac_cs_recheck=false
18813 ac_cs_silent=false
18814
18815 SHELL=\${CONFIG_SHELL-$SHELL}
18816 export SHELL
18817 _ASEOF
18818 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18819 ## -------------------- ##
18820 ## M4sh Initialization. ##
18821 ## -------------------- ##
18822
18823 # Be more Bourne compatible
18824 DUALCASE=1; export DUALCASE # for MKS sh
18825 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18826 emulate sh
18827 NULLCMD=:
18828 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18829 # is contrary to our usage. Disable this feature.
18830 alias -g '${1+"$@"}'='"$@"'
18831 setopt NO_GLOB_SUBST
18832 else
18833 case `(set -o) 2>/dev/null` in #(
18834 *posix*) :
18835 set -o posix ;; #(
18836 *) :
18837 ;;
18838 esac
18839 fi
18840
18841
18842 as_nl='
18843 '
18844 export as_nl
18845 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18846 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18847 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18848 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18849 # Prefer a ksh shell builtin over an external printf program on Solaris,
18850 # but without wasting forks for bash or zsh.
18851 if test -z "$BASH_VERSION$ZSH_VERSION" \
18852 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18853 as_echo='print -r --'
18854 as_echo_n='print -rn --'
18855 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18856 as_echo='printf %s\n'
18857 as_echo_n='printf %s'
18858 else
18859 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18860 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18861 as_echo_n='/usr/ucb/echo -n'
18862 else
18863 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18864 as_echo_n_body='eval
18865 arg=$1;
18866 case $arg in #(
18867 *"$as_nl"*)
18868 expr "X$arg" : "X\\(.*\\)$as_nl";
18869 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18870 esac;
18871 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18872 '
18873 export as_echo_n_body
18874 as_echo_n='sh -c $as_echo_n_body as_echo'
18875 fi
18876 export as_echo_body
18877 as_echo='sh -c $as_echo_body as_echo'
18878 fi
18879
18880 # The user is always right.
18881 if test "${PATH_SEPARATOR+set}" != set; then
18882 PATH_SEPARATOR=:
18883 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18884 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18885 PATH_SEPARATOR=';'
18886 }
18887 fi
18888
18889
18890 # IFS
18891 # We need space, tab and new line, in precisely that order. Quoting is
18892 # there to prevent editors from complaining about space-tab.
18893 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18894 # splitting by setting IFS to empty value.)
18895 IFS=" "" $as_nl"
18896
18897 # Find who we are. Look in the path if we contain no directory separator.
18898 as_myself=
18899 case $0 in #((
18900 *[\\/]* ) as_myself=$0 ;;
18901 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18902 for as_dir in $PATH
18903 do
18904 IFS=$as_save_IFS
18905 test -z "$as_dir" && as_dir=.
18906 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18907 done
18908 IFS=$as_save_IFS
18909
18910 ;;
18911 esac
18912 # We did not find ourselves, most probably we were run as `sh COMMAND'
18913 # in which case we are not to be found in the path.
18914 if test "x$as_myself" = x; then
18915 as_myself=$0
18916 fi
18917 if test ! -f "$as_myself"; then
18918 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18919 exit 1
18920 fi
18921
18922 # Unset variables that we do not need and which cause bugs (e.g. in
18923 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18924 # suppresses any "Segmentation fault" message there. '((' could
18925 # trigger a bug in pdksh 5.2.14.
18926 for as_var in BASH_ENV ENV MAIL MAILPATH
18927 do eval test x\${$as_var+set} = xset \
18928 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18929 done
18930 PS1='$ '
18931 PS2='> '
18932 PS4='+ '
18933
18934 # NLS nuisances.
18935 LC_ALL=C
18936 export LC_ALL
18937 LANGUAGE=C
18938 export LANGUAGE
18939
18940 # CDPATH.
18941 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18942
18943
18944 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18945 # ----------------------------------------
18946 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18947 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18948 # script with STATUS, using 1 if that was 0.
18949 as_fn_error ()
18950 {
18951 as_status=$1; test $as_status -eq 0 && as_status=1
18952 if test "$4"; then
18953 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18954 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18955 fi
18956 $as_echo "$as_me: error: $2" >&2
18957 as_fn_exit $as_status
18958 } # as_fn_error
18959
18960
18961 # as_fn_set_status STATUS
18962 # -----------------------
18963 # Set $? to STATUS, without forking.
18964 as_fn_set_status ()
18965 {
18966 return $1
18967 } # as_fn_set_status
18968
18969 # as_fn_exit STATUS
18970 # -----------------
18971 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18972 as_fn_exit ()
18973 {
18974 set +e
18975 as_fn_set_status $1
18976 exit $1
18977 } # as_fn_exit
18978
18979 # as_fn_unset VAR
18980 # ---------------
18981 # Portably unset VAR.
18982 as_fn_unset ()
18983 {
18984 { eval $1=; unset $1;}
18985 }
18986 as_unset=as_fn_unset
18987 # as_fn_append VAR VALUE
18988 # ----------------------
18989 # Append the text in VALUE to the end of the definition contained in VAR. Take
18990 # advantage of any shell optimizations that allow amortized linear growth over
18991 # repeated appends, instead of the typical quadratic growth present in naive
18992 # implementations.
18993 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18994 eval 'as_fn_append ()
18995 {
18996 eval $1+=\$2
18997 }'
18998 else
18999 as_fn_append ()
19000 {
19001 eval $1=\$$1\$2
19002 }
19003 fi # as_fn_append
19004
19005 # as_fn_arith ARG...
19006 # ------------------
19007 # Perform arithmetic evaluation on the ARGs, and store the result in the
19008 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19009 # must be portable across $(()) and expr.
19010 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19011 eval 'as_fn_arith ()
19012 {
19013 as_val=$(( $* ))
19014 }'
19015 else
19016 as_fn_arith ()
19017 {
19018 as_val=`expr "$@" || test $? -eq 1`
19019 }
19020 fi # as_fn_arith
19021
19022
19023 if expr a : '\(a\)' >/dev/null 2>&1 &&
19024 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19025 as_expr=expr
19026 else
19027 as_expr=false
19028 fi
19029
19030 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19031 as_basename=basename
19032 else
19033 as_basename=false
19034 fi
19035
19036 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19037 as_dirname=dirname
19038 else
19039 as_dirname=false
19040 fi
19041
19042 as_me=`$as_basename -- "$0" ||
19043 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19044 X"$0" : 'X\(//\)$' \| \
19045 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19046 $as_echo X/"$0" |
19047 sed '/^.*\/\([^/][^/]*\)\/*$/{
19048 s//\1/
19049 q
19050 }
19051 /^X\/\(\/\/\)$/{
19052 s//\1/
19053 q
19054 }
19055 /^X\/\(\/\).*/{
19056 s//\1/
19057 q
19058 }
19059 s/.*/./; q'`
19060
19061 # Avoid depending upon Character Ranges.
19062 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19063 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19064 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19065 as_cr_digits='0123456789'
19066 as_cr_alnum=$as_cr_Letters$as_cr_digits
19067
19068 ECHO_C= ECHO_N= ECHO_T=
19069 case `echo -n x` in #(((((
19070 -n*)
19071 case `echo 'xy\c'` in
19072 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19073 xy) ECHO_C='\c';;
19074 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19075 ECHO_T=' ';;
19076 esac;;
19077 *)
19078 ECHO_N='-n';;
19079 esac
19080
19081 rm -f conf$$ conf$$.exe conf$$.file
19082 if test -d conf$$.dir; then
19083 rm -f conf$$.dir/conf$$.file
19084 else
19085 rm -f conf$$.dir
19086 mkdir conf$$.dir 2>/dev/null
19087 fi
19088 if (echo >conf$$.file) 2>/dev/null; then
19089 if ln -s conf$$.file conf$$ 2>/dev/null; then
19090 as_ln_s='ln -s'
19091 # ... but there are two gotchas:
19092 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19093 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19094 # In both cases, we have to default to `cp -p'.
19095 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19096 as_ln_s='cp -p'
19097 elif ln conf$$.file conf$$ 2>/dev/null; then
19098 as_ln_s=ln
19099 else
19100 as_ln_s='cp -p'
19101 fi
19102 else
19103 as_ln_s='cp -p'
19104 fi
19105 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19106 rmdir conf$$.dir 2>/dev/null
19107
19108
19109 # as_fn_mkdir_p
19110 # -------------
19111 # Create "$as_dir" as a directory, including parents if necessary.
19112 as_fn_mkdir_p ()
19113 {
19114
19115 case $as_dir in #(
19116 -*) as_dir=./$as_dir;;
19117 esac
19118 test -d "$as_dir" || eval $as_mkdir_p || {
19119 as_dirs=
19120 while :; do
19121 case $as_dir in #(
19122 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19123 *) as_qdir=$as_dir;;
19124 esac
19125 as_dirs="'$as_qdir' $as_dirs"
19126 as_dir=`$as_dirname -- "$as_dir" ||
19127 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19128 X"$as_dir" : 'X\(//\)[^/]' \| \
19129 X"$as_dir" : 'X\(//\)$' \| \
19130 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19131 $as_echo X"$as_dir" |
19132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19133 s//\1/
19134 q
19135 }
19136 /^X\(\/\/\)[^/].*/{
19137 s//\1/
19138 q
19139 }
19140 /^X\(\/\/\)$/{
19141 s//\1/
19142 q
19143 }
19144 /^X\(\/\).*/{
19145 s//\1/
19146 q
19147 }
19148 s/.*/./; q'`
19149 test -d "$as_dir" && break
19150 done
19151 test -z "$as_dirs" || eval "mkdir $as_dirs"
19152 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19153
19154
19155 } # as_fn_mkdir_p
19156 if mkdir -p . 2>/dev/null; then
19157 as_mkdir_p='mkdir -p "$as_dir"'
19158 else
19159 test -d ./-p && rmdir ./-p
19160 as_mkdir_p=false
19161 fi
19162
19163 if test -x / >/dev/null 2>&1; then
19164 as_test_x='test -x'
19165 else
19166 if ls -dL / >/dev/null 2>&1; then
19167 as_ls_L_option=L
19168 else
19169 as_ls_L_option=
19170 fi
19171 as_test_x='
19172 eval sh -c '\''
19173 if test -d "$1"; then
19174 test -d "$1/.";
19175 else
19176 case $1 in #(
19177 -*)set "./$1";;
19178 esac;
19179 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19180 ???[sx]*):;;*)false;;esac;fi
19181 '\'' sh
19182 '
19183 fi
19184 as_executable_p=$as_test_x
19185
19186 # Sed expression to map a string onto a valid CPP name.
19187 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19188
19189 # Sed expression to map a string onto a valid variable name.
19190 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19191
19192
19193 exec 6>&1
19194 ## ----------------------------------- ##
19195 ## Main body of $CONFIG_STATUS script. ##
19196 ## ----------------------------------- ##
19197 _ASEOF
19198 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19199
19200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19201 # Save the log message, to keep $0 and so on meaningful, and to
19202 # report actual input values of CONFIG_FILES etc. instead of their
19203 # values after options handling.
19204 ac_log="
19205 This file was extended by libFS $as_me 1.0.6, which was
19206 generated by GNU Autoconf 2.68. Invocation command line was
19207
19208 CONFIG_FILES = $CONFIG_FILES
19209 CONFIG_HEADERS = $CONFIG_HEADERS
19210 CONFIG_LINKS = $CONFIG_LINKS
19211 CONFIG_COMMANDS = $CONFIG_COMMANDS
19212 $ $0 $@
19213
19214 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19215 "
19216
19217 _ACEOF
19218
19219 case $ac_config_files in *"
19220 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19221 esac
19222
19223 case $ac_config_headers in *"
19224 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19225 esac
19226
19227
19228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19229 # Files that config.status was made for.
19230 config_files="$ac_config_files"
19231 config_headers="$ac_config_headers"
19232 config_commands="$ac_config_commands"
19233
19234 _ACEOF
19235
19236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19237 ac_cs_usage="\
19238 \`$as_me' instantiates files and other configuration actions
19239 from templates according to the current configuration. Unless the files
19240 and actions are specified as TAGs, all are instantiated by default.
19241
19242 Usage: $0 [OPTION]... [TAG]...
19243
19244 -h, --help print this help, then exit
19245 -V, --version print version number and configuration settings, then exit
19246 --config print configuration, then exit
19247 -q, --quiet, --silent
19248 do not print progress messages
19249 -d, --debug don't remove temporary files
19250 --recheck update $as_me by reconfiguring in the same conditions
19251 --file=FILE[:TEMPLATE]
19252 instantiate the configuration file FILE
19253 --header=FILE[:TEMPLATE]
19254 instantiate the configuration header FILE
19255
19256 Configuration files:
19257 $config_files
19258
19259 Configuration headers:
19260 $config_headers
19261
19262 Configuration commands:
19263 $config_commands
19264
19265 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19266
19267 _ACEOF
19268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19269 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19270 ac_cs_version="\\
19271 libFS config.status 1.0.6
19272 configured by $0, generated by GNU Autoconf 2.68,
19273 with options \\"\$ac_cs_config\\"
19274
19275 Copyright (C) 2010 Free Software Foundation, Inc.
19276 This config.status script is free software; the Free Software Foundation
19277 gives unlimited permission to copy, distribute and modify it."
19278
19279 ac_pwd='$ac_pwd'
19280 srcdir='$srcdir'
19281 INSTALL='$INSTALL'
19282 MKDIR_P='$MKDIR_P'
19283 AWK='$AWK'
19284 test -n "\$AWK" || AWK=awk
19285 _ACEOF
19286
19287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19288 # The default lists apply if the user does not specify any file.
19289 ac_need_defaults=:
19290 while test $# != 0
19291 do
19292 case $1 in
19293 --*=?*)
19294 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19295 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19296 ac_shift=:
19297 ;;
19298 --*=)
19299 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19300 ac_optarg=
19301 ac_shift=:
19302 ;;
19303 *)
19304 ac_option=$1
19305 ac_optarg=$2
19306 ac_shift=shift
19307 ;;
19308 esac
19309
19310 case $ac_option in
19311 # Handling of the options.
19312 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19313 ac_cs_recheck=: ;;
19314 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19315 $as_echo "$ac_cs_version"; exit ;;
19316 --config | --confi | --conf | --con | --co | --c )
19317 $as_echo "$ac_cs_config"; exit ;;
19318 --debug | --debu | --deb | --de | --d | -d )
19319 debug=: ;;
19320 --file | --fil | --fi | --f )
19321 $ac_shift
19322 case $ac_optarg in
19323 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19324 '') as_fn_error $? "missing file argument" ;;
19325 esac
19326 as_fn_append CONFIG_FILES " '$ac_optarg'"
19327 ac_need_defaults=false;;
19328 --header | --heade | --head | --hea )
19329 $ac_shift
19330 case $ac_optarg in
19331 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19332 esac
19333 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19334 ac_need_defaults=false;;
19335 --he | --h)
19336 # Conflict between --help and --header
19337 as_fn_error $? "ambiguous option: \`$1'
19338 Try \`$0 --help' for more information.";;
19339 --help | --hel | -h )
19340 $as_echo "$ac_cs_usage"; exit ;;
19341 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19342 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19343 ac_cs_silent=: ;;
19344
19345 # This is an error.
19346 -*) as_fn_error $? "unrecognized option: \`$1'
19347 Try \`$0 --help' for more information." ;;
19348
19349 *) as_fn_append ac_config_targets " $1"
19350 ac_need_defaults=false ;;
19351
19352 esac
19353 shift
19354 done
19355
19356 ac_configure_extra_args=
19357
19358 if $ac_cs_silent; then
19359 exec 6>/dev/null
19360 ac_configure_extra_args="$ac_configure_extra_args --silent"
19361 fi
19362
19363 _ACEOF
19364 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19365 if \$ac_cs_recheck; then
19366 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19367 shift
19368 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19369 CONFIG_SHELL='$SHELL'
19370 export CONFIG_SHELL
19371 exec "\$@"
19372 fi
19373
19374 _ACEOF
19375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19376 exec 5>>config.log
19377 {
19378 echo
19379 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19380 ## Running $as_me. ##
19381 _ASBOX
19382 $as_echo "$ac_log"
19383 } >&5
19384
19385 _ACEOF
19386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19387 #
19388 # INIT-COMMANDS
19389 #
19390 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19391
19392
19393 # The HP-UX ksh and POSIX shell print the target directory to stdout
19394 # if CDPATH is set.
19395 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19396
19397 sed_quote_subst='$sed_quote_subst'
19398 double_quote_subst='$double_quote_subst'
19399 delay_variable_subst='$delay_variable_subst'
19400 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19401 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19402 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19403 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19404 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19405 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19406 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19407 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19408 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19409 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19410 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19411 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19412 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19413 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19414 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19415 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19416 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19417 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19418 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19419 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19420 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19421 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19422 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19423 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19424 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19425 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19426 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19427 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19428 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19429 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19430 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19431 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19432 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19433 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19434 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19435 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19436 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19437 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19438 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19439 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19440 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19441 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19442 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19443 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19444 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19445 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19446 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19447 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19448 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19449 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19450 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19451 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19452 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19453 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19454 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19455 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19456 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"`'
19457 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19458 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19459 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19460 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19461 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19462 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19463 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19464 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19465 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19466 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19467 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19468 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19469 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19470 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19471 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19472 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19473 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19474 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19475 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19476 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19477 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19478 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19479 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19480 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19481 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19482 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19483 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19484 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19485 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19486 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19487 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19488 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19489 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19490 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19491 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19492 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19493 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19494 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19495 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19496 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19497 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19498 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19499 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19500 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19501 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19502 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19503 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19504 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19505 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19506 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19507 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19508 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19509 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19510 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19511 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19512 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19513 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19514 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19515 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19516 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19517 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19518 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19519 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19520 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19521 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19522 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19523 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19524 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19525 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19526 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19527 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19528 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19529 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19530
19531 LTCC='$LTCC'
19532 LTCFLAGS='$LTCFLAGS'
19533 compiler='$compiler_DEFAULT'
19534
19535 # A function that is used when there is no print builtin or printf.
19536 func_fallback_echo ()
19537 {
19538 eval 'cat <<_LTECHO_EOF
19539 \$1
19540 _LTECHO_EOF'
19541 }
19542
19543 # Quote evaled strings.
19544 for var in SHELL \
19545 ECHO \
19546 PATH_SEPARATOR \
19547 SED \
19548 GREP \
19549 EGREP \
19550 FGREP \
19551 LD \
19552 NM \
19553 LN_S \
19554 lt_SP2NL \
19555 lt_NL2SP \
19556 reload_flag \
19557 OBJDUMP \
19558 deplibs_check_method \
19559 file_magic_cmd \
19560 file_magic_glob \
19561 want_nocaseglob \
19562 DLLTOOL \
19563 sharedlib_from_linklib_cmd \
19564 AR \
19565 AR_FLAGS \
19566 archiver_list_spec \
19567 STRIP \
19568 RANLIB \
19569 CC \
19570 CFLAGS \
19571 compiler \
19572 lt_cv_sys_global_symbol_pipe \
19573 lt_cv_sys_global_symbol_to_cdecl \
19574 lt_cv_sys_global_symbol_to_c_name_address \
19575 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19576 nm_file_list_spec \
19577 lt_prog_compiler_no_builtin_flag \
19578 lt_prog_compiler_pic \
19579 lt_prog_compiler_wl \
19580 lt_prog_compiler_static \
19581 lt_cv_prog_compiler_c_o \
19582 need_locks \
19583 MANIFEST_TOOL \
19584 DSYMUTIL \
19585 NMEDIT \
19586 LIPO \
19587 OTOOL \
19588 OTOOL64 \
19589 shrext_cmds \
19590 export_dynamic_flag_spec \
19591 whole_archive_flag_spec \
19592 compiler_needs_object \
19593 with_gnu_ld \
19594 allow_undefined_flag \
19595 no_undefined_flag \
19596 hardcode_libdir_flag_spec \
19597 hardcode_libdir_separator \
19598 exclude_expsyms \
19599 include_expsyms \
19600 file_list_spec \
19601 variables_saved_for_relink \
19602 libname_spec \
19603 library_names_spec \
19604 soname_spec \
19605 install_override_mode \
19606 finish_eval \
19607 old_striplib \
19608 striplib; do
19609 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19610 *[\\\\\\\`\\"\\\$]*)
19611 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19612 ;;
19613 *)
19614 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19615 ;;
19616 esac
19617 done
19618
19619 # Double-quote double-evaled strings.
19620 for var in reload_cmds \
19621 old_postinstall_cmds \
19622 old_postuninstall_cmds \
19623 old_archive_cmds \
19624 extract_expsyms_cmds \
19625 old_archive_from_new_cmds \
19626 old_archive_from_expsyms_cmds \
19627 archive_cmds \
19628 archive_expsym_cmds \
19629 module_cmds \
19630 module_expsym_cmds \
19631 export_symbols_cmds \
19632 prelink_cmds \
19633 postlink_cmds \
19634 postinstall_cmds \
19635 postuninstall_cmds \
19636 finish_cmds \
19637 sys_lib_search_path_spec \
19638 sys_lib_dlsearch_path_spec; do
19639 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19640 *[\\\\\\\`\\"\\\$]*)
19641 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19642 ;;
19643 *)
19644 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19645 ;;
19646 esac
19647 done
19648
19649 ac_aux_dir='$ac_aux_dir'
19650 xsi_shell='$xsi_shell'
19651 lt_shell_append='$lt_shell_append'
19652
19653 # See if we are running on zsh, and set the options which allow our
19654 # commands through without removal of \ escapes INIT.
19655 if test -n "\${ZSH_VERSION+set}" ; then
19656 setopt NO_GLOB_SUBST
19657 fi
19658
19659
19660 PACKAGE='$PACKAGE'
19661 VERSION='$VERSION'
19662 TIMESTAMP='$TIMESTAMP'
19663 RM='$RM'
19664 ofile='$ofile'
19665
19666
19667
19668
19669 _ACEOF
19670
19671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19672
19673 # Handling of arguments.
19674 for ac_config_target in $ac_config_targets
19675 do
19676 case $ac_config_target in
19677 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19678 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19679 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19680 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19681 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19682 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
19683 "libfs.pc") CONFIG_FILES="$CONFIG_FILES libfs.pc" ;;
19684
19685 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19686 esac
19687 done
19688
19689
19690 # If the user did not use the arguments to specify the items to instantiate,
19691 # then the envvar interface is used. Set only those that are not.
19692 # We use the long form for the default assignment because of an extremely
19693 # bizarre bug on SunOS 4.1.3.
19694 if $ac_need_defaults; then
19695 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19696 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19697 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19698 fi
19699
19700 # Have a temporary directory for convenience. Make it in the build tree
19701 # simply because there is no reason against having it here, and in addition,
19702 # creating and moving files from /tmp can sometimes cause problems.
19703 # Hook for its removal unless debugging.
19704 # Note that there is a small window in which the directory will not be cleaned:
19705 # after its creation but before its name has been assigned to `$tmp'.
19706 $debug ||
19707 {
19708 tmp= ac_tmp=
19709 trap 'exit_status=$?
19710 : "${ac_tmp:=$tmp}"
19711 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19712 ' 0
19713 trap 'as_fn_exit 1' 1 2 13 15
19714 }
19715 # Create a (secure) tmp directory for tmp files.
19716
19717 {
19718 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19719 test -d "$tmp"
19720 } ||
19721 {
19722 tmp=./conf$$-$RANDOM
19723 (umask 077 && mkdir "$tmp")
19724 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19725 ac_tmp=$tmp
19726
19727 # Set up the scripts for CONFIG_FILES section.
19728 # No need to generate them if there are no CONFIG_FILES.
19729 # This happens for instance with `./config.status config.h'.
19730 if test -n "$CONFIG_FILES"; then
19731
19732
19733 ac_cr=`echo X | tr X '\015'`
19734 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19735 # But we know of no other shell where ac_cr would be empty at this
19736 # point, so we can use a bashism as a fallback.
19737 if test "x$ac_cr" = x; then
19738 eval ac_cr=\$\'\\r\'
19739 fi
19740 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19741 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19742 ac_cs_awk_cr='\\r'
19743 else
19744 ac_cs_awk_cr=$ac_cr
19745 fi
19746
19747 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19748 _ACEOF
19749
19750
19751 {
19752 echo "cat >conf$$subs.awk <<_ACEOF" &&
19753 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19754 echo "_ACEOF"
19755 } >conf$$subs.sh ||
19756 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19757 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19758 ac_delim='%!_!# '
19759 for ac_last_try in false false false false false :; do
19760 . ./conf$$subs.sh ||
19761 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19762
19763 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19764 if test $ac_delim_n = $ac_delim_num; then
19765 break
19766 elif $ac_last_try; then
19767 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19768 else
19769 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19770 fi
19771 done
19772 rm -f conf$$subs.sh
19773
19774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19775 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19776 _ACEOF
19777 sed -n '
19778 h
19779 s/^/S["/; s/!.*/"]=/
19780 p
19781 g
19782 s/^[^!]*!//
19783 :repl
19784 t repl
19785 s/'"$ac_delim"'$//
19786 t delim
19787 :nl
19788 h
19789 s/\(.\{148\}\)..*/\1/
19790 t more1
19791 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19792 p
19793 n
19794 b repl
19795 :more1
19796 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19797 p
19798 g
19799 s/.\{148\}//
19800 t nl
19801 :delim
19802 h
19803 s/\(.\{148\}\)..*/\1/
19804 t more2
19805 s/["\\]/\\&/g; s/^/"/; s/$/"/
19806 p
19807 b
19808 :more2
19809 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19810 p
19811 g
19812 s/.\{148\}//
19813 t delim
19814 ' <conf$$subs.awk | sed '
19815 /^[^""]/{
19816 N
19817 s/\n//
19818 }
19819 ' >>$CONFIG_STATUS || ac_write_fail=1
19820 rm -f conf$$subs.awk
19821 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19822 _ACAWK
19823 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19824 for (key in S) S_is_set[key] = 1
19825 FS = ""
19826
19827 }
19828 {
19829 line = $ 0
19830 nfields = split(line, field, "@")
19831 substed = 0
19832 len = length(field[1])
19833 for (i = 2; i < nfields; i++) {
19834 key = field[i]
19835 keylen = length(key)
19836 if (S_is_set[key]) {
19837 value = S[key]
19838 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19839 len += length(value) + length(field[++i])
19840 substed = 1
19841 } else
19842 len += 1 + keylen
19843 }
19844
19845 print line
19846 }
19847
19848 _ACAWK
19849 _ACEOF
19850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19851 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19852 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19853 else
19854 cat
19855 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19856 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19857 _ACEOF
19858
19859 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19860 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19861 # trailing colons and then remove the whole line if VPATH becomes empty
19862 # (actually we leave an empty line to preserve line numbers).
19863 if test "x$srcdir" = x.; then
19864 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19865 h
19866 s///
19867 s/^/:/
19868 s/[ ]*$/:/
19869 s/:\$(srcdir):/:/g
19870 s/:\${srcdir}:/:/g
19871 s/:@srcdir@:/:/g
19872 s/^:*//
19873 s/:*$//
19874 x
19875 s/\(=[ ]*\).*/\1/
19876 G
19877 s/\n//
19878 s/^[^=]*=[ ]*$//
19879 }'
19880 fi
19881
19882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19883 fi # test -n "$CONFIG_FILES"
19884
19885 # Set up the scripts for CONFIG_HEADERS section.
19886 # No need to generate them if there are no CONFIG_HEADERS.
19887 # This happens for instance with `./config.status Makefile'.
19888 if test -n "$CONFIG_HEADERS"; then
19889 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19890 BEGIN {
19891 _ACEOF
19892
19893 # Transform confdefs.h into an awk script `defines.awk', embedded as
19894 # here-document in config.status, that substitutes the proper values into
19895 # config.h.in to produce config.h.
19896
19897 # Create a delimiter string that does not exist in confdefs.h, to ease
19898 # handling of long lines.
19899 ac_delim='%!_!# '
19900 for ac_last_try in false false :; do
19901 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19902 if test -z "$ac_tt"; then
19903 break
19904 elif $ac_last_try; then
19905 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19906 else
19907 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19908 fi
19909 done
19910
19911 # For the awk script, D is an array of macro values keyed by name,
19912 # likewise P contains macro parameters if any. Preserve backslash
19913 # newline sequences.
19914
19915 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19916 sed -n '
19917 s/.\{148\}/&'"$ac_delim"'/g
19918 t rset
19919 :rset
19920 s/^[ ]*#[ ]*define[ ][ ]*/ /
19921 t def
19922 d
19923 :def
19924 s/\\$//
19925 t bsnl
19926 s/["\\]/\\&/g
19927 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19928 D["\1"]=" \3"/p
19929 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19930 d
19931 :bsnl
19932 s/["\\]/\\&/g
19933 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19934 D["\1"]=" \3\\\\\\n"\\/p
19935 t cont
19936 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19937 t cont
19938 d
19939 :cont
19940 n
19941 s/.\{148\}/&'"$ac_delim"'/g
19942 t clear
19943 :clear
19944 s/\\$//
19945 t bsnlc
19946 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19947 d
19948 :bsnlc
19949 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19950 b cont
19951 ' <confdefs.h | sed '
19952 s/'"$ac_delim"'/"\\\
19953 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19954
19955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19956 for (key in D) D_is_set[key] = 1
19957 FS = ""
19958 }
19959 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19960 line = \$ 0
19961 split(line, arg, " ")
19962 if (arg[1] == "#") {
19963 defundef = arg[2]
19964 mac1 = arg[3]
19965 } else {
19966 defundef = substr(arg[1], 2)
19967 mac1 = arg[2]
19968 }
19969 split(mac1, mac2, "(") #)
19970 macro = mac2[1]
19971 prefix = substr(line, 1, index(line, defundef) - 1)
19972 if (D_is_set[macro]) {
19973 # Preserve the white space surrounding the "#".
19974 print prefix "define", macro P[macro] D[macro]
19975 next
19976 } else {
19977 # Replace #undef with comments. This is necessary, for example,
19978 # in the case of _POSIX_SOURCE, which is predefined and required
19979 # on some systems where configure will not decide to define it.
19980 if (defundef == "undef") {
19981 print "/*", prefix defundef, macro, "*/"
19982 next
19983 }
19984 }
19985 }
19986 { print }
19987 _ACAWK
19988 _ACEOF
19989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19990 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19991 fi # test -n "$CONFIG_HEADERS"
19992
19993
19994 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19995 shift
19996 for ac_tag
19997 do
19998 case $ac_tag in
19999 :[FHLC]) ac_mode=$ac_tag; continue;;
20000 esac
20001 case $ac_mode$ac_tag in
20002 :[FHL]*:*);;
20003 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20004 :[FH]-) ac_tag=-:-;;
20005 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20006 esac
20007 ac_save_IFS=$IFS
20008 IFS=:
20009 set x $ac_tag
20010 IFS=$ac_save_IFS
20011 shift
20012 ac_file=$1
20013 shift
20014
20015 case $ac_mode in
20016 :L) ac_source=$1;;
20017 :[FH])
20018 ac_file_inputs=
20019 for ac_f
20020 do
20021 case $ac_f in
20022 -) ac_f="$ac_tmp/stdin";;
20023 *) # Look for the file first in the build tree, then in the source tree
20024 # (if the path is not absolute). The absolute path cannot be DOS-style,
20025 # because $ac_f cannot contain `:'.
20026 test -f "$ac_f" ||
20027 case $ac_f in
20028 [\\/$]*) false;;
20029 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20030 esac ||
20031 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20032 esac
20033 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20034 as_fn_append ac_file_inputs " '$ac_f'"
20035 done
20036
20037 # Let's still pretend it is `configure' which instantiates (i.e., don't
20038 # use $as_me), people would be surprised to read:
20039 # /* config.h. Generated by config.status. */
20040 configure_input='Generated from '`
20041 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20042 `' by configure.'
20043 if test x"$ac_file" != x-; then
20044 configure_input="$ac_file. $configure_input"
20045 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20046 $as_echo "$as_me: creating $ac_file" >&6;}
20047 fi
20048 # Neutralize special characters interpreted by sed in replacement strings.
20049 case $configure_input in #(
20050 *\&* | *\|* | *\\* )
20051 ac_sed_conf_input=`$as_echo "$configure_input" |
20052 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20053 *) ac_sed_conf_input=$configure_input;;
20054 esac
20055
20056 case $ac_tag in
20057 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20058 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20059 esac
20060 ;;
20061 esac
20062
20063 ac_dir=`$as_dirname -- "$ac_file" ||
20064 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20065 X"$ac_file" : 'X\(//\)[^/]' \| \
20066 X"$ac_file" : 'X\(//\)$' \| \
20067 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20068 $as_echo X"$ac_file" |
20069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20070 s//\1/
20071 q
20072 }
20073 /^X\(\/\/\)[^/].*/{
20074 s//\1/
20075 q
20076 }
20077 /^X\(\/\/\)$/{
20078 s//\1/
20079 q
20080 }
20081 /^X\(\/\).*/{
20082 s//\1/
20083 q
20084 }
20085 s/.*/./; q'`
20086 as_dir="$ac_dir"; as_fn_mkdir_p
20087 ac_builddir=.
20088
20089 case "$ac_dir" in
20090 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20091 *)
20092 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20093 # A ".." for each directory in $ac_dir_suffix.
20094 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20095 case $ac_top_builddir_sub in
20096 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20097 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20098 esac ;;
20099 esac
20100 ac_abs_top_builddir=$ac_pwd
20101 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20102 # for backward compatibility:
20103 ac_top_builddir=$ac_top_build_prefix
20104
20105 case $srcdir in
20106 .) # We are building in place.
20107 ac_srcdir=.
20108 ac_top_srcdir=$ac_top_builddir_sub
20109 ac_abs_top_srcdir=$ac_pwd ;;
20110 [\\/]* | ?:[\\/]* ) # Absolute name.
20111 ac_srcdir=$srcdir$ac_dir_suffix;
20112 ac_top_srcdir=$srcdir
20113 ac_abs_top_srcdir=$srcdir ;;
20114 *) # Relative name.
20115 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20116 ac_top_srcdir=$ac_top_build_prefix$srcdir
20117 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20118 esac
20119 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20120
20121
20122 case $ac_mode in
20123 :F)
20124 #
20125 # CONFIG_FILE
20126 #
20127
20128 case $INSTALL in
20129 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20130 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20131 esac
20132 ac_MKDIR_P=$MKDIR_P
20133 case $MKDIR_P in
20134 [\\/$]* | ?:[\\/]* ) ;;
20135 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20136 esac
20137 _ACEOF
20138
20139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20140 # If the template does not know about datarootdir, expand it.
20141 # FIXME: This hack should be removed a few years after 2.60.
20142 ac_datarootdir_hack=; ac_datarootdir_seen=
20143 ac_sed_dataroot='
20144 /datarootdir/ {
20145 p
20146 q
20147 }
20148 /@datadir@/p
20149 /@docdir@/p
20150 /@infodir@/p
20151 /@localedir@/p
20152 /@mandir@/p'
20153 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20154 *datarootdir*) ac_datarootdir_seen=yes;;
20155 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20157 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20158 _ACEOF
20159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20160 ac_datarootdir_hack='
20161 s&@datadir@&$datadir&g
20162 s&@docdir@&$docdir&g
20163 s&@infodir@&$infodir&g
20164 s&@localedir@&$localedir&g
20165 s&@mandir@&$mandir&g
20166 s&\\\${datarootdir}&$datarootdir&g' ;;
20167 esac
20168 _ACEOF
20169
20170 # Neutralize VPATH when `$srcdir' = `.'.
20171 # Shell code in configure.ac might set extrasub.
20172 # FIXME: do we really want to maintain this feature?
20173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20174 ac_sed_extra="$ac_vpsub
20175 $extrasub
20176 _ACEOF
20177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20178 :t
20179 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20180 s|@configure_input@|$ac_sed_conf_input|;t t
20181 s&@top_builddir@&$ac_top_builddir_sub&;t t
20182 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20183 s&@srcdir@&$ac_srcdir&;t t
20184 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20185 s&@top_srcdir@&$ac_top_srcdir&;t t
20186 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20187 s&@builddir@&$ac_builddir&;t t
20188 s&@abs_builddir@&$ac_abs_builddir&;t t
20189 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20190 s&@INSTALL@&$ac_INSTALL&;t t
20191 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20192 $ac_datarootdir_hack
20193 "
20194 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20195 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20196
20197 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20198 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20199 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20200 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20202 which seems to be undefined. Please make sure it is defined" >&5
20203 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20204 which seems to be undefined. Please make sure it is defined" >&2;}
20205
20206 rm -f "$ac_tmp/stdin"
20207 case $ac_file in
20208 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20209 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20210 esac \
20211 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20212 ;;
20213 :H)
20214 #
20215 # CONFIG_HEADER
20216 #
20217 if test x"$ac_file" != x-; then
20218 {
20219 $as_echo "/* $configure_input */" \
20220 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20221 } >"$ac_tmp/config.h" \
20222 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20223 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20224 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20225 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20226 else
20227 rm -f "$ac_file"
20228 mv "$ac_tmp/config.h" "$ac_file" \
20229 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20230 fi
20231 else
20232 $as_echo "/* $configure_input */" \
20233 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20234 || as_fn_error $? "could not create -" "$LINENO" 5
20235 fi
20236 # Compute "$ac_file"'s index in $config_headers.
20237 _am_arg="$ac_file"
20238 _am_stamp_count=1
20239 for _am_header in $config_headers :; do
20240 case $_am_header in
20241 $_am_arg | $_am_arg:* )
20242 break ;;
20243 * )
20244 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20245 esac
20246 done
20247 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20248 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20249 X"$_am_arg" : 'X\(//\)[^/]' \| \
20250 X"$_am_arg" : 'X\(//\)$' \| \
20251 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20252 $as_echo X"$_am_arg" |
20253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20254 s//\1/
20255 q
20256 }
20257 /^X\(\/\/\)[^/].*/{
20258 s//\1/
20259 q
20260 }
20261 /^X\(\/\/\)$/{
20262 s//\1/
20263 q
20264 }
20265 /^X\(\/\).*/{
20266 s//\1/
20267 q
20268 }
20269 s/.*/./; q'`/stamp-h$_am_stamp_count
20270 ;;
20271
20272 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20273 $as_echo "$as_me: executing $ac_file commands" >&6;}
20274 ;;
20275 esac
20276
20277
20278 case $ac_file$ac_mode in
20279 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20280 # Older Autoconf quotes --file arguments for eval, but not when files
20281 # are listed without --file. Let's play safe and only enable the eval
20282 # if we detect the quoting.
20283 case $CONFIG_FILES in
20284 *\'*) eval set x "$CONFIG_FILES" ;;
20285 *) set x $CONFIG_FILES ;;
20286 esac
20287 shift
20288 for mf
20289 do
20290 # Strip MF so we end up with the name of the file.
20291 mf=`echo "$mf" | sed -e 's/:.*$//'`
20292 # Check whether this is an Automake generated Makefile or not.
20293 # We used to match only the files named 'Makefile.in', but
20294 # some people rename them; so instead we look at the file content.
20295 # Grep'ing the first line is not enough: some people post-process
20296 # each Makefile.in and add a new line on top of each file to say so.
20297 # Grep'ing the whole file is not good either: AIX grep has a line
20298 # limit of 2048, but all sed's we know have understand at least 4000.
20299 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20300 dirpart=`$as_dirname -- "$mf" ||
20301 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20302 X"$mf" : 'X\(//\)[^/]' \| \
20303 X"$mf" : 'X\(//\)$' \| \
20304 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20305 $as_echo X"$mf" |
20306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20307 s//\1/
20308 q
20309 }
20310 /^X\(\/\/\)[^/].*/{
20311 s//\1/
20312 q
20313 }
20314 /^X\(\/\/\)$/{
20315 s//\1/
20316 q
20317 }
20318 /^X\(\/\).*/{
20319 s//\1/
20320 q
20321 }
20322 s/.*/./; q'`
20323 else
20324 continue
20325 fi
20326 # Extract the definition of DEPDIR, am__include, and am__quote
20327 # from the Makefile without running 'make'.
20328 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20329 test -z "$DEPDIR" && continue
20330 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20331 test -z "$am__include" && continue
20332 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20333 # Find all dependency output files, they are included files with
20334 # $(DEPDIR) in their names. We invoke sed twice because it is the
20335 # simplest approach to changing $(DEPDIR) to its actual value in the
20336 # expansion.
20337 for file in `sed -n "
20338 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20339 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20340 # Make sure the directory exists.
20341 test -f "$dirpart/$file" && continue
20342 fdir=`$as_dirname -- "$file" ||
20343 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20344 X"$file" : 'X\(//\)[^/]' \| \
20345 X"$file" : 'X\(//\)$' \| \
20346 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20347 $as_echo X"$file" |
20348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20349 s//\1/
20350 q
20351 }
20352 /^X\(\/\/\)[^/].*/{
20353 s//\1/
20354 q
20355 }
20356 /^X\(\/\/\)$/{
20357 s//\1/
20358 q
20359 }
20360 /^X\(\/\).*/{
20361 s//\1/
20362 q
20363 }
20364 s/.*/./; q'`
20365 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20366 # echo "creating $dirpart/$file"
20367 echo '# dummy' > "$dirpart/$file"
20368 done
20369 done
20370 }
20371 ;;
20372 "libtool":C)
20373
20374 # See if we are running on zsh, and set the options which allow our
20375 # commands through without removal of \ escapes.
20376 if test -n "${ZSH_VERSION+set}" ; then
20377 setopt NO_GLOB_SUBST
20378 fi
20379
20380 cfgfile="${ofile}T"
20381 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20382 $RM "$cfgfile"
20383
20384 cat <<_LT_EOF >> "$cfgfile"
20385 #! $SHELL
20386
20387 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20388 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20389 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20390 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20391 #
20392 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20393 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20394 # Foundation, Inc.
20395 # Written by Gordon Matzigkeit, 1996
20396 #
20397 # This file is part of GNU Libtool.
20398 #
20399 # GNU Libtool is free software; you can redistribute it and/or
20400 # modify it under the terms of the GNU General Public License as
20401 # published by the Free Software Foundation; either version 2 of
20402 # the License, or (at your option) any later version.
20403 #
20404 # As a special exception to the GNU General Public License,
20405 # if you distribute this file as part of a program or library that
20406 # is built using GNU Libtool, you may include this file under the
20407 # same distribution terms that you use for the rest of that program.
20408 #
20409 # GNU Libtool is distributed in the hope that it will be useful,
20410 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20411 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20412 # GNU General Public License for more details.
20413 #
20414 # You should have received a copy of the GNU General Public License
20415 # along with GNU Libtool; see the file COPYING. If not, a copy
20416 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20417 # obtained by writing to the Free Software Foundation, Inc.,
20418 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20419
20420
20421 # The names of the tagged configurations supported by this script.
20422 available_tags=""
20423
20424 # ### BEGIN LIBTOOL CONFIG
20425
20426 # Which release of libtool.m4 was used?
20427 macro_version=$macro_version
20428 macro_revision=$macro_revision
20429
20430 # Whether or not to build shared libraries.
20431 build_libtool_libs=$enable_shared
20432
20433 # Whether or not to build static libraries.
20434 build_old_libs=$enable_static
20435
20436 # What type of objects to build.
20437 pic_mode=$pic_mode
20438
20439 # Whether or not to optimize for fast installation.
20440 fast_install=$enable_fast_install
20441
20442 # Shell to use when invoking shell scripts.
20443 SHELL=$lt_SHELL
20444
20445 # An echo program that protects backslashes.
20446 ECHO=$lt_ECHO
20447
20448 # The PATH separator for the build system.
20449 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20450
20451 # The host system.
20452 host_alias=$host_alias
20453 host=$host
20454 host_os=$host_os
20455
20456 # The build system.
20457 build_alias=$build_alias
20458 build=$build
20459 build_os=$build_os
20460
20461 # A sed program that does not truncate output.
20462 SED=$lt_SED
20463
20464 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20465 Xsed="\$SED -e 1s/^X//"
20466
20467 # A grep program that handles long lines.
20468 GREP=$lt_GREP
20469
20470 # An ERE matcher.
20471 EGREP=$lt_EGREP
20472
20473 # A literal string matcher.
20474 FGREP=$lt_FGREP
20475
20476 # A BSD- or MS-compatible name lister.
20477 NM=$lt_NM
20478
20479 # Whether we need soft or hard links.
20480 LN_S=$lt_LN_S
20481
20482 # What is the maximum length of a command?
20483 max_cmd_len=$max_cmd_len
20484
20485 # Object file suffix (normally "o").
20486 objext=$ac_objext
20487
20488 # Executable file suffix (normally "").
20489 exeext=$exeext
20490
20491 # whether the shell understands "unset".
20492 lt_unset=$lt_unset
20493
20494 # turn spaces into newlines.
20495 SP2NL=$lt_lt_SP2NL
20496
20497 # turn newlines into spaces.
20498 NL2SP=$lt_lt_NL2SP
20499
20500 # convert \$build file names to \$host format.
20501 to_host_file_cmd=$lt_cv_to_host_file_cmd
20502
20503 # convert \$build files to toolchain format.
20504 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20505
20506 # An object symbol dumper.
20507 OBJDUMP=$lt_OBJDUMP
20508
20509 # Method to check whether dependent libraries are shared objects.
20510 deplibs_check_method=$lt_deplibs_check_method
20511
20512 # Command to use when deplibs_check_method = "file_magic".
20513 file_magic_cmd=$lt_file_magic_cmd
20514
20515 # How to find potential files when deplibs_check_method = "file_magic".
20516 file_magic_glob=$lt_file_magic_glob
20517
20518 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20519 want_nocaseglob=$lt_want_nocaseglob
20520
20521 # DLL creation program.
20522 DLLTOOL=$lt_DLLTOOL
20523
20524 # Command to associate shared and link libraries.
20525 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20526
20527 # The archiver.
20528 AR=$lt_AR
20529
20530 # Flags to create an archive.
20531 AR_FLAGS=$lt_AR_FLAGS
20532
20533 # How to feed a file listing to the archiver.
20534 archiver_list_spec=$lt_archiver_list_spec
20535
20536 # A symbol stripping program.
20537 STRIP=$lt_STRIP
20538
20539 # Commands used to install an old-style archive.
20540 RANLIB=$lt_RANLIB
20541 old_postinstall_cmds=$lt_old_postinstall_cmds
20542 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20543
20544 # Whether to use a lock for old archive extraction.
20545 lock_old_archive_extraction=$lock_old_archive_extraction
20546
20547 # A C compiler.
20548 LTCC=$lt_CC
20549
20550 # LTCC compiler flags.
20551 LTCFLAGS=$lt_CFLAGS
20552
20553 # Take the output of nm and produce a listing of raw symbols and C names.
20554 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20555
20556 # Transform the output of nm in a proper C declaration.
20557 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20558
20559 # Transform the output of nm in a C name address pair.
20560 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20561
20562 # Transform the output of nm in a C name address pair when lib prefix is needed.
20563 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20564
20565 # Specify filename containing input files for \$NM.
20566 nm_file_list_spec=$lt_nm_file_list_spec
20567
20568 # The root where to search for dependent libraries,and in which our libraries should be installed.
20569 lt_sysroot=$lt_sysroot
20570
20571 # The name of the directory that contains temporary libtool files.
20572 objdir=$objdir
20573
20574 # Used to examine libraries when file_magic_cmd begins with "file".
20575 MAGIC_CMD=$MAGIC_CMD
20576
20577 # Must we lock files when doing compilation?
20578 need_locks=$lt_need_locks
20579
20580 # Manifest tool.
20581 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20582
20583 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20584 DSYMUTIL=$lt_DSYMUTIL
20585
20586 # Tool to change global to local symbols on Mac OS X.
20587 NMEDIT=$lt_NMEDIT
20588
20589 # Tool to manipulate fat objects and archives on Mac OS X.
20590 LIPO=$lt_LIPO
20591
20592 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20593 OTOOL=$lt_OTOOL
20594
20595 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20596 OTOOL64=$lt_OTOOL64
20597
20598 # Old archive suffix (normally "a").
20599 libext=$libext
20600
20601 # Shared library suffix (normally ".so").
20602 shrext_cmds=$lt_shrext_cmds
20603
20604 # The commands to extract the exported symbol list from a shared archive.
20605 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20606
20607 # Variables whose values should be saved in libtool wrapper scripts and
20608 # restored at link time.
20609 variables_saved_for_relink=$lt_variables_saved_for_relink
20610
20611 # Do we need the "lib" prefix for modules?
20612 need_lib_prefix=$need_lib_prefix
20613
20614 # Do we need a version for libraries?
20615 need_version=$need_version
20616
20617 # Library versioning type.
20618 version_type=$version_type
20619
20620 # Shared library runtime path variable.
20621 runpath_var=$runpath_var
20622
20623 # Shared library path variable.
20624 shlibpath_var=$shlibpath_var
20625
20626 # Is shlibpath searched before the hard-coded library search path?
20627 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20628
20629 # Format of library name prefix.
20630 libname_spec=$lt_libname_spec
20631
20632 # List of archive names. First name is the real one, the rest are links.
20633 # The last name is the one that the linker finds with -lNAME
20634 library_names_spec=$lt_library_names_spec
20635
20636 # The coded name of the library, if different from the real name.
20637 soname_spec=$lt_soname_spec
20638
20639 # Permission mode override for installation of shared libraries.
20640 install_override_mode=$lt_install_override_mode
20641
20642 # Command to use after installation of a shared archive.
20643 postinstall_cmds=$lt_postinstall_cmds
20644
20645 # Command to use after uninstallation of a shared archive.
20646 postuninstall_cmds=$lt_postuninstall_cmds
20647
20648 # Commands used to finish a libtool library installation in a directory.
20649 finish_cmds=$lt_finish_cmds
20650
20651 # As "finish_cmds", except a single script fragment to be evaled but
20652 # not shown.
20653 finish_eval=$lt_finish_eval
20654
20655 # Whether we should hardcode library paths into libraries.
20656 hardcode_into_libs=$hardcode_into_libs
20657
20658 # Compile-time system search path for libraries.
20659 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20660
20661 # Run-time system search path for libraries.
20662 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20663
20664 # Whether dlopen is supported.
20665 dlopen_support=$enable_dlopen
20666
20667 # Whether dlopen of programs is supported.
20668 dlopen_self=$enable_dlopen_self
20669
20670 # Whether dlopen of statically linked programs is supported.
20671 dlopen_self_static=$enable_dlopen_self_static
20672
20673 # Commands to strip libraries.
20674 old_striplib=$lt_old_striplib
20675 striplib=$lt_striplib
20676
20677
20678 # The linker used to build libraries.
20679 LD=$lt_LD
20680
20681 # How to create reloadable object files.
20682 reload_flag=$lt_reload_flag
20683 reload_cmds=$lt_reload_cmds
20684
20685 # Commands used to build an old-style archive.
20686 old_archive_cmds=$lt_old_archive_cmds
20687
20688 # A language specific compiler.
20689 CC=$lt_compiler
20690
20691 # Is the compiler the GNU compiler?
20692 with_gcc=$GCC
20693
20694 # Compiler flag to turn off builtin functions.
20695 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20696
20697 # Additional compiler flags for building library objects.
20698 pic_flag=$lt_lt_prog_compiler_pic
20699
20700 # How to pass a linker flag through the compiler.
20701 wl=$lt_lt_prog_compiler_wl
20702
20703 # Compiler flag to prevent dynamic linking.
20704 link_static_flag=$lt_lt_prog_compiler_static
20705
20706 # Does compiler simultaneously support -c and -o options?
20707 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20708
20709 # Whether or not to add -lc for building shared libraries.
20710 build_libtool_need_lc=$archive_cmds_need_lc
20711
20712 # Whether or not to disallow shared libs when runtime libs are static.
20713 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20714
20715 # Compiler flag to allow reflexive dlopens.
20716 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20717
20718 # Compiler flag to generate shared objects directly from archives.
20719 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20720
20721 # Whether the compiler copes with passing no objects directly.
20722 compiler_needs_object=$lt_compiler_needs_object
20723
20724 # Create an old-style archive from a shared archive.
20725 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20726
20727 # Create a temporary old-style archive to link instead of a shared archive.
20728 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20729
20730 # Commands used to build a shared archive.
20731 archive_cmds=$lt_archive_cmds
20732 archive_expsym_cmds=$lt_archive_expsym_cmds
20733
20734 # Commands used to build a loadable module if different from building
20735 # a shared archive.
20736 module_cmds=$lt_module_cmds
20737 module_expsym_cmds=$lt_module_expsym_cmds
20738
20739 # Whether we are building with GNU ld or not.
20740 with_gnu_ld=$lt_with_gnu_ld
20741
20742 # Flag that allows shared libraries with undefined symbols to be built.
20743 allow_undefined_flag=$lt_allow_undefined_flag
20744
20745 # Flag that enforces no undefined symbols.
20746 no_undefined_flag=$lt_no_undefined_flag
20747
20748 # Flag to hardcode \$libdir into a binary during linking.
20749 # This must work even if \$libdir does not exist
20750 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20751
20752 # Whether we need a single "-rpath" flag with a separated argument.
20753 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20754
20755 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20756 # DIR into the resulting binary.
20757 hardcode_direct=$hardcode_direct
20758
20759 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20760 # DIR into the resulting binary and the resulting library dependency is
20761 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20762 # library is relocated.
20763 hardcode_direct_absolute=$hardcode_direct_absolute
20764
20765 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20766 # into the resulting binary.
20767 hardcode_minus_L=$hardcode_minus_L
20768
20769 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20770 # into the resulting binary.
20771 hardcode_shlibpath_var=$hardcode_shlibpath_var
20772
20773 # Set to "yes" if building a shared library automatically hardcodes DIR
20774 # into the library and all subsequent libraries and executables linked
20775 # against it.
20776 hardcode_automatic=$hardcode_automatic
20777
20778 # Set to yes if linker adds runtime paths of dependent libraries
20779 # to runtime path list.
20780 inherit_rpath=$inherit_rpath
20781
20782 # Whether libtool must link a program against all its dependency libraries.
20783 link_all_deplibs=$link_all_deplibs
20784
20785 # Set to "yes" if exported symbols are required.
20786 always_export_symbols=$always_export_symbols
20787
20788 # The commands to list exported symbols.
20789 export_symbols_cmds=$lt_export_symbols_cmds
20790
20791 # Symbols that should not be listed in the preloaded symbols.
20792 exclude_expsyms=$lt_exclude_expsyms
20793
20794 # Symbols that must always be exported.
20795 include_expsyms=$lt_include_expsyms
20796
20797 # Commands necessary for linking programs (against libraries) with templates.
20798 prelink_cmds=$lt_prelink_cmds
20799
20800 # Commands necessary for finishing linking programs.
20801 postlink_cmds=$lt_postlink_cmds
20802
20803 # Specify filename containing input files.
20804 file_list_spec=$lt_file_list_spec
20805
20806 # How to hardcode a shared library path into an executable.
20807 hardcode_action=$hardcode_action
20808
20809 # ### END LIBTOOL CONFIG
20810
20811 _LT_EOF
20812
20813 case $host_os in
20814 aix3*)
20815 cat <<\_LT_EOF >> "$cfgfile"
20816 # AIX sometimes has problems with the GCC collect2 program. For some
20817 # reason, if we set the COLLECT_NAMES environment variable, the problems
20818 # vanish in a puff of smoke.
20819 if test "X${COLLECT_NAMES+set}" != Xset; then
20820 COLLECT_NAMES=
20821 export COLLECT_NAMES
20822 fi
20823 _LT_EOF
20824 ;;
20825 esac
20826
20827
20828 ltmain="$ac_aux_dir/ltmain.sh"
20829
20830
20831 # We use sed instead of cat because bash on DJGPP gets confused if
20832 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20833 # text mode, it properly converts lines to CR/LF. This bash problem
20834 # is reportedly fixed, but why not run on old versions too?
20835 sed '$q' "$ltmain" >> "$cfgfile" \
20836 || (rm -f "$cfgfile"; exit 1)
20837
20838 if test x"$xsi_shell" = xyes; then
20839 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20840 func_dirname ()\
20841 {\
20842 \ case ${1} in\
20843 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20844 \ * ) func_dirname_result="${3}" ;;\
20845 \ esac\
20846 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20847 && mv -f "$cfgfile.tmp" "$cfgfile" \
20848 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20849 test 0 -eq $? || _lt_function_replace_fail=:
20850
20851
20852 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20853 func_basename ()\
20854 {\
20855 \ func_basename_result="${1##*/}"\
20856 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20857 && mv -f "$cfgfile.tmp" "$cfgfile" \
20858 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20859 test 0 -eq $? || _lt_function_replace_fail=:
20860
20861
20862 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20863 func_dirname_and_basename ()\
20864 {\
20865 \ case ${1} in\
20866 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20867 \ * ) func_dirname_result="${3}" ;;\
20868 \ esac\
20869 \ func_basename_result="${1##*/}"\
20870 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20871 && mv -f "$cfgfile.tmp" "$cfgfile" \
20872 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20873 test 0 -eq $? || _lt_function_replace_fail=:
20874
20875
20876 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20877 func_stripname ()\
20878 {\
20879 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20880 \ # positional parameters, so assign one to ordinary parameter first.\
20881 \ func_stripname_result=${3}\
20882 \ func_stripname_result=${func_stripname_result#"${1}"}\
20883 \ func_stripname_result=${func_stripname_result%"${2}"}\
20884 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20885 && mv -f "$cfgfile.tmp" "$cfgfile" \
20886 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20887 test 0 -eq $? || _lt_function_replace_fail=:
20888
20889
20890 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20891 func_split_long_opt ()\
20892 {\
20893 \ func_split_long_opt_name=${1%%=*}\
20894 \ func_split_long_opt_arg=${1#*=}\
20895 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20896 && mv -f "$cfgfile.tmp" "$cfgfile" \
20897 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20898 test 0 -eq $? || _lt_function_replace_fail=:
20899
20900
20901 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20902 func_split_short_opt ()\
20903 {\
20904 \ func_split_short_opt_arg=${1#??}\
20905 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20906 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20907 && mv -f "$cfgfile.tmp" "$cfgfile" \
20908 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20909 test 0 -eq $? || _lt_function_replace_fail=:
20910
20911
20912 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20913 func_lo2o ()\
20914 {\
20915 \ case ${1} in\
20916 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20917 \ *) func_lo2o_result=${1} ;;\
20918 \ esac\
20919 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20920 && mv -f "$cfgfile.tmp" "$cfgfile" \
20921 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20922 test 0 -eq $? || _lt_function_replace_fail=:
20923
20924
20925 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20926 func_xform ()\
20927 {\
20928 func_xform_result=${1%.*}.lo\
20929 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20930 && mv -f "$cfgfile.tmp" "$cfgfile" \
20931 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20932 test 0 -eq $? || _lt_function_replace_fail=:
20933
20934
20935 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20936 func_arith ()\
20937 {\
20938 func_arith_result=$(( $* ))\
20939 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20940 && mv -f "$cfgfile.tmp" "$cfgfile" \
20941 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20942 test 0 -eq $? || _lt_function_replace_fail=:
20943
20944
20945 sed -e '/^func_len ()$/,/^} # func_len /c\
20946 func_len ()\
20947 {\
20948 func_len_result=${#1}\
20949 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20950 && mv -f "$cfgfile.tmp" "$cfgfile" \
20951 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20952 test 0 -eq $? || _lt_function_replace_fail=:
20953
20954 fi
20955
20956 if test x"$lt_shell_append" = xyes; then
20957 sed -e '/^func_append ()$/,/^} # func_append /c\
20958 func_append ()\
20959 {\
20960 eval "${1}+=\\${2}"\
20961 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20962 && mv -f "$cfgfile.tmp" "$cfgfile" \
20963 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20964 test 0 -eq $? || _lt_function_replace_fail=:
20965
20966
20967 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20968 func_append_quoted ()\
20969 {\
20970 \ func_quote_for_eval "${2}"\
20971 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20972 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20973 && mv -f "$cfgfile.tmp" "$cfgfile" \
20974 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20975 test 0 -eq $? || _lt_function_replace_fail=:
20976
20977
20978 # Save a `func_append' function call where possible by direct use of '+='
20979 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20980 && mv -f "$cfgfile.tmp" "$cfgfile" \
20981 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20982 test 0 -eq $? || _lt_function_replace_fail=:
20983 else
20984 # Save a `func_append' function call even when '+=' is not available
20985 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20986 && mv -f "$cfgfile.tmp" "$cfgfile" \
20987 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20988 test 0 -eq $? || _lt_function_replace_fail=:
20989 fi
20990
20991 if test x"$_lt_function_replace_fail" = x":"; then
20992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20993 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20994 fi
20995
20996
20997 mv -f "$cfgfile" "$ofile" ||
20998 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20999 chmod +x "$ofile"
21000
21001 ;;
21002
21003 esac
21004 done # for ac_tag
21005
21006
21007 as_fn_exit 0
21008 _ACEOF
21009 ac_clean_files=$ac_clean_files_save
21010
21011 test $ac_write_fail = 0 ||
21012 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21013
21014
21015 # configure is writing to config.log, and then calls config.status.
21016 # config.status does its own redirection, appending to config.log.
21017 # Unfortunately, on DOS this fails, as config.log is still kept open
21018 # by configure, so config.status won't be able to write to it; its
21019 # output is simply discarded. So we exec the FD to /dev/null,
21020 # effectively closing config.log, so it can be properly (re)opened and
21021 # appended to by config.status. When coming back to configure, we
21022 # need to make the FD available again.
21023 if test "$no_create" != yes; then
21024 ac_cs_success=:
21025 ac_config_status_args=
21026 test "$silent" = yes &&
21027 ac_config_status_args="$ac_config_status_args --quiet"
21028 exec 5>/dev/null
21029 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21030 exec 5>>config.log
21031 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21032 # would make configure fail if this is the last instruction.
21033 $ac_cs_success || as_fn_exit 1
21034 fi
21035 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21037 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21038 fi
21039
21040