configure revision 1.1.1.8 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xf86-input-vmmouse 13.1.0.
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='xf86-input-vmmouse'
573 PACKAGE_TARNAME='xf86-input-vmmouse'
574 PACKAGE_VERSION='13.1.0'
575 PACKAGE_STRING='xf86-input-vmmouse 13.1.0'
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 XORG_LIBS
621 XORG_CFLAGS
622 LIBUDEV_LIBS
623 LIBUDEV_CFLAGS
624 HAS_UDEV_RULES_DIR_FALSE
625 HAS_UDEV_RULES_DIR_TRUE
626 UDEV_RULES_DIR
627 HAL_FDI_DIR
628 HAL_CALLOUTS_DIR
629 HAL_BIN_DIR
630 HAS_XORG_CONF_DIR_FALSE
631 HAS_XORG_CONF_DIR_TRUE
632 XORG_CONF_DIR
633 inputdir
634 OTOOL64
635 OTOOL
636 LIPO
637 NMEDIT
638 DSYMUTIL
639 MANIFEST_TOOL
640 RANLIB
641 ac_ct_AR
642 AR
643 DLLTOOL
644 OBJDUMP
645 LN_S
646 NM
647 ac_ct_DUMPBIN
648 DUMPBIN
649 LD
650 FGREP
651 LIBTOOL
652 DRIVER_NAME
653 AM_BACKSLASH
654 AM_DEFAULT_VERBOSITY
655 AM_DEFAULT_V
656 AM_V
657 MAN_SUBSTS
658 XORG_MAN_PAGE
659 ADMIN_MAN_DIR
660 DRIVER_MAN_DIR
661 MISC_MAN_DIR
662 FILE_MAN_DIR
663 LIB_MAN_DIR
664 APP_MAN_DIR
665 ADMIN_MAN_SUFFIX
666 DRIVER_MAN_SUFFIX
667 MISC_MAN_SUFFIX
668 FILE_MAN_SUFFIX
669 LIB_MAN_SUFFIX
670 APP_MAN_SUFFIX
671 SED
672 host_os
673 host_vendor
674 host_cpu
675 host
676 build_os
677 build_vendor
678 build_cpu
679 build
680 INSTALL_CMD
681 PKG_CONFIG_LIBDIR
682 PKG_CONFIG_PATH
683 PKG_CONFIG
684 CHANGELOG_CMD
685 STRICT_CFLAGS
686 CWARNFLAGS
687 BASE_CFLAGS
688 EGREP
689 GREP
690 CPP
691 am__fastdepCC_FALSE
692 am__fastdepCC_TRUE
693 CCDEPMODE
694 am__nodep
695 AMDEPBACKSLASH
696 AMDEP_FALSE
697 AMDEP_TRUE
698 am__quote
699 am__include
700 DEPDIR
701 OBJEXT
702 EXEEXT
703 ac_ct_CC
704 CPPFLAGS
705 LDFLAGS
706 CFLAGS
707 CC
708 am__untar
709 am__tar
710 AMTAR
711 am__leading_dot
712 SET_MAKE
713 AWK
714 mkdir_p
715 MKDIR_P
716 INSTALL_STRIP_PROGRAM
717 STRIP
718 install_sh
719 MAKEINFO
720 AUTOHEADER
721 AUTOMAKE
722 AUTOCONF
723 ACLOCAL
724 VERSION
725 PACKAGE
726 CYGPATH_W
727 am__isrc
728 INSTALL_DATA
729 INSTALL_SCRIPT
730 INSTALL_PROGRAM
731 target_alias
732 host_alias
733 build_alias
734 LIBS
735 ECHO_T
736 ECHO_N
737 ECHO_C
738 DEFS
739 mandir
740 localedir
741 libdir
742 psdir
743 pdfdir
744 dvidir
745 htmldir
746 infodir
747 docdir
748 oldincludedir
749 includedir
750 localstatedir
751 sharedstatedir
752 sysconfdir
753 datadir
754 datarootdir
755 libexecdir
756 sbindir
757 bindir
758 program_transform_name
759 prefix
760 exec_prefix
761 PACKAGE_URL
762 PACKAGE_BUGREPORT
763 PACKAGE_STRING
764 PACKAGE_VERSION
765 PACKAGE_TARNAME
766 PACKAGE_NAME
767 PATH_SEPARATOR
768 SHELL'
769 ac_subst_files=''
770 ac_user_opts='
771 enable_option_checking
772 enable_dependency_tracking
773 enable_selective_werror
774 enable_strict_compilation
775 enable_silent_rules
776 enable_static
777 enable_shared
778 with_pic
779 enable_fast_install
780 with_gnu_ld
781 with_sysroot
782 enable_libtool_lock
783 with_xorg_module_dir
784 with_xorg_conf_dir
785 with_hal_bin_dir
786 with_hal_callouts_dir
787 with_hal_fdi_dir
788 with_udev_rules_dir
789 with_libudev
790 '
791 ac_precious_vars='build_alias
792 host_alias
793 target_alias
794 CC
795 CFLAGS
796 LDFLAGS
797 LIBS
798 CPPFLAGS
799 CPP
800 PKG_CONFIG
801 PKG_CONFIG_PATH
802 PKG_CONFIG_LIBDIR
803 LIBUDEV_CFLAGS
804 LIBUDEV_LIBS
805 XORG_CFLAGS
806 XORG_LIBS'
807
808
809 # Initialize some variables set by options.
810 ac_init_help=
811 ac_init_version=false
812 ac_unrecognized_opts=
813 ac_unrecognized_sep=
814 # The variables have the same names as the options, with
815 # dashes changed to underlines.
816 cache_file=/dev/null
817 exec_prefix=NONE
818 no_create=
819 no_recursion=
820 prefix=NONE
821 program_prefix=NONE
822 program_suffix=NONE
823 program_transform_name=s,x,x,
824 silent=
825 site=
826 srcdir=
827 verbose=
828 x_includes=NONE
829 x_libraries=NONE
830
831 # Installation directory options.
832 # These are left unexpanded so users can "make install exec_prefix=/foo"
833 # and all the variables that are supposed to be based on exec_prefix
834 # by default will actually change.
835 # Use braces instead of parens because sh, perl, etc. also accept them.
836 # (The list follows the same order as the GNU Coding Standards.)
837 bindir='${exec_prefix}/bin'
838 sbindir='${exec_prefix}/sbin'
839 libexecdir='${exec_prefix}/libexec'
840 datarootdir='${prefix}/share'
841 datadir='${datarootdir}'
842 sysconfdir='${prefix}/etc'
843 sharedstatedir='${prefix}/com'
844 localstatedir='${prefix}/var'
845 includedir='${prefix}/include'
846 oldincludedir='/usr/include'
847 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
848 infodir='${datarootdir}/info'
849 htmldir='${docdir}'
850 dvidir='${docdir}'
851 pdfdir='${docdir}'
852 psdir='${docdir}'
853 libdir='${exec_prefix}/lib'
854 localedir='${datarootdir}/locale'
855 mandir='${datarootdir}/man'
856
857 ac_prev=
858 ac_dashdash=
859 for ac_option
860 do
861 # If the previous option needs an argument, assign it.
862 if test -n "$ac_prev"; then
863 eval $ac_prev=\$ac_option
864 ac_prev=
865 continue
866 fi
867
868 case $ac_option in
869 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
870 *=) ac_optarg= ;;
871 *) ac_optarg=yes ;;
872 esac
873
874 # Accept the important Cygnus configure options, so we can diagnose typos.
875
876 case $ac_dashdash$ac_option in
877 --)
878 ac_dashdash=yes ;;
879
880 -bindir | --bindir | --bindi | --bind | --bin | --bi)
881 ac_prev=bindir ;;
882 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
883 bindir=$ac_optarg ;;
884
885 -build | --build | --buil | --bui | --bu)
886 ac_prev=build_alias ;;
887 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
888 build_alias=$ac_optarg ;;
889
890 -cache-file | --cache-file | --cache-fil | --cache-fi \
891 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
892 ac_prev=cache_file ;;
893 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
894 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
895 cache_file=$ac_optarg ;;
896
897 --config-cache | -C)
898 cache_file=config.cache ;;
899
900 -datadir | --datadir | --datadi | --datad)
901 ac_prev=datadir ;;
902 -datadir=* | --datadir=* | --datadi=* | --datad=*)
903 datadir=$ac_optarg ;;
904
905 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
906 | --dataroo | --dataro | --datar)
907 ac_prev=datarootdir ;;
908 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
909 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
910 datarootdir=$ac_optarg ;;
911
912 -disable-* | --disable-*)
913 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
914 # Reject names that are not valid shell variable names.
915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916 as_fn_error $? "invalid feature name: $ac_useropt"
917 ac_useropt_orig=$ac_useropt
918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
920 *"
921 "enable_$ac_useropt"
922 "*) ;;
923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
924 ac_unrecognized_sep=', ';;
925 esac
926 eval enable_$ac_useropt=no ;;
927
928 -docdir | --docdir | --docdi | --doc | --do)
929 ac_prev=docdir ;;
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931 docdir=$ac_optarg ;;
932
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934 ac_prev=dvidir ;;
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936 dvidir=$ac_optarg ;;
937
938 -enable-* | --enable-*)
939 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 as_fn_error $? "invalid feature name: $ac_useropt"
943 ac_useropt_orig=$ac_useropt
944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
946 *"
947 "enable_$ac_useropt"
948 "*) ;;
949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
950 ac_unrecognized_sep=', ';;
951 esac
952 eval enable_$ac_useropt=\$ac_optarg ;;
953
954 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
955 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
956 | --exec | --exe | --ex)
957 ac_prev=exec_prefix ;;
958 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
959 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
960 | --exec=* | --exe=* | --ex=*)
961 exec_prefix=$ac_optarg ;;
962
963 -gas | --gas | --ga | --g)
964 # Obsolete; use --with-gas.
965 with_gas=yes ;;
966
967 -help | --help | --hel | --he | -h)
968 ac_init_help=long ;;
969 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
970 ac_init_help=recursive ;;
971 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
972 ac_init_help=short ;;
973
974 -host | --host | --hos | --ho)
975 ac_prev=host_alias ;;
976 -host=* | --host=* | --hos=* | --ho=*)
977 host_alias=$ac_optarg ;;
978
979 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
980 ac_prev=htmldir ;;
981 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
982 | --ht=*)
983 htmldir=$ac_optarg ;;
984
985 -includedir | --includedir | --includedi | --included | --include \
986 | --includ | --inclu | --incl | --inc)
987 ac_prev=includedir ;;
988 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
989 | --includ=* | --inclu=* | --incl=* | --inc=*)
990 includedir=$ac_optarg ;;
991
992 -infodir | --infodir | --infodi | --infod | --info | --inf)
993 ac_prev=infodir ;;
994 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
995 infodir=$ac_optarg ;;
996
997 -libdir | --libdir | --libdi | --libd)
998 ac_prev=libdir ;;
999 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1000 libdir=$ac_optarg ;;
1001
1002 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1003 | --libexe | --libex | --libe)
1004 ac_prev=libexecdir ;;
1005 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1006 | --libexe=* | --libex=* | --libe=*)
1007 libexecdir=$ac_optarg ;;
1008
1009 -localedir | --localedir | --localedi | --localed | --locale)
1010 ac_prev=localedir ;;
1011 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1012 localedir=$ac_optarg ;;
1013
1014 -localstatedir | --localstatedir | --localstatedi | --localstated \
1015 | --localstate | --localstat | --localsta | --localst | --locals)
1016 ac_prev=localstatedir ;;
1017 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1018 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1019 localstatedir=$ac_optarg ;;
1020
1021 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1022 ac_prev=mandir ;;
1023 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1024 mandir=$ac_optarg ;;
1025
1026 -nfp | --nfp | --nf)
1027 # Obsolete; use --without-fp.
1028 with_fp=no ;;
1029
1030 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1031 | --no-cr | --no-c | -n)
1032 no_create=yes ;;
1033
1034 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1035 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1036 no_recursion=yes ;;
1037
1038 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1039 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1040 | --oldin | --oldi | --old | --ol | --o)
1041 ac_prev=oldincludedir ;;
1042 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1043 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1044 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1045 oldincludedir=$ac_optarg ;;
1046
1047 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1048 ac_prev=prefix ;;
1049 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1050 prefix=$ac_optarg ;;
1051
1052 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1053 | --program-pre | --program-pr | --program-p)
1054 ac_prev=program_prefix ;;
1055 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1056 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1057 program_prefix=$ac_optarg ;;
1058
1059 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1060 | --program-suf | --program-su | --program-s)
1061 ac_prev=program_suffix ;;
1062 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1063 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1064 program_suffix=$ac_optarg ;;
1065
1066 -program-transform-name | --program-transform-name \
1067 | --program-transform-nam | --program-transform-na \
1068 | --program-transform-n | --program-transform- \
1069 | --program-transform | --program-transfor \
1070 | --program-transfo | --program-transf \
1071 | --program-trans | --program-tran \
1072 | --progr-tra | --program-tr | --program-t)
1073 ac_prev=program_transform_name ;;
1074 -program-transform-name=* | --program-transform-name=* \
1075 | --program-transform-nam=* | --program-transform-na=* \
1076 | --program-transform-n=* | --program-transform-=* \
1077 | --program-transform=* | --program-transfor=* \
1078 | --program-transfo=* | --program-transf=* \
1079 | --program-trans=* | --program-tran=* \
1080 | --progr-tra=* | --program-tr=* | --program-t=*)
1081 program_transform_name=$ac_optarg ;;
1082
1083 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1084 ac_prev=pdfdir ;;
1085 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1086 pdfdir=$ac_optarg ;;
1087
1088 -psdir | --psdir | --psdi | --psd | --ps)
1089 ac_prev=psdir ;;
1090 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1091 psdir=$ac_optarg ;;
1092
1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094 | -silent | --silent | --silen | --sile | --sil)
1095 silent=yes ;;
1096
1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098 ac_prev=sbindir ;;
1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100 | --sbi=* | --sb=*)
1101 sbindir=$ac_optarg ;;
1102
1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105 | --sharedst | --shareds | --shared | --share | --shar \
1106 | --sha | --sh)
1107 ac_prev=sharedstatedir ;;
1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111 | --sha=* | --sh=*)
1112 sharedstatedir=$ac_optarg ;;
1113
1114 -site | --site | --sit)
1115 ac_prev=site ;;
1116 -site=* | --site=* | --sit=*)
1117 site=$ac_optarg ;;
1118
1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120 ac_prev=srcdir ;;
1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122 srcdir=$ac_optarg ;;
1123
1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125 | --syscon | --sysco | --sysc | --sys | --sy)
1126 ac_prev=sysconfdir ;;
1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1129 sysconfdir=$ac_optarg ;;
1130
1131 -target | --target | --targe | --targ | --tar | --ta | --t)
1132 ac_prev=target_alias ;;
1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1134 target_alias=$ac_optarg ;;
1135
1136 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137 verbose=yes ;;
1138
1139 -version | --version | --versio | --versi | --vers | -V)
1140 ac_init_version=: ;;
1141
1142 -with-* | --with-*)
1143 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error $? "invalid package name: $ac_useropt"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1150 *"
1151 "with_$ac_useropt"
1152 "*) ;;
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1155 esac
1156 eval with_$ac_useropt=\$ac_optarg ;;
1157
1158 -without-* | --without-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error $? "invalid package name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1166 *"
1167 "with_$ac_useropt"
1168 "*) ;;
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1171 esac
1172 eval with_$ac_useropt=no ;;
1173
1174 --x)
1175 # Obsolete; use --with-x.
1176 with_x=yes ;;
1177
1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1179 | --x-incl | --x-inc | --x-in | --x-i)
1180 ac_prev=x_includes ;;
1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1183 x_includes=$ac_optarg ;;
1184
1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1187 ac_prev=x_libraries ;;
1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1190 x_libraries=$ac_optarg ;;
1191
1192 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1193 Try \`$0 --help' for more information"
1194 ;;
1195
1196 *=*)
1197 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1198 # Reject names that are not valid shell variable names.
1199 case $ac_envvar in #(
1200 '' | [0-9]* | *[!_$as_cr_alnum]* )
1201 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1202 esac
1203 eval $ac_envvar=\$ac_optarg
1204 export $ac_envvar ;;
1205
1206 *)
1207 # FIXME: should be removed in autoconf 3.0.
1208 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1211 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1212 ;;
1213
1214 esac
1215 done
1216
1217 if test -n "$ac_prev"; then
1218 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1219 as_fn_error $? "missing argument to $ac_option"
1220 fi
1221
1222 if test -n "$ac_unrecognized_opts"; then
1223 case $enable_option_checking in
1224 no) ;;
1225 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1226 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1227 esac
1228 fi
1229
1230 # Check all directory arguments for consistency.
1231 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1232 datadir sysconfdir sharedstatedir localstatedir includedir \
1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1234 libdir localedir mandir
1235 do
1236 eval ac_val=\$$ac_var
1237 # Remove trailing slashes.
1238 case $ac_val in
1239 */ )
1240 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1241 eval $ac_var=\$ac_val;;
1242 esac
1243 # Be sure to have absolute directory names.
1244 case $ac_val in
1245 [\\/$]* | ?:[\\/]* ) continue;;
1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1247 esac
1248 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1249 done
1250
1251 # There might be people who depend on the old broken behavior: `$host'
1252 # used to hold the argument of --host etc.
1253 # FIXME: To remove some day.
1254 build=$build_alias
1255 host=$host_alias
1256 target=$target_alias
1257
1258 # FIXME: To remove some day.
1259 if test "x$host_alias" != x; then
1260 if test "x$build_alias" = x; then
1261 cross_compiling=maybe
1262 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1263 If a cross compiler is detected then cross compile mode will be used" >&2
1264 elif test "x$build_alias" != "x$host_alias"; then
1265 cross_compiling=yes
1266 fi
1267 fi
1268
1269 ac_tool_prefix=
1270 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1271
1272 test "$silent" = yes && exec 6>/dev/null
1273
1274
1275 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1276 ac_ls_di=`ls -di .` &&
1277 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1278 as_fn_error $? "working directory cannot be determined"
1279 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1280 as_fn_error $? "pwd does not report name of working directory"
1281
1282
1283 # Find the source files, if location was not specified.
1284 if test -z "$srcdir"; then
1285 ac_srcdir_defaulted=yes
1286 # Try the directory containing this script, then the parent directory.
1287 ac_confdir=`$as_dirname -- "$as_myself" ||
1288 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1289 X"$as_myself" : 'X\(//\)[^/]' \| \
1290 X"$as_myself" : 'X\(//\)$' \| \
1291 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1292 $as_echo X"$as_myself" |
1293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1294 s//\1/
1295 q
1296 }
1297 /^X\(\/\/\)[^/].*/{
1298 s//\1/
1299 q
1300 }
1301 /^X\(\/\/\)$/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\).*/{
1306 s//\1/
1307 q
1308 }
1309 s/.*/./; q'`
1310 srcdir=$ac_confdir
1311 if test ! -r "$srcdir/$ac_unique_file"; then
1312 srcdir=..
1313 fi
1314 else
1315 ac_srcdir_defaulted=no
1316 fi
1317 if test ! -r "$srcdir/$ac_unique_file"; then
1318 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1319 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1320 fi
1321 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1322 ac_abs_confdir=`(
1323 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1324 pwd)`
1325 # When building in place, set srcdir=.
1326 if test "$ac_abs_confdir" = "$ac_pwd"; then
1327 srcdir=.
1328 fi
1329 # Remove unnecessary trailing slashes from srcdir.
1330 # Double slashes in file names in object file debugging info
1331 # mess up M-x gdb in Emacs.
1332 case $srcdir in
1333 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1334 esac
1335 for ac_var in $ac_precious_vars; do
1336 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1337 eval ac_env_${ac_var}_value=\$${ac_var}
1338 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1339 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1340 done
1341
1342 #
1343 # Report the --help message.
1344 #
1345 if test "$ac_init_help" = "long"; then
1346 # Omit some internal or obsolete options to make the list less imposing.
1347 # This message is too long to be a string in the A/UX 3.1 sh.
1348 cat <<_ACEOF
1349 \`configure' configures xf86-input-vmmouse 13.1.0 to adapt to many kinds of systems.
1350
1351 Usage: $0 [OPTION]... [VAR=VALUE]...
1352
1353 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1354 VAR=VALUE. See below for descriptions of some of the useful variables.
1355
1356 Defaults for the options are specified in brackets.
1357
1358 Configuration:
1359 -h, --help display this help and exit
1360 --help=short display options specific to this package
1361 --help=recursive display the short help of all the included packages
1362 -V, --version display version information and exit
1363 -q, --quiet, --silent do not print \`checking ...' messages
1364 --cache-file=FILE cache test results in FILE [disabled]
1365 -C, --config-cache alias for \`--cache-file=config.cache'
1366 -n, --no-create do not create output files
1367 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1368
1369 Installation directories:
1370 --prefix=PREFIX install architecture-independent files in PREFIX
1371 [$ac_default_prefix]
1372 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1373 [PREFIX]
1374
1375 By default, \`make install' will install all the files in
1376 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1377 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1378 for instance \`--prefix=\$HOME'.
1379
1380 For better control, use the options below.
1381
1382 Fine tuning of the installation directories:
1383 --bindir=DIR user executables [EPREFIX/bin]
1384 --sbindir=DIR system admin executables [EPREFIX/sbin]
1385 --libexecdir=DIR program executables [EPREFIX/libexec]
1386 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1387 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1388 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1389 --libdir=DIR object code libraries [EPREFIX/lib]
1390 --includedir=DIR C header files [PREFIX/include]
1391 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1392 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1393 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1394 --infodir=DIR info documentation [DATAROOTDIR/info]
1395 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1396 --mandir=DIR man documentation [DATAROOTDIR/man]
1397 --docdir=DIR documentation root
1398 [DATAROOTDIR/doc/xf86-input-vmmouse]
1399 --htmldir=DIR html documentation [DOCDIR]
1400 --dvidir=DIR dvi documentation [DOCDIR]
1401 --pdfdir=DIR pdf documentation [DOCDIR]
1402 --psdir=DIR ps documentation [DOCDIR]
1403 _ACEOF
1404
1405 cat <<\_ACEOF
1406
1407 Program names:
1408 --program-prefix=PREFIX prepend PREFIX to installed program names
1409 --program-suffix=SUFFIX append SUFFIX to installed program names
1410 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1411
1412 System types:
1413 --build=BUILD configure for building on BUILD [guessed]
1414 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1415 _ACEOF
1416 fi
1417
1418 if test -n "$ac_init_help"; then
1419 case $ac_init_help in
1420 short | recursive ) echo "Configuration of xf86-input-vmmouse 13.1.0:";;
1421 esac
1422 cat <<\_ACEOF
1423
1424 Optional Features:
1425 --disable-option-checking ignore unrecognized --enable/--with options
1426 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1427 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1428 --disable-dependency-tracking speeds up one-time build
1429 --enable-dependency-tracking do not reject slow dependency extractors
1430 --disable-selective-werror
1431 Turn off selective compiler errors. (default:
1432 enabled)
1433 --enable-strict-compilation
1434 Enable all warnings from compiler and make them
1435 errors (default: disabled)
1436 --enable-silent-rules less verbose build output (undo: `make V=1')
1437 --disable-silent-rules verbose build output (undo: `make V=0')
1438 --enable-static[=PKGS] build static libraries [default=no]
1439 --enable-shared[=PKGS] build shared libraries [default=yes]
1440 --enable-fast-install[=PKGS]
1441 optimize for fast installation [default=yes]
1442 --disable-libtool-lock avoid locking (might break parallel builds)
1443
1444 Optional Packages:
1445 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1446 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1447 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1448 both]
1449 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1450 --with-sysroot=DIR Search for dependent libraries within DIR
1451 (or the compiler's sysroot if not specified).
1452 --with-xorg-module-dir=DIR
1453 Default xorg module directory
1454 [[default=$libdir/xorg/modules]]
1455 --with-xorg-conf-dir=DIR
1456 Default xorg.conf.d directory [[default=from
1457 $PKG_CONFIG xorg-server]]
1458 --with-hal-bin-dir=DIR Directory where HAL binaries where installed
1459 [[default=$bindir]]
1460 --with-hal-callouts-dir=DIR
1461 Directory where HAL expects its callout scripts to
1462 be located [[default=$libdir/hal]]
1463 --with-hal-fdi-dir=DIR Directory where HAL expects its fdi files to be
1464 located
1465 [[default=$datadir/hal/fdi/policy/20thirdparty]]
1466 --with-udev-rules-dir=DIR
1467 Directory where udev expects its rules files
1468 [[default=$libdir/udev/rules.d]]
1469 --without-libudev Use to build without libudev on linux
1470
1471 Some influential environment variables:
1472 CC C compiler command
1473 CFLAGS C compiler flags
1474 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1475 nonstandard directory <lib dir>
1476 LIBS libraries to pass to the linker, e.g. -l<library>
1477 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1478 you have headers in a nonstandard directory <include dir>
1479 CPP C preprocessor
1480 PKG_CONFIG path to pkg-config utility
1481 PKG_CONFIG_PATH
1482 directories to add to pkg-config's search path
1483 PKG_CONFIG_LIBDIR
1484 path overriding pkg-config's built-in search path
1485 LIBUDEV_CFLAGS
1486 C compiler flags for LIBUDEV, overriding pkg-config
1487 LIBUDEV_LIBS
1488 linker flags for LIBUDEV, overriding pkg-config
1489 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1490 XORG_LIBS linker flags for XORG, overriding pkg-config
1491
1492 Use these variables to override the choices made by `configure' or to help
1493 it to find libraries and programs with nonstandard names/locations.
1494
1495 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1496 _ACEOF
1497 ac_status=$?
1498 fi
1499
1500 if test "$ac_init_help" = "recursive"; then
1501 # If there are subdirs, report their specific --help.
1502 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1503 test -d "$ac_dir" ||
1504 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1505 continue
1506 ac_builddir=.
1507
1508 case "$ac_dir" in
1509 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1510 *)
1511 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1512 # A ".." for each directory in $ac_dir_suffix.
1513 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1514 case $ac_top_builddir_sub in
1515 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1517 esac ;;
1518 esac
1519 ac_abs_top_builddir=$ac_pwd
1520 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1521 # for backward compatibility:
1522 ac_top_builddir=$ac_top_build_prefix
1523
1524 case $srcdir in
1525 .) # We are building in place.
1526 ac_srcdir=.
1527 ac_top_srcdir=$ac_top_builddir_sub
1528 ac_abs_top_srcdir=$ac_pwd ;;
1529 [\\/]* | ?:[\\/]* ) # Absolute name.
1530 ac_srcdir=$srcdir$ac_dir_suffix;
1531 ac_top_srcdir=$srcdir
1532 ac_abs_top_srcdir=$srcdir ;;
1533 *) # Relative name.
1534 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1535 ac_top_srcdir=$ac_top_build_prefix$srcdir
1536 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1537 esac
1538 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1539
1540 cd "$ac_dir" || { ac_status=$?; continue; }
1541 # Check for guested configure.
1542 if test -f "$ac_srcdir/configure.gnu"; then
1543 echo &&
1544 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1545 elif test -f "$ac_srcdir/configure"; then
1546 echo &&
1547 $SHELL "$ac_srcdir/configure" --help=recursive
1548 else
1549 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1550 fi || ac_status=$?
1551 cd "$ac_pwd" || { ac_status=$?; break; }
1552 done
1553 fi
1554
1555 test -n "$ac_init_help" && exit $ac_status
1556 if $ac_init_version; then
1557 cat <<\_ACEOF
1558 xf86-input-vmmouse configure 13.1.0
1559 generated by GNU Autoconf 2.68
1560
1561 Copyright (C) 2010 Free Software Foundation, Inc.
1562 This configure script is free software; the Free Software Foundation
1563 gives unlimited permission to copy, distribute and modify it.
1564 _ACEOF
1565 exit
1566 fi
1567
1568 ## ------------------------ ##
1569 ## Autoconf initialization. ##
1570 ## ------------------------ ##
1571
1572 # ac_fn_c_try_compile LINENO
1573 # --------------------------
1574 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1575 ac_fn_c_try_compile ()
1576 {
1577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578 rm -f conftest.$ac_objext
1579 if { { ac_try="$ac_compile"
1580 case "(($ac_try" in
1581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1582 *) ac_try_echo=$ac_try;;
1583 esac
1584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1585 $as_echo "$ac_try_echo"; } >&5
1586 (eval "$ac_compile") 2>conftest.err
1587 ac_status=$?
1588 if test -s conftest.err; then
1589 grep -v '^ *+' conftest.err >conftest.er1
1590 cat conftest.er1 >&5
1591 mv -f conftest.er1 conftest.err
1592 fi
1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594 test $ac_status = 0; } && {
1595 test -z "$ac_c_werror_flag" ||
1596 test ! -s conftest.err
1597 } && test -s conftest.$ac_objext; then :
1598 ac_retval=0
1599 else
1600 $as_echo "$as_me: failed program was:" >&5
1601 sed 's/^/| /' conftest.$ac_ext >&5
1602
1603 ac_retval=1
1604 fi
1605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1606 as_fn_set_status $ac_retval
1607
1608 } # ac_fn_c_try_compile
1609
1610 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1611 # ---------------------------------------------
1612 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1613 # accordingly.
1614 ac_fn_c_check_decl ()
1615 {
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 as_decl_name=`echo $2|sed 's/ *(.*//'`
1618 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1620 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1621 if eval \${$3+:} false; then :
1622 $as_echo_n "(cached) " >&6
1623 else
1624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1625 /* end confdefs.h. */
1626 $4
1627 int
1628 main ()
1629 {
1630 #ifndef $as_decl_name
1631 #ifdef __cplusplus
1632 (void) $as_decl_use;
1633 #else
1634 (void) $as_decl_name;
1635 #endif
1636 #endif
1637
1638 ;
1639 return 0;
1640 }
1641 _ACEOF
1642 if ac_fn_c_try_compile "$LINENO"; then :
1643 eval "$3=yes"
1644 else
1645 eval "$3=no"
1646 fi
1647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1648 fi
1649 eval ac_res=\$$3
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1651 $as_echo "$ac_res" >&6; }
1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653
1654 } # ac_fn_c_check_decl
1655
1656 # ac_fn_c_try_cpp LINENO
1657 # ----------------------
1658 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1659 ac_fn_c_try_cpp ()
1660 {
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 if { { ac_try="$ac_cpp conftest.$ac_ext"
1663 case "(($ac_try" in
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1666 esac
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 $as_echo "$ac_try_echo"; } >&5
1669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1670 ac_status=$?
1671 if test -s conftest.err; then
1672 grep -v '^ *+' conftest.err >conftest.er1
1673 cat conftest.er1 >&5
1674 mv -f conftest.er1 conftest.err
1675 fi
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; } > conftest.i && {
1678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1679 test ! -s conftest.err
1680 }; then :
1681 ac_retval=0
1682 else
1683 $as_echo "$as_me: failed program was:" >&5
1684 sed 's/^/| /' conftest.$ac_ext >&5
1685
1686 ac_retval=1
1687 fi
1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689 as_fn_set_status $ac_retval
1690
1691 } # ac_fn_c_try_cpp
1692
1693 # ac_fn_c_try_run LINENO
1694 # ----------------------
1695 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1696 # that executables *can* be run.
1697 ac_fn_c_try_run ()
1698 {
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 if { { ac_try="$ac_link"
1701 case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704 esac
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_link") 2>&5
1708 ac_status=$?
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1711 { { case "(($ac_try" in
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1714 esac
1715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 $as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_try") 2>&5
1718 ac_status=$?
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; }; }; then :
1721 ac_retval=0
1722 else
1723 $as_echo "$as_me: program exited with status $ac_status" >&5
1724 $as_echo "$as_me: failed program was:" >&5
1725 sed 's/^/| /' conftest.$ac_ext >&5
1726
1727 ac_retval=$ac_status
1728 fi
1729 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731 as_fn_set_status $ac_retval
1732
1733 } # ac_fn_c_try_run
1734
1735 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1736 # -------------------------------------------------------
1737 # Tests whether HEADER exists and can be compiled using the include files in
1738 # INCLUDES, setting the cache variable VAR accordingly.
1739 ac_fn_c_check_header_compile ()
1740 {
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743 $as_echo_n "checking for $2... " >&6; }
1744 if eval \${$3+:} false; then :
1745 $as_echo_n "(cached) " >&6
1746 else
1747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748 /* end confdefs.h. */
1749 $4
1750 #include <$2>
1751 _ACEOF
1752 if ac_fn_c_try_compile "$LINENO"; then :
1753 eval "$3=yes"
1754 else
1755 eval "$3=no"
1756 fi
1757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1758 fi
1759 eval ac_res=\$$3
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1761 $as_echo "$ac_res" >&6; }
1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763
1764 } # ac_fn_c_check_header_compile
1765
1766 # ac_fn_c_try_link LINENO
1767 # -----------------------
1768 # Try to link conftest.$ac_ext, and return whether this succeeded.
1769 ac_fn_c_try_link ()
1770 {
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 rm -f conftest.$ac_objext conftest$ac_exeext
1773 if { { ac_try="$ac_link"
1774 case "(($ac_try" in
1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776 *) ac_try_echo=$ac_try;;
1777 esac
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780 (eval "$ac_link") 2>conftest.err
1781 ac_status=$?
1782 if test -s conftest.err; then
1783 grep -v '^ *+' conftest.err >conftest.er1
1784 cat conftest.er1 >&5
1785 mv -f conftest.er1 conftest.err
1786 fi
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } && {
1789 test -z "$ac_c_werror_flag" ||
1790 test ! -s conftest.err
1791 } && test -s conftest$ac_exeext && {
1792 test "$cross_compiling" = yes ||
1793 $as_test_x conftest$ac_exeext
1794 }; then :
1795 ac_retval=0
1796 else
1797 $as_echo "$as_me: failed program was:" >&5
1798 sed 's/^/| /' conftest.$ac_ext >&5
1799
1800 ac_retval=1
1801 fi
1802 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1803 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1804 # interfere with the next link command; also delete a directory that is
1805 # left behind by Apple's compiler. We do this before executing the actions.
1806 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808 as_fn_set_status $ac_retval
1809
1810 } # ac_fn_c_try_link
1811
1812 # ac_fn_c_check_func LINENO FUNC VAR
1813 # ----------------------------------
1814 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1815 ac_fn_c_check_func ()
1816 {
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819 $as_echo_n "checking for $2... " >&6; }
1820 if eval \${$3+:} false; then :
1821 $as_echo_n "(cached) " >&6
1822 else
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h. */
1825 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1827 #define $2 innocuous_$2
1828
1829 /* System header to define __stub macros and hopefully few prototypes,
1830 which can conflict with char $2 (); below.
1831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1832 <limits.h> exists even on freestanding compilers. */
1833
1834 #ifdef __STDC__
1835 # include <limits.h>
1836 #else
1837 # include <assert.h>
1838 #endif
1839
1840 #undef $2
1841
1842 /* Override any GCC internal prototype to avoid an error.
1843 Use char because int might match the return type of a GCC
1844 builtin and then its argument prototype would still apply. */
1845 #ifdef __cplusplus
1846 extern "C"
1847 #endif
1848 char $2 ();
1849 /* The GNU C library defines this for functions which it implements
1850 to always fail with ENOSYS. Some functions are actually named
1851 something starting with __ and the normal name is an alias. */
1852 #if defined __stub_$2 || defined __stub___$2
1853 choke me
1854 #endif
1855
1856 int
1857 main ()
1858 {
1859 return $2 ();
1860 ;
1861 return 0;
1862 }
1863 _ACEOF
1864 if ac_fn_c_try_link "$LINENO"; then :
1865 eval "$3=yes"
1866 else
1867 eval "$3=no"
1868 fi
1869 rm -f core conftest.err conftest.$ac_objext \
1870 conftest$ac_exeext conftest.$ac_ext
1871 fi
1872 eval ac_res=\$$3
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874 $as_echo "$ac_res" >&6; }
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876
1877 } # ac_fn_c_check_func
1878 cat >config.log <<_ACEOF
1879 This file contains any messages produced by compilers while
1880 running configure, to aid debugging if configure makes a mistake.
1881
1882 It was created by xf86-input-vmmouse $as_me 13.1.0, which was
1883 generated by GNU Autoconf 2.68. Invocation command line was
1884
1885 $ $0 $@
1886
1887 _ACEOF
1888 exec 5>>config.log
1889 {
1890 cat <<_ASUNAME
1891 ## --------- ##
1892 ## Platform. ##
1893 ## --------- ##
1894
1895 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1896 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1897 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1898 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1899 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1900
1901 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1902 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1903
1904 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1905 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1906 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1907 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1908 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1909 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1910 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1911
1912 _ASUNAME
1913
1914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915 for as_dir in $PATH
1916 do
1917 IFS=$as_save_IFS
1918 test -z "$as_dir" && as_dir=.
1919 $as_echo "PATH: $as_dir"
1920 done
1921 IFS=$as_save_IFS
1922
1923 } >&5
1924
1925 cat >&5 <<_ACEOF
1926
1927
1928 ## ----------- ##
1929 ## Core tests. ##
1930 ## ----------- ##
1931
1932 _ACEOF
1933
1934
1935 # Keep a trace of the command line.
1936 # Strip out --no-create and --no-recursion so they do not pile up.
1937 # Strip out --silent because we don't want to record it for future runs.
1938 # Also quote any args containing shell meta-characters.
1939 # Make two passes to allow for proper duplicate-argument suppression.
1940 ac_configure_args=
1941 ac_configure_args0=
1942 ac_configure_args1=
1943 ac_must_keep_next=false
1944 for ac_pass in 1 2
1945 do
1946 for ac_arg
1947 do
1948 case $ac_arg in
1949 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1950 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1951 | -silent | --silent | --silen | --sile | --sil)
1952 continue ;;
1953 *\'*)
1954 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1955 esac
1956 case $ac_pass in
1957 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1958 2)
1959 as_fn_append ac_configure_args1 " '$ac_arg'"
1960 if test $ac_must_keep_next = true; then
1961 ac_must_keep_next=false # Got value, back to normal.
1962 else
1963 case $ac_arg in
1964 *=* | --config-cache | -C | -disable-* | --disable-* \
1965 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1966 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1967 | -with-* | --with-* | -without-* | --without-* | --x)
1968 case "$ac_configure_args0 " in
1969 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1970 esac
1971 ;;
1972 -* ) ac_must_keep_next=true ;;
1973 esac
1974 fi
1975 as_fn_append ac_configure_args " '$ac_arg'"
1976 ;;
1977 esac
1978 done
1979 done
1980 { ac_configure_args0=; unset ac_configure_args0;}
1981 { ac_configure_args1=; unset ac_configure_args1;}
1982
1983 # When interrupted or exit'd, cleanup temporary files, and complete
1984 # config.log. We remove comments because anyway the quotes in there
1985 # would cause problems or look ugly.
1986 # WARNING: Use '\'' to represent an apostrophe within the trap.
1987 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1988 trap 'exit_status=$?
1989 # Save into config.log some information that might help in debugging.
1990 {
1991 echo
1992
1993 $as_echo "## ---------------- ##
1994 ## Cache variables. ##
1995 ## ---------------- ##"
1996 echo
1997 # The following way of writing the cache mishandles newlines in values,
1998 (
1999 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2000 eval ac_val=\$$ac_var
2001 case $ac_val in #(
2002 *${as_nl}*)
2003 case $ac_var in #(
2004 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2005 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2006 esac
2007 case $ac_var in #(
2008 _ | IFS | as_nl) ;; #(
2009 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2010 *) { eval $ac_var=; unset $ac_var;} ;;
2011 esac ;;
2012 esac
2013 done
2014 (set) 2>&1 |
2015 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2016 *${as_nl}ac_space=\ *)
2017 sed -n \
2018 "s/'\''/'\''\\\\'\'''\''/g;
2019 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2020 ;; #(
2021 *)
2022 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2023 ;;
2024 esac |
2025 sort
2026 )
2027 echo
2028
2029 $as_echo "## ----------------- ##
2030 ## Output variables. ##
2031 ## ----------------- ##"
2032 echo
2033 for ac_var in $ac_subst_vars
2034 do
2035 eval ac_val=\$$ac_var
2036 case $ac_val in
2037 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2038 esac
2039 $as_echo "$ac_var='\''$ac_val'\''"
2040 done | sort
2041 echo
2042
2043 if test -n "$ac_subst_files"; then
2044 $as_echo "## ------------------- ##
2045 ## File substitutions. ##
2046 ## ------------------- ##"
2047 echo
2048 for ac_var in $ac_subst_files
2049 do
2050 eval ac_val=\$$ac_var
2051 case $ac_val in
2052 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2053 esac
2054 $as_echo "$ac_var='\''$ac_val'\''"
2055 done | sort
2056 echo
2057 fi
2058
2059 if test -s confdefs.h; then
2060 $as_echo "## ----------- ##
2061 ## confdefs.h. ##
2062 ## ----------- ##"
2063 echo
2064 cat confdefs.h
2065 echo
2066 fi
2067 test "$ac_signal" != 0 &&
2068 $as_echo "$as_me: caught signal $ac_signal"
2069 $as_echo "$as_me: exit $exit_status"
2070 } >&5
2071 rm -f core *.core core.conftest.* &&
2072 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2073 exit $exit_status
2074 ' 0
2075 for ac_signal in 1 2 13 15; do
2076 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2077 done
2078 ac_signal=0
2079
2080 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2081 rm -f -r conftest* confdefs.h
2082
2083 $as_echo "/* confdefs.h */" > confdefs.h
2084
2085 # Predefined preprocessor variables.
2086
2087 cat >>confdefs.h <<_ACEOF
2088 #define PACKAGE_NAME "$PACKAGE_NAME"
2089 _ACEOF
2090
2091 cat >>confdefs.h <<_ACEOF
2092 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2093 _ACEOF
2094
2095 cat >>confdefs.h <<_ACEOF
2096 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2097 _ACEOF
2098
2099 cat >>confdefs.h <<_ACEOF
2100 #define PACKAGE_STRING "$PACKAGE_STRING"
2101 _ACEOF
2102
2103 cat >>confdefs.h <<_ACEOF
2104 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2105 _ACEOF
2106
2107 cat >>confdefs.h <<_ACEOF
2108 #define PACKAGE_URL "$PACKAGE_URL"
2109 _ACEOF
2110
2111
2112 # Let the site file select an alternate cache file if it wants to.
2113 # Prefer an explicitly selected file to automatically selected ones.
2114 ac_site_file1=NONE
2115 ac_site_file2=NONE
2116 if test -n "$CONFIG_SITE"; then
2117 # We do not want a PATH search for config.site.
2118 case $CONFIG_SITE in #((
2119 -*) ac_site_file1=./$CONFIG_SITE;;
2120 */*) ac_site_file1=$CONFIG_SITE;;
2121 *) ac_site_file1=./$CONFIG_SITE;;
2122 esac
2123 elif test "x$prefix" != xNONE; then
2124 ac_site_file1=$prefix/share/config.site
2125 ac_site_file2=$prefix/etc/config.site
2126 else
2127 ac_site_file1=$ac_default_prefix/share/config.site
2128 ac_site_file2=$ac_default_prefix/etc/config.site
2129 fi
2130 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2131 do
2132 test "x$ac_site_file" = xNONE && continue
2133 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2135 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2136 sed 's/^/| /' "$ac_site_file" >&5
2137 . "$ac_site_file" \
2138 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2140 as_fn_error $? "failed to load site script $ac_site_file
2141 See \`config.log' for more details" "$LINENO" 5; }
2142 fi
2143 done
2144
2145 if test -r "$cache_file"; then
2146 # Some versions of bash will fail to source /dev/null (special files
2147 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2148 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2150 $as_echo "$as_me: loading cache $cache_file" >&6;}
2151 case $cache_file in
2152 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2153 *) . "./$cache_file";;
2154 esac
2155 fi
2156 else
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2158 $as_echo "$as_me: creating cache $cache_file" >&6;}
2159 >$cache_file
2160 fi
2161
2162 # Check that the precious variables saved in the cache have kept the same
2163 # value.
2164 ac_cache_corrupted=false
2165 for ac_var in $ac_precious_vars; do
2166 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2167 eval ac_new_set=\$ac_env_${ac_var}_set
2168 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2169 eval ac_new_val=\$ac_env_${ac_var}_value
2170 case $ac_old_set,$ac_new_set in
2171 set,)
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2173 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2174 ac_cache_corrupted=: ;;
2175 ,set)
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2177 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2178 ac_cache_corrupted=: ;;
2179 ,);;
2180 *)
2181 if test "x$ac_old_val" != "x$ac_new_val"; then
2182 # differences in whitespace do not lead to failure.
2183 ac_old_val_w=`echo x $ac_old_val`
2184 ac_new_val_w=`echo x $ac_new_val`
2185 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2187 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2188 ac_cache_corrupted=:
2189 else
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2191 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2192 eval $ac_var=\$ac_old_val
2193 fi
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2195 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2197 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2198 fi;;
2199 esac
2200 # Pass precious variables to config.status.
2201 if test "$ac_new_set" = set; then
2202 case $ac_new_val in
2203 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2204 *) ac_arg=$ac_var=$ac_new_val ;;
2205 esac
2206 case " $ac_configure_args " in
2207 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2208 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2209 esac
2210 fi
2211 done
2212 if $ac_cache_corrupted; then
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2216 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2217 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2218 fi
2219 ## -------------------- ##
2220 ## Main body of script. ##
2221 ## -------------------- ##
2222
2223 ac_ext=c
2224 ac_cpp='$CPP $CPPFLAGS'
2225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2228
2229
2230
2231
2232 ac_aux_dir=
2233 for ac_dir in . "$srcdir"/.; do
2234 if test -f "$ac_dir/install-sh"; then
2235 ac_aux_dir=$ac_dir
2236 ac_install_sh="$ac_aux_dir/install-sh -c"
2237 break
2238 elif test -f "$ac_dir/install.sh"; then
2239 ac_aux_dir=$ac_dir
2240 ac_install_sh="$ac_aux_dir/install.sh -c"
2241 break
2242 elif test -f "$ac_dir/shtool"; then
2243 ac_aux_dir=$ac_dir
2244 ac_install_sh="$ac_aux_dir/shtool install -c"
2245 break
2246 fi
2247 done
2248 if test -z "$ac_aux_dir"; then
2249 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2250 fi
2251
2252 # These three variables are undocumented and unsupported,
2253 # and are intended to be withdrawn in a future Autoconf release.
2254 # They can cause serious problems if a builder's source tree is in a directory
2255 # whose full name contains unusual characters.
2256 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2257 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2258 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2259
2260
2261 ac_config_headers="$ac_config_headers config.h"
2262
2263
2264 am__api_version='1.11'
2265
2266 # Find a good install program. We prefer a C program (faster),
2267 # so one script is as good as another. But avoid the broken or
2268 # incompatible versions:
2269 # SysV /etc/install, /usr/sbin/install
2270 # SunOS /usr/etc/install
2271 # IRIX /sbin/install
2272 # AIX /bin/install
2273 # AmigaOS /C/install, which installs bootblocks on floppy discs
2274 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2275 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2276 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2277 # OS/2's system install, which has a completely different semantic
2278 # ./install, which can be erroneously created by make from ./install.sh.
2279 # Reject install programs that cannot install multiple files.
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2281 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2282 if test -z "$INSTALL"; then
2283 if ${ac_cv_path_install+:} false; then :
2284 $as_echo_n "(cached) " >&6
2285 else
2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287 for as_dir in $PATH
2288 do
2289 IFS=$as_save_IFS
2290 test -z "$as_dir" && as_dir=.
2291 # Account for people who put trailing slashes in PATH elements.
2292 case $as_dir/ in #((
2293 ./ | .// | /[cC]/* | \
2294 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2295 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2296 /usr/ucb/* ) ;;
2297 *)
2298 # OSF1 and SCO ODT 3.0 have their own names for install.
2299 # Don't use installbsd from OSF since it installs stuff as root
2300 # by default.
2301 for ac_prog in ginstall scoinst install; do
2302 for ac_exec_ext in '' $ac_executable_extensions; do
2303 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2304 if test $ac_prog = install &&
2305 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2306 # AIX install. It has an incompatible calling convention.
2307 :
2308 elif test $ac_prog = install &&
2309 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2310 # program-specific install script used by HP pwplus--don't use.
2311 :
2312 else
2313 rm -rf conftest.one conftest.two conftest.dir
2314 echo one > conftest.one
2315 echo two > conftest.two
2316 mkdir conftest.dir
2317 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2318 test -s conftest.one && test -s conftest.two &&
2319 test -s conftest.dir/conftest.one &&
2320 test -s conftest.dir/conftest.two
2321 then
2322 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2323 break 3
2324 fi
2325 fi
2326 fi
2327 done
2328 done
2329 ;;
2330 esac
2331
2332 done
2333 IFS=$as_save_IFS
2334
2335 rm -rf conftest.one conftest.two conftest.dir
2336
2337 fi
2338 if test "${ac_cv_path_install+set}" = set; then
2339 INSTALL=$ac_cv_path_install
2340 else
2341 # As a last resort, use the slow shell script. Don't cache a
2342 # value for INSTALL within a source directory, because that will
2343 # break other packages using the cache if that directory is
2344 # removed, or if the value is a relative name.
2345 INSTALL=$ac_install_sh
2346 fi
2347 fi
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2349 $as_echo "$INSTALL" >&6; }
2350
2351 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2352 # It thinks the first close brace ends the variable substitution.
2353 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2354
2355 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2356
2357 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2358
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2360 $as_echo_n "checking whether build environment is sane... " >&6; }
2361 # Just in case
2362 sleep 1
2363 echo timestamp > conftest.file
2364 # Reject unsafe characters in $srcdir or the absolute working directory
2365 # name. Accept space and tab only in the latter.
2366 am_lf='
2367 '
2368 case `pwd` in
2369 *[\\\"\#\$\&\'\`$am_lf]*)
2370 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2371 esac
2372 case $srcdir in
2373 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2374 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2375 esac
2376
2377 # Do `set' in a subshell so we don't clobber the current shell's
2378 # arguments. Must try -L first in case configure is actually a
2379 # symlink; some systems play weird games with the mod time of symlinks
2380 # (eg FreeBSD returns the mod time of the symlink's containing
2381 # directory).
2382 if (
2383 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2384 if test "$*" = "X"; then
2385 # -L didn't work.
2386 set X `ls -t "$srcdir/configure" conftest.file`
2387 fi
2388 rm -f conftest.file
2389 if test "$*" != "X $srcdir/configure conftest.file" \
2390 && test "$*" != "X conftest.file $srcdir/configure"; then
2391
2392 # If neither matched, then we have a broken ls. This can happen
2393 # if, for instance, CONFIG_SHELL is bash and it inherits a
2394 # broken ls alias from the environment. This has actually
2395 # happened. Such a system could not be considered "sane".
2396 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2397 alias in your environment" "$LINENO" 5
2398 fi
2399
2400 test "$2" = conftest.file
2401 )
2402 then
2403 # Ok.
2404 :
2405 else
2406 as_fn_error $? "newly created file is older than distributed files!
2407 Check your system clock" "$LINENO" 5
2408 fi
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2410 $as_echo "yes" >&6; }
2411 test "$program_prefix" != NONE &&
2412 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2413 # Use a double $ so make ignores it.
2414 test "$program_suffix" != NONE &&
2415 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2416 # Double any \ or $.
2417 # By default was `s,x,x', remove it if useless.
2418 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2419 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2420
2421 # expand $ac_aux_dir to an absolute path
2422 am_aux_dir=`cd $ac_aux_dir && pwd`
2423
2424 if test x"${MISSING+set}" != xset; then
2425 case $am_aux_dir in
2426 *\ * | *\ *)
2427 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2428 *)
2429 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2430 esac
2431 fi
2432 # Use eval to expand $SHELL
2433 if eval "$MISSING --run true"; then
2434 am_missing_run="$MISSING --run "
2435 else
2436 am_missing_run=
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2438 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2439 fi
2440
2441 if test x"${install_sh}" != xset; then
2442 case $am_aux_dir in
2443 *\ * | *\ *)
2444 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2445 *)
2446 install_sh="\${SHELL} $am_aux_dir/install-sh"
2447 esac
2448 fi
2449
2450 # Installed binaries are usually stripped using `strip' when the user
2451 # run `make install-strip'. However `strip' might not be the right
2452 # tool to use in cross-compilation environments, therefore Automake
2453 # will honor the `STRIP' environment variable to overrule this program.
2454 if test "$cross_compiling" != no; then
2455 if test -n "$ac_tool_prefix"; then
2456 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2457 set dummy ${ac_tool_prefix}strip; ac_word=$2
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2459 $as_echo_n "checking for $ac_word... " >&6; }
2460 if ${ac_cv_prog_STRIP+:} false; then :
2461 $as_echo_n "(cached) " >&6
2462 else
2463 if test -n "$STRIP"; then
2464 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2465 else
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 for as_dir in $PATH
2468 do
2469 IFS=$as_save_IFS
2470 test -z "$as_dir" && as_dir=.
2471 for ac_exec_ext in '' $ac_executable_extensions; do
2472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2473 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2475 break 2
2476 fi
2477 done
2478 done
2479 IFS=$as_save_IFS
2480
2481 fi
2482 fi
2483 STRIP=$ac_cv_prog_STRIP
2484 if test -n "$STRIP"; then
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2486 $as_echo "$STRIP" >&6; }
2487 else
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2489 $as_echo "no" >&6; }
2490 fi
2491
2492
2493 fi
2494 if test -z "$ac_cv_prog_STRIP"; then
2495 ac_ct_STRIP=$STRIP
2496 # Extract the first word of "strip", so it can be a program name with args.
2497 set dummy strip; ac_word=$2
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2499 $as_echo_n "checking for $ac_word... " >&6; }
2500 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2501 $as_echo_n "(cached) " >&6
2502 else
2503 if test -n "$ac_ct_STRIP"; then
2504 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2505 else
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 for as_dir in $PATH
2508 do
2509 IFS=$as_save_IFS
2510 test -z "$as_dir" && as_dir=.
2511 for ac_exec_ext in '' $ac_executable_extensions; do
2512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2513 ac_cv_prog_ac_ct_STRIP="strip"
2514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2515 break 2
2516 fi
2517 done
2518 done
2519 IFS=$as_save_IFS
2520
2521 fi
2522 fi
2523 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2524 if test -n "$ac_ct_STRIP"; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2526 $as_echo "$ac_ct_STRIP" >&6; }
2527 else
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2529 $as_echo "no" >&6; }
2530 fi
2531
2532 if test "x$ac_ct_STRIP" = x; then
2533 STRIP=":"
2534 else
2535 case $cross_compiling:$ac_tool_warned in
2536 yes:)
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2539 ac_tool_warned=yes ;;
2540 esac
2541 STRIP=$ac_ct_STRIP
2542 fi
2543 else
2544 STRIP="$ac_cv_prog_STRIP"
2545 fi
2546
2547 fi
2548 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2549
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2551 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2552 if test -z "$MKDIR_P"; then
2553 if ${ac_cv_path_mkdir+:} false; then :
2554 $as_echo_n "(cached) " >&6
2555 else
2556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2558 do
2559 IFS=$as_save_IFS
2560 test -z "$as_dir" && as_dir=.
2561 for ac_prog in mkdir gmkdir; do
2562 for ac_exec_ext in '' $ac_executable_extensions; do
2563 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2564 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2565 'mkdir (GNU coreutils) '* | \
2566 'mkdir (coreutils) '* | \
2567 'mkdir (fileutils) '4.1*)
2568 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2569 break 3;;
2570 esac
2571 done
2572 done
2573 done
2574 IFS=$as_save_IFS
2575
2576 fi
2577
2578 test -d ./--version && rmdir ./--version
2579 if test "${ac_cv_path_mkdir+set}" = set; then
2580 MKDIR_P="$ac_cv_path_mkdir -p"
2581 else
2582 # As a last resort, use the slow shell script. Don't cache a
2583 # value for MKDIR_P within a source directory, because that will
2584 # break other packages using the cache if that directory is
2585 # removed, or if the value is a relative name.
2586 MKDIR_P="$ac_install_sh -d"
2587 fi
2588 fi
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2590 $as_echo "$MKDIR_P" >&6; }
2591
2592 mkdir_p="$MKDIR_P"
2593 case $mkdir_p in
2594 [\\/$]* | ?:[\\/]*) ;;
2595 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2596 esac
2597
2598 for ac_prog in gawk mawk nawk awk
2599 do
2600 # Extract the first word of "$ac_prog", so it can be a program name with args.
2601 set dummy $ac_prog; ac_word=$2
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2603 $as_echo_n "checking for $ac_word... " >&6; }
2604 if ${ac_cv_prog_AWK+:} false; then :
2605 $as_echo_n "(cached) " >&6
2606 else
2607 if test -n "$AWK"; then
2608 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2609 else
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 for as_dir in $PATH
2612 do
2613 IFS=$as_save_IFS
2614 test -z "$as_dir" && as_dir=.
2615 for ac_exec_ext in '' $ac_executable_extensions; do
2616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2617 ac_cv_prog_AWK="$ac_prog"
2618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2619 break 2
2620 fi
2621 done
2622 done
2623 IFS=$as_save_IFS
2624
2625 fi
2626 fi
2627 AWK=$ac_cv_prog_AWK
2628 if test -n "$AWK"; then
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2630 $as_echo "$AWK" >&6; }
2631 else
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2633 $as_echo "no" >&6; }
2634 fi
2635
2636
2637 test -n "$AWK" && break
2638 done
2639
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2641 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2642 set x ${MAKE-make}
2643 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2644 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2645 $as_echo_n "(cached) " >&6
2646 else
2647 cat >conftest.make <<\_ACEOF
2648 SHELL = /bin/sh
2649 all:
2650 @echo '@@@%%%=$(MAKE)=@@@%%%'
2651 _ACEOF
2652 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2653 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2654 *@@@%%%=?*=@@@%%%*)
2655 eval ac_cv_prog_make_${ac_make}_set=yes;;
2656 *)
2657 eval ac_cv_prog_make_${ac_make}_set=no;;
2658 esac
2659 rm -f conftest.make
2660 fi
2661 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2663 $as_echo "yes" >&6; }
2664 SET_MAKE=
2665 else
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667 $as_echo "no" >&6; }
2668 SET_MAKE="MAKE=${MAKE-make}"
2669 fi
2670
2671 rm -rf .tst 2>/dev/null
2672 mkdir .tst 2>/dev/null
2673 if test -d .tst; then
2674 am__leading_dot=.
2675 else
2676 am__leading_dot=_
2677 fi
2678 rmdir .tst 2>/dev/null
2679
2680 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2681 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2682 # is not polluted with repeated "-I."
2683 am__isrc=' -I$(srcdir)'
2684 # test to see if srcdir already configured
2685 if test -f $srcdir/config.status; then
2686 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2687 fi
2688 fi
2689
2690 # test whether we have cygpath
2691 if test -z "$CYGPATH_W"; then
2692 if (cygpath --version) >/dev/null 2>/dev/null; then
2693 CYGPATH_W='cygpath -w'
2694 else
2695 CYGPATH_W=echo
2696 fi
2697 fi
2698
2699
2700 # Define the identity of the package.
2701 PACKAGE='xf86-input-vmmouse'
2702 VERSION='13.1.0'
2703
2704
2705 cat >>confdefs.h <<_ACEOF
2706 #define PACKAGE "$PACKAGE"
2707 _ACEOF
2708
2709
2710 cat >>confdefs.h <<_ACEOF
2711 #define VERSION "$VERSION"
2712 _ACEOF
2713
2714 # Some tools Automake needs.
2715
2716 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2717
2718
2719 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2720
2721
2722 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2723
2724
2725 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2726
2727
2728 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2729
2730 # We need awk for the "check" target. The system "awk" is bad on
2731 # some platforms.
2732 # Always define AMTAR for backward compatibility. Yes, it's still used
2733 # in the wild :-( We should find a proper way to deprecate it ...
2734 AMTAR='$${TAR-tar}'
2735
2736 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2737
2738
2739
2740
2741
2742
2743 # XORG_DEFAULT_OPTIONS below forces C99. Solaris GCC doesn't like that.
2744 ac_ext=c
2745 ac_cpp='$CPP $CPPFLAGS'
2746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2749 if test -n "$ac_tool_prefix"; then
2750 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2751 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2753 $as_echo_n "checking for $ac_word... " >&6; }
2754 if ${ac_cv_prog_CC+:} false; then :
2755 $as_echo_n "(cached) " >&6
2756 else
2757 if test -n "$CC"; then
2758 ac_cv_prog_CC="$CC" # Let the user override the test.
2759 else
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 for as_dir in $PATH
2762 do
2763 IFS=$as_save_IFS
2764 test -z "$as_dir" && as_dir=.
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2767 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2769 break 2
2770 fi
2771 done
2772 done
2773 IFS=$as_save_IFS
2774
2775 fi
2776 fi
2777 CC=$ac_cv_prog_CC
2778 if test -n "$CC"; then
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2780 $as_echo "$CC" >&6; }
2781 else
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2783 $as_echo "no" >&6; }
2784 fi
2785
2786
2787 fi
2788 if test -z "$ac_cv_prog_CC"; then
2789 ac_ct_CC=$CC
2790 # Extract the first word of "gcc", so it can be a program name with args.
2791 set dummy gcc; ac_word=$2
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2793 $as_echo_n "checking for $ac_word... " >&6; }
2794 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2795 $as_echo_n "(cached) " >&6
2796 else
2797 if test -n "$ac_ct_CC"; then
2798 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2799 else
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 for as_dir in $PATH
2802 do
2803 IFS=$as_save_IFS
2804 test -z "$as_dir" && as_dir=.
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2807 ac_cv_prog_ac_ct_CC="gcc"
2808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2809 break 2
2810 fi
2811 done
2812 done
2813 IFS=$as_save_IFS
2814
2815 fi
2816 fi
2817 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2818 if test -n "$ac_ct_CC"; then
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2820 $as_echo "$ac_ct_CC" >&6; }
2821 else
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823 $as_echo "no" >&6; }
2824 fi
2825
2826 if test "x$ac_ct_CC" = x; then
2827 CC=""
2828 else
2829 case $cross_compiling:$ac_tool_warned in
2830 yes:)
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2833 ac_tool_warned=yes ;;
2834 esac
2835 CC=$ac_ct_CC
2836 fi
2837 else
2838 CC="$ac_cv_prog_CC"
2839 fi
2840
2841 if test -z "$CC"; then
2842 if test -n "$ac_tool_prefix"; then
2843 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2844 set dummy ${ac_tool_prefix}cc; ac_word=$2
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2846 $as_echo_n "checking for $ac_word... " >&6; }
2847 if ${ac_cv_prog_CC+:} false; then :
2848 $as_echo_n "(cached) " >&6
2849 else
2850 if test -n "$CC"; then
2851 ac_cv_prog_CC="$CC" # Let the user override the test.
2852 else
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 for as_dir in $PATH
2855 do
2856 IFS=$as_save_IFS
2857 test -z "$as_dir" && as_dir=.
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2860 ac_cv_prog_CC="${ac_tool_prefix}cc"
2861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 break 2
2863 fi
2864 done
2865 done
2866 IFS=$as_save_IFS
2867
2868 fi
2869 fi
2870 CC=$ac_cv_prog_CC
2871 if test -n "$CC"; then
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2873 $as_echo "$CC" >&6; }
2874 else
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876 $as_echo "no" >&6; }
2877 fi
2878
2879
2880 fi
2881 fi
2882 if test -z "$CC"; then
2883 # Extract the first word of "cc", so it can be a program name with args.
2884 set dummy cc; ac_word=$2
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2886 $as_echo_n "checking for $ac_word... " >&6; }
2887 if ${ac_cv_prog_CC+:} false; then :
2888 $as_echo_n "(cached) " >&6
2889 else
2890 if test -n "$CC"; then
2891 ac_cv_prog_CC="$CC" # Let the user override the test.
2892 else
2893 ac_prog_rejected=no
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 for as_dir in $PATH
2896 do
2897 IFS=$as_save_IFS
2898 test -z "$as_dir" && as_dir=.
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2901 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2902 ac_prog_rejected=yes
2903 continue
2904 fi
2905 ac_cv_prog_CC="cc"
2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2907 break 2
2908 fi
2909 done
2910 done
2911 IFS=$as_save_IFS
2912
2913 if test $ac_prog_rejected = yes; then
2914 # We found a bogon in the path, so make sure we never use it.
2915 set dummy $ac_cv_prog_CC
2916 shift
2917 if test $# != 0; then
2918 # We chose a different compiler from the bogus one.
2919 # However, it has the same basename, so the bogon will be chosen
2920 # first if we set CC to just the basename; use the full file name.
2921 shift
2922 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2923 fi
2924 fi
2925 fi
2926 fi
2927 CC=$ac_cv_prog_CC
2928 if test -n "$CC"; then
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2930 $as_echo "$CC" >&6; }
2931 else
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933 $as_echo "no" >&6; }
2934 fi
2935
2936
2937 fi
2938 if test -z "$CC"; then
2939 if test -n "$ac_tool_prefix"; then
2940 for ac_prog in cl.exe
2941 do
2942 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2943 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945 $as_echo_n "checking for $ac_word... " >&6; }
2946 if ${ac_cv_prog_CC+:} false; then :
2947 $as_echo_n "(cached) " >&6
2948 else
2949 if test -n "$CC"; then
2950 ac_cv_prog_CC="$CC" # Let the user override the test.
2951 else
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2954 do
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2959 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2961 break 2
2962 fi
2963 done
2964 done
2965 IFS=$as_save_IFS
2966
2967 fi
2968 fi
2969 CC=$ac_cv_prog_CC
2970 if test -n "$CC"; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2972 $as_echo "$CC" >&6; }
2973 else
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 $as_echo "no" >&6; }
2976 fi
2977
2978
2979 test -n "$CC" && break
2980 done
2981 fi
2982 if test -z "$CC"; then
2983 ac_ct_CC=$CC
2984 for ac_prog in cl.exe
2985 do
2986 # Extract the first word of "$ac_prog", so it can be a program name with args.
2987 set dummy $ac_prog; ac_word=$2
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989 $as_echo_n "checking for $ac_word... " >&6; }
2990 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2991 $as_echo_n "(cached) " >&6
2992 else
2993 if test -n "$ac_ct_CC"; then
2994 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2995 else
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 for as_dir in $PATH
2998 do
2999 IFS=$as_save_IFS
3000 test -z "$as_dir" && as_dir=.
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3003 ac_cv_prog_ac_ct_CC="$ac_prog"
3004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005 break 2
3006 fi
3007 done
3008 done
3009 IFS=$as_save_IFS
3010
3011 fi
3012 fi
3013 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3014 if test -n "$ac_ct_CC"; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3016 $as_echo "$ac_ct_CC" >&6; }
3017 else
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 $as_echo "no" >&6; }
3020 fi
3021
3022
3023 test -n "$ac_ct_CC" && break
3024 done
3025
3026 if test "x$ac_ct_CC" = x; then
3027 CC=""
3028 else
3029 case $cross_compiling:$ac_tool_warned in
3030 yes:)
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3033 ac_tool_warned=yes ;;
3034 esac
3035 CC=$ac_ct_CC
3036 fi
3037 fi
3038
3039 fi
3040
3041
3042 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3044 as_fn_error $? "no acceptable C compiler found in \$PATH
3045 See \`config.log' for more details" "$LINENO" 5; }
3046
3047 # Provide some information about the compiler.
3048 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3049 set X $ac_compile
3050 ac_compiler=$2
3051 for ac_option in --version -v -V -qversion; do
3052 { { ac_try="$ac_compiler $ac_option >&5"
3053 case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056 esac
3057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3058 $as_echo "$ac_try_echo"; } >&5
3059 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3060 ac_status=$?
3061 if test -s conftest.err; then
3062 sed '10a\
3063 ... rest of stderr output deleted ...
3064 10q' conftest.err >conftest.er1
3065 cat conftest.er1 >&5
3066 fi
3067 rm -f conftest.er1 conftest.err
3068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3069 test $ac_status = 0; }
3070 done
3071
3072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3073 /* end confdefs.h. */
3074
3075 int
3076 main ()
3077 {
3078
3079 ;
3080 return 0;
3081 }
3082 _ACEOF
3083 ac_clean_files_save=$ac_clean_files
3084 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3085 # Try to create an executable without -o first, disregard a.out.
3086 # It will help us diagnose broken compilers, and finding out an intuition
3087 # of exeext.
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3089 $as_echo_n "checking whether the C compiler works... " >&6; }
3090 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3091
3092 # The possible output files:
3093 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3094
3095 ac_rmfiles=
3096 for ac_file in $ac_files
3097 do
3098 case $ac_file in
3099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3100 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3101 esac
3102 done
3103 rm -f $ac_rmfiles
3104
3105 if { { ac_try="$ac_link_default"
3106 case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3109 esac
3110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3111 $as_echo "$ac_try_echo"; } >&5
3112 (eval "$ac_link_default") 2>&5
3113 ac_status=$?
3114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3115 test $ac_status = 0; }; then :
3116 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3117 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3118 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3119 # so that the user can short-circuit this test for compilers unknown to
3120 # Autoconf.
3121 for ac_file in $ac_files ''
3122 do
3123 test -f "$ac_file" || continue
3124 case $ac_file in
3125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3126 ;;
3127 [ab].out )
3128 # We found the default executable, but exeext='' is most
3129 # certainly right.
3130 break;;
3131 *.* )
3132 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3133 then :; else
3134 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3135 fi
3136 # We set ac_cv_exeext here because the later test for it is not
3137 # safe: cross compilers may not add the suffix if given an `-o'
3138 # argument, so we may need to know it at that point already.
3139 # Even if this section looks crufty: it has the advantage of
3140 # actually working.
3141 break;;
3142 * )
3143 break;;
3144 esac
3145 done
3146 test "$ac_cv_exeext" = no && ac_cv_exeext=
3147
3148 else
3149 ac_file=''
3150 fi
3151 if test -z "$ac_file"; then :
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153 $as_echo "no" >&6; }
3154 $as_echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3156
3157 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3159 as_fn_error 77 "C compiler cannot create executables
3160 See \`config.log' for more details" "$LINENO" 5; }
3161 else
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3163 $as_echo "yes" >&6; }
3164 fi
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3166 $as_echo_n "checking for C compiler default output file name... " >&6; }
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3168 $as_echo "$ac_file" >&6; }
3169 ac_exeext=$ac_cv_exeext
3170
3171 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3172 ac_clean_files=$ac_clean_files_save
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3174 $as_echo_n "checking for suffix of executables... " >&6; }
3175 if { { ac_try="$ac_link"
3176 case "(($ac_try" in
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3179 esac
3180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3181 $as_echo "$ac_try_echo"; } >&5
3182 (eval "$ac_link") 2>&5
3183 ac_status=$?
3184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3185 test $ac_status = 0; }; then :
3186 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3187 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3188 # work properly (i.e., refer to `conftest.exe'), while it won't with
3189 # `rm'.
3190 for ac_file in conftest.exe conftest conftest.*; do
3191 test -f "$ac_file" || continue
3192 case $ac_file in
3193 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3194 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3195 break;;
3196 * ) break;;
3197 esac
3198 done
3199 else
3200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3202 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3203 See \`config.log' for more details" "$LINENO" 5; }
3204 fi
3205 rm -f conftest conftest$ac_cv_exeext
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3207 $as_echo "$ac_cv_exeext" >&6; }
3208
3209 rm -f conftest.$ac_ext
3210 EXEEXT=$ac_cv_exeext
3211 ac_exeext=$EXEEXT
3212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213 /* end confdefs.h. */
3214 #include <stdio.h>
3215 int
3216 main ()
3217 {
3218 FILE *f = fopen ("conftest.out", "w");
3219 return ferror (f) || fclose (f) != 0;
3220
3221 ;
3222 return 0;
3223 }
3224 _ACEOF
3225 ac_clean_files="$ac_clean_files conftest.out"
3226 # Check that the compiler produces executables we can run. If not, either
3227 # the compiler is broken, or we cross compile.
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3229 $as_echo_n "checking whether we are cross compiling... " >&6; }
3230 if test "$cross_compiling" != yes; then
3231 { { ac_try="$ac_link"
3232 case "(($ac_try" in
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3235 esac
3236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3237 $as_echo "$ac_try_echo"; } >&5
3238 (eval "$ac_link") 2>&5
3239 ac_status=$?
3240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3241 test $ac_status = 0; }
3242 if { ac_try='./conftest$ac_cv_exeext'
3243 { { case "(($ac_try" in
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3246 esac
3247 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3248 $as_echo "$ac_try_echo"; } >&5
3249 (eval "$ac_try") 2>&5
3250 ac_status=$?
3251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3252 test $ac_status = 0; }; }; then
3253 cross_compiling=no
3254 else
3255 if test "$cross_compiling" = maybe; then
3256 cross_compiling=yes
3257 else
3258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3260 as_fn_error $? "cannot run C compiled programs.
3261 If you meant to cross compile, use \`--host'.
3262 See \`config.log' for more details" "$LINENO" 5; }
3263 fi
3264 fi
3265 fi
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3267 $as_echo "$cross_compiling" >&6; }
3268
3269 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3270 ac_clean_files=$ac_clean_files_save
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3272 $as_echo_n "checking for suffix of object files... " >&6; }
3273 if ${ac_cv_objext+:} false; then :
3274 $as_echo_n "(cached) " >&6
3275 else
3276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3277 /* end confdefs.h. */
3278
3279 int
3280 main ()
3281 {
3282
3283 ;
3284 return 0;
3285 }
3286 _ACEOF
3287 rm -f conftest.o conftest.obj
3288 if { { ac_try="$ac_compile"
3289 case "(($ac_try" in
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3292 esac
3293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3294 $as_echo "$ac_try_echo"; } >&5
3295 (eval "$ac_compile") 2>&5
3296 ac_status=$?
3297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3298 test $ac_status = 0; }; then :
3299 for ac_file in conftest.o conftest.obj conftest.*; do
3300 test -f "$ac_file" || continue;
3301 case $ac_file in
3302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3303 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3304 break;;
3305 esac
3306 done
3307 else
3308 $as_echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3310
3311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3313 as_fn_error $? "cannot compute suffix of object files: cannot compile
3314 See \`config.log' for more details" "$LINENO" 5; }
3315 fi
3316 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3317 fi
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3319 $as_echo "$ac_cv_objext" >&6; }
3320 OBJEXT=$ac_cv_objext
3321 ac_objext=$OBJEXT
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3323 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3324 if ${ac_cv_c_compiler_gnu+:} false; then :
3325 $as_echo_n "(cached) " >&6
3326 else
3327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3328 /* end confdefs.h. */
3329
3330 int
3331 main ()
3332 {
3333 #ifndef __GNUC__
3334 choke me
3335 #endif
3336
3337 ;
3338 return 0;
3339 }
3340 _ACEOF
3341 if ac_fn_c_try_compile "$LINENO"; then :
3342 ac_compiler_gnu=yes
3343 else
3344 ac_compiler_gnu=no
3345 fi
3346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3347 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3348
3349 fi
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3351 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3352 if test $ac_compiler_gnu = yes; then
3353 GCC=yes
3354 else
3355 GCC=
3356 fi
3357 ac_test_CFLAGS=${CFLAGS+set}
3358 ac_save_CFLAGS=$CFLAGS
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3360 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3361 if ${ac_cv_prog_cc_g+:} false; then :
3362 $as_echo_n "(cached) " >&6
3363 else
3364 ac_save_c_werror_flag=$ac_c_werror_flag
3365 ac_c_werror_flag=yes
3366 ac_cv_prog_cc_g=no
3367 CFLAGS="-g"
3368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369 /* end confdefs.h. */
3370
3371 int
3372 main ()
3373 {
3374
3375 ;
3376 return 0;
3377 }
3378 _ACEOF
3379 if ac_fn_c_try_compile "$LINENO"; then :
3380 ac_cv_prog_cc_g=yes
3381 else
3382 CFLAGS=""
3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384 /* end confdefs.h. */
3385
3386 int
3387 main ()
3388 {
3389
3390 ;
3391 return 0;
3392 }
3393 _ACEOF
3394 if ac_fn_c_try_compile "$LINENO"; then :
3395
3396 else
3397 ac_c_werror_flag=$ac_save_c_werror_flag
3398 CFLAGS="-g"
3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400 /* end confdefs.h. */
3401
3402 int
3403 main ()
3404 {
3405
3406 ;
3407 return 0;
3408 }
3409 _ACEOF
3410 if ac_fn_c_try_compile "$LINENO"; then :
3411 ac_cv_prog_cc_g=yes
3412 fi
3413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3414 fi
3415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3416 fi
3417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3418 ac_c_werror_flag=$ac_save_c_werror_flag
3419 fi
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3421 $as_echo "$ac_cv_prog_cc_g" >&6; }
3422 if test "$ac_test_CFLAGS" = set; then
3423 CFLAGS=$ac_save_CFLAGS
3424 elif test $ac_cv_prog_cc_g = yes; then
3425 if test "$GCC" = yes; then
3426 CFLAGS="-g -O2"
3427 else
3428 CFLAGS="-g"
3429 fi
3430 else
3431 if test "$GCC" = yes; then
3432 CFLAGS="-O2"
3433 else
3434 CFLAGS=
3435 fi
3436 fi
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3438 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3439 if ${ac_cv_prog_cc_c89+:} false; then :
3440 $as_echo_n "(cached) " >&6
3441 else
3442 ac_cv_prog_cc_c89=no
3443 ac_save_CC=$CC
3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445 /* end confdefs.h. */
3446 #include <stdarg.h>
3447 #include <stdio.h>
3448 #include <sys/types.h>
3449 #include <sys/stat.h>
3450 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3451 struct buf { int x; };
3452 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3453 static char *e (p, i)
3454 char **p;
3455 int i;
3456 {
3457 return p[i];
3458 }
3459 static char *f (char * (*g) (char **, int), char **p, ...)
3460 {
3461 char *s;
3462 va_list v;
3463 va_start (v,p);
3464 s = g (p, va_arg (v,int));
3465 va_end (v);
3466 return s;
3467 }
3468
3469 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3470 function prototypes and stuff, but not '\xHH' hex character constants.
3471 These don't provoke an error unfortunately, instead are silently treated
3472 as 'x'. The following induces an error, until -std is added to get
3473 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3474 array size at least. It's necessary to write '\x00'==0 to get something
3475 that's true only with -std. */
3476 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3477
3478 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3479 inside strings and character constants. */
3480 #define FOO(x) 'x'
3481 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3482
3483 int test (int i, double x);
3484 struct s1 {int (*f) (int a);};
3485 struct s2 {int (*f) (double a);};
3486 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3487 int argc;
3488 char **argv;
3489 int
3490 main ()
3491 {
3492 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3493 ;
3494 return 0;
3495 }
3496 _ACEOF
3497 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3498 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3499 do
3500 CC="$ac_save_CC $ac_arg"
3501 if ac_fn_c_try_compile "$LINENO"; then :
3502 ac_cv_prog_cc_c89=$ac_arg
3503 fi
3504 rm -f core conftest.err conftest.$ac_objext
3505 test "x$ac_cv_prog_cc_c89" != "xno" && break
3506 done
3507 rm -f conftest.$ac_ext
3508 CC=$ac_save_CC
3509
3510 fi
3511 # AC_CACHE_VAL
3512 case "x$ac_cv_prog_cc_c89" in
3513 x)
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3515 $as_echo "none needed" >&6; } ;;
3516 xno)
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3518 $as_echo "unsupported" >&6; } ;;
3519 *)
3520 CC="$CC $ac_cv_prog_cc_c89"
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3522 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3523 esac
3524 if test "x$ac_cv_prog_cc_c89" != xno; then :
3525
3526 fi
3527
3528 ac_ext=c
3529 ac_cpp='$CPP $CPPFLAGS'
3530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3533 DEPDIR="${am__leading_dot}deps"
3534
3535 ac_config_commands="$ac_config_commands depfiles"
3536
3537
3538 am_make=${MAKE-make}
3539 cat > confinc << 'END'
3540 am__doit:
3541 @echo this is the am__doit target
3542 .PHONY: am__doit
3543 END
3544 # If we don't find an include directive, just comment out the code.
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3546 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3547 am__include="#"
3548 am__quote=
3549 _am_result=none
3550 # First try GNU make style include.
3551 echo "include confinc" > confmf
3552 # Ignore all kinds of additional output from `make'.
3553 case `$am_make -s -f confmf 2> /dev/null` in #(
3554 *the\ am__doit\ target*)
3555 am__include=include
3556 am__quote=
3557 _am_result=GNU
3558 ;;
3559 esac
3560 # Now try BSD make style include.
3561 if test "$am__include" = "#"; then
3562 echo '.include "confinc"' > confmf
3563 case `$am_make -s -f confmf 2> /dev/null` in #(
3564 *the\ am__doit\ target*)
3565 am__include=.include
3566 am__quote="\""
3567 _am_result=BSD
3568 ;;
3569 esac
3570 fi
3571
3572
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3574 $as_echo "$_am_result" >&6; }
3575 rm -f confinc confmf
3576
3577 # Check whether --enable-dependency-tracking was given.
3578 if test "${enable_dependency_tracking+set}" = set; then :
3579 enableval=$enable_dependency_tracking;
3580 fi
3581
3582 if test "x$enable_dependency_tracking" != xno; then
3583 am_depcomp="$ac_aux_dir/depcomp"
3584 AMDEPBACKSLASH='\'
3585 am__nodep='_no'
3586 fi
3587 if test "x$enable_dependency_tracking" != xno; then
3588 AMDEP_TRUE=
3589 AMDEP_FALSE='#'
3590 else
3591 AMDEP_TRUE='#'
3592 AMDEP_FALSE=
3593 fi
3594
3595
3596
3597 depcc="$CC" am_compiler_list=
3598
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3600 $as_echo_n "checking dependency style of $depcc... " >&6; }
3601 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3602 $as_echo_n "(cached) " >&6
3603 else
3604 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3605 # We make a subdir and do the tests there. Otherwise we can end up
3606 # making bogus files that we don't know about and never remove. For
3607 # instance it was reported that on HP-UX the gcc test will end up
3608 # making a dummy file named `D' -- because `-MD' means `put the output
3609 # in D'.
3610 rm -rf conftest.dir
3611 mkdir conftest.dir
3612 # Copy depcomp to subdir because otherwise we won't find it if we're
3613 # using a relative directory.
3614 cp "$am_depcomp" conftest.dir
3615 cd conftest.dir
3616 # We will build objects and dependencies in a subdirectory because
3617 # it helps to detect inapplicable dependency modes. For instance
3618 # both Tru64's cc and ICC support -MD to output dependencies as a
3619 # side effect of compilation, but ICC will put the dependencies in
3620 # the current directory while Tru64 will put them in the object
3621 # directory.
3622 mkdir sub
3623
3624 am_cv_CC_dependencies_compiler_type=none
3625 if test "$am_compiler_list" = ""; then
3626 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3627 fi
3628 am__universal=false
3629 case " $depcc " in #(
3630 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3631 esac
3632
3633 for depmode in $am_compiler_list; do
3634 # Setup a source with many dependencies, because some compilers
3635 # like to wrap large dependency lists on column 80 (with \), and
3636 # we should not choose a depcomp mode which is confused by this.
3637 #
3638 # We need to recreate these files for each test, as the compiler may
3639 # overwrite some of them when testing with obscure command lines.
3640 # This happens at least with the AIX C compiler.
3641 : > sub/conftest.c
3642 for i in 1 2 3 4 5 6; do
3643 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3644 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3645 # Solaris 8's {/usr,}/bin/sh.
3646 touch sub/conftst$i.h
3647 done
3648 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3649
3650 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3651 # mode. It turns out that the SunPro C++ compiler does not properly
3652 # handle `-M -o', and we need to detect this. Also, some Intel
3653 # versions had trouble with output in subdirs
3654 am__obj=sub/conftest.${OBJEXT-o}
3655 am__minus_obj="-o $am__obj"
3656 case $depmode in
3657 gcc)
3658 # This depmode causes a compiler race in universal mode.
3659 test "$am__universal" = false || continue
3660 ;;
3661 nosideeffect)
3662 # after this tag, mechanisms are not by side-effect, so they'll
3663 # only be used when explicitly requested
3664 if test "x$enable_dependency_tracking" = xyes; then
3665 continue
3666 else
3667 break
3668 fi
3669 ;;
3670 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3671 # This compiler won't grok `-c -o', but also, the minuso test has
3672 # not run yet. These depmodes are late enough in the game, and
3673 # so weak that their functioning should not be impacted.
3674 am__obj=conftest.${OBJEXT-o}
3675 am__minus_obj=
3676 ;;
3677 none) break ;;
3678 esac
3679 if depmode=$depmode \
3680 source=sub/conftest.c object=$am__obj \
3681 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3682 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3683 >/dev/null 2>conftest.err &&
3684 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3685 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3686 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3687 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3688 # icc doesn't choke on unknown options, it will just issue warnings
3689 # or remarks (even with -Werror). So we grep stderr for any message
3690 # that says an option was ignored or not supported.
3691 # When given -MP, icc 7.0 and 7.1 complain thusly:
3692 # icc: Command line warning: ignoring option '-M'; no argument required
3693 # The diagnosis changed in icc 8.0:
3694 # icc: Command line remark: option '-MP' not supported
3695 if (grep 'ignoring option' conftest.err ||
3696 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3697 am_cv_CC_dependencies_compiler_type=$depmode
3698 break
3699 fi
3700 fi
3701 done
3702
3703 cd ..
3704 rm -rf conftest.dir
3705 else
3706 am_cv_CC_dependencies_compiler_type=none
3707 fi
3708
3709 fi
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3711 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3712 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3713
3714 if
3715 test "x$enable_dependency_tracking" != xno \
3716 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3717 am__fastdepCC_TRUE=
3718 am__fastdepCC_FALSE='#'
3719 else
3720 am__fastdepCC_TRUE='#'
3721 am__fastdepCC_FALSE=
3722 fi
3723
3724
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3726 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3727 if ${ac_cv_prog_cc_c89+:} false; then :
3728 $as_echo_n "(cached) " >&6
3729 else
3730 ac_cv_prog_cc_c89=no
3731 ac_save_CC=$CC
3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733 /* end confdefs.h. */
3734 #include <stdarg.h>
3735 #include <stdio.h>
3736 #include <sys/types.h>
3737 #include <sys/stat.h>
3738 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3739 struct buf { int x; };
3740 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3741 static char *e (p, i)
3742 char **p;
3743 int i;
3744 {
3745 return p[i];
3746 }
3747 static char *f (char * (*g) (char **, int), char **p, ...)
3748 {
3749 char *s;
3750 va_list v;
3751 va_start (v,p);
3752 s = g (p, va_arg (v,int));
3753 va_end (v);
3754 return s;
3755 }
3756
3757 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3758 function prototypes and stuff, but not '\xHH' hex character constants.
3759 These don't provoke an error unfortunately, instead are silently treated
3760 as 'x'. The following induces an error, until -std is added to get
3761 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3762 array size at least. It's necessary to write '\x00'==0 to get something
3763 that's true only with -std. */
3764 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3765
3766 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3767 inside strings and character constants. */
3768 #define FOO(x) 'x'
3769 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3770
3771 int test (int i, double x);
3772 struct s1 {int (*f) (int a);};
3773 struct s2 {int (*f) (double a);};
3774 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3775 int argc;
3776 char **argv;
3777 int
3778 main ()
3779 {
3780 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3781 ;
3782 return 0;
3783 }
3784 _ACEOF
3785 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3786 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3787 do
3788 CC="$ac_save_CC $ac_arg"
3789 if ac_fn_c_try_compile "$LINENO"; then :
3790 ac_cv_prog_cc_c89=$ac_arg
3791 fi
3792 rm -f core conftest.err conftest.$ac_objext
3793 test "x$ac_cv_prog_cc_c89" != "xno" && break
3794 done
3795 rm -f conftest.$ac_ext
3796 CC=$ac_save_CC
3797
3798 fi
3799 # AC_CACHE_VAL
3800 case "x$ac_cv_prog_cc_c89" in
3801 x)
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3803 $as_echo "none needed" >&6; } ;;
3804 xno)
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3806 $as_echo "unsupported" >&6; } ;;
3807 *)
3808 CC="$CC $ac_cv_prog_cc_c89"
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3810 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3811 esac
3812 if test "x$ac_cv_prog_cc_c89" != xno; then :
3813
3814 fi
3815
3816
3817 save_solaris_cc=$CC
3818
3819 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3832 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3833 if ${ac_cv_prog_cc_c99+:} false; then :
3834 $as_echo_n "(cached) " >&6
3835 else
3836 ac_cv_prog_cc_c99=no
3837 ac_save_CC=$CC
3838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3839 /* end confdefs.h. */
3840 #include <stdarg.h>
3841 #include <stdbool.h>
3842 #include <stdlib.h>
3843 #include <wchar.h>
3844 #include <stdio.h>
3845
3846 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3847 #define debug(...) fprintf (stderr, __VA_ARGS__)
3848 #define showlist(...) puts (#__VA_ARGS__)
3849 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3850 static void
3851 test_varargs_macros (void)
3852 {
3853 int x = 1234;
3854 int y = 5678;
3855 debug ("Flag");
3856 debug ("X = %d\n", x);
3857 showlist (The first, second, and third items.);
3858 report (x>y, "x is %d but y is %d", x, y);
3859 }
3860
3861 // Check long long types.
3862 #define BIG64 18446744073709551615ull
3863 #define BIG32 4294967295ul
3864 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3865 #if !BIG_OK
3866 your preprocessor is broken;
3867 #endif
3868 #if BIG_OK
3869 #else
3870 your preprocessor is broken;
3871 #endif
3872 static long long int bignum = -9223372036854775807LL;
3873 static unsigned long long int ubignum = BIG64;
3874
3875 struct incomplete_array
3876 {
3877 int datasize;
3878 double data[];
3879 };
3880
3881 struct named_init {
3882 int number;
3883 const wchar_t *name;
3884 double average;
3885 };
3886
3887 typedef const char *ccp;
3888
3889 static inline int
3890 test_restrict (ccp restrict text)
3891 {
3892 // See if C++-style comments work.
3893 // Iterate through items via the restricted pointer.
3894 // Also check for declarations in for loops.
3895 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3896 continue;
3897 return 0;
3898 }
3899
3900 // Check varargs and va_copy.
3901 static void
3902 test_varargs (const char *format, ...)
3903 {
3904 va_list args;
3905 va_start (args, format);
3906 va_list args_copy;
3907 va_copy (args_copy, args);
3908
3909 const char *str;
3910 int number;
3911 float fnumber;
3912
3913 while (*format)
3914 {
3915 switch (*format++)
3916 {
3917 case 's': // string
3918 str = va_arg (args_copy, const char *);
3919 break;
3920 case 'd': // int
3921 number = va_arg (args_copy, int);
3922 break;
3923 case 'f': // float
3924 fnumber = va_arg (args_copy, double);
3925 break;
3926 default:
3927 break;
3928 }
3929 }
3930 va_end (args_copy);
3931 va_end (args);
3932 }
3933
3934 int
3935 main ()
3936 {
3937
3938 // Check bool.
3939 _Bool success = false;
3940
3941 // Check restrict.
3942 if (test_restrict ("String literal") == 0)
3943 success = true;
3944 char *restrict newvar = "Another string";
3945
3946 // Check varargs.
3947 test_varargs ("s, d' f .", "string", 65, 34.234);
3948 test_varargs_macros ();
3949
3950 // Check flexible array members.
3951 struct incomplete_array *ia =
3952 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3953 ia->datasize = 10;
3954 for (int i = 0; i < ia->datasize; ++i)
3955 ia->data[i] = i * 1.234;
3956
3957 // Check named initializers.
3958 struct named_init ni = {
3959 .number = 34,
3960 .name = L"Test wide string",
3961 .average = 543.34343,
3962 };
3963
3964 ni.number = 58;
3965
3966 int dynamic_array[ni.number];
3967 dynamic_array[ni.number - 1] = 543;
3968
3969 // work around unused variable warnings
3970 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3971 || dynamic_array[ni.number - 1] != 543);
3972
3973 ;
3974 return 0;
3975 }
3976 _ACEOF
3977 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3978 do
3979 CC="$ac_save_CC $ac_arg"
3980 if ac_fn_c_try_compile "$LINENO"; then :
3981 ac_cv_prog_cc_c99=$ac_arg
3982 fi
3983 rm -f core conftest.err conftest.$ac_objext
3984 test "x$ac_cv_prog_cc_c99" != "xno" && break
3985 done
3986 rm -f conftest.$ac_ext
3987 CC=$ac_save_CC
3988
3989 fi
3990 # AC_CACHE_VAL
3991 case "x$ac_cv_prog_cc_c99" in
3992 x)
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3994 $as_echo "none needed" >&6; } ;;
3995 xno)
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3997 $as_echo "unsupported" >&6; } ;;
3998 *)
3999 CC="$CC $ac_cv_prog_cc_c99"
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4001 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4002 esac
4003 if test "x$ac_cv_prog_cc_c99" != xno; then :
4004
4005 fi
4006
4007
4008
4009 ac_ext=c
4010 ac_cpp='$CPP $CPPFLAGS'
4011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4015 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4016 # On Suns, sometimes $CPP names a directory.
4017 if test -n "$CPP" && test -d "$CPP"; then
4018 CPP=
4019 fi
4020 if test -z "$CPP"; then
4021 if ${ac_cv_prog_CPP+:} false; then :
4022 $as_echo_n "(cached) " >&6
4023 else
4024 # Double quotes because CPP needs to be expanded
4025 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4026 do
4027 ac_preproc_ok=false
4028 for ac_c_preproc_warn_flag in '' yes
4029 do
4030 # Use a header file that comes with gcc, so configuring glibc
4031 # with a fresh cross-compiler works.
4032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4033 # <limits.h> exists even on freestanding compilers.
4034 # On the NeXT, cc -E runs the code through the compiler's parser,
4035 # not just through cpp. "Syntax error" is here to catch this case.
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4038 #ifdef __STDC__
4039 # include <limits.h>
4040 #else
4041 # include <assert.h>
4042 #endif
4043 Syntax error
4044 _ACEOF
4045 if ac_fn_c_try_cpp "$LINENO"; then :
4046
4047 else
4048 # Broken: fails on valid input.
4049 continue
4050 fi
4051 rm -f conftest.err conftest.i conftest.$ac_ext
4052
4053 # OK, works on sane cases. Now check whether nonexistent headers
4054 # can be detected and how.
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4057 #include <ac_nonexistent.h>
4058 _ACEOF
4059 if ac_fn_c_try_cpp "$LINENO"; then :
4060 # Broken: success on invalid input.
4061 continue
4062 else
4063 # Passes both tests.
4064 ac_preproc_ok=:
4065 break
4066 fi
4067 rm -f conftest.err conftest.i conftest.$ac_ext
4068
4069 done
4070 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4071 rm -f conftest.i conftest.err conftest.$ac_ext
4072 if $ac_preproc_ok; then :
4073 break
4074 fi
4075
4076 done
4077 ac_cv_prog_CPP=$CPP
4078
4079 fi
4080 CPP=$ac_cv_prog_CPP
4081 else
4082 ac_cv_prog_CPP=$CPP
4083 fi
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4085 $as_echo "$CPP" >&6; }
4086 ac_preproc_ok=false
4087 for ac_c_preproc_warn_flag in '' yes
4088 do
4089 # Use a header file that comes with gcc, so configuring glibc
4090 # with a fresh cross-compiler works.
4091 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4092 # <limits.h> exists even on freestanding compilers.
4093 # On the NeXT, cc -E runs the code through the compiler's parser,
4094 # not just through cpp. "Syntax error" is here to catch this case.
4095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096 /* end confdefs.h. */
4097 #ifdef __STDC__
4098 # include <limits.h>
4099 #else
4100 # include <assert.h>
4101 #endif
4102 Syntax error
4103 _ACEOF
4104 if ac_fn_c_try_cpp "$LINENO"; then :
4105
4106 else
4107 # Broken: fails on valid input.
4108 continue
4109 fi
4110 rm -f conftest.err conftest.i conftest.$ac_ext
4111
4112 # OK, works on sane cases. Now check whether nonexistent headers
4113 # can be detected and how.
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4116 #include <ac_nonexistent.h>
4117 _ACEOF
4118 if ac_fn_c_try_cpp "$LINENO"; then :
4119 # Broken: success on invalid input.
4120 continue
4121 else
4122 # Passes both tests.
4123 ac_preproc_ok=:
4124 break
4125 fi
4126 rm -f conftest.err conftest.i conftest.$ac_ext
4127
4128 done
4129 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4130 rm -f conftest.i conftest.err conftest.$ac_ext
4131 if $ac_preproc_ok; then :
4132
4133 else
4134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4136 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4137 See \`config.log' for more details" "$LINENO" 5; }
4138 fi
4139
4140 ac_ext=c
4141 ac_cpp='$CPP $CPPFLAGS'
4142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4145
4146
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4148 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4149 if ${ac_cv_path_GREP+:} false; then :
4150 $as_echo_n "(cached) " >&6
4151 else
4152 if test -z "$GREP"; then
4153 ac_path_GREP_found=false
4154 # Loop through the user's path and test for each of PROGNAME-LIST
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4157 do
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
4160 for ac_prog in grep ggrep; do
4161 for ac_exec_ext in '' $ac_executable_extensions; do
4162 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4163 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4164 # Check for GNU ac_path_GREP and select it if it is found.
4165 # Check for GNU $ac_path_GREP
4166 case `"$ac_path_GREP" --version 2>&1` in
4167 *GNU*)
4168 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4169 *)
4170 ac_count=0
4171 $as_echo_n 0123456789 >"conftest.in"
4172 while :
4173 do
4174 cat "conftest.in" "conftest.in" >"conftest.tmp"
4175 mv "conftest.tmp" "conftest.in"
4176 cp "conftest.in" "conftest.nl"
4177 $as_echo 'GREP' >> "conftest.nl"
4178 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4179 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4180 as_fn_arith $ac_count + 1 && ac_count=$as_val
4181 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4182 # Best one so far, save it but keep looking for a better one
4183 ac_cv_path_GREP="$ac_path_GREP"
4184 ac_path_GREP_max=$ac_count
4185 fi
4186 # 10*(2^10) chars as input seems more than enough
4187 test $ac_count -gt 10 && break
4188 done
4189 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4190 esac
4191
4192 $ac_path_GREP_found && break 3
4193 done
4194 done
4195 done
4196 IFS=$as_save_IFS
4197 if test -z "$ac_cv_path_GREP"; then
4198 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4199 fi
4200 else
4201 ac_cv_path_GREP=$GREP
4202 fi
4203
4204 fi
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4206 $as_echo "$ac_cv_path_GREP" >&6; }
4207 GREP="$ac_cv_path_GREP"
4208
4209
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4211 $as_echo_n "checking for egrep... " >&6; }
4212 if ${ac_cv_path_EGREP+:} false; then :
4213 $as_echo_n "(cached) " >&6
4214 else
4215 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4216 then ac_cv_path_EGREP="$GREP -E"
4217 else
4218 if test -z "$EGREP"; then
4219 ac_path_EGREP_found=false
4220 # Loop through the user's path and test for each of PROGNAME-LIST
4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4223 do
4224 IFS=$as_save_IFS
4225 test -z "$as_dir" && as_dir=.
4226 for ac_prog in egrep; do
4227 for ac_exec_ext in '' $ac_executable_extensions; do
4228 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4229 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4230 # Check for GNU ac_path_EGREP and select it if it is found.
4231 # Check for GNU $ac_path_EGREP
4232 case `"$ac_path_EGREP" --version 2>&1` in
4233 *GNU*)
4234 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4235 *)
4236 ac_count=0
4237 $as_echo_n 0123456789 >"conftest.in"
4238 while :
4239 do
4240 cat "conftest.in" "conftest.in" >"conftest.tmp"
4241 mv "conftest.tmp" "conftest.in"
4242 cp "conftest.in" "conftest.nl"
4243 $as_echo 'EGREP' >> "conftest.nl"
4244 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4246 as_fn_arith $ac_count + 1 && ac_count=$as_val
4247 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4248 # Best one so far, save it but keep looking for a better one
4249 ac_cv_path_EGREP="$ac_path_EGREP"
4250 ac_path_EGREP_max=$ac_count
4251 fi
4252 # 10*(2^10) chars as input seems more than enough
4253 test $ac_count -gt 10 && break
4254 done
4255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4256 esac
4257
4258 $ac_path_EGREP_found && break 3
4259 done
4260 done
4261 done
4262 IFS=$as_save_IFS
4263 if test -z "$ac_cv_path_EGREP"; then
4264 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4265 fi
4266 else
4267 ac_cv_path_EGREP=$EGREP
4268 fi
4269
4270 fi
4271 fi
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4273 $as_echo "$ac_cv_path_EGREP" >&6; }
4274 EGREP="$ac_cv_path_EGREP"
4275
4276
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4278 $as_echo_n "checking for ANSI C header files... " >&6; }
4279 if ${ac_cv_header_stdc+:} false; then :
4280 $as_echo_n "(cached) " >&6
4281 else
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4284 #include <stdlib.h>
4285 #include <stdarg.h>
4286 #include <string.h>
4287 #include <float.h>
4288
4289 int
4290 main ()
4291 {
4292
4293 ;
4294 return 0;
4295 }
4296 _ACEOF
4297 if ac_fn_c_try_compile "$LINENO"; then :
4298 ac_cv_header_stdc=yes
4299 else
4300 ac_cv_header_stdc=no
4301 fi
4302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4303
4304 if test $ac_cv_header_stdc = yes; then
4305 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h. */
4308 #include <string.h>
4309
4310 _ACEOF
4311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4312 $EGREP "memchr" >/dev/null 2>&1; then :
4313
4314 else
4315 ac_cv_header_stdc=no
4316 fi
4317 rm -f conftest*
4318
4319 fi
4320
4321 if test $ac_cv_header_stdc = yes; then
4322 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h. */
4325 #include <stdlib.h>
4326
4327 _ACEOF
4328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4329 $EGREP "free" >/dev/null 2>&1; then :
4330
4331 else
4332 ac_cv_header_stdc=no
4333 fi
4334 rm -f conftest*
4335
4336 fi
4337
4338 if test $ac_cv_header_stdc = yes; then
4339 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4340 if test "$cross_compiling" = yes; then :
4341 :
4342 else
4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h. */
4345 #include <ctype.h>
4346 #include <stdlib.h>
4347 #if ((' ' & 0x0FF) == 0x020)
4348 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4349 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4350 #else
4351 # define ISLOWER(c) \
4352 (('a' <= (c) && (c) <= 'i') \
4353 || ('j' <= (c) && (c) <= 'r') \
4354 || ('s' <= (c) && (c) <= 'z'))
4355 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4356 #endif
4357
4358 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4359 int
4360 main ()
4361 {
4362 int i;
4363 for (i = 0; i < 256; i++)
4364 if (XOR (islower (i), ISLOWER (i))
4365 || toupper (i) != TOUPPER (i))
4366 return 2;
4367 return 0;
4368 }
4369 _ACEOF
4370 if ac_fn_c_try_run "$LINENO"; then :
4371
4372 else
4373 ac_cv_header_stdc=no
4374 fi
4375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4376 conftest.$ac_objext conftest.beam conftest.$ac_ext
4377 fi
4378
4379 fi
4380 fi
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4382 $as_echo "$ac_cv_header_stdc" >&6; }
4383 if test $ac_cv_header_stdc = yes; then
4384
4385 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4386
4387 fi
4388
4389 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4390 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4391 inttypes.h stdint.h unistd.h
4392 do :
4393 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4394 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4395 "
4396 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4397 cat >>confdefs.h <<_ACEOF
4398 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4399 _ACEOF
4400
4401 fi
4402
4403 done
4404
4405
4406
4407
4408
4409
4410 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4411 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4412 CLANGCC="yes"
4413 else
4414 CLANGCC="no"
4415 fi
4416
4417 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4418 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4419 INTELCC="yes"
4420 else
4421 INTELCC="no"
4422 fi
4423
4424 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4425 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4426 SUNCC="yes"
4427 else
4428 SUNCC="no"
4429 fi
4430
4431
4432
4433
4434
4435
4436
4437
4438 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4439 if test -n "$ac_tool_prefix"; then
4440 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4441 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4443 $as_echo_n "checking for $ac_word... " >&6; }
4444 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4445 $as_echo_n "(cached) " >&6
4446 else
4447 case $PKG_CONFIG in
4448 [\\/]* | ?:[\\/]*)
4449 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4450 ;;
4451 *)
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 for as_dir in $PATH
4454 do
4455 IFS=$as_save_IFS
4456 test -z "$as_dir" && as_dir=.
4457 for ac_exec_ext in '' $ac_executable_extensions; do
4458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4459 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 break 2
4462 fi
4463 done
4464 done
4465 IFS=$as_save_IFS
4466
4467 ;;
4468 esac
4469 fi
4470 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4471 if test -n "$PKG_CONFIG"; then
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4473 $as_echo "$PKG_CONFIG" >&6; }
4474 else
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4476 $as_echo "no" >&6; }
4477 fi
4478
4479
4480 fi
4481 if test -z "$ac_cv_path_PKG_CONFIG"; then
4482 ac_pt_PKG_CONFIG=$PKG_CONFIG
4483 # Extract the first word of "pkg-config", so it can be a program name with args.
4484 set dummy pkg-config; ac_word=$2
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4486 $as_echo_n "checking for $ac_word... " >&6; }
4487 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4488 $as_echo_n "(cached) " >&6
4489 else
4490 case $ac_pt_PKG_CONFIG in
4491 [\\/]* | ?:[\\/]*)
4492 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4493 ;;
4494 *)
4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496 for as_dir in $PATH
4497 do
4498 IFS=$as_save_IFS
4499 test -z "$as_dir" && as_dir=.
4500 for ac_exec_ext in '' $ac_executable_extensions; do
4501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4502 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4504 break 2
4505 fi
4506 done
4507 done
4508 IFS=$as_save_IFS
4509
4510 ;;
4511 esac
4512 fi
4513 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4514 if test -n "$ac_pt_PKG_CONFIG"; then
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4516 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4517 else
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4519 $as_echo "no" >&6; }
4520 fi
4521
4522 if test "x$ac_pt_PKG_CONFIG" = x; then
4523 PKG_CONFIG=""
4524 else
4525 case $cross_compiling:$ac_tool_warned in
4526 yes:)
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4529 ac_tool_warned=yes ;;
4530 esac
4531 PKG_CONFIG=$ac_pt_PKG_CONFIG
4532 fi
4533 else
4534 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4535 fi
4536
4537 fi
4538 if test -n "$PKG_CONFIG"; then
4539 _pkg_min_version=0.9.0
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4541 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4542 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4544 $as_echo "yes" >&6; }
4545 else
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4547 $as_echo "no" >&6; }
4548 PKG_CONFIG=""
4549 fi
4550 fi
4551 # Make sure we can run config.sub.
4552 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4553 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4554
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4556 $as_echo_n "checking build system type... " >&6; }
4557 if ${ac_cv_build+:} false; then :
4558 $as_echo_n "(cached) " >&6
4559 else
4560 ac_build_alias=$build_alias
4561 test "x$ac_build_alias" = x &&
4562 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4563 test "x$ac_build_alias" = x &&
4564 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4565 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4566 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4567
4568 fi
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4570 $as_echo "$ac_cv_build" >&6; }
4571 case $ac_cv_build in
4572 *-*-*) ;;
4573 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4574 esac
4575 build=$ac_cv_build
4576 ac_save_IFS=$IFS; IFS='-'
4577 set x $ac_cv_build
4578 shift
4579 build_cpu=$1
4580 build_vendor=$2
4581 shift; shift
4582 # Remember, the first character of IFS is used to create $*,
4583 # except with old shells:
4584 build_os=$*
4585 IFS=$ac_save_IFS
4586 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4587
4588
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4590 $as_echo_n "checking host system type... " >&6; }
4591 if ${ac_cv_host+:} false; then :
4592 $as_echo_n "(cached) " >&6
4593 else
4594 if test "x$host_alias" = x; then
4595 ac_cv_host=$ac_cv_build
4596 else
4597 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4598 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4599 fi
4600
4601 fi
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4603 $as_echo "$ac_cv_host" >&6; }
4604 case $ac_cv_host in
4605 *-*-*) ;;
4606 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4607 esac
4608 host=$ac_cv_host
4609 ac_save_IFS=$IFS; IFS='-'
4610 set x $ac_cv_host
4611 shift
4612 host_cpu=$1
4613 host_vendor=$2
4614 shift; shift
4615 # Remember, the first character of IFS is used to create $*,
4616 # except with old shells:
4617 host_os=$*
4618 IFS=$ac_save_IFS
4619 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4620
4621
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4623 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4624 if ${ac_cv_path_SED+:} false; then :
4625 $as_echo_n "(cached) " >&6
4626 else
4627 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4628 for ac_i in 1 2 3 4 5 6 7; do
4629 ac_script="$ac_script$as_nl$ac_script"
4630 done
4631 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4632 { ac_script=; unset ac_script;}
4633 if test -z "$SED"; then
4634 ac_path_SED_found=false
4635 # Loop through the user's path and test for each of PROGNAME-LIST
4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637 for as_dir in $PATH
4638 do
4639 IFS=$as_save_IFS
4640 test -z "$as_dir" && as_dir=.
4641 for ac_prog in sed gsed; do
4642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4644 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4645 # Check for GNU ac_path_SED and select it if it is found.
4646 # Check for GNU $ac_path_SED
4647 case `"$ac_path_SED" --version 2>&1` in
4648 *GNU*)
4649 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4650 *)
4651 ac_count=0
4652 $as_echo_n 0123456789 >"conftest.in"
4653 while :
4654 do
4655 cat "conftest.in" "conftest.in" >"conftest.tmp"
4656 mv "conftest.tmp" "conftest.in"
4657 cp "conftest.in" "conftest.nl"
4658 $as_echo '' >> "conftest.nl"
4659 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4660 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4661 as_fn_arith $ac_count + 1 && ac_count=$as_val
4662 if test $ac_count -gt ${ac_path_SED_max-0}; then
4663 # Best one so far, save it but keep looking for a better one
4664 ac_cv_path_SED="$ac_path_SED"
4665 ac_path_SED_max=$ac_count
4666 fi
4667 # 10*(2^10) chars as input seems more than enough
4668 test $ac_count -gt 10 && break
4669 done
4670 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4671 esac
4672
4673 $ac_path_SED_found && break 3
4674 done
4675 done
4676 done
4677 IFS=$as_save_IFS
4678 if test -z "$ac_cv_path_SED"; then
4679 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4680 fi
4681 else
4682 ac_cv_path_SED=$SED
4683 fi
4684
4685 fi
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4687 $as_echo "$ac_cv_path_SED" >&6; }
4688 SED="$ac_cv_path_SED"
4689 rm -f conftest.sed
4690
4691
4692
4693
4694
4695
4696 # Check whether --enable-selective-werror was given.
4697 if test "${enable_selective_werror+set}" = set; then :
4698 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4699 else
4700 SELECTIVE_WERROR=yes
4701 fi
4702
4703
4704
4705
4706
4707 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4708 if test "x$SUNCC" = "xyes"; then
4709 BASE_CFLAGS="-v"
4710 else
4711 BASE_CFLAGS=""
4712 fi
4713
4714 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728 xorg_testset_save_CFLAGS="$CFLAGS"
4729
4730 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4731 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4733 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4734 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4735 $as_echo_n "(cached) " >&6
4736 else
4737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4738 /* end confdefs.h. */
4739 int i;
4740 _ACEOF
4741 if ac_fn_c_try_compile "$LINENO"; then :
4742 xorg_cv_cc_flag_unknown_warning_option=yes
4743 else
4744 xorg_cv_cc_flag_unknown_warning_option=no
4745 fi
4746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4747 fi
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4749 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4750 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4751 CFLAGS="$xorg_testset_save_CFLAGS"
4752 fi
4753
4754 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4757 fi
4758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4760 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4761 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4762 $as_echo_n "(cached) " >&6
4763 else
4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765 /* end confdefs.h. */
4766 int i;
4767 _ACEOF
4768 if ac_fn_c_try_compile "$LINENO"; then :
4769 xorg_cv_cc_flag_unused_command_line_argument=yes
4770 else
4771 xorg_cv_cc_flag_unused_command_line_argument=no
4772 fi
4773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4774 fi
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4776 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4777 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4778 CFLAGS="$xorg_testset_save_CFLAGS"
4779 fi
4780
4781 found="no"
4782
4783 if test $found = "no" ; then
4784 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4785 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4786 fi
4787
4788 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4790 fi
4791
4792 CFLAGS="$CFLAGS -Wall"
4793
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
4795 $as_echo_n "checking if $CC supports-Wall... " >&6; }
4796 cacheid=xorg_cv_cc_flag__Wall
4797 if eval \${$cacheid+:} false; then :
4798 $as_echo_n "(cached) " >&6
4799 else
4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801 /* end confdefs.h. */
4802 int i;
4803 int
4804 main ()
4805 {
4806
4807 ;
4808 return 0;
4809 }
4810 _ACEOF
4811 if ac_fn_c_try_link "$LINENO"; then :
4812 eval $cacheid=yes
4813 else
4814 eval $cacheid=no
4815 fi
4816 rm -f core conftest.err conftest.$ac_objext \
4817 conftest$ac_exeext conftest.$ac_ext
4818 fi
4819
4820
4821 CFLAGS="$xorg_testset_save_CFLAGS"
4822
4823 eval supported=\$$cacheid
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4825 $as_echo "$supported" >&6; }
4826 if test "$supported" = "yes" ; then
4827 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4828 found="yes"
4829 fi
4830 fi
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846 xorg_testset_save_CFLAGS="$CFLAGS"
4847
4848 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4849 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4851 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4852 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4853 $as_echo_n "(cached) " >&6
4854 else
4855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4856 /* end confdefs.h. */
4857 int i;
4858 _ACEOF
4859 if ac_fn_c_try_compile "$LINENO"; then :
4860 xorg_cv_cc_flag_unknown_warning_option=yes
4861 else
4862 xorg_cv_cc_flag_unknown_warning_option=no
4863 fi
4864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4865 fi
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4867 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4868 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4869 CFLAGS="$xorg_testset_save_CFLAGS"
4870 fi
4871
4872 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4875 fi
4876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4878 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4879 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4880 $as_echo_n "(cached) " >&6
4881 else
4882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883 /* end confdefs.h. */
4884 int i;
4885 _ACEOF
4886 if ac_fn_c_try_compile "$LINENO"; then :
4887 xorg_cv_cc_flag_unused_command_line_argument=yes
4888 else
4889 xorg_cv_cc_flag_unused_command_line_argument=no
4890 fi
4891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4892 fi
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4894 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4895 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4896 CFLAGS="$xorg_testset_save_CFLAGS"
4897 fi
4898
4899 found="no"
4900
4901 if test $found = "no" ; then
4902 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4903 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4904 fi
4905
4906 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4908 fi
4909
4910 CFLAGS="$CFLAGS -Wpointer-arith"
4911
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
4913 $as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
4914 cacheid=xorg_cv_cc_flag__Wpointer_arith
4915 if eval \${$cacheid+:} false; then :
4916 $as_echo_n "(cached) " >&6
4917 else
4918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4919 /* end confdefs.h. */
4920 int i;
4921 int
4922 main ()
4923 {
4924
4925 ;
4926 return 0;
4927 }
4928 _ACEOF
4929 if ac_fn_c_try_link "$LINENO"; then :
4930 eval $cacheid=yes
4931 else
4932 eval $cacheid=no
4933 fi
4934 rm -f core conftest.err conftest.$ac_objext \
4935 conftest$ac_exeext conftest.$ac_ext
4936 fi
4937
4938
4939 CFLAGS="$xorg_testset_save_CFLAGS"
4940
4941 eval supported=\$$cacheid
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4943 $as_echo "$supported" >&6; }
4944 if test "$supported" = "yes" ; then
4945 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4946 found="yes"
4947 fi
4948 fi
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964 xorg_testset_save_CFLAGS="$CFLAGS"
4965
4966 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4969 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4970 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4971 $as_echo_n "(cached) " >&6
4972 else
4973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4974 /* end confdefs.h. */
4975 int i;
4976 _ACEOF
4977 if ac_fn_c_try_compile "$LINENO"; then :
4978 xorg_cv_cc_flag_unknown_warning_option=yes
4979 else
4980 xorg_cv_cc_flag_unknown_warning_option=no
4981 fi
4982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4983 fi
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4985 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4987 CFLAGS="$xorg_testset_save_CFLAGS"
4988 fi
4989
4990 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4993 fi
4994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4996 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4997 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4998 $as_echo_n "(cached) " >&6
4999 else
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h. */
5002 int i;
5003 _ACEOF
5004 if ac_fn_c_try_compile "$LINENO"; then :
5005 xorg_cv_cc_flag_unused_command_line_argument=yes
5006 else
5007 xorg_cv_cc_flag_unused_command_line_argument=no
5008 fi
5009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5010 fi
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5012 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5014 CFLAGS="$xorg_testset_save_CFLAGS"
5015 fi
5016
5017 found="no"
5018
5019 if test $found = "no" ; then
5020 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5021 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5022 fi
5023
5024 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5026 fi
5027
5028 CFLAGS="$CFLAGS -Wmissing-declarations"
5029
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
5031 $as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
5032 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5033 if eval \${$cacheid+:} false; then :
5034 $as_echo_n "(cached) " >&6
5035 else
5036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5037 /* end confdefs.h. */
5038 int i;
5039 int
5040 main ()
5041 {
5042
5043 ;
5044 return 0;
5045 }
5046 _ACEOF
5047 if ac_fn_c_try_link "$LINENO"; then :
5048 eval $cacheid=yes
5049 else
5050 eval $cacheid=no
5051 fi
5052 rm -f core conftest.err conftest.$ac_objext \
5053 conftest$ac_exeext conftest.$ac_ext
5054 fi
5055
5056
5057 CFLAGS="$xorg_testset_save_CFLAGS"
5058
5059 eval supported=\$$cacheid
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5061 $as_echo "$supported" >&6; }
5062 if test "$supported" = "yes" ; then
5063 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5064 found="yes"
5065 fi
5066 fi
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082 xorg_testset_save_CFLAGS="$CFLAGS"
5083
5084 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5087 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5088 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5089 $as_echo_n "(cached) " >&6
5090 else
5091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5092 /* end confdefs.h. */
5093 int i;
5094 _ACEOF
5095 if ac_fn_c_try_compile "$LINENO"; then :
5096 xorg_cv_cc_flag_unknown_warning_option=yes
5097 else
5098 xorg_cv_cc_flag_unknown_warning_option=no
5099 fi
5100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5101 fi
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5103 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5104 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5105 CFLAGS="$xorg_testset_save_CFLAGS"
5106 fi
5107
5108 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5111 fi
5112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5114 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5115 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5116 $as_echo_n "(cached) " >&6
5117 else
5118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5119 /* end confdefs.h. */
5120 int i;
5121 _ACEOF
5122 if ac_fn_c_try_compile "$LINENO"; then :
5123 xorg_cv_cc_flag_unused_command_line_argument=yes
5124 else
5125 xorg_cv_cc_flag_unused_command_line_argument=no
5126 fi
5127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5128 fi
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5130 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5131 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5132 CFLAGS="$xorg_testset_save_CFLAGS"
5133 fi
5134
5135 found="no"
5136
5137 if test $found = "no" ; then
5138 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5140 fi
5141
5142 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5144 fi
5145
5146 CFLAGS="$CFLAGS -Wformat=2"
5147
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
5149 $as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
5150 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5151 if eval \${$cacheid+:} false; then :
5152 $as_echo_n "(cached) " >&6
5153 else
5154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5155 /* end confdefs.h. */
5156 int i;
5157 int
5158 main ()
5159 {
5160
5161 ;
5162 return 0;
5163 }
5164 _ACEOF
5165 if ac_fn_c_try_link "$LINENO"; then :
5166 eval $cacheid=yes
5167 else
5168 eval $cacheid=no
5169 fi
5170 rm -f core conftest.err conftest.$ac_objext \
5171 conftest$ac_exeext conftest.$ac_ext
5172 fi
5173
5174
5175 CFLAGS="$xorg_testset_save_CFLAGS"
5176
5177 eval supported=\$$cacheid
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5179 $as_echo "$supported" >&6; }
5180 if test "$supported" = "yes" ; then
5181 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5182 found="yes"
5183 fi
5184 fi
5185
5186 if test $found = "no" ; then
5187 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5188 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5189 fi
5190
5191 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5193 fi
5194
5195 CFLAGS="$CFLAGS -Wformat"
5196
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
5198 $as_echo_n "checking if $CC supports-Wformat... " >&6; }
5199 cacheid=xorg_cv_cc_flag__Wformat
5200 if eval \${$cacheid+:} false; then :
5201 $as_echo_n "(cached) " >&6
5202 else
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h. */
5205 int i;
5206 int
5207 main ()
5208 {
5209
5210 ;
5211 return 0;
5212 }
5213 _ACEOF
5214 if ac_fn_c_try_link "$LINENO"; then :
5215 eval $cacheid=yes
5216 else
5217 eval $cacheid=no
5218 fi
5219 rm -f core conftest.err conftest.$ac_objext \
5220 conftest$ac_exeext conftest.$ac_ext
5221 fi
5222
5223
5224 CFLAGS="$xorg_testset_save_CFLAGS"
5225
5226 eval supported=\$$cacheid
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5228 $as_echo "$supported" >&6; }
5229 if test "$supported" = "yes" ; then
5230 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5231 found="yes"
5232 fi
5233 fi
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251 xorg_testset_save_CFLAGS="$CFLAGS"
5252
5253 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5256 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5257 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5258 $as_echo_n "(cached) " >&6
5259 else
5260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5261 /* end confdefs.h. */
5262 int i;
5263 _ACEOF
5264 if ac_fn_c_try_compile "$LINENO"; then :
5265 xorg_cv_cc_flag_unknown_warning_option=yes
5266 else
5267 xorg_cv_cc_flag_unknown_warning_option=no
5268 fi
5269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5270 fi
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5272 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5273 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5274 CFLAGS="$xorg_testset_save_CFLAGS"
5275 fi
5276
5277 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5280 fi
5281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5283 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5284 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5285 $as_echo_n "(cached) " >&6
5286 else
5287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288 /* end confdefs.h. */
5289 int i;
5290 _ACEOF
5291 if ac_fn_c_try_compile "$LINENO"; then :
5292 xorg_cv_cc_flag_unused_command_line_argument=yes
5293 else
5294 xorg_cv_cc_flag_unused_command_line_argument=no
5295 fi
5296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5297 fi
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5299 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5300 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5301 CFLAGS="$xorg_testset_save_CFLAGS"
5302 fi
5303
5304 found="no"
5305
5306 if test $found = "no" ; then
5307 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5308 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5309 fi
5310
5311 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5313 fi
5314
5315 CFLAGS="$CFLAGS -Wstrict-prototypes"
5316
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
5318 $as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
5319 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5320 if eval \${$cacheid+:} false; then :
5321 $as_echo_n "(cached) " >&6
5322 else
5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h. */
5325 int i;
5326 int
5327 main ()
5328 {
5329
5330 ;
5331 return 0;
5332 }
5333 _ACEOF
5334 if ac_fn_c_try_link "$LINENO"; then :
5335 eval $cacheid=yes
5336 else
5337 eval $cacheid=no
5338 fi
5339 rm -f core conftest.err conftest.$ac_objext \
5340 conftest$ac_exeext conftest.$ac_ext
5341 fi
5342
5343
5344 CFLAGS="$xorg_testset_save_CFLAGS"
5345
5346 eval supported=\$$cacheid
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5348 $as_echo "$supported" >&6; }
5349 if test "$supported" = "yes" ; then
5350 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5351 found="yes"
5352 fi
5353 fi
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369 xorg_testset_save_CFLAGS="$CFLAGS"
5370
5371 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5374 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5375 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5376 $as_echo_n "(cached) " >&6
5377 else
5378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5379 /* end confdefs.h. */
5380 int i;
5381 _ACEOF
5382 if ac_fn_c_try_compile "$LINENO"; then :
5383 xorg_cv_cc_flag_unknown_warning_option=yes
5384 else
5385 xorg_cv_cc_flag_unknown_warning_option=no
5386 fi
5387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5388 fi
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5390 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5391 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5392 CFLAGS="$xorg_testset_save_CFLAGS"
5393 fi
5394
5395 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5398 fi
5399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5401 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5402 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5403 $as_echo_n "(cached) " >&6
5404 else
5405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5406 /* end confdefs.h. */
5407 int i;
5408 _ACEOF
5409 if ac_fn_c_try_compile "$LINENO"; then :
5410 xorg_cv_cc_flag_unused_command_line_argument=yes
5411 else
5412 xorg_cv_cc_flag_unused_command_line_argument=no
5413 fi
5414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5415 fi
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5417 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5418 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5419 CFLAGS="$xorg_testset_save_CFLAGS"
5420 fi
5421
5422 found="no"
5423
5424 if test $found = "no" ; then
5425 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5426 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5427 fi
5428
5429 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5431 fi
5432
5433 CFLAGS="$CFLAGS -Wmissing-prototypes"
5434
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
5436 $as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
5437 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5438 if eval \${$cacheid+:} false; then :
5439 $as_echo_n "(cached) " >&6
5440 else
5441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442 /* end confdefs.h. */
5443 int i;
5444 int
5445 main ()
5446 {
5447
5448 ;
5449 return 0;
5450 }
5451 _ACEOF
5452 if ac_fn_c_try_link "$LINENO"; then :
5453 eval $cacheid=yes
5454 else
5455 eval $cacheid=no
5456 fi
5457 rm -f core conftest.err conftest.$ac_objext \
5458 conftest$ac_exeext conftest.$ac_ext
5459 fi
5460
5461
5462 CFLAGS="$xorg_testset_save_CFLAGS"
5463
5464 eval supported=\$$cacheid
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5466 $as_echo "$supported" >&6; }
5467 if test "$supported" = "yes" ; then
5468 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5469 found="yes"
5470 fi
5471 fi
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487 xorg_testset_save_CFLAGS="$CFLAGS"
5488
5489 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5492 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5493 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5494 $as_echo_n "(cached) " >&6
5495 else
5496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5497 /* end confdefs.h. */
5498 int i;
5499 _ACEOF
5500 if ac_fn_c_try_compile "$LINENO"; then :
5501 xorg_cv_cc_flag_unknown_warning_option=yes
5502 else
5503 xorg_cv_cc_flag_unknown_warning_option=no
5504 fi
5505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5506 fi
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5508 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5509 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5510 CFLAGS="$xorg_testset_save_CFLAGS"
5511 fi
5512
5513 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5515 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5516 fi
5517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5519 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5520 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5521 $as_echo_n "(cached) " >&6
5522 else
5523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524 /* end confdefs.h. */
5525 int i;
5526 _ACEOF
5527 if ac_fn_c_try_compile "$LINENO"; then :
5528 xorg_cv_cc_flag_unused_command_line_argument=yes
5529 else
5530 xorg_cv_cc_flag_unused_command_line_argument=no
5531 fi
5532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5533 fi
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5535 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5536 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5537 CFLAGS="$xorg_testset_save_CFLAGS"
5538 fi
5539
5540 found="no"
5541
5542 if test $found = "no" ; then
5543 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5544 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5545 fi
5546
5547 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5549 fi
5550
5551 CFLAGS="$CFLAGS -Wnested-externs"
5552
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
5554 $as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
5555 cacheid=xorg_cv_cc_flag__Wnested_externs
5556 if eval \${$cacheid+:} false; then :
5557 $as_echo_n "(cached) " >&6
5558 else
5559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5560 /* end confdefs.h. */
5561 int i;
5562 int
5563 main ()
5564 {
5565
5566 ;
5567 return 0;
5568 }
5569 _ACEOF
5570 if ac_fn_c_try_link "$LINENO"; then :
5571 eval $cacheid=yes
5572 else
5573 eval $cacheid=no
5574 fi
5575 rm -f core conftest.err conftest.$ac_objext \
5576 conftest$ac_exeext conftest.$ac_ext
5577 fi
5578
5579
5580 CFLAGS="$xorg_testset_save_CFLAGS"
5581
5582 eval supported=\$$cacheid
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5584 $as_echo "$supported" >&6; }
5585 if test "$supported" = "yes" ; then
5586 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5587 found="yes"
5588 fi
5589 fi
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605 xorg_testset_save_CFLAGS="$CFLAGS"
5606
5607 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5610 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5611 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5612 $as_echo_n "(cached) " >&6
5613 else
5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h. */
5616 int i;
5617 _ACEOF
5618 if ac_fn_c_try_compile "$LINENO"; then :
5619 xorg_cv_cc_flag_unknown_warning_option=yes
5620 else
5621 xorg_cv_cc_flag_unknown_warning_option=no
5622 fi
5623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5624 fi
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5626 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5627 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5628 CFLAGS="$xorg_testset_save_CFLAGS"
5629 fi
5630
5631 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5634 fi
5635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5637 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5638 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5639 $as_echo_n "(cached) " >&6
5640 else
5641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5642 /* end confdefs.h. */
5643 int i;
5644 _ACEOF
5645 if ac_fn_c_try_compile "$LINENO"; then :
5646 xorg_cv_cc_flag_unused_command_line_argument=yes
5647 else
5648 xorg_cv_cc_flag_unused_command_line_argument=no
5649 fi
5650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5651 fi
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5653 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5654 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5655 CFLAGS="$xorg_testset_save_CFLAGS"
5656 fi
5657
5658 found="no"
5659
5660 if test $found = "no" ; then
5661 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5662 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5663 fi
5664
5665 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5667 fi
5668
5669 CFLAGS="$CFLAGS -Wbad-function-cast"
5670
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
5672 $as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
5673 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5674 if eval \${$cacheid+:} false; then :
5675 $as_echo_n "(cached) " >&6
5676 else
5677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5678 /* end confdefs.h. */
5679 int i;
5680 int
5681 main ()
5682 {
5683
5684 ;
5685 return 0;
5686 }
5687 _ACEOF
5688 if ac_fn_c_try_link "$LINENO"; then :
5689 eval $cacheid=yes
5690 else
5691 eval $cacheid=no
5692 fi
5693 rm -f core conftest.err conftest.$ac_objext \
5694 conftest$ac_exeext conftest.$ac_ext
5695 fi
5696
5697
5698 CFLAGS="$xorg_testset_save_CFLAGS"
5699
5700 eval supported=\$$cacheid
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5702 $as_echo "$supported" >&6; }
5703 if test "$supported" = "yes" ; then
5704 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5705 found="yes"
5706 fi
5707 fi
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723 xorg_testset_save_CFLAGS="$CFLAGS"
5724
5725 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5728 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5729 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5730 $as_echo_n "(cached) " >&6
5731 else
5732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5733 /* end confdefs.h. */
5734 int i;
5735 _ACEOF
5736 if ac_fn_c_try_compile "$LINENO"; then :
5737 xorg_cv_cc_flag_unknown_warning_option=yes
5738 else
5739 xorg_cv_cc_flag_unknown_warning_option=no
5740 fi
5741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5742 fi
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5744 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5745 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5746 CFLAGS="$xorg_testset_save_CFLAGS"
5747 fi
5748
5749 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5752 fi
5753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5755 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5756 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5757 $as_echo_n "(cached) " >&6
5758 else
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5761 int i;
5762 _ACEOF
5763 if ac_fn_c_try_compile "$LINENO"; then :
5764 xorg_cv_cc_flag_unused_command_line_argument=yes
5765 else
5766 xorg_cv_cc_flag_unused_command_line_argument=no
5767 fi
5768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5769 fi
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5771 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5772 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5773 CFLAGS="$xorg_testset_save_CFLAGS"
5774 fi
5775
5776 found="no"
5777
5778 if test $found = "no" ; then
5779 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5781 fi
5782
5783 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5785 fi
5786
5787 CFLAGS="$CFLAGS -Wold-style-definition"
5788
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
5790 $as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
5791 cacheid=xorg_cv_cc_flag__Wold_style_definition
5792 if eval \${$cacheid+:} false; then :
5793 $as_echo_n "(cached) " >&6
5794 else
5795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796 /* end confdefs.h. */
5797 int i;
5798 int
5799 main ()
5800 {
5801
5802 ;
5803 return 0;
5804 }
5805 _ACEOF
5806 if ac_fn_c_try_link "$LINENO"; then :
5807 eval $cacheid=yes
5808 else
5809 eval $cacheid=no
5810 fi
5811 rm -f core conftest.err conftest.$ac_objext \
5812 conftest$ac_exeext conftest.$ac_ext
5813 fi
5814
5815
5816 CFLAGS="$xorg_testset_save_CFLAGS"
5817
5818 eval supported=\$$cacheid
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5820 $as_echo "$supported" >&6; }
5821 if test "$supported" = "yes" ; then
5822 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5823 found="yes"
5824 fi
5825 fi
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841 xorg_testset_save_CFLAGS="$CFLAGS"
5842
5843 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5846 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5847 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5848 $as_echo_n "(cached) " >&6
5849 else
5850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5851 /* end confdefs.h. */
5852 int i;
5853 _ACEOF
5854 if ac_fn_c_try_compile "$LINENO"; then :
5855 xorg_cv_cc_flag_unknown_warning_option=yes
5856 else
5857 xorg_cv_cc_flag_unknown_warning_option=no
5858 fi
5859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5860 fi
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5862 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5863 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5864 CFLAGS="$xorg_testset_save_CFLAGS"
5865 fi
5866
5867 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5869 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5870 fi
5871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5873 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5874 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5875 $as_echo_n "(cached) " >&6
5876 else
5877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878 /* end confdefs.h. */
5879 int i;
5880 _ACEOF
5881 if ac_fn_c_try_compile "$LINENO"; then :
5882 xorg_cv_cc_flag_unused_command_line_argument=yes
5883 else
5884 xorg_cv_cc_flag_unused_command_line_argument=no
5885 fi
5886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5887 fi
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5889 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5890 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5891 CFLAGS="$xorg_testset_save_CFLAGS"
5892 fi
5893
5894 found="no"
5895
5896 if test $found = "no" ; then
5897 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5899 fi
5900
5901 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5903 fi
5904
5905 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5906
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
5908 $as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
5909 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5910 if eval \${$cacheid+:} false; then :
5911 $as_echo_n "(cached) " >&6
5912 else
5913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5914 /* end confdefs.h. */
5915 int i;
5916 int
5917 main ()
5918 {
5919
5920 ;
5921 return 0;
5922 }
5923 _ACEOF
5924 if ac_fn_c_try_link "$LINENO"; then :
5925 eval $cacheid=yes
5926 else
5927 eval $cacheid=no
5928 fi
5929 rm -f core conftest.err conftest.$ac_objext \
5930 conftest$ac_exeext conftest.$ac_ext
5931 fi
5932
5933
5934 CFLAGS="$xorg_testset_save_CFLAGS"
5935
5936 eval supported=\$$cacheid
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5938 $as_echo "$supported" >&6; }
5939 if test "$supported" = "yes" ; then
5940 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5941 found="yes"
5942 fi
5943 fi
5944
5945
5946
5947
5948
5949 # This chunk adds additional warnings that could catch undesired effects.
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963 xorg_testset_save_CFLAGS="$CFLAGS"
5964
5965 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5968 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5969 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5970 $as_echo_n "(cached) " >&6
5971 else
5972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5973 /* end confdefs.h. */
5974 int i;
5975 _ACEOF
5976 if ac_fn_c_try_compile "$LINENO"; then :
5977 xorg_cv_cc_flag_unknown_warning_option=yes
5978 else
5979 xorg_cv_cc_flag_unknown_warning_option=no
5980 fi
5981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5982 fi
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5984 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5985 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5986 CFLAGS="$xorg_testset_save_CFLAGS"
5987 fi
5988
5989 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5991 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5992 fi
5993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5995 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5996 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5997 $as_echo_n "(cached) " >&6
5998 else
5999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6000 /* end confdefs.h. */
6001 int i;
6002 _ACEOF
6003 if ac_fn_c_try_compile "$LINENO"; then :
6004 xorg_cv_cc_flag_unused_command_line_argument=yes
6005 else
6006 xorg_cv_cc_flag_unused_command_line_argument=no
6007 fi
6008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6009 fi
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6011 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6012 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6013 CFLAGS="$xorg_testset_save_CFLAGS"
6014 fi
6015
6016 found="no"
6017
6018 if test $found = "no" ; then
6019 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6021 fi
6022
6023 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6025 fi
6026
6027 CFLAGS="$CFLAGS -Wunused"
6028
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
6030 $as_echo_n "checking if $CC supports-Wunused... " >&6; }
6031 cacheid=xorg_cv_cc_flag__Wunused
6032 if eval \${$cacheid+:} false; then :
6033 $as_echo_n "(cached) " >&6
6034 else
6035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6036 /* end confdefs.h. */
6037 int i;
6038 int
6039 main ()
6040 {
6041
6042 ;
6043 return 0;
6044 }
6045 _ACEOF
6046 if ac_fn_c_try_link "$LINENO"; then :
6047 eval $cacheid=yes
6048 else
6049 eval $cacheid=no
6050 fi
6051 rm -f core conftest.err conftest.$ac_objext \
6052 conftest$ac_exeext conftest.$ac_ext
6053 fi
6054
6055
6056 CFLAGS="$xorg_testset_save_CFLAGS"
6057
6058 eval supported=\$$cacheid
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6060 $as_echo "$supported" >&6; }
6061 if test "$supported" = "yes" ; then
6062 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6063 found="yes"
6064 fi
6065 fi
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081 xorg_testset_save_CFLAGS="$CFLAGS"
6082
6083 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6084 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6086 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6087 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6088 $as_echo_n "(cached) " >&6
6089 else
6090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6091 /* end confdefs.h. */
6092 int i;
6093 _ACEOF
6094 if ac_fn_c_try_compile "$LINENO"; then :
6095 xorg_cv_cc_flag_unknown_warning_option=yes
6096 else
6097 xorg_cv_cc_flag_unknown_warning_option=no
6098 fi
6099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6100 fi
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6102 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6103 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6104 CFLAGS="$xorg_testset_save_CFLAGS"
6105 fi
6106
6107 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6110 fi
6111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6113 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6114 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6115 $as_echo_n "(cached) " >&6
6116 else
6117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6118 /* end confdefs.h. */
6119 int i;
6120 _ACEOF
6121 if ac_fn_c_try_compile "$LINENO"; then :
6122 xorg_cv_cc_flag_unused_command_line_argument=yes
6123 else
6124 xorg_cv_cc_flag_unused_command_line_argument=no
6125 fi
6126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6127 fi
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6129 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6130 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6131 CFLAGS="$xorg_testset_save_CFLAGS"
6132 fi
6133
6134 found="no"
6135
6136 if test $found = "no" ; then
6137 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6138 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6139 fi
6140
6141 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6143 fi
6144
6145 CFLAGS="$CFLAGS -Wuninitialized"
6146
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
6148 $as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
6149 cacheid=xorg_cv_cc_flag__Wuninitialized
6150 if eval \${$cacheid+:} false; then :
6151 $as_echo_n "(cached) " >&6
6152 else
6153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6154 /* end confdefs.h. */
6155 int i;
6156 int
6157 main ()
6158 {
6159
6160 ;
6161 return 0;
6162 }
6163 _ACEOF
6164 if ac_fn_c_try_link "$LINENO"; then :
6165 eval $cacheid=yes
6166 else
6167 eval $cacheid=no
6168 fi
6169 rm -f core conftest.err conftest.$ac_objext \
6170 conftest$ac_exeext conftest.$ac_ext
6171 fi
6172
6173
6174 CFLAGS="$xorg_testset_save_CFLAGS"
6175
6176 eval supported=\$$cacheid
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6178 $as_echo "$supported" >&6; }
6179 if test "$supported" = "yes" ; then
6180 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6181 found="yes"
6182 fi
6183 fi
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199 xorg_testset_save_CFLAGS="$CFLAGS"
6200
6201 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6202 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6204 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6205 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6206 $as_echo_n "(cached) " >&6
6207 else
6208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6209 /* end confdefs.h. */
6210 int i;
6211 _ACEOF
6212 if ac_fn_c_try_compile "$LINENO"; then :
6213 xorg_cv_cc_flag_unknown_warning_option=yes
6214 else
6215 xorg_cv_cc_flag_unknown_warning_option=no
6216 fi
6217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6218 fi
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6220 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6221 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6222 CFLAGS="$xorg_testset_save_CFLAGS"
6223 fi
6224
6225 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6227 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6228 fi
6229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6231 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6232 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6233 $as_echo_n "(cached) " >&6
6234 else
6235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6236 /* end confdefs.h. */
6237 int i;
6238 _ACEOF
6239 if ac_fn_c_try_compile "$LINENO"; then :
6240 xorg_cv_cc_flag_unused_command_line_argument=yes
6241 else
6242 xorg_cv_cc_flag_unused_command_line_argument=no
6243 fi
6244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6245 fi
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6247 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6248 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6249 CFLAGS="$xorg_testset_save_CFLAGS"
6250 fi
6251
6252 found="no"
6253
6254 if test $found = "no" ; then
6255 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6256 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6257 fi
6258
6259 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6261 fi
6262
6263 CFLAGS="$CFLAGS -Wshadow"
6264
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
6266 $as_echo_n "checking if $CC supports-Wshadow... " >&6; }
6267 cacheid=xorg_cv_cc_flag__Wshadow
6268 if eval \${$cacheid+:} false; then :
6269 $as_echo_n "(cached) " >&6
6270 else
6271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272 /* end confdefs.h. */
6273 int i;
6274 int
6275 main ()
6276 {
6277
6278 ;
6279 return 0;
6280 }
6281 _ACEOF
6282 if ac_fn_c_try_link "$LINENO"; then :
6283 eval $cacheid=yes
6284 else
6285 eval $cacheid=no
6286 fi
6287 rm -f core conftest.err conftest.$ac_objext \
6288 conftest$ac_exeext conftest.$ac_ext
6289 fi
6290
6291
6292 CFLAGS="$xorg_testset_save_CFLAGS"
6293
6294 eval supported=\$$cacheid
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6296 $as_echo "$supported" >&6; }
6297 if test "$supported" = "yes" ; then
6298 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6299 found="yes"
6300 fi
6301 fi
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317 xorg_testset_save_CFLAGS="$CFLAGS"
6318
6319 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6320 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6322 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6323 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6324 $as_echo_n "(cached) " >&6
6325 else
6326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6327 /* end confdefs.h. */
6328 int i;
6329 _ACEOF
6330 if ac_fn_c_try_compile "$LINENO"; then :
6331 xorg_cv_cc_flag_unknown_warning_option=yes
6332 else
6333 xorg_cv_cc_flag_unknown_warning_option=no
6334 fi
6335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6336 fi
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6338 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6339 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6340 CFLAGS="$xorg_testset_save_CFLAGS"
6341 fi
6342
6343 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6346 fi
6347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6349 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6350 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6351 $as_echo_n "(cached) " >&6
6352 else
6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354 /* end confdefs.h. */
6355 int i;
6356 _ACEOF
6357 if ac_fn_c_try_compile "$LINENO"; then :
6358 xorg_cv_cc_flag_unused_command_line_argument=yes
6359 else
6360 xorg_cv_cc_flag_unused_command_line_argument=no
6361 fi
6362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6363 fi
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6365 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6366 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6367 CFLAGS="$xorg_testset_save_CFLAGS"
6368 fi
6369
6370 found="no"
6371
6372 if test $found = "no" ; then
6373 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6374 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6375 fi
6376
6377 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6379 fi
6380
6381 CFLAGS="$CFLAGS -Wcast-qual"
6382
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
6384 $as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
6385 cacheid=xorg_cv_cc_flag__Wcast_qual
6386 if eval \${$cacheid+:} false; then :
6387 $as_echo_n "(cached) " >&6
6388 else
6389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6390 /* end confdefs.h. */
6391 int i;
6392 int
6393 main ()
6394 {
6395
6396 ;
6397 return 0;
6398 }
6399 _ACEOF
6400 if ac_fn_c_try_link "$LINENO"; then :
6401 eval $cacheid=yes
6402 else
6403 eval $cacheid=no
6404 fi
6405 rm -f core conftest.err conftest.$ac_objext \
6406 conftest$ac_exeext conftest.$ac_ext
6407 fi
6408
6409
6410 CFLAGS="$xorg_testset_save_CFLAGS"
6411
6412 eval supported=\$$cacheid
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6414 $as_echo "$supported" >&6; }
6415 if test "$supported" = "yes" ; then
6416 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6417 found="yes"
6418 fi
6419 fi
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435 xorg_testset_save_CFLAGS="$CFLAGS"
6436
6437 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6440 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6441 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6442 $as_echo_n "(cached) " >&6
6443 else
6444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6445 /* end confdefs.h. */
6446 int i;
6447 _ACEOF
6448 if ac_fn_c_try_compile "$LINENO"; then :
6449 xorg_cv_cc_flag_unknown_warning_option=yes
6450 else
6451 xorg_cv_cc_flag_unknown_warning_option=no
6452 fi
6453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6454 fi
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6456 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6457 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6458 CFLAGS="$xorg_testset_save_CFLAGS"
6459 fi
6460
6461 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6464 fi
6465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6467 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6468 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6469 $as_echo_n "(cached) " >&6
6470 else
6471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6472 /* end confdefs.h. */
6473 int i;
6474 _ACEOF
6475 if ac_fn_c_try_compile "$LINENO"; then :
6476 xorg_cv_cc_flag_unused_command_line_argument=yes
6477 else
6478 xorg_cv_cc_flag_unused_command_line_argument=no
6479 fi
6480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6481 fi
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6483 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6484 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6485 CFLAGS="$xorg_testset_save_CFLAGS"
6486 fi
6487
6488 found="no"
6489
6490 if test $found = "no" ; then
6491 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6493 fi
6494
6495 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6497 fi
6498
6499 CFLAGS="$CFLAGS -Wmissing-noreturn"
6500
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
6502 $as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
6503 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6504 if eval \${$cacheid+:} false; then :
6505 $as_echo_n "(cached) " >&6
6506 else
6507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508 /* end confdefs.h. */
6509 int i;
6510 int
6511 main ()
6512 {
6513
6514 ;
6515 return 0;
6516 }
6517 _ACEOF
6518 if ac_fn_c_try_link "$LINENO"; then :
6519 eval $cacheid=yes
6520 else
6521 eval $cacheid=no
6522 fi
6523 rm -f core conftest.err conftest.$ac_objext \
6524 conftest$ac_exeext conftest.$ac_ext
6525 fi
6526
6527
6528 CFLAGS="$xorg_testset_save_CFLAGS"
6529
6530 eval supported=\$$cacheid
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6532 $as_echo "$supported" >&6; }
6533 if test "$supported" = "yes" ; then
6534 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6535 found="yes"
6536 fi
6537 fi
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553 xorg_testset_save_CFLAGS="$CFLAGS"
6554
6555 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6558 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6559 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6560 $as_echo_n "(cached) " >&6
6561 else
6562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6563 /* end confdefs.h. */
6564 int i;
6565 _ACEOF
6566 if ac_fn_c_try_compile "$LINENO"; then :
6567 xorg_cv_cc_flag_unknown_warning_option=yes
6568 else
6569 xorg_cv_cc_flag_unknown_warning_option=no
6570 fi
6571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6572 fi
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6574 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6575 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6576 CFLAGS="$xorg_testset_save_CFLAGS"
6577 fi
6578
6579 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6581 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6582 fi
6583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6585 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6586 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6587 $as_echo_n "(cached) " >&6
6588 else
6589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6590 /* end confdefs.h. */
6591 int i;
6592 _ACEOF
6593 if ac_fn_c_try_compile "$LINENO"; then :
6594 xorg_cv_cc_flag_unused_command_line_argument=yes
6595 else
6596 xorg_cv_cc_flag_unused_command_line_argument=no
6597 fi
6598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6599 fi
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6601 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6602 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6603 CFLAGS="$xorg_testset_save_CFLAGS"
6604 fi
6605
6606 found="no"
6607
6608 if test $found = "no" ; then
6609 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6611 fi
6612
6613 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6615 fi
6616
6617 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6618
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
6620 $as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
6621 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6622 if eval \${$cacheid+:} false; then :
6623 $as_echo_n "(cached) " >&6
6624 else
6625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6626 /* end confdefs.h. */
6627 int i;
6628 int
6629 main ()
6630 {
6631
6632 ;
6633 return 0;
6634 }
6635 _ACEOF
6636 if ac_fn_c_try_link "$LINENO"; then :
6637 eval $cacheid=yes
6638 else
6639 eval $cacheid=no
6640 fi
6641 rm -f core conftest.err conftest.$ac_objext \
6642 conftest$ac_exeext conftest.$ac_ext
6643 fi
6644
6645
6646 CFLAGS="$xorg_testset_save_CFLAGS"
6647
6648 eval supported=\$$cacheid
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6650 $as_echo "$supported" >&6; }
6651 if test "$supported" = "yes" ; then
6652 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6653 found="yes"
6654 fi
6655 fi
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671 xorg_testset_save_CFLAGS="$CFLAGS"
6672
6673 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6674 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6676 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6677 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6678 $as_echo_n "(cached) " >&6
6679 else
6680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6681 /* end confdefs.h. */
6682 int i;
6683 _ACEOF
6684 if ac_fn_c_try_compile "$LINENO"; then :
6685 xorg_cv_cc_flag_unknown_warning_option=yes
6686 else
6687 xorg_cv_cc_flag_unknown_warning_option=no
6688 fi
6689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6690 fi
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6692 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6693 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6694 CFLAGS="$xorg_testset_save_CFLAGS"
6695 fi
6696
6697 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6700 fi
6701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6703 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6704 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6705 $as_echo_n "(cached) " >&6
6706 else
6707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6708 /* end confdefs.h. */
6709 int i;
6710 _ACEOF
6711 if ac_fn_c_try_compile "$LINENO"; then :
6712 xorg_cv_cc_flag_unused_command_line_argument=yes
6713 else
6714 xorg_cv_cc_flag_unused_command_line_argument=no
6715 fi
6716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6717 fi
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6719 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6720 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6721 CFLAGS="$xorg_testset_save_CFLAGS"
6722 fi
6723
6724 found="no"
6725
6726 if test $found = "no" ; then
6727 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6729 fi
6730
6731 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6733 fi
6734
6735 CFLAGS="$CFLAGS -Wredundant-decls"
6736
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
6738 $as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
6739 cacheid=xorg_cv_cc_flag__Wredundant_decls
6740 if eval \${$cacheid+:} false; then :
6741 $as_echo_n "(cached) " >&6
6742 else
6743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6744 /* end confdefs.h. */
6745 int i;
6746 int
6747 main ()
6748 {
6749
6750 ;
6751 return 0;
6752 }
6753 _ACEOF
6754 if ac_fn_c_try_link "$LINENO"; then :
6755 eval $cacheid=yes
6756 else
6757 eval $cacheid=no
6758 fi
6759 rm -f core conftest.err conftest.$ac_objext \
6760 conftest$ac_exeext conftest.$ac_ext
6761 fi
6762
6763
6764 CFLAGS="$xorg_testset_save_CFLAGS"
6765
6766 eval supported=\$$cacheid
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6768 $as_echo "$supported" >&6; }
6769 if test "$supported" = "yes" ; then
6770 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6771 found="yes"
6772 fi
6773 fi
6774
6775
6776
6777 # These are currently disabled because they are noisy. They will be enabled
6778 # in the future once the codebase is sufficiently modernized to silence
6779 # them. For now, I don't want them to drown out the other warnings.
6780 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6781 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6782 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6783
6784 # Turn some warnings into errors, so we don't accidently get successful builds
6785 # when there are problems that should be fixed.
6786
6787 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801 xorg_testset_save_CFLAGS="$CFLAGS"
6802
6803 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6804 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6806 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6807 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6808 $as_echo_n "(cached) " >&6
6809 else
6810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811 /* end confdefs.h. */
6812 int i;
6813 _ACEOF
6814 if ac_fn_c_try_compile "$LINENO"; then :
6815 xorg_cv_cc_flag_unknown_warning_option=yes
6816 else
6817 xorg_cv_cc_flag_unknown_warning_option=no
6818 fi
6819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6820 fi
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6822 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6823 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6824 CFLAGS="$xorg_testset_save_CFLAGS"
6825 fi
6826
6827 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6828 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6829 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6830 fi
6831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6833 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6834 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6835 $as_echo_n "(cached) " >&6
6836 else
6837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838 /* end confdefs.h. */
6839 int i;
6840 _ACEOF
6841 if ac_fn_c_try_compile "$LINENO"; then :
6842 xorg_cv_cc_flag_unused_command_line_argument=yes
6843 else
6844 xorg_cv_cc_flag_unused_command_line_argument=no
6845 fi
6846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6847 fi
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6849 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6850 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6851 CFLAGS="$xorg_testset_save_CFLAGS"
6852 fi
6853
6854 found="no"
6855
6856 if test $found = "no" ; then
6857 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6859 fi
6860
6861 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6863 fi
6864
6865 CFLAGS="$CFLAGS -Werror=implicit"
6866
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
6868 $as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
6869 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6870 if eval \${$cacheid+:} false; then :
6871 $as_echo_n "(cached) " >&6
6872 else
6873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6874 /* end confdefs.h. */
6875 int i;
6876 int
6877 main ()
6878 {
6879
6880 ;
6881 return 0;
6882 }
6883 _ACEOF
6884 if ac_fn_c_try_link "$LINENO"; then :
6885 eval $cacheid=yes
6886 else
6887 eval $cacheid=no
6888 fi
6889 rm -f core conftest.err conftest.$ac_objext \
6890 conftest$ac_exeext conftest.$ac_ext
6891 fi
6892
6893
6894 CFLAGS="$xorg_testset_save_CFLAGS"
6895
6896 eval supported=\$$cacheid
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6898 $as_echo "$supported" >&6; }
6899 if test "$supported" = "yes" ; then
6900 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6901 found="yes"
6902 fi
6903 fi
6904
6905 if test $found = "no" ; then
6906 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6907 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6908 fi
6909
6910 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6912 fi
6913
6914 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6915
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6917 $as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6918 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6919 if eval \${$cacheid+:} false; then :
6920 $as_echo_n "(cached) " >&6
6921 else
6922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6923 /* end confdefs.h. */
6924 int i;
6925 int
6926 main ()
6927 {
6928
6929 ;
6930 return 0;
6931 }
6932 _ACEOF
6933 if ac_fn_c_try_link "$LINENO"; then :
6934 eval $cacheid=yes
6935 else
6936 eval $cacheid=no
6937 fi
6938 rm -f core conftest.err conftest.$ac_objext \
6939 conftest$ac_exeext conftest.$ac_ext
6940 fi
6941
6942
6943 CFLAGS="$xorg_testset_save_CFLAGS"
6944
6945 eval supported=\$$cacheid
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6947 $as_echo "$supported" >&6; }
6948 if test "$supported" = "yes" ; then
6949 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6950 found="yes"
6951 fi
6952 fi
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968 xorg_testset_save_CFLAGS="$CFLAGS"
6969
6970 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6971 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6973 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6974 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6975 $as_echo_n "(cached) " >&6
6976 else
6977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6978 /* end confdefs.h. */
6979 int i;
6980 _ACEOF
6981 if ac_fn_c_try_compile "$LINENO"; then :
6982 xorg_cv_cc_flag_unknown_warning_option=yes
6983 else
6984 xorg_cv_cc_flag_unknown_warning_option=no
6985 fi
6986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6987 fi
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6989 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6990 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6991 CFLAGS="$xorg_testset_save_CFLAGS"
6992 fi
6993
6994 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6996 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6997 fi
6998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7000 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7001 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7002 $as_echo_n "(cached) " >&6
7003 else
7004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7005 /* end confdefs.h. */
7006 int i;
7007 _ACEOF
7008 if ac_fn_c_try_compile "$LINENO"; then :
7009 xorg_cv_cc_flag_unused_command_line_argument=yes
7010 else
7011 xorg_cv_cc_flag_unused_command_line_argument=no
7012 fi
7013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7014 fi
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7016 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7017 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7018 CFLAGS="$xorg_testset_save_CFLAGS"
7019 fi
7020
7021 found="no"
7022
7023 if test $found = "no" ; then
7024 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7026 fi
7027
7028 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7030 fi
7031
7032 CFLAGS="$CFLAGS -Werror=nonnull"
7033
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
7035 $as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
7036 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
7037 if eval \${$cacheid+:} false; then :
7038 $as_echo_n "(cached) " >&6
7039 else
7040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7041 /* end confdefs.h. */
7042 int i;
7043 int
7044 main ()
7045 {
7046
7047 ;
7048 return 0;
7049 }
7050 _ACEOF
7051 if ac_fn_c_try_link "$LINENO"; then :
7052 eval $cacheid=yes
7053 else
7054 eval $cacheid=no
7055 fi
7056 rm -f core conftest.err conftest.$ac_objext \
7057 conftest$ac_exeext conftest.$ac_ext
7058 fi
7059
7060
7061 CFLAGS="$xorg_testset_save_CFLAGS"
7062
7063 eval supported=\$$cacheid
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7065 $as_echo "$supported" >&6; }
7066 if test "$supported" = "yes" ; then
7067 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7068 found="yes"
7069 fi
7070 fi
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086 xorg_testset_save_CFLAGS="$CFLAGS"
7087
7088 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7089 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7091 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7092 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7093 $as_echo_n "(cached) " >&6
7094 else
7095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096 /* end confdefs.h. */
7097 int i;
7098 _ACEOF
7099 if ac_fn_c_try_compile "$LINENO"; then :
7100 xorg_cv_cc_flag_unknown_warning_option=yes
7101 else
7102 xorg_cv_cc_flag_unknown_warning_option=no
7103 fi
7104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7105 fi
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7107 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7108 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7109 CFLAGS="$xorg_testset_save_CFLAGS"
7110 fi
7111
7112 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7114 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7115 fi
7116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7118 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7119 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7120 $as_echo_n "(cached) " >&6
7121 else
7122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7123 /* end confdefs.h. */
7124 int i;
7125 _ACEOF
7126 if ac_fn_c_try_compile "$LINENO"; then :
7127 xorg_cv_cc_flag_unused_command_line_argument=yes
7128 else
7129 xorg_cv_cc_flag_unused_command_line_argument=no
7130 fi
7131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7132 fi
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7134 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7135 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7136 CFLAGS="$xorg_testset_save_CFLAGS"
7137 fi
7138
7139 found="no"
7140
7141 if test $found = "no" ; then
7142 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7143 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7144 fi
7145
7146 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7148 fi
7149
7150 CFLAGS="$CFLAGS -Werror=init-self"
7151
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
7153 $as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
7154 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7155 if eval \${$cacheid+:} false; then :
7156 $as_echo_n "(cached) " >&6
7157 else
7158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7159 /* end confdefs.h. */
7160 int i;
7161 int
7162 main ()
7163 {
7164
7165 ;
7166 return 0;
7167 }
7168 _ACEOF
7169 if ac_fn_c_try_link "$LINENO"; then :
7170 eval $cacheid=yes
7171 else
7172 eval $cacheid=no
7173 fi
7174 rm -f core conftest.err conftest.$ac_objext \
7175 conftest$ac_exeext conftest.$ac_ext
7176 fi
7177
7178
7179 CFLAGS="$xorg_testset_save_CFLAGS"
7180
7181 eval supported=\$$cacheid
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7183 $as_echo "$supported" >&6; }
7184 if test "$supported" = "yes" ; then
7185 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7186 found="yes"
7187 fi
7188 fi
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204 xorg_testset_save_CFLAGS="$CFLAGS"
7205
7206 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7207 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7209 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7210 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7211 $as_echo_n "(cached) " >&6
7212 else
7213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7214 /* end confdefs.h. */
7215 int i;
7216 _ACEOF
7217 if ac_fn_c_try_compile "$LINENO"; then :
7218 xorg_cv_cc_flag_unknown_warning_option=yes
7219 else
7220 xorg_cv_cc_flag_unknown_warning_option=no
7221 fi
7222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7223 fi
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7225 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7226 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7227 CFLAGS="$xorg_testset_save_CFLAGS"
7228 fi
7229
7230 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7232 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7233 fi
7234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7236 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7237 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7238 $as_echo_n "(cached) " >&6
7239 else
7240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7241 /* end confdefs.h. */
7242 int i;
7243 _ACEOF
7244 if ac_fn_c_try_compile "$LINENO"; then :
7245 xorg_cv_cc_flag_unused_command_line_argument=yes
7246 else
7247 xorg_cv_cc_flag_unused_command_line_argument=no
7248 fi
7249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7250 fi
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7252 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7253 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7254 CFLAGS="$xorg_testset_save_CFLAGS"
7255 fi
7256
7257 found="no"
7258
7259 if test $found = "no" ; then
7260 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7261 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7262 fi
7263
7264 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7266 fi
7267
7268 CFLAGS="$CFLAGS -Werror=main"
7269
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
7271 $as_echo_n "checking if $CC supports-Werror=main... " >&6; }
7272 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7273 if eval \${$cacheid+:} false; then :
7274 $as_echo_n "(cached) " >&6
7275 else
7276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7277 /* end confdefs.h. */
7278 int i;
7279 int
7280 main ()
7281 {
7282
7283 ;
7284 return 0;
7285 }
7286 _ACEOF
7287 if ac_fn_c_try_link "$LINENO"; then :
7288 eval $cacheid=yes
7289 else
7290 eval $cacheid=no
7291 fi
7292 rm -f core conftest.err conftest.$ac_objext \
7293 conftest$ac_exeext conftest.$ac_ext
7294 fi
7295
7296
7297 CFLAGS="$xorg_testset_save_CFLAGS"
7298
7299 eval supported=\$$cacheid
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7301 $as_echo "$supported" >&6; }
7302 if test "$supported" = "yes" ; then
7303 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7304 found="yes"
7305 fi
7306 fi
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322 xorg_testset_save_CFLAGS="$CFLAGS"
7323
7324 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7325 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7327 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7328 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7329 $as_echo_n "(cached) " >&6
7330 else
7331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7332 /* end confdefs.h. */
7333 int i;
7334 _ACEOF
7335 if ac_fn_c_try_compile "$LINENO"; then :
7336 xorg_cv_cc_flag_unknown_warning_option=yes
7337 else
7338 xorg_cv_cc_flag_unknown_warning_option=no
7339 fi
7340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7341 fi
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7343 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7344 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7345 CFLAGS="$xorg_testset_save_CFLAGS"
7346 fi
7347
7348 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7350 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7351 fi
7352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7354 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7355 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7356 $as_echo_n "(cached) " >&6
7357 else
7358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7359 /* end confdefs.h. */
7360 int i;
7361 _ACEOF
7362 if ac_fn_c_try_compile "$LINENO"; then :
7363 xorg_cv_cc_flag_unused_command_line_argument=yes
7364 else
7365 xorg_cv_cc_flag_unused_command_line_argument=no
7366 fi
7367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7368 fi
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7370 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7371 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7372 CFLAGS="$xorg_testset_save_CFLAGS"
7373 fi
7374
7375 found="no"
7376
7377 if test $found = "no" ; then
7378 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7379 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7380 fi
7381
7382 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7384 fi
7385
7386 CFLAGS="$CFLAGS -Werror=missing-braces"
7387
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
7389 $as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
7390 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7391 if eval \${$cacheid+:} false; then :
7392 $as_echo_n "(cached) " >&6
7393 else
7394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7395 /* end confdefs.h. */
7396 int i;
7397 int
7398 main ()
7399 {
7400
7401 ;
7402 return 0;
7403 }
7404 _ACEOF
7405 if ac_fn_c_try_link "$LINENO"; then :
7406 eval $cacheid=yes
7407 else
7408 eval $cacheid=no
7409 fi
7410 rm -f core conftest.err conftest.$ac_objext \
7411 conftest$ac_exeext conftest.$ac_ext
7412 fi
7413
7414
7415 CFLAGS="$xorg_testset_save_CFLAGS"
7416
7417 eval supported=\$$cacheid
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7419 $as_echo "$supported" >&6; }
7420 if test "$supported" = "yes" ; then
7421 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7422 found="yes"
7423 fi
7424 fi
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440 xorg_testset_save_CFLAGS="$CFLAGS"
7441
7442 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7443 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7445 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7446 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7447 $as_echo_n "(cached) " >&6
7448 else
7449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7450 /* end confdefs.h. */
7451 int i;
7452 _ACEOF
7453 if ac_fn_c_try_compile "$LINENO"; then :
7454 xorg_cv_cc_flag_unknown_warning_option=yes
7455 else
7456 xorg_cv_cc_flag_unknown_warning_option=no
7457 fi
7458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7459 fi
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7461 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7462 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7463 CFLAGS="$xorg_testset_save_CFLAGS"
7464 fi
7465
7466 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7468 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7469 fi
7470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7472 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7473 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7474 $as_echo_n "(cached) " >&6
7475 else
7476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7477 /* end confdefs.h. */
7478 int i;
7479 _ACEOF
7480 if ac_fn_c_try_compile "$LINENO"; then :
7481 xorg_cv_cc_flag_unused_command_line_argument=yes
7482 else
7483 xorg_cv_cc_flag_unused_command_line_argument=no
7484 fi
7485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7486 fi
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7488 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7489 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7490 CFLAGS="$xorg_testset_save_CFLAGS"
7491 fi
7492
7493 found="no"
7494
7495 if test $found = "no" ; then
7496 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7498 fi
7499
7500 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7502 fi
7503
7504 CFLAGS="$CFLAGS -Werror=sequence-point"
7505
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
7507 $as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
7508 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7509 if eval \${$cacheid+:} false; then :
7510 $as_echo_n "(cached) " >&6
7511 else
7512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7513 /* end confdefs.h. */
7514 int i;
7515 int
7516 main ()
7517 {
7518
7519 ;
7520 return 0;
7521 }
7522 _ACEOF
7523 if ac_fn_c_try_link "$LINENO"; then :
7524 eval $cacheid=yes
7525 else
7526 eval $cacheid=no
7527 fi
7528 rm -f core conftest.err conftest.$ac_objext \
7529 conftest$ac_exeext conftest.$ac_ext
7530 fi
7531
7532
7533 CFLAGS="$xorg_testset_save_CFLAGS"
7534
7535 eval supported=\$$cacheid
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7537 $as_echo "$supported" >&6; }
7538 if test "$supported" = "yes" ; then
7539 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7540 found="yes"
7541 fi
7542 fi
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558 xorg_testset_save_CFLAGS="$CFLAGS"
7559
7560 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7561 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7563 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7564 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7565 $as_echo_n "(cached) " >&6
7566 else
7567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7568 /* end confdefs.h. */
7569 int i;
7570 _ACEOF
7571 if ac_fn_c_try_compile "$LINENO"; then :
7572 xorg_cv_cc_flag_unknown_warning_option=yes
7573 else
7574 xorg_cv_cc_flag_unknown_warning_option=no
7575 fi
7576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7577 fi
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7579 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7580 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7581 CFLAGS="$xorg_testset_save_CFLAGS"
7582 fi
7583
7584 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7586 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7587 fi
7588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7590 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7591 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7592 $as_echo_n "(cached) " >&6
7593 else
7594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7595 /* end confdefs.h. */
7596 int i;
7597 _ACEOF
7598 if ac_fn_c_try_compile "$LINENO"; then :
7599 xorg_cv_cc_flag_unused_command_line_argument=yes
7600 else
7601 xorg_cv_cc_flag_unused_command_line_argument=no
7602 fi
7603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7604 fi
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7606 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7607 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7608 CFLAGS="$xorg_testset_save_CFLAGS"
7609 fi
7610
7611 found="no"
7612
7613 if test $found = "no" ; then
7614 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7615 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7616 fi
7617
7618 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7620 fi
7621
7622 CFLAGS="$CFLAGS -Werror=return-type"
7623
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
7625 $as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
7626 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7627 if eval \${$cacheid+:} false; then :
7628 $as_echo_n "(cached) " >&6
7629 else
7630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7631 /* end confdefs.h. */
7632 int i;
7633 int
7634 main ()
7635 {
7636
7637 ;
7638 return 0;
7639 }
7640 _ACEOF
7641 if ac_fn_c_try_link "$LINENO"; then :
7642 eval $cacheid=yes
7643 else
7644 eval $cacheid=no
7645 fi
7646 rm -f core conftest.err conftest.$ac_objext \
7647 conftest$ac_exeext conftest.$ac_ext
7648 fi
7649
7650
7651 CFLAGS="$xorg_testset_save_CFLAGS"
7652
7653 eval supported=\$$cacheid
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7655 $as_echo "$supported" >&6; }
7656 if test "$supported" = "yes" ; then
7657 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7658 found="yes"
7659 fi
7660 fi
7661
7662 if test $found = "no" ; then
7663 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7665 fi
7666
7667 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7669 fi
7670
7671 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7672
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7674 $as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7675 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7676 if eval \${$cacheid+:} false; then :
7677 $as_echo_n "(cached) " >&6
7678 else
7679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7680 /* end confdefs.h. */
7681 int i;
7682 int
7683 main ()
7684 {
7685
7686 ;
7687 return 0;
7688 }
7689 _ACEOF
7690 if ac_fn_c_try_link "$LINENO"; then :
7691 eval $cacheid=yes
7692 else
7693 eval $cacheid=no
7694 fi
7695 rm -f core conftest.err conftest.$ac_objext \
7696 conftest$ac_exeext conftest.$ac_ext
7697 fi
7698
7699
7700 CFLAGS="$xorg_testset_save_CFLAGS"
7701
7702 eval supported=\$$cacheid
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7704 $as_echo "$supported" >&6; }
7705 if test "$supported" = "yes" ; then
7706 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7707 found="yes"
7708 fi
7709 fi
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725 xorg_testset_save_CFLAGS="$CFLAGS"
7726
7727 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7730 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7731 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7732 $as_echo_n "(cached) " >&6
7733 else
7734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7735 /* end confdefs.h. */
7736 int i;
7737 _ACEOF
7738 if ac_fn_c_try_compile "$LINENO"; then :
7739 xorg_cv_cc_flag_unknown_warning_option=yes
7740 else
7741 xorg_cv_cc_flag_unknown_warning_option=no
7742 fi
7743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7744 fi
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7746 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7747 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7748 CFLAGS="$xorg_testset_save_CFLAGS"
7749 fi
7750
7751 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7754 fi
7755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7757 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7758 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7759 $as_echo_n "(cached) " >&6
7760 else
7761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7762 /* end confdefs.h. */
7763 int i;
7764 _ACEOF
7765 if ac_fn_c_try_compile "$LINENO"; then :
7766 xorg_cv_cc_flag_unused_command_line_argument=yes
7767 else
7768 xorg_cv_cc_flag_unused_command_line_argument=no
7769 fi
7770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7771 fi
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7773 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7774 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7775 CFLAGS="$xorg_testset_save_CFLAGS"
7776 fi
7777
7778 found="no"
7779
7780 if test $found = "no" ; then
7781 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7783 fi
7784
7785 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7787 fi
7788
7789 CFLAGS="$CFLAGS -Werror=trigraphs"
7790
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
7792 $as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
7793 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7794 if eval \${$cacheid+:} false; then :
7795 $as_echo_n "(cached) " >&6
7796 else
7797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7798 /* end confdefs.h. */
7799 int i;
7800 int
7801 main ()
7802 {
7803
7804 ;
7805 return 0;
7806 }
7807 _ACEOF
7808 if ac_fn_c_try_link "$LINENO"; then :
7809 eval $cacheid=yes
7810 else
7811 eval $cacheid=no
7812 fi
7813 rm -f core conftest.err conftest.$ac_objext \
7814 conftest$ac_exeext conftest.$ac_ext
7815 fi
7816
7817
7818 CFLAGS="$xorg_testset_save_CFLAGS"
7819
7820 eval supported=\$$cacheid
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7822 $as_echo "$supported" >&6; }
7823 if test "$supported" = "yes" ; then
7824 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7825 found="yes"
7826 fi
7827 fi
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843 xorg_testset_save_CFLAGS="$CFLAGS"
7844
7845 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7848 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7849 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7850 $as_echo_n "(cached) " >&6
7851 else
7852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7853 /* end confdefs.h. */
7854 int i;
7855 _ACEOF
7856 if ac_fn_c_try_compile "$LINENO"; then :
7857 xorg_cv_cc_flag_unknown_warning_option=yes
7858 else
7859 xorg_cv_cc_flag_unknown_warning_option=no
7860 fi
7861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7862 fi
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7864 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7865 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7866 CFLAGS="$xorg_testset_save_CFLAGS"
7867 fi
7868
7869 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7872 fi
7873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7875 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7876 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7877 $as_echo_n "(cached) " >&6
7878 else
7879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7880 /* end confdefs.h. */
7881 int i;
7882 _ACEOF
7883 if ac_fn_c_try_compile "$LINENO"; then :
7884 xorg_cv_cc_flag_unused_command_line_argument=yes
7885 else
7886 xorg_cv_cc_flag_unused_command_line_argument=no
7887 fi
7888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7889 fi
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7891 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7892 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7893 CFLAGS="$xorg_testset_save_CFLAGS"
7894 fi
7895
7896 found="no"
7897
7898 if test $found = "no" ; then
7899 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7901 fi
7902
7903 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7905 fi
7906
7907 CFLAGS="$CFLAGS -Werror=array-bounds"
7908
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
7910 $as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
7911 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7912 if eval \${$cacheid+:} false; then :
7913 $as_echo_n "(cached) " >&6
7914 else
7915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7916 /* end confdefs.h. */
7917 int i;
7918 int
7919 main ()
7920 {
7921
7922 ;
7923 return 0;
7924 }
7925 _ACEOF
7926 if ac_fn_c_try_link "$LINENO"; then :
7927 eval $cacheid=yes
7928 else
7929 eval $cacheid=no
7930 fi
7931 rm -f core conftest.err conftest.$ac_objext \
7932 conftest$ac_exeext conftest.$ac_ext
7933 fi
7934
7935
7936 CFLAGS="$xorg_testset_save_CFLAGS"
7937
7938 eval supported=\$$cacheid
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7940 $as_echo "$supported" >&6; }
7941 if test "$supported" = "yes" ; then
7942 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7943 found="yes"
7944 fi
7945 fi
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961 xorg_testset_save_CFLAGS="$CFLAGS"
7962
7963 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7964 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7966 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7967 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7968 $as_echo_n "(cached) " >&6
7969 else
7970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7971 /* end confdefs.h. */
7972 int i;
7973 _ACEOF
7974 if ac_fn_c_try_compile "$LINENO"; then :
7975 xorg_cv_cc_flag_unknown_warning_option=yes
7976 else
7977 xorg_cv_cc_flag_unknown_warning_option=no
7978 fi
7979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7980 fi
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7982 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7984 CFLAGS="$xorg_testset_save_CFLAGS"
7985 fi
7986
7987 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7990 fi
7991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7993 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7994 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7995 $as_echo_n "(cached) " >&6
7996 else
7997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7998 /* end confdefs.h. */
7999 int i;
8000 _ACEOF
8001 if ac_fn_c_try_compile "$LINENO"; then :
8002 xorg_cv_cc_flag_unused_command_line_argument=yes
8003 else
8004 xorg_cv_cc_flag_unused_command_line_argument=no
8005 fi
8006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8007 fi
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8009 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8010 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8011 CFLAGS="$xorg_testset_save_CFLAGS"
8012 fi
8013
8014 found="no"
8015
8016 if test $found = "no" ; then
8017 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8019 fi
8020
8021 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8023 fi
8024
8025 CFLAGS="$CFLAGS -Werror=write-strings"
8026
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
8028 $as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
8029 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
8030 if eval \${$cacheid+:} false; then :
8031 $as_echo_n "(cached) " >&6
8032 else
8033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8034 /* end confdefs.h. */
8035 int i;
8036 int
8037 main ()
8038 {
8039
8040 ;
8041 return 0;
8042 }
8043 _ACEOF
8044 if ac_fn_c_try_link "$LINENO"; then :
8045 eval $cacheid=yes
8046 else
8047 eval $cacheid=no
8048 fi
8049 rm -f core conftest.err conftest.$ac_objext \
8050 conftest$ac_exeext conftest.$ac_ext
8051 fi
8052
8053
8054 CFLAGS="$xorg_testset_save_CFLAGS"
8055
8056 eval supported=\$$cacheid
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8058 $as_echo "$supported" >&6; }
8059 if test "$supported" = "yes" ; then
8060 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8061 found="yes"
8062 fi
8063 fi
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079 xorg_testset_save_CFLAGS="$CFLAGS"
8080
8081 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8084 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8085 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8086 $as_echo_n "(cached) " >&6
8087 else
8088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8089 /* end confdefs.h. */
8090 int i;
8091 _ACEOF
8092 if ac_fn_c_try_compile "$LINENO"; then :
8093 xorg_cv_cc_flag_unknown_warning_option=yes
8094 else
8095 xorg_cv_cc_flag_unknown_warning_option=no
8096 fi
8097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8098 fi
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8100 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8101 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8102 CFLAGS="$xorg_testset_save_CFLAGS"
8103 fi
8104
8105 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8108 fi
8109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8111 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8112 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8113 $as_echo_n "(cached) " >&6
8114 else
8115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8116 /* end confdefs.h. */
8117 int i;
8118 _ACEOF
8119 if ac_fn_c_try_compile "$LINENO"; then :
8120 xorg_cv_cc_flag_unused_command_line_argument=yes
8121 else
8122 xorg_cv_cc_flag_unused_command_line_argument=no
8123 fi
8124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8125 fi
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8127 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8128 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8129 CFLAGS="$xorg_testset_save_CFLAGS"
8130 fi
8131
8132 found="no"
8133
8134 if test $found = "no" ; then
8135 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8137 fi
8138
8139 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8141 fi
8142
8143 CFLAGS="$CFLAGS -Werror=address"
8144
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
8146 $as_echo_n "checking if $CC supports-Werror=address... " >&6; }
8147 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8148 if eval \${$cacheid+:} false; then :
8149 $as_echo_n "(cached) " >&6
8150 else
8151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8152 /* end confdefs.h. */
8153 int i;
8154 int
8155 main ()
8156 {
8157
8158 ;
8159 return 0;
8160 }
8161 _ACEOF
8162 if ac_fn_c_try_link "$LINENO"; then :
8163 eval $cacheid=yes
8164 else
8165 eval $cacheid=no
8166 fi
8167 rm -f core conftest.err conftest.$ac_objext \
8168 conftest$ac_exeext conftest.$ac_ext
8169 fi
8170
8171
8172 CFLAGS="$xorg_testset_save_CFLAGS"
8173
8174 eval supported=\$$cacheid
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8176 $as_echo "$supported" >&6; }
8177 if test "$supported" = "yes" ; then
8178 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8179 found="yes"
8180 fi
8181 fi
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197 xorg_testset_save_CFLAGS="$CFLAGS"
8198
8199 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8202 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8203 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8204 $as_echo_n "(cached) " >&6
8205 else
8206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207 /* end confdefs.h. */
8208 int i;
8209 _ACEOF
8210 if ac_fn_c_try_compile "$LINENO"; then :
8211 xorg_cv_cc_flag_unknown_warning_option=yes
8212 else
8213 xorg_cv_cc_flag_unknown_warning_option=no
8214 fi
8215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8216 fi
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8218 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8219 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8220 CFLAGS="$xorg_testset_save_CFLAGS"
8221 fi
8222
8223 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8226 fi
8227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8229 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8230 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8231 $as_echo_n "(cached) " >&6
8232 else
8233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8234 /* end confdefs.h. */
8235 int i;
8236 _ACEOF
8237 if ac_fn_c_try_compile "$LINENO"; then :
8238 xorg_cv_cc_flag_unused_command_line_argument=yes
8239 else
8240 xorg_cv_cc_flag_unused_command_line_argument=no
8241 fi
8242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8243 fi
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8245 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8246 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8247 CFLAGS="$xorg_testset_save_CFLAGS"
8248 fi
8249
8250 found="no"
8251
8252 if test $found = "no" ; then
8253 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8255 fi
8256
8257 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8259 fi
8260
8261 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8262
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
8264 $as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
8265 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8266 if eval \${$cacheid+:} false; then :
8267 $as_echo_n "(cached) " >&6
8268 else
8269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8270 /* end confdefs.h. */
8271 int i;
8272 int
8273 main ()
8274 {
8275
8276 ;
8277 return 0;
8278 }
8279 _ACEOF
8280 if ac_fn_c_try_link "$LINENO"; then :
8281 eval $cacheid=yes
8282 else
8283 eval $cacheid=no
8284 fi
8285 rm -f core conftest.err conftest.$ac_objext \
8286 conftest$ac_exeext conftest.$ac_ext
8287 fi
8288
8289
8290 CFLAGS="$xorg_testset_save_CFLAGS"
8291
8292 eval supported=\$$cacheid
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8294 $as_echo "$supported" >&6; }
8295 if test "$supported" = "yes" ; then
8296 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8297 found="yes"
8298 fi
8299 fi
8300
8301 if test $found = "no" ; then
8302 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8304 fi
8305
8306 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8308 fi
8309
8310 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8311
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8313 $as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8314 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8315 if eval \${$cacheid+:} false; then :
8316 $as_echo_n "(cached) " >&6
8317 else
8318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319 /* end confdefs.h. */
8320 int i;
8321 int
8322 main ()
8323 {
8324
8325 ;
8326 return 0;
8327 }
8328 _ACEOF
8329 if ac_fn_c_try_link "$LINENO"; then :
8330 eval $cacheid=yes
8331 else
8332 eval $cacheid=no
8333 fi
8334 rm -f core conftest.err conftest.$ac_objext \
8335 conftest$ac_exeext conftest.$ac_ext
8336 fi
8337
8338
8339 CFLAGS="$xorg_testset_save_CFLAGS"
8340
8341 eval supported=\$$cacheid
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8343 $as_echo "$supported" >&6; }
8344 if test "$supported" = "yes" ; then
8345 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8346 found="yes"
8347 fi
8348 fi
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364 xorg_testset_save_CFLAGS="$CFLAGS"
8365
8366 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8369 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8370 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8371 $as_echo_n "(cached) " >&6
8372 else
8373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8374 /* end confdefs.h. */
8375 int i;
8376 _ACEOF
8377 if ac_fn_c_try_compile "$LINENO"; then :
8378 xorg_cv_cc_flag_unknown_warning_option=yes
8379 else
8380 xorg_cv_cc_flag_unknown_warning_option=no
8381 fi
8382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8383 fi
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8385 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8386 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8387 CFLAGS="$xorg_testset_save_CFLAGS"
8388 fi
8389
8390 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8392 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8393 fi
8394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8396 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8397 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8398 $as_echo_n "(cached) " >&6
8399 else
8400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401 /* end confdefs.h. */
8402 int i;
8403 _ACEOF
8404 if ac_fn_c_try_compile "$LINENO"; then :
8405 xorg_cv_cc_flag_unused_command_line_argument=yes
8406 else
8407 xorg_cv_cc_flag_unused_command_line_argument=no
8408 fi
8409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8410 fi
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8412 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8413 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8414 CFLAGS="$xorg_testset_save_CFLAGS"
8415 fi
8416
8417 found="no"
8418
8419 if test $found = "no" ; then
8420 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8421 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8422 fi
8423
8424 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8426 fi
8427
8428 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8429
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
8431 $as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
8432 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8433 if eval \${$cacheid+:} false; then :
8434 $as_echo_n "(cached) " >&6
8435 else
8436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8437 /* end confdefs.h. */
8438 int i;
8439 int
8440 main ()
8441 {
8442
8443 ;
8444 return 0;
8445 }
8446 _ACEOF
8447 if ac_fn_c_try_link "$LINENO"; then :
8448 eval $cacheid=yes
8449 else
8450 eval $cacheid=no
8451 fi
8452 rm -f core conftest.err conftest.$ac_objext \
8453 conftest$ac_exeext conftest.$ac_ext
8454 fi
8455
8456
8457 CFLAGS="$xorg_testset_save_CFLAGS"
8458
8459 eval supported=\$$cacheid
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8461 $as_echo "$supported" >&6; }
8462 if test "$supported" = "yes" ; then
8463 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8464 found="yes"
8465 fi
8466 fi
8467
8468 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8469 else
8470 { $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
8471 $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;}
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485 xorg_testset_save_CFLAGS="$CFLAGS"
8486
8487 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8488 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8490 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8491 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8492 $as_echo_n "(cached) " >&6
8493 else
8494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8495 /* end confdefs.h. */
8496 int i;
8497 _ACEOF
8498 if ac_fn_c_try_compile "$LINENO"; then :
8499 xorg_cv_cc_flag_unknown_warning_option=yes
8500 else
8501 xorg_cv_cc_flag_unknown_warning_option=no
8502 fi
8503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8504 fi
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8506 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8507 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8508 CFLAGS="$xorg_testset_save_CFLAGS"
8509 fi
8510
8511 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8514 fi
8515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8517 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8518 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8519 $as_echo_n "(cached) " >&6
8520 else
8521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522 /* end confdefs.h. */
8523 int i;
8524 _ACEOF
8525 if ac_fn_c_try_compile "$LINENO"; then :
8526 xorg_cv_cc_flag_unused_command_line_argument=yes
8527 else
8528 xorg_cv_cc_flag_unused_command_line_argument=no
8529 fi
8530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8531 fi
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8533 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8534 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8535 CFLAGS="$xorg_testset_save_CFLAGS"
8536 fi
8537
8538 found="no"
8539
8540 if test $found = "no" ; then
8541 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8543 fi
8544
8545 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8547 fi
8548
8549 CFLAGS="$CFLAGS -Wimplicit"
8550
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
8552 $as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
8553 cacheid=xorg_cv_cc_flag__Wimplicit
8554 if eval \${$cacheid+:} false; then :
8555 $as_echo_n "(cached) " >&6
8556 else
8557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8558 /* end confdefs.h. */
8559 int i;
8560 int
8561 main ()
8562 {
8563
8564 ;
8565 return 0;
8566 }
8567 _ACEOF
8568 if ac_fn_c_try_link "$LINENO"; then :
8569 eval $cacheid=yes
8570 else
8571 eval $cacheid=no
8572 fi
8573 rm -f core conftest.err conftest.$ac_objext \
8574 conftest$ac_exeext conftest.$ac_ext
8575 fi
8576
8577
8578 CFLAGS="$xorg_testset_save_CFLAGS"
8579
8580 eval supported=\$$cacheid
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8582 $as_echo "$supported" >&6; }
8583 if test "$supported" = "yes" ; then
8584 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8585 found="yes"
8586 fi
8587 fi
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603 xorg_testset_save_CFLAGS="$CFLAGS"
8604
8605 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8608 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8609 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8610 $as_echo_n "(cached) " >&6
8611 else
8612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8613 /* end confdefs.h. */
8614 int i;
8615 _ACEOF
8616 if ac_fn_c_try_compile "$LINENO"; then :
8617 xorg_cv_cc_flag_unknown_warning_option=yes
8618 else
8619 xorg_cv_cc_flag_unknown_warning_option=no
8620 fi
8621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8622 fi
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8624 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8625 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8626 CFLAGS="$xorg_testset_save_CFLAGS"
8627 fi
8628
8629 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8631 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8632 fi
8633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8635 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8636 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8637 $as_echo_n "(cached) " >&6
8638 else
8639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8640 /* end confdefs.h. */
8641 int i;
8642 _ACEOF
8643 if ac_fn_c_try_compile "$LINENO"; then :
8644 xorg_cv_cc_flag_unused_command_line_argument=yes
8645 else
8646 xorg_cv_cc_flag_unused_command_line_argument=no
8647 fi
8648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8649 fi
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8651 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8652 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8653 CFLAGS="$xorg_testset_save_CFLAGS"
8654 fi
8655
8656 found="no"
8657
8658 if test $found = "no" ; then
8659 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8661 fi
8662
8663 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8665 fi
8666
8667 CFLAGS="$CFLAGS -Wnonnull"
8668
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
8670 $as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
8671 cacheid=xorg_cv_cc_flag__Wnonnull
8672 if eval \${$cacheid+:} false; then :
8673 $as_echo_n "(cached) " >&6
8674 else
8675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8676 /* end confdefs.h. */
8677 int i;
8678 int
8679 main ()
8680 {
8681
8682 ;
8683 return 0;
8684 }
8685 _ACEOF
8686 if ac_fn_c_try_link "$LINENO"; then :
8687 eval $cacheid=yes
8688 else
8689 eval $cacheid=no
8690 fi
8691 rm -f core conftest.err conftest.$ac_objext \
8692 conftest$ac_exeext conftest.$ac_ext
8693 fi
8694
8695
8696 CFLAGS="$xorg_testset_save_CFLAGS"
8697
8698 eval supported=\$$cacheid
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8700 $as_echo "$supported" >&6; }
8701 if test "$supported" = "yes" ; then
8702 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8703 found="yes"
8704 fi
8705 fi
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721 xorg_testset_save_CFLAGS="$CFLAGS"
8722
8723 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8724 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8726 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8727 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8728 $as_echo_n "(cached) " >&6
8729 else
8730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8731 /* end confdefs.h. */
8732 int i;
8733 _ACEOF
8734 if ac_fn_c_try_compile "$LINENO"; then :
8735 xorg_cv_cc_flag_unknown_warning_option=yes
8736 else
8737 xorg_cv_cc_flag_unknown_warning_option=no
8738 fi
8739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8740 fi
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8742 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8743 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8744 CFLAGS="$xorg_testset_save_CFLAGS"
8745 fi
8746
8747 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8749 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8750 fi
8751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8753 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8754 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8755 $as_echo_n "(cached) " >&6
8756 else
8757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8758 /* end confdefs.h. */
8759 int i;
8760 _ACEOF
8761 if ac_fn_c_try_compile "$LINENO"; then :
8762 xorg_cv_cc_flag_unused_command_line_argument=yes
8763 else
8764 xorg_cv_cc_flag_unused_command_line_argument=no
8765 fi
8766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8767 fi
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8769 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8770 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8771 CFLAGS="$xorg_testset_save_CFLAGS"
8772 fi
8773
8774 found="no"
8775
8776 if test $found = "no" ; then
8777 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8778 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8779 fi
8780
8781 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8783 fi
8784
8785 CFLAGS="$CFLAGS -Winit-self"
8786
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
8788 $as_echo_n "checking if $CC supports-Winit-self... " >&6; }
8789 cacheid=xorg_cv_cc_flag__Winit_self
8790 if eval \${$cacheid+:} false; then :
8791 $as_echo_n "(cached) " >&6
8792 else
8793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8794 /* end confdefs.h. */
8795 int i;
8796 int
8797 main ()
8798 {
8799
8800 ;
8801 return 0;
8802 }
8803 _ACEOF
8804 if ac_fn_c_try_link "$LINENO"; then :
8805 eval $cacheid=yes
8806 else
8807 eval $cacheid=no
8808 fi
8809 rm -f core conftest.err conftest.$ac_objext \
8810 conftest$ac_exeext conftest.$ac_ext
8811 fi
8812
8813
8814 CFLAGS="$xorg_testset_save_CFLAGS"
8815
8816 eval supported=\$$cacheid
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8818 $as_echo "$supported" >&6; }
8819 if test "$supported" = "yes" ; then
8820 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8821 found="yes"
8822 fi
8823 fi
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839 xorg_testset_save_CFLAGS="$CFLAGS"
8840
8841 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8842 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8844 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8845 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8846 $as_echo_n "(cached) " >&6
8847 else
8848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8849 /* end confdefs.h. */
8850 int i;
8851 _ACEOF
8852 if ac_fn_c_try_compile "$LINENO"; then :
8853 xorg_cv_cc_flag_unknown_warning_option=yes
8854 else
8855 xorg_cv_cc_flag_unknown_warning_option=no
8856 fi
8857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8858 fi
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8860 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8861 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8862 CFLAGS="$xorg_testset_save_CFLAGS"
8863 fi
8864
8865 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8866 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8867 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8868 fi
8869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8871 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8872 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8873 $as_echo_n "(cached) " >&6
8874 else
8875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8876 /* end confdefs.h. */
8877 int i;
8878 _ACEOF
8879 if ac_fn_c_try_compile "$LINENO"; then :
8880 xorg_cv_cc_flag_unused_command_line_argument=yes
8881 else
8882 xorg_cv_cc_flag_unused_command_line_argument=no
8883 fi
8884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8885 fi
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8887 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8888 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8889 CFLAGS="$xorg_testset_save_CFLAGS"
8890 fi
8891
8892 found="no"
8893
8894 if test $found = "no" ; then
8895 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8897 fi
8898
8899 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8901 fi
8902
8903 CFLAGS="$CFLAGS -Wmain"
8904
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
8906 $as_echo_n "checking if $CC supports-Wmain... " >&6; }
8907 cacheid=xorg_cv_cc_flag__Wmain
8908 if eval \${$cacheid+:} false; then :
8909 $as_echo_n "(cached) " >&6
8910 else
8911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8912 /* end confdefs.h. */
8913 int i;
8914 int
8915 main ()
8916 {
8917
8918 ;
8919 return 0;
8920 }
8921 _ACEOF
8922 if ac_fn_c_try_link "$LINENO"; then :
8923 eval $cacheid=yes
8924 else
8925 eval $cacheid=no
8926 fi
8927 rm -f core conftest.err conftest.$ac_objext \
8928 conftest$ac_exeext conftest.$ac_ext
8929 fi
8930
8931
8932 CFLAGS="$xorg_testset_save_CFLAGS"
8933
8934 eval supported=\$$cacheid
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8936 $as_echo "$supported" >&6; }
8937 if test "$supported" = "yes" ; then
8938 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8939 found="yes"
8940 fi
8941 fi
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957 xorg_testset_save_CFLAGS="$CFLAGS"
8958
8959 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8962 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8963 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8964 $as_echo_n "(cached) " >&6
8965 else
8966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8967 /* end confdefs.h. */
8968 int i;
8969 _ACEOF
8970 if ac_fn_c_try_compile "$LINENO"; then :
8971 xorg_cv_cc_flag_unknown_warning_option=yes
8972 else
8973 xorg_cv_cc_flag_unknown_warning_option=no
8974 fi
8975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8976 fi
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8978 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8979 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8980 CFLAGS="$xorg_testset_save_CFLAGS"
8981 fi
8982
8983 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8986 fi
8987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8989 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8990 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8991 $as_echo_n "(cached) " >&6
8992 else
8993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8994 /* end confdefs.h. */
8995 int i;
8996 _ACEOF
8997 if ac_fn_c_try_compile "$LINENO"; then :
8998 xorg_cv_cc_flag_unused_command_line_argument=yes
8999 else
9000 xorg_cv_cc_flag_unused_command_line_argument=no
9001 fi
9002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9003 fi
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9005 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9006 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9007 CFLAGS="$xorg_testset_save_CFLAGS"
9008 fi
9009
9010 found="no"
9011
9012 if test $found = "no" ; then
9013 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9014 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9015 fi
9016
9017 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9019 fi
9020
9021 CFLAGS="$CFLAGS -Wmissing-braces"
9022
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
9024 $as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
9025 cacheid=xorg_cv_cc_flag__Wmissing_braces
9026 if eval \${$cacheid+:} false; then :
9027 $as_echo_n "(cached) " >&6
9028 else
9029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9030 /* end confdefs.h. */
9031 int i;
9032 int
9033 main ()
9034 {
9035
9036 ;
9037 return 0;
9038 }
9039 _ACEOF
9040 if ac_fn_c_try_link "$LINENO"; then :
9041 eval $cacheid=yes
9042 else
9043 eval $cacheid=no
9044 fi
9045 rm -f core conftest.err conftest.$ac_objext \
9046 conftest$ac_exeext conftest.$ac_ext
9047 fi
9048
9049
9050 CFLAGS="$xorg_testset_save_CFLAGS"
9051
9052 eval supported=\$$cacheid
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9054 $as_echo "$supported" >&6; }
9055 if test "$supported" = "yes" ; then
9056 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9057 found="yes"
9058 fi
9059 fi
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075 xorg_testset_save_CFLAGS="$CFLAGS"
9076
9077 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9078 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9080 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9081 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9082 $as_echo_n "(cached) " >&6
9083 else
9084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9085 /* end confdefs.h. */
9086 int i;
9087 _ACEOF
9088 if ac_fn_c_try_compile "$LINENO"; then :
9089 xorg_cv_cc_flag_unknown_warning_option=yes
9090 else
9091 xorg_cv_cc_flag_unknown_warning_option=no
9092 fi
9093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9094 fi
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9096 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9097 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9098 CFLAGS="$xorg_testset_save_CFLAGS"
9099 fi
9100
9101 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9103 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9104 fi
9105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9107 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9108 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9109 $as_echo_n "(cached) " >&6
9110 else
9111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9112 /* end confdefs.h. */
9113 int i;
9114 _ACEOF
9115 if ac_fn_c_try_compile "$LINENO"; then :
9116 xorg_cv_cc_flag_unused_command_line_argument=yes
9117 else
9118 xorg_cv_cc_flag_unused_command_line_argument=no
9119 fi
9120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9121 fi
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9123 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9124 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9125 CFLAGS="$xorg_testset_save_CFLAGS"
9126 fi
9127
9128 found="no"
9129
9130 if test $found = "no" ; then
9131 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9132 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9133 fi
9134
9135 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9137 fi
9138
9139 CFLAGS="$CFLAGS -Wsequence-point"
9140
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
9142 $as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
9143 cacheid=xorg_cv_cc_flag__Wsequence_point
9144 if eval \${$cacheid+:} false; then :
9145 $as_echo_n "(cached) " >&6
9146 else
9147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9148 /* end confdefs.h. */
9149 int i;
9150 int
9151 main ()
9152 {
9153
9154 ;
9155 return 0;
9156 }
9157 _ACEOF
9158 if ac_fn_c_try_link "$LINENO"; then :
9159 eval $cacheid=yes
9160 else
9161 eval $cacheid=no
9162 fi
9163 rm -f core conftest.err conftest.$ac_objext \
9164 conftest$ac_exeext conftest.$ac_ext
9165 fi
9166
9167
9168 CFLAGS="$xorg_testset_save_CFLAGS"
9169
9170 eval supported=\$$cacheid
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9172 $as_echo "$supported" >&6; }
9173 if test "$supported" = "yes" ; then
9174 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9175 found="yes"
9176 fi
9177 fi
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193 xorg_testset_save_CFLAGS="$CFLAGS"
9194
9195 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9196 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9198 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9199 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9200 $as_echo_n "(cached) " >&6
9201 else
9202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9203 /* end confdefs.h. */
9204 int i;
9205 _ACEOF
9206 if ac_fn_c_try_compile "$LINENO"; then :
9207 xorg_cv_cc_flag_unknown_warning_option=yes
9208 else
9209 xorg_cv_cc_flag_unknown_warning_option=no
9210 fi
9211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9212 fi
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9214 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9215 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9216 CFLAGS="$xorg_testset_save_CFLAGS"
9217 fi
9218
9219 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9221 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9222 fi
9223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9225 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9226 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9227 $as_echo_n "(cached) " >&6
9228 else
9229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9230 /* end confdefs.h. */
9231 int i;
9232 _ACEOF
9233 if ac_fn_c_try_compile "$LINENO"; then :
9234 xorg_cv_cc_flag_unused_command_line_argument=yes
9235 else
9236 xorg_cv_cc_flag_unused_command_line_argument=no
9237 fi
9238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9239 fi
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9241 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9242 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9243 CFLAGS="$xorg_testset_save_CFLAGS"
9244 fi
9245
9246 found="no"
9247
9248 if test $found = "no" ; then
9249 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9250 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9251 fi
9252
9253 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9255 fi
9256
9257 CFLAGS="$CFLAGS -Wreturn-type"
9258
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
9260 $as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
9261 cacheid=xorg_cv_cc_flag__Wreturn_type
9262 if eval \${$cacheid+:} false; then :
9263 $as_echo_n "(cached) " >&6
9264 else
9265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9266 /* end confdefs.h. */
9267 int i;
9268 int
9269 main ()
9270 {
9271
9272 ;
9273 return 0;
9274 }
9275 _ACEOF
9276 if ac_fn_c_try_link "$LINENO"; then :
9277 eval $cacheid=yes
9278 else
9279 eval $cacheid=no
9280 fi
9281 rm -f core conftest.err conftest.$ac_objext \
9282 conftest$ac_exeext conftest.$ac_ext
9283 fi
9284
9285
9286 CFLAGS="$xorg_testset_save_CFLAGS"
9287
9288 eval supported=\$$cacheid
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9290 $as_echo "$supported" >&6; }
9291 if test "$supported" = "yes" ; then
9292 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9293 found="yes"
9294 fi
9295 fi
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311 xorg_testset_save_CFLAGS="$CFLAGS"
9312
9313 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9316 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9317 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9318 $as_echo_n "(cached) " >&6
9319 else
9320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9321 /* end confdefs.h. */
9322 int i;
9323 _ACEOF
9324 if ac_fn_c_try_compile "$LINENO"; then :
9325 xorg_cv_cc_flag_unknown_warning_option=yes
9326 else
9327 xorg_cv_cc_flag_unknown_warning_option=no
9328 fi
9329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9330 fi
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9332 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9333 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9334 CFLAGS="$xorg_testset_save_CFLAGS"
9335 fi
9336
9337 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9339 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9340 fi
9341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9343 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9344 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9345 $as_echo_n "(cached) " >&6
9346 else
9347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9348 /* end confdefs.h. */
9349 int i;
9350 _ACEOF
9351 if ac_fn_c_try_compile "$LINENO"; then :
9352 xorg_cv_cc_flag_unused_command_line_argument=yes
9353 else
9354 xorg_cv_cc_flag_unused_command_line_argument=no
9355 fi
9356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9357 fi
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9359 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9360 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9361 CFLAGS="$xorg_testset_save_CFLAGS"
9362 fi
9363
9364 found="no"
9365
9366 if test $found = "no" ; then
9367 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9369 fi
9370
9371 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9373 fi
9374
9375 CFLAGS="$CFLAGS -Wtrigraphs"
9376
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
9378 $as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
9379 cacheid=xorg_cv_cc_flag__Wtrigraphs
9380 if eval \${$cacheid+:} false; then :
9381 $as_echo_n "(cached) " >&6
9382 else
9383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9384 /* end confdefs.h. */
9385 int i;
9386 int
9387 main ()
9388 {
9389
9390 ;
9391 return 0;
9392 }
9393 _ACEOF
9394 if ac_fn_c_try_link "$LINENO"; then :
9395 eval $cacheid=yes
9396 else
9397 eval $cacheid=no
9398 fi
9399 rm -f core conftest.err conftest.$ac_objext \
9400 conftest$ac_exeext conftest.$ac_ext
9401 fi
9402
9403
9404 CFLAGS="$xorg_testset_save_CFLAGS"
9405
9406 eval supported=\$$cacheid
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9408 $as_echo "$supported" >&6; }
9409 if test "$supported" = "yes" ; then
9410 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9411 found="yes"
9412 fi
9413 fi
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429 xorg_testset_save_CFLAGS="$CFLAGS"
9430
9431 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9432 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9434 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9435 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9436 $as_echo_n "(cached) " >&6
9437 else
9438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9439 /* end confdefs.h. */
9440 int i;
9441 _ACEOF
9442 if ac_fn_c_try_compile "$LINENO"; then :
9443 xorg_cv_cc_flag_unknown_warning_option=yes
9444 else
9445 xorg_cv_cc_flag_unknown_warning_option=no
9446 fi
9447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9448 fi
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9450 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9451 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9452 CFLAGS="$xorg_testset_save_CFLAGS"
9453 fi
9454
9455 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9457 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9458 fi
9459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9461 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9462 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9463 $as_echo_n "(cached) " >&6
9464 else
9465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9466 /* end confdefs.h. */
9467 int i;
9468 _ACEOF
9469 if ac_fn_c_try_compile "$LINENO"; then :
9470 xorg_cv_cc_flag_unused_command_line_argument=yes
9471 else
9472 xorg_cv_cc_flag_unused_command_line_argument=no
9473 fi
9474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9475 fi
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9477 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9478 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9479 CFLAGS="$xorg_testset_save_CFLAGS"
9480 fi
9481
9482 found="no"
9483
9484 if test $found = "no" ; then
9485 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9486 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9487 fi
9488
9489 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9491 fi
9492
9493 CFLAGS="$CFLAGS -Warray-bounds"
9494
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
9496 $as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
9497 cacheid=xorg_cv_cc_flag__Warray_bounds
9498 if eval \${$cacheid+:} false; then :
9499 $as_echo_n "(cached) " >&6
9500 else
9501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9502 /* end confdefs.h. */
9503 int i;
9504 int
9505 main ()
9506 {
9507
9508 ;
9509 return 0;
9510 }
9511 _ACEOF
9512 if ac_fn_c_try_link "$LINENO"; then :
9513 eval $cacheid=yes
9514 else
9515 eval $cacheid=no
9516 fi
9517 rm -f core conftest.err conftest.$ac_objext \
9518 conftest$ac_exeext conftest.$ac_ext
9519 fi
9520
9521
9522 CFLAGS="$xorg_testset_save_CFLAGS"
9523
9524 eval supported=\$$cacheid
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9526 $as_echo "$supported" >&6; }
9527 if test "$supported" = "yes" ; then
9528 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9529 found="yes"
9530 fi
9531 fi
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547 xorg_testset_save_CFLAGS="$CFLAGS"
9548
9549 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9550 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9552 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9553 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9554 $as_echo_n "(cached) " >&6
9555 else
9556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9557 /* end confdefs.h. */
9558 int i;
9559 _ACEOF
9560 if ac_fn_c_try_compile "$LINENO"; then :
9561 xorg_cv_cc_flag_unknown_warning_option=yes
9562 else
9563 xorg_cv_cc_flag_unknown_warning_option=no
9564 fi
9565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9566 fi
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9568 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9569 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9570 CFLAGS="$xorg_testset_save_CFLAGS"
9571 fi
9572
9573 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9575 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9576 fi
9577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9579 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9580 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9581 $as_echo_n "(cached) " >&6
9582 else
9583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9584 /* end confdefs.h. */
9585 int i;
9586 _ACEOF
9587 if ac_fn_c_try_compile "$LINENO"; then :
9588 xorg_cv_cc_flag_unused_command_line_argument=yes
9589 else
9590 xorg_cv_cc_flag_unused_command_line_argument=no
9591 fi
9592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9593 fi
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9595 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9596 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9597 CFLAGS="$xorg_testset_save_CFLAGS"
9598 fi
9599
9600 found="no"
9601
9602 if test $found = "no" ; then
9603 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9604 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9605 fi
9606
9607 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9609 fi
9610
9611 CFLAGS="$CFLAGS -Wwrite-strings"
9612
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
9614 $as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
9615 cacheid=xorg_cv_cc_flag__Wwrite_strings
9616 if eval \${$cacheid+:} false; then :
9617 $as_echo_n "(cached) " >&6
9618 else
9619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9620 /* end confdefs.h. */
9621 int i;
9622 int
9623 main ()
9624 {
9625
9626 ;
9627 return 0;
9628 }
9629 _ACEOF
9630 if ac_fn_c_try_link "$LINENO"; then :
9631 eval $cacheid=yes
9632 else
9633 eval $cacheid=no
9634 fi
9635 rm -f core conftest.err conftest.$ac_objext \
9636 conftest$ac_exeext conftest.$ac_ext
9637 fi
9638
9639
9640 CFLAGS="$xorg_testset_save_CFLAGS"
9641
9642 eval supported=\$$cacheid
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9644 $as_echo "$supported" >&6; }
9645 if test "$supported" = "yes" ; then
9646 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9647 found="yes"
9648 fi
9649 fi
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665 xorg_testset_save_CFLAGS="$CFLAGS"
9666
9667 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9668 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9670 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9671 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9672 $as_echo_n "(cached) " >&6
9673 else
9674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9675 /* end confdefs.h. */
9676 int i;
9677 _ACEOF
9678 if ac_fn_c_try_compile "$LINENO"; then :
9679 xorg_cv_cc_flag_unknown_warning_option=yes
9680 else
9681 xorg_cv_cc_flag_unknown_warning_option=no
9682 fi
9683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9684 fi
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9686 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9687 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9688 CFLAGS="$xorg_testset_save_CFLAGS"
9689 fi
9690
9691 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9693 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9694 fi
9695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9697 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9698 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9699 $as_echo_n "(cached) " >&6
9700 else
9701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9702 /* end confdefs.h. */
9703 int i;
9704 _ACEOF
9705 if ac_fn_c_try_compile "$LINENO"; then :
9706 xorg_cv_cc_flag_unused_command_line_argument=yes
9707 else
9708 xorg_cv_cc_flag_unused_command_line_argument=no
9709 fi
9710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9711 fi
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9713 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9714 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9715 CFLAGS="$xorg_testset_save_CFLAGS"
9716 fi
9717
9718 found="no"
9719
9720 if test $found = "no" ; then
9721 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9723 fi
9724
9725 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9727 fi
9728
9729 CFLAGS="$CFLAGS -Waddress"
9730
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
9732 $as_echo_n "checking if $CC supports-Waddress... " >&6; }
9733 cacheid=xorg_cv_cc_flag__Waddress
9734 if eval \${$cacheid+:} false; then :
9735 $as_echo_n "(cached) " >&6
9736 else
9737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9738 /* end confdefs.h. */
9739 int i;
9740 int
9741 main ()
9742 {
9743
9744 ;
9745 return 0;
9746 }
9747 _ACEOF
9748 if ac_fn_c_try_link "$LINENO"; then :
9749 eval $cacheid=yes
9750 else
9751 eval $cacheid=no
9752 fi
9753 rm -f core conftest.err conftest.$ac_objext \
9754 conftest$ac_exeext conftest.$ac_ext
9755 fi
9756
9757
9758 CFLAGS="$xorg_testset_save_CFLAGS"
9759
9760 eval supported=\$$cacheid
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9762 $as_echo "$supported" >&6; }
9763 if test "$supported" = "yes" ; then
9764 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9765 found="yes"
9766 fi
9767 fi
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783 xorg_testset_save_CFLAGS="$CFLAGS"
9784
9785 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9786 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9788 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9789 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9790 $as_echo_n "(cached) " >&6
9791 else
9792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9793 /* end confdefs.h. */
9794 int i;
9795 _ACEOF
9796 if ac_fn_c_try_compile "$LINENO"; then :
9797 xorg_cv_cc_flag_unknown_warning_option=yes
9798 else
9799 xorg_cv_cc_flag_unknown_warning_option=no
9800 fi
9801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9802 fi
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9804 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9805 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9806 CFLAGS="$xorg_testset_save_CFLAGS"
9807 fi
9808
9809 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9810 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9811 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9812 fi
9813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9815 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9816 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9817 $as_echo_n "(cached) " >&6
9818 else
9819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9820 /* end confdefs.h. */
9821 int i;
9822 _ACEOF
9823 if ac_fn_c_try_compile "$LINENO"; then :
9824 xorg_cv_cc_flag_unused_command_line_argument=yes
9825 else
9826 xorg_cv_cc_flag_unused_command_line_argument=no
9827 fi
9828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9829 fi
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9831 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9832 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9833 CFLAGS="$xorg_testset_save_CFLAGS"
9834 fi
9835
9836 found="no"
9837
9838 if test $found = "no" ; then
9839 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9840 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9841 fi
9842
9843 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9845 fi
9846
9847 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9848
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
9850 $as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
9851 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9852 if eval \${$cacheid+:} false; then :
9853 $as_echo_n "(cached) " >&6
9854 else
9855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9856 /* end confdefs.h. */
9857 int i;
9858 int
9859 main ()
9860 {
9861
9862 ;
9863 return 0;
9864 }
9865 _ACEOF
9866 if ac_fn_c_try_link "$LINENO"; then :
9867 eval $cacheid=yes
9868 else
9869 eval $cacheid=no
9870 fi
9871 rm -f core conftest.err conftest.$ac_objext \
9872 conftest$ac_exeext conftest.$ac_ext
9873 fi
9874
9875
9876 CFLAGS="$xorg_testset_save_CFLAGS"
9877
9878 eval supported=\$$cacheid
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9880 $as_echo "$supported" >&6; }
9881 if test "$supported" = "yes" ; then
9882 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9883 found="yes"
9884 fi
9885 fi
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901 xorg_testset_save_CFLAGS="$CFLAGS"
9902
9903 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9904 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9906 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9907 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9908 $as_echo_n "(cached) " >&6
9909 else
9910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9911 /* end confdefs.h. */
9912 int i;
9913 _ACEOF
9914 if ac_fn_c_try_compile "$LINENO"; then :
9915 xorg_cv_cc_flag_unknown_warning_option=yes
9916 else
9917 xorg_cv_cc_flag_unknown_warning_option=no
9918 fi
9919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9920 fi
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9922 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9923 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9924 CFLAGS="$xorg_testset_save_CFLAGS"
9925 fi
9926
9927 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9928 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9929 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9930 fi
9931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9933 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9934 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9935 $as_echo_n "(cached) " >&6
9936 else
9937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9938 /* end confdefs.h. */
9939 int i;
9940 _ACEOF
9941 if ac_fn_c_try_compile "$LINENO"; then :
9942 xorg_cv_cc_flag_unused_command_line_argument=yes
9943 else
9944 xorg_cv_cc_flag_unused_command_line_argument=no
9945 fi
9946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9947 fi
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9949 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9950 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9951 CFLAGS="$xorg_testset_save_CFLAGS"
9952 fi
9953
9954 found="no"
9955
9956 if test $found = "no" ; then
9957 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9959 fi
9960
9961 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9963 fi
9964
9965 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9966
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
9968 $as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
9969 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9970 if eval \${$cacheid+:} false; then :
9971 $as_echo_n "(cached) " >&6
9972 else
9973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9974 /* end confdefs.h. */
9975 int i;
9976 int
9977 main ()
9978 {
9979
9980 ;
9981 return 0;
9982 }
9983 _ACEOF
9984 if ac_fn_c_try_link "$LINENO"; then :
9985 eval $cacheid=yes
9986 else
9987 eval $cacheid=no
9988 fi
9989 rm -f core conftest.err conftest.$ac_objext \
9990 conftest$ac_exeext conftest.$ac_ext
9991 fi
9992
9993
9994 CFLAGS="$xorg_testset_save_CFLAGS"
9995
9996 eval supported=\$$cacheid
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9998 $as_echo "$supported" >&6; }
9999 if test "$supported" = "yes" ; then
10000 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10001 found="yes"
10002 fi
10003 fi
10004
10005
10006 fi
10007
10008
10009
10010
10011
10012
10013
10014 CWARNFLAGS="$BASE_CFLAGS"
10015 if test "x$GCC" = xyes ; then
10016 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10017 fi
10018
10019
10020
10021
10022
10023
10024
10025
10026 # Check whether --enable-strict-compilation was given.
10027 if test "${enable_strict_compilation+set}" = set; then :
10028 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10029 else
10030 STRICT_COMPILE=no
10031 fi
10032
10033
10034
10035
10036
10037
10038 STRICT_CFLAGS=""
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052 xorg_testset_save_CFLAGS="$CFLAGS"
10053
10054 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10055 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10057 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10058 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10059 $as_echo_n "(cached) " >&6
10060 else
10061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10062 /* end confdefs.h. */
10063 int i;
10064 _ACEOF
10065 if ac_fn_c_try_compile "$LINENO"; then :
10066 xorg_cv_cc_flag_unknown_warning_option=yes
10067 else
10068 xorg_cv_cc_flag_unknown_warning_option=no
10069 fi
10070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10071 fi
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10073 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10074 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10075 CFLAGS="$xorg_testset_save_CFLAGS"
10076 fi
10077
10078 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10080 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10081 fi
10082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10084 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10085 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10086 $as_echo_n "(cached) " >&6
10087 else
10088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10089 /* end confdefs.h. */
10090 int i;
10091 _ACEOF
10092 if ac_fn_c_try_compile "$LINENO"; then :
10093 xorg_cv_cc_flag_unused_command_line_argument=yes
10094 else
10095 xorg_cv_cc_flag_unused_command_line_argument=no
10096 fi
10097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10098 fi
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10100 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10101 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10102 CFLAGS="$xorg_testset_save_CFLAGS"
10103 fi
10104
10105 found="no"
10106
10107 if test $found = "no" ; then
10108 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10110 fi
10111
10112 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10114 fi
10115
10116 CFLAGS="$CFLAGS -pedantic"
10117
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
10119 $as_echo_n "checking if $CC supports-pedantic... " >&6; }
10120 cacheid=xorg_cv_cc_flag__pedantic
10121 if eval \${$cacheid+:} false; then :
10122 $as_echo_n "(cached) " >&6
10123 else
10124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10125 /* end confdefs.h. */
10126 int i;
10127 int
10128 main ()
10129 {
10130
10131 ;
10132 return 0;
10133 }
10134 _ACEOF
10135 if ac_fn_c_try_link "$LINENO"; then :
10136 eval $cacheid=yes
10137 else
10138 eval $cacheid=no
10139 fi
10140 rm -f core conftest.err conftest.$ac_objext \
10141 conftest$ac_exeext conftest.$ac_ext
10142 fi
10143
10144
10145 CFLAGS="$xorg_testset_save_CFLAGS"
10146
10147 eval supported=\$$cacheid
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10149 $as_echo "$supported" >&6; }
10150 if test "$supported" = "yes" ; then
10151 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10152 found="yes"
10153 fi
10154 fi
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170 xorg_testset_save_CFLAGS="$CFLAGS"
10171
10172 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10173 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10175 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10176 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10177 $as_echo_n "(cached) " >&6
10178 else
10179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10180 /* end confdefs.h. */
10181 int i;
10182 _ACEOF
10183 if ac_fn_c_try_compile "$LINENO"; then :
10184 xorg_cv_cc_flag_unknown_warning_option=yes
10185 else
10186 xorg_cv_cc_flag_unknown_warning_option=no
10187 fi
10188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10189 fi
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10191 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10192 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10193 CFLAGS="$xorg_testset_save_CFLAGS"
10194 fi
10195
10196 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10198 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10199 fi
10200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10202 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10203 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10204 $as_echo_n "(cached) " >&6
10205 else
10206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10207 /* end confdefs.h. */
10208 int i;
10209 _ACEOF
10210 if ac_fn_c_try_compile "$LINENO"; then :
10211 xorg_cv_cc_flag_unused_command_line_argument=yes
10212 else
10213 xorg_cv_cc_flag_unused_command_line_argument=no
10214 fi
10215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10216 fi
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10218 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10219 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10220 CFLAGS="$xorg_testset_save_CFLAGS"
10221 fi
10222
10223 found="no"
10224
10225 if test $found = "no" ; then
10226 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10227 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10228 fi
10229
10230 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10232 fi
10233
10234 CFLAGS="$CFLAGS -Werror"
10235
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
10237 $as_echo_n "checking if $CC supports-Werror... " >&6; }
10238 cacheid=xorg_cv_cc_flag__Werror
10239 if eval \${$cacheid+:} false; then :
10240 $as_echo_n "(cached) " >&6
10241 else
10242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10243 /* end confdefs.h. */
10244 int i;
10245 int
10246 main ()
10247 {
10248
10249 ;
10250 return 0;
10251 }
10252 _ACEOF
10253 if ac_fn_c_try_link "$LINENO"; then :
10254 eval $cacheid=yes
10255 else
10256 eval $cacheid=no
10257 fi
10258 rm -f core conftest.err conftest.$ac_objext \
10259 conftest$ac_exeext conftest.$ac_ext
10260 fi
10261
10262
10263 CFLAGS="$xorg_testset_save_CFLAGS"
10264
10265 eval supported=\$$cacheid
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10267 $as_echo "$supported" >&6; }
10268 if test "$supported" = "yes" ; then
10269 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10270 found="yes"
10271 fi
10272 fi
10273
10274 if test $found = "no" ; then
10275 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10277 fi
10278
10279 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10281 fi
10282
10283 CFLAGS="$CFLAGS -errwarn"
10284
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
10286 $as_echo_n "checking if $CC supports-errwarn... " >&6; }
10287 cacheid=xorg_cv_cc_flag__errwarn
10288 if eval \${$cacheid+:} false; then :
10289 $as_echo_n "(cached) " >&6
10290 else
10291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10292 /* end confdefs.h. */
10293 int i;
10294 int
10295 main ()
10296 {
10297
10298 ;
10299 return 0;
10300 }
10301 _ACEOF
10302 if ac_fn_c_try_link "$LINENO"; then :
10303 eval $cacheid=yes
10304 else
10305 eval $cacheid=no
10306 fi
10307 rm -f core conftest.err conftest.$ac_objext \
10308 conftest$ac_exeext conftest.$ac_ext
10309 fi
10310
10311
10312 CFLAGS="$xorg_testset_save_CFLAGS"
10313
10314 eval supported=\$$cacheid
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10316 $as_echo "$supported" >&6; }
10317 if test "$supported" = "yes" ; then
10318 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10319 found="yes"
10320 fi
10321 fi
10322
10323
10324
10325 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10326 # activate it with -Werror, so we add it here explicitly.
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340 xorg_testset_save_CFLAGS="$CFLAGS"
10341
10342 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10345 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10346 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10347 $as_echo_n "(cached) " >&6
10348 else
10349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10350 /* end confdefs.h. */
10351 int i;
10352 _ACEOF
10353 if ac_fn_c_try_compile "$LINENO"; then :
10354 xorg_cv_cc_flag_unknown_warning_option=yes
10355 else
10356 xorg_cv_cc_flag_unknown_warning_option=no
10357 fi
10358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10359 fi
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10361 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10362 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10363 CFLAGS="$xorg_testset_save_CFLAGS"
10364 fi
10365
10366 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10369 fi
10370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10372 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10373 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10374 $as_echo_n "(cached) " >&6
10375 else
10376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10377 /* end confdefs.h. */
10378 int i;
10379 _ACEOF
10380 if ac_fn_c_try_compile "$LINENO"; then :
10381 xorg_cv_cc_flag_unused_command_line_argument=yes
10382 else
10383 xorg_cv_cc_flag_unused_command_line_argument=no
10384 fi
10385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10386 fi
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10388 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10389 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10390 CFLAGS="$xorg_testset_save_CFLAGS"
10391 fi
10392
10393 found="no"
10394
10395 if test $found = "no" ; then
10396 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10398 fi
10399
10400 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10402 fi
10403
10404 CFLAGS="$CFLAGS -Werror=attributes"
10405
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
10407 $as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
10408 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10409 if eval \${$cacheid+:} false; then :
10410 $as_echo_n "(cached) " >&6
10411 else
10412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10413 /* end confdefs.h. */
10414 int i;
10415 int
10416 main ()
10417 {
10418
10419 ;
10420 return 0;
10421 }
10422 _ACEOF
10423 if ac_fn_c_try_link "$LINENO"; then :
10424 eval $cacheid=yes
10425 else
10426 eval $cacheid=no
10427 fi
10428 rm -f core conftest.err conftest.$ac_objext \
10429 conftest$ac_exeext conftest.$ac_ext
10430 fi
10431
10432
10433 CFLAGS="$xorg_testset_save_CFLAGS"
10434
10435 eval supported=\$$cacheid
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10437 $as_echo "$supported" >&6; }
10438 if test "$supported" = "yes" ; then
10439 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10440 found="yes"
10441 fi
10442 fi
10443
10444
10445
10446 if test "x$STRICT_COMPILE" = "xyes"; then
10447 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10448 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10449 fi
10450
10451
10452
10453
10454
10455
10456 cat >>confdefs.h <<_ACEOF
10457 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10458 _ACEOF
10459
10460 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10461 if test "x$PVM" = "x"; then
10462 PVM="0"
10463 fi
10464
10465 cat >>confdefs.h <<_ACEOF
10466 #define PACKAGE_VERSION_MINOR $PVM
10467 _ACEOF
10468
10469 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10470 if test "x$PVP" = "x"; then
10471 PVP="0"
10472 fi
10473
10474 cat >>confdefs.h <<_ACEOF
10475 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10476 _ACEOF
10477
10478
10479
10480 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10481 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10482 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10483 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10484
10485
10486
10487
10488 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10489 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10490 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10491 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10492 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10493
10494
10495
10496
10497
10498
10499 if test x$APP_MAN_SUFFIX = x ; then
10500 APP_MAN_SUFFIX=1
10501 fi
10502 if test x$APP_MAN_DIR = x ; then
10503 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10504 fi
10505
10506 if test x$LIB_MAN_SUFFIX = x ; then
10507 LIB_MAN_SUFFIX=3
10508 fi
10509 if test x$LIB_MAN_DIR = x ; then
10510 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10511 fi
10512
10513 if test x$FILE_MAN_SUFFIX = x ; then
10514 case $host_os in
10515 solaris*) FILE_MAN_SUFFIX=4 ;;
10516 *) FILE_MAN_SUFFIX=5 ;;
10517 esac
10518 fi
10519 if test x$FILE_MAN_DIR = x ; then
10520 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10521 fi
10522
10523 if test x$MISC_MAN_SUFFIX = x ; then
10524 case $host_os in
10525 solaris*) MISC_MAN_SUFFIX=5 ;;
10526 *) MISC_MAN_SUFFIX=7 ;;
10527 esac
10528 fi
10529 if test x$MISC_MAN_DIR = x ; then
10530 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10531 fi
10532
10533 if test x$DRIVER_MAN_SUFFIX = x ; then
10534 case $host_os in
10535 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10536 *) DRIVER_MAN_SUFFIX=4 ;;
10537 esac
10538 fi
10539 if test x$DRIVER_MAN_DIR = x ; then
10540 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10541 fi
10542
10543 if test x$ADMIN_MAN_SUFFIX = x ; then
10544 case $host_os in
10545 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10546 *) ADMIN_MAN_SUFFIX=8 ;;
10547 esac
10548 fi
10549 if test x$ADMIN_MAN_DIR = x ; then
10550 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10551 fi
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567 XORG_MAN_PAGE="X Version 11"
10568
10569 MAN_SUBSTS="\
10570 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10571 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10572 -e 's|__xservername__|Xorg|g' \
10573 -e 's|__xconfigfile__|xorg.conf|g' \
10574 -e 's|__projectroot__|\$(prefix)|g' \
10575 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10576 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10577 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10578 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10579 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10580 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10581 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10582
10583
10584
10585 # Check whether --enable-silent-rules was given.
10586 if test "${enable_silent_rules+set}" = set; then :
10587 enableval=$enable_silent_rules;
10588 fi
10589
10590 case $enable_silent_rules in
10591 yes) AM_DEFAULT_VERBOSITY=0;;
10592 no) AM_DEFAULT_VERBOSITY=1;;
10593 *) AM_DEFAULT_VERBOSITY=0;;
10594 esac
10595 am_make=${MAKE-make}
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10597 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10598 if ${am_cv_make_support_nested_variables+:} false; then :
10599 $as_echo_n "(cached) " >&6
10600 else
10601 if $as_echo 'TRUE=$(BAR$(V))
10602 BAR0=false
10603 BAR1=true
10604 V=1
10605 am__doit:
10606 @$(TRUE)
10607 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10608 am_cv_make_support_nested_variables=yes
10609 else
10610 am_cv_make_support_nested_variables=no
10611 fi
10612 fi
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10614 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10615 if test $am_cv_make_support_nested_variables = yes; then
10616 AM_V='$(V)'
10617 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10618 else
10619 AM_V=$AM_DEFAULT_VERBOSITY
10620 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10621 fi
10622 AM_BACKSLASH='\'
10623
10624
10625
10626 DRIVER_NAME=vmmouse
10627
10628
10629 # Checks for programs.
10630 # Check whether --enable-static was given.
10631 if test "${enable_static+set}" = set; then :
10632 enableval=$enable_static; p=${PACKAGE-default}
10633 case $enableval in
10634 yes) enable_static=yes ;;
10635 no) enable_static=no ;;
10636 *)
10637 enable_static=no
10638 # Look at the argument we got. We use all the common list separators.
10639 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10640 for pkg in $enableval; do
10641 IFS="$lt_save_ifs"
10642 if test "X$pkg" = "X$p"; then
10643 enable_static=yes
10644 fi
10645 done
10646 IFS="$lt_save_ifs"
10647 ;;
10648 esac
10649 else
10650 enable_static=no
10651 fi
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661 case `pwd` in
10662 *\ * | *\ *)
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10664 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10665 esac
10666
10667
10668
10669 macro_version='2.4.2'
10670 macro_revision='1.3337'
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684 ltmain="$ac_aux_dir/ltmain.sh"
10685
10686 # Backslashify metacharacters that are still active within
10687 # double-quoted strings.
10688 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10689
10690 # Same as above, but do not quote variable references.
10691 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10692
10693 # Sed substitution to delay expansion of an escaped shell variable in a
10694 # double_quote_subst'ed string.
10695 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10696
10697 # Sed substitution to delay expansion of an escaped single quote.
10698 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10699
10700 # Sed substitution to avoid accidental globbing in evaled expressions
10701 no_glob_subst='s/\*/\\\*/g'
10702
10703 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10704 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10705 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10706
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10708 $as_echo_n "checking how to print strings... " >&6; }
10709 # Test print first, because it will be a builtin if present.
10710 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10711 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10712 ECHO='print -r --'
10713 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10714 ECHO='printf %s\n'
10715 else
10716 # Use this function as a fallback that always works.
10717 func_fallback_echo ()
10718 {
10719 eval 'cat <<_LTECHO_EOF
10720 $1
10721 _LTECHO_EOF'
10722 }
10723 ECHO='func_fallback_echo'
10724 fi
10725
10726 # func_echo_all arg...
10727 # Invoke $ECHO with all args, space-separated.
10728 func_echo_all ()
10729 {
10730 $ECHO ""
10731 }
10732
10733 case "$ECHO" in
10734 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10735 $as_echo "printf" >&6; } ;;
10736 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10737 $as_echo "print -r" >&6; } ;;
10738 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10739 $as_echo "cat" >&6; } ;;
10740 esac
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10756 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10757 if ${ac_cv_path_SED+:} false; then :
10758 $as_echo_n "(cached) " >&6
10759 else
10760 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10761 for ac_i in 1 2 3 4 5 6 7; do
10762 ac_script="$ac_script$as_nl$ac_script"
10763 done
10764 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10765 { ac_script=; unset ac_script;}
10766 if test -z "$SED"; then
10767 ac_path_SED_found=false
10768 # Loop through the user's path and test for each of PROGNAME-LIST
10769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10770 for as_dir in $PATH
10771 do
10772 IFS=$as_save_IFS
10773 test -z "$as_dir" && as_dir=.
10774 for ac_prog in sed gsed; do
10775 for ac_exec_ext in '' $ac_executable_extensions; do
10776 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10777 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
10778 # Check for GNU ac_path_SED and select it if it is found.
10779 # Check for GNU $ac_path_SED
10780 case `"$ac_path_SED" --version 2>&1` in
10781 *GNU*)
10782 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10783 *)
10784 ac_count=0
10785 $as_echo_n 0123456789 >"conftest.in"
10786 while :
10787 do
10788 cat "conftest.in" "conftest.in" >"conftest.tmp"
10789 mv "conftest.tmp" "conftest.in"
10790 cp "conftest.in" "conftest.nl"
10791 $as_echo '' >> "conftest.nl"
10792 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10793 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10794 as_fn_arith $ac_count + 1 && ac_count=$as_val
10795 if test $ac_count -gt ${ac_path_SED_max-0}; then
10796 # Best one so far, save it but keep looking for a better one
10797 ac_cv_path_SED="$ac_path_SED"
10798 ac_path_SED_max=$ac_count
10799 fi
10800 # 10*(2^10) chars as input seems more than enough
10801 test $ac_count -gt 10 && break
10802 done
10803 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10804 esac
10805
10806 $ac_path_SED_found && break 3
10807 done
10808 done
10809 done
10810 IFS=$as_save_IFS
10811 if test -z "$ac_cv_path_SED"; then
10812 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10813 fi
10814 else
10815 ac_cv_path_SED=$SED
10816 fi
10817
10818 fi
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10820 $as_echo "$ac_cv_path_SED" >&6; }
10821 SED="$ac_cv_path_SED"
10822 rm -f conftest.sed
10823
10824 test -z "$SED" && SED=sed
10825 Xsed="$SED -e 1s/^X//"
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10838 $as_echo_n "checking for fgrep... " >&6; }
10839 if ${ac_cv_path_FGREP+:} false; then :
10840 $as_echo_n "(cached) " >&6
10841 else
10842 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10843 then ac_cv_path_FGREP="$GREP -F"
10844 else
10845 if test -z "$FGREP"; then
10846 ac_path_FGREP_found=false
10847 # Loop through the user's path and test for each of PROGNAME-LIST
10848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10849 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10850 do
10851 IFS=$as_save_IFS
10852 test -z "$as_dir" && as_dir=.
10853 for ac_prog in fgrep; do
10854 for ac_exec_ext in '' $ac_executable_extensions; do
10855 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10856 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
10857 # Check for GNU ac_path_FGREP and select it if it is found.
10858 # Check for GNU $ac_path_FGREP
10859 case `"$ac_path_FGREP" --version 2>&1` in
10860 *GNU*)
10861 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10862 *)
10863 ac_count=0
10864 $as_echo_n 0123456789 >"conftest.in"
10865 while :
10866 do
10867 cat "conftest.in" "conftest.in" >"conftest.tmp"
10868 mv "conftest.tmp" "conftest.in"
10869 cp "conftest.in" "conftest.nl"
10870 $as_echo 'FGREP' >> "conftest.nl"
10871 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10872 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10873 as_fn_arith $ac_count + 1 && ac_count=$as_val
10874 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10875 # Best one so far, save it but keep looking for a better one
10876 ac_cv_path_FGREP="$ac_path_FGREP"
10877 ac_path_FGREP_max=$ac_count
10878 fi
10879 # 10*(2^10) chars as input seems more than enough
10880 test $ac_count -gt 10 && break
10881 done
10882 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10883 esac
10884
10885 $ac_path_FGREP_found && break 3
10886 done
10887 done
10888 done
10889 IFS=$as_save_IFS
10890 if test -z "$ac_cv_path_FGREP"; then
10891 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10892 fi
10893 else
10894 ac_cv_path_FGREP=$FGREP
10895 fi
10896
10897 fi
10898 fi
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10900 $as_echo "$ac_cv_path_FGREP" >&6; }
10901 FGREP="$ac_cv_path_FGREP"
10902
10903
10904 test -z "$GREP" && GREP=grep
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924 # Check whether --with-gnu-ld was given.
10925 if test "${with_gnu_ld+set}" = set; then :
10926 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10927 else
10928 with_gnu_ld=no
10929 fi
10930
10931 ac_prog=ld
10932 if test "$GCC" = yes; then
10933 # Check if gcc -print-prog-name=ld gives a path.
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10935 $as_echo_n "checking for ld used by $CC... " >&6; }
10936 case $host in
10937 *-*-mingw*)
10938 # gcc leaves a trailing carriage return which upsets mingw
10939 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10940 *)
10941 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10942 esac
10943 case $ac_prog in
10944 # Accept absolute paths.
10945 [\\/]* | ?:[\\/]*)
10946 re_direlt='/[^/][^/]*/\.\./'
10947 # Canonicalize the pathname of ld
10948 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10949 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10950 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10951 done
10952 test -z "$LD" && LD="$ac_prog"
10953 ;;
10954 "")
10955 # If it fails, then pretend we aren't using GCC.
10956 ac_prog=ld
10957 ;;
10958 *)
10959 # If it is relative, then search for the first ld in PATH.
10960 with_gnu_ld=unknown
10961 ;;
10962 esac
10963 elif test "$with_gnu_ld" = yes; then
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10965 $as_echo_n "checking for GNU ld... " >&6; }
10966 else
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10968 $as_echo_n "checking for non-GNU ld... " >&6; }
10969 fi
10970 if ${lt_cv_path_LD+:} false; then :
10971 $as_echo_n "(cached) " >&6
10972 else
10973 if test -z "$LD"; then
10974 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10975 for ac_dir in $PATH; do
10976 IFS="$lt_save_ifs"
10977 test -z "$ac_dir" && ac_dir=.
10978 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10979 lt_cv_path_LD="$ac_dir/$ac_prog"
10980 # Check to see if the program is GNU ld. I'd rather use --version,
10981 # but apparently some variants of GNU ld only accept -v.
10982 # Break only if it was the GNU/non-GNU ld that we prefer.
10983 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10984 *GNU* | *'with BFD'*)
10985 test "$with_gnu_ld" != no && break
10986 ;;
10987 *)
10988 test "$with_gnu_ld" != yes && break
10989 ;;
10990 esac
10991 fi
10992 done
10993 IFS="$lt_save_ifs"
10994 else
10995 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10996 fi
10997 fi
10998
10999 LD="$lt_cv_path_LD"
11000 if test -n "$LD"; then
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11002 $as_echo "$LD" >&6; }
11003 else
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11005 $as_echo "no" >&6; }
11006 fi
11007 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11009 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11010 if ${lt_cv_prog_gnu_ld+:} false; then :
11011 $as_echo_n "(cached) " >&6
11012 else
11013 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11014 case `$LD -v 2>&1 </dev/null` in
11015 *GNU* | *'with BFD'*)
11016 lt_cv_prog_gnu_ld=yes
11017 ;;
11018 *)
11019 lt_cv_prog_gnu_ld=no
11020 ;;
11021 esac
11022 fi
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11024 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11025 with_gnu_ld=$lt_cv_prog_gnu_ld
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11036 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11037 if ${lt_cv_path_NM+:} false; then :
11038 $as_echo_n "(cached) " >&6
11039 else
11040 if test -n "$NM"; then
11041 # Let the user override the test.
11042 lt_cv_path_NM="$NM"
11043 else
11044 lt_nm_to_check="${ac_tool_prefix}nm"
11045 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11046 lt_nm_to_check="$lt_nm_to_check nm"
11047 fi
11048 for lt_tmp_nm in $lt_nm_to_check; do
11049 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11050 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11051 IFS="$lt_save_ifs"
11052 test -z "$ac_dir" && ac_dir=.
11053 tmp_nm="$ac_dir/$lt_tmp_nm"
11054 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11055 # Check to see if the nm accepts a BSD-compat flag.
11056 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11057 # nm: unknown option "B" ignored
11058 # Tru64's nm complains that /dev/null is an invalid object file
11059 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11060 */dev/null* | *'Invalid file or object type'*)
11061 lt_cv_path_NM="$tmp_nm -B"
11062 break
11063 ;;
11064 *)
11065 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11066 */dev/null*)
11067 lt_cv_path_NM="$tmp_nm -p"
11068 break
11069 ;;
11070 *)
11071 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11072 continue # so that we can try to find one that supports BSD flags
11073 ;;
11074 esac
11075 ;;
11076 esac
11077 fi
11078 done
11079 IFS="$lt_save_ifs"
11080 done
11081 : ${lt_cv_path_NM=no}
11082 fi
11083 fi
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11085 $as_echo "$lt_cv_path_NM" >&6; }
11086 if test "$lt_cv_path_NM" != "no"; then
11087 NM="$lt_cv_path_NM"
11088 else
11089 # Didn't find any BSD compatible name lister, look for dumpbin.
11090 if test -n "$DUMPBIN"; then :
11091 # Let the user override the test.
11092 else
11093 if test -n "$ac_tool_prefix"; then
11094 for ac_prog in dumpbin "link -dump"
11095 do
11096 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11097 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11099 $as_echo_n "checking for $ac_word... " >&6; }
11100 if ${ac_cv_prog_DUMPBIN+:} false; then :
11101 $as_echo_n "(cached) " >&6
11102 else
11103 if test -n "$DUMPBIN"; then
11104 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11105 else
11106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11107 for as_dir in $PATH
11108 do
11109 IFS=$as_save_IFS
11110 test -z "$as_dir" && as_dir=.
11111 for ac_exec_ext in '' $ac_executable_extensions; do
11112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11113 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11115 break 2
11116 fi
11117 done
11118 done
11119 IFS=$as_save_IFS
11120
11121 fi
11122 fi
11123 DUMPBIN=$ac_cv_prog_DUMPBIN
11124 if test -n "$DUMPBIN"; then
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11126 $as_echo "$DUMPBIN" >&6; }
11127 else
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11129 $as_echo "no" >&6; }
11130 fi
11131
11132
11133 test -n "$DUMPBIN" && break
11134 done
11135 fi
11136 if test -z "$DUMPBIN"; then
11137 ac_ct_DUMPBIN=$DUMPBIN
11138 for ac_prog in dumpbin "link -dump"
11139 do
11140 # Extract the first word of "$ac_prog", so it can be a program name with args.
11141 set dummy $ac_prog; ac_word=$2
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11143 $as_echo_n "checking for $ac_word... " >&6; }
11144 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11145 $as_echo_n "(cached) " >&6
11146 else
11147 if test -n "$ac_ct_DUMPBIN"; then
11148 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11149 else
11150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11151 for as_dir in $PATH
11152 do
11153 IFS=$as_save_IFS
11154 test -z "$as_dir" && as_dir=.
11155 for ac_exec_ext in '' $ac_executable_extensions; do
11156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11157 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11159 break 2
11160 fi
11161 done
11162 done
11163 IFS=$as_save_IFS
11164
11165 fi
11166 fi
11167 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11168 if test -n "$ac_ct_DUMPBIN"; then
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11170 $as_echo "$ac_ct_DUMPBIN" >&6; }
11171 else
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11173 $as_echo "no" >&6; }
11174 fi
11175
11176
11177 test -n "$ac_ct_DUMPBIN" && break
11178 done
11179
11180 if test "x$ac_ct_DUMPBIN" = x; then
11181 DUMPBIN=":"
11182 else
11183 case $cross_compiling:$ac_tool_warned in
11184 yes:)
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11187 ac_tool_warned=yes ;;
11188 esac
11189 DUMPBIN=$ac_ct_DUMPBIN
11190 fi
11191 fi
11192
11193 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11194 *COFF*)
11195 DUMPBIN="$DUMPBIN -symbols"
11196 ;;
11197 *)
11198 DUMPBIN=:
11199 ;;
11200 esac
11201 fi
11202
11203 if test "$DUMPBIN" != ":"; then
11204 NM="$DUMPBIN"
11205 fi
11206 fi
11207 test -z "$NM" && NM=nm
11208
11209
11210
11211
11212
11213
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11215 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11216 if ${lt_cv_nm_interface+:} false; then :
11217 $as_echo_n "(cached) " >&6
11218 else
11219 lt_cv_nm_interface="BSD nm"
11220 echo "int some_variable = 0;" > conftest.$ac_ext
11221 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11222 (eval "$ac_compile" 2>conftest.err)
11223 cat conftest.err >&5
11224 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11225 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11226 cat conftest.err >&5
11227 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11228 cat conftest.out >&5
11229 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11230 lt_cv_nm_interface="MS dumpbin"
11231 fi
11232 rm -f conftest*
11233 fi
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11235 $as_echo "$lt_cv_nm_interface" >&6; }
11236
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11238 $as_echo_n "checking whether ln -s works... " >&6; }
11239 LN_S=$as_ln_s
11240 if test "$LN_S" = "ln -s"; then
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11242 $as_echo "yes" >&6; }
11243 else
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11245 $as_echo "no, using $LN_S" >&6; }
11246 fi
11247
11248 # find the maximum length of command line arguments
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11250 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11251 if ${lt_cv_sys_max_cmd_len+:} false; then :
11252 $as_echo_n "(cached) " >&6
11253 else
11254 i=0
11255 teststring="ABCD"
11256
11257 case $build_os in
11258 msdosdjgpp*)
11259 # On DJGPP, this test can blow up pretty badly due to problems in libc
11260 # (any single argument exceeding 2000 bytes causes a buffer overrun
11261 # during glob expansion). Even if it were fixed, the result of this
11262 # check would be larger than it should be.
11263 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11264 ;;
11265
11266 gnu*)
11267 # Under GNU Hurd, this test is not required because there is
11268 # no limit to the length of command line arguments.
11269 # Libtool will interpret -1 as no limit whatsoever
11270 lt_cv_sys_max_cmd_len=-1;
11271 ;;
11272
11273 cygwin* | mingw* | cegcc*)
11274 # On Win9x/ME, this test blows up -- it succeeds, but takes
11275 # about 5 minutes as the teststring grows exponentially.
11276 # Worse, since 9x/ME are not pre-emptively multitasking,
11277 # you end up with a "frozen" computer, even though with patience
11278 # the test eventually succeeds (with a max line length of 256k).
11279 # Instead, let's just punt: use the minimum linelength reported by
11280 # all of the supported platforms: 8192 (on NT/2K/XP).
11281 lt_cv_sys_max_cmd_len=8192;
11282 ;;
11283
11284 mint*)
11285 # On MiNT this can take a long time and run out of memory.
11286 lt_cv_sys_max_cmd_len=8192;
11287 ;;
11288
11289 amigaos*)
11290 # On AmigaOS with pdksh, this test takes hours, literally.
11291 # So we just punt and use a minimum line length of 8192.
11292 lt_cv_sys_max_cmd_len=8192;
11293 ;;
11294
11295 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11296 # This has been around since 386BSD, at least. Likely further.
11297 if test -x /sbin/sysctl; then
11298 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11299 elif test -x /usr/sbin/sysctl; then
11300 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11301 else
11302 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11303 fi
11304 # And add a safety zone
11305 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11306 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11307 ;;
11308
11309 interix*)
11310 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11311 lt_cv_sys_max_cmd_len=196608
11312 ;;
11313
11314 os2*)
11315 # The test takes a long time on OS/2.
11316 lt_cv_sys_max_cmd_len=8192
11317 ;;
11318
11319 osf*)
11320 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11321 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11322 # nice to cause kernel panics so lets avoid the loop below.
11323 # First set a reasonable default.
11324 lt_cv_sys_max_cmd_len=16384
11325 #
11326 if test -x /sbin/sysconfig; then
11327 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11328 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11329 esac
11330 fi
11331 ;;
11332 sco3.2v5*)
11333 lt_cv_sys_max_cmd_len=102400
11334 ;;
11335 sysv5* | sco5v6* | sysv4.2uw2*)
11336 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11337 if test -n "$kargmax"; then
11338 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11339 else
11340 lt_cv_sys_max_cmd_len=32768
11341 fi
11342 ;;
11343 *)
11344 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11345 if test -n "$lt_cv_sys_max_cmd_len"; then
11346 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11347 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11348 else
11349 # Make teststring a little bigger before we do anything with it.
11350 # a 1K string should be a reasonable start.
11351 for i in 1 2 3 4 5 6 7 8 ; do
11352 teststring=$teststring$teststring
11353 done
11354 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11355 # If test is not a shell built-in, we'll probably end up computing a
11356 # maximum length that is only half of the actual maximum length, but
11357 # we can't tell.
11358 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11359 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11360 test $i != 17 # 1/2 MB should be enough
11361 do
11362 i=`expr $i + 1`
11363 teststring=$teststring$teststring
11364 done
11365 # Only check the string length outside the loop.
11366 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11367 teststring=
11368 # Add a significant safety factor because C++ compilers can tack on
11369 # massive amounts of additional arguments before passing them to the
11370 # linker. It appears as though 1/2 is a usable value.
11371 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11372 fi
11373 ;;
11374 esac
11375
11376 fi
11377
11378 if test -n $lt_cv_sys_max_cmd_len ; then
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11380 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11381 else
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11383 $as_echo "none" >&6; }
11384 fi
11385 max_cmd_len=$lt_cv_sys_max_cmd_len
11386
11387
11388
11389
11390
11391
11392 : ${CP="cp -f"}
11393 : ${MV="mv -f"}
11394 : ${RM="rm -f"}
11395
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11397 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11398 # Try some XSI features
11399 xsi_shell=no
11400 ( _lt_dummy="a/b/c"
11401 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11402 = c,a/b,b/c, \
11403 && eval 'test $(( 1 + 1 )) -eq 2 \
11404 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11405 && xsi_shell=yes
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11407 $as_echo "$xsi_shell" >&6; }
11408
11409
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11411 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11412 lt_shell_append=no
11413 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11414 >/dev/null 2>&1 \
11415 && lt_shell_append=yes
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11417 $as_echo "$lt_shell_append" >&6; }
11418
11419
11420 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11421 lt_unset=unset
11422 else
11423 lt_unset=false
11424 fi
11425
11426
11427
11428
11429
11430 # test EBCDIC or ASCII
11431 case `echo X|tr X '\101'` in
11432 A) # ASCII based system
11433 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11434 lt_SP2NL='tr \040 \012'
11435 lt_NL2SP='tr \015\012 \040\040'
11436 ;;
11437 *) # EBCDIC based system
11438 lt_SP2NL='tr \100 \n'
11439 lt_NL2SP='tr \r\n \100\100'
11440 ;;
11441 esac
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11452 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11453 if ${lt_cv_to_host_file_cmd+:} false; then :
11454 $as_echo_n "(cached) " >&6
11455 else
11456 case $host in
11457 *-*-mingw* )
11458 case $build in
11459 *-*-mingw* ) # actually msys
11460 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11461 ;;
11462 *-*-cygwin* )
11463 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11464 ;;
11465 * ) # otherwise, assume *nix
11466 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11467 ;;
11468 esac
11469 ;;
11470 *-*-cygwin* )
11471 case $build in
11472 *-*-mingw* ) # actually msys
11473 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11474 ;;
11475 *-*-cygwin* )
11476 lt_cv_to_host_file_cmd=func_convert_file_noop
11477 ;;
11478 * ) # otherwise, assume *nix
11479 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11480 ;;
11481 esac
11482 ;;
11483 * ) # unhandled hosts (and "normal" native builds)
11484 lt_cv_to_host_file_cmd=func_convert_file_noop
11485 ;;
11486 esac
11487
11488 fi
11489
11490 to_host_file_cmd=$lt_cv_to_host_file_cmd
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11492 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11493
11494
11495
11496
11497
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11499 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11500 if ${lt_cv_to_tool_file_cmd+:} false; then :
11501 $as_echo_n "(cached) " >&6
11502 else
11503 #assume ordinary cross tools, or native build.
11504 lt_cv_to_tool_file_cmd=func_convert_file_noop
11505 case $host in
11506 *-*-mingw* )
11507 case $build in
11508 *-*-mingw* ) # actually msys
11509 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11510 ;;
11511 esac
11512 ;;
11513 esac
11514
11515 fi
11516
11517 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11519 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11520
11521
11522
11523
11524
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11526 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11527 if ${lt_cv_ld_reload_flag+:} false; then :
11528 $as_echo_n "(cached) " >&6
11529 else
11530 lt_cv_ld_reload_flag='-r'
11531 fi
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11533 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11534 reload_flag=$lt_cv_ld_reload_flag
11535 case $reload_flag in
11536 "" | " "*) ;;
11537 *) reload_flag=" $reload_flag" ;;
11538 esac
11539 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11540 case $host_os in
11541 cygwin* | mingw* | pw32* | cegcc*)
11542 if test "$GCC" != yes; then
11543 reload_cmds=false
11544 fi
11545 ;;
11546 darwin*)
11547 if test "$GCC" = yes; then
11548 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11549 else
11550 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11551 fi
11552 ;;
11553 esac
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563 if test -n "$ac_tool_prefix"; then
11564 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11565 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11567 $as_echo_n "checking for $ac_word... " >&6; }
11568 if ${ac_cv_prog_OBJDUMP+:} false; then :
11569 $as_echo_n "(cached) " >&6
11570 else
11571 if test -n "$OBJDUMP"; then
11572 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11573 else
11574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11575 for as_dir in $PATH
11576 do
11577 IFS=$as_save_IFS
11578 test -z "$as_dir" && as_dir=.
11579 for ac_exec_ext in '' $ac_executable_extensions; do
11580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11581 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11583 break 2
11584 fi
11585 done
11586 done
11587 IFS=$as_save_IFS
11588
11589 fi
11590 fi
11591 OBJDUMP=$ac_cv_prog_OBJDUMP
11592 if test -n "$OBJDUMP"; then
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11594 $as_echo "$OBJDUMP" >&6; }
11595 else
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11597 $as_echo "no" >&6; }
11598 fi
11599
11600
11601 fi
11602 if test -z "$ac_cv_prog_OBJDUMP"; then
11603 ac_ct_OBJDUMP=$OBJDUMP
11604 # Extract the first word of "objdump", so it can be a program name with args.
11605 set dummy objdump; ac_word=$2
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11607 $as_echo_n "checking for $ac_word... " >&6; }
11608 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11609 $as_echo_n "(cached) " >&6
11610 else
11611 if test -n "$ac_ct_OBJDUMP"; then
11612 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11613 else
11614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11615 for as_dir in $PATH
11616 do
11617 IFS=$as_save_IFS
11618 test -z "$as_dir" && as_dir=.
11619 for ac_exec_ext in '' $ac_executable_extensions; do
11620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11621 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11623 break 2
11624 fi
11625 done
11626 done
11627 IFS=$as_save_IFS
11628
11629 fi
11630 fi
11631 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11632 if test -n "$ac_ct_OBJDUMP"; then
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11634 $as_echo "$ac_ct_OBJDUMP" >&6; }
11635 else
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11637 $as_echo "no" >&6; }
11638 fi
11639
11640 if test "x$ac_ct_OBJDUMP" = x; then
11641 OBJDUMP="false"
11642 else
11643 case $cross_compiling:$ac_tool_warned in
11644 yes:)
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11647 ac_tool_warned=yes ;;
11648 esac
11649 OBJDUMP=$ac_ct_OBJDUMP
11650 fi
11651 else
11652 OBJDUMP="$ac_cv_prog_OBJDUMP"
11653 fi
11654
11655 test -z "$OBJDUMP" && OBJDUMP=objdump
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11666 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11667 if ${lt_cv_deplibs_check_method+:} false; then :
11668 $as_echo_n "(cached) " >&6
11669 else
11670 lt_cv_file_magic_cmd='$MAGIC_CMD'
11671 lt_cv_file_magic_test_file=
11672 lt_cv_deplibs_check_method='unknown'
11673 # Need to set the preceding variable on all platforms that support
11674 # interlibrary dependencies.
11675 # 'none' -- dependencies not supported.
11676 # `unknown' -- same as none, but documents that we really don't know.
11677 # 'pass_all' -- all dependencies passed with no checks.
11678 # 'test_compile' -- check by making test program.
11679 # 'file_magic [[regex]]' -- check by looking for files in library path
11680 # which responds to the $file_magic_cmd with a given extended regex.
11681 # If you have `file' or equivalent on your system and you're not sure
11682 # whether `pass_all' will *always* work, you probably want this one.
11683
11684 case $host_os in
11685 aix[4-9]*)
11686 lt_cv_deplibs_check_method=pass_all
11687 ;;
11688
11689 beos*)
11690 lt_cv_deplibs_check_method=pass_all
11691 ;;
11692
11693 bsdi[45]*)
11694 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11695 lt_cv_file_magic_cmd='/usr/bin/file -L'
11696 lt_cv_file_magic_test_file=/shlib/libc.so
11697 ;;
11698
11699 cygwin*)
11700 # func_win32_libid is a shell function defined in ltmain.sh
11701 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11702 lt_cv_file_magic_cmd='func_win32_libid'
11703 ;;
11704
11705 mingw* | pw32*)
11706 # Base MSYS/MinGW do not provide the 'file' command needed by
11707 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11708 # unless we find 'file', for example because we are cross-compiling.
11709 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11710 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11711 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11712 lt_cv_file_magic_cmd='func_win32_libid'
11713 else
11714 # Keep this pattern in sync with the one in func_win32_libid.
11715 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11716 lt_cv_file_magic_cmd='$OBJDUMP -f'
11717 fi
11718 ;;
11719
11720 cegcc*)
11721 # use the weaker test based on 'objdump'. See mingw*.
11722 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11723 lt_cv_file_magic_cmd='$OBJDUMP -f'
11724 ;;
11725
11726 darwin* | rhapsody*)
11727 lt_cv_deplibs_check_method=pass_all
11728 ;;
11729
11730 freebsd* | dragonfly*)
11731 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11732 case $host_cpu in
11733 i*86 )
11734 # Not sure whether the presence of OpenBSD here was a mistake.
11735 # Let's accept both of them until this is cleared up.
11736 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11737 lt_cv_file_magic_cmd=/usr/bin/file
11738 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11739 ;;
11740 esac
11741 else
11742 lt_cv_deplibs_check_method=pass_all
11743 fi
11744 ;;
11745
11746 gnu*)
11747 lt_cv_deplibs_check_method=pass_all
11748 ;;
11749
11750 haiku*)
11751 lt_cv_deplibs_check_method=pass_all
11752 ;;
11753
11754 hpux10.20* | hpux11*)
11755 lt_cv_file_magic_cmd=/usr/bin/file
11756 case $host_cpu in
11757 ia64*)
11758 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11759 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11760 ;;
11761 hppa*64*)
11762 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]'
11763 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11764 ;;
11765 *)
11766 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11767 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11768 ;;
11769 esac
11770 ;;
11771
11772 interix[3-9]*)
11773 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11774 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11775 ;;
11776
11777 irix5* | irix6* | nonstopux*)
11778 case $LD in
11779 *-32|*"-32 ") libmagic=32-bit;;
11780 *-n32|*"-n32 ") libmagic=N32;;
11781 *-64|*"-64 ") libmagic=64-bit;;
11782 *) libmagic=never-match;;
11783 esac
11784 lt_cv_deplibs_check_method=pass_all
11785 ;;
11786
11787 # This must be glibc/ELF.
11788 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11789 lt_cv_deplibs_check_method=pass_all
11790 ;;
11791
11792 netbsd*)
11793 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11794 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11795 else
11796 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11797 fi
11798 ;;
11799
11800 newos6*)
11801 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11802 lt_cv_file_magic_cmd=/usr/bin/file
11803 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11804 ;;
11805
11806 *nto* | *qnx*)
11807 lt_cv_deplibs_check_method=pass_all
11808 ;;
11809
11810 openbsd*)
11811 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11812 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11813 else
11814 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11815 fi
11816 ;;
11817
11818 osf3* | osf4* | osf5*)
11819 lt_cv_deplibs_check_method=pass_all
11820 ;;
11821
11822 rdos*)
11823 lt_cv_deplibs_check_method=pass_all
11824 ;;
11825
11826 solaris*)
11827 lt_cv_deplibs_check_method=pass_all
11828 ;;
11829
11830 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11831 lt_cv_deplibs_check_method=pass_all
11832 ;;
11833
11834 sysv4 | sysv4.3*)
11835 case $host_vendor in
11836 motorola)
11837 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]'
11838 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11839 ;;
11840 ncr)
11841 lt_cv_deplibs_check_method=pass_all
11842 ;;
11843 sequent)
11844 lt_cv_file_magic_cmd='/bin/file'
11845 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11846 ;;
11847 sni)
11848 lt_cv_file_magic_cmd='/bin/file'
11849 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11850 lt_cv_file_magic_test_file=/lib/libc.so
11851 ;;
11852 siemens)
11853 lt_cv_deplibs_check_method=pass_all
11854 ;;
11855 pc)
11856 lt_cv_deplibs_check_method=pass_all
11857 ;;
11858 esac
11859 ;;
11860
11861 tpf*)
11862 lt_cv_deplibs_check_method=pass_all
11863 ;;
11864 esac
11865
11866 fi
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11868 $as_echo "$lt_cv_deplibs_check_method" >&6; }
11869
11870 file_magic_glob=
11871 want_nocaseglob=no
11872 if test "$build" = "$host"; then
11873 case $host_os in
11874 mingw* | pw32*)
11875 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11876 want_nocaseglob=yes
11877 else
11878 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11879 fi
11880 ;;
11881 esac
11882 fi
11883
11884 file_magic_cmd=$lt_cv_file_magic_cmd
11885 deplibs_check_method=$lt_cv_deplibs_check_method
11886 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909 if test -n "$ac_tool_prefix"; then
11910 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11911 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11913 $as_echo_n "checking for $ac_word... " >&6; }
11914 if ${ac_cv_prog_DLLTOOL+:} false; then :
11915 $as_echo_n "(cached) " >&6
11916 else
11917 if test -n "$DLLTOOL"; then
11918 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11919 else
11920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11921 for as_dir in $PATH
11922 do
11923 IFS=$as_save_IFS
11924 test -z "$as_dir" && as_dir=.
11925 for ac_exec_ext in '' $ac_executable_extensions; do
11926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11927 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11929 break 2
11930 fi
11931 done
11932 done
11933 IFS=$as_save_IFS
11934
11935 fi
11936 fi
11937 DLLTOOL=$ac_cv_prog_DLLTOOL
11938 if test -n "$DLLTOOL"; then
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11940 $as_echo "$DLLTOOL" >&6; }
11941 else
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11943 $as_echo "no" >&6; }
11944 fi
11945
11946
11947 fi
11948 if test -z "$ac_cv_prog_DLLTOOL"; then
11949 ac_ct_DLLTOOL=$DLLTOOL
11950 # Extract the first word of "dlltool", so it can be a program name with args.
11951 set dummy dlltool; ac_word=$2
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11953 $as_echo_n "checking for $ac_word... " >&6; }
11954 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11955 $as_echo_n "(cached) " >&6
11956 else
11957 if test -n "$ac_ct_DLLTOOL"; then
11958 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11959 else
11960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11961 for as_dir in $PATH
11962 do
11963 IFS=$as_save_IFS
11964 test -z "$as_dir" && as_dir=.
11965 for ac_exec_ext in '' $ac_executable_extensions; do
11966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11967 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11969 break 2
11970 fi
11971 done
11972 done
11973 IFS=$as_save_IFS
11974
11975 fi
11976 fi
11977 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11978 if test -n "$ac_ct_DLLTOOL"; then
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11980 $as_echo "$ac_ct_DLLTOOL" >&6; }
11981 else
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983 $as_echo "no" >&6; }
11984 fi
11985
11986 if test "x$ac_ct_DLLTOOL" = x; then
11987 DLLTOOL="false"
11988 else
11989 case $cross_compiling:$ac_tool_warned in
11990 yes:)
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11993 ac_tool_warned=yes ;;
11994 esac
11995 DLLTOOL=$ac_ct_DLLTOOL
11996 fi
11997 else
11998 DLLTOOL="$ac_cv_prog_DLLTOOL"
11999 fi
12000
12001 test -z "$DLLTOOL" && DLLTOOL=dlltool
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12013 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12014 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12015 $as_echo_n "(cached) " >&6
12016 else
12017 lt_cv_sharedlib_from_linklib_cmd='unknown'
12018
12019 case $host_os in
12020 cygwin* | mingw* | pw32* | cegcc*)
12021 # two different shell functions defined in ltmain.sh
12022 # decide which to use based on capabilities of $DLLTOOL
12023 case `$DLLTOOL --help 2>&1` in
12024 *--identify-strict*)
12025 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12026 ;;
12027 *)
12028 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12029 ;;
12030 esac
12031 ;;
12032 *)
12033 # fallback: assume linklib IS sharedlib
12034 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12035 ;;
12036 esac
12037
12038 fi
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12040 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12041 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12042 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12043
12044
12045
12046
12047
12048
12049
12050 if test -n "$ac_tool_prefix"; then
12051 for ac_prog in ar
12052 do
12053 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12054 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12056 $as_echo_n "checking for $ac_word... " >&6; }
12057 if ${ac_cv_prog_AR+:} false; then :
12058 $as_echo_n "(cached) " >&6
12059 else
12060 if test -n "$AR"; then
12061 ac_cv_prog_AR="$AR" # Let the user override the test.
12062 else
12063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12064 for as_dir in $PATH
12065 do
12066 IFS=$as_save_IFS
12067 test -z "$as_dir" && as_dir=.
12068 for ac_exec_ext in '' $ac_executable_extensions; do
12069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12070 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12072 break 2
12073 fi
12074 done
12075 done
12076 IFS=$as_save_IFS
12077
12078 fi
12079 fi
12080 AR=$ac_cv_prog_AR
12081 if test -n "$AR"; then
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12083 $as_echo "$AR" >&6; }
12084 else
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12086 $as_echo "no" >&6; }
12087 fi
12088
12089
12090 test -n "$AR" && break
12091 done
12092 fi
12093 if test -z "$AR"; then
12094 ac_ct_AR=$AR
12095 for ac_prog in ar
12096 do
12097 # Extract the first word of "$ac_prog", so it can be a program name with args.
12098 set dummy $ac_prog; ac_word=$2
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12100 $as_echo_n "checking for $ac_word... " >&6; }
12101 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12102 $as_echo_n "(cached) " >&6
12103 else
12104 if test -n "$ac_ct_AR"; then
12105 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12106 else
12107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12108 for as_dir in $PATH
12109 do
12110 IFS=$as_save_IFS
12111 test -z "$as_dir" && as_dir=.
12112 for ac_exec_ext in '' $ac_executable_extensions; do
12113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12114 ac_cv_prog_ac_ct_AR="$ac_prog"
12115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12116 break 2
12117 fi
12118 done
12119 done
12120 IFS=$as_save_IFS
12121
12122 fi
12123 fi
12124 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12125 if test -n "$ac_ct_AR"; then
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12127 $as_echo "$ac_ct_AR" >&6; }
12128 else
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12130 $as_echo "no" >&6; }
12131 fi
12132
12133
12134 test -n "$ac_ct_AR" && break
12135 done
12136
12137 if test "x$ac_ct_AR" = x; then
12138 AR="false"
12139 else
12140 case $cross_compiling:$ac_tool_warned in
12141 yes:)
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12144 ac_tool_warned=yes ;;
12145 esac
12146 AR=$ac_ct_AR
12147 fi
12148 fi
12149
12150 : ${AR=ar}
12151 : ${AR_FLAGS=cru}
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12164 $as_echo_n "checking for archiver @FILE support... " >&6; }
12165 if ${lt_cv_ar_at_file+:} false; then :
12166 $as_echo_n "(cached) " >&6
12167 else
12168 lt_cv_ar_at_file=no
12169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12170 /* end confdefs.h. */
12171
12172 int
12173 main ()
12174 {
12175
12176 ;
12177 return 0;
12178 }
12179 _ACEOF
12180 if ac_fn_c_try_compile "$LINENO"; then :
12181 echo conftest.$ac_objext > conftest.lst
12182 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12183 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12184 (eval $lt_ar_try) 2>&5
12185 ac_status=$?
12186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12187 test $ac_status = 0; }
12188 if test "$ac_status" -eq 0; then
12189 # Ensure the archiver fails upon bogus file names.
12190 rm -f conftest.$ac_objext libconftest.a
12191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12192 (eval $lt_ar_try) 2>&5
12193 ac_status=$?
12194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12195 test $ac_status = 0; }
12196 if test "$ac_status" -ne 0; then
12197 lt_cv_ar_at_file=@
12198 fi
12199 fi
12200 rm -f conftest.* libconftest.a
12201
12202 fi
12203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12204
12205 fi
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12207 $as_echo "$lt_cv_ar_at_file" >&6; }
12208
12209 if test "x$lt_cv_ar_at_file" = xno; then
12210 archiver_list_spec=
12211 else
12212 archiver_list_spec=$lt_cv_ar_at_file
12213 fi
12214
12215
12216
12217
12218
12219
12220
12221 if test -n "$ac_tool_prefix"; then
12222 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12223 set dummy ${ac_tool_prefix}strip; ac_word=$2
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12225 $as_echo_n "checking for $ac_word... " >&6; }
12226 if ${ac_cv_prog_STRIP+:} false; then :
12227 $as_echo_n "(cached) " >&6
12228 else
12229 if test -n "$STRIP"; then
12230 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12231 else
12232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12233 for as_dir in $PATH
12234 do
12235 IFS=$as_save_IFS
12236 test -z "$as_dir" && as_dir=.
12237 for ac_exec_ext in '' $ac_executable_extensions; do
12238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12239 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12241 break 2
12242 fi
12243 done
12244 done
12245 IFS=$as_save_IFS
12246
12247 fi
12248 fi
12249 STRIP=$ac_cv_prog_STRIP
12250 if test -n "$STRIP"; then
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12252 $as_echo "$STRIP" >&6; }
12253 else
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12255 $as_echo "no" >&6; }
12256 fi
12257
12258
12259 fi
12260 if test -z "$ac_cv_prog_STRIP"; then
12261 ac_ct_STRIP=$STRIP
12262 # Extract the first word of "strip", so it can be a program name with args.
12263 set dummy strip; ac_word=$2
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12265 $as_echo_n "checking for $ac_word... " >&6; }
12266 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12267 $as_echo_n "(cached) " >&6
12268 else
12269 if test -n "$ac_ct_STRIP"; then
12270 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12271 else
12272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12273 for as_dir in $PATH
12274 do
12275 IFS=$as_save_IFS
12276 test -z "$as_dir" && as_dir=.
12277 for ac_exec_ext in '' $ac_executable_extensions; do
12278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12279 ac_cv_prog_ac_ct_STRIP="strip"
12280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12281 break 2
12282 fi
12283 done
12284 done
12285 IFS=$as_save_IFS
12286
12287 fi
12288 fi
12289 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12290 if test -n "$ac_ct_STRIP"; then
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12292 $as_echo "$ac_ct_STRIP" >&6; }
12293 else
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12295 $as_echo "no" >&6; }
12296 fi
12297
12298 if test "x$ac_ct_STRIP" = x; then
12299 STRIP=":"
12300 else
12301 case $cross_compiling:$ac_tool_warned in
12302 yes:)
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12305 ac_tool_warned=yes ;;
12306 esac
12307 STRIP=$ac_ct_STRIP
12308 fi
12309 else
12310 STRIP="$ac_cv_prog_STRIP"
12311 fi
12312
12313 test -z "$STRIP" && STRIP=:
12314
12315
12316
12317
12318
12319
12320 if test -n "$ac_tool_prefix"; then
12321 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12322 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12324 $as_echo_n "checking for $ac_word... " >&6; }
12325 if ${ac_cv_prog_RANLIB+:} false; then :
12326 $as_echo_n "(cached) " >&6
12327 else
12328 if test -n "$RANLIB"; then
12329 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12330 else
12331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12332 for as_dir in $PATH
12333 do
12334 IFS=$as_save_IFS
12335 test -z "$as_dir" && as_dir=.
12336 for ac_exec_ext in '' $ac_executable_extensions; do
12337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12338 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12340 break 2
12341 fi
12342 done
12343 done
12344 IFS=$as_save_IFS
12345
12346 fi
12347 fi
12348 RANLIB=$ac_cv_prog_RANLIB
12349 if test -n "$RANLIB"; then
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12351 $as_echo "$RANLIB" >&6; }
12352 else
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12354 $as_echo "no" >&6; }
12355 fi
12356
12357
12358 fi
12359 if test -z "$ac_cv_prog_RANLIB"; then
12360 ac_ct_RANLIB=$RANLIB
12361 # Extract the first word of "ranlib", so it can be a program name with args.
12362 set dummy ranlib; ac_word=$2
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12364 $as_echo_n "checking for $ac_word... " >&6; }
12365 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12366 $as_echo_n "(cached) " >&6
12367 else
12368 if test -n "$ac_ct_RANLIB"; then
12369 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12370 else
12371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12372 for as_dir in $PATH
12373 do
12374 IFS=$as_save_IFS
12375 test -z "$as_dir" && as_dir=.
12376 for ac_exec_ext in '' $ac_executable_extensions; do
12377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12378 ac_cv_prog_ac_ct_RANLIB="ranlib"
12379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12380 break 2
12381 fi
12382 done
12383 done
12384 IFS=$as_save_IFS
12385
12386 fi
12387 fi
12388 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12389 if test -n "$ac_ct_RANLIB"; then
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12391 $as_echo "$ac_ct_RANLIB" >&6; }
12392 else
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12394 $as_echo "no" >&6; }
12395 fi
12396
12397 if test "x$ac_ct_RANLIB" = x; then
12398 RANLIB=":"
12399 else
12400 case $cross_compiling:$ac_tool_warned in
12401 yes:)
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12404 ac_tool_warned=yes ;;
12405 esac
12406 RANLIB=$ac_ct_RANLIB
12407 fi
12408 else
12409 RANLIB="$ac_cv_prog_RANLIB"
12410 fi
12411
12412 test -z "$RANLIB" && RANLIB=:
12413
12414
12415
12416
12417
12418
12419 # Determine commands to create old-style static archives.
12420 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12421 old_postinstall_cmds='chmod 644 $oldlib'
12422 old_postuninstall_cmds=
12423
12424 if test -n "$RANLIB"; then
12425 case $host_os in
12426 openbsd*)
12427 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12428 ;;
12429 *)
12430 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12431 ;;
12432 esac
12433 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12434 fi
12435
12436 case $host_os in
12437 darwin*)
12438 lock_old_archive_extraction=yes ;;
12439 *)
12440 lock_old_archive_extraction=no ;;
12441 esac
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481 # If no C compiler was specified, use CC.
12482 LTCC=${LTCC-"$CC"}
12483
12484 # If no C compiler flags were specified, use CFLAGS.
12485 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12486
12487 # Allow CC to be a program name with arguments.
12488 compiler=$CC
12489
12490
12491 # Check for command to grab the raw symbol name followed by C symbol from nm.
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12493 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12494 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12495 $as_echo_n "(cached) " >&6
12496 else
12497
12498 # These are sane defaults that work on at least a few old systems.
12499 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12500
12501 # Character class describing NM global symbol codes.
12502 symcode='[BCDEGRST]'
12503
12504 # Regexp to match symbols that can be accessed directly from C.
12505 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12506
12507 # Define system-specific variables.
12508 case $host_os in
12509 aix*)
12510 symcode='[BCDT]'
12511 ;;
12512 cygwin* | mingw* | pw32* | cegcc*)
12513 symcode='[ABCDGISTW]'
12514 ;;
12515 hpux*)
12516 if test "$host_cpu" = ia64; then
12517 symcode='[ABCDEGRST]'
12518 fi
12519 ;;
12520 irix* | nonstopux*)
12521 symcode='[BCDEGRST]'
12522 ;;
12523 osf*)
12524 symcode='[BCDEGQRST]'
12525 ;;
12526 solaris*)
12527 symcode='[BDRT]'
12528 ;;
12529 sco3.2v5*)
12530 symcode='[DT]'
12531 ;;
12532 sysv4.2uw2*)
12533 symcode='[DT]'
12534 ;;
12535 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12536 symcode='[ABDT]'
12537 ;;
12538 sysv4)
12539 symcode='[DFNSTU]'
12540 ;;
12541 esac
12542
12543 # If we're using GNU nm, then use its standard symbol codes.
12544 case `$NM -V 2>&1` in
12545 *GNU* | *'with BFD'*)
12546 symcode='[ABCDGIRSTW]' ;;
12547 esac
12548
12549 # Transform an extracted symbol line into a proper C declaration.
12550 # Some systems (esp. on ia64) link data and code symbols differently,
12551 # so use this general approach.
12552 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12553
12554 # Transform an extracted symbol line into symbol name and symbol address
12555 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12556 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'"
12557
12558 # Handle CRLF in mingw tool chain
12559 opt_cr=
12560 case $build_os in
12561 mingw*)
12562 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12563 ;;
12564 esac
12565
12566 # Try without a prefix underscore, then with it.
12567 for ac_symprfx in "" "_"; do
12568
12569 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12570 symxfrm="\\1 $ac_symprfx\\2 \\2"
12571
12572 # Write the raw and C identifiers.
12573 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12574 # Fake it for dumpbin and say T for any non-static function
12575 # and D for any global variable.
12576 # Also find C++ and __fastcall symbols from MSVC++,
12577 # which start with @ or ?.
12578 lt_cv_sys_global_symbol_pipe="$AWK '"\
12579 " {last_section=section; section=\$ 3};"\
12580 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12581 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12582 " \$ 0!~/External *\|/{next};"\
12583 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12584 " {if(hide[section]) next};"\
12585 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12586 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12587 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12588 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12589 " ' prfx=^$ac_symprfx"
12590 else
12591 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12592 fi
12593 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12594
12595 # Check to see that the pipe works correctly.
12596 pipe_works=no
12597
12598 rm -f conftest*
12599 cat > conftest.$ac_ext <<_LT_EOF
12600 #ifdef __cplusplus
12601 extern "C" {
12602 #endif
12603 char nm_test_var;
12604 void nm_test_func(void);
12605 void nm_test_func(void){}
12606 #ifdef __cplusplus
12607 }
12608 #endif
12609 int main(){nm_test_var='a';nm_test_func();return(0);}
12610 _LT_EOF
12611
12612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12613 (eval $ac_compile) 2>&5
12614 ac_status=$?
12615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12616 test $ac_status = 0; }; then
12617 # Now try to grab the symbols.
12618 nlist=conftest.nm
12619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12620 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12621 ac_status=$?
12622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12623 test $ac_status = 0; } && test -s "$nlist"; then
12624 # Try sorting and uniquifying the output.
12625 if sort "$nlist" | uniq > "$nlist"T; then
12626 mv -f "$nlist"T "$nlist"
12627 else
12628 rm -f "$nlist"T
12629 fi
12630
12631 # Make sure that we snagged all the symbols we need.
12632 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12633 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12634 cat <<_LT_EOF > conftest.$ac_ext
12635 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12636 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12637 /* DATA imports from DLLs on WIN32 con't be const, because runtime
12638 relocations are performed -- see ld's documentation on pseudo-relocs. */
12639 # define LT_DLSYM_CONST
12640 #elif defined(__osf__)
12641 /* This system does not cope well with relocations in const data. */
12642 # define LT_DLSYM_CONST
12643 #else
12644 # define LT_DLSYM_CONST const
12645 #endif
12646
12647 #ifdef __cplusplus
12648 extern "C" {
12649 #endif
12650
12651 _LT_EOF
12652 # Now generate the symbol file.
12653 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12654
12655 cat <<_LT_EOF >> conftest.$ac_ext
12656
12657 /* The mapping between symbol names and symbols. */
12658 LT_DLSYM_CONST struct {
12659 const char *name;
12660 void *address;
12661 }
12662 lt__PROGRAM__LTX_preloaded_symbols[] =
12663 {
12664 { "@PROGRAM@", (void *) 0 },
12665 _LT_EOF
12666 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12667 cat <<\_LT_EOF >> conftest.$ac_ext
12668 {0, (void *) 0}
12669 };
12670
12671 /* This works around a problem in FreeBSD linker */
12672 #ifdef FREEBSD_WORKAROUND
12673 static const void *lt_preloaded_setup() {
12674 return lt__PROGRAM__LTX_preloaded_symbols;
12675 }
12676 #endif
12677
12678 #ifdef __cplusplus
12679 }
12680 #endif
12681 _LT_EOF
12682 # Now try linking the two files.
12683 mv conftest.$ac_objext conftstm.$ac_objext
12684 lt_globsym_save_LIBS=$LIBS
12685 lt_globsym_save_CFLAGS=$CFLAGS
12686 LIBS="conftstm.$ac_objext"
12687 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12688 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12689 (eval $ac_link) 2>&5
12690 ac_status=$?
12691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12692 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12693 pipe_works=yes
12694 fi
12695 LIBS=$lt_globsym_save_LIBS
12696 CFLAGS=$lt_globsym_save_CFLAGS
12697 else
12698 echo "cannot find nm_test_func in $nlist" >&5
12699 fi
12700 else
12701 echo "cannot find nm_test_var in $nlist" >&5
12702 fi
12703 else
12704 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12705 fi
12706 else
12707 echo "$progname: failed program was:" >&5
12708 cat conftest.$ac_ext >&5
12709 fi
12710 rm -rf conftest* conftst*
12711
12712 # Do not use the global_symbol_pipe unless it works.
12713 if test "$pipe_works" = yes; then
12714 break
12715 else
12716 lt_cv_sys_global_symbol_pipe=
12717 fi
12718 done
12719
12720 fi
12721
12722 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12723 lt_cv_sys_global_symbol_to_cdecl=
12724 fi
12725 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12727 $as_echo "failed" >&6; }
12728 else
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12730 $as_echo "ok" >&6; }
12731 fi
12732
12733 # Response file support.
12734 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12735 nm_file_list_spec='@'
12736 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12737 nm_file_list_spec='@'
12738 fi
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12767 $as_echo_n "checking for sysroot... " >&6; }
12768
12769 # Check whether --with-sysroot was given.
12770 if test "${with_sysroot+set}" = set; then :
12771 withval=$with_sysroot;
12772 else
12773 with_sysroot=no
12774 fi
12775
12776
12777 lt_sysroot=
12778 case ${with_sysroot} in #(
12779 yes)
12780 if test "$GCC" = yes; then
12781 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12782 fi
12783 ;; #(
12784 /*)
12785 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12786 ;; #(
12787 no|'')
12788 ;; #(
12789 *)
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12791 $as_echo "${with_sysroot}" >&6; }
12792 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12793 ;;
12794 esac
12795
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12797 $as_echo "${lt_sysroot:-no}" >&6; }
12798
12799
12800
12801
12802
12803 # Check whether --enable-libtool-lock was given.
12804 if test "${enable_libtool_lock+set}" = set; then :
12805 enableval=$enable_libtool_lock;
12806 fi
12807
12808 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12809
12810 # Some flags need to be propagated to the compiler or linker for good
12811 # libtool support.
12812 case $host in
12813 ia64-*-hpux*)
12814 # Find out which ABI we are using.
12815 echo 'int i;' > conftest.$ac_ext
12816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12817 (eval $ac_compile) 2>&5
12818 ac_status=$?
12819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12820 test $ac_status = 0; }; then
12821 case `/usr/bin/file conftest.$ac_objext` in
12822 *ELF-32*)
12823 HPUX_IA64_MODE="32"
12824 ;;
12825 *ELF-64*)
12826 HPUX_IA64_MODE="64"
12827 ;;
12828 esac
12829 fi
12830 rm -rf conftest*
12831 ;;
12832 *-*-irix6*)
12833 # Find out which ABI we are using.
12834 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12835 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12836 (eval $ac_compile) 2>&5
12837 ac_status=$?
12838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12839 test $ac_status = 0; }; then
12840 if test "$lt_cv_prog_gnu_ld" = yes; then
12841 case `/usr/bin/file conftest.$ac_objext` in
12842 *32-bit*)
12843 LD="${LD-ld} -melf32bsmip"
12844 ;;
12845 *N32*)
12846 LD="${LD-ld} -melf32bmipn32"
12847 ;;
12848 *64-bit*)
12849 LD="${LD-ld} -melf64bmip"
12850 ;;
12851 esac
12852 else
12853 case `/usr/bin/file conftest.$ac_objext` in
12854 *32-bit*)
12855 LD="${LD-ld} -32"
12856 ;;
12857 *N32*)
12858 LD="${LD-ld} -n32"
12859 ;;
12860 *64-bit*)
12861 LD="${LD-ld} -64"
12862 ;;
12863 esac
12864 fi
12865 fi
12866 rm -rf conftest*
12867 ;;
12868
12869 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12870 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12871 # Find out which ABI we are using.
12872 echo 'int i;' > conftest.$ac_ext
12873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12874 (eval $ac_compile) 2>&5
12875 ac_status=$?
12876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12877 test $ac_status = 0; }; then
12878 case `/usr/bin/file conftest.o` in
12879 *32-bit*)
12880 case $host in
12881 x86_64-*kfreebsd*-gnu)
12882 LD="${LD-ld} -m elf_i386_fbsd"
12883 ;;
12884 x86_64-*linux*)
12885 LD="${LD-ld} -m elf_i386"
12886 ;;
12887 ppc64-*linux*|powerpc64-*linux*)
12888 LD="${LD-ld} -m elf32ppclinux"
12889 ;;
12890 s390x-*linux*)
12891 LD="${LD-ld} -m elf_s390"
12892 ;;
12893 sparc64-*linux*)
12894 LD="${LD-ld} -m elf32_sparc"
12895 ;;
12896 esac
12897 ;;
12898 *64-bit*)
12899 case $host in
12900 x86_64-*kfreebsd*-gnu)
12901 LD="${LD-ld} -m elf_x86_64_fbsd"
12902 ;;
12903 x86_64-*linux*)
12904 LD="${LD-ld} -m elf_x86_64"
12905 ;;
12906 ppc*-*linux*|powerpc*-*linux*)
12907 LD="${LD-ld} -m elf64ppc"
12908 ;;
12909 s390*-*linux*|s390*-*tpf*)
12910 LD="${LD-ld} -m elf64_s390"
12911 ;;
12912 sparc*-*linux*)
12913 LD="${LD-ld} -m elf64_sparc"
12914 ;;
12915 esac
12916 ;;
12917 esac
12918 fi
12919 rm -rf conftest*
12920 ;;
12921
12922 *-*-sco3.2v5*)
12923 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12924 SAVE_CFLAGS="$CFLAGS"
12925 CFLAGS="$CFLAGS -belf"
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12927 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12928 if ${lt_cv_cc_needs_belf+:} false; then :
12929 $as_echo_n "(cached) " >&6
12930 else
12931 ac_ext=c
12932 ac_cpp='$CPP $CPPFLAGS'
12933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12936
12937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12938 /* end confdefs.h. */
12939
12940 int
12941 main ()
12942 {
12943
12944 ;
12945 return 0;
12946 }
12947 _ACEOF
12948 if ac_fn_c_try_link "$LINENO"; then :
12949 lt_cv_cc_needs_belf=yes
12950 else
12951 lt_cv_cc_needs_belf=no
12952 fi
12953 rm -f core conftest.err conftest.$ac_objext \
12954 conftest$ac_exeext conftest.$ac_ext
12955 ac_ext=c
12956 ac_cpp='$CPP $CPPFLAGS'
12957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12960
12961 fi
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12963 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12964 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12965 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12966 CFLAGS="$SAVE_CFLAGS"
12967 fi
12968 ;;
12969 *-*solaris*)
12970 # Find out which ABI we are using.
12971 echo 'int i;' > conftest.$ac_ext
12972 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12973 (eval $ac_compile) 2>&5
12974 ac_status=$?
12975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12976 test $ac_status = 0; }; then
12977 case `/usr/bin/file conftest.o` in
12978 *64-bit*)
12979 case $lt_cv_prog_gnu_ld in
12980 yes*)
12981 case $host in
12982 i?86-*-solaris*)
12983 LD="${LD-ld} -m elf_x86_64"
12984 ;;
12985 sparc*-*-solaris*)
12986 LD="${LD-ld} -m elf64_sparc"
12987 ;;
12988 esac
12989 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12990 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12991 LD="${LD-ld}_sol2"
12992 fi
12993 ;;
12994 *)
12995 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12996 LD="${LD-ld} -64"
12997 fi
12998 ;;
12999 esac
13000 ;;
13001 esac
13002 fi
13003 rm -rf conftest*
13004 ;;
13005 esac
13006
13007 need_locks="$enable_libtool_lock"
13008
13009 if test -n "$ac_tool_prefix"; then
13010 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13011 set dummy ${ac_tool_prefix}mt; ac_word=$2
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13013 $as_echo_n "checking for $ac_word... " >&6; }
13014 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13015 $as_echo_n "(cached) " >&6
13016 else
13017 if test -n "$MANIFEST_TOOL"; then
13018 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13019 else
13020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13021 for as_dir in $PATH
13022 do
13023 IFS=$as_save_IFS
13024 test -z "$as_dir" && as_dir=.
13025 for ac_exec_ext in '' $ac_executable_extensions; do
13026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13027 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13029 break 2
13030 fi
13031 done
13032 done
13033 IFS=$as_save_IFS
13034
13035 fi
13036 fi
13037 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13038 if test -n "$MANIFEST_TOOL"; then
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13040 $as_echo "$MANIFEST_TOOL" >&6; }
13041 else
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13043 $as_echo "no" >&6; }
13044 fi
13045
13046
13047 fi
13048 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13049 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13050 # Extract the first word of "mt", so it can be a program name with args.
13051 set dummy mt; ac_word=$2
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13053 $as_echo_n "checking for $ac_word... " >&6; }
13054 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13055 $as_echo_n "(cached) " >&6
13056 else
13057 if test -n "$ac_ct_MANIFEST_TOOL"; then
13058 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13059 else
13060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13061 for as_dir in $PATH
13062 do
13063 IFS=$as_save_IFS
13064 test -z "$as_dir" && as_dir=.
13065 for ac_exec_ext in '' $ac_executable_extensions; do
13066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13067 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13069 break 2
13070 fi
13071 done
13072 done
13073 IFS=$as_save_IFS
13074
13075 fi
13076 fi
13077 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13078 if test -n "$ac_ct_MANIFEST_TOOL"; then
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13080 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13081 else
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13083 $as_echo "no" >&6; }
13084 fi
13085
13086 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13087 MANIFEST_TOOL=":"
13088 else
13089 case $cross_compiling:$ac_tool_warned in
13090 yes:)
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13093 ac_tool_warned=yes ;;
13094 esac
13095 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13096 fi
13097 else
13098 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13099 fi
13100
13101 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13103 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13104 if ${lt_cv_path_mainfest_tool+:} false; then :
13105 $as_echo_n "(cached) " >&6
13106 else
13107 lt_cv_path_mainfest_tool=no
13108 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13109 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13110 cat conftest.err >&5
13111 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13112 lt_cv_path_mainfest_tool=yes
13113 fi
13114 rm -f conftest*
13115 fi
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13117 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13118 if test "x$lt_cv_path_mainfest_tool" != xyes; then
13119 MANIFEST_TOOL=:
13120 fi
13121
13122
13123
13124
13125
13126
13127 case $host_os in
13128 rhapsody* | darwin*)
13129 if test -n "$ac_tool_prefix"; then
13130 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13131 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13133 $as_echo_n "checking for $ac_word... " >&6; }
13134 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13135 $as_echo_n "(cached) " >&6
13136 else
13137 if test -n "$DSYMUTIL"; then
13138 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13139 else
13140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13141 for as_dir in $PATH
13142 do
13143 IFS=$as_save_IFS
13144 test -z "$as_dir" && as_dir=.
13145 for ac_exec_ext in '' $ac_executable_extensions; do
13146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13147 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13149 break 2
13150 fi
13151 done
13152 done
13153 IFS=$as_save_IFS
13154
13155 fi
13156 fi
13157 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13158 if test -n "$DSYMUTIL"; then
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13160 $as_echo "$DSYMUTIL" >&6; }
13161 else
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13163 $as_echo "no" >&6; }
13164 fi
13165
13166
13167 fi
13168 if test -z "$ac_cv_prog_DSYMUTIL"; then
13169 ac_ct_DSYMUTIL=$DSYMUTIL
13170 # Extract the first word of "dsymutil", so it can be a program name with args.
13171 set dummy dsymutil; ac_word=$2
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13173 $as_echo_n "checking for $ac_word... " >&6; }
13174 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13175 $as_echo_n "(cached) " >&6
13176 else
13177 if test -n "$ac_ct_DSYMUTIL"; then
13178 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13179 else
13180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13181 for as_dir in $PATH
13182 do
13183 IFS=$as_save_IFS
13184 test -z "$as_dir" && as_dir=.
13185 for ac_exec_ext in '' $ac_executable_extensions; do
13186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13187 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13189 break 2
13190 fi
13191 done
13192 done
13193 IFS=$as_save_IFS
13194
13195 fi
13196 fi
13197 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13198 if test -n "$ac_ct_DSYMUTIL"; then
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13200 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13201 else
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13203 $as_echo "no" >&6; }
13204 fi
13205
13206 if test "x$ac_ct_DSYMUTIL" = x; then
13207 DSYMUTIL=":"
13208 else
13209 case $cross_compiling:$ac_tool_warned in
13210 yes:)
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13213 ac_tool_warned=yes ;;
13214 esac
13215 DSYMUTIL=$ac_ct_DSYMUTIL
13216 fi
13217 else
13218 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13219 fi
13220
13221 if test -n "$ac_tool_prefix"; then
13222 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13223 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13225 $as_echo_n "checking for $ac_word... " >&6; }
13226 if ${ac_cv_prog_NMEDIT+:} false; then :
13227 $as_echo_n "(cached) " >&6
13228 else
13229 if test -n "$NMEDIT"; then
13230 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13231 else
13232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13233 for as_dir in $PATH
13234 do
13235 IFS=$as_save_IFS
13236 test -z "$as_dir" && as_dir=.
13237 for ac_exec_ext in '' $ac_executable_extensions; do
13238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13239 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13241 break 2
13242 fi
13243 done
13244 done
13245 IFS=$as_save_IFS
13246
13247 fi
13248 fi
13249 NMEDIT=$ac_cv_prog_NMEDIT
13250 if test -n "$NMEDIT"; then
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13252 $as_echo "$NMEDIT" >&6; }
13253 else
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13255 $as_echo "no" >&6; }
13256 fi
13257
13258
13259 fi
13260 if test -z "$ac_cv_prog_NMEDIT"; then
13261 ac_ct_NMEDIT=$NMEDIT
13262 # Extract the first word of "nmedit", so it can be a program name with args.
13263 set dummy nmedit; ac_word=$2
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13265 $as_echo_n "checking for $ac_word... " >&6; }
13266 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13267 $as_echo_n "(cached) " >&6
13268 else
13269 if test -n "$ac_ct_NMEDIT"; then
13270 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13271 else
13272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13273 for as_dir in $PATH
13274 do
13275 IFS=$as_save_IFS
13276 test -z "$as_dir" && as_dir=.
13277 for ac_exec_ext in '' $ac_executable_extensions; do
13278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13279 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13281 break 2
13282 fi
13283 done
13284 done
13285 IFS=$as_save_IFS
13286
13287 fi
13288 fi
13289 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13290 if test -n "$ac_ct_NMEDIT"; then
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13292 $as_echo "$ac_ct_NMEDIT" >&6; }
13293 else
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13295 $as_echo "no" >&6; }
13296 fi
13297
13298 if test "x$ac_ct_NMEDIT" = x; then
13299 NMEDIT=":"
13300 else
13301 case $cross_compiling:$ac_tool_warned in
13302 yes:)
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13305 ac_tool_warned=yes ;;
13306 esac
13307 NMEDIT=$ac_ct_NMEDIT
13308 fi
13309 else
13310 NMEDIT="$ac_cv_prog_NMEDIT"
13311 fi
13312
13313 if test -n "$ac_tool_prefix"; then
13314 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13315 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13317 $as_echo_n "checking for $ac_word... " >&6; }
13318 if ${ac_cv_prog_LIPO+:} false; then :
13319 $as_echo_n "(cached) " >&6
13320 else
13321 if test -n "$LIPO"; then
13322 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13323 else
13324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13325 for as_dir in $PATH
13326 do
13327 IFS=$as_save_IFS
13328 test -z "$as_dir" && as_dir=.
13329 for ac_exec_ext in '' $ac_executable_extensions; do
13330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13331 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13333 break 2
13334 fi
13335 done
13336 done
13337 IFS=$as_save_IFS
13338
13339 fi
13340 fi
13341 LIPO=$ac_cv_prog_LIPO
13342 if test -n "$LIPO"; then
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13344 $as_echo "$LIPO" >&6; }
13345 else
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13347 $as_echo "no" >&6; }
13348 fi
13349
13350
13351 fi
13352 if test -z "$ac_cv_prog_LIPO"; then
13353 ac_ct_LIPO=$LIPO
13354 # Extract the first word of "lipo", so it can be a program name with args.
13355 set dummy lipo; ac_word=$2
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13357 $as_echo_n "checking for $ac_word... " >&6; }
13358 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13359 $as_echo_n "(cached) " >&6
13360 else
13361 if test -n "$ac_ct_LIPO"; then
13362 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13363 else
13364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13365 for as_dir in $PATH
13366 do
13367 IFS=$as_save_IFS
13368 test -z "$as_dir" && as_dir=.
13369 for ac_exec_ext in '' $ac_executable_extensions; do
13370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13371 ac_cv_prog_ac_ct_LIPO="lipo"
13372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13373 break 2
13374 fi
13375 done
13376 done
13377 IFS=$as_save_IFS
13378
13379 fi
13380 fi
13381 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13382 if test -n "$ac_ct_LIPO"; then
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13384 $as_echo "$ac_ct_LIPO" >&6; }
13385 else
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13387 $as_echo "no" >&6; }
13388 fi
13389
13390 if test "x$ac_ct_LIPO" = x; then
13391 LIPO=":"
13392 else
13393 case $cross_compiling:$ac_tool_warned in
13394 yes:)
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13397 ac_tool_warned=yes ;;
13398 esac
13399 LIPO=$ac_ct_LIPO
13400 fi
13401 else
13402 LIPO="$ac_cv_prog_LIPO"
13403 fi
13404
13405 if test -n "$ac_tool_prefix"; then
13406 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13407 set dummy ${ac_tool_prefix}otool; ac_word=$2
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13409 $as_echo_n "checking for $ac_word... " >&6; }
13410 if ${ac_cv_prog_OTOOL+:} false; then :
13411 $as_echo_n "(cached) " >&6
13412 else
13413 if test -n "$OTOOL"; then
13414 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13415 else
13416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13417 for as_dir in $PATH
13418 do
13419 IFS=$as_save_IFS
13420 test -z "$as_dir" && as_dir=.
13421 for ac_exec_ext in '' $ac_executable_extensions; do
13422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13423 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13425 break 2
13426 fi
13427 done
13428 done
13429 IFS=$as_save_IFS
13430
13431 fi
13432 fi
13433 OTOOL=$ac_cv_prog_OTOOL
13434 if test -n "$OTOOL"; then
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13436 $as_echo "$OTOOL" >&6; }
13437 else
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13439 $as_echo "no" >&6; }
13440 fi
13441
13442
13443 fi
13444 if test -z "$ac_cv_prog_OTOOL"; then
13445 ac_ct_OTOOL=$OTOOL
13446 # Extract the first word of "otool", so it can be a program name with args.
13447 set dummy otool; ac_word=$2
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13449 $as_echo_n "checking for $ac_word... " >&6; }
13450 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13451 $as_echo_n "(cached) " >&6
13452 else
13453 if test -n "$ac_ct_OTOOL"; then
13454 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13455 else
13456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13457 for as_dir in $PATH
13458 do
13459 IFS=$as_save_IFS
13460 test -z "$as_dir" && as_dir=.
13461 for ac_exec_ext in '' $ac_executable_extensions; do
13462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13463 ac_cv_prog_ac_ct_OTOOL="otool"
13464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13465 break 2
13466 fi
13467 done
13468 done
13469 IFS=$as_save_IFS
13470
13471 fi
13472 fi
13473 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13474 if test -n "$ac_ct_OTOOL"; then
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13476 $as_echo "$ac_ct_OTOOL" >&6; }
13477 else
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13479 $as_echo "no" >&6; }
13480 fi
13481
13482 if test "x$ac_ct_OTOOL" = x; then
13483 OTOOL=":"
13484 else
13485 case $cross_compiling:$ac_tool_warned in
13486 yes:)
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13489 ac_tool_warned=yes ;;
13490 esac
13491 OTOOL=$ac_ct_OTOOL
13492 fi
13493 else
13494 OTOOL="$ac_cv_prog_OTOOL"
13495 fi
13496
13497 if test -n "$ac_tool_prefix"; then
13498 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13499 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13501 $as_echo_n "checking for $ac_word... " >&6; }
13502 if ${ac_cv_prog_OTOOL64+:} false; then :
13503 $as_echo_n "(cached) " >&6
13504 else
13505 if test -n "$OTOOL64"; then
13506 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13507 else
13508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13509 for as_dir in $PATH
13510 do
13511 IFS=$as_save_IFS
13512 test -z "$as_dir" && as_dir=.
13513 for ac_exec_ext in '' $ac_executable_extensions; do
13514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13515 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13517 break 2
13518 fi
13519 done
13520 done
13521 IFS=$as_save_IFS
13522
13523 fi
13524 fi
13525 OTOOL64=$ac_cv_prog_OTOOL64
13526 if test -n "$OTOOL64"; then
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13528 $as_echo "$OTOOL64" >&6; }
13529 else
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13531 $as_echo "no" >&6; }
13532 fi
13533
13534
13535 fi
13536 if test -z "$ac_cv_prog_OTOOL64"; then
13537 ac_ct_OTOOL64=$OTOOL64
13538 # Extract the first word of "otool64", so it can be a program name with args.
13539 set dummy otool64; ac_word=$2
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13541 $as_echo_n "checking for $ac_word... " >&6; }
13542 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13543 $as_echo_n "(cached) " >&6
13544 else
13545 if test -n "$ac_ct_OTOOL64"; then
13546 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13547 else
13548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13549 for as_dir in $PATH
13550 do
13551 IFS=$as_save_IFS
13552 test -z "$as_dir" && as_dir=.
13553 for ac_exec_ext in '' $ac_executable_extensions; do
13554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13555 ac_cv_prog_ac_ct_OTOOL64="otool64"
13556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13557 break 2
13558 fi
13559 done
13560 done
13561 IFS=$as_save_IFS
13562
13563 fi
13564 fi
13565 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13566 if test -n "$ac_ct_OTOOL64"; then
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13568 $as_echo "$ac_ct_OTOOL64" >&6; }
13569 else
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13571 $as_echo "no" >&6; }
13572 fi
13573
13574 if test "x$ac_ct_OTOOL64" = x; then
13575 OTOOL64=":"
13576 else
13577 case $cross_compiling:$ac_tool_warned in
13578 yes:)
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13581 ac_tool_warned=yes ;;
13582 esac
13583 OTOOL64=$ac_ct_OTOOL64
13584 fi
13585 else
13586 OTOOL64="$ac_cv_prog_OTOOL64"
13587 fi
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13616 $as_echo_n "checking for -single_module linker flag... " >&6; }
13617 if ${lt_cv_apple_cc_single_mod+:} false; then :
13618 $as_echo_n "(cached) " >&6
13619 else
13620 lt_cv_apple_cc_single_mod=no
13621 if test -z "${LT_MULTI_MODULE}"; then
13622 # By default we will add the -single_module flag. You can override
13623 # by either setting the environment variable LT_MULTI_MODULE
13624 # non-empty at configure time, or by adding -multi_module to the
13625 # link flags.
13626 rm -rf libconftest.dylib*
13627 echo "int foo(void){return 1;}" > conftest.c
13628 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13629 -dynamiclib -Wl,-single_module conftest.c" >&5
13630 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13631 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13632 _lt_result=$?
13633 # If there is a non-empty error log, and "single_module"
13634 # appears in it, assume the flag caused a linker warning
13635 if test -s conftest.err && $GREP single_module conftest.err; then
13636 cat conftest.err >&5
13637 # Otherwise, if the output was created with a 0 exit code from
13638 # the compiler, it worked.
13639 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13640 lt_cv_apple_cc_single_mod=yes
13641 else
13642 cat conftest.err >&5
13643 fi
13644 rm -rf libconftest.dylib*
13645 rm -f conftest.*
13646 fi
13647 fi
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13649 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13650
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13652 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13653 if ${lt_cv_ld_exported_symbols_list+:} false; then :
13654 $as_echo_n "(cached) " >&6
13655 else
13656 lt_cv_ld_exported_symbols_list=no
13657 save_LDFLAGS=$LDFLAGS
13658 echo "_main" > conftest.sym
13659 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13661 /* end confdefs.h. */
13662
13663 int
13664 main ()
13665 {
13666
13667 ;
13668 return 0;
13669 }
13670 _ACEOF
13671 if ac_fn_c_try_link "$LINENO"; then :
13672 lt_cv_ld_exported_symbols_list=yes
13673 else
13674 lt_cv_ld_exported_symbols_list=no
13675 fi
13676 rm -f core conftest.err conftest.$ac_objext \
13677 conftest$ac_exeext conftest.$ac_ext
13678 LDFLAGS="$save_LDFLAGS"
13679
13680 fi
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13682 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13683
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13685 $as_echo_n "checking for -force_load linker flag... " >&6; }
13686 if ${lt_cv_ld_force_load+:} false; then :
13687 $as_echo_n "(cached) " >&6
13688 else
13689 lt_cv_ld_force_load=no
13690 cat > conftest.c << _LT_EOF
13691 int forced_loaded() { return 2;}
13692 _LT_EOF
13693 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13694 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13695 echo "$AR cru libconftest.a conftest.o" >&5
13696 $AR cru libconftest.a conftest.o 2>&5
13697 echo "$RANLIB libconftest.a" >&5
13698 $RANLIB libconftest.a 2>&5
13699 cat > conftest.c << _LT_EOF
13700 int main() { return 0;}
13701 _LT_EOF
13702 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13703 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13704 _lt_result=$?
13705 if test -s conftest.err && $GREP force_load conftest.err; then
13706 cat conftest.err >&5
13707 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13708 lt_cv_ld_force_load=yes
13709 else
13710 cat conftest.err >&5
13711 fi
13712 rm -f conftest.err libconftest.a conftest conftest.c
13713 rm -rf conftest.dSYM
13714
13715 fi
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13717 $as_echo "$lt_cv_ld_force_load" >&6; }
13718 case $host_os in
13719 rhapsody* | darwin1.[012])
13720 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13721 darwin1.*)
13722 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13723 darwin*) # darwin 5.x on
13724 # if running on 10.5 or later, the deployment target defaults
13725 # to the OS version, if on x86, and 10.4, the deployment
13726 # target defaults to 10.4. Don't you love it?
13727 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13728 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13729 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13730 10.[012]*)
13731 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13732 10.*)
13733 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13734 esac
13735 ;;
13736 esac
13737 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13738 _lt_dar_single_mod='$single_module'
13739 fi
13740 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13741 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13742 else
13743 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13744 fi
13745 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13746 _lt_dsymutil='~$DSYMUTIL $lib || :'
13747 else
13748 _lt_dsymutil=
13749 fi
13750 ;;
13751 esac
13752
13753 for ac_header in dlfcn.h
13754 do :
13755 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13756 "
13757 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13758 cat >>confdefs.h <<_ACEOF
13759 #define HAVE_DLFCN_H 1
13760 _ACEOF
13761
13762 fi
13763
13764 done
13765
13766
13767
13768
13769
13770 # Set options
13771
13772
13773
13774 enable_dlopen=no
13775
13776
13777 enable_win32_dll=no
13778
13779
13780 # Check whether --enable-shared was given.
13781 if test "${enable_shared+set}" = set; then :
13782 enableval=$enable_shared; p=${PACKAGE-default}
13783 case $enableval in
13784 yes) enable_shared=yes ;;
13785 no) enable_shared=no ;;
13786 *)
13787 enable_shared=no
13788 # Look at the argument we got. We use all the common list separators.
13789 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13790 for pkg in $enableval; do
13791 IFS="$lt_save_ifs"
13792 if test "X$pkg" = "X$p"; then
13793 enable_shared=yes
13794 fi
13795 done
13796 IFS="$lt_save_ifs"
13797 ;;
13798 esac
13799 else
13800 enable_shared=yes
13801 fi
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813 # Check whether --with-pic was given.
13814 if test "${with_pic+set}" = set; then :
13815 withval=$with_pic; lt_p=${PACKAGE-default}
13816 case $withval in
13817 yes|no) pic_mode=$withval ;;
13818 *)
13819 pic_mode=default
13820 # Look at the argument we got. We use all the common list separators.
13821 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13822 for lt_pkg in $withval; do
13823 IFS="$lt_save_ifs"
13824 if test "X$lt_pkg" = "X$lt_p"; then
13825 pic_mode=yes
13826 fi
13827 done
13828 IFS="$lt_save_ifs"
13829 ;;
13830 esac
13831 else
13832 pic_mode=default
13833 fi
13834
13835
13836 test -z "$pic_mode" && pic_mode=default
13837
13838
13839
13840
13841
13842
13843
13844 # Check whether --enable-fast-install was given.
13845 if test "${enable_fast_install+set}" = set; then :
13846 enableval=$enable_fast_install; p=${PACKAGE-default}
13847 case $enableval in
13848 yes) enable_fast_install=yes ;;
13849 no) enable_fast_install=no ;;
13850 *)
13851 enable_fast_install=no
13852 # Look at the argument we got. We use all the common list separators.
13853 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13854 for pkg in $enableval; do
13855 IFS="$lt_save_ifs"
13856 if test "X$pkg" = "X$p"; then
13857 enable_fast_install=yes
13858 fi
13859 done
13860 IFS="$lt_save_ifs"
13861 ;;
13862 esac
13863 else
13864 enable_fast_install=yes
13865 fi
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877 # This can be used to rebuild libtool when needed
13878 LIBTOOL_DEPS="$ltmain"
13879
13880 # Always use our own libtool.
13881 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912 test -z "$LN_S" && LN_S="ln -s"
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927 if test -n "${ZSH_VERSION+set}" ; then
13928 setopt NO_GLOB_SUBST
13929 fi
13930
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13932 $as_echo_n "checking for objdir... " >&6; }
13933 if ${lt_cv_objdir+:} false; then :
13934 $as_echo_n "(cached) " >&6
13935 else
13936 rm -f .libs 2>/dev/null
13937 mkdir .libs 2>/dev/null
13938 if test -d .libs; then
13939 lt_cv_objdir=.libs
13940 else
13941 # MS-DOS does not allow filenames that begin with a dot.
13942 lt_cv_objdir=_libs
13943 fi
13944 rmdir .libs 2>/dev/null
13945 fi
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13947 $as_echo "$lt_cv_objdir" >&6; }
13948 objdir=$lt_cv_objdir
13949
13950
13951
13952
13953
13954 cat >>confdefs.h <<_ACEOF
13955 #define LT_OBJDIR "$lt_cv_objdir/"
13956 _ACEOF
13957
13958
13959
13960
13961 case $host_os in
13962 aix3*)
13963 # AIX sometimes has problems with the GCC collect2 program. For some
13964 # reason, if we set the COLLECT_NAMES environment variable, the problems
13965 # vanish in a puff of smoke.
13966 if test "X${COLLECT_NAMES+set}" != Xset; then
13967 COLLECT_NAMES=
13968 export COLLECT_NAMES
13969 fi
13970 ;;
13971 esac
13972
13973 # Global variables:
13974 ofile=libtool
13975 can_build_shared=yes
13976
13977 # All known linkers require a `.a' archive for static linking (except MSVC,
13978 # which needs '.lib').
13979 libext=a
13980
13981 with_gnu_ld="$lt_cv_prog_gnu_ld"
13982
13983 old_CC="$CC"
13984 old_CFLAGS="$CFLAGS"
13985
13986 # Set sane defaults for various variables
13987 test -z "$CC" && CC=cc
13988 test -z "$LTCC" && LTCC=$CC
13989 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13990 test -z "$LD" && LD=ld
13991 test -z "$ac_objext" && ac_objext=o
13992
13993 for cc_temp in $compiler""; do
13994 case $cc_temp in
13995 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13996 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13997 \-*) ;;
13998 *) break;;
13999 esac
14000 done
14001 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14002
14003
14004 # Only perform the check for file, if the check method requires it
14005 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14006 case $deplibs_check_method in
14007 file_magic*)
14008 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14010 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14011 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14012 $as_echo_n "(cached) " >&6
14013 else
14014 case $MAGIC_CMD in
14015 [\\/*] | ?:[\\/]*)
14016 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14017 ;;
14018 *)
14019 lt_save_MAGIC_CMD="$MAGIC_CMD"
14020 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14021 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14022 for ac_dir in $ac_dummy; do
14023 IFS="$lt_save_ifs"
14024 test -z "$ac_dir" && ac_dir=.
14025 if test -f $ac_dir/${ac_tool_prefix}file; then
14026 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14027 if test -n "$file_magic_test_file"; then
14028 case $deplibs_check_method in
14029 "file_magic "*)
14030 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14031 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14032 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14033 $EGREP "$file_magic_regex" > /dev/null; then
14034 :
14035 else
14036 cat <<_LT_EOF 1>&2
14037
14038 *** Warning: the command libtool uses to detect shared libraries,
14039 *** $file_magic_cmd, produces output that libtool cannot recognize.
14040 *** The result is that libtool may fail to recognize shared libraries
14041 *** as such. This will affect the creation of libtool libraries that
14042 *** depend on shared libraries, but programs linked with such libtool
14043 *** libraries will work regardless of this problem. Nevertheless, you
14044 *** may want to report the problem to your system manager and/or to
14045 *** bug-libtool@gnu.org
14046
14047 _LT_EOF
14048 fi ;;
14049 esac
14050 fi
14051 break
14052 fi
14053 done
14054 IFS="$lt_save_ifs"
14055 MAGIC_CMD="$lt_save_MAGIC_CMD"
14056 ;;
14057 esac
14058 fi
14059
14060 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14061 if test -n "$MAGIC_CMD"; then
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14063 $as_echo "$MAGIC_CMD" >&6; }
14064 else
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14066 $as_echo "no" >&6; }
14067 fi
14068
14069
14070
14071
14072
14073 if test -z "$lt_cv_path_MAGIC_CMD"; then
14074 if test -n "$ac_tool_prefix"; then
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14076 $as_echo_n "checking for file... " >&6; }
14077 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14078 $as_echo_n "(cached) " >&6
14079 else
14080 case $MAGIC_CMD in
14081 [\\/*] | ?:[\\/]*)
14082 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14083 ;;
14084 *)
14085 lt_save_MAGIC_CMD="$MAGIC_CMD"
14086 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14087 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14088 for ac_dir in $ac_dummy; do
14089 IFS="$lt_save_ifs"
14090 test -z "$ac_dir" && ac_dir=.
14091 if test -f $ac_dir/file; then
14092 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14093 if test -n "$file_magic_test_file"; then
14094 case $deplibs_check_method in
14095 "file_magic "*)
14096 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14097 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14098 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14099 $EGREP "$file_magic_regex" > /dev/null; then
14100 :
14101 else
14102 cat <<_LT_EOF 1>&2
14103
14104 *** Warning: the command libtool uses to detect shared libraries,
14105 *** $file_magic_cmd, produces output that libtool cannot recognize.
14106 *** The result is that libtool may fail to recognize shared libraries
14107 *** as such. This will affect the creation of libtool libraries that
14108 *** depend on shared libraries, but programs linked with such libtool
14109 *** libraries will work regardless of this problem. Nevertheless, you
14110 *** may want to report the problem to your system manager and/or to
14111 *** bug-libtool@gnu.org
14112
14113 _LT_EOF
14114 fi ;;
14115 esac
14116 fi
14117 break
14118 fi
14119 done
14120 IFS="$lt_save_ifs"
14121 MAGIC_CMD="$lt_save_MAGIC_CMD"
14122 ;;
14123 esac
14124 fi
14125
14126 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14127 if test -n "$MAGIC_CMD"; then
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14129 $as_echo "$MAGIC_CMD" >&6; }
14130 else
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14132 $as_echo "no" >&6; }
14133 fi
14134
14135
14136 else
14137 MAGIC_CMD=:
14138 fi
14139 fi
14140
14141 fi
14142 ;;
14143 esac
14144
14145 # Use C for the default configuration in the libtool script
14146
14147 lt_save_CC="$CC"
14148 ac_ext=c
14149 ac_cpp='$CPP $CPPFLAGS'
14150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14153
14154
14155 # Source file extension for C test sources.
14156 ac_ext=c
14157
14158 # Object file extension for compiled C test sources.
14159 objext=o
14160 objext=$objext
14161
14162 # Code to be used in simple compile tests
14163 lt_simple_compile_test_code="int some_variable = 0;"
14164
14165 # Code to be used in simple link tests
14166 lt_simple_link_test_code='int main(){return(0);}'
14167
14168
14169
14170
14171
14172
14173
14174 # If no C compiler was specified, use CC.
14175 LTCC=${LTCC-"$CC"}
14176
14177 # If no C compiler flags were specified, use CFLAGS.
14178 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14179
14180 # Allow CC to be a program name with arguments.
14181 compiler=$CC
14182
14183 # Save the default compiler, since it gets overwritten when the other
14184 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14185 compiler_DEFAULT=$CC
14186
14187 # save warnings/boilerplate of simple test code
14188 ac_outfile=conftest.$ac_objext
14189 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14190 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14191 _lt_compiler_boilerplate=`cat conftest.err`
14192 $RM conftest*
14193
14194 ac_outfile=conftest.$ac_objext
14195 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14196 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14197 _lt_linker_boilerplate=`cat conftest.err`
14198 $RM -r conftest*
14199
14200
14201 if test -n "$compiler"; then
14202
14203 lt_prog_compiler_no_builtin_flag=
14204
14205 if test "$GCC" = yes; then
14206 case $cc_basename in
14207 nvcc*)
14208 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14209 *)
14210 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14211 esac
14212
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14214 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14215 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14216 $as_echo_n "(cached) " >&6
14217 else
14218 lt_cv_prog_compiler_rtti_exceptions=no
14219 ac_outfile=conftest.$ac_objext
14220 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14221 lt_compiler_flag="-fno-rtti -fno-exceptions"
14222 # Insert the option either (1) after the last *FLAGS variable, or
14223 # (2) before a word containing "conftest.", or (3) at the end.
14224 # Note that $ac_compile itself does not contain backslashes and begins
14225 # with a dollar sign (not a hyphen), so the echo should work correctly.
14226 # The option is referenced via a variable to avoid confusing sed.
14227 lt_compile=`echo "$ac_compile" | $SED \
14228 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14229 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14230 -e 's:$: $lt_compiler_flag:'`
14231 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14232 (eval "$lt_compile" 2>conftest.err)
14233 ac_status=$?
14234 cat conftest.err >&5
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 if (exit $ac_status) && test -s "$ac_outfile"; then
14237 # The compiler can only warn and ignore the option if not recognized
14238 # So say no if there are warnings other than the usual output.
14239 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14240 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14241 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14242 lt_cv_prog_compiler_rtti_exceptions=yes
14243 fi
14244 fi
14245 $RM conftest*
14246
14247 fi
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14249 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14250
14251 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14252 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14253 else
14254 :
14255 fi
14256
14257 fi
14258
14259
14260
14261
14262
14263
14264 lt_prog_compiler_wl=
14265 lt_prog_compiler_pic=
14266 lt_prog_compiler_static=
14267
14268
14269 if test "$GCC" = yes; then
14270 lt_prog_compiler_wl='-Wl,'
14271 lt_prog_compiler_static='-static'
14272
14273 case $host_os in
14274 aix*)
14275 # All AIX code is PIC.
14276 if test "$host_cpu" = ia64; then
14277 # AIX 5 now supports IA64 processor
14278 lt_prog_compiler_static='-Bstatic'
14279 fi
14280 ;;
14281
14282 amigaos*)
14283 case $host_cpu in
14284 powerpc)
14285 # see comment about AmigaOS4 .so support
14286 lt_prog_compiler_pic='-fPIC'
14287 ;;
14288 m68k)
14289 # FIXME: we need at least 68020 code to build shared libraries, but
14290 # adding the `-m68020' flag to GCC prevents building anything better,
14291 # like `-m68040'.
14292 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14293 ;;
14294 esac
14295 ;;
14296
14297 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14298 # PIC is the default for these OSes.
14299 ;;
14300
14301 mingw* | cygwin* | pw32* | os2* | cegcc*)
14302 # This hack is so that the source file can tell whether it is being
14303 # built for inclusion in a dll (and should export symbols for example).
14304 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14305 # (--disable-auto-import) libraries
14306 lt_prog_compiler_pic='-DDLL_EXPORT'
14307 ;;
14308
14309 darwin* | rhapsody*)
14310 # PIC is the default on this platform
14311 # Common symbols not allowed in MH_DYLIB files
14312 lt_prog_compiler_pic='-fno-common'
14313 ;;
14314
14315 haiku*)
14316 # PIC is the default for Haiku.
14317 # The "-static" flag exists, but is broken.
14318 lt_prog_compiler_static=
14319 ;;
14320
14321 hpux*)
14322 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14323 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14324 # sets the default TLS model and affects inlining.
14325 case $host_cpu in
14326 hppa*64*)
14327 # +Z the default
14328 ;;
14329 *)
14330 lt_prog_compiler_pic='-fPIC'
14331 ;;
14332 esac
14333 ;;
14334
14335 interix[3-9]*)
14336 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14337 # Instead, we relocate shared libraries at runtime.
14338 ;;
14339
14340 msdosdjgpp*)
14341 # Just because we use GCC doesn't mean we suddenly get shared libraries
14342 # on systems that don't support them.
14343 lt_prog_compiler_can_build_shared=no
14344 enable_shared=no
14345 ;;
14346
14347 *nto* | *qnx*)
14348 # QNX uses GNU C++, but need to define -shared option too, otherwise
14349 # it will coredump.
14350 lt_prog_compiler_pic='-fPIC -shared'
14351 ;;
14352
14353 sysv4*MP*)
14354 if test -d /usr/nec; then
14355 lt_prog_compiler_pic=-Kconform_pic
14356 fi
14357 ;;
14358
14359 *)
14360 lt_prog_compiler_pic='-fPIC'
14361 ;;
14362 esac
14363
14364 case $cc_basename in
14365 nvcc*) # Cuda Compiler Driver 2.2
14366 lt_prog_compiler_wl='-Xlinker '
14367 if test -n "$lt_prog_compiler_pic"; then
14368 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14369 fi
14370 ;;
14371 esac
14372 else
14373 # PORTME Check for flag to pass linker flags through the system compiler.
14374 case $host_os in
14375 aix*)
14376 lt_prog_compiler_wl='-Wl,'
14377 if test "$host_cpu" = ia64; then
14378 # AIX 5 now supports IA64 processor
14379 lt_prog_compiler_static='-Bstatic'
14380 else
14381 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14382 fi
14383 ;;
14384
14385 mingw* | cygwin* | pw32* | os2* | cegcc*)
14386 # This hack is so that the source file can tell whether it is being
14387 # built for inclusion in a dll (and should export symbols for example).
14388 lt_prog_compiler_pic='-DDLL_EXPORT'
14389 ;;
14390
14391 hpux9* | hpux10* | hpux11*)
14392 lt_prog_compiler_wl='-Wl,'
14393 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14394 # not for PA HP-UX.
14395 case $host_cpu in
14396 hppa*64*|ia64*)
14397 # +Z the default
14398 ;;
14399 *)
14400 lt_prog_compiler_pic='+Z'
14401 ;;
14402 esac
14403 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14404 lt_prog_compiler_static='${wl}-a ${wl}archive'
14405 ;;
14406
14407 irix5* | irix6* | nonstopux*)
14408 lt_prog_compiler_wl='-Wl,'
14409 # PIC (with -KPIC) is the default.
14410 lt_prog_compiler_static='-non_shared'
14411 ;;
14412
14413 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14414 case $cc_basename in
14415 # old Intel for x86_64 which still supported -KPIC.
14416 ecc*)
14417 lt_prog_compiler_wl='-Wl,'
14418 lt_prog_compiler_pic='-KPIC'
14419 lt_prog_compiler_static='-static'
14420 ;;
14421 # icc used to be incompatible with GCC.
14422 # ICC 10 doesn't accept -KPIC any more.
14423 icc* | ifort*)
14424 lt_prog_compiler_wl='-Wl,'
14425 lt_prog_compiler_pic='-fPIC'
14426 lt_prog_compiler_static='-static'
14427 ;;
14428 # Lahey Fortran 8.1.
14429 lf95*)
14430 lt_prog_compiler_wl='-Wl,'
14431 lt_prog_compiler_pic='--shared'
14432 lt_prog_compiler_static='--static'
14433 ;;
14434 nagfor*)
14435 # NAG Fortran compiler
14436 lt_prog_compiler_wl='-Wl,-Wl,,'
14437 lt_prog_compiler_pic='-PIC'
14438 lt_prog_compiler_static='-Bstatic'
14439 ;;
14440 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14441 # Portland Group compilers (*not* the Pentium gcc compiler,
14442 # which looks to be a dead project)
14443 lt_prog_compiler_wl='-Wl,'
14444 lt_prog_compiler_pic='-fpic'
14445 lt_prog_compiler_static='-Bstatic'
14446 ;;
14447 ccc*)
14448 lt_prog_compiler_wl='-Wl,'
14449 # All Alpha code is PIC.
14450 lt_prog_compiler_static='-non_shared'
14451 ;;
14452 xl* | bgxl* | bgf* | mpixl*)
14453 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14454 lt_prog_compiler_wl='-Wl,'
14455 lt_prog_compiler_pic='-qpic'
14456 lt_prog_compiler_static='-qstaticlink'
14457 ;;
14458 *)
14459 case `$CC -V 2>&1 | sed 5q` in
14460 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14461 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14462 lt_prog_compiler_pic='-KPIC'
14463 lt_prog_compiler_static='-Bstatic'
14464 lt_prog_compiler_wl=''
14465 ;;
14466 *Sun\ F* | *Sun*Fortran*)
14467 lt_prog_compiler_pic='-KPIC'
14468 lt_prog_compiler_static='-Bstatic'
14469 lt_prog_compiler_wl='-Qoption ld '
14470 ;;
14471 *Sun\ C*)
14472 # Sun C 5.9
14473 lt_prog_compiler_pic='-KPIC'
14474 lt_prog_compiler_static='-Bstatic'
14475 lt_prog_compiler_wl='-Wl,'
14476 ;;
14477 *Intel*\ [CF]*Compiler*)
14478 lt_prog_compiler_wl='-Wl,'
14479 lt_prog_compiler_pic='-fPIC'
14480 lt_prog_compiler_static='-static'
14481 ;;
14482 *Portland\ Group*)
14483 lt_prog_compiler_wl='-Wl,'
14484 lt_prog_compiler_pic='-fpic'
14485 lt_prog_compiler_static='-Bstatic'
14486 ;;
14487 esac
14488 ;;
14489 esac
14490 ;;
14491
14492 newsos6)
14493 lt_prog_compiler_pic='-KPIC'
14494 lt_prog_compiler_static='-Bstatic'
14495 ;;
14496
14497 *nto* | *qnx*)
14498 # QNX uses GNU C++, but need to define -shared option too, otherwise
14499 # it will coredump.
14500 lt_prog_compiler_pic='-fPIC -shared'
14501 ;;
14502
14503 osf3* | osf4* | osf5*)
14504 lt_prog_compiler_wl='-Wl,'
14505 # All OSF/1 code is PIC.
14506 lt_prog_compiler_static='-non_shared'
14507 ;;
14508
14509 rdos*)
14510 lt_prog_compiler_static='-non_shared'
14511 ;;
14512
14513 solaris*)
14514 lt_prog_compiler_pic='-KPIC'
14515 lt_prog_compiler_static='-Bstatic'
14516 case $cc_basename in
14517 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14518 lt_prog_compiler_wl='-Qoption ld ';;
14519 *)
14520 lt_prog_compiler_wl='-Wl,';;
14521 esac
14522 ;;
14523
14524 sunos4*)
14525 lt_prog_compiler_wl='-Qoption ld '
14526 lt_prog_compiler_pic='-PIC'
14527 lt_prog_compiler_static='-Bstatic'
14528 ;;
14529
14530 sysv4 | sysv4.2uw2* | sysv4.3*)
14531 lt_prog_compiler_wl='-Wl,'
14532 lt_prog_compiler_pic='-KPIC'
14533 lt_prog_compiler_static='-Bstatic'
14534 ;;
14535
14536 sysv4*MP*)
14537 if test -d /usr/nec ;then
14538 lt_prog_compiler_pic='-Kconform_pic'
14539 lt_prog_compiler_static='-Bstatic'
14540 fi
14541 ;;
14542
14543 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14544 lt_prog_compiler_wl='-Wl,'
14545 lt_prog_compiler_pic='-KPIC'
14546 lt_prog_compiler_static='-Bstatic'
14547 ;;
14548
14549 unicos*)
14550 lt_prog_compiler_wl='-Wl,'
14551 lt_prog_compiler_can_build_shared=no
14552 ;;
14553
14554 uts4*)
14555 lt_prog_compiler_pic='-pic'
14556 lt_prog_compiler_static='-Bstatic'
14557 ;;
14558
14559 *)
14560 lt_prog_compiler_can_build_shared=no
14561 ;;
14562 esac
14563 fi
14564
14565 case $host_os in
14566 # For platforms which do not support PIC, -DPIC is meaningless:
14567 *djgpp*)
14568 lt_prog_compiler_pic=
14569 ;;
14570 *)
14571 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14572 ;;
14573 esac
14574
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14576 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14577 if ${lt_cv_prog_compiler_pic+:} false; then :
14578 $as_echo_n "(cached) " >&6
14579 else
14580 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14581 fi
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14583 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
14584 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14585
14586 #
14587 # Check to make sure the PIC flag actually works.
14588 #
14589 if test -n "$lt_prog_compiler_pic"; then
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14591 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14592 if ${lt_cv_prog_compiler_pic_works+:} false; then :
14593 $as_echo_n "(cached) " >&6
14594 else
14595 lt_cv_prog_compiler_pic_works=no
14596 ac_outfile=conftest.$ac_objext
14597 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14598 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14599 # Insert the option either (1) after the last *FLAGS variable, or
14600 # (2) before a word containing "conftest.", or (3) at the end.
14601 # Note that $ac_compile itself does not contain backslashes and begins
14602 # with a dollar sign (not a hyphen), so the echo should work correctly.
14603 # The option is referenced via a variable to avoid confusing sed.
14604 lt_compile=`echo "$ac_compile" | $SED \
14605 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14607 -e 's:$: $lt_compiler_flag:'`
14608 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14609 (eval "$lt_compile" 2>conftest.err)
14610 ac_status=$?
14611 cat conftest.err >&5
14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 if (exit $ac_status) && test -s "$ac_outfile"; then
14614 # The compiler can only warn and ignore the option if not recognized
14615 # So say no if there are warnings other than the usual output.
14616 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14617 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14618 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14619 lt_cv_prog_compiler_pic_works=yes
14620 fi
14621 fi
14622 $RM conftest*
14623
14624 fi
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14626 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14627
14628 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14629 case $lt_prog_compiler_pic in
14630 "" | " "*) ;;
14631 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14632 esac
14633 else
14634 lt_prog_compiler_pic=
14635 lt_prog_compiler_can_build_shared=no
14636 fi
14637
14638 fi
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650 #
14651 # Check to make sure the static flag actually works.
14652 #
14653 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14655 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14656 if ${lt_cv_prog_compiler_static_works+:} false; then :
14657 $as_echo_n "(cached) " >&6
14658 else
14659 lt_cv_prog_compiler_static_works=no
14660 save_LDFLAGS="$LDFLAGS"
14661 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14662 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14663 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14664 # The linker can only warn and ignore the option if not recognized
14665 # So say no if there are warnings
14666 if test -s conftest.err; then
14667 # Append any errors to the config.log.
14668 cat conftest.err 1>&5
14669 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14670 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14671 if diff conftest.exp conftest.er2 >/dev/null; then
14672 lt_cv_prog_compiler_static_works=yes
14673 fi
14674 else
14675 lt_cv_prog_compiler_static_works=yes
14676 fi
14677 fi
14678 $RM -r conftest*
14679 LDFLAGS="$save_LDFLAGS"
14680
14681 fi
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14683 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14684
14685 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14686 :
14687 else
14688 lt_prog_compiler_static=
14689 fi
14690
14691
14692
14693
14694
14695
14696
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14698 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14699 if ${lt_cv_prog_compiler_c_o+:} false; then :
14700 $as_echo_n "(cached) " >&6
14701 else
14702 lt_cv_prog_compiler_c_o=no
14703 $RM -r conftest 2>/dev/null
14704 mkdir conftest
14705 cd conftest
14706 mkdir out
14707 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14708
14709 lt_compiler_flag="-o out/conftest2.$ac_objext"
14710 # Insert the option either (1) after the last *FLAGS variable, or
14711 # (2) before a word containing "conftest.", or (3) at the end.
14712 # Note that $ac_compile itself does not contain backslashes and begins
14713 # with a dollar sign (not a hyphen), so the echo should work correctly.
14714 lt_compile=`echo "$ac_compile" | $SED \
14715 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14716 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14717 -e 's:$: $lt_compiler_flag:'`
14718 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14719 (eval "$lt_compile" 2>out/conftest.err)
14720 ac_status=$?
14721 cat out/conftest.err >&5
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14724 then
14725 # The compiler can only warn and ignore the option if not recognized
14726 # So say no if there are warnings
14727 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14728 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14729 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14730 lt_cv_prog_compiler_c_o=yes
14731 fi
14732 fi
14733 chmod u+w . 2>&5
14734 $RM conftest*
14735 # SGI C++ compiler will create directory out/ii_files/ for
14736 # template instantiation
14737 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14738 $RM out/* && rmdir out
14739 cd ..
14740 $RM -r conftest
14741 $RM conftest*
14742
14743 fi
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14745 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14746
14747
14748
14749
14750
14751
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14753 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14754 if ${lt_cv_prog_compiler_c_o+:} false; then :
14755 $as_echo_n "(cached) " >&6
14756 else
14757 lt_cv_prog_compiler_c_o=no
14758 $RM -r conftest 2>/dev/null
14759 mkdir conftest
14760 cd conftest
14761 mkdir out
14762 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14763
14764 lt_compiler_flag="-o out/conftest2.$ac_objext"
14765 # Insert the option either (1) after the last *FLAGS variable, or
14766 # (2) before a word containing "conftest.", or (3) at the end.
14767 # Note that $ac_compile itself does not contain backslashes and begins
14768 # with a dollar sign (not a hyphen), so the echo should work correctly.
14769 lt_compile=`echo "$ac_compile" | $SED \
14770 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14771 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14772 -e 's:$: $lt_compiler_flag:'`
14773 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14774 (eval "$lt_compile" 2>out/conftest.err)
14775 ac_status=$?
14776 cat out/conftest.err >&5
14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14779 then
14780 # The compiler can only warn and ignore the option if not recognized
14781 # So say no if there are warnings
14782 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14783 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14784 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14785 lt_cv_prog_compiler_c_o=yes
14786 fi
14787 fi
14788 chmod u+w . 2>&5
14789 $RM conftest*
14790 # SGI C++ compiler will create directory out/ii_files/ for
14791 # template instantiation
14792 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14793 $RM out/* && rmdir out
14794 cd ..
14795 $RM -r conftest
14796 $RM conftest*
14797
14798 fi
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14800 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14801
14802
14803
14804
14805 hard_links="nottested"
14806 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14807 # do not overwrite the value of need_locks provided by the user
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14809 $as_echo_n "checking if we can lock with hard links... " >&6; }
14810 hard_links=yes
14811 $RM conftest*
14812 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14813 touch conftest.a
14814 ln conftest.a conftest.b 2>&5 || hard_links=no
14815 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14817 $as_echo "$hard_links" >&6; }
14818 if test "$hard_links" = no; then
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14820 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14821 need_locks=warn
14822 fi
14823 else
14824 need_locks=no
14825 fi
14826
14827
14828
14829
14830
14831
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14833 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14834
14835 runpath_var=
14836 allow_undefined_flag=
14837 always_export_symbols=no
14838 archive_cmds=
14839 archive_expsym_cmds=
14840 compiler_needs_object=no
14841 enable_shared_with_static_runtimes=no
14842 export_dynamic_flag_spec=
14843 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14844 hardcode_automatic=no
14845 hardcode_direct=no
14846 hardcode_direct_absolute=no
14847 hardcode_libdir_flag_spec=
14848 hardcode_libdir_separator=
14849 hardcode_minus_L=no
14850 hardcode_shlibpath_var=unsupported
14851 inherit_rpath=no
14852 link_all_deplibs=unknown
14853 module_cmds=
14854 module_expsym_cmds=
14855 old_archive_from_new_cmds=
14856 old_archive_from_expsyms_cmds=
14857 thread_safe_flag_spec=
14858 whole_archive_flag_spec=
14859 # include_expsyms should be a list of space-separated symbols to be *always*
14860 # included in the symbol list
14861 include_expsyms=
14862 # exclude_expsyms can be an extended regexp of symbols to exclude
14863 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14864 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14865 # as well as any symbol that contains `d'.
14866 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14867 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14868 # platforms (ab)use it in PIC code, but their linkers get confused if
14869 # the symbol is explicitly referenced. Since portable code cannot
14870 # rely on this symbol name, it's probably fine to never include it in
14871 # preloaded symbol tables.
14872 # Exclude shared library initialization/finalization symbols.
14873 extract_expsyms_cmds=
14874
14875 case $host_os in
14876 cygwin* | mingw* | pw32* | cegcc*)
14877 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14878 # When not using gcc, we currently assume that we are using
14879 # Microsoft Visual C++.
14880 if test "$GCC" != yes; then
14881 with_gnu_ld=no
14882 fi
14883 ;;
14884 interix*)
14885 # we just hope/assume this is gcc and not c89 (= MSVC++)
14886 with_gnu_ld=yes
14887 ;;
14888 openbsd*)
14889 with_gnu_ld=no
14890 ;;
14891 esac
14892
14893 ld_shlibs=yes
14894
14895 # On some targets, GNU ld is compatible enough with the native linker
14896 # that we're better off using the native interface for both.
14897 lt_use_gnu_ld_interface=no
14898 if test "$with_gnu_ld" = yes; then
14899 case $host_os in
14900 aix*)
14901 # The AIX port of GNU ld has always aspired to compatibility
14902 # with the native linker. However, as the warning in the GNU ld
14903 # block says, versions before 2.19.5* couldn't really create working
14904 # shared libraries, regardless of the interface used.
14905 case `$LD -v 2>&1` in
14906 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14907 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14908 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14909 *)
14910 lt_use_gnu_ld_interface=yes
14911 ;;
14912 esac
14913 ;;
14914 *)
14915 lt_use_gnu_ld_interface=yes
14916 ;;
14917 esac
14918 fi
14919
14920 if test "$lt_use_gnu_ld_interface" = yes; then
14921 # If archive_cmds runs LD, not CC, wlarc should be empty
14922 wlarc='${wl}'
14923
14924 # Set some defaults for GNU ld with shared library support. These
14925 # are reset later if shared libraries are not supported. Putting them
14926 # here allows them to be overridden if necessary.
14927 runpath_var=LD_RUN_PATH
14928 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14929 export_dynamic_flag_spec='${wl}--export-dynamic'
14930 # ancient GNU ld didn't support --whole-archive et. al.
14931 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14932 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14933 else
14934 whole_archive_flag_spec=
14935 fi
14936 supports_anon_versioning=no
14937 case `$LD -v 2>&1` in
14938 *GNU\ gold*) supports_anon_versioning=yes ;;
14939 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14940 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14941 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14942 *\ 2.11.*) ;; # other 2.11 versions
14943 *) supports_anon_versioning=yes ;;
14944 esac
14945
14946 # See if GNU ld supports shared libraries.
14947 case $host_os in
14948 aix[3-9]*)
14949 # On AIX/PPC, the GNU linker is very broken
14950 if test "$host_cpu" != ia64; then
14951 ld_shlibs=no
14952 cat <<_LT_EOF 1>&2
14953
14954 *** Warning: the GNU linker, at least up to release 2.19, is reported
14955 *** to be unable to reliably create shared libraries on AIX.
14956 *** Therefore, libtool is disabling shared libraries support. If you
14957 *** really care for shared libraries, you may want to install binutils
14958 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14959 *** You will then need to restart the configuration process.
14960
14961 _LT_EOF
14962 fi
14963 ;;
14964
14965 amigaos*)
14966 case $host_cpu in
14967 powerpc)
14968 # see comment about AmigaOS4 .so support
14969 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14970 archive_expsym_cmds=''
14971 ;;
14972 m68k)
14973 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)'
14974 hardcode_libdir_flag_spec='-L$libdir'
14975 hardcode_minus_L=yes
14976 ;;
14977 esac
14978 ;;
14979
14980 beos*)
14981 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14982 allow_undefined_flag=unsupported
14983 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
14984 # support --undefined. This deserves some investigation. FIXME
14985 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14986 else
14987 ld_shlibs=no
14988 fi
14989 ;;
14990
14991 cygwin* | mingw* | pw32* | cegcc*)
14992 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14993 # as there is no search path for DLLs.
14994 hardcode_libdir_flag_spec='-L$libdir'
14995 export_dynamic_flag_spec='${wl}--export-all-symbols'
14996 allow_undefined_flag=unsupported
14997 always_export_symbols=no
14998 enable_shared_with_static_runtimes=yes
14999 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'
15000 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15001
15002 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15003 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15004 # If the export-symbols file already is a .def file (1st line
15005 # is EXPORTS), use it as is; otherwise, prepend...
15006 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15007 cp $export_symbols $output_objdir/$soname.def;
15008 else
15009 echo EXPORTS > $output_objdir/$soname.def;
15010 cat $export_symbols >> $output_objdir/$soname.def;
15011 fi~
15012 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15013 else
15014 ld_shlibs=no
15015 fi
15016 ;;
15017
15018 haiku*)
15019 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15020 link_all_deplibs=yes
15021 ;;
15022
15023 interix[3-9]*)
15024 hardcode_direct=no
15025 hardcode_shlibpath_var=no
15026 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15027 export_dynamic_flag_spec='${wl}-E'
15028 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15029 # Instead, shared libraries are loaded at an image base (0x10000000 by
15030 # default) and relocated if they conflict, which is a slow very memory
15031 # consuming and fragmenting process. To avoid this, we pick a random,
15032 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15033 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15034 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15035 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'
15036 ;;
15037
15038 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15039 tmp_diet=no
15040 if test "$host_os" = linux-dietlibc; then
15041 case $cc_basename in
15042 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15043 esac
15044 fi
15045 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15046 && test "$tmp_diet" = no
15047 then
15048 tmp_addflag=' $pic_flag'
15049 tmp_sharedflag='-shared'
15050 case $cc_basename,$host_cpu in
15051 pgcc*) # Portland Group C compiler
15052 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'
15053 tmp_addflag=' $pic_flag'
15054 ;;
15055 pgf77* | pgf90* | pgf95* | pgfortran*)
15056 # Portland Group f77 and f90 compilers
15057 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'
15058 tmp_addflag=' $pic_flag -Mnomain' ;;
15059 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15060 tmp_addflag=' -i_dynamic' ;;
15061 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15062 tmp_addflag=' -i_dynamic -nofor_main' ;;
15063 ifc* | ifort*) # Intel Fortran compiler
15064 tmp_addflag=' -nofor_main' ;;
15065 lf95*) # Lahey Fortran 8.1
15066 whole_archive_flag_spec=
15067 tmp_sharedflag='--shared' ;;
15068 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15069 tmp_sharedflag='-qmkshrobj'
15070 tmp_addflag= ;;
15071 nvcc*) # Cuda Compiler Driver 2.2
15072 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'
15073 compiler_needs_object=yes
15074 ;;
15075 esac
15076 case `$CC -V 2>&1 | sed 5q` in
15077 *Sun\ C*) # Sun C 5.9
15078 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'
15079 compiler_needs_object=yes
15080 tmp_sharedflag='-G' ;;
15081 *Sun\ F*) # Sun Fortran 8.3
15082 tmp_sharedflag='-G' ;;
15083 esac
15084 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15085
15086 if test "x$supports_anon_versioning" = xyes; then
15087 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15088 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15089 echo "local: *; };" >> $output_objdir/$libname.ver~
15090 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15091 fi
15092
15093 case $cc_basename in
15094 xlf* | bgf* | bgxlf* | mpixlf*)
15095 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15096 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15097 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15098 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15099 if test "x$supports_anon_versioning" = xyes; then
15100 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15101 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15102 echo "local: *; };" >> $output_objdir/$libname.ver~
15103 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15104 fi
15105 ;;
15106 esac
15107 else
15108 ld_shlibs=no
15109 fi
15110 ;;
15111
15112 netbsd*)
15113 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15114 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15115 wlarc=
15116 else
15117 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15118 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15119 fi
15120 ;;
15121
15122 solaris*)
15123 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15124 ld_shlibs=no
15125 cat <<_LT_EOF 1>&2
15126
15127 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15128 *** create shared libraries on Solaris systems. Therefore, libtool
15129 *** is disabling shared libraries support. We urge you to upgrade GNU
15130 *** binutils to release 2.9.1 or newer. Another option is to modify
15131 *** your PATH or compiler configuration so that the native linker is
15132 *** used, and then restart.
15133
15134 _LT_EOF
15135 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15136 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15137 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15138 else
15139 ld_shlibs=no
15140 fi
15141 ;;
15142
15143 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15144 case `$LD -v 2>&1` in
15145 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15146 ld_shlibs=no
15147 cat <<_LT_EOF 1>&2
15148
15149 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15150 *** reliably create shared libraries on SCO systems. Therefore, libtool
15151 *** is disabling shared libraries support. We urge you to upgrade GNU
15152 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15153 *** your PATH or compiler configuration so that the native linker is
15154 *** used, and then restart.
15155
15156 _LT_EOF
15157 ;;
15158 *)
15159 # For security reasons, it is highly recommended that you always
15160 # use absolute paths for naming shared libraries, and exclude the
15161 # DT_RUNPATH tag from executables and libraries. But doing so
15162 # requires that you compile everything twice, which is a pain.
15163 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15164 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15165 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15166 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15167 else
15168 ld_shlibs=no
15169 fi
15170 ;;
15171 esac
15172 ;;
15173
15174 sunos4*)
15175 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15176 wlarc=
15177 hardcode_direct=yes
15178 hardcode_shlibpath_var=no
15179 ;;
15180
15181 *)
15182 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15183 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15184 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15185 else
15186 ld_shlibs=no
15187 fi
15188 ;;
15189 esac
15190
15191 if test "$ld_shlibs" = no; then
15192 runpath_var=
15193 hardcode_libdir_flag_spec=
15194 export_dynamic_flag_spec=
15195 whole_archive_flag_spec=
15196 fi
15197 else
15198 # PORTME fill in a description of your system's linker (not GNU ld)
15199 case $host_os in
15200 aix3*)
15201 allow_undefined_flag=unsupported
15202 always_export_symbols=yes
15203 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'
15204 # Note: this linker hardcodes the directories in LIBPATH if there
15205 # are no directories specified by -L.
15206 hardcode_minus_L=yes
15207 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15208 # Neither direct hardcoding nor static linking is supported with a
15209 # broken collect2.
15210 hardcode_direct=unsupported
15211 fi
15212 ;;
15213
15214 aix[4-9]*)
15215 if test "$host_cpu" = ia64; then
15216 # On IA64, the linker does run time linking by default, so we don't
15217 # have to do anything special.
15218 aix_use_runtimelinking=no
15219 exp_sym_flag='-Bexport'
15220 no_entry_flag=""
15221 else
15222 # If we're using GNU nm, then we don't want the "-C" option.
15223 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15224 # Also, AIX nm treats weak defined symbols like other global
15225 # defined symbols, whereas GNU nm marks them as "W".
15226 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15227 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'
15228 else
15229 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'
15230 fi
15231 aix_use_runtimelinking=no
15232
15233 # Test if we are trying to use run time linking or normal
15234 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15235 # need to do runtime linking.
15236 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15237 for ld_flag in $LDFLAGS; do
15238 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15239 aix_use_runtimelinking=yes
15240 break
15241 fi
15242 done
15243 ;;
15244 esac
15245
15246 exp_sym_flag='-bexport'
15247 no_entry_flag='-bnoentry'
15248 fi
15249
15250 # When large executables or shared objects are built, AIX ld can
15251 # have problems creating the table of contents. If linking a library
15252 # or program results in "error TOC overflow" add -mminimal-toc to
15253 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15254 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15255
15256 archive_cmds=''
15257 hardcode_direct=yes
15258 hardcode_direct_absolute=yes
15259 hardcode_libdir_separator=':'
15260 link_all_deplibs=yes
15261 file_list_spec='${wl}-f,'
15262
15263 if test "$GCC" = yes; then
15264 case $host_os in aix4.[012]|aix4.[012].*)
15265 # We only want to do this on AIX 4.2 and lower, the check
15266 # below for broken collect2 doesn't work under 4.3+
15267 collect2name=`${CC} -print-prog-name=collect2`
15268 if test -f "$collect2name" &&
15269 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15270 then
15271 # We have reworked collect2
15272 :
15273 else
15274 # We have old collect2
15275 hardcode_direct=unsupported
15276 # It fails to find uninstalled libraries when the uninstalled
15277 # path is not listed in the libpath. Setting hardcode_minus_L
15278 # to unsupported forces relinking
15279 hardcode_minus_L=yes
15280 hardcode_libdir_flag_spec='-L$libdir'
15281 hardcode_libdir_separator=
15282 fi
15283 ;;
15284 esac
15285 shared_flag='-shared'
15286 if test "$aix_use_runtimelinking" = yes; then
15287 shared_flag="$shared_flag "'${wl}-G'
15288 fi
15289 else
15290 # not using gcc
15291 if test "$host_cpu" = ia64; then
15292 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15293 # chokes on -Wl,-G. The following line is correct:
15294 shared_flag='-G'
15295 else
15296 if test "$aix_use_runtimelinking" = yes; then
15297 shared_flag='${wl}-G'
15298 else
15299 shared_flag='${wl}-bM:SRE'
15300 fi
15301 fi
15302 fi
15303
15304 export_dynamic_flag_spec='${wl}-bexpall'
15305 # It seems that -bexpall does not export symbols beginning with
15306 # underscore (_), so it is better to generate a list of symbols to export.
15307 always_export_symbols=yes
15308 if test "$aix_use_runtimelinking" = yes; then
15309 # Warning - without using the other runtime loading flags (-brtl),
15310 # -berok will link without error, but may produce a broken library.
15311 allow_undefined_flag='-berok'
15312 # Determine the default libpath from the value encoded in an
15313 # empty executable.
15314 if test "${lt_cv_aix_libpath+set}" = set; then
15315 aix_libpath=$lt_cv_aix_libpath
15316 else
15317 if ${lt_cv_aix_libpath_+:} false; then :
15318 $as_echo_n "(cached) " >&6
15319 else
15320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15321 /* end confdefs.h. */
15322
15323 int
15324 main ()
15325 {
15326
15327 ;
15328 return 0;
15329 }
15330 _ACEOF
15331 if ac_fn_c_try_link "$LINENO"; then :
15332
15333 lt_aix_libpath_sed='
15334 /Import File Strings/,/^$/ {
15335 /^0/ {
15336 s/^0 *\([^ ]*\) *$/\1/
15337 p
15338 }
15339 }'
15340 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15341 # Check for a 64-bit object if we didn't find anything.
15342 if test -z "$lt_cv_aix_libpath_"; then
15343 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15344 fi
15345 fi
15346 rm -f core conftest.err conftest.$ac_objext \
15347 conftest$ac_exeext conftest.$ac_ext
15348 if test -z "$lt_cv_aix_libpath_"; then
15349 lt_cv_aix_libpath_="/usr/lib:/lib"
15350 fi
15351
15352 fi
15353
15354 aix_libpath=$lt_cv_aix_libpath_
15355 fi
15356
15357 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15358 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"
15359 else
15360 if test "$host_cpu" = ia64; then
15361 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15362 allow_undefined_flag="-z nodefs"
15363 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"
15364 else
15365 # Determine the default libpath from the value encoded in an
15366 # empty executable.
15367 if test "${lt_cv_aix_libpath+set}" = set; then
15368 aix_libpath=$lt_cv_aix_libpath
15369 else
15370 if ${lt_cv_aix_libpath_+:} false; then :
15371 $as_echo_n "(cached) " >&6
15372 else
15373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15374 /* end confdefs.h. */
15375
15376 int
15377 main ()
15378 {
15379
15380 ;
15381 return 0;
15382 }
15383 _ACEOF
15384 if ac_fn_c_try_link "$LINENO"; then :
15385
15386 lt_aix_libpath_sed='
15387 /Import File Strings/,/^$/ {
15388 /^0/ {
15389 s/^0 *\([^ ]*\) *$/\1/
15390 p
15391 }
15392 }'
15393 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15394 # Check for a 64-bit object if we didn't find anything.
15395 if test -z "$lt_cv_aix_libpath_"; then
15396 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15397 fi
15398 fi
15399 rm -f core conftest.err conftest.$ac_objext \
15400 conftest$ac_exeext conftest.$ac_ext
15401 if test -z "$lt_cv_aix_libpath_"; then
15402 lt_cv_aix_libpath_="/usr/lib:/lib"
15403 fi
15404
15405 fi
15406
15407 aix_libpath=$lt_cv_aix_libpath_
15408 fi
15409
15410 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15411 # Warning - without using the other run time loading flags,
15412 # -berok will link without error, but may produce a broken library.
15413 no_undefined_flag=' ${wl}-bernotok'
15414 allow_undefined_flag=' ${wl}-berok'
15415 if test "$with_gnu_ld" = yes; then
15416 # We only use this code for GNU lds that support --whole-archive.
15417 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15418 else
15419 # Exported symbols can be pulled into shared objects from archives
15420 whole_archive_flag_spec='$convenience'
15421 fi
15422 archive_cmds_need_lc=yes
15423 # This is similar to how AIX traditionally builds its shared libraries.
15424 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'
15425 fi
15426 fi
15427 ;;
15428
15429 amigaos*)
15430 case $host_cpu in
15431 powerpc)
15432 # see comment about AmigaOS4 .so support
15433 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15434 archive_expsym_cmds=''
15435 ;;
15436 m68k)
15437 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)'
15438 hardcode_libdir_flag_spec='-L$libdir'
15439 hardcode_minus_L=yes
15440 ;;
15441 esac
15442 ;;
15443
15444 bsdi[45]*)
15445 export_dynamic_flag_spec=-rdynamic
15446 ;;
15447
15448 cygwin* | mingw* | pw32* | cegcc*)
15449 # When not using gcc, we currently assume that we are using
15450 # Microsoft Visual C++.
15451 # hardcode_libdir_flag_spec is actually meaningless, as there is
15452 # no search path for DLLs.
15453 case $cc_basename in
15454 cl*)
15455 # Native MSVC
15456 hardcode_libdir_flag_spec=' '
15457 allow_undefined_flag=unsupported
15458 always_export_symbols=yes
15459 file_list_spec='@'
15460 # Tell ltmain to make .lib files, not .a files.
15461 libext=lib
15462 # Tell ltmain to make .dll files, not .so files.
15463 shrext_cmds=".dll"
15464 # FIXME: Setting linknames here is a bad hack.
15465 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15466 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15467 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15468 else
15469 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15470 fi~
15471 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15472 linknames='
15473 # The linker will not automatically build a static lib if we build a DLL.
15474 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15475 enable_shared_with_static_runtimes=yes
15476 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15477 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15478 # Don't use ranlib
15479 old_postinstall_cmds='chmod 644 $oldlib'
15480 postlink_cmds='lt_outputfile="@OUTPUT@"~
15481 lt_tool_outputfile="@TOOL_OUTPUT@"~
15482 case $lt_outputfile in
15483 *.exe|*.EXE) ;;
15484 *)
15485 lt_outputfile="$lt_outputfile.exe"
15486 lt_tool_outputfile="$lt_tool_outputfile.exe"
15487 ;;
15488 esac~
15489 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15490 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15491 $RM "$lt_outputfile.manifest";
15492 fi'
15493 ;;
15494 *)
15495 # Assume MSVC wrapper
15496 hardcode_libdir_flag_spec=' '
15497 allow_undefined_flag=unsupported
15498 # Tell ltmain to make .lib files, not .a files.
15499 libext=lib
15500 # Tell ltmain to make .dll files, not .so files.
15501 shrext_cmds=".dll"
15502 # FIXME: Setting linknames here is a bad hack.
15503 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15504 # The linker will automatically build a .lib file if we build a DLL.
15505 old_archive_from_new_cmds='true'
15506 # FIXME: Should let the user specify the lib program.
15507 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15508 enable_shared_with_static_runtimes=yes
15509 ;;
15510 esac
15511 ;;
15512
15513 darwin* | rhapsody*)
15514
15515
15516 archive_cmds_need_lc=no
15517 hardcode_direct=no
15518 hardcode_automatic=yes
15519 hardcode_shlibpath_var=unsupported
15520 if test "$lt_cv_ld_force_load" = "yes"; then
15521 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\"`'
15522
15523 else
15524 whole_archive_flag_spec=''
15525 fi
15526 link_all_deplibs=yes
15527 allow_undefined_flag="$_lt_dar_allow_undefined"
15528 case $cc_basename in
15529 ifort*) _lt_dar_can_shared=yes ;;
15530 *) _lt_dar_can_shared=$GCC ;;
15531 esac
15532 if test "$_lt_dar_can_shared" = "yes"; then
15533 output_verbose_link_cmd=func_echo_all
15534 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15535 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15536 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}"
15537 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}"
15538
15539 else
15540 ld_shlibs=no
15541 fi
15542
15543 ;;
15544
15545 dgux*)
15546 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15547 hardcode_libdir_flag_spec='-L$libdir'
15548 hardcode_shlibpath_var=no
15549 ;;
15550
15551 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15552 # support. Future versions do this automatically, but an explicit c++rt0.o
15553 # does not break anything, and helps significantly (at the cost of a little
15554 # extra space).
15555 freebsd2.2*)
15556 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15557 hardcode_libdir_flag_spec='-R$libdir'
15558 hardcode_direct=yes
15559 hardcode_shlibpath_var=no
15560 ;;
15561
15562 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15563 freebsd2.*)
15564 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15565 hardcode_direct=yes
15566 hardcode_minus_L=yes
15567 hardcode_shlibpath_var=no
15568 ;;
15569
15570 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15571 freebsd* | dragonfly*)
15572 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15573 hardcode_libdir_flag_spec='-R$libdir'
15574 hardcode_direct=yes
15575 hardcode_shlibpath_var=no
15576 ;;
15577
15578 hpux9*)
15579 if test "$GCC" = yes; then
15580 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'
15581 else
15582 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'
15583 fi
15584 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15585 hardcode_libdir_separator=:
15586 hardcode_direct=yes
15587
15588 # hardcode_minus_L: Not really in the search PATH,
15589 # but as the default location of the library.
15590 hardcode_minus_L=yes
15591 export_dynamic_flag_spec='${wl}-E'
15592 ;;
15593
15594 hpux10*)
15595 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15596 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15597 else
15598 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15599 fi
15600 if test "$with_gnu_ld" = no; then
15601 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15602 hardcode_libdir_separator=:
15603 hardcode_direct=yes
15604 hardcode_direct_absolute=yes
15605 export_dynamic_flag_spec='${wl}-E'
15606 # hardcode_minus_L: Not really in the search PATH,
15607 # but as the default location of the library.
15608 hardcode_minus_L=yes
15609 fi
15610 ;;
15611
15612 hpux11*)
15613 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15614 case $host_cpu in
15615 hppa*64*)
15616 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15617 ;;
15618 ia64*)
15619 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15620 ;;
15621 *)
15622 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15623 ;;
15624 esac
15625 else
15626 case $host_cpu in
15627 hppa*64*)
15628 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15629 ;;
15630 ia64*)
15631 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15632 ;;
15633 *)
15634
15635 # Older versions of the 11.00 compiler do not understand -b yet
15636 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15638 $as_echo_n "checking if $CC understands -b... " >&6; }
15639 if ${lt_cv_prog_compiler__b+:} false; then :
15640 $as_echo_n "(cached) " >&6
15641 else
15642 lt_cv_prog_compiler__b=no
15643 save_LDFLAGS="$LDFLAGS"
15644 LDFLAGS="$LDFLAGS -b"
15645 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15646 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15647 # The linker can only warn and ignore the option if not recognized
15648 # So say no if there are warnings
15649 if test -s conftest.err; then
15650 # Append any errors to the config.log.
15651 cat conftest.err 1>&5
15652 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15653 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15654 if diff conftest.exp conftest.er2 >/dev/null; then
15655 lt_cv_prog_compiler__b=yes
15656 fi
15657 else
15658 lt_cv_prog_compiler__b=yes
15659 fi
15660 fi
15661 $RM -r conftest*
15662 LDFLAGS="$save_LDFLAGS"
15663
15664 fi
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15666 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15667
15668 if test x"$lt_cv_prog_compiler__b" = xyes; then
15669 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15670 else
15671 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15672 fi
15673
15674 ;;
15675 esac
15676 fi
15677 if test "$with_gnu_ld" = no; then
15678 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15679 hardcode_libdir_separator=:
15680
15681 case $host_cpu in
15682 hppa*64*|ia64*)
15683 hardcode_direct=no
15684 hardcode_shlibpath_var=no
15685 ;;
15686 *)
15687 hardcode_direct=yes
15688 hardcode_direct_absolute=yes
15689 export_dynamic_flag_spec='${wl}-E'
15690
15691 # hardcode_minus_L: Not really in the search PATH,
15692 # but as the default location of the library.
15693 hardcode_minus_L=yes
15694 ;;
15695 esac
15696 fi
15697 ;;
15698
15699 irix5* | irix6* | nonstopux*)
15700 if test "$GCC" = yes; then
15701 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'
15702 # Try to use the -exported_symbol ld option, if it does not
15703 # work, assume that -exports_file does not work either and
15704 # implicitly export all symbols.
15705 # This should be the same for all languages, so no per-tag cache variable.
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15707 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15708 if ${lt_cv_irix_exported_symbol+:} false; then :
15709 $as_echo_n "(cached) " >&6
15710 else
15711 save_LDFLAGS="$LDFLAGS"
15712 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15714 /* end confdefs.h. */
15715 int foo (void) { return 0; }
15716 _ACEOF
15717 if ac_fn_c_try_link "$LINENO"; then :
15718 lt_cv_irix_exported_symbol=yes
15719 else
15720 lt_cv_irix_exported_symbol=no
15721 fi
15722 rm -f core conftest.err conftest.$ac_objext \
15723 conftest$ac_exeext conftest.$ac_ext
15724 LDFLAGS="$save_LDFLAGS"
15725 fi
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15727 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
15728 if test "$lt_cv_irix_exported_symbol" = yes; then
15729 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'
15730 fi
15731 else
15732 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'
15733 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'
15734 fi
15735 archive_cmds_need_lc='no'
15736 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15737 hardcode_libdir_separator=:
15738 inherit_rpath=yes
15739 link_all_deplibs=yes
15740 ;;
15741
15742 netbsd*)
15743 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15744 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15745 else
15746 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15747 fi
15748 hardcode_libdir_flag_spec='-R$libdir'
15749 hardcode_direct=yes
15750 hardcode_shlibpath_var=no
15751 ;;
15752
15753 newsos6)
15754 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15755 hardcode_direct=yes
15756 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15757 hardcode_libdir_separator=:
15758 hardcode_shlibpath_var=no
15759 ;;
15760
15761 *nto* | *qnx*)
15762 ;;
15763
15764 openbsd*)
15765 if test -f /usr/libexec/ld.so; then
15766 hardcode_direct=yes
15767 hardcode_shlibpath_var=no
15768 hardcode_direct_absolute=yes
15769 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15770 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15771 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15772 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15773 export_dynamic_flag_spec='${wl}-E'
15774 else
15775 case $host_os in
15776 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15777 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15778 hardcode_libdir_flag_spec='-R$libdir'
15779 ;;
15780 *)
15781 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15782 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15783 ;;
15784 esac
15785 fi
15786 else
15787 ld_shlibs=no
15788 fi
15789 ;;
15790
15791 os2*)
15792 hardcode_libdir_flag_spec='-L$libdir'
15793 hardcode_minus_L=yes
15794 allow_undefined_flag=unsupported
15795 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'
15796 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15797 ;;
15798
15799 osf3*)
15800 if test "$GCC" = yes; then
15801 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15802 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'
15803 else
15804 allow_undefined_flag=' -expect_unresolved \*'
15805 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'
15806 fi
15807 archive_cmds_need_lc='no'
15808 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15809 hardcode_libdir_separator=:
15810 ;;
15811
15812 osf4* | osf5*) # as osf3* with the addition of -msym flag
15813 if test "$GCC" = yes; then
15814 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15815 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'
15816 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15817 else
15818 allow_undefined_flag=' -expect_unresolved \*'
15819 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'
15820 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~
15821 $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'
15822
15823 # Both c and cxx compiler support -rpath directly
15824 hardcode_libdir_flag_spec='-rpath $libdir'
15825 fi
15826 archive_cmds_need_lc='no'
15827 hardcode_libdir_separator=:
15828 ;;
15829
15830 solaris*)
15831 no_undefined_flag=' -z defs'
15832 if test "$GCC" = yes; then
15833 wlarc='${wl}'
15834 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15835 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15836 $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'
15837 else
15838 case `$CC -V 2>&1` in
15839 *"Compilers 5.0"*)
15840 wlarc=''
15841 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15842 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15843 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15844 ;;
15845 *)
15846 wlarc='${wl}'
15847 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15848 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15849 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15850 ;;
15851 esac
15852 fi
15853 hardcode_libdir_flag_spec='-R$libdir'
15854 hardcode_shlibpath_var=no
15855 case $host_os in
15856 solaris2.[0-5] | solaris2.[0-5].*) ;;
15857 *)
15858 # The compiler driver will combine and reorder linker options,
15859 # but understands `-z linker_flag'. GCC discards it without `$wl',
15860 # but is careful enough not to reorder.
15861 # Supported since Solaris 2.6 (maybe 2.5.1?)
15862 if test "$GCC" = yes; then
15863 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15864 else
15865 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15866 fi
15867 ;;
15868 esac
15869 link_all_deplibs=yes
15870 ;;
15871
15872 sunos4*)
15873 if test "x$host_vendor" = xsequent; then
15874 # Use $CC to link under sequent, because it throws in some extra .o
15875 # files that make .init and .fini sections work.
15876 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15877 else
15878 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15879 fi
15880 hardcode_libdir_flag_spec='-L$libdir'
15881 hardcode_direct=yes
15882 hardcode_minus_L=yes
15883 hardcode_shlibpath_var=no
15884 ;;
15885
15886 sysv4)
15887 case $host_vendor in
15888 sni)
15889 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15890 hardcode_direct=yes # is this really true???
15891 ;;
15892 siemens)
15893 ## LD is ld it makes a PLAMLIB
15894 ## CC just makes a GrossModule.
15895 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15896 reload_cmds='$CC -r -o $output$reload_objs'
15897 hardcode_direct=no
15898 ;;
15899 motorola)
15900 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15901 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15902 ;;
15903 esac
15904 runpath_var='LD_RUN_PATH'
15905 hardcode_shlibpath_var=no
15906 ;;
15907
15908 sysv4.3*)
15909 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15910 hardcode_shlibpath_var=no
15911 export_dynamic_flag_spec='-Bexport'
15912 ;;
15913
15914 sysv4*MP*)
15915 if test -d /usr/nec; then
15916 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15917 hardcode_shlibpath_var=no
15918 runpath_var=LD_RUN_PATH
15919 hardcode_runpath_var=yes
15920 ld_shlibs=yes
15921 fi
15922 ;;
15923
15924 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15925 no_undefined_flag='${wl}-z,text'
15926 archive_cmds_need_lc=no
15927 hardcode_shlibpath_var=no
15928 runpath_var='LD_RUN_PATH'
15929
15930 if test "$GCC" = yes; then
15931 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15932 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15933 else
15934 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15935 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15936 fi
15937 ;;
15938
15939 sysv5* | sco3.2v5* | sco5v6*)
15940 # Note: We can NOT use -z defs as we might desire, because we do not
15941 # link with -lc, and that would cause any symbols used from libc to
15942 # always be unresolved, which means just about no library would
15943 # ever link correctly. If we're not using GNU ld we use -z text
15944 # though, which does catch some bad symbols but isn't as heavy-handed
15945 # as -z defs.
15946 no_undefined_flag='${wl}-z,text'
15947 allow_undefined_flag='${wl}-z,nodefs'
15948 archive_cmds_need_lc=no
15949 hardcode_shlibpath_var=no
15950 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15951 hardcode_libdir_separator=':'
15952 link_all_deplibs=yes
15953 export_dynamic_flag_spec='${wl}-Bexport'
15954 runpath_var='LD_RUN_PATH'
15955
15956 if test "$GCC" = yes; then
15957 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15958 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15959 else
15960 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15961 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15962 fi
15963 ;;
15964
15965 uts4*)
15966 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15967 hardcode_libdir_flag_spec='-L$libdir'
15968 hardcode_shlibpath_var=no
15969 ;;
15970
15971 *)
15972 ld_shlibs=no
15973 ;;
15974 esac
15975
15976 if test x$host_vendor = xsni; then
15977 case $host in
15978 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15979 export_dynamic_flag_spec='${wl}-Blargedynsym'
15980 ;;
15981 esac
15982 fi
15983 fi
15984
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15986 $as_echo "$ld_shlibs" >&6; }
15987 test "$ld_shlibs" = no && can_build_shared=no
15988
15989 with_gnu_ld=$with_gnu_ld
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005 #
16006 # Do we need to explicitly link libc?
16007 #
16008 case "x$archive_cmds_need_lc" in
16009 x|xyes)
16010 # Assume -lc should be added
16011 archive_cmds_need_lc=yes
16012
16013 if test "$enable_shared" = yes && test "$GCC" = yes; then
16014 case $archive_cmds in
16015 *'~'*)
16016 # FIXME: we may have to deal with multi-command sequences.
16017 ;;
16018 '$CC '*)
16019 # Test whether the compiler implicitly links with -lc since on some
16020 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16021 # to ld, don't add -lc before -lgcc.
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16023 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16024 if ${lt_cv_archive_cmds_need_lc+:} false; then :
16025 $as_echo_n "(cached) " >&6
16026 else
16027 $RM conftest*
16028 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16029
16030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16031 (eval $ac_compile) 2>&5
16032 ac_status=$?
16033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16034 test $ac_status = 0; } 2>conftest.err; then
16035 soname=conftest
16036 lib=conftest
16037 libobjs=conftest.$ac_objext
16038 deplibs=
16039 wl=$lt_prog_compiler_wl
16040 pic_flag=$lt_prog_compiler_pic
16041 compiler_flags=-v
16042 linker_flags=-v
16043 verstring=
16044 output_objdir=.
16045 libname=conftest
16046 lt_save_allow_undefined_flag=$allow_undefined_flag
16047 allow_undefined_flag=
16048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16049 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16050 ac_status=$?
16051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16052 test $ac_status = 0; }
16053 then
16054 lt_cv_archive_cmds_need_lc=no
16055 else
16056 lt_cv_archive_cmds_need_lc=yes
16057 fi
16058 allow_undefined_flag=$lt_save_allow_undefined_flag
16059 else
16060 cat conftest.err 1>&5
16061 fi
16062 $RM conftest*
16063
16064 fi
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16066 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16067 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16068 ;;
16069 esac
16070 fi
16071 ;;
16072 esac
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16226 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16227
16228 if test "$GCC" = yes; then
16229 case $host_os in
16230 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16231 *) lt_awk_arg="/^libraries:/" ;;
16232 esac
16233 case $host_os in
16234 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16235 *) lt_sed_strip_eq="s,=/,/,g" ;;
16236 esac
16237 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16238 case $lt_search_path_spec in
16239 *\;*)
16240 # if the path contains ";" then we assume it to be the separator
16241 # otherwise default to the standard path separator (i.e. ":") - it is
16242 # assumed that no part of a normal pathname contains ";" but that should
16243 # okay in the real world where ";" in dirpaths is itself problematic.
16244 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16245 ;;
16246 *)
16247 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16248 ;;
16249 esac
16250 # Ok, now we have the path, separated by spaces, we can step through it
16251 # and add multilib dir if necessary.
16252 lt_tmp_lt_search_path_spec=
16253 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16254 for lt_sys_path in $lt_search_path_spec; do
16255 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16256 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16257 else
16258 test -d "$lt_sys_path" && \
16259 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16260 fi
16261 done
16262 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16263 BEGIN {RS=" "; FS="/|\n";} {
16264 lt_foo="";
16265 lt_count=0;
16266 for (lt_i = NF; lt_i > 0; lt_i--) {
16267 if ($lt_i != "" && $lt_i != ".") {
16268 if ($lt_i == "..") {
16269 lt_count++;
16270 } else {
16271 if (lt_count == 0) {
16272 lt_foo="/" $lt_i lt_foo;
16273 } else {
16274 lt_count--;
16275 }
16276 }
16277 }
16278 }
16279 if (lt_foo != "") { lt_freq[lt_foo]++; }
16280 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16281 }'`
16282 # AWK program above erroneously prepends '/' to C:/dos/paths
16283 # for these hosts.
16284 case $host_os in
16285 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16286 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16287 esac
16288 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16289 else
16290 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16291 fi
16292 library_names_spec=
16293 libname_spec='lib$name'
16294 soname_spec=
16295 shrext_cmds=".so"
16296 postinstall_cmds=
16297 postuninstall_cmds=
16298 finish_cmds=
16299 finish_eval=
16300 shlibpath_var=
16301 shlibpath_overrides_runpath=unknown
16302 version_type=none
16303 dynamic_linker="$host_os ld.so"
16304 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16305 need_lib_prefix=unknown
16306 hardcode_into_libs=no
16307
16308 # when you set need_version to no, make sure it does not cause -set_version
16309 # flags to be left without arguments
16310 need_version=unknown
16311
16312 case $host_os in
16313 aix3*)
16314 version_type=linux # correct to gnu/linux during the next big refactor
16315 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16316 shlibpath_var=LIBPATH
16317
16318 # AIX 3 has no versioning support, so we append a major version to the name.
16319 soname_spec='${libname}${release}${shared_ext}$major'
16320 ;;
16321
16322 aix[4-9]*)
16323 version_type=linux # correct to gnu/linux during the next big refactor
16324 need_lib_prefix=no
16325 need_version=no
16326 hardcode_into_libs=yes
16327 if test "$host_cpu" = ia64; then
16328 # AIX 5 supports IA64
16329 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16330 shlibpath_var=LD_LIBRARY_PATH
16331 else
16332 # With GCC up to 2.95.x, collect2 would create an import file
16333 # for dependence libraries. The import file would start with
16334 # the line `#! .'. This would cause the generated library to
16335 # depend on `.', always an invalid library. This was fixed in
16336 # development snapshots of GCC prior to 3.0.
16337 case $host_os in
16338 aix4 | aix4.[01] | aix4.[01].*)
16339 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16340 echo ' yes '
16341 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16342 :
16343 else
16344 can_build_shared=no
16345 fi
16346 ;;
16347 esac
16348 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16349 # soname into executable. Probably we can add versioning support to
16350 # collect2, so additional links can be useful in future.
16351 if test "$aix_use_runtimelinking" = yes; then
16352 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16353 # instead of lib<name>.a to let people know that these are not
16354 # typical AIX shared libraries.
16355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16356 else
16357 # We preserve .a as extension for shared libraries through AIX4.2
16358 # and later when we are not doing run time linking.
16359 library_names_spec='${libname}${release}.a $libname.a'
16360 soname_spec='${libname}${release}${shared_ext}$major'
16361 fi
16362 shlibpath_var=LIBPATH
16363 fi
16364 ;;
16365
16366 amigaos*)
16367 case $host_cpu in
16368 powerpc)
16369 # Since July 2007 AmigaOS4 officially supports .so libraries.
16370 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16372 ;;
16373 m68k)
16374 library_names_spec='$libname.ixlibrary $libname.a'
16375 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16376 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'
16377 ;;
16378 esac
16379 ;;
16380
16381 beos*)
16382 library_names_spec='${libname}${shared_ext}'
16383 dynamic_linker="$host_os ld.so"
16384 shlibpath_var=LIBRARY_PATH
16385 ;;
16386
16387 bsdi[45]*)
16388 version_type=linux # correct to gnu/linux during the next big refactor
16389 need_version=no
16390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16391 soname_spec='${libname}${release}${shared_ext}$major'
16392 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16393 shlibpath_var=LD_LIBRARY_PATH
16394 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16395 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16396 # the default ld.so.conf also contains /usr/contrib/lib and
16397 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16398 # libtool to hard-code these into programs
16399 ;;
16400
16401 cygwin* | mingw* | pw32* | cegcc*)
16402 version_type=windows
16403 shrext_cmds=".dll"
16404 need_version=no
16405 need_lib_prefix=no
16406
16407 case $GCC,$cc_basename in
16408 yes,*)
16409 # gcc
16410 library_names_spec='$libname.dll.a'
16411 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16412 postinstall_cmds='base_file=`basename \${file}`~
16413 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16414 dldir=$destdir/`dirname \$dlpath`~
16415 test -d \$dldir || mkdir -p \$dldir~
16416 $install_prog $dir/$dlname \$dldir/$dlname~
16417 chmod a+x \$dldir/$dlname~
16418 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16419 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16420 fi'
16421 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16422 dlpath=$dir/\$dldll~
16423 $RM \$dlpath'
16424 shlibpath_overrides_runpath=yes
16425
16426 case $host_os in
16427 cygwin*)
16428 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16429 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16430
16431 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16432 ;;
16433 mingw* | cegcc*)
16434 # MinGW DLLs use traditional 'lib' prefix
16435 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16436 ;;
16437 pw32*)
16438 # pw32 DLLs use 'pw' prefix rather than 'lib'
16439 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16440 ;;
16441 esac
16442 dynamic_linker='Win32 ld.exe'
16443 ;;
16444
16445 *,cl*)
16446 # Native MSVC
16447 libname_spec='$name'
16448 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16449 library_names_spec='${libname}.dll.lib'
16450
16451 case $build_os in
16452 mingw*)
16453 sys_lib_search_path_spec=
16454 lt_save_ifs=$IFS
16455 IFS=';'
16456 for lt_path in $LIB
16457 do
16458 IFS=$lt_save_ifs
16459 # Let DOS variable expansion print the short 8.3 style file name.
16460 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16461 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16462 done
16463 IFS=$lt_save_ifs
16464 # Convert to MSYS style.
16465 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16466 ;;
16467 cygwin*)
16468 # Convert to unix form, then to dos form, then back to unix form
16469 # but this time dos style (no spaces!) so that the unix form looks
16470 # like /cygdrive/c/PROGRA~1:/cygdr...
16471 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16472 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16473 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16474 ;;
16475 *)
16476 sys_lib_search_path_spec="$LIB"
16477 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16478 # It is most probably a Windows format PATH.
16479 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16480 else
16481 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16482 fi
16483 # FIXME: find the short name or the path components, as spaces are
16484 # common. (e.g. "Program Files" -> "PROGRA~1")
16485 ;;
16486 esac
16487
16488 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16489 postinstall_cmds='base_file=`basename \${file}`~
16490 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16491 dldir=$destdir/`dirname \$dlpath`~
16492 test -d \$dldir || mkdir -p \$dldir~
16493 $install_prog $dir/$dlname \$dldir/$dlname'
16494 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16495 dlpath=$dir/\$dldll~
16496 $RM \$dlpath'
16497 shlibpath_overrides_runpath=yes
16498 dynamic_linker='Win32 link.exe'
16499 ;;
16500
16501 *)
16502 # Assume MSVC wrapper
16503 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16504 dynamic_linker='Win32 ld.exe'
16505 ;;
16506 esac
16507 # FIXME: first we should search . and the directory the executable is in
16508 shlibpath_var=PATH
16509 ;;
16510
16511 darwin* | rhapsody*)
16512 dynamic_linker="$host_os dyld"
16513 version_type=darwin
16514 need_lib_prefix=no
16515 need_version=no
16516 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16517 soname_spec='${libname}${release}${major}$shared_ext'
16518 shlibpath_overrides_runpath=yes
16519 shlibpath_var=DYLD_LIBRARY_PATH
16520 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16521
16522 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16523 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16524 ;;
16525
16526 dgux*)
16527 version_type=linux # correct to gnu/linux during the next big refactor
16528 need_lib_prefix=no
16529 need_version=no
16530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16531 soname_spec='${libname}${release}${shared_ext}$major'
16532 shlibpath_var=LD_LIBRARY_PATH
16533 ;;
16534
16535 freebsd* | dragonfly*)
16536 # DragonFly does not have aout. When/if they implement a new
16537 # versioning mechanism, adjust this.
16538 if test -x /usr/bin/objformat; then
16539 objformat=`/usr/bin/objformat`
16540 else
16541 case $host_os in
16542 freebsd[23].*) objformat=aout ;;
16543 *) objformat=elf ;;
16544 esac
16545 fi
16546 version_type=freebsd-$objformat
16547 case $version_type in
16548 freebsd-elf*)
16549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16550 need_version=no
16551 need_lib_prefix=no
16552 ;;
16553 freebsd-*)
16554 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16555 need_version=yes
16556 ;;
16557 esac
16558 shlibpath_var=LD_LIBRARY_PATH
16559 case $host_os in
16560 freebsd2.*)
16561 shlibpath_overrides_runpath=yes
16562 ;;
16563 freebsd3.[01]* | freebsdelf3.[01]*)
16564 shlibpath_overrides_runpath=yes
16565 hardcode_into_libs=yes
16566 ;;
16567 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16568 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16569 shlibpath_overrides_runpath=no
16570 hardcode_into_libs=yes
16571 ;;
16572 *) # from 4.6 on, and DragonFly
16573 shlibpath_overrides_runpath=yes
16574 hardcode_into_libs=yes
16575 ;;
16576 esac
16577 ;;
16578
16579 gnu*)
16580 version_type=linux # correct to gnu/linux during the next big refactor
16581 need_lib_prefix=no
16582 need_version=no
16583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16584 soname_spec='${libname}${release}${shared_ext}$major'
16585 shlibpath_var=LD_LIBRARY_PATH
16586 shlibpath_overrides_runpath=no
16587 hardcode_into_libs=yes
16588 ;;
16589
16590 haiku*)
16591 version_type=linux # correct to gnu/linux during the next big refactor
16592 need_lib_prefix=no
16593 need_version=no
16594 dynamic_linker="$host_os runtime_loader"
16595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16596 soname_spec='${libname}${release}${shared_ext}$major'
16597 shlibpath_var=LIBRARY_PATH
16598 shlibpath_overrides_runpath=yes
16599 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16600 hardcode_into_libs=yes
16601 ;;
16602
16603 hpux9* | hpux10* | hpux11*)
16604 # Give a soname corresponding to the major version so that dld.sl refuses to
16605 # link against other versions.
16606 version_type=sunos
16607 need_lib_prefix=no
16608 need_version=no
16609 case $host_cpu in
16610 ia64*)
16611 shrext_cmds='.so'
16612 hardcode_into_libs=yes
16613 dynamic_linker="$host_os dld.so"
16614 shlibpath_var=LD_LIBRARY_PATH
16615 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16617 soname_spec='${libname}${release}${shared_ext}$major'
16618 if test "X$HPUX_IA64_MODE" = X32; then
16619 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16620 else
16621 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16622 fi
16623 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16624 ;;
16625 hppa*64*)
16626 shrext_cmds='.sl'
16627 hardcode_into_libs=yes
16628 dynamic_linker="$host_os dld.sl"
16629 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16630 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16632 soname_spec='${libname}${release}${shared_ext}$major'
16633 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16634 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16635 ;;
16636 *)
16637 shrext_cmds='.sl'
16638 dynamic_linker="$host_os dld.sl"
16639 shlibpath_var=SHLIB_PATH
16640 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16642 soname_spec='${libname}${release}${shared_ext}$major'
16643 ;;
16644 esac
16645 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16646 postinstall_cmds='chmod 555 $lib'
16647 # or fails outright, so override atomically:
16648 install_override_mode=555
16649 ;;
16650
16651 interix[3-9]*)
16652 version_type=linux # correct to gnu/linux during the next big refactor
16653 need_lib_prefix=no
16654 need_version=no
16655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16656 soname_spec='${libname}${release}${shared_ext}$major'
16657 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16658 shlibpath_var=LD_LIBRARY_PATH
16659 shlibpath_overrides_runpath=no
16660 hardcode_into_libs=yes
16661 ;;
16662
16663 irix5* | irix6* | nonstopux*)
16664 case $host_os in
16665 nonstopux*) version_type=nonstopux ;;
16666 *)
16667 if test "$lt_cv_prog_gnu_ld" = yes; then
16668 version_type=linux # correct to gnu/linux during the next big refactor
16669 else
16670 version_type=irix
16671 fi ;;
16672 esac
16673 need_lib_prefix=no
16674 need_version=no
16675 soname_spec='${libname}${release}${shared_ext}$major'
16676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16677 case $host_os in
16678 irix5* | nonstopux*)
16679 libsuff= shlibsuff=
16680 ;;
16681 *)
16682 case $LD in # libtool.m4 will add one of these switches to LD
16683 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16684 libsuff= shlibsuff= libmagic=32-bit;;
16685 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16686 libsuff=32 shlibsuff=N32 libmagic=N32;;
16687 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16688 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16689 *) libsuff= shlibsuff= libmagic=never-match;;
16690 esac
16691 ;;
16692 esac
16693 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16694 shlibpath_overrides_runpath=no
16695 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16696 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16697 hardcode_into_libs=yes
16698 ;;
16699
16700 # No shared lib support for Linux oldld, aout, or coff.
16701 linux*oldld* | linux*aout* | linux*coff*)
16702 dynamic_linker=no
16703 ;;
16704
16705 # This must be glibc/ELF.
16706 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16707 version_type=linux # correct to gnu/linux during the next big refactor
16708 need_lib_prefix=no
16709 need_version=no
16710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16711 soname_spec='${libname}${release}${shared_ext}$major'
16712 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16713 shlibpath_var=LD_LIBRARY_PATH
16714 shlibpath_overrides_runpath=no
16715
16716 # Some binutils ld are patched to set DT_RUNPATH
16717 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16718 $as_echo_n "(cached) " >&6
16719 else
16720 lt_cv_shlibpath_overrides_runpath=no
16721 save_LDFLAGS=$LDFLAGS
16722 save_libdir=$libdir
16723 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16724 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16726 /* end confdefs.h. */
16727
16728 int
16729 main ()
16730 {
16731
16732 ;
16733 return 0;
16734 }
16735 _ACEOF
16736 if ac_fn_c_try_link "$LINENO"; then :
16737 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16738 lt_cv_shlibpath_overrides_runpath=yes
16739 fi
16740 fi
16741 rm -f core conftest.err conftest.$ac_objext \
16742 conftest$ac_exeext conftest.$ac_ext
16743 LDFLAGS=$save_LDFLAGS
16744 libdir=$save_libdir
16745
16746 fi
16747
16748 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16749
16750 # This implies no fast_install, which is unacceptable.
16751 # Some rework will be needed to allow for fast_install
16752 # before this can be enabled.
16753 hardcode_into_libs=yes
16754
16755 # Add ABI-specific directories to the system library path.
16756 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16757
16758 # Append ld.so.conf contents to the search path
16759 if test -f /etc/ld.so.conf; then
16760 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' ' '`
16761 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16762
16763 fi
16764
16765 # We used to test for /lib/ld.so.1 and disable shared libraries on
16766 # powerpc, because MkLinux only supported shared libraries with the
16767 # GNU dynamic linker. Since this was broken with cross compilers,
16768 # most powerpc-linux boxes support dynamic linking these days and
16769 # people can always --disable-shared, the test was removed, and we
16770 # assume the GNU/Linux dynamic linker is in use.
16771 dynamic_linker='GNU/Linux ld.so'
16772 ;;
16773
16774 netbsd*)
16775 version_type=sunos
16776 need_lib_prefix=no
16777 need_version=no
16778 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16780 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16781 dynamic_linker='NetBSD (a.out) ld.so'
16782 else
16783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16784 soname_spec='${libname}${release}${shared_ext}$major'
16785 dynamic_linker='NetBSD ld.elf_so'
16786 fi
16787 shlibpath_var=LD_LIBRARY_PATH
16788 shlibpath_overrides_runpath=yes
16789 hardcode_into_libs=yes
16790 ;;
16791
16792 newsos6)
16793 version_type=linux # correct to gnu/linux during the next big refactor
16794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16795 shlibpath_var=LD_LIBRARY_PATH
16796 shlibpath_overrides_runpath=yes
16797 ;;
16798
16799 *nto* | *qnx*)
16800 version_type=qnx
16801 need_lib_prefix=no
16802 need_version=no
16803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16804 soname_spec='${libname}${release}${shared_ext}$major'
16805 shlibpath_var=LD_LIBRARY_PATH
16806 shlibpath_overrides_runpath=no
16807 hardcode_into_libs=yes
16808 dynamic_linker='ldqnx.so'
16809 ;;
16810
16811 openbsd*)
16812 version_type=sunos
16813 sys_lib_dlsearch_path_spec="/usr/lib"
16814 need_lib_prefix=no
16815 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16816 case $host_os in
16817 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16818 *) need_version=no ;;
16819 esac
16820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16821 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16822 shlibpath_var=LD_LIBRARY_PATH
16823 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16824 case $host_os in
16825 openbsd2.[89] | openbsd2.[89].*)
16826 shlibpath_overrides_runpath=no
16827 ;;
16828 *)
16829 shlibpath_overrides_runpath=yes
16830 ;;
16831 esac
16832 else
16833 shlibpath_overrides_runpath=yes
16834 fi
16835 ;;
16836
16837 os2*)
16838 libname_spec='$name'
16839 shrext_cmds=".dll"
16840 need_lib_prefix=no
16841 library_names_spec='$libname${shared_ext} $libname.a'
16842 dynamic_linker='OS/2 ld.exe'
16843 shlibpath_var=LIBPATH
16844 ;;
16845
16846 osf3* | osf4* | osf5*)
16847 version_type=osf
16848 need_lib_prefix=no
16849 need_version=no
16850 soname_spec='${libname}${release}${shared_ext}$major'
16851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16852 shlibpath_var=LD_LIBRARY_PATH
16853 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16854 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16855 ;;
16856
16857 rdos*)
16858 dynamic_linker=no
16859 ;;
16860
16861 solaris*)
16862 version_type=linux # correct to gnu/linux during the next big refactor
16863 need_lib_prefix=no
16864 need_version=no
16865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16866 soname_spec='${libname}${release}${shared_ext}$major'
16867 shlibpath_var=LD_LIBRARY_PATH
16868 shlibpath_overrides_runpath=yes
16869 hardcode_into_libs=yes
16870 # ldd complains unless libraries are executable
16871 postinstall_cmds='chmod +x $lib'
16872 ;;
16873
16874 sunos4*)
16875 version_type=sunos
16876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16877 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16878 shlibpath_var=LD_LIBRARY_PATH
16879 shlibpath_overrides_runpath=yes
16880 if test "$with_gnu_ld" = yes; then
16881 need_lib_prefix=no
16882 fi
16883 need_version=yes
16884 ;;
16885
16886 sysv4 | sysv4.3*)
16887 version_type=linux # correct to gnu/linux during the next big refactor
16888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16889 soname_spec='${libname}${release}${shared_ext}$major'
16890 shlibpath_var=LD_LIBRARY_PATH
16891 case $host_vendor in
16892 sni)
16893 shlibpath_overrides_runpath=no
16894 need_lib_prefix=no
16895 runpath_var=LD_RUN_PATH
16896 ;;
16897 siemens)
16898 need_lib_prefix=no
16899 ;;
16900 motorola)
16901 need_lib_prefix=no
16902 need_version=no
16903 shlibpath_overrides_runpath=no
16904 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16905 ;;
16906 esac
16907 ;;
16908
16909 sysv4*MP*)
16910 if test -d /usr/nec ;then
16911 version_type=linux # correct to gnu/linux during the next big refactor
16912 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16913 soname_spec='$libname${shared_ext}.$major'
16914 shlibpath_var=LD_LIBRARY_PATH
16915 fi
16916 ;;
16917
16918 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16919 version_type=freebsd-elf
16920 need_lib_prefix=no
16921 need_version=no
16922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16923 soname_spec='${libname}${release}${shared_ext}$major'
16924 shlibpath_var=LD_LIBRARY_PATH
16925 shlibpath_overrides_runpath=yes
16926 hardcode_into_libs=yes
16927 if test "$with_gnu_ld" = yes; then
16928 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16929 else
16930 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16931 case $host_os in
16932 sco3.2v5*)
16933 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16934 ;;
16935 esac
16936 fi
16937 sys_lib_dlsearch_path_spec='/usr/lib'
16938 ;;
16939
16940 tpf*)
16941 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16942 version_type=linux # correct to gnu/linux during the next big refactor
16943 need_lib_prefix=no
16944 need_version=no
16945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16946 shlibpath_var=LD_LIBRARY_PATH
16947 shlibpath_overrides_runpath=no
16948 hardcode_into_libs=yes
16949 ;;
16950
16951 uts4*)
16952 version_type=linux # correct to gnu/linux during the next big refactor
16953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16954 soname_spec='${libname}${release}${shared_ext}$major'
16955 shlibpath_var=LD_LIBRARY_PATH
16956 ;;
16957
16958 *)
16959 dynamic_linker=no
16960 ;;
16961 esac
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16963 $as_echo "$dynamic_linker" >&6; }
16964 test "$dynamic_linker" = no && can_build_shared=no
16965
16966 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16967 if test "$GCC" = yes; then
16968 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16969 fi
16970
16971 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16972 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16973 fi
16974 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16975 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16976 fi
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17070 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17071 hardcode_action=
17072 if test -n "$hardcode_libdir_flag_spec" ||
17073 test -n "$runpath_var" ||
17074 test "X$hardcode_automatic" = "Xyes" ; then
17075
17076 # We can hardcode non-existent directories.
17077 if test "$hardcode_direct" != no &&
17078 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17079 # have to relink, otherwise we might link with an installed library
17080 # when we should be linking with a yet-to-be-installed one
17081 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17082 test "$hardcode_minus_L" != no; then
17083 # Linking always hardcodes the temporary library directory.
17084 hardcode_action=relink
17085 else
17086 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17087 hardcode_action=immediate
17088 fi
17089 else
17090 # We cannot hardcode anything, or else we can only hardcode existing
17091 # directories.
17092 hardcode_action=unsupported
17093 fi
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17095 $as_echo "$hardcode_action" >&6; }
17096
17097 if test "$hardcode_action" = relink ||
17098 test "$inherit_rpath" = yes; then
17099 # Fast installation is not supported
17100 enable_fast_install=no
17101 elif test "$shlibpath_overrides_runpath" = yes ||
17102 test "$enable_shared" = no; then
17103 # Fast installation is not necessary
17104 enable_fast_install=needless
17105 fi
17106
17107
17108
17109
17110
17111
17112 if test "x$enable_dlopen" != xyes; then
17113 enable_dlopen=unknown
17114 enable_dlopen_self=unknown
17115 enable_dlopen_self_static=unknown
17116 else
17117 lt_cv_dlopen=no
17118 lt_cv_dlopen_libs=
17119
17120 case $host_os in
17121 beos*)
17122 lt_cv_dlopen="load_add_on"
17123 lt_cv_dlopen_libs=
17124 lt_cv_dlopen_self=yes
17125 ;;
17126
17127 mingw* | pw32* | cegcc*)
17128 lt_cv_dlopen="LoadLibrary"
17129 lt_cv_dlopen_libs=
17130 ;;
17131
17132 cygwin*)
17133 lt_cv_dlopen="dlopen"
17134 lt_cv_dlopen_libs=
17135 ;;
17136
17137 darwin*)
17138 # if libdl is installed we need to link against it
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17140 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17141 if ${ac_cv_lib_dl_dlopen+:} false; then :
17142 $as_echo_n "(cached) " >&6
17143 else
17144 ac_check_lib_save_LIBS=$LIBS
17145 LIBS="-ldl $LIBS"
17146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17147 /* end confdefs.h. */
17148
17149 /* Override any GCC internal prototype to avoid an error.
17150 Use char because int might match the return type of a GCC
17151 builtin and then its argument prototype would still apply. */
17152 #ifdef __cplusplus
17153 extern "C"
17154 #endif
17155 char dlopen ();
17156 int
17157 main ()
17158 {
17159 return dlopen ();
17160 ;
17161 return 0;
17162 }
17163 _ACEOF
17164 if ac_fn_c_try_link "$LINENO"; then :
17165 ac_cv_lib_dl_dlopen=yes
17166 else
17167 ac_cv_lib_dl_dlopen=no
17168 fi
17169 rm -f core conftest.err conftest.$ac_objext \
17170 conftest$ac_exeext conftest.$ac_ext
17171 LIBS=$ac_check_lib_save_LIBS
17172 fi
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17174 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17175 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17176 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17177 else
17178
17179 lt_cv_dlopen="dyld"
17180 lt_cv_dlopen_libs=
17181 lt_cv_dlopen_self=yes
17182
17183 fi
17184
17185 ;;
17186
17187 *)
17188 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17189 if test "x$ac_cv_func_shl_load" = xyes; then :
17190 lt_cv_dlopen="shl_load"
17191 else
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17193 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17194 if ${ac_cv_lib_dld_shl_load+:} false; then :
17195 $as_echo_n "(cached) " >&6
17196 else
17197 ac_check_lib_save_LIBS=$LIBS
17198 LIBS="-ldld $LIBS"
17199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17200 /* end confdefs.h. */
17201
17202 /* Override any GCC internal prototype to avoid an error.
17203 Use char because int might match the return type of a GCC
17204 builtin and then its argument prototype would still apply. */
17205 #ifdef __cplusplus
17206 extern "C"
17207 #endif
17208 char shl_load ();
17209 int
17210 main ()
17211 {
17212 return shl_load ();
17213 ;
17214 return 0;
17215 }
17216 _ACEOF
17217 if ac_fn_c_try_link "$LINENO"; then :
17218 ac_cv_lib_dld_shl_load=yes
17219 else
17220 ac_cv_lib_dld_shl_load=no
17221 fi
17222 rm -f core conftest.err conftest.$ac_objext \
17223 conftest$ac_exeext conftest.$ac_ext
17224 LIBS=$ac_check_lib_save_LIBS
17225 fi
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17227 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17228 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17229 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17230 else
17231 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17232 if test "x$ac_cv_func_dlopen" = xyes; then :
17233 lt_cv_dlopen="dlopen"
17234 else
17235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17236 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17237 if ${ac_cv_lib_dl_dlopen+:} false; then :
17238 $as_echo_n "(cached) " >&6
17239 else
17240 ac_check_lib_save_LIBS=$LIBS
17241 LIBS="-ldl $LIBS"
17242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17243 /* end confdefs.h. */
17244
17245 /* Override any GCC internal prototype to avoid an error.
17246 Use char because int might match the return type of a GCC
17247 builtin and then its argument prototype would still apply. */
17248 #ifdef __cplusplus
17249 extern "C"
17250 #endif
17251 char dlopen ();
17252 int
17253 main ()
17254 {
17255 return dlopen ();
17256 ;
17257 return 0;
17258 }
17259 _ACEOF
17260 if ac_fn_c_try_link "$LINENO"; then :
17261 ac_cv_lib_dl_dlopen=yes
17262 else
17263 ac_cv_lib_dl_dlopen=no
17264 fi
17265 rm -f core conftest.err conftest.$ac_objext \
17266 conftest$ac_exeext conftest.$ac_ext
17267 LIBS=$ac_check_lib_save_LIBS
17268 fi
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17270 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17271 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17272 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17273 else
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17275 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17276 if ${ac_cv_lib_svld_dlopen+:} false; then :
17277 $as_echo_n "(cached) " >&6
17278 else
17279 ac_check_lib_save_LIBS=$LIBS
17280 LIBS="-lsvld $LIBS"
17281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17282 /* end confdefs.h. */
17283
17284 /* Override any GCC internal prototype to avoid an error.
17285 Use char because int might match the return type of a GCC
17286 builtin and then its argument prototype would still apply. */
17287 #ifdef __cplusplus
17288 extern "C"
17289 #endif
17290 char dlopen ();
17291 int
17292 main ()
17293 {
17294 return dlopen ();
17295 ;
17296 return 0;
17297 }
17298 _ACEOF
17299 if ac_fn_c_try_link "$LINENO"; then :
17300 ac_cv_lib_svld_dlopen=yes
17301 else
17302 ac_cv_lib_svld_dlopen=no
17303 fi
17304 rm -f core conftest.err conftest.$ac_objext \
17305 conftest$ac_exeext conftest.$ac_ext
17306 LIBS=$ac_check_lib_save_LIBS
17307 fi
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17309 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17310 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17311 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17312 else
17313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17314 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17315 if ${ac_cv_lib_dld_dld_link+:} false; then :
17316 $as_echo_n "(cached) " >&6
17317 else
17318 ac_check_lib_save_LIBS=$LIBS
17319 LIBS="-ldld $LIBS"
17320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17321 /* end confdefs.h. */
17322
17323 /* Override any GCC internal prototype to avoid an error.
17324 Use char because int might match the return type of a GCC
17325 builtin and then its argument prototype would still apply. */
17326 #ifdef __cplusplus
17327 extern "C"
17328 #endif
17329 char dld_link ();
17330 int
17331 main ()
17332 {
17333 return dld_link ();
17334 ;
17335 return 0;
17336 }
17337 _ACEOF
17338 if ac_fn_c_try_link "$LINENO"; then :
17339 ac_cv_lib_dld_dld_link=yes
17340 else
17341 ac_cv_lib_dld_dld_link=no
17342 fi
17343 rm -f core conftest.err conftest.$ac_objext \
17344 conftest$ac_exeext conftest.$ac_ext
17345 LIBS=$ac_check_lib_save_LIBS
17346 fi
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17348 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17349 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17350 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17351 fi
17352
17353
17354 fi
17355
17356
17357 fi
17358
17359
17360 fi
17361
17362
17363 fi
17364
17365
17366 fi
17367
17368 ;;
17369 esac
17370
17371 if test "x$lt_cv_dlopen" != xno; then
17372 enable_dlopen=yes
17373 else
17374 enable_dlopen=no
17375 fi
17376
17377 case $lt_cv_dlopen in
17378 dlopen)
17379 save_CPPFLAGS="$CPPFLAGS"
17380 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17381
17382 save_LDFLAGS="$LDFLAGS"
17383 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17384
17385 save_LIBS="$LIBS"
17386 LIBS="$lt_cv_dlopen_libs $LIBS"
17387
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17389 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17390 if ${lt_cv_dlopen_self+:} false; then :
17391 $as_echo_n "(cached) " >&6
17392 else
17393 if test "$cross_compiling" = yes; then :
17394 lt_cv_dlopen_self=cross
17395 else
17396 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17397 lt_status=$lt_dlunknown
17398 cat > conftest.$ac_ext <<_LT_EOF
17399 #line $LINENO "configure"
17400 #include "confdefs.h"
17401
17402 #if HAVE_DLFCN_H
17403 #include <dlfcn.h>
17404 #endif
17405
17406 #include <stdio.h>
17407
17408 #ifdef RTLD_GLOBAL
17409 # define LT_DLGLOBAL RTLD_GLOBAL
17410 #else
17411 # ifdef DL_GLOBAL
17412 # define LT_DLGLOBAL DL_GLOBAL
17413 # else
17414 # define LT_DLGLOBAL 0
17415 # endif
17416 #endif
17417
17418 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17419 find out it does not work in some platform. */
17420 #ifndef LT_DLLAZY_OR_NOW
17421 # ifdef RTLD_LAZY
17422 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17423 # else
17424 # ifdef DL_LAZY
17425 # define LT_DLLAZY_OR_NOW DL_LAZY
17426 # else
17427 # ifdef RTLD_NOW
17428 # define LT_DLLAZY_OR_NOW RTLD_NOW
17429 # else
17430 # ifdef DL_NOW
17431 # define LT_DLLAZY_OR_NOW DL_NOW
17432 # else
17433 # define LT_DLLAZY_OR_NOW 0
17434 # endif
17435 # endif
17436 # endif
17437 # endif
17438 #endif
17439
17440 /* When -fvisbility=hidden is used, assume the code has been annotated
17441 correspondingly for the symbols needed. */
17442 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17443 int fnord () __attribute__((visibility("default")));
17444 #endif
17445
17446 int fnord () { return 42; }
17447 int main ()
17448 {
17449 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17450 int status = $lt_dlunknown;
17451
17452 if (self)
17453 {
17454 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17455 else
17456 {
17457 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17458 else puts (dlerror ());
17459 }
17460 /* dlclose (self); */
17461 }
17462 else
17463 puts (dlerror ());
17464
17465 return status;
17466 }
17467 _LT_EOF
17468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17469 (eval $ac_link) 2>&5
17470 ac_status=$?
17471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17472 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17473 (./conftest; exit; ) >&5 2>/dev/null
17474 lt_status=$?
17475 case x$lt_status in
17476 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17477 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17478 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17479 esac
17480 else :
17481 # compilation failed
17482 lt_cv_dlopen_self=no
17483 fi
17484 fi
17485 rm -fr conftest*
17486
17487
17488 fi
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17490 $as_echo "$lt_cv_dlopen_self" >&6; }
17491
17492 if test "x$lt_cv_dlopen_self" = xyes; then
17493 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17495 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17496 if ${lt_cv_dlopen_self_static+:} false; then :
17497 $as_echo_n "(cached) " >&6
17498 else
17499 if test "$cross_compiling" = yes; then :
17500 lt_cv_dlopen_self_static=cross
17501 else
17502 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17503 lt_status=$lt_dlunknown
17504 cat > conftest.$ac_ext <<_LT_EOF
17505 #line $LINENO "configure"
17506 #include "confdefs.h"
17507
17508 #if HAVE_DLFCN_H
17509 #include <dlfcn.h>
17510 #endif
17511
17512 #include <stdio.h>
17513
17514 #ifdef RTLD_GLOBAL
17515 # define LT_DLGLOBAL RTLD_GLOBAL
17516 #else
17517 # ifdef DL_GLOBAL
17518 # define LT_DLGLOBAL DL_GLOBAL
17519 # else
17520 # define LT_DLGLOBAL 0
17521 # endif
17522 #endif
17523
17524 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17525 find out it does not work in some platform. */
17526 #ifndef LT_DLLAZY_OR_NOW
17527 # ifdef RTLD_LAZY
17528 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17529 # else
17530 # ifdef DL_LAZY
17531 # define LT_DLLAZY_OR_NOW DL_LAZY
17532 # else
17533 # ifdef RTLD_NOW
17534 # define LT_DLLAZY_OR_NOW RTLD_NOW
17535 # else
17536 # ifdef DL_NOW
17537 # define LT_DLLAZY_OR_NOW DL_NOW
17538 # else
17539 # define LT_DLLAZY_OR_NOW 0
17540 # endif
17541 # endif
17542 # endif
17543 # endif
17544 #endif
17545
17546 /* When -fvisbility=hidden is used, assume the code has been annotated
17547 correspondingly for the symbols needed. */
17548 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17549 int fnord () __attribute__((visibility("default")));
17550 #endif
17551
17552 int fnord () { return 42; }
17553 int main ()
17554 {
17555 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17556 int status = $lt_dlunknown;
17557
17558 if (self)
17559 {
17560 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17561 else
17562 {
17563 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17564 else puts (dlerror ());
17565 }
17566 /* dlclose (self); */
17567 }
17568 else
17569 puts (dlerror ());
17570
17571 return status;
17572 }
17573 _LT_EOF
17574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17575 (eval $ac_link) 2>&5
17576 ac_status=$?
17577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17578 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17579 (./conftest; exit; ) >&5 2>/dev/null
17580 lt_status=$?
17581 case x$lt_status in
17582 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17583 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17584 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17585 esac
17586 else :
17587 # compilation failed
17588 lt_cv_dlopen_self_static=no
17589 fi
17590 fi
17591 rm -fr conftest*
17592
17593
17594 fi
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17596 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17597 fi
17598
17599 CPPFLAGS="$save_CPPFLAGS"
17600 LDFLAGS="$save_LDFLAGS"
17601 LIBS="$save_LIBS"
17602 ;;
17603 esac
17604
17605 case $lt_cv_dlopen_self in
17606 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17607 *) enable_dlopen_self=unknown ;;
17608 esac
17609
17610 case $lt_cv_dlopen_self_static in
17611 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17612 *) enable_dlopen_self_static=unknown ;;
17613 esac
17614 fi
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632 striplib=
17633 old_striplib=
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17635 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17636 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17637 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17638 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17640 $as_echo "yes" >&6; }
17641 else
17642 # FIXME - insert some real tests, host_os isn't really good enough
17643 case $host_os in
17644 darwin*)
17645 if test -n "$STRIP" ; then
17646 striplib="$STRIP -x"
17647 old_striplib="$STRIP -S"
17648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17649 $as_echo "yes" >&6; }
17650 else
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17652 $as_echo "no" >&6; }
17653 fi
17654 ;;
17655 *)
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17657 $as_echo "no" >&6; }
17658 ;;
17659 esac
17660 fi
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673 # Report which library types will actually be built
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17675 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17677 $as_echo "$can_build_shared" >&6; }
17678
17679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17680 $as_echo_n "checking whether to build shared libraries... " >&6; }
17681 test "$can_build_shared" = "no" && enable_shared=no
17682
17683 # On AIX, shared libraries and static libraries use the same namespace, and
17684 # are all built from PIC.
17685 case $host_os in
17686 aix3*)
17687 test "$enable_shared" = yes && enable_static=no
17688 if test -n "$RANLIB"; then
17689 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17690 postinstall_cmds='$RANLIB $lib'
17691 fi
17692 ;;
17693
17694 aix[4-9]*)
17695 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17696 test "$enable_shared" = yes && enable_static=no
17697 fi
17698 ;;
17699 esac
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17701 $as_echo "$enable_shared" >&6; }
17702
17703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17704 $as_echo_n "checking whether to build static libraries... " >&6; }
17705 # Make sure either enable_shared or enable_static is yes.
17706 test "$enable_shared" = yes || enable_static=yes
17707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17708 $as_echo "$enable_static" >&6; }
17709
17710
17711
17712
17713 fi
17714 ac_ext=c
17715 ac_cpp='$CPP $CPPFLAGS'
17716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17719
17720 CC="$lt_save_CC"
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736 ac_config_commands="$ac_config_commands libtool"
17737
17738
17739
17740
17741 # Only expand once:
17742
17743
17744
17745
17746
17747
17748 # Check whether --with-xorg-module-dir was given.
17749 if test "${with_xorg_module_dir+set}" = set; then :
17750 withval=$with_xorg_module_dir; moduledir="$withval"
17751 else
17752 moduledir="$libdir/xorg/modules"
17753 fi
17754
17755 inputdir=${moduledir}/input
17756
17757
17758
17759 # Check whether --with-xorg-conf-dir was given.
17760 if test "${with_xorg_conf_dir+set}" = set; then :
17761 withval=$with_xorg_conf_dir; XORG_CONF_DIR="$withval"
17762 else
17763 XORG_CONF_DIR="`$PKG_CONFIG --variable=sysconfigdir xorg-server`"
17764 fi
17765
17766
17767 if test "x$XORG_CONF_DIR" != "x" && test "x$XORG_CONF_DIR" != "xno"; then
17768 HAS_XORG_CONF_DIR_TRUE=
17769 HAS_XORG_CONF_DIR_FALSE='#'
17770 else
17771 HAS_XORG_CONF_DIR_TRUE='#'
17772 HAS_XORG_CONF_DIR_FALSE=
17773 fi
17774
17775
17776
17777 # Check whether --with-hal-bin-dir was given.
17778 if test "${with_hal_bin_dir+set}" = set; then :
17779 withval=$with_hal_bin_dir; halbindir="$withval"
17780 else
17781 halbindir="$bindir"
17782 fi
17783
17784 HAL_BIN_DIR=${halbindir}
17785
17786
17787
17788 # Check whether --with-hal-callouts-dir was given.
17789 if test "${with_hal_callouts_dir+set}" = set; then :
17790 withval=$with_hal_callouts_dir; halcalloutsdir="$withval"
17791 else
17792 halcalloutsdir="$libdir/hal"
17793 fi
17794
17795 HAL_CALLOUTS_DIR=${halcalloutsdir}
17796
17797
17798
17799 # Check whether --with-hal-fdi-dir was given.
17800 if test "${with_hal_fdi_dir+set}" = set; then :
17801 withval=$with_hal_fdi_dir; halfdidir="$withval"
17802 else
17803 halfdidir="$datadir/hal/fdi/policy/20thirdparty"
17804 fi
17805
17806 HAL_FDI_DIR=${halfdidir}
17807
17808
17809 # Udev location for rules directory
17810
17811 # Check whether --with-udev-rules-dir was given.
17812 if test "${with_udev_rules_dir+set}" = set; then :
17813 withval=$with_udev_rules_dir; udevdir="$withval"
17814 else
17815 udevdir="$libdir/udev/rules.d"
17816 fi
17817
17818 UDEV_RULES_DIR=${udevdir}
17819
17820 if test "x$UDEV_RULES_DIR" != "xno"; then
17821 HAS_UDEV_RULES_DIR_TRUE=
17822 HAS_UDEV_RULES_DIR_FALSE='#'
17823 else
17824 HAS_UDEV_RULES_DIR_TRUE='#'
17825 HAS_UDEV_RULES_DIR_FALSE=
17826 fi
17827
17828
17829 # Checks for extensions
17830
17831
17832 SAVE_CFLAGS="$CFLAGS"
17833 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17835 /* end confdefs.h. */
17836
17837 #include "xorg-server.h"
17838 #if !defined RANDR
17839 #error RANDR not defined
17840 #endif
17841
17842 int
17843 main ()
17844 {
17845
17846 ;
17847 return 0;
17848 }
17849 _ACEOF
17850 if ac_fn_c_try_compile "$LINENO"; then :
17851 _EXT_CHECK=yes
17852 else
17853 _EXT_CHECK=no
17854 fi
17855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17856 CFLAGS="$SAVE_CFLAGS"
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
17858 $as_echo_n "checking if RANDR is defined... " >&6; }
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17860 $as_echo "$_EXT_CHECK" >&6; }
17861 if test "$_EXT_CHECK" != no; then
17862 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
17863 fi
17864
17865
17866
17867 SAVE_CFLAGS="$CFLAGS"
17868 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17870 /* end confdefs.h. */
17871
17872 #include "xorg-server.h"
17873 #if !defined XINPUT
17874 #error XINPUT not defined
17875 #endif
17876
17877 int
17878 main ()
17879 {
17880
17881 ;
17882 return 0;
17883 }
17884 _ACEOF
17885 if ac_fn_c_try_compile "$LINENO"; then :
17886 _EXT_CHECK=yes
17887 else
17888 _EXT_CHECK=no
17889 fi
17890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17891 CFLAGS="$SAVE_CFLAGS"
17892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XINPUT is defined" >&5
17893 $as_echo_n "checking if XINPUT is defined... " >&6; }
17894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17895 $as_echo "$_EXT_CHECK" >&6; }
17896 if test "$_EXT_CHECK" != no; then
17897 REQUIRED_MODULES="$REQUIRED_MODULES inputproto"
17898 fi
17899
17900
17901 # Checks for pkg-config packages
17902 libudev_check=yes
17903
17904 # Check whether --with-libudev was given.
17905 if test "${with_libudev+set}" = set; then :
17906 withval=$with_libudev; if test x$withval = xno; then libudev_check=no; fi
17907
17908 fi
17909
17910
17911 case $host_os in
17912 linux*)
17913 if test $libudev_check != no; then
17914
17915 pkg_failed=no
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5
17917 $as_echo_n "checking for LIBUDEV... " >&6; }
17918
17919 if test -n "$LIBUDEV_CFLAGS"; then
17920 pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS"
17921 elif test -n "$PKG_CONFIG"; then
17922 if test -n "$PKG_CONFIG" && \
17923 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
17924 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
17925 ac_status=$?
17926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17927 test $ac_status = 0; }; then
17928 pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
17929 else
17930 pkg_failed=yes
17931 fi
17932 else
17933 pkg_failed=untried
17934 fi
17935 if test -n "$LIBUDEV_LIBS"; then
17936 pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS"
17937 elif test -n "$PKG_CONFIG"; then
17938 if test -n "$PKG_CONFIG" && \
17939 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
17940 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
17941 ac_status=$?
17942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17943 test $ac_status = 0; }; then
17944 pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
17945 else
17946 pkg_failed=yes
17947 fi
17948 else
17949 pkg_failed=untried
17950 fi
17951
17952
17953
17954 if test $pkg_failed = yes; then
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17956 $as_echo "no" >&6; }
17957
17958 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17959 _pkg_short_errors_supported=yes
17960 else
17961 _pkg_short_errors_supported=no
17962 fi
17963 if test $_pkg_short_errors_supported = yes; then
17964 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev" 2>&1`
17965 else
17966 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev" 2>&1`
17967 fi
17968 # Put the nasty error message in config.log where it belongs
17969 echo "$LIBUDEV_PKG_ERRORS" >&5
17970
17971 as_fn_error $? "Package requirements (libudev) were not met:
17972
17973 $LIBUDEV_PKG_ERRORS
17974
17975 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17976 installed software in a non-standard prefix.
17977
17978 Alternatively, you may set the environment variables LIBUDEV_CFLAGS
17979 and LIBUDEV_LIBS to avoid the need to call pkg-config.
17980 See the pkg-config man page for more details." "$LINENO" 5
17981
17982 elif test $pkg_failed = untried; then
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17984 $as_echo "no" >&6; }
17985 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17987 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17988 is in your PATH or set the PKG_CONFIG environment variable to the full
17989 path to pkg-config.
17990
17991 Alternatively, you may set the environment variables LIBUDEV_CFLAGS
17992 and LIBUDEV_LIBS to avoid the need to call pkg-config.
17993 See the pkg-config man page for more details.
17994
17995 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17996 See \`config.log' for more details" "$LINENO" 5; }
17997
17998 else
17999 LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS
18000 LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS
18001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18002 $as_echo "yes" >&6; }
18003
18004 $as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h
18005
18006 fi;
18007 fi
18008 for ac_func in ioperm iopl
18009 do :
18010 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18011 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18012 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18013 cat >>confdefs.h <<_ACEOF
18014 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18015 _ACEOF
18016
18017 else
18018 as_fn_error $? "" "$LINENO" 5
18019 (cannot determine how to elevate io permissions)
18020 fi
18021 done
18022
18023
18024 $as_echo "#define VMMOUSE_OS_GENERIC 1" >>confdefs.h
18025
18026 ;;
18027 *bsd*)
18028
18029 $as_echo "#define VMMOUSE_OS_BSD 1" >>confdefs.h
18030
18031 ;;
18032 solaris*)
18033 if test "x$GCC" == "xyes"; then
18034 CC="$save_solaris_cc -fms-extensions"
18035 fi
18036
18037 $as_echo "#define VMMOUSE_OS_SOLARIS 1" >>confdefs.h
18038
18039 ;;
18040 *)
18041 for ac_func in ioperm iopl
18042 do :
18043 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18044 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18045 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18046 cat >>confdefs.h <<_ACEOF
18047 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18048 _ACEOF
18049
18050 else
18051 as_fn_error $? "" "$LINENO" 5
18052 (cannot determine how to elevate io permissions)
18053 fi
18054 done
18055
18056 $as_echo "#define VMMOUSE_OS_GENERIC 1" >>confdefs.h
18057
18058 ;;
18059 esac
18060
18061 case $host_cpu in
18062 i*86)
18063 case $host_os in
18064 *freebsd*) $as_echo "#define USE_DEV_IO 1" >>confdefs.h
18065 ;;
18066 *netbsd*) $as_echo "#define USE_I386_IOPL 1" >>confdefs.h
18067
18068 use_i386_iopl=yes ;;
18069 *openbsd*) $as_echo "#define USE_I386_IOPL 1" >>confdefs.h
18070
18071 use_i386_iopl=yes ;;
18072 esac
18073 ;;
18074 x86_64*|amd64*)
18075 case $host_os in
18076 *freebsd*)
18077 $as_echo "#define USE_DEV_IO 1" >>confdefs.h
18078 ;;
18079 *netbsd*)
18080 $as_echo "#define USE_I386_IOPL 1" >>confdefs.h
18081
18082 use_i386_iopl=yes ;;
18083 *openbsd*)
18084 $as_echo "#define USE_AMD64_IOPL 1" >>confdefs.h
18085
18086 use_amd64_iopl=yes ;;
18087 esac
18088 ;;
18089 esac
18090
18091 if test x$use_i386_iopl = xyes; then
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_iopl in -li386" >&5
18093 $as_echo_n "checking for i386_iopl in -li386... " >&6; }
18094 if ${ac_cv_lib_i386_i386_iopl+:} false; then :
18095 $as_echo_n "(cached) " >&6
18096 else
18097 ac_check_lib_save_LIBS=$LIBS
18098 LIBS="-li386 $LIBS"
18099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18100 /* end confdefs.h. */
18101
18102 /* Override any GCC internal prototype to avoid an error.
18103 Use char because int might match the return type of a GCC
18104 builtin and then its argument prototype would still apply. */
18105 #ifdef __cplusplus
18106 extern "C"
18107 #endif
18108 char i386_iopl ();
18109 int
18110 main ()
18111 {
18112 return i386_iopl ();
18113 ;
18114 return 0;
18115 }
18116 _ACEOF
18117 if ac_fn_c_try_link "$LINENO"; then :
18118 ac_cv_lib_i386_i386_iopl=yes
18119 else
18120 ac_cv_lib_i386_i386_iopl=no
18121 fi
18122 rm -f core conftest.err conftest.$ac_objext \
18123 conftest$ac_exeext conftest.$ac_ext
18124 LIBS=$ac_check_lib_save_LIBS
18125 fi
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_iopl" >&5
18127 $as_echo "$ac_cv_lib_i386_i386_iopl" >&6; }
18128 if test "x$ac_cv_lib_i386_i386_iopl" = xyes; then :
18129 cat >>confdefs.h <<_ACEOF
18130 #define HAVE_LIBI386 1
18131 _ACEOF
18132
18133 LIBS="-li386 $LIBS"
18134
18135 else
18136 as_fn_error $? "cannot find library for i386_iopl" "$LINENO" 5
18137 fi
18138
18139 fi
18140
18141 if test x$use_amd64_iopl = xyes; then
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for amd64_iopl in -lamd64" >&5
18143 $as_echo_n "checking for amd64_iopl in -lamd64... " >&6; }
18144 if ${ac_cv_lib_amd64_amd64_iopl+:} false; then :
18145 $as_echo_n "(cached) " >&6
18146 else
18147 ac_check_lib_save_LIBS=$LIBS
18148 LIBS="-lamd64 $LIBS"
18149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18150 /* end confdefs.h. */
18151
18152 /* Override any GCC internal prototype to avoid an error.
18153 Use char because int might match the return type of a GCC
18154 builtin and then its argument prototype would still apply. */
18155 #ifdef __cplusplus
18156 extern "C"
18157 #endif
18158 char amd64_iopl ();
18159 int
18160 main ()
18161 {
18162 return amd64_iopl ();
18163 ;
18164 return 0;
18165 }
18166 _ACEOF
18167 if ac_fn_c_try_link "$LINENO"; then :
18168 ac_cv_lib_amd64_amd64_iopl=yes
18169 else
18170 ac_cv_lib_amd64_amd64_iopl=no
18171 fi
18172 rm -f core conftest.err conftest.$ac_objext \
18173 conftest$ac_exeext conftest.$ac_ext
18174 LIBS=$ac_check_lib_save_LIBS
18175 fi
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_amd64_amd64_iopl" >&5
18177 $as_echo "$ac_cv_lib_amd64_amd64_iopl" >&6; }
18178 if test "x$ac_cv_lib_amd64_amd64_iopl" = xyes; then :
18179 cat >>confdefs.h <<_ACEOF
18180 #define HAVE_LIBAMD64 1
18181 _ACEOF
18182
18183 LIBS="-lamd64 $LIBS"
18184
18185 else
18186 as_fn_error $? "cannot find library for amd64_iopl" "$LINENO" 5
18187 fi
18188
18189 fi
18190
18191
18192 pkg_failed=no
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18194 $as_echo_n "checking for XORG... " >&6; }
18195
18196 if test -n "$XORG_CFLAGS"; then
18197 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18198 elif test -n "$PKG_CONFIG"; then
18199 if test -n "$PKG_CONFIG" && \
18200 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.1 xproto \$REQUIRED_MODULES\""; } >&5
18201 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES") 2>&5
18202 ac_status=$?
18203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18204 test $ac_status = 0; }; then
18205 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES" 2>/dev/null`
18206 else
18207 pkg_failed=yes
18208 fi
18209 else
18210 pkg_failed=untried
18211 fi
18212 if test -n "$XORG_LIBS"; then
18213 pkg_cv_XORG_LIBS="$XORG_LIBS"
18214 elif test -n "$PKG_CONFIG"; then
18215 if test -n "$PKG_CONFIG" && \
18216 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.1 xproto \$REQUIRED_MODULES\""; } >&5
18217 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES") 2>&5
18218 ac_status=$?
18219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18220 test $ac_status = 0; }; then
18221 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES" 2>/dev/null`
18222 else
18223 pkg_failed=yes
18224 fi
18225 else
18226 pkg_failed=untried
18227 fi
18228
18229
18230
18231 if test $pkg_failed = yes; then
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18233 $as_echo "no" >&6; }
18234
18235 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18236 _pkg_short_errors_supported=yes
18237 else
18238 _pkg_short_errors_supported=no
18239 fi
18240 if test $_pkg_short_errors_supported = yes; then
18241 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES" 2>&1`
18242 else
18243 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES" 2>&1`
18244 fi
18245 # Put the nasty error message in config.log where it belongs
18246 echo "$XORG_PKG_ERRORS" >&5
18247
18248 as_fn_error $? "Package requirements (xorg-server >= 1.0.1 xproto $REQUIRED_MODULES) were not met:
18249
18250 $XORG_PKG_ERRORS
18251
18252 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18253 installed software in a non-standard prefix.
18254
18255 Alternatively, you may set the environment variables XORG_CFLAGS
18256 and XORG_LIBS to avoid the need to call pkg-config.
18257 See the pkg-config man page for more details." "$LINENO" 5
18258
18259 elif test $pkg_failed = untried; then
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18261 $as_echo "no" >&6; }
18262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18264 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18265 is in your PATH or set the PKG_CONFIG environment variable to the full
18266 path to pkg-config.
18267
18268 Alternatively, you may set the environment variables XORG_CFLAGS
18269 and XORG_LIBS to avoid the need to call pkg-config.
18270 See the pkg-config man page for more details.
18271
18272 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18273 See \`config.log' for more details" "$LINENO" 5; }
18274
18275 else
18276 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18277 XORG_LIBS=$pkg_cv_XORG_LIBS
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18279 $as_echo "yes" >&6; }
18280
18281 fi
18282
18283 if test -n "$PKG_CONFIG" && \
18284 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0\""; } >&5
18285 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0") 2>&5
18286 ac_status=$?
18287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18288 test $ac_status = 0; }; then
18289
18290 $as_echo "#define HAVE_XORG_SERVER_1_1_0 1" >>confdefs.h
18291
18292 fi
18293
18294 if test -n "$PKG_CONFIG" && \
18295 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server > 1.4.99\""; } >&5
18296 ($PKG_CONFIG --exists --print-errors "xorg-server > 1.4.99") 2>&5
18297 ac_status=$?
18298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18299 test $ac_status = 0; }; then
18300
18301 $as_echo "#define HAVE_XORG_SERVER_1_5_0 1" >>confdefs.h
18302
18303 fi
18304
18305 if test -n "$PKG_CONFIG" && \
18306 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.3.99.0 xorg-server <= 1.4.0.90\""; } >&5
18307 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.3.99.0 xorg-server <= 1.4.0.90") 2>&5
18308 ac_status=$?
18309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18310 test $ac_status = 0; }; then
18311
18312 $as_echo "#define CALL_CONVERSION_PROC 1" >>confdefs.h
18313
18314 fi
18315 if test -n "$PKG_CONFIG" && \
18316 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server > 1.4.0.90\""; } >&5
18317 ($PKG_CONFIG --exists --print-errors "xorg-server > 1.4.0.90") 2>&5
18318 ac_status=$?
18319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18320 test $ac_status = 0; }; then
18321
18322 $as_echo "#define ABS_VALUATOR_AXES 1" >>confdefs.h
18323
18324 fi
18325 if test -n "$PKG_CONFIG" && \
18326 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6.0\""; } >&5
18327 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6.0") 2>&5
18328 ac_status=$?
18329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18330 test $ac_status = 0; }; then
18331
18332 $as_echo "#define NO_MOUSE_MODULE 1" >>confdefs.h
18333
18334 fi
18335
18336 # Checks for libraries.
18337
18338 # Checks for header files.
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18340 $as_echo_n "checking for ANSI C header files... " >&6; }
18341 if ${ac_cv_header_stdc+:} false; then :
18342 $as_echo_n "(cached) " >&6
18343 else
18344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18345 /* end confdefs.h. */
18346 #include <stdlib.h>
18347 #include <stdarg.h>
18348 #include <string.h>
18349 #include <float.h>
18350
18351 int
18352 main ()
18353 {
18354
18355 ;
18356 return 0;
18357 }
18358 _ACEOF
18359 if ac_fn_c_try_compile "$LINENO"; then :
18360 ac_cv_header_stdc=yes
18361 else
18362 ac_cv_header_stdc=no
18363 fi
18364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18365
18366 if test $ac_cv_header_stdc = yes; then
18367 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18369 /* end confdefs.h. */
18370 #include <string.h>
18371
18372 _ACEOF
18373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18374 $EGREP "memchr" >/dev/null 2>&1; then :
18375
18376 else
18377 ac_cv_header_stdc=no
18378 fi
18379 rm -f conftest*
18380
18381 fi
18382
18383 if test $ac_cv_header_stdc = yes; then
18384 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18386 /* end confdefs.h. */
18387 #include <stdlib.h>
18388
18389 _ACEOF
18390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18391 $EGREP "free" >/dev/null 2>&1; then :
18392
18393 else
18394 ac_cv_header_stdc=no
18395 fi
18396 rm -f conftest*
18397
18398 fi
18399
18400 if test $ac_cv_header_stdc = yes; then
18401 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18402 if test "$cross_compiling" = yes; then :
18403 :
18404 else
18405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18406 /* end confdefs.h. */
18407 #include <ctype.h>
18408 #include <stdlib.h>
18409 #if ((' ' & 0x0FF) == 0x020)
18410 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18411 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18412 #else
18413 # define ISLOWER(c) \
18414 (('a' <= (c) && (c) <= 'i') \
18415 || ('j' <= (c) && (c) <= 'r') \
18416 || ('s' <= (c) && (c) <= 'z'))
18417 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18418 #endif
18419
18420 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18421 int
18422 main ()
18423 {
18424 int i;
18425 for (i = 0; i < 256; i++)
18426 if (XOR (islower (i), ISLOWER (i))
18427 || toupper (i) != TOUPPER (i))
18428 return 2;
18429 return 0;
18430 }
18431 _ACEOF
18432 if ac_fn_c_try_run "$LINENO"; then :
18433
18434 else
18435 ac_cv_header_stdc=no
18436 fi
18437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18438 conftest.$ac_objext conftest.beam conftest.$ac_ext
18439 fi
18440
18441 fi
18442 fi
18443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18444 $as_echo "$ac_cv_header_stdc" >&6; }
18445 if test $ac_cv_header_stdc = yes; then
18446
18447 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
18448
18449 fi
18450
18451
18452 ac_config_files="$ac_config_files Makefile shared/Makefile src/Makefile tools/Makefile fdi/Makefile man/Makefile"
18453
18454
18455 cat >confcache <<\_ACEOF
18456 # This file is a shell script that caches the results of configure
18457 # tests run on this system so they can be shared between configure
18458 # scripts and configure runs, see configure's option --config-cache.
18459 # It is not useful on other systems. If it contains results you don't
18460 # want to keep, you may remove or edit it.
18461 #
18462 # config.status only pays attention to the cache file if you give it
18463 # the --recheck option to rerun configure.
18464 #
18465 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18466 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18467 # following values.
18468
18469 _ACEOF
18470
18471 # The following way of writing the cache mishandles newlines in values,
18472 # but we know of no workaround that is simple, portable, and efficient.
18473 # So, we kill variables containing newlines.
18474 # Ultrix sh set writes to stderr and can't be redirected directly,
18475 # and sets the high bit in the cache file unless we assign to the vars.
18476 (
18477 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18478 eval ac_val=\$$ac_var
18479 case $ac_val in #(
18480 *${as_nl}*)
18481 case $ac_var in #(
18482 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18483 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18484 esac
18485 case $ac_var in #(
18486 _ | IFS | as_nl) ;; #(
18487 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18488 *) { eval $ac_var=; unset $ac_var;} ;;
18489 esac ;;
18490 esac
18491 done
18492
18493 (set) 2>&1 |
18494 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18495 *${as_nl}ac_space=\ *)
18496 # `set' does not quote correctly, so add quotes: double-quote
18497 # substitution turns \\\\ into \\, and sed turns \\ into \.
18498 sed -n \
18499 "s/'/'\\\\''/g;
18500 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18501 ;; #(
18502 *)
18503 # `set' quotes correctly as required by POSIX, so do not add quotes.
18504 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18505 ;;
18506 esac |
18507 sort
18508 ) |
18509 sed '
18510 /^ac_cv_env_/b end
18511 t clear
18512 :clear
18513 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18514 t end
18515 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18516 :end' >>confcache
18517 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18518 if test -w "$cache_file"; then
18519 if test "x$cache_file" != "x/dev/null"; then
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18521 $as_echo "$as_me: updating cache $cache_file" >&6;}
18522 if test ! -f "$cache_file" || test -h "$cache_file"; then
18523 cat confcache >"$cache_file"
18524 else
18525 case $cache_file in #(
18526 */* | ?:*)
18527 mv -f confcache "$cache_file"$$ &&
18528 mv -f "$cache_file"$$ "$cache_file" ;; #(
18529 *)
18530 mv -f confcache "$cache_file" ;;
18531 esac
18532 fi
18533 fi
18534 else
18535 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18536 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18537 fi
18538 fi
18539 rm -f confcache
18540
18541 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18542 # Let make expand exec_prefix.
18543 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18544
18545 DEFS=-DHAVE_CONFIG_H
18546
18547 ac_libobjs=
18548 ac_ltlibobjs=
18549 U=
18550 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18551 # 1. Remove the extension, and $U if already installed.
18552 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18553 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18554 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18555 # will be set to the directory where LIBOBJS objects are built.
18556 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18557 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18558 done
18559 LIBOBJS=$ac_libobjs
18560
18561 LTLIBOBJS=$ac_ltlibobjs
18562
18563
18564 if test -n "$EXEEXT"; then
18565 am__EXEEXT_TRUE=
18566 am__EXEEXT_FALSE='#'
18567 else
18568 am__EXEEXT_TRUE='#'
18569 am__EXEEXT_FALSE=
18570 fi
18571
18572 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18573 as_fn_error $? "conditional \"AMDEP\" was never defined.
18574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18575 fi
18576 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18577 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18578 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18579 fi
18580 if test -z "${HAS_XORG_CONF_DIR_TRUE}" && test -z "${HAS_XORG_CONF_DIR_FALSE}"; then
18581 as_fn_error $? "conditional \"HAS_XORG_CONF_DIR\" was never defined.
18582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18583 fi
18584 if test -z "${HAS_UDEV_RULES_DIR_TRUE}" && test -z "${HAS_UDEV_RULES_DIR_FALSE}"; then
18585 as_fn_error $? "conditional \"HAS_UDEV_RULES_DIR\" was never defined.
18586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18587 fi
18588
18589 : "${CONFIG_STATUS=./config.status}"
18590 ac_write_fail=0
18591 ac_clean_files_save=$ac_clean_files
18592 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18594 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18595 as_write_fail=0
18596 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18597 #! $SHELL
18598 # Generated by $as_me.
18599 # Run this file to recreate the current configuration.
18600 # Compiler output produced by configure, useful for debugging
18601 # configure, is in config.log if it exists.
18602
18603 debug=false
18604 ac_cs_recheck=false
18605 ac_cs_silent=false
18606
18607 SHELL=\${CONFIG_SHELL-$SHELL}
18608 export SHELL
18609 _ASEOF
18610 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18611 ## -------------------- ##
18612 ## M4sh Initialization. ##
18613 ## -------------------- ##
18614
18615 # Be more Bourne compatible
18616 DUALCASE=1; export DUALCASE # for MKS sh
18617 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18618 emulate sh
18619 NULLCMD=:
18620 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18621 # is contrary to our usage. Disable this feature.
18622 alias -g '${1+"$@"}'='"$@"'
18623 setopt NO_GLOB_SUBST
18624 else
18625 case `(set -o) 2>/dev/null` in #(
18626 *posix*) :
18627 set -o posix ;; #(
18628 *) :
18629 ;;
18630 esac
18631 fi
18632
18633
18634 as_nl='
18635 '
18636 export as_nl
18637 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18638 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18639 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18640 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18641 # Prefer a ksh shell builtin over an external printf program on Solaris,
18642 # but without wasting forks for bash or zsh.
18643 if test -z "$BASH_VERSION$ZSH_VERSION" \
18644 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18645 as_echo='print -r --'
18646 as_echo_n='print -rn --'
18647 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18648 as_echo='printf %s\n'
18649 as_echo_n='printf %s'
18650 else
18651 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18652 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18653 as_echo_n='/usr/ucb/echo -n'
18654 else
18655 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18656 as_echo_n_body='eval
18657 arg=$1;
18658 case $arg in #(
18659 *"$as_nl"*)
18660 expr "X$arg" : "X\\(.*\\)$as_nl";
18661 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18662 esac;
18663 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18664 '
18665 export as_echo_n_body
18666 as_echo_n='sh -c $as_echo_n_body as_echo'
18667 fi
18668 export as_echo_body
18669 as_echo='sh -c $as_echo_body as_echo'
18670 fi
18671
18672 # The user is always right.
18673 if test "${PATH_SEPARATOR+set}" != set; then
18674 PATH_SEPARATOR=:
18675 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18676 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18677 PATH_SEPARATOR=';'
18678 }
18679 fi
18680
18681
18682 # IFS
18683 # We need space, tab and new line, in precisely that order. Quoting is
18684 # there to prevent editors from complaining about space-tab.
18685 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18686 # splitting by setting IFS to empty value.)
18687 IFS=" "" $as_nl"
18688
18689 # Find who we are. Look in the path if we contain no directory separator.
18690 as_myself=
18691 case $0 in #((
18692 *[\\/]* ) as_myself=$0 ;;
18693 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18694 for as_dir in $PATH
18695 do
18696 IFS=$as_save_IFS
18697 test -z "$as_dir" && as_dir=.
18698 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18699 done
18700 IFS=$as_save_IFS
18701
18702 ;;
18703 esac
18704 # We did not find ourselves, most probably we were run as `sh COMMAND'
18705 # in which case we are not to be found in the path.
18706 if test "x$as_myself" = x; then
18707 as_myself=$0
18708 fi
18709 if test ! -f "$as_myself"; then
18710 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18711 exit 1
18712 fi
18713
18714 # Unset variables that we do not need and which cause bugs (e.g. in
18715 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18716 # suppresses any "Segmentation fault" message there. '((' could
18717 # trigger a bug in pdksh 5.2.14.
18718 for as_var in BASH_ENV ENV MAIL MAILPATH
18719 do eval test x\${$as_var+set} = xset \
18720 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18721 done
18722 PS1='$ '
18723 PS2='> '
18724 PS4='+ '
18725
18726 # NLS nuisances.
18727 LC_ALL=C
18728 export LC_ALL
18729 LANGUAGE=C
18730 export LANGUAGE
18731
18732 # CDPATH.
18733 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18734
18735
18736 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18737 # ----------------------------------------
18738 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18739 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18740 # script with STATUS, using 1 if that was 0.
18741 as_fn_error ()
18742 {
18743 as_status=$1; test $as_status -eq 0 && as_status=1
18744 if test "$4"; then
18745 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18746 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18747 fi
18748 $as_echo "$as_me: error: $2" >&2
18749 as_fn_exit $as_status
18750 } # as_fn_error
18751
18752
18753 # as_fn_set_status STATUS
18754 # -----------------------
18755 # Set $? to STATUS, without forking.
18756 as_fn_set_status ()
18757 {
18758 return $1
18759 } # as_fn_set_status
18760
18761 # as_fn_exit STATUS
18762 # -----------------
18763 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18764 as_fn_exit ()
18765 {
18766 set +e
18767 as_fn_set_status $1
18768 exit $1
18769 } # as_fn_exit
18770
18771 # as_fn_unset VAR
18772 # ---------------
18773 # Portably unset VAR.
18774 as_fn_unset ()
18775 {
18776 { eval $1=; unset $1;}
18777 }
18778 as_unset=as_fn_unset
18779 # as_fn_append VAR VALUE
18780 # ----------------------
18781 # Append the text in VALUE to the end of the definition contained in VAR. Take
18782 # advantage of any shell optimizations that allow amortized linear growth over
18783 # repeated appends, instead of the typical quadratic growth present in naive
18784 # implementations.
18785 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18786 eval 'as_fn_append ()
18787 {
18788 eval $1+=\$2
18789 }'
18790 else
18791 as_fn_append ()
18792 {
18793 eval $1=\$$1\$2
18794 }
18795 fi # as_fn_append
18796
18797 # as_fn_arith ARG...
18798 # ------------------
18799 # Perform arithmetic evaluation on the ARGs, and store the result in the
18800 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18801 # must be portable across $(()) and expr.
18802 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18803 eval 'as_fn_arith ()
18804 {
18805 as_val=$(( $* ))
18806 }'
18807 else
18808 as_fn_arith ()
18809 {
18810 as_val=`expr "$@" || test $? -eq 1`
18811 }
18812 fi # as_fn_arith
18813
18814
18815 if expr a : '\(a\)' >/dev/null 2>&1 &&
18816 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18817 as_expr=expr
18818 else
18819 as_expr=false
18820 fi
18821
18822 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18823 as_basename=basename
18824 else
18825 as_basename=false
18826 fi
18827
18828 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18829 as_dirname=dirname
18830 else
18831 as_dirname=false
18832 fi
18833
18834 as_me=`$as_basename -- "$0" ||
18835 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18836 X"$0" : 'X\(//\)$' \| \
18837 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18838 $as_echo X/"$0" |
18839 sed '/^.*\/\([^/][^/]*\)\/*$/{
18840 s//\1/
18841 q
18842 }
18843 /^X\/\(\/\/\)$/{
18844 s//\1/
18845 q
18846 }
18847 /^X\/\(\/\).*/{
18848 s//\1/
18849 q
18850 }
18851 s/.*/./; q'`
18852
18853 # Avoid depending upon Character Ranges.
18854 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18855 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18856 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18857 as_cr_digits='0123456789'
18858 as_cr_alnum=$as_cr_Letters$as_cr_digits
18859
18860 ECHO_C= ECHO_N= ECHO_T=
18861 case `echo -n x` in #(((((
18862 -n*)
18863 case `echo 'xy\c'` in
18864 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18865 xy) ECHO_C='\c';;
18866 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18867 ECHO_T=' ';;
18868 esac;;
18869 *)
18870 ECHO_N='-n';;
18871 esac
18872
18873 rm -f conf$$ conf$$.exe conf$$.file
18874 if test -d conf$$.dir; then
18875 rm -f conf$$.dir/conf$$.file
18876 else
18877 rm -f conf$$.dir
18878 mkdir conf$$.dir 2>/dev/null
18879 fi
18880 if (echo >conf$$.file) 2>/dev/null; then
18881 if ln -s conf$$.file conf$$ 2>/dev/null; then
18882 as_ln_s='ln -s'
18883 # ... but there are two gotchas:
18884 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18885 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18886 # In both cases, we have to default to `cp -p'.
18887 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18888 as_ln_s='cp -p'
18889 elif ln conf$$.file conf$$ 2>/dev/null; then
18890 as_ln_s=ln
18891 else
18892 as_ln_s='cp -p'
18893 fi
18894 else
18895 as_ln_s='cp -p'
18896 fi
18897 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18898 rmdir conf$$.dir 2>/dev/null
18899
18900
18901 # as_fn_mkdir_p
18902 # -------------
18903 # Create "$as_dir" as a directory, including parents if necessary.
18904 as_fn_mkdir_p ()
18905 {
18906
18907 case $as_dir in #(
18908 -*) as_dir=./$as_dir;;
18909 esac
18910 test -d "$as_dir" || eval $as_mkdir_p || {
18911 as_dirs=
18912 while :; do
18913 case $as_dir in #(
18914 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18915 *) as_qdir=$as_dir;;
18916 esac
18917 as_dirs="'$as_qdir' $as_dirs"
18918 as_dir=`$as_dirname -- "$as_dir" ||
18919 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18920 X"$as_dir" : 'X\(//\)[^/]' \| \
18921 X"$as_dir" : 'X\(//\)$' \| \
18922 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18923 $as_echo X"$as_dir" |
18924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18925 s//\1/
18926 q
18927 }
18928 /^X\(\/\/\)[^/].*/{
18929 s//\1/
18930 q
18931 }
18932 /^X\(\/\/\)$/{
18933 s//\1/
18934 q
18935 }
18936 /^X\(\/\).*/{
18937 s//\1/
18938 q
18939 }
18940 s/.*/./; q'`
18941 test -d "$as_dir" && break
18942 done
18943 test -z "$as_dirs" || eval "mkdir $as_dirs"
18944 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18945
18946
18947 } # as_fn_mkdir_p
18948 if mkdir -p . 2>/dev/null; then
18949 as_mkdir_p='mkdir -p "$as_dir"'
18950 else
18951 test -d ./-p && rmdir ./-p
18952 as_mkdir_p=false
18953 fi
18954
18955 if test -x / >/dev/null 2>&1; then
18956 as_test_x='test -x'
18957 else
18958 if ls -dL / >/dev/null 2>&1; then
18959 as_ls_L_option=L
18960 else
18961 as_ls_L_option=
18962 fi
18963 as_test_x='
18964 eval sh -c '\''
18965 if test -d "$1"; then
18966 test -d "$1/.";
18967 else
18968 case $1 in #(
18969 -*)set "./$1";;
18970 esac;
18971 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18972 ???[sx]*):;;*)false;;esac;fi
18973 '\'' sh
18974 '
18975 fi
18976 as_executable_p=$as_test_x
18977
18978 # Sed expression to map a string onto a valid CPP name.
18979 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18980
18981 # Sed expression to map a string onto a valid variable name.
18982 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18983
18984
18985 exec 6>&1
18986 ## ----------------------------------- ##
18987 ## Main body of $CONFIG_STATUS script. ##
18988 ## ----------------------------------- ##
18989 _ASEOF
18990 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18991
18992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18993 # Save the log message, to keep $0 and so on meaningful, and to
18994 # report actual input values of CONFIG_FILES etc. instead of their
18995 # values after options handling.
18996 ac_log="
18997 This file was extended by xf86-input-vmmouse $as_me 13.1.0, which was
18998 generated by GNU Autoconf 2.68. Invocation command line was
18999
19000 CONFIG_FILES = $CONFIG_FILES
19001 CONFIG_HEADERS = $CONFIG_HEADERS
19002 CONFIG_LINKS = $CONFIG_LINKS
19003 CONFIG_COMMANDS = $CONFIG_COMMANDS
19004 $ $0 $@
19005
19006 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19007 "
19008
19009 _ACEOF
19010
19011 case $ac_config_files in *"
19012 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19013 esac
19014
19015 case $ac_config_headers in *"
19016 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19017 esac
19018
19019
19020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19021 # Files that config.status was made for.
19022 config_files="$ac_config_files"
19023 config_headers="$ac_config_headers"
19024 config_commands="$ac_config_commands"
19025
19026 _ACEOF
19027
19028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19029 ac_cs_usage="\
19030 \`$as_me' instantiates files and other configuration actions
19031 from templates according to the current configuration. Unless the files
19032 and actions are specified as TAGs, all are instantiated by default.
19033
19034 Usage: $0 [OPTION]... [TAG]...
19035
19036 -h, --help print this help, then exit
19037 -V, --version print version number and configuration settings, then exit
19038 --config print configuration, then exit
19039 -q, --quiet, --silent
19040 do not print progress messages
19041 -d, --debug don't remove temporary files
19042 --recheck update $as_me by reconfiguring in the same conditions
19043 --file=FILE[:TEMPLATE]
19044 instantiate the configuration file FILE
19045 --header=FILE[:TEMPLATE]
19046 instantiate the configuration header FILE
19047
19048 Configuration files:
19049 $config_files
19050
19051 Configuration headers:
19052 $config_headers
19053
19054 Configuration commands:
19055 $config_commands
19056
19057 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19058
19059 _ACEOF
19060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19061 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19062 ac_cs_version="\\
19063 xf86-input-vmmouse config.status 13.1.0
19064 configured by $0, generated by GNU Autoconf 2.68,
19065 with options \\"\$ac_cs_config\\"
19066
19067 Copyright (C) 2010 Free Software Foundation, Inc.
19068 This config.status script is free software; the Free Software Foundation
19069 gives unlimited permission to copy, distribute and modify it."
19070
19071 ac_pwd='$ac_pwd'
19072 srcdir='$srcdir'
19073 INSTALL='$INSTALL'
19074 MKDIR_P='$MKDIR_P'
19075 AWK='$AWK'
19076 test -n "\$AWK" || AWK=awk
19077 _ACEOF
19078
19079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19080 # The default lists apply if the user does not specify any file.
19081 ac_need_defaults=:
19082 while test $# != 0
19083 do
19084 case $1 in
19085 --*=?*)
19086 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19087 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19088 ac_shift=:
19089 ;;
19090 --*=)
19091 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19092 ac_optarg=
19093 ac_shift=:
19094 ;;
19095 *)
19096 ac_option=$1
19097 ac_optarg=$2
19098 ac_shift=shift
19099 ;;
19100 esac
19101
19102 case $ac_option in
19103 # Handling of the options.
19104 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19105 ac_cs_recheck=: ;;
19106 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19107 $as_echo "$ac_cs_version"; exit ;;
19108 --config | --confi | --conf | --con | --co | --c )
19109 $as_echo "$ac_cs_config"; exit ;;
19110 --debug | --debu | --deb | --de | --d | -d )
19111 debug=: ;;
19112 --file | --fil | --fi | --f )
19113 $ac_shift
19114 case $ac_optarg in
19115 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19116 '') as_fn_error $? "missing file argument" ;;
19117 esac
19118 as_fn_append CONFIG_FILES " '$ac_optarg'"
19119 ac_need_defaults=false;;
19120 --header | --heade | --head | --hea )
19121 $ac_shift
19122 case $ac_optarg in
19123 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19124 esac
19125 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19126 ac_need_defaults=false;;
19127 --he | --h)
19128 # Conflict between --help and --header
19129 as_fn_error $? "ambiguous option: \`$1'
19130 Try \`$0 --help' for more information.";;
19131 --help | --hel | -h )
19132 $as_echo "$ac_cs_usage"; exit ;;
19133 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19134 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19135 ac_cs_silent=: ;;
19136
19137 # This is an error.
19138 -*) as_fn_error $? "unrecognized option: \`$1'
19139 Try \`$0 --help' for more information." ;;
19140
19141 *) as_fn_append ac_config_targets " $1"
19142 ac_need_defaults=false ;;
19143
19144 esac
19145 shift
19146 done
19147
19148 ac_configure_extra_args=
19149
19150 if $ac_cs_silent; then
19151 exec 6>/dev/null
19152 ac_configure_extra_args="$ac_configure_extra_args --silent"
19153 fi
19154
19155 _ACEOF
19156 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19157 if \$ac_cs_recheck; then
19158 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19159 shift
19160 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19161 CONFIG_SHELL='$SHELL'
19162 export CONFIG_SHELL
19163 exec "\$@"
19164 fi
19165
19166 _ACEOF
19167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19168 exec 5>>config.log
19169 {
19170 echo
19171 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19172 ## Running $as_me. ##
19173 _ASBOX
19174 $as_echo "$ac_log"
19175 } >&5
19176
19177 _ACEOF
19178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19179 #
19180 # INIT-COMMANDS
19181 #
19182 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19183
19184
19185 # The HP-UX ksh and POSIX shell print the target directory to stdout
19186 # if CDPATH is set.
19187 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19188
19189 sed_quote_subst='$sed_quote_subst'
19190 double_quote_subst='$double_quote_subst'
19191 delay_variable_subst='$delay_variable_subst'
19192 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19193 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19194 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19195 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19196 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19197 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19198 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19199 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19200 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19201 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19202 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19203 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19204 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19205 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19206 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19207 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19208 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19209 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19210 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19211 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19212 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19213 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19214 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19215 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19216 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19217 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19218 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19219 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19220 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19221 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19222 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19223 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19224 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19225 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19226 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19227 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19228 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19229 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19230 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19231 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19232 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19233 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19234 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19235 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19236 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19237 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19238 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19239 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19240 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19241 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19242 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19243 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19244 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19245 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19246 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19247 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19248 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"`'
19249 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19250 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19251 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19252 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19253 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19254 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19255 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19256 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19257 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19258 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19259 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19260 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19261 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19262 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19263 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19264 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19265 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19266 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19267 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19268 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19269 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19270 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19271 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19272 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19273 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19274 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19275 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19276 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19277 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19278 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19279 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19280 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19281 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19282 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19283 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19284 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19285 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19286 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19287 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19288 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19289 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19290 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19291 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19292 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19293 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19294 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19295 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19296 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19297 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19298 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19299 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19300 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19301 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19302 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19303 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19304 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19305 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19306 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19307 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19308 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19309 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19310 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19311 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19312 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19313 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19314 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19315 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19316 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19317 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19318 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19319 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19320 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19321 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19322
19323 LTCC='$LTCC'
19324 LTCFLAGS='$LTCFLAGS'
19325 compiler='$compiler_DEFAULT'
19326
19327 # A function that is used when there is no print builtin or printf.
19328 func_fallback_echo ()
19329 {
19330 eval 'cat <<_LTECHO_EOF
19331 \$1
19332 _LTECHO_EOF'
19333 }
19334
19335 # Quote evaled strings.
19336 for var in SHELL \
19337 ECHO \
19338 PATH_SEPARATOR \
19339 SED \
19340 GREP \
19341 EGREP \
19342 FGREP \
19343 LD \
19344 NM \
19345 LN_S \
19346 lt_SP2NL \
19347 lt_NL2SP \
19348 reload_flag \
19349 OBJDUMP \
19350 deplibs_check_method \
19351 file_magic_cmd \
19352 file_magic_glob \
19353 want_nocaseglob \
19354 DLLTOOL \
19355 sharedlib_from_linklib_cmd \
19356 AR \
19357 AR_FLAGS \
19358 archiver_list_spec \
19359 STRIP \
19360 RANLIB \
19361 CC \
19362 CFLAGS \
19363 compiler \
19364 lt_cv_sys_global_symbol_pipe \
19365 lt_cv_sys_global_symbol_to_cdecl \
19366 lt_cv_sys_global_symbol_to_c_name_address \
19367 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19368 nm_file_list_spec \
19369 lt_prog_compiler_no_builtin_flag \
19370 lt_prog_compiler_pic \
19371 lt_prog_compiler_wl \
19372 lt_prog_compiler_static \
19373 lt_cv_prog_compiler_c_o \
19374 need_locks \
19375 MANIFEST_TOOL \
19376 DSYMUTIL \
19377 NMEDIT \
19378 LIPO \
19379 OTOOL \
19380 OTOOL64 \
19381 shrext_cmds \
19382 export_dynamic_flag_spec \
19383 whole_archive_flag_spec \
19384 compiler_needs_object \
19385 with_gnu_ld \
19386 allow_undefined_flag \
19387 no_undefined_flag \
19388 hardcode_libdir_flag_spec \
19389 hardcode_libdir_separator \
19390 exclude_expsyms \
19391 include_expsyms \
19392 file_list_spec \
19393 variables_saved_for_relink \
19394 libname_spec \
19395 library_names_spec \
19396 soname_spec \
19397 install_override_mode \
19398 finish_eval \
19399 old_striplib \
19400 striplib; do
19401 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19402 *[\\\\\\\`\\"\\\$]*)
19403 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19404 ;;
19405 *)
19406 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19407 ;;
19408 esac
19409 done
19410
19411 # Double-quote double-evaled strings.
19412 for var in reload_cmds \
19413 old_postinstall_cmds \
19414 old_postuninstall_cmds \
19415 old_archive_cmds \
19416 extract_expsyms_cmds \
19417 old_archive_from_new_cmds \
19418 old_archive_from_expsyms_cmds \
19419 archive_cmds \
19420 archive_expsym_cmds \
19421 module_cmds \
19422 module_expsym_cmds \
19423 export_symbols_cmds \
19424 prelink_cmds \
19425 postlink_cmds \
19426 postinstall_cmds \
19427 postuninstall_cmds \
19428 finish_cmds \
19429 sys_lib_search_path_spec \
19430 sys_lib_dlsearch_path_spec; do
19431 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19432 *[\\\\\\\`\\"\\\$]*)
19433 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19434 ;;
19435 *)
19436 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19437 ;;
19438 esac
19439 done
19440
19441 ac_aux_dir='$ac_aux_dir'
19442 xsi_shell='$xsi_shell'
19443 lt_shell_append='$lt_shell_append'
19444
19445 # See if we are running on zsh, and set the options which allow our
19446 # commands through without removal of \ escapes INIT.
19447 if test -n "\${ZSH_VERSION+set}" ; then
19448 setopt NO_GLOB_SUBST
19449 fi
19450
19451
19452 PACKAGE='$PACKAGE'
19453 VERSION='$VERSION'
19454 TIMESTAMP='$TIMESTAMP'
19455 RM='$RM'
19456 ofile='$ofile'
19457
19458
19459
19460
19461 _ACEOF
19462
19463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19464
19465 # Handling of arguments.
19466 for ac_config_target in $ac_config_targets
19467 do
19468 case $ac_config_target in
19469 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19470 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19471 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19472 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19473 "shared/Makefile") CONFIG_FILES="$CONFIG_FILES shared/Makefile" ;;
19474 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19475 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
19476 "fdi/Makefile") CONFIG_FILES="$CONFIG_FILES fdi/Makefile" ;;
19477 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19478
19479 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19480 esac
19481 done
19482
19483
19484 # If the user did not use the arguments to specify the items to instantiate,
19485 # then the envvar interface is used. Set only those that are not.
19486 # We use the long form for the default assignment because of an extremely
19487 # bizarre bug on SunOS 4.1.3.
19488 if $ac_need_defaults; then
19489 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19490 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19491 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19492 fi
19493
19494 # Have a temporary directory for convenience. Make it in the build tree
19495 # simply because there is no reason against having it here, and in addition,
19496 # creating and moving files from /tmp can sometimes cause problems.
19497 # Hook for its removal unless debugging.
19498 # Note that there is a small window in which the directory will not be cleaned:
19499 # after its creation but before its name has been assigned to `$tmp'.
19500 $debug ||
19501 {
19502 tmp= ac_tmp=
19503 trap 'exit_status=$?
19504 : "${ac_tmp:=$tmp}"
19505 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19506 ' 0
19507 trap 'as_fn_exit 1' 1 2 13 15
19508 }
19509 # Create a (secure) tmp directory for tmp files.
19510
19511 {
19512 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19513 test -d "$tmp"
19514 } ||
19515 {
19516 tmp=./conf$$-$RANDOM
19517 (umask 077 && mkdir "$tmp")
19518 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19519 ac_tmp=$tmp
19520
19521 # Set up the scripts for CONFIG_FILES section.
19522 # No need to generate them if there are no CONFIG_FILES.
19523 # This happens for instance with `./config.status config.h'.
19524 if test -n "$CONFIG_FILES"; then
19525
19526
19527 ac_cr=`echo X | tr X '\015'`
19528 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19529 # But we know of no other shell where ac_cr would be empty at this
19530 # point, so we can use a bashism as a fallback.
19531 if test "x$ac_cr" = x; then
19532 eval ac_cr=\$\'\\r\'
19533 fi
19534 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19535 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19536 ac_cs_awk_cr='\\r'
19537 else
19538 ac_cs_awk_cr=$ac_cr
19539 fi
19540
19541 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19542 _ACEOF
19543
19544
19545 {
19546 echo "cat >conf$$subs.awk <<_ACEOF" &&
19547 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19548 echo "_ACEOF"
19549 } >conf$$subs.sh ||
19550 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19551 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19552 ac_delim='%!_!# '
19553 for ac_last_try in false false false false false :; do
19554 . ./conf$$subs.sh ||
19555 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19556
19557 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19558 if test $ac_delim_n = $ac_delim_num; then
19559 break
19560 elif $ac_last_try; then
19561 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19562 else
19563 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19564 fi
19565 done
19566 rm -f conf$$subs.sh
19567
19568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19569 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19570 _ACEOF
19571 sed -n '
19572 h
19573 s/^/S["/; s/!.*/"]=/
19574 p
19575 g
19576 s/^[^!]*!//
19577 :repl
19578 t repl
19579 s/'"$ac_delim"'$//
19580 t delim
19581 :nl
19582 h
19583 s/\(.\{148\}\)..*/\1/
19584 t more1
19585 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19586 p
19587 n
19588 b repl
19589 :more1
19590 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19591 p
19592 g
19593 s/.\{148\}//
19594 t nl
19595 :delim
19596 h
19597 s/\(.\{148\}\)..*/\1/
19598 t more2
19599 s/["\\]/\\&/g; s/^/"/; s/$/"/
19600 p
19601 b
19602 :more2
19603 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19604 p
19605 g
19606 s/.\{148\}//
19607 t delim
19608 ' <conf$$subs.awk | sed '
19609 /^[^""]/{
19610 N
19611 s/\n//
19612 }
19613 ' >>$CONFIG_STATUS || ac_write_fail=1
19614 rm -f conf$$subs.awk
19615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19616 _ACAWK
19617 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19618 for (key in S) S_is_set[key] = 1
19619 FS = ""
19620
19621 }
19622 {
19623 line = $ 0
19624 nfields = split(line, field, "@")
19625 substed = 0
19626 len = length(field[1])
19627 for (i = 2; i < nfields; i++) {
19628 key = field[i]
19629 keylen = length(key)
19630 if (S_is_set[key]) {
19631 value = S[key]
19632 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19633 len += length(value) + length(field[++i])
19634 substed = 1
19635 } else
19636 len += 1 + keylen
19637 }
19638
19639 print line
19640 }
19641
19642 _ACAWK
19643 _ACEOF
19644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19645 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19646 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19647 else
19648 cat
19649 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19650 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19651 _ACEOF
19652
19653 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19654 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19655 # trailing colons and then remove the whole line if VPATH becomes empty
19656 # (actually we leave an empty line to preserve line numbers).
19657 if test "x$srcdir" = x.; then
19658 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19659 h
19660 s///
19661 s/^/:/
19662 s/[ ]*$/:/
19663 s/:\$(srcdir):/:/g
19664 s/:\${srcdir}:/:/g
19665 s/:@srcdir@:/:/g
19666 s/^:*//
19667 s/:*$//
19668 x
19669 s/\(=[ ]*\).*/\1/
19670 G
19671 s/\n//
19672 s/^[^=]*=[ ]*$//
19673 }'
19674 fi
19675
19676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19677 fi # test -n "$CONFIG_FILES"
19678
19679 # Set up the scripts for CONFIG_HEADERS section.
19680 # No need to generate them if there are no CONFIG_HEADERS.
19681 # This happens for instance with `./config.status Makefile'.
19682 if test -n "$CONFIG_HEADERS"; then
19683 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19684 BEGIN {
19685 _ACEOF
19686
19687 # Transform confdefs.h into an awk script `defines.awk', embedded as
19688 # here-document in config.status, that substitutes the proper values into
19689 # config.h.in to produce config.h.
19690
19691 # Create a delimiter string that does not exist in confdefs.h, to ease
19692 # handling of long lines.
19693 ac_delim='%!_!# '
19694 for ac_last_try in false false :; do
19695 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19696 if test -z "$ac_tt"; then
19697 break
19698 elif $ac_last_try; then
19699 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19700 else
19701 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19702 fi
19703 done
19704
19705 # For the awk script, D is an array of macro values keyed by name,
19706 # likewise P contains macro parameters if any. Preserve backslash
19707 # newline sequences.
19708
19709 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19710 sed -n '
19711 s/.\{148\}/&'"$ac_delim"'/g
19712 t rset
19713 :rset
19714 s/^[ ]*#[ ]*define[ ][ ]*/ /
19715 t def
19716 d
19717 :def
19718 s/\\$//
19719 t bsnl
19720 s/["\\]/\\&/g
19721 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19722 D["\1"]=" \3"/p
19723 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19724 d
19725 :bsnl
19726 s/["\\]/\\&/g
19727 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19728 D["\1"]=" \3\\\\\\n"\\/p
19729 t cont
19730 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19731 t cont
19732 d
19733 :cont
19734 n
19735 s/.\{148\}/&'"$ac_delim"'/g
19736 t clear
19737 :clear
19738 s/\\$//
19739 t bsnlc
19740 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19741 d
19742 :bsnlc
19743 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19744 b cont
19745 ' <confdefs.h | sed '
19746 s/'"$ac_delim"'/"\\\
19747 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19748
19749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19750 for (key in D) D_is_set[key] = 1
19751 FS = ""
19752 }
19753 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19754 line = \$ 0
19755 split(line, arg, " ")
19756 if (arg[1] == "#") {
19757 defundef = arg[2]
19758 mac1 = arg[3]
19759 } else {
19760 defundef = substr(arg[1], 2)
19761 mac1 = arg[2]
19762 }
19763 split(mac1, mac2, "(") #)
19764 macro = mac2[1]
19765 prefix = substr(line, 1, index(line, defundef) - 1)
19766 if (D_is_set[macro]) {
19767 # Preserve the white space surrounding the "#".
19768 print prefix "define", macro P[macro] D[macro]
19769 next
19770 } else {
19771 # Replace #undef with comments. This is necessary, for example,
19772 # in the case of _POSIX_SOURCE, which is predefined and required
19773 # on some systems where configure will not decide to define it.
19774 if (defundef == "undef") {
19775 print "/*", prefix defundef, macro, "*/"
19776 next
19777 }
19778 }
19779 }
19780 { print }
19781 _ACAWK
19782 _ACEOF
19783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19784 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19785 fi # test -n "$CONFIG_HEADERS"
19786
19787
19788 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19789 shift
19790 for ac_tag
19791 do
19792 case $ac_tag in
19793 :[FHLC]) ac_mode=$ac_tag; continue;;
19794 esac
19795 case $ac_mode$ac_tag in
19796 :[FHL]*:*);;
19797 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19798 :[FH]-) ac_tag=-:-;;
19799 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19800 esac
19801 ac_save_IFS=$IFS
19802 IFS=:
19803 set x $ac_tag
19804 IFS=$ac_save_IFS
19805 shift
19806 ac_file=$1
19807 shift
19808
19809 case $ac_mode in
19810 :L) ac_source=$1;;
19811 :[FH])
19812 ac_file_inputs=
19813 for ac_f
19814 do
19815 case $ac_f in
19816 -) ac_f="$ac_tmp/stdin";;
19817 *) # Look for the file first in the build tree, then in the source tree
19818 # (if the path is not absolute). The absolute path cannot be DOS-style,
19819 # because $ac_f cannot contain `:'.
19820 test -f "$ac_f" ||
19821 case $ac_f in
19822 [\\/$]*) false;;
19823 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19824 esac ||
19825 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19826 esac
19827 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19828 as_fn_append ac_file_inputs " '$ac_f'"
19829 done
19830
19831 # Let's still pretend it is `configure' which instantiates (i.e., don't
19832 # use $as_me), people would be surprised to read:
19833 # /* config.h. Generated by config.status. */
19834 configure_input='Generated from '`
19835 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19836 `' by configure.'
19837 if test x"$ac_file" != x-; then
19838 configure_input="$ac_file. $configure_input"
19839 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19840 $as_echo "$as_me: creating $ac_file" >&6;}
19841 fi
19842 # Neutralize special characters interpreted by sed in replacement strings.
19843 case $configure_input in #(
19844 *\&* | *\|* | *\\* )
19845 ac_sed_conf_input=`$as_echo "$configure_input" |
19846 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19847 *) ac_sed_conf_input=$configure_input;;
19848 esac
19849
19850 case $ac_tag in
19851 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19852 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19853 esac
19854 ;;
19855 esac
19856
19857 ac_dir=`$as_dirname -- "$ac_file" ||
19858 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19859 X"$ac_file" : 'X\(//\)[^/]' \| \
19860 X"$ac_file" : 'X\(//\)$' \| \
19861 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19862 $as_echo X"$ac_file" |
19863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19864 s//\1/
19865 q
19866 }
19867 /^X\(\/\/\)[^/].*/{
19868 s//\1/
19869 q
19870 }
19871 /^X\(\/\/\)$/{
19872 s//\1/
19873 q
19874 }
19875 /^X\(\/\).*/{
19876 s//\1/
19877 q
19878 }
19879 s/.*/./; q'`
19880 as_dir="$ac_dir"; as_fn_mkdir_p
19881 ac_builddir=.
19882
19883 case "$ac_dir" in
19884 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19885 *)
19886 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19887 # A ".." for each directory in $ac_dir_suffix.
19888 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19889 case $ac_top_builddir_sub in
19890 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19891 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19892 esac ;;
19893 esac
19894 ac_abs_top_builddir=$ac_pwd
19895 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19896 # for backward compatibility:
19897 ac_top_builddir=$ac_top_build_prefix
19898
19899 case $srcdir in
19900 .) # We are building in place.
19901 ac_srcdir=.
19902 ac_top_srcdir=$ac_top_builddir_sub
19903 ac_abs_top_srcdir=$ac_pwd ;;
19904 [\\/]* | ?:[\\/]* ) # Absolute name.
19905 ac_srcdir=$srcdir$ac_dir_suffix;
19906 ac_top_srcdir=$srcdir
19907 ac_abs_top_srcdir=$srcdir ;;
19908 *) # Relative name.
19909 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19910 ac_top_srcdir=$ac_top_build_prefix$srcdir
19911 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19912 esac
19913 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19914
19915
19916 case $ac_mode in
19917 :F)
19918 #
19919 # CONFIG_FILE
19920 #
19921
19922 case $INSTALL in
19923 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19924 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19925 esac
19926 ac_MKDIR_P=$MKDIR_P
19927 case $MKDIR_P in
19928 [\\/$]* | ?:[\\/]* ) ;;
19929 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19930 esac
19931 _ACEOF
19932
19933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19934 # If the template does not know about datarootdir, expand it.
19935 # FIXME: This hack should be removed a few years after 2.60.
19936 ac_datarootdir_hack=; ac_datarootdir_seen=
19937 ac_sed_dataroot='
19938 /datarootdir/ {
19939 p
19940 q
19941 }
19942 /@datadir@/p
19943 /@docdir@/p
19944 /@infodir@/p
19945 /@localedir@/p
19946 /@mandir@/p'
19947 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19948 *datarootdir*) ac_datarootdir_seen=yes;;
19949 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19951 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19952 _ACEOF
19953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19954 ac_datarootdir_hack='
19955 s&@datadir@&$datadir&g
19956 s&@docdir@&$docdir&g
19957 s&@infodir@&$infodir&g
19958 s&@localedir@&$localedir&g
19959 s&@mandir@&$mandir&g
19960 s&\\\${datarootdir}&$datarootdir&g' ;;
19961 esac
19962 _ACEOF
19963
19964 # Neutralize VPATH when `$srcdir' = `.'.
19965 # Shell code in configure.ac might set extrasub.
19966 # FIXME: do we really want to maintain this feature?
19967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19968 ac_sed_extra="$ac_vpsub
19969 $extrasub
19970 _ACEOF
19971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19972 :t
19973 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19974 s|@configure_input@|$ac_sed_conf_input|;t t
19975 s&@top_builddir@&$ac_top_builddir_sub&;t t
19976 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19977 s&@srcdir@&$ac_srcdir&;t t
19978 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19979 s&@top_srcdir@&$ac_top_srcdir&;t t
19980 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19981 s&@builddir@&$ac_builddir&;t t
19982 s&@abs_builddir@&$ac_abs_builddir&;t t
19983 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19984 s&@INSTALL@&$ac_INSTALL&;t t
19985 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19986 $ac_datarootdir_hack
19987 "
19988 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19989 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19990
19991 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19992 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19993 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19994 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19996 which seems to be undefined. Please make sure it is defined" >&5
19997 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19998 which seems to be undefined. Please make sure it is defined" >&2;}
19999
20000 rm -f "$ac_tmp/stdin"
20001 case $ac_file in
20002 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20003 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20004 esac \
20005 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20006 ;;
20007 :H)
20008 #
20009 # CONFIG_HEADER
20010 #
20011 if test x"$ac_file" != x-; then
20012 {
20013 $as_echo "/* $configure_input */" \
20014 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20015 } >"$ac_tmp/config.h" \
20016 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20017 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20018 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20019 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20020 else
20021 rm -f "$ac_file"
20022 mv "$ac_tmp/config.h" "$ac_file" \
20023 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20024 fi
20025 else
20026 $as_echo "/* $configure_input */" \
20027 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20028 || as_fn_error $? "could not create -" "$LINENO" 5
20029 fi
20030 # Compute "$ac_file"'s index in $config_headers.
20031 _am_arg="$ac_file"
20032 _am_stamp_count=1
20033 for _am_header in $config_headers :; do
20034 case $_am_header in
20035 $_am_arg | $_am_arg:* )
20036 break ;;
20037 * )
20038 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20039 esac
20040 done
20041 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20042 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20043 X"$_am_arg" : 'X\(//\)[^/]' \| \
20044 X"$_am_arg" : 'X\(//\)$' \| \
20045 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20046 $as_echo X"$_am_arg" |
20047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20048 s//\1/
20049 q
20050 }
20051 /^X\(\/\/\)[^/].*/{
20052 s//\1/
20053 q
20054 }
20055 /^X\(\/\/\)$/{
20056 s//\1/
20057 q
20058 }
20059 /^X\(\/\).*/{
20060 s//\1/
20061 q
20062 }
20063 s/.*/./; q'`/stamp-h$_am_stamp_count
20064 ;;
20065
20066 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20067 $as_echo "$as_me: executing $ac_file commands" >&6;}
20068 ;;
20069 esac
20070
20071
20072 case $ac_file$ac_mode in
20073 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20074 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20075 # are listed without --file. Let's play safe and only enable the eval
20076 # if we detect the quoting.
20077 case $CONFIG_FILES in
20078 *\'*) eval set x "$CONFIG_FILES" ;;
20079 *) set x $CONFIG_FILES ;;
20080 esac
20081 shift
20082 for mf
20083 do
20084 # Strip MF so we end up with the name of the file.
20085 mf=`echo "$mf" | sed -e 's/:.*$//'`
20086 # Check whether this is an Automake generated Makefile or not.
20087 # We used to match only the files named `Makefile.in', but
20088 # some people rename them; so instead we look at the file content.
20089 # Grep'ing the first line is not enough: some people post-process
20090 # each Makefile.in and add a new line on top of each file to say so.
20091 # Grep'ing the whole file is not good either: AIX grep has a line
20092 # limit of 2048, but all sed's we know have understand at least 4000.
20093 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20094 dirpart=`$as_dirname -- "$mf" ||
20095 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20096 X"$mf" : 'X\(//\)[^/]' \| \
20097 X"$mf" : 'X\(//\)$' \| \
20098 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20099 $as_echo X"$mf" |
20100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20101 s//\1/
20102 q
20103 }
20104 /^X\(\/\/\)[^/].*/{
20105 s//\1/
20106 q
20107 }
20108 /^X\(\/\/\)$/{
20109 s//\1/
20110 q
20111 }
20112 /^X\(\/\).*/{
20113 s//\1/
20114 q
20115 }
20116 s/.*/./; q'`
20117 else
20118 continue
20119 fi
20120 # Extract the definition of DEPDIR, am__include, and am__quote
20121 # from the Makefile without running `make'.
20122 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20123 test -z "$DEPDIR" && continue
20124 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20125 test -z "am__include" && continue
20126 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20127 # When using ansi2knr, U may be empty or an underscore; expand it
20128 U=`sed -n 's/^U = //p' < "$mf"`
20129 # Find all dependency output files, they are included files with
20130 # $(DEPDIR) in their names. We invoke sed twice because it is the
20131 # simplest approach to changing $(DEPDIR) to its actual value in the
20132 # expansion.
20133 for file in `sed -n "
20134 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20135 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20136 # Make sure the directory exists.
20137 test -f "$dirpart/$file" && continue
20138 fdir=`$as_dirname -- "$file" ||
20139 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20140 X"$file" : 'X\(//\)[^/]' \| \
20141 X"$file" : 'X\(//\)$' \| \
20142 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20143 $as_echo X"$file" |
20144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20145 s//\1/
20146 q
20147 }
20148 /^X\(\/\/\)[^/].*/{
20149 s//\1/
20150 q
20151 }
20152 /^X\(\/\/\)$/{
20153 s//\1/
20154 q
20155 }
20156 /^X\(\/\).*/{
20157 s//\1/
20158 q
20159 }
20160 s/.*/./; q'`
20161 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20162 # echo "creating $dirpart/$file"
20163 echo '# dummy' > "$dirpart/$file"
20164 done
20165 done
20166 }
20167 ;;
20168 "libtool":C)
20169
20170 # See if we are running on zsh, and set the options which allow our
20171 # commands through without removal of \ escapes.
20172 if test -n "${ZSH_VERSION+set}" ; then
20173 setopt NO_GLOB_SUBST
20174 fi
20175
20176 cfgfile="${ofile}T"
20177 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20178 $RM "$cfgfile"
20179
20180 cat <<_LT_EOF >> "$cfgfile"
20181 #! $SHELL
20182
20183 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20184 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20185 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20186 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20187 #
20188 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20189 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20190 # Foundation, Inc.
20191 # Written by Gordon Matzigkeit, 1996
20192 #
20193 # This file is part of GNU Libtool.
20194 #
20195 # GNU Libtool is free software; you can redistribute it and/or
20196 # modify it under the terms of the GNU General Public License as
20197 # published by the Free Software Foundation; either version 2 of
20198 # the License, or (at your option) any later version.
20199 #
20200 # As a special exception to the GNU General Public License,
20201 # if you distribute this file as part of a program or library that
20202 # is built using GNU Libtool, you may include this file under the
20203 # same distribution terms that you use for the rest of that program.
20204 #
20205 # GNU Libtool is distributed in the hope that it will be useful,
20206 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20207 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20208 # GNU General Public License for more details.
20209 #
20210 # You should have received a copy of the GNU General Public License
20211 # along with GNU Libtool; see the file COPYING. If not, a copy
20212 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20213 # obtained by writing to the Free Software Foundation, Inc.,
20214 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20215
20216
20217 # The names of the tagged configurations supported by this script.
20218 available_tags=""
20219
20220 # ### BEGIN LIBTOOL CONFIG
20221
20222 # Whether or not to build static libraries.
20223 build_old_libs=$enable_static
20224
20225 # Which release of libtool.m4 was used?
20226 macro_version=$macro_version
20227 macro_revision=$macro_revision
20228
20229 # Whether or not to build shared libraries.
20230 build_libtool_libs=$enable_shared
20231
20232 # What type of objects to build.
20233 pic_mode=$pic_mode
20234
20235 # Whether or not to optimize for fast installation.
20236 fast_install=$enable_fast_install
20237
20238 # Shell to use when invoking shell scripts.
20239 SHELL=$lt_SHELL
20240
20241 # An echo program that protects backslashes.
20242 ECHO=$lt_ECHO
20243
20244 # The PATH separator for the build system.
20245 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20246
20247 # The host system.
20248 host_alias=$host_alias
20249 host=$host
20250 host_os=$host_os
20251
20252 # The build system.
20253 build_alias=$build_alias
20254 build=$build
20255 build_os=$build_os
20256
20257 # A sed program that does not truncate output.
20258 SED=$lt_SED
20259
20260 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20261 Xsed="\$SED -e 1s/^X//"
20262
20263 # A grep program that handles long lines.
20264 GREP=$lt_GREP
20265
20266 # An ERE matcher.
20267 EGREP=$lt_EGREP
20268
20269 # A literal string matcher.
20270 FGREP=$lt_FGREP
20271
20272 # A BSD- or MS-compatible name lister.
20273 NM=$lt_NM
20274
20275 # Whether we need soft or hard links.
20276 LN_S=$lt_LN_S
20277
20278 # What is the maximum length of a command?
20279 max_cmd_len=$max_cmd_len
20280
20281 # Object file suffix (normally "o").
20282 objext=$ac_objext
20283
20284 # Executable file suffix (normally "").
20285 exeext=$exeext
20286
20287 # whether the shell understands "unset".
20288 lt_unset=$lt_unset
20289
20290 # turn spaces into newlines.
20291 SP2NL=$lt_lt_SP2NL
20292
20293 # turn newlines into spaces.
20294 NL2SP=$lt_lt_NL2SP
20295
20296 # convert \$build file names to \$host format.
20297 to_host_file_cmd=$lt_cv_to_host_file_cmd
20298
20299 # convert \$build files to toolchain format.
20300 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20301
20302 # An object symbol dumper.
20303 OBJDUMP=$lt_OBJDUMP
20304
20305 # Method to check whether dependent libraries are shared objects.
20306 deplibs_check_method=$lt_deplibs_check_method
20307
20308 # Command to use when deplibs_check_method = "file_magic".
20309 file_magic_cmd=$lt_file_magic_cmd
20310
20311 # How to find potential files when deplibs_check_method = "file_magic".
20312 file_magic_glob=$lt_file_magic_glob
20313
20314 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20315 want_nocaseglob=$lt_want_nocaseglob
20316
20317 # DLL creation program.
20318 DLLTOOL=$lt_DLLTOOL
20319
20320 # Command to associate shared and link libraries.
20321 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20322
20323 # The archiver.
20324 AR=$lt_AR
20325
20326 # Flags to create an archive.
20327 AR_FLAGS=$lt_AR_FLAGS
20328
20329 # How to feed a file listing to the archiver.
20330 archiver_list_spec=$lt_archiver_list_spec
20331
20332 # A symbol stripping program.
20333 STRIP=$lt_STRIP
20334
20335 # Commands used to install an old-style archive.
20336 RANLIB=$lt_RANLIB
20337 old_postinstall_cmds=$lt_old_postinstall_cmds
20338 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20339
20340 # Whether to use a lock for old archive extraction.
20341 lock_old_archive_extraction=$lock_old_archive_extraction
20342
20343 # A C compiler.
20344 LTCC=$lt_CC
20345
20346 # LTCC compiler flags.
20347 LTCFLAGS=$lt_CFLAGS
20348
20349 # Take the output of nm and produce a listing of raw symbols and C names.
20350 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20351
20352 # Transform the output of nm in a proper C declaration.
20353 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20354
20355 # Transform the output of nm in a C name address pair.
20356 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20357
20358 # Transform the output of nm in a C name address pair when lib prefix is needed.
20359 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20360
20361 # Specify filename containing input files for \$NM.
20362 nm_file_list_spec=$lt_nm_file_list_spec
20363
20364 # The root where to search for dependent libraries,and in which our libraries should be installed.
20365 lt_sysroot=$lt_sysroot
20366
20367 # The name of the directory that contains temporary libtool files.
20368 objdir=$objdir
20369
20370 # Used to examine libraries when file_magic_cmd begins with "file".
20371 MAGIC_CMD=$MAGIC_CMD
20372
20373 # Must we lock files when doing compilation?
20374 need_locks=$lt_need_locks
20375
20376 # Manifest tool.
20377 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20378
20379 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20380 DSYMUTIL=$lt_DSYMUTIL
20381
20382 # Tool to change global to local symbols on Mac OS X.
20383 NMEDIT=$lt_NMEDIT
20384
20385 # Tool to manipulate fat objects and archives on Mac OS X.
20386 LIPO=$lt_LIPO
20387
20388 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20389 OTOOL=$lt_OTOOL
20390
20391 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20392 OTOOL64=$lt_OTOOL64
20393
20394 # Old archive suffix (normally "a").
20395 libext=$libext
20396
20397 # Shared library suffix (normally ".so").
20398 shrext_cmds=$lt_shrext_cmds
20399
20400 # The commands to extract the exported symbol list from a shared archive.
20401 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20402
20403 # Variables whose values should be saved in libtool wrapper scripts and
20404 # restored at link time.
20405 variables_saved_for_relink=$lt_variables_saved_for_relink
20406
20407 # Do we need the "lib" prefix for modules?
20408 need_lib_prefix=$need_lib_prefix
20409
20410 # Do we need a version for libraries?
20411 need_version=$need_version
20412
20413 # Library versioning type.
20414 version_type=$version_type
20415
20416 # Shared library runtime path variable.
20417 runpath_var=$runpath_var
20418
20419 # Shared library path variable.
20420 shlibpath_var=$shlibpath_var
20421
20422 # Is shlibpath searched before the hard-coded library search path?
20423 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20424
20425 # Format of library name prefix.
20426 libname_spec=$lt_libname_spec
20427
20428 # List of archive names. First name is the real one, the rest are links.
20429 # The last name is the one that the linker finds with -lNAME
20430 library_names_spec=$lt_library_names_spec
20431
20432 # The coded name of the library, if different from the real name.
20433 soname_spec=$lt_soname_spec
20434
20435 # Permission mode override for installation of shared libraries.
20436 install_override_mode=$lt_install_override_mode
20437
20438 # Command to use after installation of a shared archive.
20439 postinstall_cmds=$lt_postinstall_cmds
20440
20441 # Command to use after uninstallation of a shared archive.
20442 postuninstall_cmds=$lt_postuninstall_cmds
20443
20444 # Commands used to finish a libtool library installation in a directory.
20445 finish_cmds=$lt_finish_cmds
20446
20447 # As "finish_cmds", except a single script fragment to be evaled but
20448 # not shown.
20449 finish_eval=$lt_finish_eval
20450
20451 # Whether we should hardcode library paths into libraries.
20452 hardcode_into_libs=$hardcode_into_libs
20453
20454 # Compile-time system search path for libraries.
20455 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20456
20457 # Run-time system search path for libraries.
20458 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20459
20460 # Whether dlopen is supported.
20461 dlopen_support=$enable_dlopen
20462
20463 # Whether dlopen of programs is supported.
20464 dlopen_self=$enable_dlopen_self
20465
20466 # Whether dlopen of statically linked programs is supported.
20467 dlopen_self_static=$enable_dlopen_self_static
20468
20469 # Commands to strip libraries.
20470 old_striplib=$lt_old_striplib
20471 striplib=$lt_striplib
20472
20473
20474 # The linker used to build libraries.
20475 LD=$lt_LD
20476
20477 # How to create reloadable object files.
20478 reload_flag=$lt_reload_flag
20479 reload_cmds=$lt_reload_cmds
20480
20481 # Commands used to build an old-style archive.
20482 old_archive_cmds=$lt_old_archive_cmds
20483
20484 # A language specific compiler.
20485 CC=$lt_compiler
20486
20487 # Is the compiler the GNU compiler?
20488 with_gcc=$GCC
20489
20490 # Compiler flag to turn off builtin functions.
20491 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20492
20493 # Additional compiler flags for building library objects.
20494 pic_flag=$lt_lt_prog_compiler_pic
20495
20496 # How to pass a linker flag through the compiler.
20497 wl=$lt_lt_prog_compiler_wl
20498
20499 # Compiler flag to prevent dynamic linking.
20500 link_static_flag=$lt_lt_prog_compiler_static
20501
20502 # Does compiler simultaneously support -c and -o options?
20503 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20504
20505 # Whether or not to add -lc for building shared libraries.
20506 build_libtool_need_lc=$archive_cmds_need_lc
20507
20508 # Whether or not to disallow shared libs when runtime libs are static.
20509 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20510
20511 # Compiler flag to allow reflexive dlopens.
20512 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20513
20514 # Compiler flag to generate shared objects directly from archives.
20515 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20516
20517 # Whether the compiler copes with passing no objects directly.
20518 compiler_needs_object=$lt_compiler_needs_object
20519
20520 # Create an old-style archive from a shared archive.
20521 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20522
20523 # Create a temporary old-style archive to link instead of a shared archive.
20524 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20525
20526 # Commands used to build a shared archive.
20527 archive_cmds=$lt_archive_cmds
20528 archive_expsym_cmds=$lt_archive_expsym_cmds
20529
20530 # Commands used to build a loadable module if different from building
20531 # a shared archive.
20532 module_cmds=$lt_module_cmds
20533 module_expsym_cmds=$lt_module_expsym_cmds
20534
20535 # Whether we are building with GNU ld or not.
20536 with_gnu_ld=$lt_with_gnu_ld
20537
20538 # Flag that allows shared libraries with undefined symbols to be built.
20539 allow_undefined_flag=$lt_allow_undefined_flag
20540
20541 # Flag that enforces no undefined symbols.
20542 no_undefined_flag=$lt_no_undefined_flag
20543
20544 # Flag to hardcode \$libdir into a binary during linking.
20545 # This must work even if \$libdir does not exist
20546 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20547
20548 # Whether we need a single "-rpath" flag with a separated argument.
20549 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20550
20551 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20552 # DIR into the resulting binary.
20553 hardcode_direct=$hardcode_direct
20554
20555 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20556 # DIR into the resulting binary and the resulting library dependency is
20557 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20558 # library is relocated.
20559 hardcode_direct_absolute=$hardcode_direct_absolute
20560
20561 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20562 # into the resulting binary.
20563 hardcode_minus_L=$hardcode_minus_L
20564
20565 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20566 # into the resulting binary.
20567 hardcode_shlibpath_var=$hardcode_shlibpath_var
20568
20569 # Set to "yes" if building a shared library automatically hardcodes DIR
20570 # into the library and all subsequent libraries and executables linked
20571 # against it.
20572 hardcode_automatic=$hardcode_automatic
20573
20574 # Set to yes if linker adds runtime paths of dependent libraries
20575 # to runtime path list.
20576 inherit_rpath=$inherit_rpath
20577
20578 # Whether libtool must link a program against all its dependency libraries.
20579 link_all_deplibs=$link_all_deplibs
20580
20581 # Set to "yes" if exported symbols are required.
20582 always_export_symbols=$always_export_symbols
20583
20584 # The commands to list exported symbols.
20585 export_symbols_cmds=$lt_export_symbols_cmds
20586
20587 # Symbols that should not be listed in the preloaded symbols.
20588 exclude_expsyms=$lt_exclude_expsyms
20589
20590 # Symbols that must always be exported.
20591 include_expsyms=$lt_include_expsyms
20592
20593 # Commands necessary for linking programs (against libraries) with templates.
20594 prelink_cmds=$lt_prelink_cmds
20595
20596 # Commands necessary for finishing linking programs.
20597 postlink_cmds=$lt_postlink_cmds
20598
20599 # Specify filename containing input files.
20600 file_list_spec=$lt_file_list_spec
20601
20602 # How to hardcode a shared library path into an executable.
20603 hardcode_action=$hardcode_action
20604
20605 # ### END LIBTOOL CONFIG
20606
20607 _LT_EOF
20608
20609 case $host_os in
20610 aix3*)
20611 cat <<\_LT_EOF >> "$cfgfile"
20612 # AIX sometimes has problems with the GCC collect2 program. For some
20613 # reason, if we set the COLLECT_NAMES environment variable, the problems
20614 # vanish in a puff of smoke.
20615 if test "X${COLLECT_NAMES+set}" != Xset; then
20616 COLLECT_NAMES=
20617 export COLLECT_NAMES
20618 fi
20619 _LT_EOF
20620 ;;
20621 esac
20622
20623
20624 ltmain="$ac_aux_dir/ltmain.sh"
20625
20626
20627 # We use sed instead of cat because bash on DJGPP gets confused if
20628 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20629 # text mode, it properly converts lines to CR/LF. This bash problem
20630 # is reportedly fixed, but why not run on old versions too?
20631 sed '$q' "$ltmain" >> "$cfgfile" \
20632 || (rm -f "$cfgfile"; exit 1)
20633
20634 if test x"$xsi_shell" = xyes; then
20635 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20636 func_dirname ()\
20637 {\
20638 \ case ${1} in\
20639 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20640 \ * ) func_dirname_result="${3}" ;;\
20641 \ esac\
20642 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20643 && mv -f "$cfgfile.tmp" "$cfgfile" \
20644 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20645 test 0 -eq $? || _lt_function_replace_fail=:
20646
20647
20648 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20649 func_basename ()\
20650 {\
20651 \ func_basename_result="${1##*/}"\
20652 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20653 && mv -f "$cfgfile.tmp" "$cfgfile" \
20654 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20655 test 0 -eq $? || _lt_function_replace_fail=:
20656
20657
20658 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20659 func_dirname_and_basename ()\
20660 {\
20661 \ case ${1} in\
20662 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20663 \ * ) func_dirname_result="${3}" ;;\
20664 \ esac\
20665 \ func_basename_result="${1##*/}"\
20666 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20667 && mv -f "$cfgfile.tmp" "$cfgfile" \
20668 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20669 test 0 -eq $? || _lt_function_replace_fail=:
20670
20671
20672 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20673 func_stripname ()\
20674 {\
20675 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20676 \ # positional parameters, so assign one to ordinary parameter first.\
20677 \ func_stripname_result=${3}\
20678 \ func_stripname_result=${func_stripname_result#"${1}"}\
20679 \ func_stripname_result=${func_stripname_result%"${2}"}\
20680 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20681 && mv -f "$cfgfile.tmp" "$cfgfile" \
20682 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20683 test 0 -eq $? || _lt_function_replace_fail=:
20684
20685
20686 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20687 func_split_long_opt ()\
20688 {\
20689 \ func_split_long_opt_name=${1%%=*}\
20690 \ func_split_long_opt_arg=${1#*=}\
20691 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20692 && mv -f "$cfgfile.tmp" "$cfgfile" \
20693 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20694 test 0 -eq $? || _lt_function_replace_fail=:
20695
20696
20697 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20698 func_split_short_opt ()\
20699 {\
20700 \ func_split_short_opt_arg=${1#??}\
20701 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20702 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20703 && mv -f "$cfgfile.tmp" "$cfgfile" \
20704 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20705 test 0 -eq $? || _lt_function_replace_fail=:
20706
20707
20708 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20709 func_lo2o ()\
20710 {\
20711 \ case ${1} in\
20712 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20713 \ *) func_lo2o_result=${1} ;;\
20714 \ esac\
20715 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20716 && mv -f "$cfgfile.tmp" "$cfgfile" \
20717 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20718 test 0 -eq $? || _lt_function_replace_fail=:
20719
20720
20721 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20722 func_xform ()\
20723 {\
20724 func_xform_result=${1%.*}.lo\
20725 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20726 && mv -f "$cfgfile.tmp" "$cfgfile" \
20727 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20728 test 0 -eq $? || _lt_function_replace_fail=:
20729
20730
20731 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20732 func_arith ()\
20733 {\
20734 func_arith_result=$(( $* ))\
20735 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20736 && mv -f "$cfgfile.tmp" "$cfgfile" \
20737 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20738 test 0 -eq $? || _lt_function_replace_fail=:
20739
20740
20741 sed -e '/^func_len ()$/,/^} # func_len /c\
20742 func_len ()\
20743 {\
20744 func_len_result=${#1}\
20745 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20746 && mv -f "$cfgfile.tmp" "$cfgfile" \
20747 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20748 test 0 -eq $? || _lt_function_replace_fail=:
20749
20750 fi
20751
20752 if test x"$lt_shell_append" = xyes; then
20753 sed -e '/^func_append ()$/,/^} # func_append /c\
20754 func_append ()\
20755 {\
20756 eval "${1}+=\\${2}"\
20757 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20758 && mv -f "$cfgfile.tmp" "$cfgfile" \
20759 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20760 test 0 -eq $? || _lt_function_replace_fail=:
20761
20762
20763 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20764 func_append_quoted ()\
20765 {\
20766 \ func_quote_for_eval "${2}"\
20767 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20768 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20769 && mv -f "$cfgfile.tmp" "$cfgfile" \
20770 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20771 test 0 -eq $? || _lt_function_replace_fail=:
20772
20773
20774 # Save a `func_append' function call where possible by direct use of '+='
20775 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20776 && mv -f "$cfgfile.tmp" "$cfgfile" \
20777 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20778 test 0 -eq $? || _lt_function_replace_fail=:
20779 else
20780 # Save a `func_append' function call even when '+=' is not available
20781 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20782 && mv -f "$cfgfile.tmp" "$cfgfile" \
20783 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20784 test 0 -eq $? || _lt_function_replace_fail=:
20785 fi
20786
20787 if test x"$_lt_function_replace_fail" = x":"; then
20788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20789 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20790 fi
20791
20792
20793 mv -f "$cfgfile" "$ofile" ||
20794 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20795 chmod +x "$ofile"
20796
20797 ;;
20798
20799 esac
20800 done # for ac_tag
20801
20802
20803 as_fn_exit 0
20804 _ACEOF
20805 ac_clean_files=$ac_clean_files_save
20806
20807 test $ac_write_fail = 0 ||
20808 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20809
20810
20811 # configure is writing to config.log, and then calls config.status.
20812 # config.status does its own redirection, appending to config.log.
20813 # Unfortunately, on DOS this fails, as config.log is still kept open
20814 # by configure, so config.status won't be able to write to it; its
20815 # output is simply discarded. So we exec the FD to /dev/null,
20816 # effectively closing config.log, so it can be properly (re)opened and
20817 # appended to by config.status. When coming back to configure, we
20818 # need to make the FD available again.
20819 if test "$no_create" != yes; then
20820 ac_cs_success=:
20821 ac_config_status_args=
20822 test "$silent" = yes &&
20823 ac_config_status_args="$ac_config_status_args --quiet"
20824 exec 5>/dev/null
20825 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20826 exec 5>>config.log
20827 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20828 # would make configure fail if this is the last instruction.
20829 $ac_cs_success || as_fn_exit 1
20830 fi
20831 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20833 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20834 fi
20835
20836