configure revision 1.1.1.7 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xf86-input-mouse 1.9.1.
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-mouse'
573 PACKAGE_TARNAME='xf86-input-mouse'
574 PACKAGE_VERSION='1.9.1'
575 PACKAGE_STRING='xf86-input-mouse 1.9.1'
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 DRIVER_NAME
621 OS_MOUSE_NAME
622 sdkdir
623 inputdir
624 XORG_LIBS
625 XORG_CFLAGS
626 LINT_FALSE
627 LINT_TRUE
628 LINT_FLAGS
629 LINT
630 MAN_SUBSTS
631 XORG_MAN_PAGE
632 ADMIN_MAN_DIR
633 DRIVER_MAN_DIR
634 MISC_MAN_DIR
635 FILE_MAN_DIR
636 LIB_MAN_DIR
637 APP_MAN_DIR
638 ADMIN_MAN_SUFFIX
639 DRIVER_MAN_SUFFIX
640 MISC_MAN_SUFFIX
641 FILE_MAN_SUFFIX
642 LIB_MAN_SUFFIX
643 APP_MAN_SUFFIX
644 INSTALL_CMD
645 PKG_CONFIG
646 CHANGELOG_CMD
647 STRICT_CFLAGS
648 CWARNFLAGS
649 BASE_CFLAGS
650 OTOOL64
651 OTOOL
652 LIPO
653 NMEDIT
654 DSYMUTIL
655 MANIFEST_TOOL
656 RANLIB
657 ac_ct_AR
658 AR
659 DLLTOOL
660 OBJDUMP
661 LN_S
662 NM
663 ac_ct_DUMPBIN
664 DUMPBIN
665 LD
666 FGREP
667 SED
668 host_os
669 host_vendor
670 host_cpu
671 host
672 build_os
673 build_vendor
674 build_cpu
675 build
676 LIBTOOL
677 AM_BACKSLASH
678 AM_DEFAULT_VERBOSITY
679 AM_DEFAULT_V
680 AM_V
681 am__fastdepCC_FALSE
682 am__fastdepCC_TRUE
683 CCDEPMODE
684 am__nodep
685 AMDEPBACKSLASH
686 AMDEP_FALSE
687 AMDEP_TRUE
688 am__quote
689 am__include
690 DEPDIR
691 am__untar
692 am__tar
693 AMTAR
694 am__leading_dot
695 SET_MAKE
696 AWK
697 mkdir_p
698 MKDIR_P
699 INSTALL_STRIP_PROGRAM
700 STRIP
701 install_sh
702 MAKEINFO
703 AUTOHEADER
704 AUTOMAKE
705 AUTOCONF
706 ACLOCAL
707 VERSION
708 PACKAGE
709 CYGPATH_W
710 am__isrc
711 INSTALL_DATA
712 INSTALL_SCRIPT
713 INSTALL_PROGRAM
714 EGREP
715 GREP
716 CPP
717 OBJEXT
718 EXEEXT
719 ac_ct_CC
720 CPPFLAGS
721 LDFLAGS
722 CFLAGS
723 CC
724 target_alias
725 host_alias
726 build_alias
727 LIBS
728 ECHO_T
729 ECHO_N
730 ECHO_C
731 DEFS
732 mandir
733 localedir
734 libdir
735 psdir
736 pdfdir
737 dvidir
738 htmldir
739 infodir
740 docdir
741 oldincludedir
742 includedir
743 localstatedir
744 sharedstatedir
745 sysconfdir
746 datadir
747 datarootdir
748 libexecdir
749 sbindir
750 bindir
751 program_transform_name
752 prefix
753 exec_prefix
754 PACKAGE_URL
755 PACKAGE_BUGREPORT
756 PACKAGE_STRING
757 PACKAGE_VERSION
758 PACKAGE_TARNAME
759 PACKAGE_NAME
760 PATH_SEPARATOR
761 SHELL'
762 ac_subst_files=''
763 ac_user_opts='
764 enable_option_checking
765 enable_dependency_tracking
766 enable_silent_rules
767 enable_static
768 enable_shared
769 with_pic
770 enable_fast_install
771 with_gnu_ld
772 with_sysroot
773 enable_libtool_lock
774 enable_selective_werror
775 enable_strict_compilation
776 with_lint
777 with_xorg_module_dir
778 with_sdkdir
779 '
780 ac_precious_vars='build_alias
781 host_alias
782 target_alias
783 CC
784 CFLAGS
785 LDFLAGS
786 LIBS
787 CPPFLAGS
788 CPP
789 PKG_CONFIG
790 LINT
791 LINT_FLAGS
792 XORG_CFLAGS
793 XORG_LIBS'
794
795
796 # Initialize some variables set by options.
797 ac_init_help=
798 ac_init_version=false
799 ac_unrecognized_opts=
800 ac_unrecognized_sep=
801 # The variables have the same names as the options, with
802 # dashes changed to underlines.
803 cache_file=/dev/null
804 exec_prefix=NONE
805 no_create=
806 no_recursion=
807 prefix=NONE
808 program_prefix=NONE
809 program_suffix=NONE
810 program_transform_name=s,x,x,
811 silent=
812 site=
813 srcdir=
814 verbose=
815 x_includes=NONE
816 x_libraries=NONE
817
818 # Installation directory options.
819 # These are left unexpanded so users can "make install exec_prefix=/foo"
820 # and all the variables that are supposed to be based on exec_prefix
821 # by default will actually change.
822 # Use braces instead of parens because sh, perl, etc. also accept them.
823 # (The list follows the same order as the GNU Coding Standards.)
824 bindir='${exec_prefix}/bin'
825 sbindir='${exec_prefix}/sbin'
826 libexecdir='${exec_prefix}/libexec'
827 datarootdir='${prefix}/share'
828 datadir='${datarootdir}'
829 sysconfdir='${prefix}/etc'
830 sharedstatedir='${prefix}/com'
831 localstatedir='${prefix}/var'
832 includedir='${prefix}/include'
833 oldincludedir='/usr/include'
834 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
835 infodir='${datarootdir}/info'
836 htmldir='${docdir}'
837 dvidir='${docdir}'
838 pdfdir='${docdir}'
839 psdir='${docdir}'
840 libdir='${exec_prefix}/lib'
841 localedir='${datarootdir}/locale'
842 mandir='${datarootdir}/man'
843
844 ac_prev=
845 ac_dashdash=
846 for ac_option
847 do
848 # If the previous option needs an argument, assign it.
849 if test -n "$ac_prev"; then
850 eval $ac_prev=\$ac_option
851 ac_prev=
852 continue
853 fi
854
855 case $ac_option in
856 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857 *=) ac_optarg= ;;
858 *) ac_optarg=yes ;;
859 esac
860
861 # Accept the important Cygnus configure options, so we can diagnose typos.
862
863 case $ac_dashdash$ac_option in
864 --)
865 ac_dashdash=yes ;;
866
867 -bindir | --bindir | --bindi | --bind | --bin | --bi)
868 ac_prev=bindir ;;
869 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
870 bindir=$ac_optarg ;;
871
872 -build | --build | --buil | --bui | --bu)
873 ac_prev=build_alias ;;
874 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
875 build_alias=$ac_optarg ;;
876
877 -cache-file | --cache-file | --cache-fil | --cache-fi \
878 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
879 ac_prev=cache_file ;;
880 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
881 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
882 cache_file=$ac_optarg ;;
883
884 --config-cache | -C)
885 cache_file=config.cache ;;
886
887 -datadir | --datadir | --datadi | --datad)
888 ac_prev=datadir ;;
889 -datadir=* | --datadir=* | --datadi=* | --datad=*)
890 datadir=$ac_optarg ;;
891
892 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
893 | --dataroo | --dataro | --datar)
894 ac_prev=datarootdir ;;
895 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
896 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
897 datarootdir=$ac_optarg ;;
898
899 -disable-* | --disable-*)
900 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
901 # Reject names that are not valid shell variable names.
902 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
903 as_fn_error $? "invalid feature name: $ac_useropt"
904 ac_useropt_orig=$ac_useropt
905 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906 case $ac_user_opts in
907 *"
908 "enable_$ac_useropt"
909 "*) ;;
910 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
911 ac_unrecognized_sep=', ';;
912 esac
913 eval enable_$ac_useropt=no ;;
914
915 -docdir | --docdir | --docdi | --doc | --do)
916 ac_prev=docdir ;;
917 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
918 docdir=$ac_optarg ;;
919
920 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
921 ac_prev=dvidir ;;
922 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
923 dvidir=$ac_optarg ;;
924
925 -enable-* | --enable-*)
926 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929 as_fn_error $? "invalid feature name: $ac_useropt"
930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
933 *"
934 "enable_$ac_useropt"
935 "*) ;;
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
938 esac
939 eval enable_$ac_useropt=\$ac_optarg ;;
940
941 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
942 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
943 | --exec | --exe | --ex)
944 ac_prev=exec_prefix ;;
945 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
946 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
947 | --exec=* | --exe=* | --ex=*)
948 exec_prefix=$ac_optarg ;;
949
950 -gas | --gas | --ga | --g)
951 # Obsolete; use --with-gas.
952 with_gas=yes ;;
953
954 -help | --help | --hel | --he | -h)
955 ac_init_help=long ;;
956 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
957 ac_init_help=recursive ;;
958 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
959 ac_init_help=short ;;
960
961 -host | --host | --hos | --ho)
962 ac_prev=host_alias ;;
963 -host=* | --host=* | --hos=* | --ho=*)
964 host_alias=$ac_optarg ;;
965
966 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
967 ac_prev=htmldir ;;
968 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
969 | --ht=*)
970 htmldir=$ac_optarg ;;
971
972 -includedir | --includedir | --includedi | --included | --include \
973 | --includ | --inclu | --incl | --inc)
974 ac_prev=includedir ;;
975 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
976 | --includ=* | --inclu=* | --incl=* | --inc=*)
977 includedir=$ac_optarg ;;
978
979 -infodir | --infodir | --infodi | --infod | --info | --inf)
980 ac_prev=infodir ;;
981 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
982 infodir=$ac_optarg ;;
983
984 -libdir | --libdir | --libdi | --libd)
985 ac_prev=libdir ;;
986 -libdir=* | --libdir=* | --libdi=* | --libd=*)
987 libdir=$ac_optarg ;;
988
989 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
990 | --libexe | --libex | --libe)
991 ac_prev=libexecdir ;;
992 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
993 | --libexe=* | --libex=* | --libe=*)
994 libexecdir=$ac_optarg ;;
995
996 -localedir | --localedir | --localedi | --localed | --locale)
997 ac_prev=localedir ;;
998 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
999 localedir=$ac_optarg ;;
1000
1001 -localstatedir | --localstatedir | --localstatedi | --localstated \
1002 | --localstate | --localstat | --localsta | --localst | --locals)
1003 ac_prev=localstatedir ;;
1004 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1005 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1006 localstatedir=$ac_optarg ;;
1007
1008 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1009 ac_prev=mandir ;;
1010 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1011 mandir=$ac_optarg ;;
1012
1013 -nfp | --nfp | --nf)
1014 # Obsolete; use --without-fp.
1015 with_fp=no ;;
1016
1017 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1018 | --no-cr | --no-c | -n)
1019 no_create=yes ;;
1020
1021 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1022 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1023 no_recursion=yes ;;
1024
1025 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1026 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1027 | --oldin | --oldi | --old | --ol | --o)
1028 ac_prev=oldincludedir ;;
1029 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1030 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1031 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1032 oldincludedir=$ac_optarg ;;
1033
1034 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1035 ac_prev=prefix ;;
1036 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1037 prefix=$ac_optarg ;;
1038
1039 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1040 | --program-pre | --program-pr | --program-p)
1041 ac_prev=program_prefix ;;
1042 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1043 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1044 program_prefix=$ac_optarg ;;
1045
1046 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1047 | --program-suf | --program-su | --program-s)
1048 ac_prev=program_suffix ;;
1049 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1050 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1051 program_suffix=$ac_optarg ;;
1052
1053 -program-transform-name | --program-transform-name \
1054 | --program-transform-nam | --program-transform-na \
1055 | --program-transform-n | --program-transform- \
1056 | --program-transform | --program-transfor \
1057 | --program-transfo | --program-transf \
1058 | --program-trans | --program-tran \
1059 | --progr-tra | --program-tr | --program-t)
1060 ac_prev=program_transform_name ;;
1061 -program-transform-name=* | --program-transform-name=* \
1062 | --program-transform-nam=* | --program-transform-na=* \
1063 | --program-transform-n=* | --program-transform-=* \
1064 | --program-transform=* | --program-transfor=* \
1065 | --program-transfo=* | --program-transf=* \
1066 | --program-trans=* | --program-tran=* \
1067 | --progr-tra=* | --program-tr=* | --program-t=*)
1068 program_transform_name=$ac_optarg ;;
1069
1070 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1071 ac_prev=pdfdir ;;
1072 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1073 pdfdir=$ac_optarg ;;
1074
1075 -psdir | --psdir | --psdi | --psd | --ps)
1076 ac_prev=psdir ;;
1077 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1078 psdir=$ac_optarg ;;
1079
1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081 | -silent | --silent | --silen | --sile | --sil)
1082 silent=yes ;;
1083
1084 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1085 ac_prev=sbindir ;;
1086 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1087 | --sbi=* | --sb=*)
1088 sbindir=$ac_optarg ;;
1089
1090 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1091 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1092 | --sharedst | --shareds | --shared | --share | --shar \
1093 | --sha | --sh)
1094 ac_prev=sharedstatedir ;;
1095 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1096 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1097 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1098 | --sha=* | --sh=*)
1099 sharedstatedir=$ac_optarg ;;
1100
1101 -site | --site | --sit)
1102 ac_prev=site ;;
1103 -site=* | --site=* | --sit=*)
1104 site=$ac_optarg ;;
1105
1106 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1107 ac_prev=srcdir ;;
1108 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1109 srcdir=$ac_optarg ;;
1110
1111 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1112 | --syscon | --sysco | --sysc | --sys | --sy)
1113 ac_prev=sysconfdir ;;
1114 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1115 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1116 sysconfdir=$ac_optarg ;;
1117
1118 -target | --target | --targe | --targ | --tar | --ta | --t)
1119 ac_prev=target_alias ;;
1120 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1121 target_alias=$ac_optarg ;;
1122
1123 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1124 verbose=yes ;;
1125
1126 -version | --version | --versio | --versi | --vers | -V)
1127 ac_init_version=: ;;
1128
1129 -with-* | --with-*)
1130 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133 as_fn_error $? "invalid package name: $ac_useropt"
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1137 *"
1138 "with_$ac_useropt"
1139 "*) ;;
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1142 esac
1143 eval with_$ac_useropt=\$ac_optarg ;;
1144
1145 -without-* | --without-*)
1146 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149 as_fn_error $? "invalid package name: $ac_useropt"
1150 ac_useropt_orig=$ac_useropt
1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152 case $ac_user_opts in
1153 *"
1154 "with_$ac_useropt"
1155 "*) ;;
1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1157 ac_unrecognized_sep=', ';;
1158 esac
1159 eval with_$ac_useropt=no ;;
1160
1161 --x)
1162 # Obsolete; use --with-x.
1163 with_x=yes ;;
1164
1165 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1166 | --x-incl | --x-inc | --x-in | --x-i)
1167 ac_prev=x_includes ;;
1168 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1169 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1170 x_includes=$ac_optarg ;;
1171
1172 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1173 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1174 ac_prev=x_libraries ;;
1175 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1176 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1177 x_libraries=$ac_optarg ;;
1178
1179 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1180 Try \`$0 --help' for more information"
1181 ;;
1182
1183 *=*)
1184 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1185 # Reject names that are not valid shell variable names.
1186 case $ac_envvar in #(
1187 '' | [0-9]* | *[!_$as_cr_alnum]* )
1188 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1189 esac
1190 eval $ac_envvar=\$ac_optarg
1191 export $ac_envvar ;;
1192
1193 *)
1194 # FIXME: should be removed in autoconf 3.0.
1195 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1196 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1197 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1198 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1199 ;;
1200
1201 esac
1202 done
1203
1204 if test -n "$ac_prev"; then
1205 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1206 as_fn_error $? "missing argument to $ac_option"
1207 fi
1208
1209 if test -n "$ac_unrecognized_opts"; then
1210 case $enable_option_checking in
1211 no) ;;
1212 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1213 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1214 esac
1215 fi
1216
1217 # Check all directory arguments for consistency.
1218 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219 datadir sysconfdir sharedstatedir localstatedir includedir \
1220 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221 libdir localedir mandir
1222 do
1223 eval ac_val=\$$ac_var
1224 # Remove trailing slashes.
1225 case $ac_val in
1226 */ )
1227 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1228 eval $ac_var=\$ac_val;;
1229 esac
1230 # Be sure to have absolute directory names.
1231 case $ac_val in
1232 [\\/$]* | ?:[\\/]* ) continue;;
1233 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1234 esac
1235 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1236 done
1237
1238 # There might be people who depend on the old broken behavior: `$host'
1239 # used to hold the argument of --host etc.
1240 # FIXME: To remove some day.
1241 build=$build_alias
1242 host=$host_alias
1243 target=$target_alias
1244
1245 # FIXME: To remove some day.
1246 if test "x$host_alias" != x; then
1247 if test "x$build_alias" = x; then
1248 cross_compiling=maybe
1249 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1250 If a cross compiler is detected then cross compile mode will be used" >&2
1251 elif test "x$build_alias" != "x$host_alias"; then
1252 cross_compiling=yes
1253 fi
1254 fi
1255
1256 ac_tool_prefix=
1257 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1258
1259 test "$silent" = yes && exec 6>/dev/null
1260
1261
1262 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1263 ac_ls_di=`ls -di .` &&
1264 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1265 as_fn_error $? "working directory cannot be determined"
1266 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1267 as_fn_error $? "pwd does not report name of working directory"
1268
1269
1270 # Find the source files, if location was not specified.
1271 if test -z "$srcdir"; then
1272 ac_srcdir_defaulted=yes
1273 # Try the directory containing this script, then the parent directory.
1274 ac_confdir=`$as_dirname -- "$as_myself" ||
1275 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1276 X"$as_myself" : 'X\(//\)[^/]' \| \
1277 X"$as_myself" : 'X\(//\)$' \| \
1278 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1279 $as_echo X"$as_myself" |
1280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1281 s//\1/
1282 q
1283 }
1284 /^X\(\/\/\)[^/].*/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\/\)$/{
1289 s//\1/
1290 q
1291 }
1292 /^X\(\/\).*/{
1293 s//\1/
1294 q
1295 }
1296 s/.*/./; q'`
1297 srcdir=$ac_confdir
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 srcdir=..
1300 fi
1301 else
1302 ac_srcdir_defaulted=no
1303 fi
1304 if test ! -r "$srcdir/$ac_unique_file"; then
1305 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1306 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1307 fi
1308 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1309 ac_abs_confdir=`(
1310 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1311 pwd)`
1312 # When building in place, set srcdir=.
1313 if test "$ac_abs_confdir" = "$ac_pwd"; then
1314 srcdir=.
1315 fi
1316 # Remove unnecessary trailing slashes from srcdir.
1317 # Double slashes in file names in object file debugging info
1318 # mess up M-x gdb in Emacs.
1319 case $srcdir in
1320 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1321 esac
1322 for ac_var in $ac_precious_vars; do
1323 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_env_${ac_var}_value=\$${ac_var}
1325 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1327 done
1328
1329 #
1330 # Report the --help message.
1331 #
1332 if test "$ac_init_help" = "long"; then
1333 # Omit some internal or obsolete options to make the list less imposing.
1334 # This message is too long to be a string in the A/UX 3.1 sh.
1335 cat <<_ACEOF
1336 \`configure' configures xf86-input-mouse 1.9.1 to adapt to many kinds of systems.
1337
1338 Usage: $0 [OPTION]... [VAR=VALUE]...
1339
1340 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1341 VAR=VALUE. See below for descriptions of some of the useful variables.
1342
1343 Defaults for the options are specified in brackets.
1344
1345 Configuration:
1346 -h, --help display this help and exit
1347 --help=short display options specific to this package
1348 --help=recursive display the short help of all the included packages
1349 -V, --version display version information and exit
1350 -q, --quiet, --silent do not print \`checking ...' messages
1351 --cache-file=FILE cache test results in FILE [disabled]
1352 -C, --config-cache alias for \`--cache-file=config.cache'
1353 -n, --no-create do not create output files
1354 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1355
1356 Installation directories:
1357 --prefix=PREFIX install architecture-independent files in PREFIX
1358 [$ac_default_prefix]
1359 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1360 [PREFIX]
1361
1362 By default, \`make install' will install all the files in
1363 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1364 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1365 for instance \`--prefix=\$HOME'.
1366
1367 For better control, use the options below.
1368
1369 Fine tuning of the installation directories:
1370 --bindir=DIR user executables [EPREFIX/bin]
1371 --sbindir=DIR system admin executables [EPREFIX/sbin]
1372 --libexecdir=DIR program executables [EPREFIX/libexec]
1373 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1374 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1375 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1376 --libdir=DIR object code libraries [EPREFIX/lib]
1377 --includedir=DIR C header files [PREFIX/include]
1378 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1379 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1380 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1381 --infodir=DIR info documentation [DATAROOTDIR/info]
1382 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1383 --mandir=DIR man documentation [DATAROOTDIR/man]
1384 --docdir=DIR documentation root
1385 [DATAROOTDIR/doc/xf86-input-mouse]
1386 --htmldir=DIR html documentation [DOCDIR]
1387 --dvidir=DIR dvi documentation [DOCDIR]
1388 --pdfdir=DIR pdf documentation [DOCDIR]
1389 --psdir=DIR ps documentation [DOCDIR]
1390 _ACEOF
1391
1392 cat <<\_ACEOF
1393
1394 Program names:
1395 --program-prefix=PREFIX prepend PREFIX to installed program names
1396 --program-suffix=SUFFIX append SUFFIX to installed program names
1397 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1398
1399 System types:
1400 --build=BUILD configure for building on BUILD [guessed]
1401 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1402 _ACEOF
1403 fi
1404
1405 if test -n "$ac_init_help"; then
1406 case $ac_init_help in
1407 short | recursive ) echo "Configuration of xf86-input-mouse 1.9.1:";;
1408 esac
1409 cat <<\_ACEOF
1410
1411 Optional Features:
1412 --disable-option-checking ignore unrecognized --enable/--with options
1413 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1414 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1415 --enable-dependency-tracking
1416 do not reject slow dependency extractors
1417 --disable-dependency-tracking
1418 speeds up one-time build
1419 --enable-silent-rules less verbose build output (undo: "make V=1")
1420 --disable-silent-rules verbose build output (undo: "make V=0")
1421 --enable-static[=PKGS] build static libraries [default=no]
1422 --enable-shared[=PKGS] build shared libraries [default=yes]
1423 --enable-fast-install[=PKGS]
1424 optimize for fast installation [default=yes]
1425 --disable-libtool-lock avoid locking (might break parallel builds)
1426 --disable-selective-werror
1427 Turn off selective compiler errors. (default:
1428 enabled)
1429 --enable-strict-compilation
1430 Enable all warnings from compiler and make them
1431 errors (default: disabled)
1432
1433 Optional Packages:
1434 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1435 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1436 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1437 both]
1438 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1439 --with-sysroot=DIR Search for dependent libraries within DIR
1440 (or the compiler's sysroot if not specified).
1441 --with-lint Use a lint-style source code checker (default:
1442 disabled)
1443 --with-xorg-module-dir=DIR
1444 Default xorg module directory
1445 [[default=$libdir/xorg/modules]]
1446
1447
1448 Some influential environment variables:
1449 CC C compiler command
1450 CFLAGS C compiler flags
1451 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1452 nonstandard directory <lib dir>
1453 LIBS libraries to pass to the linker, e.g. -l<library>
1454 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1455 you have headers in a nonstandard directory <include dir>
1456 CPP C preprocessor
1457 PKG_CONFIG path to pkg-config utility
1458 LINT Path to a lint-style command
1459 LINT_FLAGS Flags for the lint-style command
1460 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1461 XORG_LIBS linker flags for XORG, overriding pkg-config
1462
1463 Use these variables to override the choices made by `configure' or to help
1464 it to find libraries and programs with nonstandard names/locations.
1465
1466 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1467 _ACEOF
1468 ac_status=$?
1469 fi
1470
1471 if test "$ac_init_help" = "recursive"; then
1472 # If there are subdirs, report their specific --help.
1473 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1474 test -d "$ac_dir" ||
1475 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1476 continue
1477 ac_builddir=.
1478
1479 case "$ac_dir" in
1480 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481 *)
1482 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1483 # A ".." for each directory in $ac_dir_suffix.
1484 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1485 case $ac_top_builddir_sub in
1486 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1488 esac ;;
1489 esac
1490 ac_abs_top_builddir=$ac_pwd
1491 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1492 # for backward compatibility:
1493 ac_top_builddir=$ac_top_build_prefix
1494
1495 case $srcdir in
1496 .) # We are building in place.
1497 ac_srcdir=.
1498 ac_top_srcdir=$ac_top_builddir_sub
1499 ac_abs_top_srcdir=$ac_pwd ;;
1500 [\\/]* | ?:[\\/]* ) # Absolute name.
1501 ac_srcdir=$srcdir$ac_dir_suffix;
1502 ac_top_srcdir=$srcdir
1503 ac_abs_top_srcdir=$srcdir ;;
1504 *) # Relative name.
1505 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1506 ac_top_srcdir=$ac_top_build_prefix$srcdir
1507 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1508 esac
1509 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1510
1511 cd "$ac_dir" || { ac_status=$?; continue; }
1512 # Check for guested configure.
1513 if test -f "$ac_srcdir/configure.gnu"; then
1514 echo &&
1515 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1516 elif test -f "$ac_srcdir/configure"; then
1517 echo &&
1518 $SHELL "$ac_srcdir/configure" --help=recursive
1519 else
1520 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1521 fi || ac_status=$?
1522 cd "$ac_pwd" || { ac_status=$?; break; }
1523 done
1524 fi
1525
1526 test -n "$ac_init_help" && exit $ac_status
1527 if $ac_init_version; then
1528 cat <<\_ACEOF
1529 xf86-input-mouse configure 1.9.1
1530 generated by GNU Autoconf 2.68
1531
1532 Copyright (C) 2010 Free Software Foundation, Inc.
1533 This configure script is free software; the Free Software Foundation
1534 gives unlimited permission to copy, distribute and modify it.
1535 _ACEOF
1536 exit
1537 fi
1538
1539 ## ------------------------ ##
1540 ## Autoconf initialization. ##
1541 ## ------------------------ ##
1542
1543 # ac_fn_c_try_compile LINENO
1544 # --------------------------
1545 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1546 ac_fn_c_try_compile ()
1547 {
1548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1549 rm -f conftest.$ac_objext
1550 if { { ac_try="$ac_compile"
1551 case "(($ac_try" in
1552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1553 *) ac_try_echo=$ac_try;;
1554 esac
1555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1556 $as_echo "$ac_try_echo"; } >&5
1557 (eval "$ac_compile") 2>conftest.err
1558 ac_status=$?
1559 if test -s conftest.err; then
1560 grep -v '^ *+' conftest.err >conftest.er1
1561 cat conftest.er1 >&5
1562 mv -f conftest.er1 conftest.err
1563 fi
1564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565 test $ac_status = 0; } && {
1566 test -z "$ac_c_werror_flag" ||
1567 test ! -s conftest.err
1568 } && test -s conftest.$ac_objext; then :
1569 ac_retval=0
1570 else
1571 $as_echo "$as_me: failed program was:" >&5
1572 sed 's/^/| /' conftest.$ac_ext >&5
1573
1574 ac_retval=1
1575 fi
1576 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1577 as_fn_set_status $ac_retval
1578
1579 } # ac_fn_c_try_compile
1580
1581 # ac_fn_c_try_cpp LINENO
1582 # ----------------------
1583 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_cpp ()
1585 {
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 if { { ac_try="$ac_cpp conftest.$ac_ext"
1588 case "(($ac_try" in
1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590 *) ac_try_echo=$ac_try;;
1591 esac
1592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593 $as_echo "$ac_try_echo"; } >&5
1594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1595 ac_status=$?
1596 if test -s conftest.err; then
1597 grep -v '^ *+' conftest.err >conftest.er1
1598 cat conftest.er1 >&5
1599 mv -f conftest.er1 conftest.err
1600 fi
1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602 test $ac_status = 0; } > conftest.i && {
1603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1604 test ! -s conftest.err
1605 }; then :
1606 ac_retval=0
1607 else
1608 $as_echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1610
1611 ac_retval=1
1612 fi
1613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1614 as_fn_set_status $ac_retval
1615
1616 } # ac_fn_c_try_cpp
1617
1618 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1619 # -------------------------------------------------------
1620 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1621 # the include files in INCLUDES and setting the cache variable VAR
1622 # accordingly.
1623 ac_fn_c_check_header_mongrel ()
1624 {
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 if eval \${$3+:} false; then :
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1628 $as_echo_n "checking for $2... " >&6; }
1629 if eval \${$3+:} false; then :
1630 $as_echo_n "(cached) " >&6
1631 fi
1632 eval ac_res=\$$3
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1634 $as_echo "$ac_res" >&6; }
1635 else
1636 # Is the header compilable?
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1638 $as_echo_n "checking $2 usability... " >&6; }
1639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1640 /* end confdefs.h. */
1641 $4
1642 #include <$2>
1643 _ACEOF
1644 if ac_fn_c_try_compile "$LINENO"; then :
1645 ac_header_compiler=yes
1646 else
1647 ac_header_compiler=no
1648 fi
1649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1651 $as_echo "$ac_header_compiler" >&6; }
1652
1653 # Is the header present?
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1655 $as_echo_n "checking $2 presence... " >&6; }
1656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1657 /* end confdefs.h. */
1658 #include <$2>
1659 _ACEOF
1660 if ac_fn_c_try_cpp "$LINENO"; then :
1661 ac_header_preproc=yes
1662 else
1663 ac_header_preproc=no
1664 fi
1665 rm -f conftest.err conftest.i conftest.$ac_ext
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1667 $as_echo "$ac_header_preproc" >&6; }
1668
1669 # So? What about this header?
1670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1671 yes:no: )
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1673 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1675 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1676 ;;
1677 no:yes:* )
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1679 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1681 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1683 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1685 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1687 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1688 ( $as_echo "## ---------------------------------------------------------------------- ##
1689 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1690 ## ---------------------------------------------------------------------- ##"
1691 ) | sed "s/^/$as_me: WARNING: /" >&2
1692 ;;
1693 esac
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1695 $as_echo_n "checking for $2... " >&6; }
1696 if eval \${$3+:} false; then :
1697 $as_echo_n "(cached) " >&6
1698 else
1699 eval "$3=\$ac_header_compiler"
1700 fi
1701 eval ac_res=\$$3
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1703 $as_echo "$ac_res" >&6; }
1704 fi
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706
1707 } # ac_fn_c_check_header_mongrel
1708
1709 # ac_fn_c_try_run LINENO
1710 # ----------------------
1711 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1712 # that executables *can* be run.
1713 ac_fn_c_try_run ()
1714 {
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 if { { ac_try="$ac_link"
1717 case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_link") 2>&5
1724 ac_status=$?
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1727 { { case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1730 esac
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_try") 2>&5
1734 ac_status=$?
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; }; }; then :
1737 ac_retval=0
1738 else
1739 $as_echo "$as_me: program exited with status $ac_status" >&5
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1742
1743 ac_retval=$ac_status
1744 fi
1745 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747 as_fn_set_status $ac_retval
1748
1749 } # ac_fn_c_try_run
1750
1751 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1752 # -------------------------------------------------------
1753 # Tests whether HEADER exists and can be compiled using the include files in
1754 # INCLUDES, setting the cache variable VAR accordingly.
1755 ac_fn_c_check_header_compile ()
1756 {
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759 $as_echo_n "checking for $2... " >&6; }
1760 if eval \${$3+:} false; then :
1761 $as_echo_n "(cached) " >&6
1762 else
1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h. */
1765 $4
1766 #include <$2>
1767 _ACEOF
1768 if ac_fn_c_try_compile "$LINENO"; then :
1769 eval "$3=yes"
1770 else
1771 eval "$3=no"
1772 fi
1773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1774 fi
1775 eval ac_res=\$$3
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777 $as_echo "$ac_res" >&6; }
1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779
1780 } # ac_fn_c_check_header_compile
1781
1782 # ac_fn_c_try_link LINENO
1783 # -----------------------
1784 # Try to link conftest.$ac_ext, and return whether this succeeded.
1785 ac_fn_c_try_link ()
1786 {
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 rm -f conftest.$ac_objext conftest$ac_exeext
1789 if { { ac_try="$ac_link"
1790 case "(($ac_try" in
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1793 esac
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_link") 2>conftest.err
1797 ac_status=$?
1798 if test -s conftest.err; then
1799 grep -v '^ *+' conftest.err >conftest.er1
1800 cat conftest.er1 >&5
1801 mv -f conftest.er1 conftest.err
1802 fi
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; } && {
1805 test -z "$ac_c_werror_flag" ||
1806 test ! -s conftest.err
1807 } && test -s conftest$ac_exeext && {
1808 test "$cross_compiling" = yes ||
1809 $as_test_x conftest$ac_exeext
1810 }; then :
1811 ac_retval=0
1812 else
1813 $as_echo "$as_me: failed program was:" >&5
1814 sed 's/^/| /' conftest.$ac_ext >&5
1815
1816 ac_retval=1
1817 fi
1818 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1819 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1820 # interfere with the next link command; also delete a directory that is
1821 # left behind by Apple's compiler. We do this before executing the actions.
1822 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824 as_fn_set_status $ac_retval
1825
1826 } # ac_fn_c_try_link
1827
1828 # ac_fn_c_check_func LINENO FUNC VAR
1829 # ----------------------------------
1830 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1831 ac_fn_c_check_func ()
1832 {
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835 $as_echo_n "checking for $2... " >&6; }
1836 if eval \${$3+:} false; then :
1837 $as_echo_n "(cached) " >&6
1838 else
1839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840 /* end confdefs.h. */
1841 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1843 #define $2 innocuous_$2
1844
1845 /* System header to define __stub macros and hopefully few prototypes,
1846 which can conflict with char $2 (); below.
1847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1848 <limits.h> exists even on freestanding compilers. */
1849
1850 #ifdef __STDC__
1851 # include <limits.h>
1852 #else
1853 # include <assert.h>
1854 #endif
1855
1856 #undef $2
1857
1858 /* Override any GCC internal prototype to avoid an error.
1859 Use char because int might match the return type of a GCC
1860 builtin and then its argument prototype would still apply. */
1861 #ifdef __cplusplus
1862 extern "C"
1863 #endif
1864 char $2 ();
1865 /* The GNU C library defines this for functions which it implements
1866 to always fail with ENOSYS. Some functions are actually named
1867 something starting with __ and the normal name is an alias. */
1868 #if defined __stub_$2 || defined __stub___$2
1869 choke me
1870 #endif
1871
1872 int
1873 main ()
1874 {
1875 return $2 ();
1876 ;
1877 return 0;
1878 }
1879 _ACEOF
1880 if ac_fn_c_try_link "$LINENO"; then :
1881 eval "$3=yes"
1882 else
1883 eval "$3=no"
1884 fi
1885 rm -f core conftest.err conftest.$ac_objext \
1886 conftest$ac_exeext conftest.$ac_ext
1887 fi
1888 eval ac_res=\$$3
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1890 $as_echo "$ac_res" >&6; }
1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892
1893 } # ac_fn_c_check_func
1894
1895 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1896 # ---------------------------------------------
1897 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1898 # accordingly.
1899 ac_fn_c_check_decl ()
1900 {
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 as_decl_name=`echo $2|sed 's/ *(.*//'`
1903 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1905 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1906 if eval \${$3+:} false; then :
1907 $as_echo_n "(cached) " >&6
1908 else
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h. */
1911 $4
1912 int
1913 main ()
1914 {
1915 #ifndef $as_decl_name
1916 #ifdef __cplusplus
1917 (void) $as_decl_use;
1918 #else
1919 (void) $as_decl_name;
1920 #endif
1921 #endif
1922
1923 ;
1924 return 0;
1925 }
1926 _ACEOF
1927 if ac_fn_c_try_compile "$LINENO"; then :
1928 eval "$3=yes"
1929 else
1930 eval "$3=no"
1931 fi
1932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1933 fi
1934 eval ac_res=\$$3
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936 $as_echo "$ac_res" >&6; }
1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938
1939 } # ac_fn_c_check_decl
1940 cat >config.log <<_ACEOF
1941 This file contains any messages produced by compilers while
1942 running configure, to aid debugging if configure makes a mistake.
1943
1944 It was created by xf86-input-mouse $as_me 1.9.1, which was
1945 generated by GNU Autoconf 2.68. Invocation command line was
1946
1947 $ $0 $@
1948
1949 _ACEOF
1950 exec 5>>config.log
1951 {
1952 cat <<_ASUNAME
1953 ## --------- ##
1954 ## Platform. ##
1955 ## --------- ##
1956
1957 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1958 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1959 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1960 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1961 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1962
1963 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1964 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1965
1966 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1967 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1968 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1969 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1970 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1971 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1972 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1973
1974 _ASUNAME
1975
1976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977 for as_dir in $PATH
1978 do
1979 IFS=$as_save_IFS
1980 test -z "$as_dir" && as_dir=.
1981 $as_echo "PATH: $as_dir"
1982 done
1983 IFS=$as_save_IFS
1984
1985 } >&5
1986
1987 cat >&5 <<_ACEOF
1988
1989
1990 ## ----------- ##
1991 ## Core tests. ##
1992 ## ----------- ##
1993
1994 _ACEOF
1995
1996
1997 # Keep a trace of the command line.
1998 # Strip out --no-create and --no-recursion so they do not pile up.
1999 # Strip out --silent because we don't want to record it for future runs.
2000 # Also quote any args containing shell meta-characters.
2001 # Make two passes to allow for proper duplicate-argument suppression.
2002 ac_configure_args=
2003 ac_configure_args0=
2004 ac_configure_args1=
2005 ac_must_keep_next=false
2006 for ac_pass in 1 2
2007 do
2008 for ac_arg
2009 do
2010 case $ac_arg in
2011 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2013 | -silent | --silent | --silen | --sile | --sil)
2014 continue ;;
2015 *\'*)
2016 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2017 esac
2018 case $ac_pass in
2019 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2020 2)
2021 as_fn_append ac_configure_args1 " '$ac_arg'"
2022 if test $ac_must_keep_next = true; then
2023 ac_must_keep_next=false # Got value, back to normal.
2024 else
2025 case $ac_arg in
2026 *=* | --config-cache | -C | -disable-* | --disable-* \
2027 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2028 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2029 | -with-* | --with-* | -without-* | --without-* | --x)
2030 case "$ac_configure_args0 " in
2031 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2032 esac
2033 ;;
2034 -* ) ac_must_keep_next=true ;;
2035 esac
2036 fi
2037 as_fn_append ac_configure_args " '$ac_arg'"
2038 ;;
2039 esac
2040 done
2041 done
2042 { ac_configure_args0=; unset ac_configure_args0;}
2043 { ac_configure_args1=; unset ac_configure_args1;}
2044
2045 # When interrupted or exit'd, cleanup temporary files, and complete
2046 # config.log. We remove comments because anyway the quotes in there
2047 # would cause problems or look ugly.
2048 # WARNING: Use '\'' to represent an apostrophe within the trap.
2049 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2050 trap 'exit_status=$?
2051 # Save into config.log some information that might help in debugging.
2052 {
2053 echo
2054
2055 $as_echo "## ---------------- ##
2056 ## Cache variables. ##
2057 ## ---------------- ##"
2058 echo
2059 # The following way of writing the cache mishandles newlines in values,
2060 (
2061 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2062 eval ac_val=\$$ac_var
2063 case $ac_val in #(
2064 *${as_nl}*)
2065 case $ac_var in #(
2066 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2067 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2068 esac
2069 case $ac_var in #(
2070 _ | IFS | as_nl) ;; #(
2071 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2072 *) { eval $ac_var=; unset $ac_var;} ;;
2073 esac ;;
2074 esac
2075 done
2076 (set) 2>&1 |
2077 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2078 *${as_nl}ac_space=\ *)
2079 sed -n \
2080 "s/'\''/'\''\\\\'\'''\''/g;
2081 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2082 ;; #(
2083 *)
2084 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2085 ;;
2086 esac |
2087 sort
2088 )
2089 echo
2090
2091 $as_echo "## ----------------- ##
2092 ## Output variables. ##
2093 ## ----------------- ##"
2094 echo
2095 for ac_var in $ac_subst_vars
2096 do
2097 eval ac_val=\$$ac_var
2098 case $ac_val in
2099 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2100 esac
2101 $as_echo "$ac_var='\''$ac_val'\''"
2102 done | sort
2103 echo
2104
2105 if test -n "$ac_subst_files"; then
2106 $as_echo "## ------------------- ##
2107 ## File substitutions. ##
2108 ## ------------------- ##"
2109 echo
2110 for ac_var in $ac_subst_files
2111 do
2112 eval ac_val=\$$ac_var
2113 case $ac_val in
2114 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2115 esac
2116 $as_echo "$ac_var='\''$ac_val'\''"
2117 done | sort
2118 echo
2119 fi
2120
2121 if test -s confdefs.h; then
2122 $as_echo "## ----------- ##
2123 ## confdefs.h. ##
2124 ## ----------- ##"
2125 echo
2126 cat confdefs.h
2127 echo
2128 fi
2129 test "$ac_signal" != 0 &&
2130 $as_echo "$as_me: caught signal $ac_signal"
2131 $as_echo "$as_me: exit $exit_status"
2132 } >&5
2133 rm -f core *.core core.conftest.* &&
2134 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2135 exit $exit_status
2136 ' 0
2137 for ac_signal in 1 2 13 15; do
2138 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2139 done
2140 ac_signal=0
2141
2142 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2143 rm -f -r conftest* confdefs.h
2144
2145 $as_echo "/* confdefs.h */" > confdefs.h
2146
2147 # Predefined preprocessor variables.
2148
2149 cat >>confdefs.h <<_ACEOF
2150 #define PACKAGE_NAME "$PACKAGE_NAME"
2151 _ACEOF
2152
2153 cat >>confdefs.h <<_ACEOF
2154 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2155 _ACEOF
2156
2157 cat >>confdefs.h <<_ACEOF
2158 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2159 _ACEOF
2160
2161 cat >>confdefs.h <<_ACEOF
2162 #define PACKAGE_STRING "$PACKAGE_STRING"
2163 _ACEOF
2164
2165 cat >>confdefs.h <<_ACEOF
2166 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2167 _ACEOF
2168
2169 cat >>confdefs.h <<_ACEOF
2170 #define PACKAGE_URL "$PACKAGE_URL"
2171 _ACEOF
2172
2173
2174 # Let the site file select an alternate cache file if it wants to.
2175 # Prefer an explicitly selected file to automatically selected ones.
2176 ac_site_file1=NONE
2177 ac_site_file2=NONE
2178 if test -n "$CONFIG_SITE"; then
2179 # We do not want a PATH search for config.site.
2180 case $CONFIG_SITE in #((
2181 -*) ac_site_file1=./$CONFIG_SITE;;
2182 */*) ac_site_file1=$CONFIG_SITE;;
2183 *) ac_site_file1=./$CONFIG_SITE;;
2184 esac
2185 elif test "x$prefix" != xNONE; then
2186 ac_site_file1=$prefix/share/config.site
2187 ac_site_file2=$prefix/etc/config.site
2188 else
2189 ac_site_file1=$ac_default_prefix/share/config.site
2190 ac_site_file2=$ac_default_prefix/etc/config.site
2191 fi
2192 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2193 do
2194 test "x$ac_site_file" = xNONE && continue
2195 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2197 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2198 sed 's/^/| /' "$ac_site_file" >&5
2199 . "$ac_site_file" \
2200 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2202 as_fn_error $? "failed to load site script $ac_site_file
2203 See \`config.log' for more details" "$LINENO" 5; }
2204 fi
2205 done
2206
2207 if test -r "$cache_file"; then
2208 # Some versions of bash will fail to source /dev/null (special files
2209 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2210 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2212 $as_echo "$as_me: loading cache $cache_file" >&6;}
2213 case $cache_file in
2214 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2215 *) . "./$cache_file";;
2216 esac
2217 fi
2218 else
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2220 $as_echo "$as_me: creating cache $cache_file" >&6;}
2221 >$cache_file
2222 fi
2223
2224 # Check that the precious variables saved in the cache have kept the same
2225 # value.
2226 ac_cache_corrupted=false
2227 for ac_var in $ac_precious_vars; do
2228 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2229 eval ac_new_set=\$ac_env_${ac_var}_set
2230 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2231 eval ac_new_val=\$ac_env_${ac_var}_value
2232 case $ac_old_set,$ac_new_set in
2233 set,)
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2235 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2236 ac_cache_corrupted=: ;;
2237 ,set)
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2239 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2240 ac_cache_corrupted=: ;;
2241 ,);;
2242 *)
2243 if test "x$ac_old_val" != "x$ac_new_val"; then
2244 # differences in whitespace do not lead to failure.
2245 ac_old_val_w=`echo x $ac_old_val`
2246 ac_new_val_w=`echo x $ac_new_val`
2247 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2249 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2250 ac_cache_corrupted=:
2251 else
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2253 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2254 eval $ac_var=\$ac_old_val
2255 fi
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2257 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2259 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2260 fi;;
2261 esac
2262 # Pass precious variables to config.status.
2263 if test "$ac_new_set" = set; then
2264 case $ac_new_val in
2265 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2266 *) ac_arg=$ac_var=$ac_new_val ;;
2267 esac
2268 case " $ac_configure_args " in
2269 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2270 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2271 esac
2272 fi
2273 done
2274 if $ac_cache_corrupted; then
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2278 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2279 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2280 fi
2281 ## -------------------- ##
2282 ## Main body of script. ##
2283 ## -------------------- ##
2284
2285 ac_ext=c
2286 ac_cpp='$CPP $CPPFLAGS'
2287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2290
2291
2292
2293 ac_config_headers="$ac_config_headers config.h"
2294
2295 ac_aux_dir=
2296 for ac_dir in . "$srcdir"/.; do
2297 if test -f "$ac_dir/install-sh"; then
2298 ac_aux_dir=$ac_dir
2299 ac_install_sh="$ac_aux_dir/install-sh -c"
2300 break
2301 elif test -f "$ac_dir/install.sh"; then
2302 ac_aux_dir=$ac_dir
2303 ac_install_sh="$ac_aux_dir/install.sh -c"
2304 break
2305 elif test -f "$ac_dir/shtool"; then
2306 ac_aux_dir=$ac_dir
2307 ac_install_sh="$ac_aux_dir/shtool install -c"
2308 break
2309 fi
2310 done
2311 if test -z "$ac_aux_dir"; then
2312 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2313 fi
2314
2315 # These three variables are undocumented and unsupported,
2316 # and are intended to be withdrawn in a future Autoconf release.
2317 # They can cause serious problems if a builder's source tree is in a directory
2318 # whose full name contains unusual characters.
2319 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2320 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2321 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2322
2323
2324 # expand $ac_aux_dir to an absolute path
2325 am_aux_dir=`cd $ac_aux_dir && pwd`
2326
2327 ac_ext=c
2328 ac_cpp='$CPP $CPPFLAGS'
2329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2332 if test -n "$ac_tool_prefix"; then
2333 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2334 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2336 $as_echo_n "checking for $ac_word... " >&6; }
2337 if ${ac_cv_prog_CC+:} false; then :
2338 $as_echo_n "(cached) " >&6
2339 else
2340 if test -n "$CC"; then
2341 ac_cv_prog_CC="$CC" # Let the user override the test.
2342 else
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344 for as_dir in $PATH
2345 do
2346 IFS=$as_save_IFS
2347 test -z "$as_dir" && as_dir=.
2348 for ac_exec_ext in '' $ac_executable_extensions; do
2349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2350 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2352 break 2
2353 fi
2354 done
2355 done
2356 IFS=$as_save_IFS
2357
2358 fi
2359 fi
2360 CC=$ac_cv_prog_CC
2361 if test -n "$CC"; then
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2363 $as_echo "$CC" >&6; }
2364 else
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2366 $as_echo "no" >&6; }
2367 fi
2368
2369
2370 fi
2371 if test -z "$ac_cv_prog_CC"; then
2372 ac_ct_CC=$CC
2373 # Extract the first word of "gcc", so it can be a program name with args.
2374 set dummy gcc; ac_word=$2
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2376 $as_echo_n "checking for $ac_word... " >&6; }
2377 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2378 $as_echo_n "(cached) " >&6
2379 else
2380 if test -n "$ac_ct_CC"; then
2381 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2382 else
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384 for as_dir in $PATH
2385 do
2386 IFS=$as_save_IFS
2387 test -z "$as_dir" && as_dir=.
2388 for ac_exec_ext in '' $ac_executable_extensions; do
2389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2390 ac_cv_prog_ac_ct_CC="gcc"
2391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2392 break 2
2393 fi
2394 done
2395 done
2396 IFS=$as_save_IFS
2397
2398 fi
2399 fi
2400 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2401 if test -n "$ac_ct_CC"; then
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2403 $as_echo "$ac_ct_CC" >&6; }
2404 else
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2406 $as_echo "no" >&6; }
2407 fi
2408
2409 if test "x$ac_ct_CC" = x; then
2410 CC=""
2411 else
2412 case $cross_compiling:$ac_tool_warned in
2413 yes:)
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2416 ac_tool_warned=yes ;;
2417 esac
2418 CC=$ac_ct_CC
2419 fi
2420 else
2421 CC="$ac_cv_prog_CC"
2422 fi
2423
2424 if test -z "$CC"; then
2425 if test -n "$ac_tool_prefix"; then
2426 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2427 set dummy ${ac_tool_prefix}cc; ac_word=$2
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2429 $as_echo_n "checking for $ac_word... " >&6; }
2430 if ${ac_cv_prog_CC+:} false; then :
2431 $as_echo_n "(cached) " >&6
2432 else
2433 if test -n "$CC"; then
2434 ac_cv_prog_CC="$CC" # Let the user override the test.
2435 else
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437 for as_dir in $PATH
2438 do
2439 IFS=$as_save_IFS
2440 test -z "$as_dir" && as_dir=.
2441 for ac_exec_ext in '' $ac_executable_extensions; do
2442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2443 ac_cv_prog_CC="${ac_tool_prefix}cc"
2444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2445 break 2
2446 fi
2447 done
2448 done
2449 IFS=$as_save_IFS
2450
2451 fi
2452 fi
2453 CC=$ac_cv_prog_CC
2454 if test -n "$CC"; then
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2456 $as_echo "$CC" >&6; }
2457 else
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2459 $as_echo "no" >&6; }
2460 fi
2461
2462
2463 fi
2464 fi
2465 if test -z "$CC"; then
2466 # Extract the first word of "cc", so it can be a program name with args.
2467 set dummy cc; ac_word=$2
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2469 $as_echo_n "checking for $ac_word... " >&6; }
2470 if ${ac_cv_prog_CC+:} false; then :
2471 $as_echo_n "(cached) " >&6
2472 else
2473 if test -n "$CC"; then
2474 ac_cv_prog_CC="$CC" # Let the user override the test.
2475 else
2476 ac_prog_rejected=no
2477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 for as_dir in $PATH
2479 do
2480 IFS=$as_save_IFS
2481 test -z "$as_dir" && as_dir=.
2482 for ac_exec_ext in '' $ac_executable_extensions; do
2483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2484 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2485 ac_prog_rejected=yes
2486 continue
2487 fi
2488 ac_cv_prog_CC="cc"
2489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 break 2
2491 fi
2492 done
2493 done
2494 IFS=$as_save_IFS
2495
2496 if test $ac_prog_rejected = yes; then
2497 # We found a bogon in the path, so make sure we never use it.
2498 set dummy $ac_cv_prog_CC
2499 shift
2500 if test $# != 0; then
2501 # We chose a different compiler from the bogus one.
2502 # However, it has the same basename, so the bogon will be chosen
2503 # first if we set CC to just the basename; use the full file name.
2504 shift
2505 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2506 fi
2507 fi
2508 fi
2509 fi
2510 CC=$ac_cv_prog_CC
2511 if test -n "$CC"; then
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2513 $as_echo "$CC" >&6; }
2514 else
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2516 $as_echo "no" >&6; }
2517 fi
2518
2519
2520 fi
2521 if test -z "$CC"; then
2522 if test -n "$ac_tool_prefix"; then
2523 for ac_prog in cl.exe
2524 do
2525 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2526 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2528 $as_echo_n "checking for $ac_word... " >&6; }
2529 if ${ac_cv_prog_CC+:} false; then :
2530 $as_echo_n "(cached) " >&6
2531 else
2532 if test -n "$CC"; then
2533 ac_cv_prog_CC="$CC" # Let the user override the test.
2534 else
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 for as_dir in $PATH
2537 do
2538 IFS=$as_save_IFS
2539 test -z "$as_dir" && as_dir=.
2540 for ac_exec_ext in '' $ac_executable_extensions; do
2541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2542 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2544 break 2
2545 fi
2546 done
2547 done
2548 IFS=$as_save_IFS
2549
2550 fi
2551 fi
2552 CC=$ac_cv_prog_CC
2553 if test -n "$CC"; then
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2555 $as_echo "$CC" >&6; }
2556 else
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2558 $as_echo "no" >&6; }
2559 fi
2560
2561
2562 test -n "$CC" && break
2563 done
2564 fi
2565 if test -z "$CC"; then
2566 ac_ct_CC=$CC
2567 for ac_prog in cl.exe
2568 do
2569 # Extract the first word of "$ac_prog", so it can be a program name with args.
2570 set dummy $ac_prog; ac_word=$2
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2572 $as_echo_n "checking for $ac_word... " >&6; }
2573 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2574 $as_echo_n "(cached) " >&6
2575 else
2576 if test -n "$ac_ct_CC"; then
2577 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2578 else
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2581 do
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2586 ac_cv_prog_ac_ct_CC="$ac_prog"
2587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2588 break 2
2589 fi
2590 done
2591 done
2592 IFS=$as_save_IFS
2593
2594 fi
2595 fi
2596 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2597 if test -n "$ac_ct_CC"; then
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2599 $as_echo "$ac_ct_CC" >&6; }
2600 else
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2602 $as_echo "no" >&6; }
2603 fi
2604
2605
2606 test -n "$ac_ct_CC" && break
2607 done
2608
2609 if test "x$ac_ct_CC" = x; then
2610 CC=""
2611 else
2612 case $cross_compiling:$ac_tool_warned in
2613 yes:)
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2616 ac_tool_warned=yes ;;
2617 esac
2618 CC=$ac_ct_CC
2619 fi
2620 fi
2621
2622 fi
2623
2624
2625 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2627 as_fn_error $? "no acceptable C compiler found in \$PATH
2628 See \`config.log' for more details" "$LINENO" 5; }
2629
2630 # Provide some information about the compiler.
2631 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2632 set X $ac_compile
2633 ac_compiler=$2
2634 for ac_option in --version -v -V -qversion; do
2635 { { ac_try="$ac_compiler $ac_option >&5"
2636 case "(($ac_try" in
2637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2638 *) ac_try_echo=$ac_try;;
2639 esac
2640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2641 $as_echo "$ac_try_echo"; } >&5
2642 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2643 ac_status=$?
2644 if test -s conftest.err; then
2645 sed '10a\
2646 ... rest of stderr output deleted ...
2647 10q' conftest.err >conftest.er1
2648 cat conftest.er1 >&5
2649 fi
2650 rm -f conftest.er1 conftest.err
2651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2652 test $ac_status = 0; }
2653 done
2654
2655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2656 /* end confdefs.h. */
2657
2658 int
2659 main ()
2660 {
2661
2662 ;
2663 return 0;
2664 }
2665 _ACEOF
2666 ac_clean_files_save=$ac_clean_files
2667 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2668 # Try to create an executable without -o first, disregard a.out.
2669 # It will help us diagnose broken compilers, and finding out an intuition
2670 # of exeext.
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2672 $as_echo_n "checking whether the C compiler works... " >&6; }
2673 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2674
2675 # The possible output files:
2676 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2677
2678 ac_rmfiles=
2679 for ac_file in $ac_files
2680 do
2681 case $ac_file in
2682 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2683 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2684 esac
2685 done
2686 rm -f $ac_rmfiles
2687
2688 if { { ac_try="$ac_link_default"
2689 case "(($ac_try" in
2690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691 *) ac_try_echo=$ac_try;;
2692 esac
2693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2694 $as_echo "$ac_try_echo"; } >&5
2695 (eval "$ac_link_default") 2>&5
2696 ac_status=$?
2697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2698 test $ac_status = 0; }; then :
2699 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2700 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2701 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2702 # so that the user can short-circuit this test for compilers unknown to
2703 # Autoconf.
2704 for ac_file in $ac_files ''
2705 do
2706 test -f "$ac_file" || continue
2707 case $ac_file in
2708 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2709 ;;
2710 [ab].out )
2711 # We found the default executable, but exeext='' is most
2712 # certainly right.
2713 break;;
2714 *.* )
2715 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2716 then :; else
2717 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2718 fi
2719 # We set ac_cv_exeext here because the later test for it is not
2720 # safe: cross compilers may not add the suffix if given an `-o'
2721 # argument, so we may need to know it at that point already.
2722 # Even if this section looks crufty: it has the advantage of
2723 # actually working.
2724 break;;
2725 * )
2726 break;;
2727 esac
2728 done
2729 test "$ac_cv_exeext" = no && ac_cv_exeext=
2730
2731 else
2732 ac_file=''
2733 fi
2734 if test -z "$ac_file"; then :
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2736 $as_echo "no" >&6; }
2737 $as_echo "$as_me: failed program was:" >&5
2738 sed 's/^/| /' conftest.$ac_ext >&5
2739
2740 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2742 as_fn_error 77 "C compiler cannot create executables
2743 See \`config.log' for more details" "$LINENO" 5; }
2744 else
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2746 $as_echo "yes" >&6; }
2747 fi
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2749 $as_echo_n "checking for C compiler default output file name... " >&6; }
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2751 $as_echo "$ac_file" >&6; }
2752 ac_exeext=$ac_cv_exeext
2753
2754 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2755 ac_clean_files=$ac_clean_files_save
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2757 $as_echo_n "checking for suffix of executables... " >&6; }
2758 if { { ac_try="$ac_link"
2759 case "(($ac_try" in
2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761 *) ac_try_echo=$ac_try;;
2762 esac
2763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2764 $as_echo "$ac_try_echo"; } >&5
2765 (eval "$ac_link") 2>&5
2766 ac_status=$?
2767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2768 test $ac_status = 0; }; then :
2769 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2770 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2771 # work properly (i.e., refer to `conftest.exe'), while it won't with
2772 # `rm'.
2773 for ac_file in conftest.exe conftest conftest.*; do
2774 test -f "$ac_file" || continue
2775 case $ac_file in
2776 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2777 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2778 break;;
2779 * ) break;;
2780 esac
2781 done
2782 else
2783 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2785 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2786 See \`config.log' for more details" "$LINENO" 5; }
2787 fi
2788 rm -f conftest conftest$ac_cv_exeext
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2790 $as_echo "$ac_cv_exeext" >&6; }
2791
2792 rm -f conftest.$ac_ext
2793 EXEEXT=$ac_cv_exeext
2794 ac_exeext=$EXEEXT
2795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2796 /* end confdefs.h. */
2797 #include <stdio.h>
2798 int
2799 main ()
2800 {
2801 FILE *f = fopen ("conftest.out", "w");
2802 return ferror (f) || fclose (f) != 0;
2803
2804 ;
2805 return 0;
2806 }
2807 _ACEOF
2808 ac_clean_files="$ac_clean_files conftest.out"
2809 # Check that the compiler produces executables we can run. If not, either
2810 # the compiler is broken, or we cross compile.
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2812 $as_echo_n "checking whether we are cross compiling... " >&6; }
2813 if test "$cross_compiling" != yes; then
2814 { { ac_try="$ac_link"
2815 case "(($ac_try" in
2816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817 *) ac_try_echo=$ac_try;;
2818 esac
2819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2820 $as_echo "$ac_try_echo"; } >&5
2821 (eval "$ac_link") 2>&5
2822 ac_status=$?
2823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2824 test $ac_status = 0; }
2825 if { ac_try='./conftest$ac_cv_exeext'
2826 { { case "(($ac_try" in
2827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2828 *) ac_try_echo=$ac_try;;
2829 esac
2830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2831 $as_echo "$ac_try_echo"; } >&5
2832 (eval "$ac_try") 2>&5
2833 ac_status=$?
2834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2835 test $ac_status = 0; }; }; then
2836 cross_compiling=no
2837 else
2838 if test "$cross_compiling" = maybe; then
2839 cross_compiling=yes
2840 else
2841 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2842 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2843 as_fn_error $? "cannot run C compiled programs.
2844 If you meant to cross compile, use \`--host'.
2845 See \`config.log' for more details" "$LINENO" 5; }
2846 fi
2847 fi
2848 fi
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2850 $as_echo "$cross_compiling" >&6; }
2851
2852 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2853 ac_clean_files=$ac_clean_files_save
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2855 $as_echo_n "checking for suffix of object files... " >&6; }
2856 if ${ac_cv_objext+:} false; then :
2857 $as_echo_n "(cached) " >&6
2858 else
2859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2860 /* end confdefs.h. */
2861
2862 int
2863 main ()
2864 {
2865
2866 ;
2867 return 0;
2868 }
2869 _ACEOF
2870 rm -f conftest.o conftest.obj
2871 if { { ac_try="$ac_compile"
2872 case "(($ac_try" in
2873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874 *) ac_try_echo=$ac_try;;
2875 esac
2876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2877 $as_echo "$ac_try_echo"; } >&5
2878 (eval "$ac_compile") 2>&5
2879 ac_status=$?
2880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2881 test $ac_status = 0; }; then :
2882 for ac_file in conftest.o conftest.obj conftest.*; do
2883 test -f "$ac_file" || continue;
2884 case $ac_file in
2885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2886 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2887 break;;
2888 esac
2889 done
2890 else
2891 $as_echo "$as_me: failed program was:" >&5
2892 sed 's/^/| /' conftest.$ac_ext >&5
2893
2894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2896 as_fn_error $? "cannot compute suffix of object files: cannot compile
2897 See \`config.log' for more details" "$LINENO" 5; }
2898 fi
2899 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2900 fi
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2902 $as_echo "$ac_cv_objext" >&6; }
2903 OBJEXT=$ac_cv_objext
2904 ac_objext=$OBJEXT
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2906 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2907 if ${ac_cv_c_compiler_gnu+:} false; then :
2908 $as_echo_n "(cached) " >&6
2909 else
2910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2911 /* end confdefs.h. */
2912
2913 int
2914 main ()
2915 {
2916 #ifndef __GNUC__
2917 choke me
2918 #endif
2919
2920 ;
2921 return 0;
2922 }
2923 _ACEOF
2924 if ac_fn_c_try_compile "$LINENO"; then :
2925 ac_compiler_gnu=yes
2926 else
2927 ac_compiler_gnu=no
2928 fi
2929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2930 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2931
2932 fi
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2934 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2935 if test $ac_compiler_gnu = yes; then
2936 GCC=yes
2937 else
2938 GCC=
2939 fi
2940 ac_test_CFLAGS=${CFLAGS+set}
2941 ac_save_CFLAGS=$CFLAGS
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2943 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2944 if ${ac_cv_prog_cc_g+:} false; then :
2945 $as_echo_n "(cached) " >&6
2946 else
2947 ac_save_c_werror_flag=$ac_c_werror_flag
2948 ac_c_werror_flag=yes
2949 ac_cv_prog_cc_g=no
2950 CFLAGS="-g"
2951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2952 /* end confdefs.h. */
2953
2954 int
2955 main ()
2956 {
2957
2958 ;
2959 return 0;
2960 }
2961 _ACEOF
2962 if ac_fn_c_try_compile "$LINENO"; then :
2963 ac_cv_prog_cc_g=yes
2964 else
2965 CFLAGS=""
2966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2967 /* end confdefs.h. */
2968
2969 int
2970 main ()
2971 {
2972
2973 ;
2974 return 0;
2975 }
2976 _ACEOF
2977 if ac_fn_c_try_compile "$LINENO"; then :
2978
2979 else
2980 ac_c_werror_flag=$ac_save_c_werror_flag
2981 CFLAGS="-g"
2982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2983 /* end confdefs.h. */
2984
2985 int
2986 main ()
2987 {
2988
2989 ;
2990 return 0;
2991 }
2992 _ACEOF
2993 if ac_fn_c_try_compile "$LINENO"; then :
2994 ac_cv_prog_cc_g=yes
2995 fi
2996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2997 fi
2998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2999 fi
3000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3001 ac_c_werror_flag=$ac_save_c_werror_flag
3002 fi
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3004 $as_echo "$ac_cv_prog_cc_g" >&6; }
3005 if test "$ac_test_CFLAGS" = set; then
3006 CFLAGS=$ac_save_CFLAGS
3007 elif test $ac_cv_prog_cc_g = yes; then
3008 if test "$GCC" = yes; then
3009 CFLAGS="-g -O2"
3010 else
3011 CFLAGS="-g"
3012 fi
3013 else
3014 if test "$GCC" = yes; then
3015 CFLAGS="-O2"
3016 else
3017 CFLAGS=
3018 fi
3019 fi
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3021 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3022 if ${ac_cv_prog_cc_c89+:} false; then :
3023 $as_echo_n "(cached) " >&6
3024 else
3025 ac_cv_prog_cc_c89=no
3026 ac_save_CC=$CC
3027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3028 /* end confdefs.h. */
3029 #include <stdarg.h>
3030 #include <stdio.h>
3031 #include <sys/types.h>
3032 #include <sys/stat.h>
3033 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3034 struct buf { int x; };
3035 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3036 static char *e (p, i)
3037 char **p;
3038 int i;
3039 {
3040 return p[i];
3041 }
3042 static char *f (char * (*g) (char **, int), char **p, ...)
3043 {
3044 char *s;
3045 va_list v;
3046 va_start (v,p);
3047 s = g (p, va_arg (v,int));
3048 va_end (v);
3049 return s;
3050 }
3051
3052 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3053 function prototypes and stuff, but not '\xHH' hex character constants.
3054 These don't provoke an error unfortunately, instead are silently treated
3055 as 'x'. The following induces an error, until -std is added to get
3056 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3057 array size at least. It's necessary to write '\x00'==0 to get something
3058 that's true only with -std. */
3059 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3060
3061 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3062 inside strings and character constants. */
3063 #define FOO(x) 'x'
3064 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3065
3066 int test (int i, double x);
3067 struct s1 {int (*f) (int a);};
3068 struct s2 {int (*f) (double a);};
3069 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3070 int argc;
3071 char **argv;
3072 int
3073 main ()
3074 {
3075 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3076 ;
3077 return 0;
3078 }
3079 _ACEOF
3080 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3081 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3082 do
3083 CC="$ac_save_CC $ac_arg"
3084 if ac_fn_c_try_compile "$LINENO"; then :
3085 ac_cv_prog_cc_c89=$ac_arg
3086 fi
3087 rm -f core conftest.err conftest.$ac_objext
3088 test "x$ac_cv_prog_cc_c89" != "xno" && break
3089 done
3090 rm -f conftest.$ac_ext
3091 CC=$ac_save_CC
3092
3093 fi
3094 # AC_CACHE_VAL
3095 case "x$ac_cv_prog_cc_c89" in
3096 x)
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3098 $as_echo "none needed" >&6; } ;;
3099 xno)
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3101 $as_echo "unsupported" >&6; } ;;
3102 *)
3103 CC="$CC $ac_cv_prog_cc_c89"
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3105 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3106 esac
3107 if test "x$ac_cv_prog_cc_c89" != xno; then :
3108
3109 fi
3110
3111 ac_ext=c
3112 ac_cpp='$CPP $CPPFLAGS'
3113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3116
3117 ac_ext=c
3118 ac_cpp='$CPP $CPPFLAGS'
3119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3123 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3124 if ${am_cv_prog_cc_c_o+:} false; then :
3125 $as_echo_n "(cached) " >&6
3126 else
3127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3128 /* end confdefs.h. */
3129
3130 int
3131 main ()
3132 {
3133
3134 ;
3135 return 0;
3136 }
3137 _ACEOF
3138 # Make sure it works both with $CC and with simple cc.
3139 # Following AC_PROG_CC_C_O, we do the test twice because some
3140 # compilers refuse to overwrite an existing .o file with -o,
3141 # though they will create one.
3142 am_cv_prog_cc_c_o=yes
3143 for am_i in 1 2; do
3144 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3145 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } \
3149 && test -f conftest2.$ac_objext; then
3150 : OK
3151 else
3152 am_cv_prog_cc_c_o=no
3153 break
3154 fi
3155 done
3156 rm -f core conftest*
3157 unset am_i
3158 fi
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3160 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3161 if test "$am_cv_prog_cc_c_o" != yes; then
3162 # Losing compiler, so override with the script.
3163 # FIXME: It is wrong to rewrite CC.
3164 # But if we don't then we get into trouble of one sort or another.
3165 # A longer-term fix would be to have automake use am__CC in this case,
3166 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3167 CC="$am_aux_dir/compile $CC"
3168 fi
3169 ac_ext=c
3170 ac_cpp='$CPP $CPPFLAGS'
3171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3174
3175
3176
3177 ac_ext=c
3178 ac_cpp='$CPP $CPPFLAGS'
3179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3183 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3184 # On Suns, sometimes $CPP names a directory.
3185 if test -n "$CPP" && test -d "$CPP"; then
3186 CPP=
3187 fi
3188 if test -z "$CPP"; then
3189 if ${ac_cv_prog_CPP+:} false; then :
3190 $as_echo_n "(cached) " >&6
3191 else
3192 # Double quotes because CPP needs to be expanded
3193 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3194 do
3195 ac_preproc_ok=false
3196 for ac_c_preproc_warn_flag in '' yes
3197 do
3198 # Use a header file that comes with gcc, so configuring glibc
3199 # with a fresh cross-compiler works.
3200 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3201 # <limits.h> exists even on freestanding compilers.
3202 # On the NeXT, cc -E runs the code through the compiler's parser,
3203 # not just through cpp. "Syntax error" is here to catch this case.
3204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3205 /* end confdefs.h. */
3206 #ifdef __STDC__
3207 # include <limits.h>
3208 #else
3209 # include <assert.h>
3210 #endif
3211 Syntax error
3212 _ACEOF
3213 if ac_fn_c_try_cpp "$LINENO"; then :
3214
3215 else
3216 # Broken: fails on valid input.
3217 continue
3218 fi
3219 rm -f conftest.err conftest.i conftest.$ac_ext
3220
3221 # OK, works on sane cases. Now check whether nonexistent headers
3222 # can be detected and how.
3223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3224 /* end confdefs.h. */
3225 #include <ac_nonexistent.h>
3226 _ACEOF
3227 if ac_fn_c_try_cpp "$LINENO"; then :
3228 # Broken: success on invalid input.
3229 continue
3230 else
3231 # Passes both tests.
3232 ac_preproc_ok=:
3233 break
3234 fi
3235 rm -f conftest.err conftest.i conftest.$ac_ext
3236
3237 done
3238 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3239 rm -f conftest.i conftest.err conftest.$ac_ext
3240 if $ac_preproc_ok; then :
3241 break
3242 fi
3243
3244 done
3245 ac_cv_prog_CPP=$CPP
3246
3247 fi
3248 CPP=$ac_cv_prog_CPP
3249 else
3250 ac_cv_prog_CPP=$CPP
3251 fi
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3253 $as_echo "$CPP" >&6; }
3254 ac_preproc_ok=false
3255 for ac_c_preproc_warn_flag in '' yes
3256 do
3257 # Use a header file that comes with gcc, so configuring glibc
3258 # with a fresh cross-compiler works.
3259 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3260 # <limits.h> exists even on freestanding compilers.
3261 # On the NeXT, cc -E runs the code through the compiler's parser,
3262 # not just through cpp. "Syntax error" is here to catch this case.
3263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264 /* end confdefs.h. */
3265 #ifdef __STDC__
3266 # include <limits.h>
3267 #else
3268 # include <assert.h>
3269 #endif
3270 Syntax error
3271 _ACEOF
3272 if ac_fn_c_try_cpp "$LINENO"; then :
3273
3274 else
3275 # Broken: fails on valid input.
3276 continue
3277 fi
3278 rm -f conftest.err conftest.i conftest.$ac_ext
3279
3280 # OK, works on sane cases. Now check whether nonexistent headers
3281 # can be detected and how.
3282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3283 /* end confdefs.h. */
3284 #include <ac_nonexistent.h>
3285 _ACEOF
3286 if ac_fn_c_try_cpp "$LINENO"; then :
3287 # Broken: success on invalid input.
3288 continue
3289 else
3290 # Passes both tests.
3291 ac_preproc_ok=:
3292 break
3293 fi
3294 rm -f conftest.err conftest.i conftest.$ac_ext
3295
3296 done
3297 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3298 rm -f conftest.i conftest.err conftest.$ac_ext
3299 if $ac_preproc_ok; then :
3300
3301 else
3302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3304 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3305 See \`config.log' for more details" "$LINENO" 5; }
3306 fi
3307
3308 ac_ext=c
3309 ac_cpp='$CPP $CPPFLAGS'
3310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3313
3314
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3316 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3317 if ${ac_cv_path_GREP+:} false; then :
3318 $as_echo_n "(cached) " >&6
3319 else
3320 if test -z "$GREP"; then
3321 ac_path_GREP_found=false
3322 # Loop through the user's path and test for each of PROGNAME-LIST
3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3325 do
3326 IFS=$as_save_IFS
3327 test -z "$as_dir" && as_dir=.
3328 for ac_prog in grep ggrep; do
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3331 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3332 # Check for GNU ac_path_GREP and select it if it is found.
3333 # Check for GNU $ac_path_GREP
3334 case `"$ac_path_GREP" --version 2>&1` in
3335 *GNU*)
3336 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3337 *)
3338 ac_count=0
3339 $as_echo_n 0123456789 >"conftest.in"
3340 while :
3341 do
3342 cat "conftest.in" "conftest.in" >"conftest.tmp"
3343 mv "conftest.tmp" "conftest.in"
3344 cp "conftest.in" "conftest.nl"
3345 $as_echo 'GREP' >> "conftest.nl"
3346 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3347 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3348 as_fn_arith $ac_count + 1 && ac_count=$as_val
3349 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3350 # Best one so far, save it but keep looking for a better one
3351 ac_cv_path_GREP="$ac_path_GREP"
3352 ac_path_GREP_max=$ac_count
3353 fi
3354 # 10*(2^10) chars as input seems more than enough
3355 test $ac_count -gt 10 && break
3356 done
3357 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3358 esac
3359
3360 $ac_path_GREP_found && break 3
3361 done
3362 done
3363 done
3364 IFS=$as_save_IFS
3365 if test -z "$ac_cv_path_GREP"; then
3366 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3367 fi
3368 else
3369 ac_cv_path_GREP=$GREP
3370 fi
3371
3372 fi
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3374 $as_echo "$ac_cv_path_GREP" >&6; }
3375 GREP="$ac_cv_path_GREP"
3376
3377
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3379 $as_echo_n "checking for egrep... " >&6; }
3380 if ${ac_cv_path_EGREP+:} false; then :
3381 $as_echo_n "(cached) " >&6
3382 else
3383 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3384 then ac_cv_path_EGREP="$GREP -E"
3385 else
3386 if test -z "$EGREP"; then
3387 ac_path_EGREP_found=false
3388 # Loop through the user's path and test for each of PROGNAME-LIST
3389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3391 do
3392 IFS=$as_save_IFS
3393 test -z "$as_dir" && as_dir=.
3394 for ac_prog in egrep; do
3395 for ac_exec_ext in '' $ac_executable_extensions; do
3396 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3397 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3398 # Check for GNU ac_path_EGREP and select it if it is found.
3399 # Check for GNU $ac_path_EGREP
3400 case `"$ac_path_EGREP" --version 2>&1` in
3401 *GNU*)
3402 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3403 *)
3404 ac_count=0
3405 $as_echo_n 0123456789 >"conftest.in"
3406 while :
3407 do
3408 cat "conftest.in" "conftest.in" >"conftest.tmp"
3409 mv "conftest.tmp" "conftest.in"
3410 cp "conftest.in" "conftest.nl"
3411 $as_echo 'EGREP' >> "conftest.nl"
3412 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3413 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3414 as_fn_arith $ac_count + 1 && ac_count=$as_val
3415 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3416 # Best one so far, save it but keep looking for a better one
3417 ac_cv_path_EGREP="$ac_path_EGREP"
3418 ac_path_EGREP_max=$ac_count
3419 fi
3420 # 10*(2^10) chars as input seems more than enough
3421 test $ac_count -gt 10 && break
3422 done
3423 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3424 esac
3425
3426 $ac_path_EGREP_found && break 3
3427 done
3428 done
3429 done
3430 IFS=$as_save_IFS
3431 if test -z "$ac_cv_path_EGREP"; then
3432 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3433 fi
3434 else
3435 ac_cv_path_EGREP=$EGREP
3436 fi
3437
3438 fi
3439 fi
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3441 $as_echo "$ac_cv_path_EGREP" >&6; }
3442 EGREP="$ac_cv_path_EGREP"
3443
3444
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3446 $as_echo_n "checking for ANSI C header files... " >&6; }
3447 if ${ac_cv_header_stdc+:} false; then :
3448 $as_echo_n "(cached) " >&6
3449 else
3450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3451 /* end confdefs.h. */
3452 #include <stdlib.h>
3453 #include <stdarg.h>
3454 #include <string.h>
3455 #include <float.h>
3456
3457 int
3458 main ()
3459 {
3460
3461 ;
3462 return 0;
3463 }
3464 _ACEOF
3465 if ac_fn_c_try_compile "$LINENO"; then :
3466 ac_cv_header_stdc=yes
3467 else
3468 ac_cv_header_stdc=no
3469 fi
3470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3471
3472 if test $ac_cv_header_stdc = yes; then
3473 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475 /* end confdefs.h. */
3476 #include <string.h>
3477
3478 _ACEOF
3479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3480 $EGREP "memchr" >/dev/null 2>&1; then :
3481
3482 else
3483 ac_cv_header_stdc=no
3484 fi
3485 rm -f conftest*
3486
3487 fi
3488
3489 if test $ac_cv_header_stdc = yes; then
3490 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3492 /* end confdefs.h. */
3493 #include <stdlib.h>
3494
3495 _ACEOF
3496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3497 $EGREP "free" >/dev/null 2>&1; then :
3498
3499 else
3500 ac_cv_header_stdc=no
3501 fi
3502 rm -f conftest*
3503
3504 fi
3505
3506 if test $ac_cv_header_stdc = yes; then
3507 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3508 if test "$cross_compiling" = yes; then :
3509 :
3510 else
3511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512 /* end confdefs.h. */
3513 #include <ctype.h>
3514 #include <stdlib.h>
3515 #if ((' ' & 0x0FF) == 0x020)
3516 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3517 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3518 #else
3519 # define ISLOWER(c) \
3520 (('a' <= (c) && (c) <= 'i') \
3521 || ('j' <= (c) && (c) <= 'r') \
3522 || ('s' <= (c) && (c) <= 'z'))
3523 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3524 #endif
3525
3526 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3527 int
3528 main ()
3529 {
3530 int i;
3531 for (i = 0; i < 256; i++)
3532 if (XOR (islower (i), ISLOWER (i))
3533 || toupper (i) != TOUPPER (i))
3534 return 2;
3535 return 0;
3536 }
3537 _ACEOF
3538 if ac_fn_c_try_run "$LINENO"; then :
3539
3540 else
3541 ac_cv_header_stdc=no
3542 fi
3543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3544 conftest.$ac_objext conftest.beam conftest.$ac_ext
3545 fi
3546
3547 fi
3548 fi
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3550 $as_echo "$ac_cv_header_stdc" >&6; }
3551 if test $ac_cv_header_stdc = yes; then
3552
3553 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3554
3555 fi
3556
3557 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3558 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3559 inttypes.h stdint.h unistd.h
3560 do :
3561 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3562 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3563 "
3564 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3565 cat >>confdefs.h <<_ACEOF
3566 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3567 _ACEOF
3568
3569 fi
3570
3571 done
3572
3573
3574
3575 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3576 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3577 MINIX=yes
3578 else
3579 MINIX=
3580 fi
3581
3582
3583 if test "$MINIX" = yes; then
3584
3585 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3586
3587
3588 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3589
3590
3591 $as_echo "#define _MINIX 1" >>confdefs.h
3592
3593 fi
3594
3595
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3597 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3598 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3599 $as_echo_n "(cached) " >&6
3600 else
3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602 /* end confdefs.h. */
3603
3604 # define __EXTENSIONS__ 1
3605 $ac_includes_default
3606 int
3607 main ()
3608 {
3609
3610 ;
3611 return 0;
3612 }
3613 _ACEOF
3614 if ac_fn_c_try_compile "$LINENO"; then :
3615 ac_cv_safe_to_define___extensions__=yes
3616 else
3617 ac_cv_safe_to_define___extensions__=no
3618 fi
3619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3620 fi
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3622 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3623 test $ac_cv_safe_to_define___extensions__ = yes &&
3624 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3625
3626 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3627
3628 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3629
3630 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3631
3632 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3633
3634
3635
3636 # Initialize Automake
3637 am__api_version='1.14'
3638
3639 # Find a good install program. We prefer a C program (faster),
3640 # so one script is as good as another. But avoid the broken or
3641 # incompatible versions:
3642 # SysV /etc/install, /usr/sbin/install
3643 # SunOS /usr/etc/install
3644 # IRIX /sbin/install
3645 # AIX /bin/install
3646 # AmigaOS /C/install, which installs bootblocks on floppy discs
3647 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3648 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3649 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3650 # OS/2's system install, which has a completely different semantic
3651 # ./install, which can be erroneously created by make from ./install.sh.
3652 # Reject install programs that cannot install multiple files.
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3654 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3655 if test -z "$INSTALL"; then
3656 if ${ac_cv_path_install+:} false; then :
3657 $as_echo_n "(cached) " >&6
3658 else
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH
3661 do
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
3664 # Account for people who put trailing slashes in PATH elements.
3665 case $as_dir/ in #((
3666 ./ | .// | /[cC]/* | \
3667 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3668 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3669 /usr/ucb/* ) ;;
3670 *)
3671 # OSF1 and SCO ODT 3.0 have their own names for install.
3672 # Don't use installbsd from OSF since it installs stuff as root
3673 # by default.
3674 for ac_prog in ginstall scoinst install; do
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3677 if test $ac_prog = install &&
3678 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3679 # AIX install. It has an incompatible calling convention.
3680 :
3681 elif test $ac_prog = install &&
3682 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3683 # program-specific install script used by HP pwplus--don't use.
3684 :
3685 else
3686 rm -rf conftest.one conftest.two conftest.dir
3687 echo one > conftest.one
3688 echo two > conftest.two
3689 mkdir conftest.dir
3690 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3691 test -s conftest.one && test -s conftest.two &&
3692 test -s conftest.dir/conftest.one &&
3693 test -s conftest.dir/conftest.two
3694 then
3695 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3696 break 3
3697 fi
3698 fi
3699 fi
3700 done
3701 done
3702 ;;
3703 esac
3704
3705 done
3706 IFS=$as_save_IFS
3707
3708 rm -rf conftest.one conftest.two conftest.dir
3709
3710 fi
3711 if test "${ac_cv_path_install+set}" = set; then
3712 INSTALL=$ac_cv_path_install
3713 else
3714 # As a last resort, use the slow shell script. Don't cache a
3715 # value for INSTALL within a source directory, because that will
3716 # break other packages using the cache if that directory is
3717 # removed, or if the value is a relative name.
3718 INSTALL=$ac_install_sh
3719 fi
3720 fi
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3722 $as_echo "$INSTALL" >&6; }
3723
3724 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3725 # It thinks the first close brace ends the variable substitution.
3726 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3727
3728 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3729
3730 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3731
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3733 $as_echo_n "checking whether build environment is sane... " >&6; }
3734 # Reject unsafe characters in $srcdir or the absolute working directory
3735 # name. Accept space and tab only in the latter.
3736 am_lf='
3737 '
3738 case `pwd` in
3739 *[\\\"\#\$\&\'\`$am_lf]*)
3740 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3741 esac
3742 case $srcdir in
3743 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3744 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3745 esac
3746
3747 # Do 'set' in a subshell so we don't clobber the current shell's
3748 # arguments. Must try -L first in case configure is actually a
3749 # symlink; some systems play weird games with the mod time of symlinks
3750 # (eg FreeBSD returns the mod time of the symlink's containing
3751 # directory).
3752 if (
3753 am_has_slept=no
3754 for am_try in 1 2; do
3755 echo "timestamp, slept: $am_has_slept" > conftest.file
3756 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3757 if test "$*" = "X"; then
3758 # -L didn't work.
3759 set X `ls -t "$srcdir/configure" conftest.file`
3760 fi
3761 if test "$*" != "X $srcdir/configure conftest.file" \
3762 && test "$*" != "X conftest.file $srcdir/configure"; then
3763
3764 # If neither matched, then we have a broken ls. This can happen
3765 # if, for instance, CONFIG_SHELL is bash and it inherits a
3766 # broken ls alias from the environment. This has actually
3767 # happened. Such a system could not be considered "sane".
3768 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3769 alias in your environment" "$LINENO" 5
3770 fi
3771 if test "$2" = conftest.file || test $am_try -eq 2; then
3772 break
3773 fi
3774 # Just in case.
3775 sleep 1
3776 am_has_slept=yes
3777 done
3778 test "$2" = conftest.file
3779 )
3780 then
3781 # Ok.
3782 :
3783 else
3784 as_fn_error $? "newly created file is older than distributed files!
3785 Check your system clock" "$LINENO" 5
3786 fi
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3788 $as_echo "yes" >&6; }
3789 # If we didn't sleep, we still need to ensure time stamps of config.status and
3790 # generated files are strictly newer.
3791 am_sleep_pid=
3792 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3793 ( sleep 1 ) &
3794 am_sleep_pid=$!
3795 fi
3796
3797 rm -f conftest.file
3798
3799 test "$program_prefix" != NONE &&
3800 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3801 # Use a double $ so make ignores it.
3802 test "$program_suffix" != NONE &&
3803 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3804 # Double any \ or $.
3805 # By default was `s,x,x', remove it if useless.
3806 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3807 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3808
3809 if test x"${MISSING+set}" != xset; then
3810 case $am_aux_dir in
3811 *\ * | *\ *)
3812 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3813 *)
3814 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3815 esac
3816 fi
3817 # Use eval to expand $SHELL
3818 if eval "$MISSING --is-lightweight"; then
3819 am_missing_run="$MISSING "
3820 else
3821 am_missing_run=
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3823 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3824 fi
3825
3826 if test x"${install_sh}" != xset; then
3827 case $am_aux_dir in
3828 *\ * | *\ *)
3829 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3830 *)
3831 install_sh="\${SHELL} $am_aux_dir/install-sh"
3832 esac
3833 fi
3834
3835 # Installed binaries are usually stripped using 'strip' when the user
3836 # run "make install-strip". However 'strip' might not be the right
3837 # tool to use in cross-compilation environments, therefore Automake
3838 # will honor the 'STRIP' environment variable to overrule this program.
3839 if test "$cross_compiling" != no; then
3840 if test -n "$ac_tool_prefix"; then
3841 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3842 set dummy ${ac_tool_prefix}strip; ac_word=$2
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3844 $as_echo_n "checking for $ac_word... " >&6; }
3845 if ${ac_cv_prog_STRIP+:} false; then :
3846 $as_echo_n "(cached) " >&6
3847 else
3848 if test -n "$STRIP"; then
3849 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3850 else
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 for as_dir in $PATH
3853 do
3854 IFS=$as_save_IFS
3855 test -z "$as_dir" && as_dir=.
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3858 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3860 break 2
3861 fi
3862 done
3863 done
3864 IFS=$as_save_IFS
3865
3866 fi
3867 fi
3868 STRIP=$ac_cv_prog_STRIP
3869 if test -n "$STRIP"; then
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3871 $as_echo "$STRIP" >&6; }
3872 else
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3874 $as_echo "no" >&6; }
3875 fi
3876
3877
3878 fi
3879 if test -z "$ac_cv_prog_STRIP"; then
3880 ac_ct_STRIP=$STRIP
3881 # Extract the first word of "strip", so it can be a program name with args.
3882 set dummy strip; ac_word=$2
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3884 $as_echo_n "checking for $ac_word... " >&6; }
3885 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3886 $as_echo_n "(cached) " >&6
3887 else
3888 if test -n "$ac_ct_STRIP"; then
3889 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3890 else
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH
3893 do
3894 IFS=$as_save_IFS
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3898 ac_cv_prog_ac_ct_STRIP="strip"
3899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3900 break 2
3901 fi
3902 done
3903 done
3904 IFS=$as_save_IFS
3905
3906 fi
3907 fi
3908 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3909 if test -n "$ac_ct_STRIP"; then
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3911 $as_echo "$ac_ct_STRIP" >&6; }
3912 else
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3914 $as_echo "no" >&6; }
3915 fi
3916
3917 if test "x$ac_ct_STRIP" = x; then
3918 STRIP=":"
3919 else
3920 case $cross_compiling:$ac_tool_warned in
3921 yes:)
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3924 ac_tool_warned=yes ;;
3925 esac
3926 STRIP=$ac_ct_STRIP
3927 fi
3928 else
3929 STRIP="$ac_cv_prog_STRIP"
3930 fi
3931
3932 fi
3933 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3934
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3936 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3937 if test -z "$MKDIR_P"; then
3938 if ${ac_cv_path_mkdir+:} false; then :
3939 $as_echo_n "(cached) " >&6
3940 else
3941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3943 do
3944 IFS=$as_save_IFS
3945 test -z "$as_dir" && as_dir=.
3946 for ac_prog in mkdir gmkdir; do
3947 for ac_exec_ext in '' $ac_executable_extensions; do
3948 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3949 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3950 'mkdir (GNU coreutils) '* | \
3951 'mkdir (coreutils) '* | \
3952 'mkdir (fileutils) '4.1*)
3953 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3954 break 3;;
3955 esac
3956 done
3957 done
3958 done
3959 IFS=$as_save_IFS
3960
3961 fi
3962
3963 test -d ./--version && rmdir ./--version
3964 if test "${ac_cv_path_mkdir+set}" = set; then
3965 MKDIR_P="$ac_cv_path_mkdir -p"
3966 else
3967 # As a last resort, use the slow shell script. Don't cache a
3968 # value for MKDIR_P within a source directory, because that will
3969 # break other packages using the cache if that directory is
3970 # removed, or if the value is a relative name.
3971 MKDIR_P="$ac_install_sh -d"
3972 fi
3973 fi
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3975 $as_echo "$MKDIR_P" >&6; }
3976
3977 for ac_prog in gawk mawk nawk awk
3978 do
3979 # Extract the first word of "$ac_prog", so it can be a program name with args.
3980 set dummy $ac_prog; ac_word=$2
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3982 $as_echo_n "checking for $ac_word... " >&6; }
3983 if ${ac_cv_prog_AWK+:} false; then :
3984 $as_echo_n "(cached) " >&6
3985 else
3986 if test -n "$AWK"; then
3987 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3988 else
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH
3991 do
3992 IFS=$as_save_IFS
3993 test -z "$as_dir" && as_dir=.
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3996 ac_cv_prog_AWK="$ac_prog"
3997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3998 break 2
3999 fi
4000 done
4001 done
4002 IFS=$as_save_IFS
4003
4004 fi
4005 fi
4006 AWK=$ac_cv_prog_AWK
4007 if test -n "$AWK"; then
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4009 $as_echo "$AWK" >&6; }
4010 else
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4012 $as_echo "no" >&6; }
4013 fi
4014
4015
4016 test -n "$AWK" && break
4017 done
4018
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4020 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4021 set x ${MAKE-make}
4022 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4023 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4024 $as_echo_n "(cached) " >&6
4025 else
4026 cat >conftest.make <<\_ACEOF
4027 SHELL = /bin/sh
4028 all:
4029 @echo '@@@%%%=$(MAKE)=@@@%%%'
4030 _ACEOF
4031 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4032 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4033 *@@@%%%=?*=@@@%%%*)
4034 eval ac_cv_prog_make_${ac_make}_set=yes;;
4035 *)
4036 eval ac_cv_prog_make_${ac_make}_set=no;;
4037 esac
4038 rm -f conftest.make
4039 fi
4040 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4042 $as_echo "yes" >&6; }
4043 SET_MAKE=
4044 else
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4046 $as_echo "no" >&6; }
4047 SET_MAKE="MAKE=${MAKE-make}"
4048 fi
4049
4050 rm -rf .tst 2>/dev/null
4051 mkdir .tst 2>/dev/null
4052 if test -d .tst; then
4053 am__leading_dot=.
4054 else
4055 am__leading_dot=_
4056 fi
4057 rmdir .tst 2>/dev/null
4058
4059 DEPDIR="${am__leading_dot}deps"
4060
4061 ac_config_commands="$ac_config_commands depfiles"
4062
4063
4064 am_make=${MAKE-make}
4065 cat > confinc << 'END'
4066 am__doit:
4067 @echo this is the am__doit target
4068 .PHONY: am__doit
4069 END
4070 # If we don't find an include directive, just comment out the code.
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4072 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4073 am__include="#"
4074 am__quote=
4075 _am_result=none
4076 # First try GNU make style include.
4077 echo "include confinc" > confmf
4078 # Ignore all kinds of additional output from 'make'.
4079 case `$am_make -s -f confmf 2> /dev/null` in #(
4080 *the\ am__doit\ target*)
4081 am__include=include
4082 am__quote=
4083 _am_result=GNU
4084 ;;
4085 esac
4086 # Now try BSD make style include.
4087 if test "$am__include" = "#"; then
4088 echo '.include "confinc"' > confmf
4089 case `$am_make -s -f confmf 2> /dev/null` in #(
4090 *the\ am__doit\ target*)
4091 am__include=.include
4092 am__quote="\""
4093 _am_result=BSD
4094 ;;
4095 esac
4096 fi
4097
4098
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4100 $as_echo "$_am_result" >&6; }
4101 rm -f confinc confmf
4102
4103 # Check whether --enable-dependency-tracking was given.
4104 if test "${enable_dependency_tracking+set}" = set; then :
4105 enableval=$enable_dependency_tracking;
4106 fi
4107
4108 if test "x$enable_dependency_tracking" != xno; then
4109 am_depcomp="$ac_aux_dir/depcomp"
4110 AMDEPBACKSLASH='\'
4111 am__nodep='_no'
4112 fi
4113 if test "x$enable_dependency_tracking" != xno; then
4114 AMDEP_TRUE=
4115 AMDEP_FALSE='#'
4116 else
4117 AMDEP_TRUE='#'
4118 AMDEP_FALSE=
4119 fi
4120
4121
4122 # Check whether --enable-silent-rules was given.
4123 if test "${enable_silent_rules+set}" = set; then :
4124 enableval=$enable_silent_rules;
4125 fi
4126
4127 case $enable_silent_rules in # (((
4128 yes) AM_DEFAULT_VERBOSITY=0;;
4129 no) AM_DEFAULT_VERBOSITY=1;;
4130 *) AM_DEFAULT_VERBOSITY=1;;
4131 esac
4132 am_make=${MAKE-make}
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4134 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4135 if ${am_cv_make_support_nested_variables+:} false; then :
4136 $as_echo_n "(cached) " >&6
4137 else
4138 if $as_echo 'TRUE=$(BAR$(V))
4139 BAR0=false
4140 BAR1=true
4141 V=1
4142 am__doit:
4143 @$(TRUE)
4144 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4145 am_cv_make_support_nested_variables=yes
4146 else
4147 am_cv_make_support_nested_variables=no
4148 fi
4149 fi
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4151 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4152 if test $am_cv_make_support_nested_variables = yes; then
4153 AM_V='$(V)'
4154 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4155 else
4156 AM_V=$AM_DEFAULT_VERBOSITY
4157 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4158 fi
4159 AM_BACKSLASH='\'
4160
4161 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4162 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4163 # is not polluted with repeated "-I."
4164 am__isrc=' -I$(srcdir)'
4165 # test to see if srcdir already configured
4166 if test -f $srcdir/config.status; then
4167 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4168 fi
4169 fi
4170
4171 # test whether we have cygpath
4172 if test -z "$CYGPATH_W"; then
4173 if (cygpath --version) >/dev/null 2>/dev/null; then
4174 CYGPATH_W='cygpath -w'
4175 else
4176 CYGPATH_W=echo
4177 fi
4178 fi
4179
4180
4181 # Define the identity of the package.
4182 PACKAGE='xf86-input-mouse'
4183 VERSION='1.9.1'
4184
4185
4186 cat >>confdefs.h <<_ACEOF
4187 #define PACKAGE "$PACKAGE"
4188 _ACEOF
4189
4190
4191 cat >>confdefs.h <<_ACEOF
4192 #define VERSION "$VERSION"
4193 _ACEOF
4194
4195 # Some tools Automake needs.
4196
4197 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4198
4199
4200 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4201
4202
4203 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4204
4205
4206 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4207
4208
4209 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4210
4211 # For better backward compatibility. To be removed once Automake 1.9.x
4212 # dies out for good. For more background, see:
4213 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4214 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4215 mkdir_p='$(MKDIR_P)'
4216
4217 # We need awk for the "check" target. The system "awk" is bad on
4218 # some platforms.
4219 # Always define AMTAR for backward compatibility. Yes, it's still used
4220 # in the wild :-( We should find a proper way to deprecate it ...
4221 AMTAR='$${TAR-tar}'
4222
4223
4224 # We'll loop over all known methods to create a tar archive until one works.
4225 _am_tools='gnutar pax cpio none'
4226
4227 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4228
4229
4230
4231
4232
4233 depcc="$CC" am_compiler_list=
4234
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4236 $as_echo_n "checking dependency style of $depcc... " >&6; }
4237 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4238 $as_echo_n "(cached) " >&6
4239 else
4240 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4241 # We make a subdir and do the tests there. Otherwise we can end up
4242 # making bogus files that we don't know about and never remove. For
4243 # instance it was reported that on HP-UX the gcc test will end up
4244 # making a dummy file named 'D' -- because '-MD' means "put the output
4245 # in D".
4246 rm -rf conftest.dir
4247 mkdir conftest.dir
4248 # Copy depcomp to subdir because otherwise we won't find it if we're
4249 # using a relative directory.
4250 cp "$am_depcomp" conftest.dir
4251 cd conftest.dir
4252 # We will build objects and dependencies in a subdirectory because
4253 # it helps to detect inapplicable dependency modes. For instance
4254 # both Tru64's cc and ICC support -MD to output dependencies as a
4255 # side effect of compilation, but ICC will put the dependencies in
4256 # the current directory while Tru64 will put them in the object
4257 # directory.
4258 mkdir sub
4259
4260 am_cv_CC_dependencies_compiler_type=none
4261 if test "$am_compiler_list" = ""; then
4262 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4263 fi
4264 am__universal=false
4265 case " $depcc " in #(
4266 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4267 esac
4268
4269 for depmode in $am_compiler_list; do
4270 # Setup a source with many dependencies, because some compilers
4271 # like to wrap large dependency lists on column 80 (with \), and
4272 # we should not choose a depcomp mode which is confused by this.
4273 #
4274 # We need to recreate these files for each test, as the compiler may
4275 # overwrite some of them when testing with obscure command lines.
4276 # This happens at least with the AIX C compiler.
4277 : > sub/conftest.c
4278 for i in 1 2 3 4 5 6; do
4279 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4280 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4281 # Solaris 10 /bin/sh.
4282 echo '/* dummy */' > sub/conftst$i.h
4283 done
4284 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4285
4286 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4287 # mode. It turns out that the SunPro C++ compiler does not properly
4288 # handle '-M -o', and we need to detect this. Also, some Intel
4289 # versions had trouble with output in subdirs.
4290 am__obj=sub/conftest.${OBJEXT-o}
4291 am__minus_obj="-o $am__obj"
4292 case $depmode in
4293 gcc)
4294 # This depmode causes a compiler race in universal mode.
4295 test "$am__universal" = false || continue
4296 ;;
4297 nosideeffect)
4298 # After this tag, mechanisms are not by side-effect, so they'll
4299 # only be used when explicitly requested.
4300 if test "x$enable_dependency_tracking" = xyes; then
4301 continue
4302 else
4303 break
4304 fi
4305 ;;
4306 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4307 # This compiler won't grok '-c -o', but also, the minuso test has
4308 # not run yet. These depmodes are late enough in the game, and
4309 # so weak that their functioning should not be impacted.
4310 am__obj=conftest.${OBJEXT-o}
4311 am__minus_obj=
4312 ;;
4313 none) break ;;
4314 esac
4315 if depmode=$depmode \
4316 source=sub/conftest.c object=$am__obj \
4317 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4318 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4319 >/dev/null 2>conftest.err &&
4320 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4321 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4322 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4323 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4324 # icc doesn't choke on unknown options, it will just issue warnings
4325 # or remarks (even with -Werror). So we grep stderr for any message
4326 # that says an option was ignored or not supported.
4327 # When given -MP, icc 7.0 and 7.1 complain thusly:
4328 # icc: Command line warning: ignoring option '-M'; no argument required
4329 # The diagnosis changed in icc 8.0:
4330 # icc: Command line remark: option '-MP' not supported
4331 if (grep 'ignoring option' conftest.err ||
4332 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4333 am_cv_CC_dependencies_compiler_type=$depmode
4334 break
4335 fi
4336 fi
4337 done
4338
4339 cd ..
4340 rm -rf conftest.dir
4341 else
4342 am_cv_CC_dependencies_compiler_type=none
4343 fi
4344
4345 fi
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4347 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4348 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4349
4350 if
4351 test "x$enable_dependency_tracking" != xno \
4352 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4353 am__fastdepCC_TRUE=
4354 am__fastdepCC_FALSE='#'
4355 else
4356 am__fastdepCC_TRUE='#'
4357 am__fastdepCC_FALSE=
4358 fi
4359
4360
4361
4362 # POSIX will say in a future version that running "rm -f" with no argument
4363 # is OK; and we want to be able to make that assumption in our Makefile
4364 # recipes. So use an aggressive probe to check that the usage we want is
4365 # actually supported "in the wild" to an acceptable degree.
4366 # See automake bug#10828.
4367 # To make any issue more visible, cause the running configure to be aborted
4368 # by default if the 'rm' program in use doesn't match our expectations; the
4369 # user can still override this though.
4370 if rm -f && rm -fr && rm -rf; then : OK; else
4371 cat >&2 <<'END'
4372 Oops!
4373
4374 Your 'rm' program seems unable to run without file operands specified
4375 on the command line, even when the '-f' option is present. This is contrary
4376 to the behaviour of most rm programs out there, and not conforming with
4377 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4378
4379 Please tell bug-automake@gnu.org about your system, including the value
4380 of your $PATH and any error possibly output before this message. This
4381 can help us improve future automake versions.
4382
4383 END
4384 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4385 echo 'Configuration will proceed anyway, since you have set the' >&2
4386 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4387 echo >&2
4388 else
4389 cat >&2 <<'END'
4390 Aborting the configuration process, to ensure you take notice of the issue.
4391
4392 You can download and install GNU coreutils to get an 'rm' implementation
4393 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4394
4395 If you want to complete the configuration process using your problematic
4396 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4397 to "yes", and re-run configure.
4398
4399 END
4400 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4401 fi
4402 fi
4403
4404 # Initialize libtool
4405 # Check whether --enable-static was given.
4406 if test "${enable_static+set}" = set; then :
4407 enableval=$enable_static; p=${PACKAGE-default}
4408 case $enableval in
4409 yes) enable_static=yes ;;
4410 no) enable_static=no ;;
4411 *)
4412 enable_static=no
4413 # Look at the argument we got. We use all the common list separators.
4414 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4415 for pkg in $enableval; do
4416 IFS="$lt_save_ifs"
4417 if test "X$pkg" = "X$p"; then
4418 enable_static=yes
4419 fi
4420 done
4421 IFS="$lt_save_ifs"
4422 ;;
4423 esac
4424 else
4425 enable_static=no
4426 fi
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436 case `pwd` in
4437 *\ * | *\ *)
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4439 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4440 esac
4441
4442
4443
4444 macro_version='2.4.2'
4445 macro_revision='1.3337'
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459 ltmain="$ac_aux_dir/ltmain.sh"
4460
4461 # Make sure we can run config.sub.
4462 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4463 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4464
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4466 $as_echo_n "checking build system type... " >&6; }
4467 if ${ac_cv_build+:} false; then :
4468 $as_echo_n "(cached) " >&6
4469 else
4470 ac_build_alias=$build_alias
4471 test "x$ac_build_alias" = x &&
4472 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4473 test "x$ac_build_alias" = x &&
4474 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4475 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4476 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4477
4478 fi
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4480 $as_echo "$ac_cv_build" >&6; }
4481 case $ac_cv_build in
4482 *-*-*) ;;
4483 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4484 esac
4485 build=$ac_cv_build
4486 ac_save_IFS=$IFS; IFS='-'
4487 set x $ac_cv_build
4488 shift
4489 build_cpu=$1
4490 build_vendor=$2
4491 shift; shift
4492 # Remember, the first character of IFS is used to create $*,
4493 # except with old shells:
4494 build_os=$*
4495 IFS=$ac_save_IFS
4496 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4497
4498
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4500 $as_echo_n "checking host system type... " >&6; }
4501 if ${ac_cv_host+:} false; then :
4502 $as_echo_n "(cached) " >&6
4503 else
4504 if test "x$host_alias" = x; then
4505 ac_cv_host=$ac_cv_build
4506 else
4507 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4508 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4509 fi
4510
4511 fi
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4513 $as_echo "$ac_cv_host" >&6; }
4514 case $ac_cv_host in
4515 *-*-*) ;;
4516 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4517 esac
4518 host=$ac_cv_host
4519 ac_save_IFS=$IFS; IFS='-'
4520 set x $ac_cv_host
4521 shift
4522 host_cpu=$1
4523 host_vendor=$2
4524 shift; shift
4525 # Remember, the first character of IFS is used to create $*,
4526 # except with old shells:
4527 host_os=$*
4528 IFS=$ac_save_IFS
4529 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4530
4531
4532 # Backslashify metacharacters that are still active within
4533 # double-quoted strings.
4534 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4535
4536 # Same as above, but do not quote variable references.
4537 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4538
4539 # Sed substitution to delay expansion of an escaped shell variable in a
4540 # double_quote_subst'ed string.
4541 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4542
4543 # Sed substitution to delay expansion of an escaped single quote.
4544 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4545
4546 # Sed substitution to avoid accidental globbing in evaled expressions
4547 no_glob_subst='s/\*/\\\*/g'
4548
4549 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4550 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4551 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4552
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4554 $as_echo_n "checking how to print strings... " >&6; }
4555 # Test print first, because it will be a builtin if present.
4556 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4557 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4558 ECHO='print -r --'
4559 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4560 ECHO='printf %s\n'
4561 else
4562 # Use this function as a fallback that always works.
4563 func_fallback_echo ()
4564 {
4565 eval 'cat <<_LTECHO_EOF
4566 $1
4567 _LTECHO_EOF'
4568 }
4569 ECHO='func_fallback_echo'
4570 fi
4571
4572 # func_echo_all arg...
4573 # Invoke $ECHO with all args, space-separated.
4574 func_echo_all ()
4575 {
4576 $ECHO ""
4577 }
4578
4579 case "$ECHO" in
4580 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4581 $as_echo "printf" >&6; } ;;
4582 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4583 $as_echo "print -r" >&6; } ;;
4584 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4585 $as_echo "cat" >&6; } ;;
4586 esac
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4602 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4603 if ${ac_cv_path_SED+:} false; then :
4604 $as_echo_n "(cached) " >&6
4605 else
4606 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4607 for ac_i in 1 2 3 4 5 6 7; do
4608 ac_script="$ac_script$as_nl$ac_script"
4609 done
4610 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4611 { ac_script=; unset ac_script;}
4612 if test -z "$SED"; then
4613 ac_path_SED_found=false
4614 # Loop through the user's path and test for each of PROGNAME-LIST
4615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 for as_dir in $PATH
4617 do
4618 IFS=$as_save_IFS
4619 test -z "$as_dir" && as_dir=.
4620 for ac_prog in sed gsed; do
4621 for ac_exec_ext in '' $ac_executable_extensions; do
4622 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4623 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4624 # Check for GNU ac_path_SED and select it if it is found.
4625 # Check for GNU $ac_path_SED
4626 case `"$ac_path_SED" --version 2>&1` in
4627 *GNU*)
4628 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4629 *)
4630 ac_count=0
4631 $as_echo_n 0123456789 >"conftest.in"
4632 while :
4633 do
4634 cat "conftest.in" "conftest.in" >"conftest.tmp"
4635 mv "conftest.tmp" "conftest.in"
4636 cp "conftest.in" "conftest.nl"
4637 $as_echo '' >> "conftest.nl"
4638 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4639 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4640 as_fn_arith $ac_count + 1 && ac_count=$as_val
4641 if test $ac_count -gt ${ac_path_SED_max-0}; then
4642 # Best one so far, save it but keep looking for a better one
4643 ac_cv_path_SED="$ac_path_SED"
4644 ac_path_SED_max=$ac_count
4645 fi
4646 # 10*(2^10) chars as input seems more than enough
4647 test $ac_count -gt 10 && break
4648 done
4649 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4650 esac
4651
4652 $ac_path_SED_found && break 3
4653 done
4654 done
4655 done
4656 IFS=$as_save_IFS
4657 if test -z "$ac_cv_path_SED"; then
4658 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4659 fi
4660 else
4661 ac_cv_path_SED=$SED
4662 fi
4663
4664 fi
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4666 $as_echo "$ac_cv_path_SED" >&6; }
4667 SED="$ac_cv_path_SED"
4668 rm -f conftest.sed
4669
4670 test -z "$SED" && SED=sed
4671 Xsed="$SED -e 1s/^X//"
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4684 $as_echo_n "checking for fgrep... " >&6; }
4685 if ${ac_cv_path_FGREP+:} false; then :
4686 $as_echo_n "(cached) " >&6
4687 else
4688 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4689 then ac_cv_path_FGREP="$GREP -F"
4690 else
4691 if test -z "$FGREP"; then
4692 ac_path_FGREP_found=false
4693 # Loop through the user's path and test for each of PROGNAME-LIST
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4696 do
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
4699 for ac_prog in fgrep; do
4700 for ac_exec_ext in '' $ac_executable_extensions; do
4701 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4702 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4703 # Check for GNU ac_path_FGREP and select it if it is found.
4704 # Check for GNU $ac_path_FGREP
4705 case `"$ac_path_FGREP" --version 2>&1` in
4706 *GNU*)
4707 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4708 *)
4709 ac_count=0
4710 $as_echo_n 0123456789 >"conftest.in"
4711 while :
4712 do
4713 cat "conftest.in" "conftest.in" >"conftest.tmp"
4714 mv "conftest.tmp" "conftest.in"
4715 cp "conftest.in" "conftest.nl"
4716 $as_echo 'FGREP' >> "conftest.nl"
4717 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4718 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4719 as_fn_arith $ac_count + 1 && ac_count=$as_val
4720 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4721 # Best one so far, save it but keep looking for a better one
4722 ac_cv_path_FGREP="$ac_path_FGREP"
4723 ac_path_FGREP_max=$ac_count
4724 fi
4725 # 10*(2^10) chars as input seems more than enough
4726 test $ac_count -gt 10 && break
4727 done
4728 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4729 esac
4730
4731 $ac_path_FGREP_found && break 3
4732 done
4733 done
4734 done
4735 IFS=$as_save_IFS
4736 if test -z "$ac_cv_path_FGREP"; then
4737 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4738 fi
4739 else
4740 ac_cv_path_FGREP=$FGREP
4741 fi
4742
4743 fi
4744 fi
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4746 $as_echo "$ac_cv_path_FGREP" >&6; }
4747 FGREP="$ac_cv_path_FGREP"
4748
4749
4750 test -z "$GREP" && GREP=grep
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770 # Check whether --with-gnu-ld was given.
4771 if test "${with_gnu_ld+set}" = set; then :
4772 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4773 else
4774 with_gnu_ld=no
4775 fi
4776
4777 ac_prog=ld
4778 if test "$GCC" = yes; then
4779 # Check if gcc -print-prog-name=ld gives a path.
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4781 $as_echo_n "checking for ld used by $CC... " >&6; }
4782 case $host in
4783 *-*-mingw*)
4784 # gcc leaves a trailing carriage return which upsets mingw
4785 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4786 *)
4787 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4788 esac
4789 case $ac_prog in
4790 # Accept absolute paths.
4791 [\\/]* | ?:[\\/]*)
4792 re_direlt='/[^/][^/]*/\.\./'
4793 # Canonicalize the pathname of ld
4794 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4795 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4796 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4797 done
4798 test -z "$LD" && LD="$ac_prog"
4799 ;;
4800 "")
4801 # If it fails, then pretend we aren't using GCC.
4802 ac_prog=ld
4803 ;;
4804 *)
4805 # If it is relative, then search for the first ld in PATH.
4806 with_gnu_ld=unknown
4807 ;;
4808 esac
4809 elif test "$with_gnu_ld" = yes; then
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4811 $as_echo_n "checking for GNU ld... " >&6; }
4812 else
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4814 $as_echo_n "checking for non-GNU ld... " >&6; }
4815 fi
4816 if ${lt_cv_path_LD+:} false; then :
4817 $as_echo_n "(cached) " >&6
4818 else
4819 if test -z "$LD"; then
4820 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4821 for ac_dir in $PATH; do
4822 IFS="$lt_save_ifs"
4823 test -z "$ac_dir" && ac_dir=.
4824 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4825 lt_cv_path_LD="$ac_dir/$ac_prog"
4826 # Check to see if the program is GNU ld. I'd rather use --version,
4827 # but apparently some variants of GNU ld only accept -v.
4828 # Break only if it was the GNU/non-GNU ld that we prefer.
4829 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4830 *GNU* | *'with BFD'*)
4831 test "$with_gnu_ld" != no && break
4832 ;;
4833 *)
4834 test "$with_gnu_ld" != yes && break
4835 ;;
4836 esac
4837 fi
4838 done
4839 IFS="$lt_save_ifs"
4840 else
4841 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4842 fi
4843 fi
4844
4845 LD="$lt_cv_path_LD"
4846 if test -n "$LD"; then
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4848 $as_echo "$LD" >&6; }
4849 else
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851 $as_echo "no" >&6; }
4852 fi
4853 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4855 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4856 if ${lt_cv_prog_gnu_ld+:} false; then :
4857 $as_echo_n "(cached) " >&6
4858 else
4859 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4860 case `$LD -v 2>&1 </dev/null` in
4861 *GNU* | *'with BFD'*)
4862 lt_cv_prog_gnu_ld=yes
4863 ;;
4864 *)
4865 lt_cv_prog_gnu_ld=no
4866 ;;
4867 esac
4868 fi
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4870 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4871 with_gnu_ld=$lt_cv_prog_gnu_ld
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4882 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4883 if ${lt_cv_path_NM+:} false; then :
4884 $as_echo_n "(cached) " >&6
4885 else
4886 if test -n "$NM"; then
4887 # Let the user override the test.
4888 lt_cv_path_NM="$NM"
4889 else
4890 lt_nm_to_check="${ac_tool_prefix}nm"
4891 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4892 lt_nm_to_check="$lt_nm_to_check nm"
4893 fi
4894 for lt_tmp_nm in $lt_nm_to_check; do
4895 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4896 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4897 IFS="$lt_save_ifs"
4898 test -z "$ac_dir" && ac_dir=.
4899 tmp_nm="$ac_dir/$lt_tmp_nm"
4900 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4901 # Check to see if the nm accepts a BSD-compat flag.
4902 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4903 # nm: unknown option "B" ignored
4904 # Tru64's nm complains that /dev/null is an invalid object file
4905 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4906 */dev/null* | *'Invalid file or object type'*)
4907 lt_cv_path_NM="$tmp_nm -B"
4908 break
4909 ;;
4910 *)
4911 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4912 */dev/null*)
4913 lt_cv_path_NM="$tmp_nm -p"
4914 break
4915 ;;
4916 *)
4917 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4918 continue # so that we can try to find one that supports BSD flags
4919 ;;
4920 esac
4921 ;;
4922 esac
4923 fi
4924 done
4925 IFS="$lt_save_ifs"
4926 done
4927 : ${lt_cv_path_NM=no}
4928 fi
4929 fi
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4931 $as_echo "$lt_cv_path_NM" >&6; }
4932 if test "$lt_cv_path_NM" != "no"; then
4933 NM="$lt_cv_path_NM"
4934 else
4935 # Didn't find any BSD compatible name lister, look for dumpbin.
4936 if test -n "$DUMPBIN"; then :
4937 # Let the user override the test.
4938 else
4939 if test -n "$ac_tool_prefix"; then
4940 for ac_prog in dumpbin "link -dump"
4941 do
4942 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4943 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4945 $as_echo_n "checking for $ac_word... " >&6; }
4946 if ${ac_cv_prog_DUMPBIN+:} false; then :
4947 $as_echo_n "(cached) " >&6
4948 else
4949 if test -n "$DUMPBIN"; then
4950 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4951 else
4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 for as_dir in $PATH
4954 do
4955 IFS=$as_save_IFS
4956 test -z "$as_dir" && as_dir=.
4957 for ac_exec_ext in '' $ac_executable_extensions; do
4958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4959 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4961 break 2
4962 fi
4963 done
4964 done
4965 IFS=$as_save_IFS
4966
4967 fi
4968 fi
4969 DUMPBIN=$ac_cv_prog_DUMPBIN
4970 if test -n "$DUMPBIN"; then
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4972 $as_echo "$DUMPBIN" >&6; }
4973 else
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4975 $as_echo "no" >&6; }
4976 fi
4977
4978
4979 test -n "$DUMPBIN" && break
4980 done
4981 fi
4982 if test -z "$DUMPBIN"; then
4983 ac_ct_DUMPBIN=$DUMPBIN
4984 for ac_prog in dumpbin "link -dump"
4985 do
4986 # Extract the first word of "$ac_prog", so it can be a program name with args.
4987 set dummy $ac_prog; ac_word=$2
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4989 $as_echo_n "checking for $ac_word... " >&6; }
4990 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4991 $as_echo_n "(cached) " >&6
4992 else
4993 if test -n "$ac_ct_DUMPBIN"; then
4994 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4995 else
4996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 for as_dir in $PATH
4998 do
4999 IFS=$as_save_IFS
5000 test -z "$as_dir" && as_dir=.
5001 for ac_exec_ext in '' $ac_executable_extensions; do
5002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5003 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5005 break 2
5006 fi
5007 done
5008 done
5009 IFS=$as_save_IFS
5010
5011 fi
5012 fi
5013 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5014 if test -n "$ac_ct_DUMPBIN"; then
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5016 $as_echo "$ac_ct_DUMPBIN" >&6; }
5017 else
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5019 $as_echo "no" >&6; }
5020 fi
5021
5022
5023 test -n "$ac_ct_DUMPBIN" && break
5024 done
5025
5026 if test "x$ac_ct_DUMPBIN" = x; then
5027 DUMPBIN=":"
5028 else
5029 case $cross_compiling:$ac_tool_warned in
5030 yes:)
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5033 ac_tool_warned=yes ;;
5034 esac
5035 DUMPBIN=$ac_ct_DUMPBIN
5036 fi
5037 fi
5038
5039 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5040 *COFF*)
5041 DUMPBIN="$DUMPBIN -symbols"
5042 ;;
5043 *)
5044 DUMPBIN=:
5045 ;;
5046 esac
5047 fi
5048
5049 if test "$DUMPBIN" != ":"; then
5050 NM="$DUMPBIN"
5051 fi
5052 fi
5053 test -z "$NM" && NM=nm
5054
5055
5056
5057
5058
5059
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5061 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5062 if ${lt_cv_nm_interface+:} false; then :
5063 $as_echo_n "(cached) " >&6
5064 else
5065 lt_cv_nm_interface="BSD nm"
5066 echo "int some_variable = 0;" > conftest.$ac_ext
5067 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5068 (eval "$ac_compile" 2>conftest.err)
5069 cat conftest.err >&5
5070 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5071 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5072 cat conftest.err >&5
5073 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5074 cat conftest.out >&5
5075 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5076 lt_cv_nm_interface="MS dumpbin"
5077 fi
5078 rm -f conftest*
5079 fi
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5081 $as_echo "$lt_cv_nm_interface" >&6; }
5082
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5084 $as_echo_n "checking whether ln -s works... " >&6; }
5085 LN_S=$as_ln_s
5086 if test "$LN_S" = "ln -s"; then
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5088 $as_echo "yes" >&6; }
5089 else
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5091 $as_echo "no, using $LN_S" >&6; }
5092 fi
5093
5094 # find the maximum length of command line arguments
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5096 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5097 if ${lt_cv_sys_max_cmd_len+:} false; then :
5098 $as_echo_n "(cached) " >&6
5099 else
5100 i=0
5101 teststring="ABCD"
5102
5103 case $build_os in
5104 msdosdjgpp*)
5105 # On DJGPP, this test can blow up pretty badly due to problems in libc
5106 # (any single argument exceeding 2000 bytes causes a buffer overrun
5107 # during glob expansion). Even if it were fixed, the result of this
5108 # check would be larger than it should be.
5109 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5110 ;;
5111
5112 gnu*)
5113 # Under GNU Hurd, this test is not required because there is
5114 # no limit to the length of command line arguments.
5115 # Libtool will interpret -1 as no limit whatsoever
5116 lt_cv_sys_max_cmd_len=-1;
5117 ;;
5118
5119 cygwin* | mingw* | cegcc*)
5120 # On Win9x/ME, this test blows up -- it succeeds, but takes
5121 # about 5 minutes as the teststring grows exponentially.
5122 # Worse, since 9x/ME are not pre-emptively multitasking,
5123 # you end up with a "frozen" computer, even though with patience
5124 # the test eventually succeeds (with a max line length of 256k).
5125 # Instead, let's just punt: use the minimum linelength reported by
5126 # all of the supported platforms: 8192 (on NT/2K/XP).
5127 lt_cv_sys_max_cmd_len=8192;
5128 ;;
5129
5130 mint*)
5131 # On MiNT this can take a long time and run out of memory.
5132 lt_cv_sys_max_cmd_len=8192;
5133 ;;
5134
5135 amigaos*)
5136 # On AmigaOS with pdksh, this test takes hours, literally.
5137 # So we just punt and use a minimum line length of 8192.
5138 lt_cv_sys_max_cmd_len=8192;
5139 ;;
5140
5141 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5142 # This has been around since 386BSD, at least. Likely further.
5143 if test -x /sbin/sysctl; then
5144 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5145 elif test -x /usr/sbin/sysctl; then
5146 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5147 else
5148 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5149 fi
5150 # And add a safety zone
5151 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5152 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5153 ;;
5154
5155 interix*)
5156 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5157 lt_cv_sys_max_cmd_len=196608
5158 ;;
5159
5160 os2*)
5161 # The test takes a long time on OS/2.
5162 lt_cv_sys_max_cmd_len=8192
5163 ;;
5164
5165 osf*)
5166 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5167 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5168 # nice to cause kernel panics so lets avoid the loop below.
5169 # First set a reasonable default.
5170 lt_cv_sys_max_cmd_len=16384
5171 #
5172 if test -x /sbin/sysconfig; then
5173 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5174 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5175 esac
5176 fi
5177 ;;
5178 sco3.2v5*)
5179 lt_cv_sys_max_cmd_len=102400
5180 ;;
5181 sysv5* | sco5v6* | sysv4.2uw2*)
5182 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5183 if test -n "$kargmax"; then
5184 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5185 else
5186 lt_cv_sys_max_cmd_len=32768
5187 fi
5188 ;;
5189 *)
5190 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5191 if test -n "$lt_cv_sys_max_cmd_len"; then
5192 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5193 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5194 else
5195 # Make teststring a little bigger before we do anything with it.
5196 # a 1K string should be a reasonable start.
5197 for i in 1 2 3 4 5 6 7 8 ; do
5198 teststring=$teststring$teststring
5199 done
5200 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5201 # If test is not a shell built-in, we'll probably end up computing a
5202 # maximum length that is only half of the actual maximum length, but
5203 # we can't tell.
5204 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5205 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5206 test $i != 17 # 1/2 MB should be enough
5207 do
5208 i=`expr $i + 1`
5209 teststring=$teststring$teststring
5210 done
5211 # Only check the string length outside the loop.
5212 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5213 teststring=
5214 # Add a significant safety factor because C++ compilers can tack on
5215 # massive amounts of additional arguments before passing them to the
5216 # linker. It appears as though 1/2 is a usable value.
5217 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5218 fi
5219 ;;
5220 esac
5221
5222 fi
5223
5224 if test -n $lt_cv_sys_max_cmd_len ; then
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5226 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5227 else
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5229 $as_echo "none" >&6; }
5230 fi
5231 max_cmd_len=$lt_cv_sys_max_cmd_len
5232
5233
5234
5235
5236
5237
5238 : ${CP="cp -f"}
5239 : ${MV="mv -f"}
5240 : ${RM="rm -f"}
5241
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5243 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5244 # Try some XSI features
5245 xsi_shell=no
5246 ( _lt_dummy="a/b/c"
5247 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5248 = c,a/b,b/c, \
5249 && eval 'test $(( 1 + 1 )) -eq 2 \
5250 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5251 && xsi_shell=yes
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5253 $as_echo "$xsi_shell" >&6; }
5254
5255
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5257 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5258 lt_shell_append=no
5259 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5260 >/dev/null 2>&1 \
5261 && lt_shell_append=yes
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5263 $as_echo "$lt_shell_append" >&6; }
5264
5265
5266 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5267 lt_unset=unset
5268 else
5269 lt_unset=false
5270 fi
5271
5272
5273
5274
5275
5276 # test EBCDIC or ASCII
5277 case `echo X|tr X '\101'` in
5278 A) # ASCII based system
5279 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5280 lt_SP2NL='tr \040 \012'
5281 lt_NL2SP='tr \015\012 \040\040'
5282 ;;
5283 *) # EBCDIC based system
5284 lt_SP2NL='tr \100 \n'
5285 lt_NL2SP='tr \r\n \100\100'
5286 ;;
5287 esac
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5298 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5299 if ${lt_cv_to_host_file_cmd+:} false; then :
5300 $as_echo_n "(cached) " >&6
5301 else
5302 case $host in
5303 *-*-mingw* )
5304 case $build in
5305 *-*-mingw* ) # actually msys
5306 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5307 ;;
5308 *-*-cygwin* )
5309 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5310 ;;
5311 * ) # otherwise, assume *nix
5312 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5313 ;;
5314 esac
5315 ;;
5316 *-*-cygwin* )
5317 case $build in
5318 *-*-mingw* ) # actually msys
5319 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5320 ;;
5321 *-*-cygwin* )
5322 lt_cv_to_host_file_cmd=func_convert_file_noop
5323 ;;
5324 * ) # otherwise, assume *nix
5325 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5326 ;;
5327 esac
5328 ;;
5329 * ) # unhandled hosts (and "normal" native builds)
5330 lt_cv_to_host_file_cmd=func_convert_file_noop
5331 ;;
5332 esac
5333
5334 fi
5335
5336 to_host_file_cmd=$lt_cv_to_host_file_cmd
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5338 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5339
5340
5341
5342
5343
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5345 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5346 if ${lt_cv_to_tool_file_cmd+:} false; then :
5347 $as_echo_n "(cached) " >&6
5348 else
5349 #assume ordinary cross tools, or native build.
5350 lt_cv_to_tool_file_cmd=func_convert_file_noop
5351 case $host in
5352 *-*-mingw* )
5353 case $build in
5354 *-*-mingw* ) # actually msys
5355 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5356 ;;
5357 esac
5358 ;;
5359 esac
5360
5361 fi
5362
5363 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5365 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5366
5367
5368
5369
5370
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5372 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5373 if ${lt_cv_ld_reload_flag+:} false; then :
5374 $as_echo_n "(cached) " >&6
5375 else
5376 lt_cv_ld_reload_flag='-r'
5377 fi
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5379 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5380 reload_flag=$lt_cv_ld_reload_flag
5381 case $reload_flag in
5382 "" | " "*) ;;
5383 *) reload_flag=" $reload_flag" ;;
5384 esac
5385 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5386 case $host_os in
5387 cygwin* | mingw* | pw32* | cegcc*)
5388 if test "$GCC" != yes; then
5389 reload_cmds=false
5390 fi
5391 ;;
5392 darwin*)
5393 if test "$GCC" = yes; then
5394 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5395 else
5396 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5397 fi
5398 ;;
5399 esac
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409 if test -n "$ac_tool_prefix"; then
5410 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5411 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5413 $as_echo_n "checking for $ac_word... " >&6; }
5414 if ${ac_cv_prog_OBJDUMP+:} false; then :
5415 $as_echo_n "(cached) " >&6
5416 else
5417 if test -n "$OBJDUMP"; then
5418 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5419 else
5420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421 for as_dir in $PATH
5422 do
5423 IFS=$as_save_IFS
5424 test -z "$as_dir" && as_dir=.
5425 for ac_exec_ext in '' $ac_executable_extensions; do
5426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5427 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5429 break 2
5430 fi
5431 done
5432 done
5433 IFS=$as_save_IFS
5434
5435 fi
5436 fi
5437 OBJDUMP=$ac_cv_prog_OBJDUMP
5438 if test -n "$OBJDUMP"; then
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5440 $as_echo "$OBJDUMP" >&6; }
5441 else
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5443 $as_echo "no" >&6; }
5444 fi
5445
5446
5447 fi
5448 if test -z "$ac_cv_prog_OBJDUMP"; then
5449 ac_ct_OBJDUMP=$OBJDUMP
5450 # Extract the first word of "objdump", so it can be a program name with args.
5451 set dummy objdump; ac_word=$2
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5453 $as_echo_n "checking for $ac_word... " >&6; }
5454 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5455 $as_echo_n "(cached) " >&6
5456 else
5457 if test -n "$ac_ct_OBJDUMP"; then
5458 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5459 else
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 for as_dir in $PATH
5462 do
5463 IFS=$as_save_IFS
5464 test -z "$as_dir" && as_dir=.
5465 for ac_exec_ext in '' $ac_executable_extensions; do
5466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5467 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5469 break 2
5470 fi
5471 done
5472 done
5473 IFS=$as_save_IFS
5474
5475 fi
5476 fi
5477 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5478 if test -n "$ac_ct_OBJDUMP"; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5480 $as_echo "$ac_ct_OBJDUMP" >&6; }
5481 else
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483 $as_echo "no" >&6; }
5484 fi
5485
5486 if test "x$ac_ct_OBJDUMP" = x; then
5487 OBJDUMP="false"
5488 else
5489 case $cross_compiling:$ac_tool_warned in
5490 yes:)
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5493 ac_tool_warned=yes ;;
5494 esac
5495 OBJDUMP=$ac_ct_OBJDUMP
5496 fi
5497 else
5498 OBJDUMP="$ac_cv_prog_OBJDUMP"
5499 fi
5500
5501 test -z "$OBJDUMP" && OBJDUMP=objdump
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5512 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5513 if ${lt_cv_deplibs_check_method+:} false; then :
5514 $as_echo_n "(cached) " >&6
5515 else
5516 lt_cv_file_magic_cmd='$MAGIC_CMD'
5517 lt_cv_file_magic_test_file=
5518 lt_cv_deplibs_check_method='unknown'
5519 # Need to set the preceding variable on all platforms that support
5520 # interlibrary dependencies.
5521 # 'none' -- dependencies not supported.
5522 # `unknown' -- same as none, but documents that we really don't know.
5523 # 'pass_all' -- all dependencies passed with no checks.
5524 # 'test_compile' -- check by making test program.
5525 # 'file_magic [[regex]]' -- check by looking for files in library path
5526 # which responds to the $file_magic_cmd with a given extended regex.
5527 # If you have `file' or equivalent on your system and you're not sure
5528 # whether `pass_all' will *always* work, you probably want this one.
5529
5530 case $host_os in
5531 aix[4-9]*)
5532 lt_cv_deplibs_check_method=pass_all
5533 ;;
5534
5535 beos*)
5536 lt_cv_deplibs_check_method=pass_all
5537 ;;
5538
5539 bsdi[45]*)
5540 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5541 lt_cv_file_magic_cmd='/usr/bin/file -L'
5542 lt_cv_file_magic_test_file=/shlib/libc.so
5543 ;;
5544
5545 cygwin*)
5546 # func_win32_libid is a shell function defined in ltmain.sh
5547 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5548 lt_cv_file_magic_cmd='func_win32_libid'
5549 ;;
5550
5551 mingw* | pw32*)
5552 # Base MSYS/MinGW do not provide the 'file' command needed by
5553 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5554 # unless we find 'file', for example because we are cross-compiling.
5555 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5556 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5557 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5558 lt_cv_file_magic_cmd='func_win32_libid'
5559 else
5560 # Keep this pattern in sync with the one in func_win32_libid.
5561 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5562 lt_cv_file_magic_cmd='$OBJDUMP -f'
5563 fi
5564 ;;
5565
5566 cegcc*)
5567 # use the weaker test based on 'objdump'. See mingw*.
5568 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5569 lt_cv_file_magic_cmd='$OBJDUMP -f'
5570 ;;
5571
5572 darwin* | rhapsody*)
5573 lt_cv_deplibs_check_method=pass_all
5574 ;;
5575
5576 freebsd* | dragonfly*)
5577 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5578 case $host_cpu in
5579 i*86 )
5580 # Not sure whether the presence of OpenBSD here was a mistake.
5581 # Let's accept both of them until this is cleared up.
5582 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5583 lt_cv_file_magic_cmd=/usr/bin/file
5584 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5585 ;;
5586 esac
5587 else
5588 lt_cv_deplibs_check_method=pass_all
5589 fi
5590 ;;
5591
5592 gnu*)
5593 lt_cv_deplibs_check_method=pass_all
5594 ;;
5595
5596 haiku*)
5597 lt_cv_deplibs_check_method=pass_all
5598 ;;
5599
5600 hpux10.20* | hpux11*)
5601 lt_cv_file_magic_cmd=/usr/bin/file
5602 case $host_cpu in
5603 ia64*)
5604 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5605 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5606 ;;
5607 hppa*64*)
5608 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]'
5609 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5610 ;;
5611 *)
5612 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5613 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5614 ;;
5615 esac
5616 ;;
5617
5618 interix[3-9]*)
5619 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5620 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5621 ;;
5622
5623 irix5* | irix6* | nonstopux*)
5624 case $LD in
5625 *-32|*"-32 ") libmagic=32-bit;;
5626 *-n32|*"-n32 ") libmagic=N32;;
5627 *-64|*"-64 ") libmagic=64-bit;;
5628 *) libmagic=never-match;;
5629 esac
5630 lt_cv_deplibs_check_method=pass_all
5631 ;;
5632
5633 # This must be glibc/ELF.
5634 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5635 lt_cv_deplibs_check_method=pass_all
5636 ;;
5637
5638 netbsd*)
5639 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5640 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5641 else
5642 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5643 fi
5644 ;;
5645
5646 newos6*)
5647 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5648 lt_cv_file_magic_cmd=/usr/bin/file
5649 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5650 ;;
5651
5652 *nto* | *qnx*)
5653 lt_cv_deplibs_check_method=pass_all
5654 ;;
5655
5656 openbsd*)
5657 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5658 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5659 else
5660 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5661 fi
5662 ;;
5663
5664 osf3* | osf4* | osf5*)
5665 lt_cv_deplibs_check_method=pass_all
5666 ;;
5667
5668 rdos*)
5669 lt_cv_deplibs_check_method=pass_all
5670 ;;
5671
5672 solaris*)
5673 lt_cv_deplibs_check_method=pass_all
5674 ;;
5675
5676 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5677 lt_cv_deplibs_check_method=pass_all
5678 ;;
5679
5680 sysv4 | sysv4.3*)
5681 case $host_vendor in
5682 motorola)
5683 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]'
5684 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5685 ;;
5686 ncr)
5687 lt_cv_deplibs_check_method=pass_all
5688 ;;
5689 sequent)
5690 lt_cv_file_magic_cmd='/bin/file'
5691 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5692 ;;
5693 sni)
5694 lt_cv_file_magic_cmd='/bin/file'
5695 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5696 lt_cv_file_magic_test_file=/lib/libc.so
5697 ;;
5698 siemens)
5699 lt_cv_deplibs_check_method=pass_all
5700 ;;
5701 pc)
5702 lt_cv_deplibs_check_method=pass_all
5703 ;;
5704 esac
5705 ;;
5706
5707 tpf*)
5708 lt_cv_deplibs_check_method=pass_all
5709 ;;
5710 esac
5711
5712 fi
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5714 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5715
5716 file_magic_glob=
5717 want_nocaseglob=no
5718 if test "$build" = "$host"; then
5719 case $host_os in
5720 mingw* | pw32*)
5721 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5722 want_nocaseglob=yes
5723 else
5724 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5725 fi
5726 ;;
5727 esac
5728 fi
5729
5730 file_magic_cmd=$lt_cv_file_magic_cmd
5731 deplibs_check_method=$lt_cv_deplibs_check_method
5732 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755 if test -n "$ac_tool_prefix"; then
5756 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5757 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5759 $as_echo_n "checking for $ac_word... " >&6; }
5760 if ${ac_cv_prog_DLLTOOL+:} false; then :
5761 $as_echo_n "(cached) " >&6
5762 else
5763 if test -n "$DLLTOOL"; then
5764 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5765 else
5766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 for as_dir in $PATH
5768 do
5769 IFS=$as_save_IFS
5770 test -z "$as_dir" && as_dir=.
5771 for ac_exec_ext in '' $ac_executable_extensions; do
5772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5773 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5775 break 2
5776 fi
5777 done
5778 done
5779 IFS=$as_save_IFS
5780
5781 fi
5782 fi
5783 DLLTOOL=$ac_cv_prog_DLLTOOL
5784 if test -n "$DLLTOOL"; then
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5786 $as_echo "$DLLTOOL" >&6; }
5787 else
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5789 $as_echo "no" >&6; }
5790 fi
5791
5792
5793 fi
5794 if test -z "$ac_cv_prog_DLLTOOL"; then
5795 ac_ct_DLLTOOL=$DLLTOOL
5796 # Extract the first word of "dlltool", so it can be a program name with args.
5797 set dummy dlltool; ac_word=$2
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5799 $as_echo_n "checking for $ac_word... " >&6; }
5800 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5801 $as_echo_n "(cached) " >&6
5802 else
5803 if test -n "$ac_ct_DLLTOOL"; then
5804 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5805 else
5806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807 for as_dir in $PATH
5808 do
5809 IFS=$as_save_IFS
5810 test -z "$as_dir" && as_dir=.
5811 for ac_exec_ext in '' $ac_executable_extensions; do
5812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5813 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5815 break 2
5816 fi
5817 done
5818 done
5819 IFS=$as_save_IFS
5820
5821 fi
5822 fi
5823 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5824 if test -n "$ac_ct_DLLTOOL"; then
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5826 $as_echo "$ac_ct_DLLTOOL" >&6; }
5827 else
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5829 $as_echo "no" >&6; }
5830 fi
5831
5832 if test "x$ac_ct_DLLTOOL" = x; then
5833 DLLTOOL="false"
5834 else
5835 case $cross_compiling:$ac_tool_warned in
5836 yes:)
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5839 ac_tool_warned=yes ;;
5840 esac
5841 DLLTOOL=$ac_ct_DLLTOOL
5842 fi
5843 else
5844 DLLTOOL="$ac_cv_prog_DLLTOOL"
5845 fi
5846
5847 test -z "$DLLTOOL" && DLLTOOL=dlltool
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5859 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5860 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5861 $as_echo_n "(cached) " >&6
5862 else
5863 lt_cv_sharedlib_from_linklib_cmd='unknown'
5864
5865 case $host_os in
5866 cygwin* | mingw* | pw32* | cegcc*)
5867 # two different shell functions defined in ltmain.sh
5868 # decide which to use based on capabilities of $DLLTOOL
5869 case `$DLLTOOL --help 2>&1` in
5870 *--identify-strict*)
5871 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5872 ;;
5873 *)
5874 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5875 ;;
5876 esac
5877 ;;
5878 *)
5879 # fallback: assume linklib IS sharedlib
5880 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5881 ;;
5882 esac
5883
5884 fi
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5886 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5887 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5888 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5889
5890
5891
5892
5893
5894
5895
5896 if test -n "$ac_tool_prefix"; then
5897 for ac_prog in ar
5898 do
5899 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5900 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5902 $as_echo_n "checking for $ac_word... " >&6; }
5903 if ${ac_cv_prog_AR+:} false; then :
5904 $as_echo_n "(cached) " >&6
5905 else
5906 if test -n "$AR"; then
5907 ac_cv_prog_AR="$AR" # Let the user override the test.
5908 else
5909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910 for as_dir in $PATH
5911 do
5912 IFS=$as_save_IFS
5913 test -z "$as_dir" && as_dir=.
5914 for ac_exec_ext in '' $ac_executable_extensions; do
5915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5916 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5918 break 2
5919 fi
5920 done
5921 done
5922 IFS=$as_save_IFS
5923
5924 fi
5925 fi
5926 AR=$ac_cv_prog_AR
5927 if test -n "$AR"; then
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5929 $as_echo "$AR" >&6; }
5930 else
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5932 $as_echo "no" >&6; }
5933 fi
5934
5935
5936 test -n "$AR" && break
5937 done
5938 fi
5939 if test -z "$AR"; then
5940 ac_ct_AR=$AR
5941 for ac_prog in ar
5942 do
5943 # Extract the first word of "$ac_prog", so it can be a program name with args.
5944 set dummy $ac_prog; ac_word=$2
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5946 $as_echo_n "checking for $ac_word... " >&6; }
5947 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5948 $as_echo_n "(cached) " >&6
5949 else
5950 if test -n "$ac_ct_AR"; then
5951 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5952 else
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954 for as_dir in $PATH
5955 do
5956 IFS=$as_save_IFS
5957 test -z "$as_dir" && as_dir=.
5958 for ac_exec_ext in '' $ac_executable_extensions; do
5959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5960 ac_cv_prog_ac_ct_AR="$ac_prog"
5961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5962 break 2
5963 fi
5964 done
5965 done
5966 IFS=$as_save_IFS
5967
5968 fi
5969 fi
5970 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5971 if test -n "$ac_ct_AR"; then
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5973 $as_echo "$ac_ct_AR" >&6; }
5974 else
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5976 $as_echo "no" >&6; }
5977 fi
5978
5979
5980 test -n "$ac_ct_AR" && break
5981 done
5982
5983 if test "x$ac_ct_AR" = x; then
5984 AR="false"
5985 else
5986 case $cross_compiling:$ac_tool_warned in
5987 yes:)
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5990 ac_tool_warned=yes ;;
5991 esac
5992 AR=$ac_ct_AR
5993 fi
5994 fi
5995
5996 : ${AR=ar}
5997 : ${AR_FLAGS=cru}
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6010 $as_echo_n "checking for archiver @FILE support... " >&6; }
6011 if ${lt_cv_ar_at_file+:} false; then :
6012 $as_echo_n "(cached) " >&6
6013 else
6014 lt_cv_ar_at_file=no
6015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6016 /* end confdefs.h. */
6017
6018 int
6019 main ()
6020 {
6021
6022 ;
6023 return 0;
6024 }
6025 _ACEOF
6026 if ac_fn_c_try_compile "$LINENO"; then :
6027 echo conftest.$ac_objext > conftest.lst
6028 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6030 (eval $lt_ar_try) 2>&5
6031 ac_status=$?
6032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6033 test $ac_status = 0; }
6034 if test "$ac_status" -eq 0; then
6035 # Ensure the archiver fails upon bogus file names.
6036 rm -f conftest.$ac_objext libconftest.a
6037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6038 (eval $lt_ar_try) 2>&5
6039 ac_status=$?
6040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6041 test $ac_status = 0; }
6042 if test "$ac_status" -ne 0; then
6043 lt_cv_ar_at_file=@
6044 fi
6045 fi
6046 rm -f conftest.* libconftest.a
6047
6048 fi
6049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6050
6051 fi
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6053 $as_echo "$lt_cv_ar_at_file" >&6; }
6054
6055 if test "x$lt_cv_ar_at_file" = xno; then
6056 archiver_list_spec=
6057 else
6058 archiver_list_spec=$lt_cv_ar_at_file
6059 fi
6060
6061
6062
6063
6064
6065
6066
6067 if test -n "$ac_tool_prefix"; then
6068 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6069 set dummy ${ac_tool_prefix}strip; ac_word=$2
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6071 $as_echo_n "checking for $ac_word... " >&6; }
6072 if ${ac_cv_prog_STRIP+:} false; then :
6073 $as_echo_n "(cached) " >&6
6074 else
6075 if test -n "$STRIP"; then
6076 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6077 else
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079 for as_dir in $PATH
6080 do
6081 IFS=$as_save_IFS
6082 test -z "$as_dir" && as_dir=.
6083 for ac_exec_ext in '' $ac_executable_extensions; do
6084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6085 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6087 break 2
6088 fi
6089 done
6090 done
6091 IFS=$as_save_IFS
6092
6093 fi
6094 fi
6095 STRIP=$ac_cv_prog_STRIP
6096 if test -n "$STRIP"; then
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6098 $as_echo "$STRIP" >&6; }
6099 else
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6101 $as_echo "no" >&6; }
6102 fi
6103
6104
6105 fi
6106 if test -z "$ac_cv_prog_STRIP"; then
6107 ac_ct_STRIP=$STRIP
6108 # Extract the first word of "strip", so it can be a program name with args.
6109 set dummy strip; ac_word=$2
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6111 $as_echo_n "checking for $ac_word... " >&6; }
6112 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6113 $as_echo_n "(cached) " >&6
6114 else
6115 if test -n "$ac_ct_STRIP"; then
6116 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6117 else
6118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119 for as_dir in $PATH
6120 do
6121 IFS=$as_save_IFS
6122 test -z "$as_dir" && as_dir=.
6123 for ac_exec_ext in '' $ac_executable_extensions; do
6124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6125 ac_cv_prog_ac_ct_STRIP="strip"
6126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6127 break 2
6128 fi
6129 done
6130 done
6131 IFS=$as_save_IFS
6132
6133 fi
6134 fi
6135 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6136 if test -n "$ac_ct_STRIP"; then
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6138 $as_echo "$ac_ct_STRIP" >&6; }
6139 else
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6141 $as_echo "no" >&6; }
6142 fi
6143
6144 if test "x$ac_ct_STRIP" = x; then
6145 STRIP=":"
6146 else
6147 case $cross_compiling:$ac_tool_warned in
6148 yes:)
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6151 ac_tool_warned=yes ;;
6152 esac
6153 STRIP=$ac_ct_STRIP
6154 fi
6155 else
6156 STRIP="$ac_cv_prog_STRIP"
6157 fi
6158
6159 test -z "$STRIP" && STRIP=:
6160
6161
6162
6163
6164
6165
6166 if test -n "$ac_tool_prefix"; then
6167 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6168 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6170 $as_echo_n "checking for $ac_word... " >&6; }
6171 if ${ac_cv_prog_RANLIB+:} false; then :
6172 $as_echo_n "(cached) " >&6
6173 else
6174 if test -n "$RANLIB"; then
6175 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6176 else
6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178 for as_dir in $PATH
6179 do
6180 IFS=$as_save_IFS
6181 test -z "$as_dir" && as_dir=.
6182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6184 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6186 break 2
6187 fi
6188 done
6189 done
6190 IFS=$as_save_IFS
6191
6192 fi
6193 fi
6194 RANLIB=$ac_cv_prog_RANLIB
6195 if test -n "$RANLIB"; then
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6197 $as_echo "$RANLIB" >&6; }
6198 else
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6200 $as_echo "no" >&6; }
6201 fi
6202
6203
6204 fi
6205 if test -z "$ac_cv_prog_RANLIB"; then
6206 ac_ct_RANLIB=$RANLIB
6207 # Extract the first word of "ranlib", so it can be a program name with args.
6208 set dummy ranlib; ac_word=$2
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6210 $as_echo_n "checking for $ac_word... " >&6; }
6211 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6212 $as_echo_n "(cached) " >&6
6213 else
6214 if test -n "$ac_ct_RANLIB"; then
6215 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6216 else
6217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218 for as_dir in $PATH
6219 do
6220 IFS=$as_save_IFS
6221 test -z "$as_dir" && as_dir=.
6222 for ac_exec_ext in '' $ac_executable_extensions; do
6223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6224 ac_cv_prog_ac_ct_RANLIB="ranlib"
6225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6226 break 2
6227 fi
6228 done
6229 done
6230 IFS=$as_save_IFS
6231
6232 fi
6233 fi
6234 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6235 if test -n "$ac_ct_RANLIB"; then
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6237 $as_echo "$ac_ct_RANLIB" >&6; }
6238 else
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6240 $as_echo "no" >&6; }
6241 fi
6242
6243 if test "x$ac_ct_RANLIB" = x; then
6244 RANLIB=":"
6245 else
6246 case $cross_compiling:$ac_tool_warned in
6247 yes:)
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6250 ac_tool_warned=yes ;;
6251 esac
6252 RANLIB=$ac_ct_RANLIB
6253 fi
6254 else
6255 RANLIB="$ac_cv_prog_RANLIB"
6256 fi
6257
6258 test -z "$RANLIB" && RANLIB=:
6259
6260
6261
6262
6263
6264
6265 # Determine commands to create old-style static archives.
6266 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6267 old_postinstall_cmds='chmod 644 $oldlib'
6268 old_postuninstall_cmds=
6269
6270 if test -n "$RANLIB"; then
6271 case $host_os in
6272 openbsd*)
6273 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6274 ;;
6275 *)
6276 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6277 ;;
6278 esac
6279 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6280 fi
6281
6282 case $host_os in
6283 darwin*)
6284 lock_old_archive_extraction=yes ;;
6285 *)
6286 lock_old_archive_extraction=no ;;
6287 esac
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327 # If no C compiler was specified, use CC.
6328 LTCC=${LTCC-"$CC"}
6329
6330 # If no C compiler flags were specified, use CFLAGS.
6331 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6332
6333 # Allow CC to be a program name with arguments.
6334 compiler=$CC
6335
6336
6337 # Check for command to grab the raw symbol name followed by C symbol from nm.
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6339 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6340 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6341 $as_echo_n "(cached) " >&6
6342 else
6343
6344 # These are sane defaults that work on at least a few old systems.
6345 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6346
6347 # Character class describing NM global symbol codes.
6348 symcode='[BCDEGRST]'
6349
6350 # Regexp to match symbols that can be accessed directly from C.
6351 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6352
6353 # Define system-specific variables.
6354 case $host_os in
6355 aix*)
6356 symcode='[BCDT]'
6357 ;;
6358 cygwin* | mingw* | pw32* | cegcc*)
6359 symcode='[ABCDGISTW]'
6360 ;;
6361 hpux*)
6362 if test "$host_cpu" = ia64; then
6363 symcode='[ABCDEGRST]'
6364 fi
6365 ;;
6366 irix* | nonstopux*)
6367 symcode='[BCDEGRST]'
6368 ;;
6369 osf*)
6370 symcode='[BCDEGQRST]'
6371 ;;
6372 solaris*)
6373 symcode='[BDRT]'
6374 ;;
6375 sco3.2v5*)
6376 symcode='[DT]'
6377 ;;
6378 sysv4.2uw2*)
6379 symcode='[DT]'
6380 ;;
6381 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6382 symcode='[ABDT]'
6383 ;;
6384 sysv4)
6385 symcode='[DFNSTU]'
6386 ;;
6387 esac
6388
6389 # If we're using GNU nm, then use its standard symbol codes.
6390 case `$NM -V 2>&1` in
6391 *GNU* | *'with BFD'*)
6392 symcode='[ABCDGIRSTW]' ;;
6393 esac
6394
6395 # Transform an extracted symbol line into a proper C declaration.
6396 # Some systems (esp. on ia64) link data and code symbols differently,
6397 # so use this general approach.
6398 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6399
6400 # Transform an extracted symbol line into symbol name and symbol address
6401 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6402 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'"
6403
6404 # Handle CRLF in mingw tool chain
6405 opt_cr=
6406 case $build_os in
6407 mingw*)
6408 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6409 ;;
6410 esac
6411
6412 # Try without a prefix underscore, then with it.
6413 for ac_symprfx in "" "_"; do
6414
6415 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6416 symxfrm="\\1 $ac_symprfx\\2 \\2"
6417
6418 # Write the raw and C identifiers.
6419 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6420 # Fake it for dumpbin and say T for any non-static function
6421 # and D for any global variable.
6422 # Also find C++ and __fastcall symbols from MSVC++,
6423 # which start with @ or ?.
6424 lt_cv_sys_global_symbol_pipe="$AWK '"\
6425 " {last_section=section; section=\$ 3};"\
6426 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6427 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6428 " \$ 0!~/External *\|/{next};"\
6429 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6430 " {if(hide[section]) next};"\
6431 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6432 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6433 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6434 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6435 " ' prfx=^$ac_symprfx"
6436 else
6437 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6438 fi
6439 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6440
6441 # Check to see that the pipe works correctly.
6442 pipe_works=no
6443
6444 rm -f conftest*
6445 cat > conftest.$ac_ext <<_LT_EOF
6446 #ifdef __cplusplus
6447 extern "C" {
6448 #endif
6449 char nm_test_var;
6450 void nm_test_func(void);
6451 void nm_test_func(void){}
6452 #ifdef __cplusplus
6453 }
6454 #endif
6455 int main(){nm_test_var='a';nm_test_func();return(0);}
6456 _LT_EOF
6457
6458 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6459 (eval $ac_compile) 2>&5
6460 ac_status=$?
6461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6462 test $ac_status = 0; }; then
6463 # Now try to grab the symbols.
6464 nlist=conftest.nm
6465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6466 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6467 ac_status=$?
6468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6469 test $ac_status = 0; } && test -s "$nlist"; then
6470 # Try sorting and uniquifying the output.
6471 if sort "$nlist" | uniq > "$nlist"T; then
6472 mv -f "$nlist"T "$nlist"
6473 else
6474 rm -f "$nlist"T
6475 fi
6476
6477 # Make sure that we snagged all the symbols we need.
6478 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6479 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6480 cat <<_LT_EOF > conftest.$ac_ext
6481 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6482 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6483 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6484 relocations are performed -- see ld's documentation on pseudo-relocs. */
6485 # define LT_DLSYM_CONST
6486 #elif defined(__osf__)
6487 /* This system does not cope well with relocations in const data. */
6488 # define LT_DLSYM_CONST
6489 #else
6490 # define LT_DLSYM_CONST const
6491 #endif
6492
6493 #ifdef __cplusplus
6494 extern "C" {
6495 #endif
6496
6497 _LT_EOF
6498 # Now generate the symbol file.
6499 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6500
6501 cat <<_LT_EOF >> conftest.$ac_ext
6502
6503 /* The mapping between symbol names and symbols. */
6504 LT_DLSYM_CONST struct {
6505 const char *name;
6506 void *address;
6507 }
6508 lt__PROGRAM__LTX_preloaded_symbols[] =
6509 {
6510 { "@PROGRAM@", (void *) 0 },
6511 _LT_EOF
6512 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6513 cat <<\_LT_EOF >> conftest.$ac_ext
6514 {0, (void *) 0}
6515 };
6516
6517 /* This works around a problem in FreeBSD linker */
6518 #ifdef FREEBSD_WORKAROUND
6519 static const void *lt_preloaded_setup() {
6520 return lt__PROGRAM__LTX_preloaded_symbols;
6521 }
6522 #endif
6523
6524 #ifdef __cplusplus
6525 }
6526 #endif
6527 _LT_EOF
6528 # Now try linking the two files.
6529 mv conftest.$ac_objext conftstm.$ac_objext
6530 lt_globsym_save_LIBS=$LIBS
6531 lt_globsym_save_CFLAGS=$CFLAGS
6532 LIBS="conftstm.$ac_objext"
6533 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6535 (eval $ac_link) 2>&5
6536 ac_status=$?
6537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6538 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6539 pipe_works=yes
6540 fi
6541 LIBS=$lt_globsym_save_LIBS
6542 CFLAGS=$lt_globsym_save_CFLAGS
6543 else
6544 echo "cannot find nm_test_func in $nlist" >&5
6545 fi
6546 else
6547 echo "cannot find nm_test_var in $nlist" >&5
6548 fi
6549 else
6550 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6551 fi
6552 else
6553 echo "$progname: failed program was:" >&5
6554 cat conftest.$ac_ext >&5
6555 fi
6556 rm -rf conftest* conftst*
6557
6558 # Do not use the global_symbol_pipe unless it works.
6559 if test "$pipe_works" = yes; then
6560 break
6561 else
6562 lt_cv_sys_global_symbol_pipe=
6563 fi
6564 done
6565
6566 fi
6567
6568 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6569 lt_cv_sys_global_symbol_to_cdecl=
6570 fi
6571 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6573 $as_echo "failed" >&6; }
6574 else
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6576 $as_echo "ok" >&6; }
6577 fi
6578
6579 # Response file support.
6580 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6581 nm_file_list_spec='@'
6582 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6583 nm_file_list_spec='@'
6584 fi
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6613 $as_echo_n "checking for sysroot... " >&6; }
6614
6615 # Check whether --with-sysroot was given.
6616 if test "${with_sysroot+set}" = set; then :
6617 withval=$with_sysroot;
6618 else
6619 with_sysroot=no
6620 fi
6621
6622
6623 lt_sysroot=
6624 case ${with_sysroot} in #(
6625 yes)
6626 if test "$GCC" = yes; then
6627 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6628 fi
6629 ;; #(
6630 /*)
6631 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6632 ;; #(
6633 no|'')
6634 ;; #(
6635 *)
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6637 $as_echo "${with_sysroot}" >&6; }
6638 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6639 ;;
6640 esac
6641
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6643 $as_echo "${lt_sysroot:-no}" >&6; }
6644
6645
6646
6647
6648
6649 # Check whether --enable-libtool-lock was given.
6650 if test "${enable_libtool_lock+set}" = set; then :
6651 enableval=$enable_libtool_lock;
6652 fi
6653
6654 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6655
6656 # Some flags need to be propagated to the compiler or linker for good
6657 # libtool support.
6658 case $host in
6659 ia64-*-hpux*)
6660 # Find out which ABI we are using.
6661 echo 'int i;' > conftest.$ac_ext
6662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6663 (eval $ac_compile) 2>&5
6664 ac_status=$?
6665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6666 test $ac_status = 0; }; then
6667 case `/usr/bin/file conftest.$ac_objext` in
6668 *ELF-32*)
6669 HPUX_IA64_MODE="32"
6670 ;;
6671 *ELF-64*)
6672 HPUX_IA64_MODE="64"
6673 ;;
6674 esac
6675 fi
6676 rm -rf conftest*
6677 ;;
6678 *-*-irix6*)
6679 # Find out which ABI we are using.
6680 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6682 (eval $ac_compile) 2>&5
6683 ac_status=$?
6684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6685 test $ac_status = 0; }; then
6686 if test "$lt_cv_prog_gnu_ld" = yes; then
6687 case `/usr/bin/file conftest.$ac_objext` in
6688 *32-bit*)
6689 LD="${LD-ld} -melf32bsmip"
6690 ;;
6691 *N32*)
6692 LD="${LD-ld} -melf32bmipn32"
6693 ;;
6694 *64-bit*)
6695 LD="${LD-ld} -melf64bmip"
6696 ;;
6697 esac
6698 else
6699 case `/usr/bin/file conftest.$ac_objext` in
6700 *32-bit*)
6701 LD="${LD-ld} -32"
6702 ;;
6703 *N32*)
6704 LD="${LD-ld} -n32"
6705 ;;
6706 *64-bit*)
6707 LD="${LD-ld} -64"
6708 ;;
6709 esac
6710 fi
6711 fi
6712 rm -rf conftest*
6713 ;;
6714
6715 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6716 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6717 # Find out which ABI we are using.
6718 echo 'int i;' > conftest.$ac_ext
6719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6720 (eval $ac_compile) 2>&5
6721 ac_status=$?
6722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6723 test $ac_status = 0; }; then
6724 case `/usr/bin/file conftest.o` in
6725 *32-bit*)
6726 case $host in
6727 x86_64-*kfreebsd*-gnu)
6728 LD="${LD-ld} -m elf_i386_fbsd"
6729 ;;
6730 x86_64-*linux*)
6731 LD="${LD-ld} -m elf_i386"
6732 ;;
6733 ppc64-*linux*|powerpc64-*linux*)
6734 LD="${LD-ld} -m elf32ppclinux"
6735 ;;
6736 s390x-*linux*)
6737 LD="${LD-ld} -m elf_s390"
6738 ;;
6739 sparc64-*linux*)
6740 LD="${LD-ld} -m elf32_sparc"
6741 ;;
6742 esac
6743 ;;
6744 *64-bit*)
6745 case $host in
6746 x86_64-*kfreebsd*-gnu)
6747 LD="${LD-ld} -m elf_x86_64_fbsd"
6748 ;;
6749 x86_64-*linux*)
6750 LD="${LD-ld} -m elf_x86_64"
6751 ;;
6752 ppc*-*linux*|powerpc*-*linux*)
6753 LD="${LD-ld} -m elf64ppc"
6754 ;;
6755 s390*-*linux*|s390*-*tpf*)
6756 LD="${LD-ld} -m elf64_s390"
6757 ;;
6758 sparc*-*linux*)
6759 LD="${LD-ld} -m elf64_sparc"
6760 ;;
6761 esac
6762 ;;
6763 esac
6764 fi
6765 rm -rf conftest*
6766 ;;
6767
6768 *-*-sco3.2v5*)
6769 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6770 SAVE_CFLAGS="$CFLAGS"
6771 CFLAGS="$CFLAGS -belf"
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6773 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6774 if ${lt_cv_cc_needs_belf+:} false; then :
6775 $as_echo_n "(cached) " >&6
6776 else
6777 ac_ext=c
6778 ac_cpp='$CPP $CPPFLAGS'
6779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6782
6783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6784 /* end confdefs.h. */
6785
6786 int
6787 main ()
6788 {
6789
6790 ;
6791 return 0;
6792 }
6793 _ACEOF
6794 if ac_fn_c_try_link "$LINENO"; then :
6795 lt_cv_cc_needs_belf=yes
6796 else
6797 lt_cv_cc_needs_belf=no
6798 fi
6799 rm -f core conftest.err conftest.$ac_objext \
6800 conftest$ac_exeext conftest.$ac_ext
6801 ac_ext=c
6802 ac_cpp='$CPP $CPPFLAGS'
6803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6806
6807 fi
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6809 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6810 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6811 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6812 CFLAGS="$SAVE_CFLAGS"
6813 fi
6814 ;;
6815 *-*solaris*)
6816 # Find out which ABI we are using.
6817 echo 'int i;' > conftest.$ac_ext
6818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6819 (eval $ac_compile) 2>&5
6820 ac_status=$?
6821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6822 test $ac_status = 0; }; then
6823 case `/usr/bin/file conftest.o` in
6824 *64-bit*)
6825 case $lt_cv_prog_gnu_ld in
6826 yes*)
6827 case $host in
6828 i?86-*-solaris*)
6829 LD="${LD-ld} -m elf_x86_64"
6830 ;;
6831 sparc*-*-solaris*)
6832 LD="${LD-ld} -m elf64_sparc"
6833 ;;
6834 esac
6835 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6836 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6837 LD="${LD-ld}_sol2"
6838 fi
6839 ;;
6840 *)
6841 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6842 LD="${LD-ld} -64"
6843 fi
6844 ;;
6845 esac
6846 ;;
6847 esac
6848 fi
6849 rm -rf conftest*
6850 ;;
6851 esac
6852
6853 need_locks="$enable_libtool_lock"
6854
6855 if test -n "$ac_tool_prefix"; then
6856 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6857 set dummy ${ac_tool_prefix}mt; ac_word=$2
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6859 $as_echo_n "checking for $ac_word... " >&6; }
6860 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6861 $as_echo_n "(cached) " >&6
6862 else
6863 if test -n "$MANIFEST_TOOL"; then
6864 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6865 else
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867 for as_dir in $PATH
6868 do
6869 IFS=$as_save_IFS
6870 test -z "$as_dir" && as_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
6872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6873 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6875 break 2
6876 fi
6877 done
6878 done
6879 IFS=$as_save_IFS
6880
6881 fi
6882 fi
6883 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6884 if test -n "$MANIFEST_TOOL"; then
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6886 $as_echo "$MANIFEST_TOOL" >&6; }
6887 else
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6889 $as_echo "no" >&6; }
6890 fi
6891
6892
6893 fi
6894 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6895 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6896 # Extract the first word of "mt", so it can be a program name with args.
6897 set dummy mt; ac_word=$2
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6899 $as_echo_n "checking for $ac_word... " >&6; }
6900 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6901 $as_echo_n "(cached) " >&6
6902 else
6903 if test -n "$ac_ct_MANIFEST_TOOL"; then
6904 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6905 else
6906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907 for as_dir in $PATH
6908 do
6909 IFS=$as_save_IFS
6910 test -z "$as_dir" && as_dir=.
6911 for ac_exec_ext in '' $ac_executable_extensions; do
6912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6913 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6915 break 2
6916 fi
6917 done
6918 done
6919 IFS=$as_save_IFS
6920
6921 fi
6922 fi
6923 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6924 if test -n "$ac_ct_MANIFEST_TOOL"; then
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6926 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6927 else
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6929 $as_echo "no" >&6; }
6930 fi
6931
6932 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6933 MANIFEST_TOOL=":"
6934 else
6935 case $cross_compiling:$ac_tool_warned in
6936 yes:)
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6939 ac_tool_warned=yes ;;
6940 esac
6941 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6942 fi
6943 else
6944 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6945 fi
6946
6947 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6949 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6950 if ${lt_cv_path_mainfest_tool+:} false; then :
6951 $as_echo_n "(cached) " >&6
6952 else
6953 lt_cv_path_mainfest_tool=no
6954 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6955 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6956 cat conftest.err >&5
6957 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6958 lt_cv_path_mainfest_tool=yes
6959 fi
6960 rm -f conftest*
6961 fi
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6963 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6964 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6965 MANIFEST_TOOL=:
6966 fi
6967
6968
6969
6970
6971
6972
6973 case $host_os in
6974 rhapsody* | darwin*)
6975 if test -n "$ac_tool_prefix"; then
6976 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6977 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6979 $as_echo_n "checking for $ac_word... " >&6; }
6980 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6981 $as_echo_n "(cached) " >&6
6982 else
6983 if test -n "$DSYMUTIL"; then
6984 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6985 else
6986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 for as_dir in $PATH
6988 do
6989 IFS=$as_save_IFS
6990 test -z "$as_dir" && as_dir=.
6991 for ac_exec_ext in '' $ac_executable_extensions; do
6992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6993 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6995 break 2
6996 fi
6997 done
6998 done
6999 IFS=$as_save_IFS
7000
7001 fi
7002 fi
7003 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7004 if test -n "$DSYMUTIL"; then
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7006 $as_echo "$DSYMUTIL" >&6; }
7007 else
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7009 $as_echo "no" >&6; }
7010 fi
7011
7012
7013 fi
7014 if test -z "$ac_cv_prog_DSYMUTIL"; then
7015 ac_ct_DSYMUTIL=$DSYMUTIL
7016 # Extract the first word of "dsymutil", so it can be a program name with args.
7017 set dummy dsymutil; ac_word=$2
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7019 $as_echo_n "checking for $ac_word... " >&6; }
7020 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7021 $as_echo_n "(cached) " >&6
7022 else
7023 if test -n "$ac_ct_DSYMUTIL"; then
7024 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7025 else
7026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027 for as_dir in $PATH
7028 do
7029 IFS=$as_save_IFS
7030 test -z "$as_dir" && as_dir=.
7031 for ac_exec_ext in '' $ac_executable_extensions; do
7032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7033 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7035 break 2
7036 fi
7037 done
7038 done
7039 IFS=$as_save_IFS
7040
7041 fi
7042 fi
7043 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7044 if test -n "$ac_ct_DSYMUTIL"; then
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7046 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7047 else
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7049 $as_echo "no" >&6; }
7050 fi
7051
7052 if test "x$ac_ct_DSYMUTIL" = x; then
7053 DSYMUTIL=":"
7054 else
7055 case $cross_compiling:$ac_tool_warned in
7056 yes:)
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7059 ac_tool_warned=yes ;;
7060 esac
7061 DSYMUTIL=$ac_ct_DSYMUTIL
7062 fi
7063 else
7064 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7065 fi
7066
7067 if test -n "$ac_tool_prefix"; then
7068 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7069 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7071 $as_echo_n "checking for $ac_word... " >&6; }
7072 if ${ac_cv_prog_NMEDIT+:} false; then :
7073 $as_echo_n "(cached) " >&6
7074 else
7075 if test -n "$NMEDIT"; then
7076 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7077 else
7078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079 for as_dir in $PATH
7080 do
7081 IFS=$as_save_IFS
7082 test -z "$as_dir" && as_dir=.
7083 for ac_exec_ext in '' $ac_executable_extensions; do
7084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7085 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 break 2
7088 fi
7089 done
7090 done
7091 IFS=$as_save_IFS
7092
7093 fi
7094 fi
7095 NMEDIT=$ac_cv_prog_NMEDIT
7096 if test -n "$NMEDIT"; then
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7098 $as_echo "$NMEDIT" >&6; }
7099 else
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101 $as_echo "no" >&6; }
7102 fi
7103
7104
7105 fi
7106 if test -z "$ac_cv_prog_NMEDIT"; then
7107 ac_ct_NMEDIT=$NMEDIT
7108 # Extract the first word of "nmedit", so it can be a program name with args.
7109 set dummy nmedit; ac_word=$2
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7111 $as_echo_n "checking for $ac_word... " >&6; }
7112 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7113 $as_echo_n "(cached) " >&6
7114 else
7115 if test -n "$ac_ct_NMEDIT"; then
7116 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7117 else
7118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119 for as_dir in $PATH
7120 do
7121 IFS=$as_save_IFS
7122 test -z "$as_dir" && as_dir=.
7123 for ac_exec_ext in '' $ac_executable_extensions; do
7124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7125 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7127 break 2
7128 fi
7129 done
7130 done
7131 IFS=$as_save_IFS
7132
7133 fi
7134 fi
7135 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7136 if test -n "$ac_ct_NMEDIT"; then
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7138 $as_echo "$ac_ct_NMEDIT" >&6; }
7139 else
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7141 $as_echo "no" >&6; }
7142 fi
7143
7144 if test "x$ac_ct_NMEDIT" = x; then
7145 NMEDIT=":"
7146 else
7147 case $cross_compiling:$ac_tool_warned in
7148 yes:)
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7151 ac_tool_warned=yes ;;
7152 esac
7153 NMEDIT=$ac_ct_NMEDIT
7154 fi
7155 else
7156 NMEDIT="$ac_cv_prog_NMEDIT"
7157 fi
7158
7159 if test -n "$ac_tool_prefix"; then
7160 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7161 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7163 $as_echo_n "checking for $ac_word... " >&6; }
7164 if ${ac_cv_prog_LIPO+:} false; then :
7165 $as_echo_n "(cached) " >&6
7166 else
7167 if test -n "$LIPO"; then
7168 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7169 else
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 for as_dir in $PATH
7172 do
7173 IFS=$as_save_IFS
7174 test -z "$as_dir" && as_dir=.
7175 for ac_exec_ext in '' $ac_executable_extensions; do
7176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7177 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 break 2
7180 fi
7181 done
7182 done
7183 IFS=$as_save_IFS
7184
7185 fi
7186 fi
7187 LIPO=$ac_cv_prog_LIPO
7188 if test -n "$LIPO"; then
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7190 $as_echo "$LIPO" >&6; }
7191 else
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7193 $as_echo "no" >&6; }
7194 fi
7195
7196
7197 fi
7198 if test -z "$ac_cv_prog_LIPO"; then
7199 ac_ct_LIPO=$LIPO
7200 # Extract the first word of "lipo", so it can be a program name with args.
7201 set dummy lipo; ac_word=$2
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7203 $as_echo_n "checking for $ac_word... " >&6; }
7204 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7205 $as_echo_n "(cached) " >&6
7206 else
7207 if test -n "$ac_ct_LIPO"; then
7208 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7209 else
7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211 for as_dir in $PATH
7212 do
7213 IFS=$as_save_IFS
7214 test -z "$as_dir" && as_dir=.
7215 for ac_exec_ext in '' $ac_executable_extensions; do
7216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7217 ac_cv_prog_ac_ct_LIPO="lipo"
7218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7219 break 2
7220 fi
7221 done
7222 done
7223 IFS=$as_save_IFS
7224
7225 fi
7226 fi
7227 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7228 if test -n "$ac_ct_LIPO"; then
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7230 $as_echo "$ac_ct_LIPO" >&6; }
7231 else
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7233 $as_echo "no" >&6; }
7234 fi
7235
7236 if test "x$ac_ct_LIPO" = x; then
7237 LIPO=":"
7238 else
7239 case $cross_compiling:$ac_tool_warned in
7240 yes:)
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7243 ac_tool_warned=yes ;;
7244 esac
7245 LIPO=$ac_ct_LIPO
7246 fi
7247 else
7248 LIPO="$ac_cv_prog_LIPO"
7249 fi
7250
7251 if test -n "$ac_tool_prefix"; then
7252 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7253 set dummy ${ac_tool_prefix}otool; ac_word=$2
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7255 $as_echo_n "checking for $ac_word... " >&6; }
7256 if ${ac_cv_prog_OTOOL+:} false; then :
7257 $as_echo_n "(cached) " >&6
7258 else
7259 if test -n "$OTOOL"; then
7260 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7261 else
7262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263 for as_dir in $PATH
7264 do
7265 IFS=$as_save_IFS
7266 test -z "$as_dir" && as_dir=.
7267 for ac_exec_ext in '' $ac_executable_extensions; do
7268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7269 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7271 break 2
7272 fi
7273 done
7274 done
7275 IFS=$as_save_IFS
7276
7277 fi
7278 fi
7279 OTOOL=$ac_cv_prog_OTOOL
7280 if test -n "$OTOOL"; then
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7282 $as_echo "$OTOOL" >&6; }
7283 else
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7285 $as_echo "no" >&6; }
7286 fi
7287
7288
7289 fi
7290 if test -z "$ac_cv_prog_OTOOL"; then
7291 ac_ct_OTOOL=$OTOOL
7292 # Extract the first word of "otool", so it can be a program name with args.
7293 set dummy otool; ac_word=$2
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7295 $as_echo_n "checking for $ac_word... " >&6; }
7296 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7297 $as_echo_n "(cached) " >&6
7298 else
7299 if test -n "$ac_ct_OTOOL"; then
7300 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7301 else
7302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303 for as_dir in $PATH
7304 do
7305 IFS=$as_save_IFS
7306 test -z "$as_dir" && as_dir=.
7307 for ac_exec_ext in '' $ac_executable_extensions; do
7308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7309 ac_cv_prog_ac_ct_OTOOL="otool"
7310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7311 break 2
7312 fi
7313 done
7314 done
7315 IFS=$as_save_IFS
7316
7317 fi
7318 fi
7319 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7320 if test -n "$ac_ct_OTOOL"; then
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7322 $as_echo "$ac_ct_OTOOL" >&6; }
7323 else
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7325 $as_echo "no" >&6; }
7326 fi
7327
7328 if test "x$ac_ct_OTOOL" = x; then
7329 OTOOL=":"
7330 else
7331 case $cross_compiling:$ac_tool_warned in
7332 yes:)
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7335 ac_tool_warned=yes ;;
7336 esac
7337 OTOOL=$ac_ct_OTOOL
7338 fi
7339 else
7340 OTOOL="$ac_cv_prog_OTOOL"
7341 fi
7342
7343 if test -n "$ac_tool_prefix"; then
7344 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7345 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7347 $as_echo_n "checking for $ac_word... " >&6; }
7348 if ${ac_cv_prog_OTOOL64+:} false; then :
7349 $as_echo_n "(cached) " >&6
7350 else
7351 if test -n "$OTOOL64"; then
7352 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7353 else
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 for as_dir in $PATH
7356 do
7357 IFS=$as_save_IFS
7358 test -z "$as_dir" && as_dir=.
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7361 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7363 break 2
7364 fi
7365 done
7366 done
7367 IFS=$as_save_IFS
7368
7369 fi
7370 fi
7371 OTOOL64=$ac_cv_prog_OTOOL64
7372 if test -n "$OTOOL64"; then
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7374 $as_echo "$OTOOL64" >&6; }
7375 else
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377 $as_echo "no" >&6; }
7378 fi
7379
7380
7381 fi
7382 if test -z "$ac_cv_prog_OTOOL64"; then
7383 ac_ct_OTOOL64=$OTOOL64
7384 # Extract the first word of "otool64", so it can be a program name with args.
7385 set dummy otool64; ac_word=$2
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7387 $as_echo_n "checking for $ac_word... " >&6; }
7388 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7389 $as_echo_n "(cached) " >&6
7390 else
7391 if test -n "$ac_ct_OTOOL64"; then
7392 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7393 else
7394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395 for as_dir in $PATH
7396 do
7397 IFS=$as_save_IFS
7398 test -z "$as_dir" && as_dir=.
7399 for ac_exec_ext in '' $ac_executable_extensions; do
7400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7401 ac_cv_prog_ac_ct_OTOOL64="otool64"
7402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7403 break 2
7404 fi
7405 done
7406 done
7407 IFS=$as_save_IFS
7408
7409 fi
7410 fi
7411 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7412 if test -n "$ac_ct_OTOOL64"; then
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7414 $as_echo "$ac_ct_OTOOL64" >&6; }
7415 else
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7417 $as_echo "no" >&6; }
7418 fi
7419
7420 if test "x$ac_ct_OTOOL64" = x; then
7421 OTOOL64=":"
7422 else
7423 case $cross_compiling:$ac_tool_warned in
7424 yes:)
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7427 ac_tool_warned=yes ;;
7428 esac
7429 OTOOL64=$ac_ct_OTOOL64
7430 fi
7431 else
7432 OTOOL64="$ac_cv_prog_OTOOL64"
7433 fi
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7462 $as_echo_n "checking for -single_module linker flag... " >&6; }
7463 if ${lt_cv_apple_cc_single_mod+:} false; then :
7464 $as_echo_n "(cached) " >&6
7465 else
7466 lt_cv_apple_cc_single_mod=no
7467 if test -z "${LT_MULTI_MODULE}"; then
7468 # By default we will add the -single_module flag. You can override
7469 # by either setting the environment variable LT_MULTI_MODULE
7470 # non-empty at configure time, or by adding -multi_module to the
7471 # link flags.
7472 rm -rf libconftest.dylib*
7473 echo "int foo(void){return 1;}" > conftest.c
7474 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7475 -dynamiclib -Wl,-single_module conftest.c" >&5
7476 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7477 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7478 _lt_result=$?
7479 # If there is a non-empty error log, and "single_module"
7480 # appears in it, assume the flag caused a linker warning
7481 if test -s conftest.err && $GREP single_module conftest.err; then
7482 cat conftest.err >&5
7483 # Otherwise, if the output was created with a 0 exit code from
7484 # the compiler, it worked.
7485 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7486 lt_cv_apple_cc_single_mod=yes
7487 else
7488 cat conftest.err >&5
7489 fi
7490 rm -rf libconftest.dylib*
7491 rm -f conftest.*
7492 fi
7493 fi
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7495 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7496
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7498 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7499 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7500 $as_echo_n "(cached) " >&6
7501 else
7502 lt_cv_ld_exported_symbols_list=no
7503 save_LDFLAGS=$LDFLAGS
7504 echo "_main" > conftest.sym
7505 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7507 /* end confdefs.h. */
7508
7509 int
7510 main ()
7511 {
7512
7513 ;
7514 return 0;
7515 }
7516 _ACEOF
7517 if ac_fn_c_try_link "$LINENO"; then :
7518 lt_cv_ld_exported_symbols_list=yes
7519 else
7520 lt_cv_ld_exported_symbols_list=no
7521 fi
7522 rm -f core conftest.err conftest.$ac_objext \
7523 conftest$ac_exeext conftest.$ac_ext
7524 LDFLAGS="$save_LDFLAGS"
7525
7526 fi
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7528 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7529
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7531 $as_echo_n "checking for -force_load linker flag... " >&6; }
7532 if ${lt_cv_ld_force_load+:} false; then :
7533 $as_echo_n "(cached) " >&6
7534 else
7535 lt_cv_ld_force_load=no
7536 cat > conftest.c << _LT_EOF
7537 int forced_loaded() { return 2;}
7538 _LT_EOF
7539 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7540 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7541 echo "$AR cru libconftest.a conftest.o" >&5
7542 $AR cru libconftest.a conftest.o 2>&5
7543 echo "$RANLIB libconftest.a" >&5
7544 $RANLIB libconftest.a 2>&5
7545 cat > conftest.c << _LT_EOF
7546 int main() { return 0;}
7547 _LT_EOF
7548 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7549 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7550 _lt_result=$?
7551 if test -s conftest.err && $GREP force_load conftest.err; then
7552 cat conftest.err >&5
7553 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7554 lt_cv_ld_force_load=yes
7555 else
7556 cat conftest.err >&5
7557 fi
7558 rm -f conftest.err libconftest.a conftest conftest.c
7559 rm -rf conftest.dSYM
7560
7561 fi
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7563 $as_echo "$lt_cv_ld_force_load" >&6; }
7564 case $host_os in
7565 rhapsody* | darwin1.[012])
7566 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7567 darwin1.*)
7568 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7569 darwin*) # darwin 5.x on
7570 # if running on 10.5 or later, the deployment target defaults
7571 # to the OS version, if on x86, and 10.4, the deployment
7572 # target defaults to 10.4. Don't you love it?
7573 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7574 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7575 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7576 10.[012]*)
7577 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7578 10.*)
7579 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7580 esac
7581 ;;
7582 esac
7583 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7584 _lt_dar_single_mod='$single_module'
7585 fi
7586 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7587 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7588 else
7589 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7590 fi
7591 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7592 _lt_dsymutil='~$DSYMUTIL $lib || :'
7593 else
7594 _lt_dsymutil=
7595 fi
7596 ;;
7597 esac
7598
7599 for ac_header in dlfcn.h
7600 do :
7601 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7602 "
7603 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7604 cat >>confdefs.h <<_ACEOF
7605 #define HAVE_DLFCN_H 1
7606 _ACEOF
7607
7608 fi
7609
7610 done
7611
7612
7613
7614
7615
7616 # Set options
7617
7618
7619
7620 enable_dlopen=no
7621
7622
7623 enable_win32_dll=no
7624
7625
7626 # Check whether --enable-shared was given.
7627 if test "${enable_shared+set}" = set; then :
7628 enableval=$enable_shared; p=${PACKAGE-default}
7629 case $enableval in
7630 yes) enable_shared=yes ;;
7631 no) enable_shared=no ;;
7632 *)
7633 enable_shared=no
7634 # Look at the argument we got. We use all the common list separators.
7635 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7636 for pkg in $enableval; do
7637 IFS="$lt_save_ifs"
7638 if test "X$pkg" = "X$p"; then
7639 enable_shared=yes
7640 fi
7641 done
7642 IFS="$lt_save_ifs"
7643 ;;
7644 esac
7645 else
7646 enable_shared=yes
7647 fi
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659 # Check whether --with-pic was given.
7660 if test "${with_pic+set}" = set; then :
7661 withval=$with_pic; lt_p=${PACKAGE-default}
7662 case $withval in
7663 yes|no) pic_mode=$withval ;;
7664 *)
7665 pic_mode=default
7666 # Look at the argument we got. We use all the common list separators.
7667 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7668 for lt_pkg in $withval; do
7669 IFS="$lt_save_ifs"
7670 if test "X$lt_pkg" = "X$lt_p"; then
7671 pic_mode=yes
7672 fi
7673 done
7674 IFS="$lt_save_ifs"
7675 ;;
7676 esac
7677 else
7678 pic_mode=default
7679 fi
7680
7681
7682 test -z "$pic_mode" && pic_mode=default
7683
7684
7685
7686
7687
7688
7689
7690 # Check whether --enable-fast-install was given.
7691 if test "${enable_fast_install+set}" = set; then :
7692 enableval=$enable_fast_install; p=${PACKAGE-default}
7693 case $enableval in
7694 yes) enable_fast_install=yes ;;
7695 no) enable_fast_install=no ;;
7696 *)
7697 enable_fast_install=no
7698 # Look at the argument we got. We use all the common list separators.
7699 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7700 for pkg in $enableval; do
7701 IFS="$lt_save_ifs"
7702 if test "X$pkg" = "X$p"; then
7703 enable_fast_install=yes
7704 fi
7705 done
7706 IFS="$lt_save_ifs"
7707 ;;
7708 esac
7709 else
7710 enable_fast_install=yes
7711 fi
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723 # This can be used to rebuild libtool when needed
7724 LIBTOOL_DEPS="$ltmain"
7725
7726 # Always use our own libtool.
7727 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758 test -z "$LN_S" && LN_S="ln -s"
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773 if test -n "${ZSH_VERSION+set}" ; then
7774 setopt NO_GLOB_SUBST
7775 fi
7776
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7778 $as_echo_n "checking for objdir... " >&6; }
7779 if ${lt_cv_objdir+:} false; then :
7780 $as_echo_n "(cached) " >&6
7781 else
7782 rm -f .libs 2>/dev/null
7783 mkdir .libs 2>/dev/null
7784 if test -d .libs; then
7785 lt_cv_objdir=.libs
7786 else
7787 # MS-DOS does not allow filenames that begin with a dot.
7788 lt_cv_objdir=_libs
7789 fi
7790 rmdir .libs 2>/dev/null
7791 fi
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7793 $as_echo "$lt_cv_objdir" >&6; }
7794 objdir=$lt_cv_objdir
7795
7796
7797
7798
7799
7800 cat >>confdefs.h <<_ACEOF
7801 #define LT_OBJDIR "$lt_cv_objdir/"
7802 _ACEOF
7803
7804
7805
7806
7807 case $host_os in
7808 aix3*)
7809 # AIX sometimes has problems with the GCC collect2 program. For some
7810 # reason, if we set the COLLECT_NAMES environment variable, the problems
7811 # vanish in a puff of smoke.
7812 if test "X${COLLECT_NAMES+set}" != Xset; then
7813 COLLECT_NAMES=
7814 export COLLECT_NAMES
7815 fi
7816 ;;
7817 esac
7818
7819 # Global variables:
7820 ofile=libtool
7821 can_build_shared=yes
7822
7823 # All known linkers require a `.a' archive for static linking (except MSVC,
7824 # which needs '.lib').
7825 libext=a
7826
7827 with_gnu_ld="$lt_cv_prog_gnu_ld"
7828
7829 old_CC="$CC"
7830 old_CFLAGS="$CFLAGS"
7831
7832 # Set sane defaults for various variables
7833 test -z "$CC" && CC=cc
7834 test -z "$LTCC" && LTCC=$CC
7835 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7836 test -z "$LD" && LD=ld
7837 test -z "$ac_objext" && ac_objext=o
7838
7839 for cc_temp in $compiler""; do
7840 case $cc_temp in
7841 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7842 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7843 \-*) ;;
7844 *) break;;
7845 esac
7846 done
7847 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7848
7849
7850 # Only perform the check for file, if the check method requires it
7851 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7852 case $deplibs_check_method in
7853 file_magic*)
7854 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7856 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7857 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7858 $as_echo_n "(cached) " >&6
7859 else
7860 case $MAGIC_CMD in
7861 [\\/*] | ?:[\\/]*)
7862 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7863 ;;
7864 *)
7865 lt_save_MAGIC_CMD="$MAGIC_CMD"
7866 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7867 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7868 for ac_dir in $ac_dummy; do
7869 IFS="$lt_save_ifs"
7870 test -z "$ac_dir" && ac_dir=.
7871 if test -f $ac_dir/${ac_tool_prefix}file; then
7872 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7873 if test -n "$file_magic_test_file"; then
7874 case $deplibs_check_method in
7875 "file_magic "*)
7876 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7877 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7878 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7879 $EGREP "$file_magic_regex" > /dev/null; then
7880 :
7881 else
7882 cat <<_LT_EOF 1>&2
7883
7884 *** Warning: the command libtool uses to detect shared libraries,
7885 *** $file_magic_cmd, produces output that libtool cannot recognize.
7886 *** The result is that libtool may fail to recognize shared libraries
7887 *** as such. This will affect the creation of libtool libraries that
7888 *** depend on shared libraries, but programs linked with such libtool
7889 *** libraries will work regardless of this problem. Nevertheless, you
7890 *** may want to report the problem to your system manager and/or to
7891 *** bug-libtool@gnu.org
7892
7893 _LT_EOF
7894 fi ;;
7895 esac
7896 fi
7897 break
7898 fi
7899 done
7900 IFS="$lt_save_ifs"
7901 MAGIC_CMD="$lt_save_MAGIC_CMD"
7902 ;;
7903 esac
7904 fi
7905
7906 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7907 if test -n "$MAGIC_CMD"; then
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7909 $as_echo "$MAGIC_CMD" >&6; }
7910 else
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7912 $as_echo "no" >&6; }
7913 fi
7914
7915
7916
7917
7918
7919 if test -z "$lt_cv_path_MAGIC_CMD"; then
7920 if test -n "$ac_tool_prefix"; then
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7922 $as_echo_n "checking for file... " >&6; }
7923 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7924 $as_echo_n "(cached) " >&6
7925 else
7926 case $MAGIC_CMD in
7927 [\\/*] | ?:[\\/]*)
7928 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7929 ;;
7930 *)
7931 lt_save_MAGIC_CMD="$MAGIC_CMD"
7932 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7933 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7934 for ac_dir in $ac_dummy; do
7935 IFS="$lt_save_ifs"
7936 test -z "$ac_dir" && ac_dir=.
7937 if test -f $ac_dir/file; then
7938 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7939 if test -n "$file_magic_test_file"; then
7940 case $deplibs_check_method in
7941 "file_magic "*)
7942 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7943 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7944 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7945 $EGREP "$file_magic_regex" > /dev/null; then
7946 :
7947 else
7948 cat <<_LT_EOF 1>&2
7949
7950 *** Warning: the command libtool uses to detect shared libraries,
7951 *** $file_magic_cmd, produces output that libtool cannot recognize.
7952 *** The result is that libtool may fail to recognize shared libraries
7953 *** as such. This will affect the creation of libtool libraries that
7954 *** depend on shared libraries, but programs linked with such libtool
7955 *** libraries will work regardless of this problem. Nevertheless, you
7956 *** may want to report the problem to your system manager and/or to
7957 *** bug-libtool@gnu.org
7958
7959 _LT_EOF
7960 fi ;;
7961 esac
7962 fi
7963 break
7964 fi
7965 done
7966 IFS="$lt_save_ifs"
7967 MAGIC_CMD="$lt_save_MAGIC_CMD"
7968 ;;
7969 esac
7970 fi
7971
7972 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7973 if test -n "$MAGIC_CMD"; then
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7975 $as_echo "$MAGIC_CMD" >&6; }
7976 else
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7978 $as_echo "no" >&6; }
7979 fi
7980
7981
7982 else
7983 MAGIC_CMD=:
7984 fi
7985 fi
7986
7987 fi
7988 ;;
7989 esac
7990
7991 # Use C for the default configuration in the libtool script
7992
7993 lt_save_CC="$CC"
7994 ac_ext=c
7995 ac_cpp='$CPP $CPPFLAGS'
7996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7999
8000
8001 # Source file extension for C test sources.
8002 ac_ext=c
8003
8004 # Object file extension for compiled C test sources.
8005 objext=o
8006 objext=$objext
8007
8008 # Code to be used in simple compile tests
8009 lt_simple_compile_test_code="int some_variable = 0;"
8010
8011 # Code to be used in simple link tests
8012 lt_simple_link_test_code='int main(){return(0);}'
8013
8014
8015
8016
8017
8018
8019
8020 # If no C compiler was specified, use CC.
8021 LTCC=${LTCC-"$CC"}
8022
8023 # If no C compiler flags were specified, use CFLAGS.
8024 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8025
8026 # Allow CC to be a program name with arguments.
8027 compiler=$CC
8028
8029 # Save the default compiler, since it gets overwritten when the other
8030 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8031 compiler_DEFAULT=$CC
8032
8033 # save warnings/boilerplate of simple test code
8034 ac_outfile=conftest.$ac_objext
8035 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8036 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8037 _lt_compiler_boilerplate=`cat conftest.err`
8038 $RM conftest*
8039
8040 ac_outfile=conftest.$ac_objext
8041 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8042 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8043 _lt_linker_boilerplate=`cat conftest.err`
8044 $RM -r conftest*
8045
8046
8047 if test -n "$compiler"; then
8048
8049 lt_prog_compiler_no_builtin_flag=
8050
8051 if test "$GCC" = yes; then
8052 case $cc_basename in
8053 nvcc*)
8054 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8055 *)
8056 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8057 esac
8058
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8060 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8061 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8062 $as_echo_n "(cached) " >&6
8063 else
8064 lt_cv_prog_compiler_rtti_exceptions=no
8065 ac_outfile=conftest.$ac_objext
8066 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8067 lt_compiler_flag="-fno-rtti -fno-exceptions"
8068 # Insert the option either (1) after the last *FLAGS variable, or
8069 # (2) before a word containing "conftest.", or (3) at the end.
8070 # Note that $ac_compile itself does not contain backslashes and begins
8071 # with a dollar sign (not a hyphen), so the echo should work correctly.
8072 # The option is referenced via a variable to avoid confusing sed.
8073 lt_compile=`echo "$ac_compile" | $SED \
8074 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8075 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8076 -e 's:$: $lt_compiler_flag:'`
8077 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8078 (eval "$lt_compile" 2>conftest.err)
8079 ac_status=$?
8080 cat conftest.err >&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 if (exit $ac_status) && test -s "$ac_outfile"; then
8083 # The compiler can only warn and ignore the option if not recognized
8084 # So say no if there are warnings other than the usual output.
8085 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8086 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8087 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8088 lt_cv_prog_compiler_rtti_exceptions=yes
8089 fi
8090 fi
8091 $RM conftest*
8092
8093 fi
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8095 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8096
8097 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8098 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8099 else
8100 :
8101 fi
8102
8103 fi
8104
8105
8106
8107
8108
8109
8110 lt_prog_compiler_wl=
8111 lt_prog_compiler_pic=
8112 lt_prog_compiler_static=
8113
8114
8115 if test "$GCC" = yes; then
8116 lt_prog_compiler_wl='-Wl,'
8117 lt_prog_compiler_static='-static'
8118
8119 case $host_os in
8120 aix*)
8121 # All AIX code is PIC.
8122 if test "$host_cpu" = ia64; then
8123 # AIX 5 now supports IA64 processor
8124 lt_prog_compiler_static='-Bstatic'
8125 fi
8126 ;;
8127
8128 amigaos*)
8129 case $host_cpu in
8130 powerpc)
8131 # see comment about AmigaOS4 .so support
8132 lt_prog_compiler_pic='-fPIC'
8133 ;;
8134 m68k)
8135 # FIXME: we need at least 68020 code to build shared libraries, but
8136 # adding the `-m68020' flag to GCC prevents building anything better,
8137 # like `-m68040'.
8138 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8139 ;;
8140 esac
8141 ;;
8142
8143 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8144 # PIC is the default for these OSes.
8145 ;;
8146
8147 mingw* | cygwin* | pw32* | os2* | cegcc*)
8148 # This hack is so that the source file can tell whether it is being
8149 # built for inclusion in a dll (and should export symbols for example).
8150 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8151 # (--disable-auto-import) libraries
8152 lt_prog_compiler_pic='-DDLL_EXPORT'
8153 ;;
8154
8155 darwin* | rhapsody*)
8156 # PIC is the default on this platform
8157 # Common symbols not allowed in MH_DYLIB files
8158 lt_prog_compiler_pic='-fno-common'
8159 ;;
8160
8161 haiku*)
8162 # PIC is the default for Haiku.
8163 # The "-static" flag exists, but is broken.
8164 lt_prog_compiler_static=
8165 ;;
8166
8167 hpux*)
8168 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8169 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8170 # sets the default TLS model and affects inlining.
8171 case $host_cpu in
8172 hppa*64*)
8173 # +Z the default
8174 ;;
8175 *)
8176 lt_prog_compiler_pic='-fPIC'
8177 ;;
8178 esac
8179 ;;
8180
8181 interix[3-9]*)
8182 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8183 # Instead, we relocate shared libraries at runtime.
8184 ;;
8185
8186 msdosdjgpp*)
8187 # Just because we use GCC doesn't mean we suddenly get shared libraries
8188 # on systems that don't support them.
8189 lt_prog_compiler_can_build_shared=no
8190 enable_shared=no
8191 ;;
8192
8193 *nto* | *qnx*)
8194 # QNX uses GNU C++, but need to define -shared option too, otherwise
8195 # it will coredump.
8196 lt_prog_compiler_pic='-fPIC -shared'
8197 ;;
8198
8199 sysv4*MP*)
8200 if test -d /usr/nec; then
8201 lt_prog_compiler_pic=-Kconform_pic
8202 fi
8203 ;;
8204
8205 *)
8206 lt_prog_compiler_pic='-fPIC'
8207 ;;
8208 esac
8209
8210 case $cc_basename in
8211 nvcc*) # Cuda Compiler Driver 2.2
8212 lt_prog_compiler_wl='-Xlinker '
8213 if test -n "$lt_prog_compiler_pic"; then
8214 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8215 fi
8216 ;;
8217 esac
8218 else
8219 # PORTME Check for flag to pass linker flags through the system compiler.
8220 case $host_os in
8221 aix*)
8222 lt_prog_compiler_wl='-Wl,'
8223 if test "$host_cpu" = ia64; then
8224 # AIX 5 now supports IA64 processor
8225 lt_prog_compiler_static='-Bstatic'
8226 else
8227 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8228 fi
8229 ;;
8230
8231 mingw* | cygwin* | pw32* | os2* | cegcc*)
8232 # This hack is so that the source file can tell whether it is being
8233 # built for inclusion in a dll (and should export symbols for example).
8234 lt_prog_compiler_pic='-DDLL_EXPORT'
8235 ;;
8236
8237 hpux9* | hpux10* | hpux11*)
8238 lt_prog_compiler_wl='-Wl,'
8239 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8240 # not for PA HP-UX.
8241 case $host_cpu in
8242 hppa*64*|ia64*)
8243 # +Z the default
8244 ;;
8245 *)
8246 lt_prog_compiler_pic='+Z'
8247 ;;
8248 esac
8249 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8250 lt_prog_compiler_static='${wl}-a ${wl}archive'
8251 ;;
8252
8253 irix5* | irix6* | nonstopux*)
8254 lt_prog_compiler_wl='-Wl,'
8255 # PIC (with -KPIC) is the default.
8256 lt_prog_compiler_static='-non_shared'
8257 ;;
8258
8259 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8260 case $cc_basename in
8261 # old Intel for x86_64 which still supported -KPIC.
8262 ecc*)
8263 lt_prog_compiler_wl='-Wl,'
8264 lt_prog_compiler_pic='-KPIC'
8265 lt_prog_compiler_static='-static'
8266 ;;
8267 # icc used to be incompatible with GCC.
8268 # ICC 10 doesn't accept -KPIC any more.
8269 icc* | ifort*)
8270 lt_prog_compiler_wl='-Wl,'
8271 lt_prog_compiler_pic='-fPIC'
8272 lt_prog_compiler_static='-static'
8273 ;;
8274 # Lahey Fortran 8.1.
8275 lf95*)
8276 lt_prog_compiler_wl='-Wl,'
8277 lt_prog_compiler_pic='--shared'
8278 lt_prog_compiler_static='--static'
8279 ;;
8280 nagfor*)
8281 # NAG Fortran compiler
8282 lt_prog_compiler_wl='-Wl,-Wl,,'
8283 lt_prog_compiler_pic='-PIC'
8284 lt_prog_compiler_static='-Bstatic'
8285 ;;
8286 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8287 # Portland Group compilers (*not* the Pentium gcc compiler,
8288 # which looks to be a dead project)
8289 lt_prog_compiler_wl='-Wl,'
8290 lt_prog_compiler_pic='-fpic'
8291 lt_prog_compiler_static='-Bstatic'
8292 ;;
8293 ccc*)
8294 lt_prog_compiler_wl='-Wl,'
8295 # All Alpha code is PIC.
8296 lt_prog_compiler_static='-non_shared'
8297 ;;
8298 xl* | bgxl* | bgf* | mpixl*)
8299 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8300 lt_prog_compiler_wl='-Wl,'
8301 lt_prog_compiler_pic='-qpic'
8302 lt_prog_compiler_static='-qstaticlink'
8303 ;;
8304 *)
8305 case `$CC -V 2>&1 | sed 5q` in
8306 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8307 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8308 lt_prog_compiler_pic='-KPIC'
8309 lt_prog_compiler_static='-Bstatic'
8310 lt_prog_compiler_wl=''
8311 ;;
8312 *Sun\ F* | *Sun*Fortran*)
8313 lt_prog_compiler_pic='-KPIC'
8314 lt_prog_compiler_static='-Bstatic'
8315 lt_prog_compiler_wl='-Qoption ld '
8316 ;;
8317 *Sun\ C*)
8318 # Sun C 5.9
8319 lt_prog_compiler_pic='-KPIC'
8320 lt_prog_compiler_static='-Bstatic'
8321 lt_prog_compiler_wl='-Wl,'
8322 ;;
8323 *Intel*\ [CF]*Compiler*)
8324 lt_prog_compiler_wl='-Wl,'
8325 lt_prog_compiler_pic='-fPIC'
8326 lt_prog_compiler_static='-static'
8327 ;;
8328 *Portland\ Group*)
8329 lt_prog_compiler_wl='-Wl,'
8330 lt_prog_compiler_pic='-fpic'
8331 lt_prog_compiler_static='-Bstatic'
8332 ;;
8333 esac
8334 ;;
8335 esac
8336 ;;
8337
8338 newsos6)
8339 lt_prog_compiler_pic='-KPIC'
8340 lt_prog_compiler_static='-Bstatic'
8341 ;;
8342
8343 *nto* | *qnx*)
8344 # QNX uses GNU C++, but need to define -shared option too, otherwise
8345 # it will coredump.
8346 lt_prog_compiler_pic='-fPIC -shared'
8347 ;;
8348
8349 osf3* | osf4* | osf5*)
8350 lt_prog_compiler_wl='-Wl,'
8351 # All OSF/1 code is PIC.
8352 lt_prog_compiler_static='-non_shared'
8353 ;;
8354
8355 rdos*)
8356 lt_prog_compiler_static='-non_shared'
8357 ;;
8358
8359 solaris*)
8360 lt_prog_compiler_pic='-KPIC'
8361 lt_prog_compiler_static='-Bstatic'
8362 case $cc_basename in
8363 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8364 lt_prog_compiler_wl='-Qoption ld ';;
8365 *)
8366 lt_prog_compiler_wl='-Wl,';;
8367 esac
8368 ;;
8369
8370 sunos4*)
8371 lt_prog_compiler_wl='-Qoption ld '
8372 lt_prog_compiler_pic='-PIC'
8373 lt_prog_compiler_static='-Bstatic'
8374 ;;
8375
8376 sysv4 | sysv4.2uw2* | sysv4.3*)
8377 lt_prog_compiler_wl='-Wl,'
8378 lt_prog_compiler_pic='-KPIC'
8379 lt_prog_compiler_static='-Bstatic'
8380 ;;
8381
8382 sysv4*MP*)
8383 if test -d /usr/nec ;then
8384 lt_prog_compiler_pic='-Kconform_pic'
8385 lt_prog_compiler_static='-Bstatic'
8386 fi
8387 ;;
8388
8389 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8390 lt_prog_compiler_wl='-Wl,'
8391 lt_prog_compiler_pic='-KPIC'
8392 lt_prog_compiler_static='-Bstatic'
8393 ;;
8394
8395 unicos*)
8396 lt_prog_compiler_wl='-Wl,'
8397 lt_prog_compiler_can_build_shared=no
8398 ;;
8399
8400 uts4*)
8401 lt_prog_compiler_pic='-pic'
8402 lt_prog_compiler_static='-Bstatic'
8403 ;;
8404
8405 *)
8406 lt_prog_compiler_can_build_shared=no
8407 ;;
8408 esac
8409 fi
8410
8411 case $host_os in
8412 # For platforms which do not support PIC, -DPIC is meaningless:
8413 *djgpp*)
8414 lt_prog_compiler_pic=
8415 ;;
8416 *)
8417 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8418 ;;
8419 esac
8420
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8422 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8423 if ${lt_cv_prog_compiler_pic+:} false; then :
8424 $as_echo_n "(cached) " >&6
8425 else
8426 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8427 fi
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8429 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8430 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8431
8432 #
8433 # Check to make sure the PIC flag actually works.
8434 #
8435 if test -n "$lt_prog_compiler_pic"; then
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8437 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8438 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8439 $as_echo_n "(cached) " >&6
8440 else
8441 lt_cv_prog_compiler_pic_works=no
8442 ac_outfile=conftest.$ac_objext
8443 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8444 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8445 # Insert the option either (1) after the last *FLAGS variable, or
8446 # (2) before a word containing "conftest.", or (3) at the end.
8447 # Note that $ac_compile itself does not contain backslashes and begins
8448 # with a dollar sign (not a hyphen), so the echo should work correctly.
8449 # The option is referenced via a variable to avoid confusing sed.
8450 lt_compile=`echo "$ac_compile" | $SED \
8451 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8452 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8453 -e 's:$: $lt_compiler_flag:'`
8454 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8455 (eval "$lt_compile" 2>conftest.err)
8456 ac_status=$?
8457 cat conftest.err >&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 if (exit $ac_status) && test -s "$ac_outfile"; then
8460 # The compiler can only warn and ignore the option if not recognized
8461 # So say no if there are warnings other than the usual output.
8462 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8463 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8464 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8465 lt_cv_prog_compiler_pic_works=yes
8466 fi
8467 fi
8468 $RM conftest*
8469
8470 fi
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8472 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8473
8474 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8475 case $lt_prog_compiler_pic in
8476 "" | " "*) ;;
8477 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8478 esac
8479 else
8480 lt_prog_compiler_pic=
8481 lt_prog_compiler_can_build_shared=no
8482 fi
8483
8484 fi
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496 #
8497 # Check to make sure the static flag actually works.
8498 #
8499 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8501 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8502 if ${lt_cv_prog_compiler_static_works+:} false; then :
8503 $as_echo_n "(cached) " >&6
8504 else
8505 lt_cv_prog_compiler_static_works=no
8506 save_LDFLAGS="$LDFLAGS"
8507 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8508 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8509 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8510 # The linker can only warn and ignore the option if not recognized
8511 # So say no if there are warnings
8512 if test -s conftest.err; then
8513 # Append any errors to the config.log.
8514 cat conftest.err 1>&5
8515 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8516 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8517 if diff conftest.exp conftest.er2 >/dev/null; then
8518 lt_cv_prog_compiler_static_works=yes
8519 fi
8520 else
8521 lt_cv_prog_compiler_static_works=yes
8522 fi
8523 fi
8524 $RM -r conftest*
8525 LDFLAGS="$save_LDFLAGS"
8526
8527 fi
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8529 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8530
8531 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8532 :
8533 else
8534 lt_prog_compiler_static=
8535 fi
8536
8537
8538
8539
8540
8541
8542
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8544 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8545 if ${lt_cv_prog_compiler_c_o+:} false; then :
8546 $as_echo_n "(cached) " >&6
8547 else
8548 lt_cv_prog_compiler_c_o=no
8549 $RM -r conftest 2>/dev/null
8550 mkdir conftest
8551 cd conftest
8552 mkdir out
8553 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8554
8555 lt_compiler_flag="-o out/conftest2.$ac_objext"
8556 # Insert the option either (1) after the last *FLAGS variable, or
8557 # (2) before a word containing "conftest.", or (3) at the end.
8558 # Note that $ac_compile itself does not contain backslashes and begins
8559 # with a dollar sign (not a hyphen), so the echo should work correctly.
8560 lt_compile=`echo "$ac_compile" | $SED \
8561 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8562 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8563 -e 's:$: $lt_compiler_flag:'`
8564 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8565 (eval "$lt_compile" 2>out/conftest.err)
8566 ac_status=$?
8567 cat out/conftest.err >&5
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8570 then
8571 # The compiler can only warn and ignore the option if not recognized
8572 # So say no if there are warnings
8573 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8574 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8575 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8576 lt_cv_prog_compiler_c_o=yes
8577 fi
8578 fi
8579 chmod u+w . 2>&5
8580 $RM conftest*
8581 # SGI C++ compiler will create directory out/ii_files/ for
8582 # template instantiation
8583 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8584 $RM out/* && rmdir out
8585 cd ..
8586 $RM -r conftest
8587 $RM conftest*
8588
8589 fi
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8591 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8592
8593
8594
8595
8596
8597
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8599 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8600 if ${lt_cv_prog_compiler_c_o+:} false; then :
8601 $as_echo_n "(cached) " >&6
8602 else
8603 lt_cv_prog_compiler_c_o=no
8604 $RM -r conftest 2>/dev/null
8605 mkdir conftest
8606 cd conftest
8607 mkdir out
8608 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8609
8610 lt_compiler_flag="-o out/conftest2.$ac_objext"
8611 # Insert the option either (1) after the last *FLAGS variable, or
8612 # (2) before a word containing "conftest.", or (3) at the end.
8613 # Note that $ac_compile itself does not contain backslashes and begins
8614 # with a dollar sign (not a hyphen), so the echo should work correctly.
8615 lt_compile=`echo "$ac_compile" | $SED \
8616 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8617 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8618 -e 's:$: $lt_compiler_flag:'`
8619 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8620 (eval "$lt_compile" 2>out/conftest.err)
8621 ac_status=$?
8622 cat out/conftest.err >&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8625 then
8626 # The compiler can only warn and ignore the option if not recognized
8627 # So say no if there are warnings
8628 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8629 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8630 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8631 lt_cv_prog_compiler_c_o=yes
8632 fi
8633 fi
8634 chmod u+w . 2>&5
8635 $RM conftest*
8636 # SGI C++ compiler will create directory out/ii_files/ for
8637 # template instantiation
8638 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8639 $RM out/* && rmdir out
8640 cd ..
8641 $RM -r conftest
8642 $RM conftest*
8643
8644 fi
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8646 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8647
8648
8649
8650
8651 hard_links="nottested"
8652 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8653 # do not overwrite the value of need_locks provided by the user
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8655 $as_echo_n "checking if we can lock with hard links... " >&6; }
8656 hard_links=yes
8657 $RM conftest*
8658 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8659 touch conftest.a
8660 ln conftest.a conftest.b 2>&5 || hard_links=no
8661 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8663 $as_echo "$hard_links" >&6; }
8664 if test "$hard_links" = no; then
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8666 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8667 need_locks=warn
8668 fi
8669 else
8670 need_locks=no
8671 fi
8672
8673
8674
8675
8676
8677
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8679 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8680
8681 runpath_var=
8682 allow_undefined_flag=
8683 always_export_symbols=no
8684 archive_cmds=
8685 archive_expsym_cmds=
8686 compiler_needs_object=no
8687 enable_shared_with_static_runtimes=no
8688 export_dynamic_flag_spec=
8689 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8690 hardcode_automatic=no
8691 hardcode_direct=no
8692 hardcode_direct_absolute=no
8693 hardcode_libdir_flag_spec=
8694 hardcode_libdir_separator=
8695 hardcode_minus_L=no
8696 hardcode_shlibpath_var=unsupported
8697 inherit_rpath=no
8698 link_all_deplibs=unknown
8699 module_cmds=
8700 module_expsym_cmds=
8701 old_archive_from_new_cmds=
8702 old_archive_from_expsyms_cmds=
8703 thread_safe_flag_spec=
8704 whole_archive_flag_spec=
8705 # include_expsyms should be a list of space-separated symbols to be *always*
8706 # included in the symbol list
8707 include_expsyms=
8708 # exclude_expsyms can be an extended regexp of symbols to exclude
8709 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8710 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8711 # as well as any symbol that contains `d'.
8712 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8713 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8714 # platforms (ab)use it in PIC code, but their linkers get confused if
8715 # the symbol is explicitly referenced. Since portable code cannot
8716 # rely on this symbol name, it's probably fine to never include it in
8717 # preloaded symbol tables.
8718 # Exclude shared library initialization/finalization symbols.
8719 extract_expsyms_cmds=
8720
8721 case $host_os in
8722 cygwin* | mingw* | pw32* | cegcc*)
8723 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8724 # When not using gcc, we currently assume that we are using
8725 # Microsoft Visual C++.
8726 if test "$GCC" != yes; then
8727 with_gnu_ld=no
8728 fi
8729 ;;
8730 interix*)
8731 # we just hope/assume this is gcc and not c89 (= MSVC++)
8732 with_gnu_ld=yes
8733 ;;
8734 openbsd*)
8735 with_gnu_ld=no
8736 ;;
8737 esac
8738
8739 ld_shlibs=yes
8740
8741 # On some targets, GNU ld is compatible enough with the native linker
8742 # that we're better off using the native interface for both.
8743 lt_use_gnu_ld_interface=no
8744 if test "$with_gnu_ld" = yes; then
8745 case $host_os in
8746 aix*)
8747 # The AIX port of GNU ld has always aspired to compatibility
8748 # with the native linker. However, as the warning in the GNU ld
8749 # block says, versions before 2.19.5* couldn't really create working
8750 # shared libraries, regardless of the interface used.
8751 case `$LD -v 2>&1` in
8752 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8753 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8754 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8755 *)
8756 lt_use_gnu_ld_interface=yes
8757 ;;
8758 esac
8759 ;;
8760 *)
8761 lt_use_gnu_ld_interface=yes
8762 ;;
8763 esac
8764 fi
8765
8766 if test "$lt_use_gnu_ld_interface" = yes; then
8767 # If archive_cmds runs LD, not CC, wlarc should be empty
8768 wlarc='${wl}'
8769
8770 # Set some defaults for GNU ld with shared library support. These
8771 # are reset later if shared libraries are not supported. Putting them
8772 # here allows them to be overridden if necessary.
8773 runpath_var=LD_RUN_PATH
8774 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8775 export_dynamic_flag_spec='${wl}--export-dynamic'
8776 # ancient GNU ld didn't support --whole-archive et. al.
8777 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8778 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8779 else
8780 whole_archive_flag_spec=
8781 fi
8782 supports_anon_versioning=no
8783 case `$LD -v 2>&1` in
8784 *GNU\ gold*) supports_anon_versioning=yes ;;
8785 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8786 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8787 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8788 *\ 2.11.*) ;; # other 2.11 versions
8789 *) supports_anon_versioning=yes ;;
8790 esac
8791
8792 # See if GNU ld supports shared libraries.
8793 case $host_os in
8794 aix[3-9]*)
8795 # On AIX/PPC, the GNU linker is very broken
8796 if test "$host_cpu" != ia64; then
8797 ld_shlibs=no
8798 cat <<_LT_EOF 1>&2
8799
8800 *** Warning: the GNU linker, at least up to release 2.19, is reported
8801 *** to be unable to reliably create shared libraries on AIX.
8802 *** Therefore, libtool is disabling shared libraries support. If you
8803 *** really care for shared libraries, you may want to install binutils
8804 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8805 *** You will then need to restart the configuration process.
8806
8807 _LT_EOF
8808 fi
8809 ;;
8810
8811 amigaos*)
8812 case $host_cpu in
8813 powerpc)
8814 # see comment about AmigaOS4 .so support
8815 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8816 archive_expsym_cmds=''
8817 ;;
8818 m68k)
8819 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)'
8820 hardcode_libdir_flag_spec='-L$libdir'
8821 hardcode_minus_L=yes
8822 ;;
8823 esac
8824 ;;
8825
8826 beos*)
8827 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8828 allow_undefined_flag=unsupported
8829 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8830 # support --undefined. This deserves some investigation. FIXME
8831 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8832 else
8833 ld_shlibs=no
8834 fi
8835 ;;
8836
8837 cygwin* | mingw* | pw32* | cegcc*)
8838 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8839 # as there is no search path for DLLs.
8840 hardcode_libdir_flag_spec='-L$libdir'
8841 export_dynamic_flag_spec='${wl}--export-all-symbols'
8842 allow_undefined_flag=unsupported
8843 always_export_symbols=no
8844 enable_shared_with_static_runtimes=yes
8845 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'
8846 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8847
8848 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8849 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8850 # If the export-symbols file already is a .def file (1st line
8851 # is EXPORTS), use it as is; otherwise, prepend...
8852 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8853 cp $export_symbols $output_objdir/$soname.def;
8854 else
8855 echo EXPORTS > $output_objdir/$soname.def;
8856 cat $export_symbols >> $output_objdir/$soname.def;
8857 fi~
8858 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8859 else
8860 ld_shlibs=no
8861 fi
8862 ;;
8863
8864 haiku*)
8865 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8866 link_all_deplibs=yes
8867 ;;
8868
8869 interix[3-9]*)
8870 hardcode_direct=no
8871 hardcode_shlibpath_var=no
8872 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8873 export_dynamic_flag_spec='${wl}-E'
8874 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8875 # Instead, shared libraries are loaded at an image base (0x10000000 by
8876 # default) and relocated if they conflict, which is a slow very memory
8877 # consuming and fragmenting process. To avoid this, we pick a random,
8878 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8879 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8880 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8881 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'
8882 ;;
8883
8884 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8885 tmp_diet=no
8886 if test "$host_os" = linux-dietlibc; then
8887 case $cc_basename in
8888 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8889 esac
8890 fi
8891 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8892 && test "$tmp_diet" = no
8893 then
8894 tmp_addflag=' $pic_flag'
8895 tmp_sharedflag='-shared'
8896 case $cc_basename,$host_cpu in
8897 pgcc*) # Portland Group C compiler
8898 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'
8899 tmp_addflag=' $pic_flag'
8900 ;;
8901 pgf77* | pgf90* | pgf95* | pgfortran*)
8902 # Portland Group f77 and f90 compilers
8903 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'
8904 tmp_addflag=' $pic_flag -Mnomain' ;;
8905 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8906 tmp_addflag=' -i_dynamic' ;;
8907 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8908 tmp_addflag=' -i_dynamic -nofor_main' ;;
8909 ifc* | ifort*) # Intel Fortran compiler
8910 tmp_addflag=' -nofor_main' ;;
8911 lf95*) # Lahey Fortran 8.1
8912 whole_archive_flag_spec=
8913 tmp_sharedflag='--shared' ;;
8914 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8915 tmp_sharedflag='-qmkshrobj'
8916 tmp_addflag= ;;
8917 nvcc*) # Cuda Compiler Driver 2.2
8918 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'
8919 compiler_needs_object=yes
8920 ;;
8921 esac
8922 case `$CC -V 2>&1 | sed 5q` in
8923 *Sun\ C*) # Sun C 5.9
8924 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'
8925 compiler_needs_object=yes
8926 tmp_sharedflag='-G' ;;
8927 *Sun\ F*) # Sun Fortran 8.3
8928 tmp_sharedflag='-G' ;;
8929 esac
8930 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8931
8932 if test "x$supports_anon_versioning" = xyes; then
8933 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8934 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8935 echo "local: *; };" >> $output_objdir/$libname.ver~
8936 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8937 fi
8938
8939 case $cc_basename in
8940 xlf* | bgf* | bgxlf* | mpixlf*)
8941 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8942 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8943 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8944 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8945 if test "x$supports_anon_versioning" = xyes; then
8946 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8947 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8948 echo "local: *; };" >> $output_objdir/$libname.ver~
8949 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8950 fi
8951 ;;
8952 esac
8953 else
8954 ld_shlibs=no
8955 fi
8956 ;;
8957
8958 netbsd*)
8959 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8960 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8961 wlarc=
8962 else
8963 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8964 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8965 fi
8966 ;;
8967
8968 solaris*)
8969 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8970 ld_shlibs=no
8971 cat <<_LT_EOF 1>&2
8972
8973 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8974 *** create shared libraries on Solaris systems. Therefore, libtool
8975 *** is disabling shared libraries support. We urge you to upgrade GNU
8976 *** binutils to release 2.9.1 or newer. Another option is to modify
8977 *** your PATH or compiler configuration so that the native linker is
8978 *** used, and then restart.
8979
8980 _LT_EOF
8981 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8982 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8983 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8984 else
8985 ld_shlibs=no
8986 fi
8987 ;;
8988
8989 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8990 case `$LD -v 2>&1` in
8991 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8992 ld_shlibs=no
8993 cat <<_LT_EOF 1>&2
8994
8995 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8996 *** reliably create shared libraries on SCO systems. Therefore, libtool
8997 *** is disabling shared libraries support. We urge you to upgrade GNU
8998 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8999 *** your PATH or compiler configuration so that the native linker is
9000 *** used, and then restart.
9001
9002 _LT_EOF
9003 ;;
9004 *)
9005 # For security reasons, it is highly recommended that you always
9006 # use absolute paths for naming shared libraries, and exclude the
9007 # DT_RUNPATH tag from executables and libraries. But doing so
9008 # requires that you compile everything twice, which is a pain.
9009 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9010 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9011 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9012 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9013 else
9014 ld_shlibs=no
9015 fi
9016 ;;
9017 esac
9018 ;;
9019
9020 sunos4*)
9021 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9022 wlarc=
9023 hardcode_direct=yes
9024 hardcode_shlibpath_var=no
9025 ;;
9026
9027 *)
9028 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9029 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9030 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9031 else
9032 ld_shlibs=no
9033 fi
9034 ;;
9035 esac
9036
9037 if test "$ld_shlibs" = no; then
9038 runpath_var=
9039 hardcode_libdir_flag_spec=
9040 export_dynamic_flag_spec=
9041 whole_archive_flag_spec=
9042 fi
9043 else
9044 # PORTME fill in a description of your system's linker (not GNU ld)
9045 case $host_os in
9046 aix3*)
9047 allow_undefined_flag=unsupported
9048 always_export_symbols=yes
9049 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'
9050 # Note: this linker hardcodes the directories in LIBPATH if there
9051 # are no directories specified by -L.
9052 hardcode_minus_L=yes
9053 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9054 # Neither direct hardcoding nor static linking is supported with a
9055 # broken collect2.
9056 hardcode_direct=unsupported
9057 fi
9058 ;;
9059
9060 aix[4-9]*)
9061 if test "$host_cpu" = ia64; then
9062 # On IA64, the linker does run time linking by default, so we don't
9063 # have to do anything special.
9064 aix_use_runtimelinking=no
9065 exp_sym_flag='-Bexport'
9066 no_entry_flag=""
9067 else
9068 # If we're using GNU nm, then we don't want the "-C" option.
9069 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9070 # Also, AIX nm treats weak defined symbols like other global
9071 # defined symbols, whereas GNU nm marks them as "W".
9072 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9073 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'
9074 else
9075 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'
9076 fi
9077 aix_use_runtimelinking=no
9078
9079 # Test if we are trying to use run time linking or normal
9080 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9081 # need to do runtime linking.
9082 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9083 for ld_flag in $LDFLAGS; do
9084 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9085 aix_use_runtimelinking=yes
9086 break
9087 fi
9088 done
9089 ;;
9090 esac
9091
9092 exp_sym_flag='-bexport'
9093 no_entry_flag='-bnoentry'
9094 fi
9095
9096 # When large executables or shared objects are built, AIX ld can
9097 # have problems creating the table of contents. If linking a library
9098 # or program results in "error TOC overflow" add -mminimal-toc to
9099 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9100 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9101
9102 archive_cmds=''
9103 hardcode_direct=yes
9104 hardcode_direct_absolute=yes
9105 hardcode_libdir_separator=':'
9106 link_all_deplibs=yes
9107 file_list_spec='${wl}-f,'
9108
9109 if test "$GCC" = yes; then
9110 case $host_os in aix4.[012]|aix4.[012].*)
9111 # We only want to do this on AIX 4.2 and lower, the check
9112 # below for broken collect2 doesn't work under 4.3+
9113 collect2name=`${CC} -print-prog-name=collect2`
9114 if test -f "$collect2name" &&
9115 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9116 then
9117 # We have reworked collect2
9118 :
9119 else
9120 # We have old collect2
9121 hardcode_direct=unsupported
9122 # It fails to find uninstalled libraries when the uninstalled
9123 # path is not listed in the libpath. Setting hardcode_minus_L
9124 # to unsupported forces relinking
9125 hardcode_minus_L=yes
9126 hardcode_libdir_flag_spec='-L$libdir'
9127 hardcode_libdir_separator=
9128 fi
9129 ;;
9130 esac
9131 shared_flag='-shared'
9132 if test "$aix_use_runtimelinking" = yes; then
9133 shared_flag="$shared_flag "'${wl}-G'
9134 fi
9135 else
9136 # not using gcc
9137 if test "$host_cpu" = ia64; then
9138 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9139 # chokes on -Wl,-G. The following line is correct:
9140 shared_flag='-G'
9141 else
9142 if test "$aix_use_runtimelinking" = yes; then
9143 shared_flag='${wl}-G'
9144 else
9145 shared_flag='${wl}-bM:SRE'
9146 fi
9147 fi
9148 fi
9149
9150 export_dynamic_flag_spec='${wl}-bexpall'
9151 # It seems that -bexpall does not export symbols beginning with
9152 # underscore (_), so it is better to generate a list of symbols to export.
9153 always_export_symbols=yes
9154 if test "$aix_use_runtimelinking" = yes; then
9155 # Warning - without using the other runtime loading flags (-brtl),
9156 # -berok will link without error, but may produce a broken library.
9157 allow_undefined_flag='-berok'
9158 # Determine the default libpath from the value encoded in an
9159 # empty executable.
9160 if test "${lt_cv_aix_libpath+set}" = set; then
9161 aix_libpath=$lt_cv_aix_libpath
9162 else
9163 if ${lt_cv_aix_libpath_+:} false; then :
9164 $as_echo_n "(cached) " >&6
9165 else
9166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9167 /* end confdefs.h. */
9168
9169 int
9170 main ()
9171 {
9172
9173 ;
9174 return 0;
9175 }
9176 _ACEOF
9177 if ac_fn_c_try_link "$LINENO"; then :
9178
9179 lt_aix_libpath_sed='
9180 /Import File Strings/,/^$/ {
9181 /^0/ {
9182 s/^0 *\([^ ]*\) *$/\1/
9183 p
9184 }
9185 }'
9186 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9187 # Check for a 64-bit object if we didn't find anything.
9188 if test -z "$lt_cv_aix_libpath_"; then
9189 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9190 fi
9191 fi
9192 rm -f core conftest.err conftest.$ac_objext \
9193 conftest$ac_exeext conftest.$ac_ext
9194 if test -z "$lt_cv_aix_libpath_"; then
9195 lt_cv_aix_libpath_="/usr/lib:/lib"
9196 fi
9197
9198 fi
9199
9200 aix_libpath=$lt_cv_aix_libpath_
9201 fi
9202
9203 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9204 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"
9205 else
9206 if test "$host_cpu" = ia64; then
9207 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9208 allow_undefined_flag="-z nodefs"
9209 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"
9210 else
9211 # Determine the default libpath from the value encoded in an
9212 # empty executable.
9213 if test "${lt_cv_aix_libpath+set}" = set; then
9214 aix_libpath=$lt_cv_aix_libpath
9215 else
9216 if ${lt_cv_aix_libpath_+:} false; then :
9217 $as_echo_n "(cached) " >&6
9218 else
9219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9220 /* end confdefs.h. */
9221
9222 int
9223 main ()
9224 {
9225
9226 ;
9227 return 0;
9228 }
9229 _ACEOF
9230 if ac_fn_c_try_link "$LINENO"; then :
9231
9232 lt_aix_libpath_sed='
9233 /Import File Strings/,/^$/ {
9234 /^0/ {
9235 s/^0 *\([^ ]*\) *$/\1/
9236 p
9237 }
9238 }'
9239 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9240 # Check for a 64-bit object if we didn't find anything.
9241 if test -z "$lt_cv_aix_libpath_"; then
9242 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9243 fi
9244 fi
9245 rm -f core conftest.err conftest.$ac_objext \
9246 conftest$ac_exeext conftest.$ac_ext
9247 if test -z "$lt_cv_aix_libpath_"; then
9248 lt_cv_aix_libpath_="/usr/lib:/lib"
9249 fi
9250
9251 fi
9252
9253 aix_libpath=$lt_cv_aix_libpath_
9254 fi
9255
9256 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9257 # Warning - without using the other run time loading flags,
9258 # -berok will link without error, but may produce a broken library.
9259 no_undefined_flag=' ${wl}-bernotok'
9260 allow_undefined_flag=' ${wl}-berok'
9261 if test "$with_gnu_ld" = yes; then
9262 # We only use this code for GNU lds that support --whole-archive.
9263 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9264 else
9265 # Exported symbols can be pulled into shared objects from archives
9266 whole_archive_flag_spec='$convenience'
9267 fi
9268 archive_cmds_need_lc=yes
9269 # This is similar to how AIX traditionally builds its shared libraries.
9270 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'
9271 fi
9272 fi
9273 ;;
9274
9275 amigaos*)
9276 case $host_cpu in
9277 powerpc)
9278 # see comment about AmigaOS4 .so support
9279 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9280 archive_expsym_cmds=''
9281 ;;
9282 m68k)
9283 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)'
9284 hardcode_libdir_flag_spec='-L$libdir'
9285 hardcode_minus_L=yes
9286 ;;
9287 esac
9288 ;;
9289
9290 bsdi[45]*)
9291 export_dynamic_flag_spec=-rdynamic
9292 ;;
9293
9294 cygwin* | mingw* | pw32* | cegcc*)
9295 # When not using gcc, we currently assume that we are using
9296 # Microsoft Visual C++.
9297 # hardcode_libdir_flag_spec is actually meaningless, as there is
9298 # no search path for DLLs.
9299 case $cc_basename in
9300 cl*)
9301 # Native MSVC
9302 hardcode_libdir_flag_spec=' '
9303 allow_undefined_flag=unsupported
9304 always_export_symbols=yes
9305 file_list_spec='@'
9306 # Tell ltmain to make .lib files, not .a files.
9307 libext=lib
9308 # Tell ltmain to make .dll files, not .so files.
9309 shrext_cmds=".dll"
9310 # FIXME: Setting linknames here is a bad hack.
9311 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9312 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9313 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9314 else
9315 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9316 fi~
9317 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9318 linknames='
9319 # The linker will not automatically build a static lib if we build a DLL.
9320 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9321 enable_shared_with_static_runtimes=yes
9322 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9323 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9324 # Don't use ranlib
9325 old_postinstall_cmds='chmod 644 $oldlib'
9326 postlink_cmds='lt_outputfile="@OUTPUT@"~
9327 lt_tool_outputfile="@TOOL_OUTPUT@"~
9328 case $lt_outputfile in
9329 *.exe|*.EXE) ;;
9330 *)
9331 lt_outputfile="$lt_outputfile.exe"
9332 lt_tool_outputfile="$lt_tool_outputfile.exe"
9333 ;;
9334 esac~
9335 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9336 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9337 $RM "$lt_outputfile.manifest";
9338 fi'
9339 ;;
9340 *)
9341 # Assume MSVC wrapper
9342 hardcode_libdir_flag_spec=' '
9343 allow_undefined_flag=unsupported
9344 # Tell ltmain to make .lib files, not .a files.
9345 libext=lib
9346 # Tell ltmain to make .dll files, not .so files.
9347 shrext_cmds=".dll"
9348 # FIXME: Setting linknames here is a bad hack.
9349 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9350 # The linker will automatically build a .lib file if we build a DLL.
9351 old_archive_from_new_cmds='true'
9352 # FIXME: Should let the user specify the lib program.
9353 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9354 enable_shared_with_static_runtimes=yes
9355 ;;
9356 esac
9357 ;;
9358
9359 darwin* | rhapsody*)
9360
9361
9362 archive_cmds_need_lc=no
9363 hardcode_direct=no
9364 hardcode_automatic=yes
9365 hardcode_shlibpath_var=unsupported
9366 if test "$lt_cv_ld_force_load" = "yes"; then
9367 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\"`'
9368
9369 else
9370 whole_archive_flag_spec=''
9371 fi
9372 link_all_deplibs=yes
9373 allow_undefined_flag="$_lt_dar_allow_undefined"
9374 case $cc_basename in
9375 ifort*) _lt_dar_can_shared=yes ;;
9376 *) _lt_dar_can_shared=$GCC ;;
9377 esac
9378 if test "$_lt_dar_can_shared" = "yes"; then
9379 output_verbose_link_cmd=func_echo_all
9380 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9381 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9382 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}"
9383 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}"
9384
9385 else
9386 ld_shlibs=no
9387 fi
9388
9389 ;;
9390
9391 dgux*)
9392 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9393 hardcode_libdir_flag_spec='-L$libdir'
9394 hardcode_shlibpath_var=no
9395 ;;
9396
9397 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9398 # support. Future versions do this automatically, but an explicit c++rt0.o
9399 # does not break anything, and helps significantly (at the cost of a little
9400 # extra space).
9401 freebsd2.2*)
9402 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9403 hardcode_libdir_flag_spec='-R$libdir'
9404 hardcode_direct=yes
9405 hardcode_shlibpath_var=no
9406 ;;
9407
9408 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9409 freebsd2.*)
9410 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9411 hardcode_direct=yes
9412 hardcode_minus_L=yes
9413 hardcode_shlibpath_var=no
9414 ;;
9415
9416 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9417 freebsd* | dragonfly*)
9418 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9419 hardcode_libdir_flag_spec='-R$libdir'
9420 hardcode_direct=yes
9421 hardcode_shlibpath_var=no
9422 ;;
9423
9424 hpux9*)
9425 if test "$GCC" = yes; then
9426 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'
9427 else
9428 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'
9429 fi
9430 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9431 hardcode_libdir_separator=:
9432 hardcode_direct=yes
9433
9434 # hardcode_minus_L: Not really in the search PATH,
9435 # but as the default location of the library.
9436 hardcode_minus_L=yes
9437 export_dynamic_flag_spec='${wl}-E'
9438 ;;
9439
9440 hpux10*)
9441 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9442 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9443 else
9444 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9445 fi
9446 if test "$with_gnu_ld" = no; then
9447 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9448 hardcode_libdir_separator=:
9449 hardcode_direct=yes
9450 hardcode_direct_absolute=yes
9451 export_dynamic_flag_spec='${wl}-E'
9452 # hardcode_minus_L: Not really in the search PATH,
9453 # but as the default location of the library.
9454 hardcode_minus_L=yes
9455 fi
9456 ;;
9457
9458 hpux11*)
9459 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9460 case $host_cpu in
9461 hppa*64*)
9462 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9463 ;;
9464 ia64*)
9465 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9466 ;;
9467 *)
9468 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9469 ;;
9470 esac
9471 else
9472 case $host_cpu in
9473 hppa*64*)
9474 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9475 ;;
9476 ia64*)
9477 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9478 ;;
9479 *)
9480
9481 # Older versions of the 11.00 compiler do not understand -b yet
9482 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9484 $as_echo_n "checking if $CC understands -b... " >&6; }
9485 if ${lt_cv_prog_compiler__b+:} false; then :
9486 $as_echo_n "(cached) " >&6
9487 else
9488 lt_cv_prog_compiler__b=no
9489 save_LDFLAGS="$LDFLAGS"
9490 LDFLAGS="$LDFLAGS -b"
9491 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9492 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9493 # The linker can only warn and ignore the option if not recognized
9494 # So say no if there are warnings
9495 if test -s conftest.err; then
9496 # Append any errors to the config.log.
9497 cat conftest.err 1>&5
9498 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9499 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9500 if diff conftest.exp conftest.er2 >/dev/null; then
9501 lt_cv_prog_compiler__b=yes
9502 fi
9503 else
9504 lt_cv_prog_compiler__b=yes
9505 fi
9506 fi
9507 $RM -r conftest*
9508 LDFLAGS="$save_LDFLAGS"
9509
9510 fi
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9512 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9513
9514 if test x"$lt_cv_prog_compiler__b" = xyes; then
9515 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9516 else
9517 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9518 fi
9519
9520 ;;
9521 esac
9522 fi
9523 if test "$with_gnu_ld" = no; then
9524 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9525 hardcode_libdir_separator=:
9526
9527 case $host_cpu in
9528 hppa*64*|ia64*)
9529 hardcode_direct=no
9530 hardcode_shlibpath_var=no
9531 ;;
9532 *)
9533 hardcode_direct=yes
9534 hardcode_direct_absolute=yes
9535 export_dynamic_flag_spec='${wl}-E'
9536
9537 # hardcode_minus_L: Not really in the search PATH,
9538 # but as the default location of the library.
9539 hardcode_minus_L=yes
9540 ;;
9541 esac
9542 fi
9543 ;;
9544
9545 irix5* | irix6* | nonstopux*)
9546 if test "$GCC" = yes; then
9547 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'
9548 # Try to use the -exported_symbol ld option, if it does not
9549 # work, assume that -exports_file does not work either and
9550 # implicitly export all symbols.
9551 # This should be the same for all languages, so no per-tag cache variable.
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9553 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9554 if ${lt_cv_irix_exported_symbol+:} false; then :
9555 $as_echo_n "(cached) " >&6
9556 else
9557 save_LDFLAGS="$LDFLAGS"
9558 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9560 /* end confdefs.h. */
9561 int foo (void) { return 0; }
9562 _ACEOF
9563 if ac_fn_c_try_link "$LINENO"; then :
9564 lt_cv_irix_exported_symbol=yes
9565 else
9566 lt_cv_irix_exported_symbol=no
9567 fi
9568 rm -f core conftest.err conftest.$ac_objext \
9569 conftest$ac_exeext conftest.$ac_ext
9570 LDFLAGS="$save_LDFLAGS"
9571 fi
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9573 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9574 if test "$lt_cv_irix_exported_symbol" = yes; then
9575 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'
9576 fi
9577 else
9578 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'
9579 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'
9580 fi
9581 archive_cmds_need_lc='no'
9582 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9583 hardcode_libdir_separator=:
9584 inherit_rpath=yes
9585 link_all_deplibs=yes
9586 ;;
9587
9588 netbsd*)
9589 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9590 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9591 else
9592 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9593 fi
9594 hardcode_libdir_flag_spec='-R$libdir'
9595 hardcode_direct=yes
9596 hardcode_shlibpath_var=no
9597 ;;
9598
9599 newsos6)
9600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9601 hardcode_direct=yes
9602 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9603 hardcode_libdir_separator=:
9604 hardcode_shlibpath_var=no
9605 ;;
9606
9607 *nto* | *qnx*)
9608 ;;
9609
9610 openbsd*)
9611 if test -f /usr/libexec/ld.so; then
9612 hardcode_direct=yes
9613 hardcode_shlibpath_var=no
9614 hardcode_direct_absolute=yes
9615 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9616 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9617 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9618 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9619 export_dynamic_flag_spec='${wl}-E'
9620 else
9621 case $host_os in
9622 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9623 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9624 hardcode_libdir_flag_spec='-R$libdir'
9625 ;;
9626 *)
9627 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9628 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9629 ;;
9630 esac
9631 fi
9632 else
9633 ld_shlibs=no
9634 fi
9635 ;;
9636
9637 os2*)
9638 hardcode_libdir_flag_spec='-L$libdir'
9639 hardcode_minus_L=yes
9640 allow_undefined_flag=unsupported
9641 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'
9642 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9643 ;;
9644
9645 osf3*)
9646 if test "$GCC" = yes; then
9647 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9648 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'
9649 else
9650 allow_undefined_flag=' -expect_unresolved \*'
9651 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'
9652 fi
9653 archive_cmds_need_lc='no'
9654 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9655 hardcode_libdir_separator=:
9656 ;;
9657
9658 osf4* | osf5*) # as osf3* with the addition of -msym flag
9659 if test "$GCC" = yes; then
9660 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9661 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'
9662 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9663 else
9664 allow_undefined_flag=' -expect_unresolved \*'
9665 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'
9666 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~
9667 $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'
9668
9669 # Both c and cxx compiler support -rpath directly
9670 hardcode_libdir_flag_spec='-rpath $libdir'
9671 fi
9672 archive_cmds_need_lc='no'
9673 hardcode_libdir_separator=:
9674 ;;
9675
9676 solaris*)
9677 no_undefined_flag=' -z defs'
9678 if test "$GCC" = yes; then
9679 wlarc='${wl}'
9680 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9681 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9682 $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'
9683 else
9684 case `$CC -V 2>&1` in
9685 *"Compilers 5.0"*)
9686 wlarc=''
9687 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9688 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9689 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9690 ;;
9691 *)
9692 wlarc='${wl}'
9693 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9694 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9695 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9696 ;;
9697 esac
9698 fi
9699 hardcode_libdir_flag_spec='-R$libdir'
9700 hardcode_shlibpath_var=no
9701 case $host_os in
9702 solaris2.[0-5] | solaris2.[0-5].*) ;;
9703 *)
9704 # The compiler driver will combine and reorder linker options,
9705 # but understands `-z linker_flag'. GCC discards it without `$wl',
9706 # but is careful enough not to reorder.
9707 # Supported since Solaris 2.6 (maybe 2.5.1?)
9708 if test "$GCC" = yes; then
9709 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9710 else
9711 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9712 fi
9713 ;;
9714 esac
9715 link_all_deplibs=yes
9716 ;;
9717
9718 sunos4*)
9719 if test "x$host_vendor" = xsequent; then
9720 # Use $CC to link under sequent, because it throws in some extra .o
9721 # files that make .init and .fini sections work.
9722 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9723 else
9724 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9725 fi
9726 hardcode_libdir_flag_spec='-L$libdir'
9727 hardcode_direct=yes
9728 hardcode_minus_L=yes
9729 hardcode_shlibpath_var=no
9730 ;;
9731
9732 sysv4)
9733 case $host_vendor in
9734 sni)
9735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9736 hardcode_direct=yes # is this really true???
9737 ;;
9738 siemens)
9739 ## LD is ld it makes a PLAMLIB
9740 ## CC just makes a GrossModule.
9741 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9742 reload_cmds='$CC -r -o $output$reload_objs'
9743 hardcode_direct=no
9744 ;;
9745 motorola)
9746 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9747 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9748 ;;
9749 esac
9750 runpath_var='LD_RUN_PATH'
9751 hardcode_shlibpath_var=no
9752 ;;
9753
9754 sysv4.3*)
9755 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9756 hardcode_shlibpath_var=no
9757 export_dynamic_flag_spec='-Bexport'
9758 ;;
9759
9760 sysv4*MP*)
9761 if test -d /usr/nec; then
9762 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9763 hardcode_shlibpath_var=no
9764 runpath_var=LD_RUN_PATH
9765 hardcode_runpath_var=yes
9766 ld_shlibs=yes
9767 fi
9768 ;;
9769
9770 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9771 no_undefined_flag='${wl}-z,text'
9772 archive_cmds_need_lc=no
9773 hardcode_shlibpath_var=no
9774 runpath_var='LD_RUN_PATH'
9775
9776 if test "$GCC" = yes; then
9777 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9778 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9779 else
9780 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9781 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9782 fi
9783 ;;
9784
9785 sysv5* | sco3.2v5* | sco5v6*)
9786 # Note: We can NOT use -z defs as we might desire, because we do not
9787 # link with -lc, and that would cause any symbols used from libc to
9788 # always be unresolved, which means just about no library would
9789 # ever link correctly. If we're not using GNU ld we use -z text
9790 # though, which does catch some bad symbols but isn't as heavy-handed
9791 # as -z defs.
9792 no_undefined_flag='${wl}-z,text'
9793 allow_undefined_flag='${wl}-z,nodefs'
9794 archive_cmds_need_lc=no
9795 hardcode_shlibpath_var=no
9796 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9797 hardcode_libdir_separator=':'
9798 link_all_deplibs=yes
9799 export_dynamic_flag_spec='${wl}-Bexport'
9800 runpath_var='LD_RUN_PATH'
9801
9802 if test "$GCC" = yes; then
9803 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9804 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9805 else
9806 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9807 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9808 fi
9809 ;;
9810
9811 uts4*)
9812 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9813 hardcode_libdir_flag_spec='-L$libdir'
9814 hardcode_shlibpath_var=no
9815 ;;
9816
9817 *)
9818 ld_shlibs=no
9819 ;;
9820 esac
9821
9822 if test x$host_vendor = xsni; then
9823 case $host in
9824 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9825 export_dynamic_flag_spec='${wl}-Blargedynsym'
9826 ;;
9827 esac
9828 fi
9829 fi
9830
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9832 $as_echo "$ld_shlibs" >&6; }
9833 test "$ld_shlibs" = no && can_build_shared=no
9834
9835 with_gnu_ld=$with_gnu_ld
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851 #
9852 # Do we need to explicitly link libc?
9853 #
9854 case "x$archive_cmds_need_lc" in
9855 x|xyes)
9856 # Assume -lc should be added
9857 archive_cmds_need_lc=yes
9858
9859 if test "$enable_shared" = yes && test "$GCC" = yes; then
9860 case $archive_cmds in
9861 *'~'*)
9862 # FIXME: we may have to deal with multi-command sequences.
9863 ;;
9864 '$CC '*)
9865 # Test whether the compiler implicitly links with -lc since on some
9866 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9867 # to ld, don't add -lc before -lgcc.
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9869 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9870 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9871 $as_echo_n "(cached) " >&6
9872 else
9873 $RM conftest*
9874 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9875
9876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9877 (eval $ac_compile) 2>&5
9878 ac_status=$?
9879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9880 test $ac_status = 0; } 2>conftest.err; then
9881 soname=conftest
9882 lib=conftest
9883 libobjs=conftest.$ac_objext
9884 deplibs=
9885 wl=$lt_prog_compiler_wl
9886 pic_flag=$lt_prog_compiler_pic
9887 compiler_flags=-v
9888 linker_flags=-v
9889 verstring=
9890 output_objdir=.
9891 libname=conftest
9892 lt_save_allow_undefined_flag=$allow_undefined_flag
9893 allow_undefined_flag=
9894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9895 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9896 ac_status=$?
9897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9898 test $ac_status = 0; }
9899 then
9900 lt_cv_archive_cmds_need_lc=no
9901 else
9902 lt_cv_archive_cmds_need_lc=yes
9903 fi
9904 allow_undefined_flag=$lt_save_allow_undefined_flag
9905 else
9906 cat conftest.err 1>&5
9907 fi
9908 $RM conftest*
9909
9910 fi
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9912 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9913 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9914 ;;
9915 esac
9916 fi
9917 ;;
9918 esac
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10072 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10073
10074 if test "$GCC" = yes; then
10075 case $host_os in
10076 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10077 *) lt_awk_arg="/^libraries:/" ;;
10078 esac
10079 case $host_os in
10080 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10081 *) lt_sed_strip_eq="s,=/,/,g" ;;
10082 esac
10083 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10084 case $lt_search_path_spec in
10085 *\;*)
10086 # if the path contains ";" then we assume it to be the separator
10087 # otherwise default to the standard path separator (i.e. ":") - it is
10088 # assumed that no part of a normal pathname contains ";" but that should
10089 # okay in the real world where ";" in dirpaths is itself problematic.
10090 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10091 ;;
10092 *)
10093 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10094 ;;
10095 esac
10096 # Ok, now we have the path, separated by spaces, we can step through it
10097 # and add multilib dir if necessary.
10098 lt_tmp_lt_search_path_spec=
10099 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10100 for lt_sys_path in $lt_search_path_spec; do
10101 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10102 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10103 else
10104 test -d "$lt_sys_path" && \
10105 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10106 fi
10107 done
10108 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10109 BEGIN {RS=" "; FS="/|\n";} {
10110 lt_foo="";
10111 lt_count=0;
10112 for (lt_i = NF; lt_i > 0; lt_i--) {
10113 if ($lt_i != "" && $lt_i != ".") {
10114 if ($lt_i == "..") {
10115 lt_count++;
10116 } else {
10117 if (lt_count == 0) {
10118 lt_foo="/" $lt_i lt_foo;
10119 } else {
10120 lt_count--;
10121 }
10122 }
10123 }
10124 }
10125 if (lt_foo != "") { lt_freq[lt_foo]++; }
10126 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10127 }'`
10128 # AWK program above erroneously prepends '/' to C:/dos/paths
10129 # for these hosts.
10130 case $host_os in
10131 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10132 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10133 esac
10134 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10135 else
10136 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10137 fi
10138 library_names_spec=
10139 libname_spec='lib$name'
10140 soname_spec=
10141 shrext_cmds=".so"
10142 postinstall_cmds=
10143 postuninstall_cmds=
10144 finish_cmds=
10145 finish_eval=
10146 shlibpath_var=
10147 shlibpath_overrides_runpath=unknown
10148 version_type=none
10149 dynamic_linker="$host_os ld.so"
10150 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10151 need_lib_prefix=unknown
10152 hardcode_into_libs=no
10153
10154 # when you set need_version to no, make sure it does not cause -set_version
10155 # flags to be left without arguments
10156 need_version=unknown
10157
10158 case $host_os in
10159 aix3*)
10160 version_type=linux # correct to gnu/linux during the next big refactor
10161 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10162 shlibpath_var=LIBPATH
10163
10164 # AIX 3 has no versioning support, so we append a major version to the name.
10165 soname_spec='${libname}${release}${shared_ext}$major'
10166 ;;
10167
10168 aix[4-9]*)
10169 version_type=linux # correct to gnu/linux during the next big refactor
10170 need_lib_prefix=no
10171 need_version=no
10172 hardcode_into_libs=yes
10173 if test "$host_cpu" = ia64; then
10174 # AIX 5 supports IA64
10175 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10176 shlibpath_var=LD_LIBRARY_PATH
10177 else
10178 # With GCC up to 2.95.x, collect2 would create an import file
10179 # for dependence libraries. The import file would start with
10180 # the line `#! .'. This would cause the generated library to
10181 # depend on `.', always an invalid library. This was fixed in
10182 # development snapshots of GCC prior to 3.0.
10183 case $host_os in
10184 aix4 | aix4.[01] | aix4.[01].*)
10185 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10186 echo ' yes '
10187 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10188 :
10189 else
10190 can_build_shared=no
10191 fi
10192 ;;
10193 esac
10194 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10195 # soname into executable. Probably we can add versioning support to
10196 # collect2, so additional links can be useful in future.
10197 if test "$aix_use_runtimelinking" = yes; then
10198 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10199 # instead of lib<name>.a to let people know that these are not
10200 # typical AIX shared libraries.
10201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10202 else
10203 # We preserve .a as extension for shared libraries through AIX4.2
10204 # and later when we are not doing run time linking.
10205 library_names_spec='${libname}${release}.a $libname.a'
10206 soname_spec='${libname}${release}${shared_ext}$major'
10207 fi
10208 shlibpath_var=LIBPATH
10209 fi
10210 ;;
10211
10212 amigaos*)
10213 case $host_cpu in
10214 powerpc)
10215 # Since July 2007 AmigaOS4 officially supports .so libraries.
10216 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10218 ;;
10219 m68k)
10220 library_names_spec='$libname.ixlibrary $libname.a'
10221 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10222 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'
10223 ;;
10224 esac
10225 ;;
10226
10227 beos*)
10228 library_names_spec='${libname}${shared_ext}'
10229 dynamic_linker="$host_os ld.so"
10230 shlibpath_var=LIBRARY_PATH
10231 ;;
10232
10233 bsdi[45]*)
10234 version_type=linux # correct to gnu/linux during the next big refactor
10235 need_version=no
10236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10237 soname_spec='${libname}${release}${shared_ext}$major'
10238 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10239 shlibpath_var=LD_LIBRARY_PATH
10240 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10241 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10242 # the default ld.so.conf also contains /usr/contrib/lib and
10243 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10244 # libtool to hard-code these into programs
10245 ;;
10246
10247 cygwin* | mingw* | pw32* | cegcc*)
10248 version_type=windows
10249 shrext_cmds=".dll"
10250 need_version=no
10251 need_lib_prefix=no
10252
10253 case $GCC,$cc_basename in
10254 yes,*)
10255 # gcc
10256 library_names_spec='$libname.dll.a'
10257 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10258 postinstall_cmds='base_file=`basename \${file}`~
10259 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10260 dldir=$destdir/`dirname \$dlpath`~
10261 test -d \$dldir || mkdir -p \$dldir~
10262 $install_prog $dir/$dlname \$dldir/$dlname~
10263 chmod a+x \$dldir/$dlname~
10264 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10265 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10266 fi'
10267 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10268 dlpath=$dir/\$dldll~
10269 $RM \$dlpath'
10270 shlibpath_overrides_runpath=yes
10271
10272 case $host_os in
10273 cygwin*)
10274 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10275 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10276
10277 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10278 ;;
10279 mingw* | cegcc*)
10280 # MinGW DLLs use traditional 'lib' prefix
10281 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10282 ;;
10283 pw32*)
10284 # pw32 DLLs use 'pw' prefix rather than 'lib'
10285 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10286 ;;
10287 esac
10288 dynamic_linker='Win32 ld.exe'
10289 ;;
10290
10291 *,cl*)
10292 # Native MSVC
10293 libname_spec='$name'
10294 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10295 library_names_spec='${libname}.dll.lib'
10296
10297 case $build_os in
10298 mingw*)
10299 sys_lib_search_path_spec=
10300 lt_save_ifs=$IFS
10301 IFS=';'
10302 for lt_path in $LIB
10303 do
10304 IFS=$lt_save_ifs
10305 # Let DOS variable expansion print the short 8.3 style file name.
10306 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10307 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10308 done
10309 IFS=$lt_save_ifs
10310 # Convert to MSYS style.
10311 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10312 ;;
10313 cygwin*)
10314 # Convert to unix form, then to dos form, then back to unix form
10315 # but this time dos style (no spaces!) so that the unix form looks
10316 # like /cygdrive/c/PROGRA~1:/cygdr...
10317 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10318 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10319 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10320 ;;
10321 *)
10322 sys_lib_search_path_spec="$LIB"
10323 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10324 # It is most probably a Windows format PATH.
10325 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10326 else
10327 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10328 fi
10329 # FIXME: find the short name or the path components, as spaces are
10330 # common. (e.g. "Program Files" -> "PROGRA~1")
10331 ;;
10332 esac
10333
10334 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10335 postinstall_cmds='base_file=`basename \${file}`~
10336 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10337 dldir=$destdir/`dirname \$dlpath`~
10338 test -d \$dldir || mkdir -p \$dldir~
10339 $install_prog $dir/$dlname \$dldir/$dlname'
10340 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10341 dlpath=$dir/\$dldll~
10342 $RM \$dlpath'
10343 shlibpath_overrides_runpath=yes
10344 dynamic_linker='Win32 link.exe'
10345 ;;
10346
10347 *)
10348 # Assume MSVC wrapper
10349 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10350 dynamic_linker='Win32 ld.exe'
10351 ;;
10352 esac
10353 # FIXME: first we should search . and the directory the executable is in
10354 shlibpath_var=PATH
10355 ;;
10356
10357 darwin* | rhapsody*)
10358 dynamic_linker="$host_os dyld"
10359 version_type=darwin
10360 need_lib_prefix=no
10361 need_version=no
10362 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10363 soname_spec='${libname}${release}${major}$shared_ext'
10364 shlibpath_overrides_runpath=yes
10365 shlibpath_var=DYLD_LIBRARY_PATH
10366 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10367
10368 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10369 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10370 ;;
10371
10372 dgux*)
10373 version_type=linux # correct to gnu/linux during the next big refactor
10374 need_lib_prefix=no
10375 need_version=no
10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10377 soname_spec='${libname}${release}${shared_ext}$major'
10378 shlibpath_var=LD_LIBRARY_PATH
10379 ;;
10380
10381 freebsd* | dragonfly*)
10382 # DragonFly does not have aout. When/if they implement a new
10383 # versioning mechanism, adjust this.
10384 if test -x /usr/bin/objformat; then
10385 objformat=`/usr/bin/objformat`
10386 else
10387 case $host_os in
10388 freebsd[23].*) objformat=aout ;;
10389 *) objformat=elf ;;
10390 esac
10391 fi
10392 version_type=freebsd-$objformat
10393 case $version_type in
10394 freebsd-elf*)
10395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10396 need_version=no
10397 need_lib_prefix=no
10398 ;;
10399 freebsd-*)
10400 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10401 need_version=yes
10402 ;;
10403 esac
10404 shlibpath_var=LD_LIBRARY_PATH
10405 case $host_os in
10406 freebsd2.*)
10407 shlibpath_overrides_runpath=yes
10408 ;;
10409 freebsd3.[01]* | freebsdelf3.[01]*)
10410 shlibpath_overrides_runpath=yes
10411 hardcode_into_libs=yes
10412 ;;
10413 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10414 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10415 shlibpath_overrides_runpath=no
10416 hardcode_into_libs=yes
10417 ;;
10418 *) # from 4.6 on, and DragonFly
10419 shlibpath_overrides_runpath=yes
10420 hardcode_into_libs=yes
10421 ;;
10422 esac
10423 ;;
10424
10425 gnu*)
10426 version_type=linux # correct to gnu/linux during the next big refactor
10427 need_lib_prefix=no
10428 need_version=no
10429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10430 soname_spec='${libname}${release}${shared_ext}$major'
10431 shlibpath_var=LD_LIBRARY_PATH
10432 shlibpath_overrides_runpath=no
10433 hardcode_into_libs=yes
10434 ;;
10435
10436 haiku*)
10437 version_type=linux # correct to gnu/linux during the next big refactor
10438 need_lib_prefix=no
10439 need_version=no
10440 dynamic_linker="$host_os runtime_loader"
10441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10442 soname_spec='${libname}${release}${shared_ext}$major'
10443 shlibpath_var=LIBRARY_PATH
10444 shlibpath_overrides_runpath=yes
10445 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10446 hardcode_into_libs=yes
10447 ;;
10448
10449 hpux9* | hpux10* | hpux11*)
10450 # Give a soname corresponding to the major version so that dld.sl refuses to
10451 # link against other versions.
10452 version_type=sunos
10453 need_lib_prefix=no
10454 need_version=no
10455 case $host_cpu in
10456 ia64*)
10457 shrext_cmds='.so'
10458 hardcode_into_libs=yes
10459 dynamic_linker="$host_os dld.so"
10460 shlibpath_var=LD_LIBRARY_PATH
10461 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10463 soname_spec='${libname}${release}${shared_ext}$major'
10464 if test "X$HPUX_IA64_MODE" = X32; then
10465 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10466 else
10467 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10468 fi
10469 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10470 ;;
10471 hppa*64*)
10472 shrext_cmds='.sl'
10473 hardcode_into_libs=yes
10474 dynamic_linker="$host_os dld.sl"
10475 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10476 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10478 soname_spec='${libname}${release}${shared_ext}$major'
10479 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10480 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10481 ;;
10482 *)
10483 shrext_cmds='.sl'
10484 dynamic_linker="$host_os dld.sl"
10485 shlibpath_var=SHLIB_PATH
10486 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10488 soname_spec='${libname}${release}${shared_ext}$major'
10489 ;;
10490 esac
10491 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10492 postinstall_cmds='chmod 555 $lib'
10493 # or fails outright, so override atomically:
10494 install_override_mode=555
10495 ;;
10496
10497 interix[3-9]*)
10498 version_type=linux # correct to gnu/linux during the next big refactor
10499 need_lib_prefix=no
10500 need_version=no
10501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10502 soname_spec='${libname}${release}${shared_ext}$major'
10503 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10504 shlibpath_var=LD_LIBRARY_PATH
10505 shlibpath_overrides_runpath=no
10506 hardcode_into_libs=yes
10507 ;;
10508
10509 irix5* | irix6* | nonstopux*)
10510 case $host_os in
10511 nonstopux*) version_type=nonstopux ;;
10512 *)
10513 if test "$lt_cv_prog_gnu_ld" = yes; then
10514 version_type=linux # correct to gnu/linux during the next big refactor
10515 else
10516 version_type=irix
10517 fi ;;
10518 esac
10519 need_lib_prefix=no
10520 need_version=no
10521 soname_spec='${libname}${release}${shared_ext}$major'
10522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10523 case $host_os in
10524 irix5* | nonstopux*)
10525 libsuff= shlibsuff=
10526 ;;
10527 *)
10528 case $LD in # libtool.m4 will add one of these switches to LD
10529 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10530 libsuff= shlibsuff= libmagic=32-bit;;
10531 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10532 libsuff=32 shlibsuff=N32 libmagic=N32;;
10533 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10534 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10535 *) libsuff= shlibsuff= libmagic=never-match;;
10536 esac
10537 ;;
10538 esac
10539 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10540 shlibpath_overrides_runpath=no
10541 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10542 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10543 hardcode_into_libs=yes
10544 ;;
10545
10546 # No shared lib support for Linux oldld, aout, or coff.
10547 linux*oldld* | linux*aout* | linux*coff*)
10548 dynamic_linker=no
10549 ;;
10550
10551 # This must be glibc/ELF.
10552 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10553 version_type=linux # correct to gnu/linux during the next big refactor
10554 need_lib_prefix=no
10555 need_version=no
10556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10557 soname_spec='${libname}${release}${shared_ext}$major'
10558 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10559 shlibpath_var=LD_LIBRARY_PATH
10560 shlibpath_overrides_runpath=no
10561
10562 # Some binutils ld are patched to set DT_RUNPATH
10563 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10564 $as_echo_n "(cached) " >&6
10565 else
10566 lt_cv_shlibpath_overrides_runpath=no
10567 save_LDFLAGS=$LDFLAGS
10568 save_libdir=$libdir
10569 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10570 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10572 /* end confdefs.h. */
10573
10574 int
10575 main ()
10576 {
10577
10578 ;
10579 return 0;
10580 }
10581 _ACEOF
10582 if ac_fn_c_try_link "$LINENO"; then :
10583 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10584 lt_cv_shlibpath_overrides_runpath=yes
10585 fi
10586 fi
10587 rm -f core conftest.err conftest.$ac_objext \
10588 conftest$ac_exeext conftest.$ac_ext
10589 LDFLAGS=$save_LDFLAGS
10590 libdir=$save_libdir
10591
10592 fi
10593
10594 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10595
10596 # This implies no fast_install, which is unacceptable.
10597 # Some rework will be needed to allow for fast_install
10598 # before this can be enabled.
10599 hardcode_into_libs=yes
10600
10601 # Append ld.so.conf contents to the search path
10602 if test -f /etc/ld.so.conf; then
10603 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' ' '`
10604 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10605 fi
10606
10607 # We used to test for /lib/ld.so.1 and disable shared libraries on
10608 # powerpc, because MkLinux only supported shared libraries with the
10609 # GNU dynamic linker. Since this was broken with cross compilers,
10610 # most powerpc-linux boxes support dynamic linking these days and
10611 # people can always --disable-shared, the test was removed, and we
10612 # assume the GNU/Linux dynamic linker is in use.
10613 dynamic_linker='GNU/Linux ld.so'
10614 ;;
10615
10616 netbsd*)
10617 version_type=sunos
10618 need_lib_prefix=no
10619 need_version=no
10620 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10622 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10623 dynamic_linker='NetBSD (a.out) ld.so'
10624 else
10625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10626 soname_spec='${libname}${release}${shared_ext}$major'
10627 dynamic_linker='NetBSD ld.elf_so'
10628 fi
10629 shlibpath_var=LD_LIBRARY_PATH
10630 shlibpath_overrides_runpath=yes
10631 hardcode_into_libs=yes
10632 ;;
10633
10634 newsos6)
10635 version_type=linux # correct to gnu/linux during the next big refactor
10636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10637 shlibpath_var=LD_LIBRARY_PATH
10638 shlibpath_overrides_runpath=yes
10639 ;;
10640
10641 *nto* | *qnx*)
10642 version_type=qnx
10643 need_lib_prefix=no
10644 need_version=no
10645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10646 soname_spec='${libname}${release}${shared_ext}$major'
10647 shlibpath_var=LD_LIBRARY_PATH
10648 shlibpath_overrides_runpath=no
10649 hardcode_into_libs=yes
10650 dynamic_linker='ldqnx.so'
10651 ;;
10652
10653 openbsd*)
10654 version_type=sunos
10655 sys_lib_dlsearch_path_spec="/usr/lib"
10656 need_lib_prefix=no
10657 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10658 case $host_os in
10659 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10660 *) need_version=no ;;
10661 esac
10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10663 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10664 shlibpath_var=LD_LIBRARY_PATH
10665 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10666 case $host_os in
10667 openbsd2.[89] | openbsd2.[89].*)
10668 shlibpath_overrides_runpath=no
10669 ;;
10670 *)
10671 shlibpath_overrides_runpath=yes
10672 ;;
10673 esac
10674 else
10675 shlibpath_overrides_runpath=yes
10676 fi
10677 ;;
10678
10679 os2*)
10680 libname_spec='$name'
10681 shrext_cmds=".dll"
10682 need_lib_prefix=no
10683 library_names_spec='$libname${shared_ext} $libname.a'
10684 dynamic_linker='OS/2 ld.exe'
10685 shlibpath_var=LIBPATH
10686 ;;
10687
10688 osf3* | osf4* | osf5*)
10689 version_type=osf
10690 need_lib_prefix=no
10691 need_version=no
10692 soname_spec='${libname}${release}${shared_ext}$major'
10693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10694 shlibpath_var=LD_LIBRARY_PATH
10695 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10696 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10697 ;;
10698
10699 rdos*)
10700 dynamic_linker=no
10701 ;;
10702
10703 solaris*)
10704 version_type=linux # correct to gnu/linux during the next big refactor
10705 need_lib_prefix=no
10706 need_version=no
10707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10708 soname_spec='${libname}${release}${shared_ext}$major'
10709 shlibpath_var=LD_LIBRARY_PATH
10710 shlibpath_overrides_runpath=yes
10711 hardcode_into_libs=yes
10712 # ldd complains unless libraries are executable
10713 postinstall_cmds='chmod +x $lib'
10714 ;;
10715
10716 sunos4*)
10717 version_type=sunos
10718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10719 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10720 shlibpath_var=LD_LIBRARY_PATH
10721 shlibpath_overrides_runpath=yes
10722 if test "$with_gnu_ld" = yes; then
10723 need_lib_prefix=no
10724 fi
10725 need_version=yes
10726 ;;
10727
10728 sysv4 | sysv4.3*)
10729 version_type=linux # correct to gnu/linux during the next big refactor
10730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10731 soname_spec='${libname}${release}${shared_ext}$major'
10732 shlibpath_var=LD_LIBRARY_PATH
10733 case $host_vendor in
10734 sni)
10735 shlibpath_overrides_runpath=no
10736 need_lib_prefix=no
10737 runpath_var=LD_RUN_PATH
10738 ;;
10739 siemens)
10740 need_lib_prefix=no
10741 ;;
10742 motorola)
10743 need_lib_prefix=no
10744 need_version=no
10745 shlibpath_overrides_runpath=no
10746 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10747 ;;
10748 esac
10749 ;;
10750
10751 sysv4*MP*)
10752 if test -d /usr/nec ;then
10753 version_type=linux # correct to gnu/linux during the next big refactor
10754 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10755 soname_spec='$libname${shared_ext}.$major'
10756 shlibpath_var=LD_LIBRARY_PATH
10757 fi
10758 ;;
10759
10760 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10761 version_type=freebsd-elf
10762 need_lib_prefix=no
10763 need_version=no
10764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10765 soname_spec='${libname}${release}${shared_ext}$major'
10766 shlibpath_var=LD_LIBRARY_PATH
10767 shlibpath_overrides_runpath=yes
10768 hardcode_into_libs=yes
10769 if test "$with_gnu_ld" = yes; then
10770 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10771 else
10772 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10773 case $host_os in
10774 sco3.2v5*)
10775 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10776 ;;
10777 esac
10778 fi
10779 sys_lib_dlsearch_path_spec='/usr/lib'
10780 ;;
10781
10782 tpf*)
10783 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10784 version_type=linux # correct to gnu/linux during the next big refactor
10785 need_lib_prefix=no
10786 need_version=no
10787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10788 shlibpath_var=LD_LIBRARY_PATH
10789 shlibpath_overrides_runpath=no
10790 hardcode_into_libs=yes
10791 ;;
10792
10793 uts4*)
10794 version_type=linux # correct to gnu/linux during the next big refactor
10795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10796 soname_spec='${libname}${release}${shared_ext}$major'
10797 shlibpath_var=LD_LIBRARY_PATH
10798 ;;
10799
10800 *)
10801 dynamic_linker=no
10802 ;;
10803 esac
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10805 $as_echo "$dynamic_linker" >&6; }
10806 test "$dynamic_linker" = no && can_build_shared=no
10807
10808 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10809 if test "$GCC" = yes; then
10810 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10811 fi
10812
10813 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10814 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10815 fi
10816 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10817 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10818 fi
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10912 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10913 hardcode_action=
10914 if test -n "$hardcode_libdir_flag_spec" ||
10915 test -n "$runpath_var" ||
10916 test "X$hardcode_automatic" = "Xyes" ; then
10917
10918 # We can hardcode non-existent directories.
10919 if test "$hardcode_direct" != no &&
10920 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10921 # have to relink, otherwise we might link with an installed library
10922 # when we should be linking with a yet-to-be-installed one
10923 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10924 test "$hardcode_minus_L" != no; then
10925 # Linking always hardcodes the temporary library directory.
10926 hardcode_action=relink
10927 else
10928 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10929 hardcode_action=immediate
10930 fi
10931 else
10932 # We cannot hardcode anything, or else we can only hardcode existing
10933 # directories.
10934 hardcode_action=unsupported
10935 fi
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10937 $as_echo "$hardcode_action" >&6; }
10938
10939 if test "$hardcode_action" = relink ||
10940 test "$inherit_rpath" = yes; then
10941 # Fast installation is not supported
10942 enable_fast_install=no
10943 elif test "$shlibpath_overrides_runpath" = yes ||
10944 test "$enable_shared" = no; then
10945 # Fast installation is not necessary
10946 enable_fast_install=needless
10947 fi
10948
10949
10950
10951
10952
10953
10954 if test "x$enable_dlopen" != xyes; then
10955 enable_dlopen=unknown
10956 enable_dlopen_self=unknown
10957 enable_dlopen_self_static=unknown
10958 else
10959 lt_cv_dlopen=no
10960 lt_cv_dlopen_libs=
10961
10962 case $host_os in
10963 beos*)
10964 lt_cv_dlopen="load_add_on"
10965 lt_cv_dlopen_libs=
10966 lt_cv_dlopen_self=yes
10967 ;;
10968
10969 mingw* | pw32* | cegcc*)
10970 lt_cv_dlopen="LoadLibrary"
10971 lt_cv_dlopen_libs=
10972 ;;
10973
10974 cygwin*)
10975 lt_cv_dlopen="dlopen"
10976 lt_cv_dlopen_libs=
10977 ;;
10978
10979 darwin*)
10980 # if libdl is installed we need to link against it
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10982 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10983 if ${ac_cv_lib_dl_dlopen+:} false; then :
10984 $as_echo_n "(cached) " >&6
10985 else
10986 ac_check_lib_save_LIBS=$LIBS
10987 LIBS="-ldl $LIBS"
10988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10989 /* end confdefs.h. */
10990
10991 /* Override any GCC internal prototype to avoid an error.
10992 Use char because int might match the return type of a GCC
10993 builtin and then its argument prototype would still apply. */
10994 #ifdef __cplusplus
10995 extern "C"
10996 #endif
10997 char dlopen ();
10998 int
10999 main ()
11000 {
11001 return dlopen ();
11002 ;
11003 return 0;
11004 }
11005 _ACEOF
11006 if ac_fn_c_try_link "$LINENO"; then :
11007 ac_cv_lib_dl_dlopen=yes
11008 else
11009 ac_cv_lib_dl_dlopen=no
11010 fi
11011 rm -f core conftest.err conftest.$ac_objext \
11012 conftest$ac_exeext conftest.$ac_ext
11013 LIBS=$ac_check_lib_save_LIBS
11014 fi
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11016 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11017 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11018 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11019 else
11020
11021 lt_cv_dlopen="dyld"
11022 lt_cv_dlopen_libs=
11023 lt_cv_dlopen_self=yes
11024
11025 fi
11026
11027 ;;
11028
11029 *)
11030 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11031 if test "x$ac_cv_func_shl_load" = xyes; then :
11032 lt_cv_dlopen="shl_load"
11033 else
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11035 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11036 if ${ac_cv_lib_dld_shl_load+:} false; then :
11037 $as_echo_n "(cached) " >&6
11038 else
11039 ac_check_lib_save_LIBS=$LIBS
11040 LIBS="-ldld $LIBS"
11041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11042 /* end confdefs.h. */
11043
11044 /* Override any GCC internal prototype to avoid an error.
11045 Use char because int might match the return type of a GCC
11046 builtin and then its argument prototype would still apply. */
11047 #ifdef __cplusplus
11048 extern "C"
11049 #endif
11050 char shl_load ();
11051 int
11052 main ()
11053 {
11054 return shl_load ();
11055 ;
11056 return 0;
11057 }
11058 _ACEOF
11059 if ac_fn_c_try_link "$LINENO"; then :
11060 ac_cv_lib_dld_shl_load=yes
11061 else
11062 ac_cv_lib_dld_shl_load=no
11063 fi
11064 rm -f core conftest.err conftest.$ac_objext \
11065 conftest$ac_exeext conftest.$ac_ext
11066 LIBS=$ac_check_lib_save_LIBS
11067 fi
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11069 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11070 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11071 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11072 else
11073 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11074 if test "x$ac_cv_func_dlopen" = xyes; then :
11075 lt_cv_dlopen="dlopen"
11076 else
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11078 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11079 if ${ac_cv_lib_dl_dlopen+:} false; then :
11080 $as_echo_n "(cached) " >&6
11081 else
11082 ac_check_lib_save_LIBS=$LIBS
11083 LIBS="-ldl $LIBS"
11084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11085 /* end confdefs.h. */
11086
11087 /* Override any GCC internal prototype to avoid an error.
11088 Use char because int might match the return type of a GCC
11089 builtin and then its argument prototype would still apply. */
11090 #ifdef __cplusplus
11091 extern "C"
11092 #endif
11093 char dlopen ();
11094 int
11095 main ()
11096 {
11097 return dlopen ();
11098 ;
11099 return 0;
11100 }
11101 _ACEOF
11102 if ac_fn_c_try_link "$LINENO"; then :
11103 ac_cv_lib_dl_dlopen=yes
11104 else
11105 ac_cv_lib_dl_dlopen=no
11106 fi
11107 rm -f core conftest.err conftest.$ac_objext \
11108 conftest$ac_exeext conftest.$ac_ext
11109 LIBS=$ac_check_lib_save_LIBS
11110 fi
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11112 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11113 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11114 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11115 else
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11117 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11118 if ${ac_cv_lib_svld_dlopen+:} false; then :
11119 $as_echo_n "(cached) " >&6
11120 else
11121 ac_check_lib_save_LIBS=$LIBS
11122 LIBS="-lsvld $LIBS"
11123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11124 /* end confdefs.h. */
11125
11126 /* Override any GCC internal prototype to avoid an error.
11127 Use char because int might match the return type of a GCC
11128 builtin and then its argument prototype would still apply. */
11129 #ifdef __cplusplus
11130 extern "C"
11131 #endif
11132 char dlopen ();
11133 int
11134 main ()
11135 {
11136 return dlopen ();
11137 ;
11138 return 0;
11139 }
11140 _ACEOF
11141 if ac_fn_c_try_link "$LINENO"; then :
11142 ac_cv_lib_svld_dlopen=yes
11143 else
11144 ac_cv_lib_svld_dlopen=no
11145 fi
11146 rm -f core conftest.err conftest.$ac_objext \
11147 conftest$ac_exeext conftest.$ac_ext
11148 LIBS=$ac_check_lib_save_LIBS
11149 fi
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11151 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11152 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11153 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11154 else
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11156 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11157 if ${ac_cv_lib_dld_dld_link+:} false; then :
11158 $as_echo_n "(cached) " >&6
11159 else
11160 ac_check_lib_save_LIBS=$LIBS
11161 LIBS="-ldld $LIBS"
11162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11163 /* end confdefs.h. */
11164
11165 /* Override any GCC internal prototype to avoid an error.
11166 Use char because int might match the return type of a GCC
11167 builtin and then its argument prototype would still apply. */
11168 #ifdef __cplusplus
11169 extern "C"
11170 #endif
11171 char dld_link ();
11172 int
11173 main ()
11174 {
11175 return dld_link ();
11176 ;
11177 return 0;
11178 }
11179 _ACEOF
11180 if ac_fn_c_try_link "$LINENO"; then :
11181 ac_cv_lib_dld_dld_link=yes
11182 else
11183 ac_cv_lib_dld_dld_link=no
11184 fi
11185 rm -f core conftest.err conftest.$ac_objext \
11186 conftest$ac_exeext conftest.$ac_ext
11187 LIBS=$ac_check_lib_save_LIBS
11188 fi
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11190 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11191 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11192 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11193 fi
11194
11195
11196 fi
11197
11198
11199 fi
11200
11201
11202 fi
11203
11204
11205 fi
11206
11207
11208 fi
11209
11210 ;;
11211 esac
11212
11213 if test "x$lt_cv_dlopen" != xno; then
11214 enable_dlopen=yes
11215 else
11216 enable_dlopen=no
11217 fi
11218
11219 case $lt_cv_dlopen in
11220 dlopen)
11221 save_CPPFLAGS="$CPPFLAGS"
11222 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11223
11224 save_LDFLAGS="$LDFLAGS"
11225 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11226
11227 save_LIBS="$LIBS"
11228 LIBS="$lt_cv_dlopen_libs $LIBS"
11229
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11231 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11232 if ${lt_cv_dlopen_self+:} false; then :
11233 $as_echo_n "(cached) " >&6
11234 else
11235 if test "$cross_compiling" = yes; then :
11236 lt_cv_dlopen_self=cross
11237 else
11238 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11239 lt_status=$lt_dlunknown
11240 cat > conftest.$ac_ext <<_LT_EOF
11241 #line $LINENO "configure"
11242 #include "confdefs.h"
11243
11244 #if HAVE_DLFCN_H
11245 #include <dlfcn.h>
11246 #endif
11247
11248 #include <stdio.h>
11249
11250 #ifdef RTLD_GLOBAL
11251 # define LT_DLGLOBAL RTLD_GLOBAL
11252 #else
11253 # ifdef DL_GLOBAL
11254 # define LT_DLGLOBAL DL_GLOBAL
11255 # else
11256 # define LT_DLGLOBAL 0
11257 # endif
11258 #endif
11259
11260 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11261 find out it does not work in some platform. */
11262 #ifndef LT_DLLAZY_OR_NOW
11263 # ifdef RTLD_LAZY
11264 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11265 # else
11266 # ifdef DL_LAZY
11267 # define LT_DLLAZY_OR_NOW DL_LAZY
11268 # else
11269 # ifdef RTLD_NOW
11270 # define LT_DLLAZY_OR_NOW RTLD_NOW
11271 # else
11272 # ifdef DL_NOW
11273 # define LT_DLLAZY_OR_NOW DL_NOW
11274 # else
11275 # define LT_DLLAZY_OR_NOW 0
11276 # endif
11277 # endif
11278 # endif
11279 # endif
11280 #endif
11281
11282 /* When -fvisbility=hidden is used, assume the code has been annotated
11283 correspondingly for the symbols needed. */
11284 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11285 int fnord () __attribute__((visibility("default")));
11286 #endif
11287
11288 int fnord () { return 42; }
11289 int main ()
11290 {
11291 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11292 int status = $lt_dlunknown;
11293
11294 if (self)
11295 {
11296 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11297 else
11298 {
11299 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11300 else puts (dlerror ());
11301 }
11302 /* dlclose (self); */
11303 }
11304 else
11305 puts (dlerror ());
11306
11307 return status;
11308 }
11309 _LT_EOF
11310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11311 (eval $ac_link) 2>&5
11312 ac_status=$?
11313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11314 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11315 (./conftest; exit; ) >&5 2>/dev/null
11316 lt_status=$?
11317 case x$lt_status in
11318 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11319 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11320 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11321 esac
11322 else :
11323 # compilation failed
11324 lt_cv_dlopen_self=no
11325 fi
11326 fi
11327 rm -fr conftest*
11328
11329
11330 fi
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11332 $as_echo "$lt_cv_dlopen_self" >&6; }
11333
11334 if test "x$lt_cv_dlopen_self" = xyes; then
11335 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11337 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11338 if ${lt_cv_dlopen_self_static+:} false; then :
11339 $as_echo_n "(cached) " >&6
11340 else
11341 if test "$cross_compiling" = yes; then :
11342 lt_cv_dlopen_self_static=cross
11343 else
11344 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11345 lt_status=$lt_dlunknown
11346 cat > conftest.$ac_ext <<_LT_EOF
11347 #line $LINENO "configure"
11348 #include "confdefs.h"
11349
11350 #if HAVE_DLFCN_H
11351 #include <dlfcn.h>
11352 #endif
11353
11354 #include <stdio.h>
11355
11356 #ifdef RTLD_GLOBAL
11357 # define LT_DLGLOBAL RTLD_GLOBAL
11358 #else
11359 # ifdef DL_GLOBAL
11360 # define LT_DLGLOBAL DL_GLOBAL
11361 # else
11362 # define LT_DLGLOBAL 0
11363 # endif
11364 #endif
11365
11366 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11367 find out it does not work in some platform. */
11368 #ifndef LT_DLLAZY_OR_NOW
11369 # ifdef RTLD_LAZY
11370 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11371 # else
11372 # ifdef DL_LAZY
11373 # define LT_DLLAZY_OR_NOW DL_LAZY
11374 # else
11375 # ifdef RTLD_NOW
11376 # define LT_DLLAZY_OR_NOW RTLD_NOW
11377 # else
11378 # ifdef DL_NOW
11379 # define LT_DLLAZY_OR_NOW DL_NOW
11380 # else
11381 # define LT_DLLAZY_OR_NOW 0
11382 # endif
11383 # endif
11384 # endif
11385 # endif
11386 #endif
11387
11388 /* When -fvisbility=hidden is used, assume the code has been annotated
11389 correspondingly for the symbols needed. */
11390 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11391 int fnord () __attribute__((visibility("default")));
11392 #endif
11393
11394 int fnord () { return 42; }
11395 int main ()
11396 {
11397 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11398 int status = $lt_dlunknown;
11399
11400 if (self)
11401 {
11402 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11403 else
11404 {
11405 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11406 else puts (dlerror ());
11407 }
11408 /* dlclose (self); */
11409 }
11410 else
11411 puts (dlerror ());
11412
11413 return status;
11414 }
11415 _LT_EOF
11416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11417 (eval $ac_link) 2>&5
11418 ac_status=$?
11419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11420 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11421 (./conftest; exit; ) >&5 2>/dev/null
11422 lt_status=$?
11423 case x$lt_status in
11424 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11425 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11426 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11427 esac
11428 else :
11429 # compilation failed
11430 lt_cv_dlopen_self_static=no
11431 fi
11432 fi
11433 rm -fr conftest*
11434
11435
11436 fi
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11438 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11439 fi
11440
11441 CPPFLAGS="$save_CPPFLAGS"
11442 LDFLAGS="$save_LDFLAGS"
11443 LIBS="$save_LIBS"
11444 ;;
11445 esac
11446
11447 case $lt_cv_dlopen_self in
11448 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11449 *) enable_dlopen_self=unknown ;;
11450 esac
11451
11452 case $lt_cv_dlopen_self_static in
11453 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11454 *) enable_dlopen_self_static=unknown ;;
11455 esac
11456 fi
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474 striplib=
11475 old_striplib=
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11477 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11478 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11479 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11480 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11482 $as_echo "yes" >&6; }
11483 else
11484 # FIXME - insert some real tests, host_os isn't really good enough
11485 case $host_os in
11486 darwin*)
11487 if test -n "$STRIP" ; then
11488 striplib="$STRIP -x"
11489 old_striplib="$STRIP -S"
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11491 $as_echo "yes" >&6; }
11492 else
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11494 $as_echo "no" >&6; }
11495 fi
11496 ;;
11497 *)
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11499 $as_echo "no" >&6; }
11500 ;;
11501 esac
11502 fi
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515 # Report which library types will actually be built
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11517 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11519 $as_echo "$can_build_shared" >&6; }
11520
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11522 $as_echo_n "checking whether to build shared libraries... " >&6; }
11523 test "$can_build_shared" = "no" && enable_shared=no
11524
11525 # On AIX, shared libraries and static libraries use the same namespace, and
11526 # are all built from PIC.
11527 case $host_os in
11528 aix3*)
11529 test "$enable_shared" = yes && enable_static=no
11530 if test -n "$RANLIB"; then
11531 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11532 postinstall_cmds='$RANLIB $lib'
11533 fi
11534 ;;
11535
11536 aix[4-9]*)
11537 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11538 test "$enable_shared" = yes && enable_static=no
11539 fi
11540 ;;
11541 esac
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11543 $as_echo "$enable_shared" >&6; }
11544
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11546 $as_echo_n "checking whether to build static libraries... " >&6; }
11547 # Make sure either enable_shared or enable_static is yes.
11548 test "$enable_shared" = yes || enable_static=yes
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11550 $as_echo "$enable_static" >&6; }
11551
11552
11553
11554
11555 fi
11556 ac_ext=c
11557 ac_cpp='$CPP $CPPFLAGS'
11558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11561
11562 CC="$lt_save_CC"
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578 ac_config_commands="$ac_config_commands libtool"
11579
11580
11581
11582
11583 # Only expand once:
11584
11585
11586
11587 # Initialize X.Org macros
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11600 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11601 if ${ac_cv_prog_cc_c99+:} false; then :
11602 $as_echo_n "(cached) " >&6
11603 else
11604 ac_cv_prog_cc_c99=no
11605 ac_save_CC=$CC
11606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11607 /* end confdefs.h. */
11608 #include <stdarg.h>
11609 #include <stdbool.h>
11610 #include <stdlib.h>
11611 #include <wchar.h>
11612 #include <stdio.h>
11613
11614 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11615 #define debug(...) fprintf (stderr, __VA_ARGS__)
11616 #define showlist(...) puts (#__VA_ARGS__)
11617 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11618 static void
11619 test_varargs_macros (void)
11620 {
11621 int x = 1234;
11622 int y = 5678;
11623 debug ("Flag");
11624 debug ("X = %d\n", x);
11625 showlist (The first, second, and third items.);
11626 report (x>y, "x is %d but y is %d", x, y);
11627 }
11628
11629 // Check long long types.
11630 #define BIG64 18446744073709551615ull
11631 #define BIG32 4294967295ul
11632 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11633 #if !BIG_OK
11634 your preprocessor is broken;
11635 #endif
11636 #if BIG_OK
11637 #else
11638 your preprocessor is broken;
11639 #endif
11640 static long long int bignum = -9223372036854775807LL;
11641 static unsigned long long int ubignum = BIG64;
11642
11643 struct incomplete_array
11644 {
11645 int datasize;
11646 double data[];
11647 };
11648
11649 struct named_init {
11650 int number;
11651 const wchar_t *name;
11652 double average;
11653 };
11654
11655 typedef const char *ccp;
11656
11657 static inline int
11658 test_restrict (ccp restrict text)
11659 {
11660 // See if C++-style comments work.
11661 // Iterate through items via the restricted pointer.
11662 // Also check for declarations in for loops.
11663 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11664 continue;
11665 return 0;
11666 }
11667
11668 // Check varargs and va_copy.
11669 static void
11670 test_varargs (const char *format, ...)
11671 {
11672 va_list args;
11673 va_start (args, format);
11674 va_list args_copy;
11675 va_copy (args_copy, args);
11676
11677 const char *str;
11678 int number;
11679 float fnumber;
11680
11681 while (*format)
11682 {
11683 switch (*format++)
11684 {
11685 case 's': // string
11686 str = va_arg (args_copy, const char *);
11687 break;
11688 case 'd': // int
11689 number = va_arg (args_copy, int);
11690 break;
11691 case 'f': // float
11692 fnumber = va_arg (args_copy, double);
11693 break;
11694 default:
11695 break;
11696 }
11697 }
11698 va_end (args_copy);
11699 va_end (args);
11700 }
11701
11702 int
11703 main ()
11704 {
11705
11706 // Check bool.
11707 _Bool success = false;
11708
11709 // Check restrict.
11710 if (test_restrict ("String literal") == 0)
11711 success = true;
11712 char *restrict newvar = "Another string";
11713
11714 // Check varargs.
11715 test_varargs ("s, d' f .", "string", 65, 34.234);
11716 test_varargs_macros ();
11717
11718 // Check flexible array members.
11719 struct incomplete_array *ia =
11720 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11721 ia->datasize = 10;
11722 for (int i = 0; i < ia->datasize; ++i)
11723 ia->data[i] = i * 1.234;
11724
11725 // Check named initializers.
11726 struct named_init ni = {
11727 .number = 34,
11728 .name = L"Test wide string",
11729 .average = 543.34343,
11730 };
11731
11732 ni.number = 58;
11733
11734 int dynamic_array[ni.number];
11735 dynamic_array[ni.number - 1] = 543;
11736
11737 // work around unused variable warnings
11738 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11739 || dynamic_array[ni.number - 1] != 543);
11740
11741 ;
11742 return 0;
11743 }
11744 _ACEOF
11745 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11746 do
11747 CC="$ac_save_CC $ac_arg"
11748 if ac_fn_c_try_compile "$LINENO"; then :
11749 ac_cv_prog_cc_c99=$ac_arg
11750 fi
11751 rm -f core conftest.err conftest.$ac_objext
11752 test "x$ac_cv_prog_cc_c99" != "xno" && break
11753 done
11754 rm -f conftest.$ac_ext
11755 CC=$ac_save_CC
11756
11757 fi
11758 # AC_CACHE_VAL
11759 case "x$ac_cv_prog_cc_c99" in
11760 x)
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11762 $as_echo "none needed" >&6; } ;;
11763 xno)
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11765 $as_echo "unsupported" >&6; } ;;
11766 *)
11767 CC="$CC $ac_cv_prog_cc_c99"
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11769 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11770 esac
11771 if test "x$ac_cv_prog_cc_c99" != xno; then :
11772
11773 fi
11774
11775
11776
11777
11778
11779
11780 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11781 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11782 CLANGCC="yes"
11783 else
11784 CLANGCC="no"
11785 fi
11786
11787 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11788 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11789 INTELCC="yes"
11790 else
11791 INTELCC="no"
11792 fi
11793
11794 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11795 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11796 SUNCC="yes"
11797 else
11798 SUNCC="no"
11799 fi
11800
11801
11802
11803
11804 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11805 if test -n "$ac_tool_prefix"; then
11806 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11807 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11809 $as_echo_n "checking for $ac_word... " >&6; }
11810 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11811 $as_echo_n "(cached) " >&6
11812 else
11813 case $PKG_CONFIG in
11814 [\\/]* | ?:[\\/]*)
11815 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11816 ;;
11817 *)
11818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11819 for as_dir in $PATH
11820 do
11821 IFS=$as_save_IFS
11822 test -z "$as_dir" && as_dir=.
11823 for ac_exec_ext in '' $ac_executable_extensions; do
11824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11825 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11827 break 2
11828 fi
11829 done
11830 done
11831 IFS=$as_save_IFS
11832
11833 ;;
11834 esac
11835 fi
11836 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11837 if test -n "$PKG_CONFIG"; then
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11839 $as_echo "$PKG_CONFIG" >&6; }
11840 else
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11842 $as_echo "no" >&6; }
11843 fi
11844
11845
11846 fi
11847 if test -z "$ac_cv_path_PKG_CONFIG"; then
11848 ac_pt_PKG_CONFIG=$PKG_CONFIG
11849 # Extract the first word of "pkg-config", so it can be a program name with args.
11850 set dummy pkg-config; ac_word=$2
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11852 $as_echo_n "checking for $ac_word... " >&6; }
11853 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11854 $as_echo_n "(cached) " >&6
11855 else
11856 case $ac_pt_PKG_CONFIG in
11857 [\\/]* | ?:[\\/]*)
11858 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11859 ;;
11860 *)
11861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11862 for as_dir in $PATH
11863 do
11864 IFS=$as_save_IFS
11865 test -z "$as_dir" && as_dir=.
11866 for ac_exec_ext in '' $ac_executable_extensions; do
11867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11868 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11870 break 2
11871 fi
11872 done
11873 done
11874 IFS=$as_save_IFS
11875
11876 ;;
11877 esac
11878 fi
11879 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11880 if test -n "$ac_pt_PKG_CONFIG"; then
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11882 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11883 else
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11885 $as_echo "no" >&6; }
11886 fi
11887
11888 if test "x$ac_pt_PKG_CONFIG" = x; then
11889 PKG_CONFIG=""
11890 else
11891 case $cross_compiling:$ac_tool_warned in
11892 yes:)
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11895 ac_tool_warned=yes ;;
11896 esac
11897 PKG_CONFIG=$ac_pt_PKG_CONFIG
11898 fi
11899 else
11900 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11901 fi
11902
11903 fi
11904 if test -n "$PKG_CONFIG"; then
11905 _pkg_min_version=0.9.0
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11907 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11908 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11910 $as_echo "yes" >&6; }
11911 else
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11913 $as_echo "no" >&6; }
11914 PKG_CONFIG=""
11915 fi
11916
11917 fi
11918
11919
11920
11921
11922
11923 # Check whether --enable-selective-werror was given.
11924 if test "${enable_selective_werror+set}" = set; then :
11925 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11926 else
11927 SELECTIVE_WERROR=yes
11928 fi
11929
11930
11931
11932
11933
11934 # -v is too short to test reliably with XORG_TESTSET_CFLAG
11935 if test "x$SUNCC" = "xyes"; then
11936 BASE_CFLAGS="-v"
11937 else
11938 BASE_CFLAGS=""
11939 fi
11940
11941 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955 xorg_testset_save_CFLAGS="$CFLAGS"
11956
11957 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11960 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11961 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11962 $as_echo_n "(cached) " >&6
11963 else
11964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11965 /* end confdefs.h. */
11966 int i;
11967 _ACEOF
11968 if ac_fn_c_try_compile "$LINENO"; then :
11969 xorg_cv_cc_flag_unknown_warning_option=yes
11970 else
11971 xorg_cv_cc_flag_unknown_warning_option=no
11972 fi
11973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11974 fi
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11976 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11977 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11978 CFLAGS="$xorg_testset_save_CFLAGS"
11979 fi
11980
11981 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11983 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11984 fi
11985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11987 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11988 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11989 $as_echo_n "(cached) " >&6
11990 else
11991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11992 /* end confdefs.h. */
11993 int i;
11994 _ACEOF
11995 if ac_fn_c_try_compile "$LINENO"; then :
11996 xorg_cv_cc_flag_unused_command_line_argument=yes
11997 else
11998 xorg_cv_cc_flag_unused_command_line_argument=no
11999 fi
12000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12001 fi
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12003 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12004 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12005 CFLAGS="$xorg_testset_save_CFLAGS"
12006 fi
12007
12008 found="no"
12009
12010 if test $found = "no" ; then
12011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12013 fi
12014
12015 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12017 fi
12018
12019 CFLAGS="$CFLAGS -Wall"
12020
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12022 $as_echo_n "checking if $CC supports -Wall... " >&6; }
12023 cacheid=xorg_cv_cc_flag__Wall
12024 if eval \${$cacheid+:} false; then :
12025 $as_echo_n "(cached) " >&6
12026 else
12027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12028 /* end confdefs.h. */
12029 int i;
12030 int
12031 main ()
12032 {
12033
12034 ;
12035 return 0;
12036 }
12037 _ACEOF
12038 if ac_fn_c_try_link "$LINENO"; then :
12039 eval $cacheid=yes
12040 else
12041 eval $cacheid=no
12042 fi
12043 rm -f core conftest.err conftest.$ac_objext \
12044 conftest$ac_exeext conftest.$ac_ext
12045 fi
12046
12047
12048 CFLAGS="$xorg_testset_save_CFLAGS"
12049
12050 eval supported=\$$cacheid
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12052 $as_echo "$supported" >&6; }
12053 if test "$supported" = "yes" ; then
12054 BASE_CFLAGS="$BASE_CFLAGS -Wall"
12055 found="yes"
12056 fi
12057 fi
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073 xorg_testset_save_CFLAGS="$CFLAGS"
12074
12075 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12078 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12079 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12080 $as_echo_n "(cached) " >&6
12081 else
12082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12083 /* end confdefs.h. */
12084 int i;
12085 _ACEOF
12086 if ac_fn_c_try_compile "$LINENO"; then :
12087 xorg_cv_cc_flag_unknown_warning_option=yes
12088 else
12089 xorg_cv_cc_flag_unknown_warning_option=no
12090 fi
12091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12092 fi
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12094 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12095 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12096 CFLAGS="$xorg_testset_save_CFLAGS"
12097 fi
12098
12099 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12102 fi
12103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12105 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12106 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12107 $as_echo_n "(cached) " >&6
12108 else
12109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12110 /* end confdefs.h. */
12111 int i;
12112 _ACEOF
12113 if ac_fn_c_try_compile "$LINENO"; then :
12114 xorg_cv_cc_flag_unused_command_line_argument=yes
12115 else
12116 xorg_cv_cc_flag_unused_command_line_argument=no
12117 fi
12118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12119 fi
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12121 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12122 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12123 CFLAGS="$xorg_testset_save_CFLAGS"
12124 fi
12125
12126 found="no"
12127
12128 if test $found = "no" ; then
12129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12131 fi
12132
12133 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12135 fi
12136
12137 CFLAGS="$CFLAGS -Wpointer-arith"
12138
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12140 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12141 cacheid=xorg_cv_cc_flag__Wpointer_arith
12142 if eval \${$cacheid+:} false; then :
12143 $as_echo_n "(cached) " >&6
12144 else
12145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12146 /* end confdefs.h. */
12147 int i;
12148 int
12149 main ()
12150 {
12151
12152 ;
12153 return 0;
12154 }
12155 _ACEOF
12156 if ac_fn_c_try_link "$LINENO"; then :
12157 eval $cacheid=yes
12158 else
12159 eval $cacheid=no
12160 fi
12161 rm -f core conftest.err conftest.$ac_objext \
12162 conftest$ac_exeext conftest.$ac_ext
12163 fi
12164
12165
12166 CFLAGS="$xorg_testset_save_CFLAGS"
12167
12168 eval supported=\$$cacheid
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12170 $as_echo "$supported" >&6; }
12171 if test "$supported" = "yes" ; then
12172 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12173 found="yes"
12174 fi
12175 fi
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191 xorg_testset_save_CFLAGS="$CFLAGS"
12192
12193 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12194 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12196 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12197 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12198 $as_echo_n "(cached) " >&6
12199 else
12200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12201 /* end confdefs.h. */
12202 int i;
12203 _ACEOF
12204 if ac_fn_c_try_compile "$LINENO"; then :
12205 xorg_cv_cc_flag_unknown_warning_option=yes
12206 else
12207 xorg_cv_cc_flag_unknown_warning_option=no
12208 fi
12209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12210 fi
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12212 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12213 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12214 CFLAGS="$xorg_testset_save_CFLAGS"
12215 fi
12216
12217 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12219 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12220 fi
12221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12223 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12224 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12225 $as_echo_n "(cached) " >&6
12226 else
12227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12228 /* end confdefs.h. */
12229 int i;
12230 _ACEOF
12231 if ac_fn_c_try_compile "$LINENO"; then :
12232 xorg_cv_cc_flag_unused_command_line_argument=yes
12233 else
12234 xorg_cv_cc_flag_unused_command_line_argument=no
12235 fi
12236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12237 fi
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12239 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12240 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12241 CFLAGS="$xorg_testset_save_CFLAGS"
12242 fi
12243
12244 found="no"
12245
12246 if test $found = "no" ; then
12247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12249 fi
12250
12251 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12253 fi
12254
12255 CFLAGS="$CFLAGS -Wmissing-declarations"
12256
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12258 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12259 cacheid=xorg_cv_cc_flag__Wmissing_declarations
12260 if eval \${$cacheid+:} false; then :
12261 $as_echo_n "(cached) " >&6
12262 else
12263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12264 /* end confdefs.h. */
12265 int i;
12266 int
12267 main ()
12268 {
12269
12270 ;
12271 return 0;
12272 }
12273 _ACEOF
12274 if ac_fn_c_try_link "$LINENO"; then :
12275 eval $cacheid=yes
12276 else
12277 eval $cacheid=no
12278 fi
12279 rm -f core conftest.err conftest.$ac_objext \
12280 conftest$ac_exeext conftest.$ac_ext
12281 fi
12282
12283
12284 CFLAGS="$xorg_testset_save_CFLAGS"
12285
12286 eval supported=\$$cacheid
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12288 $as_echo "$supported" >&6; }
12289 if test "$supported" = "yes" ; then
12290 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12291 found="yes"
12292 fi
12293 fi
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309 xorg_testset_save_CFLAGS="$CFLAGS"
12310
12311 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12314 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12315 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12316 $as_echo_n "(cached) " >&6
12317 else
12318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319 /* end confdefs.h. */
12320 int i;
12321 _ACEOF
12322 if ac_fn_c_try_compile "$LINENO"; then :
12323 xorg_cv_cc_flag_unknown_warning_option=yes
12324 else
12325 xorg_cv_cc_flag_unknown_warning_option=no
12326 fi
12327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12328 fi
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12330 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12331 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12332 CFLAGS="$xorg_testset_save_CFLAGS"
12333 fi
12334
12335 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12338 fi
12339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12341 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12342 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12343 $as_echo_n "(cached) " >&6
12344 else
12345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12346 /* end confdefs.h. */
12347 int i;
12348 _ACEOF
12349 if ac_fn_c_try_compile "$LINENO"; then :
12350 xorg_cv_cc_flag_unused_command_line_argument=yes
12351 else
12352 xorg_cv_cc_flag_unused_command_line_argument=no
12353 fi
12354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12355 fi
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12357 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12358 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12359 CFLAGS="$xorg_testset_save_CFLAGS"
12360 fi
12361
12362 found="no"
12363
12364 if test $found = "no" ; then
12365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12366 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12367 fi
12368
12369 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12371 fi
12372
12373 CFLAGS="$CFLAGS -Wformat=2"
12374
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12376 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12377 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
12378 if eval \${$cacheid+:} false; then :
12379 $as_echo_n "(cached) " >&6
12380 else
12381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12382 /* end confdefs.h. */
12383 int i;
12384 int
12385 main ()
12386 {
12387
12388 ;
12389 return 0;
12390 }
12391 _ACEOF
12392 if ac_fn_c_try_link "$LINENO"; then :
12393 eval $cacheid=yes
12394 else
12395 eval $cacheid=no
12396 fi
12397 rm -f core conftest.err conftest.$ac_objext \
12398 conftest$ac_exeext conftest.$ac_ext
12399 fi
12400
12401
12402 CFLAGS="$xorg_testset_save_CFLAGS"
12403
12404 eval supported=\$$cacheid
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12406 $as_echo "$supported" >&6; }
12407 if test "$supported" = "yes" ; then
12408 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12409 found="yes"
12410 fi
12411 fi
12412
12413 if test $found = "no" ; then
12414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12416 fi
12417
12418 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12420 fi
12421
12422 CFLAGS="$CFLAGS -Wformat"
12423
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12425 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12426 cacheid=xorg_cv_cc_flag__Wformat
12427 if eval \${$cacheid+:} false; then :
12428 $as_echo_n "(cached) " >&6
12429 else
12430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12431 /* end confdefs.h. */
12432 int i;
12433 int
12434 main ()
12435 {
12436
12437 ;
12438 return 0;
12439 }
12440 _ACEOF
12441 if ac_fn_c_try_link "$LINENO"; then :
12442 eval $cacheid=yes
12443 else
12444 eval $cacheid=no
12445 fi
12446 rm -f core conftest.err conftest.$ac_objext \
12447 conftest$ac_exeext conftest.$ac_ext
12448 fi
12449
12450
12451 CFLAGS="$xorg_testset_save_CFLAGS"
12452
12453 eval supported=\$$cacheid
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12455 $as_echo "$supported" >&6; }
12456 if test "$supported" = "yes" ; then
12457 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12458 found="yes"
12459 fi
12460 fi
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478 xorg_testset_save_CFLAGS="$CFLAGS"
12479
12480 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12481 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12483 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12484 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12485 $as_echo_n "(cached) " >&6
12486 else
12487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12488 /* end confdefs.h. */
12489 int i;
12490 _ACEOF
12491 if ac_fn_c_try_compile "$LINENO"; then :
12492 xorg_cv_cc_flag_unknown_warning_option=yes
12493 else
12494 xorg_cv_cc_flag_unknown_warning_option=no
12495 fi
12496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12497 fi
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12499 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12500 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12501 CFLAGS="$xorg_testset_save_CFLAGS"
12502 fi
12503
12504 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12505 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12506 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12507 fi
12508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12510 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12511 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12512 $as_echo_n "(cached) " >&6
12513 else
12514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12515 /* end confdefs.h. */
12516 int i;
12517 _ACEOF
12518 if ac_fn_c_try_compile "$LINENO"; then :
12519 xorg_cv_cc_flag_unused_command_line_argument=yes
12520 else
12521 xorg_cv_cc_flag_unused_command_line_argument=no
12522 fi
12523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12524 fi
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12526 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12527 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12528 CFLAGS="$xorg_testset_save_CFLAGS"
12529 fi
12530
12531 found="no"
12532
12533 if test $found = "no" ; then
12534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12535 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12536 fi
12537
12538 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12540 fi
12541
12542 CFLAGS="$CFLAGS -Wstrict-prototypes"
12543
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12545 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12546 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12547 if eval \${$cacheid+:} false; then :
12548 $as_echo_n "(cached) " >&6
12549 else
12550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12551 /* end confdefs.h. */
12552 int i;
12553 int
12554 main ()
12555 {
12556
12557 ;
12558 return 0;
12559 }
12560 _ACEOF
12561 if ac_fn_c_try_link "$LINENO"; then :
12562 eval $cacheid=yes
12563 else
12564 eval $cacheid=no
12565 fi
12566 rm -f core conftest.err conftest.$ac_objext \
12567 conftest$ac_exeext conftest.$ac_ext
12568 fi
12569
12570
12571 CFLAGS="$xorg_testset_save_CFLAGS"
12572
12573 eval supported=\$$cacheid
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12575 $as_echo "$supported" >&6; }
12576 if test "$supported" = "yes" ; then
12577 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12578 found="yes"
12579 fi
12580 fi
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596 xorg_testset_save_CFLAGS="$CFLAGS"
12597
12598 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12599 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12601 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12602 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12603 $as_echo_n "(cached) " >&6
12604 else
12605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12606 /* end confdefs.h. */
12607 int i;
12608 _ACEOF
12609 if ac_fn_c_try_compile "$LINENO"; then :
12610 xorg_cv_cc_flag_unknown_warning_option=yes
12611 else
12612 xorg_cv_cc_flag_unknown_warning_option=no
12613 fi
12614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12615 fi
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12617 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12618 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12619 CFLAGS="$xorg_testset_save_CFLAGS"
12620 fi
12621
12622 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12624 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12625 fi
12626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12628 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12629 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12630 $as_echo_n "(cached) " >&6
12631 else
12632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12633 /* end confdefs.h. */
12634 int i;
12635 _ACEOF
12636 if ac_fn_c_try_compile "$LINENO"; then :
12637 xorg_cv_cc_flag_unused_command_line_argument=yes
12638 else
12639 xorg_cv_cc_flag_unused_command_line_argument=no
12640 fi
12641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12642 fi
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12644 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12645 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12646 CFLAGS="$xorg_testset_save_CFLAGS"
12647 fi
12648
12649 found="no"
12650
12651 if test $found = "no" ; then
12652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12653 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12654 fi
12655
12656 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12658 fi
12659
12660 CFLAGS="$CFLAGS -Wmissing-prototypes"
12661
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12663 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12664 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12665 if eval \${$cacheid+:} false; then :
12666 $as_echo_n "(cached) " >&6
12667 else
12668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12669 /* end confdefs.h. */
12670 int i;
12671 int
12672 main ()
12673 {
12674
12675 ;
12676 return 0;
12677 }
12678 _ACEOF
12679 if ac_fn_c_try_link "$LINENO"; then :
12680 eval $cacheid=yes
12681 else
12682 eval $cacheid=no
12683 fi
12684 rm -f core conftest.err conftest.$ac_objext \
12685 conftest$ac_exeext conftest.$ac_ext
12686 fi
12687
12688
12689 CFLAGS="$xorg_testset_save_CFLAGS"
12690
12691 eval supported=\$$cacheid
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12693 $as_echo "$supported" >&6; }
12694 if test "$supported" = "yes" ; then
12695 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12696 found="yes"
12697 fi
12698 fi
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714 xorg_testset_save_CFLAGS="$CFLAGS"
12715
12716 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12717 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12719 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12720 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12721 $as_echo_n "(cached) " >&6
12722 else
12723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12724 /* end confdefs.h. */
12725 int i;
12726 _ACEOF
12727 if ac_fn_c_try_compile "$LINENO"; then :
12728 xorg_cv_cc_flag_unknown_warning_option=yes
12729 else
12730 xorg_cv_cc_flag_unknown_warning_option=no
12731 fi
12732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12733 fi
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12735 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12736 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12737 CFLAGS="$xorg_testset_save_CFLAGS"
12738 fi
12739
12740 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12742 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12743 fi
12744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12746 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12747 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12748 $as_echo_n "(cached) " >&6
12749 else
12750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12751 /* end confdefs.h. */
12752 int i;
12753 _ACEOF
12754 if ac_fn_c_try_compile "$LINENO"; then :
12755 xorg_cv_cc_flag_unused_command_line_argument=yes
12756 else
12757 xorg_cv_cc_flag_unused_command_line_argument=no
12758 fi
12759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12760 fi
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12762 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12763 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12764 CFLAGS="$xorg_testset_save_CFLAGS"
12765 fi
12766
12767 found="no"
12768
12769 if test $found = "no" ; then
12770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12771 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12772 fi
12773
12774 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12776 fi
12777
12778 CFLAGS="$CFLAGS -Wnested-externs"
12779
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12781 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12782 cacheid=xorg_cv_cc_flag__Wnested_externs
12783 if eval \${$cacheid+:} false; then :
12784 $as_echo_n "(cached) " >&6
12785 else
12786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12787 /* end confdefs.h. */
12788 int i;
12789 int
12790 main ()
12791 {
12792
12793 ;
12794 return 0;
12795 }
12796 _ACEOF
12797 if ac_fn_c_try_link "$LINENO"; then :
12798 eval $cacheid=yes
12799 else
12800 eval $cacheid=no
12801 fi
12802 rm -f core conftest.err conftest.$ac_objext \
12803 conftest$ac_exeext conftest.$ac_ext
12804 fi
12805
12806
12807 CFLAGS="$xorg_testset_save_CFLAGS"
12808
12809 eval supported=\$$cacheid
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12811 $as_echo "$supported" >&6; }
12812 if test "$supported" = "yes" ; then
12813 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12814 found="yes"
12815 fi
12816 fi
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832 xorg_testset_save_CFLAGS="$CFLAGS"
12833
12834 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12835 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12837 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12838 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12839 $as_echo_n "(cached) " >&6
12840 else
12841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12842 /* end confdefs.h. */
12843 int i;
12844 _ACEOF
12845 if ac_fn_c_try_compile "$LINENO"; then :
12846 xorg_cv_cc_flag_unknown_warning_option=yes
12847 else
12848 xorg_cv_cc_flag_unknown_warning_option=no
12849 fi
12850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12851 fi
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12853 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12854 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12855 CFLAGS="$xorg_testset_save_CFLAGS"
12856 fi
12857
12858 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12860 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12861 fi
12862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12864 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12865 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12866 $as_echo_n "(cached) " >&6
12867 else
12868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12869 /* end confdefs.h. */
12870 int i;
12871 _ACEOF
12872 if ac_fn_c_try_compile "$LINENO"; then :
12873 xorg_cv_cc_flag_unused_command_line_argument=yes
12874 else
12875 xorg_cv_cc_flag_unused_command_line_argument=no
12876 fi
12877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12878 fi
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12880 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12881 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12882 CFLAGS="$xorg_testset_save_CFLAGS"
12883 fi
12884
12885 found="no"
12886
12887 if test $found = "no" ; then
12888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12889 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12890 fi
12891
12892 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12894 fi
12895
12896 CFLAGS="$CFLAGS -Wbad-function-cast"
12897
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12899 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12900 cacheid=xorg_cv_cc_flag__Wbad_function_cast
12901 if eval \${$cacheid+:} false; then :
12902 $as_echo_n "(cached) " >&6
12903 else
12904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12905 /* end confdefs.h. */
12906 int i;
12907 int
12908 main ()
12909 {
12910
12911 ;
12912 return 0;
12913 }
12914 _ACEOF
12915 if ac_fn_c_try_link "$LINENO"; then :
12916 eval $cacheid=yes
12917 else
12918 eval $cacheid=no
12919 fi
12920 rm -f core conftest.err conftest.$ac_objext \
12921 conftest$ac_exeext conftest.$ac_ext
12922 fi
12923
12924
12925 CFLAGS="$xorg_testset_save_CFLAGS"
12926
12927 eval supported=\$$cacheid
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12929 $as_echo "$supported" >&6; }
12930 if test "$supported" = "yes" ; then
12931 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12932 found="yes"
12933 fi
12934 fi
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950 xorg_testset_save_CFLAGS="$CFLAGS"
12951
12952 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12953 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12955 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12956 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12957 $as_echo_n "(cached) " >&6
12958 else
12959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12960 /* end confdefs.h. */
12961 int i;
12962 _ACEOF
12963 if ac_fn_c_try_compile "$LINENO"; then :
12964 xorg_cv_cc_flag_unknown_warning_option=yes
12965 else
12966 xorg_cv_cc_flag_unknown_warning_option=no
12967 fi
12968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12969 fi
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12971 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12972 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12973 CFLAGS="$xorg_testset_save_CFLAGS"
12974 fi
12975
12976 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12979 fi
12980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12982 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12983 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12984 $as_echo_n "(cached) " >&6
12985 else
12986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12987 /* end confdefs.h. */
12988 int i;
12989 _ACEOF
12990 if ac_fn_c_try_compile "$LINENO"; then :
12991 xorg_cv_cc_flag_unused_command_line_argument=yes
12992 else
12993 xorg_cv_cc_flag_unused_command_line_argument=no
12994 fi
12995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12996 fi
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12998 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12999 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13000 CFLAGS="$xorg_testset_save_CFLAGS"
13001 fi
13002
13003 found="no"
13004
13005 if test $found = "no" ; then
13006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13007 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13008 fi
13009
13010 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13012 fi
13013
13014 CFLAGS="$CFLAGS -Wold-style-definition"
13015
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13017 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13018 cacheid=xorg_cv_cc_flag__Wold_style_definition
13019 if eval \${$cacheid+:} false; then :
13020 $as_echo_n "(cached) " >&6
13021 else
13022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13023 /* end confdefs.h. */
13024 int i;
13025 int
13026 main ()
13027 {
13028
13029 ;
13030 return 0;
13031 }
13032 _ACEOF
13033 if ac_fn_c_try_link "$LINENO"; then :
13034 eval $cacheid=yes
13035 else
13036 eval $cacheid=no
13037 fi
13038 rm -f core conftest.err conftest.$ac_objext \
13039 conftest$ac_exeext conftest.$ac_ext
13040 fi
13041
13042
13043 CFLAGS="$xorg_testset_save_CFLAGS"
13044
13045 eval supported=\$$cacheid
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13047 $as_echo "$supported" >&6; }
13048 if test "$supported" = "yes" ; then
13049 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13050 found="yes"
13051 fi
13052 fi
13053
13054 if test $found = "no" ; then
13055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13057 fi
13058
13059 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13061 fi
13062
13063 CFLAGS="$CFLAGS -fd"
13064
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13066 $as_echo_n "checking if $CC supports -fd... " >&6; }
13067 cacheid=xorg_cv_cc_flag__fd
13068 if eval \${$cacheid+:} false; then :
13069 $as_echo_n "(cached) " >&6
13070 else
13071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13072 /* end confdefs.h. */
13073 int i;
13074 int
13075 main ()
13076 {
13077
13078 ;
13079 return 0;
13080 }
13081 _ACEOF
13082 if ac_fn_c_try_link "$LINENO"; then :
13083 eval $cacheid=yes
13084 else
13085 eval $cacheid=no
13086 fi
13087 rm -f core conftest.err conftest.$ac_objext \
13088 conftest$ac_exeext conftest.$ac_ext
13089 fi
13090
13091
13092 CFLAGS="$xorg_testset_save_CFLAGS"
13093
13094 eval supported=\$$cacheid
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13096 $as_echo "$supported" >&6; }
13097 if test "$supported" = "yes" ; then
13098 BASE_CFLAGS="$BASE_CFLAGS -fd"
13099 found="yes"
13100 fi
13101 fi
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117 xorg_testset_save_CFLAGS="$CFLAGS"
13118
13119 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13122 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13123 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13124 $as_echo_n "(cached) " >&6
13125 else
13126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13127 /* end confdefs.h. */
13128 int i;
13129 _ACEOF
13130 if ac_fn_c_try_compile "$LINENO"; then :
13131 xorg_cv_cc_flag_unknown_warning_option=yes
13132 else
13133 xorg_cv_cc_flag_unknown_warning_option=no
13134 fi
13135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13136 fi
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13138 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13139 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13140 CFLAGS="$xorg_testset_save_CFLAGS"
13141 fi
13142
13143 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13145 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13146 fi
13147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13149 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13150 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13151 $as_echo_n "(cached) " >&6
13152 else
13153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13154 /* end confdefs.h. */
13155 int i;
13156 _ACEOF
13157 if ac_fn_c_try_compile "$LINENO"; then :
13158 xorg_cv_cc_flag_unused_command_line_argument=yes
13159 else
13160 xorg_cv_cc_flag_unused_command_line_argument=no
13161 fi
13162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13163 fi
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13165 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13166 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13167 CFLAGS="$xorg_testset_save_CFLAGS"
13168 fi
13169
13170 found="no"
13171
13172 if test $found = "no" ; then
13173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13175 fi
13176
13177 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13179 fi
13180
13181 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13182
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13184 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13185 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13186 if eval \${$cacheid+:} false; then :
13187 $as_echo_n "(cached) " >&6
13188 else
13189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13190 /* end confdefs.h. */
13191 int i;
13192 int
13193 main ()
13194 {
13195
13196 ;
13197 return 0;
13198 }
13199 _ACEOF
13200 if ac_fn_c_try_link "$LINENO"; then :
13201 eval $cacheid=yes
13202 else
13203 eval $cacheid=no
13204 fi
13205 rm -f core conftest.err conftest.$ac_objext \
13206 conftest$ac_exeext conftest.$ac_ext
13207 fi
13208
13209
13210 CFLAGS="$xorg_testset_save_CFLAGS"
13211
13212 eval supported=\$$cacheid
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13214 $as_echo "$supported" >&6; }
13215 if test "$supported" = "yes" ; then
13216 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13217 found="yes"
13218 fi
13219 fi
13220
13221
13222
13223
13224
13225 # This chunk adds additional warnings that could catch undesired effects.
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239 xorg_testset_save_CFLAGS="$CFLAGS"
13240
13241 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13244 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13245 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13246 $as_echo_n "(cached) " >&6
13247 else
13248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13249 /* end confdefs.h. */
13250 int i;
13251 _ACEOF
13252 if ac_fn_c_try_compile "$LINENO"; then :
13253 xorg_cv_cc_flag_unknown_warning_option=yes
13254 else
13255 xorg_cv_cc_flag_unknown_warning_option=no
13256 fi
13257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13258 fi
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13260 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13261 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13262 CFLAGS="$xorg_testset_save_CFLAGS"
13263 fi
13264
13265 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13267 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13268 fi
13269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13271 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13272 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13273 $as_echo_n "(cached) " >&6
13274 else
13275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13276 /* end confdefs.h. */
13277 int i;
13278 _ACEOF
13279 if ac_fn_c_try_compile "$LINENO"; then :
13280 xorg_cv_cc_flag_unused_command_line_argument=yes
13281 else
13282 xorg_cv_cc_flag_unused_command_line_argument=no
13283 fi
13284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13285 fi
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13287 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13288 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13289 CFLAGS="$xorg_testset_save_CFLAGS"
13290 fi
13291
13292 found="no"
13293
13294 if test $found = "no" ; then
13295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13296 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13297 fi
13298
13299 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13301 fi
13302
13303 CFLAGS="$CFLAGS -Wunused"
13304
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13306 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13307 cacheid=xorg_cv_cc_flag__Wunused
13308 if eval \${$cacheid+:} false; then :
13309 $as_echo_n "(cached) " >&6
13310 else
13311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13312 /* end confdefs.h. */
13313 int i;
13314 int
13315 main ()
13316 {
13317
13318 ;
13319 return 0;
13320 }
13321 _ACEOF
13322 if ac_fn_c_try_link "$LINENO"; then :
13323 eval $cacheid=yes
13324 else
13325 eval $cacheid=no
13326 fi
13327 rm -f core conftest.err conftest.$ac_objext \
13328 conftest$ac_exeext conftest.$ac_ext
13329 fi
13330
13331
13332 CFLAGS="$xorg_testset_save_CFLAGS"
13333
13334 eval supported=\$$cacheid
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13336 $as_echo "$supported" >&6; }
13337 if test "$supported" = "yes" ; then
13338 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13339 found="yes"
13340 fi
13341 fi
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357 xorg_testset_save_CFLAGS="$CFLAGS"
13358
13359 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13360 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13362 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13363 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13364 $as_echo_n "(cached) " >&6
13365 else
13366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13367 /* end confdefs.h. */
13368 int i;
13369 _ACEOF
13370 if ac_fn_c_try_compile "$LINENO"; then :
13371 xorg_cv_cc_flag_unknown_warning_option=yes
13372 else
13373 xorg_cv_cc_flag_unknown_warning_option=no
13374 fi
13375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13376 fi
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13378 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13379 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13380 CFLAGS="$xorg_testset_save_CFLAGS"
13381 fi
13382
13383 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13386 fi
13387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13389 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13390 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13391 $as_echo_n "(cached) " >&6
13392 else
13393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13394 /* end confdefs.h. */
13395 int i;
13396 _ACEOF
13397 if ac_fn_c_try_compile "$LINENO"; then :
13398 xorg_cv_cc_flag_unused_command_line_argument=yes
13399 else
13400 xorg_cv_cc_flag_unused_command_line_argument=no
13401 fi
13402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13403 fi
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13405 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13406 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13407 CFLAGS="$xorg_testset_save_CFLAGS"
13408 fi
13409
13410 found="no"
13411
13412 if test $found = "no" ; then
13413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13414 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13415 fi
13416
13417 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13419 fi
13420
13421 CFLAGS="$CFLAGS -Wuninitialized"
13422
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13424 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13425 cacheid=xorg_cv_cc_flag__Wuninitialized
13426 if eval \${$cacheid+:} false; then :
13427 $as_echo_n "(cached) " >&6
13428 else
13429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13430 /* end confdefs.h. */
13431 int i;
13432 int
13433 main ()
13434 {
13435
13436 ;
13437 return 0;
13438 }
13439 _ACEOF
13440 if ac_fn_c_try_link "$LINENO"; then :
13441 eval $cacheid=yes
13442 else
13443 eval $cacheid=no
13444 fi
13445 rm -f core conftest.err conftest.$ac_objext \
13446 conftest$ac_exeext conftest.$ac_ext
13447 fi
13448
13449
13450 CFLAGS="$xorg_testset_save_CFLAGS"
13451
13452 eval supported=\$$cacheid
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13454 $as_echo "$supported" >&6; }
13455 if test "$supported" = "yes" ; then
13456 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13457 found="yes"
13458 fi
13459 fi
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475 xorg_testset_save_CFLAGS="$CFLAGS"
13476
13477 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13480 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13481 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13482 $as_echo_n "(cached) " >&6
13483 else
13484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13485 /* end confdefs.h. */
13486 int i;
13487 _ACEOF
13488 if ac_fn_c_try_compile "$LINENO"; then :
13489 xorg_cv_cc_flag_unknown_warning_option=yes
13490 else
13491 xorg_cv_cc_flag_unknown_warning_option=no
13492 fi
13493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13494 fi
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13496 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13497 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13498 CFLAGS="$xorg_testset_save_CFLAGS"
13499 fi
13500
13501 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13503 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13504 fi
13505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13507 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13508 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13509 $as_echo_n "(cached) " >&6
13510 else
13511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13512 /* end confdefs.h. */
13513 int i;
13514 _ACEOF
13515 if ac_fn_c_try_compile "$LINENO"; then :
13516 xorg_cv_cc_flag_unused_command_line_argument=yes
13517 else
13518 xorg_cv_cc_flag_unused_command_line_argument=no
13519 fi
13520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13521 fi
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13523 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13524 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13525 CFLAGS="$xorg_testset_save_CFLAGS"
13526 fi
13527
13528 found="no"
13529
13530 if test $found = "no" ; then
13531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13532 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13533 fi
13534
13535 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13537 fi
13538
13539 CFLAGS="$CFLAGS -Wshadow"
13540
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13542 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13543 cacheid=xorg_cv_cc_flag__Wshadow
13544 if eval \${$cacheid+:} false; then :
13545 $as_echo_n "(cached) " >&6
13546 else
13547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13548 /* end confdefs.h. */
13549 int i;
13550 int
13551 main ()
13552 {
13553
13554 ;
13555 return 0;
13556 }
13557 _ACEOF
13558 if ac_fn_c_try_link "$LINENO"; then :
13559 eval $cacheid=yes
13560 else
13561 eval $cacheid=no
13562 fi
13563 rm -f core conftest.err conftest.$ac_objext \
13564 conftest$ac_exeext conftest.$ac_ext
13565 fi
13566
13567
13568 CFLAGS="$xorg_testset_save_CFLAGS"
13569
13570 eval supported=\$$cacheid
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13572 $as_echo "$supported" >&6; }
13573 if test "$supported" = "yes" ; then
13574 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13575 found="yes"
13576 fi
13577 fi
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593 xorg_testset_save_CFLAGS="$CFLAGS"
13594
13595 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13596 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13598 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13599 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13600 $as_echo_n "(cached) " >&6
13601 else
13602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13603 /* end confdefs.h. */
13604 int i;
13605 _ACEOF
13606 if ac_fn_c_try_compile "$LINENO"; then :
13607 xorg_cv_cc_flag_unknown_warning_option=yes
13608 else
13609 xorg_cv_cc_flag_unknown_warning_option=no
13610 fi
13611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13612 fi
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13614 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13615 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13616 CFLAGS="$xorg_testset_save_CFLAGS"
13617 fi
13618
13619 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13620 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13621 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13622 fi
13623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13625 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13626 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13627 $as_echo_n "(cached) " >&6
13628 else
13629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13630 /* end confdefs.h. */
13631 int i;
13632 _ACEOF
13633 if ac_fn_c_try_compile "$LINENO"; then :
13634 xorg_cv_cc_flag_unused_command_line_argument=yes
13635 else
13636 xorg_cv_cc_flag_unused_command_line_argument=no
13637 fi
13638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13639 fi
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13641 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13642 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13643 CFLAGS="$xorg_testset_save_CFLAGS"
13644 fi
13645
13646 found="no"
13647
13648 if test $found = "no" ; then
13649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13650 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13651 fi
13652
13653 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13655 fi
13656
13657 CFLAGS="$CFLAGS -Wmissing-noreturn"
13658
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13660 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13661 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13662 if eval \${$cacheid+:} false; then :
13663 $as_echo_n "(cached) " >&6
13664 else
13665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13666 /* end confdefs.h. */
13667 int i;
13668 int
13669 main ()
13670 {
13671
13672 ;
13673 return 0;
13674 }
13675 _ACEOF
13676 if ac_fn_c_try_link "$LINENO"; then :
13677 eval $cacheid=yes
13678 else
13679 eval $cacheid=no
13680 fi
13681 rm -f core conftest.err conftest.$ac_objext \
13682 conftest$ac_exeext conftest.$ac_ext
13683 fi
13684
13685
13686 CFLAGS="$xorg_testset_save_CFLAGS"
13687
13688 eval supported=\$$cacheid
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13690 $as_echo "$supported" >&6; }
13691 if test "$supported" = "yes" ; then
13692 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13693 found="yes"
13694 fi
13695 fi
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711 xorg_testset_save_CFLAGS="$CFLAGS"
13712
13713 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13716 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13717 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13718 $as_echo_n "(cached) " >&6
13719 else
13720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13721 /* end confdefs.h. */
13722 int i;
13723 _ACEOF
13724 if ac_fn_c_try_compile "$LINENO"; then :
13725 xorg_cv_cc_flag_unknown_warning_option=yes
13726 else
13727 xorg_cv_cc_flag_unknown_warning_option=no
13728 fi
13729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13730 fi
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13732 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13733 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13734 CFLAGS="$xorg_testset_save_CFLAGS"
13735 fi
13736
13737 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13738 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13739 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13740 fi
13741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13743 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13744 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13745 $as_echo_n "(cached) " >&6
13746 else
13747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13748 /* end confdefs.h. */
13749 int i;
13750 _ACEOF
13751 if ac_fn_c_try_compile "$LINENO"; then :
13752 xorg_cv_cc_flag_unused_command_line_argument=yes
13753 else
13754 xorg_cv_cc_flag_unused_command_line_argument=no
13755 fi
13756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13757 fi
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13759 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13760 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13761 CFLAGS="$xorg_testset_save_CFLAGS"
13762 fi
13763
13764 found="no"
13765
13766 if test $found = "no" ; then
13767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13769 fi
13770
13771 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13773 fi
13774
13775 CFLAGS="$CFLAGS -Wmissing-format-attribute"
13776
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13778 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13779 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
13780 if eval \${$cacheid+:} false; then :
13781 $as_echo_n "(cached) " >&6
13782 else
13783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13784 /* end confdefs.h. */
13785 int i;
13786 int
13787 main ()
13788 {
13789
13790 ;
13791 return 0;
13792 }
13793 _ACEOF
13794 if ac_fn_c_try_link "$LINENO"; then :
13795 eval $cacheid=yes
13796 else
13797 eval $cacheid=no
13798 fi
13799 rm -f core conftest.err conftest.$ac_objext \
13800 conftest$ac_exeext conftest.$ac_ext
13801 fi
13802
13803
13804 CFLAGS="$xorg_testset_save_CFLAGS"
13805
13806 eval supported=\$$cacheid
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13808 $as_echo "$supported" >&6; }
13809 if test "$supported" = "yes" ; then
13810 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13811 found="yes"
13812 fi
13813 fi
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829 xorg_testset_save_CFLAGS="$CFLAGS"
13830
13831 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13834 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13835 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13836 $as_echo_n "(cached) " >&6
13837 else
13838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13839 /* end confdefs.h. */
13840 int i;
13841 _ACEOF
13842 if ac_fn_c_try_compile "$LINENO"; then :
13843 xorg_cv_cc_flag_unknown_warning_option=yes
13844 else
13845 xorg_cv_cc_flag_unknown_warning_option=no
13846 fi
13847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13848 fi
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13850 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13851 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13852 CFLAGS="$xorg_testset_save_CFLAGS"
13853 fi
13854
13855 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13858 fi
13859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13861 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13862 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13863 $as_echo_n "(cached) " >&6
13864 else
13865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13866 /* end confdefs.h. */
13867 int i;
13868 _ACEOF
13869 if ac_fn_c_try_compile "$LINENO"; then :
13870 xorg_cv_cc_flag_unused_command_line_argument=yes
13871 else
13872 xorg_cv_cc_flag_unused_command_line_argument=no
13873 fi
13874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13875 fi
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13877 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13878 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13879 CFLAGS="$xorg_testset_save_CFLAGS"
13880 fi
13881
13882 found="no"
13883
13884 if test $found = "no" ; then
13885 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13886 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13887 fi
13888
13889 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13891 fi
13892
13893 CFLAGS="$CFLAGS -Wredundant-decls"
13894
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13896 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13897 cacheid=xorg_cv_cc_flag__Wredundant_decls
13898 if eval \${$cacheid+:} false; then :
13899 $as_echo_n "(cached) " >&6
13900 else
13901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13902 /* end confdefs.h. */
13903 int i;
13904 int
13905 main ()
13906 {
13907
13908 ;
13909 return 0;
13910 }
13911 _ACEOF
13912 if ac_fn_c_try_link "$LINENO"; then :
13913 eval $cacheid=yes
13914 else
13915 eval $cacheid=no
13916 fi
13917 rm -f core conftest.err conftest.$ac_objext \
13918 conftest$ac_exeext conftest.$ac_ext
13919 fi
13920
13921
13922 CFLAGS="$xorg_testset_save_CFLAGS"
13923
13924 eval supported=\$$cacheid
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13926 $as_echo "$supported" >&6; }
13927 if test "$supported" = "yes" ; then
13928 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13929 found="yes"
13930 fi
13931 fi
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947 xorg_testset_save_CFLAGS="$CFLAGS"
13948
13949 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13952 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13953 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13954 $as_echo_n "(cached) " >&6
13955 else
13956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13957 /* end confdefs.h. */
13958 int i;
13959 _ACEOF
13960 if ac_fn_c_try_compile "$LINENO"; then :
13961 xorg_cv_cc_flag_unknown_warning_option=yes
13962 else
13963 xorg_cv_cc_flag_unknown_warning_option=no
13964 fi
13965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13966 fi
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13968 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13969 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13970 CFLAGS="$xorg_testset_save_CFLAGS"
13971 fi
13972
13973 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13976 fi
13977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13979 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13980 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13981 $as_echo_n "(cached) " >&6
13982 else
13983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13984 /* end confdefs.h. */
13985 int i;
13986 _ACEOF
13987 if ac_fn_c_try_compile "$LINENO"; then :
13988 xorg_cv_cc_flag_unused_command_line_argument=yes
13989 else
13990 xorg_cv_cc_flag_unused_command_line_argument=no
13991 fi
13992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13993 fi
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13995 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13996 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13997 CFLAGS="$xorg_testset_save_CFLAGS"
13998 fi
13999
14000 found="no"
14001
14002 if test $found = "no" ; then
14003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14004 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14005 fi
14006
14007 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14009 fi
14010
14011 CFLAGS="$CFLAGS -Wlogical-op"
14012
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14014 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14015 cacheid=xorg_cv_cc_flag__Wlogical_op
14016 if eval \${$cacheid+:} false; then :
14017 $as_echo_n "(cached) " >&6
14018 else
14019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14020 /* end confdefs.h. */
14021 int i;
14022 int
14023 main ()
14024 {
14025
14026 ;
14027 return 0;
14028 }
14029 _ACEOF
14030 if ac_fn_c_try_link "$LINENO"; then :
14031 eval $cacheid=yes
14032 else
14033 eval $cacheid=no
14034 fi
14035 rm -f core conftest.err conftest.$ac_objext \
14036 conftest$ac_exeext conftest.$ac_ext
14037 fi
14038
14039
14040 CFLAGS="$xorg_testset_save_CFLAGS"
14041
14042 eval supported=\$$cacheid
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14044 $as_echo "$supported" >&6; }
14045 if test "$supported" = "yes" ; then
14046 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14047 found="yes"
14048 fi
14049 fi
14050
14051
14052
14053 # These are currently disabled because they are noisy. They will be enabled
14054 # in the future once the codebase is sufficiently modernized to silence
14055 # them. For now, I don't want them to drown out the other warnings.
14056 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14057 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14058 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14059
14060 # Turn some warnings into errors, so we don't accidently get successful builds
14061 # when there are problems that should be fixed.
14062
14063 if test "x$SELECTIVE_WERROR" = "xyes" ; then
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077 xorg_testset_save_CFLAGS="$CFLAGS"
14078
14079 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14080 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14082 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14083 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14084 $as_echo_n "(cached) " >&6
14085 else
14086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14087 /* end confdefs.h. */
14088 int i;
14089 _ACEOF
14090 if ac_fn_c_try_compile "$LINENO"; then :
14091 xorg_cv_cc_flag_unknown_warning_option=yes
14092 else
14093 xorg_cv_cc_flag_unknown_warning_option=no
14094 fi
14095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14096 fi
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14098 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14099 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14100 CFLAGS="$xorg_testset_save_CFLAGS"
14101 fi
14102
14103 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14106 fi
14107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14109 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14110 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14111 $as_echo_n "(cached) " >&6
14112 else
14113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14114 /* end confdefs.h. */
14115 int i;
14116 _ACEOF
14117 if ac_fn_c_try_compile "$LINENO"; then :
14118 xorg_cv_cc_flag_unused_command_line_argument=yes
14119 else
14120 xorg_cv_cc_flag_unused_command_line_argument=no
14121 fi
14122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14123 fi
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14125 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14126 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14127 CFLAGS="$xorg_testset_save_CFLAGS"
14128 fi
14129
14130 found="no"
14131
14132 if test $found = "no" ; then
14133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14135 fi
14136
14137 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14139 fi
14140
14141 CFLAGS="$CFLAGS -Werror=implicit"
14142
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14144 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14145 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
14146 if eval \${$cacheid+:} false; then :
14147 $as_echo_n "(cached) " >&6
14148 else
14149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14150 /* end confdefs.h. */
14151 int i;
14152 int
14153 main ()
14154 {
14155
14156 ;
14157 return 0;
14158 }
14159 _ACEOF
14160 if ac_fn_c_try_link "$LINENO"; then :
14161 eval $cacheid=yes
14162 else
14163 eval $cacheid=no
14164 fi
14165 rm -f core conftest.err conftest.$ac_objext \
14166 conftest$ac_exeext conftest.$ac_ext
14167 fi
14168
14169
14170 CFLAGS="$xorg_testset_save_CFLAGS"
14171
14172 eval supported=\$$cacheid
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14174 $as_echo "$supported" >&6; }
14175 if test "$supported" = "yes" ; then
14176 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14177 found="yes"
14178 fi
14179 fi
14180
14181 if test $found = "no" ; then
14182 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14184 fi
14185
14186 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14188 fi
14189
14190 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14191
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14193 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14194 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
14195 if eval \${$cacheid+:} false; then :
14196 $as_echo_n "(cached) " >&6
14197 else
14198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14199 /* end confdefs.h. */
14200 int i;
14201 int
14202 main ()
14203 {
14204
14205 ;
14206 return 0;
14207 }
14208 _ACEOF
14209 if ac_fn_c_try_link "$LINENO"; then :
14210 eval $cacheid=yes
14211 else
14212 eval $cacheid=no
14213 fi
14214 rm -f core conftest.err conftest.$ac_objext \
14215 conftest$ac_exeext conftest.$ac_ext
14216 fi
14217
14218
14219 CFLAGS="$xorg_testset_save_CFLAGS"
14220
14221 eval supported=\$$cacheid
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14223 $as_echo "$supported" >&6; }
14224 if test "$supported" = "yes" ; then
14225 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14226 found="yes"
14227 fi
14228 fi
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244 xorg_testset_save_CFLAGS="$CFLAGS"
14245
14246 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14247 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14249 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14250 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14251 $as_echo_n "(cached) " >&6
14252 else
14253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14254 /* end confdefs.h. */
14255 int i;
14256 _ACEOF
14257 if ac_fn_c_try_compile "$LINENO"; then :
14258 xorg_cv_cc_flag_unknown_warning_option=yes
14259 else
14260 xorg_cv_cc_flag_unknown_warning_option=no
14261 fi
14262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14263 fi
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14265 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14266 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14267 CFLAGS="$xorg_testset_save_CFLAGS"
14268 fi
14269
14270 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14272 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14273 fi
14274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14276 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14277 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14278 $as_echo_n "(cached) " >&6
14279 else
14280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14281 /* end confdefs.h. */
14282 int i;
14283 _ACEOF
14284 if ac_fn_c_try_compile "$LINENO"; then :
14285 xorg_cv_cc_flag_unused_command_line_argument=yes
14286 else
14287 xorg_cv_cc_flag_unused_command_line_argument=no
14288 fi
14289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14290 fi
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14292 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14293 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14294 CFLAGS="$xorg_testset_save_CFLAGS"
14295 fi
14296
14297 found="no"
14298
14299 if test $found = "no" ; then
14300 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14301 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14302 fi
14303
14304 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14306 fi
14307
14308 CFLAGS="$CFLAGS -Werror=nonnull"
14309
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14311 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14312 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
14313 if eval \${$cacheid+:} false; then :
14314 $as_echo_n "(cached) " >&6
14315 else
14316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14317 /* end confdefs.h. */
14318 int i;
14319 int
14320 main ()
14321 {
14322
14323 ;
14324 return 0;
14325 }
14326 _ACEOF
14327 if ac_fn_c_try_link "$LINENO"; then :
14328 eval $cacheid=yes
14329 else
14330 eval $cacheid=no
14331 fi
14332 rm -f core conftest.err conftest.$ac_objext \
14333 conftest$ac_exeext conftest.$ac_ext
14334 fi
14335
14336
14337 CFLAGS="$xorg_testset_save_CFLAGS"
14338
14339 eval supported=\$$cacheid
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14341 $as_echo "$supported" >&6; }
14342 if test "$supported" = "yes" ; then
14343 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14344 found="yes"
14345 fi
14346 fi
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362 xorg_testset_save_CFLAGS="$CFLAGS"
14363
14364 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14365 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14367 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14368 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14369 $as_echo_n "(cached) " >&6
14370 else
14371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14372 /* end confdefs.h. */
14373 int i;
14374 _ACEOF
14375 if ac_fn_c_try_compile "$LINENO"; then :
14376 xorg_cv_cc_flag_unknown_warning_option=yes
14377 else
14378 xorg_cv_cc_flag_unknown_warning_option=no
14379 fi
14380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14381 fi
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14383 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14384 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14385 CFLAGS="$xorg_testset_save_CFLAGS"
14386 fi
14387
14388 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14389 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14390 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14391 fi
14392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14394 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14395 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14396 $as_echo_n "(cached) " >&6
14397 else
14398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14399 /* end confdefs.h. */
14400 int i;
14401 _ACEOF
14402 if ac_fn_c_try_compile "$LINENO"; then :
14403 xorg_cv_cc_flag_unused_command_line_argument=yes
14404 else
14405 xorg_cv_cc_flag_unused_command_line_argument=no
14406 fi
14407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14408 fi
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14410 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14411 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14412 CFLAGS="$xorg_testset_save_CFLAGS"
14413 fi
14414
14415 found="no"
14416
14417 if test $found = "no" ; then
14418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14419 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14420 fi
14421
14422 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14424 fi
14425
14426 CFLAGS="$CFLAGS -Werror=init-self"
14427
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14429 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14430 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
14431 if eval \${$cacheid+:} false; then :
14432 $as_echo_n "(cached) " >&6
14433 else
14434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14435 /* end confdefs.h. */
14436 int i;
14437 int
14438 main ()
14439 {
14440
14441 ;
14442 return 0;
14443 }
14444 _ACEOF
14445 if ac_fn_c_try_link "$LINENO"; then :
14446 eval $cacheid=yes
14447 else
14448 eval $cacheid=no
14449 fi
14450 rm -f core conftest.err conftest.$ac_objext \
14451 conftest$ac_exeext conftest.$ac_ext
14452 fi
14453
14454
14455 CFLAGS="$xorg_testset_save_CFLAGS"
14456
14457 eval supported=\$$cacheid
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14459 $as_echo "$supported" >&6; }
14460 if test "$supported" = "yes" ; then
14461 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14462 found="yes"
14463 fi
14464 fi
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480 xorg_testset_save_CFLAGS="$CFLAGS"
14481
14482 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14483 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14485 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14486 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14487 $as_echo_n "(cached) " >&6
14488 else
14489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14490 /* end confdefs.h. */
14491 int i;
14492 _ACEOF
14493 if ac_fn_c_try_compile "$LINENO"; then :
14494 xorg_cv_cc_flag_unknown_warning_option=yes
14495 else
14496 xorg_cv_cc_flag_unknown_warning_option=no
14497 fi
14498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14499 fi
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14501 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14502 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14503 CFLAGS="$xorg_testset_save_CFLAGS"
14504 fi
14505
14506 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14509 fi
14510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14512 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14513 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14514 $as_echo_n "(cached) " >&6
14515 else
14516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14517 /* end confdefs.h. */
14518 int i;
14519 _ACEOF
14520 if ac_fn_c_try_compile "$LINENO"; then :
14521 xorg_cv_cc_flag_unused_command_line_argument=yes
14522 else
14523 xorg_cv_cc_flag_unused_command_line_argument=no
14524 fi
14525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14526 fi
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14528 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14529 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14530 CFLAGS="$xorg_testset_save_CFLAGS"
14531 fi
14532
14533 found="no"
14534
14535 if test $found = "no" ; then
14536 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14537 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14538 fi
14539
14540 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14542 fi
14543
14544 CFLAGS="$CFLAGS -Werror=main"
14545
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14547 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14548 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
14549 if eval \${$cacheid+:} false; then :
14550 $as_echo_n "(cached) " >&6
14551 else
14552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14553 /* end confdefs.h. */
14554 int i;
14555 int
14556 main ()
14557 {
14558
14559 ;
14560 return 0;
14561 }
14562 _ACEOF
14563 if ac_fn_c_try_link "$LINENO"; then :
14564 eval $cacheid=yes
14565 else
14566 eval $cacheid=no
14567 fi
14568 rm -f core conftest.err conftest.$ac_objext \
14569 conftest$ac_exeext conftest.$ac_ext
14570 fi
14571
14572
14573 CFLAGS="$xorg_testset_save_CFLAGS"
14574
14575 eval supported=\$$cacheid
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14577 $as_echo "$supported" >&6; }
14578 if test "$supported" = "yes" ; then
14579 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14580 found="yes"
14581 fi
14582 fi
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598 xorg_testset_save_CFLAGS="$CFLAGS"
14599
14600 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14601 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14603 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14604 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14605 $as_echo_n "(cached) " >&6
14606 else
14607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14608 /* end confdefs.h. */
14609 int i;
14610 _ACEOF
14611 if ac_fn_c_try_compile "$LINENO"; then :
14612 xorg_cv_cc_flag_unknown_warning_option=yes
14613 else
14614 xorg_cv_cc_flag_unknown_warning_option=no
14615 fi
14616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14617 fi
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14619 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14620 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14621 CFLAGS="$xorg_testset_save_CFLAGS"
14622 fi
14623
14624 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14627 fi
14628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14630 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14631 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14632 $as_echo_n "(cached) " >&6
14633 else
14634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14635 /* end confdefs.h. */
14636 int i;
14637 _ACEOF
14638 if ac_fn_c_try_compile "$LINENO"; then :
14639 xorg_cv_cc_flag_unused_command_line_argument=yes
14640 else
14641 xorg_cv_cc_flag_unused_command_line_argument=no
14642 fi
14643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14644 fi
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14646 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14647 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14648 CFLAGS="$xorg_testset_save_CFLAGS"
14649 fi
14650
14651 found="no"
14652
14653 if test $found = "no" ; then
14654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14655 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14656 fi
14657
14658 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14660 fi
14661
14662 CFLAGS="$CFLAGS -Werror=missing-braces"
14663
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14665 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14666 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
14667 if eval \${$cacheid+:} false; then :
14668 $as_echo_n "(cached) " >&6
14669 else
14670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14671 /* end confdefs.h. */
14672 int i;
14673 int
14674 main ()
14675 {
14676
14677 ;
14678 return 0;
14679 }
14680 _ACEOF
14681 if ac_fn_c_try_link "$LINENO"; then :
14682 eval $cacheid=yes
14683 else
14684 eval $cacheid=no
14685 fi
14686 rm -f core conftest.err conftest.$ac_objext \
14687 conftest$ac_exeext conftest.$ac_ext
14688 fi
14689
14690
14691 CFLAGS="$xorg_testset_save_CFLAGS"
14692
14693 eval supported=\$$cacheid
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14695 $as_echo "$supported" >&6; }
14696 if test "$supported" = "yes" ; then
14697 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14698 found="yes"
14699 fi
14700 fi
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716 xorg_testset_save_CFLAGS="$CFLAGS"
14717
14718 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14719 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14721 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14722 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14723 $as_echo_n "(cached) " >&6
14724 else
14725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14726 /* end confdefs.h. */
14727 int i;
14728 _ACEOF
14729 if ac_fn_c_try_compile "$LINENO"; then :
14730 xorg_cv_cc_flag_unknown_warning_option=yes
14731 else
14732 xorg_cv_cc_flag_unknown_warning_option=no
14733 fi
14734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14735 fi
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14737 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14738 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14739 CFLAGS="$xorg_testset_save_CFLAGS"
14740 fi
14741
14742 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14745 fi
14746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14748 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14749 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14750 $as_echo_n "(cached) " >&6
14751 else
14752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14753 /* end confdefs.h. */
14754 int i;
14755 _ACEOF
14756 if ac_fn_c_try_compile "$LINENO"; then :
14757 xorg_cv_cc_flag_unused_command_line_argument=yes
14758 else
14759 xorg_cv_cc_flag_unused_command_line_argument=no
14760 fi
14761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14762 fi
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14764 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14765 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14766 CFLAGS="$xorg_testset_save_CFLAGS"
14767 fi
14768
14769 found="no"
14770
14771 if test $found = "no" ; then
14772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14773 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14774 fi
14775
14776 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14778 fi
14779
14780 CFLAGS="$CFLAGS -Werror=sequence-point"
14781
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14783 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14784 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
14785 if eval \${$cacheid+:} false; then :
14786 $as_echo_n "(cached) " >&6
14787 else
14788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14789 /* end confdefs.h. */
14790 int i;
14791 int
14792 main ()
14793 {
14794
14795 ;
14796 return 0;
14797 }
14798 _ACEOF
14799 if ac_fn_c_try_link "$LINENO"; then :
14800 eval $cacheid=yes
14801 else
14802 eval $cacheid=no
14803 fi
14804 rm -f core conftest.err conftest.$ac_objext \
14805 conftest$ac_exeext conftest.$ac_ext
14806 fi
14807
14808
14809 CFLAGS="$xorg_testset_save_CFLAGS"
14810
14811 eval supported=\$$cacheid
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14813 $as_echo "$supported" >&6; }
14814 if test "$supported" = "yes" ; then
14815 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14816 found="yes"
14817 fi
14818 fi
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834 xorg_testset_save_CFLAGS="$CFLAGS"
14835
14836 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14839 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14840 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14841 $as_echo_n "(cached) " >&6
14842 else
14843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14844 /* end confdefs.h. */
14845 int i;
14846 _ACEOF
14847 if ac_fn_c_try_compile "$LINENO"; then :
14848 xorg_cv_cc_flag_unknown_warning_option=yes
14849 else
14850 xorg_cv_cc_flag_unknown_warning_option=no
14851 fi
14852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14853 fi
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14855 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14856 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14857 CFLAGS="$xorg_testset_save_CFLAGS"
14858 fi
14859
14860 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14863 fi
14864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14866 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14867 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14868 $as_echo_n "(cached) " >&6
14869 else
14870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14871 /* end confdefs.h. */
14872 int i;
14873 _ACEOF
14874 if ac_fn_c_try_compile "$LINENO"; then :
14875 xorg_cv_cc_flag_unused_command_line_argument=yes
14876 else
14877 xorg_cv_cc_flag_unused_command_line_argument=no
14878 fi
14879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14880 fi
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14882 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14883 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14884 CFLAGS="$xorg_testset_save_CFLAGS"
14885 fi
14886
14887 found="no"
14888
14889 if test $found = "no" ; then
14890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14892 fi
14893
14894 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14896 fi
14897
14898 CFLAGS="$CFLAGS -Werror=return-type"
14899
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14901 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14902 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
14903 if eval \${$cacheid+:} false; then :
14904 $as_echo_n "(cached) " >&6
14905 else
14906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14907 /* end confdefs.h. */
14908 int i;
14909 int
14910 main ()
14911 {
14912
14913 ;
14914 return 0;
14915 }
14916 _ACEOF
14917 if ac_fn_c_try_link "$LINENO"; then :
14918 eval $cacheid=yes
14919 else
14920 eval $cacheid=no
14921 fi
14922 rm -f core conftest.err conftest.$ac_objext \
14923 conftest$ac_exeext conftest.$ac_ext
14924 fi
14925
14926
14927 CFLAGS="$xorg_testset_save_CFLAGS"
14928
14929 eval supported=\$$cacheid
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14931 $as_echo "$supported" >&6; }
14932 if test "$supported" = "yes" ; then
14933 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14934 found="yes"
14935 fi
14936 fi
14937
14938 if test $found = "no" ; then
14939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14940 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14941 fi
14942
14943 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14945 fi
14946
14947 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14948
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14950 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14951 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
14952 if eval \${$cacheid+:} false; then :
14953 $as_echo_n "(cached) " >&6
14954 else
14955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14956 /* end confdefs.h. */
14957 int i;
14958 int
14959 main ()
14960 {
14961
14962 ;
14963 return 0;
14964 }
14965 _ACEOF
14966 if ac_fn_c_try_link "$LINENO"; then :
14967 eval $cacheid=yes
14968 else
14969 eval $cacheid=no
14970 fi
14971 rm -f core conftest.err conftest.$ac_objext \
14972 conftest$ac_exeext conftest.$ac_ext
14973 fi
14974
14975
14976 CFLAGS="$xorg_testset_save_CFLAGS"
14977
14978 eval supported=\$$cacheid
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14980 $as_echo "$supported" >&6; }
14981 if test "$supported" = "yes" ; then
14982 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14983 found="yes"
14984 fi
14985 fi
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001 xorg_testset_save_CFLAGS="$CFLAGS"
15002
15003 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15004 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15006 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15007 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15008 $as_echo_n "(cached) " >&6
15009 else
15010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15011 /* end confdefs.h. */
15012 int i;
15013 _ACEOF
15014 if ac_fn_c_try_compile "$LINENO"; then :
15015 xorg_cv_cc_flag_unknown_warning_option=yes
15016 else
15017 xorg_cv_cc_flag_unknown_warning_option=no
15018 fi
15019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15020 fi
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15022 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15023 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15024 CFLAGS="$xorg_testset_save_CFLAGS"
15025 fi
15026
15027 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15028 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15029 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15030 fi
15031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15033 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15034 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15035 $as_echo_n "(cached) " >&6
15036 else
15037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15038 /* end confdefs.h. */
15039 int i;
15040 _ACEOF
15041 if ac_fn_c_try_compile "$LINENO"; then :
15042 xorg_cv_cc_flag_unused_command_line_argument=yes
15043 else
15044 xorg_cv_cc_flag_unused_command_line_argument=no
15045 fi
15046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15047 fi
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15049 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15050 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15051 CFLAGS="$xorg_testset_save_CFLAGS"
15052 fi
15053
15054 found="no"
15055
15056 if test $found = "no" ; then
15057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15058 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15059 fi
15060
15061 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15063 fi
15064
15065 CFLAGS="$CFLAGS -Werror=trigraphs"
15066
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15068 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15069 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
15070 if eval \${$cacheid+:} false; then :
15071 $as_echo_n "(cached) " >&6
15072 else
15073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15074 /* end confdefs.h. */
15075 int i;
15076 int
15077 main ()
15078 {
15079
15080 ;
15081 return 0;
15082 }
15083 _ACEOF
15084 if ac_fn_c_try_link "$LINENO"; then :
15085 eval $cacheid=yes
15086 else
15087 eval $cacheid=no
15088 fi
15089 rm -f core conftest.err conftest.$ac_objext \
15090 conftest$ac_exeext conftest.$ac_ext
15091 fi
15092
15093
15094 CFLAGS="$xorg_testset_save_CFLAGS"
15095
15096 eval supported=\$$cacheid
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15098 $as_echo "$supported" >&6; }
15099 if test "$supported" = "yes" ; then
15100 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15101 found="yes"
15102 fi
15103 fi
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119 xorg_testset_save_CFLAGS="$CFLAGS"
15120
15121 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15122 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15124 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15125 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15126 $as_echo_n "(cached) " >&6
15127 else
15128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15129 /* end confdefs.h. */
15130 int i;
15131 _ACEOF
15132 if ac_fn_c_try_compile "$LINENO"; then :
15133 xorg_cv_cc_flag_unknown_warning_option=yes
15134 else
15135 xorg_cv_cc_flag_unknown_warning_option=no
15136 fi
15137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15138 fi
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15140 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15141 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15142 CFLAGS="$xorg_testset_save_CFLAGS"
15143 fi
15144
15145 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15147 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15148 fi
15149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15151 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15152 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15153 $as_echo_n "(cached) " >&6
15154 else
15155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15156 /* end confdefs.h. */
15157 int i;
15158 _ACEOF
15159 if ac_fn_c_try_compile "$LINENO"; then :
15160 xorg_cv_cc_flag_unused_command_line_argument=yes
15161 else
15162 xorg_cv_cc_flag_unused_command_line_argument=no
15163 fi
15164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15165 fi
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15167 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15168 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15169 CFLAGS="$xorg_testset_save_CFLAGS"
15170 fi
15171
15172 found="no"
15173
15174 if test $found = "no" ; then
15175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15177 fi
15178
15179 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15181 fi
15182
15183 CFLAGS="$CFLAGS -Werror=array-bounds"
15184
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15186 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15187 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
15188 if eval \${$cacheid+:} false; then :
15189 $as_echo_n "(cached) " >&6
15190 else
15191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15192 /* end confdefs.h. */
15193 int i;
15194 int
15195 main ()
15196 {
15197
15198 ;
15199 return 0;
15200 }
15201 _ACEOF
15202 if ac_fn_c_try_link "$LINENO"; then :
15203 eval $cacheid=yes
15204 else
15205 eval $cacheid=no
15206 fi
15207 rm -f core conftest.err conftest.$ac_objext \
15208 conftest$ac_exeext conftest.$ac_ext
15209 fi
15210
15211
15212 CFLAGS="$xorg_testset_save_CFLAGS"
15213
15214 eval supported=\$$cacheid
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15216 $as_echo "$supported" >&6; }
15217 if test "$supported" = "yes" ; then
15218 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15219 found="yes"
15220 fi
15221 fi
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237 xorg_testset_save_CFLAGS="$CFLAGS"
15238
15239 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15242 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15243 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15244 $as_echo_n "(cached) " >&6
15245 else
15246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15247 /* end confdefs.h. */
15248 int i;
15249 _ACEOF
15250 if ac_fn_c_try_compile "$LINENO"; then :
15251 xorg_cv_cc_flag_unknown_warning_option=yes
15252 else
15253 xorg_cv_cc_flag_unknown_warning_option=no
15254 fi
15255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15256 fi
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15258 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15259 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15260 CFLAGS="$xorg_testset_save_CFLAGS"
15261 fi
15262
15263 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15265 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15266 fi
15267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15269 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15270 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15271 $as_echo_n "(cached) " >&6
15272 else
15273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15274 /* end confdefs.h. */
15275 int i;
15276 _ACEOF
15277 if ac_fn_c_try_compile "$LINENO"; then :
15278 xorg_cv_cc_flag_unused_command_line_argument=yes
15279 else
15280 xorg_cv_cc_flag_unused_command_line_argument=no
15281 fi
15282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15283 fi
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15285 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15286 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15287 CFLAGS="$xorg_testset_save_CFLAGS"
15288 fi
15289
15290 found="no"
15291
15292 if test $found = "no" ; then
15293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15295 fi
15296
15297 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15299 fi
15300
15301 CFLAGS="$CFLAGS -Werror=write-strings"
15302
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15304 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15305 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
15306 if eval \${$cacheid+:} false; then :
15307 $as_echo_n "(cached) " >&6
15308 else
15309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15310 /* end confdefs.h. */
15311 int i;
15312 int
15313 main ()
15314 {
15315
15316 ;
15317 return 0;
15318 }
15319 _ACEOF
15320 if ac_fn_c_try_link "$LINENO"; then :
15321 eval $cacheid=yes
15322 else
15323 eval $cacheid=no
15324 fi
15325 rm -f core conftest.err conftest.$ac_objext \
15326 conftest$ac_exeext conftest.$ac_ext
15327 fi
15328
15329
15330 CFLAGS="$xorg_testset_save_CFLAGS"
15331
15332 eval supported=\$$cacheid
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15334 $as_echo "$supported" >&6; }
15335 if test "$supported" = "yes" ; then
15336 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15337 found="yes"
15338 fi
15339 fi
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355 xorg_testset_save_CFLAGS="$CFLAGS"
15356
15357 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15360 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15361 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15362 $as_echo_n "(cached) " >&6
15363 else
15364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15365 /* end confdefs.h. */
15366 int i;
15367 _ACEOF
15368 if ac_fn_c_try_compile "$LINENO"; then :
15369 xorg_cv_cc_flag_unknown_warning_option=yes
15370 else
15371 xorg_cv_cc_flag_unknown_warning_option=no
15372 fi
15373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15374 fi
15375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15376 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15377 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15378 CFLAGS="$xorg_testset_save_CFLAGS"
15379 fi
15380
15381 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15383 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15384 fi
15385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15387 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15388 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15389 $as_echo_n "(cached) " >&6
15390 else
15391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15392 /* end confdefs.h. */
15393 int i;
15394 _ACEOF
15395 if ac_fn_c_try_compile "$LINENO"; then :
15396 xorg_cv_cc_flag_unused_command_line_argument=yes
15397 else
15398 xorg_cv_cc_flag_unused_command_line_argument=no
15399 fi
15400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15401 fi
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15403 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15404 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15405 CFLAGS="$xorg_testset_save_CFLAGS"
15406 fi
15407
15408 found="no"
15409
15410 if test $found = "no" ; then
15411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15412 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15413 fi
15414
15415 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15417 fi
15418
15419 CFLAGS="$CFLAGS -Werror=address"
15420
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15422 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15423 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
15424 if eval \${$cacheid+:} false; then :
15425 $as_echo_n "(cached) " >&6
15426 else
15427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15428 /* end confdefs.h. */
15429 int i;
15430 int
15431 main ()
15432 {
15433
15434 ;
15435 return 0;
15436 }
15437 _ACEOF
15438 if ac_fn_c_try_link "$LINENO"; then :
15439 eval $cacheid=yes
15440 else
15441 eval $cacheid=no
15442 fi
15443 rm -f core conftest.err conftest.$ac_objext \
15444 conftest$ac_exeext conftest.$ac_ext
15445 fi
15446
15447
15448 CFLAGS="$xorg_testset_save_CFLAGS"
15449
15450 eval supported=\$$cacheid
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15452 $as_echo "$supported" >&6; }
15453 if test "$supported" = "yes" ; then
15454 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15455 found="yes"
15456 fi
15457 fi
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473 xorg_testset_save_CFLAGS="$CFLAGS"
15474
15475 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15476 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15478 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15479 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15480 $as_echo_n "(cached) " >&6
15481 else
15482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15483 /* end confdefs.h. */
15484 int i;
15485 _ACEOF
15486 if ac_fn_c_try_compile "$LINENO"; then :
15487 xorg_cv_cc_flag_unknown_warning_option=yes
15488 else
15489 xorg_cv_cc_flag_unknown_warning_option=no
15490 fi
15491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15492 fi
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15494 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15495 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15496 CFLAGS="$xorg_testset_save_CFLAGS"
15497 fi
15498
15499 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15501 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15502 fi
15503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15505 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15506 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15507 $as_echo_n "(cached) " >&6
15508 else
15509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15510 /* end confdefs.h. */
15511 int i;
15512 _ACEOF
15513 if ac_fn_c_try_compile "$LINENO"; then :
15514 xorg_cv_cc_flag_unused_command_line_argument=yes
15515 else
15516 xorg_cv_cc_flag_unused_command_line_argument=no
15517 fi
15518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15519 fi
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15521 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15522 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15523 CFLAGS="$xorg_testset_save_CFLAGS"
15524 fi
15525
15526 found="no"
15527
15528 if test $found = "no" ; then
15529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15530 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15531 fi
15532
15533 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15535 fi
15536
15537 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15538
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15540 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15541 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
15542 if eval \${$cacheid+:} false; then :
15543 $as_echo_n "(cached) " >&6
15544 else
15545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15546 /* end confdefs.h. */
15547 int i;
15548 int
15549 main ()
15550 {
15551
15552 ;
15553 return 0;
15554 }
15555 _ACEOF
15556 if ac_fn_c_try_link "$LINENO"; then :
15557 eval $cacheid=yes
15558 else
15559 eval $cacheid=no
15560 fi
15561 rm -f core conftest.err conftest.$ac_objext \
15562 conftest$ac_exeext conftest.$ac_ext
15563 fi
15564
15565
15566 CFLAGS="$xorg_testset_save_CFLAGS"
15567
15568 eval supported=\$$cacheid
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15570 $as_echo "$supported" >&6; }
15571 if test "$supported" = "yes" ; then
15572 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15573 found="yes"
15574 fi
15575 fi
15576
15577 if test $found = "no" ; then
15578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15580 fi
15581
15582 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15584 fi
15585
15586 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15587
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15589 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15590 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
15591 if eval \${$cacheid+:} false; then :
15592 $as_echo_n "(cached) " >&6
15593 else
15594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15595 /* end confdefs.h. */
15596 int i;
15597 int
15598 main ()
15599 {
15600
15601 ;
15602 return 0;
15603 }
15604 _ACEOF
15605 if ac_fn_c_try_link "$LINENO"; then :
15606 eval $cacheid=yes
15607 else
15608 eval $cacheid=no
15609 fi
15610 rm -f core conftest.err conftest.$ac_objext \
15611 conftest$ac_exeext conftest.$ac_ext
15612 fi
15613
15614
15615 CFLAGS="$xorg_testset_save_CFLAGS"
15616
15617 eval supported=\$$cacheid
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15619 $as_echo "$supported" >&6; }
15620 if test "$supported" = "yes" ; then
15621 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15622 found="yes"
15623 fi
15624 fi
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640 xorg_testset_save_CFLAGS="$CFLAGS"
15641
15642 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15645 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15646 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15647 $as_echo_n "(cached) " >&6
15648 else
15649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15650 /* end confdefs.h. */
15651 int i;
15652 _ACEOF
15653 if ac_fn_c_try_compile "$LINENO"; then :
15654 xorg_cv_cc_flag_unknown_warning_option=yes
15655 else
15656 xorg_cv_cc_flag_unknown_warning_option=no
15657 fi
15658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15659 fi
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15661 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15662 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15663 CFLAGS="$xorg_testset_save_CFLAGS"
15664 fi
15665
15666 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15668 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15669 fi
15670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15672 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15673 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15674 $as_echo_n "(cached) " >&6
15675 else
15676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15677 /* end confdefs.h. */
15678 int i;
15679 _ACEOF
15680 if ac_fn_c_try_compile "$LINENO"; then :
15681 xorg_cv_cc_flag_unused_command_line_argument=yes
15682 else
15683 xorg_cv_cc_flag_unused_command_line_argument=no
15684 fi
15685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15686 fi
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15688 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15689 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15690 CFLAGS="$xorg_testset_save_CFLAGS"
15691 fi
15692
15693 found="no"
15694
15695 if test $found = "no" ; then
15696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15697 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15698 fi
15699
15700 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15702 fi
15703
15704 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15705
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15707 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15708 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
15709 if eval \${$cacheid+:} false; then :
15710 $as_echo_n "(cached) " >&6
15711 else
15712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15713 /* end confdefs.h. */
15714 int i;
15715 int
15716 main ()
15717 {
15718
15719 ;
15720 return 0;
15721 }
15722 _ACEOF
15723 if ac_fn_c_try_link "$LINENO"; then :
15724 eval $cacheid=yes
15725 else
15726 eval $cacheid=no
15727 fi
15728 rm -f core conftest.err conftest.$ac_objext \
15729 conftest$ac_exeext conftest.$ac_ext
15730 fi
15731
15732
15733 CFLAGS="$xorg_testset_save_CFLAGS"
15734
15735 eval supported=\$$cacheid
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15737 $as_echo "$supported" >&6; }
15738 if test "$supported" = "yes" ; then
15739 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15740 found="yes"
15741 fi
15742 fi
15743
15744 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15745 else
15746 { $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
15747 $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;}
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761 xorg_testset_save_CFLAGS="$CFLAGS"
15762
15763 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15764 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15766 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15767 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15768 $as_echo_n "(cached) " >&6
15769 else
15770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15771 /* end confdefs.h. */
15772 int i;
15773 _ACEOF
15774 if ac_fn_c_try_compile "$LINENO"; then :
15775 xorg_cv_cc_flag_unknown_warning_option=yes
15776 else
15777 xorg_cv_cc_flag_unknown_warning_option=no
15778 fi
15779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15780 fi
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15782 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15783 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15784 CFLAGS="$xorg_testset_save_CFLAGS"
15785 fi
15786
15787 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15788 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15789 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15790 fi
15791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15793 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15794 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15795 $as_echo_n "(cached) " >&6
15796 else
15797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15798 /* end confdefs.h. */
15799 int i;
15800 _ACEOF
15801 if ac_fn_c_try_compile "$LINENO"; then :
15802 xorg_cv_cc_flag_unused_command_line_argument=yes
15803 else
15804 xorg_cv_cc_flag_unused_command_line_argument=no
15805 fi
15806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15807 fi
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15809 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15810 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15811 CFLAGS="$xorg_testset_save_CFLAGS"
15812 fi
15813
15814 found="no"
15815
15816 if test $found = "no" ; then
15817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15819 fi
15820
15821 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15823 fi
15824
15825 CFLAGS="$CFLAGS -Wimplicit"
15826
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15828 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15829 cacheid=xorg_cv_cc_flag__Wimplicit
15830 if eval \${$cacheid+:} false; then :
15831 $as_echo_n "(cached) " >&6
15832 else
15833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15834 /* end confdefs.h. */
15835 int i;
15836 int
15837 main ()
15838 {
15839
15840 ;
15841 return 0;
15842 }
15843 _ACEOF
15844 if ac_fn_c_try_link "$LINENO"; then :
15845 eval $cacheid=yes
15846 else
15847 eval $cacheid=no
15848 fi
15849 rm -f core conftest.err conftest.$ac_objext \
15850 conftest$ac_exeext conftest.$ac_ext
15851 fi
15852
15853
15854 CFLAGS="$xorg_testset_save_CFLAGS"
15855
15856 eval supported=\$$cacheid
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15858 $as_echo "$supported" >&6; }
15859 if test "$supported" = "yes" ; then
15860 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15861 found="yes"
15862 fi
15863 fi
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879 xorg_testset_save_CFLAGS="$CFLAGS"
15880
15881 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15882 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15884 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15885 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15886 $as_echo_n "(cached) " >&6
15887 else
15888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15889 /* end confdefs.h. */
15890 int i;
15891 _ACEOF
15892 if ac_fn_c_try_compile "$LINENO"; then :
15893 xorg_cv_cc_flag_unknown_warning_option=yes
15894 else
15895 xorg_cv_cc_flag_unknown_warning_option=no
15896 fi
15897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15898 fi
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15900 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15901 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15902 CFLAGS="$xorg_testset_save_CFLAGS"
15903 fi
15904
15905 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15907 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15908 fi
15909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15911 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15912 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15913 $as_echo_n "(cached) " >&6
15914 else
15915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15916 /* end confdefs.h. */
15917 int i;
15918 _ACEOF
15919 if ac_fn_c_try_compile "$LINENO"; then :
15920 xorg_cv_cc_flag_unused_command_line_argument=yes
15921 else
15922 xorg_cv_cc_flag_unused_command_line_argument=no
15923 fi
15924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15925 fi
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15927 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15928 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15929 CFLAGS="$xorg_testset_save_CFLAGS"
15930 fi
15931
15932 found="no"
15933
15934 if test $found = "no" ; then
15935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15936 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15937 fi
15938
15939 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15941 fi
15942
15943 CFLAGS="$CFLAGS -Wnonnull"
15944
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15946 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15947 cacheid=xorg_cv_cc_flag__Wnonnull
15948 if eval \${$cacheid+:} false; then :
15949 $as_echo_n "(cached) " >&6
15950 else
15951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15952 /* end confdefs.h. */
15953 int i;
15954 int
15955 main ()
15956 {
15957
15958 ;
15959 return 0;
15960 }
15961 _ACEOF
15962 if ac_fn_c_try_link "$LINENO"; then :
15963 eval $cacheid=yes
15964 else
15965 eval $cacheid=no
15966 fi
15967 rm -f core conftest.err conftest.$ac_objext \
15968 conftest$ac_exeext conftest.$ac_ext
15969 fi
15970
15971
15972 CFLAGS="$xorg_testset_save_CFLAGS"
15973
15974 eval supported=\$$cacheid
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15976 $as_echo "$supported" >&6; }
15977 if test "$supported" = "yes" ; then
15978 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15979 found="yes"
15980 fi
15981 fi
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997 xorg_testset_save_CFLAGS="$CFLAGS"
15998
15999 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16000 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16002 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16003 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16004 $as_echo_n "(cached) " >&6
16005 else
16006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16007 /* end confdefs.h. */
16008 int i;
16009 _ACEOF
16010 if ac_fn_c_try_compile "$LINENO"; then :
16011 xorg_cv_cc_flag_unknown_warning_option=yes
16012 else
16013 xorg_cv_cc_flag_unknown_warning_option=no
16014 fi
16015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16016 fi
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16018 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16019 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16020 CFLAGS="$xorg_testset_save_CFLAGS"
16021 fi
16022
16023 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16026 fi
16027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16029 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16030 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16031 $as_echo_n "(cached) " >&6
16032 else
16033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16034 /* end confdefs.h. */
16035 int i;
16036 _ACEOF
16037 if ac_fn_c_try_compile "$LINENO"; then :
16038 xorg_cv_cc_flag_unused_command_line_argument=yes
16039 else
16040 xorg_cv_cc_flag_unused_command_line_argument=no
16041 fi
16042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16043 fi
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16045 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16046 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16047 CFLAGS="$xorg_testset_save_CFLAGS"
16048 fi
16049
16050 found="no"
16051
16052 if test $found = "no" ; then
16053 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16054 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16055 fi
16056
16057 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16059 fi
16060
16061 CFLAGS="$CFLAGS -Winit-self"
16062
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16064 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16065 cacheid=xorg_cv_cc_flag__Winit_self
16066 if eval \${$cacheid+:} false; then :
16067 $as_echo_n "(cached) " >&6
16068 else
16069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16070 /* end confdefs.h. */
16071 int i;
16072 int
16073 main ()
16074 {
16075
16076 ;
16077 return 0;
16078 }
16079 _ACEOF
16080 if ac_fn_c_try_link "$LINENO"; then :
16081 eval $cacheid=yes
16082 else
16083 eval $cacheid=no
16084 fi
16085 rm -f core conftest.err conftest.$ac_objext \
16086 conftest$ac_exeext conftest.$ac_ext
16087 fi
16088
16089
16090 CFLAGS="$xorg_testset_save_CFLAGS"
16091
16092 eval supported=\$$cacheid
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16094 $as_echo "$supported" >&6; }
16095 if test "$supported" = "yes" ; then
16096 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16097 found="yes"
16098 fi
16099 fi
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115 xorg_testset_save_CFLAGS="$CFLAGS"
16116
16117 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16118 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16120 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16121 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16122 $as_echo_n "(cached) " >&6
16123 else
16124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16125 /* end confdefs.h. */
16126 int i;
16127 _ACEOF
16128 if ac_fn_c_try_compile "$LINENO"; then :
16129 xorg_cv_cc_flag_unknown_warning_option=yes
16130 else
16131 xorg_cv_cc_flag_unknown_warning_option=no
16132 fi
16133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16134 fi
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16136 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16137 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16138 CFLAGS="$xorg_testset_save_CFLAGS"
16139 fi
16140
16141 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16142 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16143 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16144 fi
16145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16147 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16148 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16149 $as_echo_n "(cached) " >&6
16150 else
16151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16152 /* end confdefs.h. */
16153 int i;
16154 _ACEOF
16155 if ac_fn_c_try_compile "$LINENO"; then :
16156 xorg_cv_cc_flag_unused_command_line_argument=yes
16157 else
16158 xorg_cv_cc_flag_unused_command_line_argument=no
16159 fi
16160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16161 fi
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16163 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16164 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16165 CFLAGS="$xorg_testset_save_CFLAGS"
16166 fi
16167
16168 found="no"
16169
16170 if test $found = "no" ; then
16171 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16172 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16173 fi
16174
16175 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16177 fi
16178
16179 CFLAGS="$CFLAGS -Wmain"
16180
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16182 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
16183 cacheid=xorg_cv_cc_flag__Wmain
16184 if eval \${$cacheid+:} false; then :
16185 $as_echo_n "(cached) " >&6
16186 else
16187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16188 /* end confdefs.h. */
16189 int i;
16190 int
16191 main ()
16192 {
16193
16194 ;
16195 return 0;
16196 }
16197 _ACEOF
16198 if ac_fn_c_try_link "$LINENO"; then :
16199 eval $cacheid=yes
16200 else
16201 eval $cacheid=no
16202 fi
16203 rm -f core conftest.err conftest.$ac_objext \
16204 conftest$ac_exeext conftest.$ac_ext
16205 fi
16206
16207
16208 CFLAGS="$xorg_testset_save_CFLAGS"
16209
16210 eval supported=\$$cacheid
16211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16212 $as_echo "$supported" >&6; }
16213 if test "$supported" = "yes" ; then
16214 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16215 found="yes"
16216 fi
16217 fi
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233 xorg_testset_save_CFLAGS="$CFLAGS"
16234
16235 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16236 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16238 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16239 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16240 $as_echo_n "(cached) " >&6
16241 else
16242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16243 /* end confdefs.h. */
16244 int i;
16245 _ACEOF
16246 if ac_fn_c_try_compile "$LINENO"; then :
16247 xorg_cv_cc_flag_unknown_warning_option=yes
16248 else
16249 xorg_cv_cc_flag_unknown_warning_option=no
16250 fi
16251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16252 fi
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16254 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16255 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16256 CFLAGS="$xorg_testset_save_CFLAGS"
16257 fi
16258
16259 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16260 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16261 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16262 fi
16263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16265 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16266 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16267 $as_echo_n "(cached) " >&6
16268 else
16269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16270 /* end confdefs.h. */
16271 int i;
16272 _ACEOF
16273 if ac_fn_c_try_compile "$LINENO"; then :
16274 xorg_cv_cc_flag_unused_command_line_argument=yes
16275 else
16276 xorg_cv_cc_flag_unused_command_line_argument=no
16277 fi
16278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16279 fi
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16281 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16282 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16283 CFLAGS="$xorg_testset_save_CFLAGS"
16284 fi
16285
16286 found="no"
16287
16288 if test $found = "no" ; then
16289 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16290 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16291 fi
16292
16293 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16295 fi
16296
16297 CFLAGS="$CFLAGS -Wmissing-braces"
16298
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16300 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16301 cacheid=xorg_cv_cc_flag__Wmissing_braces
16302 if eval \${$cacheid+:} false; then :
16303 $as_echo_n "(cached) " >&6
16304 else
16305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16306 /* end confdefs.h. */
16307 int i;
16308 int
16309 main ()
16310 {
16311
16312 ;
16313 return 0;
16314 }
16315 _ACEOF
16316 if ac_fn_c_try_link "$LINENO"; then :
16317 eval $cacheid=yes
16318 else
16319 eval $cacheid=no
16320 fi
16321 rm -f core conftest.err conftest.$ac_objext \
16322 conftest$ac_exeext conftest.$ac_ext
16323 fi
16324
16325
16326 CFLAGS="$xorg_testset_save_CFLAGS"
16327
16328 eval supported=\$$cacheid
16329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16330 $as_echo "$supported" >&6; }
16331 if test "$supported" = "yes" ; then
16332 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16333 found="yes"
16334 fi
16335 fi
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351 xorg_testset_save_CFLAGS="$CFLAGS"
16352
16353 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16354 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16356 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16357 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16358 $as_echo_n "(cached) " >&6
16359 else
16360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16361 /* end confdefs.h. */
16362 int i;
16363 _ACEOF
16364 if ac_fn_c_try_compile "$LINENO"; then :
16365 xorg_cv_cc_flag_unknown_warning_option=yes
16366 else
16367 xorg_cv_cc_flag_unknown_warning_option=no
16368 fi
16369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16370 fi
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16372 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16373 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16374 CFLAGS="$xorg_testset_save_CFLAGS"
16375 fi
16376
16377 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16379 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16380 fi
16381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16383 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16384 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16385 $as_echo_n "(cached) " >&6
16386 else
16387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16388 /* end confdefs.h. */
16389 int i;
16390 _ACEOF
16391 if ac_fn_c_try_compile "$LINENO"; then :
16392 xorg_cv_cc_flag_unused_command_line_argument=yes
16393 else
16394 xorg_cv_cc_flag_unused_command_line_argument=no
16395 fi
16396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16397 fi
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16399 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16400 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16401 CFLAGS="$xorg_testset_save_CFLAGS"
16402 fi
16403
16404 found="no"
16405
16406 if test $found = "no" ; then
16407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16408 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16409 fi
16410
16411 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16413 fi
16414
16415 CFLAGS="$CFLAGS -Wsequence-point"
16416
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16418 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16419 cacheid=xorg_cv_cc_flag__Wsequence_point
16420 if eval \${$cacheid+:} false; then :
16421 $as_echo_n "(cached) " >&6
16422 else
16423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16424 /* end confdefs.h. */
16425 int i;
16426 int
16427 main ()
16428 {
16429
16430 ;
16431 return 0;
16432 }
16433 _ACEOF
16434 if ac_fn_c_try_link "$LINENO"; then :
16435 eval $cacheid=yes
16436 else
16437 eval $cacheid=no
16438 fi
16439 rm -f core conftest.err conftest.$ac_objext \
16440 conftest$ac_exeext conftest.$ac_ext
16441 fi
16442
16443
16444 CFLAGS="$xorg_testset_save_CFLAGS"
16445
16446 eval supported=\$$cacheid
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16448 $as_echo "$supported" >&6; }
16449 if test "$supported" = "yes" ; then
16450 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16451 found="yes"
16452 fi
16453 fi
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469 xorg_testset_save_CFLAGS="$CFLAGS"
16470
16471 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16472 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16474 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16475 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16476 $as_echo_n "(cached) " >&6
16477 else
16478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16479 /* end confdefs.h. */
16480 int i;
16481 _ACEOF
16482 if ac_fn_c_try_compile "$LINENO"; then :
16483 xorg_cv_cc_flag_unknown_warning_option=yes
16484 else
16485 xorg_cv_cc_flag_unknown_warning_option=no
16486 fi
16487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16488 fi
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16490 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16491 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16492 CFLAGS="$xorg_testset_save_CFLAGS"
16493 fi
16494
16495 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16498 fi
16499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16501 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16502 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16503 $as_echo_n "(cached) " >&6
16504 else
16505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16506 /* end confdefs.h. */
16507 int i;
16508 _ACEOF
16509 if ac_fn_c_try_compile "$LINENO"; then :
16510 xorg_cv_cc_flag_unused_command_line_argument=yes
16511 else
16512 xorg_cv_cc_flag_unused_command_line_argument=no
16513 fi
16514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16515 fi
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16517 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16518 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16519 CFLAGS="$xorg_testset_save_CFLAGS"
16520 fi
16521
16522 found="no"
16523
16524 if test $found = "no" ; then
16525 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16526 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16527 fi
16528
16529 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16531 fi
16532
16533 CFLAGS="$CFLAGS -Wreturn-type"
16534
16535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16536 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16537 cacheid=xorg_cv_cc_flag__Wreturn_type
16538 if eval \${$cacheid+:} false; then :
16539 $as_echo_n "(cached) " >&6
16540 else
16541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16542 /* end confdefs.h. */
16543 int i;
16544 int
16545 main ()
16546 {
16547
16548 ;
16549 return 0;
16550 }
16551 _ACEOF
16552 if ac_fn_c_try_link "$LINENO"; then :
16553 eval $cacheid=yes
16554 else
16555 eval $cacheid=no
16556 fi
16557 rm -f core conftest.err conftest.$ac_objext \
16558 conftest$ac_exeext conftest.$ac_ext
16559 fi
16560
16561
16562 CFLAGS="$xorg_testset_save_CFLAGS"
16563
16564 eval supported=\$$cacheid
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16566 $as_echo "$supported" >&6; }
16567 if test "$supported" = "yes" ; then
16568 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16569 found="yes"
16570 fi
16571 fi
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587 xorg_testset_save_CFLAGS="$CFLAGS"
16588
16589 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16590 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16592 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16593 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16594 $as_echo_n "(cached) " >&6
16595 else
16596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16597 /* end confdefs.h. */
16598 int i;
16599 _ACEOF
16600 if ac_fn_c_try_compile "$LINENO"; then :
16601 xorg_cv_cc_flag_unknown_warning_option=yes
16602 else
16603 xorg_cv_cc_flag_unknown_warning_option=no
16604 fi
16605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16606 fi
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16608 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16609 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16610 CFLAGS="$xorg_testset_save_CFLAGS"
16611 fi
16612
16613 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16614 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16615 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16616 fi
16617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16619 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16620 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16621 $as_echo_n "(cached) " >&6
16622 else
16623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16624 /* end confdefs.h. */
16625 int i;
16626 _ACEOF
16627 if ac_fn_c_try_compile "$LINENO"; then :
16628 xorg_cv_cc_flag_unused_command_line_argument=yes
16629 else
16630 xorg_cv_cc_flag_unused_command_line_argument=no
16631 fi
16632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16633 fi
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16635 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16636 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16637 CFLAGS="$xorg_testset_save_CFLAGS"
16638 fi
16639
16640 found="no"
16641
16642 if test $found = "no" ; then
16643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16644 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16645 fi
16646
16647 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16649 fi
16650
16651 CFLAGS="$CFLAGS -Wtrigraphs"
16652
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16654 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16655 cacheid=xorg_cv_cc_flag__Wtrigraphs
16656 if eval \${$cacheid+:} false; then :
16657 $as_echo_n "(cached) " >&6
16658 else
16659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16660 /* end confdefs.h. */
16661 int i;
16662 int
16663 main ()
16664 {
16665
16666 ;
16667 return 0;
16668 }
16669 _ACEOF
16670 if ac_fn_c_try_link "$LINENO"; then :
16671 eval $cacheid=yes
16672 else
16673 eval $cacheid=no
16674 fi
16675 rm -f core conftest.err conftest.$ac_objext \
16676 conftest$ac_exeext conftest.$ac_ext
16677 fi
16678
16679
16680 CFLAGS="$xorg_testset_save_CFLAGS"
16681
16682 eval supported=\$$cacheid
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16684 $as_echo "$supported" >&6; }
16685 if test "$supported" = "yes" ; then
16686 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16687 found="yes"
16688 fi
16689 fi
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705 xorg_testset_save_CFLAGS="$CFLAGS"
16706
16707 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16708 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16710 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16711 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16712 $as_echo_n "(cached) " >&6
16713 else
16714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16715 /* end confdefs.h. */
16716 int i;
16717 _ACEOF
16718 if ac_fn_c_try_compile "$LINENO"; then :
16719 xorg_cv_cc_flag_unknown_warning_option=yes
16720 else
16721 xorg_cv_cc_flag_unknown_warning_option=no
16722 fi
16723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16724 fi
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16726 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16727 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16728 CFLAGS="$xorg_testset_save_CFLAGS"
16729 fi
16730
16731 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16732 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16733 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16734 fi
16735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16737 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16738 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16739 $as_echo_n "(cached) " >&6
16740 else
16741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16742 /* end confdefs.h. */
16743 int i;
16744 _ACEOF
16745 if ac_fn_c_try_compile "$LINENO"; then :
16746 xorg_cv_cc_flag_unused_command_line_argument=yes
16747 else
16748 xorg_cv_cc_flag_unused_command_line_argument=no
16749 fi
16750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16751 fi
16752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16753 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16754 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16755 CFLAGS="$xorg_testset_save_CFLAGS"
16756 fi
16757
16758 found="no"
16759
16760 if test $found = "no" ; then
16761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16762 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16763 fi
16764
16765 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16767 fi
16768
16769 CFLAGS="$CFLAGS -Warray-bounds"
16770
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16772 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16773 cacheid=xorg_cv_cc_flag__Warray_bounds
16774 if eval \${$cacheid+:} false; then :
16775 $as_echo_n "(cached) " >&6
16776 else
16777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16778 /* end confdefs.h. */
16779 int i;
16780 int
16781 main ()
16782 {
16783
16784 ;
16785 return 0;
16786 }
16787 _ACEOF
16788 if ac_fn_c_try_link "$LINENO"; then :
16789 eval $cacheid=yes
16790 else
16791 eval $cacheid=no
16792 fi
16793 rm -f core conftest.err conftest.$ac_objext \
16794 conftest$ac_exeext conftest.$ac_ext
16795 fi
16796
16797
16798 CFLAGS="$xorg_testset_save_CFLAGS"
16799
16800 eval supported=\$$cacheid
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16802 $as_echo "$supported" >&6; }
16803 if test "$supported" = "yes" ; then
16804 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16805 found="yes"
16806 fi
16807 fi
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823 xorg_testset_save_CFLAGS="$CFLAGS"
16824
16825 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16826 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16828 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16829 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16830 $as_echo_n "(cached) " >&6
16831 else
16832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16833 /* end confdefs.h. */
16834 int i;
16835 _ACEOF
16836 if ac_fn_c_try_compile "$LINENO"; then :
16837 xorg_cv_cc_flag_unknown_warning_option=yes
16838 else
16839 xorg_cv_cc_flag_unknown_warning_option=no
16840 fi
16841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16842 fi
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16844 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16845 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16846 CFLAGS="$xorg_testset_save_CFLAGS"
16847 fi
16848
16849 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16851 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16852 fi
16853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16855 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16856 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16857 $as_echo_n "(cached) " >&6
16858 else
16859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16860 /* end confdefs.h. */
16861 int i;
16862 _ACEOF
16863 if ac_fn_c_try_compile "$LINENO"; then :
16864 xorg_cv_cc_flag_unused_command_line_argument=yes
16865 else
16866 xorg_cv_cc_flag_unused_command_line_argument=no
16867 fi
16868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16869 fi
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16871 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16872 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16873 CFLAGS="$xorg_testset_save_CFLAGS"
16874 fi
16875
16876 found="no"
16877
16878 if test $found = "no" ; then
16879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16880 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16881 fi
16882
16883 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16885 fi
16886
16887 CFLAGS="$CFLAGS -Wwrite-strings"
16888
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16890 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16891 cacheid=xorg_cv_cc_flag__Wwrite_strings
16892 if eval \${$cacheid+:} false; then :
16893 $as_echo_n "(cached) " >&6
16894 else
16895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16896 /* end confdefs.h. */
16897 int i;
16898 int
16899 main ()
16900 {
16901
16902 ;
16903 return 0;
16904 }
16905 _ACEOF
16906 if ac_fn_c_try_link "$LINENO"; then :
16907 eval $cacheid=yes
16908 else
16909 eval $cacheid=no
16910 fi
16911 rm -f core conftest.err conftest.$ac_objext \
16912 conftest$ac_exeext conftest.$ac_ext
16913 fi
16914
16915
16916 CFLAGS="$xorg_testset_save_CFLAGS"
16917
16918 eval supported=\$$cacheid
16919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16920 $as_echo "$supported" >&6; }
16921 if test "$supported" = "yes" ; then
16922 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16923 found="yes"
16924 fi
16925 fi
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941 xorg_testset_save_CFLAGS="$CFLAGS"
16942
16943 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16944 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16946 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16947 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16948 $as_echo_n "(cached) " >&6
16949 else
16950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16951 /* end confdefs.h. */
16952 int i;
16953 _ACEOF
16954 if ac_fn_c_try_compile "$LINENO"; then :
16955 xorg_cv_cc_flag_unknown_warning_option=yes
16956 else
16957 xorg_cv_cc_flag_unknown_warning_option=no
16958 fi
16959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16960 fi
16961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16962 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16963 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16964 CFLAGS="$xorg_testset_save_CFLAGS"
16965 fi
16966
16967 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16969 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16970 fi
16971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16973 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16974 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16975 $as_echo_n "(cached) " >&6
16976 else
16977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16978 /* end confdefs.h. */
16979 int i;
16980 _ACEOF
16981 if ac_fn_c_try_compile "$LINENO"; then :
16982 xorg_cv_cc_flag_unused_command_line_argument=yes
16983 else
16984 xorg_cv_cc_flag_unused_command_line_argument=no
16985 fi
16986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16987 fi
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16989 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16990 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16991 CFLAGS="$xorg_testset_save_CFLAGS"
16992 fi
16993
16994 found="no"
16995
16996 if test $found = "no" ; then
16997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16998 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16999 fi
17000
17001 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17003 fi
17004
17005 CFLAGS="$CFLAGS -Waddress"
17006
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17008 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
17009 cacheid=xorg_cv_cc_flag__Waddress
17010 if eval \${$cacheid+:} false; then :
17011 $as_echo_n "(cached) " >&6
17012 else
17013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17014 /* end confdefs.h. */
17015 int i;
17016 int
17017 main ()
17018 {
17019
17020 ;
17021 return 0;
17022 }
17023 _ACEOF
17024 if ac_fn_c_try_link "$LINENO"; then :
17025 eval $cacheid=yes
17026 else
17027 eval $cacheid=no
17028 fi
17029 rm -f core conftest.err conftest.$ac_objext \
17030 conftest$ac_exeext conftest.$ac_ext
17031 fi
17032
17033
17034 CFLAGS="$xorg_testset_save_CFLAGS"
17035
17036 eval supported=\$$cacheid
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17038 $as_echo "$supported" >&6; }
17039 if test "$supported" = "yes" ; then
17040 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17041 found="yes"
17042 fi
17043 fi
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059 xorg_testset_save_CFLAGS="$CFLAGS"
17060
17061 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17062 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17064 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17065 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17066 $as_echo_n "(cached) " >&6
17067 else
17068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17069 /* end confdefs.h. */
17070 int i;
17071 _ACEOF
17072 if ac_fn_c_try_compile "$LINENO"; then :
17073 xorg_cv_cc_flag_unknown_warning_option=yes
17074 else
17075 xorg_cv_cc_flag_unknown_warning_option=no
17076 fi
17077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17078 fi
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17080 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17081 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17082 CFLAGS="$xorg_testset_save_CFLAGS"
17083 fi
17084
17085 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17086 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17087 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17088 fi
17089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17091 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17092 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17093 $as_echo_n "(cached) " >&6
17094 else
17095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17096 /* end confdefs.h. */
17097 int i;
17098 _ACEOF
17099 if ac_fn_c_try_compile "$LINENO"; then :
17100 xorg_cv_cc_flag_unused_command_line_argument=yes
17101 else
17102 xorg_cv_cc_flag_unused_command_line_argument=no
17103 fi
17104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17105 fi
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17107 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17108 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17109 CFLAGS="$xorg_testset_save_CFLAGS"
17110 fi
17111
17112 found="no"
17113
17114 if test $found = "no" ; then
17115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17117 fi
17118
17119 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17121 fi
17122
17123 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17124
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17126 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17127 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17128 if eval \${$cacheid+:} false; then :
17129 $as_echo_n "(cached) " >&6
17130 else
17131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17132 /* end confdefs.h. */
17133 int i;
17134 int
17135 main ()
17136 {
17137
17138 ;
17139 return 0;
17140 }
17141 _ACEOF
17142 if ac_fn_c_try_link "$LINENO"; then :
17143 eval $cacheid=yes
17144 else
17145 eval $cacheid=no
17146 fi
17147 rm -f core conftest.err conftest.$ac_objext \
17148 conftest$ac_exeext conftest.$ac_ext
17149 fi
17150
17151
17152 CFLAGS="$xorg_testset_save_CFLAGS"
17153
17154 eval supported=\$$cacheid
17155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17156 $as_echo "$supported" >&6; }
17157 if test "$supported" = "yes" ; then
17158 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17159 found="yes"
17160 fi
17161 fi
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177 xorg_testset_save_CFLAGS="$CFLAGS"
17178
17179 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17180 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17182 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17183 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17184 $as_echo_n "(cached) " >&6
17185 else
17186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17187 /* end confdefs.h. */
17188 int i;
17189 _ACEOF
17190 if ac_fn_c_try_compile "$LINENO"; then :
17191 xorg_cv_cc_flag_unknown_warning_option=yes
17192 else
17193 xorg_cv_cc_flag_unknown_warning_option=no
17194 fi
17195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17196 fi
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17198 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17199 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17200 CFLAGS="$xorg_testset_save_CFLAGS"
17201 fi
17202
17203 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17206 fi
17207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17209 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17210 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17211 $as_echo_n "(cached) " >&6
17212 else
17213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17214 /* end confdefs.h. */
17215 int i;
17216 _ACEOF
17217 if ac_fn_c_try_compile "$LINENO"; then :
17218 xorg_cv_cc_flag_unused_command_line_argument=yes
17219 else
17220 xorg_cv_cc_flag_unused_command_line_argument=no
17221 fi
17222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17223 fi
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17225 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17226 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17227 CFLAGS="$xorg_testset_save_CFLAGS"
17228 fi
17229
17230 found="no"
17231
17232 if test $found = "no" ; then
17233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17234 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17235 fi
17236
17237 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17239 fi
17240
17241 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17242
17243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17244 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17245 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17246 if eval \${$cacheid+:} false; then :
17247 $as_echo_n "(cached) " >&6
17248 else
17249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17250 /* end confdefs.h. */
17251 int i;
17252 int
17253 main ()
17254 {
17255
17256 ;
17257 return 0;
17258 }
17259 _ACEOF
17260 if ac_fn_c_try_link "$LINENO"; then :
17261 eval $cacheid=yes
17262 else
17263 eval $cacheid=no
17264 fi
17265 rm -f core conftest.err conftest.$ac_objext \
17266 conftest$ac_exeext conftest.$ac_ext
17267 fi
17268
17269
17270 CFLAGS="$xorg_testset_save_CFLAGS"
17271
17272 eval supported=\$$cacheid
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17274 $as_echo "$supported" >&6; }
17275 if test "$supported" = "yes" ; then
17276 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17277 found="yes"
17278 fi
17279 fi
17280
17281
17282 fi
17283
17284
17285
17286
17287
17288
17289
17290 CWARNFLAGS="$BASE_CFLAGS"
17291 if test "x$GCC" = xyes ; then
17292 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17293 fi
17294
17295
17296
17297
17298
17299
17300
17301
17302 # Check whether --enable-strict-compilation was given.
17303 if test "${enable_strict_compilation+set}" = set; then :
17304 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17305 else
17306 STRICT_COMPILE=no
17307 fi
17308
17309
17310
17311
17312
17313
17314 STRICT_CFLAGS=""
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328 xorg_testset_save_CFLAGS="$CFLAGS"
17329
17330 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17331 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17333 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17334 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17335 $as_echo_n "(cached) " >&6
17336 else
17337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17338 /* end confdefs.h. */
17339 int i;
17340 _ACEOF
17341 if ac_fn_c_try_compile "$LINENO"; then :
17342 xorg_cv_cc_flag_unknown_warning_option=yes
17343 else
17344 xorg_cv_cc_flag_unknown_warning_option=no
17345 fi
17346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17347 fi
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17349 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17350 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17351 CFLAGS="$xorg_testset_save_CFLAGS"
17352 fi
17353
17354 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17356 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17357 fi
17358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17360 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17361 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17362 $as_echo_n "(cached) " >&6
17363 else
17364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17365 /* end confdefs.h. */
17366 int i;
17367 _ACEOF
17368 if ac_fn_c_try_compile "$LINENO"; then :
17369 xorg_cv_cc_flag_unused_command_line_argument=yes
17370 else
17371 xorg_cv_cc_flag_unused_command_line_argument=no
17372 fi
17373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17374 fi
17375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17376 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17377 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17378 CFLAGS="$xorg_testset_save_CFLAGS"
17379 fi
17380
17381 found="no"
17382
17383 if test $found = "no" ; then
17384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17386 fi
17387
17388 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17390 fi
17391
17392 CFLAGS="$CFLAGS -pedantic"
17393
17394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17395 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17396 cacheid=xorg_cv_cc_flag__pedantic
17397 if eval \${$cacheid+:} false; then :
17398 $as_echo_n "(cached) " >&6
17399 else
17400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17401 /* end confdefs.h. */
17402 int i;
17403 int
17404 main ()
17405 {
17406
17407 ;
17408 return 0;
17409 }
17410 _ACEOF
17411 if ac_fn_c_try_link "$LINENO"; then :
17412 eval $cacheid=yes
17413 else
17414 eval $cacheid=no
17415 fi
17416 rm -f core conftest.err conftest.$ac_objext \
17417 conftest$ac_exeext conftest.$ac_ext
17418 fi
17419
17420
17421 CFLAGS="$xorg_testset_save_CFLAGS"
17422
17423 eval supported=\$$cacheid
17424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17425 $as_echo "$supported" >&6; }
17426 if test "$supported" = "yes" ; then
17427 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17428 found="yes"
17429 fi
17430 fi
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446 xorg_testset_save_CFLAGS="$CFLAGS"
17447
17448 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17449 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17451 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17452 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17453 $as_echo_n "(cached) " >&6
17454 else
17455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17456 /* end confdefs.h. */
17457 int i;
17458 _ACEOF
17459 if ac_fn_c_try_compile "$LINENO"; then :
17460 xorg_cv_cc_flag_unknown_warning_option=yes
17461 else
17462 xorg_cv_cc_flag_unknown_warning_option=no
17463 fi
17464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17465 fi
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17467 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17468 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17469 CFLAGS="$xorg_testset_save_CFLAGS"
17470 fi
17471
17472 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17474 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17475 fi
17476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17478 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17479 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17480 $as_echo_n "(cached) " >&6
17481 else
17482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17483 /* end confdefs.h. */
17484 int i;
17485 _ACEOF
17486 if ac_fn_c_try_compile "$LINENO"; then :
17487 xorg_cv_cc_flag_unused_command_line_argument=yes
17488 else
17489 xorg_cv_cc_flag_unused_command_line_argument=no
17490 fi
17491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17492 fi
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17494 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17495 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17496 CFLAGS="$xorg_testset_save_CFLAGS"
17497 fi
17498
17499 found="no"
17500
17501 if test $found = "no" ; then
17502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17503 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17504 fi
17505
17506 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17508 fi
17509
17510 CFLAGS="$CFLAGS -Werror"
17511
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17513 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17514 cacheid=xorg_cv_cc_flag__Werror
17515 if eval \${$cacheid+:} false; then :
17516 $as_echo_n "(cached) " >&6
17517 else
17518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17519 /* end confdefs.h. */
17520 int i;
17521 int
17522 main ()
17523 {
17524
17525 ;
17526 return 0;
17527 }
17528 _ACEOF
17529 if ac_fn_c_try_link "$LINENO"; then :
17530 eval $cacheid=yes
17531 else
17532 eval $cacheid=no
17533 fi
17534 rm -f core conftest.err conftest.$ac_objext \
17535 conftest$ac_exeext conftest.$ac_ext
17536 fi
17537
17538
17539 CFLAGS="$xorg_testset_save_CFLAGS"
17540
17541 eval supported=\$$cacheid
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17543 $as_echo "$supported" >&6; }
17544 if test "$supported" = "yes" ; then
17545 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17546 found="yes"
17547 fi
17548 fi
17549
17550 if test $found = "no" ; then
17551 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17552 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17553 fi
17554
17555 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17557 fi
17558
17559 CFLAGS="$CFLAGS -errwarn"
17560
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17562 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17563 cacheid=xorg_cv_cc_flag__errwarn
17564 if eval \${$cacheid+:} false; then :
17565 $as_echo_n "(cached) " >&6
17566 else
17567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17568 /* end confdefs.h. */
17569 int i;
17570 int
17571 main ()
17572 {
17573
17574 ;
17575 return 0;
17576 }
17577 _ACEOF
17578 if ac_fn_c_try_link "$LINENO"; then :
17579 eval $cacheid=yes
17580 else
17581 eval $cacheid=no
17582 fi
17583 rm -f core conftest.err conftest.$ac_objext \
17584 conftest$ac_exeext conftest.$ac_ext
17585 fi
17586
17587
17588 CFLAGS="$xorg_testset_save_CFLAGS"
17589
17590 eval supported=\$$cacheid
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17592 $as_echo "$supported" >&6; }
17593 if test "$supported" = "yes" ; then
17594 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17595 found="yes"
17596 fi
17597 fi
17598
17599
17600
17601 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17602 # activate it with -Werror, so we add it here explicitly.
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616 xorg_testset_save_CFLAGS="$CFLAGS"
17617
17618 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17619 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17621 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17622 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17623 $as_echo_n "(cached) " >&6
17624 else
17625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17626 /* end confdefs.h. */
17627 int i;
17628 _ACEOF
17629 if ac_fn_c_try_compile "$LINENO"; then :
17630 xorg_cv_cc_flag_unknown_warning_option=yes
17631 else
17632 xorg_cv_cc_flag_unknown_warning_option=no
17633 fi
17634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17635 fi
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17637 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17638 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17639 CFLAGS="$xorg_testset_save_CFLAGS"
17640 fi
17641
17642 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17644 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17645 fi
17646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17648 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17649 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17650 $as_echo_n "(cached) " >&6
17651 else
17652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17653 /* end confdefs.h. */
17654 int i;
17655 _ACEOF
17656 if ac_fn_c_try_compile "$LINENO"; then :
17657 xorg_cv_cc_flag_unused_command_line_argument=yes
17658 else
17659 xorg_cv_cc_flag_unused_command_line_argument=no
17660 fi
17661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17662 fi
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17664 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17665 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17666 CFLAGS="$xorg_testset_save_CFLAGS"
17667 fi
17668
17669 found="no"
17670
17671 if test $found = "no" ; then
17672 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17673 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17674 fi
17675
17676 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17678 fi
17679
17680 CFLAGS="$CFLAGS -Werror=attributes"
17681
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17683 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17684 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
17685 if eval \${$cacheid+:} false; then :
17686 $as_echo_n "(cached) " >&6
17687 else
17688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17689 /* end confdefs.h. */
17690 int i;
17691 int
17692 main ()
17693 {
17694
17695 ;
17696 return 0;
17697 }
17698 _ACEOF
17699 if ac_fn_c_try_link "$LINENO"; then :
17700 eval $cacheid=yes
17701 else
17702 eval $cacheid=no
17703 fi
17704 rm -f core conftest.err conftest.$ac_objext \
17705 conftest$ac_exeext conftest.$ac_ext
17706 fi
17707
17708
17709 CFLAGS="$xorg_testset_save_CFLAGS"
17710
17711 eval supported=\$$cacheid
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17713 $as_echo "$supported" >&6; }
17714 if test "$supported" = "yes" ; then
17715 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17716 found="yes"
17717 fi
17718 fi
17719
17720
17721
17722 if test "x$STRICT_COMPILE" = "xyes"; then
17723 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17724 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17725 fi
17726
17727
17728
17729
17730
17731
17732 cat >>confdefs.h <<_ACEOF
17733 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17734 _ACEOF
17735
17736 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17737 if test "x$PVM" = "x"; then
17738 PVM="0"
17739 fi
17740
17741 cat >>confdefs.h <<_ACEOF
17742 #define PACKAGE_VERSION_MINOR $PVM
17743 _ACEOF
17744
17745 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17746 if test "x$PVP" = "x"; then
17747 PVP="0"
17748 fi
17749
17750 cat >>confdefs.h <<_ACEOF
17751 #define PACKAGE_VERSION_PATCHLEVEL $PVP
17752 _ACEOF
17753
17754
17755
17756 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17757 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17758 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17759 echo 'git directory not found: installing possibly empty changelog.' >&2)"
17760
17761
17762
17763
17764 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17765 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17766 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17767 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17768 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17769
17770
17771
17772
17773
17774
17775 if test x$APP_MAN_SUFFIX = x ; then
17776 APP_MAN_SUFFIX=1
17777 fi
17778 if test x$APP_MAN_DIR = x ; then
17779 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17780 fi
17781
17782 if test x$LIB_MAN_SUFFIX = x ; then
17783 LIB_MAN_SUFFIX=3
17784 fi
17785 if test x$LIB_MAN_DIR = x ; then
17786 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17787 fi
17788
17789 if test x$FILE_MAN_SUFFIX = x ; then
17790 case $host_os in
17791 solaris*) FILE_MAN_SUFFIX=4 ;;
17792 *) FILE_MAN_SUFFIX=5 ;;
17793 esac
17794 fi
17795 if test x$FILE_MAN_DIR = x ; then
17796 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17797 fi
17798
17799 if test x$MISC_MAN_SUFFIX = x ; then
17800 case $host_os in
17801 solaris*) MISC_MAN_SUFFIX=5 ;;
17802 *) MISC_MAN_SUFFIX=7 ;;
17803 esac
17804 fi
17805 if test x$MISC_MAN_DIR = x ; then
17806 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17807 fi
17808
17809 if test x$DRIVER_MAN_SUFFIX = x ; then
17810 case $host_os in
17811 solaris*) DRIVER_MAN_SUFFIX=7 ;;
17812 *) DRIVER_MAN_SUFFIX=4 ;;
17813 esac
17814 fi
17815 if test x$DRIVER_MAN_DIR = x ; then
17816 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17817 fi
17818
17819 if test x$ADMIN_MAN_SUFFIX = x ; then
17820 case $host_os in
17821 solaris*) ADMIN_MAN_SUFFIX=1m ;;
17822 *) ADMIN_MAN_SUFFIX=8 ;;
17823 esac
17824 fi
17825 if test x$ADMIN_MAN_DIR = x ; then
17826 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17827 fi
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843 XORG_MAN_PAGE="X Version 11"
17844
17845 MAN_SUBSTS="\
17846 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17847 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17848 -e 's|__xservername__|Xorg|g' \
17849 -e 's|__xconfigfile__|xorg.conf|g' \
17850 -e 's|__projectroot__|\$(prefix)|g' \
17851 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
17852 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17853 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17854 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17855 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17856 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17857 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17858
17859
17860
17861 # Check whether --enable-silent-rules was given.
17862 if test "${enable_silent_rules+set}" = set; then :
17863 enableval=$enable_silent_rules;
17864 fi
17865
17866 case $enable_silent_rules in # (((
17867 yes) AM_DEFAULT_VERBOSITY=0;;
17868 no) AM_DEFAULT_VERBOSITY=1;;
17869 *) AM_DEFAULT_VERBOSITY=0;;
17870 esac
17871 am_make=${MAKE-make}
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
17873 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
17874 if ${am_cv_make_support_nested_variables+:} false; then :
17875 $as_echo_n "(cached) " >&6
17876 else
17877 if $as_echo 'TRUE=$(BAR$(V))
17878 BAR0=false
17879 BAR1=true
17880 V=1
17881 am__doit:
17882 @$(TRUE)
17883 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
17884 am_cv_make_support_nested_variables=yes
17885 else
17886 am_cv_make_support_nested_variables=no
17887 fi
17888 fi
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
17890 $as_echo "$am_cv_make_support_nested_variables" >&6; }
17891 if test $am_cv_make_support_nested_variables = yes; then
17892 AM_V='$(V)'
17893 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17894 else
17895 AM_V=$AM_DEFAULT_VERBOSITY
17896 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17897 fi
17898 AM_BACKSLASH='\'
17899
17900
17901
17902
17903
17904
17905
17906 # Check whether --with-lint was given.
17907 if test "${with_lint+set}" = set; then :
17908 withval=$with_lint; use_lint=$withval
17909 else
17910 use_lint=no
17911 fi
17912
17913
17914 # Obtain platform specific info like program name and options
17915 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
17916 case $host_os in
17917 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
17918 lint_name=splint
17919 lint_options="-badflag"
17920 ;;
17921 *freebsd* | *netbsd*)
17922 lint_name=lint
17923 lint_options="-u -b"
17924 ;;
17925 *solaris*)
17926 lint_name=lint
17927 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
17928 ;;
17929 esac
17930
17931 # Test for the presence of the program (either guessed by the code or spelled out by the user)
17932 if test "x$use_lint" = x"yes" ; then
17933 # Extract the first word of "$lint_name", so it can be a program name with args.
17934 set dummy $lint_name; ac_word=$2
17935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17936 $as_echo_n "checking for $ac_word... " >&6; }
17937 if ${ac_cv_path_LINT+:} false; then :
17938 $as_echo_n "(cached) " >&6
17939 else
17940 case $LINT in
17941 [\\/]* | ?:[\\/]*)
17942 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
17943 ;;
17944 *)
17945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17946 for as_dir in $PATH
17947 do
17948 IFS=$as_save_IFS
17949 test -z "$as_dir" && as_dir=.
17950 for ac_exec_ext in '' $ac_executable_extensions; do
17951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17952 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
17953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17954 break 2
17955 fi
17956 done
17957 done
17958 IFS=$as_save_IFS
17959
17960 ;;
17961 esac
17962 fi
17963 LINT=$ac_cv_path_LINT
17964 if test -n "$LINT"; then
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
17966 $as_echo "$LINT" >&6; }
17967 else
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17969 $as_echo "no" >&6; }
17970 fi
17971
17972
17973 if test "x$LINT" = "x"; then
17974 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
17975 fi
17976 elif test "x$use_lint" = x"no" ; then
17977 if test "x$LINT" != "x"; then
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
17979 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
17980 fi
17981 else
17982 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
17983 fi
17984
17985 # User supplied flags override default flags
17986 if test "x$LINT_FLAGS" != "x"; then
17987 lint_options=$LINT_FLAGS
17988 fi
17989
17990 LINT_FLAGS=$lint_options
17991
17992 if test "x$LINT" != x; then
17993 LINT_TRUE=
17994 LINT_FALSE='#'
17995 else
17996 LINT_TRUE='#'
17997 LINT_FALSE=
17998 fi
17999
18000
18001
18002
18003 # Checks for library functions
18004 for ac_func in asprintf
18005 do :
18006 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
18007 if test "x$ac_cv_func_asprintf" = xyes; then :
18008 cat >>confdefs.h <<_ACEOF
18009 #define HAVE_ASPRINTF 1
18010 _ACEOF
18011
18012 fi
18013 done
18014
18015
18016 # Obtain compiler/linker options from server and required extensions
18017
18018 pkg_failed=no
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18020 $as_echo_n "checking for XORG... " >&6; }
18021
18022 if test -n "$XORG_CFLAGS"; then
18023 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18024 elif test -n "$PKG_CONFIG"; then
18025 if test -n "$PKG_CONFIG" && \
18026 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.7 xproto inputproto\""; } >&5
18027 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.7 xproto inputproto") 2>&5
18028 ac_status=$?
18029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18030 test $ac_status = 0; }; then
18031 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.7 xproto inputproto" 2>/dev/null`
18032 else
18033 pkg_failed=yes
18034 fi
18035 else
18036 pkg_failed=untried
18037 fi
18038 if test -n "$XORG_LIBS"; then
18039 pkg_cv_XORG_LIBS="$XORG_LIBS"
18040 elif test -n "$PKG_CONFIG"; then
18041 if test -n "$PKG_CONFIG" && \
18042 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.7 xproto inputproto\""; } >&5
18043 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.7 xproto inputproto") 2>&5
18044 ac_status=$?
18045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18046 test $ac_status = 0; }; then
18047 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.7 xproto inputproto" 2>/dev/null`
18048 else
18049 pkg_failed=yes
18050 fi
18051 else
18052 pkg_failed=untried
18053 fi
18054
18055
18056
18057 if test $pkg_failed = yes; then
18058
18059 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18060 _pkg_short_errors_supported=yes
18061 else
18062 _pkg_short_errors_supported=no
18063 fi
18064 if test $_pkg_short_errors_supported = yes; then
18065 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.7 xproto inputproto" 2>&1`
18066 else
18067 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.7 xproto inputproto" 2>&1`
18068 fi
18069 # Put the nasty error message in config.log where it belongs
18070 echo "$XORG_PKG_ERRORS" >&5
18071
18072 as_fn_error $? "Package requirements (xorg-server >= 1.7 xproto inputproto) were not met:
18073
18074 $XORG_PKG_ERRORS
18075
18076 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18077 installed software in a non-standard prefix.
18078
18079 Alternatively, you may set the environment variables XORG_CFLAGS
18080 and XORG_LIBS to avoid the need to call pkg-config.
18081 See the pkg-config man page for more details.
18082 " "$LINENO" 5
18083 elif test $pkg_failed = untried; then
18084 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18086 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18087 is in your PATH or set the PKG_CONFIG environment variable to the full
18088 path to pkg-config.
18089
18090 Alternatively, you may set the environment variables XORG_CFLAGS
18091 and XORG_LIBS to avoid the need to call pkg-config.
18092 See the pkg-config man page for more details.
18093
18094 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18095 See \`config.log' for more details" "$LINENO" 5; }
18096 else
18097 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18098 XORG_LIBS=$pkg_cv_XORG_LIBS
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18100 $as_echo "yes" >&6; }
18101 :
18102 fi
18103
18104 # Define a configure option for an alternate input module directory
18105
18106 # Check whether --with-xorg-module-dir was given.
18107 if test "${with_xorg_module_dir+set}" = set; then :
18108 withval=$with_xorg_module_dir; moduledir="$withval"
18109 else
18110 moduledir="$libdir/xorg/modules"
18111 fi
18112
18113 inputdir=${moduledir}/input
18114
18115
18116 # X Server SDK location is required to install xf86-mouse-properties.h
18117 # This location is also relayed in the xorg-mouse.pc file
18118 sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
18119
18120 # Workaround overriding sdkdir to be able to create a tarball when user has no
18121 # write permission in sdkdir. See DISTCHECK_CONFIGURE_FLAGS in Makefile.am
18122
18123 # Check whether --with-sdkdir was given.
18124 if test "${with_sdkdir+set}" = set; then :
18125 withval=$with_sdkdir; sdkdir="$withval"
18126 fi
18127
18128
18129
18130
18131 # Work out which OS mouse driver we need to build
18132 case $host_os in
18133 linux*)
18134 OS_MOUSE_NAME=lnx
18135 ;;
18136 freebsd*|kfreebsd*-gnu|dragonfly*|netbsd*|openbsd*)
18137 OS_MOUSE_NAME=bsd
18138 ;;
18139 solaris*)
18140 OS_MOUSE_NAME=sun
18141 ;;
18142 gnu*)
18143 OS_MOUSE_NAME=hurd
18144 ;;
18145 esac
18146
18147
18148 DRIVER_NAME=mouse
18149
18150
18151 ac_config_files="$ac_config_files Makefile xorg-mouse.pc include/Makefile src/Makefile man/Makefile"
18152
18153 cat >confcache <<\_ACEOF
18154 # This file is a shell script that caches the results of configure
18155 # tests run on this system so they can be shared between configure
18156 # scripts and configure runs, see configure's option --config-cache.
18157 # It is not useful on other systems. If it contains results you don't
18158 # want to keep, you may remove or edit it.
18159 #
18160 # config.status only pays attention to the cache file if you give it
18161 # the --recheck option to rerun configure.
18162 #
18163 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18164 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18165 # following values.
18166
18167 _ACEOF
18168
18169 # The following way of writing the cache mishandles newlines in values,
18170 # but we know of no workaround that is simple, portable, and efficient.
18171 # So, we kill variables containing newlines.
18172 # Ultrix sh set writes to stderr and can't be redirected directly,
18173 # and sets the high bit in the cache file unless we assign to the vars.
18174 (
18175 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18176 eval ac_val=\$$ac_var
18177 case $ac_val in #(
18178 *${as_nl}*)
18179 case $ac_var in #(
18180 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18181 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18182 esac
18183 case $ac_var in #(
18184 _ | IFS | as_nl) ;; #(
18185 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18186 *) { eval $ac_var=; unset $ac_var;} ;;
18187 esac ;;
18188 esac
18189 done
18190
18191 (set) 2>&1 |
18192 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18193 *${as_nl}ac_space=\ *)
18194 # `set' does not quote correctly, so add quotes: double-quote
18195 # substitution turns \\\\ into \\, and sed turns \\ into \.
18196 sed -n \
18197 "s/'/'\\\\''/g;
18198 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18199 ;; #(
18200 *)
18201 # `set' quotes correctly as required by POSIX, so do not add quotes.
18202 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18203 ;;
18204 esac |
18205 sort
18206 ) |
18207 sed '
18208 /^ac_cv_env_/b end
18209 t clear
18210 :clear
18211 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18212 t end
18213 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18214 :end' >>confcache
18215 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18216 if test -w "$cache_file"; then
18217 if test "x$cache_file" != "x/dev/null"; then
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18219 $as_echo "$as_me: updating cache $cache_file" >&6;}
18220 if test ! -f "$cache_file" || test -h "$cache_file"; then
18221 cat confcache >"$cache_file"
18222 else
18223 case $cache_file in #(
18224 */* | ?:*)
18225 mv -f confcache "$cache_file"$$ &&
18226 mv -f "$cache_file"$$ "$cache_file" ;; #(
18227 *)
18228 mv -f confcache "$cache_file" ;;
18229 esac
18230 fi
18231 fi
18232 else
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18234 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18235 fi
18236 fi
18237 rm -f confcache
18238
18239 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18240 # Let make expand exec_prefix.
18241 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18242
18243 DEFS=-DHAVE_CONFIG_H
18244
18245 ac_libobjs=
18246 ac_ltlibobjs=
18247 U=
18248 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18249 # 1. Remove the extension, and $U if already installed.
18250 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18251 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18252 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18253 # will be set to the directory where LIBOBJS objects are built.
18254 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18255 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18256 done
18257 LIBOBJS=$ac_libobjs
18258
18259 LTLIBOBJS=$ac_ltlibobjs
18260
18261
18262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18263 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18264 if test -n "$am_sleep_pid"; then
18265 # Hide warnings about reused PIDs.
18266 wait $am_sleep_pid 2>/dev/null
18267 fi
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18269 $as_echo "done" >&6; }
18270 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18271 as_fn_error $? "conditional \"AMDEP\" was never defined.
18272 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18273 fi
18274 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18275 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18276 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18277 fi
18278 if test -n "$EXEEXT"; then
18279 am__EXEEXT_TRUE=
18280 am__EXEEXT_FALSE='#'
18281 else
18282 am__EXEEXT_TRUE='#'
18283 am__EXEEXT_FALSE=
18284 fi
18285
18286 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
18287 as_fn_error $? "conditional \"LINT\" was never defined.
18288 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18289 fi
18290
18291 : "${CONFIG_STATUS=./config.status}"
18292 ac_write_fail=0
18293 ac_clean_files_save=$ac_clean_files
18294 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18296 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18297 as_write_fail=0
18298 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18299 #! $SHELL
18300 # Generated by $as_me.
18301 # Run this file to recreate the current configuration.
18302 # Compiler output produced by configure, useful for debugging
18303 # configure, is in config.log if it exists.
18304
18305 debug=false
18306 ac_cs_recheck=false
18307 ac_cs_silent=false
18308
18309 SHELL=\${CONFIG_SHELL-$SHELL}
18310 export SHELL
18311 _ASEOF
18312 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18313 ## -------------------- ##
18314 ## M4sh Initialization. ##
18315 ## -------------------- ##
18316
18317 # Be more Bourne compatible
18318 DUALCASE=1; export DUALCASE # for MKS sh
18319 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18320 emulate sh
18321 NULLCMD=:
18322 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18323 # is contrary to our usage. Disable this feature.
18324 alias -g '${1+"$@"}'='"$@"'
18325 setopt NO_GLOB_SUBST
18326 else
18327 case `(set -o) 2>/dev/null` in #(
18328 *posix*) :
18329 set -o posix ;; #(
18330 *) :
18331 ;;
18332 esac
18333 fi
18334
18335
18336 as_nl='
18337 '
18338 export as_nl
18339 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18340 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18341 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18342 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18343 # Prefer a ksh shell builtin over an external printf program on Solaris,
18344 # but without wasting forks for bash or zsh.
18345 if test -z "$BASH_VERSION$ZSH_VERSION" \
18346 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18347 as_echo='print -r --'
18348 as_echo_n='print -rn --'
18349 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18350 as_echo='printf %s\n'
18351 as_echo_n='printf %s'
18352 else
18353 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18354 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18355 as_echo_n='/usr/ucb/echo -n'
18356 else
18357 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18358 as_echo_n_body='eval
18359 arg=$1;
18360 case $arg in #(
18361 *"$as_nl"*)
18362 expr "X$arg" : "X\\(.*\\)$as_nl";
18363 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18364 esac;
18365 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18366 '
18367 export as_echo_n_body
18368 as_echo_n='sh -c $as_echo_n_body as_echo'
18369 fi
18370 export as_echo_body
18371 as_echo='sh -c $as_echo_body as_echo'
18372 fi
18373
18374 # The user is always right.
18375 if test "${PATH_SEPARATOR+set}" != set; then
18376 PATH_SEPARATOR=:
18377 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18378 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18379 PATH_SEPARATOR=';'
18380 }
18381 fi
18382
18383
18384 # IFS
18385 # We need space, tab and new line, in precisely that order. Quoting is
18386 # there to prevent editors from complaining about space-tab.
18387 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18388 # splitting by setting IFS to empty value.)
18389 IFS=" "" $as_nl"
18390
18391 # Find who we are. Look in the path if we contain no directory separator.
18392 as_myself=
18393 case $0 in #((
18394 *[\\/]* ) as_myself=$0 ;;
18395 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18396 for as_dir in $PATH
18397 do
18398 IFS=$as_save_IFS
18399 test -z "$as_dir" && as_dir=.
18400 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18401 done
18402 IFS=$as_save_IFS
18403
18404 ;;
18405 esac
18406 # We did not find ourselves, most probably we were run as `sh COMMAND'
18407 # in which case we are not to be found in the path.
18408 if test "x$as_myself" = x; then
18409 as_myself=$0
18410 fi
18411 if test ! -f "$as_myself"; then
18412 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18413 exit 1
18414 fi
18415
18416 # Unset variables that we do not need and which cause bugs (e.g. in
18417 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18418 # suppresses any "Segmentation fault" message there. '((' could
18419 # trigger a bug in pdksh 5.2.14.
18420 for as_var in BASH_ENV ENV MAIL MAILPATH
18421 do eval test x\${$as_var+set} = xset \
18422 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18423 done
18424 PS1='$ '
18425 PS2='> '
18426 PS4='+ '
18427
18428 # NLS nuisances.
18429 LC_ALL=C
18430 export LC_ALL
18431 LANGUAGE=C
18432 export LANGUAGE
18433
18434 # CDPATH.
18435 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18436
18437
18438 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18439 # ----------------------------------------
18440 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18441 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18442 # script with STATUS, using 1 if that was 0.
18443 as_fn_error ()
18444 {
18445 as_status=$1; test $as_status -eq 0 && as_status=1
18446 if test "$4"; then
18447 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18448 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18449 fi
18450 $as_echo "$as_me: error: $2" >&2
18451 as_fn_exit $as_status
18452 } # as_fn_error
18453
18454
18455 # as_fn_set_status STATUS
18456 # -----------------------
18457 # Set $? to STATUS, without forking.
18458 as_fn_set_status ()
18459 {
18460 return $1
18461 } # as_fn_set_status
18462
18463 # as_fn_exit STATUS
18464 # -----------------
18465 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18466 as_fn_exit ()
18467 {
18468 set +e
18469 as_fn_set_status $1
18470 exit $1
18471 } # as_fn_exit
18472
18473 # as_fn_unset VAR
18474 # ---------------
18475 # Portably unset VAR.
18476 as_fn_unset ()
18477 {
18478 { eval $1=; unset $1;}
18479 }
18480 as_unset=as_fn_unset
18481 # as_fn_append VAR VALUE
18482 # ----------------------
18483 # Append the text in VALUE to the end of the definition contained in VAR. Take
18484 # advantage of any shell optimizations that allow amortized linear growth over
18485 # repeated appends, instead of the typical quadratic growth present in naive
18486 # implementations.
18487 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18488 eval 'as_fn_append ()
18489 {
18490 eval $1+=\$2
18491 }'
18492 else
18493 as_fn_append ()
18494 {
18495 eval $1=\$$1\$2
18496 }
18497 fi # as_fn_append
18498
18499 # as_fn_arith ARG...
18500 # ------------------
18501 # Perform arithmetic evaluation on the ARGs, and store the result in the
18502 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18503 # must be portable across $(()) and expr.
18504 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18505 eval 'as_fn_arith ()
18506 {
18507 as_val=$(( $* ))
18508 }'
18509 else
18510 as_fn_arith ()
18511 {
18512 as_val=`expr "$@" || test $? -eq 1`
18513 }
18514 fi # as_fn_arith
18515
18516
18517 if expr a : '\(a\)' >/dev/null 2>&1 &&
18518 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18519 as_expr=expr
18520 else
18521 as_expr=false
18522 fi
18523
18524 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18525 as_basename=basename
18526 else
18527 as_basename=false
18528 fi
18529
18530 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18531 as_dirname=dirname
18532 else
18533 as_dirname=false
18534 fi
18535
18536 as_me=`$as_basename -- "$0" ||
18537 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18538 X"$0" : 'X\(//\)$' \| \
18539 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18540 $as_echo X/"$0" |
18541 sed '/^.*\/\([^/][^/]*\)\/*$/{
18542 s//\1/
18543 q
18544 }
18545 /^X\/\(\/\/\)$/{
18546 s//\1/
18547 q
18548 }
18549 /^X\/\(\/\).*/{
18550 s//\1/
18551 q
18552 }
18553 s/.*/./; q'`
18554
18555 # Avoid depending upon Character Ranges.
18556 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18557 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18558 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18559 as_cr_digits='0123456789'
18560 as_cr_alnum=$as_cr_Letters$as_cr_digits
18561
18562 ECHO_C= ECHO_N= ECHO_T=
18563 case `echo -n x` in #(((((
18564 -n*)
18565 case `echo 'xy\c'` in
18566 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18567 xy) ECHO_C='\c';;
18568 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18569 ECHO_T=' ';;
18570 esac;;
18571 *)
18572 ECHO_N='-n';;
18573 esac
18574
18575 rm -f conf$$ conf$$.exe conf$$.file
18576 if test -d conf$$.dir; then
18577 rm -f conf$$.dir/conf$$.file
18578 else
18579 rm -f conf$$.dir
18580 mkdir conf$$.dir 2>/dev/null
18581 fi
18582 if (echo >conf$$.file) 2>/dev/null; then
18583 if ln -s conf$$.file conf$$ 2>/dev/null; then
18584 as_ln_s='ln -s'
18585 # ... but there are two gotchas:
18586 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18587 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18588 # In both cases, we have to default to `cp -p'.
18589 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18590 as_ln_s='cp -p'
18591 elif ln conf$$.file conf$$ 2>/dev/null; then
18592 as_ln_s=ln
18593 else
18594 as_ln_s='cp -p'
18595 fi
18596 else
18597 as_ln_s='cp -p'
18598 fi
18599 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18600 rmdir conf$$.dir 2>/dev/null
18601
18602
18603 # as_fn_mkdir_p
18604 # -------------
18605 # Create "$as_dir" as a directory, including parents if necessary.
18606 as_fn_mkdir_p ()
18607 {
18608
18609 case $as_dir in #(
18610 -*) as_dir=./$as_dir;;
18611 esac
18612 test -d "$as_dir" || eval $as_mkdir_p || {
18613 as_dirs=
18614 while :; do
18615 case $as_dir in #(
18616 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18617 *) as_qdir=$as_dir;;
18618 esac
18619 as_dirs="'$as_qdir' $as_dirs"
18620 as_dir=`$as_dirname -- "$as_dir" ||
18621 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18622 X"$as_dir" : 'X\(//\)[^/]' \| \
18623 X"$as_dir" : 'X\(//\)$' \| \
18624 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18625 $as_echo X"$as_dir" |
18626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18627 s//\1/
18628 q
18629 }
18630 /^X\(\/\/\)[^/].*/{
18631 s//\1/
18632 q
18633 }
18634 /^X\(\/\/\)$/{
18635 s//\1/
18636 q
18637 }
18638 /^X\(\/\).*/{
18639 s//\1/
18640 q
18641 }
18642 s/.*/./; q'`
18643 test -d "$as_dir" && break
18644 done
18645 test -z "$as_dirs" || eval "mkdir $as_dirs"
18646 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18647
18648
18649 } # as_fn_mkdir_p
18650 if mkdir -p . 2>/dev/null; then
18651 as_mkdir_p='mkdir -p "$as_dir"'
18652 else
18653 test -d ./-p && rmdir ./-p
18654 as_mkdir_p=false
18655 fi
18656
18657 if test -x / >/dev/null 2>&1; then
18658 as_test_x='test -x'
18659 else
18660 if ls -dL / >/dev/null 2>&1; then
18661 as_ls_L_option=L
18662 else
18663 as_ls_L_option=
18664 fi
18665 as_test_x='
18666 eval sh -c '\''
18667 if test -d "$1"; then
18668 test -d "$1/.";
18669 else
18670 case $1 in #(
18671 -*)set "./$1";;
18672 esac;
18673 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18674 ???[sx]*):;;*)false;;esac;fi
18675 '\'' sh
18676 '
18677 fi
18678 as_executable_p=$as_test_x
18679
18680 # Sed expression to map a string onto a valid CPP name.
18681 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18682
18683 # Sed expression to map a string onto a valid variable name.
18684 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18685
18686
18687 exec 6>&1
18688 ## ----------------------------------- ##
18689 ## Main body of $CONFIG_STATUS script. ##
18690 ## ----------------------------------- ##
18691 _ASEOF
18692 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18693
18694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18695 # Save the log message, to keep $0 and so on meaningful, and to
18696 # report actual input values of CONFIG_FILES etc. instead of their
18697 # values after options handling.
18698 ac_log="
18699 This file was extended by xf86-input-mouse $as_me 1.9.1, which was
18700 generated by GNU Autoconf 2.68. Invocation command line was
18701
18702 CONFIG_FILES = $CONFIG_FILES
18703 CONFIG_HEADERS = $CONFIG_HEADERS
18704 CONFIG_LINKS = $CONFIG_LINKS
18705 CONFIG_COMMANDS = $CONFIG_COMMANDS
18706 $ $0 $@
18707
18708 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18709 "
18710
18711 _ACEOF
18712
18713 case $ac_config_files in *"
18714 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18715 esac
18716
18717 case $ac_config_headers in *"
18718 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18719 esac
18720
18721
18722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18723 # Files that config.status was made for.
18724 config_files="$ac_config_files"
18725 config_headers="$ac_config_headers"
18726 config_commands="$ac_config_commands"
18727
18728 _ACEOF
18729
18730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18731 ac_cs_usage="\
18732 \`$as_me' instantiates files and other configuration actions
18733 from templates according to the current configuration. Unless the files
18734 and actions are specified as TAGs, all are instantiated by default.
18735
18736 Usage: $0 [OPTION]... [TAG]...
18737
18738 -h, --help print this help, then exit
18739 -V, --version print version number and configuration settings, then exit
18740 --config print configuration, then exit
18741 -q, --quiet, --silent
18742 do not print progress messages
18743 -d, --debug don't remove temporary files
18744 --recheck update $as_me by reconfiguring in the same conditions
18745 --file=FILE[:TEMPLATE]
18746 instantiate the configuration file FILE
18747 --header=FILE[:TEMPLATE]
18748 instantiate the configuration header FILE
18749
18750 Configuration files:
18751 $config_files
18752
18753 Configuration headers:
18754 $config_headers
18755
18756 Configuration commands:
18757 $config_commands
18758
18759 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18760
18761 _ACEOF
18762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18763 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18764 ac_cs_version="\\
18765 xf86-input-mouse config.status 1.9.1
18766 configured by $0, generated by GNU Autoconf 2.68,
18767 with options \\"\$ac_cs_config\\"
18768
18769 Copyright (C) 2010 Free Software Foundation, Inc.
18770 This config.status script is free software; the Free Software Foundation
18771 gives unlimited permission to copy, distribute and modify it."
18772
18773 ac_pwd='$ac_pwd'
18774 srcdir='$srcdir'
18775 INSTALL='$INSTALL'
18776 MKDIR_P='$MKDIR_P'
18777 AWK='$AWK'
18778 test -n "\$AWK" || AWK=awk
18779 _ACEOF
18780
18781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18782 # The default lists apply if the user does not specify any file.
18783 ac_need_defaults=:
18784 while test $# != 0
18785 do
18786 case $1 in
18787 --*=?*)
18788 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18789 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18790 ac_shift=:
18791 ;;
18792 --*=)
18793 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18794 ac_optarg=
18795 ac_shift=:
18796 ;;
18797 *)
18798 ac_option=$1
18799 ac_optarg=$2
18800 ac_shift=shift
18801 ;;
18802 esac
18803
18804 case $ac_option in
18805 # Handling of the options.
18806 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18807 ac_cs_recheck=: ;;
18808 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18809 $as_echo "$ac_cs_version"; exit ;;
18810 --config | --confi | --conf | --con | --co | --c )
18811 $as_echo "$ac_cs_config"; exit ;;
18812 --debug | --debu | --deb | --de | --d | -d )
18813 debug=: ;;
18814 --file | --fil | --fi | --f )
18815 $ac_shift
18816 case $ac_optarg in
18817 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18818 '') as_fn_error $? "missing file argument" ;;
18819 esac
18820 as_fn_append CONFIG_FILES " '$ac_optarg'"
18821 ac_need_defaults=false;;
18822 --header | --heade | --head | --hea )
18823 $ac_shift
18824 case $ac_optarg in
18825 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18826 esac
18827 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18828 ac_need_defaults=false;;
18829 --he | --h)
18830 # Conflict between --help and --header
18831 as_fn_error $? "ambiguous option: \`$1'
18832 Try \`$0 --help' for more information.";;
18833 --help | --hel | -h )
18834 $as_echo "$ac_cs_usage"; exit ;;
18835 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18836 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18837 ac_cs_silent=: ;;
18838
18839 # This is an error.
18840 -*) as_fn_error $? "unrecognized option: \`$1'
18841 Try \`$0 --help' for more information." ;;
18842
18843 *) as_fn_append ac_config_targets " $1"
18844 ac_need_defaults=false ;;
18845
18846 esac
18847 shift
18848 done
18849
18850 ac_configure_extra_args=
18851
18852 if $ac_cs_silent; then
18853 exec 6>/dev/null
18854 ac_configure_extra_args="$ac_configure_extra_args --silent"
18855 fi
18856
18857 _ACEOF
18858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18859 if \$ac_cs_recheck; then
18860 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18861 shift
18862 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18863 CONFIG_SHELL='$SHELL'
18864 export CONFIG_SHELL
18865 exec "\$@"
18866 fi
18867
18868 _ACEOF
18869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18870 exec 5>>config.log
18871 {
18872 echo
18873 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18874 ## Running $as_me. ##
18875 _ASBOX
18876 $as_echo "$ac_log"
18877 } >&5
18878
18879 _ACEOF
18880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18881 #
18882 # INIT-COMMANDS
18883 #
18884 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18885
18886
18887 # The HP-UX ksh and POSIX shell print the target directory to stdout
18888 # if CDPATH is set.
18889 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18890
18891 sed_quote_subst='$sed_quote_subst'
18892 double_quote_subst='$double_quote_subst'
18893 delay_variable_subst='$delay_variable_subst'
18894 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18895 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18896 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18897 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18898 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18899 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18900 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18901 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18902 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18903 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18904 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18905 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18906 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18907 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18908 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18909 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18910 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18911 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18912 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18913 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18914 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18915 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18916 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18917 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18918 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18919 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18920 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18921 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18922 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18923 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18924 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18925 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18926 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18927 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18928 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18929 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18930 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18931 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18932 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18933 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18934 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18935 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18936 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18937 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18938 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18939 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18940 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18941 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18942 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18943 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18944 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18945 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18946 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18947 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18948 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18949 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18950 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"`'
18951 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18952 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18953 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18954 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18955 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18956 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18957 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18958 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18959 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18960 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18961 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18962 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18963 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18964 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18965 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18966 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18967 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18968 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18969 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18970 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18971 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18972 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18973 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18974 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18975 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18976 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18977 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18978 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18979 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18980 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18981 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18982 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18983 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18984 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18985 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18986 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18987 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18988 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18989 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18990 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18991 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18992 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18993 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18994 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18995 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18996 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18997 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18998 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18999 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19000 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19001 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19002 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19003 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19004 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19005 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19006 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19007 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19008 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19009 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19010 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19011 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19012 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19013 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19014 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19015 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19016 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19017 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19018 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19019 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19020 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19021 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19022 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19023 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19024
19025 LTCC='$LTCC'
19026 LTCFLAGS='$LTCFLAGS'
19027 compiler='$compiler_DEFAULT'
19028
19029 # A function that is used when there is no print builtin or printf.
19030 func_fallback_echo ()
19031 {
19032 eval 'cat <<_LTECHO_EOF
19033 \$1
19034 _LTECHO_EOF'
19035 }
19036
19037 # Quote evaled strings.
19038 for var in SHELL \
19039 ECHO \
19040 PATH_SEPARATOR \
19041 SED \
19042 GREP \
19043 EGREP \
19044 FGREP \
19045 LD \
19046 NM \
19047 LN_S \
19048 lt_SP2NL \
19049 lt_NL2SP \
19050 reload_flag \
19051 OBJDUMP \
19052 deplibs_check_method \
19053 file_magic_cmd \
19054 file_magic_glob \
19055 want_nocaseglob \
19056 DLLTOOL \
19057 sharedlib_from_linklib_cmd \
19058 AR \
19059 AR_FLAGS \
19060 archiver_list_spec \
19061 STRIP \
19062 RANLIB \
19063 CC \
19064 CFLAGS \
19065 compiler \
19066 lt_cv_sys_global_symbol_pipe \
19067 lt_cv_sys_global_symbol_to_cdecl \
19068 lt_cv_sys_global_symbol_to_c_name_address \
19069 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19070 nm_file_list_spec \
19071 lt_prog_compiler_no_builtin_flag \
19072 lt_prog_compiler_pic \
19073 lt_prog_compiler_wl \
19074 lt_prog_compiler_static \
19075 lt_cv_prog_compiler_c_o \
19076 need_locks \
19077 MANIFEST_TOOL \
19078 DSYMUTIL \
19079 NMEDIT \
19080 LIPO \
19081 OTOOL \
19082 OTOOL64 \
19083 shrext_cmds \
19084 export_dynamic_flag_spec \
19085 whole_archive_flag_spec \
19086 compiler_needs_object \
19087 with_gnu_ld \
19088 allow_undefined_flag \
19089 no_undefined_flag \
19090 hardcode_libdir_flag_spec \
19091 hardcode_libdir_separator \
19092 exclude_expsyms \
19093 include_expsyms \
19094 file_list_spec \
19095 variables_saved_for_relink \
19096 libname_spec \
19097 library_names_spec \
19098 soname_spec \
19099 install_override_mode \
19100 finish_eval \
19101 old_striplib \
19102 striplib; do
19103 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19104 *[\\\\\\\`\\"\\\$]*)
19105 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19106 ;;
19107 *)
19108 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19109 ;;
19110 esac
19111 done
19112
19113 # Double-quote double-evaled strings.
19114 for var in reload_cmds \
19115 old_postinstall_cmds \
19116 old_postuninstall_cmds \
19117 old_archive_cmds \
19118 extract_expsyms_cmds \
19119 old_archive_from_new_cmds \
19120 old_archive_from_expsyms_cmds \
19121 archive_cmds \
19122 archive_expsym_cmds \
19123 module_cmds \
19124 module_expsym_cmds \
19125 export_symbols_cmds \
19126 prelink_cmds \
19127 postlink_cmds \
19128 postinstall_cmds \
19129 postuninstall_cmds \
19130 finish_cmds \
19131 sys_lib_search_path_spec \
19132 sys_lib_dlsearch_path_spec; do
19133 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19134 *[\\\\\\\`\\"\\\$]*)
19135 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19136 ;;
19137 *)
19138 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19139 ;;
19140 esac
19141 done
19142
19143 ac_aux_dir='$ac_aux_dir'
19144 xsi_shell='$xsi_shell'
19145 lt_shell_append='$lt_shell_append'
19146
19147 # See if we are running on zsh, and set the options which allow our
19148 # commands through without removal of \ escapes INIT.
19149 if test -n "\${ZSH_VERSION+set}" ; then
19150 setopt NO_GLOB_SUBST
19151 fi
19152
19153
19154 PACKAGE='$PACKAGE'
19155 VERSION='$VERSION'
19156 TIMESTAMP='$TIMESTAMP'
19157 RM='$RM'
19158 ofile='$ofile'
19159
19160
19161
19162
19163 _ACEOF
19164
19165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19166
19167 # Handling of arguments.
19168 for ac_config_target in $ac_config_targets
19169 do
19170 case $ac_config_target in
19171 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19172 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19173 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19174 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19175 "xorg-mouse.pc") CONFIG_FILES="$CONFIG_FILES xorg-mouse.pc" ;;
19176 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19177 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19178 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19179
19180 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19181 esac
19182 done
19183
19184
19185 # If the user did not use the arguments to specify the items to instantiate,
19186 # then the envvar interface is used. Set only those that are not.
19187 # We use the long form for the default assignment because of an extremely
19188 # bizarre bug on SunOS 4.1.3.
19189 if $ac_need_defaults; then
19190 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19191 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19192 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19193 fi
19194
19195 # Have a temporary directory for convenience. Make it in the build tree
19196 # simply because there is no reason against having it here, and in addition,
19197 # creating and moving files from /tmp can sometimes cause problems.
19198 # Hook for its removal unless debugging.
19199 # Note that there is a small window in which the directory will not be cleaned:
19200 # after its creation but before its name has been assigned to `$tmp'.
19201 $debug ||
19202 {
19203 tmp= ac_tmp=
19204 trap 'exit_status=$?
19205 : "${ac_tmp:=$tmp}"
19206 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19207 ' 0
19208 trap 'as_fn_exit 1' 1 2 13 15
19209 }
19210 # Create a (secure) tmp directory for tmp files.
19211
19212 {
19213 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19214 test -d "$tmp"
19215 } ||
19216 {
19217 tmp=./conf$$-$RANDOM
19218 (umask 077 && mkdir "$tmp")
19219 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19220 ac_tmp=$tmp
19221
19222 # Set up the scripts for CONFIG_FILES section.
19223 # No need to generate them if there are no CONFIG_FILES.
19224 # This happens for instance with `./config.status config.h'.
19225 if test -n "$CONFIG_FILES"; then
19226
19227
19228 ac_cr=`echo X | tr X '\015'`
19229 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19230 # But we know of no other shell where ac_cr would be empty at this
19231 # point, so we can use a bashism as a fallback.
19232 if test "x$ac_cr" = x; then
19233 eval ac_cr=\$\'\\r\'
19234 fi
19235 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19236 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19237 ac_cs_awk_cr='\\r'
19238 else
19239 ac_cs_awk_cr=$ac_cr
19240 fi
19241
19242 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19243 _ACEOF
19244
19245
19246 {
19247 echo "cat >conf$$subs.awk <<_ACEOF" &&
19248 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19249 echo "_ACEOF"
19250 } >conf$$subs.sh ||
19251 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19252 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19253 ac_delim='%!_!# '
19254 for ac_last_try in false false false false false :; do
19255 . ./conf$$subs.sh ||
19256 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19257
19258 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19259 if test $ac_delim_n = $ac_delim_num; then
19260 break
19261 elif $ac_last_try; then
19262 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19263 else
19264 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19265 fi
19266 done
19267 rm -f conf$$subs.sh
19268
19269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19270 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19271 _ACEOF
19272 sed -n '
19273 h
19274 s/^/S["/; s/!.*/"]=/
19275 p
19276 g
19277 s/^[^!]*!//
19278 :repl
19279 t repl
19280 s/'"$ac_delim"'$//
19281 t delim
19282 :nl
19283 h
19284 s/\(.\{148\}\)..*/\1/
19285 t more1
19286 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19287 p
19288 n
19289 b repl
19290 :more1
19291 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19292 p
19293 g
19294 s/.\{148\}//
19295 t nl
19296 :delim
19297 h
19298 s/\(.\{148\}\)..*/\1/
19299 t more2
19300 s/["\\]/\\&/g; s/^/"/; s/$/"/
19301 p
19302 b
19303 :more2
19304 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19305 p
19306 g
19307 s/.\{148\}//
19308 t delim
19309 ' <conf$$subs.awk | sed '
19310 /^[^""]/{
19311 N
19312 s/\n//
19313 }
19314 ' >>$CONFIG_STATUS || ac_write_fail=1
19315 rm -f conf$$subs.awk
19316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19317 _ACAWK
19318 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19319 for (key in S) S_is_set[key] = 1
19320 FS = ""
19321
19322 }
19323 {
19324 line = $ 0
19325 nfields = split(line, field, "@")
19326 substed = 0
19327 len = length(field[1])
19328 for (i = 2; i < nfields; i++) {
19329 key = field[i]
19330 keylen = length(key)
19331 if (S_is_set[key]) {
19332 value = S[key]
19333 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19334 len += length(value) + length(field[++i])
19335 substed = 1
19336 } else
19337 len += 1 + keylen
19338 }
19339
19340 print line
19341 }
19342
19343 _ACAWK
19344 _ACEOF
19345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19346 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19347 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19348 else
19349 cat
19350 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19351 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19352 _ACEOF
19353
19354 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19355 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19356 # trailing colons and then remove the whole line if VPATH becomes empty
19357 # (actually we leave an empty line to preserve line numbers).
19358 if test "x$srcdir" = x.; then
19359 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19360 h
19361 s///
19362 s/^/:/
19363 s/[ ]*$/:/
19364 s/:\$(srcdir):/:/g
19365 s/:\${srcdir}:/:/g
19366 s/:@srcdir@:/:/g
19367 s/^:*//
19368 s/:*$//
19369 x
19370 s/\(=[ ]*\).*/\1/
19371 G
19372 s/\n//
19373 s/^[^=]*=[ ]*$//
19374 }'
19375 fi
19376
19377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19378 fi # test -n "$CONFIG_FILES"
19379
19380 # Set up the scripts for CONFIG_HEADERS section.
19381 # No need to generate them if there are no CONFIG_HEADERS.
19382 # This happens for instance with `./config.status Makefile'.
19383 if test -n "$CONFIG_HEADERS"; then
19384 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19385 BEGIN {
19386 _ACEOF
19387
19388 # Transform confdefs.h into an awk script `defines.awk', embedded as
19389 # here-document in config.status, that substitutes the proper values into
19390 # config.h.in to produce config.h.
19391
19392 # Create a delimiter string that does not exist in confdefs.h, to ease
19393 # handling of long lines.
19394 ac_delim='%!_!# '
19395 for ac_last_try in false false :; do
19396 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19397 if test -z "$ac_tt"; then
19398 break
19399 elif $ac_last_try; then
19400 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19401 else
19402 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19403 fi
19404 done
19405
19406 # For the awk script, D is an array of macro values keyed by name,
19407 # likewise P contains macro parameters if any. Preserve backslash
19408 # newline sequences.
19409
19410 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19411 sed -n '
19412 s/.\{148\}/&'"$ac_delim"'/g
19413 t rset
19414 :rset
19415 s/^[ ]*#[ ]*define[ ][ ]*/ /
19416 t def
19417 d
19418 :def
19419 s/\\$//
19420 t bsnl
19421 s/["\\]/\\&/g
19422 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19423 D["\1"]=" \3"/p
19424 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19425 d
19426 :bsnl
19427 s/["\\]/\\&/g
19428 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19429 D["\1"]=" \3\\\\\\n"\\/p
19430 t cont
19431 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19432 t cont
19433 d
19434 :cont
19435 n
19436 s/.\{148\}/&'"$ac_delim"'/g
19437 t clear
19438 :clear
19439 s/\\$//
19440 t bsnlc
19441 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19442 d
19443 :bsnlc
19444 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19445 b cont
19446 ' <confdefs.h | sed '
19447 s/'"$ac_delim"'/"\\\
19448 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19449
19450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19451 for (key in D) D_is_set[key] = 1
19452 FS = ""
19453 }
19454 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19455 line = \$ 0
19456 split(line, arg, " ")
19457 if (arg[1] == "#") {
19458 defundef = arg[2]
19459 mac1 = arg[3]
19460 } else {
19461 defundef = substr(arg[1], 2)
19462 mac1 = arg[2]
19463 }
19464 split(mac1, mac2, "(") #)
19465 macro = mac2[1]
19466 prefix = substr(line, 1, index(line, defundef) - 1)
19467 if (D_is_set[macro]) {
19468 # Preserve the white space surrounding the "#".
19469 print prefix "define", macro P[macro] D[macro]
19470 next
19471 } else {
19472 # Replace #undef with comments. This is necessary, for example,
19473 # in the case of _POSIX_SOURCE, which is predefined and required
19474 # on some systems where configure will not decide to define it.
19475 if (defundef == "undef") {
19476 print "/*", prefix defundef, macro, "*/"
19477 next
19478 }
19479 }
19480 }
19481 { print }
19482 _ACAWK
19483 _ACEOF
19484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19485 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19486 fi # test -n "$CONFIG_HEADERS"
19487
19488
19489 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19490 shift
19491 for ac_tag
19492 do
19493 case $ac_tag in
19494 :[FHLC]) ac_mode=$ac_tag; continue;;
19495 esac
19496 case $ac_mode$ac_tag in
19497 :[FHL]*:*);;
19498 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19499 :[FH]-) ac_tag=-:-;;
19500 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19501 esac
19502 ac_save_IFS=$IFS
19503 IFS=:
19504 set x $ac_tag
19505 IFS=$ac_save_IFS
19506 shift
19507 ac_file=$1
19508 shift
19509
19510 case $ac_mode in
19511 :L) ac_source=$1;;
19512 :[FH])
19513 ac_file_inputs=
19514 for ac_f
19515 do
19516 case $ac_f in
19517 -) ac_f="$ac_tmp/stdin";;
19518 *) # Look for the file first in the build tree, then in the source tree
19519 # (if the path is not absolute). The absolute path cannot be DOS-style,
19520 # because $ac_f cannot contain `:'.
19521 test -f "$ac_f" ||
19522 case $ac_f in
19523 [\\/$]*) false;;
19524 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19525 esac ||
19526 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19527 esac
19528 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19529 as_fn_append ac_file_inputs " '$ac_f'"
19530 done
19531
19532 # Let's still pretend it is `configure' which instantiates (i.e., don't
19533 # use $as_me), people would be surprised to read:
19534 # /* config.h. Generated by config.status. */
19535 configure_input='Generated from '`
19536 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19537 `' by configure.'
19538 if test x"$ac_file" != x-; then
19539 configure_input="$ac_file. $configure_input"
19540 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19541 $as_echo "$as_me: creating $ac_file" >&6;}
19542 fi
19543 # Neutralize special characters interpreted by sed in replacement strings.
19544 case $configure_input in #(
19545 *\&* | *\|* | *\\* )
19546 ac_sed_conf_input=`$as_echo "$configure_input" |
19547 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19548 *) ac_sed_conf_input=$configure_input;;
19549 esac
19550
19551 case $ac_tag in
19552 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19553 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19554 esac
19555 ;;
19556 esac
19557
19558 ac_dir=`$as_dirname -- "$ac_file" ||
19559 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19560 X"$ac_file" : 'X\(//\)[^/]' \| \
19561 X"$ac_file" : 'X\(//\)$' \| \
19562 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19563 $as_echo X"$ac_file" |
19564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19565 s//\1/
19566 q
19567 }
19568 /^X\(\/\/\)[^/].*/{
19569 s//\1/
19570 q
19571 }
19572 /^X\(\/\/\)$/{
19573 s//\1/
19574 q
19575 }
19576 /^X\(\/\).*/{
19577 s//\1/
19578 q
19579 }
19580 s/.*/./; q'`
19581 as_dir="$ac_dir"; as_fn_mkdir_p
19582 ac_builddir=.
19583
19584 case "$ac_dir" in
19585 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19586 *)
19587 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19588 # A ".." for each directory in $ac_dir_suffix.
19589 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19590 case $ac_top_builddir_sub in
19591 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19592 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19593 esac ;;
19594 esac
19595 ac_abs_top_builddir=$ac_pwd
19596 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19597 # for backward compatibility:
19598 ac_top_builddir=$ac_top_build_prefix
19599
19600 case $srcdir in
19601 .) # We are building in place.
19602 ac_srcdir=.
19603 ac_top_srcdir=$ac_top_builddir_sub
19604 ac_abs_top_srcdir=$ac_pwd ;;
19605 [\\/]* | ?:[\\/]* ) # Absolute name.
19606 ac_srcdir=$srcdir$ac_dir_suffix;
19607 ac_top_srcdir=$srcdir
19608 ac_abs_top_srcdir=$srcdir ;;
19609 *) # Relative name.
19610 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19611 ac_top_srcdir=$ac_top_build_prefix$srcdir
19612 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19613 esac
19614 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19615
19616
19617 case $ac_mode in
19618 :F)
19619 #
19620 # CONFIG_FILE
19621 #
19622
19623 case $INSTALL in
19624 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19625 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19626 esac
19627 ac_MKDIR_P=$MKDIR_P
19628 case $MKDIR_P in
19629 [\\/$]* | ?:[\\/]* ) ;;
19630 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19631 esac
19632 _ACEOF
19633
19634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19635 # If the template does not know about datarootdir, expand it.
19636 # FIXME: This hack should be removed a few years after 2.60.
19637 ac_datarootdir_hack=; ac_datarootdir_seen=
19638 ac_sed_dataroot='
19639 /datarootdir/ {
19640 p
19641 q
19642 }
19643 /@datadir@/p
19644 /@docdir@/p
19645 /@infodir@/p
19646 /@localedir@/p
19647 /@mandir@/p'
19648 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19649 *datarootdir*) ac_datarootdir_seen=yes;;
19650 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19652 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19653 _ACEOF
19654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19655 ac_datarootdir_hack='
19656 s&@datadir@&$datadir&g
19657 s&@docdir@&$docdir&g
19658 s&@infodir@&$infodir&g
19659 s&@localedir@&$localedir&g
19660 s&@mandir@&$mandir&g
19661 s&\\\${datarootdir}&$datarootdir&g' ;;
19662 esac
19663 _ACEOF
19664
19665 # Neutralize VPATH when `$srcdir' = `.'.
19666 # Shell code in configure.ac might set extrasub.
19667 # FIXME: do we really want to maintain this feature?
19668 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19669 ac_sed_extra="$ac_vpsub
19670 $extrasub
19671 _ACEOF
19672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19673 :t
19674 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19675 s|@configure_input@|$ac_sed_conf_input|;t t
19676 s&@top_builddir@&$ac_top_builddir_sub&;t t
19677 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19678 s&@srcdir@&$ac_srcdir&;t t
19679 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19680 s&@top_srcdir@&$ac_top_srcdir&;t t
19681 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19682 s&@builddir@&$ac_builddir&;t t
19683 s&@abs_builddir@&$ac_abs_builddir&;t t
19684 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19685 s&@INSTALL@&$ac_INSTALL&;t t
19686 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19687 $ac_datarootdir_hack
19688 "
19689 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19690 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19691
19692 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19693 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19694 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19695 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19697 which seems to be undefined. Please make sure it is defined" >&5
19698 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19699 which seems to be undefined. Please make sure it is defined" >&2;}
19700
19701 rm -f "$ac_tmp/stdin"
19702 case $ac_file in
19703 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19704 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19705 esac \
19706 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19707 ;;
19708 :H)
19709 #
19710 # CONFIG_HEADER
19711 #
19712 if test x"$ac_file" != x-; then
19713 {
19714 $as_echo "/* $configure_input */" \
19715 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19716 } >"$ac_tmp/config.h" \
19717 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19718 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19720 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19721 else
19722 rm -f "$ac_file"
19723 mv "$ac_tmp/config.h" "$ac_file" \
19724 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19725 fi
19726 else
19727 $as_echo "/* $configure_input */" \
19728 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19729 || as_fn_error $? "could not create -" "$LINENO" 5
19730 fi
19731 # Compute "$ac_file"'s index in $config_headers.
19732 _am_arg="$ac_file"
19733 _am_stamp_count=1
19734 for _am_header in $config_headers :; do
19735 case $_am_header in
19736 $_am_arg | $_am_arg:* )
19737 break ;;
19738 * )
19739 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19740 esac
19741 done
19742 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19743 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19744 X"$_am_arg" : 'X\(//\)[^/]' \| \
19745 X"$_am_arg" : 'X\(//\)$' \| \
19746 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19747 $as_echo X"$_am_arg" |
19748 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19749 s//\1/
19750 q
19751 }
19752 /^X\(\/\/\)[^/].*/{
19753 s//\1/
19754 q
19755 }
19756 /^X\(\/\/\)$/{
19757 s//\1/
19758 q
19759 }
19760 /^X\(\/\).*/{
19761 s//\1/
19762 q
19763 }
19764 s/.*/./; q'`/stamp-h$_am_stamp_count
19765 ;;
19766
19767 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19768 $as_echo "$as_me: executing $ac_file commands" >&6;}
19769 ;;
19770 esac
19771
19772
19773 case $ac_file$ac_mode in
19774 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19775 # Older Autoconf quotes --file arguments for eval, but not when files
19776 # are listed without --file. Let's play safe and only enable the eval
19777 # if we detect the quoting.
19778 case $CONFIG_FILES in
19779 *\'*) eval set x "$CONFIG_FILES" ;;
19780 *) set x $CONFIG_FILES ;;
19781 esac
19782 shift
19783 for mf
19784 do
19785 # Strip MF so we end up with the name of the file.
19786 mf=`echo "$mf" | sed -e 's/:.*$//'`
19787 # Check whether this is an Automake generated Makefile or not.
19788 # We used to match only the files named 'Makefile.in', but
19789 # some people rename them; so instead we look at the file content.
19790 # Grep'ing the first line is not enough: some people post-process
19791 # each Makefile.in and add a new line on top of each file to say so.
19792 # Grep'ing the whole file is not good either: AIX grep has a line
19793 # limit of 2048, but all sed's we know have understand at least 4000.
19794 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19795 dirpart=`$as_dirname -- "$mf" ||
19796 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19797 X"$mf" : 'X\(//\)[^/]' \| \
19798 X"$mf" : 'X\(//\)$' \| \
19799 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19800 $as_echo X"$mf" |
19801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19802 s//\1/
19803 q
19804 }
19805 /^X\(\/\/\)[^/].*/{
19806 s//\1/
19807 q
19808 }
19809 /^X\(\/\/\)$/{
19810 s//\1/
19811 q
19812 }
19813 /^X\(\/\).*/{
19814 s//\1/
19815 q
19816 }
19817 s/.*/./; q'`
19818 else
19819 continue
19820 fi
19821 # Extract the definition of DEPDIR, am__include, and am__quote
19822 # from the Makefile without running 'make'.
19823 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19824 test -z "$DEPDIR" && continue
19825 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19826 test -z "$am__include" && continue
19827 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19828 # Find all dependency output files, they are included files with
19829 # $(DEPDIR) in their names. We invoke sed twice because it is the
19830 # simplest approach to changing $(DEPDIR) to its actual value in the
19831 # expansion.
19832 for file in `sed -n "
19833 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19834 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19835 # Make sure the directory exists.
19836 test -f "$dirpart/$file" && continue
19837 fdir=`$as_dirname -- "$file" ||
19838 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19839 X"$file" : 'X\(//\)[^/]' \| \
19840 X"$file" : 'X\(//\)$' \| \
19841 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19842 $as_echo X"$file" |
19843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19844 s//\1/
19845 q
19846 }
19847 /^X\(\/\/\)[^/].*/{
19848 s//\1/
19849 q
19850 }
19851 /^X\(\/\/\)$/{
19852 s//\1/
19853 q
19854 }
19855 /^X\(\/\).*/{
19856 s//\1/
19857 q
19858 }
19859 s/.*/./; q'`
19860 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19861 # echo "creating $dirpart/$file"
19862 echo '# dummy' > "$dirpart/$file"
19863 done
19864 done
19865 }
19866 ;;
19867 "libtool":C)
19868
19869 # See if we are running on zsh, and set the options which allow our
19870 # commands through without removal of \ escapes.
19871 if test -n "${ZSH_VERSION+set}" ; then
19872 setopt NO_GLOB_SUBST
19873 fi
19874
19875 cfgfile="${ofile}T"
19876 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19877 $RM "$cfgfile"
19878
19879 cat <<_LT_EOF >> "$cfgfile"
19880 #! $SHELL
19881
19882 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19883 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19884 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19885 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19886 #
19887 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19888 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19889 # Foundation, Inc.
19890 # Written by Gordon Matzigkeit, 1996
19891 #
19892 # This file is part of GNU Libtool.
19893 #
19894 # GNU Libtool is free software; you can redistribute it and/or
19895 # modify it under the terms of the GNU General Public License as
19896 # published by the Free Software Foundation; either version 2 of
19897 # the License, or (at your option) any later version.
19898 #
19899 # As a special exception to the GNU General Public License,
19900 # if you distribute this file as part of a program or library that
19901 # is built using GNU Libtool, you may include this file under the
19902 # same distribution terms that you use for the rest of that program.
19903 #
19904 # GNU Libtool is distributed in the hope that it will be useful,
19905 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19906 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19907 # GNU General Public License for more details.
19908 #
19909 # You should have received a copy of the GNU General Public License
19910 # along with GNU Libtool; see the file COPYING. If not, a copy
19911 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19912 # obtained by writing to the Free Software Foundation, Inc.,
19913 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19914
19915
19916 # The names of the tagged configurations supported by this script.
19917 available_tags=""
19918
19919 # ### BEGIN LIBTOOL CONFIG
19920
19921 # Whether or not to build static libraries.
19922 build_old_libs=$enable_static
19923
19924 # Which release of libtool.m4 was used?
19925 macro_version=$macro_version
19926 macro_revision=$macro_revision
19927
19928 # Whether or not to build shared libraries.
19929 build_libtool_libs=$enable_shared
19930
19931 # What type of objects to build.
19932 pic_mode=$pic_mode
19933
19934 # Whether or not to optimize for fast installation.
19935 fast_install=$enable_fast_install
19936
19937 # Shell to use when invoking shell scripts.
19938 SHELL=$lt_SHELL
19939
19940 # An echo program that protects backslashes.
19941 ECHO=$lt_ECHO
19942
19943 # The PATH separator for the build system.
19944 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19945
19946 # The host system.
19947 host_alias=$host_alias
19948 host=$host
19949 host_os=$host_os
19950
19951 # The build system.
19952 build_alias=$build_alias
19953 build=$build
19954 build_os=$build_os
19955
19956 # A sed program that does not truncate output.
19957 SED=$lt_SED
19958
19959 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19960 Xsed="\$SED -e 1s/^X//"
19961
19962 # A grep program that handles long lines.
19963 GREP=$lt_GREP
19964
19965 # An ERE matcher.
19966 EGREP=$lt_EGREP
19967
19968 # A literal string matcher.
19969 FGREP=$lt_FGREP
19970
19971 # A BSD- or MS-compatible name lister.
19972 NM=$lt_NM
19973
19974 # Whether we need soft or hard links.
19975 LN_S=$lt_LN_S
19976
19977 # What is the maximum length of a command?
19978 max_cmd_len=$max_cmd_len
19979
19980 # Object file suffix (normally "o").
19981 objext=$ac_objext
19982
19983 # Executable file suffix (normally "").
19984 exeext=$exeext
19985
19986 # whether the shell understands "unset".
19987 lt_unset=$lt_unset
19988
19989 # turn spaces into newlines.
19990 SP2NL=$lt_lt_SP2NL
19991
19992 # turn newlines into spaces.
19993 NL2SP=$lt_lt_NL2SP
19994
19995 # convert \$build file names to \$host format.
19996 to_host_file_cmd=$lt_cv_to_host_file_cmd
19997
19998 # convert \$build files to toolchain format.
19999 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20000
20001 # An object symbol dumper.
20002 OBJDUMP=$lt_OBJDUMP
20003
20004 # Method to check whether dependent libraries are shared objects.
20005 deplibs_check_method=$lt_deplibs_check_method
20006
20007 # Command to use when deplibs_check_method = "file_magic".
20008 file_magic_cmd=$lt_file_magic_cmd
20009
20010 # How to find potential files when deplibs_check_method = "file_magic".
20011 file_magic_glob=$lt_file_magic_glob
20012
20013 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20014 want_nocaseglob=$lt_want_nocaseglob
20015
20016 # DLL creation program.
20017 DLLTOOL=$lt_DLLTOOL
20018
20019 # Command to associate shared and link libraries.
20020 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20021
20022 # The archiver.
20023 AR=$lt_AR
20024
20025 # Flags to create an archive.
20026 AR_FLAGS=$lt_AR_FLAGS
20027
20028 # How to feed a file listing to the archiver.
20029 archiver_list_spec=$lt_archiver_list_spec
20030
20031 # A symbol stripping program.
20032 STRIP=$lt_STRIP
20033
20034 # Commands used to install an old-style archive.
20035 RANLIB=$lt_RANLIB
20036 old_postinstall_cmds=$lt_old_postinstall_cmds
20037 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20038
20039 # Whether to use a lock for old archive extraction.
20040 lock_old_archive_extraction=$lock_old_archive_extraction
20041
20042 # A C compiler.
20043 LTCC=$lt_CC
20044
20045 # LTCC compiler flags.
20046 LTCFLAGS=$lt_CFLAGS
20047
20048 # Take the output of nm and produce a listing of raw symbols and C names.
20049 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20050
20051 # Transform the output of nm in a proper C declaration.
20052 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20053
20054 # Transform the output of nm in a C name address pair.
20055 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20056
20057 # Transform the output of nm in a C name address pair when lib prefix is needed.
20058 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20059
20060 # Specify filename containing input files for \$NM.
20061 nm_file_list_spec=$lt_nm_file_list_spec
20062
20063 # The root where to search for dependent libraries,and in which our libraries should be installed.
20064 lt_sysroot=$lt_sysroot
20065
20066 # The name of the directory that contains temporary libtool files.
20067 objdir=$objdir
20068
20069 # Used to examine libraries when file_magic_cmd begins with "file".
20070 MAGIC_CMD=$MAGIC_CMD
20071
20072 # Must we lock files when doing compilation?
20073 need_locks=$lt_need_locks
20074
20075 # Manifest tool.
20076 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20077
20078 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20079 DSYMUTIL=$lt_DSYMUTIL
20080
20081 # Tool to change global to local symbols on Mac OS X.
20082 NMEDIT=$lt_NMEDIT
20083
20084 # Tool to manipulate fat objects and archives on Mac OS X.
20085 LIPO=$lt_LIPO
20086
20087 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20088 OTOOL=$lt_OTOOL
20089
20090 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20091 OTOOL64=$lt_OTOOL64
20092
20093 # Old archive suffix (normally "a").
20094 libext=$libext
20095
20096 # Shared library suffix (normally ".so").
20097 shrext_cmds=$lt_shrext_cmds
20098
20099 # The commands to extract the exported symbol list from a shared archive.
20100 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20101
20102 # Variables whose values should be saved in libtool wrapper scripts and
20103 # restored at link time.
20104 variables_saved_for_relink=$lt_variables_saved_for_relink
20105
20106 # Do we need the "lib" prefix for modules?
20107 need_lib_prefix=$need_lib_prefix
20108
20109 # Do we need a version for libraries?
20110 need_version=$need_version
20111
20112 # Library versioning type.
20113 version_type=$version_type
20114
20115 # Shared library runtime path variable.
20116 runpath_var=$runpath_var
20117
20118 # Shared library path variable.
20119 shlibpath_var=$shlibpath_var
20120
20121 # Is shlibpath searched before the hard-coded library search path?
20122 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20123
20124 # Format of library name prefix.
20125 libname_spec=$lt_libname_spec
20126
20127 # List of archive names. First name is the real one, the rest are links.
20128 # The last name is the one that the linker finds with -lNAME
20129 library_names_spec=$lt_library_names_spec
20130
20131 # The coded name of the library, if different from the real name.
20132 soname_spec=$lt_soname_spec
20133
20134 # Permission mode override for installation of shared libraries.
20135 install_override_mode=$lt_install_override_mode
20136
20137 # Command to use after installation of a shared archive.
20138 postinstall_cmds=$lt_postinstall_cmds
20139
20140 # Command to use after uninstallation of a shared archive.
20141 postuninstall_cmds=$lt_postuninstall_cmds
20142
20143 # Commands used to finish a libtool library installation in a directory.
20144 finish_cmds=$lt_finish_cmds
20145
20146 # As "finish_cmds", except a single script fragment to be evaled but
20147 # not shown.
20148 finish_eval=$lt_finish_eval
20149
20150 # Whether we should hardcode library paths into libraries.
20151 hardcode_into_libs=$hardcode_into_libs
20152
20153 # Compile-time system search path for libraries.
20154 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20155
20156 # Run-time system search path for libraries.
20157 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20158
20159 # Whether dlopen is supported.
20160 dlopen_support=$enable_dlopen
20161
20162 # Whether dlopen of programs is supported.
20163 dlopen_self=$enable_dlopen_self
20164
20165 # Whether dlopen of statically linked programs is supported.
20166 dlopen_self_static=$enable_dlopen_self_static
20167
20168 # Commands to strip libraries.
20169 old_striplib=$lt_old_striplib
20170 striplib=$lt_striplib
20171
20172
20173 # The linker used to build libraries.
20174 LD=$lt_LD
20175
20176 # How to create reloadable object files.
20177 reload_flag=$lt_reload_flag
20178 reload_cmds=$lt_reload_cmds
20179
20180 # Commands used to build an old-style archive.
20181 old_archive_cmds=$lt_old_archive_cmds
20182
20183 # A language specific compiler.
20184 CC=$lt_compiler
20185
20186 # Is the compiler the GNU compiler?
20187 with_gcc=$GCC
20188
20189 # Compiler flag to turn off builtin functions.
20190 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20191
20192 # Additional compiler flags for building library objects.
20193 pic_flag=$lt_lt_prog_compiler_pic
20194
20195 # How to pass a linker flag through the compiler.
20196 wl=$lt_lt_prog_compiler_wl
20197
20198 # Compiler flag to prevent dynamic linking.
20199 link_static_flag=$lt_lt_prog_compiler_static
20200
20201 # Does compiler simultaneously support -c and -o options?
20202 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20203
20204 # Whether or not to add -lc for building shared libraries.
20205 build_libtool_need_lc=$archive_cmds_need_lc
20206
20207 # Whether or not to disallow shared libs when runtime libs are static.
20208 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20209
20210 # Compiler flag to allow reflexive dlopens.
20211 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20212
20213 # Compiler flag to generate shared objects directly from archives.
20214 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20215
20216 # Whether the compiler copes with passing no objects directly.
20217 compiler_needs_object=$lt_compiler_needs_object
20218
20219 # Create an old-style archive from a shared archive.
20220 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20221
20222 # Create a temporary old-style archive to link instead of a shared archive.
20223 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20224
20225 # Commands used to build a shared archive.
20226 archive_cmds=$lt_archive_cmds
20227 archive_expsym_cmds=$lt_archive_expsym_cmds
20228
20229 # Commands used to build a loadable module if different from building
20230 # a shared archive.
20231 module_cmds=$lt_module_cmds
20232 module_expsym_cmds=$lt_module_expsym_cmds
20233
20234 # Whether we are building with GNU ld or not.
20235 with_gnu_ld=$lt_with_gnu_ld
20236
20237 # Flag that allows shared libraries with undefined symbols to be built.
20238 allow_undefined_flag=$lt_allow_undefined_flag
20239
20240 # Flag that enforces no undefined symbols.
20241 no_undefined_flag=$lt_no_undefined_flag
20242
20243 # Flag to hardcode \$libdir into a binary during linking.
20244 # This must work even if \$libdir does not exist
20245 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20246
20247 # Whether we need a single "-rpath" flag with a separated argument.
20248 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20249
20250 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20251 # DIR into the resulting binary.
20252 hardcode_direct=$hardcode_direct
20253
20254 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20255 # DIR into the resulting binary and the resulting library dependency is
20256 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20257 # library is relocated.
20258 hardcode_direct_absolute=$hardcode_direct_absolute
20259
20260 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20261 # into the resulting binary.
20262 hardcode_minus_L=$hardcode_minus_L
20263
20264 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20265 # into the resulting binary.
20266 hardcode_shlibpath_var=$hardcode_shlibpath_var
20267
20268 # Set to "yes" if building a shared library automatically hardcodes DIR
20269 # into the library and all subsequent libraries and executables linked
20270 # against it.
20271 hardcode_automatic=$hardcode_automatic
20272
20273 # Set to yes if linker adds runtime paths of dependent libraries
20274 # to runtime path list.
20275 inherit_rpath=$inherit_rpath
20276
20277 # Whether libtool must link a program against all its dependency libraries.
20278 link_all_deplibs=$link_all_deplibs
20279
20280 # Set to "yes" if exported symbols are required.
20281 always_export_symbols=$always_export_symbols
20282
20283 # The commands to list exported symbols.
20284 export_symbols_cmds=$lt_export_symbols_cmds
20285
20286 # Symbols that should not be listed in the preloaded symbols.
20287 exclude_expsyms=$lt_exclude_expsyms
20288
20289 # Symbols that must always be exported.
20290 include_expsyms=$lt_include_expsyms
20291
20292 # Commands necessary for linking programs (against libraries) with templates.
20293 prelink_cmds=$lt_prelink_cmds
20294
20295 # Commands necessary for finishing linking programs.
20296 postlink_cmds=$lt_postlink_cmds
20297
20298 # Specify filename containing input files.
20299 file_list_spec=$lt_file_list_spec
20300
20301 # How to hardcode a shared library path into an executable.
20302 hardcode_action=$hardcode_action
20303
20304 # ### END LIBTOOL CONFIG
20305
20306 _LT_EOF
20307
20308 case $host_os in
20309 aix3*)
20310 cat <<\_LT_EOF >> "$cfgfile"
20311 # AIX sometimes has problems with the GCC collect2 program. For some
20312 # reason, if we set the COLLECT_NAMES environment variable, the problems
20313 # vanish in a puff of smoke.
20314 if test "X${COLLECT_NAMES+set}" != Xset; then
20315 COLLECT_NAMES=
20316 export COLLECT_NAMES
20317 fi
20318 _LT_EOF
20319 ;;
20320 esac
20321
20322
20323 ltmain="$ac_aux_dir/ltmain.sh"
20324
20325
20326 # We use sed instead of cat because bash on DJGPP gets confused if
20327 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20328 # text mode, it properly converts lines to CR/LF. This bash problem
20329 # is reportedly fixed, but why not run on old versions too?
20330 sed '$q' "$ltmain" >> "$cfgfile" \
20331 || (rm -f "$cfgfile"; exit 1)
20332
20333 if test x"$xsi_shell" = xyes; then
20334 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20335 func_dirname ()\
20336 {\
20337 \ case ${1} in\
20338 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20339 \ * ) func_dirname_result="${3}" ;;\
20340 \ esac\
20341 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20342 && mv -f "$cfgfile.tmp" "$cfgfile" \
20343 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20344 test 0 -eq $? || _lt_function_replace_fail=:
20345
20346
20347 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20348 func_basename ()\
20349 {\
20350 \ func_basename_result="${1##*/}"\
20351 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20352 && mv -f "$cfgfile.tmp" "$cfgfile" \
20353 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20354 test 0 -eq $? || _lt_function_replace_fail=:
20355
20356
20357 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20358 func_dirname_and_basename ()\
20359 {\
20360 \ case ${1} in\
20361 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20362 \ * ) func_dirname_result="${3}" ;;\
20363 \ esac\
20364 \ func_basename_result="${1##*/}"\
20365 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20366 && mv -f "$cfgfile.tmp" "$cfgfile" \
20367 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20368 test 0 -eq $? || _lt_function_replace_fail=:
20369
20370
20371 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20372 func_stripname ()\
20373 {\
20374 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20375 \ # positional parameters, so assign one to ordinary parameter first.\
20376 \ func_stripname_result=${3}\
20377 \ func_stripname_result=${func_stripname_result#"${1}"}\
20378 \ func_stripname_result=${func_stripname_result%"${2}"}\
20379 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20380 && mv -f "$cfgfile.tmp" "$cfgfile" \
20381 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20382 test 0 -eq $? || _lt_function_replace_fail=:
20383
20384
20385 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20386 func_split_long_opt ()\
20387 {\
20388 \ func_split_long_opt_name=${1%%=*}\
20389 \ func_split_long_opt_arg=${1#*=}\
20390 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20391 && mv -f "$cfgfile.tmp" "$cfgfile" \
20392 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20393 test 0 -eq $? || _lt_function_replace_fail=:
20394
20395
20396 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20397 func_split_short_opt ()\
20398 {\
20399 \ func_split_short_opt_arg=${1#??}\
20400 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20401 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20402 && mv -f "$cfgfile.tmp" "$cfgfile" \
20403 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20404 test 0 -eq $? || _lt_function_replace_fail=:
20405
20406
20407 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20408 func_lo2o ()\
20409 {\
20410 \ case ${1} in\
20411 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20412 \ *) func_lo2o_result=${1} ;;\
20413 \ esac\
20414 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20415 && mv -f "$cfgfile.tmp" "$cfgfile" \
20416 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20417 test 0 -eq $? || _lt_function_replace_fail=:
20418
20419
20420 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20421 func_xform ()\
20422 {\
20423 func_xform_result=${1%.*}.lo\
20424 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20425 && mv -f "$cfgfile.tmp" "$cfgfile" \
20426 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20427 test 0 -eq $? || _lt_function_replace_fail=:
20428
20429
20430 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20431 func_arith ()\
20432 {\
20433 func_arith_result=$(( $* ))\
20434 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20435 && mv -f "$cfgfile.tmp" "$cfgfile" \
20436 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20437 test 0 -eq $? || _lt_function_replace_fail=:
20438
20439
20440 sed -e '/^func_len ()$/,/^} # func_len /c\
20441 func_len ()\
20442 {\
20443 func_len_result=${#1}\
20444 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20445 && mv -f "$cfgfile.tmp" "$cfgfile" \
20446 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20447 test 0 -eq $? || _lt_function_replace_fail=:
20448
20449 fi
20450
20451 if test x"$lt_shell_append" = xyes; then
20452 sed -e '/^func_append ()$/,/^} # func_append /c\
20453 func_append ()\
20454 {\
20455 eval "${1}+=\\${2}"\
20456 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20457 && mv -f "$cfgfile.tmp" "$cfgfile" \
20458 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20459 test 0 -eq $? || _lt_function_replace_fail=:
20460
20461
20462 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20463 func_append_quoted ()\
20464 {\
20465 \ func_quote_for_eval "${2}"\
20466 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20467 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20468 && mv -f "$cfgfile.tmp" "$cfgfile" \
20469 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20470 test 0 -eq $? || _lt_function_replace_fail=:
20471
20472
20473 # Save a `func_append' function call where possible by direct use of '+='
20474 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20475 && mv -f "$cfgfile.tmp" "$cfgfile" \
20476 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20477 test 0 -eq $? || _lt_function_replace_fail=:
20478 else
20479 # Save a `func_append' function call even when '+=' is not available
20480 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20481 && mv -f "$cfgfile.tmp" "$cfgfile" \
20482 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20483 test 0 -eq $? || _lt_function_replace_fail=:
20484 fi
20485
20486 if test x"$_lt_function_replace_fail" = x":"; then
20487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20488 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20489 fi
20490
20491
20492 mv -f "$cfgfile" "$ofile" ||
20493 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20494 chmod +x "$ofile"
20495
20496 ;;
20497
20498 esac
20499 done # for ac_tag
20500
20501
20502 as_fn_exit 0
20503 _ACEOF
20504 ac_clean_files=$ac_clean_files_save
20505
20506 test $ac_write_fail = 0 ||
20507 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20508
20509
20510 # configure is writing to config.log, and then calls config.status.
20511 # config.status does its own redirection, appending to config.log.
20512 # Unfortunately, on DOS this fails, as config.log is still kept open
20513 # by configure, so config.status won't be able to write to it; its
20514 # output is simply discarded. So we exec the FD to /dev/null,
20515 # effectively closing config.log, so it can be properly (re)opened and
20516 # appended to by config.status. When coming back to configure, we
20517 # need to make the FD available again.
20518 if test "$no_create" != yes; then
20519 ac_cs_success=:
20520 ac_config_status_args=
20521 test "$silent" = yes &&
20522 ac_config_status_args="$ac_config_status_args --quiet"
20523 exec 5>/dev/null
20524 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20525 exec 5>>config.log
20526 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20527 # would make configure fail if this is the last instruction.
20528 $ac_cs_success || as_fn_exit 1
20529 fi
20530 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20532 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20533 fi
20534
20535