configure revision 1.1.1.6 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xf86-input-mouse 1.9.0.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
278 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='xf86-input-mouse'
593 PACKAGE_TARNAME='xf86-input-mouse'
594 PACKAGE_VERSION='1.9.0'
595 PACKAGE_STRING='xf86-input-mouse 1.9.0'
596 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
597 PACKAGE_URL=''
598
599 ac_unique_file="Makefile.am"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 DRIVER_NAME
641 OS_MOUSE_NAME
642 sdkdir
643 inputdir
644 XORG_LIBS
645 XORG_CFLAGS
646 LINT_FALSE
647 LINT_TRUE
648 LINT_FLAGS
649 LINT
650 AM_BACKSLASH
651 AM_DEFAULT_VERBOSITY
652 AM_DEFAULT_V
653 AM_V
654 MAN_SUBSTS
655 XORG_MAN_PAGE
656 ADMIN_MAN_DIR
657 DRIVER_MAN_DIR
658 MISC_MAN_DIR
659 FILE_MAN_DIR
660 LIB_MAN_DIR
661 APP_MAN_DIR
662 ADMIN_MAN_SUFFIX
663 DRIVER_MAN_SUFFIX
664 MISC_MAN_SUFFIX
665 FILE_MAN_SUFFIX
666 LIB_MAN_SUFFIX
667 APP_MAN_SUFFIX
668 INSTALL_CMD
669 PKG_CONFIG_LIBDIR
670 PKG_CONFIG_PATH
671 PKG_CONFIG
672 CHANGELOG_CMD
673 STRICT_CFLAGS
674 CWARNFLAGS
675 BASE_CFLAGS
676 CPP
677 OTOOL64
678 OTOOL
679 LIPO
680 NMEDIT
681 DSYMUTIL
682 MANIFEST_TOOL
683 RANLIB
684 ac_ct_AR
685 AR
686 DLLTOOL
687 OBJDUMP
688 LN_S
689 NM
690 ac_ct_DUMPBIN
691 DUMPBIN
692 LD
693 FGREP
694 EGREP
695 GREP
696 SED
697 am__fastdepCC_FALSE
698 am__fastdepCC_TRUE
699 CCDEPMODE
700 am__nodep
701 AMDEPBACKSLASH
702 AMDEP_FALSE
703 AMDEP_TRUE
704 am__quote
705 am__include
706 DEPDIR
707 OBJEXT
708 EXEEXT
709 ac_ct_CC
710 CPPFLAGS
711 LDFLAGS
712 CFLAGS
713 CC
714 host_os
715 host_vendor
716 host_cpu
717 host
718 build_os
719 build_vendor
720 build_cpu
721 build
722 LIBTOOL
723 am__untar
724 am__tar
725 AMTAR
726 am__leading_dot
727 SET_MAKE
728 AWK
729 mkdir_p
730 MKDIR_P
731 INSTALL_STRIP_PROGRAM
732 STRIP
733 install_sh
734 MAKEINFO
735 AUTOHEADER
736 AUTOMAKE
737 AUTOCONF
738 ACLOCAL
739 VERSION
740 PACKAGE
741 CYGPATH_W
742 am__isrc
743 INSTALL_DATA
744 INSTALL_SCRIPT
745 INSTALL_PROGRAM
746 target_alias
747 host_alias
748 build_alias
749 LIBS
750 ECHO_T
751 ECHO_N
752 ECHO_C
753 DEFS
754 mandir
755 localedir
756 libdir
757 psdir
758 pdfdir
759 dvidir
760 htmldir
761 infodir
762 docdir
763 oldincludedir
764 includedir
765 localstatedir
766 sharedstatedir
767 sysconfdir
768 datadir
769 datarootdir
770 libexecdir
771 sbindir
772 bindir
773 program_transform_name
774 prefix
775 exec_prefix
776 PACKAGE_URL
777 PACKAGE_BUGREPORT
778 PACKAGE_STRING
779 PACKAGE_VERSION
780 PACKAGE_TARNAME
781 PACKAGE_NAME
782 PATH_SEPARATOR
783 SHELL'
784 ac_subst_files=''
785 ac_user_opts='
786 enable_option_checking
787 enable_static
788 enable_shared
789 with_pic
790 enable_fast_install
791 enable_dependency_tracking
792 with_gnu_ld
793 with_sysroot
794 enable_libtool_lock
795 enable_selective_werror
796 enable_strict_compilation
797 enable_silent_rules
798 with_lint
799 with_xorg_module_dir
800 with_sdkdir
801 '
802 ac_precious_vars='build_alias
803 host_alias
804 target_alias
805 CC
806 CFLAGS
807 LDFLAGS
808 LIBS
809 CPPFLAGS
810 CPP
811 PKG_CONFIG
812 PKG_CONFIG_PATH
813 PKG_CONFIG_LIBDIR
814 LINT
815 LINT_FLAGS
816 XORG_CFLAGS
817 XORG_LIBS'
818
819
820 # Initialize some variables set by options.
821 ac_init_help=
822 ac_init_version=false
823 ac_unrecognized_opts=
824 ac_unrecognized_sep=
825 # The variables have the same names as the options, with
826 # dashes changed to underlines.
827 cache_file=/dev/null
828 exec_prefix=NONE
829 no_create=
830 no_recursion=
831 prefix=NONE
832 program_prefix=NONE
833 program_suffix=NONE
834 program_transform_name=s,x,x,
835 silent=
836 site=
837 srcdir=
838 verbose=
839 x_includes=NONE
840 x_libraries=NONE
841
842 # Installation directory options.
843 # These are left unexpanded so users can "make install exec_prefix=/foo"
844 # and all the variables that are supposed to be based on exec_prefix
845 # by default will actually change.
846 # Use braces instead of parens because sh, perl, etc. also accept them.
847 # (The list follows the same order as the GNU Coding Standards.)
848 bindir='${exec_prefix}/bin'
849 sbindir='${exec_prefix}/sbin'
850 libexecdir='${exec_prefix}/libexec'
851 datarootdir='${prefix}/share'
852 datadir='${datarootdir}'
853 sysconfdir='${prefix}/etc'
854 sharedstatedir='${prefix}/com'
855 localstatedir='${prefix}/var'
856 includedir='${prefix}/include'
857 oldincludedir='/usr/include'
858 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859 infodir='${datarootdir}/info'
860 htmldir='${docdir}'
861 dvidir='${docdir}'
862 pdfdir='${docdir}'
863 psdir='${docdir}'
864 libdir='${exec_prefix}/lib'
865 localedir='${datarootdir}/locale'
866 mandir='${datarootdir}/man'
867
868 ac_prev=
869 ac_dashdash=
870 for ac_option
871 do
872 # If the previous option needs an argument, assign it.
873 if test -n "$ac_prev"; then
874 eval $ac_prev=\$ac_option
875 ac_prev=
876 continue
877 fi
878
879 case $ac_option in
880 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881 *=) ac_optarg= ;;
882 *) ac_optarg=yes ;;
883 esac
884
885 # Accept the important Cygnus configure options, so we can diagnose typos.
886
887 case $ac_dashdash$ac_option in
888 --)
889 ac_dashdash=yes ;;
890
891 -bindir | --bindir | --bindi | --bind | --bin | --bi)
892 ac_prev=bindir ;;
893 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894 bindir=$ac_optarg ;;
895
896 -build | --build | --buil | --bui | --bu)
897 ac_prev=build_alias ;;
898 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899 build_alias=$ac_optarg ;;
900
901 -cache-file | --cache-file | --cache-fil | --cache-fi \
902 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903 ac_prev=cache_file ;;
904 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906 cache_file=$ac_optarg ;;
907
908 --config-cache | -C)
909 cache_file=config.cache ;;
910
911 -datadir | --datadir | --datadi | --datad)
912 ac_prev=datadir ;;
913 -datadir=* | --datadir=* | --datadi=* | --datad=*)
914 datadir=$ac_optarg ;;
915
916 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917 | --dataroo | --dataro | --datar)
918 ac_prev=datarootdir ;;
919 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921 datarootdir=$ac_optarg ;;
922
923 -disable-* | --disable-*)
924 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927 as_fn_error $? "invalid feature name: $ac_useropt"
928 ac_useropt_orig=$ac_useropt
929 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930 case $ac_user_opts in
931 *"
932 "enable_$ac_useropt"
933 "*) ;;
934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
935 ac_unrecognized_sep=', ';;
936 esac
937 eval enable_$ac_useropt=no ;;
938
939 -docdir | --docdir | --docdi | --doc | --do)
940 ac_prev=docdir ;;
941 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
942 docdir=$ac_optarg ;;
943
944 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945 ac_prev=dvidir ;;
946 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
947 dvidir=$ac_optarg ;;
948
949 -enable-* | --enable-*)
950 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 as_fn_error $? "invalid feature name: $ac_useropt"
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
957 *"
958 "enable_$ac_useropt"
959 "*) ;;
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
962 esac
963 eval enable_$ac_useropt=\$ac_optarg ;;
964
965 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
966 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
967 | --exec | --exe | --ex)
968 ac_prev=exec_prefix ;;
969 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
970 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
971 | --exec=* | --exe=* | --ex=*)
972 exec_prefix=$ac_optarg ;;
973
974 -gas | --gas | --ga | --g)
975 # Obsolete; use --with-gas.
976 with_gas=yes ;;
977
978 -help | --help | --hel | --he | -h)
979 ac_init_help=long ;;
980 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
981 ac_init_help=recursive ;;
982 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
983 ac_init_help=short ;;
984
985 -host | --host | --hos | --ho)
986 ac_prev=host_alias ;;
987 -host=* | --host=* | --hos=* | --ho=*)
988 host_alias=$ac_optarg ;;
989
990 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991 ac_prev=htmldir ;;
992 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993 | --ht=*)
994 htmldir=$ac_optarg ;;
995
996 -includedir | --includedir | --includedi | --included | --include \
997 | --includ | --inclu | --incl | --inc)
998 ac_prev=includedir ;;
999 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1000 | --includ=* | --inclu=* | --incl=* | --inc=*)
1001 includedir=$ac_optarg ;;
1002
1003 -infodir | --infodir | --infodi | --infod | --info | --inf)
1004 ac_prev=infodir ;;
1005 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1006 infodir=$ac_optarg ;;
1007
1008 -libdir | --libdir | --libdi | --libd)
1009 ac_prev=libdir ;;
1010 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1011 libdir=$ac_optarg ;;
1012
1013 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1014 | --libexe | --libex | --libe)
1015 ac_prev=libexecdir ;;
1016 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1017 | --libexe=* | --libex=* | --libe=*)
1018 libexecdir=$ac_optarg ;;
1019
1020 -localedir | --localedir | --localedi | --localed | --locale)
1021 ac_prev=localedir ;;
1022 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1023 localedir=$ac_optarg ;;
1024
1025 -localstatedir | --localstatedir | --localstatedi | --localstated \
1026 | --localstate | --localstat | --localsta | --localst | --locals)
1027 ac_prev=localstatedir ;;
1028 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1029 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1030 localstatedir=$ac_optarg ;;
1031
1032 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033 ac_prev=mandir ;;
1034 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1035 mandir=$ac_optarg ;;
1036
1037 -nfp | --nfp | --nf)
1038 # Obsolete; use --without-fp.
1039 with_fp=no ;;
1040
1041 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042 | --no-cr | --no-c | -n)
1043 no_create=yes ;;
1044
1045 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047 no_recursion=yes ;;
1048
1049 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1050 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1051 | --oldin | --oldi | --old | --ol | --o)
1052 ac_prev=oldincludedir ;;
1053 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1054 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1055 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1056 oldincludedir=$ac_optarg ;;
1057
1058 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059 ac_prev=prefix ;;
1060 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1061 prefix=$ac_optarg ;;
1062
1063 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1064 | --program-pre | --program-pr | --program-p)
1065 ac_prev=program_prefix ;;
1066 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1067 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1068 program_prefix=$ac_optarg ;;
1069
1070 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1071 | --program-suf | --program-su | --program-s)
1072 ac_prev=program_suffix ;;
1073 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1074 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1075 program_suffix=$ac_optarg ;;
1076
1077 -program-transform-name | --program-transform-name \
1078 | --program-transform-nam | --program-transform-na \
1079 | --program-transform-n | --program-transform- \
1080 | --program-transform | --program-transfor \
1081 | --program-transfo | --program-transf \
1082 | --program-trans | --program-tran \
1083 | --progr-tra | --program-tr | --program-t)
1084 ac_prev=program_transform_name ;;
1085 -program-transform-name=* | --program-transform-name=* \
1086 | --program-transform-nam=* | --program-transform-na=* \
1087 | --program-transform-n=* | --program-transform-=* \
1088 | --program-transform=* | --program-transfor=* \
1089 | --program-transfo=* | --program-transf=* \
1090 | --program-trans=* | --program-tran=* \
1091 | --progr-tra=* | --program-tr=* | --program-t=*)
1092 program_transform_name=$ac_optarg ;;
1093
1094 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095 ac_prev=pdfdir ;;
1096 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1097 pdfdir=$ac_optarg ;;
1098
1099 -psdir | --psdir | --psdi | --psd | --ps)
1100 ac_prev=psdir ;;
1101 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1102 psdir=$ac_optarg ;;
1103
1104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105 | -silent | --silent | --silen | --sile | --sil)
1106 silent=yes ;;
1107
1108 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1109 ac_prev=sbindir ;;
1110 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1111 | --sbi=* | --sb=*)
1112 sbindir=$ac_optarg ;;
1113
1114 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1115 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1116 | --sharedst | --shareds | --shared | --share | --shar \
1117 | --sha | --sh)
1118 ac_prev=sharedstatedir ;;
1119 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1120 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1121 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1122 | --sha=* | --sh=*)
1123 sharedstatedir=$ac_optarg ;;
1124
1125 -site | --site | --sit)
1126 ac_prev=site ;;
1127 -site=* | --site=* | --sit=*)
1128 site=$ac_optarg ;;
1129
1130 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1131 ac_prev=srcdir ;;
1132 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1133 srcdir=$ac_optarg ;;
1134
1135 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1136 | --syscon | --sysco | --sysc | --sys | --sy)
1137 ac_prev=sysconfdir ;;
1138 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1139 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1140 sysconfdir=$ac_optarg ;;
1141
1142 -target | --target | --targe | --targ | --tar | --ta | --t)
1143 ac_prev=target_alias ;;
1144 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1145 target_alias=$ac_optarg ;;
1146
1147 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1148 verbose=yes ;;
1149
1150 -version | --version | --versio | --versi | --vers | -V)
1151 ac_init_version=: ;;
1152
1153 -with-* | --with-*)
1154 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157 as_fn_error $? "invalid package name: $ac_useropt"
1158 ac_useropt_orig=$ac_useropt
1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1161 *"
1162 "with_$ac_useropt"
1163 "*) ;;
1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1165 ac_unrecognized_sep=', ';;
1166 esac
1167 eval with_$ac_useropt=\$ac_optarg ;;
1168
1169 -without-* | --without-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error $? "invalid package name: $ac_useropt"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1177 *"
1178 "with_$ac_useropt"
1179 "*) ;;
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1182 esac
1183 eval with_$ac_useropt=no ;;
1184
1185 --x)
1186 # Obsolete; use --with-x.
1187 with_x=yes ;;
1188
1189 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1190 | --x-incl | --x-inc | --x-in | --x-i)
1191 ac_prev=x_includes ;;
1192 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1193 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1194 x_includes=$ac_optarg ;;
1195
1196 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1197 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1198 ac_prev=x_libraries ;;
1199 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1200 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1201 x_libraries=$ac_optarg ;;
1202
1203 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1204 Try \`$0 --help' for more information"
1205 ;;
1206
1207 *=*)
1208 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1209 # Reject names that are not valid shell variable names.
1210 case $ac_envvar in #(
1211 '' | [0-9]* | *[!_$as_cr_alnum]* )
1212 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1213 esac
1214 eval $ac_envvar=\$ac_optarg
1215 export $ac_envvar ;;
1216
1217 *)
1218 # FIXME: should be removed in autoconf 3.0.
1219 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1220 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1221 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1222 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1223 ;;
1224
1225 esac
1226 done
1227
1228 if test -n "$ac_prev"; then
1229 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1230 as_fn_error $? "missing argument to $ac_option"
1231 fi
1232
1233 if test -n "$ac_unrecognized_opts"; then
1234 case $enable_option_checking in
1235 no) ;;
1236 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1237 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1238 esac
1239 fi
1240
1241 # Check all directory arguments for consistency.
1242 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1243 datadir sysconfdir sharedstatedir localstatedir includedir \
1244 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1245 libdir localedir mandir
1246 do
1247 eval ac_val=\$$ac_var
1248 # Remove trailing slashes.
1249 case $ac_val in
1250 */ )
1251 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1252 eval $ac_var=\$ac_val;;
1253 esac
1254 # Be sure to have absolute directory names.
1255 case $ac_val in
1256 [\\/$]* | ?:[\\/]* ) continue;;
1257 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1258 esac
1259 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1260 done
1261
1262 # There might be people who depend on the old broken behavior: `$host'
1263 # used to hold the argument of --host etc.
1264 # FIXME: To remove some day.
1265 build=$build_alias
1266 host=$host_alias
1267 target=$target_alias
1268
1269 # FIXME: To remove some day.
1270 if test "x$host_alias" != x; then
1271 if test "x$build_alias" = x; then
1272 cross_compiling=maybe
1273 elif test "x$build_alias" != "x$host_alias"; then
1274 cross_compiling=yes
1275 fi
1276 fi
1277
1278 ac_tool_prefix=
1279 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1280
1281 test "$silent" = yes && exec 6>/dev/null
1282
1283
1284 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1285 ac_ls_di=`ls -di .` &&
1286 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1287 as_fn_error $? "working directory cannot be determined"
1288 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1289 as_fn_error $? "pwd does not report name of working directory"
1290
1291
1292 # Find the source files, if location was not specified.
1293 if test -z "$srcdir"; then
1294 ac_srcdir_defaulted=yes
1295 # Try the directory containing this script, then the parent directory.
1296 ac_confdir=`$as_dirname -- "$as_myself" ||
1297 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1298 X"$as_myself" : 'X\(//\)[^/]' \| \
1299 X"$as_myself" : 'X\(//\)$' \| \
1300 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1301 $as_echo X"$as_myself" |
1302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1303 s//\1/
1304 q
1305 }
1306 /^X\(\/\/\)[^/].*/{
1307 s//\1/
1308 q
1309 }
1310 /^X\(\/\/\)$/{
1311 s//\1/
1312 q
1313 }
1314 /^X\(\/\).*/{
1315 s//\1/
1316 q
1317 }
1318 s/.*/./; q'`
1319 srcdir=$ac_confdir
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1321 srcdir=..
1322 fi
1323 else
1324 ac_srcdir_defaulted=no
1325 fi
1326 if test ! -r "$srcdir/$ac_unique_file"; then
1327 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1328 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1329 fi
1330 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1331 ac_abs_confdir=`(
1332 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1333 pwd)`
1334 # When building in place, set srcdir=.
1335 if test "$ac_abs_confdir" = "$ac_pwd"; then
1336 srcdir=.
1337 fi
1338 # Remove unnecessary trailing slashes from srcdir.
1339 # Double slashes in file names in object file debugging info
1340 # mess up M-x gdb in Emacs.
1341 case $srcdir in
1342 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1343 esac
1344 for ac_var in $ac_precious_vars; do
1345 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1346 eval ac_env_${ac_var}_value=\$${ac_var}
1347 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1349 done
1350
1351 #
1352 # Report the --help message.
1353 #
1354 if test "$ac_init_help" = "long"; then
1355 # Omit some internal or obsolete options to make the list less imposing.
1356 # This message is too long to be a string in the A/UX 3.1 sh.
1357 cat <<_ACEOF
1358 \`configure' configures xf86-input-mouse 1.9.0 to adapt to many kinds of systems.
1359
1360 Usage: $0 [OPTION]... [VAR=VALUE]...
1361
1362 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1363 VAR=VALUE. See below for descriptions of some of the useful variables.
1364
1365 Defaults for the options are specified in brackets.
1366
1367 Configuration:
1368 -h, --help display this help and exit
1369 --help=short display options specific to this package
1370 --help=recursive display the short help of all the included packages
1371 -V, --version display version information and exit
1372 -q, --quiet, --silent do not print \`checking ...' messages
1373 --cache-file=FILE cache test results in FILE [disabled]
1374 -C, --config-cache alias for \`--cache-file=config.cache'
1375 -n, --no-create do not create output files
1376 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1377
1378 Installation directories:
1379 --prefix=PREFIX install architecture-independent files in PREFIX
1380 [$ac_default_prefix]
1381 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1382 [PREFIX]
1383
1384 By default, \`make install' will install all the files in
1385 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1386 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1387 for instance \`--prefix=\$HOME'.
1388
1389 For better control, use the options below.
1390
1391 Fine tuning of the installation directories:
1392 --bindir=DIR user executables [EPREFIX/bin]
1393 --sbindir=DIR system admin executables [EPREFIX/sbin]
1394 --libexecdir=DIR program executables [EPREFIX/libexec]
1395 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1396 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1397 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1398 --libdir=DIR object code libraries [EPREFIX/lib]
1399 --includedir=DIR C header files [PREFIX/include]
1400 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1401 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1402 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1403 --infodir=DIR info documentation [DATAROOTDIR/info]
1404 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1405 --mandir=DIR man documentation [DATAROOTDIR/man]
1406 --docdir=DIR documentation root
1407 [DATAROOTDIR/doc/xf86-input-mouse]
1408 --htmldir=DIR html documentation [DOCDIR]
1409 --dvidir=DIR dvi documentation [DOCDIR]
1410 --pdfdir=DIR pdf documentation [DOCDIR]
1411 --psdir=DIR ps documentation [DOCDIR]
1412 _ACEOF
1413
1414 cat <<\_ACEOF
1415
1416 Program names:
1417 --program-prefix=PREFIX prepend PREFIX to installed program names
1418 --program-suffix=SUFFIX append SUFFIX to installed program names
1419 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1420
1421 System types:
1422 --build=BUILD configure for building on BUILD [guessed]
1423 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1424 _ACEOF
1425 fi
1426
1427 if test -n "$ac_init_help"; then
1428 case $ac_init_help in
1429 short | recursive ) echo "Configuration of xf86-input-mouse 1.9.0:";;
1430 esac
1431 cat <<\_ACEOF
1432
1433 Optional Features:
1434 --disable-option-checking ignore unrecognized --enable/--with options
1435 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1436 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1437 --enable-static[=PKGS] build static libraries [default=no]
1438 --enable-shared[=PKGS] build shared libraries [default=yes]
1439 --enable-fast-install[=PKGS]
1440 optimize for fast installation [default=yes]
1441 --enable-dependency-tracking
1442 do not reject slow dependency extractors
1443 --disable-dependency-tracking
1444 speeds up one-time build
1445 --disable-libtool-lock avoid locking (might break parallel builds)
1446 --disable-selective-werror
1447 Turn off selective compiler errors. (default:
1448 enabled)
1449 --enable-strict-compilation
1450 Enable all warnings from compiler and make them
1451 errors (default: disabled)
1452 --enable-silent-rules less verbose build output (undo: "make V=1")
1453 --disable-silent-rules verbose build output (undo: "make V=0")
1454
1455 Optional Packages:
1456 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1457 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1458 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1459 both]
1460 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1461 --with-sysroot=DIR Search for dependent libraries within DIR
1462 (or the compiler's sysroot if not specified).
1463 --with-lint Use a lint-style source code checker (default:
1464 disabled)
1465 --with-xorg-module-dir=DIR
1466 Default xorg module directory
1467 [[default=$libdir/xorg/modules]]
1468
1469
1470 Some influential environment variables:
1471 CC C compiler command
1472 CFLAGS C compiler flags
1473 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1474 nonstandard directory <lib dir>
1475 LIBS libraries to pass to the linker, e.g. -l<library>
1476 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1477 you have headers in a nonstandard directory <include dir>
1478 CPP C preprocessor
1479 PKG_CONFIG path to pkg-config utility
1480 PKG_CONFIG_PATH
1481 directories to add to pkg-config's search path
1482 PKG_CONFIG_LIBDIR
1483 path overriding pkg-config's built-in search path
1484 LINT Path to a lint-style command
1485 LINT_FLAGS Flags for the lint-style command
1486 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1487 XORG_LIBS linker flags for XORG, overriding pkg-config
1488
1489 Use these variables to override the choices made by `configure' or to help
1490 it to find libraries and programs with nonstandard names/locations.
1491
1492 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1493 _ACEOF
1494 ac_status=$?
1495 fi
1496
1497 if test "$ac_init_help" = "recursive"; then
1498 # If there are subdirs, report their specific --help.
1499 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500 test -d "$ac_dir" ||
1501 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1502 continue
1503 ac_builddir=.
1504
1505 case "$ac_dir" in
1506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *)
1508 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1509 # A ".." for each directory in $ac_dir_suffix.
1510 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1511 case $ac_top_builddir_sub in
1512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1514 esac ;;
1515 esac
1516 ac_abs_top_builddir=$ac_pwd
1517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518 # for backward compatibility:
1519 ac_top_builddir=$ac_top_build_prefix
1520
1521 case $srcdir in
1522 .) # We are building in place.
1523 ac_srcdir=.
1524 ac_top_srcdir=$ac_top_builddir_sub
1525 ac_abs_top_srcdir=$ac_pwd ;;
1526 [\\/]* | ?:[\\/]* ) # Absolute name.
1527 ac_srcdir=$srcdir$ac_dir_suffix;
1528 ac_top_srcdir=$srcdir
1529 ac_abs_top_srcdir=$srcdir ;;
1530 *) # Relative name.
1531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532 ac_top_srcdir=$ac_top_build_prefix$srcdir
1533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1534 esac
1535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1536
1537 cd "$ac_dir" || { ac_status=$?; continue; }
1538 # Check for guested configure.
1539 if test -f "$ac_srcdir/configure.gnu"; then
1540 echo &&
1541 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1542 elif test -f "$ac_srcdir/configure"; then
1543 echo &&
1544 $SHELL "$ac_srcdir/configure" --help=recursive
1545 else
1546 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1547 fi || ac_status=$?
1548 cd "$ac_pwd" || { ac_status=$?; break; }
1549 done
1550 fi
1551
1552 test -n "$ac_init_help" && exit $ac_status
1553 if $ac_init_version; then
1554 cat <<\_ACEOF
1555 xf86-input-mouse configure 1.9.0
1556 generated by GNU Autoconf 2.69
1557
1558 Copyright (C) 2012 Free Software Foundation, Inc.
1559 This configure script is free software; the Free Software Foundation
1560 gives unlimited permission to copy, distribute and modify it.
1561 _ACEOF
1562 exit
1563 fi
1564
1565 ## ------------------------ ##
1566 ## Autoconf initialization. ##
1567 ## ------------------------ ##
1568
1569 # ac_fn_c_try_compile LINENO
1570 # --------------------------
1571 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1572 ac_fn_c_try_compile ()
1573 {
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 rm -f conftest.$ac_objext
1576 if { { ac_try="$ac_compile"
1577 case "(($ac_try" in
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1580 esac
1581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582 $as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_compile") 2>conftest.err
1584 ac_status=$?
1585 if test -s conftest.err; then
1586 grep -v '^ *+' conftest.err >conftest.er1
1587 cat conftest.er1 >&5
1588 mv -f conftest.er1 conftest.err
1589 fi
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } && {
1592 test -z "$ac_c_werror_flag" ||
1593 test ! -s conftest.err
1594 } && test -s conftest.$ac_objext; then :
1595 ac_retval=0
1596 else
1597 $as_echo "$as_me: failed program was:" >&5
1598 sed 's/^/| /' conftest.$ac_ext >&5
1599
1600 ac_retval=1
1601 fi
1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603 as_fn_set_status $ac_retval
1604
1605 } # ac_fn_c_try_compile
1606
1607 # ac_fn_c_try_link LINENO
1608 # -----------------------
1609 # Try to link conftest.$ac_ext, and return whether this succeeded.
1610 ac_fn_c_try_link ()
1611 {
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 rm -f conftest.$ac_objext conftest$ac_exeext
1614 if { { ac_try="$ac_link"
1615 case "(($ac_try" in
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1618 esac
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 $as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_link") 2>conftest.err
1622 ac_status=$?
1623 if test -s conftest.err; then
1624 grep -v '^ *+' conftest.err >conftest.er1
1625 cat conftest.er1 >&5
1626 mv -f conftest.er1 conftest.err
1627 fi
1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629 test $ac_status = 0; } && {
1630 test -z "$ac_c_werror_flag" ||
1631 test ! -s conftest.err
1632 } && test -s conftest$ac_exeext && {
1633 test "$cross_compiling" = yes ||
1634 test -x conftest$ac_exeext
1635 }; then :
1636 ac_retval=0
1637 else
1638 $as_echo "$as_me: failed program was:" >&5
1639 sed 's/^/| /' conftest.$ac_ext >&5
1640
1641 ac_retval=1
1642 fi
1643 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1644 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1645 # interfere with the next link command; also delete a directory that is
1646 # left behind by Apple's compiler. We do this before executing the actions.
1647 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649 as_fn_set_status $ac_retval
1650
1651 } # ac_fn_c_try_link
1652
1653 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1654 # -------------------------------------------------------
1655 # Tests whether HEADER exists and can be compiled using the include files in
1656 # INCLUDES, setting the cache variable VAR accordingly.
1657 ac_fn_c_check_header_compile ()
1658 {
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661 $as_echo_n "checking for $2... " >&6; }
1662 if eval \${$3+:} false; then :
1663 $as_echo_n "(cached) " >&6
1664 else
1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666 /* end confdefs.h. */
1667 $4
1668 #include <$2>
1669 _ACEOF
1670 if ac_fn_c_try_compile "$LINENO"; then :
1671 eval "$3=yes"
1672 else
1673 eval "$3=no"
1674 fi
1675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1676 fi
1677 eval ac_res=\$$3
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679 $as_echo "$ac_res" >&6; }
1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681
1682 } # ac_fn_c_check_header_compile
1683
1684 # ac_fn_c_try_cpp LINENO
1685 # ----------------------
1686 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1687 ac_fn_c_try_cpp ()
1688 {
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 if { { ac_try="$ac_cpp conftest.$ac_ext"
1691 case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1698 ac_status=$?
1699 if test -s conftest.err; then
1700 grep -v '^ *+' conftest.err >conftest.er1
1701 cat conftest.er1 >&5
1702 mv -f conftest.er1 conftest.err
1703 fi
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } > conftest.i && {
1706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1707 test ! -s conftest.err
1708 }; then :
1709 ac_retval=0
1710 else
1711 $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1713
1714 ac_retval=1
1715 fi
1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717 as_fn_set_status $ac_retval
1718
1719 } # ac_fn_c_try_cpp
1720
1721 # ac_fn_c_try_run LINENO
1722 # ----------------------
1723 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1724 # that executables *can* be run.
1725 ac_fn_c_try_run ()
1726 {
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 if { { ac_try="$ac_link"
1729 case "(($ac_try" in
1730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731 *) ac_try_echo=$ac_try;;
1732 esac
1733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734 $as_echo "$ac_try_echo"; } >&5
1735 (eval "$ac_link") 2>&5
1736 ac_status=$?
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1739 { { case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_try") 2>&5
1746 ac_status=$?
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; }; }; then :
1749 ac_retval=0
1750 else
1751 $as_echo "$as_me: program exited with status $ac_status" >&5
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1754
1755 ac_retval=$ac_status
1756 fi
1757 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759 as_fn_set_status $ac_retval
1760
1761 } # ac_fn_c_try_run
1762
1763 # ac_fn_c_check_func LINENO FUNC VAR
1764 # ----------------------------------
1765 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1766 ac_fn_c_check_func ()
1767 {
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 $as_echo_n "checking for $2... " >&6; }
1771 if eval \${$3+:} false; then :
1772 $as_echo_n "(cached) " >&6
1773 else
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1776 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1778 #define $2 innocuous_$2
1779
1780 /* System header to define __stub macros and hopefully few prototypes,
1781 which can conflict with char $2 (); below.
1782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1783 <limits.h> exists even on freestanding compilers. */
1784
1785 #ifdef __STDC__
1786 # include <limits.h>
1787 #else
1788 # include <assert.h>
1789 #endif
1790
1791 #undef $2
1792
1793 /* Override any GCC internal prototype to avoid an error.
1794 Use char because int might match the return type of a GCC
1795 builtin and then its argument prototype would still apply. */
1796 #ifdef __cplusplus
1797 extern "C"
1798 #endif
1799 char $2 ();
1800 /* The GNU C library defines this for functions which it implements
1801 to always fail with ENOSYS. Some functions are actually named
1802 something starting with __ and the normal name is an alias. */
1803 #if defined __stub_$2 || defined __stub___$2
1804 choke me
1805 #endif
1806
1807 int
1808 main ()
1809 {
1810 return $2 ();
1811 ;
1812 return 0;
1813 }
1814 _ACEOF
1815 if ac_fn_c_try_link "$LINENO"; then :
1816 eval "$3=yes"
1817 else
1818 eval "$3=no"
1819 fi
1820 rm -f core conftest.err conftest.$ac_objext \
1821 conftest$ac_exeext conftest.$ac_ext
1822 fi
1823 eval ac_res=\$$3
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825 $as_echo "$ac_res" >&6; }
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827
1828 } # ac_fn_c_check_func
1829
1830 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1831 # ---------------------------------------------
1832 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1833 # accordingly.
1834 ac_fn_c_check_decl ()
1835 {
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 as_decl_name=`echo $2|sed 's/ *(.*//'`
1838 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1840 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1841 if eval \${$3+:} false; then :
1842 $as_echo_n "(cached) " >&6
1843 else
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h. */
1846 $4
1847 int
1848 main ()
1849 {
1850 #ifndef $as_decl_name
1851 #ifdef __cplusplus
1852 (void) $as_decl_use;
1853 #else
1854 (void) $as_decl_name;
1855 #endif
1856 #endif
1857
1858 ;
1859 return 0;
1860 }
1861 _ACEOF
1862 if ac_fn_c_try_compile "$LINENO"; then :
1863 eval "$3=yes"
1864 else
1865 eval "$3=no"
1866 fi
1867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1868 fi
1869 eval ac_res=\$$3
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871 $as_echo "$ac_res" >&6; }
1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873
1874 } # ac_fn_c_check_decl
1875 cat >config.log <<_ACEOF
1876 This file contains any messages produced by compilers while
1877 running configure, to aid debugging if configure makes a mistake.
1878
1879 It was created by xf86-input-mouse $as_me 1.9.0, which was
1880 generated by GNU Autoconf 2.69. Invocation command line was
1881
1882 $ $0 $@
1883
1884 _ACEOF
1885 exec 5>>config.log
1886 {
1887 cat <<_ASUNAME
1888 ## --------- ##
1889 ## Platform. ##
1890 ## --------- ##
1891
1892 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1893 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1894 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1895 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1896 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1897
1898 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1899 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1900
1901 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1902 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1903 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1904 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1905 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1906 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1907 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1908
1909 _ASUNAME
1910
1911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912 for as_dir in $PATH
1913 do
1914 IFS=$as_save_IFS
1915 test -z "$as_dir" && as_dir=.
1916 $as_echo "PATH: $as_dir"
1917 done
1918 IFS=$as_save_IFS
1919
1920 } >&5
1921
1922 cat >&5 <<_ACEOF
1923
1924
1925 ## ----------- ##
1926 ## Core tests. ##
1927 ## ----------- ##
1928
1929 _ACEOF
1930
1931
1932 # Keep a trace of the command line.
1933 # Strip out --no-create and --no-recursion so they do not pile up.
1934 # Strip out --silent because we don't want to record it for future runs.
1935 # Also quote any args containing shell meta-characters.
1936 # Make two passes to allow for proper duplicate-argument suppression.
1937 ac_configure_args=
1938 ac_configure_args0=
1939 ac_configure_args1=
1940 ac_must_keep_next=false
1941 for ac_pass in 1 2
1942 do
1943 for ac_arg
1944 do
1945 case $ac_arg in
1946 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1947 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1948 | -silent | --silent | --silen | --sile | --sil)
1949 continue ;;
1950 *\'*)
1951 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1952 esac
1953 case $ac_pass in
1954 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1955 2)
1956 as_fn_append ac_configure_args1 " '$ac_arg'"
1957 if test $ac_must_keep_next = true; then
1958 ac_must_keep_next=false # Got value, back to normal.
1959 else
1960 case $ac_arg in
1961 *=* | --config-cache | -C | -disable-* | --disable-* \
1962 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1963 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1964 | -with-* | --with-* | -without-* | --without-* | --x)
1965 case "$ac_configure_args0 " in
1966 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1967 esac
1968 ;;
1969 -* ) ac_must_keep_next=true ;;
1970 esac
1971 fi
1972 as_fn_append ac_configure_args " '$ac_arg'"
1973 ;;
1974 esac
1975 done
1976 done
1977 { ac_configure_args0=; unset ac_configure_args0;}
1978 { ac_configure_args1=; unset ac_configure_args1;}
1979
1980 # When interrupted or exit'd, cleanup temporary files, and complete
1981 # config.log. We remove comments because anyway the quotes in there
1982 # would cause problems or look ugly.
1983 # WARNING: Use '\'' to represent an apostrophe within the trap.
1984 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1985 trap 'exit_status=$?
1986 # Save into config.log some information that might help in debugging.
1987 {
1988 echo
1989
1990 $as_echo "## ---------------- ##
1991 ## Cache variables. ##
1992 ## ---------------- ##"
1993 echo
1994 # The following way of writing the cache mishandles newlines in values,
1995 (
1996 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1997 eval ac_val=\$$ac_var
1998 case $ac_val in #(
1999 *${as_nl}*)
2000 case $ac_var in #(
2001 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2002 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2003 esac
2004 case $ac_var in #(
2005 _ | IFS | as_nl) ;; #(
2006 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2007 *) { eval $ac_var=; unset $ac_var;} ;;
2008 esac ;;
2009 esac
2010 done
2011 (set) 2>&1 |
2012 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2013 *${as_nl}ac_space=\ *)
2014 sed -n \
2015 "s/'\''/'\''\\\\'\'''\''/g;
2016 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2017 ;; #(
2018 *)
2019 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2020 ;;
2021 esac |
2022 sort
2023 )
2024 echo
2025
2026 $as_echo "## ----------------- ##
2027 ## Output variables. ##
2028 ## ----------------- ##"
2029 echo
2030 for ac_var in $ac_subst_vars
2031 do
2032 eval ac_val=\$$ac_var
2033 case $ac_val in
2034 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2035 esac
2036 $as_echo "$ac_var='\''$ac_val'\''"
2037 done | sort
2038 echo
2039
2040 if test -n "$ac_subst_files"; then
2041 $as_echo "## ------------------- ##
2042 ## File substitutions. ##
2043 ## ------------------- ##"
2044 echo
2045 for ac_var in $ac_subst_files
2046 do
2047 eval ac_val=\$$ac_var
2048 case $ac_val in
2049 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2050 esac
2051 $as_echo "$ac_var='\''$ac_val'\''"
2052 done | sort
2053 echo
2054 fi
2055
2056 if test -s confdefs.h; then
2057 $as_echo "## ----------- ##
2058 ## confdefs.h. ##
2059 ## ----------- ##"
2060 echo
2061 cat confdefs.h
2062 echo
2063 fi
2064 test "$ac_signal" != 0 &&
2065 $as_echo "$as_me: caught signal $ac_signal"
2066 $as_echo "$as_me: exit $exit_status"
2067 } >&5
2068 rm -f core *.core core.conftest.* &&
2069 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2070 exit $exit_status
2071 ' 0
2072 for ac_signal in 1 2 13 15; do
2073 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2074 done
2075 ac_signal=0
2076
2077 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2078 rm -f -r conftest* confdefs.h
2079
2080 $as_echo "/* confdefs.h */" > confdefs.h
2081
2082 # Predefined preprocessor variables.
2083
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_NAME "$PACKAGE_NAME"
2086 _ACEOF
2087
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2090 _ACEOF
2091
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2094 _ACEOF
2095
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_STRING "$PACKAGE_STRING"
2098 _ACEOF
2099
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2102 _ACEOF
2103
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_URL "$PACKAGE_URL"
2106 _ACEOF
2107
2108
2109 # Let the site file select an alternate cache file if it wants to.
2110 # Prefer an explicitly selected file to automatically selected ones.
2111 ac_site_file1=NONE
2112 ac_site_file2=NONE
2113 if test -n "$CONFIG_SITE"; then
2114 # We do not want a PATH search for config.site.
2115 case $CONFIG_SITE in #((
2116 -*) ac_site_file1=./$CONFIG_SITE;;
2117 */*) ac_site_file1=$CONFIG_SITE;;
2118 *) ac_site_file1=./$CONFIG_SITE;;
2119 esac
2120 elif test "x$prefix" != xNONE; then
2121 ac_site_file1=$prefix/share/config.site
2122 ac_site_file2=$prefix/etc/config.site
2123 else
2124 ac_site_file1=$ac_default_prefix/share/config.site
2125 ac_site_file2=$ac_default_prefix/etc/config.site
2126 fi
2127 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2128 do
2129 test "x$ac_site_file" = xNONE && continue
2130 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2132 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2133 sed 's/^/| /' "$ac_site_file" >&5
2134 . "$ac_site_file" \
2135 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2137 as_fn_error $? "failed to load site script $ac_site_file
2138 See \`config.log' for more details" "$LINENO" 5; }
2139 fi
2140 done
2141
2142 if test -r "$cache_file"; then
2143 # Some versions of bash will fail to source /dev/null (special files
2144 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2145 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2147 $as_echo "$as_me: loading cache $cache_file" >&6;}
2148 case $cache_file in
2149 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2150 *) . "./$cache_file";;
2151 esac
2152 fi
2153 else
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2155 $as_echo "$as_me: creating cache $cache_file" >&6;}
2156 >$cache_file
2157 fi
2158
2159 # Check that the precious variables saved in the cache have kept the same
2160 # value.
2161 ac_cache_corrupted=false
2162 for ac_var in $ac_precious_vars; do
2163 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2164 eval ac_new_set=\$ac_env_${ac_var}_set
2165 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2166 eval ac_new_val=\$ac_env_${ac_var}_value
2167 case $ac_old_set,$ac_new_set in
2168 set,)
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2170 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2171 ac_cache_corrupted=: ;;
2172 ,set)
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2174 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2175 ac_cache_corrupted=: ;;
2176 ,);;
2177 *)
2178 if test "x$ac_old_val" != "x$ac_new_val"; then
2179 # differences in whitespace do not lead to failure.
2180 ac_old_val_w=`echo x $ac_old_val`
2181 ac_new_val_w=`echo x $ac_new_val`
2182 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2184 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2185 ac_cache_corrupted=:
2186 else
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2188 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2189 eval $ac_var=\$ac_old_val
2190 fi
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2192 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2194 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2195 fi;;
2196 esac
2197 # Pass precious variables to config.status.
2198 if test "$ac_new_set" = set; then
2199 case $ac_new_val in
2200 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2201 *) ac_arg=$ac_var=$ac_new_val ;;
2202 esac
2203 case " $ac_configure_args " in
2204 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2205 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2206 esac
2207 fi
2208 done
2209 if $ac_cache_corrupted; then
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2213 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2214 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2215 fi
2216 ## -------------------- ##
2217 ## Main body of script. ##
2218 ## -------------------- ##
2219
2220 ac_ext=c
2221 ac_cpp='$CPP $CPPFLAGS'
2222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2225
2226
2227
2228 ac_config_headers="$ac_config_headers config.h"
2229
2230 ac_aux_dir=
2231 for ac_dir in . "$srcdir"/.; do
2232 if test -f "$ac_dir/install-sh"; then
2233 ac_aux_dir=$ac_dir
2234 ac_install_sh="$ac_aux_dir/install-sh -c"
2235 break
2236 elif test -f "$ac_dir/install.sh"; then
2237 ac_aux_dir=$ac_dir
2238 ac_install_sh="$ac_aux_dir/install.sh -c"
2239 break
2240 elif test -f "$ac_dir/shtool"; then
2241 ac_aux_dir=$ac_dir
2242 ac_install_sh="$ac_aux_dir/shtool install -c"
2243 break
2244 fi
2245 done
2246 if test -z "$ac_aux_dir"; then
2247 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2248 fi
2249
2250 # These three variables are undocumented and unsupported,
2251 # and are intended to be withdrawn in a future Autoconf release.
2252 # They can cause serious problems if a builder's source tree is in a directory
2253 # whose full name contains unusual characters.
2254 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2255 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2256 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2257
2258
2259
2260 # Initialize Automake
2261 am__api_version='1.12'
2262
2263 # Find a good install program. We prefer a C program (faster),
2264 # so one script is as good as another. But avoid the broken or
2265 # incompatible versions:
2266 # SysV /etc/install, /usr/sbin/install
2267 # SunOS /usr/etc/install
2268 # IRIX /sbin/install
2269 # AIX /bin/install
2270 # AmigaOS /C/install, which installs bootblocks on floppy discs
2271 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2272 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2273 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2274 # OS/2's system install, which has a completely different semantic
2275 # ./install, which can be erroneously created by make from ./install.sh.
2276 # Reject install programs that cannot install multiple files.
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2278 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2279 if test -z "$INSTALL"; then
2280 if ${ac_cv_path_install+:} false; then :
2281 $as_echo_n "(cached) " >&6
2282 else
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 for as_dir in $PATH
2285 do
2286 IFS=$as_save_IFS
2287 test -z "$as_dir" && as_dir=.
2288 # Account for people who put trailing slashes in PATH elements.
2289 case $as_dir/ in #((
2290 ./ | .// | /[cC]/* | \
2291 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2292 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2293 /usr/ucb/* ) ;;
2294 *)
2295 # OSF1 and SCO ODT 3.0 have their own names for install.
2296 # Don't use installbsd from OSF since it installs stuff as root
2297 # by default.
2298 for ac_prog in ginstall scoinst install; do
2299 for ac_exec_ext in '' $ac_executable_extensions; do
2300 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2301 if test $ac_prog = install &&
2302 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2303 # AIX install. It has an incompatible calling convention.
2304 :
2305 elif test $ac_prog = install &&
2306 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2307 # program-specific install script used by HP pwplus--don't use.
2308 :
2309 else
2310 rm -rf conftest.one conftest.two conftest.dir
2311 echo one > conftest.one
2312 echo two > conftest.two
2313 mkdir conftest.dir
2314 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2315 test -s conftest.one && test -s conftest.two &&
2316 test -s conftest.dir/conftest.one &&
2317 test -s conftest.dir/conftest.two
2318 then
2319 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2320 break 3
2321 fi
2322 fi
2323 fi
2324 done
2325 done
2326 ;;
2327 esac
2328
2329 done
2330 IFS=$as_save_IFS
2331
2332 rm -rf conftest.one conftest.two conftest.dir
2333
2334 fi
2335 if test "${ac_cv_path_install+set}" = set; then
2336 INSTALL=$ac_cv_path_install
2337 else
2338 # As a last resort, use the slow shell script. Don't cache a
2339 # value for INSTALL within a source directory, because that will
2340 # break other packages using the cache if that directory is
2341 # removed, or if the value is a relative name.
2342 INSTALL=$ac_install_sh
2343 fi
2344 fi
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2346 $as_echo "$INSTALL" >&6; }
2347
2348 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2349 # It thinks the first close brace ends the variable substitution.
2350 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2351
2352 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2353
2354 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2355
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2357 $as_echo_n "checking whether build environment is sane... " >&6; }
2358 # Reject unsafe characters in $srcdir or the absolute working directory
2359 # name. Accept space and tab only in the latter.
2360 am_lf='
2361 '
2362 case `pwd` in
2363 *[\\\"\#\$\&\'\`$am_lf]*)
2364 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2365 esac
2366 case $srcdir in
2367 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2368 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2369 esac
2370
2371 # Do 'set' in a subshell so we don't clobber the current shell's
2372 # arguments. Must try -L first in case configure is actually a
2373 # symlink; some systems play weird games with the mod time of symlinks
2374 # (eg FreeBSD returns the mod time of the symlink's containing
2375 # directory).
2376 if (
2377 am_has_slept=no
2378 for am_try in 1 2; do
2379 echo "timestamp, slept: $am_has_slept" > conftest.file
2380 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2381 if test "$*" = "X"; then
2382 # -L didn't work.
2383 set X `ls -t "$srcdir/configure" conftest.file`
2384 fi
2385 if test "$*" != "X $srcdir/configure conftest.file" \
2386 && test "$*" != "X conftest.file $srcdir/configure"; then
2387
2388 # If neither matched, then we have a broken ls. This can happen
2389 # if, for instance, CONFIG_SHELL is bash and it inherits a
2390 # broken ls alias from the environment. This has actually
2391 # happened. Such a system could not be considered "sane".
2392 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2393 alias in your environment" "$LINENO" 5
2394 fi
2395 if test "$2" = conftest.file || test $am_try -eq 2; then
2396 break
2397 fi
2398 # Just in case.
2399 sleep 1
2400 am_has_slept=yes
2401 done
2402 test "$2" = conftest.file
2403 )
2404 then
2405 # Ok.
2406 :
2407 else
2408 as_fn_error $? "newly created file is older than distributed files!
2409 Check your system clock" "$LINENO" 5
2410 fi
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2412 $as_echo "yes" >&6; }
2413 # If we didn't sleep, we still need to ensure time stamps of config.status and
2414 # generated files are strictly newer.
2415 am_sleep_pid=
2416 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2417 ( sleep 1 ) &
2418 am_sleep_pid=$!
2419 fi
2420
2421 rm -f conftest.file
2422
2423 test "$program_prefix" != NONE &&
2424 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2425 # Use a double $ so make ignores it.
2426 test "$program_suffix" != NONE &&
2427 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2428 # Double any \ or $.
2429 # By default was `s,x,x', remove it if useless.
2430 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2431 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2432
2433 # expand $ac_aux_dir to an absolute path
2434 am_aux_dir=`cd $ac_aux_dir && pwd`
2435
2436 if test x"${MISSING+set}" != xset; then
2437 case $am_aux_dir in
2438 *\ * | *\ *)
2439 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2440 *)
2441 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2442 esac
2443 fi
2444 # Use eval to expand $SHELL
2445 if eval "$MISSING --run true"; then
2446 am_missing_run="$MISSING --run "
2447 else
2448 am_missing_run=
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2450 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2451 fi
2452
2453 if test x"${install_sh}" != xset; then
2454 case $am_aux_dir in
2455 *\ * | *\ *)
2456 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2457 *)
2458 install_sh="\${SHELL} $am_aux_dir/install-sh"
2459 esac
2460 fi
2461
2462 # Installed binaries are usually stripped using 'strip' when the user
2463 # run "make install-strip". However 'strip' might not be the right
2464 # tool to use in cross-compilation environments, therefore Automake
2465 # will honor the 'STRIP' environment variable to overrule this program.
2466 if test "$cross_compiling" != no; then
2467 if test -n "$ac_tool_prefix"; then
2468 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2469 set dummy ${ac_tool_prefix}strip; ac_word=$2
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2471 $as_echo_n "checking for $ac_word... " >&6; }
2472 if ${ac_cv_prog_STRIP+:} false; then :
2473 $as_echo_n "(cached) " >&6
2474 else
2475 if test -n "$STRIP"; then
2476 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2477 else
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479 for as_dir in $PATH
2480 do
2481 IFS=$as_save_IFS
2482 test -z "$as_dir" && as_dir=.
2483 for ac_exec_ext in '' $ac_executable_extensions; do
2484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2485 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2487 break 2
2488 fi
2489 done
2490 done
2491 IFS=$as_save_IFS
2492
2493 fi
2494 fi
2495 STRIP=$ac_cv_prog_STRIP
2496 if test -n "$STRIP"; then
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2498 $as_echo "$STRIP" >&6; }
2499 else
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2501 $as_echo "no" >&6; }
2502 fi
2503
2504
2505 fi
2506 if test -z "$ac_cv_prog_STRIP"; then
2507 ac_ct_STRIP=$STRIP
2508 # Extract the first word of "strip", so it can be a program name with args.
2509 set dummy strip; ac_word=$2
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2511 $as_echo_n "checking for $ac_word... " >&6; }
2512 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2513 $as_echo_n "(cached) " >&6
2514 else
2515 if test -n "$ac_ct_STRIP"; then
2516 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2517 else
2518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519 for as_dir in $PATH
2520 do
2521 IFS=$as_save_IFS
2522 test -z "$as_dir" && as_dir=.
2523 for ac_exec_ext in '' $ac_executable_extensions; do
2524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2525 ac_cv_prog_ac_ct_STRIP="strip"
2526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2527 break 2
2528 fi
2529 done
2530 done
2531 IFS=$as_save_IFS
2532
2533 fi
2534 fi
2535 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2536 if test -n "$ac_ct_STRIP"; then
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2538 $as_echo "$ac_ct_STRIP" >&6; }
2539 else
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2541 $as_echo "no" >&6; }
2542 fi
2543
2544 if test "x$ac_ct_STRIP" = x; then
2545 STRIP=":"
2546 else
2547 case $cross_compiling:$ac_tool_warned in
2548 yes:)
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2551 ac_tool_warned=yes ;;
2552 esac
2553 STRIP=$ac_ct_STRIP
2554 fi
2555 else
2556 STRIP="$ac_cv_prog_STRIP"
2557 fi
2558
2559 fi
2560 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2561
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2563 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2564 if test -z "$MKDIR_P"; then
2565 if ${ac_cv_path_mkdir+:} false; then :
2566 $as_echo_n "(cached) " >&6
2567 else
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2570 do
2571 IFS=$as_save_IFS
2572 test -z "$as_dir" && as_dir=.
2573 for ac_prog in mkdir gmkdir; do
2574 for ac_exec_ext in '' $ac_executable_extensions; do
2575 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2576 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2577 'mkdir (GNU coreutils) '* | \
2578 'mkdir (coreutils) '* | \
2579 'mkdir (fileutils) '4.1*)
2580 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2581 break 3;;
2582 esac
2583 done
2584 done
2585 done
2586 IFS=$as_save_IFS
2587
2588 fi
2589
2590 test -d ./--version && rmdir ./--version
2591 if test "${ac_cv_path_mkdir+set}" = set; then
2592 MKDIR_P="$ac_cv_path_mkdir -p"
2593 else
2594 # As a last resort, use the slow shell script. Don't cache a
2595 # value for MKDIR_P within a source directory, because that will
2596 # break other packages using the cache if that directory is
2597 # removed, or if the value is a relative name.
2598 MKDIR_P="$ac_install_sh -d"
2599 fi
2600 fi
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2602 $as_echo "$MKDIR_P" >&6; }
2603
2604 for ac_prog in gawk mawk nawk awk
2605 do
2606 # Extract the first word of "$ac_prog", so it can be a program name with args.
2607 set dummy $ac_prog; ac_word=$2
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2609 $as_echo_n "checking for $ac_word... " >&6; }
2610 if ${ac_cv_prog_AWK+:} false; then :
2611 $as_echo_n "(cached) " >&6
2612 else
2613 if test -n "$AWK"; then
2614 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2615 else
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 for as_dir in $PATH
2618 do
2619 IFS=$as_save_IFS
2620 test -z "$as_dir" && as_dir=.
2621 for ac_exec_ext in '' $ac_executable_extensions; do
2622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2623 ac_cv_prog_AWK="$ac_prog"
2624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2625 break 2
2626 fi
2627 done
2628 done
2629 IFS=$as_save_IFS
2630
2631 fi
2632 fi
2633 AWK=$ac_cv_prog_AWK
2634 if test -n "$AWK"; then
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2636 $as_echo "$AWK" >&6; }
2637 else
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2639 $as_echo "no" >&6; }
2640 fi
2641
2642
2643 test -n "$AWK" && break
2644 done
2645
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2647 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2648 set x ${MAKE-make}
2649 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2650 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2651 $as_echo_n "(cached) " >&6
2652 else
2653 cat >conftest.make <<\_ACEOF
2654 SHELL = /bin/sh
2655 all:
2656 @echo '@@@%%%=$(MAKE)=@@@%%%'
2657 _ACEOF
2658 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2659 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2660 *@@@%%%=?*=@@@%%%*)
2661 eval ac_cv_prog_make_${ac_make}_set=yes;;
2662 *)
2663 eval ac_cv_prog_make_${ac_make}_set=no;;
2664 esac
2665 rm -f conftest.make
2666 fi
2667 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2669 $as_echo "yes" >&6; }
2670 SET_MAKE=
2671 else
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2673 $as_echo "no" >&6; }
2674 SET_MAKE="MAKE=${MAKE-make}"
2675 fi
2676
2677 rm -rf .tst 2>/dev/null
2678 mkdir .tst 2>/dev/null
2679 if test -d .tst; then
2680 am__leading_dot=.
2681 else
2682 am__leading_dot=_
2683 fi
2684 rmdir .tst 2>/dev/null
2685
2686 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2687 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2688 # is not polluted with repeated "-I."
2689 am__isrc=' -I$(srcdir)'
2690 # test to see if srcdir already configured
2691 if test -f $srcdir/config.status; then
2692 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2693 fi
2694 fi
2695
2696 # test whether we have cygpath
2697 if test -z "$CYGPATH_W"; then
2698 if (cygpath --version) >/dev/null 2>/dev/null; then
2699 CYGPATH_W='cygpath -w'
2700 else
2701 CYGPATH_W=echo
2702 fi
2703 fi
2704
2705
2706 # Define the identity of the package.
2707 PACKAGE='xf86-input-mouse'
2708 VERSION='1.9.0'
2709
2710
2711 cat >>confdefs.h <<_ACEOF
2712 #define PACKAGE "$PACKAGE"
2713 _ACEOF
2714
2715
2716 cat >>confdefs.h <<_ACEOF
2717 #define VERSION "$VERSION"
2718 _ACEOF
2719
2720 # Some tools Automake needs.
2721
2722 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2723
2724
2725 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2726
2727
2728 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2729
2730
2731 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2732
2733
2734 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2735
2736 # For better backward compatibility. To be removed once Automake 1.9.x
2737 # dies out for good. For more background, see:
2738 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2739 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2740 mkdir_p='$(MKDIR_P)'
2741
2742 # We need awk for the "check" target. The system "awk" is bad on
2743 # some platforms.
2744 # Always define AMTAR for backward compatibility. Yes, it's still used
2745 # in the wild :-( We should find a proper way to deprecate it ...
2746 AMTAR='$${TAR-tar}'
2747
2748 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2749
2750
2751
2752
2753
2754
2755 # Initialize libtool
2756 # Check whether --enable-static was given.
2757 if test "${enable_static+set}" = set; then :
2758 enableval=$enable_static; p=${PACKAGE-default}
2759 case $enableval in
2760 yes) enable_static=yes ;;
2761 no) enable_static=no ;;
2762 *)
2763 enable_static=no
2764 # Look at the argument we got. We use all the common list separators.
2765 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2766 for pkg in $enableval; do
2767 IFS="$lt_save_ifs"
2768 if test "X$pkg" = "X$p"; then
2769 enable_static=yes
2770 fi
2771 done
2772 IFS="$lt_save_ifs"
2773 ;;
2774 esac
2775 else
2776 enable_static=no
2777 fi
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787 case `pwd` in
2788 *\ * | *\ *)
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2790 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2791 esac
2792
2793
2794
2795 macro_version='2.4.2'
2796 macro_revision='1.3337'
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810 ltmain="$ac_aux_dir/ltmain.sh"
2811
2812 # Make sure we can run config.sub.
2813 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2814 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2815
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2817 $as_echo_n "checking build system type... " >&6; }
2818 if ${ac_cv_build+:} false; then :
2819 $as_echo_n "(cached) " >&6
2820 else
2821 ac_build_alias=$build_alias
2822 test "x$ac_build_alias" = x &&
2823 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2824 test "x$ac_build_alias" = x &&
2825 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2826 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2827 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2828
2829 fi
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2831 $as_echo "$ac_cv_build" >&6; }
2832 case $ac_cv_build in
2833 *-*-*) ;;
2834 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2835 esac
2836 build=$ac_cv_build
2837 ac_save_IFS=$IFS; IFS='-'
2838 set x $ac_cv_build
2839 shift
2840 build_cpu=$1
2841 build_vendor=$2
2842 shift; shift
2843 # Remember, the first character of IFS is used to create $*,
2844 # except with old shells:
2845 build_os=$*
2846 IFS=$ac_save_IFS
2847 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2848
2849
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2851 $as_echo_n "checking host system type... " >&6; }
2852 if ${ac_cv_host+:} false; then :
2853 $as_echo_n "(cached) " >&6
2854 else
2855 if test "x$host_alias" = x; then
2856 ac_cv_host=$ac_cv_build
2857 else
2858 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2859 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2860 fi
2861
2862 fi
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2864 $as_echo "$ac_cv_host" >&6; }
2865 case $ac_cv_host in
2866 *-*-*) ;;
2867 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2868 esac
2869 host=$ac_cv_host
2870 ac_save_IFS=$IFS; IFS='-'
2871 set x $ac_cv_host
2872 shift
2873 host_cpu=$1
2874 host_vendor=$2
2875 shift; shift
2876 # Remember, the first character of IFS is used to create $*,
2877 # except with old shells:
2878 host_os=$*
2879 IFS=$ac_save_IFS
2880 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2881
2882
2883 # Backslashify metacharacters that are still active within
2884 # double-quoted strings.
2885 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2886
2887 # Same as above, but do not quote variable references.
2888 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2889
2890 # Sed substitution to delay expansion of an escaped shell variable in a
2891 # double_quote_subst'ed string.
2892 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2893
2894 # Sed substitution to delay expansion of an escaped single quote.
2895 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2896
2897 # Sed substitution to avoid accidental globbing in evaled expressions
2898 no_glob_subst='s/\*/\\\*/g'
2899
2900 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2901 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2902 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2903
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2905 $as_echo_n "checking how to print strings... " >&6; }
2906 # Test print first, because it will be a builtin if present.
2907 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2908 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2909 ECHO='print -r --'
2910 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2911 ECHO='printf %s\n'
2912 else
2913 # Use this function as a fallback that always works.
2914 func_fallback_echo ()
2915 {
2916 eval 'cat <<_LTECHO_EOF
2917 $1
2918 _LTECHO_EOF'
2919 }
2920 ECHO='func_fallback_echo'
2921 fi
2922
2923 # func_echo_all arg...
2924 # Invoke $ECHO with all args, space-separated.
2925 func_echo_all ()
2926 {
2927 $ECHO ""
2928 }
2929
2930 case "$ECHO" in
2931 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2932 $as_echo "printf" >&6; } ;;
2933 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2934 $as_echo "print -r" >&6; } ;;
2935 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2936 $as_echo "cat" >&6; } ;;
2937 esac
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952 DEPDIR="${am__leading_dot}deps"
2953
2954 ac_config_commands="$ac_config_commands depfiles"
2955
2956
2957 am_make=${MAKE-make}
2958 cat > confinc << 'END'
2959 am__doit:
2960 @echo this is the am__doit target
2961 .PHONY: am__doit
2962 END
2963 # If we don't find an include directive, just comment out the code.
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2965 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2966 am__include="#"
2967 am__quote=
2968 _am_result=none
2969 # First try GNU make style include.
2970 echo "include confinc" > confmf
2971 # Ignore all kinds of additional output from 'make'.
2972 case `$am_make -s -f confmf 2> /dev/null` in #(
2973 *the\ am__doit\ target*)
2974 am__include=include
2975 am__quote=
2976 _am_result=GNU
2977 ;;
2978 esac
2979 # Now try BSD make style include.
2980 if test "$am__include" = "#"; then
2981 echo '.include "confinc"' > confmf
2982 case `$am_make -s -f confmf 2> /dev/null` in #(
2983 *the\ am__doit\ target*)
2984 am__include=.include
2985 am__quote="\""
2986 _am_result=BSD
2987 ;;
2988 esac
2989 fi
2990
2991
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2993 $as_echo "$_am_result" >&6; }
2994 rm -f confinc confmf
2995
2996 # Check whether --enable-dependency-tracking was given.
2997 if test "${enable_dependency_tracking+set}" = set; then :
2998 enableval=$enable_dependency_tracking;
2999 fi
3000
3001 if test "x$enable_dependency_tracking" != xno; then
3002 am_depcomp="$ac_aux_dir/depcomp"
3003 AMDEPBACKSLASH='\'
3004 am__nodep='_no'
3005 fi
3006 if test "x$enable_dependency_tracking" != xno; then
3007 AMDEP_TRUE=
3008 AMDEP_FALSE='#'
3009 else
3010 AMDEP_TRUE='#'
3011 AMDEP_FALSE=
3012 fi
3013
3014
3015 ac_ext=c
3016 ac_cpp='$CPP $CPPFLAGS'
3017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3020 if test -n "$ac_tool_prefix"; then
3021 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3022 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3024 $as_echo_n "checking for $ac_word... " >&6; }
3025 if ${ac_cv_prog_CC+:} false; then :
3026 $as_echo_n "(cached) " >&6
3027 else
3028 if test -n "$CC"; then
3029 ac_cv_prog_CC="$CC" # Let the user override the test.
3030 else
3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032 for as_dir in $PATH
3033 do
3034 IFS=$as_save_IFS
3035 test -z "$as_dir" && as_dir=.
3036 for ac_exec_ext in '' $ac_executable_extensions; do
3037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3038 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3040 break 2
3041 fi
3042 done
3043 done
3044 IFS=$as_save_IFS
3045
3046 fi
3047 fi
3048 CC=$ac_cv_prog_CC
3049 if test -n "$CC"; then
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3051 $as_echo "$CC" >&6; }
3052 else
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054 $as_echo "no" >&6; }
3055 fi
3056
3057
3058 fi
3059 if test -z "$ac_cv_prog_CC"; then
3060 ac_ct_CC=$CC
3061 # Extract the first word of "gcc", so it can be a program name with args.
3062 set dummy gcc; ac_word=$2
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064 $as_echo_n "checking for $ac_word... " >&6; }
3065 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3066 $as_echo_n "(cached) " >&6
3067 else
3068 if test -n "$ac_ct_CC"; then
3069 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3070 else
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3073 do
3074 IFS=$as_save_IFS
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078 ac_cv_prog_ac_ct_CC="gcc"
3079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080 break 2
3081 fi
3082 done
3083 done
3084 IFS=$as_save_IFS
3085
3086 fi
3087 fi
3088 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3089 if test -n "$ac_ct_CC"; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3091 $as_echo "$ac_ct_CC" >&6; }
3092 else
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3095 fi
3096
3097 if test "x$ac_ct_CC" = x; then
3098 CC=""
3099 else
3100 case $cross_compiling:$ac_tool_warned in
3101 yes:)
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3104 ac_tool_warned=yes ;;
3105 esac
3106 CC=$ac_ct_CC
3107 fi
3108 else
3109 CC="$ac_cv_prog_CC"
3110 fi
3111
3112 if test -z "$CC"; then
3113 if test -n "$ac_tool_prefix"; then
3114 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3115 set dummy ${ac_tool_prefix}cc; ac_word=$2
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3117 $as_echo_n "checking for $ac_word... " >&6; }
3118 if ${ac_cv_prog_CC+:} false; then :
3119 $as_echo_n "(cached) " >&6
3120 else
3121 if test -n "$CC"; then
3122 ac_cv_prog_CC="$CC" # Let the user override the test.
3123 else
3124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125 for as_dir in $PATH
3126 do
3127 IFS=$as_save_IFS
3128 test -z "$as_dir" && as_dir=.
3129 for ac_exec_ext in '' $ac_executable_extensions; do
3130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3131 ac_cv_prog_CC="${ac_tool_prefix}cc"
3132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3133 break 2
3134 fi
3135 done
3136 done
3137 IFS=$as_save_IFS
3138
3139 fi
3140 fi
3141 CC=$ac_cv_prog_CC
3142 if test -n "$CC"; then
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3144 $as_echo "$CC" >&6; }
3145 else
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3148 fi
3149
3150
3151 fi
3152 fi
3153 if test -z "$CC"; then
3154 # Extract the first word of "cc", so it can be a program name with args.
3155 set dummy cc; ac_word=$2
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157 $as_echo_n "checking for $ac_word... " >&6; }
3158 if ${ac_cv_prog_CC+:} false; then :
3159 $as_echo_n "(cached) " >&6
3160 else
3161 if test -n "$CC"; then
3162 ac_cv_prog_CC="$CC" # Let the user override the test.
3163 else
3164 ac_prog_rejected=no
3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166 for as_dir in $PATH
3167 do
3168 IFS=$as_save_IFS
3169 test -z "$as_dir" && as_dir=.
3170 for ac_exec_ext in '' $ac_executable_extensions; do
3171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3172 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3173 ac_prog_rejected=yes
3174 continue
3175 fi
3176 ac_cv_prog_CC="cc"
3177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 break 2
3179 fi
3180 done
3181 done
3182 IFS=$as_save_IFS
3183
3184 if test $ac_prog_rejected = yes; then
3185 # We found a bogon in the path, so make sure we never use it.
3186 set dummy $ac_cv_prog_CC
3187 shift
3188 if test $# != 0; then
3189 # We chose a different compiler from the bogus one.
3190 # However, it has the same basename, so the bogon will be chosen
3191 # first if we set CC to just the basename; use the full file name.
3192 shift
3193 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3194 fi
3195 fi
3196 fi
3197 fi
3198 CC=$ac_cv_prog_CC
3199 if test -n "$CC"; then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3201 $as_echo "$CC" >&6; }
3202 else
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3205 fi
3206
3207
3208 fi
3209 if test -z "$CC"; then
3210 if test -n "$ac_tool_prefix"; then
3211 for ac_prog in cl.exe
3212 do
3213 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3214 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3216 $as_echo_n "checking for $ac_word... " >&6; }
3217 if ${ac_cv_prog_CC+:} false; then :
3218 $as_echo_n "(cached) " >&6
3219 else
3220 if test -n "$CC"; then
3221 ac_cv_prog_CC="$CC" # Let the user override the test.
3222 else
3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 for as_dir in $PATH
3225 do
3226 IFS=$as_save_IFS
3227 test -z "$as_dir" && as_dir=.
3228 for ac_exec_ext in '' $ac_executable_extensions; do
3229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3232 break 2
3233 fi
3234 done
3235 done
3236 IFS=$as_save_IFS
3237
3238 fi
3239 fi
3240 CC=$ac_cv_prog_CC
3241 if test -n "$CC"; then
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3243 $as_echo "$CC" >&6; }
3244 else
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246 $as_echo "no" >&6; }
3247 fi
3248
3249
3250 test -n "$CC" && break
3251 done
3252 fi
3253 if test -z "$CC"; then
3254 ac_ct_CC=$CC
3255 for ac_prog in cl.exe
3256 do
3257 # Extract the first word of "$ac_prog", so it can be a program name with args.
3258 set dummy $ac_prog; ac_word=$2
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3260 $as_echo_n "checking for $ac_word... " >&6; }
3261 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3262 $as_echo_n "(cached) " >&6
3263 else
3264 if test -n "$ac_ct_CC"; then
3265 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3266 else
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 for as_dir in $PATH
3269 do
3270 IFS=$as_save_IFS
3271 test -z "$as_dir" && as_dir=.
3272 for ac_exec_ext in '' $ac_executable_extensions; do
3273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3274 ac_cv_prog_ac_ct_CC="$ac_prog"
3275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3276 break 2
3277 fi
3278 done
3279 done
3280 IFS=$as_save_IFS
3281
3282 fi
3283 fi
3284 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3285 if test -n "$ac_ct_CC"; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3287 $as_echo "$ac_ct_CC" >&6; }
3288 else
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 $as_echo "no" >&6; }
3291 fi
3292
3293
3294 test -n "$ac_ct_CC" && break
3295 done
3296
3297 if test "x$ac_ct_CC" = x; then
3298 CC=""
3299 else
3300 case $cross_compiling:$ac_tool_warned in
3301 yes:)
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3304 ac_tool_warned=yes ;;
3305 esac
3306 CC=$ac_ct_CC
3307 fi
3308 fi
3309
3310 fi
3311
3312
3313 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3315 as_fn_error $? "no acceptable C compiler found in \$PATH
3316 See \`config.log' for more details" "$LINENO" 5; }
3317
3318 # Provide some information about the compiler.
3319 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3320 set X $ac_compile
3321 ac_compiler=$2
3322 for ac_option in --version -v -V -qversion; do
3323 { { ac_try="$ac_compiler $ac_option >&5"
3324 case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3327 esac
3328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329 $as_echo "$ac_try_echo"; } >&5
3330 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3331 ac_status=$?
3332 if test -s conftest.err; then
3333 sed '10a\
3334 ... rest of stderr output deleted ...
3335 10q' conftest.err >conftest.er1
3336 cat conftest.er1 >&5
3337 fi
3338 rm -f conftest.er1 conftest.err
3339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3340 test $ac_status = 0; }
3341 done
3342
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h. */
3345
3346 int
3347 main ()
3348 {
3349
3350 ;
3351 return 0;
3352 }
3353 _ACEOF
3354 ac_clean_files_save=$ac_clean_files
3355 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3356 # Try to create an executable without -o first, disregard a.out.
3357 # It will help us diagnose broken compilers, and finding out an intuition
3358 # of exeext.
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3360 $as_echo_n "checking whether the C compiler works... " >&6; }
3361 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3362
3363 # The possible output files:
3364 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3365
3366 ac_rmfiles=
3367 for ac_file in $ac_files
3368 do
3369 case $ac_file in
3370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3371 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3372 esac
3373 done
3374 rm -f $ac_rmfiles
3375
3376 if { { ac_try="$ac_link_default"
3377 case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3380 esac
3381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3382 $as_echo "$ac_try_echo"; } >&5
3383 (eval "$ac_link_default") 2>&5
3384 ac_status=$?
3385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3386 test $ac_status = 0; }; then :
3387 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3388 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3389 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3390 # so that the user can short-circuit this test for compilers unknown to
3391 # Autoconf.
3392 for ac_file in $ac_files ''
3393 do
3394 test -f "$ac_file" || continue
3395 case $ac_file in
3396 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3397 ;;
3398 [ab].out )
3399 # We found the default executable, but exeext='' is most
3400 # certainly right.
3401 break;;
3402 *.* )
3403 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3404 then :; else
3405 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3406 fi
3407 # We set ac_cv_exeext here because the later test for it is not
3408 # safe: cross compilers may not add the suffix if given an `-o'
3409 # argument, so we may need to know it at that point already.
3410 # Even if this section looks crufty: it has the advantage of
3411 # actually working.
3412 break;;
3413 * )
3414 break;;
3415 esac
3416 done
3417 test "$ac_cv_exeext" = no && ac_cv_exeext=
3418
3419 else
3420 ac_file=''
3421 fi
3422 if test -z "$ac_file"; then :
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424 $as_echo "no" >&6; }
3425 $as_echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3427
3428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3430 as_fn_error 77 "C compiler cannot create executables
3431 See \`config.log' for more details" "$LINENO" 5; }
3432 else
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3434 $as_echo "yes" >&6; }
3435 fi
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3437 $as_echo_n "checking for C compiler default output file name... " >&6; }
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3439 $as_echo "$ac_file" >&6; }
3440 ac_exeext=$ac_cv_exeext
3441
3442 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3443 ac_clean_files=$ac_clean_files_save
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3445 $as_echo_n "checking for suffix of executables... " >&6; }
3446 if { { ac_try="$ac_link"
3447 case "(($ac_try" in
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3450 esac
3451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3452 $as_echo "$ac_try_echo"; } >&5
3453 (eval "$ac_link") 2>&5
3454 ac_status=$?
3455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3456 test $ac_status = 0; }; then :
3457 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3458 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3459 # work properly (i.e., refer to `conftest.exe'), while it won't with
3460 # `rm'.
3461 for ac_file in conftest.exe conftest conftest.*; do
3462 test -f "$ac_file" || continue
3463 case $ac_file in
3464 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3465 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3466 break;;
3467 * ) break;;
3468 esac
3469 done
3470 else
3471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3473 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3474 See \`config.log' for more details" "$LINENO" 5; }
3475 fi
3476 rm -f conftest conftest$ac_cv_exeext
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3478 $as_echo "$ac_cv_exeext" >&6; }
3479
3480 rm -f conftest.$ac_ext
3481 EXEEXT=$ac_cv_exeext
3482 ac_exeext=$EXEEXT
3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h. */
3485 #include <stdio.h>
3486 int
3487 main ()
3488 {
3489 FILE *f = fopen ("conftest.out", "w");
3490 return ferror (f) || fclose (f) != 0;
3491
3492 ;
3493 return 0;
3494 }
3495 _ACEOF
3496 ac_clean_files="$ac_clean_files conftest.out"
3497 # Check that the compiler produces executables we can run. If not, either
3498 # the compiler is broken, or we cross compile.
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3500 $as_echo_n "checking whether we are cross compiling... " >&6; }
3501 if test "$cross_compiling" != yes; then
3502 { { ac_try="$ac_link"
3503 case "(($ac_try" in
3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3506 esac
3507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3508 $as_echo "$ac_try_echo"; } >&5
3509 (eval "$ac_link") 2>&5
3510 ac_status=$?
3511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3512 test $ac_status = 0; }
3513 if { ac_try='./conftest$ac_cv_exeext'
3514 { { case "(($ac_try" in
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3517 esac
3518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3519 $as_echo "$ac_try_echo"; } >&5
3520 (eval "$ac_try") 2>&5
3521 ac_status=$?
3522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3523 test $ac_status = 0; }; }; then
3524 cross_compiling=no
3525 else
3526 if test "$cross_compiling" = maybe; then
3527 cross_compiling=yes
3528 else
3529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3531 as_fn_error $? "cannot run C compiled programs.
3532 If you meant to cross compile, use \`--host'.
3533 See \`config.log' for more details" "$LINENO" 5; }
3534 fi
3535 fi
3536 fi
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3538 $as_echo "$cross_compiling" >&6; }
3539
3540 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3541 ac_clean_files=$ac_clean_files_save
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3543 $as_echo_n "checking for suffix of object files... " >&6; }
3544 if ${ac_cv_objext+:} false; then :
3545 $as_echo_n "(cached) " >&6
3546 else
3547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3548 /* end confdefs.h. */
3549
3550 int
3551 main ()
3552 {
3553
3554 ;
3555 return 0;
3556 }
3557 _ACEOF
3558 rm -f conftest.o conftest.obj
3559 if { { ac_try="$ac_compile"
3560 case "(($ac_try" in
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3563 esac
3564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3565 $as_echo "$ac_try_echo"; } >&5
3566 (eval "$ac_compile") 2>&5
3567 ac_status=$?
3568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3569 test $ac_status = 0; }; then :
3570 for ac_file in conftest.o conftest.obj conftest.*; do
3571 test -f "$ac_file" || continue;
3572 case $ac_file in
3573 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3574 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3575 break;;
3576 esac
3577 done
3578 else
3579 $as_echo "$as_me: failed program was:" >&5
3580 sed 's/^/| /' conftest.$ac_ext >&5
3581
3582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3584 as_fn_error $? "cannot compute suffix of object files: cannot compile
3585 See \`config.log' for more details" "$LINENO" 5; }
3586 fi
3587 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3588 fi
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3590 $as_echo "$ac_cv_objext" >&6; }
3591 OBJEXT=$ac_cv_objext
3592 ac_objext=$OBJEXT
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3594 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3595 if ${ac_cv_c_compiler_gnu+:} false; then :
3596 $as_echo_n "(cached) " >&6
3597 else
3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599 /* end confdefs.h. */
3600
3601 int
3602 main ()
3603 {
3604 #ifndef __GNUC__
3605 choke me
3606 #endif
3607
3608 ;
3609 return 0;
3610 }
3611 _ACEOF
3612 if ac_fn_c_try_compile "$LINENO"; then :
3613 ac_compiler_gnu=yes
3614 else
3615 ac_compiler_gnu=no
3616 fi
3617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3618 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3619
3620 fi
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3622 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3623 if test $ac_compiler_gnu = yes; then
3624 GCC=yes
3625 else
3626 GCC=
3627 fi
3628 ac_test_CFLAGS=${CFLAGS+set}
3629 ac_save_CFLAGS=$CFLAGS
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3631 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3632 if ${ac_cv_prog_cc_g+:} false; then :
3633 $as_echo_n "(cached) " >&6
3634 else
3635 ac_save_c_werror_flag=$ac_c_werror_flag
3636 ac_c_werror_flag=yes
3637 ac_cv_prog_cc_g=no
3638 CFLAGS="-g"
3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640 /* end confdefs.h. */
3641
3642 int
3643 main ()
3644 {
3645
3646 ;
3647 return 0;
3648 }
3649 _ACEOF
3650 if ac_fn_c_try_compile "$LINENO"; then :
3651 ac_cv_prog_cc_g=yes
3652 else
3653 CFLAGS=""
3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655 /* end confdefs.h. */
3656
3657 int
3658 main ()
3659 {
3660
3661 ;
3662 return 0;
3663 }
3664 _ACEOF
3665 if ac_fn_c_try_compile "$LINENO"; then :
3666
3667 else
3668 ac_c_werror_flag=$ac_save_c_werror_flag
3669 CFLAGS="-g"
3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671 /* end confdefs.h. */
3672
3673 int
3674 main ()
3675 {
3676
3677 ;
3678 return 0;
3679 }
3680 _ACEOF
3681 if ac_fn_c_try_compile "$LINENO"; then :
3682 ac_cv_prog_cc_g=yes
3683 fi
3684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3685 fi
3686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3687 fi
3688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3689 ac_c_werror_flag=$ac_save_c_werror_flag
3690 fi
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3692 $as_echo "$ac_cv_prog_cc_g" >&6; }
3693 if test "$ac_test_CFLAGS" = set; then
3694 CFLAGS=$ac_save_CFLAGS
3695 elif test $ac_cv_prog_cc_g = yes; then
3696 if test "$GCC" = yes; then
3697 CFLAGS="-g -O2"
3698 else
3699 CFLAGS="-g"
3700 fi
3701 else
3702 if test "$GCC" = yes; then
3703 CFLAGS="-O2"
3704 else
3705 CFLAGS=
3706 fi
3707 fi
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3709 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3710 if ${ac_cv_prog_cc_c89+:} false; then :
3711 $as_echo_n "(cached) " >&6
3712 else
3713 ac_cv_prog_cc_c89=no
3714 ac_save_CC=$CC
3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h. */
3717 #include <stdarg.h>
3718 #include <stdio.h>
3719 struct stat;
3720 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3721 struct buf { int x; };
3722 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3723 static char *e (p, i)
3724 char **p;
3725 int i;
3726 {
3727 return p[i];
3728 }
3729 static char *f (char * (*g) (char **, int), char **p, ...)
3730 {
3731 char *s;
3732 va_list v;
3733 va_start (v,p);
3734 s = g (p, va_arg (v,int));
3735 va_end (v);
3736 return s;
3737 }
3738
3739 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3740 function prototypes and stuff, but not '\xHH' hex character constants.
3741 These don't provoke an error unfortunately, instead are silently treated
3742 as 'x'. The following induces an error, until -std is added to get
3743 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3744 array size at least. It's necessary to write '\x00'==0 to get something
3745 that's true only with -std. */
3746 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3747
3748 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3749 inside strings and character constants. */
3750 #define FOO(x) 'x'
3751 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3752
3753 int test (int i, double x);
3754 struct s1 {int (*f) (int a);};
3755 struct s2 {int (*f) (double a);};
3756 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3757 int argc;
3758 char **argv;
3759 int
3760 main ()
3761 {
3762 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3763 ;
3764 return 0;
3765 }
3766 _ACEOF
3767 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3768 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3769 do
3770 CC="$ac_save_CC $ac_arg"
3771 if ac_fn_c_try_compile "$LINENO"; then :
3772 ac_cv_prog_cc_c89=$ac_arg
3773 fi
3774 rm -f core conftest.err conftest.$ac_objext
3775 test "x$ac_cv_prog_cc_c89" != "xno" && break
3776 done
3777 rm -f conftest.$ac_ext
3778 CC=$ac_save_CC
3779
3780 fi
3781 # AC_CACHE_VAL
3782 case "x$ac_cv_prog_cc_c89" in
3783 x)
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3785 $as_echo "none needed" >&6; } ;;
3786 xno)
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3788 $as_echo "unsupported" >&6; } ;;
3789 *)
3790 CC="$CC $ac_cv_prog_cc_c89"
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3792 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3793 esac
3794 if test "x$ac_cv_prog_cc_c89" != xno; then :
3795
3796 fi
3797
3798 ac_ext=c
3799 ac_cpp='$CPP $CPPFLAGS'
3800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3803
3804 depcc="$CC" am_compiler_list=
3805
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3807 $as_echo_n "checking dependency style of $depcc... " >&6; }
3808 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3809 $as_echo_n "(cached) " >&6
3810 else
3811 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3812 # We make a subdir and do the tests there. Otherwise we can end up
3813 # making bogus files that we don't know about and never remove. For
3814 # instance it was reported that on HP-UX the gcc test will end up
3815 # making a dummy file named 'D' -- because '-MD' means "put the output
3816 # in D".
3817 rm -rf conftest.dir
3818 mkdir conftest.dir
3819 # Copy depcomp to subdir because otherwise we won't find it if we're
3820 # using a relative directory.
3821 cp "$am_depcomp" conftest.dir
3822 cd conftest.dir
3823 # We will build objects and dependencies in a subdirectory because
3824 # it helps to detect inapplicable dependency modes. For instance
3825 # both Tru64's cc and ICC support -MD to output dependencies as a
3826 # side effect of compilation, but ICC will put the dependencies in
3827 # the current directory while Tru64 will put them in the object
3828 # directory.
3829 mkdir sub
3830
3831 am_cv_CC_dependencies_compiler_type=none
3832 if test "$am_compiler_list" = ""; then
3833 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3834 fi
3835 am__universal=false
3836 case " $depcc " in #(
3837 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3838 esac
3839
3840 for depmode in $am_compiler_list; do
3841 # Setup a source with many dependencies, because some compilers
3842 # like to wrap large dependency lists on column 80 (with \), and
3843 # we should not choose a depcomp mode which is confused by this.
3844 #
3845 # We need to recreate these files for each test, as the compiler may
3846 # overwrite some of them when testing with obscure command lines.
3847 # This happens at least with the AIX C compiler.
3848 : > sub/conftest.c
3849 for i in 1 2 3 4 5 6; do
3850 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3851 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3852 # Solaris 10 /bin/sh.
3853 echo '/* dummy */' > sub/conftst$i.h
3854 done
3855 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3856
3857 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3858 # mode. It turns out that the SunPro C++ compiler does not properly
3859 # handle '-M -o', and we need to detect this. Also, some Intel
3860 # versions had trouble with output in subdirs.
3861 am__obj=sub/conftest.${OBJEXT-o}
3862 am__minus_obj="-o $am__obj"
3863 case $depmode in
3864 gcc)
3865 # This depmode causes a compiler race in universal mode.
3866 test "$am__universal" = false || continue
3867 ;;
3868 nosideeffect)
3869 # After this tag, mechanisms are not by side-effect, so they'll
3870 # only be used when explicitly requested.
3871 if test "x$enable_dependency_tracking" = xyes; then
3872 continue
3873 else
3874 break
3875 fi
3876 ;;
3877 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3878 # This compiler won't grok '-c -o', but also, the minuso test has
3879 # not run yet. These depmodes are late enough in the game, and
3880 # so weak that their functioning should not be impacted.
3881 am__obj=conftest.${OBJEXT-o}
3882 am__minus_obj=
3883 ;;
3884 none) break ;;
3885 esac
3886 if depmode=$depmode \
3887 source=sub/conftest.c object=$am__obj \
3888 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3889 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3890 >/dev/null 2>conftest.err &&
3891 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3892 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3893 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3894 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3895 # icc doesn't choke on unknown options, it will just issue warnings
3896 # or remarks (even with -Werror). So we grep stderr for any message
3897 # that says an option was ignored or not supported.
3898 # When given -MP, icc 7.0 and 7.1 complain thusly:
3899 # icc: Command line warning: ignoring option '-M'; no argument required
3900 # The diagnosis changed in icc 8.0:
3901 # icc: Command line remark: option '-MP' not supported
3902 if (grep 'ignoring option' conftest.err ||
3903 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3904 am_cv_CC_dependencies_compiler_type=$depmode
3905 break
3906 fi
3907 fi
3908 done
3909
3910 cd ..
3911 rm -rf conftest.dir
3912 else
3913 am_cv_CC_dependencies_compiler_type=none
3914 fi
3915
3916 fi
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3918 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3919 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3920
3921 if
3922 test "x$enable_dependency_tracking" != xno \
3923 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3924 am__fastdepCC_TRUE=
3925 am__fastdepCC_FALSE='#'
3926 else
3927 am__fastdepCC_TRUE='#'
3928 am__fastdepCC_FALSE=
3929 fi
3930
3931
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3933 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3934 if ${ac_cv_path_SED+:} false; then :
3935 $as_echo_n "(cached) " >&6
3936 else
3937 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3938 for ac_i in 1 2 3 4 5 6 7; do
3939 ac_script="$ac_script$as_nl$ac_script"
3940 done
3941 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3942 { ac_script=; unset ac_script;}
3943 if test -z "$SED"; then
3944 ac_path_SED_found=false
3945 # Loop through the user's path and test for each of PROGNAME-LIST
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947 for as_dir in $PATH
3948 do
3949 IFS=$as_save_IFS
3950 test -z "$as_dir" && as_dir=.
3951 for ac_prog in sed gsed; do
3952 for ac_exec_ext in '' $ac_executable_extensions; do
3953 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3954 as_fn_executable_p "$ac_path_SED" || continue
3955 # Check for GNU ac_path_SED and select it if it is found.
3956 # Check for GNU $ac_path_SED
3957 case `"$ac_path_SED" --version 2>&1` in
3958 *GNU*)
3959 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3960 *)
3961 ac_count=0
3962 $as_echo_n 0123456789 >"conftest.in"
3963 while :
3964 do
3965 cat "conftest.in" "conftest.in" >"conftest.tmp"
3966 mv "conftest.tmp" "conftest.in"
3967 cp "conftest.in" "conftest.nl"
3968 $as_echo '' >> "conftest.nl"
3969 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3970 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3971 as_fn_arith $ac_count + 1 && ac_count=$as_val
3972 if test $ac_count -gt ${ac_path_SED_max-0}; then
3973 # Best one so far, save it but keep looking for a better one
3974 ac_cv_path_SED="$ac_path_SED"
3975 ac_path_SED_max=$ac_count
3976 fi
3977 # 10*(2^10) chars as input seems more than enough
3978 test $ac_count -gt 10 && break
3979 done
3980 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3981 esac
3982
3983 $ac_path_SED_found && break 3
3984 done
3985 done
3986 done
3987 IFS=$as_save_IFS
3988 if test -z "$ac_cv_path_SED"; then
3989 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3990 fi
3991 else
3992 ac_cv_path_SED=$SED
3993 fi
3994
3995 fi
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3997 $as_echo "$ac_cv_path_SED" >&6; }
3998 SED="$ac_cv_path_SED"
3999 rm -f conftest.sed
4000
4001 test -z "$SED" && SED=sed
4002 Xsed="$SED -e 1s/^X//"
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4015 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4016 if ${ac_cv_path_GREP+:} false; then :
4017 $as_echo_n "(cached) " >&6
4018 else
4019 if test -z "$GREP"; then
4020 ac_path_GREP_found=false
4021 # Loop through the user's path and test for each of PROGNAME-LIST
4022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4024 do
4025 IFS=$as_save_IFS
4026 test -z "$as_dir" && as_dir=.
4027 for ac_prog in grep ggrep; do
4028 for ac_exec_ext in '' $ac_executable_extensions; do
4029 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4030 as_fn_executable_p "$ac_path_GREP" || continue
4031 # Check for GNU ac_path_GREP and select it if it is found.
4032 # Check for GNU $ac_path_GREP
4033 case `"$ac_path_GREP" --version 2>&1` in
4034 *GNU*)
4035 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4036 *)
4037 ac_count=0
4038 $as_echo_n 0123456789 >"conftest.in"
4039 while :
4040 do
4041 cat "conftest.in" "conftest.in" >"conftest.tmp"
4042 mv "conftest.tmp" "conftest.in"
4043 cp "conftest.in" "conftest.nl"
4044 $as_echo 'GREP' >> "conftest.nl"
4045 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4046 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4047 as_fn_arith $ac_count + 1 && ac_count=$as_val
4048 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4049 # Best one so far, save it but keep looking for a better one
4050 ac_cv_path_GREP="$ac_path_GREP"
4051 ac_path_GREP_max=$ac_count
4052 fi
4053 # 10*(2^10) chars as input seems more than enough
4054 test $ac_count -gt 10 && break
4055 done
4056 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4057 esac
4058
4059 $ac_path_GREP_found && break 3
4060 done
4061 done
4062 done
4063 IFS=$as_save_IFS
4064 if test -z "$ac_cv_path_GREP"; then
4065 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4066 fi
4067 else
4068 ac_cv_path_GREP=$GREP
4069 fi
4070
4071 fi
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4073 $as_echo "$ac_cv_path_GREP" >&6; }
4074 GREP="$ac_cv_path_GREP"
4075
4076
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4078 $as_echo_n "checking for egrep... " >&6; }
4079 if ${ac_cv_path_EGREP+:} false; then :
4080 $as_echo_n "(cached) " >&6
4081 else
4082 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4083 then ac_cv_path_EGREP="$GREP -E"
4084 else
4085 if test -z "$EGREP"; then
4086 ac_path_EGREP_found=false
4087 # Loop through the user's path and test for each of PROGNAME-LIST
4088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4090 do
4091 IFS=$as_save_IFS
4092 test -z "$as_dir" && as_dir=.
4093 for ac_prog in egrep; do
4094 for ac_exec_ext in '' $ac_executable_extensions; do
4095 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4096 as_fn_executable_p "$ac_path_EGREP" || continue
4097 # Check for GNU ac_path_EGREP and select it if it is found.
4098 # Check for GNU $ac_path_EGREP
4099 case `"$ac_path_EGREP" --version 2>&1` in
4100 *GNU*)
4101 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4102 *)
4103 ac_count=0
4104 $as_echo_n 0123456789 >"conftest.in"
4105 while :
4106 do
4107 cat "conftest.in" "conftest.in" >"conftest.tmp"
4108 mv "conftest.tmp" "conftest.in"
4109 cp "conftest.in" "conftest.nl"
4110 $as_echo 'EGREP' >> "conftest.nl"
4111 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4112 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4113 as_fn_arith $ac_count + 1 && ac_count=$as_val
4114 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4115 # Best one so far, save it but keep looking for a better one
4116 ac_cv_path_EGREP="$ac_path_EGREP"
4117 ac_path_EGREP_max=$ac_count
4118 fi
4119 # 10*(2^10) chars as input seems more than enough
4120 test $ac_count -gt 10 && break
4121 done
4122 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4123 esac
4124
4125 $ac_path_EGREP_found && break 3
4126 done
4127 done
4128 done
4129 IFS=$as_save_IFS
4130 if test -z "$ac_cv_path_EGREP"; then
4131 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4132 fi
4133 else
4134 ac_cv_path_EGREP=$EGREP
4135 fi
4136
4137 fi
4138 fi
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4140 $as_echo "$ac_cv_path_EGREP" >&6; }
4141 EGREP="$ac_cv_path_EGREP"
4142
4143
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4145 $as_echo_n "checking for fgrep... " >&6; }
4146 if ${ac_cv_path_FGREP+:} false; then :
4147 $as_echo_n "(cached) " >&6
4148 else
4149 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4150 then ac_cv_path_FGREP="$GREP -F"
4151 else
4152 if test -z "$FGREP"; then
4153 ac_path_FGREP_found=false
4154 # Loop through the user's path and test for each of PROGNAME-LIST
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4157 do
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
4160 for ac_prog in fgrep; do
4161 for ac_exec_ext in '' $ac_executable_extensions; do
4162 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4163 as_fn_executable_p "$ac_path_FGREP" || continue
4164 # Check for GNU ac_path_FGREP and select it if it is found.
4165 # Check for GNU $ac_path_FGREP
4166 case `"$ac_path_FGREP" --version 2>&1` in
4167 *GNU*)
4168 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4169 *)
4170 ac_count=0
4171 $as_echo_n 0123456789 >"conftest.in"
4172 while :
4173 do
4174 cat "conftest.in" "conftest.in" >"conftest.tmp"
4175 mv "conftest.tmp" "conftest.in"
4176 cp "conftest.in" "conftest.nl"
4177 $as_echo 'FGREP' >> "conftest.nl"
4178 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4179 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4180 as_fn_arith $ac_count + 1 && ac_count=$as_val
4181 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4182 # Best one so far, save it but keep looking for a better one
4183 ac_cv_path_FGREP="$ac_path_FGREP"
4184 ac_path_FGREP_max=$ac_count
4185 fi
4186 # 10*(2^10) chars as input seems more than enough
4187 test $ac_count -gt 10 && break
4188 done
4189 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4190 esac
4191
4192 $ac_path_FGREP_found && break 3
4193 done
4194 done
4195 done
4196 IFS=$as_save_IFS
4197 if test -z "$ac_cv_path_FGREP"; then
4198 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4199 fi
4200 else
4201 ac_cv_path_FGREP=$FGREP
4202 fi
4203
4204 fi
4205 fi
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4207 $as_echo "$ac_cv_path_FGREP" >&6; }
4208 FGREP="$ac_cv_path_FGREP"
4209
4210
4211 test -z "$GREP" && GREP=grep
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231 # Check whether --with-gnu-ld was given.
4232 if test "${with_gnu_ld+set}" = set; then :
4233 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4234 else
4235 with_gnu_ld=no
4236 fi
4237
4238 ac_prog=ld
4239 if test "$GCC" = yes; then
4240 # Check if gcc -print-prog-name=ld gives a path.
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4242 $as_echo_n "checking for ld used by $CC... " >&6; }
4243 case $host in
4244 *-*-mingw*)
4245 # gcc leaves a trailing carriage return which upsets mingw
4246 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4247 *)
4248 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4249 esac
4250 case $ac_prog in
4251 # Accept absolute paths.
4252 [\\/]* | ?:[\\/]*)
4253 re_direlt='/[^/][^/]*/\.\./'
4254 # Canonicalize the pathname of ld
4255 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4256 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4257 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4258 done
4259 test -z "$LD" && LD="$ac_prog"
4260 ;;
4261 "")
4262 # If it fails, then pretend we aren't using GCC.
4263 ac_prog=ld
4264 ;;
4265 *)
4266 # If it is relative, then search for the first ld in PATH.
4267 with_gnu_ld=unknown
4268 ;;
4269 esac
4270 elif test "$with_gnu_ld" = yes; then
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4272 $as_echo_n "checking for GNU ld... " >&6; }
4273 else
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4275 $as_echo_n "checking for non-GNU ld... " >&6; }
4276 fi
4277 if ${lt_cv_path_LD+:} false; then :
4278 $as_echo_n "(cached) " >&6
4279 else
4280 if test -z "$LD"; then
4281 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4282 for ac_dir in $PATH; do
4283 IFS="$lt_save_ifs"
4284 test -z "$ac_dir" && ac_dir=.
4285 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4286 lt_cv_path_LD="$ac_dir/$ac_prog"
4287 # Check to see if the program is GNU ld. I'd rather use --version,
4288 # but apparently some variants of GNU ld only accept -v.
4289 # Break only if it was the GNU/non-GNU ld that we prefer.
4290 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4291 *GNU* | *'with BFD'*)
4292 test "$with_gnu_ld" != no && break
4293 ;;
4294 *)
4295 test "$with_gnu_ld" != yes && break
4296 ;;
4297 esac
4298 fi
4299 done
4300 IFS="$lt_save_ifs"
4301 else
4302 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4303 fi
4304 fi
4305
4306 LD="$lt_cv_path_LD"
4307 if test -n "$LD"; then
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4309 $as_echo "$LD" >&6; }
4310 else
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4312 $as_echo "no" >&6; }
4313 fi
4314 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4316 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4317 if ${lt_cv_prog_gnu_ld+:} false; then :
4318 $as_echo_n "(cached) " >&6
4319 else
4320 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4321 case `$LD -v 2>&1 </dev/null` in
4322 *GNU* | *'with BFD'*)
4323 lt_cv_prog_gnu_ld=yes
4324 ;;
4325 *)
4326 lt_cv_prog_gnu_ld=no
4327 ;;
4328 esac
4329 fi
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4331 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4332 with_gnu_ld=$lt_cv_prog_gnu_ld
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4343 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4344 if ${lt_cv_path_NM+:} false; then :
4345 $as_echo_n "(cached) " >&6
4346 else
4347 if test -n "$NM"; then
4348 # Let the user override the test.
4349 lt_cv_path_NM="$NM"
4350 else
4351 lt_nm_to_check="${ac_tool_prefix}nm"
4352 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4353 lt_nm_to_check="$lt_nm_to_check nm"
4354 fi
4355 for lt_tmp_nm in $lt_nm_to_check; do
4356 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4357 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4358 IFS="$lt_save_ifs"
4359 test -z "$ac_dir" && ac_dir=.
4360 tmp_nm="$ac_dir/$lt_tmp_nm"
4361 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4362 # Check to see if the nm accepts a BSD-compat flag.
4363 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4364 # nm: unknown option "B" ignored
4365 # Tru64's nm complains that /dev/null is an invalid object file
4366 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4367 */dev/null* | *'Invalid file or object type'*)
4368 lt_cv_path_NM="$tmp_nm -B"
4369 break
4370 ;;
4371 *)
4372 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4373 */dev/null*)
4374 lt_cv_path_NM="$tmp_nm -p"
4375 break
4376 ;;
4377 *)
4378 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4379 continue # so that we can try to find one that supports BSD flags
4380 ;;
4381 esac
4382 ;;
4383 esac
4384 fi
4385 done
4386 IFS="$lt_save_ifs"
4387 done
4388 : ${lt_cv_path_NM=no}
4389 fi
4390 fi
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4392 $as_echo "$lt_cv_path_NM" >&6; }
4393 if test "$lt_cv_path_NM" != "no"; then
4394 NM="$lt_cv_path_NM"
4395 else
4396 # Didn't find any BSD compatible name lister, look for dumpbin.
4397 if test -n "$DUMPBIN"; then :
4398 # Let the user override the test.
4399 else
4400 if test -n "$ac_tool_prefix"; then
4401 for ac_prog in dumpbin "link -dump"
4402 do
4403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4404 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4406 $as_echo_n "checking for $ac_word... " >&6; }
4407 if ${ac_cv_prog_DUMPBIN+:} false; then :
4408 $as_echo_n "(cached) " >&6
4409 else
4410 if test -n "$DUMPBIN"; then
4411 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4412 else
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414 for as_dir in $PATH
4415 do
4416 IFS=$as_save_IFS
4417 test -z "$as_dir" && as_dir=.
4418 for ac_exec_ext in '' $ac_executable_extensions; do
4419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4420 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 break 2
4423 fi
4424 done
4425 done
4426 IFS=$as_save_IFS
4427
4428 fi
4429 fi
4430 DUMPBIN=$ac_cv_prog_DUMPBIN
4431 if test -n "$DUMPBIN"; then
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4433 $as_echo "$DUMPBIN" >&6; }
4434 else
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436 $as_echo "no" >&6; }
4437 fi
4438
4439
4440 test -n "$DUMPBIN" && break
4441 done
4442 fi
4443 if test -z "$DUMPBIN"; then
4444 ac_ct_DUMPBIN=$DUMPBIN
4445 for ac_prog in dumpbin "link -dump"
4446 do
4447 # Extract the first word of "$ac_prog", so it can be a program name with args.
4448 set dummy $ac_prog; ac_word=$2
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4450 $as_echo_n "checking for $ac_word... " >&6; }
4451 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4452 $as_echo_n "(cached) " >&6
4453 else
4454 if test -n "$ac_ct_DUMPBIN"; then
4455 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4456 else
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH
4459 do
4460 IFS=$as_save_IFS
4461 test -z "$as_dir" && as_dir=.
4462 for ac_exec_ext in '' $ac_executable_extensions; do
4463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4464 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 break 2
4467 fi
4468 done
4469 done
4470 IFS=$as_save_IFS
4471
4472 fi
4473 fi
4474 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4475 if test -n "$ac_ct_DUMPBIN"; then
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4477 $as_echo "$ac_ct_DUMPBIN" >&6; }
4478 else
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4480 $as_echo "no" >&6; }
4481 fi
4482
4483
4484 test -n "$ac_ct_DUMPBIN" && break
4485 done
4486
4487 if test "x$ac_ct_DUMPBIN" = x; then
4488 DUMPBIN=":"
4489 else
4490 case $cross_compiling:$ac_tool_warned in
4491 yes:)
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4494 ac_tool_warned=yes ;;
4495 esac
4496 DUMPBIN=$ac_ct_DUMPBIN
4497 fi
4498 fi
4499
4500 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4501 *COFF*)
4502 DUMPBIN="$DUMPBIN -symbols"
4503 ;;
4504 *)
4505 DUMPBIN=:
4506 ;;
4507 esac
4508 fi
4509
4510 if test "$DUMPBIN" != ":"; then
4511 NM="$DUMPBIN"
4512 fi
4513 fi
4514 test -z "$NM" && NM=nm
4515
4516
4517
4518
4519
4520
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4522 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4523 if ${lt_cv_nm_interface+:} false; then :
4524 $as_echo_n "(cached) " >&6
4525 else
4526 lt_cv_nm_interface="BSD nm"
4527 echo "int some_variable = 0;" > conftest.$ac_ext
4528 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4529 (eval "$ac_compile" 2>conftest.err)
4530 cat conftest.err >&5
4531 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4532 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4533 cat conftest.err >&5
4534 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4535 cat conftest.out >&5
4536 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4537 lt_cv_nm_interface="MS dumpbin"
4538 fi
4539 rm -f conftest*
4540 fi
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4542 $as_echo "$lt_cv_nm_interface" >&6; }
4543
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4545 $as_echo_n "checking whether ln -s works... " >&6; }
4546 LN_S=$as_ln_s
4547 if test "$LN_S" = "ln -s"; then
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4549 $as_echo "yes" >&6; }
4550 else
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4552 $as_echo "no, using $LN_S" >&6; }
4553 fi
4554
4555 # find the maximum length of command line arguments
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4557 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4558 if ${lt_cv_sys_max_cmd_len+:} false; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4561 i=0
4562 teststring="ABCD"
4563
4564 case $build_os in
4565 msdosdjgpp*)
4566 # On DJGPP, this test can blow up pretty badly due to problems in libc
4567 # (any single argument exceeding 2000 bytes causes a buffer overrun
4568 # during glob expansion). Even if it were fixed, the result of this
4569 # check would be larger than it should be.
4570 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4571 ;;
4572
4573 gnu*)
4574 # Under GNU Hurd, this test is not required because there is
4575 # no limit to the length of command line arguments.
4576 # Libtool will interpret -1 as no limit whatsoever
4577 lt_cv_sys_max_cmd_len=-1;
4578 ;;
4579
4580 cygwin* | mingw* | cegcc*)
4581 # On Win9x/ME, this test blows up -- it succeeds, but takes
4582 # about 5 minutes as the teststring grows exponentially.
4583 # Worse, since 9x/ME are not pre-emptively multitasking,
4584 # you end up with a "frozen" computer, even though with patience
4585 # the test eventually succeeds (with a max line length of 256k).
4586 # Instead, let's just punt: use the minimum linelength reported by
4587 # all of the supported platforms: 8192 (on NT/2K/XP).
4588 lt_cv_sys_max_cmd_len=8192;
4589 ;;
4590
4591 mint*)
4592 # On MiNT this can take a long time and run out of memory.
4593 lt_cv_sys_max_cmd_len=8192;
4594 ;;
4595
4596 amigaos*)
4597 # On AmigaOS with pdksh, this test takes hours, literally.
4598 # So we just punt and use a minimum line length of 8192.
4599 lt_cv_sys_max_cmd_len=8192;
4600 ;;
4601
4602 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4603 # This has been around since 386BSD, at least. Likely further.
4604 if test -x /sbin/sysctl; then
4605 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4606 elif test -x /usr/sbin/sysctl; then
4607 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4608 else
4609 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4610 fi
4611 # And add a safety zone
4612 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4613 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4614 ;;
4615
4616 interix*)
4617 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4618 lt_cv_sys_max_cmd_len=196608
4619 ;;
4620
4621 os2*)
4622 # The test takes a long time on OS/2.
4623 lt_cv_sys_max_cmd_len=8192
4624 ;;
4625
4626 osf*)
4627 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4628 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4629 # nice to cause kernel panics so lets avoid the loop below.
4630 # First set a reasonable default.
4631 lt_cv_sys_max_cmd_len=16384
4632 #
4633 if test -x /sbin/sysconfig; then
4634 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4635 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4636 esac
4637 fi
4638 ;;
4639 sco3.2v5*)
4640 lt_cv_sys_max_cmd_len=102400
4641 ;;
4642 sysv5* | sco5v6* | sysv4.2uw2*)
4643 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4644 if test -n "$kargmax"; then
4645 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4646 else
4647 lt_cv_sys_max_cmd_len=32768
4648 fi
4649 ;;
4650 *)
4651 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4652 if test -n "$lt_cv_sys_max_cmd_len"; then
4653 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4654 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4655 else
4656 # Make teststring a little bigger before we do anything with it.
4657 # a 1K string should be a reasonable start.
4658 for i in 1 2 3 4 5 6 7 8 ; do
4659 teststring=$teststring$teststring
4660 done
4661 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4662 # If test is not a shell built-in, we'll probably end up computing a
4663 # maximum length that is only half of the actual maximum length, but
4664 # we can't tell.
4665 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4666 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4667 test $i != 17 # 1/2 MB should be enough
4668 do
4669 i=`expr $i + 1`
4670 teststring=$teststring$teststring
4671 done
4672 # Only check the string length outside the loop.
4673 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4674 teststring=
4675 # Add a significant safety factor because C++ compilers can tack on
4676 # massive amounts of additional arguments before passing them to the
4677 # linker. It appears as though 1/2 is a usable value.
4678 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4679 fi
4680 ;;
4681 esac
4682
4683 fi
4684
4685 if test -n $lt_cv_sys_max_cmd_len ; then
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4687 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4688 else
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4690 $as_echo "none" >&6; }
4691 fi
4692 max_cmd_len=$lt_cv_sys_max_cmd_len
4693
4694
4695
4696
4697
4698
4699 : ${CP="cp -f"}
4700 : ${MV="mv -f"}
4701 : ${RM="rm -f"}
4702
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4704 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4705 # Try some XSI features
4706 xsi_shell=no
4707 ( _lt_dummy="a/b/c"
4708 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4709 = c,a/b,b/c, \
4710 && eval 'test $(( 1 + 1 )) -eq 2 \
4711 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4712 && xsi_shell=yes
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4714 $as_echo "$xsi_shell" >&6; }
4715
4716
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4718 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4719 lt_shell_append=no
4720 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4721 >/dev/null 2>&1 \
4722 && lt_shell_append=yes
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4724 $as_echo "$lt_shell_append" >&6; }
4725
4726
4727 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4728 lt_unset=unset
4729 else
4730 lt_unset=false
4731 fi
4732
4733
4734
4735
4736
4737 # test EBCDIC or ASCII
4738 case `echo X|tr X '\101'` in
4739 A) # ASCII based system
4740 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4741 lt_SP2NL='tr \040 \012'
4742 lt_NL2SP='tr \015\012 \040\040'
4743 ;;
4744 *) # EBCDIC based system
4745 lt_SP2NL='tr \100 \n'
4746 lt_NL2SP='tr \r\n \100\100'
4747 ;;
4748 esac
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4759 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4760 if ${lt_cv_to_host_file_cmd+:} false; then :
4761 $as_echo_n "(cached) " >&6
4762 else
4763 case $host in
4764 *-*-mingw* )
4765 case $build in
4766 *-*-mingw* ) # actually msys
4767 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4768 ;;
4769 *-*-cygwin* )
4770 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4771 ;;
4772 * ) # otherwise, assume *nix
4773 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4774 ;;
4775 esac
4776 ;;
4777 *-*-cygwin* )
4778 case $build in
4779 *-*-mingw* ) # actually msys
4780 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4781 ;;
4782 *-*-cygwin* )
4783 lt_cv_to_host_file_cmd=func_convert_file_noop
4784 ;;
4785 * ) # otherwise, assume *nix
4786 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4787 ;;
4788 esac
4789 ;;
4790 * ) # unhandled hosts (and "normal" native builds)
4791 lt_cv_to_host_file_cmd=func_convert_file_noop
4792 ;;
4793 esac
4794
4795 fi
4796
4797 to_host_file_cmd=$lt_cv_to_host_file_cmd
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4799 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4800
4801
4802
4803
4804
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4806 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4807 if ${lt_cv_to_tool_file_cmd+:} false; then :
4808 $as_echo_n "(cached) " >&6
4809 else
4810 #assume ordinary cross tools, or native build.
4811 lt_cv_to_tool_file_cmd=func_convert_file_noop
4812 case $host in
4813 *-*-mingw* )
4814 case $build in
4815 *-*-mingw* ) # actually msys
4816 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4817 ;;
4818 esac
4819 ;;
4820 esac
4821
4822 fi
4823
4824 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4826 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4827
4828
4829
4830
4831
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4833 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4834 if ${lt_cv_ld_reload_flag+:} false; then :
4835 $as_echo_n "(cached) " >&6
4836 else
4837 lt_cv_ld_reload_flag='-r'
4838 fi
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4840 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4841 reload_flag=$lt_cv_ld_reload_flag
4842 case $reload_flag in
4843 "" | " "*) ;;
4844 *) reload_flag=" $reload_flag" ;;
4845 esac
4846 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4847 case $host_os in
4848 cygwin* | mingw* | pw32* | cegcc*)
4849 if test "$GCC" != yes; then
4850 reload_cmds=false
4851 fi
4852 ;;
4853 darwin*)
4854 if test "$GCC" = yes; then
4855 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4856 else
4857 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4858 fi
4859 ;;
4860 esac
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870 if test -n "$ac_tool_prefix"; then
4871 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4872 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4874 $as_echo_n "checking for $ac_word... " >&6; }
4875 if ${ac_cv_prog_OBJDUMP+:} false; then :
4876 $as_echo_n "(cached) " >&6
4877 else
4878 if test -n "$OBJDUMP"; then
4879 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4880 else
4881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4882 for as_dir in $PATH
4883 do
4884 IFS=$as_save_IFS
4885 test -z "$as_dir" && as_dir=.
4886 for ac_exec_ext in '' $ac_executable_extensions; do
4887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4888 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4890 break 2
4891 fi
4892 done
4893 done
4894 IFS=$as_save_IFS
4895
4896 fi
4897 fi
4898 OBJDUMP=$ac_cv_prog_OBJDUMP
4899 if test -n "$OBJDUMP"; then
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4901 $as_echo "$OBJDUMP" >&6; }
4902 else
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4904 $as_echo "no" >&6; }
4905 fi
4906
4907
4908 fi
4909 if test -z "$ac_cv_prog_OBJDUMP"; then
4910 ac_ct_OBJDUMP=$OBJDUMP
4911 # Extract the first word of "objdump", so it can be a program name with args.
4912 set dummy objdump; ac_word=$2
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4914 $as_echo_n "checking for $ac_word... " >&6; }
4915 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4916 $as_echo_n "(cached) " >&6
4917 else
4918 if test -n "$ac_ct_OBJDUMP"; then
4919 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4920 else
4921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 for as_dir in $PATH
4923 do
4924 IFS=$as_save_IFS
4925 test -z "$as_dir" && as_dir=.
4926 for ac_exec_ext in '' $ac_executable_extensions; do
4927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4928 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4930 break 2
4931 fi
4932 done
4933 done
4934 IFS=$as_save_IFS
4935
4936 fi
4937 fi
4938 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4939 if test -n "$ac_ct_OBJDUMP"; then
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4941 $as_echo "$ac_ct_OBJDUMP" >&6; }
4942 else
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4944 $as_echo "no" >&6; }
4945 fi
4946
4947 if test "x$ac_ct_OBJDUMP" = x; then
4948 OBJDUMP="false"
4949 else
4950 case $cross_compiling:$ac_tool_warned in
4951 yes:)
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4954 ac_tool_warned=yes ;;
4955 esac
4956 OBJDUMP=$ac_ct_OBJDUMP
4957 fi
4958 else
4959 OBJDUMP="$ac_cv_prog_OBJDUMP"
4960 fi
4961
4962 test -z "$OBJDUMP" && OBJDUMP=objdump
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4973 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4974 if ${lt_cv_deplibs_check_method+:} false; then :
4975 $as_echo_n "(cached) " >&6
4976 else
4977 lt_cv_file_magic_cmd='$MAGIC_CMD'
4978 lt_cv_file_magic_test_file=
4979 lt_cv_deplibs_check_method='unknown'
4980 # Need to set the preceding variable on all platforms that support
4981 # interlibrary dependencies.
4982 # 'none' -- dependencies not supported.
4983 # `unknown' -- same as none, but documents that we really don't know.
4984 # 'pass_all' -- all dependencies passed with no checks.
4985 # 'test_compile' -- check by making test program.
4986 # 'file_magic [[regex]]' -- check by looking for files in library path
4987 # which responds to the $file_magic_cmd with a given extended regex.
4988 # If you have `file' or equivalent on your system and you're not sure
4989 # whether `pass_all' will *always* work, you probably want this one.
4990
4991 case $host_os in
4992 aix[4-9]*)
4993 lt_cv_deplibs_check_method=pass_all
4994 ;;
4995
4996 beos*)
4997 lt_cv_deplibs_check_method=pass_all
4998 ;;
4999
5000 bsdi[45]*)
5001 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5002 lt_cv_file_magic_cmd='/usr/bin/file -L'
5003 lt_cv_file_magic_test_file=/shlib/libc.so
5004 ;;
5005
5006 cygwin*)
5007 # func_win32_libid is a shell function defined in ltmain.sh
5008 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5009 lt_cv_file_magic_cmd='func_win32_libid'
5010 ;;
5011
5012 mingw* | pw32*)
5013 # Base MSYS/MinGW do not provide the 'file' command needed by
5014 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5015 # unless we find 'file', for example because we are cross-compiling.
5016 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5017 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5018 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5019 lt_cv_file_magic_cmd='func_win32_libid'
5020 else
5021 # Keep this pattern in sync with the one in func_win32_libid.
5022 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5023 lt_cv_file_magic_cmd='$OBJDUMP -f'
5024 fi
5025 ;;
5026
5027 cegcc*)
5028 # use the weaker test based on 'objdump'. See mingw*.
5029 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5030 lt_cv_file_magic_cmd='$OBJDUMP -f'
5031 ;;
5032
5033 darwin* | rhapsody*)
5034 lt_cv_deplibs_check_method=pass_all
5035 ;;
5036
5037 freebsd* | dragonfly*)
5038 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5039 case $host_cpu in
5040 i*86 )
5041 # Not sure whether the presence of OpenBSD here was a mistake.
5042 # Let's accept both of them until this is cleared up.
5043 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5044 lt_cv_file_magic_cmd=/usr/bin/file
5045 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5046 ;;
5047 esac
5048 else
5049 lt_cv_deplibs_check_method=pass_all
5050 fi
5051 ;;
5052
5053 gnu*)
5054 lt_cv_deplibs_check_method=pass_all
5055 ;;
5056
5057 haiku*)
5058 lt_cv_deplibs_check_method=pass_all
5059 ;;
5060
5061 hpux10.20* | hpux11*)
5062 lt_cv_file_magic_cmd=/usr/bin/file
5063 case $host_cpu in
5064 ia64*)
5065 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5066 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5067 ;;
5068 hppa*64*)
5069 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]'
5070 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5071 ;;
5072 *)
5073 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5074 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5075 ;;
5076 esac
5077 ;;
5078
5079 interix[3-9]*)
5080 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5082 ;;
5083
5084 irix5* | irix6* | nonstopux*)
5085 case $LD in
5086 *-32|*"-32 ") libmagic=32-bit;;
5087 *-n32|*"-n32 ") libmagic=N32;;
5088 *-64|*"-64 ") libmagic=64-bit;;
5089 *) libmagic=never-match;;
5090 esac
5091 lt_cv_deplibs_check_method=pass_all
5092 ;;
5093
5094 # This must be glibc/ELF.
5095 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5096 lt_cv_deplibs_check_method=pass_all
5097 ;;
5098
5099 netbsd*)
5100 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5101 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5102 else
5103 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5104 fi
5105 ;;
5106
5107 newos6*)
5108 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5109 lt_cv_file_magic_cmd=/usr/bin/file
5110 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5111 ;;
5112
5113 *nto* | *qnx*)
5114 lt_cv_deplibs_check_method=pass_all
5115 ;;
5116
5117 openbsd*)
5118 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5119 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5120 else
5121 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5122 fi
5123 ;;
5124
5125 osf3* | osf4* | osf5*)
5126 lt_cv_deplibs_check_method=pass_all
5127 ;;
5128
5129 rdos*)
5130 lt_cv_deplibs_check_method=pass_all
5131 ;;
5132
5133 solaris*)
5134 lt_cv_deplibs_check_method=pass_all
5135 ;;
5136
5137 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5138 lt_cv_deplibs_check_method=pass_all
5139 ;;
5140
5141 sysv4 | sysv4.3*)
5142 case $host_vendor in
5143 motorola)
5144 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]'
5145 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5146 ;;
5147 ncr)
5148 lt_cv_deplibs_check_method=pass_all
5149 ;;
5150 sequent)
5151 lt_cv_file_magic_cmd='/bin/file'
5152 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5153 ;;
5154 sni)
5155 lt_cv_file_magic_cmd='/bin/file'
5156 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5157 lt_cv_file_magic_test_file=/lib/libc.so
5158 ;;
5159 siemens)
5160 lt_cv_deplibs_check_method=pass_all
5161 ;;
5162 pc)
5163 lt_cv_deplibs_check_method=pass_all
5164 ;;
5165 esac
5166 ;;
5167
5168 tpf*)
5169 lt_cv_deplibs_check_method=pass_all
5170 ;;
5171 esac
5172
5173 fi
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5175 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5176
5177 file_magic_glob=
5178 want_nocaseglob=no
5179 if test "$build" = "$host"; then
5180 case $host_os in
5181 mingw* | pw32*)
5182 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5183 want_nocaseglob=yes
5184 else
5185 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5186 fi
5187 ;;
5188 esac
5189 fi
5190
5191 file_magic_cmd=$lt_cv_file_magic_cmd
5192 deplibs_check_method=$lt_cv_deplibs_check_method
5193 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216 if test -n "$ac_tool_prefix"; then
5217 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5218 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5220 $as_echo_n "checking for $ac_word... " >&6; }
5221 if ${ac_cv_prog_DLLTOOL+:} false; then :
5222 $as_echo_n "(cached) " >&6
5223 else
5224 if test -n "$DLLTOOL"; then
5225 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5226 else
5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 for as_dir in $PATH
5229 do
5230 IFS=$as_save_IFS
5231 test -z "$as_dir" && as_dir=.
5232 for ac_exec_ext in '' $ac_executable_extensions; do
5233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5234 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5236 break 2
5237 fi
5238 done
5239 done
5240 IFS=$as_save_IFS
5241
5242 fi
5243 fi
5244 DLLTOOL=$ac_cv_prog_DLLTOOL
5245 if test -n "$DLLTOOL"; then
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5247 $as_echo "$DLLTOOL" >&6; }
5248 else
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5250 $as_echo "no" >&6; }
5251 fi
5252
5253
5254 fi
5255 if test -z "$ac_cv_prog_DLLTOOL"; then
5256 ac_ct_DLLTOOL=$DLLTOOL
5257 # Extract the first word of "dlltool", so it can be a program name with args.
5258 set dummy dlltool; ac_word=$2
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5260 $as_echo_n "checking for $ac_word... " >&6; }
5261 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5262 $as_echo_n "(cached) " >&6
5263 else
5264 if test -n "$ac_ct_DLLTOOL"; then
5265 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5266 else
5267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268 for as_dir in $PATH
5269 do
5270 IFS=$as_save_IFS
5271 test -z "$as_dir" && as_dir=.
5272 for ac_exec_ext in '' $ac_executable_extensions; do
5273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5274 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5276 break 2
5277 fi
5278 done
5279 done
5280 IFS=$as_save_IFS
5281
5282 fi
5283 fi
5284 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5285 if test -n "$ac_ct_DLLTOOL"; then
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5287 $as_echo "$ac_ct_DLLTOOL" >&6; }
5288 else
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5290 $as_echo "no" >&6; }
5291 fi
5292
5293 if test "x$ac_ct_DLLTOOL" = x; then
5294 DLLTOOL="false"
5295 else
5296 case $cross_compiling:$ac_tool_warned in
5297 yes:)
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5300 ac_tool_warned=yes ;;
5301 esac
5302 DLLTOOL=$ac_ct_DLLTOOL
5303 fi
5304 else
5305 DLLTOOL="$ac_cv_prog_DLLTOOL"
5306 fi
5307
5308 test -z "$DLLTOOL" && DLLTOOL=dlltool
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5320 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5321 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5322 $as_echo_n "(cached) " >&6
5323 else
5324 lt_cv_sharedlib_from_linklib_cmd='unknown'
5325
5326 case $host_os in
5327 cygwin* | mingw* | pw32* | cegcc*)
5328 # two different shell functions defined in ltmain.sh
5329 # decide which to use based on capabilities of $DLLTOOL
5330 case `$DLLTOOL --help 2>&1` in
5331 *--identify-strict*)
5332 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5333 ;;
5334 *)
5335 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5336 ;;
5337 esac
5338 ;;
5339 *)
5340 # fallback: assume linklib IS sharedlib
5341 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5342 ;;
5343 esac
5344
5345 fi
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5347 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5348 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5349 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5350
5351
5352
5353
5354
5355
5356
5357
5358 if test -n "$ac_tool_prefix"; then
5359 for ac_prog in ar
5360 do
5361 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5362 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5364 $as_echo_n "checking for $ac_word... " >&6; }
5365 if ${ac_cv_prog_AR+:} false; then :
5366 $as_echo_n "(cached) " >&6
5367 else
5368 if test -n "$AR"; then
5369 ac_cv_prog_AR="$AR" # Let the user override the test.
5370 else
5371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372 for as_dir in $PATH
5373 do
5374 IFS=$as_save_IFS
5375 test -z "$as_dir" && as_dir=.
5376 for ac_exec_ext in '' $ac_executable_extensions; do
5377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5378 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5380 break 2
5381 fi
5382 done
5383 done
5384 IFS=$as_save_IFS
5385
5386 fi
5387 fi
5388 AR=$ac_cv_prog_AR
5389 if test -n "$AR"; then
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5391 $as_echo "$AR" >&6; }
5392 else
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394 $as_echo "no" >&6; }
5395 fi
5396
5397
5398 test -n "$AR" && break
5399 done
5400 fi
5401 if test -z "$AR"; then
5402 ac_ct_AR=$AR
5403 for ac_prog in ar
5404 do
5405 # Extract the first word of "$ac_prog", so it can be a program name with args.
5406 set dummy $ac_prog; ac_word=$2
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5408 $as_echo_n "checking for $ac_word... " >&6; }
5409 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5410 $as_echo_n "(cached) " >&6
5411 else
5412 if test -n "$ac_ct_AR"; then
5413 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5414 else
5415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416 for as_dir in $PATH
5417 do
5418 IFS=$as_save_IFS
5419 test -z "$as_dir" && as_dir=.
5420 for ac_exec_ext in '' $ac_executable_extensions; do
5421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5422 ac_cv_prog_ac_ct_AR="$ac_prog"
5423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5424 break 2
5425 fi
5426 done
5427 done
5428 IFS=$as_save_IFS
5429
5430 fi
5431 fi
5432 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5433 if test -n "$ac_ct_AR"; then
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5435 $as_echo "$ac_ct_AR" >&6; }
5436 else
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438 $as_echo "no" >&6; }
5439 fi
5440
5441
5442 test -n "$ac_ct_AR" && break
5443 done
5444
5445 if test "x$ac_ct_AR" = x; then
5446 AR="false"
5447 else
5448 case $cross_compiling:$ac_tool_warned in
5449 yes:)
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5452 ac_tool_warned=yes ;;
5453 esac
5454 AR=$ac_ct_AR
5455 fi
5456 fi
5457
5458 : ${AR=ar}
5459 : ${AR_FLAGS=cru}
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5472 $as_echo_n "checking for archiver @FILE support... " >&6; }
5473 if ${lt_cv_ar_at_file+:} false; then :
5474 $as_echo_n "(cached) " >&6
5475 else
5476 lt_cv_ar_at_file=no
5477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5478 /* end confdefs.h. */
5479
5480 int
5481 main ()
5482 {
5483
5484 ;
5485 return 0;
5486 }
5487 _ACEOF
5488 if ac_fn_c_try_compile "$LINENO"; then :
5489 echo conftest.$ac_objext > conftest.lst
5490 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5491 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5492 (eval $lt_ar_try) 2>&5
5493 ac_status=$?
5494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5495 test $ac_status = 0; }
5496 if test "$ac_status" -eq 0; then
5497 # Ensure the archiver fails upon bogus file names.
5498 rm -f conftest.$ac_objext libconftest.a
5499 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5500 (eval $lt_ar_try) 2>&5
5501 ac_status=$?
5502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5503 test $ac_status = 0; }
5504 if test "$ac_status" -ne 0; then
5505 lt_cv_ar_at_file=@
5506 fi
5507 fi
5508 rm -f conftest.* libconftest.a
5509
5510 fi
5511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5512
5513 fi
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5515 $as_echo "$lt_cv_ar_at_file" >&6; }
5516
5517 if test "x$lt_cv_ar_at_file" = xno; then
5518 archiver_list_spec=
5519 else
5520 archiver_list_spec=$lt_cv_ar_at_file
5521 fi
5522
5523
5524
5525
5526
5527
5528
5529 if test -n "$ac_tool_prefix"; then
5530 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5531 set dummy ${ac_tool_prefix}strip; ac_word=$2
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5533 $as_echo_n "checking for $ac_word... " >&6; }
5534 if ${ac_cv_prog_STRIP+:} false; then :
5535 $as_echo_n "(cached) " >&6
5536 else
5537 if test -n "$STRIP"; then
5538 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5539 else
5540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541 for as_dir in $PATH
5542 do
5543 IFS=$as_save_IFS
5544 test -z "$as_dir" && as_dir=.
5545 for ac_exec_ext in '' $ac_executable_extensions; do
5546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5547 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5549 break 2
5550 fi
5551 done
5552 done
5553 IFS=$as_save_IFS
5554
5555 fi
5556 fi
5557 STRIP=$ac_cv_prog_STRIP
5558 if test -n "$STRIP"; then
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5560 $as_echo "$STRIP" >&6; }
5561 else
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5563 $as_echo "no" >&6; }
5564 fi
5565
5566
5567 fi
5568 if test -z "$ac_cv_prog_STRIP"; then
5569 ac_ct_STRIP=$STRIP
5570 # Extract the first word of "strip", so it can be a program name with args.
5571 set dummy strip; ac_word=$2
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5573 $as_echo_n "checking for $ac_word... " >&6; }
5574 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5575 $as_echo_n "(cached) " >&6
5576 else
5577 if test -n "$ac_ct_STRIP"; then
5578 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5579 else
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 for as_dir in $PATH
5582 do
5583 IFS=$as_save_IFS
5584 test -z "$as_dir" && as_dir=.
5585 for ac_exec_ext in '' $ac_executable_extensions; do
5586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5587 ac_cv_prog_ac_ct_STRIP="strip"
5588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 break 2
5590 fi
5591 done
5592 done
5593 IFS=$as_save_IFS
5594
5595 fi
5596 fi
5597 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5598 if test -n "$ac_ct_STRIP"; then
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5600 $as_echo "$ac_ct_STRIP" >&6; }
5601 else
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603 $as_echo "no" >&6; }
5604 fi
5605
5606 if test "x$ac_ct_STRIP" = x; then
5607 STRIP=":"
5608 else
5609 case $cross_compiling:$ac_tool_warned in
5610 yes:)
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5613 ac_tool_warned=yes ;;
5614 esac
5615 STRIP=$ac_ct_STRIP
5616 fi
5617 else
5618 STRIP="$ac_cv_prog_STRIP"
5619 fi
5620
5621 test -z "$STRIP" && STRIP=:
5622
5623
5624
5625
5626
5627
5628 if test -n "$ac_tool_prefix"; then
5629 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5630 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5632 $as_echo_n "checking for $ac_word... " >&6; }
5633 if ${ac_cv_prog_RANLIB+:} false; then :
5634 $as_echo_n "(cached) " >&6
5635 else
5636 if test -n "$RANLIB"; then
5637 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5638 else
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640 for as_dir in $PATH
5641 do
5642 IFS=$as_save_IFS
5643 test -z "$as_dir" && as_dir=.
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5646 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5648 break 2
5649 fi
5650 done
5651 done
5652 IFS=$as_save_IFS
5653
5654 fi
5655 fi
5656 RANLIB=$ac_cv_prog_RANLIB
5657 if test -n "$RANLIB"; then
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5659 $as_echo "$RANLIB" >&6; }
5660 else
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662 $as_echo "no" >&6; }
5663 fi
5664
5665
5666 fi
5667 if test -z "$ac_cv_prog_RANLIB"; then
5668 ac_ct_RANLIB=$RANLIB
5669 # Extract the first word of "ranlib", so it can be a program name with args.
5670 set dummy ranlib; ac_word=$2
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5672 $as_echo_n "checking for $ac_word... " >&6; }
5673 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5674 $as_echo_n "(cached) " >&6
5675 else
5676 if test -n "$ac_ct_RANLIB"; then
5677 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5678 else
5679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680 for as_dir in $PATH
5681 do
5682 IFS=$as_save_IFS
5683 test -z "$as_dir" && as_dir=.
5684 for ac_exec_ext in '' $ac_executable_extensions; do
5685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5686 ac_cv_prog_ac_ct_RANLIB="ranlib"
5687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5688 break 2
5689 fi
5690 done
5691 done
5692 IFS=$as_save_IFS
5693
5694 fi
5695 fi
5696 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5697 if test -n "$ac_ct_RANLIB"; then
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5699 $as_echo "$ac_ct_RANLIB" >&6; }
5700 else
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702 $as_echo "no" >&6; }
5703 fi
5704
5705 if test "x$ac_ct_RANLIB" = x; then
5706 RANLIB=":"
5707 else
5708 case $cross_compiling:$ac_tool_warned in
5709 yes:)
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5712 ac_tool_warned=yes ;;
5713 esac
5714 RANLIB=$ac_ct_RANLIB
5715 fi
5716 else
5717 RANLIB="$ac_cv_prog_RANLIB"
5718 fi
5719
5720 test -z "$RANLIB" && RANLIB=:
5721
5722
5723
5724
5725
5726
5727 # Determine commands to create old-style static archives.
5728 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5729 old_postinstall_cmds='chmod 644 $oldlib'
5730 old_postuninstall_cmds=
5731
5732 if test -n "$RANLIB"; then
5733 case $host_os in
5734 openbsd*)
5735 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5736 ;;
5737 *)
5738 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5739 ;;
5740 esac
5741 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5742 fi
5743
5744 case $host_os in
5745 darwin*)
5746 lock_old_archive_extraction=yes ;;
5747 *)
5748 lock_old_archive_extraction=no ;;
5749 esac
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789 # If no C compiler was specified, use CC.
5790 LTCC=${LTCC-"$CC"}
5791
5792 # If no C compiler flags were specified, use CFLAGS.
5793 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5794
5795 # Allow CC to be a program name with arguments.
5796 compiler=$CC
5797
5798
5799 # Check for command to grab the raw symbol name followed by C symbol from nm.
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5801 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5802 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5803 $as_echo_n "(cached) " >&6
5804 else
5805
5806 # These are sane defaults that work on at least a few old systems.
5807 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5808
5809 # Character class describing NM global symbol codes.
5810 symcode='[BCDEGRST]'
5811
5812 # Regexp to match symbols that can be accessed directly from C.
5813 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5814
5815 # Define system-specific variables.
5816 case $host_os in
5817 aix*)
5818 symcode='[BCDT]'
5819 ;;
5820 cygwin* | mingw* | pw32* | cegcc*)
5821 symcode='[ABCDGISTW]'
5822 ;;
5823 hpux*)
5824 if test "$host_cpu" = ia64; then
5825 symcode='[ABCDEGRST]'
5826 fi
5827 ;;
5828 irix* | nonstopux*)
5829 symcode='[BCDEGRST]'
5830 ;;
5831 osf*)
5832 symcode='[BCDEGQRST]'
5833 ;;
5834 solaris*)
5835 symcode='[BDRT]'
5836 ;;
5837 sco3.2v5*)
5838 symcode='[DT]'
5839 ;;
5840 sysv4.2uw2*)
5841 symcode='[DT]'
5842 ;;
5843 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5844 symcode='[ABDT]'
5845 ;;
5846 sysv4)
5847 symcode='[DFNSTU]'
5848 ;;
5849 esac
5850
5851 # If we're using GNU nm, then use its standard symbol codes.
5852 case `$NM -V 2>&1` in
5853 *GNU* | *'with BFD'*)
5854 symcode='[ABCDGIRSTW]' ;;
5855 esac
5856
5857 # Transform an extracted symbol line into a proper C declaration.
5858 # Some systems (esp. on ia64) link data and code symbols differently,
5859 # so use this general approach.
5860 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5861
5862 # Transform an extracted symbol line into symbol name and symbol address
5863 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5864 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'"
5865
5866 # Handle CRLF in mingw tool chain
5867 opt_cr=
5868 case $build_os in
5869 mingw*)
5870 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5871 ;;
5872 esac
5873
5874 # Try without a prefix underscore, then with it.
5875 for ac_symprfx in "" "_"; do
5876
5877 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5878 symxfrm="\\1 $ac_symprfx\\2 \\2"
5879
5880 # Write the raw and C identifiers.
5881 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5882 # Fake it for dumpbin and say T for any non-static function
5883 # and D for any global variable.
5884 # Also find C++ and __fastcall symbols from MSVC++,
5885 # which start with @ or ?.
5886 lt_cv_sys_global_symbol_pipe="$AWK '"\
5887 " {last_section=section; section=\$ 3};"\
5888 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5889 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5890 " \$ 0!~/External *\|/{next};"\
5891 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5892 " {if(hide[section]) next};"\
5893 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5894 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5895 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5896 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5897 " ' prfx=^$ac_symprfx"
5898 else
5899 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5900 fi
5901 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5902
5903 # Check to see that the pipe works correctly.
5904 pipe_works=no
5905
5906 rm -f conftest*
5907 cat > conftest.$ac_ext <<_LT_EOF
5908 #ifdef __cplusplus
5909 extern "C" {
5910 #endif
5911 char nm_test_var;
5912 void nm_test_func(void);
5913 void nm_test_func(void){}
5914 #ifdef __cplusplus
5915 }
5916 #endif
5917 int main(){nm_test_var='a';nm_test_func();return(0);}
5918 _LT_EOF
5919
5920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5921 (eval $ac_compile) 2>&5
5922 ac_status=$?
5923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5924 test $ac_status = 0; }; then
5925 # Now try to grab the symbols.
5926 nlist=conftest.nm
5927 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5928 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5929 ac_status=$?
5930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5931 test $ac_status = 0; } && test -s "$nlist"; then
5932 # Try sorting and uniquifying the output.
5933 if sort "$nlist" | uniq > "$nlist"T; then
5934 mv -f "$nlist"T "$nlist"
5935 else
5936 rm -f "$nlist"T
5937 fi
5938
5939 # Make sure that we snagged all the symbols we need.
5940 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5941 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5942 cat <<_LT_EOF > conftest.$ac_ext
5943 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5944 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5945 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5946 relocations are performed -- see ld's documentation on pseudo-relocs. */
5947 # define LT_DLSYM_CONST
5948 #elif defined(__osf__)
5949 /* This system does not cope well with relocations in const data. */
5950 # define LT_DLSYM_CONST
5951 #else
5952 # define LT_DLSYM_CONST const
5953 #endif
5954
5955 #ifdef __cplusplus
5956 extern "C" {
5957 #endif
5958
5959 _LT_EOF
5960 # Now generate the symbol file.
5961 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5962
5963 cat <<_LT_EOF >> conftest.$ac_ext
5964
5965 /* The mapping between symbol names and symbols. */
5966 LT_DLSYM_CONST struct {
5967 const char *name;
5968 void *address;
5969 }
5970 lt__PROGRAM__LTX_preloaded_symbols[] =
5971 {
5972 { "@PROGRAM@", (void *) 0 },
5973 _LT_EOF
5974 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5975 cat <<\_LT_EOF >> conftest.$ac_ext
5976 {0, (void *) 0}
5977 };
5978
5979 /* This works around a problem in FreeBSD linker */
5980 #ifdef FREEBSD_WORKAROUND
5981 static const void *lt_preloaded_setup() {
5982 return lt__PROGRAM__LTX_preloaded_symbols;
5983 }
5984 #endif
5985
5986 #ifdef __cplusplus
5987 }
5988 #endif
5989 _LT_EOF
5990 # Now try linking the two files.
5991 mv conftest.$ac_objext conftstm.$ac_objext
5992 lt_globsym_save_LIBS=$LIBS
5993 lt_globsym_save_CFLAGS=$CFLAGS
5994 LIBS="conftstm.$ac_objext"
5995 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5996 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5997 (eval $ac_link) 2>&5
5998 ac_status=$?
5999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6000 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6001 pipe_works=yes
6002 fi
6003 LIBS=$lt_globsym_save_LIBS
6004 CFLAGS=$lt_globsym_save_CFLAGS
6005 else
6006 echo "cannot find nm_test_func in $nlist" >&5
6007 fi
6008 else
6009 echo "cannot find nm_test_var in $nlist" >&5
6010 fi
6011 else
6012 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6013 fi
6014 else
6015 echo "$progname: failed program was:" >&5
6016 cat conftest.$ac_ext >&5
6017 fi
6018 rm -rf conftest* conftst*
6019
6020 # Do not use the global_symbol_pipe unless it works.
6021 if test "$pipe_works" = yes; then
6022 break
6023 else
6024 lt_cv_sys_global_symbol_pipe=
6025 fi
6026 done
6027
6028 fi
6029
6030 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6031 lt_cv_sys_global_symbol_to_cdecl=
6032 fi
6033 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6035 $as_echo "failed" >&6; }
6036 else
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6038 $as_echo "ok" >&6; }
6039 fi
6040
6041 # Response file support.
6042 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6043 nm_file_list_spec='@'
6044 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6045 nm_file_list_spec='@'
6046 fi
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6075 $as_echo_n "checking for sysroot... " >&6; }
6076
6077 # Check whether --with-sysroot was given.
6078 if test "${with_sysroot+set}" = set; then :
6079 withval=$with_sysroot;
6080 else
6081 with_sysroot=no
6082 fi
6083
6084
6085 lt_sysroot=
6086 case ${with_sysroot} in #(
6087 yes)
6088 if test "$GCC" = yes; then
6089 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6090 fi
6091 ;; #(
6092 /*)
6093 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6094 ;; #(
6095 no|'')
6096 ;; #(
6097 *)
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6099 $as_echo "${with_sysroot}" >&6; }
6100 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6101 ;;
6102 esac
6103
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6105 $as_echo "${lt_sysroot:-no}" >&6; }
6106
6107
6108
6109
6110
6111 # Check whether --enable-libtool-lock was given.
6112 if test "${enable_libtool_lock+set}" = set; then :
6113 enableval=$enable_libtool_lock;
6114 fi
6115
6116 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6117
6118 # Some flags need to be propagated to the compiler or linker for good
6119 # libtool support.
6120 case $host in
6121 ia64-*-hpux*)
6122 # Find out which ABI we are using.
6123 echo 'int i;' > conftest.$ac_ext
6124 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6125 (eval $ac_compile) 2>&5
6126 ac_status=$?
6127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6128 test $ac_status = 0; }; then
6129 case `/usr/bin/file conftest.$ac_objext` in
6130 *ELF-32*)
6131 HPUX_IA64_MODE="32"
6132 ;;
6133 *ELF-64*)
6134 HPUX_IA64_MODE="64"
6135 ;;
6136 esac
6137 fi
6138 rm -rf conftest*
6139 ;;
6140 *-*-irix6*)
6141 # Find out which ABI we are using.
6142 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6144 (eval $ac_compile) 2>&5
6145 ac_status=$?
6146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6147 test $ac_status = 0; }; then
6148 if test "$lt_cv_prog_gnu_ld" = yes; then
6149 case `/usr/bin/file conftest.$ac_objext` in
6150 *32-bit*)
6151 LD="${LD-ld} -melf32bsmip"
6152 ;;
6153 *N32*)
6154 LD="${LD-ld} -melf32bmipn32"
6155 ;;
6156 *64-bit*)
6157 LD="${LD-ld} -melf64bmip"
6158 ;;
6159 esac
6160 else
6161 case `/usr/bin/file conftest.$ac_objext` in
6162 *32-bit*)
6163 LD="${LD-ld} -32"
6164 ;;
6165 *N32*)
6166 LD="${LD-ld} -n32"
6167 ;;
6168 *64-bit*)
6169 LD="${LD-ld} -64"
6170 ;;
6171 esac
6172 fi
6173 fi
6174 rm -rf conftest*
6175 ;;
6176
6177 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6178 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6179 # Find out which ABI we are using.
6180 echo 'int i;' > conftest.$ac_ext
6181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6182 (eval $ac_compile) 2>&5
6183 ac_status=$?
6184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6185 test $ac_status = 0; }; then
6186 case `/usr/bin/file conftest.o` in
6187 *32-bit*)
6188 case $host in
6189 x86_64-*kfreebsd*-gnu)
6190 LD="${LD-ld} -m elf_i386_fbsd"
6191 ;;
6192 x86_64-*linux*)
6193 LD="${LD-ld} -m elf_i386"
6194 ;;
6195 ppc64-*linux*|powerpc64-*linux*)
6196 LD="${LD-ld} -m elf32ppclinux"
6197 ;;
6198 s390x-*linux*)
6199 LD="${LD-ld} -m elf_s390"
6200 ;;
6201 sparc64-*linux*)
6202 LD="${LD-ld} -m elf32_sparc"
6203 ;;
6204 esac
6205 ;;
6206 *64-bit*)
6207 case $host in
6208 x86_64-*kfreebsd*-gnu)
6209 LD="${LD-ld} -m elf_x86_64_fbsd"
6210 ;;
6211 x86_64-*linux*)
6212 LD="${LD-ld} -m elf_x86_64"
6213 ;;
6214 ppc*-*linux*|powerpc*-*linux*)
6215 LD="${LD-ld} -m elf64ppc"
6216 ;;
6217 s390*-*linux*|s390*-*tpf*)
6218 LD="${LD-ld} -m elf64_s390"
6219 ;;
6220 sparc*-*linux*)
6221 LD="${LD-ld} -m elf64_sparc"
6222 ;;
6223 esac
6224 ;;
6225 esac
6226 fi
6227 rm -rf conftest*
6228 ;;
6229
6230 *-*-sco3.2v5*)
6231 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6232 SAVE_CFLAGS="$CFLAGS"
6233 CFLAGS="$CFLAGS -belf"
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6235 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6236 if ${lt_cv_cc_needs_belf+:} false; then :
6237 $as_echo_n "(cached) " >&6
6238 else
6239 ac_ext=c
6240 ac_cpp='$CPP $CPPFLAGS'
6241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6244
6245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6246 /* end confdefs.h. */
6247
6248 int
6249 main ()
6250 {
6251
6252 ;
6253 return 0;
6254 }
6255 _ACEOF
6256 if ac_fn_c_try_link "$LINENO"; then :
6257 lt_cv_cc_needs_belf=yes
6258 else
6259 lt_cv_cc_needs_belf=no
6260 fi
6261 rm -f core conftest.err conftest.$ac_objext \
6262 conftest$ac_exeext conftest.$ac_ext
6263 ac_ext=c
6264 ac_cpp='$CPP $CPPFLAGS'
6265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6268
6269 fi
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6271 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6272 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6273 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6274 CFLAGS="$SAVE_CFLAGS"
6275 fi
6276 ;;
6277 *-*solaris*)
6278 # Find out which ABI we are using.
6279 echo 'int i;' > conftest.$ac_ext
6280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6281 (eval $ac_compile) 2>&5
6282 ac_status=$?
6283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6284 test $ac_status = 0; }; then
6285 case `/usr/bin/file conftest.o` in
6286 *64-bit*)
6287 case $lt_cv_prog_gnu_ld in
6288 yes*)
6289 case $host in
6290 i?86-*-solaris*)
6291 LD="${LD-ld} -m elf_x86_64"
6292 ;;
6293 sparc*-*-solaris*)
6294 LD="${LD-ld} -m elf64_sparc"
6295 ;;
6296 esac
6297 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6298 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6299 LD="${LD-ld}_sol2"
6300 fi
6301 ;;
6302 *)
6303 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6304 LD="${LD-ld} -64"
6305 fi
6306 ;;
6307 esac
6308 ;;
6309 esac
6310 fi
6311 rm -rf conftest*
6312 ;;
6313 esac
6314
6315 need_locks="$enable_libtool_lock"
6316
6317 if test -n "$ac_tool_prefix"; then
6318 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6319 set dummy ${ac_tool_prefix}mt; ac_word=$2
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6321 $as_echo_n "checking for $ac_word... " >&6; }
6322 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6323 $as_echo_n "(cached) " >&6
6324 else
6325 if test -n "$MANIFEST_TOOL"; then
6326 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6327 else
6328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329 for as_dir in $PATH
6330 do
6331 IFS=$as_save_IFS
6332 test -z "$as_dir" && as_dir=.
6333 for ac_exec_ext in '' $ac_executable_extensions; do
6334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6335 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6337 break 2
6338 fi
6339 done
6340 done
6341 IFS=$as_save_IFS
6342
6343 fi
6344 fi
6345 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6346 if test -n "$MANIFEST_TOOL"; then
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6348 $as_echo "$MANIFEST_TOOL" >&6; }
6349 else
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6351 $as_echo "no" >&6; }
6352 fi
6353
6354
6355 fi
6356 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6357 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6358 # Extract the first word of "mt", so it can be a program name with args.
6359 set dummy mt; ac_word=$2
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6361 $as_echo_n "checking for $ac_word... " >&6; }
6362 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6363 $as_echo_n "(cached) " >&6
6364 else
6365 if test -n "$ac_ct_MANIFEST_TOOL"; then
6366 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6367 else
6368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369 for as_dir in $PATH
6370 do
6371 IFS=$as_save_IFS
6372 test -z "$as_dir" && as_dir=.
6373 for ac_exec_ext in '' $ac_executable_extensions; do
6374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6375 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6377 break 2
6378 fi
6379 done
6380 done
6381 IFS=$as_save_IFS
6382
6383 fi
6384 fi
6385 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6386 if test -n "$ac_ct_MANIFEST_TOOL"; then
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6388 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6389 else
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6391 $as_echo "no" >&6; }
6392 fi
6393
6394 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6395 MANIFEST_TOOL=":"
6396 else
6397 case $cross_compiling:$ac_tool_warned in
6398 yes:)
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6401 ac_tool_warned=yes ;;
6402 esac
6403 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6404 fi
6405 else
6406 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6407 fi
6408
6409 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6411 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6412 if ${lt_cv_path_mainfest_tool+:} false; then :
6413 $as_echo_n "(cached) " >&6
6414 else
6415 lt_cv_path_mainfest_tool=no
6416 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6417 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6418 cat conftest.err >&5
6419 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6420 lt_cv_path_mainfest_tool=yes
6421 fi
6422 rm -f conftest*
6423 fi
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6425 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6426 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6427 MANIFEST_TOOL=:
6428 fi
6429
6430
6431
6432
6433
6434
6435 case $host_os in
6436 rhapsody* | darwin*)
6437 if test -n "$ac_tool_prefix"; then
6438 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6439 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441 $as_echo_n "checking for $ac_word... " >&6; }
6442 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6443 $as_echo_n "(cached) " >&6
6444 else
6445 if test -n "$DSYMUTIL"; then
6446 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6447 else
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 for as_dir in $PATH
6450 do
6451 IFS=$as_save_IFS
6452 test -z "$as_dir" && as_dir=.
6453 for ac_exec_ext in '' $ac_executable_extensions; do
6454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6455 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6457 break 2
6458 fi
6459 done
6460 done
6461 IFS=$as_save_IFS
6462
6463 fi
6464 fi
6465 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6466 if test -n "$DSYMUTIL"; then
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6468 $as_echo "$DSYMUTIL" >&6; }
6469 else
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471 $as_echo "no" >&6; }
6472 fi
6473
6474
6475 fi
6476 if test -z "$ac_cv_prog_DSYMUTIL"; then
6477 ac_ct_DSYMUTIL=$DSYMUTIL
6478 # Extract the first word of "dsymutil", so it can be a program name with args.
6479 set dummy dsymutil; ac_word=$2
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6481 $as_echo_n "checking for $ac_word... " >&6; }
6482 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6483 $as_echo_n "(cached) " >&6
6484 else
6485 if test -n "$ac_ct_DSYMUTIL"; then
6486 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6487 else
6488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 for as_dir in $PATH
6490 do
6491 IFS=$as_save_IFS
6492 test -z "$as_dir" && as_dir=.
6493 for ac_exec_ext in '' $ac_executable_extensions; do
6494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6495 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6497 break 2
6498 fi
6499 done
6500 done
6501 IFS=$as_save_IFS
6502
6503 fi
6504 fi
6505 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6506 if test -n "$ac_ct_DSYMUTIL"; then
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6508 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6509 else
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6511 $as_echo "no" >&6; }
6512 fi
6513
6514 if test "x$ac_ct_DSYMUTIL" = x; then
6515 DSYMUTIL=":"
6516 else
6517 case $cross_compiling:$ac_tool_warned in
6518 yes:)
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6521 ac_tool_warned=yes ;;
6522 esac
6523 DSYMUTIL=$ac_ct_DSYMUTIL
6524 fi
6525 else
6526 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6527 fi
6528
6529 if test -n "$ac_tool_prefix"; then
6530 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6531 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6533 $as_echo_n "checking for $ac_word... " >&6; }
6534 if ${ac_cv_prog_NMEDIT+:} false; then :
6535 $as_echo_n "(cached) " >&6
6536 else
6537 if test -n "$NMEDIT"; then
6538 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6539 else
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541 for as_dir in $PATH
6542 do
6543 IFS=$as_save_IFS
6544 test -z "$as_dir" && as_dir=.
6545 for ac_exec_ext in '' $ac_executable_extensions; do
6546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6547 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6549 break 2
6550 fi
6551 done
6552 done
6553 IFS=$as_save_IFS
6554
6555 fi
6556 fi
6557 NMEDIT=$ac_cv_prog_NMEDIT
6558 if test -n "$NMEDIT"; then
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6560 $as_echo "$NMEDIT" >&6; }
6561 else
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6563 $as_echo "no" >&6; }
6564 fi
6565
6566
6567 fi
6568 if test -z "$ac_cv_prog_NMEDIT"; then
6569 ac_ct_NMEDIT=$NMEDIT
6570 # Extract the first word of "nmedit", so it can be a program name with args.
6571 set dummy nmedit; ac_word=$2
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6573 $as_echo_n "checking for $ac_word... " >&6; }
6574 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6575 $as_echo_n "(cached) " >&6
6576 else
6577 if test -n "$ac_ct_NMEDIT"; then
6578 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6579 else
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 for as_dir in $PATH
6582 do
6583 IFS=$as_save_IFS
6584 test -z "$as_dir" && as_dir=.
6585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6587 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6589 break 2
6590 fi
6591 done
6592 done
6593 IFS=$as_save_IFS
6594
6595 fi
6596 fi
6597 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6598 if test -n "$ac_ct_NMEDIT"; then
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6600 $as_echo "$ac_ct_NMEDIT" >&6; }
6601 else
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603 $as_echo "no" >&6; }
6604 fi
6605
6606 if test "x$ac_ct_NMEDIT" = x; then
6607 NMEDIT=":"
6608 else
6609 case $cross_compiling:$ac_tool_warned in
6610 yes:)
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6613 ac_tool_warned=yes ;;
6614 esac
6615 NMEDIT=$ac_ct_NMEDIT
6616 fi
6617 else
6618 NMEDIT="$ac_cv_prog_NMEDIT"
6619 fi
6620
6621 if test -n "$ac_tool_prefix"; then
6622 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6623 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6625 $as_echo_n "checking for $ac_word... " >&6; }
6626 if ${ac_cv_prog_LIPO+:} false; then :
6627 $as_echo_n "(cached) " >&6
6628 else
6629 if test -n "$LIPO"; then
6630 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6631 else
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633 for as_dir in $PATH
6634 do
6635 IFS=$as_save_IFS
6636 test -z "$as_dir" && as_dir=.
6637 for ac_exec_ext in '' $ac_executable_extensions; do
6638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6639 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6641 break 2
6642 fi
6643 done
6644 done
6645 IFS=$as_save_IFS
6646
6647 fi
6648 fi
6649 LIPO=$ac_cv_prog_LIPO
6650 if test -n "$LIPO"; then
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6652 $as_echo "$LIPO" >&6; }
6653 else
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655 $as_echo "no" >&6; }
6656 fi
6657
6658
6659 fi
6660 if test -z "$ac_cv_prog_LIPO"; then
6661 ac_ct_LIPO=$LIPO
6662 # Extract the first word of "lipo", so it can be a program name with args.
6663 set dummy lipo; ac_word=$2
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6665 $as_echo_n "checking for $ac_word... " >&6; }
6666 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6667 $as_echo_n "(cached) " >&6
6668 else
6669 if test -n "$ac_ct_LIPO"; then
6670 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6671 else
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 for as_dir in $PATH
6674 do
6675 IFS=$as_save_IFS
6676 test -z "$as_dir" && as_dir=.
6677 for ac_exec_ext in '' $ac_executable_extensions; do
6678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6679 ac_cv_prog_ac_ct_LIPO="lipo"
6680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6681 break 2
6682 fi
6683 done
6684 done
6685 IFS=$as_save_IFS
6686
6687 fi
6688 fi
6689 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6690 if test -n "$ac_ct_LIPO"; then
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6692 $as_echo "$ac_ct_LIPO" >&6; }
6693 else
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6695 $as_echo "no" >&6; }
6696 fi
6697
6698 if test "x$ac_ct_LIPO" = x; then
6699 LIPO=":"
6700 else
6701 case $cross_compiling:$ac_tool_warned in
6702 yes:)
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6705 ac_tool_warned=yes ;;
6706 esac
6707 LIPO=$ac_ct_LIPO
6708 fi
6709 else
6710 LIPO="$ac_cv_prog_LIPO"
6711 fi
6712
6713 if test -n "$ac_tool_prefix"; then
6714 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6715 set dummy ${ac_tool_prefix}otool; ac_word=$2
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717 $as_echo_n "checking for $ac_word... " >&6; }
6718 if ${ac_cv_prog_OTOOL+:} false; then :
6719 $as_echo_n "(cached) " >&6
6720 else
6721 if test -n "$OTOOL"; then
6722 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6723 else
6724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725 for as_dir in $PATH
6726 do
6727 IFS=$as_save_IFS
6728 test -z "$as_dir" && as_dir=.
6729 for ac_exec_ext in '' $ac_executable_extensions; do
6730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6731 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6733 break 2
6734 fi
6735 done
6736 done
6737 IFS=$as_save_IFS
6738
6739 fi
6740 fi
6741 OTOOL=$ac_cv_prog_OTOOL
6742 if test -n "$OTOOL"; then
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6744 $as_echo "$OTOOL" >&6; }
6745 else
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6747 $as_echo "no" >&6; }
6748 fi
6749
6750
6751 fi
6752 if test -z "$ac_cv_prog_OTOOL"; then
6753 ac_ct_OTOOL=$OTOOL
6754 # Extract the first word of "otool", so it can be a program name with args.
6755 set dummy otool; ac_word=$2
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757 $as_echo_n "checking for $ac_word... " >&6; }
6758 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6759 $as_echo_n "(cached) " >&6
6760 else
6761 if test -n "$ac_ct_OTOOL"; then
6762 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6763 else
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 for as_dir in $PATH
6766 do
6767 IFS=$as_save_IFS
6768 test -z "$as_dir" && as_dir=.
6769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6771 ac_cv_prog_ac_ct_OTOOL="otool"
6772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 break 2
6774 fi
6775 done
6776 done
6777 IFS=$as_save_IFS
6778
6779 fi
6780 fi
6781 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6782 if test -n "$ac_ct_OTOOL"; then
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6784 $as_echo "$ac_ct_OTOOL" >&6; }
6785 else
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787 $as_echo "no" >&6; }
6788 fi
6789
6790 if test "x$ac_ct_OTOOL" = x; then
6791 OTOOL=":"
6792 else
6793 case $cross_compiling:$ac_tool_warned in
6794 yes:)
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6797 ac_tool_warned=yes ;;
6798 esac
6799 OTOOL=$ac_ct_OTOOL
6800 fi
6801 else
6802 OTOOL="$ac_cv_prog_OTOOL"
6803 fi
6804
6805 if test -n "$ac_tool_prefix"; then
6806 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6807 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6809 $as_echo_n "checking for $ac_word... " >&6; }
6810 if ${ac_cv_prog_OTOOL64+:} false; then :
6811 $as_echo_n "(cached) " >&6
6812 else
6813 if test -n "$OTOOL64"; then
6814 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6815 else
6816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817 for as_dir in $PATH
6818 do
6819 IFS=$as_save_IFS
6820 test -z "$as_dir" && as_dir=.
6821 for ac_exec_ext in '' $ac_executable_extensions; do
6822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6823 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6825 break 2
6826 fi
6827 done
6828 done
6829 IFS=$as_save_IFS
6830
6831 fi
6832 fi
6833 OTOOL64=$ac_cv_prog_OTOOL64
6834 if test -n "$OTOOL64"; then
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6836 $as_echo "$OTOOL64" >&6; }
6837 else
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6839 $as_echo "no" >&6; }
6840 fi
6841
6842
6843 fi
6844 if test -z "$ac_cv_prog_OTOOL64"; then
6845 ac_ct_OTOOL64=$OTOOL64
6846 # Extract the first word of "otool64", so it can be a program name with args.
6847 set dummy otool64; ac_word=$2
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6849 $as_echo_n "checking for $ac_word... " >&6; }
6850 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6851 $as_echo_n "(cached) " >&6
6852 else
6853 if test -n "$ac_ct_OTOOL64"; then
6854 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6855 else
6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857 for as_dir in $PATH
6858 do
6859 IFS=$as_save_IFS
6860 test -z "$as_dir" && as_dir=.
6861 for ac_exec_ext in '' $ac_executable_extensions; do
6862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6863 ac_cv_prog_ac_ct_OTOOL64="otool64"
6864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6865 break 2
6866 fi
6867 done
6868 done
6869 IFS=$as_save_IFS
6870
6871 fi
6872 fi
6873 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6874 if test -n "$ac_ct_OTOOL64"; then
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6876 $as_echo "$ac_ct_OTOOL64" >&6; }
6877 else
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6879 $as_echo "no" >&6; }
6880 fi
6881
6882 if test "x$ac_ct_OTOOL64" = x; then
6883 OTOOL64=":"
6884 else
6885 case $cross_compiling:$ac_tool_warned in
6886 yes:)
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6889 ac_tool_warned=yes ;;
6890 esac
6891 OTOOL64=$ac_ct_OTOOL64
6892 fi
6893 else
6894 OTOOL64="$ac_cv_prog_OTOOL64"
6895 fi
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6924 $as_echo_n "checking for -single_module linker flag... " >&6; }
6925 if ${lt_cv_apple_cc_single_mod+:} false; then :
6926 $as_echo_n "(cached) " >&6
6927 else
6928 lt_cv_apple_cc_single_mod=no
6929 if test -z "${LT_MULTI_MODULE}"; then
6930 # By default we will add the -single_module flag. You can override
6931 # by either setting the environment variable LT_MULTI_MODULE
6932 # non-empty at configure time, or by adding -multi_module to the
6933 # link flags.
6934 rm -rf libconftest.dylib*
6935 echo "int foo(void){return 1;}" > conftest.c
6936 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6937 -dynamiclib -Wl,-single_module conftest.c" >&5
6938 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6939 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6940 _lt_result=$?
6941 # If there is a non-empty error log, and "single_module"
6942 # appears in it, assume the flag caused a linker warning
6943 if test -s conftest.err && $GREP single_module conftest.err; then
6944 cat conftest.err >&5
6945 # Otherwise, if the output was created with a 0 exit code from
6946 # the compiler, it worked.
6947 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6948 lt_cv_apple_cc_single_mod=yes
6949 else
6950 cat conftest.err >&5
6951 fi
6952 rm -rf libconftest.dylib*
6953 rm -f conftest.*
6954 fi
6955 fi
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6957 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6958
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6960 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6961 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6962 $as_echo_n "(cached) " >&6
6963 else
6964 lt_cv_ld_exported_symbols_list=no
6965 save_LDFLAGS=$LDFLAGS
6966 echo "_main" > conftest.sym
6967 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6969 /* end confdefs.h. */
6970
6971 int
6972 main ()
6973 {
6974
6975 ;
6976 return 0;
6977 }
6978 _ACEOF
6979 if ac_fn_c_try_link "$LINENO"; then :
6980 lt_cv_ld_exported_symbols_list=yes
6981 else
6982 lt_cv_ld_exported_symbols_list=no
6983 fi
6984 rm -f core conftest.err conftest.$ac_objext \
6985 conftest$ac_exeext conftest.$ac_ext
6986 LDFLAGS="$save_LDFLAGS"
6987
6988 fi
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6990 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6991
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6993 $as_echo_n "checking for -force_load linker flag... " >&6; }
6994 if ${lt_cv_ld_force_load+:} false; then :
6995 $as_echo_n "(cached) " >&6
6996 else
6997 lt_cv_ld_force_load=no
6998 cat > conftest.c << _LT_EOF
6999 int forced_loaded() { return 2;}
7000 _LT_EOF
7001 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7002 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7003 echo "$AR cru libconftest.a conftest.o" >&5
7004 $AR cru libconftest.a conftest.o 2>&5
7005 echo "$RANLIB libconftest.a" >&5
7006 $RANLIB libconftest.a 2>&5
7007 cat > conftest.c << _LT_EOF
7008 int main() { return 0;}
7009 _LT_EOF
7010 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7011 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7012 _lt_result=$?
7013 if test -s conftest.err && $GREP force_load conftest.err; then
7014 cat conftest.err >&5
7015 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7016 lt_cv_ld_force_load=yes
7017 else
7018 cat conftest.err >&5
7019 fi
7020 rm -f conftest.err libconftest.a conftest conftest.c
7021 rm -rf conftest.dSYM
7022
7023 fi
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7025 $as_echo "$lt_cv_ld_force_load" >&6; }
7026 case $host_os in
7027 rhapsody* | darwin1.[012])
7028 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7029 darwin1.*)
7030 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7031 darwin*) # darwin 5.x on
7032 # if running on 10.5 or later, the deployment target defaults
7033 # to the OS version, if on x86, and 10.4, the deployment
7034 # target defaults to 10.4. Don't you love it?
7035 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7036 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7037 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7038 10.[012]*)
7039 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7040 10.*)
7041 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7042 esac
7043 ;;
7044 esac
7045 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7046 _lt_dar_single_mod='$single_module'
7047 fi
7048 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7049 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7050 else
7051 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7052 fi
7053 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7054 _lt_dsymutil='~$DSYMUTIL $lib || :'
7055 else
7056 _lt_dsymutil=
7057 fi
7058 ;;
7059 esac
7060
7061 ac_ext=c
7062 ac_cpp='$CPP $CPPFLAGS'
7063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7067 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7068 # On Suns, sometimes $CPP names a directory.
7069 if test -n "$CPP" && test -d "$CPP"; then
7070 CPP=
7071 fi
7072 if test -z "$CPP"; then
7073 if ${ac_cv_prog_CPP+:} false; then :
7074 $as_echo_n "(cached) " >&6
7075 else
7076 # Double quotes because CPP needs to be expanded
7077 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7078 do
7079 ac_preproc_ok=false
7080 for ac_c_preproc_warn_flag in '' yes
7081 do
7082 # Use a header file that comes with gcc, so configuring glibc
7083 # with a fresh cross-compiler works.
7084 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7085 # <limits.h> exists even on freestanding compilers.
7086 # On the NeXT, cc -E runs the code through the compiler's parser,
7087 # not just through cpp. "Syntax error" is here to catch this case.
7088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7089 /* end confdefs.h. */
7090 #ifdef __STDC__
7091 # include <limits.h>
7092 #else
7093 # include <assert.h>
7094 #endif
7095 Syntax error
7096 _ACEOF
7097 if ac_fn_c_try_cpp "$LINENO"; then :
7098
7099 else
7100 # Broken: fails on valid input.
7101 continue
7102 fi
7103 rm -f conftest.err conftest.i conftest.$ac_ext
7104
7105 # OK, works on sane cases. Now check whether nonexistent headers
7106 # can be detected and how.
7107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108 /* end confdefs.h. */
7109 #include <ac_nonexistent.h>
7110 _ACEOF
7111 if ac_fn_c_try_cpp "$LINENO"; then :
7112 # Broken: success on invalid input.
7113 continue
7114 else
7115 # Passes both tests.
7116 ac_preproc_ok=:
7117 break
7118 fi
7119 rm -f conftest.err conftest.i conftest.$ac_ext
7120
7121 done
7122 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7123 rm -f conftest.i conftest.err conftest.$ac_ext
7124 if $ac_preproc_ok; then :
7125 break
7126 fi
7127
7128 done
7129 ac_cv_prog_CPP=$CPP
7130
7131 fi
7132 CPP=$ac_cv_prog_CPP
7133 else
7134 ac_cv_prog_CPP=$CPP
7135 fi
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7137 $as_echo "$CPP" >&6; }
7138 ac_preproc_ok=false
7139 for ac_c_preproc_warn_flag in '' yes
7140 do
7141 # Use a header file that comes with gcc, so configuring glibc
7142 # with a fresh cross-compiler works.
7143 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7144 # <limits.h> exists even on freestanding compilers.
7145 # On the NeXT, cc -E runs the code through the compiler's parser,
7146 # not just through cpp. "Syntax error" is here to catch this case.
7147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7148 /* end confdefs.h. */
7149 #ifdef __STDC__
7150 # include <limits.h>
7151 #else
7152 # include <assert.h>
7153 #endif
7154 Syntax error
7155 _ACEOF
7156 if ac_fn_c_try_cpp "$LINENO"; then :
7157
7158 else
7159 # Broken: fails on valid input.
7160 continue
7161 fi
7162 rm -f conftest.err conftest.i conftest.$ac_ext
7163
7164 # OK, works on sane cases. Now check whether nonexistent headers
7165 # can be detected and how.
7166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7167 /* end confdefs.h. */
7168 #include <ac_nonexistent.h>
7169 _ACEOF
7170 if ac_fn_c_try_cpp "$LINENO"; then :
7171 # Broken: success on invalid input.
7172 continue
7173 else
7174 # Passes both tests.
7175 ac_preproc_ok=:
7176 break
7177 fi
7178 rm -f conftest.err conftest.i conftest.$ac_ext
7179
7180 done
7181 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7182 rm -f conftest.i conftest.err conftest.$ac_ext
7183 if $ac_preproc_ok; then :
7184
7185 else
7186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7188 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7189 See \`config.log' for more details" "$LINENO" 5; }
7190 fi
7191
7192 ac_ext=c
7193 ac_cpp='$CPP $CPPFLAGS'
7194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7197
7198
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7200 $as_echo_n "checking for ANSI C header files... " >&6; }
7201 if ${ac_cv_header_stdc+:} false; then :
7202 $as_echo_n "(cached) " >&6
7203 else
7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205 /* end confdefs.h. */
7206 #include <stdlib.h>
7207 #include <stdarg.h>
7208 #include <string.h>
7209 #include <float.h>
7210
7211 int
7212 main ()
7213 {
7214
7215 ;
7216 return 0;
7217 }
7218 _ACEOF
7219 if ac_fn_c_try_compile "$LINENO"; then :
7220 ac_cv_header_stdc=yes
7221 else
7222 ac_cv_header_stdc=no
7223 fi
7224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7225
7226 if test $ac_cv_header_stdc = yes; then
7227 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229 /* end confdefs.h. */
7230 #include <string.h>
7231
7232 _ACEOF
7233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7234 $EGREP "memchr" >/dev/null 2>&1; then :
7235
7236 else
7237 ac_cv_header_stdc=no
7238 fi
7239 rm -f conftest*
7240
7241 fi
7242
7243 if test $ac_cv_header_stdc = yes; then
7244 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7246 /* end confdefs.h. */
7247 #include <stdlib.h>
7248
7249 _ACEOF
7250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7251 $EGREP "free" >/dev/null 2>&1; then :
7252
7253 else
7254 ac_cv_header_stdc=no
7255 fi
7256 rm -f conftest*
7257
7258 fi
7259
7260 if test $ac_cv_header_stdc = yes; then
7261 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7262 if test "$cross_compiling" = yes; then :
7263 :
7264 else
7265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266 /* end confdefs.h. */
7267 #include <ctype.h>
7268 #include <stdlib.h>
7269 #if ((' ' & 0x0FF) == 0x020)
7270 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7271 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7272 #else
7273 # define ISLOWER(c) \
7274 (('a' <= (c) && (c) <= 'i') \
7275 || ('j' <= (c) && (c) <= 'r') \
7276 || ('s' <= (c) && (c) <= 'z'))
7277 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7278 #endif
7279
7280 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7281 int
7282 main ()
7283 {
7284 int i;
7285 for (i = 0; i < 256; i++)
7286 if (XOR (islower (i), ISLOWER (i))
7287 || toupper (i) != TOUPPER (i))
7288 return 2;
7289 return 0;
7290 }
7291 _ACEOF
7292 if ac_fn_c_try_run "$LINENO"; then :
7293
7294 else
7295 ac_cv_header_stdc=no
7296 fi
7297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7298 conftest.$ac_objext conftest.beam conftest.$ac_ext
7299 fi
7300
7301 fi
7302 fi
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7304 $as_echo "$ac_cv_header_stdc" >&6; }
7305 if test $ac_cv_header_stdc = yes; then
7306
7307 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7308
7309 fi
7310
7311 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7312 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7313 inttypes.h stdint.h unistd.h
7314 do :
7315 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7316 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7317 "
7318 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7319 cat >>confdefs.h <<_ACEOF
7320 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7321 _ACEOF
7322
7323 fi
7324
7325 done
7326
7327
7328 for ac_header in dlfcn.h
7329 do :
7330 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7331 "
7332 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7333 cat >>confdefs.h <<_ACEOF
7334 #define HAVE_DLFCN_H 1
7335 _ACEOF
7336
7337 fi
7338
7339 done
7340
7341
7342
7343
7344
7345 # Set options
7346
7347
7348
7349 enable_dlopen=no
7350
7351
7352 enable_win32_dll=no
7353
7354
7355 # Check whether --enable-shared was given.
7356 if test "${enable_shared+set}" = set; then :
7357 enableval=$enable_shared; p=${PACKAGE-default}
7358 case $enableval in
7359 yes) enable_shared=yes ;;
7360 no) enable_shared=no ;;
7361 *)
7362 enable_shared=no
7363 # Look at the argument we got. We use all the common list separators.
7364 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7365 for pkg in $enableval; do
7366 IFS="$lt_save_ifs"
7367 if test "X$pkg" = "X$p"; then
7368 enable_shared=yes
7369 fi
7370 done
7371 IFS="$lt_save_ifs"
7372 ;;
7373 esac
7374 else
7375 enable_shared=yes
7376 fi
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388 # Check whether --with-pic was given.
7389 if test "${with_pic+set}" = set; then :
7390 withval=$with_pic; lt_p=${PACKAGE-default}
7391 case $withval in
7392 yes|no) pic_mode=$withval ;;
7393 *)
7394 pic_mode=default
7395 # Look at the argument we got. We use all the common list separators.
7396 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7397 for lt_pkg in $withval; do
7398 IFS="$lt_save_ifs"
7399 if test "X$lt_pkg" = "X$lt_p"; then
7400 pic_mode=yes
7401 fi
7402 done
7403 IFS="$lt_save_ifs"
7404 ;;
7405 esac
7406 else
7407 pic_mode=default
7408 fi
7409
7410
7411 test -z "$pic_mode" && pic_mode=default
7412
7413
7414
7415
7416
7417
7418
7419 # Check whether --enable-fast-install was given.
7420 if test "${enable_fast_install+set}" = set; then :
7421 enableval=$enable_fast_install; p=${PACKAGE-default}
7422 case $enableval in
7423 yes) enable_fast_install=yes ;;
7424 no) enable_fast_install=no ;;
7425 *)
7426 enable_fast_install=no
7427 # Look at the argument we got. We use all the common list separators.
7428 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7429 for pkg in $enableval; do
7430 IFS="$lt_save_ifs"
7431 if test "X$pkg" = "X$p"; then
7432 enable_fast_install=yes
7433 fi
7434 done
7435 IFS="$lt_save_ifs"
7436 ;;
7437 esac
7438 else
7439 enable_fast_install=yes
7440 fi
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452 # This can be used to rebuild libtool when needed
7453 LIBTOOL_DEPS="$ltmain"
7454
7455 # Always use our own libtool.
7456 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487 test -z "$LN_S" && LN_S="ln -s"
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502 if test -n "${ZSH_VERSION+set}" ; then
7503 setopt NO_GLOB_SUBST
7504 fi
7505
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7507 $as_echo_n "checking for objdir... " >&6; }
7508 if ${lt_cv_objdir+:} false; then :
7509 $as_echo_n "(cached) " >&6
7510 else
7511 rm -f .libs 2>/dev/null
7512 mkdir .libs 2>/dev/null
7513 if test -d .libs; then
7514 lt_cv_objdir=.libs
7515 else
7516 # MS-DOS does not allow filenames that begin with a dot.
7517 lt_cv_objdir=_libs
7518 fi
7519 rmdir .libs 2>/dev/null
7520 fi
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7522 $as_echo "$lt_cv_objdir" >&6; }
7523 objdir=$lt_cv_objdir
7524
7525
7526
7527
7528
7529 cat >>confdefs.h <<_ACEOF
7530 #define LT_OBJDIR "$lt_cv_objdir/"
7531 _ACEOF
7532
7533
7534
7535
7536 case $host_os in
7537 aix3*)
7538 # AIX sometimes has problems with the GCC collect2 program. For some
7539 # reason, if we set the COLLECT_NAMES environment variable, the problems
7540 # vanish in a puff of smoke.
7541 if test "X${COLLECT_NAMES+set}" != Xset; then
7542 COLLECT_NAMES=
7543 export COLLECT_NAMES
7544 fi
7545 ;;
7546 esac
7547
7548 # Global variables:
7549 ofile=libtool
7550 can_build_shared=yes
7551
7552 # All known linkers require a `.a' archive for static linking (except MSVC,
7553 # which needs '.lib').
7554 libext=a
7555
7556 with_gnu_ld="$lt_cv_prog_gnu_ld"
7557
7558 old_CC="$CC"
7559 old_CFLAGS="$CFLAGS"
7560
7561 # Set sane defaults for various variables
7562 test -z "$CC" && CC=cc
7563 test -z "$LTCC" && LTCC=$CC
7564 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7565 test -z "$LD" && LD=ld
7566 test -z "$ac_objext" && ac_objext=o
7567
7568 for cc_temp in $compiler""; do
7569 case $cc_temp in
7570 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7571 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7572 \-*) ;;
7573 *) break;;
7574 esac
7575 done
7576 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7577
7578
7579 # Only perform the check for file, if the check method requires it
7580 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7581 case $deplibs_check_method in
7582 file_magic*)
7583 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7585 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7586 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7587 $as_echo_n "(cached) " >&6
7588 else
7589 case $MAGIC_CMD in
7590 [\\/*] | ?:[\\/]*)
7591 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7592 ;;
7593 *)
7594 lt_save_MAGIC_CMD="$MAGIC_CMD"
7595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7596 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7597 for ac_dir in $ac_dummy; do
7598 IFS="$lt_save_ifs"
7599 test -z "$ac_dir" && ac_dir=.
7600 if test -f $ac_dir/${ac_tool_prefix}file; then
7601 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7602 if test -n "$file_magic_test_file"; then
7603 case $deplibs_check_method in
7604 "file_magic "*)
7605 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7606 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7607 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7608 $EGREP "$file_magic_regex" > /dev/null; then
7609 :
7610 else
7611 cat <<_LT_EOF 1>&2
7612
7613 *** Warning: the command libtool uses to detect shared libraries,
7614 *** $file_magic_cmd, produces output that libtool cannot recognize.
7615 *** The result is that libtool may fail to recognize shared libraries
7616 *** as such. This will affect the creation of libtool libraries that
7617 *** depend on shared libraries, but programs linked with such libtool
7618 *** libraries will work regardless of this problem. Nevertheless, you
7619 *** may want to report the problem to your system manager and/or to
7620 *** bug-libtool@gnu.org
7621
7622 _LT_EOF
7623 fi ;;
7624 esac
7625 fi
7626 break
7627 fi
7628 done
7629 IFS="$lt_save_ifs"
7630 MAGIC_CMD="$lt_save_MAGIC_CMD"
7631 ;;
7632 esac
7633 fi
7634
7635 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7636 if test -n "$MAGIC_CMD"; then
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7638 $as_echo "$MAGIC_CMD" >&6; }
7639 else
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7641 $as_echo "no" >&6; }
7642 fi
7643
7644
7645
7646
7647
7648 if test -z "$lt_cv_path_MAGIC_CMD"; then
7649 if test -n "$ac_tool_prefix"; then
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7651 $as_echo_n "checking for file... " >&6; }
7652 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7653 $as_echo_n "(cached) " >&6
7654 else
7655 case $MAGIC_CMD in
7656 [\\/*] | ?:[\\/]*)
7657 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7658 ;;
7659 *)
7660 lt_save_MAGIC_CMD="$MAGIC_CMD"
7661 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7662 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7663 for ac_dir in $ac_dummy; do
7664 IFS="$lt_save_ifs"
7665 test -z "$ac_dir" && ac_dir=.
7666 if test -f $ac_dir/file; then
7667 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7668 if test -n "$file_magic_test_file"; then
7669 case $deplibs_check_method in
7670 "file_magic "*)
7671 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7672 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7673 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7674 $EGREP "$file_magic_regex" > /dev/null; then
7675 :
7676 else
7677 cat <<_LT_EOF 1>&2
7678
7679 *** Warning: the command libtool uses to detect shared libraries,
7680 *** $file_magic_cmd, produces output that libtool cannot recognize.
7681 *** The result is that libtool may fail to recognize shared libraries
7682 *** as such. This will affect the creation of libtool libraries that
7683 *** depend on shared libraries, but programs linked with such libtool
7684 *** libraries will work regardless of this problem. Nevertheless, you
7685 *** may want to report the problem to your system manager and/or to
7686 *** bug-libtool@gnu.org
7687
7688 _LT_EOF
7689 fi ;;
7690 esac
7691 fi
7692 break
7693 fi
7694 done
7695 IFS="$lt_save_ifs"
7696 MAGIC_CMD="$lt_save_MAGIC_CMD"
7697 ;;
7698 esac
7699 fi
7700
7701 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7702 if test -n "$MAGIC_CMD"; then
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7704 $as_echo "$MAGIC_CMD" >&6; }
7705 else
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707 $as_echo "no" >&6; }
7708 fi
7709
7710
7711 else
7712 MAGIC_CMD=:
7713 fi
7714 fi
7715
7716 fi
7717 ;;
7718 esac
7719
7720 # Use C for the default configuration in the libtool script
7721
7722 lt_save_CC="$CC"
7723 ac_ext=c
7724 ac_cpp='$CPP $CPPFLAGS'
7725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7728
7729
7730 # Source file extension for C test sources.
7731 ac_ext=c
7732
7733 # Object file extension for compiled C test sources.
7734 objext=o
7735 objext=$objext
7736
7737 # Code to be used in simple compile tests
7738 lt_simple_compile_test_code="int some_variable = 0;"
7739
7740 # Code to be used in simple link tests
7741 lt_simple_link_test_code='int main(){return(0);}'
7742
7743
7744
7745
7746
7747
7748
7749 # If no C compiler was specified, use CC.
7750 LTCC=${LTCC-"$CC"}
7751
7752 # If no C compiler flags were specified, use CFLAGS.
7753 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7754
7755 # Allow CC to be a program name with arguments.
7756 compiler=$CC
7757
7758 # Save the default compiler, since it gets overwritten when the other
7759 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7760 compiler_DEFAULT=$CC
7761
7762 # save warnings/boilerplate of simple test code
7763 ac_outfile=conftest.$ac_objext
7764 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7765 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7766 _lt_compiler_boilerplate=`cat conftest.err`
7767 $RM conftest*
7768
7769 ac_outfile=conftest.$ac_objext
7770 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7771 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7772 _lt_linker_boilerplate=`cat conftest.err`
7773 $RM -r conftest*
7774
7775
7776 if test -n "$compiler"; then
7777
7778 lt_prog_compiler_no_builtin_flag=
7779
7780 if test "$GCC" = yes; then
7781 case $cc_basename in
7782 nvcc*)
7783 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7784 *)
7785 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7786 esac
7787
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7789 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7790 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7791 $as_echo_n "(cached) " >&6
7792 else
7793 lt_cv_prog_compiler_rtti_exceptions=no
7794 ac_outfile=conftest.$ac_objext
7795 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7796 lt_compiler_flag="-fno-rtti -fno-exceptions"
7797 # Insert the option either (1) after the last *FLAGS variable, or
7798 # (2) before a word containing "conftest.", or (3) at the end.
7799 # Note that $ac_compile itself does not contain backslashes and begins
7800 # with a dollar sign (not a hyphen), so the echo should work correctly.
7801 # The option is referenced via a variable to avoid confusing sed.
7802 lt_compile=`echo "$ac_compile" | $SED \
7803 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7804 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7805 -e 's:$: $lt_compiler_flag:'`
7806 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7807 (eval "$lt_compile" 2>conftest.err)
7808 ac_status=$?
7809 cat conftest.err >&5
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 if (exit $ac_status) && test -s "$ac_outfile"; then
7812 # The compiler can only warn and ignore the option if not recognized
7813 # So say no if there are warnings other than the usual output.
7814 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7815 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7816 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7817 lt_cv_prog_compiler_rtti_exceptions=yes
7818 fi
7819 fi
7820 $RM conftest*
7821
7822 fi
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7824 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7825
7826 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7827 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7828 else
7829 :
7830 fi
7831
7832 fi
7833
7834
7835
7836
7837
7838
7839 lt_prog_compiler_wl=
7840 lt_prog_compiler_pic=
7841 lt_prog_compiler_static=
7842
7843
7844 if test "$GCC" = yes; then
7845 lt_prog_compiler_wl='-Wl,'
7846 lt_prog_compiler_static='-static'
7847
7848 case $host_os in
7849 aix*)
7850 # All AIX code is PIC.
7851 if test "$host_cpu" = ia64; then
7852 # AIX 5 now supports IA64 processor
7853 lt_prog_compiler_static='-Bstatic'
7854 fi
7855 ;;
7856
7857 amigaos*)
7858 case $host_cpu in
7859 powerpc)
7860 # see comment about AmigaOS4 .so support
7861 lt_prog_compiler_pic='-fPIC'
7862 ;;
7863 m68k)
7864 # FIXME: we need at least 68020 code to build shared libraries, but
7865 # adding the `-m68020' flag to GCC prevents building anything better,
7866 # like `-m68040'.
7867 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7868 ;;
7869 esac
7870 ;;
7871
7872 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7873 # PIC is the default for these OSes.
7874 ;;
7875
7876 mingw* | cygwin* | pw32* | os2* | cegcc*)
7877 # This hack is so that the source file can tell whether it is being
7878 # built for inclusion in a dll (and should export symbols for example).
7879 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7880 # (--disable-auto-import) libraries
7881 lt_prog_compiler_pic='-DDLL_EXPORT'
7882 ;;
7883
7884 darwin* | rhapsody*)
7885 # PIC is the default on this platform
7886 # Common symbols not allowed in MH_DYLIB files
7887 lt_prog_compiler_pic='-fno-common'
7888 ;;
7889
7890 haiku*)
7891 # PIC is the default for Haiku.
7892 # The "-static" flag exists, but is broken.
7893 lt_prog_compiler_static=
7894 ;;
7895
7896 hpux*)
7897 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7898 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7899 # sets the default TLS model and affects inlining.
7900 case $host_cpu in
7901 hppa*64*)
7902 # +Z the default
7903 ;;
7904 *)
7905 lt_prog_compiler_pic='-fPIC'
7906 ;;
7907 esac
7908 ;;
7909
7910 interix[3-9]*)
7911 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7912 # Instead, we relocate shared libraries at runtime.
7913 ;;
7914
7915 msdosdjgpp*)
7916 # Just because we use GCC doesn't mean we suddenly get shared libraries
7917 # on systems that don't support them.
7918 lt_prog_compiler_can_build_shared=no
7919 enable_shared=no
7920 ;;
7921
7922 *nto* | *qnx*)
7923 # QNX uses GNU C++, but need to define -shared option too, otherwise
7924 # it will coredump.
7925 lt_prog_compiler_pic='-fPIC -shared'
7926 ;;
7927
7928 sysv4*MP*)
7929 if test -d /usr/nec; then
7930 lt_prog_compiler_pic=-Kconform_pic
7931 fi
7932 ;;
7933
7934 *)
7935 lt_prog_compiler_pic='-fPIC'
7936 ;;
7937 esac
7938
7939 case $cc_basename in
7940 nvcc*) # Cuda Compiler Driver 2.2
7941 lt_prog_compiler_wl='-Xlinker '
7942 if test -n "$lt_prog_compiler_pic"; then
7943 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7944 fi
7945 ;;
7946 esac
7947 else
7948 # PORTME Check for flag to pass linker flags through the system compiler.
7949 case $host_os in
7950 aix*)
7951 lt_prog_compiler_wl='-Wl,'
7952 if test "$host_cpu" = ia64; then
7953 # AIX 5 now supports IA64 processor
7954 lt_prog_compiler_static='-Bstatic'
7955 else
7956 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7957 fi
7958 ;;
7959
7960 mingw* | cygwin* | pw32* | os2* | cegcc*)
7961 # This hack is so that the source file can tell whether it is being
7962 # built for inclusion in a dll (and should export symbols for example).
7963 lt_prog_compiler_pic='-DDLL_EXPORT'
7964 ;;
7965
7966 hpux9* | hpux10* | hpux11*)
7967 lt_prog_compiler_wl='-Wl,'
7968 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7969 # not for PA HP-UX.
7970 case $host_cpu in
7971 hppa*64*|ia64*)
7972 # +Z the default
7973 ;;
7974 *)
7975 lt_prog_compiler_pic='+Z'
7976 ;;
7977 esac
7978 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7979 lt_prog_compiler_static='${wl}-a ${wl}archive'
7980 ;;
7981
7982 irix5* | irix6* | nonstopux*)
7983 lt_prog_compiler_wl='-Wl,'
7984 # PIC (with -KPIC) is the default.
7985 lt_prog_compiler_static='-non_shared'
7986 ;;
7987
7988 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7989 case $cc_basename in
7990 # old Intel for x86_64 which still supported -KPIC.
7991 ecc*)
7992 lt_prog_compiler_wl='-Wl,'
7993 lt_prog_compiler_pic='-KPIC'
7994 lt_prog_compiler_static='-static'
7995 ;;
7996 # icc used to be incompatible with GCC.
7997 # ICC 10 doesn't accept -KPIC any more.
7998 icc* | ifort*)
7999 lt_prog_compiler_wl='-Wl,'
8000 lt_prog_compiler_pic='-fPIC'
8001 lt_prog_compiler_static='-static'
8002 ;;
8003 # Lahey Fortran 8.1.
8004 lf95*)
8005 lt_prog_compiler_wl='-Wl,'
8006 lt_prog_compiler_pic='--shared'
8007 lt_prog_compiler_static='--static'
8008 ;;
8009 nagfor*)
8010 # NAG Fortran compiler
8011 lt_prog_compiler_wl='-Wl,-Wl,,'
8012 lt_prog_compiler_pic='-PIC'
8013 lt_prog_compiler_static='-Bstatic'
8014 ;;
8015 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8016 # Portland Group compilers (*not* the Pentium gcc compiler,
8017 # which looks to be a dead project)
8018 lt_prog_compiler_wl='-Wl,'
8019 lt_prog_compiler_pic='-fpic'
8020 lt_prog_compiler_static='-Bstatic'
8021 ;;
8022 ccc*)
8023 lt_prog_compiler_wl='-Wl,'
8024 # All Alpha code is PIC.
8025 lt_prog_compiler_static='-non_shared'
8026 ;;
8027 xl* | bgxl* | bgf* | mpixl*)
8028 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8029 lt_prog_compiler_wl='-Wl,'
8030 lt_prog_compiler_pic='-qpic'
8031 lt_prog_compiler_static='-qstaticlink'
8032 ;;
8033 *)
8034 case `$CC -V 2>&1 | sed 5q` in
8035 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8036 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8037 lt_prog_compiler_pic='-KPIC'
8038 lt_prog_compiler_static='-Bstatic'
8039 lt_prog_compiler_wl=''
8040 ;;
8041 *Sun\ F* | *Sun*Fortran*)
8042 lt_prog_compiler_pic='-KPIC'
8043 lt_prog_compiler_static='-Bstatic'
8044 lt_prog_compiler_wl='-Qoption ld '
8045 ;;
8046 *Sun\ C*)
8047 # Sun C 5.9
8048 lt_prog_compiler_pic='-KPIC'
8049 lt_prog_compiler_static='-Bstatic'
8050 lt_prog_compiler_wl='-Wl,'
8051 ;;
8052 *Intel*\ [CF]*Compiler*)
8053 lt_prog_compiler_wl='-Wl,'
8054 lt_prog_compiler_pic='-fPIC'
8055 lt_prog_compiler_static='-static'
8056 ;;
8057 *Portland\ Group*)
8058 lt_prog_compiler_wl='-Wl,'
8059 lt_prog_compiler_pic='-fpic'
8060 lt_prog_compiler_static='-Bstatic'
8061 ;;
8062 esac
8063 ;;
8064 esac
8065 ;;
8066
8067 newsos6)
8068 lt_prog_compiler_pic='-KPIC'
8069 lt_prog_compiler_static='-Bstatic'
8070 ;;
8071
8072 *nto* | *qnx*)
8073 # QNX uses GNU C++, but need to define -shared option too, otherwise
8074 # it will coredump.
8075 lt_prog_compiler_pic='-fPIC -shared'
8076 ;;
8077
8078 osf3* | osf4* | osf5*)
8079 lt_prog_compiler_wl='-Wl,'
8080 # All OSF/1 code is PIC.
8081 lt_prog_compiler_static='-non_shared'
8082 ;;
8083
8084 rdos*)
8085 lt_prog_compiler_static='-non_shared'
8086 ;;
8087
8088 solaris*)
8089 lt_prog_compiler_pic='-KPIC'
8090 lt_prog_compiler_static='-Bstatic'
8091 case $cc_basename in
8092 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8093 lt_prog_compiler_wl='-Qoption ld ';;
8094 *)
8095 lt_prog_compiler_wl='-Wl,';;
8096 esac
8097 ;;
8098
8099 sunos4*)
8100 lt_prog_compiler_wl='-Qoption ld '
8101 lt_prog_compiler_pic='-PIC'
8102 lt_prog_compiler_static='-Bstatic'
8103 ;;
8104
8105 sysv4 | sysv4.2uw2* | sysv4.3*)
8106 lt_prog_compiler_wl='-Wl,'
8107 lt_prog_compiler_pic='-KPIC'
8108 lt_prog_compiler_static='-Bstatic'
8109 ;;
8110
8111 sysv4*MP*)
8112 if test -d /usr/nec ;then
8113 lt_prog_compiler_pic='-Kconform_pic'
8114 lt_prog_compiler_static='-Bstatic'
8115 fi
8116 ;;
8117
8118 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8119 lt_prog_compiler_wl='-Wl,'
8120 lt_prog_compiler_pic='-KPIC'
8121 lt_prog_compiler_static='-Bstatic'
8122 ;;
8123
8124 unicos*)
8125 lt_prog_compiler_wl='-Wl,'
8126 lt_prog_compiler_can_build_shared=no
8127 ;;
8128
8129 uts4*)
8130 lt_prog_compiler_pic='-pic'
8131 lt_prog_compiler_static='-Bstatic'
8132 ;;
8133
8134 *)
8135 lt_prog_compiler_can_build_shared=no
8136 ;;
8137 esac
8138 fi
8139
8140 case $host_os in
8141 # For platforms which do not support PIC, -DPIC is meaningless:
8142 *djgpp*)
8143 lt_prog_compiler_pic=
8144 ;;
8145 *)
8146 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8147 ;;
8148 esac
8149
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8151 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8152 if ${lt_cv_prog_compiler_pic+:} false; then :
8153 $as_echo_n "(cached) " >&6
8154 else
8155 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8156 fi
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8158 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8159 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8160
8161 #
8162 # Check to make sure the PIC flag actually works.
8163 #
8164 if test -n "$lt_prog_compiler_pic"; then
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8166 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8167 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8168 $as_echo_n "(cached) " >&6
8169 else
8170 lt_cv_prog_compiler_pic_works=no
8171 ac_outfile=conftest.$ac_objext
8172 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8173 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8174 # Insert the option either (1) after the last *FLAGS variable, or
8175 # (2) before a word containing "conftest.", or (3) at the end.
8176 # Note that $ac_compile itself does not contain backslashes and begins
8177 # with a dollar sign (not a hyphen), so the echo should work correctly.
8178 # The option is referenced via a variable to avoid confusing sed.
8179 lt_compile=`echo "$ac_compile" | $SED \
8180 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8181 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8182 -e 's:$: $lt_compiler_flag:'`
8183 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8184 (eval "$lt_compile" 2>conftest.err)
8185 ac_status=$?
8186 cat conftest.err >&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 if (exit $ac_status) && test -s "$ac_outfile"; then
8189 # The compiler can only warn and ignore the option if not recognized
8190 # So say no if there are warnings other than the usual output.
8191 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8192 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8193 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8194 lt_cv_prog_compiler_pic_works=yes
8195 fi
8196 fi
8197 $RM conftest*
8198
8199 fi
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8201 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8202
8203 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8204 case $lt_prog_compiler_pic in
8205 "" | " "*) ;;
8206 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8207 esac
8208 else
8209 lt_prog_compiler_pic=
8210 lt_prog_compiler_can_build_shared=no
8211 fi
8212
8213 fi
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225 #
8226 # Check to make sure the static flag actually works.
8227 #
8228 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8230 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8231 if ${lt_cv_prog_compiler_static_works+:} false; then :
8232 $as_echo_n "(cached) " >&6
8233 else
8234 lt_cv_prog_compiler_static_works=no
8235 save_LDFLAGS="$LDFLAGS"
8236 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8237 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8238 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8239 # The linker can only warn and ignore the option if not recognized
8240 # So say no if there are warnings
8241 if test -s conftest.err; then
8242 # Append any errors to the config.log.
8243 cat conftest.err 1>&5
8244 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8245 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8246 if diff conftest.exp conftest.er2 >/dev/null; then
8247 lt_cv_prog_compiler_static_works=yes
8248 fi
8249 else
8250 lt_cv_prog_compiler_static_works=yes
8251 fi
8252 fi
8253 $RM -r conftest*
8254 LDFLAGS="$save_LDFLAGS"
8255
8256 fi
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8258 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8259
8260 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8261 :
8262 else
8263 lt_prog_compiler_static=
8264 fi
8265
8266
8267
8268
8269
8270
8271
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8273 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8274 if ${lt_cv_prog_compiler_c_o+:} false; then :
8275 $as_echo_n "(cached) " >&6
8276 else
8277 lt_cv_prog_compiler_c_o=no
8278 $RM -r conftest 2>/dev/null
8279 mkdir conftest
8280 cd conftest
8281 mkdir out
8282 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8283
8284 lt_compiler_flag="-o out/conftest2.$ac_objext"
8285 # Insert the option either (1) after the last *FLAGS variable, or
8286 # (2) before a word containing "conftest.", or (3) at the end.
8287 # Note that $ac_compile itself does not contain backslashes and begins
8288 # with a dollar sign (not a hyphen), so the echo should work correctly.
8289 lt_compile=`echo "$ac_compile" | $SED \
8290 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8291 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8292 -e 's:$: $lt_compiler_flag:'`
8293 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8294 (eval "$lt_compile" 2>out/conftest.err)
8295 ac_status=$?
8296 cat out/conftest.err >&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8299 then
8300 # The compiler can only warn and ignore the option if not recognized
8301 # So say no if there are warnings
8302 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8303 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8304 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8305 lt_cv_prog_compiler_c_o=yes
8306 fi
8307 fi
8308 chmod u+w . 2>&5
8309 $RM conftest*
8310 # SGI C++ compiler will create directory out/ii_files/ for
8311 # template instantiation
8312 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8313 $RM out/* && rmdir out
8314 cd ..
8315 $RM -r conftest
8316 $RM conftest*
8317
8318 fi
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8320 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8321
8322
8323
8324
8325
8326
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8328 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8329 if ${lt_cv_prog_compiler_c_o+:} false; then :
8330 $as_echo_n "(cached) " >&6
8331 else
8332 lt_cv_prog_compiler_c_o=no
8333 $RM -r conftest 2>/dev/null
8334 mkdir conftest
8335 cd conftest
8336 mkdir out
8337 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8338
8339 lt_compiler_flag="-o out/conftest2.$ac_objext"
8340 # Insert the option either (1) after the last *FLAGS variable, or
8341 # (2) before a word containing "conftest.", or (3) at the end.
8342 # Note that $ac_compile itself does not contain backslashes and begins
8343 # with a dollar sign (not a hyphen), so the echo should work correctly.
8344 lt_compile=`echo "$ac_compile" | $SED \
8345 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8346 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8347 -e 's:$: $lt_compiler_flag:'`
8348 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8349 (eval "$lt_compile" 2>out/conftest.err)
8350 ac_status=$?
8351 cat out/conftest.err >&5
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8354 then
8355 # The compiler can only warn and ignore the option if not recognized
8356 # So say no if there are warnings
8357 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8358 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8359 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8360 lt_cv_prog_compiler_c_o=yes
8361 fi
8362 fi
8363 chmod u+w . 2>&5
8364 $RM conftest*
8365 # SGI C++ compiler will create directory out/ii_files/ for
8366 # template instantiation
8367 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8368 $RM out/* && rmdir out
8369 cd ..
8370 $RM -r conftest
8371 $RM conftest*
8372
8373 fi
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8375 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8376
8377
8378
8379
8380 hard_links="nottested"
8381 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8382 # do not overwrite the value of need_locks provided by the user
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8384 $as_echo_n "checking if we can lock with hard links... " >&6; }
8385 hard_links=yes
8386 $RM conftest*
8387 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8388 touch conftest.a
8389 ln conftest.a conftest.b 2>&5 || hard_links=no
8390 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8392 $as_echo "$hard_links" >&6; }
8393 if test "$hard_links" = no; then
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8395 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8396 need_locks=warn
8397 fi
8398 else
8399 need_locks=no
8400 fi
8401
8402
8403
8404
8405
8406
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8408 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8409
8410 runpath_var=
8411 allow_undefined_flag=
8412 always_export_symbols=no
8413 archive_cmds=
8414 archive_expsym_cmds=
8415 compiler_needs_object=no
8416 enable_shared_with_static_runtimes=no
8417 export_dynamic_flag_spec=
8418 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8419 hardcode_automatic=no
8420 hardcode_direct=no
8421 hardcode_direct_absolute=no
8422 hardcode_libdir_flag_spec=
8423 hardcode_libdir_separator=
8424 hardcode_minus_L=no
8425 hardcode_shlibpath_var=unsupported
8426 inherit_rpath=no
8427 link_all_deplibs=unknown
8428 module_cmds=
8429 module_expsym_cmds=
8430 old_archive_from_new_cmds=
8431 old_archive_from_expsyms_cmds=
8432 thread_safe_flag_spec=
8433 whole_archive_flag_spec=
8434 # include_expsyms should be a list of space-separated symbols to be *always*
8435 # included in the symbol list
8436 include_expsyms=
8437 # exclude_expsyms can be an extended regexp of symbols to exclude
8438 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8439 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8440 # as well as any symbol that contains `d'.
8441 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8442 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8443 # platforms (ab)use it in PIC code, but their linkers get confused if
8444 # the symbol is explicitly referenced. Since portable code cannot
8445 # rely on this symbol name, it's probably fine to never include it in
8446 # preloaded symbol tables.
8447 # Exclude shared library initialization/finalization symbols.
8448 extract_expsyms_cmds=
8449
8450 case $host_os in
8451 cygwin* | mingw* | pw32* | cegcc*)
8452 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8453 # When not using gcc, we currently assume that we are using
8454 # Microsoft Visual C++.
8455 if test "$GCC" != yes; then
8456 with_gnu_ld=no
8457 fi
8458 ;;
8459 interix*)
8460 # we just hope/assume this is gcc and not c89 (= MSVC++)
8461 with_gnu_ld=yes
8462 ;;
8463 openbsd*)
8464 with_gnu_ld=no
8465 ;;
8466 esac
8467
8468 ld_shlibs=yes
8469
8470 # On some targets, GNU ld is compatible enough with the native linker
8471 # that we're better off using the native interface for both.
8472 lt_use_gnu_ld_interface=no
8473 if test "$with_gnu_ld" = yes; then
8474 case $host_os in
8475 aix*)
8476 # The AIX port of GNU ld has always aspired to compatibility
8477 # with the native linker. However, as the warning in the GNU ld
8478 # block says, versions before 2.19.5* couldn't really create working
8479 # shared libraries, regardless of the interface used.
8480 case `$LD -v 2>&1` in
8481 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8482 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8483 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8484 *)
8485 lt_use_gnu_ld_interface=yes
8486 ;;
8487 esac
8488 ;;
8489 *)
8490 lt_use_gnu_ld_interface=yes
8491 ;;
8492 esac
8493 fi
8494
8495 if test "$lt_use_gnu_ld_interface" = yes; then
8496 # If archive_cmds runs LD, not CC, wlarc should be empty
8497 wlarc='${wl}'
8498
8499 # Set some defaults for GNU ld with shared library support. These
8500 # are reset later if shared libraries are not supported. Putting them
8501 # here allows them to be overridden if necessary.
8502 runpath_var=LD_RUN_PATH
8503 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8504 export_dynamic_flag_spec='${wl}--export-dynamic'
8505 # ancient GNU ld didn't support --whole-archive et. al.
8506 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8507 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8508 else
8509 whole_archive_flag_spec=
8510 fi
8511 supports_anon_versioning=no
8512 case `$LD -v 2>&1` in
8513 *GNU\ gold*) supports_anon_versioning=yes ;;
8514 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8515 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8516 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8517 *\ 2.11.*) ;; # other 2.11 versions
8518 *) supports_anon_versioning=yes ;;
8519 esac
8520
8521 # See if GNU ld supports shared libraries.
8522 case $host_os in
8523 aix[3-9]*)
8524 # On AIX/PPC, the GNU linker is very broken
8525 if test "$host_cpu" != ia64; then
8526 ld_shlibs=no
8527 cat <<_LT_EOF 1>&2
8528
8529 *** Warning: the GNU linker, at least up to release 2.19, is reported
8530 *** to be unable to reliably create shared libraries on AIX.
8531 *** Therefore, libtool is disabling shared libraries support. If you
8532 *** really care for shared libraries, you may want to install binutils
8533 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8534 *** You will then need to restart the configuration process.
8535
8536 _LT_EOF
8537 fi
8538 ;;
8539
8540 amigaos*)
8541 case $host_cpu in
8542 powerpc)
8543 # see comment about AmigaOS4 .so support
8544 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8545 archive_expsym_cmds=''
8546 ;;
8547 m68k)
8548 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)'
8549 hardcode_libdir_flag_spec='-L$libdir'
8550 hardcode_minus_L=yes
8551 ;;
8552 esac
8553 ;;
8554
8555 beos*)
8556 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8557 allow_undefined_flag=unsupported
8558 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8559 # support --undefined. This deserves some investigation. FIXME
8560 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8561 else
8562 ld_shlibs=no
8563 fi
8564 ;;
8565
8566 cygwin* | mingw* | pw32* | cegcc*)
8567 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8568 # as there is no search path for DLLs.
8569 hardcode_libdir_flag_spec='-L$libdir'
8570 export_dynamic_flag_spec='${wl}--export-all-symbols'
8571 allow_undefined_flag=unsupported
8572 always_export_symbols=no
8573 enable_shared_with_static_runtimes=yes
8574 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'
8575 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8576
8577 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8578 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8579 # If the export-symbols file already is a .def file (1st line
8580 # is EXPORTS), use it as is; otherwise, prepend...
8581 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8582 cp $export_symbols $output_objdir/$soname.def;
8583 else
8584 echo EXPORTS > $output_objdir/$soname.def;
8585 cat $export_symbols >> $output_objdir/$soname.def;
8586 fi~
8587 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8588 else
8589 ld_shlibs=no
8590 fi
8591 ;;
8592
8593 haiku*)
8594 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8595 link_all_deplibs=yes
8596 ;;
8597
8598 interix[3-9]*)
8599 hardcode_direct=no
8600 hardcode_shlibpath_var=no
8601 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8602 export_dynamic_flag_spec='${wl}-E'
8603 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8604 # Instead, shared libraries are loaded at an image base (0x10000000 by
8605 # default) and relocated if they conflict, which is a slow very memory
8606 # consuming and fragmenting process. To avoid this, we pick a random,
8607 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8608 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8609 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8610 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'
8611 ;;
8612
8613 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8614 tmp_diet=no
8615 if test "$host_os" = linux-dietlibc; then
8616 case $cc_basename in
8617 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8618 esac
8619 fi
8620 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8621 && test "$tmp_diet" = no
8622 then
8623 tmp_addflag=' $pic_flag'
8624 tmp_sharedflag='-shared'
8625 case $cc_basename,$host_cpu in
8626 pgcc*) # Portland Group C compiler
8627 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'
8628 tmp_addflag=' $pic_flag'
8629 ;;
8630 pgf77* | pgf90* | pgf95* | pgfortran*)
8631 # Portland Group f77 and f90 compilers
8632 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'
8633 tmp_addflag=' $pic_flag -Mnomain' ;;
8634 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8635 tmp_addflag=' -i_dynamic' ;;
8636 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8637 tmp_addflag=' -i_dynamic -nofor_main' ;;
8638 ifc* | ifort*) # Intel Fortran compiler
8639 tmp_addflag=' -nofor_main' ;;
8640 lf95*) # Lahey Fortran 8.1
8641 whole_archive_flag_spec=
8642 tmp_sharedflag='--shared' ;;
8643 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8644 tmp_sharedflag='-qmkshrobj'
8645 tmp_addflag= ;;
8646 nvcc*) # Cuda Compiler Driver 2.2
8647 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'
8648 compiler_needs_object=yes
8649 ;;
8650 esac
8651 case `$CC -V 2>&1 | sed 5q` in
8652 *Sun\ C*) # Sun C 5.9
8653 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'
8654 compiler_needs_object=yes
8655 tmp_sharedflag='-G' ;;
8656 *Sun\ F*) # Sun Fortran 8.3
8657 tmp_sharedflag='-G' ;;
8658 esac
8659 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8660
8661 if test "x$supports_anon_versioning" = xyes; then
8662 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8663 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8664 echo "local: *; };" >> $output_objdir/$libname.ver~
8665 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8666 fi
8667
8668 case $cc_basename in
8669 xlf* | bgf* | bgxlf* | mpixlf*)
8670 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8671 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8672 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8673 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8674 if test "x$supports_anon_versioning" = xyes; then
8675 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8676 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8677 echo "local: *; };" >> $output_objdir/$libname.ver~
8678 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8679 fi
8680 ;;
8681 esac
8682 else
8683 ld_shlibs=no
8684 fi
8685 ;;
8686
8687 netbsd*)
8688 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8689 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8690 wlarc=
8691 else
8692 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8693 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8694 fi
8695 ;;
8696
8697 solaris*)
8698 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8699 ld_shlibs=no
8700 cat <<_LT_EOF 1>&2
8701
8702 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8703 *** create shared libraries on Solaris systems. Therefore, libtool
8704 *** is disabling shared libraries support. We urge you to upgrade GNU
8705 *** binutils to release 2.9.1 or newer. Another option is to modify
8706 *** your PATH or compiler configuration so that the native linker is
8707 *** used, and then restart.
8708
8709 _LT_EOF
8710 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8711 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8712 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8713 else
8714 ld_shlibs=no
8715 fi
8716 ;;
8717
8718 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8719 case `$LD -v 2>&1` in
8720 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8721 ld_shlibs=no
8722 cat <<_LT_EOF 1>&2
8723
8724 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8725 *** reliably create shared libraries on SCO systems. Therefore, libtool
8726 *** is disabling shared libraries support. We urge you to upgrade GNU
8727 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8728 *** your PATH or compiler configuration so that the native linker is
8729 *** used, and then restart.
8730
8731 _LT_EOF
8732 ;;
8733 *)
8734 # For security reasons, it is highly recommended that you always
8735 # use absolute paths for naming shared libraries, and exclude the
8736 # DT_RUNPATH tag from executables and libraries. But doing so
8737 # requires that you compile everything twice, which is a pain.
8738 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8739 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8740 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8741 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8742 else
8743 ld_shlibs=no
8744 fi
8745 ;;
8746 esac
8747 ;;
8748
8749 sunos4*)
8750 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8751 wlarc=
8752 hardcode_direct=yes
8753 hardcode_shlibpath_var=no
8754 ;;
8755
8756 *)
8757 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8758 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8759 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8760 else
8761 ld_shlibs=no
8762 fi
8763 ;;
8764 esac
8765
8766 if test "$ld_shlibs" = no; then
8767 runpath_var=
8768 hardcode_libdir_flag_spec=
8769 export_dynamic_flag_spec=
8770 whole_archive_flag_spec=
8771 fi
8772 else
8773 # PORTME fill in a description of your system's linker (not GNU ld)
8774 case $host_os in
8775 aix3*)
8776 allow_undefined_flag=unsupported
8777 always_export_symbols=yes
8778 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'
8779 # Note: this linker hardcodes the directories in LIBPATH if there
8780 # are no directories specified by -L.
8781 hardcode_minus_L=yes
8782 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8783 # Neither direct hardcoding nor static linking is supported with a
8784 # broken collect2.
8785 hardcode_direct=unsupported
8786 fi
8787 ;;
8788
8789 aix[4-9]*)
8790 if test "$host_cpu" = ia64; then
8791 # On IA64, the linker does run time linking by default, so we don't
8792 # have to do anything special.
8793 aix_use_runtimelinking=no
8794 exp_sym_flag='-Bexport'
8795 no_entry_flag=""
8796 else
8797 # If we're using GNU nm, then we don't want the "-C" option.
8798 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8799 # Also, AIX nm treats weak defined symbols like other global
8800 # defined symbols, whereas GNU nm marks them as "W".
8801 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8802 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'
8803 else
8804 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'
8805 fi
8806 aix_use_runtimelinking=no
8807
8808 # Test if we are trying to use run time linking or normal
8809 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8810 # need to do runtime linking.
8811 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8812 for ld_flag in $LDFLAGS; do
8813 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8814 aix_use_runtimelinking=yes
8815 break
8816 fi
8817 done
8818 ;;
8819 esac
8820
8821 exp_sym_flag='-bexport'
8822 no_entry_flag='-bnoentry'
8823 fi
8824
8825 # When large executables or shared objects are built, AIX ld can
8826 # have problems creating the table of contents. If linking a library
8827 # or program results in "error TOC overflow" add -mminimal-toc to
8828 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8829 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8830
8831 archive_cmds=''
8832 hardcode_direct=yes
8833 hardcode_direct_absolute=yes
8834 hardcode_libdir_separator=':'
8835 link_all_deplibs=yes
8836 file_list_spec='${wl}-f,'
8837
8838 if test "$GCC" = yes; then
8839 case $host_os in aix4.[012]|aix4.[012].*)
8840 # We only want to do this on AIX 4.2 and lower, the check
8841 # below for broken collect2 doesn't work under 4.3+
8842 collect2name=`${CC} -print-prog-name=collect2`
8843 if test -f "$collect2name" &&
8844 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8845 then
8846 # We have reworked collect2
8847 :
8848 else
8849 # We have old collect2
8850 hardcode_direct=unsupported
8851 # It fails to find uninstalled libraries when the uninstalled
8852 # path is not listed in the libpath. Setting hardcode_minus_L
8853 # to unsupported forces relinking
8854 hardcode_minus_L=yes
8855 hardcode_libdir_flag_spec='-L$libdir'
8856 hardcode_libdir_separator=
8857 fi
8858 ;;
8859 esac
8860 shared_flag='-shared'
8861 if test "$aix_use_runtimelinking" = yes; then
8862 shared_flag="$shared_flag "'${wl}-G'
8863 fi
8864 else
8865 # not using gcc
8866 if test "$host_cpu" = ia64; then
8867 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8868 # chokes on -Wl,-G. The following line is correct:
8869 shared_flag='-G'
8870 else
8871 if test "$aix_use_runtimelinking" = yes; then
8872 shared_flag='${wl}-G'
8873 else
8874 shared_flag='${wl}-bM:SRE'
8875 fi
8876 fi
8877 fi
8878
8879 export_dynamic_flag_spec='${wl}-bexpall'
8880 # It seems that -bexpall does not export symbols beginning with
8881 # underscore (_), so it is better to generate a list of symbols to export.
8882 always_export_symbols=yes
8883 if test "$aix_use_runtimelinking" = yes; then
8884 # Warning - without using the other runtime loading flags (-brtl),
8885 # -berok will link without error, but may produce a broken library.
8886 allow_undefined_flag='-berok'
8887 # Determine the default libpath from the value encoded in an
8888 # empty executable.
8889 if test "${lt_cv_aix_libpath+set}" = set; then
8890 aix_libpath=$lt_cv_aix_libpath
8891 else
8892 if ${lt_cv_aix_libpath_+:} false; then :
8893 $as_echo_n "(cached) " >&6
8894 else
8895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8896 /* end confdefs.h. */
8897
8898 int
8899 main ()
8900 {
8901
8902 ;
8903 return 0;
8904 }
8905 _ACEOF
8906 if ac_fn_c_try_link "$LINENO"; then :
8907
8908 lt_aix_libpath_sed='
8909 /Import File Strings/,/^$/ {
8910 /^0/ {
8911 s/^0 *\([^ ]*\) *$/\1/
8912 p
8913 }
8914 }'
8915 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8916 # Check for a 64-bit object if we didn't find anything.
8917 if test -z "$lt_cv_aix_libpath_"; then
8918 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8919 fi
8920 fi
8921 rm -f core conftest.err conftest.$ac_objext \
8922 conftest$ac_exeext conftest.$ac_ext
8923 if test -z "$lt_cv_aix_libpath_"; then
8924 lt_cv_aix_libpath_="/usr/lib:/lib"
8925 fi
8926
8927 fi
8928
8929 aix_libpath=$lt_cv_aix_libpath_
8930 fi
8931
8932 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8933 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"
8934 else
8935 if test "$host_cpu" = ia64; then
8936 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8937 allow_undefined_flag="-z nodefs"
8938 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"
8939 else
8940 # Determine the default libpath from the value encoded in an
8941 # empty executable.
8942 if test "${lt_cv_aix_libpath+set}" = set; then
8943 aix_libpath=$lt_cv_aix_libpath
8944 else
8945 if ${lt_cv_aix_libpath_+:} false; then :
8946 $as_echo_n "(cached) " >&6
8947 else
8948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8949 /* end confdefs.h. */
8950
8951 int
8952 main ()
8953 {
8954
8955 ;
8956 return 0;
8957 }
8958 _ACEOF
8959 if ac_fn_c_try_link "$LINENO"; then :
8960
8961 lt_aix_libpath_sed='
8962 /Import File Strings/,/^$/ {
8963 /^0/ {
8964 s/^0 *\([^ ]*\) *$/\1/
8965 p
8966 }
8967 }'
8968 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8969 # Check for a 64-bit object if we didn't find anything.
8970 if test -z "$lt_cv_aix_libpath_"; then
8971 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8972 fi
8973 fi
8974 rm -f core conftest.err conftest.$ac_objext \
8975 conftest$ac_exeext conftest.$ac_ext
8976 if test -z "$lt_cv_aix_libpath_"; then
8977 lt_cv_aix_libpath_="/usr/lib:/lib"
8978 fi
8979
8980 fi
8981
8982 aix_libpath=$lt_cv_aix_libpath_
8983 fi
8984
8985 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8986 # Warning - without using the other run time loading flags,
8987 # -berok will link without error, but may produce a broken library.
8988 no_undefined_flag=' ${wl}-bernotok'
8989 allow_undefined_flag=' ${wl}-berok'
8990 if test "$with_gnu_ld" = yes; then
8991 # We only use this code for GNU lds that support --whole-archive.
8992 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8993 else
8994 # Exported symbols can be pulled into shared objects from archives
8995 whole_archive_flag_spec='$convenience'
8996 fi
8997 archive_cmds_need_lc=yes
8998 # This is similar to how AIX traditionally builds its shared libraries.
8999 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'
9000 fi
9001 fi
9002 ;;
9003
9004 amigaos*)
9005 case $host_cpu in
9006 powerpc)
9007 # see comment about AmigaOS4 .so support
9008 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9009 archive_expsym_cmds=''
9010 ;;
9011 m68k)
9012 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)'
9013 hardcode_libdir_flag_spec='-L$libdir'
9014 hardcode_minus_L=yes
9015 ;;
9016 esac
9017 ;;
9018
9019 bsdi[45]*)
9020 export_dynamic_flag_spec=-rdynamic
9021 ;;
9022
9023 cygwin* | mingw* | pw32* | cegcc*)
9024 # When not using gcc, we currently assume that we are using
9025 # Microsoft Visual C++.
9026 # hardcode_libdir_flag_spec is actually meaningless, as there is
9027 # no search path for DLLs.
9028 case $cc_basename in
9029 cl*)
9030 # Native MSVC
9031 hardcode_libdir_flag_spec=' '
9032 allow_undefined_flag=unsupported
9033 always_export_symbols=yes
9034 file_list_spec='@'
9035 # Tell ltmain to make .lib files, not .a files.
9036 libext=lib
9037 # Tell ltmain to make .dll files, not .so files.
9038 shrext_cmds=".dll"
9039 # FIXME: Setting linknames here is a bad hack.
9040 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9041 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9042 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9043 else
9044 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9045 fi~
9046 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9047 linknames='
9048 # The linker will not automatically build a static lib if we build a DLL.
9049 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9050 enable_shared_with_static_runtimes=yes
9051 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9052 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9053 # Don't use ranlib
9054 old_postinstall_cmds='chmod 644 $oldlib'
9055 postlink_cmds='lt_outputfile="@OUTPUT@"~
9056 lt_tool_outputfile="@TOOL_OUTPUT@"~
9057 case $lt_outputfile in
9058 *.exe|*.EXE) ;;
9059 *)
9060 lt_outputfile="$lt_outputfile.exe"
9061 lt_tool_outputfile="$lt_tool_outputfile.exe"
9062 ;;
9063 esac~
9064 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9065 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9066 $RM "$lt_outputfile.manifest";
9067 fi'
9068 ;;
9069 *)
9070 # Assume MSVC wrapper
9071 hardcode_libdir_flag_spec=' '
9072 allow_undefined_flag=unsupported
9073 # Tell ltmain to make .lib files, not .a files.
9074 libext=lib
9075 # Tell ltmain to make .dll files, not .so files.
9076 shrext_cmds=".dll"
9077 # FIXME: Setting linknames here is a bad hack.
9078 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9079 # The linker will automatically build a .lib file if we build a DLL.
9080 old_archive_from_new_cmds='true'
9081 # FIXME: Should let the user specify the lib program.
9082 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9083 enable_shared_with_static_runtimes=yes
9084 ;;
9085 esac
9086 ;;
9087
9088 darwin* | rhapsody*)
9089
9090
9091 archive_cmds_need_lc=no
9092 hardcode_direct=no
9093 hardcode_automatic=yes
9094 hardcode_shlibpath_var=unsupported
9095 if test "$lt_cv_ld_force_load" = "yes"; then
9096 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\"`'
9097
9098 else
9099 whole_archive_flag_spec=''
9100 fi
9101 link_all_deplibs=yes
9102 allow_undefined_flag="$_lt_dar_allow_undefined"
9103 case $cc_basename in
9104 ifort*) _lt_dar_can_shared=yes ;;
9105 *) _lt_dar_can_shared=$GCC ;;
9106 esac
9107 if test "$_lt_dar_can_shared" = "yes"; then
9108 output_verbose_link_cmd=func_echo_all
9109 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9110 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9111 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}"
9112 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}"
9113
9114 else
9115 ld_shlibs=no
9116 fi
9117
9118 ;;
9119
9120 dgux*)
9121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9122 hardcode_libdir_flag_spec='-L$libdir'
9123 hardcode_shlibpath_var=no
9124 ;;
9125
9126 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9127 # support. Future versions do this automatically, but an explicit c++rt0.o
9128 # does not break anything, and helps significantly (at the cost of a little
9129 # extra space).
9130 freebsd2.2*)
9131 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9132 hardcode_libdir_flag_spec='-R$libdir'
9133 hardcode_direct=yes
9134 hardcode_shlibpath_var=no
9135 ;;
9136
9137 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9138 freebsd2.*)
9139 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9140 hardcode_direct=yes
9141 hardcode_minus_L=yes
9142 hardcode_shlibpath_var=no
9143 ;;
9144
9145 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9146 freebsd* | dragonfly*)
9147 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9148 hardcode_libdir_flag_spec='-R$libdir'
9149 hardcode_direct=yes
9150 hardcode_shlibpath_var=no
9151 ;;
9152
9153 hpux9*)
9154 if test "$GCC" = yes; then
9155 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'
9156 else
9157 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'
9158 fi
9159 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9160 hardcode_libdir_separator=:
9161 hardcode_direct=yes
9162
9163 # hardcode_minus_L: Not really in the search PATH,
9164 # but as the default location of the library.
9165 hardcode_minus_L=yes
9166 export_dynamic_flag_spec='${wl}-E'
9167 ;;
9168
9169 hpux10*)
9170 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9171 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9172 else
9173 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9174 fi
9175 if test "$with_gnu_ld" = no; then
9176 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9177 hardcode_libdir_separator=:
9178 hardcode_direct=yes
9179 hardcode_direct_absolute=yes
9180 export_dynamic_flag_spec='${wl}-E'
9181 # hardcode_minus_L: Not really in the search PATH,
9182 # but as the default location of the library.
9183 hardcode_minus_L=yes
9184 fi
9185 ;;
9186
9187 hpux11*)
9188 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9189 case $host_cpu in
9190 hppa*64*)
9191 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9192 ;;
9193 ia64*)
9194 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9195 ;;
9196 *)
9197 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9198 ;;
9199 esac
9200 else
9201 case $host_cpu in
9202 hppa*64*)
9203 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9204 ;;
9205 ia64*)
9206 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9207 ;;
9208 *)
9209
9210 # Older versions of the 11.00 compiler do not understand -b yet
9211 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9213 $as_echo_n "checking if $CC understands -b... " >&6; }
9214 if ${lt_cv_prog_compiler__b+:} false; then :
9215 $as_echo_n "(cached) " >&6
9216 else
9217 lt_cv_prog_compiler__b=no
9218 save_LDFLAGS="$LDFLAGS"
9219 LDFLAGS="$LDFLAGS -b"
9220 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9221 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9222 # The linker can only warn and ignore the option if not recognized
9223 # So say no if there are warnings
9224 if test -s conftest.err; then
9225 # Append any errors to the config.log.
9226 cat conftest.err 1>&5
9227 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9228 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9229 if diff conftest.exp conftest.er2 >/dev/null; then
9230 lt_cv_prog_compiler__b=yes
9231 fi
9232 else
9233 lt_cv_prog_compiler__b=yes
9234 fi
9235 fi
9236 $RM -r conftest*
9237 LDFLAGS="$save_LDFLAGS"
9238
9239 fi
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9241 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9242
9243 if test x"$lt_cv_prog_compiler__b" = xyes; then
9244 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9245 else
9246 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9247 fi
9248
9249 ;;
9250 esac
9251 fi
9252 if test "$with_gnu_ld" = no; then
9253 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9254 hardcode_libdir_separator=:
9255
9256 case $host_cpu in
9257 hppa*64*|ia64*)
9258 hardcode_direct=no
9259 hardcode_shlibpath_var=no
9260 ;;
9261 *)
9262 hardcode_direct=yes
9263 hardcode_direct_absolute=yes
9264 export_dynamic_flag_spec='${wl}-E'
9265
9266 # hardcode_minus_L: Not really in the search PATH,
9267 # but as the default location of the library.
9268 hardcode_minus_L=yes
9269 ;;
9270 esac
9271 fi
9272 ;;
9273
9274 irix5* | irix6* | nonstopux*)
9275 if test "$GCC" = yes; then
9276 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'
9277 # Try to use the -exported_symbol ld option, if it does not
9278 # work, assume that -exports_file does not work either and
9279 # implicitly export all symbols.
9280 # This should be the same for all languages, so no per-tag cache variable.
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9282 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9283 if ${lt_cv_irix_exported_symbol+:} false; then :
9284 $as_echo_n "(cached) " >&6
9285 else
9286 save_LDFLAGS="$LDFLAGS"
9287 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9289 /* end confdefs.h. */
9290 int foo (void) { return 0; }
9291 _ACEOF
9292 if ac_fn_c_try_link "$LINENO"; then :
9293 lt_cv_irix_exported_symbol=yes
9294 else
9295 lt_cv_irix_exported_symbol=no
9296 fi
9297 rm -f core conftest.err conftest.$ac_objext \
9298 conftest$ac_exeext conftest.$ac_ext
9299 LDFLAGS="$save_LDFLAGS"
9300 fi
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9302 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9303 if test "$lt_cv_irix_exported_symbol" = yes; then
9304 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'
9305 fi
9306 else
9307 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'
9308 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'
9309 fi
9310 archive_cmds_need_lc='no'
9311 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9312 hardcode_libdir_separator=:
9313 inherit_rpath=yes
9314 link_all_deplibs=yes
9315 ;;
9316
9317 netbsd*)
9318 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9319 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9320 else
9321 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9322 fi
9323 hardcode_libdir_flag_spec='-R$libdir'
9324 hardcode_direct=yes
9325 hardcode_shlibpath_var=no
9326 ;;
9327
9328 newsos6)
9329 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9330 hardcode_direct=yes
9331 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9332 hardcode_libdir_separator=:
9333 hardcode_shlibpath_var=no
9334 ;;
9335
9336 *nto* | *qnx*)
9337 ;;
9338
9339 openbsd*)
9340 if test -f /usr/libexec/ld.so; then
9341 hardcode_direct=yes
9342 hardcode_shlibpath_var=no
9343 hardcode_direct_absolute=yes
9344 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9345 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9346 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9347 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9348 export_dynamic_flag_spec='${wl}-E'
9349 else
9350 case $host_os in
9351 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9352 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9353 hardcode_libdir_flag_spec='-R$libdir'
9354 ;;
9355 *)
9356 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9357 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9358 ;;
9359 esac
9360 fi
9361 else
9362 ld_shlibs=no
9363 fi
9364 ;;
9365
9366 os2*)
9367 hardcode_libdir_flag_spec='-L$libdir'
9368 hardcode_minus_L=yes
9369 allow_undefined_flag=unsupported
9370 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'
9371 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9372 ;;
9373
9374 osf3*)
9375 if test "$GCC" = yes; then
9376 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9377 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'
9378 else
9379 allow_undefined_flag=' -expect_unresolved \*'
9380 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'
9381 fi
9382 archive_cmds_need_lc='no'
9383 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9384 hardcode_libdir_separator=:
9385 ;;
9386
9387 osf4* | osf5*) # as osf3* with the addition of -msym flag
9388 if test "$GCC" = yes; then
9389 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9390 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'
9391 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9392 else
9393 allow_undefined_flag=' -expect_unresolved \*'
9394 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'
9395 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~
9396 $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'
9397
9398 # Both c and cxx compiler support -rpath directly
9399 hardcode_libdir_flag_spec='-rpath $libdir'
9400 fi
9401 archive_cmds_need_lc='no'
9402 hardcode_libdir_separator=:
9403 ;;
9404
9405 solaris*)
9406 no_undefined_flag=' -z defs'
9407 if test "$GCC" = yes; then
9408 wlarc='${wl}'
9409 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9410 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9411 $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'
9412 else
9413 case `$CC -V 2>&1` in
9414 *"Compilers 5.0"*)
9415 wlarc=''
9416 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9417 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9418 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9419 ;;
9420 *)
9421 wlarc='${wl}'
9422 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9423 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9424 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9425 ;;
9426 esac
9427 fi
9428 hardcode_libdir_flag_spec='-R$libdir'
9429 hardcode_shlibpath_var=no
9430 case $host_os in
9431 solaris2.[0-5] | solaris2.[0-5].*) ;;
9432 *)
9433 # The compiler driver will combine and reorder linker options,
9434 # but understands `-z linker_flag'. GCC discards it without `$wl',
9435 # but is careful enough not to reorder.
9436 # Supported since Solaris 2.6 (maybe 2.5.1?)
9437 if test "$GCC" = yes; then
9438 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9439 else
9440 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9441 fi
9442 ;;
9443 esac
9444 link_all_deplibs=yes
9445 ;;
9446
9447 sunos4*)
9448 if test "x$host_vendor" = xsequent; then
9449 # Use $CC to link under sequent, because it throws in some extra .o
9450 # files that make .init and .fini sections work.
9451 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9452 else
9453 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9454 fi
9455 hardcode_libdir_flag_spec='-L$libdir'
9456 hardcode_direct=yes
9457 hardcode_minus_L=yes
9458 hardcode_shlibpath_var=no
9459 ;;
9460
9461 sysv4)
9462 case $host_vendor in
9463 sni)
9464 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9465 hardcode_direct=yes # is this really true???
9466 ;;
9467 siemens)
9468 ## LD is ld it makes a PLAMLIB
9469 ## CC just makes a GrossModule.
9470 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9471 reload_cmds='$CC -r -o $output$reload_objs'
9472 hardcode_direct=no
9473 ;;
9474 motorola)
9475 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9476 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9477 ;;
9478 esac
9479 runpath_var='LD_RUN_PATH'
9480 hardcode_shlibpath_var=no
9481 ;;
9482
9483 sysv4.3*)
9484 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9485 hardcode_shlibpath_var=no
9486 export_dynamic_flag_spec='-Bexport'
9487 ;;
9488
9489 sysv4*MP*)
9490 if test -d /usr/nec; then
9491 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9492 hardcode_shlibpath_var=no
9493 runpath_var=LD_RUN_PATH
9494 hardcode_runpath_var=yes
9495 ld_shlibs=yes
9496 fi
9497 ;;
9498
9499 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9500 no_undefined_flag='${wl}-z,text'
9501 archive_cmds_need_lc=no
9502 hardcode_shlibpath_var=no
9503 runpath_var='LD_RUN_PATH'
9504
9505 if test "$GCC" = yes; then
9506 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9507 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9508 else
9509 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9510 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9511 fi
9512 ;;
9513
9514 sysv5* | sco3.2v5* | sco5v6*)
9515 # Note: We can NOT use -z defs as we might desire, because we do not
9516 # link with -lc, and that would cause any symbols used from libc to
9517 # always be unresolved, which means just about no library would
9518 # ever link correctly. If we're not using GNU ld we use -z text
9519 # though, which does catch some bad symbols but isn't as heavy-handed
9520 # as -z defs.
9521 no_undefined_flag='${wl}-z,text'
9522 allow_undefined_flag='${wl}-z,nodefs'
9523 archive_cmds_need_lc=no
9524 hardcode_shlibpath_var=no
9525 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9526 hardcode_libdir_separator=':'
9527 link_all_deplibs=yes
9528 export_dynamic_flag_spec='${wl}-Bexport'
9529 runpath_var='LD_RUN_PATH'
9530
9531 if test "$GCC" = yes; then
9532 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9533 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9534 else
9535 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9536 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9537 fi
9538 ;;
9539
9540 uts4*)
9541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9542 hardcode_libdir_flag_spec='-L$libdir'
9543 hardcode_shlibpath_var=no
9544 ;;
9545
9546 *)
9547 ld_shlibs=no
9548 ;;
9549 esac
9550
9551 if test x$host_vendor = xsni; then
9552 case $host in
9553 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9554 export_dynamic_flag_spec='${wl}-Blargedynsym'
9555 ;;
9556 esac
9557 fi
9558 fi
9559
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9561 $as_echo "$ld_shlibs" >&6; }
9562 test "$ld_shlibs" = no && can_build_shared=no
9563
9564 with_gnu_ld=$with_gnu_ld
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580 #
9581 # Do we need to explicitly link libc?
9582 #
9583 case "x$archive_cmds_need_lc" in
9584 x|xyes)
9585 # Assume -lc should be added
9586 archive_cmds_need_lc=yes
9587
9588 if test "$enable_shared" = yes && test "$GCC" = yes; then
9589 case $archive_cmds in
9590 *'~'*)
9591 # FIXME: we may have to deal with multi-command sequences.
9592 ;;
9593 '$CC '*)
9594 # Test whether the compiler implicitly links with -lc since on some
9595 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9596 # to ld, don't add -lc before -lgcc.
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9598 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9599 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9600 $as_echo_n "(cached) " >&6
9601 else
9602 $RM conftest*
9603 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9604
9605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9606 (eval $ac_compile) 2>&5
9607 ac_status=$?
9608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9609 test $ac_status = 0; } 2>conftest.err; then
9610 soname=conftest
9611 lib=conftest
9612 libobjs=conftest.$ac_objext
9613 deplibs=
9614 wl=$lt_prog_compiler_wl
9615 pic_flag=$lt_prog_compiler_pic
9616 compiler_flags=-v
9617 linker_flags=-v
9618 verstring=
9619 output_objdir=.
9620 libname=conftest
9621 lt_save_allow_undefined_flag=$allow_undefined_flag
9622 allow_undefined_flag=
9623 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9624 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9625 ac_status=$?
9626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9627 test $ac_status = 0; }
9628 then
9629 lt_cv_archive_cmds_need_lc=no
9630 else
9631 lt_cv_archive_cmds_need_lc=yes
9632 fi
9633 allow_undefined_flag=$lt_save_allow_undefined_flag
9634 else
9635 cat conftest.err 1>&5
9636 fi
9637 $RM conftest*
9638
9639 fi
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9641 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9642 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9643 ;;
9644 esac
9645 fi
9646 ;;
9647 esac
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9801 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9802
9803 if test "$GCC" = yes; then
9804 case $host_os in
9805 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9806 *) lt_awk_arg="/^libraries:/" ;;
9807 esac
9808 case $host_os in
9809 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9810 *) lt_sed_strip_eq="s,=/,/,g" ;;
9811 esac
9812 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9813 case $lt_search_path_spec in
9814 *\;*)
9815 # if the path contains ";" then we assume it to be the separator
9816 # otherwise default to the standard path separator (i.e. ":") - it is
9817 # assumed that no part of a normal pathname contains ";" but that should
9818 # okay in the real world where ";" in dirpaths is itself problematic.
9819 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9820 ;;
9821 *)
9822 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9823 ;;
9824 esac
9825 # Ok, now we have the path, separated by spaces, we can step through it
9826 # and add multilib dir if necessary.
9827 lt_tmp_lt_search_path_spec=
9828 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9829 for lt_sys_path in $lt_search_path_spec; do
9830 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9831 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9832 else
9833 test -d "$lt_sys_path" && \
9834 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9835 fi
9836 done
9837 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9838 BEGIN {RS=" "; FS="/|\n";} {
9839 lt_foo="";
9840 lt_count=0;
9841 for (lt_i = NF; lt_i > 0; lt_i--) {
9842 if ($lt_i != "" && $lt_i != ".") {
9843 if ($lt_i == "..") {
9844 lt_count++;
9845 } else {
9846 if (lt_count == 0) {
9847 lt_foo="/" $lt_i lt_foo;
9848 } else {
9849 lt_count--;
9850 }
9851 }
9852 }
9853 }
9854 if (lt_foo != "") { lt_freq[lt_foo]++; }
9855 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9856 }'`
9857 # AWK program above erroneously prepends '/' to C:/dos/paths
9858 # for these hosts.
9859 case $host_os in
9860 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9861 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9862 esac
9863 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9864 else
9865 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9866 fi
9867 library_names_spec=
9868 libname_spec='lib$name'
9869 soname_spec=
9870 shrext_cmds=".so"
9871 postinstall_cmds=
9872 postuninstall_cmds=
9873 finish_cmds=
9874 finish_eval=
9875 shlibpath_var=
9876 shlibpath_overrides_runpath=unknown
9877 version_type=none
9878 dynamic_linker="$host_os ld.so"
9879 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9880 need_lib_prefix=unknown
9881 hardcode_into_libs=no
9882
9883 # when you set need_version to no, make sure it does not cause -set_version
9884 # flags to be left without arguments
9885 need_version=unknown
9886
9887 case $host_os in
9888 aix3*)
9889 version_type=linux # correct to gnu/linux during the next big refactor
9890 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9891 shlibpath_var=LIBPATH
9892
9893 # AIX 3 has no versioning support, so we append a major version to the name.
9894 soname_spec='${libname}${release}${shared_ext}$major'
9895 ;;
9896
9897 aix[4-9]*)
9898 version_type=linux # correct to gnu/linux during the next big refactor
9899 need_lib_prefix=no
9900 need_version=no
9901 hardcode_into_libs=yes
9902 if test "$host_cpu" = ia64; then
9903 # AIX 5 supports IA64
9904 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9905 shlibpath_var=LD_LIBRARY_PATH
9906 else
9907 # With GCC up to 2.95.x, collect2 would create an import file
9908 # for dependence libraries. The import file would start with
9909 # the line `#! .'. This would cause the generated library to
9910 # depend on `.', always an invalid library. This was fixed in
9911 # development snapshots of GCC prior to 3.0.
9912 case $host_os in
9913 aix4 | aix4.[01] | aix4.[01].*)
9914 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9915 echo ' yes '
9916 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9917 :
9918 else
9919 can_build_shared=no
9920 fi
9921 ;;
9922 esac
9923 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9924 # soname into executable. Probably we can add versioning support to
9925 # collect2, so additional links can be useful in future.
9926 if test "$aix_use_runtimelinking" = yes; then
9927 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9928 # instead of lib<name>.a to let people know that these are not
9929 # typical AIX shared libraries.
9930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9931 else
9932 # We preserve .a as extension for shared libraries through AIX4.2
9933 # and later when we are not doing run time linking.
9934 library_names_spec='${libname}${release}.a $libname.a'
9935 soname_spec='${libname}${release}${shared_ext}$major'
9936 fi
9937 shlibpath_var=LIBPATH
9938 fi
9939 ;;
9940
9941 amigaos*)
9942 case $host_cpu in
9943 powerpc)
9944 # Since July 2007 AmigaOS4 officially supports .so libraries.
9945 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9947 ;;
9948 m68k)
9949 library_names_spec='$libname.ixlibrary $libname.a'
9950 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9951 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'
9952 ;;
9953 esac
9954 ;;
9955
9956 beos*)
9957 library_names_spec='${libname}${shared_ext}'
9958 dynamic_linker="$host_os ld.so"
9959 shlibpath_var=LIBRARY_PATH
9960 ;;
9961
9962 bsdi[45]*)
9963 version_type=linux # correct to gnu/linux during the next big refactor
9964 need_version=no
9965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9966 soname_spec='${libname}${release}${shared_ext}$major'
9967 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9968 shlibpath_var=LD_LIBRARY_PATH
9969 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9970 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9971 # the default ld.so.conf also contains /usr/contrib/lib and
9972 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9973 # libtool to hard-code these into programs
9974 ;;
9975
9976 cygwin* | mingw* | pw32* | cegcc*)
9977 version_type=windows
9978 shrext_cmds=".dll"
9979 need_version=no
9980 need_lib_prefix=no
9981
9982 case $GCC,$cc_basename in
9983 yes,*)
9984 # gcc
9985 library_names_spec='$libname.dll.a'
9986 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9987 postinstall_cmds='base_file=`basename \${file}`~
9988 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9989 dldir=$destdir/`dirname \$dlpath`~
9990 test -d \$dldir || mkdir -p \$dldir~
9991 $install_prog $dir/$dlname \$dldir/$dlname~
9992 chmod a+x \$dldir/$dlname~
9993 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9994 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9995 fi'
9996 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9997 dlpath=$dir/\$dldll~
9998 $RM \$dlpath'
9999 shlibpath_overrides_runpath=yes
10000
10001 case $host_os in
10002 cygwin*)
10003 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10004 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10005
10006 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10007 ;;
10008 mingw* | cegcc*)
10009 # MinGW DLLs use traditional 'lib' prefix
10010 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10011 ;;
10012 pw32*)
10013 # pw32 DLLs use 'pw' prefix rather than 'lib'
10014 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10015 ;;
10016 esac
10017 dynamic_linker='Win32 ld.exe'
10018 ;;
10019
10020 *,cl*)
10021 # Native MSVC
10022 libname_spec='$name'
10023 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10024 library_names_spec='${libname}.dll.lib'
10025
10026 case $build_os in
10027 mingw*)
10028 sys_lib_search_path_spec=
10029 lt_save_ifs=$IFS
10030 IFS=';'
10031 for lt_path in $LIB
10032 do
10033 IFS=$lt_save_ifs
10034 # Let DOS variable expansion print the short 8.3 style file name.
10035 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10036 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10037 done
10038 IFS=$lt_save_ifs
10039 # Convert to MSYS style.
10040 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10041 ;;
10042 cygwin*)
10043 # Convert to unix form, then to dos form, then back to unix form
10044 # but this time dos style (no spaces!) so that the unix form looks
10045 # like /cygdrive/c/PROGRA~1:/cygdr...
10046 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10047 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10048 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10049 ;;
10050 *)
10051 sys_lib_search_path_spec="$LIB"
10052 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10053 # It is most probably a Windows format PATH.
10054 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10055 else
10056 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10057 fi
10058 # FIXME: find the short name or the path components, as spaces are
10059 # common. (e.g. "Program Files" -> "PROGRA~1")
10060 ;;
10061 esac
10062
10063 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10064 postinstall_cmds='base_file=`basename \${file}`~
10065 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10066 dldir=$destdir/`dirname \$dlpath`~
10067 test -d \$dldir || mkdir -p \$dldir~
10068 $install_prog $dir/$dlname \$dldir/$dlname'
10069 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10070 dlpath=$dir/\$dldll~
10071 $RM \$dlpath'
10072 shlibpath_overrides_runpath=yes
10073 dynamic_linker='Win32 link.exe'
10074 ;;
10075
10076 *)
10077 # Assume MSVC wrapper
10078 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10079 dynamic_linker='Win32 ld.exe'
10080 ;;
10081 esac
10082 # FIXME: first we should search . and the directory the executable is in
10083 shlibpath_var=PATH
10084 ;;
10085
10086 darwin* | rhapsody*)
10087 dynamic_linker="$host_os dyld"
10088 version_type=darwin
10089 need_lib_prefix=no
10090 need_version=no
10091 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10092 soname_spec='${libname}${release}${major}$shared_ext'
10093 shlibpath_overrides_runpath=yes
10094 shlibpath_var=DYLD_LIBRARY_PATH
10095 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10096
10097 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10098 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10099 ;;
10100
10101 dgux*)
10102 version_type=linux # correct to gnu/linux during the next big refactor
10103 need_lib_prefix=no
10104 need_version=no
10105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10106 soname_spec='${libname}${release}${shared_ext}$major'
10107 shlibpath_var=LD_LIBRARY_PATH
10108 ;;
10109
10110 freebsd* | dragonfly*)
10111 # DragonFly does not have aout. When/if they implement a new
10112 # versioning mechanism, adjust this.
10113 if test -x /usr/bin/objformat; then
10114 objformat=`/usr/bin/objformat`
10115 else
10116 case $host_os in
10117 freebsd[23].*) objformat=aout ;;
10118 *) objformat=elf ;;
10119 esac
10120 fi
10121 version_type=freebsd-$objformat
10122 case $version_type in
10123 freebsd-elf*)
10124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10125 need_version=no
10126 need_lib_prefix=no
10127 ;;
10128 freebsd-*)
10129 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10130 need_version=yes
10131 ;;
10132 esac
10133 shlibpath_var=LD_LIBRARY_PATH
10134 case $host_os in
10135 freebsd2.*)
10136 shlibpath_overrides_runpath=yes
10137 ;;
10138 freebsd3.[01]* | freebsdelf3.[01]*)
10139 shlibpath_overrides_runpath=yes
10140 hardcode_into_libs=yes
10141 ;;
10142 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10143 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10144 shlibpath_overrides_runpath=no
10145 hardcode_into_libs=yes
10146 ;;
10147 *) # from 4.6 on, and DragonFly
10148 shlibpath_overrides_runpath=yes
10149 hardcode_into_libs=yes
10150 ;;
10151 esac
10152 ;;
10153
10154 gnu*)
10155 version_type=linux # correct to gnu/linux during the next big refactor
10156 need_lib_prefix=no
10157 need_version=no
10158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10159 soname_spec='${libname}${release}${shared_ext}$major'
10160 shlibpath_var=LD_LIBRARY_PATH
10161 shlibpath_overrides_runpath=no
10162 hardcode_into_libs=yes
10163 ;;
10164
10165 haiku*)
10166 version_type=linux # correct to gnu/linux during the next big refactor
10167 need_lib_prefix=no
10168 need_version=no
10169 dynamic_linker="$host_os runtime_loader"
10170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10171 soname_spec='${libname}${release}${shared_ext}$major'
10172 shlibpath_var=LIBRARY_PATH
10173 shlibpath_overrides_runpath=yes
10174 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10175 hardcode_into_libs=yes
10176 ;;
10177
10178 hpux9* | hpux10* | hpux11*)
10179 # Give a soname corresponding to the major version so that dld.sl refuses to
10180 # link against other versions.
10181 version_type=sunos
10182 need_lib_prefix=no
10183 need_version=no
10184 case $host_cpu in
10185 ia64*)
10186 shrext_cmds='.so'
10187 hardcode_into_libs=yes
10188 dynamic_linker="$host_os dld.so"
10189 shlibpath_var=LD_LIBRARY_PATH
10190 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10192 soname_spec='${libname}${release}${shared_ext}$major'
10193 if test "X$HPUX_IA64_MODE" = X32; then
10194 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10195 else
10196 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10197 fi
10198 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10199 ;;
10200 hppa*64*)
10201 shrext_cmds='.sl'
10202 hardcode_into_libs=yes
10203 dynamic_linker="$host_os dld.sl"
10204 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10205 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10207 soname_spec='${libname}${release}${shared_ext}$major'
10208 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10209 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10210 ;;
10211 *)
10212 shrext_cmds='.sl'
10213 dynamic_linker="$host_os dld.sl"
10214 shlibpath_var=SHLIB_PATH
10215 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10217 soname_spec='${libname}${release}${shared_ext}$major'
10218 ;;
10219 esac
10220 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10221 postinstall_cmds='chmod 555 $lib'
10222 # or fails outright, so override atomically:
10223 install_override_mode=555
10224 ;;
10225
10226 interix[3-9]*)
10227 version_type=linux # correct to gnu/linux during the next big refactor
10228 need_lib_prefix=no
10229 need_version=no
10230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10231 soname_spec='${libname}${release}${shared_ext}$major'
10232 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10233 shlibpath_var=LD_LIBRARY_PATH
10234 shlibpath_overrides_runpath=no
10235 hardcode_into_libs=yes
10236 ;;
10237
10238 irix5* | irix6* | nonstopux*)
10239 case $host_os in
10240 nonstopux*) version_type=nonstopux ;;
10241 *)
10242 if test "$lt_cv_prog_gnu_ld" = yes; then
10243 version_type=linux # correct to gnu/linux during the next big refactor
10244 else
10245 version_type=irix
10246 fi ;;
10247 esac
10248 need_lib_prefix=no
10249 need_version=no
10250 soname_spec='${libname}${release}${shared_ext}$major'
10251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10252 case $host_os in
10253 irix5* | nonstopux*)
10254 libsuff= shlibsuff=
10255 ;;
10256 *)
10257 case $LD in # libtool.m4 will add one of these switches to LD
10258 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10259 libsuff= shlibsuff= libmagic=32-bit;;
10260 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10261 libsuff=32 shlibsuff=N32 libmagic=N32;;
10262 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10263 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10264 *) libsuff= shlibsuff= libmagic=never-match;;
10265 esac
10266 ;;
10267 esac
10268 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10269 shlibpath_overrides_runpath=no
10270 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10271 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10272 hardcode_into_libs=yes
10273 ;;
10274
10275 # No shared lib support for Linux oldld, aout, or coff.
10276 linux*oldld* | linux*aout* | linux*coff*)
10277 dynamic_linker=no
10278 ;;
10279
10280 # This must be glibc/ELF.
10281 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10282 version_type=linux # correct to gnu/linux during the next big refactor
10283 need_lib_prefix=no
10284 need_version=no
10285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10286 soname_spec='${libname}${release}${shared_ext}$major'
10287 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10288 shlibpath_var=LD_LIBRARY_PATH
10289 shlibpath_overrides_runpath=no
10290
10291 # Some binutils ld are patched to set DT_RUNPATH
10292 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10293 $as_echo_n "(cached) " >&6
10294 else
10295 lt_cv_shlibpath_overrides_runpath=no
10296 save_LDFLAGS=$LDFLAGS
10297 save_libdir=$libdir
10298 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10299 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10301 /* end confdefs.h. */
10302
10303 int
10304 main ()
10305 {
10306
10307 ;
10308 return 0;
10309 }
10310 _ACEOF
10311 if ac_fn_c_try_link "$LINENO"; then :
10312 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10313 lt_cv_shlibpath_overrides_runpath=yes
10314 fi
10315 fi
10316 rm -f core conftest.err conftest.$ac_objext \
10317 conftest$ac_exeext conftest.$ac_ext
10318 LDFLAGS=$save_LDFLAGS
10319 libdir=$save_libdir
10320
10321 fi
10322
10323 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10324
10325 # This implies no fast_install, which is unacceptable.
10326 # Some rework will be needed to allow for fast_install
10327 # before this can be enabled.
10328 hardcode_into_libs=yes
10329
10330 # Add ABI-specific directories to the system library path.
10331 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10332
10333 # Append ld.so.conf contents to the search path
10334 if test -f /etc/ld.so.conf; then
10335 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' ' '`
10336 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10337
10338 fi
10339
10340 # We used to test for /lib/ld.so.1 and disable shared libraries on
10341 # powerpc, because MkLinux only supported shared libraries with the
10342 # GNU dynamic linker. Since this was broken with cross compilers,
10343 # most powerpc-linux boxes support dynamic linking these days and
10344 # people can always --disable-shared, the test was removed, and we
10345 # assume the GNU/Linux dynamic linker is in use.
10346 dynamic_linker='GNU/Linux ld.so'
10347 ;;
10348
10349 netbsd*)
10350 version_type=sunos
10351 need_lib_prefix=no
10352 need_version=no
10353 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10356 dynamic_linker='NetBSD (a.out) ld.so'
10357 else
10358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10359 soname_spec='${libname}${release}${shared_ext}$major'
10360 dynamic_linker='NetBSD ld.elf_so'
10361 fi
10362 shlibpath_var=LD_LIBRARY_PATH
10363 shlibpath_overrides_runpath=yes
10364 hardcode_into_libs=yes
10365 ;;
10366
10367 newsos6)
10368 version_type=linux # correct to gnu/linux during the next big refactor
10369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10370 shlibpath_var=LD_LIBRARY_PATH
10371 shlibpath_overrides_runpath=yes
10372 ;;
10373
10374 *nto* | *qnx*)
10375 version_type=qnx
10376 need_lib_prefix=no
10377 need_version=no
10378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10379 soname_spec='${libname}${release}${shared_ext}$major'
10380 shlibpath_var=LD_LIBRARY_PATH
10381 shlibpath_overrides_runpath=no
10382 hardcode_into_libs=yes
10383 dynamic_linker='ldqnx.so'
10384 ;;
10385
10386 openbsd*)
10387 version_type=sunos
10388 sys_lib_dlsearch_path_spec="/usr/lib"
10389 need_lib_prefix=no
10390 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10391 case $host_os in
10392 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10393 *) need_version=no ;;
10394 esac
10395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10397 shlibpath_var=LD_LIBRARY_PATH
10398 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10399 case $host_os in
10400 openbsd2.[89] | openbsd2.[89].*)
10401 shlibpath_overrides_runpath=no
10402 ;;
10403 *)
10404 shlibpath_overrides_runpath=yes
10405 ;;
10406 esac
10407 else
10408 shlibpath_overrides_runpath=yes
10409 fi
10410 ;;
10411
10412 os2*)
10413 libname_spec='$name'
10414 shrext_cmds=".dll"
10415 need_lib_prefix=no
10416 library_names_spec='$libname${shared_ext} $libname.a'
10417 dynamic_linker='OS/2 ld.exe'
10418 shlibpath_var=LIBPATH
10419 ;;
10420
10421 osf3* | osf4* | osf5*)
10422 version_type=osf
10423 need_lib_prefix=no
10424 need_version=no
10425 soname_spec='${libname}${release}${shared_ext}$major'
10426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10427 shlibpath_var=LD_LIBRARY_PATH
10428 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10429 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10430 ;;
10431
10432 rdos*)
10433 dynamic_linker=no
10434 ;;
10435
10436 solaris*)
10437 version_type=linux # correct to gnu/linux during the next big refactor
10438 need_lib_prefix=no
10439 need_version=no
10440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10441 soname_spec='${libname}${release}${shared_ext}$major'
10442 shlibpath_var=LD_LIBRARY_PATH
10443 shlibpath_overrides_runpath=yes
10444 hardcode_into_libs=yes
10445 # ldd complains unless libraries are executable
10446 postinstall_cmds='chmod +x $lib'
10447 ;;
10448
10449 sunos4*)
10450 version_type=sunos
10451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10452 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10453 shlibpath_var=LD_LIBRARY_PATH
10454 shlibpath_overrides_runpath=yes
10455 if test "$with_gnu_ld" = yes; then
10456 need_lib_prefix=no
10457 fi
10458 need_version=yes
10459 ;;
10460
10461 sysv4 | sysv4.3*)
10462 version_type=linux # correct to gnu/linux during the next big refactor
10463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10464 soname_spec='${libname}${release}${shared_ext}$major'
10465 shlibpath_var=LD_LIBRARY_PATH
10466 case $host_vendor in
10467 sni)
10468 shlibpath_overrides_runpath=no
10469 need_lib_prefix=no
10470 runpath_var=LD_RUN_PATH
10471 ;;
10472 siemens)
10473 need_lib_prefix=no
10474 ;;
10475 motorola)
10476 need_lib_prefix=no
10477 need_version=no
10478 shlibpath_overrides_runpath=no
10479 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10480 ;;
10481 esac
10482 ;;
10483
10484 sysv4*MP*)
10485 if test -d /usr/nec ;then
10486 version_type=linux # correct to gnu/linux during the next big refactor
10487 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10488 soname_spec='$libname${shared_ext}.$major'
10489 shlibpath_var=LD_LIBRARY_PATH
10490 fi
10491 ;;
10492
10493 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10494 version_type=freebsd-elf
10495 need_lib_prefix=no
10496 need_version=no
10497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10498 soname_spec='${libname}${release}${shared_ext}$major'
10499 shlibpath_var=LD_LIBRARY_PATH
10500 shlibpath_overrides_runpath=yes
10501 hardcode_into_libs=yes
10502 if test "$with_gnu_ld" = yes; then
10503 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10504 else
10505 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10506 case $host_os in
10507 sco3.2v5*)
10508 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10509 ;;
10510 esac
10511 fi
10512 sys_lib_dlsearch_path_spec='/usr/lib'
10513 ;;
10514
10515 tpf*)
10516 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10517 version_type=linux # correct to gnu/linux during the next big refactor
10518 need_lib_prefix=no
10519 need_version=no
10520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10521 shlibpath_var=LD_LIBRARY_PATH
10522 shlibpath_overrides_runpath=no
10523 hardcode_into_libs=yes
10524 ;;
10525
10526 uts4*)
10527 version_type=linux # correct to gnu/linux during the next big refactor
10528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10529 soname_spec='${libname}${release}${shared_ext}$major'
10530 shlibpath_var=LD_LIBRARY_PATH
10531 ;;
10532
10533 *)
10534 dynamic_linker=no
10535 ;;
10536 esac
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10538 $as_echo "$dynamic_linker" >&6; }
10539 test "$dynamic_linker" = no && can_build_shared=no
10540
10541 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10542 if test "$GCC" = yes; then
10543 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10544 fi
10545
10546 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10547 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10548 fi
10549 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10550 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10551 fi
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10645 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10646 hardcode_action=
10647 if test -n "$hardcode_libdir_flag_spec" ||
10648 test -n "$runpath_var" ||
10649 test "X$hardcode_automatic" = "Xyes" ; then
10650
10651 # We can hardcode non-existent directories.
10652 if test "$hardcode_direct" != no &&
10653 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10654 # have to relink, otherwise we might link with an installed library
10655 # when we should be linking with a yet-to-be-installed one
10656 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10657 test "$hardcode_minus_L" != no; then
10658 # Linking always hardcodes the temporary library directory.
10659 hardcode_action=relink
10660 else
10661 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10662 hardcode_action=immediate
10663 fi
10664 else
10665 # We cannot hardcode anything, or else we can only hardcode existing
10666 # directories.
10667 hardcode_action=unsupported
10668 fi
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10670 $as_echo "$hardcode_action" >&6; }
10671
10672 if test "$hardcode_action" = relink ||
10673 test "$inherit_rpath" = yes; then
10674 # Fast installation is not supported
10675 enable_fast_install=no
10676 elif test "$shlibpath_overrides_runpath" = yes ||
10677 test "$enable_shared" = no; then
10678 # Fast installation is not necessary
10679 enable_fast_install=needless
10680 fi
10681
10682
10683
10684
10685
10686
10687 if test "x$enable_dlopen" != xyes; then
10688 enable_dlopen=unknown
10689 enable_dlopen_self=unknown
10690 enable_dlopen_self_static=unknown
10691 else
10692 lt_cv_dlopen=no
10693 lt_cv_dlopen_libs=
10694
10695 case $host_os in
10696 beos*)
10697 lt_cv_dlopen="load_add_on"
10698 lt_cv_dlopen_libs=
10699 lt_cv_dlopen_self=yes
10700 ;;
10701
10702 mingw* | pw32* | cegcc*)
10703 lt_cv_dlopen="LoadLibrary"
10704 lt_cv_dlopen_libs=
10705 ;;
10706
10707 cygwin*)
10708 lt_cv_dlopen="dlopen"
10709 lt_cv_dlopen_libs=
10710 ;;
10711
10712 darwin*)
10713 # if libdl is installed we need to link against it
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10715 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10716 if ${ac_cv_lib_dl_dlopen+:} false; then :
10717 $as_echo_n "(cached) " >&6
10718 else
10719 ac_check_lib_save_LIBS=$LIBS
10720 LIBS="-ldl $LIBS"
10721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10722 /* end confdefs.h. */
10723
10724 /* Override any GCC internal prototype to avoid an error.
10725 Use char because int might match the return type of a GCC
10726 builtin and then its argument prototype would still apply. */
10727 #ifdef __cplusplus
10728 extern "C"
10729 #endif
10730 char dlopen ();
10731 int
10732 main ()
10733 {
10734 return dlopen ();
10735 ;
10736 return 0;
10737 }
10738 _ACEOF
10739 if ac_fn_c_try_link "$LINENO"; then :
10740 ac_cv_lib_dl_dlopen=yes
10741 else
10742 ac_cv_lib_dl_dlopen=no
10743 fi
10744 rm -f core conftest.err conftest.$ac_objext \
10745 conftest$ac_exeext conftest.$ac_ext
10746 LIBS=$ac_check_lib_save_LIBS
10747 fi
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10749 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10750 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10751 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10752 else
10753
10754 lt_cv_dlopen="dyld"
10755 lt_cv_dlopen_libs=
10756 lt_cv_dlopen_self=yes
10757
10758 fi
10759
10760 ;;
10761
10762 *)
10763 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10764 if test "x$ac_cv_func_shl_load" = xyes; then :
10765 lt_cv_dlopen="shl_load"
10766 else
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10768 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10769 if ${ac_cv_lib_dld_shl_load+:} false; then :
10770 $as_echo_n "(cached) " >&6
10771 else
10772 ac_check_lib_save_LIBS=$LIBS
10773 LIBS="-ldld $LIBS"
10774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10775 /* end confdefs.h. */
10776
10777 /* Override any GCC internal prototype to avoid an error.
10778 Use char because int might match the return type of a GCC
10779 builtin and then its argument prototype would still apply. */
10780 #ifdef __cplusplus
10781 extern "C"
10782 #endif
10783 char shl_load ();
10784 int
10785 main ()
10786 {
10787 return shl_load ();
10788 ;
10789 return 0;
10790 }
10791 _ACEOF
10792 if ac_fn_c_try_link "$LINENO"; then :
10793 ac_cv_lib_dld_shl_load=yes
10794 else
10795 ac_cv_lib_dld_shl_load=no
10796 fi
10797 rm -f core conftest.err conftest.$ac_objext \
10798 conftest$ac_exeext conftest.$ac_ext
10799 LIBS=$ac_check_lib_save_LIBS
10800 fi
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10802 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10803 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10804 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10805 else
10806 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10807 if test "x$ac_cv_func_dlopen" = xyes; then :
10808 lt_cv_dlopen="dlopen"
10809 else
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10811 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10812 if ${ac_cv_lib_dl_dlopen+:} false; then :
10813 $as_echo_n "(cached) " >&6
10814 else
10815 ac_check_lib_save_LIBS=$LIBS
10816 LIBS="-ldl $LIBS"
10817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10818 /* end confdefs.h. */
10819
10820 /* Override any GCC internal prototype to avoid an error.
10821 Use char because int might match the return type of a GCC
10822 builtin and then its argument prototype would still apply. */
10823 #ifdef __cplusplus
10824 extern "C"
10825 #endif
10826 char dlopen ();
10827 int
10828 main ()
10829 {
10830 return dlopen ();
10831 ;
10832 return 0;
10833 }
10834 _ACEOF
10835 if ac_fn_c_try_link "$LINENO"; then :
10836 ac_cv_lib_dl_dlopen=yes
10837 else
10838 ac_cv_lib_dl_dlopen=no
10839 fi
10840 rm -f core conftest.err conftest.$ac_objext \
10841 conftest$ac_exeext conftest.$ac_ext
10842 LIBS=$ac_check_lib_save_LIBS
10843 fi
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10845 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10846 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10847 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10848 else
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10850 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10851 if ${ac_cv_lib_svld_dlopen+:} false; then :
10852 $as_echo_n "(cached) " >&6
10853 else
10854 ac_check_lib_save_LIBS=$LIBS
10855 LIBS="-lsvld $LIBS"
10856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10857 /* end confdefs.h. */
10858
10859 /* Override any GCC internal prototype to avoid an error.
10860 Use char because int might match the return type of a GCC
10861 builtin and then its argument prototype would still apply. */
10862 #ifdef __cplusplus
10863 extern "C"
10864 #endif
10865 char dlopen ();
10866 int
10867 main ()
10868 {
10869 return dlopen ();
10870 ;
10871 return 0;
10872 }
10873 _ACEOF
10874 if ac_fn_c_try_link "$LINENO"; then :
10875 ac_cv_lib_svld_dlopen=yes
10876 else
10877 ac_cv_lib_svld_dlopen=no
10878 fi
10879 rm -f core conftest.err conftest.$ac_objext \
10880 conftest$ac_exeext conftest.$ac_ext
10881 LIBS=$ac_check_lib_save_LIBS
10882 fi
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10884 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10885 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10886 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10887 else
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10889 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10890 if ${ac_cv_lib_dld_dld_link+:} false; then :
10891 $as_echo_n "(cached) " >&6
10892 else
10893 ac_check_lib_save_LIBS=$LIBS
10894 LIBS="-ldld $LIBS"
10895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10896 /* end confdefs.h. */
10897
10898 /* Override any GCC internal prototype to avoid an error.
10899 Use char because int might match the return type of a GCC
10900 builtin and then its argument prototype would still apply. */
10901 #ifdef __cplusplus
10902 extern "C"
10903 #endif
10904 char dld_link ();
10905 int
10906 main ()
10907 {
10908 return dld_link ();
10909 ;
10910 return 0;
10911 }
10912 _ACEOF
10913 if ac_fn_c_try_link "$LINENO"; then :
10914 ac_cv_lib_dld_dld_link=yes
10915 else
10916 ac_cv_lib_dld_dld_link=no
10917 fi
10918 rm -f core conftest.err conftest.$ac_objext \
10919 conftest$ac_exeext conftest.$ac_ext
10920 LIBS=$ac_check_lib_save_LIBS
10921 fi
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10923 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10924 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10925 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10926 fi
10927
10928
10929 fi
10930
10931
10932 fi
10933
10934
10935 fi
10936
10937
10938 fi
10939
10940
10941 fi
10942
10943 ;;
10944 esac
10945
10946 if test "x$lt_cv_dlopen" != xno; then
10947 enable_dlopen=yes
10948 else
10949 enable_dlopen=no
10950 fi
10951
10952 case $lt_cv_dlopen in
10953 dlopen)
10954 save_CPPFLAGS="$CPPFLAGS"
10955 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10956
10957 save_LDFLAGS="$LDFLAGS"
10958 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10959
10960 save_LIBS="$LIBS"
10961 LIBS="$lt_cv_dlopen_libs $LIBS"
10962
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10964 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10965 if ${lt_cv_dlopen_self+:} false; then :
10966 $as_echo_n "(cached) " >&6
10967 else
10968 if test "$cross_compiling" = yes; then :
10969 lt_cv_dlopen_self=cross
10970 else
10971 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10972 lt_status=$lt_dlunknown
10973 cat > conftest.$ac_ext <<_LT_EOF
10974 #line $LINENO "configure"
10975 #include "confdefs.h"
10976
10977 #if HAVE_DLFCN_H
10978 #include <dlfcn.h>
10979 #endif
10980
10981 #include <stdio.h>
10982
10983 #ifdef RTLD_GLOBAL
10984 # define LT_DLGLOBAL RTLD_GLOBAL
10985 #else
10986 # ifdef DL_GLOBAL
10987 # define LT_DLGLOBAL DL_GLOBAL
10988 # else
10989 # define LT_DLGLOBAL 0
10990 # endif
10991 #endif
10992
10993 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10994 find out it does not work in some platform. */
10995 #ifndef LT_DLLAZY_OR_NOW
10996 # ifdef RTLD_LAZY
10997 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10998 # else
10999 # ifdef DL_LAZY
11000 # define LT_DLLAZY_OR_NOW DL_LAZY
11001 # else
11002 # ifdef RTLD_NOW
11003 # define LT_DLLAZY_OR_NOW RTLD_NOW
11004 # else
11005 # ifdef DL_NOW
11006 # define LT_DLLAZY_OR_NOW DL_NOW
11007 # else
11008 # define LT_DLLAZY_OR_NOW 0
11009 # endif
11010 # endif
11011 # endif
11012 # endif
11013 #endif
11014
11015 /* When -fvisbility=hidden is used, assume the code has been annotated
11016 correspondingly for the symbols needed. */
11017 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11018 int fnord () __attribute__((visibility("default")));
11019 #endif
11020
11021 int fnord () { return 42; }
11022 int main ()
11023 {
11024 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11025 int status = $lt_dlunknown;
11026
11027 if (self)
11028 {
11029 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11030 else
11031 {
11032 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11033 else puts (dlerror ());
11034 }
11035 /* dlclose (self); */
11036 }
11037 else
11038 puts (dlerror ());
11039
11040 return status;
11041 }
11042 _LT_EOF
11043 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11044 (eval $ac_link) 2>&5
11045 ac_status=$?
11046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11047 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11048 (./conftest; exit; ) >&5 2>/dev/null
11049 lt_status=$?
11050 case x$lt_status in
11051 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11052 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11053 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11054 esac
11055 else :
11056 # compilation failed
11057 lt_cv_dlopen_self=no
11058 fi
11059 fi
11060 rm -fr conftest*
11061
11062
11063 fi
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11065 $as_echo "$lt_cv_dlopen_self" >&6; }
11066
11067 if test "x$lt_cv_dlopen_self" = xyes; then
11068 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11070 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11071 if ${lt_cv_dlopen_self_static+:} false; then :
11072 $as_echo_n "(cached) " >&6
11073 else
11074 if test "$cross_compiling" = yes; then :
11075 lt_cv_dlopen_self_static=cross
11076 else
11077 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11078 lt_status=$lt_dlunknown
11079 cat > conftest.$ac_ext <<_LT_EOF
11080 #line $LINENO "configure"
11081 #include "confdefs.h"
11082
11083 #if HAVE_DLFCN_H
11084 #include <dlfcn.h>
11085 #endif
11086
11087 #include <stdio.h>
11088
11089 #ifdef RTLD_GLOBAL
11090 # define LT_DLGLOBAL RTLD_GLOBAL
11091 #else
11092 # ifdef DL_GLOBAL
11093 # define LT_DLGLOBAL DL_GLOBAL
11094 # else
11095 # define LT_DLGLOBAL 0
11096 # endif
11097 #endif
11098
11099 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11100 find out it does not work in some platform. */
11101 #ifndef LT_DLLAZY_OR_NOW
11102 # ifdef RTLD_LAZY
11103 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11104 # else
11105 # ifdef DL_LAZY
11106 # define LT_DLLAZY_OR_NOW DL_LAZY
11107 # else
11108 # ifdef RTLD_NOW
11109 # define LT_DLLAZY_OR_NOW RTLD_NOW
11110 # else
11111 # ifdef DL_NOW
11112 # define LT_DLLAZY_OR_NOW DL_NOW
11113 # else
11114 # define LT_DLLAZY_OR_NOW 0
11115 # endif
11116 # endif
11117 # endif
11118 # endif
11119 #endif
11120
11121 /* When -fvisbility=hidden is used, assume the code has been annotated
11122 correspondingly for the symbols needed. */
11123 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11124 int fnord () __attribute__((visibility("default")));
11125 #endif
11126
11127 int fnord () { return 42; }
11128 int main ()
11129 {
11130 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11131 int status = $lt_dlunknown;
11132
11133 if (self)
11134 {
11135 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11136 else
11137 {
11138 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11139 else puts (dlerror ());
11140 }
11141 /* dlclose (self); */
11142 }
11143 else
11144 puts (dlerror ());
11145
11146 return status;
11147 }
11148 _LT_EOF
11149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11150 (eval $ac_link) 2>&5
11151 ac_status=$?
11152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11153 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11154 (./conftest; exit; ) >&5 2>/dev/null
11155 lt_status=$?
11156 case x$lt_status in
11157 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11158 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11159 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11160 esac
11161 else :
11162 # compilation failed
11163 lt_cv_dlopen_self_static=no
11164 fi
11165 fi
11166 rm -fr conftest*
11167
11168
11169 fi
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11171 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11172 fi
11173
11174 CPPFLAGS="$save_CPPFLAGS"
11175 LDFLAGS="$save_LDFLAGS"
11176 LIBS="$save_LIBS"
11177 ;;
11178 esac
11179
11180 case $lt_cv_dlopen_self in
11181 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11182 *) enable_dlopen_self=unknown ;;
11183 esac
11184
11185 case $lt_cv_dlopen_self_static in
11186 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11187 *) enable_dlopen_self_static=unknown ;;
11188 esac
11189 fi
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207 striplib=
11208 old_striplib=
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11210 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11211 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11212 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11213 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11215 $as_echo "yes" >&6; }
11216 else
11217 # FIXME - insert some real tests, host_os isn't really good enough
11218 case $host_os in
11219 darwin*)
11220 if test -n "$STRIP" ; then
11221 striplib="$STRIP -x"
11222 old_striplib="$STRIP -S"
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11224 $as_echo "yes" >&6; }
11225 else
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11227 $as_echo "no" >&6; }
11228 fi
11229 ;;
11230 *)
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11232 $as_echo "no" >&6; }
11233 ;;
11234 esac
11235 fi
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248 # Report which library types will actually be built
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11250 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11252 $as_echo "$can_build_shared" >&6; }
11253
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11255 $as_echo_n "checking whether to build shared libraries... " >&6; }
11256 test "$can_build_shared" = "no" && enable_shared=no
11257
11258 # On AIX, shared libraries and static libraries use the same namespace, and
11259 # are all built from PIC.
11260 case $host_os in
11261 aix3*)
11262 test "$enable_shared" = yes && enable_static=no
11263 if test -n "$RANLIB"; then
11264 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11265 postinstall_cmds='$RANLIB $lib'
11266 fi
11267 ;;
11268
11269 aix[4-9]*)
11270 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11271 test "$enable_shared" = yes && enable_static=no
11272 fi
11273 ;;
11274 esac
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11276 $as_echo "$enable_shared" >&6; }
11277
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11279 $as_echo_n "checking whether to build static libraries... " >&6; }
11280 # Make sure either enable_shared or enable_static is yes.
11281 test "$enable_shared" = yes || enable_static=yes
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11283 $as_echo "$enable_static" >&6; }
11284
11285
11286
11287
11288 fi
11289 ac_ext=c
11290 ac_cpp='$CPP $CPPFLAGS'
11291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11294
11295 CC="$lt_save_CC"
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311 ac_config_commands="$ac_config_commands libtool"
11312
11313
11314
11315
11316 # Only expand once:
11317
11318
11319
11320 # Initialize X.Org macros
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11333 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11334 if ${ac_cv_prog_cc_c99+:} false; then :
11335 $as_echo_n "(cached) " >&6
11336 else
11337 ac_cv_prog_cc_c99=no
11338 ac_save_CC=$CC
11339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11340 /* end confdefs.h. */
11341 #include <stdarg.h>
11342 #include <stdbool.h>
11343 #include <stdlib.h>
11344 #include <wchar.h>
11345 #include <stdio.h>
11346
11347 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11348 #define debug(...) fprintf (stderr, __VA_ARGS__)
11349 #define showlist(...) puts (#__VA_ARGS__)
11350 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11351 static void
11352 test_varargs_macros (void)
11353 {
11354 int x = 1234;
11355 int y = 5678;
11356 debug ("Flag");
11357 debug ("X = %d\n", x);
11358 showlist (The first, second, and third items.);
11359 report (x>y, "x is %d but y is %d", x, y);
11360 }
11361
11362 // Check long long types.
11363 #define BIG64 18446744073709551615ull
11364 #define BIG32 4294967295ul
11365 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11366 #if !BIG_OK
11367 your preprocessor is broken;
11368 #endif
11369 #if BIG_OK
11370 #else
11371 your preprocessor is broken;
11372 #endif
11373 static long long int bignum = -9223372036854775807LL;
11374 static unsigned long long int ubignum = BIG64;
11375
11376 struct incomplete_array
11377 {
11378 int datasize;
11379 double data[];
11380 };
11381
11382 struct named_init {
11383 int number;
11384 const wchar_t *name;
11385 double average;
11386 };
11387
11388 typedef const char *ccp;
11389
11390 static inline int
11391 test_restrict (ccp restrict text)
11392 {
11393 // See if C++-style comments work.
11394 // Iterate through items via the restricted pointer.
11395 // Also check for declarations in for loops.
11396 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11397 continue;
11398 return 0;
11399 }
11400
11401 // Check varargs and va_copy.
11402 static void
11403 test_varargs (const char *format, ...)
11404 {
11405 va_list args;
11406 va_start (args, format);
11407 va_list args_copy;
11408 va_copy (args_copy, args);
11409
11410 const char *str;
11411 int number;
11412 float fnumber;
11413
11414 while (*format)
11415 {
11416 switch (*format++)
11417 {
11418 case 's': // string
11419 str = va_arg (args_copy, const char *);
11420 break;
11421 case 'd': // int
11422 number = va_arg (args_copy, int);
11423 break;
11424 case 'f': // float
11425 fnumber = va_arg (args_copy, double);
11426 break;
11427 default:
11428 break;
11429 }
11430 }
11431 va_end (args_copy);
11432 va_end (args);
11433 }
11434
11435 int
11436 main ()
11437 {
11438
11439 // Check bool.
11440 _Bool success = false;
11441
11442 // Check restrict.
11443 if (test_restrict ("String literal") == 0)
11444 success = true;
11445 char *restrict newvar = "Another string";
11446
11447 // Check varargs.
11448 test_varargs ("s, d' f .", "string", 65, 34.234);
11449 test_varargs_macros ();
11450
11451 // Check flexible array members.
11452 struct incomplete_array *ia =
11453 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11454 ia->datasize = 10;
11455 for (int i = 0; i < ia->datasize; ++i)
11456 ia->data[i] = i * 1.234;
11457
11458 // Check named initializers.
11459 struct named_init ni = {
11460 .number = 34,
11461 .name = L"Test wide string",
11462 .average = 543.34343,
11463 };
11464
11465 ni.number = 58;
11466
11467 int dynamic_array[ni.number];
11468 dynamic_array[ni.number - 1] = 543;
11469
11470 // work around unused variable warnings
11471 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11472 || dynamic_array[ni.number - 1] != 543);
11473
11474 ;
11475 return 0;
11476 }
11477 _ACEOF
11478 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
11479 do
11480 CC="$ac_save_CC $ac_arg"
11481 if ac_fn_c_try_compile "$LINENO"; then :
11482 ac_cv_prog_cc_c99=$ac_arg
11483 fi
11484 rm -f core conftest.err conftest.$ac_objext
11485 test "x$ac_cv_prog_cc_c99" != "xno" && break
11486 done
11487 rm -f conftest.$ac_ext
11488 CC=$ac_save_CC
11489
11490 fi
11491 # AC_CACHE_VAL
11492 case "x$ac_cv_prog_cc_c99" in
11493 x)
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11495 $as_echo "none needed" >&6; } ;;
11496 xno)
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11498 $as_echo "unsupported" >&6; } ;;
11499 *)
11500 CC="$CC $ac_cv_prog_cc_c99"
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11502 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11503 esac
11504 if test "x$ac_cv_prog_cc_c99" != xno; then :
11505
11506 fi
11507
11508
11509
11510
11511
11512
11513 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11514 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11515 CLANGCC="yes"
11516 else
11517 CLANGCC="no"
11518 fi
11519
11520 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11521 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11522 INTELCC="yes"
11523 else
11524 INTELCC="no"
11525 fi
11526
11527 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11528 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11529 SUNCC="yes"
11530 else
11531 SUNCC="no"
11532 fi
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11543 if test -n "$ac_tool_prefix"; then
11544 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11545 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11547 $as_echo_n "checking for $ac_word... " >&6; }
11548 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11549 $as_echo_n "(cached) " >&6
11550 else
11551 case $PKG_CONFIG in
11552 [\\/]* | ?:[\\/]*)
11553 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11554 ;;
11555 *)
11556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11557 for as_dir in $PATH
11558 do
11559 IFS=$as_save_IFS
11560 test -z "$as_dir" && as_dir=.
11561 for ac_exec_ext in '' $ac_executable_extensions; do
11562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11563 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11565 break 2
11566 fi
11567 done
11568 done
11569 IFS=$as_save_IFS
11570
11571 ;;
11572 esac
11573 fi
11574 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11575 if test -n "$PKG_CONFIG"; then
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11577 $as_echo "$PKG_CONFIG" >&6; }
11578 else
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11580 $as_echo "no" >&6; }
11581 fi
11582
11583
11584 fi
11585 if test -z "$ac_cv_path_PKG_CONFIG"; then
11586 ac_pt_PKG_CONFIG=$PKG_CONFIG
11587 # Extract the first word of "pkg-config", so it can be a program name with args.
11588 set dummy pkg-config; ac_word=$2
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11590 $as_echo_n "checking for $ac_word... " >&6; }
11591 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11592 $as_echo_n "(cached) " >&6
11593 else
11594 case $ac_pt_PKG_CONFIG in
11595 [\\/]* | ?:[\\/]*)
11596 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11597 ;;
11598 *)
11599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11600 for as_dir in $PATH
11601 do
11602 IFS=$as_save_IFS
11603 test -z "$as_dir" && as_dir=.
11604 for ac_exec_ext in '' $ac_executable_extensions; do
11605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11606 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11608 break 2
11609 fi
11610 done
11611 done
11612 IFS=$as_save_IFS
11613
11614 ;;
11615 esac
11616 fi
11617 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11618 if test -n "$ac_pt_PKG_CONFIG"; then
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11620 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11621 else
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11623 $as_echo "no" >&6; }
11624 fi
11625
11626 if test "x$ac_pt_PKG_CONFIG" = x; then
11627 PKG_CONFIG=""
11628 else
11629 case $cross_compiling:$ac_tool_warned in
11630 yes:)
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11633 ac_tool_warned=yes ;;
11634 esac
11635 PKG_CONFIG=$ac_pt_PKG_CONFIG
11636 fi
11637 else
11638 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11639 fi
11640
11641 fi
11642 if test -n "$PKG_CONFIG"; then
11643 _pkg_min_version=0.9.0
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11645 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11646 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11648 $as_echo "yes" >&6; }
11649 else
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11651 $as_echo "no" >&6; }
11652 PKG_CONFIG=""
11653 fi
11654 fi
11655
11656
11657
11658
11659
11660 # Check whether --enable-selective-werror was given.
11661 if test "${enable_selective_werror+set}" = set; then :
11662 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11663 else
11664 SELECTIVE_WERROR=yes
11665 fi
11666
11667
11668
11669
11670
11671 # -v is too short to test reliably with XORG_TESTSET_CFLAG
11672 if test "x$SUNCC" = "xyes"; then
11673 BASE_CFLAGS="-v"
11674 else
11675 BASE_CFLAGS=""
11676 fi
11677
11678 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692 xorg_testset_save_CFLAGS="$CFLAGS"
11693
11694 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11695 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11697 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11698 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11699 $as_echo_n "(cached) " >&6
11700 else
11701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11702 /* end confdefs.h. */
11703 int i;
11704 _ACEOF
11705 if ac_fn_c_try_compile "$LINENO"; then :
11706 xorg_cv_cc_flag_unknown_warning_option=yes
11707 else
11708 xorg_cv_cc_flag_unknown_warning_option=no
11709 fi
11710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11711 fi
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11713 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11714 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11715 CFLAGS="$xorg_testset_save_CFLAGS"
11716 fi
11717
11718 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11720 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11721 fi
11722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11724 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11725 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11726 $as_echo_n "(cached) " >&6
11727 else
11728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11729 /* end confdefs.h. */
11730 int i;
11731 _ACEOF
11732 if ac_fn_c_try_compile "$LINENO"; then :
11733 xorg_cv_cc_flag_unused_command_line_argument=yes
11734 else
11735 xorg_cv_cc_flag_unused_command_line_argument=no
11736 fi
11737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11738 fi
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11740 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11741 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11742 CFLAGS="$xorg_testset_save_CFLAGS"
11743 fi
11744
11745 found="no"
11746
11747 if test $found = "no" ; then
11748 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11749 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11750 fi
11751
11752 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11754 fi
11755
11756 CFLAGS="$CFLAGS -Wall"
11757
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
11759 $as_echo_n "checking if $CC supports-Wall... " >&6; }
11760 cacheid=xorg_cv_cc_flag__Wall
11761 if eval \${$cacheid+:} false; then :
11762 $as_echo_n "(cached) " >&6
11763 else
11764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11765 /* end confdefs.h. */
11766 int i;
11767 int
11768 main ()
11769 {
11770
11771 ;
11772 return 0;
11773 }
11774 _ACEOF
11775 if ac_fn_c_try_link "$LINENO"; then :
11776 eval $cacheid=yes
11777 else
11778 eval $cacheid=no
11779 fi
11780 rm -f core conftest.err conftest.$ac_objext \
11781 conftest$ac_exeext conftest.$ac_ext
11782 fi
11783
11784
11785 CFLAGS="$xorg_testset_save_CFLAGS"
11786
11787 eval supported=\$$cacheid
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11789 $as_echo "$supported" >&6; }
11790 if test "$supported" = "yes" ; then
11791 BASE_CFLAGS="$BASE_CFLAGS -Wall"
11792 found="yes"
11793 fi
11794 fi
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810 xorg_testset_save_CFLAGS="$CFLAGS"
11811
11812 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11813 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11815 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11816 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11817 $as_echo_n "(cached) " >&6
11818 else
11819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11820 /* end confdefs.h. */
11821 int i;
11822 _ACEOF
11823 if ac_fn_c_try_compile "$LINENO"; then :
11824 xorg_cv_cc_flag_unknown_warning_option=yes
11825 else
11826 xorg_cv_cc_flag_unknown_warning_option=no
11827 fi
11828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11829 fi
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11831 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11832 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11833 CFLAGS="$xorg_testset_save_CFLAGS"
11834 fi
11835
11836 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11839 fi
11840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11842 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11843 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11844 $as_echo_n "(cached) " >&6
11845 else
11846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11847 /* end confdefs.h. */
11848 int i;
11849 _ACEOF
11850 if ac_fn_c_try_compile "$LINENO"; then :
11851 xorg_cv_cc_flag_unused_command_line_argument=yes
11852 else
11853 xorg_cv_cc_flag_unused_command_line_argument=no
11854 fi
11855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11856 fi
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11858 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11859 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11860 CFLAGS="$xorg_testset_save_CFLAGS"
11861 fi
11862
11863 found="no"
11864
11865 if test $found = "no" ; then
11866 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11867 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11868 fi
11869
11870 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11872 fi
11873
11874 CFLAGS="$CFLAGS -Wpointer-arith"
11875
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
11877 $as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
11878 cacheid=xorg_cv_cc_flag__Wpointer_arith
11879 if eval \${$cacheid+:} false; then :
11880 $as_echo_n "(cached) " >&6
11881 else
11882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11883 /* end confdefs.h. */
11884 int i;
11885 int
11886 main ()
11887 {
11888
11889 ;
11890 return 0;
11891 }
11892 _ACEOF
11893 if ac_fn_c_try_link "$LINENO"; then :
11894 eval $cacheid=yes
11895 else
11896 eval $cacheid=no
11897 fi
11898 rm -f core conftest.err conftest.$ac_objext \
11899 conftest$ac_exeext conftest.$ac_ext
11900 fi
11901
11902
11903 CFLAGS="$xorg_testset_save_CFLAGS"
11904
11905 eval supported=\$$cacheid
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11907 $as_echo "$supported" >&6; }
11908 if test "$supported" = "yes" ; then
11909 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
11910 found="yes"
11911 fi
11912 fi
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928 xorg_testset_save_CFLAGS="$CFLAGS"
11929
11930 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11931 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11933 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11934 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11935 $as_echo_n "(cached) " >&6
11936 else
11937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11938 /* end confdefs.h. */
11939 int i;
11940 _ACEOF
11941 if ac_fn_c_try_compile "$LINENO"; then :
11942 xorg_cv_cc_flag_unknown_warning_option=yes
11943 else
11944 xorg_cv_cc_flag_unknown_warning_option=no
11945 fi
11946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11947 fi
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11949 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11950 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11951 CFLAGS="$xorg_testset_save_CFLAGS"
11952 fi
11953
11954 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11956 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11957 fi
11958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11960 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11961 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
11970 else
11971 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
11976 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11977 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11978 CFLAGS="$xorg_testset_save_CFLAGS"
11979 fi
11980
11981 found="no"
11982
11983 if test $found = "no" ; then
11984 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11986 fi
11987
11988 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11990 fi
11991
11992 CFLAGS="$CFLAGS -Wmissing-declarations"
11993
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
11995 $as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
11996 cacheid=xorg_cv_cc_flag__Wmissing_declarations
11997 if eval \${$cacheid+:} false; then :
11998 $as_echo_n "(cached) " >&6
11999 else
12000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12001 /* end confdefs.h. */
12002 int i;
12003 int
12004 main ()
12005 {
12006
12007 ;
12008 return 0;
12009 }
12010 _ACEOF
12011 if ac_fn_c_try_link "$LINENO"; then :
12012 eval $cacheid=yes
12013 else
12014 eval $cacheid=no
12015 fi
12016 rm -f core conftest.err conftest.$ac_objext \
12017 conftest$ac_exeext conftest.$ac_ext
12018 fi
12019
12020
12021 CFLAGS="$xorg_testset_save_CFLAGS"
12022
12023 eval supported=\$$cacheid
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12025 $as_echo "$supported" >&6; }
12026 if test "$supported" = "yes" ; then
12027 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12028 found="yes"
12029 fi
12030 fi
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046 xorg_testset_save_CFLAGS="$CFLAGS"
12047
12048 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12049 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12051 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12052 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12053 $as_echo_n "(cached) " >&6
12054 else
12055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12056 /* end confdefs.h. */
12057 int i;
12058 _ACEOF
12059 if ac_fn_c_try_compile "$LINENO"; then :
12060 xorg_cv_cc_flag_unknown_warning_option=yes
12061 else
12062 xorg_cv_cc_flag_unknown_warning_option=no
12063 fi
12064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12065 fi
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12067 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12068 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12069 CFLAGS="$xorg_testset_save_CFLAGS"
12070 fi
12071
12072 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12074 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12075 fi
12076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12078 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12079 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
12088 else
12089 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
12094 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12095 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12096 CFLAGS="$xorg_testset_save_CFLAGS"
12097 fi
12098
12099 found="no"
12100
12101 if test $found = "no" ; then
12102 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12103 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12104 fi
12105
12106 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12108 fi
12109
12110 CFLAGS="$CFLAGS -Wformat=2"
12111
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
12113 $as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
12114 cacheid=xorg_cv_cc_flag__Wformat_2
12115 if eval \${$cacheid+:} false; then :
12116 $as_echo_n "(cached) " >&6
12117 else
12118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12119 /* end confdefs.h. */
12120 int i;
12121 int
12122 main ()
12123 {
12124
12125 ;
12126 return 0;
12127 }
12128 _ACEOF
12129 if ac_fn_c_try_link "$LINENO"; then :
12130 eval $cacheid=yes
12131 else
12132 eval $cacheid=no
12133 fi
12134 rm -f core conftest.err conftest.$ac_objext \
12135 conftest$ac_exeext conftest.$ac_ext
12136 fi
12137
12138
12139 CFLAGS="$xorg_testset_save_CFLAGS"
12140
12141 eval supported=\$$cacheid
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12143 $as_echo "$supported" >&6; }
12144 if test "$supported" = "yes" ; then
12145 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12146 found="yes"
12147 fi
12148 fi
12149
12150 if test $found = "no" ; then
12151 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12153 fi
12154
12155 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12157 fi
12158
12159 CFLAGS="$CFLAGS -Wformat"
12160
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
12162 $as_echo_n "checking if $CC supports-Wformat... " >&6; }
12163 cacheid=xorg_cv_cc_flag__Wformat
12164 if eval \${$cacheid+:} false; then :
12165 $as_echo_n "(cached) " >&6
12166 else
12167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12168 /* end confdefs.h. */
12169 int i;
12170 int
12171 main ()
12172 {
12173
12174 ;
12175 return 0;
12176 }
12177 _ACEOF
12178 if ac_fn_c_try_link "$LINENO"; then :
12179 eval $cacheid=yes
12180 else
12181 eval $cacheid=no
12182 fi
12183 rm -f core conftest.err conftest.$ac_objext \
12184 conftest$ac_exeext conftest.$ac_ext
12185 fi
12186
12187
12188 CFLAGS="$xorg_testset_save_CFLAGS"
12189
12190 eval supported=\$$cacheid
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12192 $as_echo "$supported" >&6; }
12193 if test "$supported" = "yes" ; then
12194 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12195 found="yes"
12196 fi
12197 fi
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215 xorg_testset_save_CFLAGS="$CFLAGS"
12216
12217 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12220 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12221 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12222 $as_echo_n "(cached) " >&6
12223 else
12224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12225 /* end confdefs.h. */
12226 int i;
12227 _ACEOF
12228 if ac_fn_c_try_compile "$LINENO"; then :
12229 xorg_cv_cc_flag_unknown_warning_option=yes
12230 else
12231 xorg_cv_cc_flag_unknown_warning_option=no
12232 fi
12233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12234 fi
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12236 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12237 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12238 CFLAGS="$xorg_testset_save_CFLAGS"
12239 fi
12240
12241 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12243 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12244 fi
12245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12247 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12248 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12249 $as_echo_n "(cached) " >&6
12250 else
12251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12252 /* end confdefs.h. */
12253 int i;
12254 _ACEOF
12255 if ac_fn_c_try_compile "$LINENO"; then :
12256 xorg_cv_cc_flag_unused_command_line_argument=yes
12257 else
12258 xorg_cv_cc_flag_unused_command_line_argument=no
12259 fi
12260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12261 fi
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12263 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12264 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12265 CFLAGS="$xorg_testset_save_CFLAGS"
12266 fi
12267
12268 found="no"
12269
12270 if test $found = "no" ; then
12271 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12272 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12273 fi
12274
12275 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12277 fi
12278
12279 CFLAGS="$CFLAGS -Wstrict-prototypes"
12280
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
12282 $as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
12283 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12284 if eval \${$cacheid+:} false; then :
12285 $as_echo_n "(cached) " >&6
12286 else
12287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12288 /* end confdefs.h. */
12289 int i;
12290 int
12291 main ()
12292 {
12293
12294 ;
12295 return 0;
12296 }
12297 _ACEOF
12298 if ac_fn_c_try_link "$LINENO"; then :
12299 eval $cacheid=yes
12300 else
12301 eval $cacheid=no
12302 fi
12303 rm -f core conftest.err conftest.$ac_objext \
12304 conftest$ac_exeext conftest.$ac_ext
12305 fi
12306
12307
12308 CFLAGS="$xorg_testset_save_CFLAGS"
12309
12310 eval supported=\$$cacheid
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12312 $as_echo "$supported" >&6; }
12313 if test "$supported" = "yes" ; then
12314 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12315 found="yes"
12316 fi
12317 fi
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333 xorg_testset_save_CFLAGS="$CFLAGS"
12334
12335 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12336 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12338 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12339 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12340 $as_echo_n "(cached) " >&6
12341 else
12342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343 /* end confdefs.h. */
12344 int i;
12345 _ACEOF
12346 if ac_fn_c_try_compile "$LINENO"; then :
12347 xorg_cv_cc_flag_unknown_warning_option=yes
12348 else
12349 xorg_cv_cc_flag_unknown_warning_option=no
12350 fi
12351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12352 fi
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12354 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12355 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12356 CFLAGS="$xorg_testset_save_CFLAGS"
12357 fi
12358
12359 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12361 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12362 fi
12363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12365 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12366 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12367 $as_echo_n "(cached) " >&6
12368 else
12369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12370 /* end confdefs.h. */
12371 int i;
12372 _ACEOF
12373 if ac_fn_c_try_compile "$LINENO"; then :
12374 xorg_cv_cc_flag_unused_command_line_argument=yes
12375 else
12376 xorg_cv_cc_flag_unused_command_line_argument=no
12377 fi
12378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12379 fi
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12381 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12382 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12383 CFLAGS="$xorg_testset_save_CFLAGS"
12384 fi
12385
12386 found="no"
12387
12388 if test $found = "no" ; then
12389 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12390 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12391 fi
12392
12393 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12395 fi
12396
12397 CFLAGS="$CFLAGS -Wmissing-prototypes"
12398
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
12400 $as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
12401 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12402 if eval \${$cacheid+:} false; then :
12403 $as_echo_n "(cached) " >&6
12404 else
12405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12406 /* end confdefs.h. */
12407 int i;
12408 int
12409 main ()
12410 {
12411
12412 ;
12413 return 0;
12414 }
12415 _ACEOF
12416 if ac_fn_c_try_link "$LINENO"; then :
12417 eval $cacheid=yes
12418 else
12419 eval $cacheid=no
12420 fi
12421 rm -f core conftest.err conftest.$ac_objext \
12422 conftest$ac_exeext conftest.$ac_ext
12423 fi
12424
12425
12426 CFLAGS="$xorg_testset_save_CFLAGS"
12427
12428 eval supported=\$$cacheid
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12430 $as_echo "$supported" >&6; }
12431 if test "$supported" = "yes" ; then
12432 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12433 found="yes"
12434 fi
12435 fi
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451 xorg_testset_save_CFLAGS="$CFLAGS"
12452
12453 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12454 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12456 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12457 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12458 $as_echo_n "(cached) " >&6
12459 else
12460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12461 /* end confdefs.h. */
12462 int i;
12463 _ACEOF
12464 if ac_fn_c_try_compile "$LINENO"; then :
12465 xorg_cv_cc_flag_unknown_warning_option=yes
12466 else
12467 xorg_cv_cc_flag_unknown_warning_option=no
12468 fi
12469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12470 fi
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12472 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12473 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12474 CFLAGS="$xorg_testset_save_CFLAGS"
12475 fi
12476
12477 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12478 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12479 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12480 fi
12481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12483 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12484 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
12493 else
12494 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
12499 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12500 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12501 CFLAGS="$xorg_testset_save_CFLAGS"
12502 fi
12503
12504 found="no"
12505
12506 if test $found = "no" ; then
12507 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12509 fi
12510
12511 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12513 fi
12514
12515 CFLAGS="$CFLAGS -Wnested-externs"
12516
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
12518 $as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
12519 cacheid=xorg_cv_cc_flag__Wnested_externs
12520 if eval \${$cacheid+:} false; then :
12521 $as_echo_n "(cached) " >&6
12522 else
12523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12524 /* end confdefs.h. */
12525 int i;
12526 int
12527 main ()
12528 {
12529
12530 ;
12531 return 0;
12532 }
12533 _ACEOF
12534 if ac_fn_c_try_link "$LINENO"; then :
12535 eval $cacheid=yes
12536 else
12537 eval $cacheid=no
12538 fi
12539 rm -f core conftest.err conftest.$ac_objext \
12540 conftest$ac_exeext conftest.$ac_ext
12541 fi
12542
12543
12544 CFLAGS="$xorg_testset_save_CFLAGS"
12545
12546 eval supported=\$$cacheid
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12548 $as_echo "$supported" >&6; }
12549 if test "$supported" = "yes" ; then
12550 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12551 found="yes"
12552 fi
12553 fi
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569 xorg_testset_save_CFLAGS="$CFLAGS"
12570
12571 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12572 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12574 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12575 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12576 $as_echo_n "(cached) " >&6
12577 else
12578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12579 /* end confdefs.h. */
12580 int i;
12581 _ACEOF
12582 if ac_fn_c_try_compile "$LINENO"; then :
12583 xorg_cv_cc_flag_unknown_warning_option=yes
12584 else
12585 xorg_cv_cc_flag_unknown_warning_option=no
12586 fi
12587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12588 fi
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12590 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12591 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12592 CFLAGS="$xorg_testset_save_CFLAGS"
12593 fi
12594
12595 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12597 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12598 fi
12599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12601 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12602 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
12611 else
12612 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
12617 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12618 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12619 CFLAGS="$xorg_testset_save_CFLAGS"
12620 fi
12621
12622 found="no"
12623
12624 if test $found = "no" ; then
12625 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12627 fi
12628
12629 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12631 fi
12632
12633 CFLAGS="$CFLAGS -Wbad-function-cast"
12634
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
12636 $as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
12637 cacheid=xorg_cv_cc_flag__Wbad_function_cast
12638 if eval \${$cacheid+:} false; then :
12639 $as_echo_n "(cached) " >&6
12640 else
12641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12642 /* end confdefs.h. */
12643 int i;
12644 int
12645 main ()
12646 {
12647
12648 ;
12649 return 0;
12650 }
12651 _ACEOF
12652 if ac_fn_c_try_link "$LINENO"; then :
12653 eval $cacheid=yes
12654 else
12655 eval $cacheid=no
12656 fi
12657 rm -f core conftest.err conftest.$ac_objext \
12658 conftest$ac_exeext conftest.$ac_ext
12659 fi
12660
12661
12662 CFLAGS="$xorg_testset_save_CFLAGS"
12663
12664 eval supported=\$$cacheid
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12666 $as_echo "$supported" >&6; }
12667 if test "$supported" = "yes" ; then
12668 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12669 found="yes"
12670 fi
12671 fi
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687 xorg_testset_save_CFLAGS="$CFLAGS"
12688
12689 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12690 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12692 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12693 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12694 $as_echo_n "(cached) " >&6
12695 else
12696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12697 /* end confdefs.h. */
12698 int i;
12699 _ACEOF
12700 if ac_fn_c_try_compile "$LINENO"; then :
12701 xorg_cv_cc_flag_unknown_warning_option=yes
12702 else
12703 xorg_cv_cc_flag_unknown_warning_option=no
12704 fi
12705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12706 fi
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12708 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12709 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12710 CFLAGS="$xorg_testset_save_CFLAGS"
12711 fi
12712
12713 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12714 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12715 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12716 fi
12717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12719 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12720 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
12729 else
12730 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
12735 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12736 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12737 CFLAGS="$xorg_testset_save_CFLAGS"
12738 fi
12739
12740 found="no"
12741
12742 if test $found = "no" ; then
12743 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12745 fi
12746
12747 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12749 fi
12750
12751 CFLAGS="$CFLAGS -Wold-style-definition"
12752
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
12754 $as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
12755 cacheid=xorg_cv_cc_flag__Wold_style_definition
12756 if eval \${$cacheid+:} false; then :
12757 $as_echo_n "(cached) " >&6
12758 else
12759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12760 /* end confdefs.h. */
12761 int i;
12762 int
12763 main ()
12764 {
12765
12766 ;
12767 return 0;
12768 }
12769 _ACEOF
12770 if ac_fn_c_try_link "$LINENO"; then :
12771 eval $cacheid=yes
12772 else
12773 eval $cacheid=no
12774 fi
12775 rm -f core conftest.err conftest.$ac_objext \
12776 conftest$ac_exeext conftest.$ac_ext
12777 fi
12778
12779
12780 CFLAGS="$xorg_testset_save_CFLAGS"
12781
12782 eval supported=\$$cacheid
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12784 $as_echo "$supported" >&6; }
12785 if test "$supported" = "yes" ; then
12786 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12787 found="yes"
12788 fi
12789 fi
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805 xorg_testset_save_CFLAGS="$CFLAGS"
12806
12807 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12808 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12810 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12811 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12812 $as_echo_n "(cached) " >&6
12813 else
12814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12815 /* end confdefs.h. */
12816 int i;
12817 _ACEOF
12818 if ac_fn_c_try_compile "$LINENO"; then :
12819 xorg_cv_cc_flag_unknown_warning_option=yes
12820 else
12821 xorg_cv_cc_flag_unknown_warning_option=no
12822 fi
12823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12824 fi
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12826 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12827 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12828 CFLAGS="$xorg_testset_save_CFLAGS"
12829 fi
12830
12831 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12833 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12834 fi
12835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12837 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12838 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
12847 else
12848 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
12853 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12854 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12855 CFLAGS="$xorg_testset_save_CFLAGS"
12856 fi
12857
12858 found="no"
12859
12860 if test $found = "no" ; then
12861 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12863 fi
12864
12865 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12867 fi
12868
12869 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12870
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
12872 $as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
12873 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
12874 if eval \${$cacheid+:} false; then :
12875 $as_echo_n "(cached) " >&6
12876 else
12877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12878 /* end confdefs.h. */
12879 int i;
12880 int
12881 main ()
12882 {
12883
12884 ;
12885 return 0;
12886 }
12887 _ACEOF
12888 if ac_fn_c_try_link "$LINENO"; then :
12889 eval $cacheid=yes
12890 else
12891 eval $cacheid=no
12892 fi
12893 rm -f core conftest.err conftest.$ac_objext \
12894 conftest$ac_exeext conftest.$ac_ext
12895 fi
12896
12897
12898 CFLAGS="$xorg_testset_save_CFLAGS"
12899
12900 eval supported=\$$cacheid
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12902 $as_echo "$supported" >&6; }
12903 if test "$supported" = "yes" ; then
12904 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
12905 found="yes"
12906 fi
12907 fi
12908
12909
12910
12911
12912
12913 # This chunk adds additional warnings that could catch undesired effects.
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927 xorg_testset_save_CFLAGS="$CFLAGS"
12928
12929 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12930 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12932 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12933 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12934 $as_echo_n "(cached) " >&6
12935 else
12936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12937 /* end confdefs.h. */
12938 int i;
12939 _ACEOF
12940 if ac_fn_c_try_compile "$LINENO"; then :
12941 xorg_cv_cc_flag_unknown_warning_option=yes
12942 else
12943 xorg_cv_cc_flag_unknown_warning_option=no
12944 fi
12945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12946 fi
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12948 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12949 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12950 CFLAGS="$xorg_testset_save_CFLAGS"
12951 fi
12952
12953 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12954 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12956 fi
12957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12959 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12960 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12961 $as_echo_n "(cached) " >&6
12962 else
12963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12964 /* end confdefs.h. */
12965 int i;
12966 _ACEOF
12967 if ac_fn_c_try_compile "$LINENO"; then :
12968 xorg_cv_cc_flag_unused_command_line_argument=yes
12969 else
12970 xorg_cv_cc_flag_unused_command_line_argument=no
12971 fi
12972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12973 fi
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12975 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12976 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12977 CFLAGS="$xorg_testset_save_CFLAGS"
12978 fi
12979
12980 found="no"
12981
12982 if test $found = "no" ; then
12983 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12985 fi
12986
12987 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12989 fi
12990
12991 CFLAGS="$CFLAGS -Wunused"
12992
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
12994 $as_echo_n "checking if $CC supports-Wunused... " >&6; }
12995 cacheid=xorg_cv_cc_flag__Wunused
12996 if eval \${$cacheid+:} false; then :
12997 $as_echo_n "(cached) " >&6
12998 else
12999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13000 /* end confdefs.h. */
13001 int i;
13002 int
13003 main ()
13004 {
13005
13006 ;
13007 return 0;
13008 }
13009 _ACEOF
13010 if ac_fn_c_try_link "$LINENO"; then :
13011 eval $cacheid=yes
13012 else
13013 eval $cacheid=no
13014 fi
13015 rm -f core conftest.err conftest.$ac_objext \
13016 conftest$ac_exeext conftest.$ac_ext
13017 fi
13018
13019
13020 CFLAGS="$xorg_testset_save_CFLAGS"
13021
13022 eval supported=\$$cacheid
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13024 $as_echo "$supported" >&6; }
13025 if test "$supported" = "yes" ; then
13026 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13027 found="yes"
13028 fi
13029 fi
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045 xorg_testset_save_CFLAGS="$CFLAGS"
13046
13047 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13048 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13050 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13051 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13052 $as_echo_n "(cached) " >&6
13053 else
13054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13055 /* end confdefs.h. */
13056 int i;
13057 _ACEOF
13058 if ac_fn_c_try_compile "$LINENO"; then :
13059 xorg_cv_cc_flag_unknown_warning_option=yes
13060 else
13061 xorg_cv_cc_flag_unknown_warning_option=no
13062 fi
13063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13064 fi
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13066 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13067 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13068 CFLAGS="$xorg_testset_save_CFLAGS"
13069 fi
13070
13071 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13074 fi
13075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13077 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13078 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13079 $as_echo_n "(cached) " >&6
13080 else
13081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13082 /* end confdefs.h. */
13083 int i;
13084 _ACEOF
13085 if ac_fn_c_try_compile "$LINENO"; then :
13086 xorg_cv_cc_flag_unused_command_line_argument=yes
13087 else
13088 xorg_cv_cc_flag_unused_command_line_argument=no
13089 fi
13090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13091 fi
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13093 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13094 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13095 CFLAGS="$xorg_testset_save_CFLAGS"
13096 fi
13097
13098 found="no"
13099
13100 if test $found = "no" ; then
13101 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13103 fi
13104
13105 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13107 fi
13108
13109 CFLAGS="$CFLAGS -Wuninitialized"
13110
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
13112 $as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
13113 cacheid=xorg_cv_cc_flag__Wuninitialized
13114 if eval \${$cacheid+:} false; then :
13115 $as_echo_n "(cached) " >&6
13116 else
13117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13118 /* end confdefs.h. */
13119 int i;
13120 int
13121 main ()
13122 {
13123
13124 ;
13125 return 0;
13126 }
13127 _ACEOF
13128 if ac_fn_c_try_link "$LINENO"; then :
13129 eval $cacheid=yes
13130 else
13131 eval $cacheid=no
13132 fi
13133 rm -f core conftest.err conftest.$ac_objext \
13134 conftest$ac_exeext conftest.$ac_ext
13135 fi
13136
13137
13138 CFLAGS="$xorg_testset_save_CFLAGS"
13139
13140 eval supported=\$$cacheid
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13142 $as_echo "$supported" >&6; }
13143 if test "$supported" = "yes" ; then
13144 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13145 found="yes"
13146 fi
13147 fi
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163 xorg_testset_save_CFLAGS="$CFLAGS"
13164
13165 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13166 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13168 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13169 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13170 $as_echo_n "(cached) " >&6
13171 else
13172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13173 /* end confdefs.h. */
13174 int i;
13175 _ACEOF
13176 if ac_fn_c_try_compile "$LINENO"; then :
13177 xorg_cv_cc_flag_unknown_warning_option=yes
13178 else
13179 xorg_cv_cc_flag_unknown_warning_option=no
13180 fi
13181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13182 fi
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13184 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13185 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13186 CFLAGS="$xorg_testset_save_CFLAGS"
13187 fi
13188
13189 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13191 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13192 fi
13193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13195 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13196 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13197 $as_echo_n "(cached) " >&6
13198 else
13199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13200 /* end confdefs.h. */
13201 int i;
13202 _ACEOF
13203 if ac_fn_c_try_compile "$LINENO"; then :
13204 xorg_cv_cc_flag_unused_command_line_argument=yes
13205 else
13206 xorg_cv_cc_flag_unused_command_line_argument=no
13207 fi
13208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13209 fi
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13211 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13212 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13213 CFLAGS="$xorg_testset_save_CFLAGS"
13214 fi
13215
13216 found="no"
13217
13218 if test $found = "no" ; then
13219 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13221 fi
13222
13223 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13225 fi
13226
13227 CFLAGS="$CFLAGS -Wshadow"
13228
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
13230 $as_echo_n "checking if $CC supports-Wshadow... " >&6; }
13231 cacheid=xorg_cv_cc_flag__Wshadow
13232 if eval \${$cacheid+:} false; then :
13233 $as_echo_n "(cached) " >&6
13234 else
13235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13236 /* end confdefs.h. */
13237 int i;
13238 int
13239 main ()
13240 {
13241
13242 ;
13243 return 0;
13244 }
13245 _ACEOF
13246 if ac_fn_c_try_link "$LINENO"; then :
13247 eval $cacheid=yes
13248 else
13249 eval $cacheid=no
13250 fi
13251 rm -f core conftest.err conftest.$ac_objext \
13252 conftest$ac_exeext conftest.$ac_ext
13253 fi
13254
13255
13256 CFLAGS="$xorg_testset_save_CFLAGS"
13257
13258 eval supported=\$$cacheid
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13260 $as_echo "$supported" >&6; }
13261 if test "$supported" = "yes" ; then
13262 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13263 found="yes"
13264 fi
13265 fi
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281 xorg_testset_save_CFLAGS="$CFLAGS"
13282
13283 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13284 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13286 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13287 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13288 $as_echo_n "(cached) " >&6
13289 else
13290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291 /* end confdefs.h. */
13292 int i;
13293 _ACEOF
13294 if ac_fn_c_try_compile "$LINENO"; then :
13295 xorg_cv_cc_flag_unknown_warning_option=yes
13296 else
13297 xorg_cv_cc_flag_unknown_warning_option=no
13298 fi
13299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13300 fi
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13302 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13303 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13304 CFLAGS="$xorg_testset_save_CFLAGS"
13305 fi
13306
13307 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13308 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13309 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13310 fi
13311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13313 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13314 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13315 $as_echo_n "(cached) " >&6
13316 else
13317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13318 /* end confdefs.h. */
13319 int i;
13320 _ACEOF
13321 if ac_fn_c_try_compile "$LINENO"; then :
13322 xorg_cv_cc_flag_unused_command_line_argument=yes
13323 else
13324 xorg_cv_cc_flag_unused_command_line_argument=no
13325 fi
13326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13327 fi
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13329 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13330 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13331 CFLAGS="$xorg_testset_save_CFLAGS"
13332 fi
13333
13334 found="no"
13335
13336 if test $found = "no" ; then
13337 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13339 fi
13340
13341 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13343 fi
13344
13345 CFLAGS="$CFLAGS -Wcast-qual"
13346
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
13348 $as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
13349 cacheid=xorg_cv_cc_flag__Wcast_qual
13350 if eval \${$cacheid+:} false; then :
13351 $as_echo_n "(cached) " >&6
13352 else
13353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13354 /* end confdefs.h. */
13355 int i;
13356 int
13357 main ()
13358 {
13359
13360 ;
13361 return 0;
13362 }
13363 _ACEOF
13364 if ac_fn_c_try_link "$LINENO"; then :
13365 eval $cacheid=yes
13366 else
13367 eval $cacheid=no
13368 fi
13369 rm -f core conftest.err conftest.$ac_objext \
13370 conftest$ac_exeext conftest.$ac_ext
13371 fi
13372
13373
13374 CFLAGS="$xorg_testset_save_CFLAGS"
13375
13376 eval supported=\$$cacheid
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13378 $as_echo "$supported" >&6; }
13379 if test "$supported" = "yes" ; then
13380 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13381 found="yes"
13382 fi
13383 fi
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399 xorg_testset_save_CFLAGS="$CFLAGS"
13400
13401 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13402 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13404 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13405 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13406 $as_echo_n "(cached) " >&6
13407 else
13408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13409 /* end confdefs.h. */
13410 int i;
13411 _ACEOF
13412 if ac_fn_c_try_compile "$LINENO"; then :
13413 xorg_cv_cc_flag_unknown_warning_option=yes
13414 else
13415 xorg_cv_cc_flag_unknown_warning_option=no
13416 fi
13417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13418 fi
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13420 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13421 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13422 CFLAGS="$xorg_testset_save_CFLAGS"
13423 fi
13424
13425 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13427 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13428 fi
13429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13431 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13432 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13433 $as_echo_n "(cached) " >&6
13434 else
13435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13436 /* end confdefs.h. */
13437 int i;
13438 _ACEOF
13439 if ac_fn_c_try_compile "$LINENO"; then :
13440 xorg_cv_cc_flag_unused_command_line_argument=yes
13441 else
13442 xorg_cv_cc_flag_unused_command_line_argument=no
13443 fi
13444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13445 fi
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13447 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13448 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13449 CFLAGS="$xorg_testset_save_CFLAGS"
13450 fi
13451
13452 found="no"
13453
13454 if test $found = "no" ; then
13455 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13456 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13457 fi
13458
13459 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13461 fi
13462
13463 CFLAGS="$CFLAGS -Wmissing-noreturn"
13464
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
13466 $as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
13467 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13468 if eval \${$cacheid+:} false; then :
13469 $as_echo_n "(cached) " >&6
13470 else
13471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13472 /* end confdefs.h. */
13473 int i;
13474 int
13475 main ()
13476 {
13477
13478 ;
13479 return 0;
13480 }
13481 _ACEOF
13482 if ac_fn_c_try_link "$LINENO"; then :
13483 eval $cacheid=yes
13484 else
13485 eval $cacheid=no
13486 fi
13487 rm -f core conftest.err conftest.$ac_objext \
13488 conftest$ac_exeext conftest.$ac_ext
13489 fi
13490
13491
13492 CFLAGS="$xorg_testset_save_CFLAGS"
13493
13494 eval supported=\$$cacheid
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13496 $as_echo "$supported" >&6; }
13497 if test "$supported" = "yes" ; then
13498 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13499 found="yes"
13500 fi
13501 fi
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517 xorg_testset_save_CFLAGS="$CFLAGS"
13518
13519 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13522 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13523 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13524 $as_echo_n "(cached) " >&6
13525 else
13526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13527 /* end confdefs.h. */
13528 int i;
13529 _ACEOF
13530 if ac_fn_c_try_compile "$LINENO"; then :
13531 xorg_cv_cc_flag_unknown_warning_option=yes
13532 else
13533 xorg_cv_cc_flag_unknown_warning_option=no
13534 fi
13535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13536 fi
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13538 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13539 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13540 CFLAGS="$xorg_testset_save_CFLAGS"
13541 fi
13542
13543 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13544 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13545 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13546 fi
13547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13549 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13550 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13551 $as_echo_n "(cached) " >&6
13552 else
13553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13554 /* end confdefs.h. */
13555 int i;
13556 _ACEOF
13557 if ac_fn_c_try_compile "$LINENO"; then :
13558 xorg_cv_cc_flag_unused_command_line_argument=yes
13559 else
13560 xorg_cv_cc_flag_unused_command_line_argument=no
13561 fi
13562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13563 fi
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13565 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13566 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13567 CFLAGS="$xorg_testset_save_CFLAGS"
13568 fi
13569
13570 found="no"
13571
13572 if test $found = "no" ; then
13573 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13574 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13575 fi
13576
13577 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13579 fi
13580
13581 CFLAGS="$CFLAGS -Wmissing-format-attribute"
13582
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
13584 $as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
13585 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
13586 if eval \${$cacheid+:} false; then :
13587 $as_echo_n "(cached) " >&6
13588 else
13589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13590 /* end confdefs.h. */
13591 int i;
13592 int
13593 main ()
13594 {
13595
13596 ;
13597 return 0;
13598 }
13599 _ACEOF
13600 if ac_fn_c_try_link "$LINENO"; then :
13601 eval $cacheid=yes
13602 else
13603 eval $cacheid=no
13604 fi
13605 rm -f core conftest.err conftest.$ac_objext \
13606 conftest$ac_exeext conftest.$ac_ext
13607 fi
13608
13609
13610 CFLAGS="$xorg_testset_save_CFLAGS"
13611
13612 eval supported=\$$cacheid
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13614 $as_echo "$supported" >&6; }
13615 if test "$supported" = "yes" ; then
13616 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13617 found="yes"
13618 fi
13619 fi
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635 xorg_testset_save_CFLAGS="$CFLAGS"
13636
13637 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13640 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13641 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13642 $as_echo_n "(cached) " >&6
13643 else
13644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13645 /* end confdefs.h. */
13646 int i;
13647 _ACEOF
13648 if ac_fn_c_try_compile "$LINENO"; then :
13649 xorg_cv_cc_flag_unknown_warning_option=yes
13650 else
13651 xorg_cv_cc_flag_unknown_warning_option=no
13652 fi
13653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13654 fi
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13656 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13657 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13658 CFLAGS="$xorg_testset_save_CFLAGS"
13659 fi
13660
13661 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13663 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13664 fi
13665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13667 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13668 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13669 $as_echo_n "(cached) " >&6
13670 else
13671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13672 /* end confdefs.h. */
13673 int i;
13674 _ACEOF
13675 if ac_fn_c_try_compile "$LINENO"; then :
13676 xorg_cv_cc_flag_unused_command_line_argument=yes
13677 else
13678 xorg_cv_cc_flag_unused_command_line_argument=no
13679 fi
13680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13681 fi
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13683 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13684 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13685 CFLAGS="$xorg_testset_save_CFLAGS"
13686 fi
13687
13688 found="no"
13689
13690 if test $found = "no" ; then
13691 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13692 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13693 fi
13694
13695 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13697 fi
13698
13699 CFLAGS="$CFLAGS -Wredundant-decls"
13700
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
13702 $as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
13703 cacheid=xorg_cv_cc_flag__Wredundant_decls
13704 if eval \${$cacheid+:} false; then :
13705 $as_echo_n "(cached) " >&6
13706 else
13707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13708 /* end confdefs.h. */
13709 int i;
13710 int
13711 main ()
13712 {
13713
13714 ;
13715 return 0;
13716 }
13717 _ACEOF
13718 if ac_fn_c_try_link "$LINENO"; then :
13719 eval $cacheid=yes
13720 else
13721 eval $cacheid=no
13722 fi
13723 rm -f core conftest.err conftest.$ac_objext \
13724 conftest$ac_exeext conftest.$ac_ext
13725 fi
13726
13727
13728 CFLAGS="$xorg_testset_save_CFLAGS"
13729
13730 eval supported=\$$cacheid
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13732 $as_echo "$supported" >&6; }
13733 if test "$supported" = "yes" ; then
13734 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13735 found="yes"
13736 fi
13737 fi
13738
13739
13740
13741 # These are currently disabled because they are noisy. They will be enabled
13742 # in the future once the codebase is sufficiently modernized to silence
13743 # them. For now, I don't want them to drown out the other warnings.
13744 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
13745 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13746 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13747
13748 # Turn some warnings into errors, so we don't accidently get successful builds
13749 # when there are problems that should be fixed.
13750
13751 if test "x$SELECTIVE_WERROR" = "xyes" ; then
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765 xorg_testset_save_CFLAGS="$CFLAGS"
13766
13767 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13770 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13771 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13772 $as_echo_n "(cached) " >&6
13773 else
13774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13775 /* end confdefs.h. */
13776 int i;
13777 _ACEOF
13778 if ac_fn_c_try_compile "$LINENO"; then :
13779 xorg_cv_cc_flag_unknown_warning_option=yes
13780 else
13781 xorg_cv_cc_flag_unknown_warning_option=no
13782 fi
13783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13784 fi
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13786 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13787 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13788 CFLAGS="$xorg_testset_save_CFLAGS"
13789 fi
13790
13791 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13792 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13793 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13794 fi
13795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13797 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13798 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13799 $as_echo_n "(cached) " >&6
13800 else
13801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13802 /* end confdefs.h. */
13803 int i;
13804 _ACEOF
13805 if ac_fn_c_try_compile "$LINENO"; then :
13806 xorg_cv_cc_flag_unused_command_line_argument=yes
13807 else
13808 xorg_cv_cc_flag_unused_command_line_argument=no
13809 fi
13810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13811 fi
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13813 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13814 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13815 CFLAGS="$xorg_testset_save_CFLAGS"
13816 fi
13817
13818 found="no"
13819
13820 if test $found = "no" ; then
13821 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13823 fi
13824
13825 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13827 fi
13828
13829 CFLAGS="$CFLAGS -Werror=implicit"
13830
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
13832 $as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
13833 cacheid=xorg_cv_cc_flag__Werror_implicit
13834 if eval \${$cacheid+:} false; then :
13835 $as_echo_n "(cached) " >&6
13836 else
13837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13838 /* end confdefs.h. */
13839 int i;
13840 int
13841 main ()
13842 {
13843
13844 ;
13845 return 0;
13846 }
13847 _ACEOF
13848 if ac_fn_c_try_link "$LINENO"; then :
13849 eval $cacheid=yes
13850 else
13851 eval $cacheid=no
13852 fi
13853 rm -f core conftest.err conftest.$ac_objext \
13854 conftest$ac_exeext conftest.$ac_ext
13855 fi
13856
13857
13858 CFLAGS="$xorg_testset_save_CFLAGS"
13859
13860 eval supported=\$$cacheid
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13862 $as_echo "$supported" >&6; }
13863 if test "$supported" = "yes" ; then
13864 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
13865 found="yes"
13866 fi
13867 fi
13868
13869 if test $found = "no" ; then
13870 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13872 fi
13873
13874 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13876 fi
13877
13878 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13879
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
13881 $as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
13882 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
13883 if eval \${$cacheid+:} false; then :
13884 $as_echo_n "(cached) " >&6
13885 else
13886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13887 /* end confdefs.h. */
13888 int i;
13889 int
13890 main ()
13891 {
13892
13893 ;
13894 return 0;
13895 }
13896 _ACEOF
13897 if ac_fn_c_try_link "$LINENO"; then :
13898 eval $cacheid=yes
13899 else
13900 eval $cacheid=no
13901 fi
13902 rm -f core conftest.err conftest.$ac_objext \
13903 conftest$ac_exeext conftest.$ac_ext
13904 fi
13905
13906
13907 CFLAGS="$xorg_testset_save_CFLAGS"
13908
13909 eval supported=\$$cacheid
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13911 $as_echo "$supported" >&6; }
13912 if test "$supported" = "yes" ; then
13913 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13914 found="yes"
13915 fi
13916 fi
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932 xorg_testset_save_CFLAGS="$CFLAGS"
13933
13934 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13935 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13937 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13938 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13939 $as_echo_n "(cached) " >&6
13940 else
13941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13942 /* end confdefs.h. */
13943 int i;
13944 _ACEOF
13945 if ac_fn_c_try_compile "$LINENO"; then :
13946 xorg_cv_cc_flag_unknown_warning_option=yes
13947 else
13948 xorg_cv_cc_flag_unknown_warning_option=no
13949 fi
13950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13951 fi
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13953 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13954 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13955 CFLAGS="$xorg_testset_save_CFLAGS"
13956 fi
13957
13958 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13961 fi
13962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13964 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13965 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13966 $as_echo_n "(cached) " >&6
13967 else
13968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13969 /* end confdefs.h. */
13970 int i;
13971 _ACEOF
13972 if ac_fn_c_try_compile "$LINENO"; then :
13973 xorg_cv_cc_flag_unused_command_line_argument=yes
13974 else
13975 xorg_cv_cc_flag_unused_command_line_argument=no
13976 fi
13977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13978 fi
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13980 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13981 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13982 CFLAGS="$xorg_testset_save_CFLAGS"
13983 fi
13984
13985 found="no"
13986
13987 if test $found = "no" ; then
13988 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13990 fi
13991
13992 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13994 fi
13995
13996 CFLAGS="$CFLAGS -Werror=nonnull"
13997
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
13999 $as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
14000 cacheid=xorg_cv_cc_flag__Werror_nonnull
14001 if eval \${$cacheid+:} false; then :
14002 $as_echo_n "(cached) " >&6
14003 else
14004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14005 /* end confdefs.h. */
14006 int i;
14007 int
14008 main ()
14009 {
14010
14011 ;
14012 return 0;
14013 }
14014 _ACEOF
14015 if ac_fn_c_try_link "$LINENO"; then :
14016 eval $cacheid=yes
14017 else
14018 eval $cacheid=no
14019 fi
14020 rm -f core conftest.err conftest.$ac_objext \
14021 conftest$ac_exeext conftest.$ac_ext
14022 fi
14023
14024
14025 CFLAGS="$xorg_testset_save_CFLAGS"
14026
14027 eval supported=\$$cacheid
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14029 $as_echo "$supported" >&6; }
14030 if test "$supported" = "yes" ; then
14031 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14032 found="yes"
14033 fi
14034 fi
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050 xorg_testset_save_CFLAGS="$CFLAGS"
14051
14052 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14053 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14055 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14056 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14057 $as_echo_n "(cached) " >&6
14058 else
14059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14060 /* end confdefs.h. */
14061 int i;
14062 _ACEOF
14063 if ac_fn_c_try_compile "$LINENO"; then :
14064 xorg_cv_cc_flag_unknown_warning_option=yes
14065 else
14066 xorg_cv_cc_flag_unknown_warning_option=no
14067 fi
14068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14069 fi
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14071 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14072 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14073 CFLAGS="$xorg_testset_save_CFLAGS"
14074 fi
14075
14076 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14078 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14079 fi
14080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14082 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14083 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
14092 else
14093 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
14098 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14099 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14100 CFLAGS="$xorg_testset_save_CFLAGS"
14101 fi
14102
14103 found="no"
14104
14105 if test $found = "no" ; then
14106 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14108 fi
14109
14110 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14112 fi
14113
14114 CFLAGS="$CFLAGS -Werror=init-self"
14115
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
14117 $as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
14118 cacheid=xorg_cv_cc_flag__Werror_init_self
14119 if eval \${$cacheid+:} false; then :
14120 $as_echo_n "(cached) " >&6
14121 else
14122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14123 /* end confdefs.h. */
14124 int i;
14125 int
14126 main ()
14127 {
14128
14129 ;
14130 return 0;
14131 }
14132 _ACEOF
14133 if ac_fn_c_try_link "$LINENO"; then :
14134 eval $cacheid=yes
14135 else
14136 eval $cacheid=no
14137 fi
14138 rm -f core conftest.err conftest.$ac_objext \
14139 conftest$ac_exeext conftest.$ac_ext
14140 fi
14141
14142
14143 CFLAGS="$xorg_testset_save_CFLAGS"
14144
14145 eval supported=\$$cacheid
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14147 $as_echo "$supported" >&6; }
14148 if test "$supported" = "yes" ; then
14149 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14150 found="yes"
14151 fi
14152 fi
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168 xorg_testset_save_CFLAGS="$CFLAGS"
14169
14170 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14171 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14173 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14174 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14175 $as_echo_n "(cached) " >&6
14176 else
14177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14178 /* end confdefs.h. */
14179 int i;
14180 _ACEOF
14181 if ac_fn_c_try_compile "$LINENO"; then :
14182 xorg_cv_cc_flag_unknown_warning_option=yes
14183 else
14184 xorg_cv_cc_flag_unknown_warning_option=no
14185 fi
14186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14187 fi
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14189 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14190 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14191 CFLAGS="$xorg_testset_save_CFLAGS"
14192 fi
14193
14194 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14196 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14197 fi
14198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14200 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14201 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14202 $as_echo_n "(cached) " >&6
14203 else
14204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14205 /* end confdefs.h. */
14206 int i;
14207 _ACEOF
14208 if ac_fn_c_try_compile "$LINENO"; then :
14209 xorg_cv_cc_flag_unused_command_line_argument=yes
14210 else
14211 xorg_cv_cc_flag_unused_command_line_argument=no
14212 fi
14213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14214 fi
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14216 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14217 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14218 CFLAGS="$xorg_testset_save_CFLAGS"
14219 fi
14220
14221 found="no"
14222
14223 if test $found = "no" ; then
14224 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14226 fi
14227
14228 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14230 fi
14231
14232 CFLAGS="$CFLAGS -Werror=main"
14233
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
14235 $as_echo_n "checking if $CC supports-Werror=main... " >&6; }
14236 cacheid=xorg_cv_cc_flag__Werror_main
14237 if eval \${$cacheid+:} false; then :
14238 $as_echo_n "(cached) " >&6
14239 else
14240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14241 /* end confdefs.h. */
14242 int i;
14243 int
14244 main ()
14245 {
14246
14247 ;
14248 return 0;
14249 }
14250 _ACEOF
14251 if ac_fn_c_try_link "$LINENO"; then :
14252 eval $cacheid=yes
14253 else
14254 eval $cacheid=no
14255 fi
14256 rm -f core conftest.err conftest.$ac_objext \
14257 conftest$ac_exeext conftest.$ac_ext
14258 fi
14259
14260
14261 CFLAGS="$xorg_testset_save_CFLAGS"
14262
14263 eval supported=\$$cacheid
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14265 $as_echo "$supported" >&6; }
14266 if test "$supported" = "yes" ; then
14267 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14268 found="yes"
14269 fi
14270 fi
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286 xorg_testset_save_CFLAGS="$CFLAGS"
14287
14288 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14291 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14292 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14293 $as_echo_n "(cached) " >&6
14294 else
14295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14296 /* end confdefs.h. */
14297 int i;
14298 _ACEOF
14299 if ac_fn_c_try_compile "$LINENO"; then :
14300 xorg_cv_cc_flag_unknown_warning_option=yes
14301 else
14302 xorg_cv_cc_flag_unknown_warning_option=no
14303 fi
14304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14305 fi
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14307 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14308 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14309 CFLAGS="$xorg_testset_save_CFLAGS"
14310 fi
14311
14312 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14315 fi
14316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14318 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14319 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14320 $as_echo_n "(cached) " >&6
14321 else
14322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14323 /* end confdefs.h. */
14324 int i;
14325 _ACEOF
14326 if ac_fn_c_try_compile "$LINENO"; then :
14327 xorg_cv_cc_flag_unused_command_line_argument=yes
14328 else
14329 xorg_cv_cc_flag_unused_command_line_argument=no
14330 fi
14331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14332 fi
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14334 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14335 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14336 CFLAGS="$xorg_testset_save_CFLAGS"
14337 fi
14338
14339 found="no"
14340
14341 if test $found = "no" ; then
14342 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14344 fi
14345
14346 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14348 fi
14349
14350 CFLAGS="$CFLAGS -Werror=missing-braces"
14351
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
14353 $as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
14354 cacheid=xorg_cv_cc_flag__Werror_missing_braces
14355 if eval \${$cacheid+:} false; then :
14356 $as_echo_n "(cached) " >&6
14357 else
14358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14359 /* end confdefs.h. */
14360 int i;
14361 int
14362 main ()
14363 {
14364
14365 ;
14366 return 0;
14367 }
14368 _ACEOF
14369 if ac_fn_c_try_link "$LINENO"; then :
14370 eval $cacheid=yes
14371 else
14372 eval $cacheid=no
14373 fi
14374 rm -f core conftest.err conftest.$ac_objext \
14375 conftest$ac_exeext conftest.$ac_ext
14376 fi
14377
14378
14379 CFLAGS="$xorg_testset_save_CFLAGS"
14380
14381 eval supported=\$$cacheid
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14383 $as_echo "$supported" >&6; }
14384 if test "$supported" = "yes" ; then
14385 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14386 found="yes"
14387 fi
14388 fi
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404 xorg_testset_save_CFLAGS="$CFLAGS"
14405
14406 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14409 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14410 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14411 $as_echo_n "(cached) " >&6
14412 else
14413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14414 /* end confdefs.h. */
14415 int i;
14416 _ACEOF
14417 if ac_fn_c_try_compile "$LINENO"; then :
14418 xorg_cv_cc_flag_unknown_warning_option=yes
14419 else
14420 xorg_cv_cc_flag_unknown_warning_option=no
14421 fi
14422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14423 fi
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14425 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14426 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14427 CFLAGS="$xorg_testset_save_CFLAGS"
14428 fi
14429
14430 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14432 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14433 fi
14434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14436 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14437 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14438 $as_echo_n "(cached) " >&6
14439 else
14440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14441 /* end confdefs.h. */
14442 int i;
14443 _ACEOF
14444 if ac_fn_c_try_compile "$LINENO"; then :
14445 xorg_cv_cc_flag_unused_command_line_argument=yes
14446 else
14447 xorg_cv_cc_flag_unused_command_line_argument=no
14448 fi
14449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14450 fi
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14452 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14453 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14454 CFLAGS="$xorg_testset_save_CFLAGS"
14455 fi
14456
14457 found="no"
14458
14459 if test $found = "no" ; then
14460 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14462 fi
14463
14464 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14466 fi
14467
14468 CFLAGS="$CFLAGS -Werror=sequence-point"
14469
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
14471 $as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
14472 cacheid=xorg_cv_cc_flag__Werror_sequence_point
14473 if eval \${$cacheid+:} false; then :
14474 $as_echo_n "(cached) " >&6
14475 else
14476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14477 /* end confdefs.h. */
14478 int i;
14479 int
14480 main ()
14481 {
14482
14483 ;
14484 return 0;
14485 }
14486 _ACEOF
14487 if ac_fn_c_try_link "$LINENO"; then :
14488 eval $cacheid=yes
14489 else
14490 eval $cacheid=no
14491 fi
14492 rm -f core conftest.err conftest.$ac_objext \
14493 conftest$ac_exeext conftest.$ac_ext
14494 fi
14495
14496
14497 CFLAGS="$xorg_testset_save_CFLAGS"
14498
14499 eval supported=\$$cacheid
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14501 $as_echo "$supported" >&6; }
14502 if test "$supported" = "yes" ; then
14503 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14504 found="yes"
14505 fi
14506 fi
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522 xorg_testset_save_CFLAGS="$CFLAGS"
14523
14524 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14525 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14527 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14528 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14529 $as_echo_n "(cached) " >&6
14530 else
14531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14532 /* end confdefs.h. */
14533 int i;
14534 _ACEOF
14535 if ac_fn_c_try_compile "$LINENO"; then :
14536 xorg_cv_cc_flag_unknown_warning_option=yes
14537 else
14538 xorg_cv_cc_flag_unknown_warning_option=no
14539 fi
14540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14541 fi
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14543 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14544 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14545 CFLAGS="$xorg_testset_save_CFLAGS"
14546 fi
14547
14548 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14550 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14551 fi
14552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14554 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14555 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14556 $as_echo_n "(cached) " >&6
14557 else
14558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14559 /* end confdefs.h. */
14560 int i;
14561 _ACEOF
14562 if ac_fn_c_try_compile "$LINENO"; then :
14563 xorg_cv_cc_flag_unused_command_line_argument=yes
14564 else
14565 xorg_cv_cc_flag_unused_command_line_argument=no
14566 fi
14567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14568 fi
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14570 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14571 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14572 CFLAGS="$xorg_testset_save_CFLAGS"
14573 fi
14574
14575 found="no"
14576
14577 if test $found = "no" ; then
14578 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14580 fi
14581
14582 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14584 fi
14585
14586 CFLAGS="$CFLAGS -Werror=return-type"
14587
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
14589 $as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
14590 cacheid=xorg_cv_cc_flag__Werror_return_type
14591 if eval \${$cacheid+:} false; then :
14592 $as_echo_n "(cached) " >&6
14593 else
14594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14595 /* end confdefs.h. */
14596 int i;
14597 int
14598 main ()
14599 {
14600
14601 ;
14602 return 0;
14603 }
14604 _ACEOF
14605 if ac_fn_c_try_link "$LINENO"; then :
14606 eval $cacheid=yes
14607 else
14608 eval $cacheid=no
14609 fi
14610 rm -f core conftest.err conftest.$ac_objext \
14611 conftest$ac_exeext conftest.$ac_ext
14612 fi
14613
14614
14615 CFLAGS="$xorg_testset_save_CFLAGS"
14616
14617 eval supported=\$$cacheid
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14619 $as_echo "$supported" >&6; }
14620 if test "$supported" = "yes" ; then
14621 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14622 found="yes"
14623 fi
14624 fi
14625
14626 if test $found = "no" ; then
14627 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14629 fi
14630
14631 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14633 fi
14634
14635 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14636
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14638 $as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14639 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
14640 if eval \${$cacheid+:} false; then :
14641 $as_echo_n "(cached) " >&6
14642 else
14643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14644 /* end confdefs.h. */
14645 int i;
14646 int
14647 main ()
14648 {
14649
14650 ;
14651 return 0;
14652 }
14653 _ACEOF
14654 if ac_fn_c_try_link "$LINENO"; then :
14655 eval $cacheid=yes
14656 else
14657 eval $cacheid=no
14658 fi
14659 rm -f core conftest.err conftest.$ac_objext \
14660 conftest$ac_exeext conftest.$ac_ext
14661 fi
14662
14663
14664 CFLAGS="$xorg_testset_save_CFLAGS"
14665
14666 eval supported=\$$cacheid
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14668 $as_echo "$supported" >&6; }
14669 if test "$supported" = "yes" ; then
14670 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14671 found="yes"
14672 fi
14673 fi
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689 xorg_testset_save_CFLAGS="$CFLAGS"
14690
14691 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14692 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14694 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14695 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14696 $as_echo_n "(cached) " >&6
14697 else
14698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14699 /* end confdefs.h. */
14700 int i;
14701 _ACEOF
14702 if ac_fn_c_try_compile "$LINENO"; then :
14703 xorg_cv_cc_flag_unknown_warning_option=yes
14704 else
14705 xorg_cv_cc_flag_unknown_warning_option=no
14706 fi
14707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14708 fi
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14710 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14711 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14712 CFLAGS="$xorg_testset_save_CFLAGS"
14713 fi
14714
14715 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14717 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14718 fi
14719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14721 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14722 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
14731 else
14732 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
14737 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14738 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14739 CFLAGS="$xorg_testset_save_CFLAGS"
14740 fi
14741
14742 found="no"
14743
14744 if test $found = "no" ; then
14745 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14746 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14747 fi
14748
14749 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14751 fi
14752
14753 CFLAGS="$CFLAGS -Werror=trigraphs"
14754
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
14756 $as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
14757 cacheid=xorg_cv_cc_flag__Werror_trigraphs
14758 if eval \${$cacheid+:} false; then :
14759 $as_echo_n "(cached) " >&6
14760 else
14761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14762 /* end confdefs.h. */
14763 int i;
14764 int
14765 main ()
14766 {
14767
14768 ;
14769 return 0;
14770 }
14771 _ACEOF
14772 if ac_fn_c_try_link "$LINENO"; then :
14773 eval $cacheid=yes
14774 else
14775 eval $cacheid=no
14776 fi
14777 rm -f core conftest.err conftest.$ac_objext \
14778 conftest$ac_exeext conftest.$ac_ext
14779 fi
14780
14781
14782 CFLAGS="$xorg_testset_save_CFLAGS"
14783
14784 eval supported=\$$cacheid
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14786 $as_echo "$supported" >&6; }
14787 if test "$supported" = "yes" ; then
14788 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14789 found="yes"
14790 fi
14791 fi
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807 xorg_testset_save_CFLAGS="$CFLAGS"
14808
14809 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14810 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14812 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14813 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14814 $as_echo_n "(cached) " >&6
14815 else
14816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14817 /* end confdefs.h. */
14818 int i;
14819 _ACEOF
14820 if ac_fn_c_try_compile "$LINENO"; then :
14821 xorg_cv_cc_flag_unknown_warning_option=yes
14822 else
14823 xorg_cv_cc_flag_unknown_warning_option=no
14824 fi
14825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14826 fi
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14828 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14829 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14830 CFLAGS="$xorg_testset_save_CFLAGS"
14831 fi
14832
14833 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14835 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14836 fi
14837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14839 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14840 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
14849 else
14850 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
14855 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14856 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14857 CFLAGS="$xorg_testset_save_CFLAGS"
14858 fi
14859
14860 found="no"
14861
14862 if test $found = "no" ; then
14863 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14864 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14865 fi
14866
14867 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14869 fi
14870
14871 CFLAGS="$CFLAGS -Werror=array-bounds"
14872
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
14874 $as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
14875 cacheid=xorg_cv_cc_flag__Werror_array_bounds
14876 if eval \${$cacheid+:} false; then :
14877 $as_echo_n "(cached) " >&6
14878 else
14879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14880 /* end confdefs.h. */
14881 int i;
14882 int
14883 main ()
14884 {
14885
14886 ;
14887 return 0;
14888 }
14889 _ACEOF
14890 if ac_fn_c_try_link "$LINENO"; then :
14891 eval $cacheid=yes
14892 else
14893 eval $cacheid=no
14894 fi
14895 rm -f core conftest.err conftest.$ac_objext \
14896 conftest$ac_exeext conftest.$ac_ext
14897 fi
14898
14899
14900 CFLAGS="$xorg_testset_save_CFLAGS"
14901
14902 eval supported=\$$cacheid
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14904 $as_echo "$supported" >&6; }
14905 if test "$supported" = "yes" ; then
14906 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
14907 found="yes"
14908 fi
14909 fi
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925 xorg_testset_save_CFLAGS="$CFLAGS"
14926
14927 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14928 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14930 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14931 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14932 $as_echo_n "(cached) " >&6
14933 else
14934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14935 /* end confdefs.h. */
14936 int i;
14937 _ACEOF
14938 if ac_fn_c_try_compile "$LINENO"; then :
14939 xorg_cv_cc_flag_unknown_warning_option=yes
14940 else
14941 xorg_cv_cc_flag_unknown_warning_option=no
14942 fi
14943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14944 fi
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14946 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14947 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14948 CFLAGS="$xorg_testset_save_CFLAGS"
14949 fi
14950
14951 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14953 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14954 fi
14955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14957 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14958 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14959 $as_echo_n "(cached) " >&6
14960 else
14961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14962 /* end confdefs.h. */
14963 int i;
14964 _ACEOF
14965 if ac_fn_c_try_compile "$LINENO"; then :
14966 xorg_cv_cc_flag_unused_command_line_argument=yes
14967 else
14968 xorg_cv_cc_flag_unused_command_line_argument=no
14969 fi
14970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14971 fi
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14973 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14974 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14975 CFLAGS="$xorg_testset_save_CFLAGS"
14976 fi
14977
14978 found="no"
14979
14980 if test $found = "no" ; then
14981 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14983 fi
14984
14985 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14987 fi
14988
14989 CFLAGS="$CFLAGS -Werror=write-strings"
14990
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
14992 $as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
14993 cacheid=xorg_cv_cc_flag__Werror_write_strings
14994 if eval \${$cacheid+:} false; then :
14995 $as_echo_n "(cached) " >&6
14996 else
14997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998 /* end confdefs.h. */
14999 int i;
15000 int
15001 main ()
15002 {
15003
15004 ;
15005 return 0;
15006 }
15007 _ACEOF
15008 if ac_fn_c_try_link "$LINENO"; then :
15009 eval $cacheid=yes
15010 else
15011 eval $cacheid=no
15012 fi
15013 rm -f core conftest.err conftest.$ac_objext \
15014 conftest$ac_exeext conftest.$ac_ext
15015 fi
15016
15017
15018 CFLAGS="$xorg_testset_save_CFLAGS"
15019
15020 eval supported=\$$cacheid
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15022 $as_echo "$supported" >&6; }
15023 if test "$supported" = "yes" ; then
15024 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15025 found="yes"
15026 fi
15027 fi
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043 xorg_testset_save_CFLAGS="$CFLAGS"
15044
15045 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15046 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15048 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15049 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15050 $as_echo_n "(cached) " >&6
15051 else
15052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15053 /* end confdefs.h. */
15054 int i;
15055 _ACEOF
15056 if ac_fn_c_try_compile "$LINENO"; then :
15057 xorg_cv_cc_flag_unknown_warning_option=yes
15058 else
15059 xorg_cv_cc_flag_unknown_warning_option=no
15060 fi
15061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15062 fi
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15064 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15065 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15066 CFLAGS="$xorg_testset_save_CFLAGS"
15067 fi
15068
15069 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15072 fi
15073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15075 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15076 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15077 $as_echo_n "(cached) " >&6
15078 else
15079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15080 /* end confdefs.h. */
15081 int i;
15082 _ACEOF
15083 if ac_fn_c_try_compile "$LINENO"; then :
15084 xorg_cv_cc_flag_unused_command_line_argument=yes
15085 else
15086 xorg_cv_cc_flag_unused_command_line_argument=no
15087 fi
15088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15089 fi
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15091 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15092 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15093 CFLAGS="$xorg_testset_save_CFLAGS"
15094 fi
15095
15096 found="no"
15097
15098 if test $found = "no" ; then
15099 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15100 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15101 fi
15102
15103 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15105 fi
15106
15107 CFLAGS="$CFLAGS -Werror=address"
15108
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
15110 $as_echo_n "checking if $CC supports-Werror=address... " >&6; }
15111 cacheid=xorg_cv_cc_flag__Werror_address
15112 if eval \${$cacheid+:} false; then :
15113 $as_echo_n "(cached) " >&6
15114 else
15115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15116 /* end confdefs.h. */
15117 int i;
15118 int
15119 main ()
15120 {
15121
15122 ;
15123 return 0;
15124 }
15125 _ACEOF
15126 if ac_fn_c_try_link "$LINENO"; then :
15127 eval $cacheid=yes
15128 else
15129 eval $cacheid=no
15130 fi
15131 rm -f core conftest.err conftest.$ac_objext \
15132 conftest$ac_exeext conftest.$ac_ext
15133 fi
15134
15135
15136 CFLAGS="$xorg_testset_save_CFLAGS"
15137
15138 eval supported=\$$cacheid
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15140 $as_echo "$supported" >&6; }
15141 if test "$supported" = "yes" ; then
15142 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15143 found="yes"
15144 fi
15145 fi
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161 xorg_testset_save_CFLAGS="$CFLAGS"
15162
15163 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15164 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15166 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15167 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15168 $as_echo_n "(cached) " >&6
15169 else
15170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15171 /* end confdefs.h. */
15172 int i;
15173 _ACEOF
15174 if ac_fn_c_try_compile "$LINENO"; then :
15175 xorg_cv_cc_flag_unknown_warning_option=yes
15176 else
15177 xorg_cv_cc_flag_unknown_warning_option=no
15178 fi
15179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15180 fi
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15182 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15183 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15184 CFLAGS="$xorg_testset_save_CFLAGS"
15185 fi
15186
15187 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15189 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15190 fi
15191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15193 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15194 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15195 $as_echo_n "(cached) " >&6
15196 else
15197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15198 /* end confdefs.h. */
15199 int i;
15200 _ACEOF
15201 if ac_fn_c_try_compile "$LINENO"; then :
15202 xorg_cv_cc_flag_unused_command_line_argument=yes
15203 else
15204 xorg_cv_cc_flag_unused_command_line_argument=no
15205 fi
15206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15207 fi
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15209 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15210 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15211 CFLAGS="$xorg_testset_save_CFLAGS"
15212 fi
15213
15214 found="no"
15215
15216 if test $found = "no" ; then
15217 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15219 fi
15220
15221 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15223 fi
15224
15225 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15226
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
15228 $as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
15229 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
15230 if eval \${$cacheid+:} false; then :
15231 $as_echo_n "(cached) " >&6
15232 else
15233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15234 /* end confdefs.h. */
15235 int i;
15236 int
15237 main ()
15238 {
15239
15240 ;
15241 return 0;
15242 }
15243 _ACEOF
15244 if ac_fn_c_try_link "$LINENO"; then :
15245 eval $cacheid=yes
15246 else
15247 eval $cacheid=no
15248 fi
15249 rm -f core conftest.err conftest.$ac_objext \
15250 conftest$ac_exeext conftest.$ac_ext
15251 fi
15252
15253
15254 CFLAGS="$xorg_testset_save_CFLAGS"
15255
15256 eval supported=\$$cacheid
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15258 $as_echo "$supported" >&6; }
15259 if test "$supported" = "yes" ; then
15260 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15261 found="yes"
15262 fi
15263 fi
15264
15265 if test $found = "no" ; then
15266 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15267 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15268 fi
15269
15270 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15272 fi
15273
15274 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15275
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15277 $as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15278 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
15279 if eval \${$cacheid+:} false; then :
15280 $as_echo_n "(cached) " >&6
15281 else
15282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15283 /* end confdefs.h. */
15284 int i;
15285 int
15286 main ()
15287 {
15288
15289 ;
15290 return 0;
15291 }
15292 _ACEOF
15293 if ac_fn_c_try_link "$LINENO"; then :
15294 eval $cacheid=yes
15295 else
15296 eval $cacheid=no
15297 fi
15298 rm -f core conftest.err conftest.$ac_objext \
15299 conftest$ac_exeext conftest.$ac_ext
15300 fi
15301
15302
15303 CFLAGS="$xorg_testset_save_CFLAGS"
15304
15305 eval supported=\$$cacheid
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15307 $as_echo "$supported" >&6; }
15308 if test "$supported" = "yes" ; then
15309 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15310 found="yes"
15311 fi
15312 fi
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328 xorg_testset_save_CFLAGS="$CFLAGS"
15329
15330 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15331 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15333 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15334 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15335 $as_echo_n "(cached) " >&6
15336 else
15337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15338 /* end confdefs.h. */
15339 int i;
15340 _ACEOF
15341 if ac_fn_c_try_compile "$LINENO"; then :
15342 xorg_cv_cc_flag_unknown_warning_option=yes
15343 else
15344 xorg_cv_cc_flag_unknown_warning_option=no
15345 fi
15346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15347 fi
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15349 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15350 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15351 CFLAGS="$xorg_testset_save_CFLAGS"
15352 fi
15353
15354 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15356 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15357 fi
15358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15360 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15361 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
15370 else
15371 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
15376 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15377 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15378 CFLAGS="$xorg_testset_save_CFLAGS"
15379 fi
15380
15381 found="no"
15382
15383 if test $found = "no" ; then
15384 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15386 fi
15387
15388 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15390 fi
15391
15392 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15393
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
15395 $as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
15396 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
15397 if eval \${$cacheid+:} false; then :
15398 $as_echo_n "(cached) " >&6
15399 else
15400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15401 /* end confdefs.h. */
15402 int i;
15403 int
15404 main ()
15405 {
15406
15407 ;
15408 return 0;
15409 }
15410 _ACEOF
15411 if ac_fn_c_try_link "$LINENO"; then :
15412 eval $cacheid=yes
15413 else
15414 eval $cacheid=no
15415 fi
15416 rm -f core conftest.err conftest.$ac_objext \
15417 conftest$ac_exeext conftest.$ac_ext
15418 fi
15419
15420
15421 CFLAGS="$xorg_testset_save_CFLAGS"
15422
15423 eval supported=\$$cacheid
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15425 $as_echo "$supported" >&6; }
15426 if test "$supported" = "yes" ; then
15427 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15428 found="yes"
15429 fi
15430 fi
15431
15432 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15433 else
15434 { $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
15435 $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;}
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449 xorg_testset_save_CFLAGS="$CFLAGS"
15450
15451 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15452 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15454 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15455 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15456 $as_echo_n "(cached) " >&6
15457 else
15458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15459 /* end confdefs.h. */
15460 int i;
15461 _ACEOF
15462 if ac_fn_c_try_compile "$LINENO"; then :
15463 xorg_cv_cc_flag_unknown_warning_option=yes
15464 else
15465 xorg_cv_cc_flag_unknown_warning_option=no
15466 fi
15467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15468 fi
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15470 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15471 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15472 CFLAGS="$xorg_testset_save_CFLAGS"
15473 fi
15474
15475 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15476 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15477 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15478 fi
15479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15481 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15482 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15483 $as_echo_n "(cached) " >&6
15484 else
15485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15486 /* end confdefs.h. */
15487 int i;
15488 _ACEOF
15489 if ac_fn_c_try_compile "$LINENO"; then :
15490 xorg_cv_cc_flag_unused_command_line_argument=yes
15491 else
15492 xorg_cv_cc_flag_unused_command_line_argument=no
15493 fi
15494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15495 fi
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15497 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15498 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15499 CFLAGS="$xorg_testset_save_CFLAGS"
15500 fi
15501
15502 found="no"
15503
15504 if test $found = "no" ; then
15505 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15506 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15507 fi
15508
15509 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15511 fi
15512
15513 CFLAGS="$CFLAGS -Wimplicit"
15514
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
15516 $as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
15517 cacheid=xorg_cv_cc_flag__Wimplicit
15518 if eval \${$cacheid+:} false; then :
15519 $as_echo_n "(cached) " >&6
15520 else
15521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15522 /* end confdefs.h. */
15523 int i;
15524 int
15525 main ()
15526 {
15527
15528 ;
15529 return 0;
15530 }
15531 _ACEOF
15532 if ac_fn_c_try_link "$LINENO"; then :
15533 eval $cacheid=yes
15534 else
15535 eval $cacheid=no
15536 fi
15537 rm -f core conftest.err conftest.$ac_objext \
15538 conftest$ac_exeext conftest.$ac_ext
15539 fi
15540
15541
15542 CFLAGS="$xorg_testset_save_CFLAGS"
15543
15544 eval supported=\$$cacheid
15545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15546 $as_echo "$supported" >&6; }
15547 if test "$supported" = "yes" ; then
15548 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15549 found="yes"
15550 fi
15551 fi
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567 xorg_testset_save_CFLAGS="$CFLAGS"
15568
15569 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15570 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15572 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15573 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15574 $as_echo_n "(cached) " >&6
15575 else
15576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15577 /* end confdefs.h. */
15578 int i;
15579 _ACEOF
15580 if ac_fn_c_try_compile "$LINENO"; then :
15581 xorg_cv_cc_flag_unknown_warning_option=yes
15582 else
15583 xorg_cv_cc_flag_unknown_warning_option=no
15584 fi
15585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15586 fi
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15588 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15589 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15590 CFLAGS="$xorg_testset_save_CFLAGS"
15591 fi
15592
15593 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15595 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15596 fi
15597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15599 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15600 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15601 $as_echo_n "(cached) " >&6
15602 else
15603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15604 /* end confdefs.h. */
15605 int i;
15606 _ACEOF
15607 if ac_fn_c_try_compile "$LINENO"; then :
15608 xorg_cv_cc_flag_unused_command_line_argument=yes
15609 else
15610 xorg_cv_cc_flag_unused_command_line_argument=no
15611 fi
15612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15613 fi
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15615 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15616 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15617 CFLAGS="$xorg_testset_save_CFLAGS"
15618 fi
15619
15620 found="no"
15621
15622 if test $found = "no" ; then
15623 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15624 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15625 fi
15626
15627 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15629 fi
15630
15631 CFLAGS="$CFLAGS -Wnonnull"
15632
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
15634 $as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
15635 cacheid=xorg_cv_cc_flag__Wnonnull
15636 if eval \${$cacheid+:} false; then :
15637 $as_echo_n "(cached) " >&6
15638 else
15639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15640 /* end confdefs.h. */
15641 int i;
15642 int
15643 main ()
15644 {
15645
15646 ;
15647 return 0;
15648 }
15649 _ACEOF
15650 if ac_fn_c_try_link "$LINENO"; then :
15651 eval $cacheid=yes
15652 else
15653 eval $cacheid=no
15654 fi
15655 rm -f core conftest.err conftest.$ac_objext \
15656 conftest$ac_exeext conftest.$ac_ext
15657 fi
15658
15659
15660 CFLAGS="$xorg_testset_save_CFLAGS"
15661
15662 eval supported=\$$cacheid
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15664 $as_echo "$supported" >&6; }
15665 if test "$supported" = "yes" ; then
15666 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15667 found="yes"
15668 fi
15669 fi
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685 xorg_testset_save_CFLAGS="$CFLAGS"
15686
15687 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15688 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15690 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15691 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15692 $as_echo_n "(cached) " >&6
15693 else
15694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15695 /* end confdefs.h. */
15696 int i;
15697 _ACEOF
15698 if ac_fn_c_try_compile "$LINENO"; then :
15699 xorg_cv_cc_flag_unknown_warning_option=yes
15700 else
15701 xorg_cv_cc_flag_unknown_warning_option=no
15702 fi
15703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15704 fi
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15706 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15707 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15708 CFLAGS="$xorg_testset_save_CFLAGS"
15709 fi
15710
15711 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15713 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15714 fi
15715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15717 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15718 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15719 $as_echo_n "(cached) " >&6
15720 else
15721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15722 /* end confdefs.h. */
15723 int i;
15724 _ACEOF
15725 if ac_fn_c_try_compile "$LINENO"; then :
15726 xorg_cv_cc_flag_unused_command_line_argument=yes
15727 else
15728 xorg_cv_cc_flag_unused_command_line_argument=no
15729 fi
15730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15731 fi
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15733 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15734 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15735 CFLAGS="$xorg_testset_save_CFLAGS"
15736 fi
15737
15738 found="no"
15739
15740 if test $found = "no" ; then
15741 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15742 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15743 fi
15744
15745 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15747 fi
15748
15749 CFLAGS="$CFLAGS -Winit-self"
15750
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
15752 $as_echo_n "checking if $CC supports-Winit-self... " >&6; }
15753 cacheid=xorg_cv_cc_flag__Winit_self
15754 if eval \${$cacheid+:} false; then :
15755 $as_echo_n "(cached) " >&6
15756 else
15757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15758 /* end confdefs.h. */
15759 int i;
15760 int
15761 main ()
15762 {
15763
15764 ;
15765 return 0;
15766 }
15767 _ACEOF
15768 if ac_fn_c_try_link "$LINENO"; then :
15769 eval $cacheid=yes
15770 else
15771 eval $cacheid=no
15772 fi
15773 rm -f core conftest.err conftest.$ac_objext \
15774 conftest$ac_exeext conftest.$ac_ext
15775 fi
15776
15777
15778 CFLAGS="$xorg_testset_save_CFLAGS"
15779
15780 eval supported=\$$cacheid
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15782 $as_echo "$supported" >&6; }
15783 if test "$supported" = "yes" ; then
15784 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15785 found="yes"
15786 fi
15787 fi
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803 xorg_testset_save_CFLAGS="$CFLAGS"
15804
15805 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15806 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15808 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15809 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15810 $as_echo_n "(cached) " >&6
15811 else
15812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15813 /* end confdefs.h. */
15814 int i;
15815 _ACEOF
15816 if ac_fn_c_try_compile "$LINENO"; then :
15817 xorg_cv_cc_flag_unknown_warning_option=yes
15818 else
15819 xorg_cv_cc_flag_unknown_warning_option=no
15820 fi
15821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15822 fi
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15824 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15825 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15826 CFLAGS="$xorg_testset_save_CFLAGS"
15827 fi
15828
15829 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15831 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15832 fi
15833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15835 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15836 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15837 $as_echo_n "(cached) " >&6
15838 else
15839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15840 /* end confdefs.h. */
15841 int i;
15842 _ACEOF
15843 if ac_fn_c_try_compile "$LINENO"; then :
15844 xorg_cv_cc_flag_unused_command_line_argument=yes
15845 else
15846 xorg_cv_cc_flag_unused_command_line_argument=no
15847 fi
15848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15849 fi
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15851 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15852 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15853 CFLAGS="$xorg_testset_save_CFLAGS"
15854 fi
15855
15856 found="no"
15857
15858 if test $found = "no" ; then
15859 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15860 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15861 fi
15862
15863 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15865 fi
15866
15867 CFLAGS="$CFLAGS -Wmain"
15868
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
15870 $as_echo_n "checking if $CC supports-Wmain... " >&6; }
15871 cacheid=xorg_cv_cc_flag__Wmain
15872 if eval \${$cacheid+:} false; then :
15873 $as_echo_n "(cached) " >&6
15874 else
15875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15876 /* end confdefs.h. */
15877 int i;
15878 int
15879 main ()
15880 {
15881
15882 ;
15883 return 0;
15884 }
15885 _ACEOF
15886 if ac_fn_c_try_link "$LINENO"; then :
15887 eval $cacheid=yes
15888 else
15889 eval $cacheid=no
15890 fi
15891 rm -f core conftest.err conftest.$ac_objext \
15892 conftest$ac_exeext conftest.$ac_ext
15893 fi
15894
15895
15896 CFLAGS="$xorg_testset_save_CFLAGS"
15897
15898 eval supported=\$$cacheid
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15900 $as_echo "$supported" >&6; }
15901 if test "$supported" = "yes" ; then
15902 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
15903 found="yes"
15904 fi
15905 fi
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921 xorg_testset_save_CFLAGS="$CFLAGS"
15922
15923 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15924 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15926 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15927 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15928 $as_echo_n "(cached) " >&6
15929 else
15930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15931 /* end confdefs.h. */
15932 int i;
15933 _ACEOF
15934 if ac_fn_c_try_compile "$LINENO"; then :
15935 xorg_cv_cc_flag_unknown_warning_option=yes
15936 else
15937 xorg_cv_cc_flag_unknown_warning_option=no
15938 fi
15939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15940 fi
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15942 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15943 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15944 CFLAGS="$xorg_testset_save_CFLAGS"
15945 fi
15946
15947 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15949 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15950 fi
15951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15953 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15954 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15955 $as_echo_n "(cached) " >&6
15956 else
15957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15958 /* end confdefs.h. */
15959 int i;
15960 _ACEOF
15961 if ac_fn_c_try_compile "$LINENO"; then :
15962 xorg_cv_cc_flag_unused_command_line_argument=yes
15963 else
15964 xorg_cv_cc_flag_unused_command_line_argument=no
15965 fi
15966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15967 fi
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15969 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15970 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15971 CFLAGS="$xorg_testset_save_CFLAGS"
15972 fi
15973
15974 found="no"
15975
15976 if test $found = "no" ; then
15977 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15979 fi
15980
15981 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15983 fi
15984
15985 CFLAGS="$CFLAGS -Wmissing-braces"
15986
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
15988 $as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
15989 cacheid=xorg_cv_cc_flag__Wmissing_braces
15990 if eval \${$cacheid+:} false; then :
15991 $as_echo_n "(cached) " >&6
15992 else
15993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15994 /* end confdefs.h. */
15995 int i;
15996 int
15997 main ()
15998 {
15999
16000 ;
16001 return 0;
16002 }
16003 _ACEOF
16004 if ac_fn_c_try_link "$LINENO"; then :
16005 eval $cacheid=yes
16006 else
16007 eval $cacheid=no
16008 fi
16009 rm -f core conftest.err conftest.$ac_objext \
16010 conftest$ac_exeext conftest.$ac_ext
16011 fi
16012
16013
16014 CFLAGS="$xorg_testset_save_CFLAGS"
16015
16016 eval supported=\$$cacheid
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16018 $as_echo "$supported" >&6; }
16019 if test "$supported" = "yes" ; then
16020 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16021 found="yes"
16022 fi
16023 fi
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039 xorg_testset_save_CFLAGS="$CFLAGS"
16040
16041 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16044 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16045 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16046 $as_echo_n "(cached) " >&6
16047 else
16048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16049 /* end confdefs.h. */
16050 int i;
16051 _ACEOF
16052 if ac_fn_c_try_compile "$LINENO"; then :
16053 xorg_cv_cc_flag_unknown_warning_option=yes
16054 else
16055 xorg_cv_cc_flag_unknown_warning_option=no
16056 fi
16057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16058 fi
16059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16060 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16061 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16062 CFLAGS="$xorg_testset_save_CFLAGS"
16063 fi
16064
16065 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16067 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16068 fi
16069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16071 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16072 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16073 $as_echo_n "(cached) " >&6
16074 else
16075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16076 /* end confdefs.h. */
16077 int i;
16078 _ACEOF
16079 if ac_fn_c_try_compile "$LINENO"; then :
16080 xorg_cv_cc_flag_unused_command_line_argument=yes
16081 else
16082 xorg_cv_cc_flag_unused_command_line_argument=no
16083 fi
16084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16085 fi
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16087 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16088 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16089 CFLAGS="$xorg_testset_save_CFLAGS"
16090 fi
16091
16092 found="no"
16093
16094 if test $found = "no" ; then
16095 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16096 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16097 fi
16098
16099 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16101 fi
16102
16103 CFLAGS="$CFLAGS -Wsequence-point"
16104
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
16106 $as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
16107 cacheid=xorg_cv_cc_flag__Wsequence_point
16108 if eval \${$cacheid+:} false; then :
16109 $as_echo_n "(cached) " >&6
16110 else
16111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16112 /* end confdefs.h. */
16113 int i;
16114 int
16115 main ()
16116 {
16117
16118 ;
16119 return 0;
16120 }
16121 _ACEOF
16122 if ac_fn_c_try_link "$LINENO"; then :
16123 eval $cacheid=yes
16124 else
16125 eval $cacheid=no
16126 fi
16127 rm -f core conftest.err conftest.$ac_objext \
16128 conftest$ac_exeext conftest.$ac_ext
16129 fi
16130
16131
16132 CFLAGS="$xorg_testset_save_CFLAGS"
16133
16134 eval supported=\$$cacheid
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16136 $as_echo "$supported" >&6; }
16137 if test "$supported" = "yes" ; then
16138 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16139 found="yes"
16140 fi
16141 fi
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157 xorg_testset_save_CFLAGS="$CFLAGS"
16158
16159 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16160 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16162 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16163 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16164 $as_echo_n "(cached) " >&6
16165 else
16166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16167 /* end confdefs.h. */
16168 int i;
16169 _ACEOF
16170 if ac_fn_c_try_compile "$LINENO"; then :
16171 xorg_cv_cc_flag_unknown_warning_option=yes
16172 else
16173 xorg_cv_cc_flag_unknown_warning_option=no
16174 fi
16175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16176 fi
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16178 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16179 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16180 CFLAGS="$xorg_testset_save_CFLAGS"
16181 fi
16182
16183 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16184 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16185 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16186 fi
16187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16189 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16190 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16191 $as_echo_n "(cached) " >&6
16192 else
16193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16194 /* end confdefs.h. */
16195 int i;
16196 _ACEOF
16197 if ac_fn_c_try_compile "$LINENO"; then :
16198 xorg_cv_cc_flag_unused_command_line_argument=yes
16199 else
16200 xorg_cv_cc_flag_unused_command_line_argument=no
16201 fi
16202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16203 fi
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16205 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16206 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16207 CFLAGS="$xorg_testset_save_CFLAGS"
16208 fi
16209
16210 found="no"
16211
16212 if test $found = "no" ; then
16213 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16215 fi
16216
16217 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16219 fi
16220
16221 CFLAGS="$CFLAGS -Wreturn-type"
16222
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
16224 $as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
16225 cacheid=xorg_cv_cc_flag__Wreturn_type
16226 if eval \${$cacheid+:} false; then :
16227 $as_echo_n "(cached) " >&6
16228 else
16229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16230 /* end confdefs.h. */
16231 int i;
16232 int
16233 main ()
16234 {
16235
16236 ;
16237 return 0;
16238 }
16239 _ACEOF
16240 if ac_fn_c_try_link "$LINENO"; then :
16241 eval $cacheid=yes
16242 else
16243 eval $cacheid=no
16244 fi
16245 rm -f core conftest.err conftest.$ac_objext \
16246 conftest$ac_exeext conftest.$ac_ext
16247 fi
16248
16249
16250 CFLAGS="$xorg_testset_save_CFLAGS"
16251
16252 eval supported=\$$cacheid
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16254 $as_echo "$supported" >&6; }
16255 if test "$supported" = "yes" ; then
16256 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16257 found="yes"
16258 fi
16259 fi
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275 xorg_testset_save_CFLAGS="$CFLAGS"
16276
16277 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16278 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16280 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16281 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16282 $as_echo_n "(cached) " >&6
16283 else
16284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16285 /* end confdefs.h. */
16286 int i;
16287 _ACEOF
16288 if ac_fn_c_try_compile "$LINENO"; then :
16289 xorg_cv_cc_flag_unknown_warning_option=yes
16290 else
16291 xorg_cv_cc_flag_unknown_warning_option=no
16292 fi
16293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16294 fi
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16296 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16297 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16298 CFLAGS="$xorg_testset_save_CFLAGS"
16299 fi
16300
16301 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16304 fi
16305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16307 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16308 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16309 $as_echo_n "(cached) " >&6
16310 else
16311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16312 /* end confdefs.h. */
16313 int i;
16314 _ACEOF
16315 if ac_fn_c_try_compile "$LINENO"; then :
16316 xorg_cv_cc_flag_unused_command_line_argument=yes
16317 else
16318 xorg_cv_cc_flag_unused_command_line_argument=no
16319 fi
16320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16321 fi
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16323 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16324 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16325 CFLAGS="$xorg_testset_save_CFLAGS"
16326 fi
16327
16328 found="no"
16329
16330 if test $found = "no" ; then
16331 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16333 fi
16334
16335 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16337 fi
16338
16339 CFLAGS="$CFLAGS -Wtrigraphs"
16340
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
16342 $as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
16343 cacheid=xorg_cv_cc_flag__Wtrigraphs
16344 if eval \${$cacheid+:} false; then :
16345 $as_echo_n "(cached) " >&6
16346 else
16347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16348 /* end confdefs.h. */
16349 int i;
16350 int
16351 main ()
16352 {
16353
16354 ;
16355 return 0;
16356 }
16357 _ACEOF
16358 if ac_fn_c_try_link "$LINENO"; then :
16359 eval $cacheid=yes
16360 else
16361 eval $cacheid=no
16362 fi
16363 rm -f core conftest.err conftest.$ac_objext \
16364 conftest$ac_exeext conftest.$ac_ext
16365 fi
16366
16367
16368 CFLAGS="$xorg_testset_save_CFLAGS"
16369
16370 eval supported=\$$cacheid
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16372 $as_echo "$supported" >&6; }
16373 if test "$supported" = "yes" ; then
16374 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16375 found="yes"
16376 fi
16377 fi
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393 xorg_testset_save_CFLAGS="$CFLAGS"
16394
16395 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16398 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16399 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16400 $as_echo_n "(cached) " >&6
16401 else
16402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16403 /* end confdefs.h. */
16404 int i;
16405 _ACEOF
16406 if ac_fn_c_try_compile "$LINENO"; then :
16407 xorg_cv_cc_flag_unknown_warning_option=yes
16408 else
16409 xorg_cv_cc_flag_unknown_warning_option=no
16410 fi
16411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16412 fi
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16414 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16415 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16416 CFLAGS="$xorg_testset_save_CFLAGS"
16417 fi
16418
16419 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16420 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16421 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16422 fi
16423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16425 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16426 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16427 $as_echo_n "(cached) " >&6
16428 else
16429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16430 /* end confdefs.h. */
16431 int i;
16432 _ACEOF
16433 if ac_fn_c_try_compile "$LINENO"; then :
16434 xorg_cv_cc_flag_unused_command_line_argument=yes
16435 else
16436 xorg_cv_cc_flag_unused_command_line_argument=no
16437 fi
16438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16439 fi
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16441 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16442 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16443 CFLAGS="$xorg_testset_save_CFLAGS"
16444 fi
16445
16446 found="no"
16447
16448 if test $found = "no" ; then
16449 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16450 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16451 fi
16452
16453 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16455 fi
16456
16457 CFLAGS="$CFLAGS -Warray-bounds"
16458
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
16460 $as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
16461 cacheid=xorg_cv_cc_flag__Warray_bounds
16462 if eval \${$cacheid+:} false; then :
16463 $as_echo_n "(cached) " >&6
16464 else
16465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16466 /* end confdefs.h. */
16467 int i;
16468 int
16469 main ()
16470 {
16471
16472 ;
16473 return 0;
16474 }
16475 _ACEOF
16476 if ac_fn_c_try_link "$LINENO"; then :
16477 eval $cacheid=yes
16478 else
16479 eval $cacheid=no
16480 fi
16481 rm -f core conftest.err conftest.$ac_objext \
16482 conftest$ac_exeext conftest.$ac_ext
16483 fi
16484
16485
16486 CFLAGS="$xorg_testset_save_CFLAGS"
16487
16488 eval supported=\$$cacheid
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16490 $as_echo "$supported" >&6; }
16491 if test "$supported" = "yes" ; then
16492 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16493 found="yes"
16494 fi
16495 fi
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511 xorg_testset_save_CFLAGS="$CFLAGS"
16512
16513 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16514 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16516 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16517 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16518 $as_echo_n "(cached) " >&6
16519 else
16520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16521 /* end confdefs.h. */
16522 int i;
16523 _ACEOF
16524 if ac_fn_c_try_compile "$LINENO"; then :
16525 xorg_cv_cc_flag_unknown_warning_option=yes
16526 else
16527 xorg_cv_cc_flag_unknown_warning_option=no
16528 fi
16529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16530 fi
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16532 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16533 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16534 CFLAGS="$xorg_testset_save_CFLAGS"
16535 fi
16536
16537 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16539 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16540 fi
16541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16543 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16544 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16545 $as_echo_n "(cached) " >&6
16546 else
16547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16548 /* end confdefs.h. */
16549 int i;
16550 _ACEOF
16551 if ac_fn_c_try_compile "$LINENO"; then :
16552 xorg_cv_cc_flag_unused_command_line_argument=yes
16553 else
16554 xorg_cv_cc_flag_unused_command_line_argument=no
16555 fi
16556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16557 fi
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16559 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16560 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16561 CFLAGS="$xorg_testset_save_CFLAGS"
16562 fi
16563
16564 found="no"
16565
16566 if test $found = "no" ; then
16567 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16568 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16569 fi
16570
16571 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16573 fi
16574
16575 CFLAGS="$CFLAGS -Wwrite-strings"
16576
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
16578 $as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
16579 cacheid=xorg_cv_cc_flag__Wwrite_strings
16580 if eval \${$cacheid+:} false; then :
16581 $as_echo_n "(cached) " >&6
16582 else
16583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16584 /* end confdefs.h. */
16585 int i;
16586 int
16587 main ()
16588 {
16589
16590 ;
16591 return 0;
16592 }
16593 _ACEOF
16594 if ac_fn_c_try_link "$LINENO"; then :
16595 eval $cacheid=yes
16596 else
16597 eval $cacheid=no
16598 fi
16599 rm -f core conftest.err conftest.$ac_objext \
16600 conftest$ac_exeext conftest.$ac_ext
16601 fi
16602
16603
16604 CFLAGS="$xorg_testset_save_CFLAGS"
16605
16606 eval supported=\$$cacheid
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16608 $as_echo "$supported" >&6; }
16609 if test "$supported" = "yes" ; then
16610 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16611 found="yes"
16612 fi
16613 fi
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629 xorg_testset_save_CFLAGS="$CFLAGS"
16630
16631 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16634 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16635 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16636 $as_echo_n "(cached) " >&6
16637 else
16638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16639 /* end confdefs.h. */
16640 int i;
16641 _ACEOF
16642 if ac_fn_c_try_compile "$LINENO"; then :
16643 xorg_cv_cc_flag_unknown_warning_option=yes
16644 else
16645 xorg_cv_cc_flag_unknown_warning_option=no
16646 fi
16647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16648 fi
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16650 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16651 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16652 CFLAGS="$xorg_testset_save_CFLAGS"
16653 fi
16654
16655 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16657 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16658 fi
16659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16661 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16662 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16663 $as_echo_n "(cached) " >&6
16664 else
16665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16666 /* end confdefs.h. */
16667 int i;
16668 _ACEOF
16669 if ac_fn_c_try_compile "$LINENO"; then :
16670 xorg_cv_cc_flag_unused_command_line_argument=yes
16671 else
16672 xorg_cv_cc_flag_unused_command_line_argument=no
16673 fi
16674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16675 fi
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16677 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16678 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16679 CFLAGS="$xorg_testset_save_CFLAGS"
16680 fi
16681
16682 found="no"
16683
16684 if test $found = "no" ; then
16685 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16686 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16687 fi
16688
16689 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16691 fi
16692
16693 CFLAGS="$CFLAGS -Waddress"
16694
16695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
16696 $as_echo_n "checking if $CC supports-Waddress... " >&6; }
16697 cacheid=xorg_cv_cc_flag__Waddress
16698 if eval \${$cacheid+:} false; then :
16699 $as_echo_n "(cached) " >&6
16700 else
16701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16702 /* end confdefs.h. */
16703 int i;
16704 int
16705 main ()
16706 {
16707
16708 ;
16709 return 0;
16710 }
16711 _ACEOF
16712 if ac_fn_c_try_link "$LINENO"; then :
16713 eval $cacheid=yes
16714 else
16715 eval $cacheid=no
16716 fi
16717 rm -f core conftest.err conftest.$ac_objext \
16718 conftest$ac_exeext conftest.$ac_ext
16719 fi
16720
16721
16722 CFLAGS="$xorg_testset_save_CFLAGS"
16723
16724 eval supported=\$$cacheid
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16726 $as_echo "$supported" >&6; }
16727 if test "$supported" = "yes" ; then
16728 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16729 found="yes"
16730 fi
16731 fi
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747 xorg_testset_save_CFLAGS="$CFLAGS"
16748
16749 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16752 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16753 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16754 $as_echo_n "(cached) " >&6
16755 else
16756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16757 /* end confdefs.h. */
16758 int i;
16759 _ACEOF
16760 if ac_fn_c_try_compile "$LINENO"; then :
16761 xorg_cv_cc_flag_unknown_warning_option=yes
16762 else
16763 xorg_cv_cc_flag_unknown_warning_option=no
16764 fi
16765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16766 fi
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16768 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16769 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16770 CFLAGS="$xorg_testset_save_CFLAGS"
16771 fi
16772
16773 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16775 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16776 fi
16777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16779 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16780 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16781 $as_echo_n "(cached) " >&6
16782 else
16783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16784 /* end confdefs.h. */
16785 int i;
16786 _ACEOF
16787 if ac_fn_c_try_compile "$LINENO"; then :
16788 xorg_cv_cc_flag_unused_command_line_argument=yes
16789 else
16790 xorg_cv_cc_flag_unused_command_line_argument=no
16791 fi
16792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16793 fi
16794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16795 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16796 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16797 CFLAGS="$xorg_testset_save_CFLAGS"
16798 fi
16799
16800 found="no"
16801
16802 if test $found = "no" ; then
16803 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16804 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16805 fi
16806
16807 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16809 fi
16810
16811 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
16812
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
16814 $as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
16815 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
16816 if eval \${$cacheid+:} false; then :
16817 $as_echo_n "(cached) " >&6
16818 else
16819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16820 /* end confdefs.h. */
16821 int i;
16822 int
16823 main ()
16824 {
16825
16826 ;
16827 return 0;
16828 }
16829 _ACEOF
16830 if ac_fn_c_try_link "$LINENO"; then :
16831 eval $cacheid=yes
16832 else
16833 eval $cacheid=no
16834 fi
16835 rm -f core conftest.err conftest.$ac_objext \
16836 conftest$ac_exeext conftest.$ac_ext
16837 fi
16838
16839
16840 CFLAGS="$xorg_testset_save_CFLAGS"
16841
16842 eval supported=\$$cacheid
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16844 $as_echo "$supported" >&6; }
16845 if test "$supported" = "yes" ; then
16846 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
16847 found="yes"
16848 fi
16849 fi
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865 xorg_testset_save_CFLAGS="$CFLAGS"
16866
16867 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16868 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16870 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16871 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16872 $as_echo_n "(cached) " >&6
16873 else
16874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16875 /* end confdefs.h. */
16876 int i;
16877 _ACEOF
16878 if ac_fn_c_try_compile "$LINENO"; then :
16879 xorg_cv_cc_flag_unknown_warning_option=yes
16880 else
16881 xorg_cv_cc_flag_unknown_warning_option=no
16882 fi
16883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16884 fi
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16886 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16887 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16888 CFLAGS="$xorg_testset_save_CFLAGS"
16889 fi
16890
16891 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16893 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16894 fi
16895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16897 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16898 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16899 $as_echo_n "(cached) " >&6
16900 else
16901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16902 /* end confdefs.h. */
16903 int i;
16904 _ACEOF
16905 if ac_fn_c_try_compile "$LINENO"; then :
16906 xorg_cv_cc_flag_unused_command_line_argument=yes
16907 else
16908 xorg_cv_cc_flag_unused_command_line_argument=no
16909 fi
16910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16911 fi
16912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16913 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16914 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16915 CFLAGS="$xorg_testset_save_CFLAGS"
16916 fi
16917
16918 found="no"
16919
16920 if test $found = "no" ; then
16921 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16922 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16923 fi
16924
16925 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16927 fi
16928
16929 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
16930
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
16932 $as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
16933 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
16934 if eval \${$cacheid+:} false; then :
16935 $as_echo_n "(cached) " >&6
16936 else
16937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16938 /* end confdefs.h. */
16939 int i;
16940 int
16941 main ()
16942 {
16943
16944 ;
16945 return 0;
16946 }
16947 _ACEOF
16948 if ac_fn_c_try_link "$LINENO"; then :
16949 eval $cacheid=yes
16950 else
16951 eval $cacheid=no
16952 fi
16953 rm -f core conftest.err conftest.$ac_objext \
16954 conftest$ac_exeext conftest.$ac_ext
16955 fi
16956
16957
16958 CFLAGS="$xorg_testset_save_CFLAGS"
16959
16960 eval supported=\$$cacheid
16961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16962 $as_echo "$supported" >&6; }
16963 if test "$supported" = "yes" ; then
16964 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
16965 found="yes"
16966 fi
16967 fi
16968
16969
16970 fi
16971
16972
16973
16974
16975
16976
16977
16978 CWARNFLAGS="$BASE_CFLAGS"
16979 if test "x$GCC" = xyes ; then
16980 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
16981 fi
16982
16983
16984
16985
16986
16987
16988
16989
16990 # Check whether --enable-strict-compilation was given.
16991 if test "${enable_strict_compilation+set}" = set; then :
16992 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
16993 else
16994 STRICT_COMPILE=no
16995 fi
16996
16997
16998
16999
17000
17001
17002 STRICT_CFLAGS=""
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016 xorg_testset_save_CFLAGS="$CFLAGS"
17017
17018 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17019 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17021 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17022 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17023 $as_echo_n "(cached) " >&6
17024 else
17025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17026 /* end confdefs.h. */
17027 int i;
17028 _ACEOF
17029 if ac_fn_c_try_compile "$LINENO"; then :
17030 xorg_cv_cc_flag_unknown_warning_option=yes
17031 else
17032 xorg_cv_cc_flag_unknown_warning_option=no
17033 fi
17034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17035 fi
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17037 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17038 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17039 CFLAGS="$xorg_testset_save_CFLAGS"
17040 fi
17041
17042 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17045 fi
17046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17048 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17049 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17050 $as_echo_n "(cached) " >&6
17051 else
17052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17053 /* end confdefs.h. */
17054 int i;
17055 _ACEOF
17056 if ac_fn_c_try_compile "$LINENO"; then :
17057 xorg_cv_cc_flag_unused_command_line_argument=yes
17058 else
17059 xorg_cv_cc_flag_unused_command_line_argument=no
17060 fi
17061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17062 fi
17063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17064 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17065 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17066 CFLAGS="$xorg_testset_save_CFLAGS"
17067 fi
17068
17069 found="no"
17070
17071 if test $found = "no" ; then
17072 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17074 fi
17075
17076 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17078 fi
17079
17080 CFLAGS="$CFLAGS -pedantic"
17081
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
17083 $as_echo_n "checking if $CC supports-pedantic... " >&6; }
17084 cacheid=xorg_cv_cc_flag__pedantic
17085 if eval \${$cacheid+:} false; then :
17086 $as_echo_n "(cached) " >&6
17087 else
17088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17089 /* end confdefs.h. */
17090 int i;
17091 int
17092 main ()
17093 {
17094
17095 ;
17096 return 0;
17097 }
17098 _ACEOF
17099 if ac_fn_c_try_link "$LINENO"; then :
17100 eval $cacheid=yes
17101 else
17102 eval $cacheid=no
17103 fi
17104 rm -f core conftest.err conftest.$ac_objext \
17105 conftest$ac_exeext conftest.$ac_ext
17106 fi
17107
17108
17109 CFLAGS="$xorg_testset_save_CFLAGS"
17110
17111 eval supported=\$$cacheid
17112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17113 $as_echo "$supported" >&6; }
17114 if test "$supported" = "yes" ; then
17115 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17116 found="yes"
17117 fi
17118 fi
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134 xorg_testset_save_CFLAGS="$CFLAGS"
17135
17136 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17137 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17139 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17140 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17141 $as_echo_n "(cached) " >&6
17142 else
17143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17144 /* end confdefs.h. */
17145 int i;
17146 _ACEOF
17147 if ac_fn_c_try_compile "$LINENO"; then :
17148 xorg_cv_cc_flag_unknown_warning_option=yes
17149 else
17150 xorg_cv_cc_flag_unknown_warning_option=no
17151 fi
17152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17153 fi
17154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17155 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17156 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17157 CFLAGS="$xorg_testset_save_CFLAGS"
17158 fi
17159
17160 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17162 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17163 fi
17164 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17166 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17167 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17168 $as_echo_n "(cached) " >&6
17169 else
17170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17171 /* end confdefs.h. */
17172 int i;
17173 _ACEOF
17174 if ac_fn_c_try_compile "$LINENO"; then :
17175 xorg_cv_cc_flag_unused_command_line_argument=yes
17176 else
17177 xorg_cv_cc_flag_unused_command_line_argument=no
17178 fi
17179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17180 fi
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17182 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17183 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17184 CFLAGS="$xorg_testset_save_CFLAGS"
17185 fi
17186
17187 found="no"
17188
17189 if test $found = "no" ; then
17190 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17191 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17192 fi
17193
17194 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17196 fi
17197
17198 CFLAGS="$CFLAGS -Werror"
17199
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
17201 $as_echo_n "checking if $CC supports-Werror... " >&6; }
17202 cacheid=xorg_cv_cc_flag__Werror
17203 if eval \${$cacheid+:} false; then :
17204 $as_echo_n "(cached) " >&6
17205 else
17206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17207 /* end confdefs.h. */
17208 int i;
17209 int
17210 main ()
17211 {
17212
17213 ;
17214 return 0;
17215 }
17216 _ACEOF
17217 if ac_fn_c_try_link "$LINENO"; then :
17218 eval $cacheid=yes
17219 else
17220 eval $cacheid=no
17221 fi
17222 rm -f core conftest.err conftest.$ac_objext \
17223 conftest$ac_exeext conftest.$ac_ext
17224 fi
17225
17226
17227 CFLAGS="$xorg_testset_save_CFLAGS"
17228
17229 eval supported=\$$cacheid
17230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17231 $as_echo "$supported" >&6; }
17232 if test "$supported" = "yes" ; then
17233 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17234 found="yes"
17235 fi
17236 fi
17237
17238 if test $found = "no" ; then
17239 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17241 fi
17242
17243 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17245 fi
17246
17247 CFLAGS="$CFLAGS -errwarn"
17248
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
17250 $as_echo_n "checking if $CC supports-errwarn... " >&6; }
17251 cacheid=xorg_cv_cc_flag__errwarn
17252 if eval \${$cacheid+:} false; then :
17253 $as_echo_n "(cached) " >&6
17254 else
17255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17256 /* end confdefs.h. */
17257 int i;
17258 int
17259 main ()
17260 {
17261
17262 ;
17263 return 0;
17264 }
17265 _ACEOF
17266 if ac_fn_c_try_link "$LINENO"; then :
17267 eval $cacheid=yes
17268 else
17269 eval $cacheid=no
17270 fi
17271 rm -f core conftest.err conftest.$ac_objext \
17272 conftest$ac_exeext conftest.$ac_ext
17273 fi
17274
17275
17276 CFLAGS="$xorg_testset_save_CFLAGS"
17277
17278 eval supported=\$$cacheid
17279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17280 $as_echo "$supported" >&6; }
17281 if test "$supported" = "yes" ; then
17282 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17283 found="yes"
17284 fi
17285 fi
17286
17287
17288
17289 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17290 # activate it with -Werror, so we add it here explicitly.
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304 xorg_testset_save_CFLAGS="$CFLAGS"
17305
17306 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17307 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17309 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17310 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17311 $as_echo_n "(cached) " >&6
17312 else
17313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17314 /* end confdefs.h. */
17315 int i;
17316 _ACEOF
17317 if ac_fn_c_try_compile "$LINENO"; then :
17318 xorg_cv_cc_flag_unknown_warning_option=yes
17319 else
17320 xorg_cv_cc_flag_unknown_warning_option=no
17321 fi
17322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17323 fi
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17325 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17326 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17327 CFLAGS="$xorg_testset_save_CFLAGS"
17328 fi
17329
17330 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17331 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17333 fi
17334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17336 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17337 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17338 $as_echo_n "(cached) " >&6
17339 else
17340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17341 /* end confdefs.h. */
17342 int i;
17343 _ACEOF
17344 if ac_fn_c_try_compile "$LINENO"; then :
17345 xorg_cv_cc_flag_unused_command_line_argument=yes
17346 else
17347 xorg_cv_cc_flag_unused_command_line_argument=no
17348 fi
17349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17350 fi
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17352 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17353 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17354 CFLAGS="$xorg_testset_save_CFLAGS"
17355 fi
17356
17357 found="no"
17358
17359 if test $found = "no" ; then
17360 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17361 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17362 fi
17363
17364 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17366 fi
17367
17368 CFLAGS="$CFLAGS -Werror=attributes"
17369
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
17371 $as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
17372 cacheid=xorg_cv_cc_flag__Werror_attributes
17373 if eval \${$cacheid+:} false; then :
17374 $as_echo_n "(cached) " >&6
17375 else
17376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17377 /* end confdefs.h. */
17378 int i;
17379 int
17380 main ()
17381 {
17382
17383 ;
17384 return 0;
17385 }
17386 _ACEOF
17387 if ac_fn_c_try_link "$LINENO"; then :
17388 eval $cacheid=yes
17389 else
17390 eval $cacheid=no
17391 fi
17392 rm -f core conftest.err conftest.$ac_objext \
17393 conftest$ac_exeext conftest.$ac_ext
17394 fi
17395
17396
17397 CFLAGS="$xorg_testset_save_CFLAGS"
17398
17399 eval supported=\$$cacheid
17400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17401 $as_echo "$supported" >&6; }
17402 if test "$supported" = "yes" ; then
17403 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17404 found="yes"
17405 fi
17406 fi
17407
17408
17409
17410 if test "x$STRICT_COMPILE" = "xyes"; then
17411 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17412 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17413 fi
17414
17415
17416
17417
17418
17419
17420 cat >>confdefs.h <<_ACEOF
17421 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17422 _ACEOF
17423
17424 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17425 if test "x$PVM" = "x"; then
17426 PVM="0"
17427 fi
17428
17429 cat >>confdefs.h <<_ACEOF
17430 #define PACKAGE_VERSION_MINOR $PVM
17431 _ACEOF
17432
17433 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17434 if test "x$PVP" = "x"; then
17435 PVP="0"
17436 fi
17437
17438 cat >>confdefs.h <<_ACEOF
17439 #define PACKAGE_VERSION_PATCHLEVEL $PVP
17440 _ACEOF
17441
17442
17443
17444 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17445 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17446 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17447 echo 'git directory not found: installing possibly empty changelog.' >&2)"
17448
17449
17450
17451
17452 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17453 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17454 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17455 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17456 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17457
17458
17459
17460
17461
17462
17463 if test x$APP_MAN_SUFFIX = x ; then
17464 APP_MAN_SUFFIX=1
17465 fi
17466 if test x$APP_MAN_DIR = x ; then
17467 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17468 fi
17469
17470 if test x$LIB_MAN_SUFFIX = x ; then
17471 LIB_MAN_SUFFIX=3
17472 fi
17473 if test x$LIB_MAN_DIR = x ; then
17474 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17475 fi
17476
17477 if test x$FILE_MAN_SUFFIX = x ; then
17478 case $host_os in
17479 solaris*) FILE_MAN_SUFFIX=4 ;;
17480 *) FILE_MAN_SUFFIX=5 ;;
17481 esac
17482 fi
17483 if test x$FILE_MAN_DIR = x ; then
17484 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17485 fi
17486
17487 if test x$MISC_MAN_SUFFIX = x ; then
17488 case $host_os in
17489 solaris*) MISC_MAN_SUFFIX=5 ;;
17490 *) MISC_MAN_SUFFIX=7 ;;
17491 esac
17492 fi
17493 if test x$MISC_MAN_DIR = x ; then
17494 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17495 fi
17496
17497 if test x$DRIVER_MAN_SUFFIX = x ; then
17498 case $host_os in
17499 solaris*) DRIVER_MAN_SUFFIX=7 ;;
17500 *) DRIVER_MAN_SUFFIX=4 ;;
17501 esac
17502 fi
17503 if test x$DRIVER_MAN_DIR = x ; then
17504 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17505 fi
17506
17507 if test x$ADMIN_MAN_SUFFIX = x ; then
17508 case $host_os in
17509 solaris*) ADMIN_MAN_SUFFIX=1m ;;
17510 *) ADMIN_MAN_SUFFIX=8 ;;
17511 esac
17512 fi
17513 if test x$ADMIN_MAN_DIR = x ; then
17514 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17515 fi
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531 XORG_MAN_PAGE="X Version 11"
17532
17533 MAN_SUBSTS="\
17534 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17535 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17536 -e 's|__xservername__|Xorg|g' \
17537 -e 's|__xconfigfile__|xorg.conf|g' \
17538 -e 's|__projectroot__|\$(prefix)|g' \
17539 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
17540 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17541 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17542 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17543 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17544 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17545 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17546
17547
17548
17549 # Check whether --enable-silent-rules was given.
17550 if test "${enable_silent_rules+set}" = set; then :
17551 enableval=$enable_silent_rules;
17552 fi
17553
17554 case $enable_silent_rules in # (((
17555 yes) AM_DEFAULT_VERBOSITY=0;;
17556 no) AM_DEFAULT_VERBOSITY=1;;
17557 *) AM_DEFAULT_VERBOSITY=0;;
17558 esac
17559 am_make=${MAKE-make}
17560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
17561 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
17562 if ${am_cv_make_support_nested_variables+:} false; then :
17563 $as_echo_n "(cached) " >&6
17564 else
17565 if $as_echo 'TRUE=$(BAR$(V))
17566 BAR0=false
17567 BAR1=true
17568 V=1
17569 am__doit:
17570 @$(TRUE)
17571 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
17572 am_cv_make_support_nested_variables=yes
17573 else
17574 am_cv_make_support_nested_variables=no
17575 fi
17576 fi
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
17578 $as_echo "$am_cv_make_support_nested_variables" >&6; }
17579 if test $am_cv_make_support_nested_variables = yes; then
17580 AM_V='$(V)'
17581 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17582 else
17583 AM_V=$AM_DEFAULT_VERBOSITY
17584 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17585 fi
17586 AM_BACKSLASH='\'
17587
17588
17589
17590
17591
17592
17593
17594 # Check whether --with-lint was given.
17595 if test "${with_lint+set}" = set; then :
17596 withval=$with_lint; use_lint=$withval
17597 else
17598 use_lint=no
17599 fi
17600
17601
17602 # Obtain platform specific info like program name and options
17603 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
17604 case $host_os in
17605 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
17606 lint_name=splint
17607 lint_options="-badflag"
17608 ;;
17609 *freebsd* | *netbsd*)
17610 lint_name=lint
17611 lint_options="-u -b"
17612 ;;
17613 *solaris*)
17614 lint_name=lint
17615 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
17616 ;;
17617 esac
17618
17619 # Test for the presence of the program (either guessed by the code or spelled out by the user)
17620 if test "x$use_lint" = x"yes" ; then
17621 # Extract the first word of "$lint_name", so it can be a program name with args.
17622 set dummy $lint_name; ac_word=$2
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17624 $as_echo_n "checking for $ac_word... " >&6; }
17625 if ${ac_cv_path_LINT+:} false; then :
17626 $as_echo_n "(cached) " >&6
17627 else
17628 case $LINT in
17629 [\\/]* | ?:[\\/]*)
17630 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
17631 ;;
17632 *)
17633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17634 for as_dir in $PATH
17635 do
17636 IFS=$as_save_IFS
17637 test -z "$as_dir" && as_dir=.
17638 for ac_exec_ext in '' $ac_executable_extensions; do
17639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17640 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
17641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17642 break 2
17643 fi
17644 done
17645 done
17646 IFS=$as_save_IFS
17647
17648 ;;
17649 esac
17650 fi
17651 LINT=$ac_cv_path_LINT
17652 if test -n "$LINT"; then
17653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
17654 $as_echo "$LINT" >&6; }
17655 else
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17657 $as_echo "no" >&6; }
17658 fi
17659
17660
17661 if test "x$LINT" = "x"; then
17662 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
17663 fi
17664 elif test "x$use_lint" = x"no" ; then
17665 if test "x$LINT" != "x"; then
17666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
17667 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
17668 fi
17669 else
17670 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
17671 fi
17672
17673 # User supplied flags override default flags
17674 if test "x$LINT_FLAGS" != "x"; then
17675 lint_options=$LINT_FLAGS
17676 fi
17677
17678 LINT_FLAGS=$lint_options
17679
17680 if test "x$LINT" != x; then
17681 LINT_TRUE=
17682 LINT_FALSE='#'
17683 else
17684 LINT_TRUE='#'
17685 LINT_FALSE=
17686 fi
17687
17688
17689
17690
17691 # Obtain compiler/linker options from server and required extensions
17692
17693 pkg_failed=no
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
17695 $as_echo_n "checking for XORG... " >&6; }
17696
17697 if test -n "$XORG_CFLAGS"; then
17698 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
17699 elif test -n "$PKG_CONFIG"; then
17700 if test -n "$PKG_CONFIG" && \
17701 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.7 xproto inputproto\""; } >&5
17702 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.7 xproto inputproto") 2>&5
17703 ac_status=$?
17704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17705 test $ac_status = 0; }; then
17706 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.7 xproto inputproto" 2>/dev/null`
17707 test "x$?" != "x0" && pkg_failed=yes
17708 else
17709 pkg_failed=yes
17710 fi
17711 else
17712 pkg_failed=untried
17713 fi
17714 if test -n "$XORG_LIBS"; then
17715 pkg_cv_XORG_LIBS="$XORG_LIBS"
17716 elif test -n "$PKG_CONFIG"; then
17717 if test -n "$PKG_CONFIG" && \
17718 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.7 xproto inputproto\""; } >&5
17719 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.7 xproto inputproto") 2>&5
17720 ac_status=$?
17721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17722 test $ac_status = 0; }; then
17723 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.7 xproto inputproto" 2>/dev/null`
17724 test "x$?" != "x0" && pkg_failed=yes
17725 else
17726 pkg_failed=yes
17727 fi
17728 else
17729 pkg_failed=untried
17730 fi
17731
17732
17733
17734 if test $pkg_failed = yes; then
17735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17736 $as_echo "no" >&6; }
17737
17738 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17739 _pkg_short_errors_supported=yes
17740 else
17741 _pkg_short_errors_supported=no
17742 fi
17743 if test $_pkg_short_errors_supported = yes; then
17744 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.7 xproto inputproto" 2>&1`
17745 else
17746 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.7 xproto inputproto" 2>&1`
17747 fi
17748 # Put the nasty error message in config.log where it belongs
17749 echo "$XORG_PKG_ERRORS" >&5
17750
17751 as_fn_error $? "Package requirements (xorg-server >= 1.7 xproto inputproto) were not met:
17752
17753 $XORG_PKG_ERRORS
17754
17755 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17756 installed software in a non-standard prefix.
17757
17758 Alternatively, you may set the environment variables XORG_CFLAGS
17759 and XORG_LIBS to avoid the need to call pkg-config.
17760 See the pkg-config man page for more details." "$LINENO" 5
17761 elif test $pkg_failed = untried; then
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17763 $as_echo "no" >&6; }
17764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17766 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17767 is in your PATH or set the PKG_CONFIG environment variable to the full
17768 path to pkg-config.
17769
17770 Alternatively, you may set the environment variables XORG_CFLAGS
17771 and XORG_LIBS to avoid the need to call pkg-config.
17772 See the pkg-config man page for more details.
17773
17774 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17775 See \`config.log' for more details" "$LINENO" 5; }
17776 else
17777 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
17778 XORG_LIBS=$pkg_cv_XORG_LIBS
17779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17780 $as_echo "yes" >&6; }
17781
17782 fi
17783
17784 # Define a configure option for an alternate input module directory
17785
17786 # Check whether --with-xorg-module-dir was given.
17787 if test "${with_xorg_module_dir+set}" = set; then :
17788 withval=$with_xorg_module_dir; moduledir="$withval"
17789 else
17790 moduledir="$libdir/xorg/modules"
17791 fi
17792
17793 inputdir=${moduledir}/input
17794
17795
17796 # X Server SDK location is required to install xf86-mouse-properties.h
17797 # This location is also relayed in the xorg-mouse.pc file
17798 sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
17799
17800 # Workaround overriding sdkdir to be able to create a tarball when user has no
17801 # write permission in sdkdir. See DISTCHECK_CONFIGURE_FLAGS in Makefile.am
17802
17803 # Check whether --with-sdkdir was given.
17804 if test "${with_sdkdir+set}" = set; then :
17805 withval=$with_sdkdir; sdkdir="$withval"
17806 fi
17807
17808
17809
17810
17811 # Work out which OS mouse driver we need to build
17812 case $host_os in
17813 linux*)
17814 OS_MOUSE_NAME=lnx
17815 ;;
17816 freebsd*|kfreebsd*-gnu|dragonfly*|netbsd*|openbsd*)
17817 OS_MOUSE_NAME=bsd
17818 ;;
17819 solaris*)
17820 OS_MOUSE_NAME=sun
17821 ;;
17822 gnu*)
17823 OS_MOUSE_NAME=hurd
17824 ;;
17825 esac
17826
17827
17828 DRIVER_NAME=mouse
17829
17830
17831 ac_config_files="$ac_config_files Makefile xorg-mouse.pc include/Makefile src/Makefile man/Makefile"
17832
17833 cat >confcache <<\_ACEOF
17834 # This file is a shell script that caches the results of configure
17835 # tests run on this system so they can be shared between configure
17836 # scripts and configure runs, see configure's option --config-cache.
17837 # It is not useful on other systems. If it contains results you don't
17838 # want to keep, you may remove or edit it.
17839 #
17840 # config.status only pays attention to the cache file if you give it
17841 # the --recheck option to rerun configure.
17842 #
17843 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17844 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17845 # following values.
17846
17847 _ACEOF
17848
17849 # The following way of writing the cache mishandles newlines in values,
17850 # but we know of no workaround that is simple, portable, and efficient.
17851 # So, we kill variables containing newlines.
17852 # Ultrix sh set writes to stderr and can't be redirected directly,
17853 # and sets the high bit in the cache file unless we assign to the vars.
17854 (
17855 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17856 eval ac_val=\$$ac_var
17857 case $ac_val in #(
17858 *${as_nl}*)
17859 case $ac_var in #(
17860 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17861 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17862 esac
17863 case $ac_var in #(
17864 _ | IFS | as_nl) ;; #(
17865 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17866 *) { eval $ac_var=; unset $ac_var;} ;;
17867 esac ;;
17868 esac
17869 done
17870
17871 (set) 2>&1 |
17872 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17873 *${as_nl}ac_space=\ *)
17874 # `set' does not quote correctly, so add quotes: double-quote
17875 # substitution turns \\\\ into \\, and sed turns \\ into \.
17876 sed -n \
17877 "s/'/'\\\\''/g;
17878 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17879 ;; #(
17880 *)
17881 # `set' quotes correctly as required by POSIX, so do not add quotes.
17882 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17883 ;;
17884 esac |
17885 sort
17886 ) |
17887 sed '
17888 /^ac_cv_env_/b end
17889 t clear
17890 :clear
17891 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17892 t end
17893 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17894 :end' >>confcache
17895 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17896 if test -w "$cache_file"; then
17897 if test "x$cache_file" != "x/dev/null"; then
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17899 $as_echo "$as_me: updating cache $cache_file" >&6;}
17900 if test ! -f "$cache_file" || test -h "$cache_file"; then
17901 cat confcache >"$cache_file"
17902 else
17903 case $cache_file in #(
17904 */* | ?:*)
17905 mv -f confcache "$cache_file"$$ &&
17906 mv -f "$cache_file"$$ "$cache_file" ;; #(
17907 *)
17908 mv -f confcache "$cache_file" ;;
17909 esac
17910 fi
17911 fi
17912 else
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17914 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17915 fi
17916 fi
17917 rm -f confcache
17918
17919 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17920 # Let make expand exec_prefix.
17921 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17922
17923 DEFS=-DHAVE_CONFIG_H
17924
17925 ac_libobjs=
17926 ac_ltlibobjs=
17927 U=
17928 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17929 # 1. Remove the extension, and $U if already installed.
17930 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17931 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17932 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17933 # will be set to the directory where LIBOBJS objects are built.
17934 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17935 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17936 done
17937 LIBOBJS=$ac_libobjs
17938
17939 LTLIBOBJS=$ac_ltlibobjs
17940
17941
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17943 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17944 if test -n "$am_sleep_pid"; then
17945 # Hide warnings about reused PIDs.
17946 wait $am_sleep_pid 2>/dev/null
17947 fi
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17949 $as_echo "done" >&6; }
17950 if test -n "$EXEEXT"; then
17951 am__EXEEXT_TRUE=
17952 am__EXEEXT_FALSE='#'
17953 else
17954 am__EXEEXT_TRUE='#'
17955 am__EXEEXT_FALSE=
17956 fi
17957
17958 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17959 as_fn_error $? "conditional \"AMDEP\" was never defined.
17960 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17961 fi
17962 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17963 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17964 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17965 fi
17966 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
17967 as_fn_error $? "conditional \"LINT\" was never defined.
17968 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17969 fi
17970
17971 : "${CONFIG_STATUS=./config.status}"
17972 ac_write_fail=0
17973 ac_clean_files_save=$ac_clean_files
17974 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17976 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17977 as_write_fail=0
17978 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17979 #! $SHELL
17980 # Generated by $as_me.
17981 # Run this file to recreate the current configuration.
17982 # Compiler output produced by configure, useful for debugging
17983 # configure, is in config.log if it exists.
17984
17985 debug=false
17986 ac_cs_recheck=false
17987 ac_cs_silent=false
17988
17989 SHELL=\${CONFIG_SHELL-$SHELL}
17990 export SHELL
17991 _ASEOF
17992 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17993 ## -------------------- ##
17994 ## M4sh Initialization. ##
17995 ## -------------------- ##
17996
17997 # Be more Bourne compatible
17998 DUALCASE=1; export DUALCASE # for MKS sh
17999 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18000 emulate sh
18001 NULLCMD=:
18002 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18003 # is contrary to our usage. Disable this feature.
18004 alias -g '${1+"$@"}'='"$@"'
18005 setopt NO_GLOB_SUBST
18006 else
18007 case `(set -o) 2>/dev/null` in #(
18008 *posix*) :
18009 set -o posix ;; #(
18010 *) :
18011 ;;
18012 esac
18013 fi
18014
18015
18016 as_nl='
18017 '
18018 export as_nl
18019 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18020 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18021 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18022 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18023 # Prefer a ksh shell builtin over an external printf program on Solaris,
18024 # but without wasting forks for bash or zsh.
18025 if test -z "$BASH_VERSION$ZSH_VERSION" \
18026 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18027 as_echo='print -r --'
18028 as_echo_n='print -rn --'
18029 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18030 as_echo='printf %s\n'
18031 as_echo_n='printf %s'
18032 else
18033 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18034 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18035 as_echo_n='/usr/ucb/echo -n'
18036 else
18037 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18038 as_echo_n_body='eval
18039 arg=$1;
18040 case $arg in #(
18041 *"$as_nl"*)
18042 expr "X$arg" : "X\\(.*\\)$as_nl";
18043 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18044 esac;
18045 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18046 '
18047 export as_echo_n_body
18048 as_echo_n='sh -c $as_echo_n_body as_echo'
18049 fi
18050 export as_echo_body
18051 as_echo='sh -c $as_echo_body as_echo'
18052 fi
18053
18054 # The user is always right.
18055 if test "${PATH_SEPARATOR+set}" != set; then
18056 PATH_SEPARATOR=:
18057 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18058 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18059 PATH_SEPARATOR=';'
18060 }
18061 fi
18062
18063
18064 # IFS
18065 # We need space, tab and new line, in precisely that order. Quoting is
18066 # there to prevent editors from complaining about space-tab.
18067 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18068 # splitting by setting IFS to empty value.)
18069 IFS=" "" $as_nl"
18070
18071 # Find who we are. Look in the path if we contain no directory separator.
18072 as_myself=
18073 case $0 in #((
18074 *[\\/]* ) as_myself=$0 ;;
18075 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18076 for as_dir in $PATH
18077 do
18078 IFS=$as_save_IFS
18079 test -z "$as_dir" && as_dir=.
18080 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18081 done
18082 IFS=$as_save_IFS
18083
18084 ;;
18085 esac
18086 # We did not find ourselves, most probably we were run as `sh COMMAND'
18087 # in which case we are not to be found in the path.
18088 if test "x$as_myself" = x; then
18089 as_myself=$0
18090 fi
18091 if test ! -f "$as_myself"; then
18092 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18093 exit 1
18094 fi
18095
18096 # Unset variables that we do not need and which cause bugs (e.g. in
18097 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18098 # suppresses any "Segmentation fault" message there. '((' could
18099 # trigger a bug in pdksh 5.2.14.
18100 for as_var in BASH_ENV ENV MAIL MAILPATH
18101 do eval test x\${$as_var+set} = xset \
18102 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18103 done
18104 PS1='$ '
18105 PS2='> '
18106 PS4='+ '
18107
18108 # NLS nuisances.
18109 LC_ALL=C
18110 export LC_ALL
18111 LANGUAGE=C
18112 export LANGUAGE
18113
18114 # CDPATH.
18115 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18116
18117
18118 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18119 # ----------------------------------------
18120 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18121 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18122 # script with STATUS, using 1 if that was 0.
18123 as_fn_error ()
18124 {
18125 as_status=$1; test $as_status -eq 0 && as_status=1
18126 if test "$4"; then
18127 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18128 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18129 fi
18130 $as_echo "$as_me: error: $2" >&2
18131 as_fn_exit $as_status
18132 } # as_fn_error
18133
18134
18135 # as_fn_set_status STATUS
18136 # -----------------------
18137 # Set $? to STATUS, without forking.
18138 as_fn_set_status ()
18139 {
18140 return $1
18141 } # as_fn_set_status
18142
18143 # as_fn_exit STATUS
18144 # -----------------
18145 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18146 as_fn_exit ()
18147 {
18148 set +e
18149 as_fn_set_status $1
18150 exit $1
18151 } # as_fn_exit
18152
18153 # as_fn_unset VAR
18154 # ---------------
18155 # Portably unset VAR.
18156 as_fn_unset ()
18157 {
18158 { eval $1=; unset $1;}
18159 }
18160 as_unset=as_fn_unset
18161 # as_fn_append VAR VALUE
18162 # ----------------------
18163 # Append the text in VALUE to the end of the definition contained in VAR. Take
18164 # advantage of any shell optimizations that allow amortized linear growth over
18165 # repeated appends, instead of the typical quadratic growth present in naive
18166 # implementations.
18167 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18168 eval 'as_fn_append ()
18169 {
18170 eval $1+=\$2
18171 }'
18172 else
18173 as_fn_append ()
18174 {
18175 eval $1=\$$1\$2
18176 }
18177 fi # as_fn_append
18178
18179 # as_fn_arith ARG...
18180 # ------------------
18181 # Perform arithmetic evaluation on the ARGs, and store the result in the
18182 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18183 # must be portable across $(()) and expr.
18184 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18185 eval 'as_fn_arith ()
18186 {
18187 as_val=$(( $* ))
18188 }'
18189 else
18190 as_fn_arith ()
18191 {
18192 as_val=`expr "$@" || test $? -eq 1`
18193 }
18194 fi # as_fn_arith
18195
18196
18197 if expr a : '\(a\)' >/dev/null 2>&1 &&
18198 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18199 as_expr=expr
18200 else
18201 as_expr=false
18202 fi
18203
18204 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18205 as_basename=basename
18206 else
18207 as_basename=false
18208 fi
18209
18210 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18211 as_dirname=dirname
18212 else
18213 as_dirname=false
18214 fi
18215
18216 as_me=`$as_basename -- "$0" ||
18217 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18218 X"$0" : 'X\(//\)$' \| \
18219 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18220 $as_echo X/"$0" |
18221 sed '/^.*\/\([^/][^/]*\)\/*$/{
18222 s//\1/
18223 q
18224 }
18225 /^X\/\(\/\/\)$/{
18226 s//\1/
18227 q
18228 }
18229 /^X\/\(\/\).*/{
18230 s//\1/
18231 q
18232 }
18233 s/.*/./; q'`
18234
18235 # Avoid depending upon Character Ranges.
18236 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18237 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18238 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18239 as_cr_digits='0123456789'
18240 as_cr_alnum=$as_cr_Letters$as_cr_digits
18241
18242 ECHO_C= ECHO_N= ECHO_T=
18243 case `echo -n x` in #(((((
18244 -n*)
18245 case `echo 'xy\c'` in
18246 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18247 xy) ECHO_C='\c';;
18248 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18249 ECHO_T=' ';;
18250 esac;;
18251 *)
18252 ECHO_N='-n';;
18253 esac
18254
18255 rm -f conf$$ conf$$.exe conf$$.file
18256 if test -d conf$$.dir; then
18257 rm -f conf$$.dir/conf$$.file
18258 else
18259 rm -f conf$$.dir
18260 mkdir conf$$.dir 2>/dev/null
18261 fi
18262 if (echo >conf$$.file) 2>/dev/null; then
18263 if ln -s conf$$.file conf$$ 2>/dev/null; then
18264 as_ln_s='ln -s'
18265 # ... but there are two gotchas:
18266 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18267 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18268 # In both cases, we have to default to `cp -pR'.
18269 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18270 as_ln_s='cp -pR'
18271 elif ln conf$$.file conf$$ 2>/dev/null; then
18272 as_ln_s=ln
18273 else
18274 as_ln_s='cp -pR'
18275 fi
18276 else
18277 as_ln_s='cp -pR'
18278 fi
18279 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18280 rmdir conf$$.dir 2>/dev/null
18281
18282
18283 # as_fn_mkdir_p
18284 # -------------
18285 # Create "$as_dir" as a directory, including parents if necessary.
18286 as_fn_mkdir_p ()
18287 {
18288
18289 case $as_dir in #(
18290 -*) as_dir=./$as_dir;;
18291 esac
18292 test -d "$as_dir" || eval $as_mkdir_p || {
18293 as_dirs=
18294 while :; do
18295 case $as_dir in #(
18296 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18297 *) as_qdir=$as_dir;;
18298 esac
18299 as_dirs="'$as_qdir' $as_dirs"
18300 as_dir=`$as_dirname -- "$as_dir" ||
18301 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18302 X"$as_dir" : 'X\(//\)[^/]' \| \
18303 X"$as_dir" : 'X\(//\)$' \| \
18304 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18305 $as_echo X"$as_dir" |
18306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18307 s//\1/
18308 q
18309 }
18310 /^X\(\/\/\)[^/].*/{
18311 s//\1/
18312 q
18313 }
18314 /^X\(\/\/\)$/{
18315 s//\1/
18316 q
18317 }
18318 /^X\(\/\).*/{
18319 s//\1/
18320 q
18321 }
18322 s/.*/./; q'`
18323 test -d "$as_dir" && break
18324 done
18325 test -z "$as_dirs" || eval "mkdir $as_dirs"
18326 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18327
18328
18329 } # as_fn_mkdir_p
18330 if mkdir -p . 2>/dev/null; then
18331 as_mkdir_p='mkdir -p "$as_dir"'
18332 else
18333 test -d ./-p && rmdir ./-p
18334 as_mkdir_p=false
18335 fi
18336
18337
18338 # as_fn_executable_p FILE
18339 # -----------------------
18340 # Test if FILE is an executable regular file.
18341 as_fn_executable_p ()
18342 {
18343 test -f "$1" && test -x "$1"
18344 } # as_fn_executable_p
18345 as_test_x='test -x'
18346 as_executable_p=as_fn_executable_p
18347
18348 # Sed expression to map a string onto a valid CPP name.
18349 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18350
18351 # Sed expression to map a string onto a valid variable name.
18352 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18353
18354
18355 exec 6>&1
18356 ## ----------------------------------- ##
18357 ## Main body of $CONFIG_STATUS script. ##
18358 ## ----------------------------------- ##
18359 _ASEOF
18360 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18361
18362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18363 # Save the log message, to keep $0 and so on meaningful, and to
18364 # report actual input values of CONFIG_FILES etc. instead of their
18365 # values after options handling.
18366 ac_log="
18367 This file was extended by xf86-input-mouse $as_me 1.9.0, which was
18368 generated by GNU Autoconf 2.69. Invocation command line was
18369
18370 CONFIG_FILES = $CONFIG_FILES
18371 CONFIG_HEADERS = $CONFIG_HEADERS
18372 CONFIG_LINKS = $CONFIG_LINKS
18373 CONFIG_COMMANDS = $CONFIG_COMMANDS
18374 $ $0 $@
18375
18376 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18377 "
18378
18379 _ACEOF
18380
18381 case $ac_config_files in *"
18382 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18383 esac
18384
18385 case $ac_config_headers in *"
18386 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18387 esac
18388
18389
18390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18391 # Files that config.status was made for.
18392 config_files="$ac_config_files"
18393 config_headers="$ac_config_headers"
18394 config_commands="$ac_config_commands"
18395
18396 _ACEOF
18397
18398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18399 ac_cs_usage="\
18400 \`$as_me' instantiates files and other configuration actions
18401 from templates according to the current configuration. Unless the files
18402 and actions are specified as TAGs, all are instantiated by default.
18403
18404 Usage: $0 [OPTION]... [TAG]...
18405
18406 -h, --help print this help, then exit
18407 -V, --version print version number and configuration settings, then exit
18408 --config print configuration, then exit
18409 -q, --quiet, --silent
18410 do not print progress messages
18411 -d, --debug don't remove temporary files
18412 --recheck update $as_me by reconfiguring in the same conditions
18413 --file=FILE[:TEMPLATE]
18414 instantiate the configuration file FILE
18415 --header=FILE[:TEMPLATE]
18416 instantiate the configuration header FILE
18417
18418 Configuration files:
18419 $config_files
18420
18421 Configuration headers:
18422 $config_headers
18423
18424 Configuration commands:
18425 $config_commands
18426
18427 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18428
18429 _ACEOF
18430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18431 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18432 ac_cs_version="\\
18433 xf86-input-mouse config.status 1.9.0
18434 configured by $0, generated by GNU Autoconf 2.69,
18435 with options \\"\$ac_cs_config\\"
18436
18437 Copyright (C) 2012 Free Software Foundation, Inc.
18438 This config.status script is free software; the Free Software Foundation
18439 gives unlimited permission to copy, distribute and modify it."
18440
18441 ac_pwd='$ac_pwd'
18442 srcdir='$srcdir'
18443 INSTALL='$INSTALL'
18444 MKDIR_P='$MKDIR_P'
18445 AWK='$AWK'
18446 test -n "\$AWK" || AWK=awk
18447 _ACEOF
18448
18449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18450 # The default lists apply if the user does not specify any file.
18451 ac_need_defaults=:
18452 while test $# != 0
18453 do
18454 case $1 in
18455 --*=?*)
18456 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18457 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18458 ac_shift=:
18459 ;;
18460 --*=)
18461 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18462 ac_optarg=
18463 ac_shift=:
18464 ;;
18465 *)
18466 ac_option=$1
18467 ac_optarg=$2
18468 ac_shift=shift
18469 ;;
18470 esac
18471
18472 case $ac_option in
18473 # Handling of the options.
18474 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18475 ac_cs_recheck=: ;;
18476 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18477 $as_echo "$ac_cs_version"; exit ;;
18478 --config | --confi | --conf | --con | --co | --c )
18479 $as_echo "$ac_cs_config"; exit ;;
18480 --debug | --debu | --deb | --de | --d | -d )
18481 debug=: ;;
18482 --file | --fil | --fi | --f )
18483 $ac_shift
18484 case $ac_optarg in
18485 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18486 '') as_fn_error $? "missing file argument" ;;
18487 esac
18488 as_fn_append CONFIG_FILES " '$ac_optarg'"
18489 ac_need_defaults=false;;
18490 --header | --heade | --head | --hea )
18491 $ac_shift
18492 case $ac_optarg in
18493 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18494 esac
18495 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18496 ac_need_defaults=false;;
18497 --he | --h)
18498 # Conflict between --help and --header
18499 as_fn_error $? "ambiguous option: \`$1'
18500 Try \`$0 --help' for more information.";;
18501 --help | --hel | -h )
18502 $as_echo "$ac_cs_usage"; exit ;;
18503 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18504 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18505 ac_cs_silent=: ;;
18506
18507 # This is an error.
18508 -*) as_fn_error $? "unrecognized option: \`$1'
18509 Try \`$0 --help' for more information." ;;
18510
18511 *) as_fn_append ac_config_targets " $1"
18512 ac_need_defaults=false ;;
18513
18514 esac
18515 shift
18516 done
18517
18518 ac_configure_extra_args=
18519
18520 if $ac_cs_silent; then
18521 exec 6>/dev/null
18522 ac_configure_extra_args="$ac_configure_extra_args --silent"
18523 fi
18524
18525 _ACEOF
18526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18527 if \$ac_cs_recheck; then
18528 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18529 shift
18530 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18531 CONFIG_SHELL='$SHELL'
18532 export CONFIG_SHELL
18533 exec "\$@"
18534 fi
18535
18536 _ACEOF
18537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18538 exec 5>>config.log
18539 {
18540 echo
18541 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18542 ## Running $as_me. ##
18543 _ASBOX
18544 $as_echo "$ac_log"
18545 } >&5
18546
18547 _ACEOF
18548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18549 #
18550 # INIT-COMMANDS
18551 #
18552 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18553
18554
18555 # The HP-UX ksh and POSIX shell print the target directory to stdout
18556 # if CDPATH is set.
18557 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18558
18559 sed_quote_subst='$sed_quote_subst'
18560 double_quote_subst='$double_quote_subst'
18561 delay_variable_subst='$delay_variable_subst'
18562 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18563 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18564 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18565 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18566 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18567 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18568 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18569 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18570 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18571 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18572 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18573 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18574 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18575 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18576 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18577 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18578 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18579 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18580 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18581 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18582 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18583 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18584 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18585 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18586 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18587 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18588 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18589 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18590 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18591 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18592 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18593 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18594 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18595 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18596 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18597 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18598 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18599 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18600 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18601 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18602 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18603 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18604 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18605 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18606 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18607 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18608 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18609 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18610 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18611 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18612 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18613 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18614 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18615 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18616 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18617 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18618 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"`'
18619 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18620 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18621 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18622 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18623 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18624 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18625 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18626 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18627 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18628 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18629 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18630 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18631 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18632 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18633 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18634 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18635 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18636 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18637 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18638 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18639 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18640 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18641 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18642 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18643 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18644 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18645 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18646 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18647 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18648 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18649 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18650 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18651 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18652 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18653 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18654 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18655 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18656 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18657 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18658 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18659 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18660 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18661 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18662 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18663 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18664 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18665 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18666 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18667 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18668 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18669 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18670 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18671 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18672 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18673 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18674 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18675 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18676 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18677 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18678 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18679 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18680 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18681 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18682 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18683 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18684 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18685 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18686 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18687 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18688 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18689 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18690 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18691 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18692
18693 LTCC='$LTCC'
18694 LTCFLAGS='$LTCFLAGS'
18695 compiler='$compiler_DEFAULT'
18696
18697 # A function that is used when there is no print builtin or printf.
18698 func_fallback_echo ()
18699 {
18700 eval 'cat <<_LTECHO_EOF
18701 \$1
18702 _LTECHO_EOF'
18703 }
18704
18705 # Quote evaled strings.
18706 for var in SHELL \
18707 ECHO \
18708 PATH_SEPARATOR \
18709 SED \
18710 GREP \
18711 EGREP \
18712 FGREP \
18713 LD \
18714 NM \
18715 LN_S \
18716 lt_SP2NL \
18717 lt_NL2SP \
18718 reload_flag \
18719 OBJDUMP \
18720 deplibs_check_method \
18721 file_magic_cmd \
18722 file_magic_glob \
18723 want_nocaseglob \
18724 DLLTOOL \
18725 sharedlib_from_linklib_cmd \
18726 AR \
18727 AR_FLAGS \
18728 archiver_list_spec \
18729 STRIP \
18730 RANLIB \
18731 CC \
18732 CFLAGS \
18733 compiler \
18734 lt_cv_sys_global_symbol_pipe \
18735 lt_cv_sys_global_symbol_to_cdecl \
18736 lt_cv_sys_global_symbol_to_c_name_address \
18737 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18738 nm_file_list_spec \
18739 lt_prog_compiler_no_builtin_flag \
18740 lt_prog_compiler_pic \
18741 lt_prog_compiler_wl \
18742 lt_prog_compiler_static \
18743 lt_cv_prog_compiler_c_o \
18744 need_locks \
18745 MANIFEST_TOOL \
18746 DSYMUTIL \
18747 NMEDIT \
18748 LIPO \
18749 OTOOL \
18750 OTOOL64 \
18751 shrext_cmds \
18752 export_dynamic_flag_spec \
18753 whole_archive_flag_spec \
18754 compiler_needs_object \
18755 with_gnu_ld \
18756 allow_undefined_flag \
18757 no_undefined_flag \
18758 hardcode_libdir_flag_spec \
18759 hardcode_libdir_separator \
18760 exclude_expsyms \
18761 include_expsyms \
18762 file_list_spec \
18763 variables_saved_for_relink \
18764 libname_spec \
18765 library_names_spec \
18766 soname_spec \
18767 install_override_mode \
18768 finish_eval \
18769 old_striplib \
18770 striplib; do
18771 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18772 *[\\\\\\\`\\"\\\$]*)
18773 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18774 ;;
18775 *)
18776 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18777 ;;
18778 esac
18779 done
18780
18781 # Double-quote double-evaled strings.
18782 for var in reload_cmds \
18783 old_postinstall_cmds \
18784 old_postuninstall_cmds \
18785 old_archive_cmds \
18786 extract_expsyms_cmds \
18787 old_archive_from_new_cmds \
18788 old_archive_from_expsyms_cmds \
18789 archive_cmds \
18790 archive_expsym_cmds \
18791 module_cmds \
18792 module_expsym_cmds \
18793 export_symbols_cmds \
18794 prelink_cmds \
18795 postlink_cmds \
18796 postinstall_cmds \
18797 postuninstall_cmds \
18798 finish_cmds \
18799 sys_lib_search_path_spec \
18800 sys_lib_dlsearch_path_spec; do
18801 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18802 *[\\\\\\\`\\"\\\$]*)
18803 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18804 ;;
18805 *)
18806 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18807 ;;
18808 esac
18809 done
18810
18811 ac_aux_dir='$ac_aux_dir'
18812 xsi_shell='$xsi_shell'
18813 lt_shell_append='$lt_shell_append'
18814
18815 # See if we are running on zsh, and set the options which allow our
18816 # commands through without removal of \ escapes INIT.
18817 if test -n "\${ZSH_VERSION+set}" ; then
18818 setopt NO_GLOB_SUBST
18819 fi
18820
18821
18822 PACKAGE='$PACKAGE'
18823 VERSION='$VERSION'
18824 TIMESTAMP='$TIMESTAMP'
18825 RM='$RM'
18826 ofile='$ofile'
18827
18828
18829
18830
18831 _ACEOF
18832
18833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18834
18835 # Handling of arguments.
18836 for ac_config_target in $ac_config_targets
18837 do
18838 case $ac_config_target in
18839 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18840 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18841 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18842 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18843 "xorg-mouse.pc") CONFIG_FILES="$CONFIG_FILES xorg-mouse.pc" ;;
18844 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18845 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18846 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18847
18848 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18849 esac
18850 done
18851
18852
18853 # If the user did not use the arguments to specify the items to instantiate,
18854 # then the envvar interface is used. Set only those that are not.
18855 # We use the long form for the default assignment because of an extremely
18856 # bizarre bug on SunOS 4.1.3.
18857 if $ac_need_defaults; then
18858 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18859 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18860 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18861 fi
18862
18863 # Have a temporary directory for convenience. Make it in the build tree
18864 # simply because there is no reason against having it here, and in addition,
18865 # creating and moving files from /tmp can sometimes cause problems.
18866 # Hook for its removal unless debugging.
18867 # Note that there is a small window in which the directory will not be cleaned:
18868 # after its creation but before its name has been assigned to `$tmp'.
18869 $debug ||
18870 {
18871 tmp= ac_tmp=
18872 trap 'exit_status=$?
18873 : "${ac_tmp:=$tmp}"
18874 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18875 ' 0
18876 trap 'as_fn_exit 1' 1 2 13 15
18877 }
18878 # Create a (secure) tmp directory for tmp files.
18879
18880 {
18881 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18882 test -d "$tmp"
18883 } ||
18884 {
18885 tmp=./conf$$-$RANDOM
18886 (umask 077 && mkdir "$tmp")
18887 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18888 ac_tmp=$tmp
18889
18890 # Set up the scripts for CONFIG_FILES section.
18891 # No need to generate them if there are no CONFIG_FILES.
18892 # This happens for instance with `./config.status config.h'.
18893 if test -n "$CONFIG_FILES"; then
18894
18895
18896 ac_cr=`echo X | tr X '\015'`
18897 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18898 # But we know of no other shell where ac_cr would be empty at this
18899 # point, so we can use a bashism as a fallback.
18900 if test "x$ac_cr" = x; then
18901 eval ac_cr=\$\'\\r\'
18902 fi
18903 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18904 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18905 ac_cs_awk_cr='\\r'
18906 else
18907 ac_cs_awk_cr=$ac_cr
18908 fi
18909
18910 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18911 _ACEOF
18912
18913
18914 {
18915 echo "cat >conf$$subs.awk <<_ACEOF" &&
18916 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18917 echo "_ACEOF"
18918 } >conf$$subs.sh ||
18919 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18920 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18921 ac_delim='%!_!# '
18922 for ac_last_try in false false false false false :; do
18923 . ./conf$$subs.sh ||
18924 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18925
18926 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18927 if test $ac_delim_n = $ac_delim_num; then
18928 break
18929 elif $ac_last_try; then
18930 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18931 else
18932 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18933 fi
18934 done
18935 rm -f conf$$subs.sh
18936
18937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18938 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18939 _ACEOF
18940 sed -n '
18941 h
18942 s/^/S["/; s/!.*/"]=/
18943 p
18944 g
18945 s/^[^!]*!//
18946 :repl
18947 t repl
18948 s/'"$ac_delim"'$//
18949 t delim
18950 :nl
18951 h
18952 s/\(.\{148\}\)..*/\1/
18953 t more1
18954 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18955 p
18956 n
18957 b repl
18958 :more1
18959 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18960 p
18961 g
18962 s/.\{148\}//
18963 t nl
18964 :delim
18965 h
18966 s/\(.\{148\}\)..*/\1/
18967 t more2
18968 s/["\\]/\\&/g; s/^/"/; s/$/"/
18969 p
18970 b
18971 :more2
18972 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18973 p
18974 g
18975 s/.\{148\}//
18976 t delim
18977 ' <conf$$subs.awk | sed '
18978 /^[^""]/{
18979 N
18980 s/\n//
18981 }
18982 ' >>$CONFIG_STATUS || ac_write_fail=1
18983 rm -f conf$$subs.awk
18984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18985 _ACAWK
18986 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18987 for (key in S) S_is_set[key] = 1
18988 FS = ""
18989
18990 }
18991 {
18992 line = $ 0
18993 nfields = split(line, field, "@")
18994 substed = 0
18995 len = length(field[1])
18996 for (i = 2; i < nfields; i++) {
18997 key = field[i]
18998 keylen = length(key)
18999 if (S_is_set[key]) {
19000 value = S[key]
19001 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19002 len += length(value) + length(field[++i])
19003 substed = 1
19004 } else
19005 len += 1 + keylen
19006 }
19007
19008 print line
19009 }
19010
19011 _ACAWK
19012 _ACEOF
19013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19014 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19015 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19016 else
19017 cat
19018 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19019 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19020 _ACEOF
19021
19022 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19023 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19024 # trailing colons and then remove the whole line if VPATH becomes empty
19025 # (actually we leave an empty line to preserve line numbers).
19026 if test "x$srcdir" = x.; then
19027 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19028 h
19029 s///
19030 s/^/:/
19031 s/[ ]*$/:/
19032 s/:\$(srcdir):/:/g
19033 s/:\${srcdir}:/:/g
19034 s/:@srcdir@:/:/g
19035 s/^:*//
19036 s/:*$//
19037 x
19038 s/\(=[ ]*\).*/\1/
19039 G
19040 s/\n//
19041 s/^[^=]*=[ ]*$//
19042 }'
19043 fi
19044
19045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19046 fi # test -n "$CONFIG_FILES"
19047
19048 # Set up the scripts for CONFIG_HEADERS section.
19049 # No need to generate them if there are no CONFIG_HEADERS.
19050 # This happens for instance with `./config.status Makefile'.
19051 if test -n "$CONFIG_HEADERS"; then
19052 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19053 BEGIN {
19054 _ACEOF
19055
19056 # Transform confdefs.h into an awk script `defines.awk', embedded as
19057 # here-document in config.status, that substitutes the proper values into
19058 # config.h.in to produce config.h.
19059
19060 # Create a delimiter string that does not exist in confdefs.h, to ease
19061 # handling of long lines.
19062 ac_delim='%!_!# '
19063 for ac_last_try in false false :; do
19064 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19065 if test -z "$ac_tt"; then
19066 break
19067 elif $ac_last_try; then
19068 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19069 else
19070 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19071 fi
19072 done
19073
19074 # For the awk script, D is an array of macro values keyed by name,
19075 # likewise P contains macro parameters if any. Preserve backslash
19076 # newline sequences.
19077
19078 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19079 sed -n '
19080 s/.\{148\}/&'"$ac_delim"'/g
19081 t rset
19082 :rset
19083 s/^[ ]*#[ ]*define[ ][ ]*/ /
19084 t def
19085 d
19086 :def
19087 s/\\$//
19088 t bsnl
19089 s/["\\]/\\&/g
19090 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19091 D["\1"]=" \3"/p
19092 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19093 d
19094 :bsnl
19095 s/["\\]/\\&/g
19096 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19097 D["\1"]=" \3\\\\\\n"\\/p
19098 t cont
19099 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19100 t cont
19101 d
19102 :cont
19103 n
19104 s/.\{148\}/&'"$ac_delim"'/g
19105 t clear
19106 :clear
19107 s/\\$//
19108 t bsnlc
19109 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19110 d
19111 :bsnlc
19112 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19113 b cont
19114 ' <confdefs.h | sed '
19115 s/'"$ac_delim"'/"\\\
19116 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19117
19118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19119 for (key in D) D_is_set[key] = 1
19120 FS = ""
19121 }
19122 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19123 line = \$ 0
19124 split(line, arg, " ")
19125 if (arg[1] == "#") {
19126 defundef = arg[2]
19127 mac1 = arg[3]
19128 } else {
19129 defundef = substr(arg[1], 2)
19130 mac1 = arg[2]
19131 }
19132 split(mac1, mac2, "(") #)
19133 macro = mac2[1]
19134 prefix = substr(line, 1, index(line, defundef) - 1)
19135 if (D_is_set[macro]) {
19136 # Preserve the white space surrounding the "#".
19137 print prefix "define", macro P[macro] D[macro]
19138 next
19139 } else {
19140 # Replace #undef with comments. This is necessary, for example,
19141 # in the case of _POSIX_SOURCE, which is predefined and required
19142 # on some systems where configure will not decide to define it.
19143 if (defundef == "undef") {
19144 print "/*", prefix defundef, macro, "*/"
19145 next
19146 }
19147 }
19148 }
19149 { print }
19150 _ACAWK
19151 _ACEOF
19152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19153 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19154 fi # test -n "$CONFIG_HEADERS"
19155
19156
19157 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19158 shift
19159 for ac_tag
19160 do
19161 case $ac_tag in
19162 :[FHLC]) ac_mode=$ac_tag; continue;;
19163 esac
19164 case $ac_mode$ac_tag in
19165 :[FHL]*:*);;
19166 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19167 :[FH]-) ac_tag=-:-;;
19168 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19169 esac
19170 ac_save_IFS=$IFS
19171 IFS=:
19172 set x $ac_tag
19173 IFS=$ac_save_IFS
19174 shift
19175 ac_file=$1
19176 shift
19177
19178 case $ac_mode in
19179 :L) ac_source=$1;;
19180 :[FH])
19181 ac_file_inputs=
19182 for ac_f
19183 do
19184 case $ac_f in
19185 -) ac_f="$ac_tmp/stdin";;
19186 *) # Look for the file first in the build tree, then in the source tree
19187 # (if the path is not absolute). The absolute path cannot be DOS-style,
19188 # because $ac_f cannot contain `:'.
19189 test -f "$ac_f" ||
19190 case $ac_f in
19191 [\\/$]*) false;;
19192 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19193 esac ||
19194 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19195 esac
19196 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19197 as_fn_append ac_file_inputs " '$ac_f'"
19198 done
19199
19200 # Let's still pretend it is `configure' which instantiates (i.e., don't
19201 # use $as_me), people would be surprised to read:
19202 # /* config.h. Generated by config.status. */
19203 configure_input='Generated from '`
19204 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19205 `' by configure.'
19206 if test x"$ac_file" != x-; then
19207 configure_input="$ac_file. $configure_input"
19208 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19209 $as_echo "$as_me: creating $ac_file" >&6;}
19210 fi
19211 # Neutralize special characters interpreted by sed in replacement strings.
19212 case $configure_input in #(
19213 *\&* | *\|* | *\\* )
19214 ac_sed_conf_input=`$as_echo "$configure_input" |
19215 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19216 *) ac_sed_conf_input=$configure_input;;
19217 esac
19218
19219 case $ac_tag in
19220 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19221 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19222 esac
19223 ;;
19224 esac
19225
19226 ac_dir=`$as_dirname -- "$ac_file" ||
19227 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19228 X"$ac_file" : 'X\(//\)[^/]' \| \
19229 X"$ac_file" : 'X\(//\)$' \| \
19230 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19231 $as_echo X"$ac_file" |
19232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19233 s//\1/
19234 q
19235 }
19236 /^X\(\/\/\)[^/].*/{
19237 s//\1/
19238 q
19239 }
19240 /^X\(\/\/\)$/{
19241 s//\1/
19242 q
19243 }
19244 /^X\(\/\).*/{
19245 s//\1/
19246 q
19247 }
19248 s/.*/./; q'`
19249 as_dir="$ac_dir"; as_fn_mkdir_p
19250 ac_builddir=.
19251
19252 case "$ac_dir" in
19253 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19254 *)
19255 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19256 # A ".." for each directory in $ac_dir_suffix.
19257 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19258 case $ac_top_builddir_sub in
19259 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19260 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19261 esac ;;
19262 esac
19263 ac_abs_top_builddir=$ac_pwd
19264 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19265 # for backward compatibility:
19266 ac_top_builddir=$ac_top_build_prefix
19267
19268 case $srcdir in
19269 .) # We are building in place.
19270 ac_srcdir=.
19271 ac_top_srcdir=$ac_top_builddir_sub
19272 ac_abs_top_srcdir=$ac_pwd ;;
19273 [\\/]* | ?:[\\/]* ) # Absolute name.
19274 ac_srcdir=$srcdir$ac_dir_suffix;
19275 ac_top_srcdir=$srcdir
19276 ac_abs_top_srcdir=$srcdir ;;
19277 *) # Relative name.
19278 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19279 ac_top_srcdir=$ac_top_build_prefix$srcdir
19280 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19281 esac
19282 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19283
19284
19285 case $ac_mode in
19286 :F)
19287 #
19288 # CONFIG_FILE
19289 #
19290
19291 case $INSTALL in
19292 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19293 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19294 esac
19295 ac_MKDIR_P=$MKDIR_P
19296 case $MKDIR_P in
19297 [\\/$]* | ?:[\\/]* ) ;;
19298 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19299 esac
19300 _ACEOF
19301
19302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19303 # If the template does not know about datarootdir, expand it.
19304 # FIXME: This hack should be removed a few years after 2.60.
19305 ac_datarootdir_hack=; ac_datarootdir_seen=
19306 ac_sed_dataroot='
19307 /datarootdir/ {
19308 p
19309 q
19310 }
19311 /@datadir@/p
19312 /@docdir@/p
19313 /@infodir@/p
19314 /@localedir@/p
19315 /@mandir@/p'
19316 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19317 *datarootdir*) ac_datarootdir_seen=yes;;
19318 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19320 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19321 _ACEOF
19322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19323 ac_datarootdir_hack='
19324 s&@datadir@&$datadir&g
19325 s&@docdir@&$docdir&g
19326 s&@infodir@&$infodir&g
19327 s&@localedir@&$localedir&g
19328 s&@mandir@&$mandir&g
19329 s&\\\${datarootdir}&$datarootdir&g' ;;
19330 esac
19331 _ACEOF
19332
19333 # Neutralize VPATH when `$srcdir' = `.'.
19334 # Shell code in configure.ac might set extrasub.
19335 # FIXME: do we really want to maintain this feature?
19336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19337 ac_sed_extra="$ac_vpsub
19338 $extrasub
19339 _ACEOF
19340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19341 :t
19342 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19343 s|@configure_input@|$ac_sed_conf_input|;t t
19344 s&@top_builddir@&$ac_top_builddir_sub&;t t
19345 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19346 s&@srcdir@&$ac_srcdir&;t t
19347 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19348 s&@top_srcdir@&$ac_top_srcdir&;t t
19349 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19350 s&@builddir@&$ac_builddir&;t t
19351 s&@abs_builddir@&$ac_abs_builddir&;t t
19352 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19353 s&@INSTALL@&$ac_INSTALL&;t t
19354 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19355 $ac_datarootdir_hack
19356 "
19357 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19358 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19359
19360 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19361 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19362 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19363 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19365 which seems to be undefined. Please make sure it is defined" >&5
19366 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19367 which seems to be undefined. Please make sure it is defined" >&2;}
19368
19369 rm -f "$ac_tmp/stdin"
19370 case $ac_file in
19371 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19372 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19373 esac \
19374 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19375 ;;
19376 :H)
19377 #
19378 # CONFIG_HEADER
19379 #
19380 if test x"$ac_file" != x-; then
19381 {
19382 $as_echo "/* $configure_input */" \
19383 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19384 } >"$ac_tmp/config.h" \
19385 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19386 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19387 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19388 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19389 else
19390 rm -f "$ac_file"
19391 mv "$ac_tmp/config.h" "$ac_file" \
19392 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19393 fi
19394 else
19395 $as_echo "/* $configure_input */" \
19396 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19397 || as_fn_error $? "could not create -" "$LINENO" 5
19398 fi
19399 # Compute "$ac_file"'s index in $config_headers.
19400 _am_arg="$ac_file"
19401 _am_stamp_count=1
19402 for _am_header in $config_headers :; do
19403 case $_am_header in
19404 $_am_arg | $_am_arg:* )
19405 break ;;
19406 * )
19407 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19408 esac
19409 done
19410 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19411 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19412 X"$_am_arg" : 'X\(//\)[^/]' \| \
19413 X"$_am_arg" : 'X\(//\)$' \| \
19414 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19415 $as_echo X"$_am_arg" |
19416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19417 s//\1/
19418 q
19419 }
19420 /^X\(\/\/\)[^/].*/{
19421 s//\1/
19422 q
19423 }
19424 /^X\(\/\/\)$/{
19425 s//\1/
19426 q
19427 }
19428 /^X\(\/\).*/{
19429 s//\1/
19430 q
19431 }
19432 s/.*/./; q'`/stamp-h$_am_stamp_count
19433 ;;
19434
19435 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19436 $as_echo "$as_me: executing $ac_file commands" >&6;}
19437 ;;
19438 esac
19439
19440
19441 case $ac_file$ac_mode in
19442 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19443 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19444 # are listed without --file. Let's play safe and only enable the eval
19445 # if we detect the quoting.
19446 case $CONFIG_FILES in
19447 *\'*) eval set x "$CONFIG_FILES" ;;
19448 *) set x $CONFIG_FILES ;;
19449 esac
19450 shift
19451 for mf
19452 do
19453 # Strip MF so we end up with the name of the file.
19454 mf=`echo "$mf" | sed -e 's/:.*$//'`
19455 # Check whether this is an Automake generated Makefile or not.
19456 # We used to match only the files named 'Makefile.in', but
19457 # some people rename them; so instead we look at the file content.
19458 # Grep'ing the first line is not enough: some people post-process
19459 # each Makefile.in and add a new line on top of each file to say so.
19460 # Grep'ing the whole file is not good either: AIX grep has a line
19461 # limit of 2048, but all sed's we know have understand at least 4000.
19462 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19463 dirpart=`$as_dirname -- "$mf" ||
19464 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19465 X"$mf" : 'X\(//\)[^/]' \| \
19466 X"$mf" : 'X\(//\)$' \| \
19467 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19468 $as_echo X"$mf" |
19469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19470 s//\1/
19471 q
19472 }
19473 /^X\(\/\/\)[^/].*/{
19474 s//\1/
19475 q
19476 }
19477 /^X\(\/\/\)$/{
19478 s//\1/
19479 q
19480 }
19481 /^X\(\/\).*/{
19482 s//\1/
19483 q
19484 }
19485 s/.*/./; q'`
19486 else
19487 continue
19488 fi
19489 # Extract the definition of DEPDIR, am__include, and am__quote
19490 # from the Makefile without running 'make'.
19491 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19492 test -z "$DEPDIR" && continue
19493 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19494 test -z "am__include" && continue
19495 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19496 # Find all dependency output files, they are included files with
19497 # $(DEPDIR) in their names. We invoke sed twice because it is the
19498 # simplest approach to changing $(DEPDIR) to its actual value in the
19499 # expansion.
19500 for file in `sed -n "
19501 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19502 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19503 # Make sure the directory exists.
19504 test -f "$dirpart/$file" && continue
19505 fdir=`$as_dirname -- "$file" ||
19506 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19507 X"$file" : 'X\(//\)[^/]' \| \
19508 X"$file" : 'X\(//\)$' \| \
19509 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19510 $as_echo X"$file" |
19511 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19512 s//\1/
19513 q
19514 }
19515 /^X\(\/\/\)[^/].*/{
19516 s//\1/
19517 q
19518 }
19519 /^X\(\/\/\)$/{
19520 s//\1/
19521 q
19522 }
19523 /^X\(\/\).*/{
19524 s//\1/
19525 q
19526 }
19527 s/.*/./; q'`
19528 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19529 # echo "creating $dirpart/$file"
19530 echo '# dummy' > "$dirpart/$file"
19531 done
19532 done
19533 }
19534 ;;
19535 "libtool":C)
19536
19537 # See if we are running on zsh, and set the options which allow our
19538 # commands through without removal of \ escapes.
19539 if test -n "${ZSH_VERSION+set}" ; then
19540 setopt NO_GLOB_SUBST
19541 fi
19542
19543 cfgfile="${ofile}T"
19544 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19545 $RM "$cfgfile"
19546
19547 cat <<_LT_EOF >> "$cfgfile"
19548 #! $SHELL
19549
19550 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19551 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19552 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19553 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19554 #
19555 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19556 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19557 # Foundation, Inc.
19558 # Written by Gordon Matzigkeit, 1996
19559 #
19560 # This file is part of GNU Libtool.
19561 #
19562 # GNU Libtool is free software; you can redistribute it and/or
19563 # modify it under the terms of the GNU General Public License as
19564 # published by the Free Software Foundation; either version 2 of
19565 # the License, or (at your option) any later version.
19566 #
19567 # As a special exception to the GNU General Public License,
19568 # if you distribute this file as part of a program or library that
19569 # is built using GNU Libtool, you may include this file under the
19570 # same distribution terms that you use for the rest of that program.
19571 #
19572 # GNU Libtool is distributed in the hope that it will be useful,
19573 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19574 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19575 # GNU General Public License for more details.
19576 #
19577 # You should have received a copy of the GNU General Public License
19578 # along with GNU Libtool; see the file COPYING. If not, a copy
19579 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19580 # obtained by writing to the Free Software Foundation, Inc.,
19581 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19582
19583
19584 # The names of the tagged configurations supported by this script.
19585 available_tags=""
19586
19587 # ### BEGIN LIBTOOL CONFIG
19588
19589 # Whether or not to build static libraries.
19590 build_old_libs=$enable_static
19591
19592 # Which release of libtool.m4 was used?
19593 macro_version=$macro_version
19594 macro_revision=$macro_revision
19595
19596 # Whether or not to build shared libraries.
19597 build_libtool_libs=$enable_shared
19598
19599 # What type of objects to build.
19600 pic_mode=$pic_mode
19601
19602 # Whether or not to optimize for fast installation.
19603 fast_install=$enable_fast_install
19604
19605 # Shell to use when invoking shell scripts.
19606 SHELL=$lt_SHELL
19607
19608 # An echo program that protects backslashes.
19609 ECHO=$lt_ECHO
19610
19611 # The PATH separator for the build system.
19612 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19613
19614 # The host system.
19615 host_alias=$host_alias
19616 host=$host
19617 host_os=$host_os
19618
19619 # The build system.
19620 build_alias=$build_alias
19621 build=$build
19622 build_os=$build_os
19623
19624 # A sed program that does not truncate output.
19625 SED=$lt_SED
19626
19627 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19628 Xsed="\$SED -e 1s/^X//"
19629
19630 # A grep program that handles long lines.
19631 GREP=$lt_GREP
19632
19633 # An ERE matcher.
19634 EGREP=$lt_EGREP
19635
19636 # A literal string matcher.
19637 FGREP=$lt_FGREP
19638
19639 # A BSD- or MS-compatible name lister.
19640 NM=$lt_NM
19641
19642 # Whether we need soft or hard links.
19643 LN_S=$lt_LN_S
19644
19645 # What is the maximum length of a command?
19646 max_cmd_len=$max_cmd_len
19647
19648 # Object file suffix (normally "o").
19649 objext=$ac_objext
19650
19651 # Executable file suffix (normally "").
19652 exeext=$exeext
19653
19654 # whether the shell understands "unset".
19655 lt_unset=$lt_unset
19656
19657 # turn spaces into newlines.
19658 SP2NL=$lt_lt_SP2NL
19659
19660 # turn newlines into spaces.
19661 NL2SP=$lt_lt_NL2SP
19662
19663 # convert \$build file names to \$host format.
19664 to_host_file_cmd=$lt_cv_to_host_file_cmd
19665
19666 # convert \$build files to toolchain format.
19667 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19668
19669 # An object symbol dumper.
19670 OBJDUMP=$lt_OBJDUMP
19671
19672 # Method to check whether dependent libraries are shared objects.
19673 deplibs_check_method=$lt_deplibs_check_method
19674
19675 # Command to use when deplibs_check_method = "file_magic".
19676 file_magic_cmd=$lt_file_magic_cmd
19677
19678 # How to find potential files when deplibs_check_method = "file_magic".
19679 file_magic_glob=$lt_file_magic_glob
19680
19681 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19682 want_nocaseglob=$lt_want_nocaseglob
19683
19684 # DLL creation program.
19685 DLLTOOL=$lt_DLLTOOL
19686
19687 # Command to associate shared and link libraries.
19688 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19689
19690 # The archiver.
19691 AR=$lt_AR
19692
19693 # Flags to create an archive.
19694 AR_FLAGS=$lt_AR_FLAGS
19695
19696 # How to feed a file listing to the archiver.
19697 archiver_list_spec=$lt_archiver_list_spec
19698
19699 # A symbol stripping program.
19700 STRIP=$lt_STRIP
19701
19702 # Commands used to install an old-style archive.
19703 RANLIB=$lt_RANLIB
19704 old_postinstall_cmds=$lt_old_postinstall_cmds
19705 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19706
19707 # Whether to use a lock for old archive extraction.
19708 lock_old_archive_extraction=$lock_old_archive_extraction
19709
19710 # A C compiler.
19711 LTCC=$lt_CC
19712
19713 # LTCC compiler flags.
19714 LTCFLAGS=$lt_CFLAGS
19715
19716 # Take the output of nm and produce a listing of raw symbols and C names.
19717 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19718
19719 # Transform the output of nm in a proper C declaration.
19720 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19721
19722 # Transform the output of nm in a C name address pair.
19723 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19724
19725 # Transform the output of nm in a C name address pair when lib prefix is needed.
19726 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19727
19728 # Specify filename containing input files for \$NM.
19729 nm_file_list_spec=$lt_nm_file_list_spec
19730
19731 # The root where to search for dependent libraries,and in which our libraries should be installed.
19732 lt_sysroot=$lt_sysroot
19733
19734 # The name of the directory that contains temporary libtool files.
19735 objdir=$objdir
19736
19737 # Used to examine libraries when file_magic_cmd begins with "file".
19738 MAGIC_CMD=$MAGIC_CMD
19739
19740 # Must we lock files when doing compilation?
19741 need_locks=$lt_need_locks
19742
19743 # Manifest tool.
19744 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19745
19746 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19747 DSYMUTIL=$lt_DSYMUTIL
19748
19749 # Tool to change global to local symbols on Mac OS X.
19750 NMEDIT=$lt_NMEDIT
19751
19752 # Tool to manipulate fat objects and archives on Mac OS X.
19753 LIPO=$lt_LIPO
19754
19755 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19756 OTOOL=$lt_OTOOL
19757
19758 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19759 OTOOL64=$lt_OTOOL64
19760
19761 # Old archive suffix (normally "a").
19762 libext=$libext
19763
19764 # Shared library suffix (normally ".so").
19765 shrext_cmds=$lt_shrext_cmds
19766
19767 # The commands to extract the exported symbol list from a shared archive.
19768 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19769
19770 # Variables whose values should be saved in libtool wrapper scripts and
19771 # restored at link time.
19772 variables_saved_for_relink=$lt_variables_saved_for_relink
19773
19774 # Do we need the "lib" prefix for modules?
19775 need_lib_prefix=$need_lib_prefix
19776
19777 # Do we need a version for libraries?
19778 need_version=$need_version
19779
19780 # Library versioning type.
19781 version_type=$version_type
19782
19783 # Shared library runtime path variable.
19784 runpath_var=$runpath_var
19785
19786 # Shared library path variable.
19787 shlibpath_var=$shlibpath_var
19788
19789 # Is shlibpath searched before the hard-coded library search path?
19790 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19791
19792 # Format of library name prefix.
19793 libname_spec=$lt_libname_spec
19794
19795 # List of archive names. First name is the real one, the rest are links.
19796 # The last name is the one that the linker finds with -lNAME
19797 library_names_spec=$lt_library_names_spec
19798
19799 # The coded name of the library, if different from the real name.
19800 soname_spec=$lt_soname_spec
19801
19802 # Permission mode override for installation of shared libraries.
19803 install_override_mode=$lt_install_override_mode
19804
19805 # Command to use after installation of a shared archive.
19806 postinstall_cmds=$lt_postinstall_cmds
19807
19808 # Command to use after uninstallation of a shared archive.
19809 postuninstall_cmds=$lt_postuninstall_cmds
19810
19811 # Commands used to finish a libtool library installation in a directory.
19812 finish_cmds=$lt_finish_cmds
19813
19814 # As "finish_cmds", except a single script fragment to be evaled but
19815 # not shown.
19816 finish_eval=$lt_finish_eval
19817
19818 # Whether we should hardcode library paths into libraries.
19819 hardcode_into_libs=$hardcode_into_libs
19820
19821 # Compile-time system search path for libraries.
19822 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19823
19824 # Run-time system search path for libraries.
19825 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19826
19827 # Whether dlopen is supported.
19828 dlopen_support=$enable_dlopen
19829
19830 # Whether dlopen of programs is supported.
19831 dlopen_self=$enable_dlopen_self
19832
19833 # Whether dlopen of statically linked programs is supported.
19834 dlopen_self_static=$enable_dlopen_self_static
19835
19836 # Commands to strip libraries.
19837 old_striplib=$lt_old_striplib
19838 striplib=$lt_striplib
19839
19840
19841 # The linker used to build libraries.
19842 LD=$lt_LD
19843
19844 # How to create reloadable object files.
19845 reload_flag=$lt_reload_flag
19846 reload_cmds=$lt_reload_cmds
19847
19848 # Commands used to build an old-style archive.
19849 old_archive_cmds=$lt_old_archive_cmds
19850
19851 # A language specific compiler.
19852 CC=$lt_compiler
19853
19854 # Is the compiler the GNU compiler?
19855 with_gcc=$GCC
19856
19857 # Compiler flag to turn off builtin functions.
19858 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19859
19860 # Additional compiler flags for building library objects.
19861 pic_flag=$lt_lt_prog_compiler_pic
19862
19863 # How to pass a linker flag through the compiler.
19864 wl=$lt_lt_prog_compiler_wl
19865
19866 # Compiler flag to prevent dynamic linking.
19867 link_static_flag=$lt_lt_prog_compiler_static
19868
19869 # Does compiler simultaneously support -c and -o options?
19870 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19871
19872 # Whether or not to add -lc for building shared libraries.
19873 build_libtool_need_lc=$archive_cmds_need_lc
19874
19875 # Whether or not to disallow shared libs when runtime libs are static.
19876 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19877
19878 # Compiler flag to allow reflexive dlopens.
19879 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19880
19881 # Compiler flag to generate shared objects directly from archives.
19882 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19883
19884 # Whether the compiler copes with passing no objects directly.
19885 compiler_needs_object=$lt_compiler_needs_object
19886
19887 # Create an old-style archive from a shared archive.
19888 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19889
19890 # Create a temporary old-style archive to link instead of a shared archive.
19891 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19892
19893 # Commands used to build a shared archive.
19894 archive_cmds=$lt_archive_cmds
19895 archive_expsym_cmds=$lt_archive_expsym_cmds
19896
19897 # Commands used to build a loadable module if different from building
19898 # a shared archive.
19899 module_cmds=$lt_module_cmds
19900 module_expsym_cmds=$lt_module_expsym_cmds
19901
19902 # Whether we are building with GNU ld or not.
19903 with_gnu_ld=$lt_with_gnu_ld
19904
19905 # Flag that allows shared libraries with undefined symbols to be built.
19906 allow_undefined_flag=$lt_allow_undefined_flag
19907
19908 # Flag that enforces no undefined symbols.
19909 no_undefined_flag=$lt_no_undefined_flag
19910
19911 # Flag to hardcode \$libdir into a binary during linking.
19912 # This must work even if \$libdir does not exist
19913 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19914
19915 # Whether we need a single "-rpath" flag with a separated argument.
19916 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19917
19918 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19919 # DIR into the resulting binary.
19920 hardcode_direct=$hardcode_direct
19921
19922 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19923 # DIR into the resulting binary and the resulting library dependency is
19924 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19925 # library is relocated.
19926 hardcode_direct_absolute=$hardcode_direct_absolute
19927
19928 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19929 # into the resulting binary.
19930 hardcode_minus_L=$hardcode_minus_L
19931
19932 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19933 # into the resulting binary.
19934 hardcode_shlibpath_var=$hardcode_shlibpath_var
19935
19936 # Set to "yes" if building a shared library automatically hardcodes DIR
19937 # into the library and all subsequent libraries and executables linked
19938 # against it.
19939 hardcode_automatic=$hardcode_automatic
19940
19941 # Set to yes if linker adds runtime paths of dependent libraries
19942 # to runtime path list.
19943 inherit_rpath=$inherit_rpath
19944
19945 # Whether libtool must link a program against all its dependency libraries.
19946 link_all_deplibs=$link_all_deplibs
19947
19948 # Set to "yes" if exported symbols are required.
19949 always_export_symbols=$always_export_symbols
19950
19951 # The commands to list exported symbols.
19952 export_symbols_cmds=$lt_export_symbols_cmds
19953
19954 # Symbols that should not be listed in the preloaded symbols.
19955 exclude_expsyms=$lt_exclude_expsyms
19956
19957 # Symbols that must always be exported.
19958 include_expsyms=$lt_include_expsyms
19959
19960 # Commands necessary for linking programs (against libraries) with templates.
19961 prelink_cmds=$lt_prelink_cmds
19962
19963 # Commands necessary for finishing linking programs.
19964 postlink_cmds=$lt_postlink_cmds
19965
19966 # Specify filename containing input files.
19967 file_list_spec=$lt_file_list_spec
19968
19969 # How to hardcode a shared library path into an executable.
19970 hardcode_action=$hardcode_action
19971
19972 # ### END LIBTOOL CONFIG
19973
19974 _LT_EOF
19975
19976 case $host_os in
19977 aix3*)
19978 cat <<\_LT_EOF >> "$cfgfile"
19979 # AIX sometimes has problems with the GCC collect2 program. For some
19980 # reason, if we set the COLLECT_NAMES environment variable, the problems
19981 # vanish in a puff of smoke.
19982 if test "X${COLLECT_NAMES+set}" != Xset; then
19983 COLLECT_NAMES=
19984 export COLLECT_NAMES
19985 fi
19986 _LT_EOF
19987 ;;
19988 esac
19989
19990
19991 ltmain="$ac_aux_dir/ltmain.sh"
19992
19993
19994 # We use sed instead of cat because bash on DJGPP gets confused if
19995 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19996 # text mode, it properly converts lines to CR/LF. This bash problem
19997 # is reportedly fixed, but why not run on old versions too?
19998 sed '$q' "$ltmain" >> "$cfgfile" \
19999 || (rm -f "$cfgfile"; exit 1)
20000
20001 if test x"$xsi_shell" = xyes; then
20002 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20003 func_dirname ()\
20004 {\
20005 \ case ${1} in\
20006 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20007 \ * ) func_dirname_result="${3}" ;;\
20008 \ esac\
20009 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20010 && mv -f "$cfgfile.tmp" "$cfgfile" \
20011 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20012 test 0 -eq $? || _lt_function_replace_fail=:
20013
20014
20015 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20016 func_basename ()\
20017 {\
20018 \ func_basename_result="${1##*/}"\
20019 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20020 && mv -f "$cfgfile.tmp" "$cfgfile" \
20021 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20022 test 0 -eq $? || _lt_function_replace_fail=:
20023
20024
20025 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20026 func_dirname_and_basename ()\
20027 {\
20028 \ case ${1} in\
20029 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20030 \ * ) func_dirname_result="${3}" ;;\
20031 \ esac\
20032 \ func_basename_result="${1##*/}"\
20033 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20034 && mv -f "$cfgfile.tmp" "$cfgfile" \
20035 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20036 test 0 -eq $? || _lt_function_replace_fail=:
20037
20038
20039 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20040 func_stripname ()\
20041 {\
20042 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20043 \ # positional parameters, so assign one to ordinary parameter first.\
20044 \ func_stripname_result=${3}\
20045 \ func_stripname_result=${func_stripname_result#"${1}"}\
20046 \ func_stripname_result=${func_stripname_result%"${2}"}\
20047 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20048 && mv -f "$cfgfile.tmp" "$cfgfile" \
20049 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20050 test 0 -eq $? || _lt_function_replace_fail=:
20051
20052
20053 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20054 func_split_long_opt ()\
20055 {\
20056 \ func_split_long_opt_name=${1%%=*}\
20057 \ func_split_long_opt_arg=${1#*=}\
20058 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20059 && mv -f "$cfgfile.tmp" "$cfgfile" \
20060 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20061 test 0 -eq $? || _lt_function_replace_fail=:
20062
20063
20064 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20065 func_split_short_opt ()\
20066 {\
20067 \ func_split_short_opt_arg=${1#??}\
20068 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20069 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20070 && mv -f "$cfgfile.tmp" "$cfgfile" \
20071 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20072 test 0 -eq $? || _lt_function_replace_fail=:
20073
20074
20075 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20076 func_lo2o ()\
20077 {\
20078 \ case ${1} in\
20079 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20080 \ *) func_lo2o_result=${1} ;;\
20081 \ esac\
20082 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20083 && mv -f "$cfgfile.tmp" "$cfgfile" \
20084 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20085 test 0 -eq $? || _lt_function_replace_fail=:
20086
20087
20088 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20089 func_xform ()\
20090 {\
20091 func_xform_result=${1%.*}.lo\
20092 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20093 && mv -f "$cfgfile.tmp" "$cfgfile" \
20094 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20095 test 0 -eq $? || _lt_function_replace_fail=:
20096
20097
20098 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20099 func_arith ()\
20100 {\
20101 func_arith_result=$(( $* ))\
20102 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20103 && mv -f "$cfgfile.tmp" "$cfgfile" \
20104 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20105 test 0 -eq $? || _lt_function_replace_fail=:
20106
20107
20108 sed -e '/^func_len ()$/,/^} # func_len /c\
20109 func_len ()\
20110 {\
20111 func_len_result=${#1}\
20112 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20113 && mv -f "$cfgfile.tmp" "$cfgfile" \
20114 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20115 test 0 -eq $? || _lt_function_replace_fail=:
20116
20117 fi
20118
20119 if test x"$lt_shell_append" = xyes; then
20120 sed -e '/^func_append ()$/,/^} # func_append /c\
20121 func_append ()\
20122 {\
20123 eval "${1}+=\\${2}"\
20124 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20125 && mv -f "$cfgfile.tmp" "$cfgfile" \
20126 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20127 test 0 -eq $? || _lt_function_replace_fail=:
20128
20129
20130 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20131 func_append_quoted ()\
20132 {\
20133 \ func_quote_for_eval "${2}"\
20134 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20135 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20136 && mv -f "$cfgfile.tmp" "$cfgfile" \
20137 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20138 test 0 -eq $? || _lt_function_replace_fail=:
20139
20140
20141 # Save a `func_append' function call where possible by direct use of '+='
20142 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20143 && mv -f "$cfgfile.tmp" "$cfgfile" \
20144 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20145 test 0 -eq $? || _lt_function_replace_fail=:
20146 else
20147 # Save a `func_append' function call even when '+=' is not available
20148 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20149 && mv -f "$cfgfile.tmp" "$cfgfile" \
20150 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20151 test 0 -eq $? || _lt_function_replace_fail=:
20152 fi
20153
20154 if test x"$_lt_function_replace_fail" = x":"; then
20155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20156 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20157 fi
20158
20159
20160 mv -f "$cfgfile" "$ofile" ||
20161 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20162 chmod +x "$ofile"
20163
20164 ;;
20165
20166 esac
20167 done # for ac_tag
20168
20169
20170 as_fn_exit 0
20171 _ACEOF
20172 ac_clean_files=$ac_clean_files_save
20173
20174 test $ac_write_fail = 0 ||
20175 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20176
20177
20178 # configure is writing to config.log, and then calls config.status.
20179 # config.status does its own redirection, appending to config.log.
20180 # Unfortunately, on DOS this fails, as config.log is still kept open
20181 # by configure, so config.status won't be able to write to it; its
20182 # output is simply discarded. So we exec the FD to /dev/null,
20183 # effectively closing config.log, so it can be properly (re)opened and
20184 # appended to by config.status. When coming back to configure, we
20185 # need to make the FD available again.
20186 if test "$no_create" != yes; then
20187 ac_cs_success=:
20188 ac_config_status_args=
20189 test "$silent" = yes &&
20190 ac_config_status_args="$ac_config_status_args --quiet"
20191 exec 5>/dev/null
20192 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20193 exec 5>>config.log
20194 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20195 # would make configure fail if this is the last instruction.
20196 $ac_cs_success || as_fn_exit 1
20197 fi
20198 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20200 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20201 fi
20202
20203