configure revision 1.1.1.7 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xf86-input-vmmouse 13.0.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 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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-vmmouse'
593 PACKAGE_TARNAME='xf86-input-vmmouse'
594 PACKAGE_VERSION='13.0.0'
595 PACKAGE_STRING='xf86-input-vmmouse 13.0.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 XORG_LIBS
641 XORG_CFLAGS
642 HAS_UDEV_RULES_DIR_FALSE
643 HAS_UDEV_RULES_DIR_TRUE
644 UDEV_RULES_DIR
645 UDEV_LIBS
646 UDEV_CFLAGS
647 HAL_FDI_DIR
648 HAL_CALLOUTS_DIR
649 HAL_BIN_DIR
650 HAS_XORG_CONF_DIR_FALSE
651 HAS_XORG_CONF_DIR_TRUE
652 XORG_CONF_DIR
653 inputdir
654 OTOOL64
655 OTOOL
656 LIPO
657 NMEDIT
658 DSYMUTIL
659 MANIFEST_TOOL
660 RANLIB
661 ac_ct_AR
662 AR
663 DLLTOOL
664 OBJDUMP
665 LN_S
666 NM
667 ac_ct_DUMPBIN
668 DUMPBIN
669 LD
670 FGREP
671 LIBTOOL
672 DRIVER_NAME
673 AM_BACKSLASH
674 AM_DEFAULT_VERBOSITY
675 AM_DEFAULT_V
676 AM_V
677 MAN_SUBSTS
678 XORG_MAN_PAGE
679 ADMIN_MAN_DIR
680 DRIVER_MAN_DIR
681 MISC_MAN_DIR
682 FILE_MAN_DIR
683 LIB_MAN_DIR
684 APP_MAN_DIR
685 ADMIN_MAN_SUFFIX
686 DRIVER_MAN_SUFFIX
687 MISC_MAN_SUFFIX
688 FILE_MAN_SUFFIX
689 LIB_MAN_SUFFIX
690 APP_MAN_SUFFIX
691 SED
692 host_os
693 host_vendor
694 host_cpu
695 host
696 build_os
697 build_vendor
698 build_cpu
699 build
700 INSTALL_CMD
701 PKG_CONFIG_LIBDIR
702 PKG_CONFIG_PATH
703 PKG_CONFIG
704 CHANGELOG_CMD
705 STRICT_CFLAGS
706 CWARNFLAGS
707 BASE_CFLAGS
708 EGREP
709 GREP
710 CPP
711 am__fastdepCC_FALSE
712 am__fastdepCC_TRUE
713 CCDEPMODE
714 am__nodep
715 AMDEPBACKSLASH
716 AMDEP_FALSE
717 AMDEP_TRUE
718 am__quote
719 am__include
720 DEPDIR
721 OBJEXT
722 EXEEXT
723 ac_ct_CC
724 CPPFLAGS
725 LDFLAGS
726 CFLAGS
727 CC
728 MAINT
729 MAINTAINER_MODE_FALSE
730 MAINTAINER_MODE_TRUE
731 am__untar
732 am__tar
733 AMTAR
734 am__leading_dot
735 SET_MAKE
736 AWK
737 mkdir_p
738 MKDIR_P
739 INSTALL_STRIP_PROGRAM
740 STRIP
741 install_sh
742 MAKEINFO
743 AUTOHEADER
744 AUTOMAKE
745 AUTOCONF
746 ACLOCAL
747 VERSION
748 PACKAGE
749 CYGPATH_W
750 am__isrc
751 INSTALL_DATA
752 INSTALL_SCRIPT
753 INSTALL_PROGRAM
754 target_alias
755 host_alias
756 build_alias
757 LIBS
758 ECHO_T
759 ECHO_N
760 ECHO_C
761 DEFS
762 mandir
763 localedir
764 libdir
765 psdir
766 pdfdir
767 dvidir
768 htmldir
769 infodir
770 docdir
771 oldincludedir
772 includedir
773 localstatedir
774 sharedstatedir
775 sysconfdir
776 datadir
777 datarootdir
778 libexecdir
779 sbindir
780 bindir
781 program_transform_name
782 prefix
783 exec_prefix
784 PACKAGE_URL
785 PACKAGE_BUGREPORT
786 PACKAGE_STRING
787 PACKAGE_VERSION
788 PACKAGE_TARNAME
789 PACKAGE_NAME
790 PATH_SEPARATOR
791 SHELL'
792 ac_subst_files=''
793 ac_user_opts='
794 enable_option_checking
795 enable_maintainer_mode
796 enable_dependency_tracking
797 enable_selective_werror
798 enable_strict_compilation
799 enable_silent_rules
800 enable_static
801 enable_shared
802 with_pic
803 enable_fast_install
804 with_gnu_ld
805 with_sysroot
806 enable_libtool_lock
807 with_xorg_module_dir
808 with_xorg_conf_dir
809 with_hal_bin_dir
810 with_hal_callouts_dir
811 with_hal_fdi_dir
812 with_udev_rules_dir
813 '
814 ac_precious_vars='build_alias
815 host_alias
816 target_alias
817 CC
818 CFLAGS
819 LDFLAGS
820 LIBS
821 CPPFLAGS
822 CPP
823 PKG_CONFIG
824 PKG_CONFIG_PATH
825 PKG_CONFIG_LIBDIR
826 UDEV_CFLAGS
827 UDEV_LIBS
828 XORG_CFLAGS
829 XORG_LIBS'
830
831
832 # Initialize some variables set by options.
833 ac_init_help=
834 ac_init_version=false
835 ac_unrecognized_opts=
836 ac_unrecognized_sep=
837 # The variables have the same names as the options, with
838 # dashes changed to underlines.
839 cache_file=/dev/null
840 exec_prefix=NONE
841 no_create=
842 no_recursion=
843 prefix=NONE
844 program_prefix=NONE
845 program_suffix=NONE
846 program_transform_name=s,x,x,
847 silent=
848 site=
849 srcdir=
850 verbose=
851 x_includes=NONE
852 x_libraries=NONE
853
854 # Installation directory options.
855 # These are left unexpanded so users can "make install exec_prefix=/foo"
856 # and all the variables that are supposed to be based on exec_prefix
857 # by default will actually change.
858 # Use braces instead of parens because sh, perl, etc. also accept them.
859 # (The list follows the same order as the GNU Coding Standards.)
860 bindir='${exec_prefix}/bin'
861 sbindir='${exec_prefix}/sbin'
862 libexecdir='${exec_prefix}/libexec'
863 datarootdir='${prefix}/share'
864 datadir='${datarootdir}'
865 sysconfdir='${prefix}/etc'
866 sharedstatedir='${prefix}/com'
867 localstatedir='${prefix}/var'
868 includedir='${prefix}/include'
869 oldincludedir='/usr/include'
870 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
871 infodir='${datarootdir}/info'
872 htmldir='${docdir}'
873 dvidir='${docdir}'
874 pdfdir='${docdir}'
875 psdir='${docdir}'
876 libdir='${exec_prefix}/lib'
877 localedir='${datarootdir}/locale'
878 mandir='${datarootdir}/man'
879
880 ac_prev=
881 ac_dashdash=
882 for ac_option
883 do
884 # If the previous option needs an argument, assign it.
885 if test -n "$ac_prev"; then
886 eval $ac_prev=\$ac_option
887 ac_prev=
888 continue
889 fi
890
891 case $ac_option in
892 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893 *=) ac_optarg= ;;
894 *) ac_optarg=yes ;;
895 esac
896
897 # Accept the important Cygnus configure options, so we can diagnose typos.
898
899 case $ac_dashdash$ac_option in
900 --)
901 ac_dashdash=yes ;;
902
903 -bindir | --bindir | --bindi | --bind | --bin | --bi)
904 ac_prev=bindir ;;
905 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
906 bindir=$ac_optarg ;;
907
908 -build | --build | --buil | --bui | --bu)
909 ac_prev=build_alias ;;
910 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
911 build_alias=$ac_optarg ;;
912
913 -cache-file | --cache-file | --cache-fil | --cache-fi \
914 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
915 ac_prev=cache_file ;;
916 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
917 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
918 cache_file=$ac_optarg ;;
919
920 --config-cache | -C)
921 cache_file=config.cache ;;
922
923 -datadir | --datadir | --datadi | --datad)
924 ac_prev=datadir ;;
925 -datadir=* | --datadir=* | --datadi=* | --datad=*)
926 datadir=$ac_optarg ;;
927
928 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
929 | --dataroo | --dataro | --datar)
930 ac_prev=datarootdir ;;
931 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
932 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
933 datarootdir=$ac_optarg ;;
934
935 -disable-* | --disable-*)
936 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939 as_fn_error $? "invalid feature name: $ac_useropt"
940 ac_useropt_orig=$ac_useropt
941 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
943 *"
944 "enable_$ac_useropt"
945 "*) ;;
946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
947 ac_unrecognized_sep=', ';;
948 esac
949 eval enable_$ac_useropt=no ;;
950
951 -docdir | --docdir | --docdi | --doc | --do)
952 ac_prev=docdir ;;
953 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
954 docdir=$ac_optarg ;;
955
956 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
957 ac_prev=dvidir ;;
958 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
959 dvidir=$ac_optarg ;;
960
961 -enable-* | --enable-*)
962 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
963 # Reject names that are not valid shell variable names.
964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965 as_fn_error $? "invalid feature name: $ac_useropt"
966 ac_useropt_orig=$ac_useropt
967 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968 case $ac_user_opts in
969 *"
970 "enable_$ac_useropt"
971 "*) ;;
972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
973 ac_unrecognized_sep=', ';;
974 esac
975 eval enable_$ac_useropt=\$ac_optarg ;;
976
977 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
978 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
979 | --exec | --exe | --ex)
980 ac_prev=exec_prefix ;;
981 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
982 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
983 | --exec=* | --exe=* | --ex=*)
984 exec_prefix=$ac_optarg ;;
985
986 -gas | --gas | --ga | --g)
987 # Obsolete; use --with-gas.
988 with_gas=yes ;;
989
990 -help | --help | --hel | --he | -h)
991 ac_init_help=long ;;
992 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
993 ac_init_help=recursive ;;
994 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
995 ac_init_help=short ;;
996
997 -host | --host | --hos | --ho)
998 ac_prev=host_alias ;;
999 -host=* | --host=* | --hos=* | --ho=*)
1000 host_alias=$ac_optarg ;;
1001
1002 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1003 ac_prev=htmldir ;;
1004 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1005 | --ht=*)
1006 htmldir=$ac_optarg ;;
1007
1008 -includedir | --includedir | --includedi | --included | --include \
1009 | --includ | --inclu | --incl | --inc)
1010 ac_prev=includedir ;;
1011 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1012 | --includ=* | --inclu=* | --incl=* | --inc=*)
1013 includedir=$ac_optarg ;;
1014
1015 -infodir | --infodir | --infodi | --infod | --info | --inf)
1016 ac_prev=infodir ;;
1017 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1018 infodir=$ac_optarg ;;
1019
1020 -libdir | --libdir | --libdi | --libd)
1021 ac_prev=libdir ;;
1022 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1023 libdir=$ac_optarg ;;
1024
1025 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1026 | --libexe | --libex | --libe)
1027 ac_prev=libexecdir ;;
1028 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1029 | --libexe=* | --libex=* | --libe=*)
1030 libexecdir=$ac_optarg ;;
1031
1032 -localedir | --localedir | --localedi | --localed | --locale)
1033 ac_prev=localedir ;;
1034 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1035 localedir=$ac_optarg ;;
1036
1037 -localstatedir | --localstatedir | --localstatedi | --localstated \
1038 | --localstate | --localstat | --localsta | --localst | --locals)
1039 ac_prev=localstatedir ;;
1040 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1041 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1042 localstatedir=$ac_optarg ;;
1043
1044 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1045 ac_prev=mandir ;;
1046 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1047 mandir=$ac_optarg ;;
1048
1049 -nfp | --nfp | --nf)
1050 # Obsolete; use --without-fp.
1051 with_fp=no ;;
1052
1053 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1054 | --no-cr | --no-c | -n)
1055 no_create=yes ;;
1056
1057 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1058 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1059 no_recursion=yes ;;
1060
1061 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1062 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1063 | --oldin | --oldi | --old | --ol | --o)
1064 ac_prev=oldincludedir ;;
1065 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1066 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1067 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1068 oldincludedir=$ac_optarg ;;
1069
1070 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1071 ac_prev=prefix ;;
1072 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1073 prefix=$ac_optarg ;;
1074
1075 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1076 | --program-pre | --program-pr | --program-p)
1077 ac_prev=program_prefix ;;
1078 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1079 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1080 program_prefix=$ac_optarg ;;
1081
1082 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1083 | --program-suf | --program-su | --program-s)
1084 ac_prev=program_suffix ;;
1085 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1086 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1087 program_suffix=$ac_optarg ;;
1088
1089 -program-transform-name | --program-transform-name \
1090 | --program-transform-nam | --program-transform-na \
1091 | --program-transform-n | --program-transform- \
1092 | --program-transform | --program-transfor \
1093 | --program-transfo | --program-transf \
1094 | --program-trans | --program-tran \
1095 | --progr-tra | --program-tr | --program-t)
1096 ac_prev=program_transform_name ;;
1097 -program-transform-name=* | --program-transform-name=* \
1098 | --program-transform-nam=* | --program-transform-na=* \
1099 | --program-transform-n=* | --program-transform-=* \
1100 | --program-transform=* | --program-transfor=* \
1101 | --program-transfo=* | --program-transf=* \
1102 | --program-trans=* | --program-tran=* \
1103 | --progr-tra=* | --program-tr=* | --program-t=*)
1104 program_transform_name=$ac_optarg ;;
1105
1106 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1107 ac_prev=pdfdir ;;
1108 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1109 pdfdir=$ac_optarg ;;
1110
1111 -psdir | --psdir | --psdi | --psd | --ps)
1112 ac_prev=psdir ;;
1113 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1114 psdir=$ac_optarg ;;
1115
1116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1117 | -silent | --silent | --silen | --sile | --sil)
1118 silent=yes ;;
1119
1120 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121 ac_prev=sbindir ;;
1122 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123 | --sbi=* | --sb=*)
1124 sbindir=$ac_optarg ;;
1125
1126 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1127 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1128 | --sharedst | --shareds | --shared | --share | --shar \
1129 | --sha | --sh)
1130 ac_prev=sharedstatedir ;;
1131 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1132 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1133 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134 | --sha=* | --sh=*)
1135 sharedstatedir=$ac_optarg ;;
1136
1137 -site | --site | --sit)
1138 ac_prev=site ;;
1139 -site=* | --site=* | --sit=*)
1140 site=$ac_optarg ;;
1141
1142 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143 ac_prev=srcdir ;;
1144 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1145 srcdir=$ac_optarg ;;
1146
1147 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1148 | --syscon | --sysco | --sysc | --sys | --sy)
1149 ac_prev=sysconfdir ;;
1150 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1151 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1152 sysconfdir=$ac_optarg ;;
1153
1154 -target | --target | --targe | --targ | --tar | --ta | --t)
1155 ac_prev=target_alias ;;
1156 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1157 target_alias=$ac_optarg ;;
1158
1159 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160 verbose=yes ;;
1161
1162 -version | --version | --versio | --versi | --vers | -V)
1163 ac_init_version=: ;;
1164
1165 -with-* | --with-*)
1166 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error $? "invalid package name: $ac_useropt"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1173 *"
1174 "with_$ac_useropt"
1175 "*) ;;
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
1178 esac
1179 eval with_$ac_useropt=\$ac_optarg ;;
1180
1181 -without-* | --without-*)
1182 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 as_fn_error $? "invalid package name: $ac_useropt"
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1189 *"
1190 "with_$ac_useropt"
1191 "*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1194 esac
1195 eval with_$ac_useropt=no ;;
1196
1197 --x)
1198 # Obsolete; use --with-x.
1199 with_x=yes ;;
1200
1201 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202 | --x-incl | --x-inc | --x-in | --x-i)
1203 ac_prev=x_includes ;;
1204 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1206 x_includes=$ac_optarg ;;
1207
1208 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210 ac_prev=x_libraries ;;
1211 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1213 x_libraries=$ac_optarg ;;
1214
1215 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1216 Try \`$0 --help' for more information"
1217 ;;
1218
1219 *=*)
1220 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221 # Reject names that are not valid shell variable names.
1222 case $ac_envvar in #(
1223 '' | [0-9]* | *[!_$as_cr_alnum]* )
1224 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1225 esac
1226 eval $ac_envvar=\$ac_optarg
1227 export $ac_envvar ;;
1228
1229 *)
1230 # FIXME: should be removed in autoconf 3.0.
1231 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1232 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1234 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1235 ;;
1236
1237 esac
1238 done
1239
1240 if test -n "$ac_prev"; then
1241 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1242 as_fn_error $? "missing argument to $ac_option"
1243 fi
1244
1245 if test -n "$ac_unrecognized_opts"; then
1246 case $enable_option_checking in
1247 no) ;;
1248 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1249 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1250 esac
1251 fi
1252
1253 # Check all directory arguments for consistency.
1254 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1255 datadir sysconfdir sharedstatedir localstatedir includedir \
1256 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1257 libdir localedir mandir
1258 do
1259 eval ac_val=\$$ac_var
1260 # Remove trailing slashes.
1261 case $ac_val in
1262 */ )
1263 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1264 eval $ac_var=\$ac_val;;
1265 esac
1266 # Be sure to have absolute directory names.
1267 case $ac_val in
1268 [\\/$]* | ?:[\\/]* ) continue;;
1269 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1270 esac
1271 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1272 done
1273
1274 # There might be people who depend on the old broken behavior: `$host'
1275 # used to hold the argument of --host etc.
1276 # FIXME: To remove some day.
1277 build=$build_alias
1278 host=$host_alias
1279 target=$target_alias
1280
1281 # FIXME: To remove some day.
1282 if test "x$host_alias" != x; then
1283 if test "x$build_alias" = x; then
1284 cross_compiling=maybe
1285 elif test "x$build_alias" != "x$host_alias"; then
1286 cross_compiling=yes
1287 fi
1288 fi
1289
1290 ac_tool_prefix=
1291 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1292
1293 test "$silent" = yes && exec 6>/dev/null
1294
1295
1296 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1297 ac_ls_di=`ls -di .` &&
1298 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1299 as_fn_error $? "working directory cannot be determined"
1300 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1301 as_fn_error $? "pwd does not report name of working directory"
1302
1303
1304 # Find the source files, if location was not specified.
1305 if test -z "$srcdir"; then
1306 ac_srcdir_defaulted=yes
1307 # Try the directory containing this script, then the parent directory.
1308 ac_confdir=`$as_dirname -- "$as_myself" ||
1309 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310 X"$as_myself" : 'X\(//\)[^/]' \| \
1311 X"$as_myself" : 'X\(//\)$' \| \
1312 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1313 $as_echo X"$as_myself" |
1314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315 s//\1/
1316 q
1317 }
1318 /^X\(\/\/\)[^/].*/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\/\)$/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\).*/{
1327 s//\1/
1328 q
1329 }
1330 s/.*/./; q'`
1331 srcdir=$ac_confdir
1332 if test ! -r "$srcdir/$ac_unique_file"; then
1333 srcdir=..
1334 fi
1335 else
1336 ac_srcdir_defaulted=no
1337 fi
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1341 fi
1342 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1343 ac_abs_confdir=`(
1344 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1345 pwd)`
1346 # When building in place, set srcdir=.
1347 if test "$ac_abs_confdir" = "$ac_pwd"; then
1348 srcdir=.
1349 fi
1350 # Remove unnecessary trailing slashes from srcdir.
1351 # Double slashes in file names in object file debugging info
1352 # mess up M-x gdb in Emacs.
1353 case $srcdir in
1354 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355 esac
1356 for ac_var in $ac_precious_vars; do
1357 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1358 eval ac_env_${ac_var}_value=\$${ac_var}
1359 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1361 done
1362
1363 #
1364 # Report the --help message.
1365 #
1366 if test "$ac_init_help" = "long"; then
1367 # Omit some internal or obsolete options to make the list less imposing.
1368 # This message is too long to be a string in the A/UX 3.1 sh.
1369 cat <<_ACEOF
1370 \`configure' configures xf86-input-vmmouse 13.0.0 to adapt to many kinds of systems.
1371
1372 Usage: $0 [OPTION]... [VAR=VALUE]...
1373
1374 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1375 VAR=VALUE. See below for descriptions of some of the useful variables.
1376
1377 Defaults for the options are specified in brackets.
1378
1379 Configuration:
1380 -h, --help display this help and exit
1381 --help=short display options specific to this package
1382 --help=recursive display the short help of all the included packages
1383 -V, --version display version information and exit
1384 -q, --quiet, --silent do not print \`checking ...' messages
1385 --cache-file=FILE cache test results in FILE [disabled]
1386 -C, --config-cache alias for \`--cache-file=config.cache'
1387 -n, --no-create do not create output files
1388 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1389
1390 Installation directories:
1391 --prefix=PREFIX install architecture-independent files in PREFIX
1392 [$ac_default_prefix]
1393 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1394 [PREFIX]
1395
1396 By default, \`make install' will install all the files in
1397 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1398 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1399 for instance \`--prefix=\$HOME'.
1400
1401 For better control, use the options below.
1402
1403 Fine tuning of the installation directories:
1404 --bindir=DIR user executables [EPREFIX/bin]
1405 --sbindir=DIR system admin executables [EPREFIX/sbin]
1406 --libexecdir=DIR program executables [EPREFIX/libexec]
1407 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1408 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1409 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1410 --libdir=DIR object code libraries [EPREFIX/lib]
1411 --includedir=DIR C header files [PREFIX/include]
1412 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1413 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1414 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1415 --infodir=DIR info documentation [DATAROOTDIR/info]
1416 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1417 --mandir=DIR man documentation [DATAROOTDIR/man]
1418 --docdir=DIR documentation root
1419 [DATAROOTDIR/doc/xf86-input-vmmouse]
1420 --htmldir=DIR html documentation [DOCDIR]
1421 --dvidir=DIR dvi documentation [DOCDIR]
1422 --pdfdir=DIR pdf documentation [DOCDIR]
1423 --psdir=DIR ps documentation [DOCDIR]
1424 _ACEOF
1425
1426 cat <<\_ACEOF
1427
1428 Program names:
1429 --program-prefix=PREFIX prepend PREFIX to installed program names
1430 --program-suffix=SUFFIX append SUFFIX to installed program names
1431 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1432
1433 System types:
1434 --build=BUILD configure for building on BUILD [guessed]
1435 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1436 _ACEOF
1437 fi
1438
1439 if test -n "$ac_init_help"; then
1440 case $ac_init_help in
1441 short | recursive ) echo "Configuration of xf86-input-vmmouse 13.0.0:";;
1442 esac
1443 cat <<\_ACEOF
1444
1445 Optional Features:
1446 --disable-option-checking ignore unrecognized --enable/--with options
1447 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1448 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1449 --enable-maintainer-mode enable make rules and dependencies not useful
1450 (and sometimes confusing) to the casual installer
1451 --disable-dependency-tracking speeds up one-time build
1452 --enable-dependency-tracking do not reject slow dependency extractors
1453 --disable-selective-werror
1454 Turn off selective compiler errors. (default:
1455 enabled)
1456 --enable-strict-compilation
1457 Enable all warnings from compiler and make them
1458 errors (default: disabled)
1459 --enable-silent-rules less verbose build output (undo: `make V=1')
1460 --disable-silent-rules verbose build output (undo: `make V=0')
1461 --enable-static[=PKGS] build static libraries [default=no]
1462 --enable-shared[=PKGS] build shared libraries [default=yes]
1463 --enable-fast-install[=PKGS]
1464 optimize for fast installation [default=yes]
1465 --disable-libtool-lock avoid locking (might break parallel builds)
1466
1467 Optional Packages:
1468 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1469 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1470 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1471 both]
1472 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1473 --with-sysroot=DIR Search for dependent libraries within DIR
1474 (or the compiler's sysroot if not specified).
1475 --with-xorg-module-dir=DIR
1476 Default xorg module directory
1477 [[default=$libdir/xorg/modules]]
1478 --with-xorg-conf-dir=DIR
1479 Default xorg.conf.d directory [[default=from
1480 $PKG_CONFIG xorg-server]]
1481 --with-hal-bin-dir=DIR Directory where HAL binaries where installed
1482 [[default=$bindir]]
1483 --with-hal-callouts-dir=DIR
1484 Directory where HAL expects its callout scripts to
1485 be located [[default=$libdir/hal]]
1486 --with-hal-fdi-dir=DIR Directory where HAL expects its fdi files to be
1487 located
1488 [[default=$datadir/hal/fdi/policy/20thirdparty]]
1489 --with-udev-rules-dir=DIR
1490 Default udev rules.d directory
1491 [[default=($prefix)/lib/udev/rules.d on Linux, none
1492 otherwise]]
1493
1494 Some influential environment variables:
1495 CC C compiler command
1496 CFLAGS C compiler flags
1497 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1498 nonstandard directory <lib dir>
1499 LIBS libraries to pass to the linker, e.g. -l<library>
1500 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1501 you have headers in a nonstandard directory <include dir>
1502 CPP C preprocessor
1503 PKG_CONFIG path to pkg-config utility
1504 PKG_CONFIG_PATH
1505 directories to add to pkg-config's search path
1506 PKG_CONFIG_LIBDIR
1507 path overriding pkg-config's built-in search path
1508 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1509 UDEV_LIBS linker flags for UDEV, overriding pkg-config
1510 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1511 XORG_LIBS linker flags for XORG, overriding pkg-config
1512
1513 Use these variables to override the choices made by `configure' or to help
1514 it to find libraries and programs with nonstandard names/locations.
1515
1516 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1517 _ACEOF
1518 ac_status=$?
1519 fi
1520
1521 if test "$ac_init_help" = "recursive"; then
1522 # If there are subdirs, report their specific --help.
1523 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1524 test -d "$ac_dir" ||
1525 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1526 continue
1527 ac_builddir=.
1528
1529 case "$ac_dir" in
1530 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531 *)
1532 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1533 # A ".." for each directory in $ac_dir_suffix.
1534 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1535 case $ac_top_builddir_sub in
1536 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1538 esac ;;
1539 esac
1540 ac_abs_top_builddir=$ac_pwd
1541 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1542 # for backward compatibility:
1543 ac_top_builddir=$ac_top_build_prefix
1544
1545 case $srcdir in
1546 .) # We are building in place.
1547 ac_srcdir=.
1548 ac_top_srcdir=$ac_top_builddir_sub
1549 ac_abs_top_srcdir=$ac_pwd ;;
1550 [\\/]* | ?:[\\/]* ) # Absolute name.
1551 ac_srcdir=$srcdir$ac_dir_suffix;
1552 ac_top_srcdir=$srcdir
1553 ac_abs_top_srcdir=$srcdir ;;
1554 *) # Relative name.
1555 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1556 ac_top_srcdir=$ac_top_build_prefix$srcdir
1557 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1558 esac
1559 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1560
1561 cd "$ac_dir" || { ac_status=$?; continue; }
1562 # Check for guested configure.
1563 if test -f "$ac_srcdir/configure.gnu"; then
1564 echo &&
1565 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1566 elif test -f "$ac_srcdir/configure"; then
1567 echo &&
1568 $SHELL "$ac_srcdir/configure" --help=recursive
1569 else
1570 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1571 fi || ac_status=$?
1572 cd "$ac_pwd" || { ac_status=$?; break; }
1573 done
1574 fi
1575
1576 test -n "$ac_init_help" && exit $ac_status
1577 if $ac_init_version; then
1578 cat <<\_ACEOF
1579 xf86-input-vmmouse configure 13.0.0
1580 generated by GNU Autoconf 2.69
1581
1582 Copyright (C) 2012 Free Software Foundation, Inc.
1583 This configure script is free software; the Free Software Foundation
1584 gives unlimited permission to copy, distribute and modify it.
1585 _ACEOF
1586 exit
1587 fi
1588
1589 ## ------------------------ ##
1590 ## Autoconf initialization. ##
1591 ## ------------------------ ##
1592
1593 # ac_fn_c_try_compile LINENO
1594 # --------------------------
1595 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1596 ac_fn_c_try_compile ()
1597 {
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 rm -f conftest.$ac_objext
1600 if { { ac_try="$ac_compile"
1601 case "(($ac_try" in
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1604 esac
1605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606 $as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_compile") 2>conftest.err
1608 ac_status=$?
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1613 fi
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } && {
1616 test -z "$ac_c_werror_flag" ||
1617 test ! -s conftest.err
1618 } && test -s conftest.$ac_objext; then :
1619 ac_retval=0
1620 else
1621 $as_echo "$as_me: failed program was:" >&5
1622 sed 's/^/| /' conftest.$ac_ext >&5
1623
1624 ac_retval=1
1625 fi
1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627 as_fn_set_status $ac_retval
1628
1629 } # ac_fn_c_try_compile
1630
1631 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1632 # ---------------------------------------------
1633 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1634 # accordingly.
1635 ac_fn_c_check_decl ()
1636 {
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 as_decl_name=`echo $2|sed 's/ *(.*//'`
1639 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1641 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1642 if eval \${$3+:} false; then :
1643 $as_echo_n "(cached) " >&6
1644 else
1645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1646 /* end confdefs.h. */
1647 $4
1648 int
1649 main ()
1650 {
1651 #ifndef $as_decl_name
1652 #ifdef __cplusplus
1653 (void) $as_decl_use;
1654 #else
1655 (void) $as_decl_name;
1656 #endif
1657 #endif
1658
1659 ;
1660 return 0;
1661 }
1662 _ACEOF
1663 if ac_fn_c_try_compile "$LINENO"; then :
1664 eval "$3=yes"
1665 else
1666 eval "$3=no"
1667 fi
1668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1669 fi
1670 eval ac_res=\$$3
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1672 $as_echo "$ac_res" >&6; }
1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674
1675 } # ac_fn_c_check_decl
1676
1677 # ac_fn_c_try_cpp LINENO
1678 # ----------------------
1679 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1680 ac_fn_c_try_cpp ()
1681 {
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 if { { ac_try="$ac_cpp conftest.$ac_ext"
1684 case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1687 esac
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1691 ac_status=$?
1692 if test -s conftest.err; then
1693 grep -v '^ *+' conftest.err >conftest.er1
1694 cat conftest.er1 >&5
1695 mv -f conftest.er1 conftest.err
1696 fi
1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698 test $ac_status = 0; } > conftest.i && {
1699 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1700 test ! -s conftest.err
1701 }; then :
1702 ac_retval=0
1703 else
1704 $as_echo "$as_me: failed program was:" >&5
1705 sed 's/^/| /' conftest.$ac_ext >&5
1706
1707 ac_retval=1
1708 fi
1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710 as_fn_set_status $ac_retval
1711
1712 } # ac_fn_c_try_cpp
1713
1714 # ac_fn_c_try_run LINENO
1715 # ----------------------
1716 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1717 # that executables *can* be run.
1718 ac_fn_c_try_run ()
1719 {
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 if { { ac_try="$ac_link"
1722 case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725 esac
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 $as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_link") 2>&5
1729 ac_status=$?
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1732 { { case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_try") 2>&5
1739 ac_status=$?
1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; }; }; then :
1742 ac_retval=0
1743 else
1744 $as_echo "$as_me: program exited with status $ac_status" >&5
1745 $as_echo "$as_me: failed program was:" >&5
1746 sed 's/^/| /' conftest.$ac_ext >&5
1747
1748 ac_retval=$ac_status
1749 fi
1750 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752 as_fn_set_status $ac_retval
1753
1754 } # ac_fn_c_try_run
1755
1756 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1757 # -------------------------------------------------------
1758 # Tests whether HEADER exists and can be compiled using the include files in
1759 # INCLUDES, setting the cache variable VAR accordingly.
1760 ac_fn_c_check_header_compile ()
1761 {
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764 $as_echo_n "checking for $2... " >&6; }
1765 if eval \${$3+:} false; then :
1766 $as_echo_n "(cached) " >&6
1767 else
1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h. */
1770 $4
1771 #include <$2>
1772 _ACEOF
1773 if ac_fn_c_try_compile "$LINENO"; then :
1774 eval "$3=yes"
1775 else
1776 eval "$3=no"
1777 fi
1778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1779 fi
1780 eval ac_res=\$$3
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782 $as_echo "$ac_res" >&6; }
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784
1785 } # ac_fn_c_check_header_compile
1786
1787 # ac_fn_c_try_link LINENO
1788 # -----------------------
1789 # Try to link conftest.$ac_ext, and return whether this succeeded.
1790 ac_fn_c_try_link ()
1791 {
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 rm -f conftest.$ac_objext conftest$ac_exeext
1794 if { { ac_try="$ac_link"
1795 case "(($ac_try" in
1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797 *) ac_try_echo=$ac_try;;
1798 esac
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_link") 2>conftest.err
1802 ac_status=$?
1803 if test -s conftest.err; then
1804 grep -v '^ *+' conftest.err >conftest.er1
1805 cat conftest.er1 >&5
1806 mv -f conftest.er1 conftest.err
1807 fi
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && {
1810 test -z "$ac_c_werror_flag" ||
1811 test ! -s conftest.err
1812 } && test -s conftest$ac_exeext && {
1813 test "$cross_compiling" = yes ||
1814 test -x conftest$ac_exeext
1815 }; then :
1816 ac_retval=0
1817 else
1818 $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1820
1821 ac_retval=1
1822 fi
1823 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1824 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1825 # interfere with the next link command; also delete a directory that is
1826 # left behind by Apple's compiler. We do this before executing the actions.
1827 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 as_fn_set_status $ac_retval
1830
1831 } # ac_fn_c_try_link
1832
1833 # ac_fn_c_check_func LINENO FUNC VAR
1834 # ----------------------------------
1835 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1836 ac_fn_c_check_func ()
1837 {
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840 $as_echo_n "checking for $2... " >&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 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1848 #define $2 innocuous_$2
1849
1850 /* System header to define __stub macros and hopefully few prototypes,
1851 which can conflict with char $2 (); below.
1852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1853 <limits.h> exists even on freestanding compilers. */
1854
1855 #ifdef __STDC__
1856 # include <limits.h>
1857 #else
1858 # include <assert.h>
1859 #endif
1860
1861 #undef $2
1862
1863 /* Override any GCC internal prototype to avoid an error.
1864 Use char because int might match the return type of a GCC
1865 builtin and then its argument prototype would still apply. */
1866 #ifdef __cplusplus
1867 extern "C"
1868 #endif
1869 char $2 ();
1870 /* The GNU C library defines this for functions which it implements
1871 to always fail with ENOSYS. Some functions are actually named
1872 something starting with __ and the normal name is an alias. */
1873 #if defined __stub_$2 || defined __stub___$2
1874 choke me
1875 #endif
1876
1877 int
1878 main ()
1879 {
1880 return $2 ();
1881 ;
1882 return 0;
1883 }
1884 _ACEOF
1885 if ac_fn_c_try_link "$LINENO"; then :
1886 eval "$3=yes"
1887 else
1888 eval "$3=no"
1889 fi
1890 rm -f core conftest.err conftest.$ac_objext \
1891 conftest$ac_exeext conftest.$ac_ext
1892 fi
1893 eval ac_res=\$$3
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895 $as_echo "$ac_res" >&6; }
1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897
1898 } # ac_fn_c_check_func
1899 cat >config.log <<_ACEOF
1900 This file contains any messages produced by compilers while
1901 running configure, to aid debugging if configure makes a mistake.
1902
1903 It was created by xf86-input-vmmouse $as_me 13.0.0, which was
1904 generated by GNU Autoconf 2.69. Invocation command line was
1905
1906 $ $0 $@
1907
1908 _ACEOF
1909 exec 5>>config.log
1910 {
1911 cat <<_ASUNAME
1912 ## --------- ##
1913 ## Platform. ##
1914 ## --------- ##
1915
1916 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1917 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1918 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1919 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1920 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1921
1922 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1923 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1924
1925 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1926 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1927 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1928 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1929 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1930 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1931 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1932
1933 _ASUNAME
1934
1935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936 for as_dir in $PATH
1937 do
1938 IFS=$as_save_IFS
1939 test -z "$as_dir" && as_dir=.
1940 $as_echo "PATH: $as_dir"
1941 done
1942 IFS=$as_save_IFS
1943
1944 } >&5
1945
1946 cat >&5 <<_ACEOF
1947
1948
1949 ## ----------- ##
1950 ## Core tests. ##
1951 ## ----------- ##
1952
1953 _ACEOF
1954
1955
1956 # Keep a trace of the command line.
1957 # Strip out --no-create and --no-recursion so they do not pile up.
1958 # Strip out --silent because we don't want to record it for future runs.
1959 # Also quote any args containing shell meta-characters.
1960 # Make two passes to allow for proper duplicate-argument suppression.
1961 ac_configure_args=
1962 ac_configure_args0=
1963 ac_configure_args1=
1964 ac_must_keep_next=false
1965 for ac_pass in 1 2
1966 do
1967 for ac_arg
1968 do
1969 case $ac_arg in
1970 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1971 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1972 | -silent | --silent | --silen | --sile | --sil)
1973 continue ;;
1974 *\'*)
1975 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1976 esac
1977 case $ac_pass in
1978 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1979 2)
1980 as_fn_append ac_configure_args1 " '$ac_arg'"
1981 if test $ac_must_keep_next = true; then
1982 ac_must_keep_next=false # Got value, back to normal.
1983 else
1984 case $ac_arg in
1985 *=* | --config-cache | -C | -disable-* | --disable-* \
1986 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1987 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1988 | -with-* | --with-* | -without-* | --without-* | --x)
1989 case "$ac_configure_args0 " in
1990 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1991 esac
1992 ;;
1993 -* ) ac_must_keep_next=true ;;
1994 esac
1995 fi
1996 as_fn_append ac_configure_args " '$ac_arg'"
1997 ;;
1998 esac
1999 done
2000 done
2001 { ac_configure_args0=; unset ac_configure_args0;}
2002 { ac_configure_args1=; unset ac_configure_args1;}
2003
2004 # When interrupted or exit'd, cleanup temporary files, and complete
2005 # config.log. We remove comments because anyway the quotes in there
2006 # would cause problems or look ugly.
2007 # WARNING: Use '\'' to represent an apostrophe within the trap.
2008 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2009 trap 'exit_status=$?
2010 # Save into config.log some information that might help in debugging.
2011 {
2012 echo
2013
2014 $as_echo "## ---------------- ##
2015 ## Cache variables. ##
2016 ## ---------------- ##"
2017 echo
2018 # The following way of writing the cache mishandles newlines in values,
2019 (
2020 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2021 eval ac_val=\$$ac_var
2022 case $ac_val in #(
2023 *${as_nl}*)
2024 case $ac_var in #(
2025 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2026 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2027 esac
2028 case $ac_var in #(
2029 _ | IFS | as_nl) ;; #(
2030 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2031 *) { eval $ac_var=; unset $ac_var;} ;;
2032 esac ;;
2033 esac
2034 done
2035 (set) 2>&1 |
2036 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2037 *${as_nl}ac_space=\ *)
2038 sed -n \
2039 "s/'\''/'\''\\\\'\'''\''/g;
2040 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2041 ;; #(
2042 *)
2043 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2044 ;;
2045 esac |
2046 sort
2047 )
2048 echo
2049
2050 $as_echo "## ----------------- ##
2051 ## Output variables. ##
2052 ## ----------------- ##"
2053 echo
2054 for ac_var in $ac_subst_vars
2055 do
2056 eval ac_val=\$$ac_var
2057 case $ac_val in
2058 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2059 esac
2060 $as_echo "$ac_var='\''$ac_val'\''"
2061 done | sort
2062 echo
2063
2064 if test -n "$ac_subst_files"; then
2065 $as_echo "## ------------------- ##
2066 ## File substitutions. ##
2067 ## ------------------- ##"
2068 echo
2069 for ac_var in $ac_subst_files
2070 do
2071 eval ac_val=\$$ac_var
2072 case $ac_val in
2073 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2074 esac
2075 $as_echo "$ac_var='\''$ac_val'\''"
2076 done | sort
2077 echo
2078 fi
2079
2080 if test -s confdefs.h; then
2081 $as_echo "## ----------- ##
2082 ## confdefs.h. ##
2083 ## ----------- ##"
2084 echo
2085 cat confdefs.h
2086 echo
2087 fi
2088 test "$ac_signal" != 0 &&
2089 $as_echo "$as_me: caught signal $ac_signal"
2090 $as_echo "$as_me: exit $exit_status"
2091 } >&5
2092 rm -f core *.core core.conftest.* &&
2093 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2094 exit $exit_status
2095 ' 0
2096 for ac_signal in 1 2 13 15; do
2097 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2098 done
2099 ac_signal=0
2100
2101 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2102 rm -f -r conftest* confdefs.h
2103
2104 $as_echo "/* confdefs.h */" > confdefs.h
2105
2106 # Predefined preprocessor variables.
2107
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_NAME "$PACKAGE_NAME"
2110 _ACEOF
2111
2112 cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2114 _ACEOF
2115
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2118 _ACEOF
2119
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_STRING "$PACKAGE_STRING"
2122 _ACEOF
2123
2124 cat >>confdefs.h <<_ACEOF
2125 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2126 _ACEOF
2127
2128 cat >>confdefs.h <<_ACEOF
2129 #define PACKAGE_URL "$PACKAGE_URL"
2130 _ACEOF
2131
2132
2133 # Let the site file select an alternate cache file if it wants to.
2134 # Prefer an explicitly selected file to automatically selected ones.
2135 ac_site_file1=NONE
2136 ac_site_file2=NONE
2137 if test -n "$CONFIG_SITE"; then
2138 # We do not want a PATH search for config.site.
2139 case $CONFIG_SITE in #((
2140 -*) ac_site_file1=./$CONFIG_SITE;;
2141 */*) ac_site_file1=$CONFIG_SITE;;
2142 *) ac_site_file1=./$CONFIG_SITE;;
2143 esac
2144 elif test "x$prefix" != xNONE; then
2145 ac_site_file1=$prefix/share/config.site
2146 ac_site_file2=$prefix/etc/config.site
2147 else
2148 ac_site_file1=$ac_default_prefix/share/config.site
2149 ac_site_file2=$ac_default_prefix/etc/config.site
2150 fi
2151 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2152 do
2153 test "x$ac_site_file" = xNONE && continue
2154 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2156 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2157 sed 's/^/| /' "$ac_site_file" >&5
2158 . "$ac_site_file" \
2159 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2161 as_fn_error $? "failed to load site script $ac_site_file
2162 See \`config.log' for more details" "$LINENO" 5; }
2163 fi
2164 done
2165
2166 if test -r "$cache_file"; then
2167 # Some versions of bash will fail to source /dev/null (special files
2168 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2169 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2171 $as_echo "$as_me: loading cache $cache_file" >&6;}
2172 case $cache_file in
2173 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2174 *) . "./$cache_file";;
2175 esac
2176 fi
2177 else
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2179 $as_echo "$as_me: creating cache $cache_file" >&6;}
2180 >$cache_file
2181 fi
2182
2183 # Check that the precious variables saved in the cache have kept the same
2184 # value.
2185 ac_cache_corrupted=false
2186 for ac_var in $ac_precious_vars; do
2187 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2188 eval ac_new_set=\$ac_env_${ac_var}_set
2189 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2190 eval ac_new_val=\$ac_env_${ac_var}_value
2191 case $ac_old_set,$ac_new_set in
2192 set,)
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2194 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2195 ac_cache_corrupted=: ;;
2196 ,set)
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2198 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2199 ac_cache_corrupted=: ;;
2200 ,);;
2201 *)
2202 if test "x$ac_old_val" != "x$ac_new_val"; then
2203 # differences in whitespace do not lead to failure.
2204 ac_old_val_w=`echo x $ac_old_val`
2205 ac_new_val_w=`echo x $ac_new_val`
2206 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2208 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2209 ac_cache_corrupted=:
2210 else
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2212 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2213 eval $ac_var=\$ac_old_val
2214 fi
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2216 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2218 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2219 fi;;
2220 esac
2221 # Pass precious variables to config.status.
2222 if test "$ac_new_set" = set; then
2223 case $ac_new_val in
2224 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2225 *) ac_arg=$ac_var=$ac_new_val ;;
2226 esac
2227 case " $ac_configure_args " in
2228 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2229 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2230 esac
2231 fi
2232 done
2233 if $ac_cache_corrupted; then
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2237 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2238 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2239 fi
2240 ## -------------------- ##
2241 ## Main body of script. ##
2242 ## -------------------- ##
2243
2244 ac_ext=c
2245 ac_cpp='$CPP $CPPFLAGS'
2246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2249
2250
2251
2252
2253 ac_aux_dir=
2254 for ac_dir in . "$srcdir"/.; do
2255 if test -f "$ac_dir/install-sh"; then
2256 ac_aux_dir=$ac_dir
2257 ac_install_sh="$ac_aux_dir/install-sh -c"
2258 break
2259 elif test -f "$ac_dir/install.sh"; then
2260 ac_aux_dir=$ac_dir
2261 ac_install_sh="$ac_aux_dir/install.sh -c"
2262 break
2263 elif test -f "$ac_dir/shtool"; then
2264 ac_aux_dir=$ac_dir
2265 ac_install_sh="$ac_aux_dir/shtool install -c"
2266 break
2267 fi
2268 done
2269 if test -z "$ac_aux_dir"; then
2270 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2271 fi
2272
2273 # These three variables are undocumented and unsupported,
2274 # and are intended to be withdrawn in a future Autoconf release.
2275 # They can cause serious problems if a builder's source tree is in a directory
2276 # whose full name contains unusual characters.
2277 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2278 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2279 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2280
2281
2282 ac_config_headers="$ac_config_headers config.h"
2283
2284
2285 am__api_version='1.11'
2286
2287 # Find a good install program. We prefer a C program (faster),
2288 # so one script is as good as another. But avoid the broken or
2289 # incompatible versions:
2290 # SysV /etc/install, /usr/sbin/install
2291 # SunOS /usr/etc/install
2292 # IRIX /sbin/install
2293 # AIX /bin/install
2294 # AmigaOS /C/install, which installs bootblocks on floppy discs
2295 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2296 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2297 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2298 # OS/2's system install, which has a completely different semantic
2299 # ./install, which can be erroneously created by make from ./install.sh.
2300 # Reject install programs that cannot install multiple files.
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2302 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2303 if test -z "$INSTALL"; then
2304 if ${ac_cv_path_install+:} false; then :
2305 $as_echo_n "(cached) " >&6
2306 else
2307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2308 for as_dir in $PATH
2309 do
2310 IFS=$as_save_IFS
2311 test -z "$as_dir" && as_dir=.
2312 # Account for people who put trailing slashes in PATH elements.
2313 case $as_dir/ in #((
2314 ./ | .// | /[cC]/* | \
2315 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2316 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2317 /usr/ucb/* ) ;;
2318 *)
2319 # OSF1 and SCO ODT 3.0 have their own names for install.
2320 # Don't use installbsd from OSF since it installs stuff as root
2321 # by default.
2322 for ac_prog in ginstall scoinst install; do
2323 for ac_exec_ext in '' $ac_executable_extensions; do
2324 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2325 if test $ac_prog = install &&
2326 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2327 # AIX install. It has an incompatible calling convention.
2328 :
2329 elif test $ac_prog = install &&
2330 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2331 # program-specific install script used by HP pwplus--don't use.
2332 :
2333 else
2334 rm -rf conftest.one conftest.two conftest.dir
2335 echo one > conftest.one
2336 echo two > conftest.two
2337 mkdir conftest.dir
2338 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2339 test -s conftest.one && test -s conftest.two &&
2340 test -s conftest.dir/conftest.one &&
2341 test -s conftest.dir/conftest.two
2342 then
2343 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2344 break 3
2345 fi
2346 fi
2347 fi
2348 done
2349 done
2350 ;;
2351 esac
2352
2353 done
2354 IFS=$as_save_IFS
2355
2356 rm -rf conftest.one conftest.two conftest.dir
2357
2358 fi
2359 if test "${ac_cv_path_install+set}" = set; then
2360 INSTALL=$ac_cv_path_install
2361 else
2362 # As a last resort, use the slow shell script. Don't cache a
2363 # value for INSTALL within a source directory, because that will
2364 # break other packages using the cache if that directory is
2365 # removed, or if the value is a relative name.
2366 INSTALL=$ac_install_sh
2367 fi
2368 fi
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2370 $as_echo "$INSTALL" >&6; }
2371
2372 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2373 # It thinks the first close brace ends the variable substitution.
2374 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2375
2376 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2377
2378 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2379
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2381 $as_echo_n "checking whether build environment is sane... " >&6; }
2382 # Just in case
2383 sleep 1
2384 echo timestamp > conftest.file
2385 # Reject unsafe characters in $srcdir or the absolute working directory
2386 # name. Accept space and tab only in the latter.
2387 am_lf='
2388 '
2389 case `pwd` in
2390 *[\\\"\#\$\&\'\`$am_lf]*)
2391 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2392 esac
2393 case $srcdir in
2394 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2395 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2396 esac
2397
2398 # Do `set' in a subshell so we don't clobber the current shell's
2399 # arguments. Must try -L first in case configure is actually a
2400 # symlink; some systems play weird games with the mod time of symlinks
2401 # (eg FreeBSD returns the mod time of the symlink's containing
2402 # directory).
2403 if (
2404 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2405 if test "$*" = "X"; then
2406 # -L didn't work.
2407 set X `ls -t "$srcdir/configure" conftest.file`
2408 fi
2409 rm -f conftest.file
2410 if test "$*" != "X $srcdir/configure conftest.file" \
2411 && test "$*" != "X conftest.file $srcdir/configure"; then
2412
2413 # If neither matched, then we have a broken ls. This can happen
2414 # if, for instance, CONFIG_SHELL is bash and it inherits a
2415 # broken ls alias from the environment. This has actually
2416 # happened. Such a system could not be considered "sane".
2417 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2418 alias in your environment" "$LINENO" 5
2419 fi
2420
2421 test "$2" = conftest.file
2422 )
2423 then
2424 # Ok.
2425 :
2426 else
2427 as_fn_error $? "newly created file is older than distributed files!
2428 Check your system clock" "$LINENO" 5
2429 fi
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2431 $as_echo "yes" >&6; }
2432 test "$program_prefix" != NONE &&
2433 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2434 # Use a double $ so make ignores it.
2435 test "$program_suffix" != NONE &&
2436 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2437 # Double any \ or $.
2438 # By default was `s,x,x', remove it if useless.
2439 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2440 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2441
2442 # expand $ac_aux_dir to an absolute path
2443 am_aux_dir=`cd $ac_aux_dir && pwd`
2444
2445 if test x"${MISSING+set}" != xset; then
2446 case $am_aux_dir in
2447 *\ * | *\ *)
2448 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2449 *)
2450 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2451 esac
2452 fi
2453 # Use eval to expand $SHELL
2454 if eval "$MISSING --run true"; then
2455 am_missing_run="$MISSING --run "
2456 else
2457 am_missing_run=
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2459 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2460 fi
2461
2462 if test x"${install_sh}" != xset; then
2463 case $am_aux_dir in
2464 *\ * | *\ *)
2465 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2466 *)
2467 install_sh="\${SHELL} $am_aux_dir/install-sh"
2468 esac
2469 fi
2470
2471 # Installed binaries are usually stripped using `strip' when the user
2472 # run `make install-strip'. However `strip' might not be the right
2473 # tool to use in cross-compilation environments, therefore Automake
2474 # will honor the `STRIP' environment variable to overrule this program.
2475 if test "$cross_compiling" != no; then
2476 if test -n "$ac_tool_prefix"; then
2477 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2478 set dummy ${ac_tool_prefix}strip; ac_word=$2
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2480 $as_echo_n "checking for $ac_word... " >&6; }
2481 if ${ac_cv_prog_STRIP+:} false; then :
2482 $as_echo_n "(cached) " >&6
2483 else
2484 if test -n "$STRIP"; then
2485 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2486 else
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 for as_dir in $PATH
2489 do
2490 IFS=$as_save_IFS
2491 test -z "$as_dir" && as_dir=.
2492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2494 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2496 break 2
2497 fi
2498 done
2499 done
2500 IFS=$as_save_IFS
2501
2502 fi
2503 fi
2504 STRIP=$ac_cv_prog_STRIP
2505 if test -n "$STRIP"; then
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2507 $as_echo "$STRIP" >&6; }
2508 else
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2510 $as_echo "no" >&6; }
2511 fi
2512
2513
2514 fi
2515 if test -z "$ac_cv_prog_STRIP"; then
2516 ac_ct_STRIP=$STRIP
2517 # Extract the first word of "strip", so it can be a program name with args.
2518 set dummy strip; ac_word=$2
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2520 $as_echo_n "checking for $ac_word... " >&6; }
2521 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2522 $as_echo_n "(cached) " >&6
2523 else
2524 if test -n "$ac_ct_STRIP"; then
2525 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2526 else
2527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528 for as_dir in $PATH
2529 do
2530 IFS=$as_save_IFS
2531 test -z "$as_dir" && as_dir=.
2532 for ac_exec_ext in '' $ac_executable_extensions; do
2533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2534 ac_cv_prog_ac_ct_STRIP="strip"
2535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2536 break 2
2537 fi
2538 done
2539 done
2540 IFS=$as_save_IFS
2541
2542 fi
2543 fi
2544 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2545 if test -n "$ac_ct_STRIP"; then
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2547 $as_echo "$ac_ct_STRIP" >&6; }
2548 else
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2550 $as_echo "no" >&6; }
2551 fi
2552
2553 if test "x$ac_ct_STRIP" = x; then
2554 STRIP=":"
2555 else
2556 case $cross_compiling:$ac_tool_warned in
2557 yes:)
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2560 ac_tool_warned=yes ;;
2561 esac
2562 STRIP=$ac_ct_STRIP
2563 fi
2564 else
2565 STRIP="$ac_cv_prog_STRIP"
2566 fi
2567
2568 fi
2569 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2570
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2572 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2573 if test -z "$MKDIR_P"; then
2574 if ${ac_cv_path_mkdir+:} false; then :
2575 $as_echo_n "(cached) " >&6
2576 else
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2579 do
2580 IFS=$as_save_IFS
2581 test -z "$as_dir" && as_dir=.
2582 for ac_prog in mkdir gmkdir; do
2583 for ac_exec_ext in '' $ac_executable_extensions; do
2584 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2585 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2586 'mkdir (GNU coreutils) '* | \
2587 'mkdir (coreutils) '* | \
2588 'mkdir (fileutils) '4.1*)
2589 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2590 break 3;;
2591 esac
2592 done
2593 done
2594 done
2595 IFS=$as_save_IFS
2596
2597 fi
2598
2599 test -d ./--version && rmdir ./--version
2600 if test "${ac_cv_path_mkdir+set}" = set; then
2601 MKDIR_P="$ac_cv_path_mkdir -p"
2602 else
2603 # As a last resort, use the slow shell script. Don't cache a
2604 # value for MKDIR_P within a source directory, because that will
2605 # break other packages using the cache if that directory is
2606 # removed, or if the value is a relative name.
2607 MKDIR_P="$ac_install_sh -d"
2608 fi
2609 fi
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2611 $as_echo "$MKDIR_P" >&6; }
2612
2613 mkdir_p="$MKDIR_P"
2614 case $mkdir_p in
2615 [\\/$]* | ?:[\\/]*) ;;
2616 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2617 esac
2618
2619 for ac_prog in gawk mawk nawk awk
2620 do
2621 # Extract the first word of "$ac_prog", so it can be a program name with args.
2622 set dummy $ac_prog; ac_word=$2
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2624 $as_echo_n "checking for $ac_word... " >&6; }
2625 if ${ac_cv_prog_AWK+:} false; then :
2626 $as_echo_n "(cached) " >&6
2627 else
2628 if test -n "$AWK"; then
2629 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2630 else
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 for as_dir in $PATH
2633 do
2634 IFS=$as_save_IFS
2635 test -z "$as_dir" && as_dir=.
2636 for ac_exec_ext in '' $ac_executable_extensions; do
2637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2638 ac_cv_prog_AWK="$ac_prog"
2639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2640 break 2
2641 fi
2642 done
2643 done
2644 IFS=$as_save_IFS
2645
2646 fi
2647 fi
2648 AWK=$ac_cv_prog_AWK
2649 if test -n "$AWK"; then
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2651 $as_echo "$AWK" >&6; }
2652 else
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2654 $as_echo "no" >&6; }
2655 fi
2656
2657
2658 test -n "$AWK" && break
2659 done
2660
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2662 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2663 set x ${MAKE-make}
2664 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2665 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2666 $as_echo_n "(cached) " >&6
2667 else
2668 cat >conftest.make <<\_ACEOF
2669 SHELL = /bin/sh
2670 all:
2671 @echo '@@@%%%=$(MAKE)=@@@%%%'
2672 _ACEOF
2673 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2674 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2675 *@@@%%%=?*=@@@%%%*)
2676 eval ac_cv_prog_make_${ac_make}_set=yes;;
2677 *)
2678 eval ac_cv_prog_make_${ac_make}_set=no;;
2679 esac
2680 rm -f conftest.make
2681 fi
2682 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2684 $as_echo "yes" >&6; }
2685 SET_MAKE=
2686 else
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2688 $as_echo "no" >&6; }
2689 SET_MAKE="MAKE=${MAKE-make}"
2690 fi
2691
2692 rm -rf .tst 2>/dev/null
2693 mkdir .tst 2>/dev/null
2694 if test -d .tst; then
2695 am__leading_dot=.
2696 else
2697 am__leading_dot=_
2698 fi
2699 rmdir .tst 2>/dev/null
2700
2701 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2702 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2703 # is not polluted with repeated "-I."
2704 am__isrc=' -I$(srcdir)'
2705 # test to see if srcdir already configured
2706 if test -f $srcdir/config.status; then
2707 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2708 fi
2709 fi
2710
2711 # test whether we have cygpath
2712 if test -z "$CYGPATH_W"; then
2713 if (cygpath --version) >/dev/null 2>/dev/null; then
2714 CYGPATH_W='cygpath -w'
2715 else
2716 CYGPATH_W=echo
2717 fi
2718 fi
2719
2720
2721 # Define the identity of the package.
2722 PACKAGE='xf86-input-vmmouse'
2723 VERSION='13.0.0'
2724
2725
2726 cat >>confdefs.h <<_ACEOF
2727 #define PACKAGE "$PACKAGE"
2728 _ACEOF
2729
2730
2731 cat >>confdefs.h <<_ACEOF
2732 #define VERSION "$VERSION"
2733 _ACEOF
2734
2735 # Some tools Automake needs.
2736
2737 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2738
2739
2740 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2741
2742
2743 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2744
2745
2746 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2747
2748
2749 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2750
2751 # We need awk for the "check" target. The system "awk" is bad on
2752 # some platforms.
2753 # Always define AMTAR for backward compatibility. Yes, it's still used
2754 # in the wild :-( We should find a proper way to deprecate it ...
2755 AMTAR='$${TAR-tar}'
2756
2757 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2758
2759
2760
2761
2762
2763
2764
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2766 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2767 # Check whether --enable-maintainer-mode was given.
2768 if test "${enable_maintainer_mode+set}" = set; then :
2769 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2770 else
2771 USE_MAINTAINER_MODE=no
2772 fi
2773
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2775 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2776 if test $USE_MAINTAINER_MODE = yes; then
2777 MAINTAINER_MODE_TRUE=
2778 MAINTAINER_MODE_FALSE='#'
2779 else
2780 MAINTAINER_MODE_TRUE='#'
2781 MAINTAINER_MODE_FALSE=
2782 fi
2783
2784 MAINT=$MAINTAINER_MODE_TRUE
2785
2786
2787
2788 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800 DEPDIR="${am__leading_dot}deps"
2801
2802 ac_config_commands="$ac_config_commands depfiles"
2803
2804
2805 am_make=${MAKE-make}
2806 cat > confinc << 'END'
2807 am__doit:
2808 @echo this is the am__doit target
2809 .PHONY: am__doit
2810 END
2811 # If we don't find an include directive, just comment out the code.
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2813 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2814 am__include="#"
2815 am__quote=
2816 _am_result=none
2817 # First try GNU make style include.
2818 echo "include confinc" > confmf
2819 # Ignore all kinds of additional output from `make'.
2820 case `$am_make -s -f confmf 2> /dev/null` in #(
2821 *the\ am__doit\ target*)
2822 am__include=include
2823 am__quote=
2824 _am_result=GNU
2825 ;;
2826 esac
2827 # Now try BSD make style include.
2828 if test "$am__include" = "#"; then
2829 echo '.include "confinc"' > confmf
2830 case `$am_make -s -f confmf 2> /dev/null` in #(
2831 *the\ am__doit\ target*)
2832 am__include=.include
2833 am__quote="\""
2834 _am_result=BSD
2835 ;;
2836 esac
2837 fi
2838
2839
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2841 $as_echo "$_am_result" >&6; }
2842 rm -f confinc confmf
2843
2844 # Check whether --enable-dependency-tracking was given.
2845 if test "${enable_dependency_tracking+set}" = set; then :
2846 enableval=$enable_dependency_tracking;
2847 fi
2848
2849 if test "x$enable_dependency_tracking" != xno; then
2850 am_depcomp="$ac_aux_dir/depcomp"
2851 AMDEPBACKSLASH='\'
2852 am__nodep='_no'
2853 fi
2854 if test "x$enable_dependency_tracking" != xno; then
2855 AMDEP_TRUE=
2856 AMDEP_FALSE='#'
2857 else
2858 AMDEP_TRUE='#'
2859 AMDEP_FALSE=
2860 fi
2861
2862
2863 ac_ext=c
2864 ac_cpp='$CPP $CPPFLAGS'
2865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2868 if test -n "$ac_tool_prefix"; then
2869 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2870 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872 $as_echo_n "checking for $ac_word... " >&6; }
2873 if ${ac_cv_prog_CC+:} false; then :
2874 $as_echo_n "(cached) " >&6
2875 else
2876 if test -n "$CC"; then
2877 ac_cv_prog_CC="$CC" # Let the user override the test.
2878 else
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2881 do
2882 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 break 2
2889 fi
2890 done
2891 done
2892 IFS=$as_save_IFS
2893
2894 fi
2895 fi
2896 CC=$ac_cv_prog_CC
2897 if test -n "$CC"; then
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2899 $as_echo "$CC" >&6; }
2900 else
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902 $as_echo "no" >&6; }
2903 fi
2904
2905
2906 fi
2907 if test -z "$ac_cv_prog_CC"; then
2908 ac_ct_CC=$CC
2909 # Extract the first word of "gcc", so it can be a program name with args.
2910 set dummy gcc; ac_word=$2
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912 $as_echo_n "checking for $ac_word... " >&6; }
2913 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2914 $as_echo_n "(cached) " >&6
2915 else
2916 if test -n "$ac_ct_CC"; then
2917 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2918 else
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2921 do
2922 IFS=$as_save_IFS
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926 ac_cv_prog_ac_ct_CC="gcc"
2927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 break 2
2929 fi
2930 done
2931 done
2932 IFS=$as_save_IFS
2933
2934 fi
2935 fi
2936 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2937 if test -n "$ac_ct_CC"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2939 $as_echo "$ac_ct_CC" >&6; }
2940 else
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2943 fi
2944
2945 if test "x$ac_ct_CC" = x; then
2946 CC=""
2947 else
2948 case $cross_compiling:$ac_tool_warned in
2949 yes:)
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2952 ac_tool_warned=yes ;;
2953 esac
2954 CC=$ac_ct_CC
2955 fi
2956 else
2957 CC="$ac_cv_prog_CC"
2958 fi
2959
2960 if test -z "$CC"; then
2961 if test -n "$ac_tool_prefix"; then
2962 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2963 set dummy ${ac_tool_prefix}cc; ac_word=$2
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965 $as_echo_n "checking for $ac_word... " >&6; }
2966 if ${ac_cv_prog_CC+:} false; then :
2967 $as_echo_n "(cached) " >&6
2968 else
2969 if test -n "$CC"; then
2970 ac_cv_prog_CC="$CC" # Let the user override the test.
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2974 do
2975 IFS=$as_save_IFS
2976 test -z "$as_dir" && as_dir=.
2977 for ac_exec_ext in '' $ac_executable_extensions; do
2978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2979 ac_cv_prog_CC="${ac_tool_prefix}cc"
2980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981 break 2
2982 fi
2983 done
2984 done
2985 IFS=$as_save_IFS
2986
2987 fi
2988 fi
2989 CC=$ac_cv_prog_CC
2990 if test -n "$CC"; then
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2992 $as_echo "$CC" >&6; }
2993 else
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 $as_echo "no" >&6; }
2996 fi
2997
2998
2999 fi
3000 fi
3001 if test -z "$CC"; then
3002 # Extract the first word of "cc", so it can be a program name with args.
3003 set dummy cc; ac_word=$2
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if ${ac_cv_prog_CC+:} false; then :
3007 $as_echo_n "(cached) " >&6
3008 else
3009 if test -n "$CC"; then
3010 ac_cv_prog_CC="$CC" # Let the user override the test.
3011 else
3012 ac_prog_rejected=no
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 for as_dir in $PATH
3015 do
3016 IFS=$as_save_IFS
3017 test -z "$as_dir" && as_dir=.
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3020 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3021 ac_prog_rejected=yes
3022 continue
3023 fi
3024 ac_cv_prog_CC="cc"
3025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 break 2
3027 fi
3028 done
3029 done
3030 IFS=$as_save_IFS
3031
3032 if test $ac_prog_rejected = yes; then
3033 # We found a bogon in the path, so make sure we never use it.
3034 set dummy $ac_cv_prog_CC
3035 shift
3036 if test $# != 0; then
3037 # We chose a different compiler from the bogus one.
3038 # However, it has the same basename, so the bogon will be chosen
3039 # first if we set CC to just the basename; use the full file name.
3040 shift
3041 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3042 fi
3043 fi
3044 fi
3045 fi
3046 CC=$ac_cv_prog_CC
3047 if test -n "$CC"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3049 $as_echo "$CC" >&6; }
3050 else
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3053 fi
3054
3055
3056 fi
3057 if test -z "$CC"; then
3058 if test -n "$ac_tool_prefix"; then
3059 for ac_prog in cl.exe
3060 do
3061 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3062 set dummy $ac_tool_prefix$ac_prog; 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_CC+:} false; then :
3066 $as_echo_n "(cached) " >&6
3067 else
3068 if test -n "$CC"; then
3069 ac_cv_prog_CC="$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_CC="$ac_tool_prefix$ac_prog"
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 CC=$ac_cv_prog_CC
3089 if test -n "$CC"; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3091 $as_echo "$CC" >&6; }
3092 else
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3095 fi
3096
3097
3098 test -n "$CC" && break
3099 done
3100 fi
3101 if test -z "$CC"; then
3102 ac_ct_CC=$CC
3103 for ac_prog in cl.exe
3104 do
3105 # Extract the first word of "$ac_prog", so it can be a program name with args.
3106 set dummy $ac_prog; ac_word=$2
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108 $as_echo_n "checking for $ac_word... " >&6; }
3109 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3110 $as_echo_n "(cached) " >&6
3111 else
3112 if test -n "$ac_ct_CC"; then
3113 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3114 else
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 for as_dir in $PATH
3117 do
3118 IFS=$as_save_IFS
3119 test -z "$as_dir" && as_dir=.
3120 for ac_exec_ext in '' $ac_executable_extensions; do
3121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3122 ac_cv_prog_ac_ct_CC="$ac_prog"
3123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3124 break 2
3125 fi
3126 done
3127 done
3128 IFS=$as_save_IFS
3129
3130 fi
3131 fi
3132 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3133 if test -n "$ac_ct_CC"; then
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3135 $as_echo "$ac_ct_CC" >&6; }
3136 else
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138 $as_echo "no" >&6; }
3139 fi
3140
3141
3142 test -n "$ac_ct_CC" && break
3143 done
3144
3145 if test "x$ac_ct_CC" = x; then
3146 CC=""
3147 else
3148 case $cross_compiling:$ac_tool_warned in
3149 yes:)
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3152 ac_tool_warned=yes ;;
3153 esac
3154 CC=$ac_ct_CC
3155 fi
3156 fi
3157
3158 fi
3159
3160
3161 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3163 as_fn_error $? "no acceptable C compiler found in \$PATH
3164 See \`config.log' for more details" "$LINENO" 5; }
3165
3166 # Provide some information about the compiler.
3167 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3168 set X $ac_compile
3169 ac_compiler=$2
3170 for ac_option in --version -v -V -qversion; do
3171 { { ac_try="$ac_compiler $ac_option >&5"
3172 case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3175 esac
3176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177 $as_echo "$ac_try_echo"; } >&5
3178 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3179 ac_status=$?
3180 if test -s conftest.err; then
3181 sed '10a\
3182 ... rest of stderr output deleted ...
3183 10q' conftest.err >conftest.er1
3184 cat conftest.er1 >&5
3185 fi
3186 rm -f conftest.er1 conftest.err
3187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3188 test $ac_status = 0; }
3189 done
3190
3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h. */
3193
3194 int
3195 main ()
3196 {
3197
3198 ;
3199 return 0;
3200 }
3201 _ACEOF
3202 ac_clean_files_save=$ac_clean_files
3203 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3204 # Try to create an executable without -o first, disregard a.out.
3205 # It will help us diagnose broken compilers, and finding out an intuition
3206 # of exeext.
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3208 $as_echo_n "checking whether the C compiler works... " >&6; }
3209 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3210
3211 # The possible output files:
3212 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3213
3214 ac_rmfiles=
3215 for ac_file in $ac_files
3216 do
3217 case $ac_file in
3218 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3219 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3220 esac
3221 done
3222 rm -f $ac_rmfiles
3223
3224 if { { ac_try="$ac_link_default"
3225 case "(($ac_try" in
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3228 esac
3229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230 $as_echo "$ac_try_echo"; } >&5
3231 (eval "$ac_link_default") 2>&5
3232 ac_status=$?
3233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3234 test $ac_status = 0; }; then :
3235 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3236 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3237 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3238 # so that the user can short-circuit this test for compilers unknown to
3239 # Autoconf.
3240 for ac_file in $ac_files ''
3241 do
3242 test -f "$ac_file" || continue
3243 case $ac_file in
3244 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3245 ;;
3246 [ab].out )
3247 # We found the default executable, but exeext='' is most
3248 # certainly right.
3249 break;;
3250 *.* )
3251 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3252 then :; else
3253 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3254 fi
3255 # We set ac_cv_exeext here because the later test for it is not
3256 # safe: cross compilers may not add the suffix if given an `-o'
3257 # argument, so we may need to know it at that point already.
3258 # Even if this section looks crufty: it has the advantage of
3259 # actually working.
3260 break;;
3261 * )
3262 break;;
3263 esac
3264 done
3265 test "$ac_cv_exeext" = no && ac_cv_exeext=
3266
3267 else
3268 ac_file=''
3269 fi
3270 if test -z "$ac_file"; then :
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272 $as_echo "no" >&6; }
3273 $as_echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3275
3276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3278 as_fn_error 77 "C compiler cannot create executables
3279 See \`config.log' for more details" "$LINENO" 5; }
3280 else
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3282 $as_echo "yes" >&6; }
3283 fi
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3285 $as_echo_n "checking for C compiler default output file name... " >&6; }
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3287 $as_echo "$ac_file" >&6; }
3288 ac_exeext=$ac_cv_exeext
3289
3290 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3291 ac_clean_files=$ac_clean_files_save
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3293 $as_echo_n "checking for suffix of executables... " >&6; }
3294 if { { ac_try="$ac_link"
3295 case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298 esac
3299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3300 $as_echo "$ac_try_echo"; } >&5
3301 (eval "$ac_link") 2>&5
3302 ac_status=$?
3303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304 test $ac_status = 0; }; then :
3305 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3306 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3307 # work properly (i.e., refer to `conftest.exe'), while it won't with
3308 # `rm'.
3309 for ac_file in conftest.exe conftest conftest.*; do
3310 test -f "$ac_file" || continue
3311 case $ac_file in
3312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3313 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3314 break;;
3315 * ) break;;
3316 esac
3317 done
3318 else
3319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3321 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3322 See \`config.log' for more details" "$LINENO" 5; }
3323 fi
3324 rm -f conftest conftest$ac_cv_exeext
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3326 $as_echo "$ac_cv_exeext" >&6; }
3327
3328 rm -f conftest.$ac_ext
3329 EXEEXT=$ac_cv_exeext
3330 ac_exeext=$EXEEXT
3331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332 /* end confdefs.h. */
3333 #include <stdio.h>
3334 int
3335 main ()
3336 {
3337 FILE *f = fopen ("conftest.out", "w");
3338 return ferror (f) || fclose (f) != 0;
3339
3340 ;
3341 return 0;
3342 }
3343 _ACEOF
3344 ac_clean_files="$ac_clean_files conftest.out"
3345 # Check that the compiler produces executables we can run. If not, either
3346 # the compiler is broken, or we cross compile.
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3348 $as_echo_n "checking whether we are cross compiling... " >&6; }
3349 if test "$cross_compiling" != yes; then
3350 { { ac_try="$ac_link"
3351 case "(($ac_try" in
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3354 esac
3355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3356 $as_echo "$ac_try_echo"; } >&5
3357 (eval "$ac_link") 2>&5
3358 ac_status=$?
3359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3360 test $ac_status = 0; }
3361 if { ac_try='./conftest$ac_cv_exeext'
3362 { { case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365 esac
3366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3367 $as_echo "$ac_try_echo"; } >&5
3368 (eval "$ac_try") 2>&5
3369 ac_status=$?
3370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3371 test $ac_status = 0; }; }; then
3372 cross_compiling=no
3373 else
3374 if test "$cross_compiling" = maybe; then
3375 cross_compiling=yes
3376 else
3377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3379 as_fn_error $? "cannot run C compiled programs.
3380 If you meant to cross compile, use \`--host'.
3381 See \`config.log' for more details" "$LINENO" 5; }
3382 fi
3383 fi
3384 fi
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3386 $as_echo "$cross_compiling" >&6; }
3387
3388 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3389 ac_clean_files=$ac_clean_files_save
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3391 $as_echo_n "checking for suffix of object files... " >&6; }
3392 if ${ac_cv_objext+:} false; then :
3393 $as_echo_n "(cached) " >&6
3394 else
3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396 /* end confdefs.h. */
3397
3398 int
3399 main ()
3400 {
3401
3402 ;
3403 return 0;
3404 }
3405 _ACEOF
3406 rm -f conftest.o conftest.obj
3407 if { { ac_try="$ac_compile"
3408 case "(($ac_try" in
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3411 esac
3412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3413 $as_echo "$ac_try_echo"; } >&5
3414 (eval "$ac_compile") 2>&5
3415 ac_status=$?
3416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3417 test $ac_status = 0; }; then :
3418 for ac_file in conftest.o conftest.obj conftest.*; do
3419 test -f "$ac_file" || continue;
3420 case $ac_file in
3421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3422 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3423 break;;
3424 esac
3425 done
3426 else
3427 $as_echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3429
3430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432 as_fn_error $? "cannot compute suffix of object files: cannot compile
3433 See \`config.log' for more details" "$LINENO" 5; }
3434 fi
3435 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3436 fi
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3438 $as_echo "$ac_cv_objext" >&6; }
3439 OBJEXT=$ac_cv_objext
3440 ac_objext=$OBJEXT
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3442 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3443 if ${ac_cv_c_compiler_gnu+:} false; then :
3444 $as_echo_n "(cached) " >&6
3445 else
3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h. */
3448
3449 int
3450 main ()
3451 {
3452 #ifndef __GNUC__
3453 choke me
3454 #endif
3455
3456 ;
3457 return 0;
3458 }
3459 _ACEOF
3460 if ac_fn_c_try_compile "$LINENO"; then :
3461 ac_compiler_gnu=yes
3462 else
3463 ac_compiler_gnu=no
3464 fi
3465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3466 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3467
3468 fi
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3470 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3471 if test $ac_compiler_gnu = yes; then
3472 GCC=yes
3473 else
3474 GCC=
3475 fi
3476 ac_test_CFLAGS=${CFLAGS+set}
3477 ac_save_CFLAGS=$CFLAGS
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3479 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3480 if ${ac_cv_prog_cc_g+:} false; then :
3481 $as_echo_n "(cached) " >&6
3482 else
3483 ac_save_c_werror_flag=$ac_c_werror_flag
3484 ac_c_werror_flag=yes
3485 ac_cv_prog_cc_g=no
3486 CFLAGS="-g"
3487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488 /* end confdefs.h. */
3489
3490 int
3491 main ()
3492 {
3493
3494 ;
3495 return 0;
3496 }
3497 _ACEOF
3498 if ac_fn_c_try_compile "$LINENO"; then :
3499 ac_cv_prog_cc_g=yes
3500 else
3501 CFLAGS=""
3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 /* end confdefs.h. */
3504
3505 int
3506 main ()
3507 {
3508
3509 ;
3510 return 0;
3511 }
3512 _ACEOF
3513 if ac_fn_c_try_compile "$LINENO"; then :
3514
3515 else
3516 ac_c_werror_flag=$ac_save_c_werror_flag
3517 CFLAGS="-g"
3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519 /* end confdefs.h. */
3520
3521 int
3522 main ()
3523 {
3524
3525 ;
3526 return 0;
3527 }
3528 _ACEOF
3529 if ac_fn_c_try_compile "$LINENO"; then :
3530 ac_cv_prog_cc_g=yes
3531 fi
3532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3533 fi
3534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3535 fi
3536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3537 ac_c_werror_flag=$ac_save_c_werror_flag
3538 fi
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3540 $as_echo "$ac_cv_prog_cc_g" >&6; }
3541 if test "$ac_test_CFLAGS" = set; then
3542 CFLAGS=$ac_save_CFLAGS
3543 elif test $ac_cv_prog_cc_g = yes; then
3544 if test "$GCC" = yes; then
3545 CFLAGS="-g -O2"
3546 else
3547 CFLAGS="-g"
3548 fi
3549 else
3550 if test "$GCC" = yes; then
3551 CFLAGS="-O2"
3552 else
3553 CFLAGS=
3554 fi
3555 fi
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3557 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3558 if ${ac_cv_prog_cc_c89+:} false; then :
3559 $as_echo_n "(cached) " >&6
3560 else
3561 ac_cv_prog_cc_c89=no
3562 ac_save_CC=$CC
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h. */
3565 #include <stdarg.h>
3566 #include <stdio.h>
3567 struct stat;
3568 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3569 struct buf { int x; };
3570 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3571 static char *e (p, i)
3572 char **p;
3573 int i;
3574 {
3575 return p[i];
3576 }
3577 static char *f (char * (*g) (char **, int), char **p, ...)
3578 {
3579 char *s;
3580 va_list v;
3581 va_start (v,p);
3582 s = g (p, va_arg (v,int));
3583 va_end (v);
3584 return s;
3585 }
3586
3587 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3588 function prototypes and stuff, but not '\xHH' hex character constants.
3589 These don't provoke an error unfortunately, instead are silently treated
3590 as 'x'. The following induces an error, until -std is added to get
3591 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3592 array size at least. It's necessary to write '\x00'==0 to get something
3593 that's true only with -std. */
3594 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3595
3596 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3597 inside strings and character constants. */
3598 #define FOO(x) 'x'
3599 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3600
3601 int test (int i, double x);
3602 struct s1 {int (*f) (int a);};
3603 struct s2 {int (*f) (double a);};
3604 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3605 int argc;
3606 char **argv;
3607 int
3608 main ()
3609 {
3610 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3611 ;
3612 return 0;
3613 }
3614 _ACEOF
3615 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3616 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3617 do
3618 CC="$ac_save_CC $ac_arg"
3619 if ac_fn_c_try_compile "$LINENO"; then :
3620 ac_cv_prog_cc_c89=$ac_arg
3621 fi
3622 rm -f core conftest.err conftest.$ac_objext
3623 test "x$ac_cv_prog_cc_c89" != "xno" && break
3624 done
3625 rm -f conftest.$ac_ext
3626 CC=$ac_save_CC
3627
3628 fi
3629 # AC_CACHE_VAL
3630 case "x$ac_cv_prog_cc_c89" in
3631 x)
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3633 $as_echo "none needed" >&6; } ;;
3634 xno)
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3636 $as_echo "unsupported" >&6; } ;;
3637 *)
3638 CC="$CC $ac_cv_prog_cc_c89"
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3640 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3641 esac
3642 if test "x$ac_cv_prog_cc_c89" != xno; then :
3643
3644 fi
3645
3646 ac_ext=c
3647 ac_cpp='$CPP $CPPFLAGS'
3648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3651
3652 depcc="$CC" am_compiler_list=
3653
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3655 $as_echo_n "checking dependency style of $depcc... " >&6; }
3656 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3657 $as_echo_n "(cached) " >&6
3658 else
3659 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3660 # We make a subdir and do the tests there. Otherwise we can end up
3661 # making bogus files that we don't know about and never remove. For
3662 # instance it was reported that on HP-UX the gcc test will end up
3663 # making a dummy file named `D' -- because `-MD' means `put the output
3664 # in D'.
3665 rm -rf conftest.dir
3666 mkdir conftest.dir
3667 # Copy depcomp to subdir because otherwise we won't find it if we're
3668 # using a relative directory.
3669 cp "$am_depcomp" conftest.dir
3670 cd conftest.dir
3671 # We will build objects and dependencies in a subdirectory because
3672 # it helps to detect inapplicable dependency modes. For instance
3673 # both Tru64's cc and ICC support -MD to output dependencies as a
3674 # side effect of compilation, but ICC will put the dependencies in
3675 # the current directory while Tru64 will put them in the object
3676 # directory.
3677 mkdir sub
3678
3679 am_cv_CC_dependencies_compiler_type=none
3680 if test "$am_compiler_list" = ""; then
3681 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3682 fi
3683 am__universal=false
3684 case " $depcc " in #(
3685 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3686 esac
3687
3688 for depmode in $am_compiler_list; do
3689 # Setup a source with many dependencies, because some compilers
3690 # like to wrap large dependency lists on column 80 (with \), and
3691 # we should not choose a depcomp mode which is confused by this.
3692 #
3693 # We need to recreate these files for each test, as the compiler may
3694 # overwrite some of them when testing with obscure command lines.
3695 # This happens at least with the AIX C compiler.
3696 : > sub/conftest.c
3697 for i in 1 2 3 4 5 6; do
3698 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3699 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3700 # Solaris 8's {/usr,}/bin/sh.
3701 touch sub/conftst$i.h
3702 done
3703 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3704
3705 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3706 # mode. It turns out that the SunPro C++ compiler does not properly
3707 # handle `-M -o', and we need to detect this. Also, some Intel
3708 # versions had trouble with output in subdirs
3709 am__obj=sub/conftest.${OBJEXT-o}
3710 am__minus_obj="-o $am__obj"
3711 case $depmode in
3712 gcc)
3713 # This depmode causes a compiler race in universal mode.
3714 test "$am__universal" = false || continue
3715 ;;
3716 nosideeffect)
3717 # after this tag, mechanisms are not by side-effect, so they'll
3718 # only be used when explicitly requested
3719 if test "x$enable_dependency_tracking" = xyes; then
3720 continue
3721 else
3722 break
3723 fi
3724 ;;
3725 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3726 # This compiler won't grok `-c -o', but also, the minuso test has
3727 # not run yet. These depmodes are late enough in the game, and
3728 # so weak that their functioning should not be impacted.
3729 am__obj=conftest.${OBJEXT-o}
3730 am__minus_obj=
3731 ;;
3732 none) break ;;
3733 esac
3734 if depmode=$depmode \
3735 source=sub/conftest.c object=$am__obj \
3736 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3737 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3738 >/dev/null 2>conftest.err &&
3739 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3740 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3741 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3742 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3743 # icc doesn't choke on unknown options, it will just issue warnings
3744 # or remarks (even with -Werror). So we grep stderr for any message
3745 # that says an option was ignored or not supported.
3746 # When given -MP, icc 7.0 and 7.1 complain thusly:
3747 # icc: Command line warning: ignoring option '-M'; no argument required
3748 # The diagnosis changed in icc 8.0:
3749 # icc: Command line remark: option '-MP' not supported
3750 if (grep 'ignoring option' conftest.err ||
3751 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3752 am_cv_CC_dependencies_compiler_type=$depmode
3753 break
3754 fi
3755 fi
3756 done
3757
3758 cd ..
3759 rm -rf conftest.dir
3760 else
3761 am_cv_CC_dependencies_compiler_type=none
3762 fi
3763
3764 fi
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3766 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3767 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3768
3769 if
3770 test "x$enable_dependency_tracking" != xno \
3771 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3772 am__fastdepCC_TRUE=
3773 am__fastdepCC_FALSE='#'
3774 else
3775 am__fastdepCC_TRUE='#'
3776 am__fastdepCC_FALSE=
3777 fi
3778
3779
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3781 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3782 if ${ac_cv_prog_cc_c99+:} false; then :
3783 $as_echo_n "(cached) " >&6
3784 else
3785 ac_cv_prog_cc_c99=no
3786 ac_save_CC=$CC
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3789 #include <stdarg.h>
3790 #include <stdbool.h>
3791 #include <stdlib.h>
3792 #include <wchar.h>
3793 #include <stdio.h>
3794
3795 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3796 #define debug(...) fprintf (stderr, __VA_ARGS__)
3797 #define showlist(...) puts (#__VA_ARGS__)
3798 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3799 static void
3800 test_varargs_macros (void)
3801 {
3802 int x = 1234;
3803 int y = 5678;
3804 debug ("Flag");
3805 debug ("X = %d\n", x);
3806 showlist (The first, second, and third items.);
3807 report (x>y, "x is %d but y is %d", x, y);
3808 }
3809
3810 // Check long long types.
3811 #define BIG64 18446744073709551615ull
3812 #define BIG32 4294967295ul
3813 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3814 #if !BIG_OK
3815 your preprocessor is broken;
3816 #endif
3817 #if BIG_OK
3818 #else
3819 your preprocessor is broken;
3820 #endif
3821 static long long int bignum = -9223372036854775807LL;
3822 static unsigned long long int ubignum = BIG64;
3823
3824 struct incomplete_array
3825 {
3826 int datasize;
3827 double data[];
3828 };
3829
3830 struct named_init {
3831 int number;
3832 const wchar_t *name;
3833 double average;
3834 };
3835
3836 typedef const char *ccp;
3837
3838 static inline int
3839 test_restrict (ccp restrict text)
3840 {
3841 // See if C++-style comments work.
3842 // Iterate through items via the restricted pointer.
3843 // Also check for declarations in for loops.
3844 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3845 continue;
3846 return 0;
3847 }
3848
3849 // Check varargs and va_copy.
3850 static void
3851 test_varargs (const char *format, ...)
3852 {
3853 va_list args;
3854 va_start (args, format);
3855 va_list args_copy;
3856 va_copy (args_copy, args);
3857
3858 const char *str;
3859 int number;
3860 float fnumber;
3861
3862 while (*format)
3863 {
3864 switch (*format++)
3865 {
3866 case 's': // string
3867 str = va_arg (args_copy, const char *);
3868 break;
3869 case 'd': // int
3870 number = va_arg (args_copy, int);
3871 break;
3872 case 'f': // float
3873 fnumber = va_arg (args_copy, double);
3874 break;
3875 default:
3876 break;
3877 }
3878 }
3879 va_end (args_copy);
3880 va_end (args);
3881 }
3882
3883 int
3884 main ()
3885 {
3886
3887 // Check bool.
3888 _Bool success = false;
3889
3890 // Check restrict.
3891 if (test_restrict ("String literal") == 0)
3892 success = true;
3893 char *restrict newvar = "Another string";
3894
3895 // Check varargs.
3896 test_varargs ("s, d' f .", "string", 65, 34.234);
3897 test_varargs_macros ();
3898
3899 // Check flexible array members.
3900 struct incomplete_array *ia =
3901 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3902 ia->datasize = 10;
3903 for (int i = 0; i < ia->datasize; ++i)
3904 ia->data[i] = i * 1.234;
3905
3906 // Check named initializers.
3907 struct named_init ni = {
3908 .number = 34,
3909 .name = L"Test wide string",
3910 .average = 543.34343,
3911 };
3912
3913 ni.number = 58;
3914
3915 int dynamic_array[ni.number];
3916 dynamic_array[ni.number - 1] = 543;
3917
3918 // work around unused variable warnings
3919 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3920 || dynamic_array[ni.number - 1] != 543);
3921
3922 ;
3923 return 0;
3924 }
3925 _ACEOF
3926 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3927 do
3928 CC="$ac_save_CC $ac_arg"
3929 if ac_fn_c_try_compile "$LINENO"; then :
3930 ac_cv_prog_cc_c99=$ac_arg
3931 fi
3932 rm -f core conftest.err conftest.$ac_objext
3933 test "x$ac_cv_prog_cc_c99" != "xno" && break
3934 done
3935 rm -f conftest.$ac_ext
3936 CC=$ac_save_CC
3937
3938 fi
3939 # AC_CACHE_VAL
3940 case "x$ac_cv_prog_cc_c99" in
3941 x)
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3943 $as_echo "none needed" >&6; } ;;
3944 xno)
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3946 $as_echo "unsupported" >&6; } ;;
3947 *)
3948 CC="$CC $ac_cv_prog_cc_c99"
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3950 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3951 esac
3952 if test "x$ac_cv_prog_cc_c99" != xno; then :
3953
3954 fi
3955
3956
3957
3958 ac_ext=c
3959 ac_cpp='$CPP $CPPFLAGS'
3960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3964 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3965 # On Suns, sometimes $CPP names a directory.
3966 if test -n "$CPP" && test -d "$CPP"; then
3967 CPP=
3968 fi
3969 if test -z "$CPP"; then
3970 if ${ac_cv_prog_CPP+:} false; then :
3971 $as_echo_n "(cached) " >&6
3972 else
3973 # Double quotes because CPP needs to be expanded
3974 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3975 do
3976 ac_preproc_ok=false
3977 for ac_c_preproc_warn_flag in '' yes
3978 do
3979 # Use a header file that comes with gcc, so configuring glibc
3980 # with a fresh cross-compiler works.
3981 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3982 # <limits.h> exists even on freestanding compilers.
3983 # On the NeXT, cc -E runs the code through the compiler's parser,
3984 # not just through cpp. "Syntax error" is here to catch this case.
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3987 #ifdef __STDC__
3988 # include <limits.h>
3989 #else
3990 # include <assert.h>
3991 #endif
3992 Syntax error
3993 _ACEOF
3994 if ac_fn_c_try_cpp "$LINENO"; then :
3995
3996 else
3997 # Broken: fails on valid input.
3998 continue
3999 fi
4000 rm -f conftest.err conftest.i conftest.$ac_ext
4001
4002 # OK, works on sane cases. Now check whether nonexistent headers
4003 # can be detected and how.
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4006 #include <ac_nonexistent.h>
4007 _ACEOF
4008 if ac_fn_c_try_cpp "$LINENO"; then :
4009 # Broken: success on invalid input.
4010 continue
4011 else
4012 # Passes both tests.
4013 ac_preproc_ok=:
4014 break
4015 fi
4016 rm -f conftest.err conftest.i conftest.$ac_ext
4017
4018 done
4019 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4020 rm -f conftest.i conftest.err conftest.$ac_ext
4021 if $ac_preproc_ok; then :
4022 break
4023 fi
4024
4025 done
4026 ac_cv_prog_CPP=$CPP
4027
4028 fi
4029 CPP=$ac_cv_prog_CPP
4030 else
4031 ac_cv_prog_CPP=$CPP
4032 fi
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4034 $as_echo "$CPP" >&6; }
4035 ac_preproc_ok=false
4036 for ac_c_preproc_warn_flag in '' yes
4037 do
4038 # Use a header file that comes with gcc, so configuring glibc
4039 # with a fresh cross-compiler works.
4040 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4041 # <limits.h> exists even on freestanding compilers.
4042 # On the NeXT, cc -E runs the code through the compiler's parser,
4043 # not just through cpp. "Syntax error" is here to catch this case.
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4046 #ifdef __STDC__
4047 # include <limits.h>
4048 #else
4049 # include <assert.h>
4050 #endif
4051 Syntax error
4052 _ACEOF
4053 if ac_fn_c_try_cpp "$LINENO"; then :
4054
4055 else
4056 # Broken: fails on valid input.
4057 continue
4058 fi
4059 rm -f conftest.err conftest.i conftest.$ac_ext
4060
4061 # OK, works on sane cases. Now check whether nonexistent headers
4062 # can be detected and how.
4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h. */
4065 #include <ac_nonexistent.h>
4066 _ACEOF
4067 if ac_fn_c_try_cpp "$LINENO"; then :
4068 # Broken: success on invalid input.
4069 continue
4070 else
4071 # Passes both tests.
4072 ac_preproc_ok=:
4073 break
4074 fi
4075 rm -f conftest.err conftest.i conftest.$ac_ext
4076
4077 done
4078 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4079 rm -f conftest.i conftest.err conftest.$ac_ext
4080 if $ac_preproc_ok; then :
4081
4082 else
4083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4085 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4086 See \`config.log' for more details" "$LINENO" 5; }
4087 fi
4088
4089 ac_ext=c
4090 ac_cpp='$CPP $CPPFLAGS'
4091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4094
4095
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4097 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4098 if ${ac_cv_path_GREP+:} false; then :
4099 $as_echo_n "(cached) " >&6
4100 else
4101 if test -z "$GREP"; then
4102 ac_path_GREP_found=false
4103 # Loop through the user's path and test for each of PROGNAME-LIST
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4106 do
4107 IFS=$as_save_IFS
4108 test -z "$as_dir" && as_dir=.
4109 for ac_prog in grep ggrep; do
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4112 as_fn_executable_p "$ac_path_GREP" || continue
4113 # Check for GNU ac_path_GREP and select it if it is found.
4114 # Check for GNU $ac_path_GREP
4115 case `"$ac_path_GREP" --version 2>&1` in
4116 *GNU*)
4117 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4118 *)
4119 ac_count=0
4120 $as_echo_n 0123456789 >"conftest.in"
4121 while :
4122 do
4123 cat "conftest.in" "conftest.in" >"conftest.tmp"
4124 mv "conftest.tmp" "conftest.in"
4125 cp "conftest.in" "conftest.nl"
4126 $as_echo 'GREP' >> "conftest.nl"
4127 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4128 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4129 as_fn_arith $ac_count + 1 && ac_count=$as_val
4130 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4131 # Best one so far, save it but keep looking for a better one
4132 ac_cv_path_GREP="$ac_path_GREP"
4133 ac_path_GREP_max=$ac_count
4134 fi
4135 # 10*(2^10) chars as input seems more than enough
4136 test $ac_count -gt 10 && break
4137 done
4138 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4139 esac
4140
4141 $ac_path_GREP_found && break 3
4142 done
4143 done
4144 done
4145 IFS=$as_save_IFS
4146 if test -z "$ac_cv_path_GREP"; then
4147 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4148 fi
4149 else
4150 ac_cv_path_GREP=$GREP
4151 fi
4152
4153 fi
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4155 $as_echo "$ac_cv_path_GREP" >&6; }
4156 GREP="$ac_cv_path_GREP"
4157
4158
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4160 $as_echo_n "checking for egrep... " >&6; }
4161 if ${ac_cv_path_EGREP+:} false; then :
4162 $as_echo_n "(cached) " >&6
4163 else
4164 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4165 then ac_cv_path_EGREP="$GREP -E"
4166 else
4167 if test -z "$EGREP"; then
4168 ac_path_EGREP_found=false
4169 # Loop through the user's path and test for each of PROGNAME-LIST
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4172 do
4173 IFS=$as_save_IFS
4174 test -z "$as_dir" && as_dir=.
4175 for ac_prog in egrep; do
4176 for ac_exec_ext in '' $ac_executable_extensions; do
4177 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4178 as_fn_executable_p "$ac_path_EGREP" || continue
4179 # Check for GNU ac_path_EGREP and select it if it is found.
4180 # Check for GNU $ac_path_EGREP
4181 case `"$ac_path_EGREP" --version 2>&1` in
4182 *GNU*)
4183 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4184 *)
4185 ac_count=0
4186 $as_echo_n 0123456789 >"conftest.in"
4187 while :
4188 do
4189 cat "conftest.in" "conftest.in" >"conftest.tmp"
4190 mv "conftest.tmp" "conftest.in"
4191 cp "conftest.in" "conftest.nl"
4192 $as_echo 'EGREP' >> "conftest.nl"
4193 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4194 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4195 as_fn_arith $ac_count + 1 && ac_count=$as_val
4196 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4197 # Best one so far, save it but keep looking for a better one
4198 ac_cv_path_EGREP="$ac_path_EGREP"
4199 ac_path_EGREP_max=$ac_count
4200 fi
4201 # 10*(2^10) chars as input seems more than enough
4202 test $ac_count -gt 10 && break
4203 done
4204 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4205 esac
4206
4207 $ac_path_EGREP_found && break 3
4208 done
4209 done
4210 done
4211 IFS=$as_save_IFS
4212 if test -z "$ac_cv_path_EGREP"; then
4213 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4214 fi
4215 else
4216 ac_cv_path_EGREP=$EGREP
4217 fi
4218
4219 fi
4220 fi
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4222 $as_echo "$ac_cv_path_EGREP" >&6; }
4223 EGREP="$ac_cv_path_EGREP"
4224
4225
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4227 $as_echo_n "checking for ANSI C header files... " >&6; }
4228 if ${ac_cv_header_stdc+:} false; then :
4229 $as_echo_n "(cached) " >&6
4230 else
4231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232 /* end confdefs.h. */
4233 #include <stdlib.h>
4234 #include <stdarg.h>
4235 #include <string.h>
4236 #include <float.h>
4237
4238 int
4239 main ()
4240 {
4241
4242 ;
4243 return 0;
4244 }
4245 _ACEOF
4246 if ac_fn_c_try_compile "$LINENO"; then :
4247 ac_cv_header_stdc=yes
4248 else
4249 ac_cv_header_stdc=no
4250 fi
4251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4252
4253 if test $ac_cv_header_stdc = yes; then
4254 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4257 #include <string.h>
4258
4259 _ACEOF
4260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4261 $EGREP "memchr" >/dev/null 2>&1; then :
4262
4263 else
4264 ac_cv_header_stdc=no
4265 fi
4266 rm -f conftest*
4267
4268 fi
4269
4270 if test $ac_cv_header_stdc = yes; then
4271 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273 /* end confdefs.h. */
4274 #include <stdlib.h>
4275
4276 _ACEOF
4277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4278 $EGREP "free" >/dev/null 2>&1; then :
4279
4280 else
4281 ac_cv_header_stdc=no
4282 fi
4283 rm -f conftest*
4284
4285 fi
4286
4287 if test $ac_cv_header_stdc = yes; then
4288 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4289 if test "$cross_compiling" = yes; then :
4290 :
4291 else
4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293 /* end confdefs.h. */
4294 #include <ctype.h>
4295 #include <stdlib.h>
4296 #if ((' ' & 0x0FF) == 0x020)
4297 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4298 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4299 #else
4300 # define ISLOWER(c) \
4301 (('a' <= (c) && (c) <= 'i') \
4302 || ('j' <= (c) && (c) <= 'r') \
4303 || ('s' <= (c) && (c) <= 'z'))
4304 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4305 #endif
4306
4307 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4308 int
4309 main ()
4310 {
4311 int i;
4312 for (i = 0; i < 256; i++)
4313 if (XOR (islower (i), ISLOWER (i))
4314 || toupper (i) != TOUPPER (i))
4315 return 2;
4316 return 0;
4317 }
4318 _ACEOF
4319 if ac_fn_c_try_run "$LINENO"; then :
4320
4321 else
4322 ac_cv_header_stdc=no
4323 fi
4324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4325 conftest.$ac_objext conftest.beam conftest.$ac_ext
4326 fi
4327
4328 fi
4329 fi
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4331 $as_echo "$ac_cv_header_stdc" >&6; }
4332 if test $ac_cv_header_stdc = yes; then
4333
4334 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4335
4336 fi
4337
4338 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4339 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4340 inttypes.h stdint.h unistd.h
4341 do :
4342 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4343 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4344 "
4345 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4346 cat >>confdefs.h <<_ACEOF
4347 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4348 _ACEOF
4349
4350 fi
4351
4352 done
4353
4354
4355
4356
4357
4358
4359 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4360 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4361 CLANGCC="yes"
4362 else
4363 CLANGCC="no"
4364 fi
4365
4366 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4367 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4368 INTELCC="yes"
4369 else
4370 INTELCC="no"
4371 fi
4372
4373 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4374 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4375 SUNCC="yes"
4376 else
4377 SUNCC="no"
4378 fi
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4389 if test -n "$ac_tool_prefix"; then
4390 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4391 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4393 $as_echo_n "checking for $ac_word... " >&6; }
4394 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4395 $as_echo_n "(cached) " >&6
4396 else
4397 case $PKG_CONFIG in
4398 [\\/]* | ?:[\\/]*)
4399 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4400 ;;
4401 *)
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 for as_dir in $PATH
4404 do
4405 IFS=$as_save_IFS
4406 test -z "$as_dir" && as_dir=.
4407 for ac_exec_ext in '' $ac_executable_extensions; do
4408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4409 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4411 break 2
4412 fi
4413 done
4414 done
4415 IFS=$as_save_IFS
4416
4417 ;;
4418 esac
4419 fi
4420 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4421 if test -n "$PKG_CONFIG"; then
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4423 $as_echo "$PKG_CONFIG" >&6; }
4424 else
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426 $as_echo "no" >&6; }
4427 fi
4428
4429
4430 fi
4431 if test -z "$ac_cv_path_PKG_CONFIG"; then
4432 ac_pt_PKG_CONFIG=$PKG_CONFIG
4433 # Extract the first word of "pkg-config", so it can be a program name with args.
4434 set dummy pkg-config; ac_word=$2
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4436 $as_echo_n "checking for $ac_word... " >&6; }
4437 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4438 $as_echo_n "(cached) " >&6
4439 else
4440 case $ac_pt_PKG_CONFIG in
4441 [\\/]* | ?:[\\/]*)
4442 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4443 ;;
4444 *)
4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 for as_dir in $PATH
4447 do
4448 IFS=$as_save_IFS
4449 test -z "$as_dir" && as_dir=.
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4452 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4454 break 2
4455 fi
4456 done
4457 done
4458 IFS=$as_save_IFS
4459
4460 ;;
4461 esac
4462 fi
4463 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4464 if test -n "$ac_pt_PKG_CONFIG"; then
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4466 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4467 else
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4469 $as_echo "no" >&6; }
4470 fi
4471
4472 if test "x$ac_pt_PKG_CONFIG" = x; then
4473 PKG_CONFIG=""
4474 else
4475 case $cross_compiling:$ac_tool_warned in
4476 yes:)
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4479 ac_tool_warned=yes ;;
4480 esac
4481 PKG_CONFIG=$ac_pt_PKG_CONFIG
4482 fi
4483 else
4484 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4485 fi
4486
4487 fi
4488 if test -n "$PKG_CONFIG"; then
4489 _pkg_min_version=0.9.0
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4491 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4492 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4494 $as_echo "yes" >&6; }
4495 else
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4497 $as_echo "no" >&6; }
4498 PKG_CONFIG=""
4499 fi
4500 fi
4501 # Make sure we can run config.sub.
4502 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4503 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4504
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4506 $as_echo_n "checking build system type... " >&6; }
4507 if ${ac_cv_build+:} false; then :
4508 $as_echo_n "(cached) " >&6
4509 else
4510 ac_build_alias=$build_alias
4511 test "x$ac_build_alias" = x &&
4512 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4513 test "x$ac_build_alias" = x &&
4514 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4515 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4516 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4517
4518 fi
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4520 $as_echo "$ac_cv_build" >&6; }
4521 case $ac_cv_build in
4522 *-*-*) ;;
4523 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4524 esac
4525 build=$ac_cv_build
4526 ac_save_IFS=$IFS; IFS='-'
4527 set x $ac_cv_build
4528 shift
4529 build_cpu=$1
4530 build_vendor=$2
4531 shift; shift
4532 # Remember, the first character of IFS is used to create $*,
4533 # except with old shells:
4534 build_os=$*
4535 IFS=$ac_save_IFS
4536 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4537
4538
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4540 $as_echo_n "checking host system type... " >&6; }
4541 if ${ac_cv_host+:} false; then :
4542 $as_echo_n "(cached) " >&6
4543 else
4544 if test "x$host_alias" = x; then
4545 ac_cv_host=$ac_cv_build
4546 else
4547 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4548 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4549 fi
4550
4551 fi
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4553 $as_echo "$ac_cv_host" >&6; }
4554 case $ac_cv_host in
4555 *-*-*) ;;
4556 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4557 esac
4558 host=$ac_cv_host
4559 ac_save_IFS=$IFS; IFS='-'
4560 set x $ac_cv_host
4561 shift
4562 host_cpu=$1
4563 host_vendor=$2
4564 shift; shift
4565 # Remember, the first character of IFS is used to create $*,
4566 # except with old shells:
4567 host_os=$*
4568 IFS=$ac_save_IFS
4569 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4570
4571
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4573 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4574 if ${ac_cv_path_SED+:} false; then :
4575 $as_echo_n "(cached) " >&6
4576 else
4577 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4578 for ac_i in 1 2 3 4 5 6 7; do
4579 ac_script="$ac_script$as_nl$ac_script"
4580 done
4581 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4582 { ac_script=; unset ac_script;}
4583 if test -z "$SED"; then
4584 ac_path_SED_found=false
4585 # Loop through the user's path and test for each of PROGNAME-LIST
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH
4588 do
4589 IFS=$as_save_IFS
4590 test -z "$as_dir" && as_dir=.
4591 for ac_prog in sed gsed; do
4592 for ac_exec_ext in '' $ac_executable_extensions; do
4593 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4594 as_fn_executable_p "$ac_path_SED" || continue
4595 # Check for GNU ac_path_SED and select it if it is found.
4596 # Check for GNU $ac_path_SED
4597 case `"$ac_path_SED" --version 2>&1` in
4598 *GNU*)
4599 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4600 *)
4601 ac_count=0
4602 $as_echo_n 0123456789 >"conftest.in"
4603 while :
4604 do
4605 cat "conftest.in" "conftest.in" >"conftest.tmp"
4606 mv "conftest.tmp" "conftest.in"
4607 cp "conftest.in" "conftest.nl"
4608 $as_echo '' >> "conftest.nl"
4609 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4610 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4611 as_fn_arith $ac_count + 1 && ac_count=$as_val
4612 if test $ac_count -gt ${ac_path_SED_max-0}; then
4613 # Best one so far, save it but keep looking for a better one
4614 ac_cv_path_SED="$ac_path_SED"
4615 ac_path_SED_max=$ac_count
4616 fi
4617 # 10*(2^10) chars as input seems more than enough
4618 test $ac_count -gt 10 && break
4619 done
4620 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4621 esac
4622
4623 $ac_path_SED_found && break 3
4624 done
4625 done
4626 done
4627 IFS=$as_save_IFS
4628 if test -z "$ac_cv_path_SED"; then
4629 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4630 fi
4631 else
4632 ac_cv_path_SED=$SED
4633 fi
4634
4635 fi
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4637 $as_echo "$ac_cv_path_SED" >&6; }
4638 SED="$ac_cv_path_SED"
4639 rm -f conftest.sed
4640
4641
4642
4643
4644
4645
4646 # Check whether --enable-selective-werror was given.
4647 if test "${enable_selective_werror+set}" = set; then :
4648 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4649 else
4650 SELECTIVE_WERROR=yes
4651 fi
4652
4653
4654
4655
4656
4657 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4658 if test "x$SUNCC" = "xyes"; then
4659 BASE_CFLAGS="-v"
4660 else
4661 BASE_CFLAGS=""
4662 fi
4663
4664 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678 xorg_testset_save_CFLAGS="$CFLAGS"
4679
4680 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4681 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4683 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4684 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4685 $as_echo_n "(cached) " >&6
4686 else
4687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4688 /* end confdefs.h. */
4689 int i;
4690 _ACEOF
4691 if ac_fn_c_try_compile "$LINENO"; then :
4692 xorg_cv_cc_flag_unknown_warning_option=yes
4693 else
4694 xorg_cv_cc_flag_unknown_warning_option=no
4695 fi
4696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4697 fi
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4699 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4700 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4701 CFLAGS="$xorg_testset_save_CFLAGS"
4702 fi
4703
4704 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4707 fi
4708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4710 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4711 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4712 $as_echo_n "(cached) " >&6
4713 else
4714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715 /* end confdefs.h. */
4716 int i;
4717 _ACEOF
4718 if ac_fn_c_try_compile "$LINENO"; then :
4719 xorg_cv_cc_flag_unused_command_line_argument=yes
4720 else
4721 xorg_cv_cc_flag_unused_command_line_argument=no
4722 fi
4723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4724 fi
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4726 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4727 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4728 CFLAGS="$xorg_testset_save_CFLAGS"
4729 fi
4730
4731 found="no"
4732
4733 if test $found = "no" ; then
4734 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4735 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4736 fi
4737
4738 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4740 fi
4741
4742 CFLAGS="$CFLAGS -Wall"
4743
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
4745 $as_echo_n "checking if $CC supports-Wall... " >&6; }
4746 cacheid=xorg_cv_cc_flag__Wall
4747 if eval \${$cacheid+:} false; then :
4748 $as_echo_n "(cached) " >&6
4749 else
4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751 /* end confdefs.h. */
4752 int i;
4753 int
4754 main ()
4755 {
4756
4757 ;
4758 return 0;
4759 }
4760 _ACEOF
4761 if ac_fn_c_try_link "$LINENO"; then :
4762 eval $cacheid=yes
4763 else
4764 eval $cacheid=no
4765 fi
4766 rm -f core conftest.err conftest.$ac_objext \
4767 conftest$ac_exeext conftest.$ac_ext
4768 fi
4769
4770
4771 CFLAGS="$xorg_testset_save_CFLAGS"
4772
4773 eval supported=\$$cacheid
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4775 $as_echo "$supported" >&6; }
4776 if test "$supported" = "yes" ; then
4777 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4778 found="yes"
4779 fi
4780 fi
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796 xorg_testset_save_CFLAGS="$CFLAGS"
4797
4798 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4801 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4802 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4803 $as_echo_n "(cached) " >&6
4804 else
4805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4806 /* end confdefs.h. */
4807 int i;
4808 _ACEOF
4809 if ac_fn_c_try_compile "$LINENO"; then :
4810 xorg_cv_cc_flag_unknown_warning_option=yes
4811 else
4812 xorg_cv_cc_flag_unknown_warning_option=no
4813 fi
4814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4815 fi
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4817 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4818 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4819 CFLAGS="$xorg_testset_save_CFLAGS"
4820 fi
4821
4822 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4825 fi
4826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4828 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4829 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4830 $as_echo_n "(cached) " >&6
4831 else
4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h. */
4834 int i;
4835 _ACEOF
4836 if ac_fn_c_try_compile "$LINENO"; then :
4837 xorg_cv_cc_flag_unused_command_line_argument=yes
4838 else
4839 xorg_cv_cc_flag_unused_command_line_argument=no
4840 fi
4841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4842 fi
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4844 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4845 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4846 CFLAGS="$xorg_testset_save_CFLAGS"
4847 fi
4848
4849 found="no"
4850
4851 if test $found = "no" ; then
4852 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4853 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4854 fi
4855
4856 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4858 fi
4859
4860 CFLAGS="$CFLAGS -Wpointer-arith"
4861
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
4863 $as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
4864 cacheid=xorg_cv_cc_flag__Wpointer_arith
4865 if eval \${$cacheid+:} false; then :
4866 $as_echo_n "(cached) " >&6
4867 else
4868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869 /* end confdefs.h. */
4870 int i;
4871 int
4872 main ()
4873 {
4874
4875 ;
4876 return 0;
4877 }
4878 _ACEOF
4879 if ac_fn_c_try_link "$LINENO"; then :
4880 eval $cacheid=yes
4881 else
4882 eval $cacheid=no
4883 fi
4884 rm -f core conftest.err conftest.$ac_objext \
4885 conftest$ac_exeext conftest.$ac_ext
4886 fi
4887
4888
4889 CFLAGS="$xorg_testset_save_CFLAGS"
4890
4891 eval supported=\$$cacheid
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4893 $as_echo "$supported" >&6; }
4894 if test "$supported" = "yes" ; then
4895 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4896 found="yes"
4897 fi
4898 fi
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914 xorg_testset_save_CFLAGS="$CFLAGS"
4915
4916 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4917 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4919 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4920 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4921 $as_echo_n "(cached) " >&6
4922 else
4923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4924 /* end confdefs.h. */
4925 int i;
4926 _ACEOF
4927 if ac_fn_c_try_compile "$LINENO"; then :
4928 xorg_cv_cc_flag_unknown_warning_option=yes
4929 else
4930 xorg_cv_cc_flag_unknown_warning_option=no
4931 fi
4932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4933 fi
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4935 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4936 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4937 CFLAGS="$xorg_testset_save_CFLAGS"
4938 fi
4939
4940 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4942 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4943 fi
4944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4946 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4947 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4948 $as_echo_n "(cached) " >&6
4949 else
4950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951 /* end confdefs.h. */
4952 int i;
4953 _ACEOF
4954 if ac_fn_c_try_compile "$LINENO"; then :
4955 xorg_cv_cc_flag_unused_command_line_argument=yes
4956 else
4957 xorg_cv_cc_flag_unused_command_line_argument=no
4958 fi
4959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4960 fi
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4962 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4963 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4964 CFLAGS="$xorg_testset_save_CFLAGS"
4965 fi
4966
4967 found="no"
4968
4969 if test $found = "no" ; then
4970 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4971 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4972 fi
4973
4974 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4976 fi
4977
4978 CFLAGS="$CFLAGS -Wmissing-declarations"
4979
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
4981 $as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
4982 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4983 if eval \${$cacheid+:} false; then :
4984 $as_echo_n "(cached) " >&6
4985 else
4986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987 /* end confdefs.h. */
4988 int i;
4989 int
4990 main ()
4991 {
4992
4993 ;
4994 return 0;
4995 }
4996 _ACEOF
4997 if ac_fn_c_try_link "$LINENO"; then :
4998 eval $cacheid=yes
4999 else
5000 eval $cacheid=no
5001 fi
5002 rm -f core conftest.err conftest.$ac_objext \
5003 conftest$ac_exeext conftest.$ac_ext
5004 fi
5005
5006
5007 CFLAGS="$xorg_testset_save_CFLAGS"
5008
5009 eval supported=\$$cacheid
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5011 $as_echo "$supported" >&6; }
5012 if test "$supported" = "yes" ; then
5013 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5014 found="yes"
5015 fi
5016 fi
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032 xorg_testset_save_CFLAGS="$CFLAGS"
5033
5034 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5037 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5038 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5039 $as_echo_n "(cached) " >&6
5040 else
5041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5042 /* end confdefs.h. */
5043 int i;
5044 _ACEOF
5045 if ac_fn_c_try_compile "$LINENO"; then :
5046 xorg_cv_cc_flag_unknown_warning_option=yes
5047 else
5048 xorg_cv_cc_flag_unknown_warning_option=no
5049 fi
5050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5051 fi
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5053 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5054 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5055 CFLAGS="$xorg_testset_save_CFLAGS"
5056 fi
5057
5058 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5061 fi
5062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5064 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5065 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5066 $as_echo_n "(cached) " >&6
5067 else
5068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069 /* end confdefs.h. */
5070 int i;
5071 _ACEOF
5072 if ac_fn_c_try_compile "$LINENO"; then :
5073 xorg_cv_cc_flag_unused_command_line_argument=yes
5074 else
5075 xorg_cv_cc_flag_unused_command_line_argument=no
5076 fi
5077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5078 fi
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5080 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5081 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5082 CFLAGS="$xorg_testset_save_CFLAGS"
5083 fi
5084
5085 found="no"
5086
5087 if test $found = "no" ; then
5088 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5089 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5090 fi
5091
5092 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5094 fi
5095
5096 CFLAGS="$CFLAGS -Wformat=2"
5097
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
5099 $as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
5100 cacheid=xorg_cv_cc_flag__Wformat_2
5101 if eval \${$cacheid+:} false; then :
5102 $as_echo_n "(cached) " >&6
5103 else
5104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5105 /* end confdefs.h. */
5106 int i;
5107 int
5108 main ()
5109 {
5110
5111 ;
5112 return 0;
5113 }
5114 _ACEOF
5115 if ac_fn_c_try_link "$LINENO"; then :
5116 eval $cacheid=yes
5117 else
5118 eval $cacheid=no
5119 fi
5120 rm -f core conftest.err conftest.$ac_objext \
5121 conftest$ac_exeext conftest.$ac_ext
5122 fi
5123
5124
5125 CFLAGS="$xorg_testset_save_CFLAGS"
5126
5127 eval supported=\$$cacheid
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5129 $as_echo "$supported" >&6; }
5130 if test "$supported" = "yes" ; then
5131 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5132 found="yes"
5133 fi
5134 fi
5135
5136 if test $found = "no" ; then
5137 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5138 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5139 fi
5140
5141 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5143 fi
5144
5145 CFLAGS="$CFLAGS -Wformat"
5146
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
5148 $as_echo_n "checking if $CC supports-Wformat... " >&6; }
5149 cacheid=xorg_cv_cc_flag__Wformat
5150 if eval \${$cacheid+:} false; then :
5151 $as_echo_n "(cached) " >&6
5152 else
5153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5154 /* end confdefs.h. */
5155 int i;
5156 int
5157 main ()
5158 {
5159
5160 ;
5161 return 0;
5162 }
5163 _ACEOF
5164 if ac_fn_c_try_link "$LINENO"; then :
5165 eval $cacheid=yes
5166 else
5167 eval $cacheid=no
5168 fi
5169 rm -f core conftest.err conftest.$ac_objext \
5170 conftest$ac_exeext conftest.$ac_ext
5171 fi
5172
5173
5174 CFLAGS="$xorg_testset_save_CFLAGS"
5175
5176 eval supported=\$$cacheid
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5178 $as_echo "$supported" >&6; }
5179 if test "$supported" = "yes" ; then
5180 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5181 found="yes"
5182 fi
5183 fi
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201 xorg_testset_save_CFLAGS="$CFLAGS"
5202
5203 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5206 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5207 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5208 $as_echo_n "(cached) " >&6
5209 else
5210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211 /* end confdefs.h. */
5212 int i;
5213 _ACEOF
5214 if ac_fn_c_try_compile "$LINENO"; then :
5215 xorg_cv_cc_flag_unknown_warning_option=yes
5216 else
5217 xorg_cv_cc_flag_unknown_warning_option=no
5218 fi
5219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5220 fi
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5222 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5223 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5224 CFLAGS="$xorg_testset_save_CFLAGS"
5225 fi
5226
5227 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5229 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5230 fi
5231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5233 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5234 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5235 $as_echo_n "(cached) " >&6
5236 else
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5239 int i;
5240 _ACEOF
5241 if ac_fn_c_try_compile "$LINENO"; then :
5242 xorg_cv_cc_flag_unused_command_line_argument=yes
5243 else
5244 xorg_cv_cc_flag_unused_command_line_argument=no
5245 fi
5246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5247 fi
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5249 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5250 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5251 CFLAGS="$xorg_testset_save_CFLAGS"
5252 fi
5253
5254 found="no"
5255
5256 if test $found = "no" ; then
5257 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5259 fi
5260
5261 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5263 fi
5264
5265 CFLAGS="$CFLAGS -Wstrict-prototypes"
5266
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
5268 $as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
5269 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5270 if eval \${$cacheid+:} false; then :
5271 $as_echo_n "(cached) " >&6
5272 else
5273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5274 /* end confdefs.h. */
5275 int i;
5276 int
5277 main ()
5278 {
5279
5280 ;
5281 return 0;
5282 }
5283 _ACEOF
5284 if ac_fn_c_try_link "$LINENO"; then :
5285 eval $cacheid=yes
5286 else
5287 eval $cacheid=no
5288 fi
5289 rm -f core conftest.err conftest.$ac_objext \
5290 conftest$ac_exeext conftest.$ac_ext
5291 fi
5292
5293
5294 CFLAGS="$xorg_testset_save_CFLAGS"
5295
5296 eval supported=\$$cacheid
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5298 $as_echo "$supported" >&6; }
5299 if test "$supported" = "yes" ; then
5300 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5301 found="yes"
5302 fi
5303 fi
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319 xorg_testset_save_CFLAGS="$CFLAGS"
5320
5321 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5324 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5325 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5326 $as_echo_n "(cached) " >&6
5327 else
5328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5329 /* end confdefs.h. */
5330 int i;
5331 _ACEOF
5332 if ac_fn_c_try_compile "$LINENO"; then :
5333 xorg_cv_cc_flag_unknown_warning_option=yes
5334 else
5335 xorg_cv_cc_flag_unknown_warning_option=no
5336 fi
5337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5338 fi
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5340 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5341 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5342 CFLAGS="$xorg_testset_save_CFLAGS"
5343 fi
5344
5345 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5347 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5348 fi
5349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5351 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5352 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5353 $as_echo_n "(cached) " >&6
5354 else
5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356 /* end confdefs.h. */
5357 int i;
5358 _ACEOF
5359 if ac_fn_c_try_compile "$LINENO"; then :
5360 xorg_cv_cc_flag_unused_command_line_argument=yes
5361 else
5362 xorg_cv_cc_flag_unused_command_line_argument=no
5363 fi
5364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5365 fi
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5367 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5369 CFLAGS="$xorg_testset_save_CFLAGS"
5370 fi
5371
5372 found="no"
5373
5374 if test $found = "no" ; then
5375 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5377 fi
5378
5379 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5381 fi
5382
5383 CFLAGS="$CFLAGS -Wmissing-prototypes"
5384
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
5386 $as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
5387 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5388 if eval \${$cacheid+:} false; then :
5389 $as_echo_n "(cached) " >&6
5390 else
5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392 /* end confdefs.h. */
5393 int i;
5394 int
5395 main ()
5396 {
5397
5398 ;
5399 return 0;
5400 }
5401 _ACEOF
5402 if ac_fn_c_try_link "$LINENO"; then :
5403 eval $cacheid=yes
5404 else
5405 eval $cacheid=no
5406 fi
5407 rm -f core conftest.err conftest.$ac_objext \
5408 conftest$ac_exeext conftest.$ac_ext
5409 fi
5410
5411
5412 CFLAGS="$xorg_testset_save_CFLAGS"
5413
5414 eval supported=\$$cacheid
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5416 $as_echo "$supported" >&6; }
5417 if test "$supported" = "yes" ; then
5418 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5419 found="yes"
5420 fi
5421 fi
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437 xorg_testset_save_CFLAGS="$CFLAGS"
5438
5439 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5442 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5443 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5444 $as_echo_n "(cached) " >&6
5445 else
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h. */
5448 int i;
5449 _ACEOF
5450 if ac_fn_c_try_compile "$LINENO"; then :
5451 xorg_cv_cc_flag_unknown_warning_option=yes
5452 else
5453 xorg_cv_cc_flag_unknown_warning_option=no
5454 fi
5455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5456 fi
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5458 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5459 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5460 CFLAGS="$xorg_testset_save_CFLAGS"
5461 fi
5462
5463 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5465 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5466 fi
5467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5469 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5470 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5471 $as_echo_n "(cached) " >&6
5472 else
5473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5474 /* end confdefs.h. */
5475 int i;
5476 _ACEOF
5477 if ac_fn_c_try_compile "$LINENO"; then :
5478 xorg_cv_cc_flag_unused_command_line_argument=yes
5479 else
5480 xorg_cv_cc_flag_unused_command_line_argument=no
5481 fi
5482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5483 fi
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5485 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5486 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5487 CFLAGS="$xorg_testset_save_CFLAGS"
5488 fi
5489
5490 found="no"
5491
5492 if test $found = "no" ; then
5493 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5494 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5495 fi
5496
5497 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5499 fi
5500
5501 CFLAGS="$CFLAGS -Wnested-externs"
5502
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
5504 $as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
5505 cacheid=xorg_cv_cc_flag__Wnested_externs
5506 if eval \${$cacheid+:} false; then :
5507 $as_echo_n "(cached) " >&6
5508 else
5509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5510 /* end confdefs.h. */
5511 int i;
5512 int
5513 main ()
5514 {
5515
5516 ;
5517 return 0;
5518 }
5519 _ACEOF
5520 if ac_fn_c_try_link "$LINENO"; then :
5521 eval $cacheid=yes
5522 else
5523 eval $cacheid=no
5524 fi
5525 rm -f core conftest.err conftest.$ac_objext \
5526 conftest$ac_exeext conftest.$ac_ext
5527 fi
5528
5529
5530 CFLAGS="$xorg_testset_save_CFLAGS"
5531
5532 eval supported=\$$cacheid
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5534 $as_echo "$supported" >&6; }
5535 if test "$supported" = "yes" ; then
5536 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5537 found="yes"
5538 fi
5539 fi
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555 xorg_testset_save_CFLAGS="$CFLAGS"
5556
5557 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5558 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5560 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5561 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5562 $as_echo_n "(cached) " >&6
5563 else
5564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h. */
5566 int i;
5567 _ACEOF
5568 if ac_fn_c_try_compile "$LINENO"; then :
5569 xorg_cv_cc_flag_unknown_warning_option=yes
5570 else
5571 xorg_cv_cc_flag_unknown_warning_option=no
5572 fi
5573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5574 fi
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5576 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5577 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5578 CFLAGS="$xorg_testset_save_CFLAGS"
5579 fi
5580
5581 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5583 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5584 fi
5585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5587 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5588 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5589 $as_echo_n "(cached) " >&6
5590 else
5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h. */
5593 int i;
5594 _ACEOF
5595 if ac_fn_c_try_compile "$LINENO"; then :
5596 xorg_cv_cc_flag_unused_command_line_argument=yes
5597 else
5598 xorg_cv_cc_flag_unused_command_line_argument=no
5599 fi
5600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5601 fi
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5603 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5604 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5605 CFLAGS="$xorg_testset_save_CFLAGS"
5606 fi
5607
5608 found="no"
5609
5610 if test $found = "no" ; then
5611 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5612 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5613 fi
5614
5615 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5617 fi
5618
5619 CFLAGS="$CFLAGS -Wbad-function-cast"
5620
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
5622 $as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
5623 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5624 if eval \${$cacheid+:} false; then :
5625 $as_echo_n "(cached) " >&6
5626 else
5627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h. */
5629 int i;
5630 int
5631 main ()
5632 {
5633
5634 ;
5635 return 0;
5636 }
5637 _ACEOF
5638 if ac_fn_c_try_link "$LINENO"; then :
5639 eval $cacheid=yes
5640 else
5641 eval $cacheid=no
5642 fi
5643 rm -f core conftest.err conftest.$ac_objext \
5644 conftest$ac_exeext conftest.$ac_ext
5645 fi
5646
5647
5648 CFLAGS="$xorg_testset_save_CFLAGS"
5649
5650 eval supported=\$$cacheid
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5652 $as_echo "$supported" >&6; }
5653 if test "$supported" = "yes" ; then
5654 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5655 found="yes"
5656 fi
5657 fi
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673 xorg_testset_save_CFLAGS="$CFLAGS"
5674
5675 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5676 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5678 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5679 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5680 $as_echo_n "(cached) " >&6
5681 else
5682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683 /* end confdefs.h. */
5684 int i;
5685 _ACEOF
5686 if ac_fn_c_try_compile "$LINENO"; then :
5687 xorg_cv_cc_flag_unknown_warning_option=yes
5688 else
5689 xorg_cv_cc_flag_unknown_warning_option=no
5690 fi
5691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5692 fi
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5694 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5695 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5696 CFLAGS="$xorg_testset_save_CFLAGS"
5697 fi
5698
5699 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5701 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5702 fi
5703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5705 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5706 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5707 $as_echo_n "(cached) " >&6
5708 else
5709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5710 /* end confdefs.h. */
5711 int i;
5712 _ACEOF
5713 if ac_fn_c_try_compile "$LINENO"; then :
5714 xorg_cv_cc_flag_unused_command_line_argument=yes
5715 else
5716 xorg_cv_cc_flag_unused_command_line_argument=no
5717 fi
5718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5719 fi
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5721 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5722 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5723 CFLAGS="$xorg_testset_save_CFLAGS"
5724 fi
5725
5726 found="no"
5727
5728 if test $found = "no" ; then
5729 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5731 fi
5732
5733 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5735 fi
5736
5737 CFLAGS="$CFLAGS -Wold-style-definition"
5738
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
5740 $as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
5741 cacheid=xorg_cv_cc_flag__Wold_style_definition
5742 if eval \${$cacheid+:} false; then :
5743 $as_echo_n "(cached) " >&6
5744 else
5745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5746 /* end confdefs.h. */
5747 int i;
5748 int
5749 main ()
5750 {
5751
5752 ;
5753 return 0;
5754 }
5755 _ACEOF
5756 if ac_fn_c_try_link "$LINENO"; then :
5757 eval $cacheid=yes
5758 else
5759 eval $cacheid=no
5760 fi
5761 rm -f core conftest.err conftest.$ac_objext \
5762 conftest$ac_exeext conftest.$ac_ext
5763 fi
5764
5765
5766 CFLAGS="$xorg_testset_save_CFLAGS"
5767
5768 eval supported=\$$cacheid
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5770 $as_echo "$supported" >&6; }
5771 if test "$supported" = "yes" ; then
5772 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5773 found="yes"
5774 fi
5775 fi
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791 xorg_testset_save_CFLAGS="$CFLAGS"
5792
5793 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5796 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5797 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5798 $as_echo_n "(cached) " >&6
5799 else
5800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5801 /* end confdefs.h. */
5802 int i;
5803 _ACEOF
5804 if ac_fn_c_try_compile "$LINENO"; then :
5805 xorg_cv_cc_flag_unknown_warning_option=yes
5806 else
5807 xorg_cv_cc_flag_unknown_warning_option=no
5808 fi
5809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5810 fi
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5812 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5813 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5814 CFLAGS="$xorg_testset_save_CFLAGS"
5815 fi
5816
5817 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5818 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5819 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5820 fi
5821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5823 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5824 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5825 $as_echo_n "(cached) " >&6
5826 else
5827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5828 /* end confdefs.h. */
5829 int i;
5830 _ACEOF
5831 if ac_fn_c_try_compile "$LINENO"; then :
5832 xorg_cv_cc_flag_unused_command_line_argument=yes
5833 else
5834 xorg_cv_cc_flag_unused_command_line_argument=no
5835 fi
5836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5837 fi
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5839 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5840 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5841 CFLAGS="$xorg_testset_save_CFLAGS"
5842 fi
5843
5844 found="no"
5845
5846 if test $found = "no" ; then
5847 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5848 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5849 fi
5850
5851 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5853 fi
5854
5855 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5856
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
5858 $as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
5859 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5860 if eval \${$cacheid+:} false; then :
5861 $as_echo_n "(cached) " >&6
5862 else
5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864 /* end confdefs.h. */
5865 int i;
5866 int
5867 main ()
5868 {
5869
5870 ;
5871 return 0;
5872 }
5873 _ACEOF
5874 if ac_fn_c_try_link "$LINENO"; then :
5875 eval $cacheid=yes
5876 else
5877 eval $cacheid=no
5878 fi
5879 rm -f core conftest.err conftest.$ac_objext \
5880 conftest$ac_exeext conftest.$ac_ext
5881 fi
5882
5883
5884 CFLAGS="$xorg_testset_save_CFLAGS"
5885
5886 eval supported=\$$cacheid
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5888 $as_echo "$supported" >&6; }
5889 if test "$supported" = "yes" ; then
5890 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5891 found="yes"
5892 fi
5893 fi
5894
5895
5896
5897
5898
5899 # This chunk adds additional warnings that could catch undesired effects.
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913 xorg_testset_save_CFLAGS="$CFLAGS"
5914
5915 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5918 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5919 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5920 $as_echo_n "(cached) " >&6
5921 else
5922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5923 /* end confdefs.h. */
5924 int i;
5925 _ACEOF
5926 if ac_fn_c_try_compile "$LINENO"; then :
5927 xorg_cv_cc_flag_unknown_warning_option=yes
5928 else
5929 xorg_cv_cc_flag_unknown_warning_option=no
5930 fi
5931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5932 fi
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5934 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5935 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5936 CFLAGS="$xorg_testset_save_CFLAGS"
5937 fi
5938
5939 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5940 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5941 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5942 fi
5943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5945 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5946 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5947 $as_echo_n "(cached) " >&6
5948 else
5949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5950 /* end confdefs.h. */
5951 int i;
5952 _ACEOF
5953 if ac_fn_c_try_compile "$LINENO"; then :
5954 xorg_cv_cc_flag_unused_command_line_argument=yes
5955 else
5956 xorg_cv_cc_flag_unused_command_line_argument=no
5957 fi
5958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5959 fi
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5961 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5962 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5963 CFLAGS="$xorg_testset_save_CFLAGS"
5964 fi
5965
5966 found="no"
5967
5968 if test $found = "no" ; then
5969 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5971 fi
5972
5973 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5975 fi
5976
5977 CFLAGS="$CFLAGS -Wunused"
5978
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
5980 $as_echo_n "checking if $CC supports-Wunused... " >&6; }
5981 cacheid=xorg_cv_cc_flag__Wunused
5982 if eval \${$cacheid+:} false; then :
5983 $as_echo_n "(cached) " >&6
5984 else
5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986 /* end confdefs.h. */
5987 int i;
5988 int
5989 main ()
5990 {
5991
5992 ;
5993 return 0;
5994 }
5995 _ACEOF
5996 if ac_fn_c_try_link "$LINENO"; then :
5997 eval $cacheid=yes
5998 else
5999 eval $cacheid=no
6000 fi
6001 rm -f core conftest.err conftest.$ac_objext \
6002 conftest$ac_exeext conftest.$ac_ext
6003 fi
6004
6005
6006 CFLAGS="$xorg_testset_save_CFLAGS"
6007
6008 eval supported=\$$cacheid
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6010 $as_echo "$supported" >&6; }
6011 if test "$supported" = "yes" ; then
6012 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6013 found="yes"
6014 fi
6015 fi
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031 xorg_testset_save_CFLAGS="$CFLAGS"
6032
6033 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6034 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6036 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6037 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6038 $as_echo_n "(cached) " >&6
6039 else
6040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6041 /* end confdefs.h. */
6042 int i;
6043 _ACEOF
6044 if ac_fn_c_try_compile "$LINENO"; then :
6045 xorg_cv_cc_flag_unknown_warning_option=yes
6046 else
6047 xorg_cv_cc_flag_unknown_warning_option=no
6048 fi
6049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6050 fi
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6052 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6053 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6054 CFLAGS="$xorg_testset_save_CFLAGS"
6055 fi
6056
6057 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6059 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6060 fi
6061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6063 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6064 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6065 $as_echo_n "(cached) " >&6
6066 else
6067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6068 /* end confdefs.h. */
6069 int i;
6070 _ACEOF
6071 if ac_fn_c_try_compile "$LINENO"; then :
6072 xorg_cv_cc_flag_unused_command_line_argument=yes
6073 else
6074 xorg_cv_cc_flag_unused_command_line_argument=no
6075 fi
6076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6077 fi
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6079 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6080 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6081 CFLAGS="$xorg_testset_save_CFLAGS"
6082 fi
6083
6084 found="no"
6085
6086 if test $found = "no" ; then
6087 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6088 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6089 fi
6090
6091 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6093 fi
6094
6095 CFLAGS="$CFLAGS -Wuninitialized"
6096
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
6098 $as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
6099 cacheid=xorg_cv_cc_flag__Wuninitialized
6100 if eval \${$cacheid+:} false; then :
6101 $as_echo_n "(cached) " >&6
6102 else
6103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104 /* end confdefs.h. */
6105 int i;
6106 int
6107 main ()
6108 {
6109
6110 ;
6111 return 0;
6112 }
6113 _ACEOF
6114 if ac_fn_c_try_link "$LINENO"; then :
6115 eval $cacheid=yes
6116 else
6117 eval $cacheid=no
6118 fi
6119 rm -f core conftest.err conftest.$ac_objext \
6120 conftest$ac_exeext conftest.$ac_ext
6121 fi
6122
6123
6124 CFLAGS="$xorg_testset_save_CFLAGS"
6125
6126 eval supported=\$$cacheid
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6128 $as_echo "$supported" >&6; }
6129 if test "$supported" = "yes" ; then
6130 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6131 found="yes"
6132 fi
6133 fi
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149 xorg_testset_save_CFLAGS="$CFLAGS"
6150
6151 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6154 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6155 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6156 $as_echo_n "(cached) " >&6
6157 else
6158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6159 /* end confdefs.h. */
6160 int i;
6161 _ACEOF
6162 if ac_fn_c_try_compile "$LINENO"; then :
6163 xorg_cv_cc_flag_unknown_warning_option=yes
6164 else
6165 xorg_cv_cc_flag_unknown_warning_option=no
6166 fi
6167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6168 fi
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6170 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6171 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6172 CFLAGS="$xorg_testset_save_CFLAGS"
6173 fi
6174
6175 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6177 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6178 fi
6179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6181 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6182 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6183 $as_echo_n "(cached) " >&6
6184 else
6185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6186 /* end confdefs.h. */
6187 int i;
6188 _ACEOF
6189 if ac_fn_c_try_compile "$LINENO"; then :
6190 xorg_cv_cc_flag_unused_command_line_argument=yes
6191 else
6192 xorg_cv_cc_flag_unused_command_line_argument=no
6193 fi
6194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6195 fi
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6197 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6198 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6199 CFLAGS="$xorg_testset_save_CFLAGS"
6200 fi
6201
6202 found="no"
6203
6204 if test $found = "no" ; then
6205 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6206 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6207 fi
6208
6209 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6211 fi
6212
6213 CFLAGS="$CFLAGS -Wshadow"
6214
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
6216 $as_echo_n "checking if $CC supports-Wshadow... " >&6; }
6217 cacheid=xorg_cv_cc_flag__Wshadow
6218 if eval \${$cacheid+:} false; then :
6219 $as_echo_n "(cached) " >&6
6220 else
6221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6222 /* end confdefs.h. */
6223 int i;
6224 int
6225 main ()
6226 {
6227
6228 ;
6229 return 0;
6230 }
6231 _ACEOF
6232 if ac_fn_c_try_link "$LINENO"; then :
6233 eval $cacheid=yes
6234 else
6235 eval $cacheid=no
6236 fi
6237 rm -f core conftest.err conftest.$ac_objext \
6238 conftest$ac_exeext conftest.$ac_ext
6239 fi
6240
6241
6242 CFLAGS="$xorg_testset_save_CFLAGS"
6243
6244 eval supported=\$$cacheid
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6246 $as_echo "$supported" >&6; }
6247 if test "$supported" = "yes" ; then
6248 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6249 found="yes"
6250 fi
6251 fi
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267 xorg_testset_save_CFLAGS="$CFLAGS"
6268
6269 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6272 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6273 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6274 $as_echo_n "(cached) " >&6
6275 else
6276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6277 /* end confdefs.h. */
6278 int i;
6279 _ACEOF
6280 if ac_fn_c_try_compile "$LINENO"; then :
6281 xorg_cv_cc_flag_unknown_warning_option=yes
6282 else
6283 xorg_cv_cc_flag_unknown_warning_option=no
6284 fi
6285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6286 fi
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6288 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6289 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6290 CFLAGS="$xorg_testset_save_CFLAGS"
6291 fi
6292
6293 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6295 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6296 fi
6297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6299 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6300 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6301 $as_echo_n "(cached) " >&6
6302 else
6303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6304 /* end confdefs.h. */
6305 int i;
6306 _ACEOF
6307 if ac_fn_c_try_compile "$LINENO"; then :
6308 xorg_cv_cc_flag_unused_command_line_argument=yes
6309 else
6310 xorg_cv_cc_flag_unused_command_line_argument=no
6311 fi
6312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6313 fi
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6315 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6316 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6317 CFLAGS="$xorg_testset_save_CFLAGS"
6318 fi
6319
6320 found="no"
6321
6322 if test $found = "no" ; then
6323 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6324 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6325 fi
6326
6327 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6329 fi
6330
6331 CFLAGS="$CFLAGS -Wcast-qual"
6332
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
6334 $as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
6335 cacheid=xorg_cv_cc_flag__Wcast_qual
6336 if eval \${$cacheid+:} false; then :
6337 $as_echo_n "(cached) " >&6
6338 else
6339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6340 /* end confdefs.h. */
6341 int i;
6342 int
6343 main ()
6344 {
6345
6346 ;
6347 return 0;
6348 }
6349 _ACEOF
6350 if ac_fn_c_try_link "$LINENO"; then :
6351 eval $cacheid=yes
6352 else
6353 eval $cacheid=no
6354 fi
6355 rm -f core conftest.err conftest.$ac_objext \
6356 conftest$ac_exeext conftest.$ac_ext
6357 fi
6358
6359
6360 CFLAGS="$xorg_testset_save_CFLAGS"
6361
6362 eval supported=\$$cacheid
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6364 $as_echo "$supported" >&6; }
6365 if test "$supported" = "yes" ; then
6366 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6367 found="yes"
6368 fi
6369 fi
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385 xorg_testset_save_CFLAGS="$CFLAGS"
6386
6387 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6388 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6390 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6391 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6392 $as_echo_n "(cached) " >&6
6393 else
6394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6395 /* end confdefs.h. */
6396 int i;
6397 _ACEOF
6398 if ac_fn_c_try_compile "$LINENO"; then :
6399 xorg_cv_cc_flag_unknown_warning_option=yes
6400 else
6401 xorg_cv_cc_flag_unknown_warning_option=no
6402 fi
6403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6404 fi
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6406 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6407 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6408 CFLAGS="$xorg_testset_save_CFLAGS"
6409 fi
6410
6411 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6413 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6414 fi
6415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6417 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6418 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6419 $as_echo_n "(cached) " >&6
6420 else
6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6423 int i;
6424 _ACEOF
6425 if ac_fn_c_try_compile "$LINENO"; then :
6426 xorg_cv_cc_flag_unused_command_line_argument=yes
6427 else
6428 xorg_cv_cc_flag_unused_command_line_argument=no
6429 fi
6430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6431 fi
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6433 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6434 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6435 CFLAGS="$xorg_testset_save_CFLAGS"
6436 fi
6437
6438 found="no"
6439
6440 if test $found = "no" ; then
6441 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6442 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6443 fi
6444
6445 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6447 fi
6448
6449 CFLAGS="$CFLAGS -Wmissing-noreturn"
6450
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
6452 $as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
6453 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6454 if eval \${$cacheid+:} false; then :
6455 $as_echo_n "(cached) " >&6
6456 else
6457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6458 /* end confdefs.h. */
6459 int i;
6460 int
6461 main ()
6462 {
6463
6464 ;
6465 return 0;
6466 }
6467 _ACEOF
6468 if ac_fn_c_try_link "$LINENO"; then :
6469 eval $cacheid=yes
6470 else
6471 eval $cacheid=no
6472 fi
6473 rm -f core conftest.err conftest.$ac_objext \
6474 conftest$ac_exeext conftest.$ac_ext
6475 fi
6476
6477
6478 CFLAGS="$xorg_testset_save_CFLAGS"
6479
6480 eval supported=\$$cacheid
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6482 $as_echo "$supported" >&6; }
6483 if test "$supported" = "yes" ; then
6484 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6485 found="yes"
6486 fi
6487 fi
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503 xorg_testset_save_CFLAGS="$CFLAGS"
6504
6505 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6506 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6508 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6509 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6510 $as_echo_n "(cached) " >&6
6511 else
6512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6513 /* end confdefs.h. */
6514 int i;
6515 _ACEOF
6516 if ac_fn_c_try_compile "$LINENO"; then :
6517 xorg_cv_cc_flag_unknown_warning_option=yes
6518 else
6519 xorg_cv_cc_flag_unknown_warning_option=no
6520 fi
6521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6522 fi
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6524 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6525 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6526 CFLAGS="$xorg_testset_save_CFLAGS"
6527 fi
6528
6529 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6532 fi
6533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6535 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6536 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6537 $as_echo_n "(cached) " >&6
6538 else
6539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6540 /* end confdefs.h. */
6541 int i;
6542 _ACEOF
6543 if ac_fn_c_try_compile "$LINENO"; then :
6544 xorg_cv_cc_flag_unused_command_line_argument=yes
6545 else
6546 xorg_cv_cc_flag_unused_command_line_argument=no
6547 fi
6548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6549 fi
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6551 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6552 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6553 CFLAGS="$xorg_testset_save_CFLAGS"
6554 fi
6555
6556 found="no"
6557
6558 if test $found = "no" ; then
6559 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6561 fi
6562
6563 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6565 fi
6566
6567 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6568
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
6570 $as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
6571 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6572 if eval \${$cacheid+:} false; then :
6573 $as_echo_n "(cached) " >&6
6574 else
6575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6576 /* end confdefs.h. */
6577 int i;
6578 int
6579 main ()
6580 {
6581
6582 ;
6583 return 0;
6584 }
6585 _ACEOF
6586 if ac_fn_c_try_link "$LINENO"; then :
6587 eval $cacheid=yes
6588 else
6589 eval $cacheid=no
6590 fi
6591 rm -f core conftest.err conftest.$ac_objext \
6592 conftest$ac_exeext conftest.$ac_ext
6593 fi
6594
6595
6596 CFLAGS="$xorg_testset_save_CFLAGS"
6597
6598 eval supported=\$$cacheid
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6600 $as_echo "$supported" >&6; }
6601 if test "$supported" = "yes" ; then
6602 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6603 found="yes"
6604 fi
6605 fi
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621 xorg_testset_save_CFLAGS="$CFLAGS"
6622
6623 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6624 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6626 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6627 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6628 $as_echo_n "(cached) " >&6
6629 else
6630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631 /* end confdefs.h. */
6632 int i;
6633 _ACEOF
6634 if ac_fn_c_try_compile "$LINENO"; then :
6635 xorg_cv_cc_flag_unknown_warning_option=yes
6636 else
6637 xorg_cv_cc_flag_unknown_warning_option=no
6638 fi
6639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6640 fi
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6642 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6643 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6644 CFLAGS="$xorg_testset_save_CFLAGS"
6645 fi
6646
6647 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6649 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6650 fi
6651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6653 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6654 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6655 $as_echo_n "(cached) " >&6
6656 else
6657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6658 /* end confdefs.h. */
6659 int i;
6660 _ACEOF
6661 if ac_fn_c_try_compile "$LINENO"; then :
6662 xorg_cv_cc_flag_unused_command_line_argument=yes
6663 else
6664 xorg_cv_cc_flag_unused_command_line_argument=no
6665 fi
6666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6667 fi
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6669 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6670 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6671 CFLAGS="$xorg_testset_save_CFLAGS"
6672 fi
6673
6674 found="no"
6675
6676 if test $found = "no" ; then
6677 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6678 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6679 fi
6680
6681 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6683 fi
6684
6685 CFLAGS="$CFLAGS -Wredundant-decls"
6686
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
6688 $as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
6689 cacheid=xorg_cv_cc_flag__Wredundant_decls
6690 if eval \${$cacheid+:} false; then :
6691 $as_echo_n "(cached) " >&6
6692 else
6693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6694 /* end confdefs.h. */
6695 int i;
6696 int
6697 main ()
6698 {
6699
6700 ;
6701 return 0;
6702 }
6703 _ACEOF
6704 if ac_fn_c_try_link "$LINENO"; then :
6705 eval $cacheid=yes
6706 else
6707 eval $cacheid=no
6708 fi
6709 rm -f core conftest.err conftest.$ac_objext \
6710 conftest$ac_exeext conftest.$ac_ext
6711 fi
6712
6713
6714 CFLAGS="$xorg_testset_save_CFLAGS"
6715
6716 eval supported=\$$cacheid
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6718 $as_echo "$supported" >&6; }
6719 if test "$supported" = "yes" ; then
6720 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6721 found="yes"
6722 fi
6723 fi
6724
6725
6726
6727 # These are currently disabled because they are noisy. They will be enabled
6728 # in the future once the codebase is sufficiently modernized to silence
6729 # them. For now, I don't want them to drown out the other warnings.
6730 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6731 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6732 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6733
6734 # Turn some warnings into errors, so we don't accidently get successful builds
6735 # when there are problems that should be fixed.
6736
6737 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751 xorg_testset_save_CFLAGS="$CFLAGS"
6752
6753 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6754 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6756 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6757 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6758 $as_echo_n "(cached) " >&6
6759 else
6760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6761 /* end confdefs.h. */
6762 int i;
6763 _ACEOF
6764 if ac_fn_c_try_compile "$LINENO"; then :
6765 xorg_cv_cc_flag_unknown_warning_option=yes
6766 else
6767 xorg_cv_cc_flag_unknown_warning_option=no
6768 fi
6769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6770 fi
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6772 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6773 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6774 CFLAGS="$xorg_testset_save_CFLAGS"
6775 fi
6776
6777 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6780 fi
6781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6783 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6784 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6785 $as_echo_n "(cached) " >&6
6786 else
6787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6788 /* end confdefs.h. */
6789 int i;
6790 _ACEOF
6791 if ac_fn_c_try_compile "$LINENO"; then :
6792 xorg_cv_cc_flag_unused_command_line_argument=yes
6793 else
6794 xorg_cv_cc_flag_unused_command_line_argument=no
6795 fi
6796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6797 fi
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6799 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6800 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6801 CFLAGS="$xorg_testset_save_CFLAGS"
6802 fi
6803
6804 found="no"
6805
6806 if test $found = "no" ; then
6807 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6808 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6809 fi
6810
6811 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6813 fi
6814
6815 CFLAGS="$CFLAGS -Werror=implicit"
6816
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
6818 $as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
6819 cacheid=xorg_cv_cc_flag__Werror_implicit
6820 if eval \${$cacheid+:} false; then :
6821 $as_echo_n "(cached) " >&6
6822 else
6823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6824 /* end confdefs.h. */
6825 int i;
6826 int
6827 main ()
6828 {
6829
6830 ;
6831 return 0;
6832 }
6833 _ACEOF
6834 if ac_fn_c_try_link "$LINENO"; then :
6835 eval $cacheid=yes
6836 else
6837 eval $cacheid=no
6838 fi
6839 rm -f core conftest.err conftest.$ac_objext \
6840 conftest$ac_exeext conftest.$ac_ext
6841 fi
6842
6843
6844 CFLAGS="$xorg_testset_save_CFLAGS"
6845
6846 eval supported=\$$cacheid
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6848 $as_echo "$supported" >&6; }
6849 if test "$supported" = "yes" ; then
6850 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6851 found="yes"
6852 fi
6853 fi
6854
6855 if test $found = "no" ; then
6856 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6858 fi
6859
6860 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6862 fi
6863
6864 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6865
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6867 $as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6868 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6869 if eval \${$cacheid+:} false; then :
6870 $as_echo_n "(cached) " >&6
6871 else
6872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873 /* end confdefs.h. */
6874 int i;
6875 int
6876 main ()
6877 {
6878
6879 ;
6880 return 0;
6881 }
6882 _ACEOF
6883 if ac_fn_c_try_link "$LINENO"; then :
6884 eval $cacheid=yes
6885 else
6886 eval $cacheid=no
6887 fi
6888 rm -f core conftest.err conftest.$ac_objext \
6889 conftest$ac_exeext conftest.$ac_ext
6890 fi
6891
6892
6893 CFLAGS="$xorg_testset_save_CFLAGS"
6894
6895 eval supported=\$$cacheid
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6897 $as_echo "$supported" >&6; }
6898 if test "$supported" = "yes" ; then
6899 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6900 found="yes"
6901 fi
6902 fi
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918 xorg_testset_save_CFLAGS="$CFLAGS"
6919
6920 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6923 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6924 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6925 $as_echo_n "(cached) " >&6
6926 else
6927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6928 /* end confdefs.h. */
6929 int i;
6930 _ACEOF
6931 if ac_fn_c_try_compile "$LINENO"; then :
6932 xorg_cv_cc_flag_unknown_warning_option=yes
6933 else
6934 xorg_cv_cc_flag_unknown_warning_option=no
6935 fi
6936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6937 fi
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6939 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6940 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6941 CFLAGS="$xorg_testset_save_CFLAGS"
6942 fi
6943
6944 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6946 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6947 fi
6948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6950 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6951 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6952 $as_echo_n "(cached) " >&6
6953 else
6954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6955 /* end confdefs.h. */
6956 int i;
6957 _ACEOF
6958 if ac_fn_c_try_compile "$LINENO"; then :
6959 xorg_cv_cc_flag_unused_command_line_argument=yes
6960 else
6961 xorg_cv_cc_flag_unused_command_line_argument=no
6962 fi
6963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6964 fi
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6966 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6967 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6968 CFLAGS="$xorg_testset_save_CFLAGS"
6969 fi
6970
6971 found="no"
6972
6973 if test $found = "no" ; then
6974 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6976 fi
6977
6978 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6980 fi
6981
6982 CFLAGS="$CFLAGS -Werror=nonnull"
6983
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
6985 $as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
6986 cacheid=xorg_cv_cc_flag__Werror_nonnull
6987 if eval \${$cacheid+:} false; then :
6988 $as_echo_n "(cached) " >&6
6989 else
6990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6991 /* end confdefs.h. */
6992 int i;
6993 int
6994 main ()
6995 {
6996
6997 ;
6998 return 0;
6999 }
7000 _ACEOF
7001 if ac_fn_c_try_link "$LINENO"; then :
7002 eval $cacheid=yes
7003 else
7004 eval $cacheid=no
7005 fi
7006 rm -f core conftest.err conftest.$ac_objext \
7007 conftest$ac_exeext conftest.$ac_ext
7008 fi
7009
7010
7011 CFLAGS="$xorg_testset_save_CFLAGS"
7012
7013 eval supported=\$$cacheid
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7015 $as_echo "$supported" >&6; }
7016 if test "$supported" = "yes" ; then
7017 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7018 found="yes"
7019 fi
7020 fi
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036 xorg_testset_save_CFLAGS="$CFLAGS"
7037
7038 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7039 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7041 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7042 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7043 $as_echo_n "(cached) " >&6
7044 else
7045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7046 /* end confdefs.h. */
7047 int i;
7048 _ACEOF
7049 if ac_fn_c_try_compile "$LINENO"; then :
7050 xorg_cv_cc_flag_unknown_warning_option=yes
7051 else
7052 xorg_cv_cc_flag_unknown_warning_option=no
7053 fi
7054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7055 fi
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7057 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7058 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7059 CFLAGS="$xorg_testset_save_CFLAGS"
7060 fi
7061
7062 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7064 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7065 fi
7066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7068 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7069 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7070 $as_echo_n "(cached) " >&6
7071 else
7072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7073 /* end confdefs.h. */
7074 int i;
7075 _ACEOF
7076 if ac_fn_c_try_compile "$LINENO"; then :
7077 xorg_cv_cc_flag_unused_command_line_argument=yes
7078 else
7079 xorg_cv_cc_flag_unused_command_line_argument=no
7080 fi
7081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7082 fi
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7084 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7085 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7086 CFLAGS="$xorg_testset_save_CFLAGS"
7087 fi
7088
7089 found="no"
7090
7091 if test $found = "no" ; then
7092 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7094 fi
7095
7096 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7098 fi
7099
7100 CFLAGS="$CFLAGS -Werror=init-self"
7101
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
7103 $as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
7104 cacheid=xorg_cv_cc_flag__Werror_init_self
7105 if eval \${$cacheid+:} false; then :
7106 $as_echo_n "(cached) " >&6
7107 else
7108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7109 /* end confdefs.h. */
7110 int i;
7111 int
7112 main ()
7113 {
7114
7115 ;
7116 return 0;
7117 }
7118 _ACEOF
7119 if ac_fn_c_try_link "$LINENO"; then :
7120 eval $cacheid=yes
7121 else
7122 eval $cacheid=no
7123 fi
7124 rm -f core conftest.err conftest.$ac_objext \
7125 conftest$ac_exeext conftest.$ac_ext
7126 fi
7127
7128
7129 CFLAGS="$xorg_testset_save_CFLAGS"
7130
7131 eval supported=\$$cacheid
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7133 $as_echo "$supported" >&6; }
7134 if test "$supported" = "yes" ; then
7135 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7136 found="yes"
7137 fi
7138 fi
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154 xorg_testset_save_CFLAGS="$CFLAGS"
7155
7156 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7159 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7160 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7161 $as_echo_n "(cached) " >&6
7162 else
7163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164 /* end confdefs.h. */
7165 int i;
7166 _ACEOF
7167 if ac_fn_c_try_compile "$LINENO"; then :
7168 xorg_cv_cc_flag_unknown_warning_option=yes
7169 else
7170 xorg_cv_cc_flag_unknown_warning_option=no
7171 fi
7172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7173 fi
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7175 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7176 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7177 CFLAGS="$xorg_testset_save_CFLAGS"
7178 fi
7179
7180 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7183 fi
7184 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7186 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7187 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7188 $as_echo_n "(cached) " >&6
7189 else
7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7192 int i;
7193 _ACEOF
7194 if ac_fn_c_try_compile "$LINENO"; then :
7195 xorg_cv_cc_flag_unused_command_line_argument=yes
7196 else
7197 xorg_cv_cc_flag_unused_command_line_argument=no
7198 fi
7199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7200 fi
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7202 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7203 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7204 CFLAGS="$xorg_testset_save_CFLAGS"
7205 fi
7206
7207 found="no"
7208
7209 if test $found = "no" ; then
7210 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7212 fi
7213
7214 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7216 fi
7217
7218 CFLAGS="$CFLAGS -Werror=main"
7219
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
7221 $as_echo_n "checking if $CC supports-Werror=main... " >&6; }
7222 cacheid=xorg_cv_cc_flag__Werror_main
7223 if eval \${$cacheid+:} false; then :
7224 $as_echo_n "(cached) " >&6
7225 else
7226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227 /* end confdefs.h. */
7228 int i;
7229 int
7230 main ()
7231 {
7232
7233 ;
7234 return 0;
7235 }
7236 _ACEOF
7237 if ac_fn_c_try_link "$LINENO"; then :
7238 eval $cacheid=yes
7239 else
7240 eval $cacheid=no
7241 fi
7242 rm -f core conftest.err conftest.$ac_objext \
7243 conftest$ac_exeext conftest.$ac_ext
7244 fi
7245
7246
7247 CFLAGS="$xorg_testset_save_CFLAGS"
7248
7249 eval supported=\$$cacheid
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7251 $as_echo "$supported" >&6; }
7252 if test "$supported" = "yes" ; then
7253 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7254 found="yes"
7255 fi
7256 fi
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272 xorg_testset_save_CFLAGS="$CFLAGS"
7273
7274 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7277 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7278 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7279 $as_echo_n "(cached) " >&6
7280 else
7281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7282 /* end confdefs.h. */
7283 int i;
7284 _ACEOF
7285 if ac_fn_c_try_compile "$LINENO"; then :
7286 xorg_cv_cc_flag_unknown_warning_option=yes
7287 else
7288 xorg_cv_cc_flag_unknown_warning_option=no
7289 fi
7290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7291 fi
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7293 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7294 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7295 CFLAGS="$xorg_testset_save_CFLAGS"
7296 fi
7297
7298 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7301 fi
7302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7304 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7305 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7306 $as_echo_n "(cached) " >&6
7307 else
7308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7309 /* end confdefs.h. */
7310 int i;
7311 _ACEOF
7312 if ac_fn_c_try_compile "$LINENO"; then :
7313 xorg_cv_cc_flag_unused_command_line_argument=yes
7314 else
7315 xorg_cv_cc_flag_unused_command_line_argument=no
7316 fi
7317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7318 fi
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7320 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7321 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7322 CFLAGS="$xorg_testset_save_CFLAGS"
7323 fi
7324
7325 found="no"
7326
7327 if test $found = "no" ; then
7328 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7329 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7330 fi
7331
7332 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7334 fi
7335
7336 CFLAGS="$CFLAGS -Werror=missing-braces"
7337
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
7339 $as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
7340 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7341 if eval \${$cacheid+:} false; then :
7342 $as_echo_n "(cached) " >&6
7343 else
7344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7345 /* end confdefs.h. */
7346 int i;
7347 int
7348 main ()
7349 {
7350
7351 ;
7352 return 0;
7353 }
7354 _ACEOF
7355 if ac_fn_c_try_link "$LINENO"; then :
7356 eval $cacheid=yes
7357 else
7358 eval $cacheid=no
7359 fi
7360 rm -f core conftest.err conftest.$ac_objext \
7361 conftest$ac_exeext conftest.$ac_ext
7362 fi
7363
7364
7365 CFLAGS="$xorg_testset_save_CFLAGS"
7366
7367 eval supported=\$$cacheid
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7369 $as_echo "$supported" >&6; }
7370 if test "$supported" = "yes" ; then
7371 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7372 found="yes"
7373 fi
7374 fi
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390 xorg_testset_save_CFLAGS="$CFLAGS"
7391
7392 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7395 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7396 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7397 $as_echo_n "(cached) " >&6
7398 else
7399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7400 /* end confdefs.h. */
7401 int i;
7402 _ACEOF
7403 if ac_fn_c_try_compile "$LINENO"; then :
7404 xorg_cv_cc_flag_unknown_warning_option=yes
7405 else
7406 xorg_cv_cc_flag_unknown_warning_option=no
7407 fi
7408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7409 fi
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7411 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7412 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7413 CFLAGS="$xorg_testset_save_CFLAGS"
7414 fi
7415
7416 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7419 fi
7420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7422 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7423 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7424 $as_echo_n "(cached) " >&6
7425 else
7426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427 /* end confdefs.h. */
7428 int i;
7429 _ACEOF
7430 if ac_fn_c_try_compile "$LINENO"; then :
7431 xorg_cv_cc_flag_unused_command_line_argument=yes
7432 else
7433 xorg_cv_cc_flag_unused_command_line_argument=no
7434 fi
7435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7436 fi
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7438 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7439 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7440 CFLAGS="$xorg_testset_save_CFLAGS"
7441 fi
7442
7443 found="no"
7444
7445 if test $found = "no" ; then
7446 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7448 fi
7449
7450 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7452 fi
7453
7454 CFLAGS="$CFLAGS -Werror=sequence-point"
7455
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
7457 $as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
7458 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7459 if eval \${$cacheid+:} false; then :
7460 $as_echo_n "(cached) " >&6
7461 else
7462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463 /* end confdefs.h. */
7464 int i;
7465 int
7466 main ()
7467 {
7468
7469 ;
7470 return 0;
7471 }
7472 _ACEOF
7473 if ac_fn_c_try_link "$LINENO"; then :
7474 eval $cacheid=yes
7475 else
7476 eval $cacheid=no
7477 fi
7478 rm -f core conftest.err conftest.$ac_objext \
7479 conftest$ac_exeext conftest.$ac_ext
7480 fi
7481
7482
7483 CFLAGS="$xorg_testset_save_CFLAGS"
7484
7485 eval supported=\$$cacheid
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7487 $as_echo "$supported" >&6; }
7488 if test "$supported" = "yes" ; then
7489 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7490 found="yes"
7491 fi
7492 fi
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508 xorg_testset_save_CFLAGS="$CFLAGS"
7509
7510 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7511 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7513 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7514 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7515 $as_echo_n "(cached) " >&6
7516 else
7517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518 /* end confdefs.h. */
7519 int i;
7520 _ACEOF
7521 if ac_fn_c_try_compile "$LINENO"; then :
7522 xorg_cv_cc_flag_unknown_warning_option=yes
7523 else
7524 xorg_cv_cc_flag_unknown_warning_option=no
7525 fi
7526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7527 fi
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7529 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7530 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7531 CFLAGS="$xorg_testset_save_CFLAGS"
7532 fi
7533
7534 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7537 fi
7538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7540 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7541 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7542 $as_echo_n "(cached) " >&6
7543 else
7544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7545 /* end confdefs.h. */
7546 int i;
7547 _ACEOF
7548 if ac_fn_c_try_compile "$LINENO"; then :
7549 xorg_cv_cc_flag_unused_command_line_argument=yes
7550 else
7551 xorg_cv_cc_flag_unused_command_line_argument=no
7552 fi
7553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7554 fi
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7556 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7557 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7558 CFLAGS="$xorg_testset_save_CFLAGS"
7559 fi
7560
7561 found="no"
7562
7563 if test $found = "no" ; then
7564 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7566 fi
7567
7568 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7570 fi
7571
7572 CFLAGS="$CFLAGS -Werror=return-type"
7573
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
7575 $as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
7576 cacheid=xorg_cv_cc_flag__Werror_return_type
7577 if eval \${$cacheid+:} false; then :
7578 $as_echo_n "(cached) " >&6
7579 else
7580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7581 /* end confdefs.h. */
7582 int i;
7583 int
7584 main ()
7585 {
7586
7587 ;
7588 return 0;
7589 }
7590 _ACEOF
7591 if ac_fn_c_try_link "$LINENO"; then :
7592 eval $cacheid=yes
7593 else
7594 eval $cacheid=no
7595 fi
7596 rm -f core conftest.err conftest.$ac_objext \
7597 conftest$ac_exeext conftest.$ac_ext
7598 fi
7599
7600
7601 CFLAGS="$xorg_testset_save_CFLAGS"
7602
7603 eval supported=\$$cacheid
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7605 $as_echo "$supported" >&6; }
7606 if test "$supported" = "yes" ; then
7607 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7608 found="yes"
7609 fi
7610 fi
7611
7612 if test $found = "no" ; then
7613 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7615 fi
7616
7617 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7619 fi
7620
7621 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7622
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7624 $as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7625 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7626 if eval \${$cacheid+:} false; then :
7627 $as_echo_n "(cached) " >&6
7628 else
7629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7630 /* end confdefs.h. */
7631 int i;
7632 int
7633 main ()
7634 {
7635
7636 ;
7637 return 0;
7638 }
7639 _ACEOF
7640 if ac_fn_c_try_link "$LINENO"; then :
7641 eval $cacheid=yes
7642 else
7643 eval $cacheid=no
7644 fi
7645 rm -f core conftest.err conftest.$ac_objext \
7646 conftest$ac_exeext conftest.$ac_ext
7647 fi
7648
7649
7650 CFLAGS="$xorg_testset_save_CFLAGS"
7651
7652 eval supported=\$$cacheid
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7654 $as_echo "$supported" >&6; }
7655 if test "$supported" = "yes" ; then
7656 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7657 found="yes"
7658 fi
7659 fi
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675 xorg_testset_save_CFLAGS="$CFLAGS"
7676
7677 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7678 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7680 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7681 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7682 $as_echo_n "(cached) " >&6
7683 else
7684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7685 /* end confdefs.h. */
7686 int i;
7687 _ACEOF
7688 if ac_fn_c_try_compile "$LINENO"; then :
7689 xorg_cv_cc_flag_unknown_warning_option=yes
7690 else
7691 xorg_cv_cc_flag_unknown_warning_option=no
7692 fi
7693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7694 fi
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7696 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7697 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7698 CFLAGS="$xorg_testset_save_CFLAGS"
7699 fi
7700
7701 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7704 fi
7705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7707 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7708 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7709 $as_echo_n "(cached) " >&6
7710 else
7711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7712 /* end confdefs.h. */
7713 int i;
7714 _ACEOF
7715 if ac_fn_c_try_compile "$LINENO"; then :
7716 xorg_cv_cc_flag_unused_command_line_argument=yes
7717 else
7718 xorg_cv_cc_flag_unused_command_line_argument=no
7719 fi
7720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7721 fi
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7723 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7724 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7725 CFLAGS="$xorg_testset_save_CFLAGS"
7726 fi
7727
7728 found="no"
7729
7730 if test $found = "no" ; then
7731 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7733 fi
7734
7735 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7737 fi
7738
7739 CFLAGS="$CFLAGS -Werror=trigraphs"
7740
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
7742 $as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
7743 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7744 if eval \${$cacheid+:} false; then :
7745 $as_echo_n "(cached) " >&6
7746 else
7747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7748 /* end confdefs.h. */
7749 int i;
7750 int
7751 main ()
7752 {
7753
7754 ;
7755 return 0;
7756 }
7757 _ACEOF
7758 if ac_fn_c_try_link "$LINENO"; then :
7759 eval $cacheid=yes
7760 else
7761 eval $cacheid=no
7762 fi
7763 rm -f core conftest.err conftest.$ac_objext \
7764 conftest$ac_exeext conftest.$ac_ext
7765 fi
7766
7767
7768 CFLAGS="$xorg_testset_save_CFLAGS"
7769
7770 eval supported=\$$cacheid
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7772 $as_echo "$supported" >&6; }
7773 if test "$supported" = "yes" ; then
7774 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7775 found="yes"
7776 fi
7777 fi
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793 xorg_testset_save_CFLAGS="$CFLAGS"
7794
7795 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7798 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7799 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7800 $as_echo_n "(cached) " >&6
7801 else
7802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7803 /* end confdefs.h. */
7804 int i;
7805 _ACEOF
7806 if ac_fn_c_try_compile "$LINENO"; then :
7807 xorg_cv_cc_flag_unknown_warning_option=yes
7808 else
7809 xorg_cv_cc_flag_unknown_warning_option=no
7810 fi
7811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7812 fi
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7814 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7815 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7816 CFLAGS="$xorg_testset_save_CFLAGS"
7817 fi
7818
7819 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7821 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7822 fi
7823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7825 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7826 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7827 $as_echo_n "(cached) " >&6
7828 else
7829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7830 /* end confdefs.h. */
7831 int i;
7832 _ACEOF
7833 if ac_fn_c_try_compile "$LINENO"; then :
7834 xorg_cv_cc_flag_unused_command_line_argument=yes
7835 else
7836 xorg_cv_cc_flag_unused_command_line_argument=no
7837 fi
7838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7839 fi
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7841 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7842 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7843 CFLAGS="$xorg_testset_save_CFLAGS"
7844 fi
7845
7846 found="no"
7847
7848 if test $found = "no" ; then
7849 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7851 fi
7852
7853 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7855 fi
7856
7857 CFLAGS="$CFLAGS -Werror=array-bounds"
7858
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
7860 $as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
7861 cacheid=xorg_cv_cc_flag__Werror_array_bounds
7862 if eval \${$cacheid+:} false; then :
7863 $as_echo_n "(cached) " >&6
7864 else
7865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7866 /* end confdefs.h. */
7867 int i;
7868 int
7869 main ()
7870 {
7871
7872 ;
7873 return 0;
7874 }
7875 _ACEOF
7876 if ac_fn_c_try_link "$LINENO"; then :
7877 eval $cacheid=yes
7878 else
7879 eval $cacheid=no
7880 fi
7881 rm -f core conftest.err conftest.$ac_objext \
7882 conftest$ac_exeext conftest.$ac_ext
7883 fi
7884
7885
7886 CFLAGS="$xorg_testset_save_CFLAGS"
7887
7888 eval supported=\$$cacheid
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7890 $as_echo "$supported" >&6; }
7891 if test "$supported" = "yes" ; then
7892 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7893 found="yes"
7894 fi
7895 fi
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911 xorg_testset_save_CFLAGS="$CFLAGS"
7912
7913 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7916 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7917 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7918 $as_echo_n "(cached) " >&6
7919 else
7920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7921 /* end confdefs.h. */
7922 int i;
7923 _ACEOF
7924 if ac_fn_c_try_compile "$LINENO"; then :
7925 xorg_cv_cc_flag_unknown_warning_option=yes
7926 else
7927 xorg_cv_cc_flag_unknown_warning_option=no
7928 fi
7929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7930 fi
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7932 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7933 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7934 CFLAGS="$xorg_testset_save_CFLAGS"
7935 fi
7936
7937 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7940 fi
7941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7943 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7944 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7945 $as_echo_n "(cached) " >&6
7946 else
7947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7948 /* end confdefs.h. */
7949 int i;
7950 _ACEOF
7951 if ac_fn_c_try_compile "$LINENO"; then :
7952 xorg_cv_cc_flag_unused_command_line_argument=yes
7953 else
7954 xorg_cv_cc_flag_unused_command_line_argument=no
7955 fi
7956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7957 fi
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7959 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7960 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7961 CFLAGS="$xorg_testset_save_CFLAGS"
7962 fi
7963
7964 found="no"
7965
7966 if test $found = "no" ; then
7967 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7969 fi
7970
7971 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7973 fi
7974
7975 CFLAGS="$CFLAGS -Werror=write-strings"
7976
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
7978 $as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
7979 cacheid=xorg_cv_cc_flag__Werror_write_strings
7980 if eval \${$cacheid+:} false; then :
7981 $as_echo_n "(cached) " >&6
7982 else
7983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7984 /* end confdefs.h. */
7985 int i;
7986 int
7987 main ()
7988 {
7989
7990 ;
7991 return 0;
7992 }
7993 _ACEOF
7994 if ac_fn_c_try_link "$LINENO"; then :
7995 eval $cacheid=yes
7996 else
7997 eval $cacheid=no
7998 fi
7999 rm -f core conftest.err conftest.$ac_objext \
8000 conftest$ac_exeext conftest.$ac_ext
8001 fi
8002
8003
8004 CFLAGS="$xorg_testset_save_CFLAGS"
8005
8006 eval supported=\$$cacheid
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8008 $as_echo "$supported" >&6; }
8009 if test "$supported" = "yes" ; then
8010 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8011 found="yes"
8012 fi
8013 fi
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029 xorg_testset_save_CFLAGS="$CFLAGS"
8030
8031 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8032 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8034 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8035 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8036 $as_echo_n "(cached) " >&6
8037 else
8038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8039 /* end confdefs.h. */
8040 int i;
8041 _ACEOF
8042 if ac_fn_c_try_compile "$LINENO"; then :
8043 xorg_cv_cc_flag_unknown_warning_option=yes
8044 else
8045 xorg_cv_cc_flag_unknown_warning_option=no
8046 fi
8047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8048 fi
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8050 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8051 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8052 CFLAGS="$xorg_testset_save_CFLAGS"
8053 fi
8054
8055 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8057 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8058 fi
8059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8061 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8062 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8063 $as_echo_n "(cached) " >&6
8064 else
8065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8066 /* end confdefs.h. */
8067 int i;
8068 _ACEOF
8069 if ac_fn_c_try_compile "$LINENO"; then :
8070 xorg_cv_cc_flag_unused_command_line_argument=yes
8071 else
8072 xorg_cv_cc_flag_unused_command_line_argument=no
8073 fi
8074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8075 fi
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8077 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8078 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8079 CFLAGS="$xorg_testset_save_CFLAGS"
8080 fi
8081
8082 found="no"
8083
8084 if test $found = "no" ; then
8085 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8087 fi
8088
8089 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8091 fi
8092
8093 CFLAGS="$CFLAGS -Werror=address"
8094
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
8096 $as_echo_n "checking if $CC supports-Werror=address... " >&6; }
8097 cacheid=xorg_cv_cc_flag__Werror_address
8098 if eval \${$cacheid+:} false; then :
8099 $as_echo_n "(cached) " >&6
8100 else
8101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8102 /* end confdefs.h. */
8103 int i;
8104 int
8105 main ()
8106 {
8107
8108 ;
8109 return 0;
8110 }
8111 _ACEOF
8112 if ac_fn_c_try_link "$LINENO"; then :
8113 eval $cacheid=yes
8114 else
8115 eval $cacheid=no
8116 fi
8117 rm -f core conftest.err conftest.$ac_objext \
8118 conftest$ac_exeext conftest.$ac_ext
8119 fi
8120
8121
8122 CFLAGS="$xorg_testset_save_CFLAGS"
8123
8124 eval supported=\$$cacheid
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8126 $as_echo "$supported" >&6; }
8127 if test "$supported" = "yes" ; then
8128 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8129 found="yes"
8130 fi
8131 fi
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147 xorg_testset_save_CFLAGS="$CFLAGS"
8148
8149 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8150 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8152 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8153 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8154 $as_echo_n "(cached) " >&6
8155 else
8156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8157 /* end confdefs.h. */
8158 int i;
8159 _ACEOF
8160 if ac_fn_c_try_compile "$LINENO"; then :
8161 xorg_cv_cc_flag_unknown_warning_option=yes
8162 else
8163 xorg_cv_cc_flag_unknown_warning_option=no
8164 fi
8165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8166 fi
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8168 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8169 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8170 CFLAGS="$xorg_testset_save_CFLAGS"
8171 fi
8172
8173 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8176 fi
8177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8179 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8180 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8181 $as_echo_n "(cached) " >&6
8182 else
8183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8184 /* end confdefs.h. */
8185 int i;
8186 _ACEOF
8187 if ac_fn_c_try_compile "$LINENO"; then :
8188 xorg_cv_cc_flag_unused_command_line_argument=yes
8189 else
8190 xorg_cv_cc_flag_unused_command_line_argument=no
8191 fi
8192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8193 fi
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8195 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8196 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8197 CFLAGS="$xorg_testset_save_CFLAGS"
8198 fi
8199
8200 found="no"
8201
8202 if test $found = "no" ; then
8203 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8205 fi
8206
8207 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8209 fi
8210
8211 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8212
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
8214 $as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
8215 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8216 if eval \${$cacheid+:} false; then :
8217 $as_echo_n "(cached) " >&6
8218 else
8219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8220 /* end confdefs.h. */
8221 int i;
8222 int
8223 main ()
8224 {
8225
8226 ;
8227 return 0;
8228 }
8229 _ACEOF
8230 if ac_fn_c_try_link "$LINENO"; then :
8231 eval $cacheid=yes
8232 else
8233 eval $cacheid=no
8234 fi
8235 rm -f core conftest.err conftest.$ac_objext \
8236 conftest$ac_exeext conftest.$ac_ext
8237 fi
8238
8239
8240 CFLAGS="$xorg_testset_save_CFLAGS"
8241
8242 eval supported=\$$cacheid
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8244 $as_echo "$supported" >&6; }
8245 if test "$supported" = "yes" ; then
8246 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8247 found="yes"
8248 fi
8249 fi
8250
8251 if test $found = "no" ; then
8252 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8254 fi
8255
8256 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8258 fi
8259
8260 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8261
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8263 $as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8264 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8265 if eval \${$cacheid+:} false; then :
8266 $as_echo_n "(cached) " >&6
8267 else
8268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8269 /* end confdefs.h. */
8270 int i;
8271 int
8272 main ()
8273 {
8274
8275 ;
8276 return 0;
8277 }
8278 _ACEOF
8279 if ac_fn_c_try_link "$LINENO"; then :
8280 eval $cacheid=yes
8281 else
8282 eval $cacheid=no
8283 fi
8284 rm -f core conftest.err conftest.$ac_objext \
8285 conftest$ac_exeext conftest.$ac_ext
8286 fi
8287
8288
8289 CFLAGS="$xorg_testset_save_CFLAGS"
8290
8291 eval supported=\$$cacheid
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8293 $as_echo "$supported" >&6; }
8294 if test "$supported" = "yes" ; then
8295 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8296 found="yes"
8297 fi
8298 fi
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314 xorg_testset_save_CFLAGS="$CFLAGS"
8315
8316 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8319 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8320 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8321 $as_echo_n "(cached) " >&6
8322 else
8323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8324 /* end confdefs.h. */
8325 int i;
8326 _ACEOF
8327 if ac_fn_c_try_compile "$LINENO"; then :
8328 xorg_cv_cc_flag_unknown_warning_option=yes
8329 else
8330 xorg_cv_cc_flag_unknown_warning_option=no
8331 fi
8332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8333 fi
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8335 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8336 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8337 CFLAGS="$xorg_testset_save_CFLAGS"
8338 fi
8339
8340 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8343 fi
8344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8346 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8347 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8348 $as_echo_n "(cached) " >&6
8349 else
8350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8351 /* end confdefs.h. */
8352 int i;
8353 _ACEOF
8354 if ac_fn_c_try_compile "$LINENO"; then :
8355 xorg_cv_cc_flag_unused_command_line_argument=yes
8356 else
8357 xorg_cv_cc_flag_unused_command_line_argument=no
8358 fi
8359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8360 fi
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8362 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8363 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8364 CFLAGS="$xorg_testset_save_CFLAGS"
8365 fi
8366
8367 found="no"
8368
8369 if test $found = "no" ; then
8370 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8372 fi
8373
8374 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8376 fi
8377
8378 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8379
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
8381 $as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
8382 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8383 if eval \${$cacheid+:} false; then :
8384 $as_echo_n "(cached) " >&6
8385 else
8386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8387 /* end confdefs.h. */
8388 int i;
8389 int
8390 main ()
8391 {
8392
8393 ;
8394 return 0;
8395 }
8396 _ACEOF
8397 if ac_fn_c_try_link "$LINENO"; then :
8398 eval $cacheid=yes
8399 else
8400 eval $cacheid=no
8401 fi
8402 rm -f core conftest.err conftest.$ac_objext \
8403 conftest$ac_exeext conftest.$ac_ext
8404 fi
8405
8406
8407 CFLAGS="$xorg_testset_save_CFLAGS"
8408
8409 eval supported=\$$cacheid
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8411 $as_echo "$supported" >&6; }
8412 if test "$supported" = "yes" ; then
8413 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8414 found="yes"
8415 fi
8416 fi
8417
8418 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8419 else
8420 { $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
8421 $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;}
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435 xorg_testset_save_CFLAGS="$CFLAGS"
8436
8437 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8440 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8441 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8442 $as_echo_n "(cached) " >&6
8443 else
8444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8445 /* end confdefs.h. */
8446 int i;
8447 _ACEOF
8448 if ac_fn_c_try_compile "$LINENO"; then :
8449 xorg_cv_cc_flag_unknown_warning_option=yes
8450 else
8451 xorg_cv_cc_flag_unknown_warning_option=no
8452 fi
8453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8454 fi
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8456 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8457 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8458 CFLAGS="$xorg_testset_save_CFLAGS"
8459 fi
8460
8461 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8464 fi
8465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8467 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8468 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8469 $as_echo_n "(cached) " >&6
8470 else
8471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8472 /* end confdefs.h. */
8473 int i;
8474 _ACEOF
8475 if ac_fn_c_try_compile "$LINENO"; then :
8476 xorg_cv_cc_flag_unused_command_line_argument=yes
8477 else
8478 xorg_cv_cc_flag_unused_command_line_argument=no
8479 fi
8480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8481 fi
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8483 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8484 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8485 CFLAGS="$xorg_testset_save_CFLAGS"
8486 fi
8487
8488 found="no"
8489
8490 if test $found = "no" ; then
8491 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8493 fi
8494
8495 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8497 fi
8498
8499 CFLAGS="$CFLAGS -Wimplicit"
8500
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
8502 $as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
8503 cacheid=xorg_cv_cc_flag__Wimplicit
8504 if eval \${$cacheid+:} false; then :
8505 $as_echo_n "(cached) " >&6
8506 else
8507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8508 /* end confdefs.h. */
8509 int i;
8510 int
8511 main ()
8512 {
8513
8514 ;
8515 return 0;
8516 }
8517 _ACEOF
8518 if ac_fn_c_try_link "$LINENO"; then :
8519 eval $cacheid=yes
8520 else
8521 eval $cacheid=no
8522 fi
8523 rm -f core conftest.err conftest.$ac_objext \
8524 conftest$ac_exeext conftest.$ac_ext
8525 fi
8526
8527
8528 CFLAGS="$xorg_testset_save_CFLAGS"
8529
8530 eval supported=\$$cacheid
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8532 $as_echo "$supported" >&6; }
8533 if test "$supported" = "yes" ; then
8534 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8535 found="yes"
8536 fi
8537 fi
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553 xorg_testset_save_CFLAGS="$CFLAGS"
8554
8555 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8558 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8559 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8560 $as_echo_n "(cached) " >&6
8561 else
8562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8563 /* end confdefs.h. */
8564 int i;
8565 _ACEOF
8566 if ac_fn_c_try_compile "$LINENO"; then :
8567 xorg_cv_cc_flag_unknown_warning_option=yes
8568 else
8569 xorg_cv_cc_flag_unknown_warning_option=no
8570 fi
8571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8572 fi
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8574 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8575 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8576 CFLAGS="$xorg_testset_save_CFLAGS"
8577 fi
8578
8579 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8581 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8582 fi
8583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8585 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8586 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8587 $as_echo_n "(cached) " >&6
8588 else
8589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8590 /* end confdefs.h. */
8591 int i;
8592 _ACEOF
8593 if ac_fn_c_try_compile "$LINENO"; then :
8594 xorg_cv_cc_flag_unused_command_line_argument=yes
8595 else
8596 xorg_cv_cc_flag_unused_command_line_argument=no
8597 fi
8598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8599 fi
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8601 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8602 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8603 CFLAGS="$xorg_testset_save_CFLAGS"
8604 fi
8605
8606 found="no"
8607
8608 if test $found = "no" ; then
8609 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8611 fi
8612
8613 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8615 fi
8616
8617 CFLAGS="$CFLAGS -Wnonnull"
8618
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
8620 $as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
8621 cacheid=xorg_cv_cc_flag__Wnonnull
8622 if eval \${$cacheid+:} false; then :
8623 $as_echo_n "(cached) " >&6
8624 else
8625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8626 /* end confdefs.h. */
8627 int i;
8628 int
8629 main ()
8630 {
8631
8632 ;
8633 return 0;
8634 }
8635 _ACEOF
8636 if ac_fn_c_try_link "$LINENO"; then :
8637 eval $cacheid=yes
8638 else
8639 eval $cacheid=no
8640 fi
8641 rm -f core conftest.err conftest.$ac_objext \
8642 conftest$ac_exeext conftest.$ac_ext
8643 fi
8644
8645
8646 CFLAGS="$xorg_testset_save_CFLAGS"
8647
8648 eval supported=\$$cacheid
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8650 $as_echo "$supported" >&6; }
8651 if test "$supported" = "yes" ; then
8652 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8653 found="yes"
8654 fi
8655 fi
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671 xorg_testset_save_CFLAGS="$CFLAGS"
8672
8673 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8674 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8676 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8677 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8678 $as_echo_n "(cached) " >&6
8679 else
8680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8681 /* end confdefs.h. */
8682 int i;
8683 _ACEOF
8684 if ac_fn_c_try_compile "$LINENO"; then :
8685 xorg_cv_cc_flag_unknown_warning_option=yes
8686 else
8687 xorg_cv_cc_flag_unknown_warning_option=no
8688 fi
8689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8690 fi
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8692 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8693 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8694 CFLAGS="$xorg_testset_save_CFLAGS"
8695 fi
8696
8697 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8700 fi
8701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8703 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8704 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8705 $as_echo_n "(cached) " >&6
8706 else
8707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8708 /* end confdefs.h. */
8709 int i;
8710 _ACEOF
8711 if ac_fn_c_try_compile "$LINENO"; then :
8712 xorg_cv_cc_flag_unused_command_line_argument=yes
8713 else
8714 xorg_cv_cc_flag_unused_command_line_argument=no
8715 fi
8716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8717 fi
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8719 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8720 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8721 CFLAGS="$xorg_testset_save_CFLAGS"
8722 fi
8723
8724 found="no"
8725
8726 if test $found = "no" ; then
8727 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8729 fi
8730
8731 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8733 fi
8734
8735 CFLAGS="$CFLAGS -Winit-self"
8736
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
8738 $as_echo_n "checking if $CC supports-Winit-self... " >&6; }
8739 cacheid=xorg_cv_cc_flag__Winit_self
8740 if eval \${$cacheid+:} false; then :
8741 $as_echo_n "(cached) " >&6
8742 else
8743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8744 /* end confdefs.h. */
8745 int i;
8746 int
8747 main ()
8748 {
8749
8750 ;
8751 return 0;
8752 }
8753 _ACEOF
8754 if ac_fn_c_try_link "$LINENO"; then :
8755 eval $cacheid=yes
8756 else
8757 eval $cacheid=no
8758 fi
8759 rm -f core conftest.err conftest.$ac_objext \
8760 conftest$ac_exeext conftest.$ac_ext
8761 fi
8762
8763
8764 CFLAGS="$xorg_testset_save_CFLAGS"
8765
8766 eval supported=\$$cacheid
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8768 $as_echo "$supported" >&6; }
8769 if test "$supported" = "yes" ; then
8770 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8771 found="yes"
8772 fi
8773 fi
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789 xorg_testset_save_CFLAGS="$CFLAGS"
8790
8791 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8792 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8794 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8795 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8796 $as_echo_n "(cached) " >&6
8797 else
8798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8799 /* end confdefs.h. */
8800 int i;
8801 _ACEOF
8802 if ac_fn_c_try_compile "$LINENO"; then :
8803 xorg_cv_cc_flag_unknown_warning_option=yes
8804 else
8805 xorg_cv_cc_flag_unknown_warning_option=no
8806 fi
8807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8808 fi
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8810 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8811 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8812 CFLAGS="$xorg_testset_save_CFLAGS"
8813 fi
8814
8815 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8817 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8818 fi
8819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8821 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8822 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8823 $as_echo_n "(cached) " >&6
8824 else
8825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8826 /* end confdefs.h. */
8827 int i;
8828 _ACEOF
8829 if ac_fn_c_try_compile "$LINENO"; then :
8830 xorg_cv_cc_flag_unused_command_line_argument=yes
8831 else
8832 xorg_cv_cc_flag_unused_command_line_argument=no
8833 fi
8834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8835 fi
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8837 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8838 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8839 CFLAGS="$xorg_testset_save_CFLAGS"
8840 fi
8841
8842 found="no"
8843
8844 if test $found = "no" ; then
8845 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8847 fi
8848
8849 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8851 fi
8852
8853 CFLAGS="$CFLAGS -Wmain"
8854
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
8856 $as_echo_n "checking if $CC supports-Wmain... " >&6; }
8857 cacheid=xorg_cv_cc_flag__Wmain
8858 if eval \${$cacheid+:} false; then :
8859 $as_echo_n "(cached) " >&6
8860 else
8861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862 /* end confdefs.h. */
8863 int i;
8864 int
8865 main ()
8866 {
8867
8868 ;
8869 return 0;
8870 }
8871 _ACEOF
8872 if ac_fn_c_try_link "$LINENO"; then :
8873 eval $cacheid=yes
8874 else
8875 eval $cacheid=no
8876 fi
8877 rm -f core conftest.err conftest.$ac_objext \
8878 conftest$ac_exeext conftest.$ac_ext
8879 fi
8880
8881
8882 CFLAGS="$xorg_testset_save_CFLAGS"
8883
8884 eval supported=\$$cacheid
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8886 $as_echo "$supported" >&6; }
8887 if test "$supported" = "yes" ; then
8888 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8889 found="yes"
8890 fi
8891 fi
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907 xorg_testset_save_CFLAGS="$CFLAGS"
8908
8909 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8910 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8912 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8913 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8914 $as_echo_n "(cached) " >&6
8915 else
8916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8917 /* end confdefs.h. */
8918 int i;
8919 _ACEOF
8920 if ac_fn_c_try_compile "$LINENO"; then :
8921 xorg_cv_cc_flag_unknown_warning_option=yes
8922 else
8923 xorg_cv_cc_flag_unknown_warning_option=no
8924 fi
8925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8926 fi
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8928 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8929 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8930 CFLAGS="$xorg_testset_save_CFLAGS"
8931 fi
8932
8933 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8935 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8936 fi
8937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8939 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8940 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8941 $as_echo_n "(cached) " >&6
8942 else
8943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8944 /* end confdefs.h. */
8945 int i;
8946 _ACEOF
8947 if ac_fn_c_try_compile "$LINENO"; then :
8948 xorg_cv_cc_flag_unused_command_line_argument=yes
8949 else
8950 xorg_cv_cc_flag_unused_command_line_argument=no
8951 fi
8952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8953 fi
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8955 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8956 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8957 CFLAGS="$xorg_testset_save_CFLAGS"
8958 fi
8959
8960 found="no"
8961
8962 if test $found = "no" ; then
8963 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8964 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8965 fi
8966
8967 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8969 fi
8970
8971 CFLAGS="$CFLAGS -Wmissing-braces"
8972
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
8974 $as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
8975 cacheid=xorg_cv_cc_flag__Wmissing_braces
8976 if eval \${$cacheid+:} false; then :
8977 $as_echo_n "(cached) " >&6
8978 else
8979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8980 /* end confdefs.h. */
8981 int i;
8982 int
8983 main ()
8984 {
8985
8986 ;
8987 return 0;
8988 }
8989 _ACEOF
8990 if ac_fn_c_try_link "$LINENO"; then :
8991 eval $cacheid=yes
8992 else
8993 eval $cacheid=no
8994 fi
8995 rm -f core conftest.err conftest.$ac_objext \
8996 conftest$ac_exeext conftest.$ac_ext
8997 fi
8998
8999
9000 CFLAGS="$xorg_testset_save_CFLAGS"
9001
9002 eval supported=\$$cacheid
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9004 $as_echo "$supported" >&6; }
9005 if test "$supported" = "yes" ; then
9006 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9007 found="yes"
9008 fi
9009 fi
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025 xorg_testset_save_CFLAGS="$CFLAGS"
9026
9027 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9030 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9031 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9032 $as_echo_n "(cached) " >&6
9033 else
9034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9035 /* end confdefs.h. */
9036 int i;
9037 _ACEOF
9038 if ac_fn_c_try_compile "$LINENO"; then :
9039 xorg_cv_cc_flag_unknown_warning_option=yes
9040 else
9041 xorg_cv_cc_flag_unknown_warning_option=no
9042 fi
9043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9044 fi
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9046 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9047 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9048 CFLAGS="$xorg_testset_save_CFLAGS"
9049 fi
9050
9051 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9053 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9054 fi
9055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9057 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9058 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9059 $as_echo_n "(cached) " >&6
9060 else
9061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9062 /* end confdefs.h. */
9063 int i;
9064 _ACEOF
9065 if ac_fn_c_try_compile "$LINENO"; then :
9066 xorg_cv_cc_flag_unused_command_line_argument=yes
9067 else
9068 xorg_cv_cc_flag_unused_command_line_argument=no
9069 fi
9070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9071 fi
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9073 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9074 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9075 CFLAGS="$xorg_testset_save_CFLAGS"
9076 fi
9077
9078 found="no"
9079
9080 if test $found = "no" ; then
9081 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9083 fi
9084
9085 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9087 fi
9088
9089 CFLAGS="$CFLAGS -Wsequence-point"
9090
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
9092 $as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
9093 cacheid=xorg_cv_cc_flag__Wsequence_point
9094 if eval \${$cacheid+:} false; then :
9095 $as_echo_n "(cached) " >&6
9096 else
9097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9098 /* end confdefs.h. */
9099 int i;
9100 int
9101 main ()
9102 {
9103
9104 ;
9105 return 0;
9106 }
9107 _ACEOF
9108 if ac_fn_c_try_link "$LINENO"; then :
9109 eval $cacheid=yes
9110 else
9111 eval $cacheid=no
9112 fi
9113 rm -f core conftest.err conftest.$ac_objext \
9114 conftest$ac_exeext conftest.$ac_ext
9115 fi
9116
9117
9118 CFLAGS="$xorg_testset_save_CFLAGS"
9119
9120 eval supported=\$$cacheid
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9122 $as_echo "$supported" >&6; }
9123 if test "$supported" = "yes" ; then
9124 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9125 found="yes"
9126 fi
9127 fi
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143 xorg_testset_save_CFLAGS="$CFLAGS"
9144
9145 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9146 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9148 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9149 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9150 $as_echo_n "(cached) " >&6
9151 else
9152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9153 /* end confdefs.h. */
9154 int i;
9155 _ACEOF
9156 if ac_fn_c_try_compile "$LINENO"; then :
9157 xorg_cv_cc_flag_unknown_warning_option=yes
9158 else
9159 xorg_cv_cc_flag_unknown_warning_option=no
9160 fi
9161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9162 fi
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9164 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9165 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9166 CFLAGS="$xorg_testset_save_CFLAGS"
9167 fi
9168
9169 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9171 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9172 fi
9173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9175 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9176 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9177 $as_echo_n "(cached) " >&6
9178 else
9179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9180 /* end confdefs.h. */
9181 int i;
9182 _ACEOF
9183 if ac_fn_c_try_compile "$LINENO"; then :
9184 xorg_cv_cc_flag_unused_command_line_argument=yes
9185 else
9186 xorg_cv_cc_flag_unused_command_line_argument=no
9187 fi
9188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9189 fi
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9191 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9192 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9193 CFLAGS="$xorg_testset_save_CFLAGS"
9194 fi
9195
9196 found="no"
9197
9198 if test $found = "no" ; then
9199 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9201 fi
9202
9203 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9205 fi
9206
9207 CFLAGS="$CFLAGS -Wreturn-type"
9208
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
9210 $as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
9211 cacheid=xorg_cv_cc_flag__Wreturn_type
9212 if eval \${$cacheid+:} false; then :
9213 $as_echo_n "(cached) " >&6
9214 else
9215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9216 /* end confdefs.h. */
9217 int i;
9218 int
9219 main ()
9220 {
9221
9222 ;
9223 return 0;
9224 }
9225 _ACEOF
9226 if ac_fn_c_try_link "$LINENO"; then :
9227 eval $cacheid=yes
9228 else
9229 eval $cacheid=no
9230 fi
9231 rm -f core conftest.err conftest.$ac_objext \
9232 conftest$ac_exeext conftest.$ac_ext
9233 fi
9234
9235
9236 CFLAGS="$xorg_testset_save_CFLAGS"
9237
9238 eval supported=\$$cacheid
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9240 $as_echo "$supported" >&6; }
9241 if test "$supported" = "yes" ; then
9242 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9243 found="yes"
9244 fi
9245 fi
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261 xorg_testset_save_CFLAGS="$CFLAGS"
9262
9263 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9266 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9267 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9268 $as_echo_n "(cached) " >&6
9269 else
9270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9271 /* end confdefs.h. */
9272 int i;
9273 _ACEOF
9274 if ac_fn_c_try_compile "$LINENO"; then :
9275 xorg_cv_cc_flag_unknown_warning_option=yes
9276 else
9277 xorg_cv_cc_flag_unknown_warning_option=no
9278 fi
9279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9280 fi
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9282 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9283 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9284 CFLAGS="$xorg_testset_save_CFLAGS"
9285 fi
9286
9287 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9290 fi
9291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9293 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9294 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9295 $as_echo_n "(cached) " >&6
9296 else
9297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9298 /* end confdefs.h. */
9299 int i;
9300 _ACEOF
9301 if ac_fn_c_try_compile "$LINENO"; then :
9302 xorg_cv_cc_flag_unused_command_line_argument=yes
9303 else
9304 xorg_cv_cc_flag_unused_command_line_argument=no
9305 fi
9306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9307 fi
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9309 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9310 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9311 CFLAGS="$xorg_testset_save_CFLAGS"
9312 fi
9313
9314 found="no"
9315
9316 if test $found = "no" ; then
9317 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9319 fi
9320
9321 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9323 fi
9324
9325 CFLAGS="$CFLAGS -Wtrigraphs"
9326
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
9328 $as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
9329 cacheid=xorg_cv_cc_flag__Wtrigraphs
9330 if eval \${$cacheid+:} false; then :
9331 $as_echo_n "(cached) " >&6
9332 else
9333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9334 /* end confdefs.h. */
9335 int i;
9336 int
9337 main ()
9338 {
9339
9340 ;
9341 return 0;
9342 }
9343 _ACEOF
9344 if ac_fn_c_try_link "$LINENO"; then :
9345 eval $cacheid=yes
9346 else
9347 eval $cacheid=no
9348 fi
9349 rm -f core conftest.err conftest.$ac_objext \
9350 conftest$ac_exeext conftest.$ac_ext
9351 fi
9352
9353
9354 CFLAGS="$xorg_testset_save_CFLAGS"
9355
9356 eval supported=\$$cacheid
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9358 $as_echo "$supported" >&6; }
9359 if test "$supported" = "yes" ; then
9360 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9361 found="yes"
9362 fi
9363 fi
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379 xorg_testset_save_CFLAGS="$CFLAGS"
9380
9381 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9382 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9384 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9385 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9386 $as_echo_n "(cached) " >&6
9387 else
9388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9389 /* end confdefs.h. */
9390 int i;
9391 _ACEOF
9392 if ac_fn_c_try_compile "$LINENO"; then :
9393 xorg_cv_cc_flag_unknown_warning_option=yes
9394 else
9395 xorg_cv_cc_flag_unknown_warning_option=no
9396 fi
9397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9398 fi
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9400 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9401 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9402 CFLAGS="$xorg_testset_save_CFLAGS"
9403 fi
9404
9405 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9408 fi
9409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9411 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9412 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9413 $as_echo_n "(cached) " >&6
9414 else
9415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9416 /* end confdefs.h. */
9417 int i;
9418 _ACEOF
9419 if ac_fn_c_try_compile "$LINENO"; then :
9420 xorg_cv_cc_flag_unused_command_line_argument=yes
9421 else
9422 xorg_cv_cc_flag_unused_command_line_argument=no
9423 fi
9424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9425 fi
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9427 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9428 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9429 CFLAGS="$xorg_testset_save_CFLAGS"
9430 fi
9431
9432 found="no"
9433
9434 if test $found = "no" ; then
9435 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9437 fi
9438
9439 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9441 fi
9442
9443 CFLAGS="$CFLAGS -Warray-bounds"
9444
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
9446 $as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
9447 cacheid=xorg_cv_cc_flag__Warray_bounds
9448 if eval \${$cacheid+:} false; then :
9449 $as_echo_n "(cached) " >&6
9450 else
9451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9452 /* end confdefs.h. */
9453 int i;
9454 int
9455 main ()
9456 {
9457
9458 ;
9459 return 0;
9460 }
9461 _ACEOF
9462 if ac_fn_c_try_link "$LINENO"; then :
9463 eval $cacheid=yes
9464 else
9465 eval $cacheid=no
9466 fi
9467 rm -f core conftest.err conftest.$ac_objext \
9468 conftest$ac_exeext conftest.$ac_ext
9469 fi
9470
9471
9472 CFLAGS="$xorg_testset_save_CFLAGS"
9473
9474 eval supported=\$$cacheid
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9476 $as_echo "$supported" >&6; }
9477 if test "$supported" = "yes" ; then
9478 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9479 found="yes"
9480 fi
9481 fi
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497 xorg_testset_save_CFLAGS="$CFLAGS"
9498
9499 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9500 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9502 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9503 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9504 $as_echo_n "(cached) " >&6
9505 else
9506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9507 /* end confdefs.h. */
9508 int i;
9509 _ACEOF
9510 if ac_fn_c_try_compile "$LINENO"; then :
9511 xorg_cv_cc_flag_unknown_warning_option=yes
9512 else
9513 xorg_cv_cc_flag_unknown_warning_option=no
9514 fi
9515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9516 fi
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9518 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9519 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9520 CFLAGS="$xorg_testset_save_CFLAGS"
9521 fi
9522
9523 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9525 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9526 fi
9527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9529 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9530 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9531 $as_echo_n "(cached) " >&6
9532 else
9533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9534 /* end confdefs.h. */
9535 int i;
9536 _ACEOF
9537 if ac_fn_c_try_compile "$LINENO"; then :
9538 xorg_cv_cc_flag_unused_command_line_argument=yes
9539 else
9540 xorg_cv_cc_flag_unused_command_line_argument=no
9541 fi
9542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9543 fi
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9545 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9546 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9547 CFLAGS="$xorg_testset_save_CFLAGS"
9548 fi
9549
9550 found="no"
9551
9552 if test $found = "no" ; then
9553 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9555 fi
9556
9557 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9559 fi
9560
9561 CFLAGS="$CFLAGS -Wwrite-strings"
9562
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
9564 $as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
9565 cacheid=xorg_cv_cc_flag__Wwrite_strings
9566 if eval \${$cacheid+:} false; then :
9567 $as_echo_n "(cached) " >&6
9568 else
9569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9570 /* end confdefs.h. */
9571 int i;
9572 int
9573 main ()
9574 {
9575
9576 ;
9577 return 0;
9578 }
9579 _ACEOF
9580 if ac_fn_c_try_link "$LINENO"; then :
9581 eval $cacheid=yes
9582 else
9583 eval $cacheid=no
9584 fi
9585 rm -f core conftest.err conftest.$ac_objext \
9586 conftest$ac_exeext conftest.$ac_ext
9587 fi
9588
9589
9590 CFLAGS="$xorg_testset_save_CFLAGS"
9591
9592 eval supported=\$$cacheid
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9594 $as_echo "$supported" >&6; }
9595 if test "$supported" = "yes" ; then
9596 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9597 found="yes"
9598 fi
9599 fi
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615 xorg_testset_save_CFLAGS="$CFLAGS"
9616
9617 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9618 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9620 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9621 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9622 $as_echo_n "(cached) " >&6
9623 else
9624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9625 /* end confdefs.h. */
9626 int i;
9627 _ACEOF
9628 if ac_fn_c_try_compile "$LINENO"; then :
9629 xorg_cv_cc_flag_unknown_warning_option=yes
9630 else
9631 xorg_cv_cc_flag_unknown_warning_option=no
9632 fi
9633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9634 fi
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9636 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9637 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9638 CFLAGS="$xorg_testset_save_CFLAGS"
9639 fi
9640
9641 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9644 fi
9645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9647 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9648 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9649 $as_echo_n "(cached) " >&6
9650 else
9651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9652 /* end confdefs.h. */
9653 int i;
9654 _ACEOF
9655 if ac_fn_c_try_compile "$LINENO"; then :
9656 xorg_cv_cc_flag_unused_command_line_argument=yes
9657 else
9658 xorg_cv_cc_flag_unused_command_line_argument=no
9659 fi
9660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9661 fi
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9663 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9664 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9665 CFLAGS="$xorg_testset_save_CFLAGS"
9666 fi
9667
9668 found="no"
9669
9670 if test $found = "no" ; then
9671 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9673 fi
9674
9675 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9677 fi
9678
9679 CFLAGS="$CFLAGS -Waddress"
9680
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
9682 $as_echo_n "checking if $CC supports-Waddress... " >&6; }
9683 cacheid=xorg_cv_cc_flag__Waddress
9684 if eval \${$cacheid+:} false; then :
9685 $as_echo_n "(cached) " >&6
9686 else
9687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9688 /* end confdefs.h. */
9689 int i;
9690 int
9691 main ()
9692 {
9693
9694 ;
9695 return 0;
9696 }
9697 _ACEOF
9698 if ac_fn_c_try_link "$LINENO"; then :
9699 eval $cacheid=yes
9700 else
9701 eval $cacheid=no
9702 fi
9703 rm -f core conftest.err conftest.$ac_objext \
9704 conftest$ac_exeext conftest.$ac_ext
9705 fi
9706
9707
9708 CFLAGS="$xorg_testset_save_CFLAGS"
9709
9710 eval supported=\$$cacheid
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9712 $as_echo "$supported" >&6; }
9713 if test "$supported" = "yes" ; then
9714 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9715 found="yes"
9716 fi
9717 fi
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733 xorg_testset_save_CFLAGS="$CFLAGS"
9734
9735 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9736 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9738 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9739 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9740 $as_echo_n "(cached) " >&6
9741 else
9742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9743 /* end confdefs.h. */
9744 int i;
9745 _ACEOF
9746 if ac_fn_c_try_compile "$LINENO"; then :
9747 xorg_cv_cc_flag_unknown_warning_option=yes
9748 else
9749 xorg_cv_cc_flag_unknown_warning_option=no
9750 fi
9751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9752 fi
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9754 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9755 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9756 CFLAGS="$xorg_testset_save_CFLAGS"
9757 fi
9758
9759 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9762 fi
9763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9765 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9766 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9767 $as_echo_n "(cached) " >&6
9768 else
9769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9770 /* end confdefs.h. */
9771 int i;
9772 _ACEOF
9773 if ac_fn_c_try_compile "$LINENO"; then :
9774 xorg_cv_cc_flag_unused_command_line_argument=yes
9775 else
9776 xorg_cv_cc_flag_unused_command_line_argument=no
9777 fi
9778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9779 fi
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9781 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9782 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9783 CFLAGS="$xorg_testset_save_CFLAGS"
9784 fi
9785
9786 found="no"
9787
9788 if test $found = "no" ; then
9789 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9791 fi
9792
9793 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9795 fi
9796
9797 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9798
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
9800 $as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
9801 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9802 if eval \${$cacheid+:} false; then :
9803 $as_echo_n "(cached) " >&6
9804 else
9805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9806 /* end confdefs.h. */
9807 int i;
9808 int
9809 main ()
9810 {
9811
9812 ;
9813 return 0;
9814 }
9815 _ACEOF
9816 if ac_fn_c_try_link "$LINENO"; then :
9817 eval $cacheid=yes
9818 else
9819 eval $cacheid=no
9820 fi
9821 rm -f core conftest.err conftest.$ac_objext \
9822 conftest$ac_exeext conftest.$ac_ext
9823 fi
9824
9825
9826 CFLAGS="$xorg_testset_save_CFLAGS"
9827
9828 eval supported=\$$cacheid
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9830 $as_echo "$supported" >&6; }
9831 if test "$supported" = "yes" ; then
9832 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9833 found="yes"
9834 fi
9835 fi
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851 xorg_testset_save_CFLAGS="$CFLAGS"
9852
9853 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9856 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9857 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9858 $as_echo_n "(cached) " >&6
9859 else
9860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9861 /* end confdefs.h. */
9862 int i;
9863 _ACEOF
9864 if ac_fn_c_try_compile "$LINENO"; then :
9865 xorg_cv_cc_flag_unknown_warning_option=yes
9866 else
9867 xorg_cv_cc_flag_unknown_warning_option=no
9868 fi
9869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9870 fi
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9872 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9873 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9874 CFLAGS="$xorg_testset_save_CFLAGS"
9875 fi
9876
9877 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9878 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9879 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9880 fi
9881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9883 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9884 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9885 $as_echo_n "(cached) " >&6
9886 else
9887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9888 /* end confdefs.h. */
9889 int i;
9890 _ACEOF
9891 if ac_fn_c_try_compile "$LINENO"; then :
9892 xorg_cv_cc_flag_unused_command_line_argument=yes
9893 else
9894 xorg_cv_cc_flag_unused_command_line_argument=no
9895 fi
9896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9897 fi
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9899 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9900 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9901 CFLAGS="$xorg_testset_save_CFLAGS"
9902 fi
9903
9904 found="no"
9905
9906 if test $found = "no" ; then
9907 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9909 fi
9910
9911 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9913 fi
9914
9915 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9916
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
9918 $as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
9919 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9920 if eval \${$cacheid+:} false; then :
9921 $as_echo_n "(cached) " >&6
9922 else
9923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9924 /* end confdefs.h. */
9925 int i;
9926 int
9927 main ()
9928 {
9929
9930 ;
9931 return 0;
9932 }
9933 _ACEOF
9934 if ac_fn_c_try_link "$LINENO"; then :
9935 eval $cacheid=yes
9936 else
9937 eval $cacheid=no
9938 fi
9939 rm -f core conftest.err conftest.$ac_objext \
9940 conftest$ac_exeext conftest.$ac_ext
9941 fi
9942
9943
9944 CFLAGS="$xorg_testset_save_CFLAGS"
9945
9946 eval supported=\$$cacheid
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9948 $as_echo "$supported" >&6; }
9949 if test "$supported" = "yes" ; then
9950 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9951 found="yes"
9952 fi
9953 fi
9954
9955
9956 fi
9957
9958
9959
9960
9961
9962
9963
9964 CWARNFLAGS="$BASE_CFLAGS"
9965 if test "x$GCC" = xyes ; then
9966 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9967 fi
9968
9969
9970
9971
9972
9973
9974
9975
9976 # Check whether --enable-strict-compilation was given.
9977 if test "${enable_strict_compilation+set}" = set; then :
9978 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9979 else
9980 STRICT_COMPILE=no
9981 fi
9982
9983
9984
9985
9986
9987
9988 STRICT_CFLAGS=""
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002 xorg_testset_save_CFLAGS="$CFLAGS"
10003
10004 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10005 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10007 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10008 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10009 $as_echo_n "(cached) " >&6
10010 else
10011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10012 /* end confdefs.h. */
10013 int i;
10014 _ACEOF
10015 if ac_fn_c_try_compile "$LINENO"; then :
10016 xorg_cv_cc_flag_unknown_warning_option=yes
10017 else
10018 xorg_cv_cc_flag_unknown_warning_option=no
10019 fi
10020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10021 fi
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10023 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10024 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10025 CFLAGS="$xorg_testset_save_CFLAGS"
10026 fi
10027
10028 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10030 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10031 fi
10032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10034 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10035 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10036 $as_echo_n "(cached) " >&6
10037 else
10038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10039 /* end confdefs.h. */
10040 int i;
10041 _ACEOF
10042 if ac_fn_c_try_compile "$LINENO"; then :
10043 xorg_cv_cc_flag_unused_command_line_argument=yes
10044 else
10045 xorg_cv_cc_flag_unused_command_line_argument=no
10046 fi
10047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10048 fi
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10050 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10051 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10052 CFLAGS="$xorg_testset_save_CFLAGS"
10053 fi
10054
10055 found="no"
10056
10057 if test $found = "no" ; then
10058 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10059 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10060 fi
10061
10062 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10064 fi
10065
10066 CFLAGS="$CFLAGS -pedantic"
10067
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
10069 $as_echo_n "checking if $CC supports-pedantic... " >&6; }
10070 cacheid=xorg_cv_cc_flag__pedantic
10071 if eval \${$cacheid+:} false; then :
10072 $as_echo_n "(cached) " >&6
10073 else
10074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10075 /* end confdefs.h. */
10076 int i;
10077 int
10078 main ()
10079 {
10080
10081 ;
10082 return 0;
10083 }
10084 _ACEOF
10085 if ac_fn_c_try_link "$LINENO"; then :
10086 eval $cacheid=yes
10087 else
10088 eval $cacheid=no
10089 fi
10090 rm -f core conftest.err conftest.$ac_objext \
10091 conftest$ac_exeext conftest.$ac_ext
10092 fi
10093
10094
10095 CFLAGS="$xorg_testset_save_CFLAGS"
10096
10097 eval supported=\$$cacheid
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10099 $as_echo "$supported" >&6; }
10100 if test "$supported" = "yes" ; then
10101 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10102 found="yes"
10103 fi
10104 fi
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120 xorg_testset_save_CFLAGS="$CFLAGS"
10121
10122 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10123 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10125 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10126 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10127 $as_echo_n "(cached) " >&6
10128 else
10129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10130 /* end confdefs.h. */
10131 int i;
10132 _ACEOF
10133 if ac_fn_c_try_compile "$LINENO"; then :
10134 xorg_cv_cc_flag_unknown_warning_option=yes
10135 else
10136 xorg_cv_cc_flag_unknown_warning_option=no
10137 fi
10138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10139 fi
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10141 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10142 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10143 CFLAGS="$xorg_testset_save_CFLAGS"
10144 fi
10145
10146 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10148 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10149 fi
10150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10152 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10153 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10154 $as_echo_n "(cached) " >&6
10155 else
10156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10157 /* end confdefs.h. */
10158 int i;
10159 _ACEOF
10160 if ac_fn_c_try_compile "$LINENO"; then :
10161 xorg_cv_cc_flag_unused_command_line_argument=yes
10162 else
10163 xorg_cv_cc_flag_unused_command_line_argument=no
10164 fi
10165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10166 fi
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10168 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10169 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10170 CFLAGS="$xorg_testset_save_CFLAGS"
10171 fi
10172
10173 found="no"
10174
10175 if test $found = "no" ; then
10176 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10177 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10178 fi
10179
10180 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10182 fi
10183
10184 CFLAGS="$CFLAGS -Werror"
10185
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
10187 $as_echo_n "checking if $CC supports-Werror... " >&6; }
10188 cacheid=xorg_cv_cc_flag__Werror
10189 if eval \${$cacheid+:} false; then :
10190 $as_echo_n "(cached) " >&6
10191 else
10192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10193 /* end confdefs.h. */
10194 int i;
10195 int
10196 main ()
10197 {
10198
10199 ;
10200 return 0;
10201 }
10202 _ACEOF
10203 if ac_fn_c_try_link "$LINENO"; then :
10204 eval $cacheid=yes
10205 else
10206 eval $cacheid=no
10207 fi
10208 rm -f core conftest.err conftest.$ac_objext \
10209 conftest$ac_exeext conftest.$ac_ext
10210 fi
10211
10212
10213 CFLAGS="$xorg_testset_save_CFLAGS"
10214
10215 eval supported=\$$cacheid
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10217 $as_echo "$supported" >&6; }
10218 if test "$supported" = "yes" ; then
10219 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10220 found="yes"
10221 fi
10222 fi
10223
10224 if test $found = "no" ; then
10225 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10227 fi
10228
10229 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10231 fi
10232
10233 CFLAGS="$CFLAGS -errwarn"
10234
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
10236 $as_echo_n "checking if $CC supports-errwarn... " >&6; }
10237 cacheid=xorg_cv_cc_flag__errwarn
10238 if eval \${$cacheid+:} false; then :
10239 $as_echo_n "(cached) " >&6
10240 else
10241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10242 /* end confdefs.h. */
10243 int i;
10244 int
10245 main ()
10246 {
10247
10248 ;
10249 return 0;
10250 }
10251 _ACEOF
10252 if ac_fn_c_try_link "$LINENO"; then :
10253 eval $cacheid=yes
10254 else
10255 eval $cacheid=no
10256 fi
10257 rm -f core conftest.err conftest.$ac_objext \
10258 conftest$ac_exeext conftest.$ac_ext
10259 fi
10260
10261
10262 CFLAGS="$xorg_testset_save_CFLAGS"
10263
10264 eval supported=\$$cacheid
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10266 $as_echo "$supported" >&6; }
10267 if test "$supported" = "yes" ; then
10268 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10269 found="yes"
10270 fi
10271 fi
10272
10273
10274
10275 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10276 # activate it with -Werror, so we add it here explicitly.
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290 xorg_testset_save_CFLAGS="$CFLAGS"
10291
10292 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10295 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10296 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10297 $as_echo_n "(cached) " >&6
10298 else
10299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10300 /* end confdefs.h. */
10301 int i;
10302 _ACEOF
10303 if ac_fn_c_try_compile "$LINENO"; then :
10304 xorg_cv_cc_flag_unknown_warning_option=yes
10305 else
10306 xorg_cv_cc_flag_unknown_warning_option=no
10307 fi
10308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10309 fi
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10311 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10312 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10313 CFLAGS="$xorg_testset_save_CFLAGS"
10314 fi
10315
10316 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10319 fi
10320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10322 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10323 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10324 $as_echo_n "(cached) " >&6
10325 else
10326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10327 /* end confdefs.h. */
10328 int i;
10329 _ACEOF
10330 if ac_fn_c_try_compile "$LINENO"; then :
10331 xorg_cv_cc_flag_unused_command_line_argument=yes
10332 else
10333 xorg_cv_cc_flag_unused_command_line_argument=no
10334 fi
10335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10336 fi
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10338 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10339 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10340 CFLAGS="$xorg_testset_save_CFLAGS"
10341 fi
10342
10343 found="no"
10344
10345 if test $found = "no" ; then
10346 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10347 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10348 fi
10349
10350 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10352 fi
10353
10354 CFLAGS="$CFLAGS -Werror=attributes"
10355
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
10357 $as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
10358 cacheid=xorg_cv_cc_flag__Werror_attributes
10359 if eval \${$cacheid+:} false; then :
10360 $as_echo_n "(cached) " >&6
10361 else
10362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10363 /* end confdefs.h. */
10364 int i;
10365 int
10366 main ()
10367 {
10368
10369 ;
10370 return 0;
10371 }
10372 _ACEOF
10373 if ac_fn_c_try_link "$LINENO"; then :
10374 eval $cacheid=yes
10375 else
10376 eval $cacheid=no
10377 fi
10378 rm -f core conftest.err conftest.$ac_objext \
10379 conftest$ac_exeext conftest.$ac_ext
10380 fi
10381
10382
10383 CFLAGS="$xorg_testset_save_CFLAGS"
10384
10385 eval supported=\$$cacheid
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10387 $as_echo "$supported" >&6; }
10388 if test "$supported" = "yes" ; then
10389 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10390 found="yes"
10391 fi
10392 fi
10393
10394
10395
10396 if test "x$STRICT_COMPILE" = "xyes"; then
10397 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10398 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10399 fi
10400
10401
10402
10403
10404
10405
10406 cat >>confdefs.h <<_ACEOF
10407 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10408 _ACEOF
10409
10410 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10411 if test "x$PVM" = "x"; then
10412 PVM="0"
10413 fi
10414
10415 cat >>confdefs.h <<_ACEOF
10416 #define PACKAGE_VERSION_MINOR $PVM
10417 _ACEOF
10418
10419 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10420 if test "x$PVP" = "x"; then
10421 PVP="0"
10422 fi
10423
10424 cat >>confdefs.h <<_ACEOF
10425 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10426 _ACEOF
10427
10428
10429
10430 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10431 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10432 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10433 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10434
10435
10436
10437
10438 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10439 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10440 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10441 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10442 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10443
10444
10445
10446
10447
10448
10449 if test x$APP_MAN_SUFFIX = x ; then
10450 APP_MAN_SUFFIX=1
10451 fi
10452 if test x$APP_MAN_DIR = x ; then
10453 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10454 fi
10455
10456 if test x$LIB_MAN_SUFFIX = x ; then
10457 LIB_MAN_SUFFIX=3
10458 fi
10459 if test x$LIB_MAN_DIR = x ; then
10460 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10461 fi
10462
10463 if test x$FILE_MAN_SUFFIX = x ; then
10464 case $host_os in
10465 solaris*) FILE_MAN_SUFFIX=4 ;;
10466 *) FILE_MAN_SUFFIX=5 ;;
10467 esac
10468 fi
10469 if test x$FILE_MAN_DIR = x ; then
10470 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10471 fi
10472
10473 if test x$MISC_MAN_SUFFIX = x ; then
10474 case $host_os in
10475 solaris*) MISC_MAN_SUFFIX=5 ;;
10476 *) MISC_MAN_SUFFIX=7 ;;
10477 esac
10478 fi
10479 if test x$MISC_MAN_DIR = x ; then
10480 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10481 fi
10482
10483 if test x$DRIVER_MAN_SUFFIX = x ; then
10484 case $host_os in
10485 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10486 *) DRIVER_MAN_SUFFIX=4 ;;
10487 esac
10488 fi
10489 if test x$DRIVER_MAN_DIR = x ; then
10490 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10491 fi
10492
10493 if test x$ADMIN_MAN_SUFFIX = x ; then
10494 case $host_os in
10495 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10496 *) ADMIN_MAN_SUFFIX=8 ;;
10497 esac
10498 fi
10499 if test x$ADMIN_MAN_DIR = x ; then
10500 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10501 fi
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517 XORG_MAN_PAGE="X Version 11"
10518
10519 MAN_SUBSTS="\
10520 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10521 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10522 -e 's|__xservername__|Xorg|g' \
10523 -e 's|__xconfigfile__|xorg.conf|g' \
10524 -e 's|__projectroot__|\$(prefix)|g' \
10525 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10526 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10527 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10528 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10529 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10530 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10531 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10532
10533
10534
10535 # Check whether --enable-silent-rules was given.
10536 if test "${enable_silent_rules+set}" = set; then :
10537 enableval=$enable_silent_rules;
10538 fi
10539
10540 case $enable_silent_rules in
10541 yes) AM_DEFAULT_VERBOSITY=0;;
10542 no) AM_DEFAULT_VERBOSITY=1;;
10543 *) AM_DEFAULT_VERBOSITY=0;;
10544 esac
10545 am_make=${MAKE-make}
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10547 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10548 if ${am_cv_make_support_nested_variables+:} false; then :
10549 $as_echo_n "(cached) " >&6
10550 else
10551 if $as_echo 'TRUE=$(BAR$(V))
10552 BAR0=false
10553 BAR1=true
10554 V=1
10555 am__doit:
10556 @$(TRUE)
10557 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10558 am_cv_make_support_nested_variables=yes
10559 else
10560 am_cv_make_support_nested_variables=no
10561 fi
10562 fi
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10564 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10565 if test $am_cv_make_support_nested_variables = yes; then
10566 AM_V='$(V)'
10567 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10568 else
10569 AM_V=$AM_DEFAULT_VERBOSITY
10570 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10571 fi
10572 AM_BACKSLASH='\'
10573
10574
10575
10576 DRIVER_NAME=vmmouse
10577
10578
10579 # Checks for programs.
10580 # Check whether --enable-static was given.
10581 if test "${enable_static+set}" = set; then :
10582 enableval=$enable_static; p=${PACKAGE-default}
10583 case $enableval in
10584 yes) enable_static=yes ;;
10585 no) enable_static=no ;;
10586 *)
10587 enable_static=no
10588 # Look at the argument we got. We use all the common list separators.
10589 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10590 for pkg in $enableval; do
10591 IFS="$lt_save_ifs"
10592 if test "X$pkg" = "X$p"; then
10593 enable_static=yes
10594 fi
10595 done
10596 IFS="$lt_save_ifs"
10597 ;;
10598 esac
10599 else
10600 enable_static=no
10601 fi
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611 case `pwd` in
10612 *\ * | *\ *)
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10614 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10615 esac
10616
10617
10618
10619 macro_version='2.4.2'
10620 macro_revision='1.3337'
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634 ltmain="$ac_aux_dir/ltmain.sh"
10635
10636 # Backslashify metacharacters that are still active within
10637 # double-quoted strings.
10638 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10639
10640 # Same as above, but do not quote variable references.
10641 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10642
10643 # Sed substitution to delay expansion of an escaped shell variable in a
10644 # double_quote_subst'ed string.
10645 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10646
10647 # Sed substitution to delay expansion of an escaped single quote.
10648 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10649
10650 # Sed substitution to avoid accidental globbing in evaled expressions
10651 no_glob_subst='s/\*/\\\*/g'
10652
10653 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10654 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10655 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10656
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10658 $as_echo_n "checking how to print strings... " >&6; }
10659 # Test print first, because it will be a builtin if present.
10660 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10661 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10662 ECHO='print -r --'
10663 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10664 ECHO='printf %s\n'
10665 else
10666 # Use this function as a fallback that always works.
10667 func_fallback_echo ()
10668 {
10669 eval 'cat <<_LTECHO_EOF
10670 $1
10671 _LTECHO_EOF'
10672 }
10673 ECHO='func_fallback_echo'
10674 fi
10675
10676 # func_echo_all arg...
10677 # Invoke $ECHO with all args, space-separated.
10678 func_echo_all ()
10679 {
10680 $ECHO ""
10681 }
10682
10683 case "$ECHO" in
10684 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10685 $as_echo "printf" >&6; } ;;
10686 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10687 $as_echo "print -r" >&6; } ;;
10688 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10689 $as_echo "cat" >&6; } ;;
10690 esac
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10706 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10707 if ${ac_cv_path_SED+:} false; then :
10708 $as_echo_n "(cached) " >&6
10709 else
10710 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10711 for ac_i in 1 2 3 4 5 6 7; do
10712 ac_script="$ac_script$as_nl$ac_script"
10713 done
10714 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10715 { ac_script=; unset ac_script;}
10716 if test -z "$SED"; then
10717 ac_path_SED_found=false
10718 # Loop through the user's path and test for each of PROGNAME-LIST
10719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10720 for as_dir in $PATH
10721 do
10722 IFS=$as_save_IFS
10723 test -z "$as_dir" && as_dir=.
10724 for ac_prog in sed gsed; do
10725 for ac_exec_ext in '' $ac_executable_extensions; do
10726 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10727 as_fn_executable_p "$ac_path_SED" || continue
10728 # Check for GNU ac_path_SED and select it if it is found.
10729 # Check for GNU $ac_path_SED
10730 case `"$ac_path_SED" --version 2>&1` in
10731 *GNU*)
10732 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10733 *)
10734 ac_count=0
10735 $as_echo_n 0123456789 >"conftest.in"
10736 while :
10737 do
10738 cat "conftest.in" "conftest.in" >"conftest.tmp"
10739 mv "conftest.tmp" "conftest.in"
10740 cp "conftest.in" "conftest.nl"
10741 $as_echo '' >> "conftest.nl"
10742 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10743 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10744 as_fn_arith $ac_count + 1 && ac_count=$as_val
10745 if test $ac_count -gt ${ac_path_SED_max-0}; then
10746 # Best one so far, save it but keep looking for a better one
10747 ac_cv_path_SED="$ac_path_SED"
10748 ac_path_SED_max=$ac_count
10749 fi
10750 # 10*(2^10) chars as input seems more than enough
10751 test $ac_count -gt 10 && break
10752 done
10753 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10754 esac
10755
10756 $ac_path_SED_found && break 3
10757 done
10758 done
10759 done
10760 IFS=$as_save_IFS
10761 if test -z "$ac_cv_path_SED"; then
10762 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10763 fi
10764 else
10765 ac_cv_path_SED=$SED
10766 fi
10767
10768 fi
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10770 $as_echo "$ac_cv_path_SED" >&6; }
10771 SED="$ac_cv_path_SED"
10772 rm -f conftest.sed
10773
10774 test -z "$SED" && SED=sed
10775 Xsed="$SED -e 1s/^X//"
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10788 $as_echo_n "checking for fgrep... " >&6; }
10789 if ${ac_cv_path_FGREP+:} false; then :
10790 $as_echo_n "(cached) " >&6
10791 else
10792 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10793 then ac_cv_path_FGREP="$GREP -F"
10794 else
10795 if test -z "$FGREP"; then
10796 ac_path_FGREP_found=false
10797 # Loop through the user's path and test for each of PROGNAME-LIST
10798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10799 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10800 do
10801 IFS=$as_save_IFS
10802 test -z "$as_dir" && as_dir=.
10803 for ac_prog in fgrep; do
10804 for ac_exec_ext in '' $ac_executable_extensions; do
10805 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10806 as_fn_executable_p "$ac_path_FGREP" || continue
10807 # Check for GNU ac_path_FGREP and select it if it is found.
10808 # Check for GNU $ac_path_FGREP
10809 case `"$ac_path_FGREP" --version 2>&1` in
10810 *GNU*)
10811 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10812 *)
10813 ac_count=0
10814 $as_echo_n 0123456789 >"conftest.in"
10815 while :
10816 do
10817 cat "conftest.in" "conftest.in" >"conftest.tmp"
10818 mv "conftest.tmp" "conftest.in"
10819 cp "conftest.in" "conftest.nl"
10820 $as_echo 'FGREP' >> "conftest.nl"
10821 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10822 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10823 as_fn_arith $ac_count + 1 && ac_count=$as_val
10824 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10825 # Best one so far, save it but keep looking for a better one
10826 ac_cv_path_FGREP="$ac_path_FGREP"
10827 ac_path_FGREP_max=$ac_count
10828 fi
10829 # 10*(2^10) chars as input seems more than enough
10830 test $ac_count -gt 10 && break
10831 done
10832 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10833 esac
10834
10835 $ac_path_FGREP_found && break 3
10836 done
10837 done
10838 done
10839 IFS=$as_save_IFS
10840 if test -z "$ac_cv_path_FGREP"; then
10841 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10842 fi
10843 else
10844 ac_cv_path_FGREP=$FGREP
10845 fi
10846
10847 fi
10848 fi
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10850 $as_echo "$ac_cv_path_FGREP" >&6; }
10851 FGREP="$ac_cv_path_FGREP"
10852
10853
10854 test -z "$GREP" && GREP=grep
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874 # Check whether --with-gnu-ld was given.
10875 if test "${with_gnu_ld+set}" = set; then :
10876 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10877 else
10878 with_gnu_ld=no
10879 fi
10880
10881 ac_prog=ld
10882 if test "$GCC" = yes; then
10883 # Check if gcc -print-prog-name=ld gives a path.
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10885 $as_echo_n "checking for ld used by $CC... " >&6; }
10886 case $host in
10887 *-*-mingw*)
10888 # gcc leaves a trailing carriage return which upsets mingw
10889 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10890 *)
10891 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10892 esac
10893 case $ac_prog in
10894 # Accept absolute paths.
10895 [\\/]* | ?:[\\/]*)
10896 re_direlt='/[^/][^/]*/\.\./'
10897 # Canonicalize the pathname of ld
10898 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10899 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10900 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10901 done
10902 test -z "$LD" && LD="$ac_prog"
10903 ;;
10904 "")
10905 # If it fails, then pretend we aren't using GCC.
10906 ac_prog=ld
10907 ;;
10908 *)
10909 # If it is relative, then search for the first ld in PATH.
10910 with_gnu_ld=unknown
10911 ;;
10912 esac
10913 elif test "$with_gnu_ld" = yes; then
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10915 $as_echo_n "checking for GNU ld... " >&6; }
10916 else
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10918 $as_echo_n "checking for non-GNU ld... " >&6; }
10919 fi
10920 if ${lt_cv_path_LD+:} false; then :
10921 $as_echo_n "(cached) " >&6
10922 else
10923 if test -z "$LD"; then
10924 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10925 for ac_dir in $PATH; do
10926 IFS="$lt_save_ifs"
10927 test -z "$ac_dir" && ac_dir=.
10928 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10929 lt_cv_path_LD="$ac_dir/$ac_prog"
10930 # Check to see if the program is GNU ld. I'd rather use --version,
10931 # but apparently some variants of GNU ld only accept -v.
10932 # Break only if it was the GNU/non-GNU ld that we prefer.
10933 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10934 *GNU* | *'with BFD'*)
10935 test "$with_gnu_ld" != no && break
10936 ;;
10937 *)
10938 test "$with_gnu_ld" != yes && break
10939 ;;
10940 esac
10941 fi
10942 done
10943 IFS="$lt_save_ifs"
10944 else
10945 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10946 fi
10947 fi
10948
10949 LD="$lt_cv_path_LD"
10950 if test -n "$LD"; then
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10952 $as_echo "$LD" >&6; }
10953 else
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10955 $as_echo "no" >&6; }
10956 fi
10957 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10959 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10960 if ${lt_cv_prog_gnu_ld+:} false; then :
10961 $as_echo_n "(cached) " >&6
10962 else
10963 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10964 case `$LD -v 2>&1 </dev/null` in
10965 *GNU* | *'with BFD'*)
10966 lt_cv_prog_gnu_ld=yes
10967 ;;
10968 *)
10969 lt_cv_prog_gnu_ld=no
10970 ;;
10971 esac
10972 fi
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10974 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10975 with_gnu_ld=$lt_cv_prog_gnu_ld
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10986 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
10987 if ${lt_cv_path_NM+:} false; then :
10988 $as_echo_n "(cached) " >&6
10989 else
10990 if test -n "$NM"; then
10991 # Let the user override the test.
10992 lt_cv_path_NM="$NM"
10993 else
10994 lt_nm_to_check="${ac_tool_prefix}nm"
10995 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10996 lt_nm_to_check="$lt_nm_to_check nm"
10997 fi
10998 for lt_tmp_nm in $lt_nm_to_check; do
10999 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11000 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11001 IFS="$lt_save_ifs"
11002 test -z "$ac_dir" && ac_dir=.
11003 tmp_nm="$ac_dir/$lt_tmp_nm"
11004 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11005 # Check to see if the nm accepts a BSD-compat flag.
11006 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11007 # nm: unknown option "B" ignored
11008 # Tru64's nm complains that /dev/null is an invalid object file
11009 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11010 */dev/null* | *'Invalid file or object type'*)
11011 lt_cv_path_NM="$tmp_nm -B"
11012 break
11013 ;;
11014 *)
11015 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11016 */dev/null*)
11017 lt_cv_path_NM="$tmp_nm -p"
11018 break
11019 ;;
11020 *)
11021 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11022 continue # so that we can try to find one that supports BSD flags
11023 ;;
11024 esac
11025 ;;
11026 esac
11027 fi
11028 done
11029 IFS="$lt_save_ifs"
11030 done
11031 : ${lt_cv_path_NM=no}
11032 fi
11033 fi
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11035 $as_echo "$lt_cv_path_NM" >&6; }
11036 if test "$lt_cv_path_NM" != "no"; then
11037 NM="$lt_cv_path_NM"
11038 else
11039 # Didn't find any BSD compatible name lister, look for dumpbin.
11040 if test -n "$DUMPBIN"; then :
11041 # Let the user override the test.
11042 else
11043 if test -n "$ac_tool_prefix"; then
11044 for ac_prog in dumpbin "link -dump"
11045 do
11046 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11047 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11049 $as_echo_n "checking for $ac_word... " >&6; }
11050 if ${ac_cv_prog_DUMPBIN+:} false; then :
11051 $as_echo_n "(cached) " >&6
11052 else
11053 if test -n "$DUMPBIN"; then
11054 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11055 else
11056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11057 for as_dir in $PATH
11058 do
11059 IFS=$as_save_IFS
11060 test -z "$as_dir" && as_dir=.
11061 for ac_exec_ext in '' $ac_executable_extensions; do
11062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11063 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11065 break 2
11066 fi
11067 done
11068 done
11069 IFS=$as_save_IFS
11070
11071 fi
11072 fi
11073 DUMPBIN=$ac_cv_prog_DUMPBIN
11074 if test -n "$DUMPBIN"; then
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11076 $as_echo "$DUMPBIN" >&6; }
11077 else
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11079 $as_echo "no" >&6; }
11080 fi
11081
11082
11083 test -n "$DUMPBIN" && break
11084 done
11085 fi
11086 if test -z "$DUMPBIN"; then
11087 ac_ct_DUMPBIN=$DUMPBIN
11088 for ac_prog in dumpbin "link -dump"
11089 do
11090 # Extract the first word of "$ac_prog", so it can be a program name with args.
11091 set dummy $ac_prog; ac_word=$2
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11093 $as_echo_n "checking for $ac_word... " >&6; }
11094 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11095 $as_echo_n "(cached) " >&6
11096 else
11097 if test -n "$ac_ct_DUMPBIN"; then
11098 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11099 else
11100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11101 for as_dir in $PATH
11102 do
11103 IFS=$as_save_IFS
11104 test -z "$as_dir" && as_dir=.
11105 for ac_exec_ext in '' $ac_executable_extensions; do
11106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11107 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11109 break 2
11110 fi
11111 done
11112 done
11113 IFS=$as_save_IFS
11114
11115 fi
11116 fi
11117 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11118 if test -n "$ac_ct_DUMPBIN"; then
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11120 $as_echo "$ac_ct_DUMPBIN" >&6; }
11121 else
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11123 $as_echo "no" >&6; }
11124 fi
11125
11126
11127 test -n "$ac_ct_DUMPBIN" && break
11128 done
11129
11130 if test "x$ac_ct_DUMPBIN" = x; then
11131 DUMPBIN=":"
11132 else
11133 case $cross_compiling:$ac_tool_warned in
11134 yes:)
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11137 ac_tool_warned=yes ;;
11138 esac
11139 DUMPBIN=$ac_ct_DUMPBIN
11140 fi
11141 fi
11142
11143 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11144 *COFF*)
11145 DUMPBIN="$DUMPBIN -symbols"
11146 ;;
11147 *)
11148 DUMPBIN=:
11149 ;;
11150 esac
11151 fi
11152
11153 if test "$DUMPBIN" != ":"; then
11154 NM="$DUMPBIN"
11155 fi
11156 fi
11157 test -z "$NM" && NM=nm
11158
11159
11160
11161
11162
11163
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11165 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11166 if ${lt_cv_nm_interface+:} false; then :
11167 $as_echo_n "(cached) " >&6
11168 else
11169 lt_cv_nm_interface="BSD nm"
11170 echo "int some_variable = 0;" > conftest.$ac_ext
11171 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11172 (eval "$ac_compile" 2>conftest.err)
11173 cat conftest.err >&5
11174 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11175 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11176 cat conftest.err >&5
11177 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11178 cat conftest.out >&5
11179 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11180 lt_cv_nm_interface="MS dumpbin"
11181 fi
11182 rm -f conftest*
11183 fi
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11185 $as_echo "$lt_cv_nm_interface" >&6; }
11186
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11188 $as_echo_n "checking whether ln -s works... " >&6; }
11189 LN_S=$as_ln_s
11190 if test "$LN_S" = "ln -s"; then
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11192 $as_echo "yes" >&6; }
11193 else
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11195 $as_echo "no, using $LN_S" >&6; }
11196 fi
11197
11198 # find the maximum length of command line arguments
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11200 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11201 if ${lt_cv_sys_max_cmd_len+:} false; then :
11202 $as_echo_n "(cached) " >&6
11203 else
11204 i=0
11205 teststring="ABCD"
11206
11207 case $build_os in
11208 msdosdjgpp*)
11209 # On DJGPP, this test can blow up pretty badly due to problems in libc
11210 # (any single argument exceeding 2000 bytes causes a buffer overrun
11211 # during glob expansion). Even if it were fixed, the result of this
11212 # check would be larger than it should be.
11213 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11214 ;;
11215
11216 gnu*)
11217 # Under GNU Hurd, this test is not required because there is
11218 # no limit to the length of command line arguments.
11219 # Libtool will interpret -1 as no limit whatsoever
11220 lt_cv_sys_max_cmd_len=-1;
11221 ;;
11222
11223 cygwin* | mingw* | cegcc*)
11224 # On Win9x/ME, this test blows up -- it succeeds, but takes
11225 # about 5 minutes as the teststring grows exponentially.
11226 # Worse, since 9x/ME are not pre-emptively multitasking,
11227 # you end up with a "frozen" computer, even though with patience
11228 # the test eventually succeeds (with a max line length of 256k).
11229 # Instead, let's just punt: use the minimum linelength reported by
11230 # all of the supported platforms: 8192 (on NT/2K/XP).
11231 lt_cv_sys_max_cmd_len=8192;
11232 ;;
11233
11234 mint*)
11235 # On MiNT this can take a long time and run out of memory.
11236 lt_cv_sys_max_cmd_len=8192;
11237 ;;
11238
11239 amigaos*)
11240 # On AmigaOS with pdksh, this test takes hours, literally.
11241 # So we just punt and use a minimum line length of 8192.
11242 lt_cv_sys_max_cmd_len=8192;
11243 ;;
11244
11245 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11246 # This has been around since 386BSD, at least. Likely further.
11247 if test -x /sbin/sysctl; then
11248 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11249 elif test -x /usr/sbin/sysctl; then
11250 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11251 else
11252 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11253 fi
11254 # And add a safety zone
11255 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11256 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11257 ;;
11258
11259 interix*)
11260 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11261 lt_cv_sys_max_cmd_len=196608
11262 ;;
11263
11264 os2*)
11265 # The test takes a long time on OS/2.
11266 lt_cv_sys_max_cmd_len=8192
11267 ;;
11268
11269 osf*)
11270 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11271 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11272 # nice to cause kernel panics so lets avoid the loop below.
11273 # First set a reasonable default.
11274 lt_cv_sys_max_cmd_len=16384
11275 #
11276 if test -x /sbin/sysconfig; then
11277 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11278 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11279 esac
11280 fi
11281 ;;
11282 sco3.2v5*)
11283 lt_cv_sys_max_cmd_len=102400
11284 ;;
11285 sysv5* | sco5v6* | sysv4.2uw2*)
11286 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11287 if test -n "$kargmax"; then
11288 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11289 else
11290 lt_cv_sys_max_cmd_len=32768
11291 fi
11292 ;;
11293 *)
11294 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11295 if test -n "$lt_cv_sys_max_cmd_len"; then
11296 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11297 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11298 else
11299 # Make teststring a little bigger before we do anything with it.
11300 # a 1K string should be a reasonable start.
11301 for i in 1 2 3 4 5 6 7 8 ; do
11302 teststring=$teststring$teststring
11303 done
11304 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11305 # If test is not a shell built-in, we'll probably end up computing a
11306 # maximum length that is only half of the actual maximum length, but
11307 # we can't tell.
11308 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11309 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11310 test $i != 17 # 1/2 MB should be enough
11311 do
11312 i=`expr $i + 1`
11313 teststring=$teststring$teststring
11314 done
11315 # Only check the string length outside the loop.
11316 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11317 teststring=
11318 # Add a significant safety factor because C++ compilers can tack on
11319 # massive amounts of additional arguments before passing them to the
11320 # linker. It appears as though 1/2 is a usable value.
11321 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11322 fi
11323 ;;
11324 esac
11325
11326 fi
11327
11328 if test -n $lt_cv_sys_max_cmd_len ; then
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11330 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11331 else
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11333 $as_echo "none" >&6; }
11334 fi
11335 max_cmd_len=$lt_cv_sys_max_cmd_len
11336
11337
11338
11339
11340
11341
11342 : ${CP="cp -f"}
11343 : ${MV="mv -f"}
11344 : ${RM="rm -f"}
11345
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11347 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11348 # Try some XSI features
11349 xsi_shell=no
11350 ( _lt_dummy="a/b/c"
11351 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11352 = c,a/b,b/c, \
11353 && eval 'test $(( 1 + 1 )) -eq 2 \
11354 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11355 && xsi_shell=yes
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11357 $as_echo "$xsi_shell" >&6; }
11358
11359
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11361 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11362 lt_shell_append=no
11363 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11364 >/dev/null 2>&1 \
11365 && lt_shell_append=yes
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11367 $as_echo "$lt_shell_append" >&6; }
11368
11369
11370 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11371 lt_unset=unset
11372 else
11373 lt_unset=false
11374 fi
11375
11376
11377
11378
11379
11380 # test EBCDIC or ASCII
11381 case `echo X|tr X '\101'` in
11382 A) # ASCII based system
11383 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11384 lt_SP2NL='tr \040 \012'
11385 lt_NL2SP='tr \015\012 \040\040'
11386 ;;
11387 *) # EBCDIC based system
11388 lt_SP2NL='tr \100 \n'
11389 lt_NL2SP='tr \r\n \100\100'
11390 ;;
11391 esac
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11402 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11403 if ${lt_cv_to_host_file_cmd+:} false; then :
11404 $as_echo_n "(cached) " >&6
11405 else
11406 case $host in
11407 *-*-mingw* )
11408 case $build in
11409 *-*-mingw* ) # actually msys
11410 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11411 ;;
11412 *-*-cygwin* )
11413 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11414 ;;
11415 * ) # otherwise, assume *nix
11416 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11417 ;;
11418 esac
11419 ;;
11420 *-*-cygwin* )
11421 case $build in
11422 *-*-mingw* ) # actually msys
11423 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11424 ;;
11425 *-*-cygwin* )
11426 lt_cv_to_host_file_cmd=func_convert_file_noop
11427 ;;
11428 * ) # otherwise, assume *nix
11429 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11430 ;;
11431 esac
11432 ;;
11433 * ) # unhandled hosts (and "normal" native builds)
11434 lt_cv_to_host_file_cmd=func_convert_file_noop
11435 ;;
11436 esac
11437
11438 fi
11439
11440 to_host_file_cmd=$lt_cv_to_host_file_cmd
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11442 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11443
11444
11445
11446
11447
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11449 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11450 if ${lt_cv_to_tool_file_cmd+:} false; then :
11451 $as_echo_n "(cached) " >&6
11452 else
11453 #assume ordinary cross tools, or native build.
11454 lt_cv_to_tool_file_cmd=func_convert_file_noop
11455 case $host in
11456 *-*-mingw* )
11457 case $build in
11458 *-*-mingw* ) # actually msys
11459 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11460 ;;
11461 esac
11462 ;;
11463 esac
11464
11465 fi
11466
11467 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11469 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11470
11471
11472
11473
11474
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11476 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11477 if ${lt_cv_ld_reload_flag+:} false; then :
11478 $as_echo_n "(cached) " >&6
11479 else
11480 lt_cv_ld_reload_flag='-r'
11481 fi
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11483 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11484 reload_flag=$lt_cv_ld_reload_flag
11485 case $reload_flag in
11486 "" | " "*) ;;
11487 *) reload_flag=" $reload_flag" ;;
11488 esac
11489 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11490 case $host_os in
11491 cygwin* | mingw* | pw32* | cegcc*)
11492 if test "$GCC" != yes; then
11493 reload_cmds=false
11494 fi
11495 ;;
11496 darwin*)
11497 if test "$GCC" = yes; then
11498 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11499 else
11500 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11501 fi
11502 ;;
11503 esac
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513 if test -n "$ac_tool_prefix"; then
11514 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11515 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11517 $as_echo_n "checking for $ac_word... " >&6; }
11518 if ${ac_cv_prog_OBJDUMP+:} false; then :
11519 $as_echo_n "(cached) " >&6
11520 else
11521 if test -n "$OBJDUMP"; then
11522 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11523 else
11524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11525 for as_dir in $PATH
11526 do
11527 IFS=$as_save_IFS
11528 test -z "$as_dir" && as_dir=.
11529 for ac_exec_ext in '' $ac_executable_extensions; do
11530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11531 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11533 break 2
11534 fi
11535 done
11536 done
11537 IFS=$as_save_IFS
11538
11539 fi
11540 fi
11541 OBJDUMP=$ac_cv_prog_OBJDUMP
11542 if test -n "$OBJDUMP"; then
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11544 $as_echo "$OBJDUMP" >&6; }
11545 else
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11547 $as_echo "no" >&6; }
11548 fi
11549
11550
11551 fi
11552 if test -z "$ac_cv_prog_OBJDUMP"; then
11553 ac_ct_OBJDUMP=$OBJDUMP
11554 # Extract the first word of "objdump", so it can be a program name with args.
11555 set dummy objdump; ac_word=$2
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11557 $as_echo_n "checking for $ac_word... " >&6; }
11558 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11559 $as_echo_n "(cached) " >&6
11560 else
11561 if test -n "$ac_ct_OBJDUMP"; then
11562 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11563 else
11564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11565 for as_dir in $PATH
11566 do
11567 IFS=$as_save_IFS
11568 test -z "$as_dir" && as_dir=.
11569 for ac_exec_ext in '' $ac_executable_extensions; do
11570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11571 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11573 break 2
11574 fi
11575 done
11576 done
11577 IFS=$as_save_IFS
11578
11579 fi
11580 fi
11581 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11582 if test -n "$ac_ct_OBJDUMP"; then
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11584 $as_echo "$ac_ct_OBJDUMP" >&6; }
11585 else
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11587 $as_echo "no" >&6; }
11588 fi
11589
11590 if test "x$ac_ct_OBJDUMP" = x; then
11591 OBJDUMP="false"
11592 else
11593 case $cross_compiling:$ac_tool_warned in
11594 yes:)
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11597 ac_tool_warned=yes ;;
11598 esac
11599 OBJDUMP=$ac_ct_OBJDUMP
11600 fi
11601 else
11602 OBJDUMP="$ac_cv_prog_OBJDUMP"
11603 fi
11604
11605 test -z "$OBJDUMP" && OBJDUMP=objdump
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11616 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11617 if ${lt_cv_deplibs_check_method+:} false; then :
11618 $as_echo_n "(cached) " >&6
11619 else
11620 lt_cv_file_magic_cmd='$MAGIC_CMD'
11621 lt_cv_file_magic_test_file=
11622 lt_cv_deplibs_check_method='unknown'
11623 # Need to set the preceding variable on all platforms that support
11624 # interlibrary dependencies.
11625 # 'none' -- dependencies not supported.
11626 # `unknown' -- same as none, but documents that we really don't know.
11627 # 'pass_all' -- all dependencies passed with no checks.
11628 # 'test_compile' -- check by making test program.
11629 # 'file_magic [[regex]]' -- check by looking for files in library path
11630 # which responds to the $file_magic_cmd with a given extended regex.
11631 # If you have `file' or equivalent on your system and you're not sure
11632 # whether `pass_all' will *always* work, you probably want this one.
11633
11634 case $host_os in
11635 aix[4-9]*)
11636 lt_cv_deplibs_check_method=pass_all
11637 ;;
11638
11639 beos*)
11640 lt_cv_deplibs_check_method=pass_all
11641 ;;
11642
11643 bsdi[45]*)
11644 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11645 lt_cv_file_magic_cmd='/usr/bin/file -L'
11646 lt_cv_file_magic_test_file=/shlib/libc.so
11647 ;;
11648
11649 cygwin*)
11650 # func_win32_libid is a shell function defined in ltmain.sh
11651 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11652 lt_cv_file_magic_cmd='func_win32_libid'
11653 ;;
11654
11655 mingw* | pw32*)
11656 # Base MSYS/MinGW do not provide the 'file' command needed by
11657 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11658 # unless we find 'file', for example because we are cross-compiling.
11659 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11660 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11661 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11662 lt_cv_file_magic_cmd='func_win32_libid'
11663 else
11664 # Keep this pattern in sync with the one in func_win32_libid.
11665 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11666 lt_cv_file_magic_cmd='$OBJDUMP -f'
11667 fi
11668 ;;
11669
11670 cegcc*)
11671 # use the weaker test based on 'objdump'. See mingw*.
11672 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11673 lt_cv_file_magic_cmd='$OBJDUMP -f'
11674 ;;
11675
11676 darwin* | rhapsody*)
11677 lt_cv_deplibs_check_method=pass_all
11678 ;;
11679
11680 freebsd* | dragonfly*)
11681 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11682 case $host_cpu in
11683 i*86 )
11684 # Not sure whether the presence of OpenBSD here was a mistake.
11685 # Let's accept both of them until this is cleared up.
11686 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11687 lt_cv_file_magic_cmd=/usr/bin/file
11688 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11689 ;;
11690 esac
11691 else
11692 lt_cv_deplibs_check_method=pass_all
11693 fi
11694 ;;
11695
11696 gnu*)
11697 lt_cv_deplibs_check_method=pass_all
11698 ;;
11699
11700 haiku*)
11701 lt_cv_deplibs_check_method=pass_all
11702 ;;
11703
11704 hpux10.20* | hpux11*)
11705 lt_cv_file_magic_cmd=/usr/bin/file
11706 case $host_cpu in
11707 ia64*)
11708 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11709 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11710 ;;
11711 hppa*64*)
11712 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]'
11713 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11714 ;;
11715 *)
11716 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11717 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11718 ;;
11719 esac
11720 ;;
11721
11722 interix[3-9]*)
11723 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11724 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11725 ;;
11726
11727 irix5* | irix6* | nonstopux*)
11728 case $LD in
11729 *-32|*"-32 ") libmagic=32-bit;;
11730 *-n32|*"-n32 ") libmagic=N32;;
11731 *-64|*"-64 ") libmagic=64-bit;;
11732 *) libmagic=never-match;;
11733 esac
11734 lt_cv_deplibs_check_method=pass_all
11735 ;;
11736
11737 # This must be glibc/ELF.
11738 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11739 lt_cv_deplibs_check_method=pass_all
11740 ;;
11741
11742 netbsd* | netbsdelf*-gnu)
11743 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11744 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11745 else
11746 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11747 fi
11748 ;;
11749
11750 newos6*)
11751 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11752 lt_cv_file_magic_cmd=/usr/bin/file
11753 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11754 ;;
11755
11756 *nto* | *qnx*)
11757 lt_cv_deplibs_check_method=pass_all
11758 ;;
11759
11760 openbsd*)
11761 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11762 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11763 else
11764 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11765 fi
11766 ;;
11767
11768 osf3* | osf4* | osf5*)
11769 lt_cv_deplibs_check_method=pass_all
11770 ;;
11771
11772 rdos*)
11773 lt_cv_deplibs_check_method=pass_all
11774 ;;
11775
11776 solaris*)
11777 lt_cv_deplibs_check_method=pass_all
11778 ;;
11779
11780 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11781 lt_cv_deplibs_check_method=pass_all
11782 ;;
11783
11784 sysv4 | sysv4.3*)
11785 case $host_vendor in
11786 motorola)
11787 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]'
11788 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11789 ;;
11790 ncr)
11791 lt_cv_deplibs_check_method=pass_all
11792 ;;
11793 sequent)
11794 lt_cv_file_magic_cmd='/bin/file'
11795 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11796 ;;
11797 sni)
11798 lt_cv_file_magic_cmd='/bin/file'
11799 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11800 lt_cv_file_magic_test_file=/lib/libc.so
11801 ;;
11802 siemens)
11803 lt_cv_deplibs_check_method=pass_all
11804 ;;
11805 pc)
11806 lt_cv_deplibs_check_method=pass_all
11807 ;;
11808 esac
11809 ;;
11810
11811 tpf*)
11812 lt_cv_deplibs_check_method=pass_all
11813 ;;
11814 esac
11815
11816 fi
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11818 $as_echo "$lt_cv_deplibs_check_method" >&6; }
11819
11820 file_magic_glob=
11821 want_nocaseglob=no
11822 if test "$build" = "$host"; then
11823 case $host_os in
11824 mingw* | pw32*)
11825 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11826 want_nocaseglob=yes
11827 else
11828 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11829 fi
11830 ;;
11831 esac
11832 fi
11833
11834 file_magic_cmd=$lt_cv_file_magic_cmd
11835 deplibs_check_method=$lt_cv_deplibs_check_method
11836 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859 if test -n "$ac_tool_prefix"; then
11860 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11861 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11863 $as_echo_n "checking for $ac_word... " >&6; }
11864 if ${ac_cv_prog_DLLTOOL+:} false; then :
11865 $as_echo_n "(cached) " >&6
11866 else
11867 if test -n "$DLLTOOL"; then
11868 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11869 else
11870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11871 for as_dir in $PATH
11872 do
11873 IFS=$as_save_IFS
11874 test -z "$as_dir" && as_dir=.
11875 for ac_exec_ext in '' $ac_executable_extensions; do
11876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11877 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11879 break 2
11880 fi
11881 done
11882 done
11883 IFS=$as_save_IFS
11884
11885 fi
11886 fi
11887 DLLTOOL=$ac_cv_prog_DLLTOOL
11888 if test -n "$DLLTOOL"; then
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11890 $as_echo "$DLLTOOL" >&6; }
11891 else
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11893 $as_echo "no" >&6; }
11894 fi
11895
11896
11897 fi
11898 if test -z "$ac_cv_prog_DLLTOOL"; then
11899 ac_ct_DLLTOOL=$DLLTOOL
11900 # Extract the first word of "dlltool", so it can be a program name with args.
11901 set dummy dlltool; ac_word=$2
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11903 $as_echo_n "checking for $ac_word... " >&6; }
11904 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11905 $as_echo_n "(cached) " >&6
11906 else
11907 if test -n "$ac_ct_DLLTOOL"; then
11908 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11909 else
11910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11911 for as_dir in $PATH
11912 do
11913 IFS=$as_save_IFS
11914 test -z "$as_dir" && as_dir=.
11915 for ac_exec_ext in '' $ac_executable_extensions; do
11916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11917 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11919 break 2
11920 fi
11921 done
11922 done
11923 IFS=$as_save_IFS
11924
11925 fi
11926 fi
11927 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11928 if test -n "$ac_ct_DLLTOOL"; then
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11930 $as_echo "$ac_ct_DLLTOOL" >&6; }
11931 else
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11933 $as_echo "no" >&6; }
11934 fi
11935
11936 if test "x$ac_ct_DLLTOOL" = x; then
11937 DLLTOOL="false"
11938 else
11939 case $cross_compiling:$ac_tool_warned in
11940 yes:)
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11943 ac_tool_warned=yes ;;
11944 esac
11945 DLLTOOL=$ac_ct_DLLTOOL
11946 fi
11947 else
11948 DLLTOOL="$ac_cv_prog_DLLTOOL"
11949 fi
11950
11951 test -z "$DLLTOOL" && DLLTOOL=dlltool
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11963 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11964 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11965 $as_echo_n "(cached) " >&6
11966 else
11967 lt_cv_sharedlib_from_linklib_cmd='unknown'
11968
11969 case $host_os in
11970 cygwin* | mingw* | pw32* | cegcc*)
11971 # two different shell functions defined in ltmain.sh
11972 # decide which to use based on capabilities of $DLLTOOL
11973 case `$DLLTOOL --help 2>&1` in
11974 *--identify-strict*)
11975 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11976 ;;
11977 *)
11978 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11979 ;;
11980 esac
11981 ;;
11982 *)
11983 # fallback: assume linklib IS sharedlib
11984 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11985 ;;
11986 esac
11987
11988 fi
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11990 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11991 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11992 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11993
11994
11995
11996
11997
11998
11999
12000 if test -n "$ac_tool_prefix"; then
12001 for ac_prog in ar
12002 do
12003 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12004 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12006 $as_echo_n "checking for $ac_word... " >&6; }
12007 if ${ac_cv_prog_AR+:} false; then :
12008 $as_echo_n "(cached) " >&6
12009 else
12010 if test -n "$AR"; then
12011 ac_cv_prog_AR="$AR" # Let the user override the test.
12012 else
12013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12014 for as_dir in $PATH
12015 do
12016 IFS=$as_save_IFS
12017 test -z "$as_dir" && as_dir=.
12018 for ac_exec_ext in '' $ac_executable_extensions; do
12019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12020 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12022 break 2
12023 fi
12024 done
12025 done
12026 IFS=$as_save_IFS
12027
12028 fi
12029 fi
12030 AR=$ac_cv_prog_AR
12031 if test -n "$AR"; then
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12033 $as_echo "$AR" >&6; }
12034 else
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12036 $as_echo "no" >&6; }
12037 fi
12038
12039
12040 test -n "$AR" && break
12041 done
12042 fi
12043 if test -z "$AR"; then
12044 ac_ct_AR=$AR
12045 for ac_prog in ar
12046 do
12047 # Extract the first word of "$ac_prog", so it can be a program name with args.
12048 set dummy $ac_prog; ac_word=$2
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12050 $as_echo_n "checking for $ac_word... " >&6; }
12051 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12052 $as_echo_n "(cached) " >&6
12053 else
12054 if test -n "$ac_ct_AR"; then
12055 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12056 else
12057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12058 for as_dir in $PATH
12059 do
12060 IFS=$as_save_IFS
12061 test -z "$as_dir" && as_dir=.
12062 for ac_exec_ext in '' $ac_executable_extensions; do
12063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12064 ac_cv_prog_ac_ct_AR="$ac_prog"
12065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12066 break 2
12067 fi
12068 done
12069 done
12070 IFS=$as_save_IFS
12071
12072 fi
12073 fi
12074 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12075 if test -n "$ac_ct_AR"; then
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12077 $as_echo "$ac_ct_AR" >&6; }
12078 else
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12080 $as_echo "no" >&6; }
12081 fi
12082
12083
12084 test -n "$ac_ct_AR" && break
12085 done
12086
12087 if test "x$ac_ct_AR" = x; then
12088 AR="false"
12089 else
12090 case $cross_compiling:$ac_tool_warned in
12091 yes:)
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12094 ac_tool_warned=yes ;;
12095 esac
12096 AR=$ac_ct_AR
12097 fi
12098 fi
12099
12100 : ${AR=ar}
12101 : ${AR_FLAGS=cru}
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12114 $as_echo_n "checking for archiver @FILE support... " >&6; }
12115 if ${lt_cv_ar_at_file+:} false; then :
12116 $as_echo_n "(cached) " >&6
12117 else
12118 lt_cv_ar_at_file=no
12119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12120 /* end confdefs.h. */
12121
12122 int
12123 main ()
12124 {
12125
12126 ;
12127 return 0;
12128 }
12129 _ACEOF
12130 if ac_fn_c_try_compile "$LINENO"; then :
12131 echo conftest.$ac_objext > conftest.lst
12132 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12133 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12134 (eval $lt_ar_try) 2>&5
12135 ac_status=$?
12136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12137 test $ac_status = 0; }
12138 if test "$ac_status" -eq 0; then
12139 # Ensure the archiver fails upon bogus file names.
12140 rm -f conftest.$ac_objext libconftest.a
12141 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12142 (eval $lt_ar_try) 2>&5
12143 ac_status=$?
12144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12145 test $ac_status = 0; }
12146 if test "$ac_status" -ne 0; then
12147 lt_cv_ar_at_file=@
12148 fi
12149 fi
12150 rm -f conftest.* libconftest.a
12151
12152 fi
12153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12154
12155 fi
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12157 $as_echo "$lt_cv_ar_at_file" >&6; }
12158
12159 if test "x$lt_cv_ar_at_file" = xno; then
12160 archiver_list_spec=
12161 else
12162 archiver_list_spec=$lt_cv_ar_at_file
12163 fi
12164
12165
12166
12167
12168
12169
12170
12171 if test -n "$ac_tool_prefix"; then
12172 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12173 set dummy ${ac_tool_prefix}strip; ac_word=$2
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12175 $as_echo_n "checking for $ac_word... " >&6; }
12176 if ${ac_cv_prog_STRIP+:} false; then :
12177 $as_echo_n "(cached) " >&6
12178 else
12179 if test -n "$STRIP"; then
12180 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12181 else
12182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12183 for as_dir in $PATH
12184 do
12185 IFS=$as_save_IFS
12186 test -z "$as_dir" && as_dir=.
12187 for ac_exec_ext in '' $ac_executable_extensions; do
12188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12189 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12191 break 2
12192 fi
12193 done
12194 done
12195 IFS=$as_save_IFS
12196
12197 fi
12198 fi
12199 STRIP=$ac_cv_prog_STRIP
12200 if test -n "$STRIP"; then
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12202 $as_echo "$STRIP" >&6; }
12203 else
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12205 $as_echo "no" >&6; }
12206 fi
12207
12208
12209 fi
12210 if test -z "$ac_cv_prog_STRIP"; then
12211 ac_ct_STRIP=$STRIP
12212 # Extract the first word of "strip", so it can be a program name with args.
12213 set dummy strip; ac_word=$2
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12215 $as_echo_n "checking for $ac_word... " >&6; }
12216 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12217 $as_echo_n "(cached) " >&6
12218 else
12219 if test -n "$ac_ct_STRIP"; then
12220 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12221 else
12222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12223 for as_dir in $PATH
12224 do
12225 IFS=$as_save_IFS
12226 test -z "$as_dir" && as_dir=.
12227 for ac_exec_ext in '' $ac_executable_extensions; do
12228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12229 ac_cv_prog_ac_ct_STRIP="strip"
12230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12231 break 2
12232 fi
12233 done
12234 done
12235 IFS=$as_save_IFS
12236
12237 fi
12238 fi
12239 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12240 if test -n "$ac_ct_STRIP"; then
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12242 $as_echo "$ac_ct_STRIP" >&6; }
12243 else
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12245 $as_echo "no" >&6; }
12246 fi
12247
12248 if test "x$ac_ct_STRIP" = x; then
12249 STRIP=":"
12250 else
12251 case $cross_compiling:$ac_tool_warned in
12252 yes:)
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12255 ac_tool_warned=yes ;;
12256 esac
12257 STRIP=$ac_ct_STRIP
12258 fi
12259 else
12260 STRIP="$ac_cv_prog_STRIP"
12261 fi
12262
12263 test -z "$STRIP" && STRIP=:
12264
12265
12266
12267
12268
12269
12270 if test -n "$ac_tool_prefix"; then
12271 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12272 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12274 $as_echo_n "checking for $ac_word... " >&6; }
12275 if ${ac_cv_prog_RANLIB+:} false; then :
12276 $as_echo_n "(cached) " >&6
12277 else
12278 if test -n "$RANLIB"; then
12279 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12280 else
12281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12282 for as_dir in $PATH
12283 do
12284 IFS=$as_save_IFS
12285 test -z "$as_dir" && as_dir=.
12286 for ac_exec_ext in '' $ac_executable_extensions; do
12287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12288 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12290 break 2
12291 fi
12292 done
12293 done
12294 IFS=$as_save_IFS
12295
12296 fi
12297 fi
12298 RANLIB=$ac_cv_prog_RANLIB
12299 if test -n "$RANLIB"; then
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12301 $as_echo "$RANLIB" >&6; }
12302 else
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12304 $as_echo "no" >&6; }
12305 fi
12306
12307
12308 fi
12309 if test -z "$ac_cv_prog_RANLIB"; then
12310 ac_ct_RANLIB=$RANLIB
12311 # Extract the first word of "ranlib", so it can be a program name with args.
12312 set dummy ranlib; ac_word=$2
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12314 $as_echo_n "checking for $ac_word... " >&6; }
12315 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12316 $as_echo_n "(cached) " >&6
12317 else
12318 if test -n "$ac_ct_RANLIB"; then
12319 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12320 else
12321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12322 for as_dir in $PATH
12323 do
12324 IFS=$as_save_IFS
12325 test -z "$as_dir" && as_dir=.
12326 for ac_exec_ext in '' $ac_executable_extensions; do
12327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12328 ac_cv_prog_ac_ct_RANLIB="ranlib"
12329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12330 break 2
12331 fi
12332 done
12333 done
12334 IFS=$as_save_IFS
12335
12336 fi
12337 fi
12338 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12339 if test -n "$ac_ct_RANLIB"; then
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12341 $as_echo "$ac_ct_RANLIB" >&6; }
12342 else
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12344 $as_echo "no" >&6; }
12345 fi
12346
12347 if test "x$ac_ct_RANLIB" = x; then
12348 RANLIB=":"
12349 else
12350 case $cross_compiling:$ac_tool_warned in
12351 yes:)
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12354 ac_tool_warned=yes ;;
12355 esac
12356 RANLIB=$ac_ct_RANLIB
12357 fi
12358 else
12359 RANLIB="$ac_cv_prog_RANLIB"
12360 fi
12361
12362 test -z "$RANLIB" && RANLIB=:
12363
12364
12365
12366
12367
12368
12369 # Determine commands to create old-style static archives.
12370 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12371 old_postinstall_cmds='chmod 644 $oldlib'
12372 old_postuninstall_cmds=
12373
12374 if test -n "$RANLIB"; then
12375 case $host_os in
12376 openbsd*)
12377 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12378 ;;
12379 *)
12380 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12381 ;;
12382 esac
12383 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12384 fi
12385
12386 case $host_os in
12387 darwin*)
12388 lock_old_archive_extraction=yes ;;
12389 *)
12390 lock_old_archive_extraction=no ;;
12391 esac
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431 # If no C compiler was specified, use CC.
12432 LTCC=${LTCC-"$CC"}
12433
12434 # If no C compiler flags were specified, use CFLAGS.
12435 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12436
12437 # Allow CC to be a program name with arguments.
12438 compiler=$CC
12439
12440
12441 # Check for command to grab the raw symbol name followed by C symbol from nm.
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12443 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12444 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12445 $as_echo_n "(cached) " >&6
12446 else
12447
12448 # These are sane defaults that work on at least a few old systems.
12449 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12450
12451 # Character class describing NM global symbol codes.
12452 symcode='[BCDEGRST]'
12453
12454 # Regexp to match symbols that can be accessed directly from C.
12455 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12456
12457 # Define system-specific variables.
12458 case $host_os in
12459 aix*)
12460 symcode='[BCDT]'
12461 ;;
12462 cygwin* | mingw* | pw32* | cegcc*)
12463 symcode='[ABCDGISTW]'
12464 ;;
12465 hpux*)
12466 if test "$host_cpu" = ia64; then
12467 symcode='[ABCDEGRST]'
12468 fi
12469 ;;
12470 irix* | nonstopux*)
12471 symcode='[BCDEGRST]'
12472 ;;
12473 osf*)
12474 symcode='[BCDEGQRST]'
12475 ;;
12476 solaris*)
12477 symcode='[BDRT]'
12478 ;;
12479 sco3.2v5*)
12480 symcode='[DT]'
12481 ;;
12482 sysv4.2uw2*)
12483 symcode='[DT]'
12484 ;;
12485 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12486 symcode='[ABDT]'
12487 ;;
12488 sysv4)
12489 symcode='[DFNSTU]'
12490 ;;
12491 esac
12492
12493 # If we're using GNU nm, then use its standard symbol codes.
12494 case `$NM -V 2>&1` in
12495 *GNU* | *'with BFD'*)
12496 symcode='[ABCDGIRSTW]' ;;
12497 esac
12498
12499 # Transform an extracted symbol line into a proper C declaration.
12500 # Some systems (esp. on ia64) link data and code symbols differently,
12501 # so use this general approach.
12502 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12503
12504 # Transform an extracted symbol line into symbol name and symbol address
12505 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12506 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'"
12507
12508 # Handle CRLF in mingw tool chain
12509 opt_cr=
12510 case $build_os in
12511 mingw*)
12512 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12513 ;;
12514 esac
12515
12516 # Try without a prefix underscore, then with it.
12517 for ac_symprfx in "" "_"; do
12518
12519 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12520 symxfrm="\\1 $ac_symprfx\\2 \\2"
12521
12522 # Write the raw and C identifiers.
12523 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12524 # Fake it for dumpbin and say T for any non-static function
12525 # and D for any global variable.
12526 # Also find C++ and __fastcall symbols from MSVC++,
12527 # which start with @ or ?.
12528 lt_cv_sys_global_symbol_pipe="$AWK '"\
12529 " {last_section=section; section=\$ 3};"\
12530 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12531 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12532 " \$ 0!~/External *\|/{next};"\
12533 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12534 " {if(hide[section]) next};"\
12535 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12536 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12537 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12538 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12539 " ' prfx=^$ac_symprfx"
12540 else
12541 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12542 fi
12543 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12544
12545 # Check to see that the pipe works correctly.
12546 pipe_works=no
12547
12548 rm -f conftest*
12549 cat > conftest.$ac_ext <<_LT_EOF
12550 #ifdef __cplusplus
12551 extern "C" {
12552 #endif
12553 char nm_test_var;
12554 void nm_test_func(void);
12555 void nm_test_func(void){}
12556 #ifdef __cplusplus
12557 }
12558 #endif
12559 int main(){nm_test_var='a';nm_test_func();return(0);}
12560 _LT_EOF
12561
12562 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12563 (eval $ac_compile) 2>&5
12564 ac_status=$?
12565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12566 test $ac_status = 0; }; then
12567 # Now try to grab the symbols.
12568 nlist=conftest.nm
12569 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12570 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12571 ac_status=$?
12572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12573 test $ac_status = 0; } && test -s "$nlist"; then
12574 # Try sorting and uniquifying the output.
12575 if sort "$nlist" | uniq > "$nlist"T; then
12576 mv -f "$nlist"T "$nlist"
12577 else
12578 rm -f "$nlist"T
12579 fi
12580
12581 # Make sure that we snagged all the symbols we need.
12582 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12583 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12584 cat <<_LT_EOF > conftest.$ac_ext
12585 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12586 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12587 /* DATA imports from DLLs on WIN32 con't be const, because runtime
12588 relocations are performed -- see ld's documentation on pseudo-relocs. */
12589 # define LT_DLSYM_CONST
12590 #elif defined(__osf__)
12591 /* This system does not cope well with relocations in const data. */
12592 # define LT_DLSYM_CONST
12593 #else
12594 # define LT_DLSYM_CONST const
12595 #endif
12596
12597 #ifdef __cplusplus
12598 extern "C" {
12599 #endif
12600
12601 _LT_EOF
12602 # Now generate the symbol file.
12603 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12604
12605 cat <<_LT_EOF >> conftest.$ac_ext
12606
12607 /* The mapping between symbol names and symbols. */
12608 LT_DLSYM_CONST struct {
12609 const char *name;
12610 void *address;
12611 }
12612 lt__PROGRAM__LTX_preloaded_symbols[] =
12613 {
12614 { "@PROGRAM@", (void *) 0 },
12615 _LT_EOF
12616 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12617 cat <<\_LT_EOF >> conftest.$ac_ext
12618 {0, (void *) 0}
12619 };
12620
12621 /* This works around a problem in FreeBSD linker */
12622 #ifdef FREEBSD_WORKAROUND
12623 static const void *lt_preloaded_setup() {
12624 return lt__PROGRAM__LTX_preloaded_symbols;
12625 }
12626 #endif
12627
12628 #ifdef __cplusplus
12629 }
12630 #endif
12631 _LT_EOF
12632 # Now try linking the two files.
12633 mv conftest.$ac_objext conftstm.$ac_objext
12634 lt_globsym_save_LIBS=$LIBS
12635 lt_globsym_save_CFLAGS=$CFLAGS
12636 LIBS="conftstm.$ac_objext"
12637 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12639 (eval $ac_link) 2>&5
12640 ac_status=$?
12641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12642 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12643 pipe_works=yes
12644 fi
12645 LIBS=$lt_globsym_save_LIBS
12646 CFLAGS=$lt_globsym_save_CFLAGS
12647 else
12648 echo "cannot find nm_test_func in $nlist" >&5
12649 fi
12650 else
12651 echo "cannot find nm_test_var in $nlist" >&5
12652 fi
12653 else
12654 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12655 fi
12656 else
12657 echo "$progname: failed program was:" >&5
12658 cat conftest.$ac_ext >&5
12659 fi
12660 rm -rf conftest* conftst*
12661
12662 # Do not use the global_symbol_pipe unless it works.
12663 if test "$pipe_works" = yes; then
12664 break
12665 else
12666 lt_cv_sys_global_symbol_pipe=
12667 fi
12668 done
12669
12670 fi
12671
12672 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12673 lt_cv_sys_global_symbol_to_cdecl=
12674 fi
12675 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12677 $as_echo "failed" >&6; }
12678 else
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12680 $as_echo "ok" >&6; }
12681 fi
12682
12683 # Response file support.
12684 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12685 nm_file_list_spec='@'
12686 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12687 nm_file_list_spec='@'
12688 fi
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12717 $as_echo_n "checking for sysroot... " >&6; }
12718
12719 # Check whether --with-sysroot was given.
12720 if test "${with_sysroot+set}" = set; then :
12721 withval=$with_sysroot;
12722 else
12723 with_sysroot=no
12724 fi
12725
12726
12727 lt_sysroot=
12728 case ${with_sysroot} in #(
12729 yes)
12730 if test "$GCC" = yes; then
12731 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12732 fi
12733 ;; #(
12734 /*)
12735 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12736 ;; #(
12737 no|'')
12738 ;; #(
12739 *)
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12741 $as_echo "${with_sysroot}" >&6; }
12742 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12743 ;;
12744 esac
12745
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12747 $as_echo "${lt_sysroot:-no}" >&6; }
12748
12749
12750
12751
12752
12753 # Check whether --enable-libtool-lock was given.
12754 if test "${enable_libtool_lock+set}" = set; then :
12755 enableval=$enable_libtool_lock;
12756 fi
12757
12758 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12759
12760 # Some flags need to be propagated to the compiler or linker for good
12761 # libtool support.
12762 case $host in
12763 ia64-*-hpux*)
12764 # Find out which ABI we are using.
12765 echo 'int i;' > conftest.$ac_ext
12766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12767 (eval $ac_compile) 2>&5
12768 ac_status=$?
12769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12770 test $ac_status = 0; }; then
12771 case `/usr/bin/file conftest.$ac_objext` in
12772 *ELF-32*)
12773 HPUX_IA64_MODE="32"
12774 ;;
12775 *ELF-64*)
12776 HPUX_IA64_MODE="64"
12777 ;;
12778 esac
12779 fi
12780 rm -rf conftest*
12781 ;;
12782 *-*-irix6*)
12783 # Find out which ABI we are using.
12784 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12785 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12786 (eval $ac_compile) 2>&5
12787 ac_status=$?
12788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12789 test $ac_status = 0; }; then
12790 if test "$lt_cv_prog_gnu_ld" = yes; then
12791 case `/usr/bin/file conftest.$ac_objext` in
12792 *32-bit*)
12793 LD="${LD-ld} -melf32bsmip"
12794 ;;
12795 *N32*)
12796 LD="${LD-ld} -melf32bmipn32"
12797 ;;
12798 *64-bit*)
12799 LD="${LD-ld} -melf64bmip"
12800 ;;
12801 esac
12802 else
12803 case `/usr/bin/file conftest.$ac_objext` in
12804 *32-bit*)
12805 LD="${LD-ld} -32"
12806 ;;
12807 *N32*)
12808 LD="${LD-ld} -n32"
12809 ;;
12810 *64-bit*)
12811 LD="${LD-ld} -64"
12812 ;;
12813 esac
12814 fi
12815 fi
12816 rm -rf conftest*
12817 ;;
12818
12819 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12820 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12821 # Find out which ABI we are using.
12822 echo 'int i;' > conftest.$ac_ext
12823 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12824 (eval $ac_compile) 2>&5
12825 ac_status=$?
12826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12827 test $ac_status = 0; }; then
12828 case `/usr/bin/file conftest.o` in
12829 *32-bit*)
12830 case $host in
12831 x86_64-*kfreebsd*-gnu)
12832 LD="${LD-ld} -m elf_i386_fbsd"
12833 ;;
12834 x86_64-*linux*)
12835 LD="${LD-ld} -m elf_i386"
12836 ;;
12837 ppc64-*linux*|powerpc64-*linux*)
12838 LD="${LD-ld} -m elf32ppclinux"
12839 ;;
12840 s390x-*linux*)
12841 LD="${LD-ld} -m elf_s390"
12842 ;;
12843 sparc64-*linux*)
12844 LD="${LD-ld} -m elf32_sparc"
12845 ;;
12846 esac
12847 ;;
12848 *64-bit*)
12849 case $host in
12850 x86_64-*kfreebsd*-gnu)
12851 LD="${LD-ld} -m elf_x86_64_fbsd"
12852 ;;
12853 x86_64-*linux*)
12854 LD="${LD-ld} -m elf_x86_64"
12855 ;;
12856 ppc*-*linux*|powerpc*-*linux*)
12857 LD="${LD-ld} -m elf64ppc"
12858 ;;
12859 s390*-*linux*|s390*-*tpf*)
12860 LD="${LD-ld} -m elf64_s390"
12861 ;;
12862 sparc*-*linux*)
12863 LD="${LD-ld} -m elf64_sparc"
12864 ;;
12865 esac
12866 ;;
12867 esac
12868 fi
12869 rm -rf conftest*
12870 ;;
12871
12872 *-*-sco3.2v5*)
12873 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12874 SAVE_CFLAGS="$CFLAGS"
12875 CFLAGS="$CFLAGS -belf"
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12877 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12878 if ${lt_cv_cc_needs_belf+:} false; then :
12879 $as_echo_n "(cached) " >&6
12880 else
12881 ac_ext=c
12882 ac_cpp='$CPP $CPPFLAGS'
12883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12886
12887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12888 /* end confdefs.h. */
12889
12890 int
12891 main ()
12892 {
12893
12894 ;
12895 return 0;
12896 }
12897 _ACEOF
12898 if ac_fn_c_try_link "$LINENO"; then :
12899 lt_cv_cc_needs_belf=yes
12900 else
12901 lt_cv_cc_needs_belf=no
12902 fi
12903 rm -f core conftest.err conftest.$ac_objext \
12904 conftest$ac_exeext conftest.$ac_ext
12905 ac_ext=c
12906 ac_cpp='$CPP $CPPFLAGS'
12907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12910
12911 fi
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12913 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12914 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12915 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12916 CFLAGS="$SAVE_CFLAGS"
12917 fi
12918 ;;
12919 *-*solaris*)
12920 # Find out which ABI we are using.
12921 echo 'int i;' > conftest.$ac_ext
12922 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12923 (eval $ac_compile) 2>&5
12924 ac_status=$?
12925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12926 test $ac_status = 0; }; then
12927 case `/usr/bin/file conftest.o` in
12928 *64-bit*)
12929 case $lt_cv_prog_gnu_ld in
12930 yes*)
12931 case $host in
12932 i?86-*-solaris*)
12933 LD="${LD-ld} -m elf_x86_64"
12934 ;;
12935 sparc*-*-solaris*)
12936 LD="${LD-ld} -m elf64_sparc"
12937 ;;
12938 esac
12939 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12940 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12941 LD="${LD-ld}_sol2"
12942 fi
12943 ;;
12944 *)
12945 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12946 LD="${LD-ld} -64"
12947 fi
12948 ;;
12949 esac
12950 ;;
12951 esac
12952 fi
12953 rm -rf conftest*
12954 ;;
12955 esac
12956
12957 need_locks="$enable_libtool_lock"
12958
12959 if test -n "$ac_tool_prefix"; then
12960 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12961 set dummy ${ac_tool_prefix}mt; ac_word=$2
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12963 $as_echo_n "checking for $ac_word... " >&6; }
12964 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12965 $as_echo_n "(cached) " >&6
12966 else
12967 if test -n "$MANIFEST_TOOL"; then
12968 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12969 else
12970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12971 for as_dir in $PATH
12972 do
12973 IFS=$as_save_IFS
12974 test -z "$as_dir" && as_dir=.
12975 for ac_exec_ext in '' $ac_executable_extensions; do
12976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12977 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12979 break 2
12980 fi
12981 done
12982 done
12983 IFS=$as_save_IFS
12984
12985 fi
12986 fi
12987 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12988 if test -n "$MANIFEST_TOOL"; then
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12990 $as_echo "$MANIFEST_TOOL" >&6; }
12991 else
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12993 $as_echo "no" >&6; }
12994 fi
12995
12996
12997 fi
12998 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12999 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13000 # Extract the first word of "mt", so it can be a program name with args.
13001 set dummy mt; ac_word=$2
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13003 $as_echo_n "checking for $ac_word... " >&6; }
13004 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13005 $as_echo_n "(cached) " >&6
13006 else
13007 if test -n "$ac_ct_MANIFEST_TOOL"; then
13008 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13009 else
13010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13011 for as_dir in $PATH
13012 do
13013 IFS=$as_save_IFS
13014 test -z "$as_dir" && as_dir=.
13015 for ac_exec_ext in '' $ac_executable_extensions; do
13016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13017 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13019 break 2
13020 fi
13021 done
13022 done
13023 IFS=$as_save_IFS
13024
13025 fi
13026 fi
13027 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13028 if test -n "$ac_ct_MANIFEST_TOOL"; then
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13030 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13031 else
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13033 $as_echo "no" >&6; }
13034 fi
13035
13036 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13037 MANIFEST_TOOL=":"
13038 else
13039 case $cross_compiling:$ac_tool_warned in
13040 yes:)
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13043 ac_tool_warned=yes ;;
13044 esac
13045 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13046 fi
13047 else
13048 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13049 fi
13050
13051 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13053 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13054 if ${lt_cv_path_mainfest_tool+:} false; then :
13055 $as_echo_n "(cached) " >&6
13056 else
13057 lt_cv_path_mainfest_tool=no
13058 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13059 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13060 cat conftest.err >&5
13061 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13062 lt_cv_path_mainfest_tool=yes
13063 fi
13064 rm -f conftest*
13065 fi
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13067 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13068 if test "x$lt_cv_path_mainfest_tool" != xyes; then
13069 MANIFEST_TOOL=:
13070 fi
13071
13072
13073
13074
13075
13076
13077 case $host_os in
13078 rhapsody* | darwin*)
13079 if test -n "$ac_tool_prefix"; then
13080 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13081 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13083 $as_echo_n "checking for $ac_word... " >&6; }
13084 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13085 $as_echo_n "(cached) " >&6
13086 else
13087 if test -n "$DSYMUTIL"; then
13088 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13089 else
13090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13091 for as_dir in $PATH
13092 do
13093 IFS=$as_save_IFS
13094 test -z "$as_dir" && as_dir=.
13095 for ac_exec_ext in '' $ac_executable_extensions; do
13096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13097 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13099 break 2
13100 fi
13101 done
13102 done
13103 IFS=$as_save_IFS
13104
13105 fi
13106 fi
13107 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13108 if test -n "$DSYMUTIL"; then
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13110 $as_echo "$DSYMUTIL" >&6; }
13111 else
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13113 $as_echo "no" >&6; }
13114 fi
13115
13116
13117 fi
13118 if test -z "$ac_cv_prog_DSYMUTIL"; then
13119 ac_ct_DSYMUTIL=$DSYMUTIL
13120 # Extract the first word of "dsymutil", so it can be a program name with args.
13121 set dummy dsymutil; ac_word=$2
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13123 $as_echo_n "checking for $ac_word... " >&6; }
13124 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13125 $as_echo_n "(cached) " >&6
13126 else
13127 if test -n "$ac_ct_DSYMUTIL"; then
13128 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13129 else
13130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13131 for as_dir in $PATH
13132 do
13133 IFS=$as_save_IFS
13134 test -z "$as_dir" && as_dir=.
13135 for ac_exec_ext in '' $ac_executable_extensions; do
13136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13137 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13139 break 2
13140 fi
13141 done
13142 done
13143 IFS=$as_save_IFS
13144
13145 fi
13146 fi
13147 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13148 if test -n "$ac_ct_DSYMUTIL"; then
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13150 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13151 else
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13153 $as_echo "no" >&6; }
13154 fi
13155
13156 if test "x$ac_ct_DSYMUTIL" = x; then
13157 DSYMUTIL=":"
13158 else
13159 case $cross_compiling:$ac_tool_warned in
13160 yes:)
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13163 ac_tool_warned=yes ;;
13164 esac
13165 DSYMUTIL=$ac_ct_DSYMUTIL
13166 fi
13167 else
13168 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13169 fi
13170
13171 if test -n "$ac_tool_prefix"; then
13172 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13173 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13175 $as_echo_n "checking for $ac_word... " >&6; }
13176 if ${ac_cv_prog_NMEDIT+:} false; then :
13177 $as_echo_n "(cached) " >&6
13178 else
13179 if test -n "$NMEDIT"; then
13180 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13181 else
13182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13183 for as_dir in $PATH
13184 do
13185 IFS=$as_save_IFS
13186 test -z "$as_dir" && as_dir=.
13187 for ac_exec_ext in '' $ac_executable_extensions; do
13188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13189 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13191 break 2
13192 fi
13193 done
13194 done
13195 IFS=$as_save_IFS
13196
13197 fi
13198 fi
13199 NMEDIT=$ac_cv_prog_NMEDIT
13200 if test -n "$NMEDIT"; then
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13202 $as_echo "$NMEDIT" >&6; }
13203 else
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13205 $as_echo "no" >&6; }
13206 fi
13207
13208
13209 fi
13210 if test -z "$ac_cv_prog_NMEDIT"; then
13211 ac_ct_NMEDIT=$NMEDIT
13212 # Extract the first word of "nmedit", so it can be a program name with args.
13213 set dummy nmedit; ac_word=$2
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13215 $as_echo_n "checking for $ac_word... " >&6; }
13216 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13217 $as_echo_n "(cached) " >&6
13218 else
13219 if test -n "$ac_ct_NMEDIT"; then
13220 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13221 else
13222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13223 for as_dir in $PATH
13224 do
13225 IFS=$as_save_IFS
13226 test -z "$as_dir" && as_dir=.
13227 for ac_exec_ext in '' $ac_executable_extensions; do
13228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13229 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13231 break 2
13232 fi
13233 done
13234 done
13235 IFS=$as_save_IFS
13236
13237 fi
13238 fi
13239 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13240 if test -n "$ac_ct_NMEDIT"; then
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13242 $as_echo "$ac_ct_NMEDIT" >&6; }
13243 else
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13245 $as_echo "no" >&6; }
13246 fi
13247
13248 if test "x$ac_ct_NMEDIT" = x; then
13249 NMEDIT=":"
13250 else
13251 case $cross_compiling:$ac_tool_warned in
13252 yes:)
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13255 ac_tool_warned=yes ;;
13256 esac
13257 NMEDIT=$ac_ct_NMEDIT
13258 fi
13259 else
13260 NMEDIT="$ac_cv_prog_NMEDIT"
13261 fi
13262
13263 if test -n "$ac_tool_prefix"; then
13264 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13265 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13267 $as_echo_n "checking for $ac_word... " >&6; }
13268 if ${ac_cv_prog_LIPO+:} false; then :
13269 $as_echo_n "(cached) " >&6
13270 else
13271 if test -n "$LIPO"; then
13272 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13273 else
13274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13275 for as_dir in $PATH
13276 do
13277 IFS=$as_save_IFS
13278 test -z "$as_dir" && as_dir=.
13279 for ac_exec_ext in '' $ac_executable_extensions; do
13280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13281 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13283 break 2
13284 fi
13285 done
13286 done
13287 IFS=$as_save_IFS
13288
13289 fi
13290 fi
13291 LIPO=$ac_cv_prog_LIPO
13292 if test -n "$LIPO"; then
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13294 $as_echo "$LIPO" >&6; }
13295 else
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13297 $as_echo "no" >&6; }
13298 fi
13299
13300
13301 fi
13302 if test -z "$ac_cv_prog_LIPO"; then
13303 ac_ct_LIPO=$LIPO
13304 # Extract the first word of "lipo", so it can be a program name with args.
13305 set dummy lipo; ac_word=$2
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13307 $as_echo_n "checking for $ac_word... " >&6; }
13308 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13309 $as_echo_n "(cached) " >&6
13310 else
13311 if test -n "$ac_ct_LIPO"; then
13312 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13313 else
13314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13315 for as_dir in $PATH
13316 do
13317 IFS=$as_save_IFS
13318 test -z "$as_dir" && as_dir=.
13319 for ac_exec_ext in '' $ac_executable_extensions; do
13320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13321 ac_cv_prog_ac_ct_LIPO="lipo"
13322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13323 break 2
13324 fi
13325 done
13326 done
13327 IFS=$as_save_IFS
13328
13329 fi
13330 fi
13331 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13332 if test -n "$ac_ct_LIPO"; then
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13334 $as_echo "$ac_ct_LIPO" >&6; }
13335 else
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13337 $as_echo "no" >&6; }
13338 fi
13339
13340 if test "x$ac_ct_LIPO" = x; then
13341 LIPO=":"
13342 else
13343 case $cross_compiling:$ac_tool_warned in
13344 yes:)
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13347 ac_tool_warned=yes ;;
13348 esac
13349 LIPO=$ac_ct_LIPO
13350 fi
13351 else
13352 LIPO="$ac_cv_prog_LIPO"
13353 fi
13354
13355 if test -n "$ac_tool_prefix"; then
13356 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13357 set dummy ${ac_tool_prefix}otool; ac_word=$2
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13359 $as_echo_n "checking for $ac_word... " >&6; }
13360 if ${ac_cv_prog_OTOOL+:} false; then :
13361 $as_echo_n "(cached) " >&6
13362 else
13363 if test -n "$OTOOL"; then
13364 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13365 else
13366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13367 for as_dir in $PATH
13368 do
13369 IFS=$as_save_IFS
13370 test -z "$as_dir" && as_dir=.
13371 for ac_exec_ext in '' $ac_executable_extensions; do
13372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13373 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13375 break 2
13376 fi
13377 done
13378 done
13379 IFS=$as_save_IFS
13380
13381 fi
13382 fi
13383 OTOOL=$ac_cv_prog_OTOOL
13384 if test -n "$OTOOL"; then
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13386 $as_echo "$OTOOL" >&6; }
13387 else
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13389 $as_echo "no" >&6; }
13390 fi
13391
13392
13393 fi
13394 if test -z "$ac_cv_prog_OTOOL"; then
13395 ac_ct_OTOOL=$OTOOL
13396 # Extract the first word of "otool", so it can be a program name with args.
13397 set dummy otool; ac_word=$2
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13399 $as_echo_n "checking for $ac_word... " >&6; }
13400 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13401 $as_echo_n "(cached) " >&6
13402 else
13403 if test -n "$ac_ct_OTOOL"; then
13404 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13405 else
13406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13407 for as_dir in $PATH
13408 do
13409 IFS=$as_save_IFS
13410 test -z "$as_dir" && as_dir=.
13411 for ac_exec_ext in '' $ac_executable_extensions; do
13412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13413 ac_cv_prog_ac_ct_OTOOL="otool"
13414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13415 break 2
13416 fi
13417 done
13418 done
13419 IFS=$as_save_IFS
13420
13421 fi
13422 fi
13423 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13424 if test -n "$ac_ct_OTOOL"; then
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13426 $as_echo "$ac_ct_OTOOL" >&6; }
13427 else
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13429 $as_echo "no" >&6; }
13430 fi
13431
13432 if test "x$ac_ct_OTOOL" = x; then
13433 OTOOL=":"
13434 else
13435 case $cross_compiling:$ac_tool_warned in
13436 yes:)
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13439 ac_tool_warned=yes ;;
13440 esac
13441 OTOOL=$ac_ct_OTOOL
13442 fi
13443 else
13444 OTOOL="$ac_cv_prog_OTOOL"
13445 fi
13446
13447 if test -n "$ac_tool_prefix"; then
13448 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13449 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13451 $as_echo_n "checking for $ac_word... " >&6; }
13452 if ${ac_cv_prog_OTOOL64+:} false; then :
13453 $as_echo_n "(cached) " >&6
13454 else
13455 if test -n "$OTOOL64"; then
13456 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13457 else
13458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13459 for as_dir in $PATH
13460 do
13461 IFS=$as_save_IFS
13462 test -z "$as_dir" && as_dir=.
13463 for ac_exec_ext in '' $ac_executable_extensions; do
13464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13465 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13467 break 2
13468 fi
13469 done
13470 done
13471 IFS=$as_save_IFS
13472
13473 fi
13474 fi
13475 OTOOL64=$ac_cv_prog_OTOOL64
13476 if test -n "$OTOOL64"; then
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13478 $as_echo "$OTOOL64" >&6; }
13479 else
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13481 $as_echo "no" >&6; }
13482 fi
13483
13484
13485 fi
13486 if test -z "$ac_cv_prog_OTOOL64"; then
13487 ac_ct_OTOOL64=$OTOOL64
13488 # Extract the first word of "otool64", so it can be a program name with args.
13489 set dummy otool64; ac_word=$2
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13491 $as_echo_n "checking for $ac_word... " >&6; }
13492 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13493 $as_echo_n "(cached) " >&6
13494 else
13495 if test -n "$ac_ct_OTOOL64"; then
13496 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13497 else
13498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13499 for as_dir in $PATH
13500 do
13501 IFS=$as_save_IFS
13502 test -z "$as_dir" && as_dir=.
13503 for ac_exec_ext in '' $ac_executable_extensions; do
13504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13505 ac_cv_prog_ac_ct_OTOOL64="otool64"
13506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13507 break 2
13508 fi
13509 done
13510 done
13511 IFS=$as_save_IFS
13512
13513 fi
13514 fi
13515 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13516 if test -n "$ac_ct_OTOOL64"; then
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13518 $as_echo "$ac_ct_OTOOL64" >&6; }
13519 else
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13521 $as_echo "no" >&6; }
13522 fi
13523
13524 if test "x$ac_ct_OTOOL64" = x; then
13525 OTOOL64=":"
13526 else
13527 case $cross_compiling:$ac_tool_warned in
13528 yes:)
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13531 ac_tool_warned=yes ;;
13532 esac
13533 OTOOL64=$ac_ct_OTOOL64
13534 fi
13535 else
13536 OTOOL64="$ac_cv_prog_OTOOL64"
13537 fi
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13566 $as_echo_n "checking for -single_module linker flag... " >&6; }
13567 if ${lt_cv_apple_cc_single_mod+:} false; then :
13568 $as_echo_n "(cached) " >&6
13569 else
13570 lt_cv_apple_cc_single_mod=no
13571 if test -z "${LT_MULTI_MODULE}"; then
13572 # By default we will add the -single_module flag. You can override
13573 # by either setting the environment variable LT_MULTI_MODULE
13574 # non-empty at configure time, or by adding -multi_module to the
13575 # link flags.
13576 rm -rf libconftest.dylib*
13577 echo "int foo(void){return 1;}" > conftest.c
13578 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13579 -dynamiclib -Wl,-single_module conftest.c" >&5
13580 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13581 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13582 _lt_result=$?
13583 # If there is a non-empty error log, and "single_module"
13584 # appears in it, assume the flag caused a linker warning
13585 if test -s conftest.err && $GREP single_module conftest.err; then
13586 cat conftest.err >&5
13587 # Otherwise, if the output was created with a 0 exit code from
13588 # the compiler, it worked.
13589 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13590 lt_cv_apple_cc_single_mod=yes
13591 else
13592 cat conftest.err >&5
13593 fi
13594 rm -rf libconftest.dylib*
13595 rm -f conftest.*
13596 fi
13597 fi
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13599 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13600
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13602 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13603 if ${lt_cv_ld_exported_symbols_list+:} false; then :
13604 $as_echo_n "(cached) " >&6
13605 else
13606 lt_cv_ld_exported_symbols_list=no
13607 save_LDFLAGS=$LDFLAGS
13608 echo "_main" > conftest.sym
13609 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13611 /* end confdefs.h. */
13612
13613 int
13614 main ()
13615 {
13616
13617 ;
13618 return 0;
13619 }
13620 _ACEOF
13621 if ac_fn_c_try_link "$LINENO"; then :
13622 lt_cv_ld_exported_symbols_list=yes
13623 else
13624 lt_cv_ld_exported_symbols_list=no
13625 fi
13626 rm -f core conftest.err conftest.$ac_objext \
13627 conftest$ac_exeext conftest.$ac_ext
13628 LDFLAGS="$save_LDFLAGS"
13629
13630 fi
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13632 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13633
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13635 $as_echo_n "checking for -force_load linker flag... " >&6; }
13636 if ${lt_cv_ld_force_load+:} false; then :
13637 $as_echo_n "(cached) " >&6
13638 else
13639 lt_cv_ld_force_load=no
13640 cat > conftest.c << _LT_EOF
13641 int forced_loaded() { return 2;}
13642 _LT_EOF
13643 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13644 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13645 echo "$AR cru libconftest.a conftest.o" >&5
13646 $AR cru libconftest.a conftest.o 2>&5
13647 echo "$RANLIB libconftest.a" >&5
13648 $RANLIB libconftest.a 2>&5
13649 cat > conftest.c << _LT_EOF
13650 int main() { return 0;}
13651 _LT_EOF
13652 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13653 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13654 _lt_result=$?
13655 if test -s conftest.err && $GREP force_load conftest.err; then
13656 cat conftest.err >&5
13657 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13658 lt_cv_ld_force_load=yes
13659 else
13660 cat conftest.err >&5
13661 fi
13662 rm -f conftest.err libconftest.a conftest conftest.c
13663 rm -rf conftest.dSYM
13664
13665 fi
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13667 $as_echo "$lt_cv_ld_force_load" >&6; }
13668 case $host_os in
13669 rhapsody* | darwin1.[012])
13670 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13671 darwin1.*)
13672 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13673 darwin*) # darwin 5.x on
13674 # if running on 10.5 or later, the deployment target defaults
13675 # to the OS version, if on x86, and 10.4, the deployment
13676 # target defaults to 10.4. Don't you love it?
13677 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13678 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13679 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13680 10.[012]*)
13681 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13682 10.*)
13683 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13684 esac
13685 ;;
13686 esac
13687 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13688 _lt_dar_single_mod='$single_module'
13689 fi
13690 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13691 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13692 else
13693 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13694 fi
13695 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13696 _lt_dsymutil='~$DSYMUTIL $lib || :'
13697 else
13698 _lt_dsymutil=
13699 fi
13700 ;;
13701 esac
13702
13703 for ac_header in dlfcn.h
13704 do :
13705 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13706 "
13707 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13708 cat >>confdefs.h <<_ACEOF
13709 #define HAVE_DLFCN_H 1
13710 _ACEOF
13711
13712 fi
13713
13714 done
13715
13716
13717
13718
13719
13720 # Set options
13721
13722
13723
13724 enable_dlopen=no
13725
13726
13727 enable_win32_dll=no
13728
13729
13730 # Check whether --enable-shared was given.
13731 if test "${enable_shared+set}" = set; then :
13732 enableval=$enable_shared; p=${PACKAGE-default}
13733 case $enableval in
13734 yes) enable_shared=yes ;;
13735 no) enable_shared=no ;;
13736 *)
13737 enable_shared=no
13738 # Look at the argument we got. We use all the common list separators.
13739 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13740 for pkg in $enableval; do
13741 IFS="$lt_save_ifs"
13742 if test "X$pkg" = "X$p"; then
13743 enable_shared=yes
13744 fi
13745 done
13746 IFS="$lt_save_ifs"
13747 ;;
13748 esac
13749 else
13750 enable_shared=yes
13751 fi
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763 # Check whether --with-pic was given.
13764 if test "${with_pic+set}" = set; then :
13765 withval=$with_pic; lt_p=${PACKAGE-default}
13766 case $withval in
13767 yes|no) pic_mode=$withval ;;
13768 *)
13769 pic_mode=default
13770 # Look at the argument we got. We use all the common list separators.
13771 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13772 for lt_pkg in $withval; do
13773 IFS="$lt_save_ifs"
13774 if test "X$lt_pkg" = "X$lt_p"; then
13775 pic_mode=yes
13776 fi
13777 done
13778 IFS="$lt_save_ifs"
13779 ;;
13780 esac
13781 else
13782 pic_mode=default
13783 fi
13784
13785
13786 test -z "$pic_mode" && pic_mode=default
13787
13788
13789
13790
13791
13792
13793
13794 # Check whether --enable-fast-install was given.
13795 if test "${enable_fast_install+set}" = set; then :
13796 enableval=$enable_fast_install; p=${PACKAGE-default}
13797 case $enableval in
13798 yes) enable_fast_install=yes ;;
13799 no) enable_fast_install=no ;;
13800 *)
13801 enable_fast_install=no
13802 # Look at the argument we got. We use all the common list separators.
13803 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13804 for pkg in $enableval; do
13805 IFS="$lt_save_ifs"
13806 if test "X$pkg" = "X$p"; then
13807 enable_fast_install=yes
13808 fi
13809 done
13810 IFS="$lt_save_ifs"
13811 ;;
13812 esac
13813 else
13814 enable_fast_install=yes
13815 fi
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827 # This can be used to rebuild libtool when needed
13828 LIBTOOL_DEPS="$ltmain"
13829
13830 # Always use our own libtool.
13831 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862 test -z "$LN_S" && LN_S="ln -s"
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877 if test -n "${ZSH_VERSION+set}" ; then
13878 setopt NO_GLOB_SUBST
13879 fi
13880
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13882 $as_echo_n "checking for objdir... " >&6; }
13883 if ${lt_cv_objdir+:} false; then :
13884 $as_echo_n "(cached) " >&6
13885 else
13886 rm -f .libs 2>/dev/null
13887 mkdir .libs 2>/dev/null
13888 if test -d .libs; then
13889 lt_cv_objdir=.libs
13890 else
13891 # MS-DOS does not allow filenames that begin with a dot.
13892 lt_cv_objdir=_libs
13893 fi
13894 rmdir .libs 2>/dev/null
13895 fi
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13897 $as_echo "$lt_cv_objdir" >&6; }
13898 objdir=$lt_cv_objdir
13899
13900
13901
13902
13903
13904 cat >>confdefs.h <<_ACEOF
13905 #define LT_OBJDIR "$lt_cv_objdir/"
13906 _ACEOF
13907
13908
13909
13910
13911 case $host_os in
13912 aix3*)
13913 # AIX sometimes has problems with the GCC collect2 program. For some
13914 # reason, if we set the COLLECT_NAMES environment variable, the problems
13915 # vanish in a puff of smoke.
13916 if test "X${COLLECT_NAMES+set}" != Xset; then
13917 COLLECT_NAMES=
13918 export COLLECT_NAMES
13919 fi
13920 ;;
13921 esac
13922
13923 # Global variables:
13924 ofile=libtool
13925 can_build_shared=yes
13926
13927 # All known linkers require a `.a' archive for static linking (except MSVC,
13928 # which needs '.lib').
13929 libext=a
13930
13931 with_gnu_ld="$lt_cv_prog_gnu_ld"
13932
13933 old_CC="$CC"
13934 old_CFLAGS="$CFLAGS"
13935
13936 # Set sane defaults for various variables
13937 test -z "$CC" && CC=cc
13938 test -z "$LTCC" && LTCC=$CC
13939 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13940 test -z "$LD" && LD=ld
13941 test -z "$ac_objext" && ac_objext=o
13942
13943 for cc_temp in $compiler""; do
13944 case $cc_temp in
13945 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13946 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13947 \-*) ;;
13948 *) break;;
13949 esac
13950 done
13951 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13952
13953
13954 # Only perform the check for file, if the check method requires it
13955 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13956 case $deplibs_check_method in
13957 file_magic*)
13958 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13960 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13961 if ${lt_cv_path_MAGIC_CMD+:} false; then :
13962 $as_echo_n "(cached) " >&6
13963 else
13964 case $MAGIC_CMD in
13965 [\\/*] | ?:[\\/]*)
13966 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13967 ;;
13968 *)
13969 lt_save_MAGIC_CMD="$MAGIC_CMD"
13970 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13971 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13972 for ac_dir in $ac_dummy; do
13973 IFS="$lt_save_ifs"
13974 test -z "$ac_dir" && ac_dir=.
13975 if test -f $ac_dir/${ac_tool_prefix}file; then
13976 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13977 if test -n "$file_magic_test_file"; then
13978 case $deplibs_check_method in
13979 "file_magic "*)
13980 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13981 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13982 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13983 $EGREP "$file_magic_regex" > /dev/null; then
13984 :
13985 else
13986 cat <<_LT_EOF 1>&2
13987
13988 *** Warning: the command libtool uses to detect shared libraries,
13989 *** $file_magic_cmd, produces output that libtool cannot recognize.
13990 *** The result is that libtool may fail to recognize shared libraries
13991 *** as such. This will affect the creation of libtool libraries that
13992 *** depend on shared libraries, but programs linked with such libtool
13993 *** libraries will work regardless of this problem. Nevertheless, you
13994 *** may want to report the problem to your system manager and/or to
13995 *** bug-libtool@gnu.org
13996
13997 _LT_EOF
13998 fi ;;
13999 esac
14000 fi
14001 break
14002 fi
14003 done
14004 IFS="$lt_save_ifs"
14005 MAGIC_CMD="$lt_save_MAGIC_CMD"
14006 ;;
14007 esac
14008 fi
14009
14010 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14011 if test -n "$MAGIC_CMD"; then
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14013 $as_echo "$MAGIC_CMD" >&6; }
14014 else
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14016 $as_echo "no" >&6; }
14017 fi
14018
14019
14020
14021
14022
14023 if test -z "$lt_cv_path_MAGIC_CMD"; then
14024 if test -n "$ac_tool_prefix"; then
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14026 $as_echo_n "checking for file... " >&6; }
14027 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14028 $as_echo_n "(cached) " >&6
14029 else
14030 case $MAGIC_CMD in
14031 [\\/*] | ?:[\\/]*)
14032 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14033 ;;
14034 *)
14035 lt_save_MAGIC_CMD="$MAGIC_CMD"
14036 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14037 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14038 for ac_dir in $ac_dummy; do
14039 IFS="$lt_save_ifs"
14040 test -z "$ac_dir" && ac_dir=.
14041 if test -f $ac_dir/file; then
14042 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14043 if test -n "$file_magic_test_file"; then
14044 case $deplibs_check_method in
14045 "file_magic "*)
14046 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14047 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14048 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14049 $EGREP "$file_magic_regex" > /dev/null; then
14050 :
14051 else
14052 cat <<_LT_EOF 1>&2
14053
14054 *** Warning: the command libtool uses to detect shared libraries,
14055 *** $file_magic_cmd, produces output that libtool cannot recognize.
14056 *** The result is that libtool may fail to recognize shared libraries
14057 *** as such. This will affect the creation of libtool libraries that
14058 *** depend on shared libraries, but programs linked with such libtool
14059 *** libraries will work regardless of this problem. Nevertheless, you
14060 *** may want to report the problem to your system manager and/or to
14061 *** bug-libtool@gnu.org
14062
14063 _LT_EOF
14064 fi ;;
14065 esac
14066 fi
14067 break
14068 fi
14069 done
14070 IFS="$lt_save_ifs"
14071 MAGIC_CMD="$lt_save_MAGIC_CMD"
14072 ;;
14073 esac
14074 fi
14075
14076 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14077 if test -n "$MAGIC_CMD"; then
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14079 $as_echo "$MAGIC_CMD" >&6; }
14080 else
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14082 $as_echo "no" >&6; }
14083 fi
14084
14085
14086 else
14087 MAGIC_CMD=:
14088 fi
14089 fi
14090
14091 fi
14092 ;;
14093 esac
14094
14095 # Use C for the default configuration in the libtool script
14096
14097 lt_save_CC="$CC"
14098 ac_ext=c
14099 ac_cpp='$CPP $CPPFLAGS'
14100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14103
14104
14105 # Source file extension for C test sources.
14106 ac_ext=c
14107
14108 # Object file extension for compiled C test sources.
14109 objext=o
14110 objext=$objext
14111
14112 # Code to be used in simple compile tests
14113 lt_simple_compile_test_code="int some_variable = 0;"
14114
14115 # Code to be used in simple link tests
14116 lt_simple_link_test_code='int main(){return(0);}'
14117
14118
14119
14120
14121
14122
14123
14124 # If no C compiler was specified, use CC.
14125 LTCC=${LTCC-"$CC"}
14126
14127 # If no C compiler flags were specified, use CFLAGS.
14128 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14129
14130 # Allow CC to be a program name with arguments.
14131 compiler=$CC
14132
14133 # Save the default compiler, since it gets overwritten when the other
14134 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14135 compiler_DEFAULT=$CC
14136
14137 # save warnings/boilerplate of simple test code
14138 ac_outfile=conftest.$ac_objext
14139 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14140 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14141 _lt_compiler_boilerplate=`cat conftest.err`
14142 $RM conftest*
14143
14144 ac_outfile=conftest.$ac_objext
14145 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14146 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14147 _lt_linker_boilerplate=`cat conftest.err`
14148 $RM -r conftest*
14149
14150
14151 if test -n "$compiler"; then
14152
14153 lt_prog_compiler_no_builtin_flag=
14154
14155 if test "$GCC" = yes; then
14156 case $cc_basename in
14157 nvcc*)
14158 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14159 *)
14160 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14161 esac
14162
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14164 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14165 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14166 $as_echo_n "(cached) " >&6
14167 else
14168 lt_cv_prog_compiler_rtti_exceptions=no
14169 ac_outfile=conftest.$ac_objext
14170 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14171 lt_compiler_flag="-fno-rtti -fno-exceptions"
14172 # Insert the option either (1) after the last *FLAGS variable, or
14173 # (2) before a word containing "conftest.", or (3) at the end.
14174 # Note that $ac_compile itself does not contain backslashes and begins
14175 # with a dollar sign (not a hyphen), so the echo should work correctly.
14176 # The option is referenced via a variable to avoid confusing sed.
14177 lt_compile=`echo "$ac_compile" | $SED \
14178 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14179 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14180 -e 's:$: $lt_compiler_flag:'`
14181 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14182 (eval "$lt_compile" 2>conftest.err)
14183 ac_status=$?
14184 cat conftest.err >&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 if (exit $ac_status) && test -s "$ac_outfile"; then
14187 # The compiler can only warn and ignore the option if not recognized
14188 # So say no if there are warnings other than the usual output.
14189 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14190 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14191 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14192 lt_cv_prog_compiler_rtti_exceptions=yes
14193 fi
14194 fi
14195 $RM conftest*
14196
14197 fi
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14199 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14200
14201 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14202 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14203 else
14204 :
14205 fi
14206
14207 fi
14208
14209
14210
14211
14212
14213
14214 lt_prog_compiler_wl=
14215 lt_prog_compiler_pic=
14216 lt_prog_compiler_static=
14217
14218
14219 if test "$GCC" = yes; then
14220 lt_prog_compiler_wl='-Wl,'
14221 lt_prog_compiler_static='-static'
14222
14223 case $host_os in
14224 aix*)
14225 # All AIX code is PIC.
14226 if test "$host_cpu" = ia64; then
14227 # AIX 5 now supports IA64 processor
14228 lt_prog_compiler_static='-Bstatic'
14229 fi
14230 ;;
14231
14232 amigaos*)
14233 case $host_cpu in
14234 powerpc)
14235 # see comment about AmigaOS4 .so support
14236 lt_prog_compiler_pic='-fPIC'
14237 ;;
14238 m68k)
14239 # FIXME: we need at least 68020 code to build shared libraries, but
14240 # adding the `-m68020' flag to GCC prevents building anything better,
14241 # like `-m68040'.
14242 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14243 ;;
14244 esac
14245 ;;
14246
14247 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14248 # PIC is the default for these OSes.
14249 ;;
14250
14251 mingw* | cygwin* | pw32* | os2* | cegcc*)
14252 # This hack is so that the source file can tell whether it is being
14253 # built for inclusion in a dll (and should export symbols for example).
14254 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14255 # (--disable-auto-import) libraries
14256 lt_prog_compiler_pic='-DDLL_EXPORT'
14257 ;;
14258
14259 darwin* | rhapsody*)
14260 # PIC is the default on this platform
14261 # Common symbols not allowed in MH_DYLIB files
14262 lt_prog_compiler_pic='-fno-common'
14263 ;;
14264
14265 haiku*)
14266 # PIC is the default for Haiku.
14267 # The "-static" flag exists, but is broken.
14268 lt_prog_compiler_static=
14269 ;;
14270
14271 hpux*)
14272 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14273 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14274 # sets the default TLS model and affects inlining.
14275 case $host_cpu in
14276 hppa*64*)
14277 # +Z the default
14278 ;;
14279 *)
14280 lt_prog_compiler_pic='-fPIC'
14281 ;;
14282 esac
14283 ;;
14284
14285 interix[3-9]*)
14286 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14287 # Instead, we relocate shared libraries at runtime.
14288 ;;
14289
14290 msdosdjgpp*)
14291 # Just because we use GCC doesn't mean we suddenly get shared libraries
14292 # on systems that don't support them.
14293 lt_prog_compiler_can_build_shared=no
14294 enable_shared=no
14295 ;;
14296
14297 *nto* | *qnx*)
14298 # QNX uses GNU C++, but need to define -shared option too, otherwise
14299 # it will coredump.
14300 lt_prog_compiler_pic='-fPIC -shared'
14301 ;;
14302
14303 sysv4*MP*)
14304 if test -d /usr/nec; then
14305 lt_prog_compiler_pic=-Kconform_pic
14306 fi
14307 ;;
14308
14309 *)
14310 lt_prog_compiler_pic='-fPIC'
14311 ;;
14312 esac
14313
14314 case $cc_basename in
14315 nvcc*) # Cuda Compiler Driver 2.2
14316 lt_prog_compiler_wl='-Xlinker '
14317 if test -n "$lt_prog_compiler_pic"; then
14318 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14319 fi
14320 ;;
14321 esac
14322 else
14323 # PORTME Check for flag to pass linker flags through the system compiler.
14324 case $host_os in
14325 aix*)
14326 lt_prog_compiler_wl='-Wl,'
14327 if test "$host_cpu" = ia64; then
14328 # AIX 5 now supports IA64 processor
14329 lt_prog_compiler_static='-Bstatic'
14330 else
14331 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14332 fi
14333 ;;
14334
14335 mingw* | cygwin* | pw32* | os2* | cegcc*)
14336 # This hack is so that the source file can tell whether it is being
14337 # built for inclusion in a dll (and should export symbols for example).
14338 lt_prog_compiler_pic='-DDLL_EXPORT'
14339 ;;
14340
14341 hpux9* | hpux10* | hpux11*)
14342 lt_prog_compiler_wl='-Wl,'
14343 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14344 # not for PA HP-UX.
14345 case $host_cpu in
14346 hppa*64*|ia64*)
14347 # +Z the default
14348 ;;
14349 *)
14350 lt_prog_compiler_pic='+Z'
14351 ;;
14352 esac
14353 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14354 lt_prog_compiler_static='${wl}-a ${wl}archive'
14355 ;;
14356
14357 irix5* | irix6* | nonstopux*)
14358 lt_prog_compiler_wl='-Wl,'
14359 # PIC (with -KPIC) is the default.
14360 lt_prog_compiler_static='-non_shared'
14361 ;;
14362
14363 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14364 case $cc_basename in
14365 # old Intel for x86_64 which still supported -KPIC.
14366 ecc*)
14367 lt_prog_compiler_wl='-Wl,'
14368 lt_prog_compiler_pic='-KPIC'
14369 lt_prog_compiler_static='-static'
14370 ;;
14371 # icc used to be incompatible with GCC.
14372 # ICC 10 doesn't accept -KPIC any more.
14373 icc* | ifort*)
14374 lt_prog_compiler_wl='-Wl,'
14375 lt_prog_compiler_pic='-fPIC'
14376 lt_prog_compiler_static='-static'
14377 ;;
14378 # Lahey Fortran 8.1.
14379 lf95*)
14380 lt_prog_compiler_wl='-Wl,'
14381 lt_prog_compiler_pic='--shared'
14382 lt_prog_compiler_static='--static'
14383 ;;
14384 nagfor*)
14385 # NAG Fortran compiler
14386 lt_prog_compiler_wl='-Wl,-Wl,,'
14387 lt_prog_compiler_pic='-PIC'
14388 lt_prog_compiler_static='-Bstatic'
14389 ;;
14390 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14391 # Portland Group compilers (*not* the Pentium gcc compiler,
14392 # which looks to be a dead project)
14393 lt_prog_compiler_wl='-Wl,'
14394 lt_prog_compiler_pic='-fpic'
14395 lt_prog_compiler_static='-Bstatic'
14396 ;;
14397 ccc*)
14398 lt_prog_compiler_wl='-Wl,'
14399 # All Alpha code is PIC.
14400 lt_prog_compiler_static='-non_shared'
14401 ;;
14402 xl* | bgxl* | bgf* | mpixl*)
14403 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14404 lt_prog_compiler_wl='-Wl,'
14405 lt_prog_compiler_pic='-qpic'
14406 lt_prog_compiler_static='-qstaticlink'
14407 ;;
14408 *)
14409 case `$CC -V 2>&1 | sed 5q` in
14410 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14411 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14412 lt_prog_compiler_pic='-KPIC'
14413 lt_prog_compiler_static='-Bstatic'
14414 lt_prog_compiler_wl=''
14415 ;;
14416 *Sun\ F* | *Sun*Fortran*)
14417 lt_prog_compiler_pic='-KPIC'
14418 lt_prog_compiler_static='-Bstatic'
14419 lt_prog_compiler_wl='-Qoption ld '
14420 ;;
14421 *Sun\ C*)
14422 # Sun C 5.9
14423 lt_prog_compiler_pic='-KPIC'
14424 lt_prog_compiler_static='-Bstatic'
14425 lt_prog_compiler_wl='-Wl,'
14426 ;;
14427 *Intel*\ [CF]*Compiler*)
14428 lt_prog_compiler_wl='-Wl,'
14429 lt_prog_compiler_pic='-fPIC'
14430 lt_prog_compiler_static='-static'
14431 ;;
14432 *Portland\ Group*)
14433 lt_prog_compiler_wl='-Wl,'
14434 lt_prog_compiler_pic='-fpic'
14435 lt_prog_compiler_static='-Bstatic'
14436 ;;
14437 esac
14438 ;;
14439 esac
14440 ;;
14441
14442 newsos6)
14443 lt_prog_compiler_pic='-KPIC'
14444 lt_prog_compiler_static='-Bstatic'
14445 ;;
14446
14447 *nto* | *qnx*)
14448 # QNX uses GNU C++, but need to define -shared option too, otherwise
14449 # it will coredump.
14450 lt_prog_compiler_pic='-fPIC -shared'
14451 ;;
14452
14453 osf3* | osf4* | osf5*)
14454 lt_prog_compiler_wl='-Wl,'
14455 # All OSF/1 code is PIC.
14456 lt_prog_compiler_static='-non_shared'
14457 ;;
14458
14459 rdos*)
14460 lt_prog_compiler_static='-non_shared'
14461 ;;
14462
14463 solaris*)
14464 lt_prog_compiler_pic='-KPIC'
14465 lt_prog_compiler_static='-Bstatic'
14466 case $cc_basename in
14467 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14468 lt_prog_compiler_wl='-Qoption ld ';;
14469 *)
14470 lt_prog_compiler_wl='-Wl,';;
14471 esac
14472 ;;
14473
14474 sunos4*)
14475 lt_prog_compiler_wl='-Qoption ld '
14476 lt_prog_compiler_pic='-PIC'
14477 lt_prog_compiler_static='-Bstatic'
14478 ;;
14479
14480 sysv4 | sysv4.2uw2* | sysv4.3*)
14481 lt_prog_compiler_wl='-Wl,'
14482 lt_prog_compiler_pic='-KPIC'
14483 lt_prog_compiler_static='-Bstatic'
14484 ;;
14485
14486 sysv4*MP*)
14487 if test -d /usr/nec ;then
14488 lt_prog_compiler_pic='-Kconform_pic'
14489 lt_prog_compiler_static='-Bstatic'
14490 fi
14491 ;;
14492
14493 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14494 lt_prog_compiler_wl='-Wl,'
14495 lt_prog_compiler_pic='-KPIC'
14496 lt_prog_compiler_static='-Bstatic'
14497 ;;
14498
14499 unicos*)
14500 lt_prog_compiler_wl='-Wl,'
14501 lt_prog_compiler_can_build_shared=no
14502 ;;
14503
14504 uts4*)
14505 lt_prog_compiler_pic='-pic'
14506 lt_prog_compiler_static='-Bstatic'
14507 ;;
14508
14509 *)
14510 lt_prog_compiler_can_build_shared=no
14511 ;;
14512 esac
14513 fi
14514
14515 case $host_os in
14516 # For platforms which do not support PIC, -DPIC is meaningless:
14517 *djgpp*)
14518 lt_prog_compiler_pic=
14519 ;;
14520 *)
14521 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14522 ;;
14523 esac
14524
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14526 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14527 if ${lt_cv_prog_compiler_pic+:} false; then :
14528 $as_echo_n "(cached) " >&6
14529 else
14530 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14531 fi
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14533 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
14534 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14535
14536 #
14537 # Check to make sure the PIC flag actually works.
14538 #
14539 if test -n "$lt_prog_compiler_pic"; then
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14541 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14542 if ${lt_cv_prog_compiler_pic_works+:} false; then :
14543 $as_echo_n "(cached) " >&6
14544 else
14545 lt_cv_prog_compiler_pic_works=no
14546 ac_outfile=conftest.$ac_objext
14547 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14548 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14549 # Insert the option either (1) after the last *FLAGS variable, or
14550 # (2) before a word containing "conftest.", or (3) at the end.
14551 # Note that $ac_compile itself does not contain backslashes and begins
14552 # with a dollar sign (not a hyphen), so the echo should work correctly.
14553 # The option is referenced via a variable to avoid confusing sed.
14554 lt_compile=`echo "$ac_compile" | $SED \
14555 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14556 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14557 -e 's:$: $lt_compiler_flag:'`
14558 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14559 (eval "$lt_compile" 2>conftest.err)
14560 ac_status=$?
14561 cat conftest.err >&5
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 if (exit $ac_status) && test -s "$ac_outfile"; then
14564 # The compiler can only warn and ignore the option if not recognized
14565 # So say no if there are warnings other than the usual output.
14566 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14567 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14568 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14569 lt_cv_prog_compiler_pic_works=yes
14570 fi
14571 fi
14572 $RM conftest*
14573
14574 fi
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14576 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14577
14578 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14579 case $lt_prog_compiler_pic in
14580 "" | " "*) ;;
14581 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14582 esac
14583 else
14584 lt_prog_compiler_pic=
14585 lt_prog_compiler_can_build_shared=no
14586 fi
14587
14588 fi
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600 #
14601 # Check to make sure the static flag actually works.
14602 #
14603 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14605 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14606 if ${lt_cv_prog_compiler_static_works+:} false; then :
14607 $as_echo_n "(cached) " >&6
14608 else
14609 lt_cv_prog_compiler_static_works=no
14610 save_LDFLAGS="$LDFLAGS"
14611 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14612 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14613 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14614 # The linker can only warn and ignore the option if not recognized
14615 # So say no if there are warnings
14616 if test -s conftest.err; then
14617 # Append any errors to the config.log.
14618 cat conftest.err 1>&5
14619 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14620 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14621 if diff conftest.exp conftest.er2 >/dev/null; then
14622 lt_cv_prog_compiler_static_works=yes
14623 fi
14624 else
14625 lt_cv_prog_compiler_static_works=yes
14626 fi
14627 fi
14628 $RM -r conftest*
14629 LDFLAGS="$save_LDFLAGS"
14630
14631 fi
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14633 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14634
14635 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14636 :
14637 else
14638 lt_prog_compiler_static=
14639 fi
14640
14641
14642
14643
14644
14645
14646
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14648 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14649 if ${lt_cv_prog_compiler_c_o+:} false; then :
14650 $as_echo_n "(cached) " >&6
14651 else
14652 lt_cv_prog_compiler_c_o=no
14653 $RM -r conftest 2>/dev/null
14654 mkdir conftest
14655 cd conftest
14656 mkdir out
14657 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14658
14659 lt_compiler_flag="-o out/conftest2.$ac_objext"
14660 # Insert the option either (1) after the last *FLAGS variable, or
14661 # (2) before a word containing "conftest.", or (3) at the end.
14662 # Note that $ac_compile itself does not contain backslashes and begins
14663 # with a dollar sign (not a hyphen), so the echo should work correctly.
14664 lt_compile=`echo "$ac_compile" | $SED \
14665 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14666 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14667 -e 's:$: $lt_compiler_flag:'`
14668 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14669 (eval "$lt_compile" 2>out/conftest.err)
14670 ac_status=$?
14671 cat out/conftest.err >&5
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14674 then
14675 # The compiler can only warn and ignore the option if not recognized
14676 # So say no if there are warnings
14677 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14678 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14679 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14680 lt_cv_prog_compiler_c_o=yes
14681 fi
14682 fi
14683 chmod u+w . 2>&5
14684 $RM conftest*
14685 # SGI C++ compiler will create directory out/ii_files/ for
14686 # template instantiation
14687 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14688 $RM out/* && rmdir out
14689 cd ..
14690 $RM -r conftest
14691 $RM conftest*
14692
14693 fi
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14695 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14696
14697
14698
14699
14700
14701
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14703 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14704 if ${lt_cv_prog_compiler_c_o+:} false; then :
14705 $as_echo_n "(cached) " >&6
14706 else
14707 lt_cv_prog_compiler_c_o=no
14708 $RM -r conftest 2>/dev/null
14709 mkdir conftest
14710 cd conftest
14711 mkdir out
14712 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14713
14714 lt_compiler_flag="-o out/conftest2.$ac_objext"
14715 # Insert the option either (1) after the last *FLAGS variable, or
14716 # (2) before a word containing "conftest.", or (3) at the end.
14717 # Note that $ac_compile itself does not contain backslashes and begins
14718 # with a dollar sign (not a hyphen), so the echo should work correctly.
14719 lt_compile=`echo "$ac_compile" | $SED \
14720 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14721 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14722 -e 's:$: $lt_compiler_flag:'`
14723 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14724 (eval "$lt_compile" 2>out/conftest.err)
14725 ac_status=$?
14726 cat out/conftest.err >&5
14727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14729 then
14730 # The compiler can only warn and ignore the option if not recognized
14731 # So say no if there are warnings
14732 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14733 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14734 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14735 lt_cv_prog_compiler_c_o=yes
14736 fi
14737 fi
14738 chmod u+w . 2>&5
14739 $RM conftest*
14740 # SGI C++ compiler will create directory out/ii_files/ for
14741 # template instantiation
14742 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14743 $RM out/* && rmdir out
14744 cd ..
14745 $RM -r conftest
14746 $RM conftest*
14747
14748 fi
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14750 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14751
14752
14753
14754
14755 hard_links="nottested"
14756 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14757 # do not overwrite the value of need_locks provided by the user
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14759 $as_echo_n "checking if we can lock with hard links... " >&6; }
14760 hard_links=yes
14761 $RM conftest*
14762 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14763 touch conftest.a
14764 ln conftest.a conftest.b 2>&5 || hard_links=no
14765 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14767 $as_echo "$hard_links" >&6; }
14768 if test "$hard_links" = no; then
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14770 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14771 need_locks=warn
14772 fi
14773 else
14774 need_locks=no
14775 fi
14776
14777
14778
14779
14780
14781
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14783 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14784
14785 runpath_var=
14786 allow_undefined_flag=
14787 always_export_symbols=no
14788 archive_cmds=
14789 archive_expsym_cmds=
14790 compiler_needs_object=no
14791 enable_shared_with_static_runtimes=no
14792 export_dynamic_flag_spec=
14793 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14794 hardcode_automatic=no
14795 hardcode_direct=no
14796 hardcode_direct_absolute=no
14797 hardcode_libdir_flag_spec=
14798 hardcode_libdir_separator=
14799 hardcode_minus_L=no
14800 hardcode_shlibpath_var=unsupported
14801 inherit_rpath=no
14802 link_all_deplibs=unknown
14803 module_cmds=
14804 module_expsym_cmds=
14805 old_archive_from_new_cmds=
14806 old_archive_from_expsyms_cmds=
14807 thread_safe_flag_spec=
14808 whole_archive_flag_spec=
14809 # include_expsyms should be a list of space-separated symbols to be *always*
14810 # included in the symbol list
14811 include_expsyms=
14812 # exclude_expsyms can be an extended regexp of symbols to exclude
14813 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14814 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14815 # as well as any symbol that contains `d'.
14816 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14817 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14818 # platforms (ab)use it in PIC code, but their linkers get confused if
14819 # the symbol is explicitly referenced. Since portable code cannot
14820 # rely on this symbol name, it's probably fine to never include it in
14821 # preloaded symbol tables.
14822 # Exclude shared library initialization/finalization symbols.
14823 extract_expsyms_cmds=
14824
14825 case $host_os in
14826 cygwin* | mingw* | pw32* | cegcc*)
14827 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14828 # When not using gcc, we currently assume that we are using
14829 # Microsoft Visual C++.
14830 if test "$GCC" != yes; then
14831 with_gnu_ld=no
14832 fi
14833 ;;
14834 interix*)
14835 # we just hope/assume this is gcc and not c89 (= MSVC++)
14836 with_gnu_ld=yes
14837 ;;
14838 openbsd*)
14839 with_gnu_ld=no
14840 ;;
14841 linux* | k*bsd*-gnu | gnu*)
14842 link_all_deplibs=no
14843 ;;
14844 esac
14845
14846 ld_shlibs=yes
14847
14848 # On some targets, GNU ld is compatible enough with the native linker
14849 # that we're better off using the native interface for both.
14850 lt_use_gnu_ld_interface=no
14851 if test "$with_gnu_ld" = yes; then
14852 case $host_os in
14853 aix*)
14854 # The AIX port of GNU ld has always aspired to compatibility
14855 # with the native linker. However, as the warning in the GNU ld
14856 # block says, versions before 2.19.5* couldn't really create working
14857 # shared libraries, regardless of the interface used.
14858 case `$LD -v 2>&1` in
14859 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14860 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14861 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14862 *)
14863 lt_use_gnu_ld_interface=yes
14864 ;;
14865 esac
14866 ;;
14867 *)
14868 lt_use_gnu_ld_interface=yes
14869 ;;
14870 esac
14871 fi
14872
14873 if test "$lt_use_gnu_ld_interface" = yes; then
14874 # If archive_cmds runs LD, not CC, wlarc should be empty
14875 wlarc='${wl}'
14876
14877 # Set some defaults for GNU ld with shared library support. These
14878 # are reset later if shared libraries are not supported. Putting them
14879 # here allows them to be overridden if necessary.
14880 runpath_var=LD_RUN_PATH
14881 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14882 export_dynamic_flag_spec='${wl}--export-dynamic'
14883 # ancient GNU ld didn't support --whole-archive et. al.
14884 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14885 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14886 else
14887 whole_archive_flag_spec=
14888 fi
14889 supports_anon_versioning=no
14890 case `$LD -v 2>&1` in
14891 *GNU\ gold*) supports_anon_versioning=yes ;;
14892 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14893 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14894 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14895 *\ 2.11.*) ;; # other 2.11 versions
14896 *) supports_anon_versioning=yes ;;
14897 esac
14898
14899 # See if GNU ld supports shared libraries.
14900 case $host_os in
14901 aix[3-9]*)
14902 # On AIX/PPC, the GNU linker is very broken
14903 if test "$host_cpu" != ia64; then
14904 ld_shlibs=no
14905 cat <<_LT_EOF 1>&2
14906
14907 *** Warning: the GNU linker, at least up to release 2.19, is reported
14908 *** to be unable to reliably create shared libraries on AIX.
14909 *** Therefore, libtool is disabling shared libraries support. If you
14910 *** really care for shared libraries, you may want to install binutils
14911 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14912 *** You will then need to restart the configuration process.
14913
14914 _LT_EOF
14915 fi
14916 ;;
14917
14918 amigaos*)
14919 case $host_cpu in
14920 powerpc)
14921 # see comment about AmigaOS4 .so support
14922 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14923 archive_expsym_cmds=''
14924 ;;
14925 m68k)
14926 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)'
14927 hardcode_libdir_flag_spec='-L$libdir'
14928 hardcode_minus_L=yes
14929 ;;
14930 esac
14931 ;;
14932
14933 beos*)
14934 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14935 allow_undefined_flag=unsupported
14936 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
14937 # support --undefined. This deserves some investigation. FIXME
14938 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14939 else
14940 ld_shlibs=no
14941 fi
14942 ;;
14943
14944 cygwin* | mingw* | pw32* | cegcc*)
14945 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14946 # as there is no search path for DLLs.
14947 hardcode_libdir_flag_spec='-L$libdir'
14948 export_dynamic_flag_spec='${wl}--export-all-symbols'
14949 allow_undefined_flag=unsupported
14950 always_export_symbols=no
14951 enable_shared_with_static_runtimes=yes
14952 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'
14953 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14954
14955 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14956 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14957 # If the export-symbols file already is a .def file (1st line
14958 # is EXPORTS), use it as is; otherwise, prepend...
14959 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14960 cp $export_symbols $output_objdir/$soname.def;
14961 else
14962 echo EXPORTS > $output_objdir/$soname.def;
14963 cat $export_symbols >> $output_objdir/$soname.def;
14964 fi~
14965 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14966 else
14967 ld_shlibs=no
14968 fi
14969 ;;
14970
14971 haiku*)
14972 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14973 link_all_deplibs=yes
14974 ;;
14975
14976 interix[3-9]*)
14977 hardcode_direct=no
14978 hardcode_shlibpath_var=no
14979 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14980 export_dynamic_flag_spec='${wl}-E'
14981 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14982 # Instead, shared libraries are loaded at an image base (0x10000000 by
14983 # default) and relocated if they conflict, which is a slow very memory
14984 # consuming and fragmenting process. To avoid this, we pick a random,
14985 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14986 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14987 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14988 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'
14989 ;;
14990
14991 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14992 tmp_diet=no
14993 if test "$host_os" = linux-dietlibc; then
14994 case $cc_basename in
14995 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14996 esac
14997 fi
14998 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14999 && test "$tmp_diet" = no
15000 then
15001 tmp_addflag=' $pic_flag'
15002 tmp_sharedflag='-shared'
15003 case $cc_basename,$host_cpu in
15004 pgcc*) # Portland Group C compiler
15005 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'
15006 tmp_addflag=' $pic_flag'
15007 ;;
15008 pgf77* | pgf90* | pgf95* | pgfortran*)
15009 # Portland Group f77 and f90 compilers
15010 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'
15011 tmp_addflag=' $pic_flag -Mnomain' ;;
15012 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15013 tmp_addflag=' -i_dynamic' ;;
15014 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15015 tmp_addflag=' -i_dynamic -nofor_main' ;;
15016 ifc* | ifort*) # Intel Fortran compiler
15017 tmp_addflag=' -nofor_main' ;;
15018 lf95*) # Lahey Fortran 8.1
15019 whole_archive_flag_spec=
15020 tmp_sharedflag='--shared' ;;
15021 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15022 tmp_sharedflag='-qmkshrobj'
15023 tmp_addflag= ;;
15024 nvcc*) # Cuda Compiler Driver 2.2
15025 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'
15026 compiler_needs_object=yes
15027 ;;
15028 esac
15029 case `$CC -V 2>&1 | sed 5q` in
15030 *Sun\ C*) # Sun C 5.9
15031 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'
15032 compiler_needs_object=yes
15033 tmp_sharedflag='-G' ;;
15034 *Sun\ F*) # Sun Fortran 8.3
15035 tmp_sharedflag='-G' ;;
15036 esac
15037 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15038
15039 if test "x$supports_anon_versioning" = xyes; then
15040 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15041 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15042 echo "local: *; };" >> $output_objdir/$libname.ver~
15043 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15044 fi
15045
15046 case $cc_basename in
15047 xlf* | bgf* | bgxlf* | mpixlf*)
15048 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15049 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15050 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15051 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15052 if test "x$supports_anon_versioning" = xyes; then
15053 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15054 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15055 echo "local: *; };" >> $output_objdir/$libname.ver~
15056 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15057 fi
15058 ;;
15059 esac
15060 else
15061 ld_shlibs=no
15062 fi
15063 ;;
15064
15065 netbsd* | netbsdelf*-gnu)
15066 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15067 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15068 wlarc=
15069 else
15070 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15071 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15072 fi
15073 ;;
15074
15075 solaris*)
15076 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15077 ld_shlibs=no
15078 cat <<_LT_EOF 1>&2
15079
15080 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15081 *** create shared libraries on Solaris systems. Therefore, libtool
15082 *** is disabling shared libraries support. We urge you to upgrade GNU
15083 *** binutils to release 2.9.1 or newer. Another option is to modify
15084 *** your PATH or compiler configuration so that the native linker is
15085 *** used, and then restart.
15086
15087 _LT_EOF
15088 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15089 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15090 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15091 else
15092 ld_shlibs=no
15093 fi
15094 ;;
15095
15096 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15097 case `$LD -v 2>&1` in
15098 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15099 ld_shlibs=no
15100 cat <<_LT_EOF 1>&2
15101
15102 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15103 *** reliably create shared libraries on SCO systems. Therefore, libtool
15104 *** is disabling shared libraries support. We urge you to upgrade GNU
15105 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15106 *** your PATH or compiler configuration so that the native linker is
15107 *** used, and then restart.
15108
15109 _LT_EOF
15110 ;;
15111 *)
15112 # For security reasons, it is highly recommended that you always
15113 # use absolute paths for naming shared libraries, and exclude the
15114 # DT_RUNPATH tag from executables and libraries. But doing so
15115 # requires that you compile everything twice, which is a pain.
15116 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15117 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15118 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15119 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15120 else
15121 ld_shlibs=no
15122 fi
15123 ;;
15124 esac
15125 ;;
15126
15127 sunos4*)
15128 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15129 wlarc=
15130 hardcode_direct=yes
15131 hardcode_shlibpath_var=no
15132 ;;
15133
15134 *)
15135 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15136 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15137 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15138 else
15139 ld_shlibs=no
15140 fi
15141 ;;
15142 esac
15143
15144 if test "$ld_shlibs" = no; then
15145 runpath_var=
15146 hardcode_libdir_flag_spec=
15147 export_dynamic_flag_spec=
15148 whole_archive_flag_spec=
15149 fi
15150 else
15151 # PORTME fill in a description of your system's linker (not GNU ld)
15152 case $host_os in
15153 aix3*)
15154 allow_undefined_flag=unsupported
15155 always_export_symbols=yes
15156 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'
15157 # Note: this linker hardcodes the directories in LIBPATH if there
15158 # are no directories specified by -L.
15159 hardcode_minus_L=yes
15160 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15161 # Neither direct hardcoding nor static linking is supported with a
15162 # broken collect2.
15163 hardcode_direct=unsupported
15164 fi
15165 ;;
15166
15167 aix[4-9]*)
15168 if test "$host_cpu" = ia64; then
15169 # On IA64, the linker does run time linking by default, so we don't
15170 # have to do anything special.
15171 aix_use_runtimelinking=no
15172 exp_sym_flag='-Bexport'
15173 no_entry_flag=""
15174 else
15175 # If we're using GNU nm, then we don't want the "-C" option.
15176 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15177 # Also, AIX nm treats weak defined symbols like other global
15178 # defined symbols, whereas GNU nm marks them as "W".
15179 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15180 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'
15181 else
15182 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'
15183 fi
15184 aix_use_runtimelinking=no
15185
15186 # Test if we are trying to use run time linking or normal
15187 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15188 # need to do runtime linking.
15189 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15190 for ld_flag in $LDFLAGS; do
15191 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15192 aix_use_runtimelinking=yes
15193 break
15194 fi
15195 done
15196 ;;
15197 esac
15198
15199 exp_sym_flag='-bexport'
15200 no_entry_flag='-bnoentry'
15201 fi
15202
15203 # When large executables or shared objects are built, AIX ld can
15204 # have problems creating the table of contents. If linking a library
15205 # or program results in "error TOC overflow" add -mminimal-toc to
15206 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15207 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15208
15209 archive_cmds=''
15210 hardcode_direct=yes
15211 hardcode_direct_absolute=yes
15212 hardcode_libdir_separator=':'
15213 link_all_deplibs=yes
15214 file_list_spec='${wl}-f,'
15215
15216 if test "$GCC" = yes; then
15217 case $host_os in aix4.[012]|aix4.[012].*)
15218 # We only want to do this on AIX 4.2 and lower, the check
15219 # below for broken collect2 doesn't work under 4.3+
15220 collect2name=`${CC} -print-prog-name=collect2`
15221 if test -f "$collect2name" &&
15222 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15223 then
15224 # We have reworked collect2
15225 :
15226 else
15227 # We have old collect2
15228 hardcode_direct=unsupported
15229 # It fails to find uninstalled libraries when the uninstalled
15230 # path is not listed in the libpath. Setting hardcode_minus_L
15231 # to unsupported forces relinking
15232 hardcode_minus_L=yes
15233 hardcode_libdir_flag_spec='-L$libdir'
15234 hardcode_libdir_separator=
15235 fi
15236 ;;
15237 esac
15238 shared_flag='-shared'
15239 if test "$aix_use_runtimelinking" = yes; then
15240 shared_flag="$shared_flag "'${wl}-G'
15241 fi
15242 link_all_deplibs=no
15243 else
15244 # not using gcc
15245 if test "$host_cpu" = ia64; then
15246 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15247 # chokes on -Wl,-G. The following line is correct:
15248 shared_flag='-G'
15249 else
15250 if test "$aix_use_runtimelinking" = yes; then
15251 shared_flag='${wl}-G'
15252 else
15253 shared_flag='${wl}-bM:SRE'
15254 fi
15255 fi
15256 fi
15257
15258 export_dynamic_flag_spec='${wl}-bexpall'
15259 # It seems that -bexpall does not export symbols beginning with
15260 # underscore (_), so it is better to generate a list of symbols to export.
15261 always_export_symbols=yes
15262 if test "$aix_use_runtimelinking" = yes; then
15263 # Warning - without using the other runtime loading flags (-brtl),
15264 # -berok will link without error, but may produce a broken library.
15265 allow_undefined_flag='-berok'
15266 # Determine the default libpath from the value encoded in an
15267 # empty executable.
15268 if test "${lt_cv_aix_libpath+set}" = set; then
15269 aix_libpath=$lt_cv_aix_libpath
15270 else
15271 if ${lt_cv_aix_libpath_+:} false; then :
15272 $as_echo_n "(cached) " >&6
15273 else
15274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15275 /* end confdefs.h. */
15276
15277 int
15278 main ()
15279 {
15280
15281 ;
15282 return 0;
15283 }
15284 _ACEOF
15285 if ac_fn_c_try_link "$LINENO"; then :
15286
15287 lt_aix_libpath_sed='
15288 /Import File Strings/,/^$/ {
15289 /^0/ {
15290 s/^0 *\([^ ]*\) *$/\1/
15291 p
15292 }
15293 }'
15294 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15295 # Check for a 64-bit object if we didn't find anything.
15296 if test -z "$lt_cv_aix_libpath_"; then
15297 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15298 fi
15299 fi
15300 rm -f core conftest.err conftest.$ac_objext \
15301 conftest$ac_exeext conftest.$ac_ext
15302 if test -z "$lt_cv_aix_libpath_"; then
15303 lt_cv_aix_libpath_="/usr/lib:/lib"
15304 fi
15305
15306 fi
15307
15308 aix_libpath=$lt_cv_aix_libpath_
15309 fi
15310
15311 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15312 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"
15313 else
15314 if test "$host_cpu" = ia64; then
15315 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15316 allow_undefined_flag="-z nodefs"
15317 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"
15318 else
15319 # Determine the default libpath from the value encoded in an
15320 # empty executable.
15321 if test "${lt_cv_aix_libpath+set}" = set; then
15322 aix_libpath=$lt_cv_aix_libpath
15323 else
15324 if ${lt_cv_aix_libpath_+:} false; then :
15325 $as_echo_n "(cached) " >&6
15326 else
15327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15328 /* end confdefs.h. */
15329
15330 int
15331 main ()
15332 {
15333
15334 ;
15335 return 0;
15336 }
15337 _ACEOF
15338 if ac_fn_c_try_link "$LINENO"; then :
15339
15340 lt_aix_libpath_sed='
15341 /Import File Strings/,/^$/ {
15342 /^0/ {
15343 s/^0 *\([^ ]*\) *$/\1/
15344 p
15345 }
15346 }'
15347 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15348 # Check for a 64-bit object if we didn't find anything.
15349 if test -z "$lt_cv_aix_libpath_"; then
15350 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15351 fi
15352 fi
15353 rm -f core conftest.err conftest.$ac_objext \
15354 conftest$ac_exeext conftest.$ac_ext
15355 if test -z "$lt_cv_aix_libpath_"; then
15356 lt_cv_aix_libpath_="/usr/lib:/lib"
15357 fi
15358
15359 fi
15360
15361 aix_libpath=$lt_cv_aix_libpath_
15362 fi
15363
15364 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15365 # Warning - without using the other run time loading flags,
15366 # -berok will link without error, but may produce a broken library.
15367 no_undefined_flag=' ${wl}-bernotok'
15368 allow_undefined_flag=' ${wl}-berok'
15369 if test "$with_gnu_ld" = yes; then
15370 # We only use this code for GNU lds that support --whole-archive.
15371 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15372 else
15373 # Exported symbols can be pulled into shared objects from archives
15374 whole_archive_flag_spec='$convenience'
15375 fi
15376 archive_cmds_need_lc=yes
15377 # This is similar to how AIX traditionally builds its shared libraries.
15378 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'
15379 fi
15380 fi
15381 ;;
15382
15383 amigaos*)
15384 case $host_cpu in
15385 powerpc)
15386 # see comment about AmigaOS4 .so support
15387 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15388 archive_expsym_cmds=''
15389 ;;
15390 m68k)
15391 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)'
15392 hardcode_libdir_flag_spec='-L$libdir'
15393 hardcode_minus_L=yes
15394 ;;
15395 esac
15396 ;;
15397
15398 bsdi[45]*)
15399 export_dynamic_flag_spec=-rdynamic
15400 ;;
15401
15402 cygwin* | mingw* | pw32* | cegcc*)
15403 # When not using gcc, we currently assume that we are using
15404 # Microsoft Visual C++.
15405 # hardcode_libdir_flag_spec is actually meaningless, as there is
15406 # no search path for DLLs.
15407 case $cc_basename in
15408 cl*)
15409 # Native MSVC
15410 hardcode_libdir_flag_spec=' '
15411 allow_undefined_flag=unsupported
15412 always_export_symbols=yes
15413 file_list_spec='@'
15414 # Tell ltmain to make .lib files, not .a files.
15415 libext=lib
15416 # Tell ltmain to make .dll files, not .so files.
15417 shrext_cmds=".dll"
15418 # FIXME: Setting linknames here is a bad hack.
15419 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15420 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15421 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15422 else
15423 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15424 fi~
15425 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15426 linknames='
15427 # The linker will not automatically build a static lib if we build a DLL.
15428 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15429 enable_shared_with_static_runtimes=yes
15430 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15431 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15432 # Don't use ranlib
15433 old_postinstall_cmds='chmod 644 $oldlib'
15434 postlink_cmds='lt_outputfile="@OUTPUT@"~
15435 lt_tool_outputfile="@TOOL_OUTPUT@"~
15436 case $lt_outputfile in
15437 *.exe|*.EXE) ;;
15438 *)
15439 lt_outputfile="$lt_outputfile.exe"
15440 lt_tool_outputfile="$lt_tool_outputfile.exe"
15441 ;;
15442 esac~
15443 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15444 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15445 $RM "$lt_outputfile.manifest";
15446 fi'
15447 ;;
15448 *)
15449 # Assume MSVC wrapper
15450 hardcode_libdir_flag_spec=' '
15451 allow_undefined_flag=unsupported
15452 # Tell ltmain to make .lib files, not .a files.
15453 libext=lib
15454 # Tell ltmain to make .dll files, not .so files.
15455 shrext_cmds=".dll"
15456 # FIXME: Setting linknames here is a bad hack.
15457 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15458 # The linker will automatically build a .lib file if we build a DLL.
15459 old_archive_from_new_cmds='true'
15460 # FIXME: Should let the user specify the lib program.
15461 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15462 enable_shared_with_static_runtimes=yes
15463 ;;
15464 esac
15465 ;;
15466
15467 darwin* | rhapsody*)
15468
15469
15470 archive_cmds_need_lc=no
15471 hardcode_direct=no
15472 hardcode_automatic=yes
15473 hardcode_shlibpath_var=unsupported
15474 if test "$lt_cv_ld_force_load" = "yes"; then
15475 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\"`'
15476
15477 else
15478 whole_archive_flag_spec=''
15479 fi
15480 link_all_deplibs=yes
15481 allow_undefined_flag="$_lt_dar_allow_undefined"
15482 case $cc_basename in
15483 ifort*) _lt_dar_can_shared=yes ;;
15484 *) _lt_dar_can_shared=$GCC ;;
15485 esac
15486 if test "$_lt_dar_can_shared" = "yes"; then
15487 output_verbose_link_cmd=func_echo_all
15488 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15489 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15490 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}"
15491 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}"
15492
15493 else
15494 ld_shlibs=no
15495 fi
15496
15497 ;;
15498
15499 dgux*)
15500 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15501 hardcode_libdir_flag_spec='-L$libdir'
15502 hardcode_shlibpath_var=no
15503 ;;
15504
15505 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15506 # support. Future versions do this automatically, but an explicit c++rt0.o
15507 # does not break anything, and helps significantly (at the cost of a little
15508 # extra space).
15509 freebsd2.2*)
15510 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15511 hardcode_libdir_flag_spec='-R$libdir'
15512 hardcode_direct=yes
15513 hardcode_shlibpath_var=no
15514 ;;
15515
15516 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15517 freebsd2.*)
15518 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15519 hardcode_direct=yes
15520 hardcode_minus_L=yes
15521 hardcode_shlibpath_var=no
15522 ;;
15523
15524 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15525 freebsd* | dragonfly*)
15526 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15527 hardcode_libdir_flag_spec='-R$libdir'
15528 hardcode_direct=yes
15529 hardcode_shlibpath_var=no
15530 ;;
15531
15532 hpux9*)
15533 if test "$GCC" = yes; then
15534 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'
15535 else
15536 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'
15537 fi
15538 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15539 hardcode_libdir_separator=:
15540 hardcode_direct=yes
15541
15542 # hardcode_minus_L: Not really in the search PATH,
15543 # but as the default location of the library.
15544 hardcode_minus_L=yes
15545 export_dynamic_flag_spec='${wl}-E'
15546 ;;
15547
15548 hpux10*)
15549 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15550 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15551 else
15552 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15553 fi
15554 if test "$with_gnu_ld" = no; then
15555 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15556 hardcode_libdir_separator=:
15557 hardcode_direct=yes
15558 hardcode_direct_absolute=yes
15559 export_dynamic_flag_spec='${wl}-E'
15560 # hardcode_minus_L: Not really in the search PATH,
15561 # but as the default location of the library.
15562 hardcode_minus_L=yes
15563 fi
15564 ;;
15565
15566 hpux11*)
15567 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15568 case $host_cpu in
15569 hppa*64*)
15570 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15571 ;;
15572 ia64*)
15573 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15574 ;;
15575 *)
15576 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15577 ;;
15578 esac
15579 else
15580 case $host_cpu in
15581 hppa*64*)
15582 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15583 ;;
15584 ia64*)
15585 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15586 ;;
15587 *)
15588
15589 # Older versions of the 11.00 compiler do not understand -b yet
15590 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15592 $as_echo_n "checking if $CC understands -b... " >&6; }
15593 if ${lt_cv_prog_compiler__b+:} false; then :
15594 $as_echo_n "(cached) " >&6
15595 else
15596 lt_cv_prog_compiler__b=no
15597 save_LDFLAGS="$LDFLAGS"
15598 LDFLAGS="$LDFLAGS -b"
15599 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15600 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15601 # The linker can only warn and ignore the option if not recognized
15602 # So say no if there are warnings
15603 if test -s conftest.err; then
15604 # Append any errors to the config.log.
15605 cat conftest.err 1>&5
15606 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15607 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15608 if diff conftest.exp conftest.er2 >/dev/null; then
15609 lt_cv_prog_compiler__b=yes
15610 fi
15611 else
15612 lt_cv_prog_compiler__b=yes
15613 fi
15614 fi
15615 $RM -r conftest*
15616 LDFLAGS="$save_LDFLAGS"
15617
15618 fi
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15620 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15621
15622 if test x"$lt_cv_prog_compiler__b" = xyes; then
15623 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15624 else
15625 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15626 fi
15627
15628 ;;
15629 esac
15630 fi
15631 if test "$with_gnu_ld" = no; then
15632 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15633 hardcode_libdir_separator=:
15634
15635 case $host_cpu in
15636 hppa*64*|ia64*)
15637 hardcode_direct=no
15638 hardcode_shlibpath_var=no
15639 ;;
15640 *)
15641 hardcode_direct=yes
15642 hardcode_direct_absolute=yes
15643 export_dynamic_flag_spec='${wl}-E'
15644
15645 # hardcode_minus_L: Not really in the search PATH,
15646 # but as the default location of the library.
15647 hardcode_minus_L=yes
15648 ;;
15649 esac
15650 fi
15651 ;;
15652
15653 irix5* | irix6* | nonstopux*)
15654 if test "$GCC" = yes; then
15655 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'
15656 # Try to use the -exported_symbol ld option, if it does not
15657 # work, assume that -exports_file does not work either and
15658 # implicitly export all symbols.
15659 # This should be the same for all languages, so no per-tag cache variable.
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15661 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15662 if ${lt_cv_irix_exported_symbol+:} false; then :
15663 $as_echo_n "(cached) " >&6
15664 else
15665 save_LDFLAGS="$LDFLAGS"
15666 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15668 /* end confdefs.h. */
15669 int foo (void) { return 0; }
15670 _ACEOF
15671 if ac_fn_c_try_link "$LINENO"; then :
15672 lt_cv_irix_exported_symbol=yes
15673 else
15674 lt_cv_irix_exported_symbol=no
15675 fi
15676 rm -f core conftest.err conftest.$ac_objext \
15677 conftest$ac_exeext conftest.$ac_ext
15678 LDFLAGS="$save_LDFLAGS"
15679 fi
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15681 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
15682 if test "$lt_cv_irix_exported_symbol" = yes; then
15683 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'
15684 fi
15685 else
15686 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'
15687 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'
15688 fi
15689 archive_cmds_need_lc='no'
15690 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15691 hardcode_libdir_separator=:
15692 inherit_rpath=yes
15693 link_all_deplibs=yes
15694 ;;
15695
15696 netbsd* | netbsdelf*-gnu)
15697 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15698 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15699 else
15700 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15701 fi
15702 hardcode_libdir_flag_spec='-R$libdir'
15703 hardcode_direct=yes
15704 hardcode_shlibpath_var=no
15705 ;;
15706
15707 newsos6)
15708 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15709 hardcode_direct=yes
15710 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15711 hardcode_libdir_separator=:
15712 hardcode_shlibpath_var=no
15713 ;;
15714
15715 *nto* | *qnx*)
15716 ;;
15717
15718 openbsd*)
15719 if test -f /usr/libexec/ld.so; then
15720 hardcode_direct=yes
15721 hardcode_shlibpath_var=no
15722 hardcode_direct_absolute=yes
15723 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15724 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15725 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15726 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15727 export_dynamic_flag_spec='${wl}-E'
15728 else
15729 case $host_os in
15730 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15731 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15732 hardcode_libdir_flag_spec='-R$libdir'
15733 ;;
15734 *)
15735 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15736 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15737 ;;
15738 esac
15739 fi
15740 else
15741 ld_shlibs=no
15742 fi
15743 ;;
15744
15745 os2*)
15746 hardcode_libdir_flag_spec='-L$libdir'
15747 hardcode_minus_L=yes
15748 allow_undefined_flag=unsupported
15749 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'
15750 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15751 ;;
15752
15753 osf3*)
15754 if test "$GCC" = yes; then
15755 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15756 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'
15757 else
15758 allow_undefined_flag=' -expect_unresolved \*'
15759 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'
15760 fi
15761 archive_cmds_need_lc='no'
15762 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15763 hardcode_libdir_separator=:
15764 ;;
15765
15766 osf4* | osf5*) # as osf3* with the addition of -msym flag
15767 if test "$GCC" = yes; then
15768 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15769 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'
15770 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15771 else
15772 allow_undefined_flag=' -expect_unresolved \*'
15773 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'
15774 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~
15775 $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'
15776
15777 # Both c and cxx compiler support -rpath directly
15778 hardcode_libdir_flag_spec='-rpath $libdir'
15779 fi
15780 archive_cmds_need_lc='no'
15781 hardcode_libdir_separator=:
15782 ;;
15783
15784 solaris*)
15785 no_undefined_flag=' -z defs'
15786 if test "$GCC" = yes; then
15787 wlarc='${wl}'
15788 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15789 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15790 $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'
15791 else
15792 case `$CC -V 2>&1` in
15793 *"Compilers 5.0"*)
15794 wlarc=''
15795 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15796 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15797 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15798 ;;
15799 *)
15800 wlarc='${wl}'
15801 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15802 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15803 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15804 ;;
15805 esac
15806 fi
15807 hardcode_libdir_flag_spec='-R$libdir'
15808 hardcode_shlibpath_var=no
15809 case $host_os in
15810 solaris2.[0-5] | solaris2.[0-5].*) ;;
15811 *)
15812 # The compiler driver will combine and reorder linker options,
15813 # but understands `-z linker_flag'. GCC discards it without `$wl',
15814 # but is careful enough not to reorder.
15815 # Supported since Solaris 2.6 (maybe 2.5.1?)
15816 if test "$GCC" = yes; then
15817 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15818 else
15819 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15820 fi
15821 ;;
15822 esac
15823 link_all_deplibs=yes
15824 ;;
15825
15826 sunos4*)
15827 if test "x$host_vendor" = xsequent; then
15828 # Use $CC to link under sequent, because it throws in some extra .o
15829 # files that make .init and .fini sections work.
15830 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15831 else
15832 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15833 fi
15834 hardcode_libdir_flag_spec='-L$libdir'
15835 hardcode_direct=yes
15836 hardcode_minus_L=yes
15837 hardcode_shlibpath_var=no
15838 ;;
15839
15840 sysv4)
15841 case $host_vendor in
15842 sni)
15843 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15844 hardcode_direct=yes # is this really true???
15845 ;;
15846 siemens)
15847 ## LD is ld it makes a PLAMLIB
15848 ## CC just makes a GrossModule.
15849 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15850 reload_cmds='$CC -r -o $output$reload_objs'
15851 hardcode_direct=no
15852 ;;
15853 motorola)
15854 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15855 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15856 ;;
15857 esac
15858 runpath_var='LD_RUN_PATH'
15859 hardcode_shlibpath_var=no
15860 ;;
15861
15862 sysv4.3*)
15863 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15864 hardcode_shlibpath_var=no
15865 export_dynamic_flag_spec='-Bexport'
15866 ;;
15867
15868 sysv4*MP*)
15869 if test -d /usr/nec; then
15870 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15871 hardcode_shlibpath_var=no
15872 runpath_var=LD_RUN_PATH
15873 hardcode_runpath_var=yes
15874 ld_shlibs=yes
15875 fi
15876 ;;
15877
15878 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15879 no_undefined_flag='${wl}-z,text'
15880 archive_cmds_need_lc=no
15881 hardcode_shlibpath_var=no
15882 runpath_var='LD_RUN_PATH'
15883
15884 if test "$GCC" = yes; then
15885 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15886 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15887 else
15888 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15889 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15890 fi
15891 ;;
15892
15893 sysv5* | sco3.2v5* | sco5v6*)
15894 # Note: We can NOT use -z defs as we might desire, because we do not
15895 # link with -lc, and that would cause any symbols used from libc to
15896 # always be unresolved, which means just about no library would
15897 # ever link correctly. If we're not using GNU ld we use -z text
15898 # though, which does catch some bad symbols but isn't as heavy-handed
15899 # as -z defs.
15900 no_undefined_flag='${wl}-z,text'
15901 allow_undefined_flag='${wl}-z,nodefs'
15902 archive_cmds_need_lc=no
15903 hardcode_shlibpath_var=no
15904 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15905 hardcode_libdir_separator=':'
15906 link_all_deplibs=yes
15907 export_dynamic_flag_spec='${wl}-Bexport'
15908 runpath_var='LD_RUN_PATH'
15909
15910 if test "$GCC" = yes; then
15911 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15912 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15913 else
15914 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15915 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15916 fi
15917 ;;
15918
15919 uts4*)
15920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15921 hardcode_libdir_flag_spec='-L$libdir'
15922 hardcode_shlibpath_var=no
15923 ;;
15924
15925 *)
15926 ld_shlibs=no
15927 ;;
15928 esac
15929
15930 if test x$host_vendor = xsni; then
15931 case $host in
15932 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15933 export_dynamic_flag_spec='${wl}-Blargedynsym'
15934 ;;
15935 esac
15936 fi
15937 fi
15938
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15940 $as_echo "$ld_shlibs" >&6; }
15941 test "$ld_shlibs" = no && can_build_shared=no
15942
15943 with_gnu_ld=$with_gnu_ld
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959 #
15960 # Do we need to explicitly link libc?
15961 #
15962 case "x$archive_cmds_need_lc" in
15963 x|xyes)
15964 # Assume -lc should be added
15965 archive_cmds_need_lc=yes
15966
15967 if test "$enable_shared" = yes && test "$GCC" = yes; then
15968 case $archive_cmds in
15969 *'~'*)
15970 # FIXME: we may have to deal with multi-command sequences.
15971 ;;
15972 '$CC '*)
15973 # Test whether the compiler implicitly links with -lc since on some
15974 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15975 # to ld, don't add -lc before -lgcc.
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15977 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15978 if ${lt_cv_archive_cmds_need_lc+:} false; then :
15979 $as_echo_n "(cached) " >&6
15980 else
15981 $RM conftest*
15982 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15983
15984 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15985 (eval $ac_compile) 2>&5
15986 ac_status=$?
15987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15988 test $ac_status = 0; } 2>conftest.err; then
15989 soname=conftest
15990 lib=conftest
15991 libobjs=conftest.$ac_objext
15992 deplibs=
15993 wl=$lt_prog_compiler_wl
15994 pic_flag=$lt_prog_compiler_pic
15995 compiler_flags=-v
15996 linker_flags=-v
15997 verstring=
15998 output_objdir=.
15999 libname=conftest
16000 lt_save_allow_undefined_flag=$allow_undefined_flag
16001 allow_undefined_flag=
16002 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16003 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16004 ac_status=$?
16005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16006 test $ac_status = 0; }
16007 then
16008 lt_cv_archive_cmds_need_lc=no
16009 else
16010 lt_cv_archive_cmds_need_lc=yes
16011 fi
16012 allow_undefined_flag=$lt_save_allow_undefined_flag
16013 else
16014 cat conftest.err 1>&5
16015 fi
16016 $RM conftest*
16017
16018 fi
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16020 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16021 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16022 ;;
16023 esac
16024 fi
16025 ;;
16026 esac
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16180 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16181
16182 if test "$GCC" = yes; then
16183 case $host_os in
16184 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16185 *) lt_awk_arg="/^libraries:/" ;;
16186 esac
16187 case $host_os in
16188 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16189 *) lt_sed_strip_eq="s,=/,/,g" ;;
16190 esac
16191 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16192 case $lt_search_path_spec in
16193 *\;*)
16194 # if the path contains ";" then we assume it to be the separator
16195 # otherwise default to the standard path separator (i.e. ":") - it is
16196 # assumed that no part of a normal pathname contains ";" but that should
16197 # okay in the real world where ";" in dirpaths is itself problematic.
16198 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16199 ;;
16200 *)
16201 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16202 ;;
16203 esac
16204 # Ok, now we have the path, separated by spaces, we can step through it
16205 # and add multilib dir if necessary.
16206 lt_tmp_lt_search_path_spec=
16207 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16208 for lt_sys_path in $lt_search_path_spec; do
16209 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16210 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16211 else
16212 test -d "$lt_sys_path" && \
16213 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16214 fi
16215 done
16216 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16217 BEGIN {RS=" "; FS="/|\n";} {
16218 lt_foo="";
16219 lt_count=0;
16220 for (lt_i = NF; lt_i > 0; lt_i--) {
16221 if ($lt_i != "" && $lt_i != ".") {
16222 if ($lt_i == "..") {
16223 lt_count++;
16224 } else {
16225 if (lt_count == 0) {
16226 lt_foo="/" $lt_i lt_foo;
16227 } else {
16228 lt_count--;
16229 }
16230 }
16231 }
16232 }
16233 if (lt_foo != "") { lt_freq[lt_foo]++; }
16234 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16235 }'`
16236 # AWK program above erroneously prepends '/' to C:/dos/paths
16237 # for these hosts.
16238 case $host_os in
16239 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16240 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16241 esac
16242 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16243 else
16244 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16245 fi
16246 library_names_spec=
16247 libname_spec='lib$name'
16248 soname_spec=
16249 shrext_cmds=".so"
16250 postinstall_cmds=
16251 postuninstall_cmds=
16252 finish_cmds=
16253 finish_eval=
16254 shlibpath_var=
16255 shlibpath_overrides_runpath=unknown
16256 version_type=none
16257 dynamic_linker="$host_os ld.so"
16258 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16259 need_lib_prefix=unknown
16260 hardcode_into_libs=no
16261
16262 # when you set need_version to no, make sure it does not cause -set_version
16263 # flags to be left without arguments
16264 need_version=unknown
16265
16266 case $host_os in
16267 aix3*)
16268 version_type=linux # correct to gnu/linux during the next big refactor
16269 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16270 shlibpath_var=LIBPATH
16271
16272 # AIX 3 has no versioning support, so we append a major version to the name.
16273 soname_spec='${libname}${release}${shared_ext}$major'
16274 ;;
16275
16276 aix[4-9]*)
16277 version_type=linux # correct to gnu/linux during the next big refactor
16278 need_lib_prefix=no
16279 need_version=no
16280 hardcode_into_libs=yes
16281 if test "$host_cpu" = ia64; then
16282 # AIX 5 supports IA64
16283 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16284 shlibpath_var=LD_LIBRARY_PATH
16285 else
16286 # With GCC up to 2.95.x, collect2 would create an import file
16287 # for dependence libraries. The import file would start with
16288 # the line `#! .'. This would cause the generated library to
16289 # depend on `.', always an invalid library. This was fixed in
16290 # development snapshots of GCC prior to 3.0.
16291 case $host_os in
16292 aix4 | aix4.[01] | aix4.[01].*)
16293 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16294 echo ' yes '
16295 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16296 :
16297 else
16298 can_build_shared=no
16299 fi
16300 ;;
16301 esac
16302 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16303 # soname into executable. Probably we can add versioning support to
16304 # collect2, so additional links can be useful in future.
16305 if test "$aix_use_runtimelinking" = yes; then
16306 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16307 # instead of lib<name>.a to let people know that these are not
16308 # typical AIX shared libraries.
16309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16310 else
16311 # We preserve .a as extension for shared libraries through AIX4.2
16312 # and later when we are not doing run time linking.
16313 library_names_spec='${libname}${release}.a $libname.a'
16314 soname_spec='${libname}${release}${shared_ext}$major'
16315 fi
16316 shlibpath_var=LIBPATH
16317 fi
16318 ;;
16319
16320 amigaos*)
16321 case $host_cpu in
16322 powerpc)
16323 # Since July 2007 AmigaOS4 officially supports .so libraries.
16324 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16326 ;;
16327 m68k)
16328 library_names_spec='$libname.ixlibrary $libname.a'
16329 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16330 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'
16331 ;;
16332 esac
16333 ;;
16334
16335 beos*)
16336 library_names_spec='${libname}${shared_ext}'
16337 dynamic_linker="$host_os ld.so"
16338 shlibpath_var=LIBRARY_PATH
16339 ;;
16340
16341 bsdi[45]*)
16342 version_type=linux # correct to gnu/linux during the next big refactor
16343 need_version=no
16344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16345 soname_spec='${libname}${release}${shared_ext}$major'
16346 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16347 shlibpath_var=LD_LIBRARY_PATH
16348 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16349 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16350 # the default ld.so.conf also contains /usr/contrib/lib and
16351 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16352 # libtool to hard-code these into programs
16353 ;;
16354
16355 cygwin* | mingw* | pw32* | cegcc*)
16356 version_type=windows
16357 shrext_cmds=".dll"
16358 need_version=no
16359 need_lib_prefix=no
16360
16361 case $GCC,$cc_basename in
16362 yes,*)
16363 # gcc
16364 library_names_spec='$libname.dll.a'
16365 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16366 postinstall_cmds='base_file=`basename \${file}`~
16367 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16368 dldir=$destdir/`dirname \$dlpath`~
16369 test -d \$dldir || mkdir -p \$dldir~
16370 $install_prog $dir/$dlname \$dldir/$dlname~
16371 chmod a+x \$dldir/$dlname~
16372 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16373 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16374 fi'
16375 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16376 dlpath=$dir/\$dldll~
16377 $RM \$dlpath'
16378 shlibpath_overrides_runpath=yes
16379
16380 case $host_os in
16381 cygwin*)
16382 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16383 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16384
16385 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16386 ;;
16387 mingw* | cegcc*)
16388 # MinGW DLLs use traditional 'lib' prefix
16389 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16390 ;;
16391 pw32*)
16392 # pw32 DLLs use 'pw' prefix rather than 'lib'
16393 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16394 ;;
16395 esac
16396 dynamic_linker='Win32 ld.exe'
16397 ;;
16398
16399 *,cl*)
16400 # Native MSVC
16401 libname_spec='$name'
16402 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16403 library_names_spec='${libname}.dll.lib'
16404
16405 case $build_os in
16406 mingw*)
16407 sys_lib_search_path_spec=
16408 lt_save_ifs=$IFS
16409 IFS=';'
16410 for lt_path in $LIB
16411 do
16412 IFS=$lt_save_ifs
16413 # Let DOS variable expansion print the short 8.3 style file name.
16414 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16415 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16416 done
16417 IFS=$lt_save_ifs
16418 # Convert to MSYS style.
16419 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16420 ;;
16421 cygwin*)
16422 # Convert to unix form, then to dos form, then back to unix form
16423 # but this time dos style (no spaces!) so that the unix form looks
16424 # like /cygdrive/c/PROGRA~1:/cygdr...
16425 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16426 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16427 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16428 ;;
16429 *)
16430 sys_lib_search_path_spec="$LIB"
16431 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16432 # It is most probably a Windows format PATH.
16433 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16434 else
16435 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16436 fi
16437 # FIXME: find the short name or the path components, as spaces are
16438 # common. (e.g. "Program Files" -> "PROGRA~1")
16439 ;;
16440 esac
16441
16442 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16443 postinstall_cmds='base_file=`basename \${file}`~
16444 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16445 dldir=$destdir/`dirname \$dlpath`~
16446 test -d \$dldir || mkdir -p \$dldir~
16447 $install_prog $dir/$dlname \$dldir/$dlname'
16448 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16449 dlpath=$dir/\$dldll~
16450 $RM \$dlpath'
16451 shlibpath_overrides_runpath=yes
16452 dynamic_linker='Win32 link.exe'
16453 ;;
16454
16455 *)
16456 # Assume MSVC wrapper
16457 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16458 dynamic_linker='Win32 ld.exe'
16459 ;;
16460 esac
16461 # FIXME: first we should search . and the directory the executable is in
16462 shlibpath_var=PATH
16463 ;;
16464
16465 darwin* | rhapsody*)
16466 dynamic_linker="$host_os dyld"
16467 version_type=darwin
16468 need_lib_prefix=no
16469 need_version=no
16470 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16471 soname_spec='${libname}${release}${major}$shared_ext'
16472 shlibpath_overrides_runpath=yes
16473 shlibpath_var=DYLD_LIBRARY_PATH
16474 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16475
16476 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16477 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16478 ;;
16479
16480 dgux*)
16481 version_type=linux # correct to gnu/linux during the next big refactor
16482 need_lib_prefix=no
16483 need_version=no
16484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16485 soname_spec='${libname}${release}${shared_ext}$major'
16486 shlibpath_var=LD_LIBRARY_PATH
16487 ;;
16488
16489 freebsd* | dragonfly*)
16490 # DragonFly does not have aout. When/if they implement a new
16491 # versioning mechanism, adjust this.
16492 if test -x /usr/bin/objformat; then
16493 objformat=`/usr/bin/objformat`
16494 else
16495 case $host_os in
16496 freebsd[23].*) objformat=aout ;;
16497 *) objformat=elf ;;
16498 esac
16499 fi
16500 version_type=freebsd-$objformat
16501 case $version_type in
16502 freebsd-elf*)
16503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16504 need_version=no
16505 need_lib_prefix=no
16506 ;;
16507 freebsd-*)
16508 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16509 need_version=yes
16510 ;;
16511 esac
16512 shlibpath_var=LD_LIBRARY_PATH
16513 case $host_os in
16514 freebsd2.*)
16515 shlibpath_overrides_runpath=yes
16516 ;;
16517 freebsd3.[01]* | freebsdelf3.[01]*)
16518 shlibpath_overrides_runpath=yes
16519 hardcode_into_libs=yes
16520 ;;
16521 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16522 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16523 shlibpath_overrides_runpath=no
16524 hardcode_into_libs=yes
16525 ;;
16526 *) # from 4.6 on, and DragonFly
16527 shlibpath_overrides_runpath=yes
16528 hardcode_into_libs=yes
16529 ;;
16530 esac
16531 ;;
16532
16533 gnu*)
16534 version_type=linux # correct to gnu/linux during the next big refactor
16535 need_lib_prefix=no
16536 need_version=no
16537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16538 soname_spec='${libname}${release}${shared_ext}$major'
16539 shlibpath_var=LD_LIBRARY_PATH
16540 shlibpath_overrides_runpath=no
16541 hardcode_into_libs=yes
16542 ;;
16543
16544 haiku*)
16545 version_type=linux # correct to gnu/linux during the next big refactor
16546 need_lib_prefix=no
16547 need_version=no
16548 dynamic_linker="$host_os runtime_loader"
16549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16550 soname_spec='${libname}${release}${shared_ext}$major'
16551 shlibpath_var=LIBRARY_PATH
16552 shlibpath_overrides_runpath=yes
16553 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16554 hardcode_into_libs=yes
16555 ;;
16556
16557 hpux9* | hpux10* | hpux11*)
16558 # Give a soname corresponding to the major version so that dld.sl refuses to
16559 # link against other versions.
16560 version_type=sunos
16561 need_lib_prefix=no
16562 need_version=no
16563 case $host_cpu in
16564 ia64*)
16565 shrext_cmds='.so'
16566 hardcode_into_libs=yes
16567 dynamic_linker="$host_os dld.so"
16568 shlibpath_var=LD_LIBRARY_PATH
16569 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16571 soname_spec='${libname}${release}${shared_ext}$major'
16572 if test "X$HPUX_IA64_MODE" = X32; then
16573 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16574 else
16575 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16576 fi
16577 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16578 ;;
16579 hppa*64*)
16580 shrext_cmds='.sl'
16581 hardcode_into_libs=yes
16582 dynamic_linker="$host_os dld.sl"
16583 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16584 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16586 soname_spec='${libname}${release}${shared_ext}$major'
16587 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16588 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16589 ;;
16590 *)
16591 shrext_cmds='.sl'
16592 dynamic_linker="$host_os dld.sl"
16593 shlibpath_var=SHLIB_PATH
16594 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16596 soname_spec='${libname}${release}${shared_ext}$major'
16597 ;;
16598 esac
16599 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16600 postinstall_cmds='chmod 555 $lib'
16601 # or fails outright, so override atomically:
16602 install_override_mode=555
16603 ;;
16604
16605 interix[3-9]*)
16606 version_type=linux # correct to gnu/linux during the next big refactor
16607 need_lib_prefix=no
16608 need_version=no
16609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16610 soname_spec='${libname}${release}${shared_ext}$major'
16611 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16612 shlibpath_var=LD_LIBRARY_PATH
16613 shlibpath_overrides_runpath=no
16614 hardcode_into_libs=yes
16615 ;;
16616
16617 irix5* | irix6* | nonstopux*)
16618 case $host_os in
16619 nonstopux*) version_type=nonstopux ;;
16620 *)
16621 if test "$lt_cv_prog_gnu_ld" = yes; then
16622 version_type=linux # correct to gnu/linux during the next big refactor
16623 else
16624 version_type=irix
16625 fi ;;
16626 esac
16627 need_lib_prefix=no
16628 need_version=no
16629 soname_spec='${libname}${release}${shared_ext}$major'
16630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16631 case $host_os in
16632 irix5* | nonstopux*)
16633 libsuff= shlibsuff=
16634 ;;
16635 *)
16636 case $LD in # libtool.m4 will add one of these switches to LD
16637 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16638 libsuff= shlibsuff= libmagic=32-bit;;
16639 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16640 libsuff=32 shlibsuff=N32 libmagic=N32;;
16641 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16642 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16643 *) libsuff= shlibsuff= libmagic=never-match;;
16644 esac
16645 ;;
16646 esac
16647 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16648 shlibpath_overrides_runpath=no
16649 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16650 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16651 hardcode_into_libs=yes
16652 ;;
16653
16654 # No shared lib support for Linux oldld, aout, or coff.
16655 linux*oldld* | linux*aout* | linux*coff*)
16656 dynamic_linker=no
16657 ;;
16658
16659 # This must be glibc/ELF.
16660 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16661 version_type=linux # correct to gnu/linux during the next big refactor
16662 need_lib_prefix=no
16663 need_version=no
16664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16665 soname_spec='${libname}${release}${shared_ext}$major'
16666 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16667 shlibpath_var=LD_LIBRARY_PATH
16668 shlibpath_overrides_runpath=no
16669
16670 # Some binutils ld are patched to set DT_RUNPATH
16671 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16672 $as_echo_n "(cached) " >&6
16673 else
16674 lt_cv_shlibpath_overrides_runpath=no
16675 save_LDFLAGS=$LDFLAGS
16676 save_libdir=$libdir
16677 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16678 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16680 /* end confdefs.h. */
16681
16682 int
16683 main ()
16684 {
16685
16686 ;
16687 return 0;
16688 }
16689 _ACEOF
16690 if ac_fn_c_try_link "$LINENO"; then :
16691 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16692 lt_cv_shlibpath_overrides_runpath=yes
16693 fi
16694 fi
16695 rm -f core conftest.err conftest.$ac_objext \
16696 conftest$ac_exeext conftest.$ac_ext
16697 LDFLAGS=$save_LDFLAGS
16698 libdir=$save_libdir
16699
16700 fi
16701
16702 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16703
16704 # This implies no fast_install, which is unacceptable.
16705 # Some rework will be needed to allow for fast_install
16706 # before this can be enabled.
16707 hardcode_into_libs=yes
16708
16709 # Append ld.so.conf contents to the search path
16710 if test -f /etc/ld.so.conf; then
16711 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' ' '`
16712 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16713 fi
16714
16715 # We used to test for /lib/ld.so.1 and disable shared libraries on
16716 # powerpc, because MkLinux only supported shared libraries with the
16717 # GNU dynamic linker. Since this was broken with cross compilers,
16718 # most powerpc-linux boxes support dynamic linking these days and
16719 # people can always --disable-shared, the test was removed, and we
16720 # assume the GNU/Linux dynamic linker is in use.
16721 dynamic_linker='GNU/Linux ld.so'
16722 ;;
16723
16724 netbsdelf*-gnu)
16725 version_type=linux
16726 need_lib_prefix=no
16727 need_version=no
16728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16729 soname_spec='${libname}${release}${shared_ext}$major'
16730 shlibpath_var=LD_LIBRARY_PATH
16731 shlibpath_overrides_runpath=no
16732 hardcode_into_libs=yes
16733 dynamic_linker='NetBSD ld.elf_so'
16734 ;;
16735
16736 netbsd*)
16737 version_type=sunos
16738 need_lib_prefix=no
16739 need_version=no
16740 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16742 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16743 dynamic_linker='NetBSD (a.out) ld.so'
16744 else
16745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16746 soname_spec='${libname}${release}${shared_ext}$major'
16747 dynamic_linker='NetBSD ld.elf_so'
16748 fi
16749 shlibpath_var=LD_LIBRARY_PATH
16750 shlibpath_overrides_runpath=yes
16751 hardcode_into_libs=yes
16752 ;;
16753
16754 newsos6)
16755 version_type=linux # correct to gnu/linux during the next big refactor
16756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16757 shlibpath_var=LD_LIBRARY_PATH
16758 shlibpath_overrides_runpath=yes
16759 ;;
16760
16761 *nto* | *qnx*)
16762 version_type=qnx
16763 need_lib_prefix=no
16764 need_version=no
16765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16766 soname_spec='${libname}${release}${shared_ext}$major'
16767 shlibpath_var=LD_LIBRARY_PATH
16768 shlibpath_overrides_runpath=no
16769 hardcode_into_libs=yes
16770 dynamic_linker='ldqnx.so'
16771 ;;
16772
16773 openbsd*)
16774 version_type=sunos
16775 sys_lib_dlsearch_path_spec="/usr/lib"
16776 need_lib_prefix=no
16777 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16778 case $host_os in
16779 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16780 *) need_version=no ;;
16781 esac
16782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16783 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16784 shlibpath_var=LD_LIBRARY_PATH
16785 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16786 case $host_os in
16787 openbsd2.[89] | openbsd2.[89].*)
16788 shlibpath_overrides_runpath=no
16789 ;;
16790 *)
16791 shlibpath_overrides_runpath=yes
16792 ;;
16793 esac
16794 else
16795 shlibpath_overrides_runpath=yes
16796 fi
16797 ;;
16798
16799 os2*)
16800 libname_spec='$name'
16801 shrext_cmds=".dll"
16802 need_lib_prefix=no
16803 library_names_spec='$libname${shared_ext} $libname.a'
16804 dynamic_linker='OS/2 ld.exe'
16805 shlibpath_var=LIBPATH
16806 ;;
16807
16808 osf3* | osf4* | osf5*)
16809 version_type=osf
16810 need_lib_prefix=no
16811 need_version=no
16812 soname_spec='${libname}${release}${shared_ext}$major'
16813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16814 shlibpath_var=LD_LIBRARY_PATH
16815 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16816 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16817 ;;
16818
16819 rdos*)
16820 dynamic_linker=no
16821 ;;
16822
16823 solaris*)
16824 version_type=linux # correct to gnu/linux during the next big refactor
16825 need_lib_prefix=no
16826 need_version=no
16827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16828 soname_spec='${libname}${release}${shared_ext}$major'
16829 shlibpath_var=LD_LIBRARY_PATH
16830 shlibpath_overrides_runpath=yes
16831 hardcode_into_libs=yes
16832 # ldd complains unless libraries are executable
16833 postinstall_cmds='chmod +x $lib'
16834 ;;
16835
16836 sunos4*)
16837 version_type=sunos
16838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16839 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16840 shlibpath_var=LD_LIBRARY_PATH
16841 shlibpath_overrides_runpath=yes
16842 if test "$with_gnu_ld" = yes; then
16843 need_lib_prefix=no
16844 fi
16845 need_version=yes
16846 ;;
16847
16848 sysv4 | sysv4.3*)
16849 version_type=linux # correct to gnu/linux during the next big refactor
16850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16851 soname_spec='${libname}${release}${shared_ext}$major'
16852 shlibpath_var=LD_LIBRARY_PATH
16853 case $host_vendor in
16854 sni)
16855 shlibpath_overrides_runpath=no
16856 need_lib_prefix=no
16857 runpath_var=LD_RUN_PATH
16858 ;;
16859 siemens)
16860 need_lib_prefix=no
16861 ;;
16862 motorola)
16863 need_lib_prefix=no
16864 need_version=no
16865 shlibpath_overrides_runpath=no
16866 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16867 ;;
16868 esac
16869 ;;
16870
16871 sysv4*MP*)
16872 if test -d /usr/nec ;then
16873 version_type=linux # correct to gnu/linux during the next big refactor
16874 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16875 soname_spec='$libname${shared_ext}.$major'
16876 shlibpath_var=LD_LIBRARY_PATH
16877 fi
16878 ;;
16879
16880 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16881 version_type=freebsd-elf
16882 need_lib_prefix=no
16883 need_version=no
16884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16885 soname_spec='${libname}${release}${shared_ext}$major'
16886 shlibpath_var=LD_LIBRARY_PATH
16887 shlibpath_overrides_runpath=yes
16888 hardcode_into_libs=yes
16889 if test "$with_gnu_ld" = yes; then
16890 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16891 else
16892 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16893 case $host_os in
16894 sco3.2v5*)
16895 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16896 ;;
16897 esac
16898 fi
16899 sys_lib_dlsearch_path_spec='/usr/lib'
16900 ;;
16901
16902 tpf*)
16903 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16904 version_type=linux # correct to gnu/linux during the next big refactor
16905 need_lib_prefix=no
16906 need_version=no
16907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16908 shlibpath_var=LD_LIBRARY_PATH
16909 shlibpath_overrides_runpath=no
16910 hardcode_into_libs=yes
16911 ;;
16912
16913 uts4*)
16914 version_type=linux # correct to gnu/linux during the next big refactor
16915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16916 soname_spec='${libname}${release}${shared_ext}$major'
16917 shlibpath_var=LD_LIBRARY_PATH
16918 ;;
16919
16920 *)
16921 dynamic_linker=no
16922 ;;
16923 esac
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16925 $as_echo "$dynamic_linker" >&6; }
16926 test "$dynamic_linker" = no && can_build_shared=no
16927
16928 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16929 if test "$GCC" = yes; then
16930 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16931 fi
16932
16933 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16934 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16935 fi
16936 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16937 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16938 fi
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17032 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17033 hardcode_action=
17034 if test -n "$hardcode_libdir_flag_spec" ||
17035 test -n "$runpath_var" ||
17036 test "X$hardcode_automatic" = "Xyes" ; then
17037
17038 # We can hardcode non-existent directories.
17039 if test "$hardcode_direct" != no &&
17040 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17041 # have to relink, otherwise we might link with an installed library
17042 # when we should be linking with a yet-to-be-installed one
17043 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17044 test "$hardcode_minus_L" != no; then
17045 # Linking always hardcodes the temporary library directory.
17046 hardcode_action=relink
17047 else
17048 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17049 hardcode_action=immediate
17050 fi
17051 else
17052 # We cannot hardcode anything, or else we can only hardcode existing
17053 # directories.
17054 hardcode_action=unsupported
17055 fi
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17057 $as_echo "$hardcode_action" >&6; }
17058
17059 if test "$hardcode_action" = relink ||
17060 test "$inherit_rpath" = yes; then
17061 # Fast installation is not supported
17062 enable_fast_install=no
17063 elif test "$shlibpath_overrides_runpath" = yes ||
17064 test "$enable_shared" = no; then
17065 # Fast installation is not necessary
17066 enable_fast_install=needless
17067 fi
17068
17069
17070
17071
17072
17073
17074 if test "x$enable_dlopen" != xyes; then
17075 enable_dlopen=unknown
17076 enable_dlopen_self=unknown
17077 enable_dlopen_self_static=unknown
17078 else
17079 lt_cv_dlopen=no
17080 lt_cv_dlopen_libs=
17081
17082 case $host_os in
17083 beos*)
17084 lt_cv_dlopen="load_add_on"
17085 lt_cv_dlopen_libs=
17086 lt_cv_dlopen_self=yes
17087 ;;
17088
17089 mingw* | pw32* | cegcc*)
17090 lt_cv_dlopen="LoadLibrary"
17091 lt_cv_dlopen_libs=
17092 ;;
17093
17094 cygwin*)
17095 lt_cv_dlopen="dlopen"
17096 lt_cv_dlopen_libs=
17097 ;;
17098
17099 darwin*)
17100 # if libdl is installed we need to link against it
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17102 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17103 if ${ac_cv_lib_dl_dlopen+:} false; then :
17104 $as_echo_n "(cached) " >&6
17105 else
17106 ac_check_lib_save_LIBS=$LIBS
17107 LIBS="-ldl $LIBS"
17108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17109 /* end confdefs.h. */
17110
17111 /* Override any GCC internal prototype to avoid an error.
17112 Use char because int might match the return type of a GCC
17113 builtin and then its argument prototype would still apply. */
17114 #ifdef __cplusplus
17115 extern "C"
17116 #endif
17117 char dlopen ();
17118 int
17119 main ()
17120 {
17121 return dlopen ();
17122 ;
17123 return 0;
17124 }
17125 _ACEOF
17126 if ac_fn_c_try_link "$LINENO"; then :
17127 ac_cv_lib_dl_dlopen=yes
17128 else
17129 ac_cv_lib_dl_dlopen=no
17130 fi
17131 rm -f core conftest.err conftest.$ac_objext \
17132 conftest$ac_exeext conftest.$ac_ext
17133 LIBS=$ac_check_lib_save_LIBS
17134 fi
17135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17136 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17137 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17138 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17139 else
17140
17141 lt_cv_dlopen="dyld"
17142 lt_cv_dlopen_libs=
17143 lt_cv_dlopen_self=yes
17144
17145 fi
17146
17147 ;;
17148
17149 *)
17150 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17151 if test "x$ac_cv_func_shl_load" = xyes; then :
17152 lt_cv_dlopen="shl_load"
17153 else
17154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17155 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17156 if ${ac_cv_lib_dld_shl_load+:} false; then :
17157 $as_echo_n "(cached) " >&6
17158 else
17159 ac_check_lib_save_LIBS=$LIBS
17160 LIBS="-ldld $LIBS"
17161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17162 /* end confdefs.h. */
17163
17164 /* Override any GCC internal prototype to avoid an error.
17165 Use char because int might match the return type of a GCC
17166 builtin and then its argument prototype would still apply. */
17167 #ifdef __cplusplus
17168 extern "C"
17169 #endif
17170 char shl_load ();
17171 int
17172 main ()
17173 {
17174 return shl_load ();
17175 ;
17176 return 0;
17177 }
17178 _ACEOF
17179 if ac_fn_c_try_link "$LINENO"; then :
17180 ac_cv_lib_dld_shl_load=yes
17181 else
17182 ac_cv_lib_dld_shl_load=no
17183 fi
17184 rm -f core conftest.err conftest.$ac_objext \
17185 conftest$ac_exeext conftest.$ac_ext
17186 LIBS=$ac_check_lib_save_LIBS
17187 fi
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17189 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17190 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17191 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17192 else
17193 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17194 if test "x$ac_cv_func_dlopen" = xyes; then :
17195 lt_cv_dlopen="dlopen"
17196 else
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17198 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17199 if ${ac_cv_lib_dl_dlopen+:} false; then :
17200 $as_echo_n "(cached) " >&6
17201 else
17202 ac_check_lib_save_LIBS=$LIBS
17203 LIBS="-ldl $LIBS"
17204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17205 /* end confdefs.h. */
17206
17207 /* Override any GCC internal prototype to avoid an error.
17208 Use char because int might match the return type of a GCC
17209 builtin and then its argument prototype would still apply. */
17210 #ifdef __cplusplus
17211 extern "C"
17212 #endif
17213 char dlopen ();
17214 int
17215 main ()
17216 {
17217 return dlopen ();
17218 ;
17219 return 0;
17220 }
17221 _ACEOF
17222 if ac_fn_c_try_link "$LINENO"; then :
17223 ac_cv_lib_dl_dlopen=yes
17224 else
17225 ac_cv_lib_dl_dlopen=no
17226 fi
17227 rm -f core conftest.err conftest.$ac_objext \
17228 conftest$ac_exeext conftest.$ac_ext
17229 LIBS=$ac_check_lib_save_LIBS
17230 fi
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17232 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17233 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17234 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17235 else
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17237 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17238 if ${ac_cv_lib_svld_dlopen+:} false; then :
17239 $as_echo_n "(cached) " >&6
17240 else
17241 ac_check_lib_save_LIBS=$LIBS
17242 LIBS="-lsvld $LIBS"
17243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17244 /* end confdefs.h. */
17245
17246 /* Override any GCC internal prototype to avoid an error.
17247 Use char because int might match the return type of a GCC
17248 builtin and then its argument prototype would still apply. */
17249 #ifdef __cplusplus
17250 extern "C"
17251 #endif
17252 char dlopen ();
17253 int
17254 main ()
17255 {
17256 return dlopen ();
17257 ;
17258 return 0;
17259 }
17260 _ACEOF
17261 if ac_fn_c_try_link "$LINENO"; then :
17262 ac_cv_lib_svld_dlopen=yes
17263 else
17264 ac_cv_lib_svld_dlopen=no
17265 fi
17266 rm -f core conftest.err conftest.$ac_objext \
17267 conftest$ac_exeext conftest.$ac_ext
17268 LIBS=$ac_check_lib_save_LIBS
17269 fi
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17271 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17272 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17273 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17274 else
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17276 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17277 if ${ac_cv_lib_dld_dld_link+:} false; then :
17278 $as_echo_n "(cached) " >&6
17279 else
17280 ac_check_lib_save_LIBS=$LIBS
17281 LIBS="-ldld $LIBS"
17282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17283 /* end confdefs.h. */
17284
17285 /* Override any GCC internal prototype to avoid an error.
17286 Use char because int might match the return type of a GCC
17287 builtin and then its argument prototype would still apply. */
17288 #ifdef __cplusplus
17289 extern "C"
17290 #endif
17291 char dld_link ();
17292 int
17293 main ()
17294 {
17295 return dld_link ();
17296 ;
17297 return 0;
17298 }
17299 _ACEOF
17300 if ac_fn_c_try_link "$LINENO"; then :
17301 ac_cv_lib_dld_dld_link=yes
17302 else
17303 ac_cv_lib_dld_dld_link=no
17304 fi
17305 rm -f core conftest.err conftest.$ac_objext \
17306 conftest$ac_exeext conftest.$ac_ext
17307 LIBS=$ac_check_lib_save_LIBS
17308 fi
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17310 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17311 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17312 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17313 fi
17314
17315
17316 fi
17317
17318
17319 fi
17320
17321
17322 fi
17323
17324
17325 fi
17326
17327
17328 fi
17329
17330 ;;
17331 esac
17332
17333 if test "x$lt_cv_dlopen" != xno; then
17334 enable_dlopen=yes
17335 else
17336 enable_dlopen=no
17337 fi
17338
17339 case $lt_cv_dlopen in
17340 dlopen)
17341 save_CPPFLAGS="$CPPFLAGS"
17342 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17343
17344 save_LDFLAGS="$LDFLAGS"
17345 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17346
17347 save_LIBS="$LIBS"
17348 LIBS="$lt_cv_dlopen_libs $LIBS"
17349
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17351 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17352 if ${lt_cv_dlopen_self+:} false; then :
17353 $as_echo_n "(cached) " >&6
17354 else
17355 if test "$cross_compiling" = yes; then :
17356 lt_cv_dlopen_self=cross
17357 else
17358 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17359 lt_status=$lt_dlunknown
17360 cat > conftest.$ac_ext <<_LT_EOF
17361 #line $LINENO "configure"
17362 #include "confdefs.h"
17363
17364 #if HAVE_DLFCN_H
17365 #include <dlfcn.h>
17366 #endif
17367
17368 #include <stdio.h>
17369
17370 #ifdef RTLD_GLOBAL
17371 # define LT_DLGLOBAL RTLD_GLOBAL
17372 #else
17373 # ifdef DL_GLOBAL
17374 # define LT_DLGLOBAL DL_GLOBAL
17375 # else
17376 # define LT_DLGLOBAL 0
17377 # endif
17378 #endif
17379
17380 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17381 find out it does not work in some platform. */
17382 #ifndef LT_DLLAZY_OR_NOW
17383 # ifdef RTLD_LAZY
17384 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17385 # else
17386 # ifdef DL_LAZY
17387 # define LT_DLLAZY_OR_NOW DL_LAZY
17388 # else
17389 # ifdef RTLD_NOW
17390 # define LT_DLLAZY_OR_NOW RTLD_NOW
17391 # else
17392 # ifdef DL_NOW
17393 # define LT_DLLAZY_OR_NOW DL_NOW
17394 # else
17395 # define LT_DLLAZY_OR_NOW 0
17396 # endif
17397 # endif
17398 # endif
17399 # endif
17400 #endif
17401
17402 /* When -fvisbility=hidden is used, assume the code has been annotated
17403 correspondingly for the symbols needed. */
17404 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17405 int fnord () __attribute__((visibility("default")));
17406 #endif
17407
17408 int fnord () { return 42; }
17409 int main ()
17410 {
17411 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17412 int status = $lt_dlunknown;
17413
17414 if (self)
17415 {
17416 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17417 else
17418 {
17419 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17420 else puts (dlerror ());
17421 }
17422 /* dlclose (self); */
17423 }
17424 else
17425 puts (dlerror ());
17426
17427 return status;
17428 }
17429 _LT_EOF
17430 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17431 (eval $ac_link) 2>&5
17432 ac_status=$?
17433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17434 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17435 (./conftest; exit; ) >&5 2>/dev/null
17436 lt_status=$?
17437 case x$lt_status in
17438 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17439 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17440 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17441 esac
17442 else :
17443 # compilation failed
17444 lt_cv_dlopen_self=no
17445 fi
17446 fi
17447 rm -fr conftest*
17448
17449
17450 fi
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17452 $as_echo "$lt_cv_dlopen_self" >&6; }
17453
17454 if test "x$lt_cv_dlopen_self" = xyes; then
17455 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17457 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17458 if ${lt_cv_dlopen_self_static+:} false; then :
17459 $as_echo_n "(cached) " >&6
17460 else
17461 if test "$cross_compiling" = yes; then :
17462 lt_cv_dlopen_self_static=cross
17463 else
17464 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17465 lt_status=$lt_dlunknown
17466 cat > conftest.$ac_ext <<_LT_EOF
17467 #line $LINENO "configure"
17468 #include "confdefs.h"
17469
17470 #if HAVE_DLFCN_H
17471 #include <dlfcn.h>
17472 #endif
17473
17474 #include <stdio.h>
17475
17476 #ifdef RTLD_GLOBAL
17477 # define LT_DLGLOBAL RTLD_GLOBAL
17478 #else
17479 # ifdef DL_GLOBAL
17480 # define LT_DLGLOBAL DL_GLOBAL
17481 # else
17482 # define LT_DLGLOBAL 0
17483 # endif
17484 #endif
17485
17486 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17487 find out it does not work in some platform. */
17488 #ifndef LT_DLLAZY_OR_NOW
17489 # ifdef RTLD_LAZY
17490 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17491 # else
17492 # ifdef DL_LAZY
17493 # define LT_DLLAZY_OR_NOW DL_LAZY
17494 # else
17495 # ifdef RTLD_NOW
17496 # define LT_DLLAZY_OR_NOW RTLD_NOW
17497 # else
17498 # ifdef DL_NOW
17499 # define LT_DLLAZY_OR_NOW DL_NOW
17500 # else
17501 # define LT_DLLAZY_OR_NOW 0
17502 # endif
17503 # endif
17504 # endif
17505 # endif
17506 #endif
17507
17508 /* When -fvisbility=hidden is used, assume the code has been annotated
17509 correspondingly for the symbols needed. */
17510 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17511 int fnord () __attribute__((visibility("default")));
17512 #endif
17513
17514 int fnord () { return 42; }
17515 int main ()
17516 {
17517 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17518 int status = $lt_dlunknown;
17519
17520 if (self)
17521 {
17522 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17523 else
17524 {
17525 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17526 else puts (dlerror ());
17527 }
17528 /* dlclose (self); */
17529 }
17530 else
17531 puts (dlerror ());
17532
17533 return status;
17534 }
17535 _LT_EOF
17536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17537 (eval $ac_link) 2>&5
17538 ac_status=$?
17539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17540 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17541 (./conftest; exit; ) >&5 2>/dev/null
17542 lt_status=$?
17543 case x$lt_status in
17544 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17545 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17546 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17547 esac
17548 else :
17549 # compilation failed
17550 lt_cv_dlopen_self_static=no
17551 fi
17552 fi
17553 rm -fr conftest*
17554
17555
17556 fi
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17558 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17559 fi
17560
17561 CPPFLAGS="$save_CPPFLAGS"
17562 LDFLAGS="$save_LDFLAGS"
17563 LIBS="$save_LIBS"
17564 ;;
17565 esac
17566
17567 case $lt_cv_dlopen_self in
17568 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17569 *) enable_dlopen_self=unknown ;;
17570 esac
17571
17572 case $lt_cv_dlopen_self_static in
17573 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17574 *) enable_dlopen_self_static=unknown ;;
17575 esac
17576 fi
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594 striplib=
17595 old_striplib=
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17597 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17598 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17599 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17600 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17602 $as_echo "yes" >&6; }
17603 else
17604 # FIXME - insert some real tests, host_os isn't really good enough
17605 case $host_os in
17606 darwin*)
17607 if test -n "$STRIP" ; then
17608 striplib="$STRIP -x"
17609 old_striplib="$STRIP -S"
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17611 $as_echo "yes" >&6; }
17612 else
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17614 $as_echo "no" >&6; }
17615 fi
17616 ;;
17617 *)
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17619 $as_echo "no" >&6; }
17620 ;;
17621 esac
17622 fi
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635 # Report which library types will actually be built
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17637 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17639 $as_echo "$can_build_shared" >&6; }
17640
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17642 $as_echo_n "checking whether to build shared libraries... " >&6; }
17643 test "$can_build_shared" = "no" && enable_shared=no
17644
17645 # On AIX, shared libraries and static libraries use the same namespace, and
17646 # are all built from PIC.
17647 case $host_os in
17648 aix3*)
17649 test "$enable_shared" = yes && enable_static=no
17650 if test -n "$RANLIB"; then
17651 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17652 postinstall_cmds='$RANLIB $lib'
17653 fi
17654 ;;
17655
17656 aix[4-9]*)
17657 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17658 test "$enable_shared" = yes && enable_static=no
17659 fi
17660 ;;
17661 esac
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17663 $as_echo "$enable_shared" >&6; }
17664
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17666 $as_echo_n "checking whether to build static libraries... " >&6; }
17667 # Make sure either enable_shared or enable_static is yes.
17668 test "$enable_shared" = yes || enable_static=yes
17669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17670 $as_echo "$enable_static" >&6; }
17671
17672
17673
17674
17675 fi
17676 ac_ext=c
17677 ac_cpp='$CPP $CPPFLAGS'
17678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17681
17682 CC="$lt_save_CC"
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698 ac_config_commands="$ac_config_commands libtool"
17699
17700
17701
17702
17703 # Only expand once:
17704
17705
17706 ac_ext=c
17707 ac_cpp='$CPP $CPPFLAGS'
17708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17711 if test -n "$ac_tool_prefix"; then
17712 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
17713 set dummy ${ac_tool_prefix}gcc; ac_word=$2
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17715 $as_echo_n "checking for $ac_word... " >&6; }
17716 if ${ac_cv_prog_CC+:} false; then :
17717 $as_echo_n "(cached) " >&6
17718 else
17719 if test -n "$CC"; then
17720 ac_cv_prog_CC="$CC" # Let the user override the test.
17721 else
17722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17723 for as_dir in $PATH
17724 do
17725 IFS=$as_save_IFS
17726 test -z "$as_dir" && as_dir=.
17727 for ac_exec_ext in '' $ac_executable_extensions; do
17728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17729 ac_cv_prog_CC="${ac_tool_prefix}gcc"
17730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17731 break 2
17732 fi
17733 done
17734 done
17735 IFS=$as_save_IFS
17736
17737 fi
17738 fi
17739 CC=$ac_cv_prog_CC
17740 if test -n "$CC"; then
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
17742 $as_echo "$CC" >&6; }
17743 else
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17745 $as_echo "no" >&6; }
17746 fi
17747
17748
17749 fi
17750 if test -z "$ac_cv_prog_CC"; then
17751 ac_ct_CC=$CC
17752 # Extract the first word of "gcc", so it can be a program name with args.
17753 set dummy gcc; ac_word=$2
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17755 $as_echo_n "checking for $ac_word... " >&6; }
17756 if ${ac_cv_prog_ac_ct_CC+:} false; then :
17757 $as_echo_n "(cached) " >&6
17758 else
17759 if test -n "$ac_ct_CC"; then
17760 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
17761 else
17762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17763 for as_dir in $PATH
17764 do
17765 IFS=$as_save_IFS
17766 test -z "$as_dir" && as_dir=.
17767 for ac_exec_ext in '' $ac_executable_extensions; do
17768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17769 ac_cv_prog_ac_ct_CC="gcc"
17770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17771 break 2
17772 fi
17773 done
17774 done
17775 IFS=$as_save_IFS
17776
17777 fi
17778 fi
17779 ac_ct_CC=$ac_cv_prog_ac_ct_CC
17780 if test -n "$ac_ct_CC"; then
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
17782 $as_echo "$ac_ct_CC" >&6; }
17783 else
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17785 $as_echo "no" >&6; }
17786 fi
17787
17788 if test "x$ac_ct_CC" = x; then
17789 CC=""
17790 else
17791 case $cross_compiling:$ac_tool_warned in
17792 yes:)
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17795 ac_tool_warned=yes ;;
17796 esac
17797 CC=$ac_ct_CC
17798 fi
17799 else
17800 CC="$ac_cv_prog_CC"
17801 fi
17802
17803 if test -z "$CC"; then
17804 if test -n "$ac_tool_prefix"; then
17805 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
17806 set dummy ${ac_tool_prefix}cc; ac_word=$2
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17808 $as_echo_n "checking for $ac_word... " >&6; }
17809 if ${ac_cv_prog_CC+:} false; then :
17810 $as_echo_n "(cached) " >&6
17811 else
17812 if test -n "$CC"; then
17813 ac_cv_prog_CC="$CC" # Let the user override the test.
17814 else
17815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17816 for as_dir in $PATH
17817 do
17818 IFS=$as_save_IFS
17819 test -z "$as_dir" && as_dir=.
17820 for ac_exec_ext in '' $ac_executable_extensions; do
17821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17822 ac_cv_prog_CC="${ac_tool_prefix}cc"
17823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17824 break 2
17825 fi
17826 done
17827 done
17828 IFS=$as_save_IFS
17829
17830 fi
17831 fi
17832 CC=$ac_cv_prog_CC
17833 if test -n "$CC"; then
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
17835 $as_echo "$CC" >&6; }
17836 else
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17838 $as_echo "no" >&6; }
17839 fi
17840
17841
17842 fi
17843 fi
17844 if test -z "$CC"; then
17845 # Extract the first word of "cc", so it can be a program name with args.
17846 set dummy cc; ac_word=$2
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17848 $as_echo_n "checking for $ac_word... " >&6; }
17849 if ${ac_cv_prog_CC+:} false; then :
17850 $as_echo_n "(cached) " >&6
17851 else
17852 if test -n "$CC"; then
17853 ac_cv_prog_CC="$CC" # Let the user override the test.
17854 else
17855 ac_prog_rejected=no
17856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17857 for as_dir in $PATH
17858 do
17859 IFS=$as_save_IFS
17860 test -z "$as_dir" && as_dir=.
17861 for ac_exec_ext in '' $ac_executable_extensions; do
17862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17863 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
17864 ac_prog_rejected=yes
17865 continue
17866 fi
17867 ac_cv_prog_CC="cc"
17868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17869 break 2
17870 fi
17871 done
17872 done
17873 IFS=$as_save_IFS
17874
17875 if test $ac_prog_rejected = yes; then
17876 # We found a bogon in the path, so make sure we never use it.
17877 set dummy $ac_cv_prog_CC
17878 shift
17879 if test $# != 0; then
17880 # We chose a different compiler from the bogus one.
17881 # However, it has the same basename, so the bogon will be chosen
17882 # first if we set CC to just the basename; use the full file name.
17883 shift
17884 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
17885 fi
17886 fi
17887 fi
17888 fi
17889 CC=$ac_cv_prog_CC
17890 if test -n "$CC"; then
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
17892 $as_echo "$CC" >&6; }
17893 else
17894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17895 $as_echo "no" >&6; }
17896 fi
17897
17898
17899 fi
17900 if test -z "$CC"; then
17901 if test -n "$ac_tool_prefix"; then
17902 for ac_prog in cl.exe
17903 do
17904 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17905 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17907 $as_echo_n "checking for $ac_word... " >&6; }
17908 if ${ac_cv_prog_CC+:} false; then :
17909 $as_echo_n "(cached) " >&6
17910 else
17911 if test -n "$CC"; then
17912 ac_cv_prog_CC="$CC" # Let the user override the test.
17913 else
17914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17915 for as_dir in $PATH
17916 do
17917 IFS=$as_save_IFS
17918 test -z "$as_dir" && as_dir=.
17919 for ac_exec_ext in '' $ac_executable_extensions; do
17920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17921 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
17922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17923 break 2
17924 fi
17925 done
17926 done
17927 IFS=$as_save_IFS
17928
17929 fi
17930 fi
17931 CC=$ac_cv_prog_CC
17932 if test -n "$CC"; then
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
17934 $as_echo "$CC" >&6; }
17935 else
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17937 $as_echo "no" >&6; }
17938 fi
17939
17940
17941 test -n "$CC" && break
17942 done
17943 fi
17944 if test -z "$CC"; then
17945 ac_ct_CC=$CC
17946 for ac_prog in cl.exe
17947 do
17948 # Extract the first word of "$ac_prog", so it can be a program name with args.
17949 set dummy $ac_prog; ac_word=$2
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17951 $as_echo_n "checking for $ac_word... " >&6; }
17952 if ${ac_cv_prog_ac_ct_CC+:} false; then :
17953 $as_echo_n "(cached) " >&6
17954 else
17955 if test -n "$ac_ct_CC"; then
17956 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
17957 else
17958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17959 for as_dir in $PATH
17960 do
17961 IFS=$as_save_IFS
17962 test -z "$as_dir" && as_dir=.
17963 for ac_exec_ext in '' $ac_executable_extensions; do
17964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17965 ac_cv_prog_ac_ct_CC="$ac_prog"
17966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17967 break 2
17968 fi
17969 done
17970 done
17971 IFS=$as_save_IFS
17972
17973 fi
17974 fi
17975 ac_ct_CC=$ac_cv_prog_ac_ct_CC
17976 if test -n "$ac_ct_CC"; then
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
17978 $as_echo "$ac_ct_CC" >&6; }
17979 else
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17981 $as_echo "no" >&6; }
17982 fi
17983
17984
17985 test -n "$ac_ct_CC" && break
17986 done
17987
17988 if test "x$ac_ct_CC" = x; then
17989 CC=""
17990 else
17991 case $cross_compiling:$ac_tool_warned in
17992 yes:)
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17995 ac_tool_warned=yes ;;
17996 esac
17997 CC=$ac_ct_CC
17998 fi
17999 fi
18000
18001 fi
18002
18003
18004 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18006 as_fn_error $? "no acceptable C compiler found in \$PATH
18007 See \`config.log' for more details" "$LINENO" 5; }
18008
18009 # Provide some information about the compiler.
18010 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
18011 set X $ac_compile
18012 ac_compiler=$2
18013 for ac_option in --version -v -V -qversion; do
18014 { { ac_try="$ac_compiler $ac_option >&5"
18015 case "(($ac_try" in
18016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18017 *) ac_try_echo=$ac_try;;
18018 esac
18019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18020 $as_echo "$ac_try_echo"; } >&5
18021 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18022 ac_status=$?
18023 if test -s conftest.err; then
18024 sed '10a\
18025 ... rest of stderr output deleted ...
18026 10q' conftest.err >conftest.er1
18027 cat conftest.er1 >&5
18028 fi
18029 rm -f conftest.er1 conftest.err
18030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18031 test $ac_status = 0; }
18032 done
18033
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
18035 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
18036 if ${ac_cv_c_compiler_gnu+:} false; then :
18037 $as_echo_n "(cached) " >&6
18038 else
18039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18040 /* end confdefs.h. */
18041
18042 int
18043 main ()
18044 {
18045 #ifndef __GNUC__
18046 choke me
18047 #endif
18048
18049 ;
18050 return 0;
18051 }
18052 _ACEOF
18053 if ac_fn_c_try_compile "$LINENO"; then :
18054 ac_compiler_gnu=yes
18055 else
18056 ac_compiler_gnu=no
18057 fi
18058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18059 ac_cv_c_compiler_gnu=$ac_compiler_gnu
18060
18061 fi
18062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
18063 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
18064 if test $ac_compiler_gnu = yes; then
18065 GCC=yes
18066 else
18067 GCC=
18068 fi
18069 ac_test_CFLAGS=${CFLAGS+set}
18070 ac_save_CFLAGS=$CFLAGS
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
18072 $as_echo_n "checking whether $CC accepts -g... " >&6; }
18073 if ${ac_cv_prog_cc_g+:} false; then :
18074 $as_echo_n "(cached) " >&6
18075 else
18076 ac_save_c_werror_flag=$ac_c_werror_flag
18077 ac_c_werror_flag=yes
18078 ac_cv_prog_cc_g=no
18079 CFLAGS="-g"
18080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18081 /* end confdefs.h. */
18082
18083 int
18084 main ()
18085 {
18086
18087 ;
18088 return 0;
18089 }
18090 _ACEOF
18091 if ac_fn_c_try_compile "$LINENO"; then :
18092 ac_cv_prog_cc_g=yes
18093 else
18094 CFLAGS=""
18095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18096 /* end confdefs.h. */
18097
18098 int
18099 main ()
18100 {
18101
18102 ;
18103 return 0;
18104 }
18105 _ACEOF
18106 if ac_fn_c_try_compile "$LINENO"; then :
18107
18108 else
18109 ac_c_werror_flag=$ac_save_c_werror_flag
18110 CFLAGS="-g"
18111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18112 /* end confdefs.h. */
18113
18114 int
18115 main ()
18116 {
18117
18118 ;
18119 return 0;
18120 }
18121 _ACEOF
18122 if ac_fn_c_try_compile "$LINENO"; then :
18123 ac_cv_prog_cc_g=yes
18124 fi
18125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18126 fi
18127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18128 fi
18129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18130 ac_c_werror_flag=$ac_save_c_werror_flag
18131 fi
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
18133 $as_echo "$ac_cv_prog_cc_g" >&6; }
18134 if test "$ac_test_CFLAGS" = set; then
18135 CFLAGS=$ac_save_CFLAGS
18136 elif test $ac_cv_prog_cc_g = yes; then
18137 if test "$GCC" = yes; then
18138 CFLAGS="-g -O2"
18139 else
18140 CFLAGS="-g"
18141 fi
18142 else
18143 if test "$GCC" = yes; then
18144 CFLAGS="-O2"
18145 else
18146 CFLAGS=
18147 fi
18148 fi
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
18150 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
18151 if ${ac_cv_prog_cc_c89+:} false; then :
18152 $as_echo_n "(cached) " >&6
18153 else
18154 ac_cv_prog_cc_c89=no
18155 ac_save_CC=$CC
18156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18157 /* end confdefs.h. */
18158 #include <stdarg.h>
18159 #include <stdio.h>
18160 struct stat;
18161 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
18162 struct buf { int x; };
18163 FILE * (*rcsopen) (struct buf *, struct stat *, int);
18164 static char *e (p, i)
18165 char **p;
18166 int i;
18167 {
18168 return p[i];
18169 }
18170 static char *f (char * (*g) (char **, int), char **p, ...)
18171 {
18172 char *s;
18173 va_list v;
18174 va_start (v,p);
18175 s = g (p, va_arg (v,int));
18176 va_end (v);
18177 return s;
18178 }
18179
18180 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
18181 function prototypes and stuff, but not '\xHH' hex character constants.
18182 These don't provoke an error unfortunately, instead are silently treated
18183 as 'x'. The following induces an error, until -std is added to get
18184 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
18185 array size at least. It's necessary to write '\x00'==0 to get something
18186 that's true only with -std. */
18187 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
18188
18189 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
18190 inside strings and character constants. */
18191 #define FOO(x) 'x'
18192 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
18193
18194 int test (int i, double x);
18195 struct s1 {int (*f) (int a);};
18196 struct s2 {int (*f) (double a);};
18197 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
18198 int argc;
18199 char **argv;
18200 int
18201 main ()
18202 {
18203 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
18204 ;
18205 return 0;
18206 }
18207 _ACEOF
18208 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
18209 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
18210 do
18211 CC="$ac_save_CC $ac_arg"
18212 if ac_fn_c_try_compile "$LINENO"; then :
18213 ac_cv_prog_cc_c89=$ac_arg
18214 fi
18215 rm -f core conftest.err conftest.$ac_objext
18216 test "x$ac_cv_prog_cc_c89" != "xno" && break
18217 done
18218 rm -f conftest.$ac_ext
18219 CC=$ac_save_CC
18220
18221 fi
18222 # AC_CACHE_VAL
18223 case "x$ac_cv_prog_cc_c89" in
18224 x)
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
18226 $as_echo "none needed" >&6; } ;;
18227 xno)
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
18229 $as_echo "unsupported" >&6; } ;;
18230 *)
18231 CC="$CC $ac_cv_prog_cc_c89"
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
18233 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
18234 esac
18235 if test "x$ac_cv_prog_cc_c89" != xno; then :
18236
18237 fi
18238
18239 ac_ext=c
18240 ac_cpp='$CPP $CPPFLAGS'
18241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18244
18245 depcc="$CC" am_compiler_list=
18246
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
18248 $as_echo_n "checking dependency style of $depcc... " >&6; }
18249 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
18250 $as_echo_n "(cached) " >&6
18251 else
18252 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
18253 # We make a subdir and do the tests there. Otherwise we can end up
18254 # making bogus files that we don't know about and never remove. For
18255 # instance it was reported that on HP-UX the gcc test will end up
18256 # making a dummy file named `D' -- because `-MD' means `put the output
18257 # in D'.
18258 rm -rf conftest.dir
18259 mkdir conftest.dir
18260 # Copy depcomp to subdir because otherwise we won't find it if we're
18261 # using a relative directory.
18262 cp "$am_depcomp" conftest.dir
18263 cd conftest.dir
18264 # We will build objects and dependencies in a subdirectory because
18265 # it helps to detect inapplicable dependency modes. For instance
18266 # both Tru64's cc and ICC support -MD to output dependencies as a
18267 # side effect of compilation, but ICC will put the dependencies in
18268 # the current directory while Tru64 will put them in the object
18269 # directory.
18270 mkdir sub
18271
18272 am_cv_CC_dependencies_compiler_type=none
18273 if test "$am_compiler_list" = ""; then
18274 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
18275 fi
18276 am__universal=false
18277 case " $depcc " in #(
18278 *\ -arch\ *\ -arch\ *) am__universal=true ;;
18279 esac
18280
18281 for depmode in $am_compiler_list; do
18282 # Setup a source with many dependencies, because some compilers
18283 # like to wrap large dependency lists on column 80 (with \), and
18284 # we should not choose a depcomp mode which is confused by this.
18285 #
18286 # We need to recreate these files for each test, as the compiler may
18287 # overwrite some of them when testing with obscure command lines.
18288 # This happens at least with the AIX C compiler.
18289 : > sub/conftest.c
18290 for i in 1 2 3 4 5 6; do
18291 echo '#include "conftst'$i'.h"' >> sub/conftest.c
18292 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
18293 # Solaris 8's {/usr,}/bin/sh.
18294 touch sub/conftst$i.h
18295 done
18296 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
18297
18298 # We check with `-c' and `-o' for the sake of the "dashmstdout"
18299 # mode. It turns out that the SunPro C++ compiler does not properly
18300 # handle `-M -o', and we need to detect this. Also, some Intel
18301 # versions had trouble with output in subdirs
18302 am__obj=sub/conftest.${OBJEXT-o}
18303 am__minus_obj="-o $am__obj"
18304 case $depmode in
18305 gcc)
18306 # This depmode causes a compiler race in universal mode.
18307 test "$am__universal" = false || continue
18308 ;;
18309 nosideeffect)
18310 # after this tag, mechanisms are not by side-effect, so they'll
18311 # only be used when explicitly requested
18312 if test "x$enable_dependency_tracking" = xyes; then
18313 continue
18314 else
18315 break
18316 fi
18317 ;;
18318 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
18319 # This compiler won't grok `-c -o', but also, the minuso test has
18320 # not run yet. These depmodes are late enough in the game, and
18321 # so weak that their functioning should not be impacted.
18322 am__obj=conftest.${OBJEXT-o}
18323 am__minus_obj=
18324 ;;
18325 none) break ;;
18326 esac
18327 if depmode=$depmode \
18328 source=sub/conftest.c object=$am__obj \
18329 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
18330 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
18331 >/dev/null 2>conftest.err &&
18332 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
18333 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
18334 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
18335 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
18336 # icc doesn't choke on unknown options, it will just issue warnings
18337 # or remarks (even with -Werror). So we grep stderr for any message
18338 # that says an option was ignored or not supported.
18339 # When given -MP, icc 7.0 and 7.1 complain thusly:
18340 # icc: Command line warning: ignoring option '-M'; no argument required
18341 # The diagnosis changed in icc 8.0:
18342 # icc: Command line remark: option '-MP' not supported
18343 if (grep 'ignoring option' conftest.err ||
18344 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
18345 am_cv_CC_dependencies_compiler_type=$depmode
18346 break
18347 fi
18348 fi
18349 done
18350
18351 cd ..
18352 rm -rf conftest.dir
18353 else
18354 am_cv_CC_dependencies_compiler_type=none
18355 fi
18356
18357 fi
18358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
18359 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
18360 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
18361
18362 if
18363 test "x$enable_dependency_tracking" != xno \
18364 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
18365 am__fastdepCC_TRUE=
18366 am__fastdepCC_FALSE='#'
18367 else
18368 am__fastdepCC_TRUE='#'
18369 am__fastdepCC_FALSE=
18370 fi
18371
18372
18373
18374
18375
18376
18377 # Check whether --with-xorg-module-dir was given.
18378 if test "${with_xorg_module_dir+set}" = set; then :
18379 withval=$with_xorg_module_dir; moduledir="$withval"
18380 else
18381 moduledir="$libdir/xorg/modules"
18382 fi
18383
18384 inputdir=${moduledir}/input
18385
18386
18387
18388 # Check whether --with-xorg-conf-dir was given.
18389 if test "${with_xorg_conf_dir+set}" = set; then :
18390 withval=$with_xorg_conf_dir; XORG_CONF_DIR="$withval"
18391 else
18392 XORG_CONF_DIR="`$PKG_CONFIG --variable=sysconfigdir xorg-server`"
18393 fi
18394
18395
18396 if test "x$XORG_CONF_DIR" != "x" && test "x$XORG_CONF_DIR" != "xno"; then
18397 HAS_XORG_CONF_DIR_TRUE=
18398 HAS_XORG_CONF_DIR_FALSE='#'
18399 else
18400 HAS_XORG_CONF_DIR_TRUE='#'
18401 HAS_XORG_CONF_DIR_FALSE=
18402 fi
18403
18404
18405
18406 # Check whether --with-hal-bin-dir was given.
18407 if test "${with_hal_bin_dir+set}" = set; then :
18408 withval=$with_hal_bin_dir; halbindir="$withval"
18409 else
18410 halbindir="$bindir"
18411 fi
18412
18413 HAL_BIN_DIR=${halbindir}
18414
18415
18416
18417 # Check whether --with-hal-callouts-dir was given.
18418 if test "${with_hal_callouts_dir+set}" = set; then :
18419 withval=$with_hal_callouts_dir; halcalloutsdir="$withval"
18420 else
18421 halcalloutsdir="$libdir/hal"
18422 fi
18423
18424 HAL_CALLOUTS_DIR=${halcalloutsdir}
18425
18426
18427
18428 # Check whether --with-hal-fdi-dir was given.
18429 if test "${with_hal_fdi_dir+set}" = set; then :
18430 withval=$with_hal_fdi_dir; halfdidir="$withval"
18431 else
18432 halfdidir="$datadir/hal/fdi/policy/20thirdparty"
18433 fi
18434
18435 HAL_FDI_DIR=${halfdidir}
18436
18437
18438
18439
18440 pkg_failed=no
18441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
18442 $as_echo_n "checking for UDEV... " >&6; }
18443
18444 if test -n "$UDEV_CFLAGS"; then
18445 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
18446 elif test -n "$PKG_CONFIG"; then
18447 if test -n "$PKG_CONFIG" && \
18448 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
18449 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
18450 ac_status=$?
18451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18452 test $ac_status = 0; }; then
18453 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
18454 test "x$?" != "x0" && pkg_failed=yes
18455 else
18456 pkg_failed=yes
18457 fi
18458 else
18459 pkg_failed=untried
18460 fi
18461 if test -n "$UDEV_LIBS"; then
18462 pkg_cv_UDEV_LIBS="$UDEV_LIBS"
18463 elif test -n "$PKG_CONFIG"; then
18464 if test -n "$PKG_CONFIG" && \
18465 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
18466 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
18467 ac_status=$?
18468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18469 test $ac_status = 0; }; then
18470 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
18471 test "x$?" != "x0" && pkg_failed=yes
18472 else
18473 pkg_failed=yes
18474 fi
18475 else
18476 pkg_failed=untried
18477 fi
18478
18479
18480
18481 if test $pkg_failed = yes; then
18482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18483 $as_echo "no" >&6; }
18484
18485 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18486 _pkg_short_errors_supported=yes
18487 else
18488 _pkg_short_errors_supported=no
18489 fi
18490 if test $_pkg_short_errors_supported = yes; then
18491 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
18492 else
18493 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
18494 fi
18495 # Put the nasty error message in config.log where it belongs
18496 echo "$UDEV_PKG_ERRORS" >&5
18497
18498 UDEV_RULES_DIR=no
18499 elif test $pkg_failed = untried; then
18500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18501 $as_echo "no" >&6; }
18502 UDEV_RULES_DIR=no
18503 else
18504 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
18505 UDEV_LIBS=$pkg_cv_UDEV_LIBS
18506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18507 $as_echo "yes" >&6; }
18508 UDEV_RULES_DIR="`$PKG_CONFIG --variable=udevdir udev`/rules.d"
18509 fi
18510
18511
18512 # Check whether --with-udev-rules-dir was given.
18513 if test "${with_udev_rules_dir+set}" = set; then :
18514 withval=$with_udev_rules_dir; UDEV_RULES_DIR="$withval"
18515 fi
18516
18517
18518 if test "x$UDEV_RULES_DIR" != "xno"; then
18519 HAS_UDEV_RULES_DIR_TRUE=
18520 HAS_UDEV_RULES_DIR_FALSE='#'
18521 else
18522 HAS_UDEV_RULES_DIR_TRUE='#'
18523 HAS_UDEV_RULES_DIR_FALSE=
18524 fi
18525
18526
18527 # Checks for extensions
18528
18529
18530 SAVE_CFLAGS="$CFLAGS"
18531 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18533 /* end confdefs.h. */
18534
18535 #include "xorg-server.h"
18536 #if !defined RANDR
18537 #error RANDR not defined
18538 #endif
18539
18540 int
18541 main ()
18542 {
18543
18544 ;
18545 return 0;
18546 }
18547 _ACEOF
18548 if ac_fn_c_try_compile "$LINENO"; then :
18549 _EXT_CHECK=yes
18550 else
18551 _EXT_CHECK=no
18552 fi
18553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18554 CFLAGS="$SAVE_CFLAGS"
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
18556 $as_echo_n "checking if RANDR is defined... " >&6; }
18557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18558 $as_echo "$_EXT_CHECK" >&6; }
18559 if test "$_EXT_CHECK" != no; then
18560 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
18561 fi
18562
18563
18564
18565 SAVE_CFLAGS="$CFLAGS"
18566 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18568 /* end confdefs.h. */
18569
18570 #include "xorg-server.h"
18571 #if !defined XINPUT
18572 #error XINPUT not defined
18573 #endif
18574
18575 int
18576 main ()
18577 {
18578
18579 ;
18580 return 0;
18581 }
18582 _ACEOF
18583 if ac_fn_c_try_compile "$LINENO"; then :
18584 _EXT_CHECK=yes
18585 else
18586 _EXT_CHECK=no
18587 fi
18588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18589 CFLAGS="$SAVE_CFLAGS"
18590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XINPUT is defined" >&5
18591 $as_echo_n "checking if XINPUT is defined... " >&6; }
18592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18593 $as_echo "$_EXT_CHECK" >&6; }
18594 if test "$_EXT_CHECK" != no; then
18595 REQUIRED_MODULES="$REQUIRED_MODULES inputproto"
18596 fi
18597
18598
18599 # Checks for pkg-config packages
18600
18601 pkg_failed=no
18602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18603 $as_echo_n "checking for XORG... " >&6; }
18604
18605 if test -n "$XORG_CFLAGS"; then
18606 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18607 elif test -n "$PKG_CONFIG"; then
18608 if test -n "$PKG_CONFIG" && \
18609 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.1 xproto \$REQUIRED_MODULES\""; } >&5
18610 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES") 2>&5
18611 ac_status=$?
18612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18613 test $ac_status = 0; }; then
18614 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES" 2>/dev/null`
18615 test "x$?" != "x0" && pkg_failed=yes
18616 else
18617 pkg_failed=yes
18618 fi
18619 else
18620 pkg_failed=untried
18621 fi
18622 if test -n "$XORG_LIBS"; then
18623 pkg_cv_XORG_LIBS="$XORG_LIBS"
18624 elif test -n "$PKG_CONFIG"; then
18625 if test -n "$PKG_CONFIG" && \
18626 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.1 xproto \$REQUIRED_MODULES\""; } >&5
18627 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES") 2>&5
18628 ac_status=$?
18629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18630 test $ac_status = 0; }; then
18631 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES" 2>/dev/null`
18632 test "x$?" != "x0" && pkg_failed=yes
18633 else
18634 pkg_failed=yes
18635 fi
18636 else
18637 pkg_failed=untried
18638 fi
18639
18640
18641
18642 if test $pkg_failed = yes; then
18643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18644 $as_echo "no" >&6; }
18645
18646 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18647 _pkg_short_errors_supported=yes
18648 else
18649 _pkg_short_errors_supported=no
18650 fi
18651 if test $_pkg_short_errors_supported = yes; then
18652 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES" 2>&1`
18653 else
18654 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES" 2>&1`
18655 fi
18656 # Put the nasty error message in config.log where it belongs
18657 echo "$XORG_PKG_ERRORS" >&5
18658
18659 as_fn_error $? "Package requirements (xorg-server >= 1.0.1 xproto $REQUIRED_MODULES) were not met:
18660
18661 $XORG_PKG_ERRORS
18662
18663 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18664 installed software in a non-standard prefix.
18665
18666 Alternatively, you may set the environment variables XORG_CFLAGS
18667 and XORG_LIBS to avoid the need to call pkg-config.
18668 See the pkg-config man page for more details." "$LINENO" 5
18669 elif test $pkg_failed = untried; then
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18671 $as_echo "no" >&6; }
18672 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18674 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18675 is in your PATH or set the PKG_CONFIG environment variable to the full
18676 path to pkg-config.
18677
18678 Alternatively, you may set the environment variables XORG_CFLAGS
18679 and XORG_LIBS to avoid the need to call pkg-config.
18680 See the pkg-config man page for more details.
18681
18682 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18683 See \`config.log' for more details" "$LINENO" 5; }
18684 else
18685 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18686 XORG_LIBS=$pkg_cv_XORG_LIBS
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18688 $as_echo "yes" >&6; }
18689
18690 fi
18691
18692 if test -n "$PKG_CONFIG" && \
18693 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0\""; } >&5
18694 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0") 2>&5
18695 ac_status=$?
18696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18697 test $ac_status = 0; }; then
18698
18699 $as_echo "#define HAVE_XORG_SERVER_1_1_0 1" >>confdefs.h
18700
18701 fi
18702
18703 if test -n "$PKG_CONFIG" && \
18704 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server > 1.4.99\""; } >&5
18705 ($PKG_CONFIG --exists --print-errors "xorg-server > 1.4.99") 2>&5
18706 ac_status=$?
18707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18708 test $ac_status = 0; }; then
18709
18710 $as_echo "#define HAVE_XORG_SERVER_1_5_0 1" >>confdefs.h
18711
18712 fi
18713
18714 if test -n "$PKG_CONFIG" && \
18715 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.3.99.0 xorg-server <= 1.4.0.90\""; } >&5
18716 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.3.99.0 xorg-server <= 1.4.0.90") 2>&5
18717 ac_status=$?
18718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18719 test $ac_status = 0; }; then
18720
18721 $as_echo "#define CALL_CONVERSION_PROC 1" >>confdefs.h
18722
18723 fi
18724 if test -n "$PKG_CONFIG" && \
18725 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server > 1.4.0.90\""; } >&5
18726 ($PKG_CONFIG --exists --print-errors "xorg-server > 1.4.0.90") 2>&5
18727 ac_status=$?
18728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18729 test $ac_status = 0; }; then
18730
18731 $as_echo "#define ABS_VALUATOR_AXES 1" >>confdefs.h
18732
18733 fi
18734 if test -n "$PKG_CONFIG" && \
18735 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6.0\""; } >&5
18736 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6.0") 2>&5
18737 ac_status=$?
18738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18739 test $ac_status = 0; }; then
18740
18741 $as_echo "#define NO_MOUSE_MODULE 1" >>confdefs.h
18742
18743 fi
18744
18745 # Checks for libraries.
18746
18747 # Checks for header files.
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18749 $as_echo_n "checking for ANSI C header files... " >&6; }
18750 if ${ac_cv_header_stdc+:} false; then :
18751 $as_echo_n "(cached) " >&6
18752 else
18753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18754 /* end confdefs.h. */
18755 #include <stdlib.h>
18756 #include <stdarg.h>
18757 #include <string.h>
18758 #include <float.h>
18759
18760 int
18761 main ()
18762 {
18763
18764 ;
18765 return 0;
18766 }
18767 _ACEOF
18768 if ac_fn_c_try_compile "$LINENO"; then :
18769 ac_cv_header_stdc=yes
18770 else
18771 ac_cv_header_stdc=no
18772 fi
18773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18774
18775 if test $ac_cv_header_stdc = yes; then
18776 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18778 /* end confdefs.h. */
18779 #include <string.h>
18780
18781 _ACEOF
18782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18783 $EGREP "memchr" >/dev/null 2>&1; then :
18784
18785 else
18786 ac_cv_header_stdc=no
18787 fi
18788 rm -f conftest*
18789
18790 fi
18791
18792 if test $ac_cv_header_stdc = yes; then
18793 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18795 /* end confdefs.h. */
18796 #include <stdlib.h>
18797
18798 _ACEOF
18799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18800 $EGREP "free" >/dev/null 2>&1; then :
18801
18802 else
18803 ac_cv_header_stdc=no
18804 fi
18805 rm -f conftest*
18806
18807 fi
18808
18809 if test $ac_cv_header_stdc = yes; then
18810 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18811 if test "$cross_compiling" = yes; then :
18812 :
18813 else
18814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18815 /* end confdefs.h. */
18816 #include <ctype.h>
18817 #include <stdlib.h>
18818 #if ((' ' & 0x0FF) == 0x020)
18819 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18820 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18821 #else
18822 # define ISLOWER(c) \
18823 (('a' <= (c) && (c) <= 'i') \
18824 || ('j' <= (c) && (c) <= 'r') \
18825 || ('s' <= (c) && (c) <= 'z'))
18826 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18827 #endif
18828
18829 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18830 int
18831 main ()
18832 {
18833 int i;
18834 for (i = 0; i < 256; i++)
18835 if (XOR (islower (i), ISLOWER (i))
18836 || toupper (i) != TOUPPER (i))
18837 return 2;
18838 return 0;
18839 }
18840 _ACEOF
18841 if ac_fn_c_try_run "$LINENO"; then :
18842
18843 else
18844 ac_cv_header_stdc=no
18845 fi
18846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18847 conftest.$ac_objext conftest.beam conftest.$ac_ext
18848 fi
18849
18850 fi
18851 fi
18852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18853 $as_echo "$ac_cv_header_stdc" >&6; }
18854 if test $ac_cv_header_stdc = yes; then
18855
18856 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
18857
18858 fi
18859
18860
18861 ac_config_files="$ac_config_files Makefile shared/Makefile src/Makefile tools/Makefile fdi/Makefile man/Makefile"
18862
18863 cat >confcache <<\_ACEOF
18864 # This file is a shell script that caches the results of configure
18865 # tests run on this system so they can be shared between configure
18866 # scripts and configure runs, see configure's option --config-cache.
18867 # It is not useful on other systems. If it contains results you don't
18868 # want to keep, you may remove or edit it.
18869 #
18870 # config.status only pays attention to the cache file if you give it
18871 # the --recheck option to rerun configure.
18872 #
18873 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18874 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18875 # following values.
18876
18877 _ACEOF
18878
18879 # The following way of writing the cache mishandles newlines in values,
18880 # but we know of no workaround that is simple, portable, and efficient.
18881 # So, we kill variables containing newlines.
18882 # Ultrix sh set writes to stderr and can't be redirected directly,
18883 # and sets the high bit in the cache file unless we assign to the vars.
18884 (
18885 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18886 eval ac_val=\$$ac_var
18887 case $ac_val in #(
18888 *${as_nl}*)
18889 case $ac_var in #(
18890 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18891 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18892 esac
18893 case $ac_var in #(
18894 _ | IFS | as_nl) ;; #(
18895 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18896 *) { eval $ac_var=; unset $ac_var;} ;;
18897 esac ;;
18898 esac
18899 done
18900
18901 (set) 2>&1 |
18902 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18903 *${as_nl}ac_space=\ *)
18904 # `set' does not quote correctly, so add quotes: double-quote
18905 # substitution turns \\\\ into \\, and sed turns \\ into \.
18906 sed -n \
18907 "s/'/'\\\\''/g;
18908 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18909 ;; #(
18910 *)
18911 # `set' quotes correctly as required by POSIX, so do not add quotes.
18912 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18913 ;;
18914 esac |
18915 sort
18916 ) |
18917 sed '
18918 /^ac_cv_env_/b end
18919 t clear
18920 :clear
18921 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18922 t end
18923 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18924 :end' >>confcache
18925 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18926 if test -w "$cache_file"; then
18927 if test "x$cache_file" != "x/dev/null"; then
18928 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18929 $as_echo "$as_me: updating cache $cache_file" >&6;}
18930 if test ! -f "$cache_file" || test -h "$cache_file"; then
18931 cat confcache >"$cache_file"
18932 else
18933 case $cache_file in #(
18934 */* | ?:*)
18935 mv -f confcache "$cache_file"$$ &&
18936 mv -f "$cache_file"$$ "$cache_file" ;; #(
18937 *)
18938 mv -f confcache "$cache_file" ;;
18939 esac
18940 fi
18941 fi
18942 else
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18944 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18945 fi
18946 fi
18947 rm -f confcache
18948
18949 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18950 # Let make expand exec_prefix.
18951 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18952
18953 DEFS=-DHAVE_CONFIG_H
18954
18955 ac_libobjs=
18956 ac_ltlibobjs=
18957 U=
18958 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18959 # 1. Remove the extension, and $U if already installed.
18960 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18961 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18962 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18963 # will be set to the directory where LIBOBJS objects are built.
18964 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18965 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18966 done
18967 LIBOBJS=$ac_libobjs
18968
18969 LTLIBOBJS=$ac_ltlibobjs
18970
18971
18972 if test -n "$EXEEXT"; then
18973 am__EXEEXT_TRUE=
18974 am__EXEEXT_FALSE='#'
18975 else
18976 am__EXEEXT_TRUE='#'
18977 am__EXEEXT_FALSE=
18978 fi
18979
18980 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18981 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18983 fi
18984 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18985 as_fn_error $? "conditional \"AMDEP\" was never defined.
18986 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18987 fi
18988 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18989 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18990 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18991 fi
18992 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18993 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18995 fi
18996 if test -z "${HAS_XORG_CONF_DIR_TRUE}" && test -z "${HAS_XORG_CONF_DIR_FALSE}"; then
18997 as_fn_error $? "conditional \"HAS_XORG_CONF_DIR\" was never defined.
18998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18999 fi
19000 if test -z "${HAS_UDEV_RULES_DIR_TRUE}" && test -z "${HAS_UDEV_RULES_DIR_FALSE}"; then
19001 as_fn_error $? "conditional \"HAS_UDEV_RULES_DIR\" was never defined.
19002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19003 fi
19004
19005 : "${CONFIG_STATUS=./config.status}"
19006 ac_write_fail=0
19007 ac_clean_files_save=$ac_clean_files
19008 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19009 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19010 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19011 as_write_fail=0
19012 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19013 #! $SHELL
19014 # Generated by $as_me.
19015 # Run this file to recreate the current configuration.
19016 # Compiler output produced by configure, useful for debugging
19017 # configure, is in config.log if it exists.
19018
19019 debug=false
19020 ac_cs_recheck=false
19021 ac_cs_silent=false
19022
19023 SHELL=\${CONFIG_SHELL-$SHELL}
19024 export SHELL
19025 _ASEOF
19026 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19027 ## -------------------- ##
19028 ## M4sh Initialization. ##
19029 ## -------------------- ##
19030
19031 # Be more Bourne compatible
19032 DUALCASE=1; export DUALCASE # for MKS sh
19033 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19034 emulate sh
19035 NULLCMD=:
19036 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19037 # is contrary to our usage. Disable this feature.
19038 alias -g '${1+"$@"}'='"$@"'
19039 setopt NO_GLOB_SUBST
19040 else
19041 case `(set -o) 2>/dev/null` in #(
19042 *posix*) :
19043 set -o posix ;; #(
19044 *) :
19045 ;;
19046 esac
19047 fi
19048
19049
19050 as_nl='
19051 '
19052 export as_nl
19053 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19054 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19055 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19056 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19057 # Prefer a ksh shell builtin over an external printf program on Solaris,
19058 # but without wasting forks for bash or zsh.
19059 if test -z "$BASH_VERSION$ZSH_VERSION" \
19060 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19061 as_echo='print -r --'
19062 as_echo_n='print -rn --'
19063 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19064 as_echo='printf %s\n'
19065 as_echo_n='printf %s'
19066 else
19067 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19068 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19069 as_echo_n='/usr/ucb/echo -n'
19070 else
19071 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19072 as_echo_n_body='eval
19073 arg=$1;
19074 case $arg in #(
19075 *"$as_nl"*)
19076 expr "X$arg" : "X\\(.*\\)$as_nl";
19077 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19078 esac;
19079 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19080 '
19081 export as_echo_n_body
19082 as_echo_n='sh -c $as_echo_n_body as_echo'
19083 fi
19084 export as_echo_body
19085 as_echo='sh -c $as_echo_body as_echo'
19086 fi
19087
19088 # The user is always right.
19089 if test "${PATH_SEPARATOR+set}" != set; then
19090 PATH_SEPARATOR=:
19091 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19092 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19093 PATH_SEPARATOR=';'
19094 }
19095 fi
19096
19097
19098 # IFS
19099 # We need space, tab and new line, in precisely that order. Quoting is
19100 # there to prevent editors from complaining about space-tab.
19101 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19102 # splitting by setting IFS to empty value.)
19103 IFS=" "" $as_nl"
19104
19105 # Find who we are. Look in the path if we contain no directory separator.
19106 as_myself=
19107 case $0 in #((
19108 *[\\/]* ) as_myself=$0 ;;
19109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19110 for as_dir in $PATH
19111 do
19112 IFS=$as_save_IFS
19113 test -z "$as_dir" && as_dir=.
19114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19115 done
19116 IFS=$as_save_IFS
19117
19118 ;;
19119 esac
19120 # We did not find ourselves, most probably we were run as `sh COMMAND'
19121 # in which case we are not to be found in the path.
19122 if test "x$as_myself" = x; then
19123 as_myself=$0
19124 fi
19125 if test ! -f "$as_myself"; then
19126 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19127 exit 1
19128 fi
19129
19130 # Unset variables that we do not need and which cause bugs (e.g. in
19131 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19132 # suppresses any "Segmentation fault" message there. '((' could
19133 # trigger a bug in pdksh 5.2.14.
19134 for as_var in BASH_ENV ENV MAIL MAILPATH
19135 do eval test x\${$as_var+set} = xset \
19136 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19137 done
19138 PS1='$ '
19139 PS2='> '
19140 PS4='+ '
19141
19142 # NLS nuisances.
19143 LC_ALL=C
19144 export LC_ALL
19145 LANGUAGE=C
19146 export LANGUAGE
19147
19148 # CDPATH.
19149 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19150
19151
19152 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19153 # ----------------------------------------
19154 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19155 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19156 # script with STATUS, using 1 if that was 0.
19157 as_fn_error ()
19158 {
19159 as_status=$1; test $as_status -eq 0 && as_status=1
19160 if test "$4"; then
19161 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19162 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19163 fi
19164 $as_echo "$as_me: error: $2" >&2
19165 as_fn_exit $as_status
19166 } # as_fn_error
19167
19168
19169 # as_fn_set_status STATUS
19170 # -----------------------
19171 # Set $? to STATUS, without forking.
19172 as_fn_set_status ()
19173 {
19174 return $1
19175 } # as_fn_set_status
19176
19177 # as_fn_exit STATUS
19178 # -----------------
19179 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19180 as_fn_exit ()
19181 {
19182 set +e
19183 as_fn_set_status $1
19184 exit $1
19185 } # as_fn_exit
19186
19187 # as_fn_unset VAR
19188 # ---------------
19189 # Portably unset VAR.
19190 as_fn_unset ()
19191 {
19192 { eval $1=; unset $1;}
19193 }
19194 as_unset=as_fn_unset
19195 # as_fn_append VAR VALUE
19196 # ----------------------
19197 # Append the text in VALUE to the end of the definition contained in VAR. Take
19198 # advantage of any shell optimizations that allow amortized linear growth over
19199 # repeated appends, instead of the typical quadratic growth present in naive
19200 # implementations.
19201 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19202 eval 'as_fn_append ()
19203 {
19204 eval $1+=\$2
19205 }'
19206 else
19207 as_fn_append ()
19208 {
19209 eval $1=\$$1\$2
19210 }
19211 fi # as_fn_append
19212
19213 # as_fn_arith ARG...
19214 # ------------------
19215 # Perform arithmetic evaluation on the ARGs, and store the result in the
19216 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19217 # must be portable across $(()) and expr.
19218 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19219 eval 'as_fn_arith ()
19220 {
19221 as_val=$(( $* ))
19222 }'
19223 else
19224 as_fn_arith ()
19225 {
19226 as_val=`expr "$@" || test $? -eq 1`
19227 }
19228 fi # as_fn_arith
19229
19230
19231 if expr a : '\(a\)' >/dev/null 2>&1 &&
19232 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19233 as_expr=expr
19234 else
19235 as_expr=false
19236 fi
19237
19238 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19239 as_basename=basename
19240 else
19241 as_basename=false
19242 fi
19243
19244 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19245 as_dirname=dirname
19246 else
19247 as_dirname=false
19248 fi
19249
19250 as_me=`$as_basename -- "$0" ||
19251 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19252 X"$0" : 'X\(//\)$' \| \
19253 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19254 $as_echo X/"$0" |
19255 sed '/^.*\/\([^/][^/]*\)\/*$/{
19256 s//\1/
19257 q
19258 }
19259 /^X\/\(\/\/\)$/{
19260 s//\1/
19261 q
19262 }
19263 /^X\/\(\/\).*/{
19264 s//\1/
19265 q
19266 }
19267 s/.*/./; q'`
19268
19269 # Avoid depending upon Character Ranges.
19270 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19271 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19272 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19273 as_cr_digits='0123456789'
19274 as_cr_alnum=$as_cr_Letters$as_cr_digits
19275
19276 ECHO_C= ECHO_N= ECHO_T=
19277 case `echo -n x` in #(((((
19278 -n*)
19279 case `echo 'xy\c'` in
19280 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19281 xy) ECHO_C='\c';;
19282 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19283 ECHO_T=' ';;
19284 esac;;
19285 *)
19286 ECHO_N='-n';;
19287 esac
19288
19289 rm -f conf$$ conf$$.exe conf$$.file
19290 if test -d conf$$.dir; then
19291 rm -f conf$$.dir/conf$$.file
19292 else
19293 rm -f conf$$.dir
19294 mkdir conf$$.dir 2>/dev/null
19295 fi
19296 if (echo >conf$$.file) 2>/dev/null; then
19297 if ln -s conf$$.file conf$$ 2>/dev/null; then
19298 as_ln_s='ln -s'
19299 # ... but there are two gotchas:
19300 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19301 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19302 # In both cases, we have to default to `cp -pR'.
19303 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19304 as_ln_s='cp -pR'
19305 elif ln conf$$.file conf$$ 2>/dev/null; then
19306 as_ln_s=ln
19307 else
19308 as_ln_s='cp -pR'
19309 fi
19310 else
19311 as_ln_s='cp -pR'
19312 fi
19313 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19314 rmdir conf$$.dir 2>/dev/null
19315
19316
19317 # as_fn_mkdir_p
19318 # -------------
19319 # Create "$as_dir" as a directory, including parents if necessary.
19320 as_fn_mkdir_p ()
19321 {
19322
19323 case $as_dir in #(
19324 -*) as_dir=./$as_dir;;
19325 esac
19326 test -d "$as_dir" || eval $as_mkdir_p || {
19327 as_dirs=
19328 while :; do
19329 case $as_dir in #(
19330 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19331 *) as_qdir=$as_dir;;
19332 esac
19333 as_dirs="'$as_qdir' $as_dirs"
19334 as_dir=`$as_dirname -- "$as_dir" ||
19335 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19336 X"$as_dir" : 'X\(//\)[^/]' \| \
19337 X"$as_dir" : 'X\(//\)$' \| \
19338 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19339 $as_echo X"$as_dir" |
19340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19341 s//\1/
19342 q
19343 }
19344 /^X\(\/\/\)[^/].*/{
19345 s//\1/
19346 q
19347 }
19348 /^X\(\/\/\)$/{
19349 s//\1/
19350 q
19351 }
19352 /^X\(\/\).*/{
19353 s//\1/
19354 q
19355 }
19356 s/.*/./; q'`
19357 test -d "$as_dir" && break
19358 done
19359 test -z "$as_dirs" || eval "mkdir $as_dirs"
19360 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19361
19362
19363 } # as_fn_mkdir_p
19364 if mkdir -p . 2>/dev/null; then
19365 as_mkdir_p='mkdir -p "$as_dir"'
19366 else
19367 test -d ./-p && rmdir ./-p
19368 as_mkdir_p=false
19369 fi
19370
19371
19372 # as_fn_executable_p FILE
19373 # -----------------------
19374 # Test if FILE is an executable regular file.
19375 as_fn_executable_p ()
19376 {
19377 test -f "$1" && test -x "$1"
19378 } # as_fn_executable_p
19379 as_test_x='test -x'
19380 as_executable_p=as_fn_executable_p
19381
19382 # Sed expression to map a string onto a valid CPP name.
19383 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19384
19385 # Sed expression to map a string onto a valid variable name.
19386 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19387
19388
19389 exec 6>&1
19390 ## ----------------------------------- ##
19391 ## Main body of $CONFIG_STATUS script. ##
19392 ## ----------------------------------- ##
19393 _ASEOF
19394 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19395
19396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19397 # Save the log message, to keep $0 and so on meaningful, and to
19398 # report actual input values of CONFIG_FILES etc. instead of their
19399 # values after options handling.
19400 ac_log="
19401 This file was extended by xf86-input-vmmouse $as_me 13.0.0, which was
19402 generated by GNU Autoconf 2.69. Invocation command line was
19403
19404 CONFIG_FILES = $CONFIG_FILES
19405 CONFIG_HEADERS = $CONFIG_HEADERS
19406 CONFIG_LINKS = $CONFIG_LINKS
19407 CONFIG_COMMANDS = $CONFIG_COMMANDS
19408 $ $0 $@
19409
19410 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19411 "
19412
19413 _ACEOF
19414
19415 case $ac_config_files in *"
19416 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19417 esac
19418
19419 case $ac_config_headers in *"
19420 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19421 esac
19422
19423
19424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19425 # Files that config.status was made for.
19426 config_files="$ac_config_files"
19427 config_headers="$ac_config_headers"
19428 config_commands="$ac_config_commands"
19429
19430 _ACEOF
19431
19432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19433 ac_cs_usage="\
19434 \`$as_me' instantiates files and other configuration actions
19435 from templates according to the current configuration. Unless the files
19436 and actions are specified as TAGs, all are instantiated by default.
19437
19438 Usage: $0 [OPTION]... [TAG]...
19439
19440 -h, --help print this help, then exit
19441 -V, --version print version number and configuration settings, then exit
19442 --config print configuration, then exit
19443 -q, --quiet, --silent
19444 do not print progress messages
19445 -d, --debug don't remove temporary files
19446 --recheck update $as_me by reconfiguring in the same conditions
19447 --file=FILE[:TEMPLATE]
19448 instantiate the configuration file FILE
19449 --header=FILE[:TEMPLATE]
19450 instantiate the configuration header FILE
19451
19452 Configuration files:
19453 $config_files
19454
19455 Configuration headers:
19456 $config_headers
19457
19458 Configuration commands:
19459 $config_commands
19460
19461 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19462
19463 _ACEOF
19464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19465 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19466 ac_cs_version="\\
19467 xf86-input-vmmouse config.status 13.0.0
19468 configured by $0, generated by GNU Autoconf 2.69,
19469 with options \\"\$ac_cs_config\\"
19470
19471 Copyright (C) 2012 Free Software Foundation, Inc.
19472 This config.status script is free software; the Free Software Foundation
19473 gives unlimited permission to copy, distribute and modify it."
19474
19475 ac_pwd='$ac_pwd'
19476 srcdir='$srcdir'
19477 INSTALL='$INSTALL'
19478 MKDIR_P='$MKDIR_P'
19479 AWK='$AWK'
19480 test -n "\$AWK" || AWK=awk
19481 _ACEOF
19482
19483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19484 # The default lists apply if the user does not specify any file.
19485 ac_need_defaults=:
19486 while test $# != 0
19487 do
19488 case $1 in
19489 --*=?*)
19490 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19491 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19492 ac_shift=:
19493 ;;
19494 --*=)
19495 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19496 ac_optarg=
19497 ac_shift=:
19498 ;;
19499 *)
19500 ac_option=$1
19501 ac_optarg=$2
19502 ac_shift=shift
19503 ;;
19504 esac
19505
19506 case $ac_option in
19507 # Handling of the options.
19508 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19509 ac_cs_recheck=: ;;
19510 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19511 $as_echo "$ac_cs_version"; exit ;;
19512 --config | --confi | --conf | --con | --co | --c )
19513 $as_echo "$ac_cs_config"; exit ;;
19514 --debug | --debu | --deb | --de | --d | -d )
19515 debug=: ;;
19516 --file | --fil | --fi | --f )
19517 $ac_shift
19518 case $ac_optarg in
19519 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19520 '') as_fn_error $? "missing file argument" ;;
19521 esac
19522 as_fn_append CONFIG_FILES " '$ac_optarg'"
19523 ac_need_defaults=false;;
19524 --header | --heade | --head | --hea )
19525 $ac_shift
19526 case $ac_optarg in
19527 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19528 esac
19529 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19530 ac_need_defaults=false;;
19531 --he | --h)
19532 # Conflict between --help and --header
19533 as_fn_error $? "ambiguous option: \`$1'
19534 Try \`$0 --help' for more information.";;
19535 --help | --hel | -h )
19536 $as_echo "$ac_cs_usage"; exit ;;
19537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19538 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19539 ac_cs_silent=: ;;
19540
19541 # This is an error.
19542 -*) as_fn_error $? "unrecognized option: \`$1'
19543 Try \`$0 --help' for more information." ;;
19544
19545 *) as_fn_append ac_config_targets " $1"
19546 ac_need_defaults=false ;;
19547
19548 esac
19549 shift
19550 done
19551
19552 ac_configure_extra_args=
19553
19554 if $ac_cs_silent; then
19555 exec 6>/dev/null
19556 ac_configure_extra_args="$ac_configure_extra_args --silent"
19557 fi
19558
19559 _ACEOF
19560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19561 if \$ac_cs_recheck; then
19562 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19563 shift
19564 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19565 CONFIG_SHELL='$SHELL'
19566 export CONFIG_SHELL
19567 exec "\$@"
19568 fi
19569
19570 _ACEOF
19571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19572 exec 5>>config.log
19573 {
19574 echo
19575 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19576 ## Running $as_me. ##
19577 _ASBOX
19578 $as_echo "$ac_log"
19579 } >&5
19580
19581 _ACEOF
19582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19583 #
19584 # INIT-COMMANDS
19585 #
19586 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19587
19588
19589 # The HP-UX ksh and POSIX shell print the target directory to stdout
19590 # if CDPATH is set.
19591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19592
19593 sed_quote_subst='$sed_quote_subst'
19594 double_quote_subst='$double_quote_subst'
19595 delay_variable_subst='$delay_variable_subst'
19596 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19597 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19598 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19599 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19600 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19601 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19602 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19603 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19604 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19605 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19606 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19607 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19608 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19609 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19610 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19611 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19612 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19613 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19614 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19615 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19616 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19617 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19618 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19619 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19620 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19621 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19622 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19623 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19624 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19625 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19626 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19627 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19628 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19629 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19630 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19631 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19632 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19633 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19634 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19635 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19636 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19637 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19638 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19639 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19640 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19641 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19642 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19643 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19644 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19645 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19646 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19647 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19648 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19649 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19650 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19651 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19652 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"`'
19653 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19654 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19655 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19656 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19657 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19658 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19659 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19660 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19661 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19662 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19663 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19664 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19665 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19666 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19667 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19668 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19669 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19670 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19671 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19672 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19673 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19674 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19675 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19676 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19677 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19678 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19679 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19680 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19681 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19682 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19683 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19684 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19685 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19686 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19687 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19688 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19689 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19690 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19691 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19692 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19693 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19694 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19695 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19696 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19697 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19698 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19699 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19700 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19701 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19702 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19703 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19704 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19705 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19706 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19707 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19708 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19709 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19710 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19711 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19712 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19713 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19714 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19715 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19716 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19717 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19718 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19719 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19720 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19721 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19722 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19723 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19724 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19725 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19726
19727 LTCC='$LTCC'
19728 LTCFLAGS='$LTCFLAGS'
19729 compiler='$compiler_DEFAULT'
19730
19731 # A function that is used when there is no print builtin or printf.
19732 func_fallback_echo ()
19733 {
19734 eval 'cat <<_LTECHO_EOF
19735 \$1
19736 _LTECHO_EOF'
19737 }
19738
19739 # Quote evaled strings.
19740 for var in SHELL \
19741 ECHO \
19742 PATH_SEPARATOR \
19743 SED \
19744 GREP \
19745 EGREP \
19746 FGREP \
19747 LD \
19748 NM \
19749 LN_S \
19750 lt_SP2NL \
19751 lt_NL2SP \
19752 reload_flag \
19753 OBJDUMP \
19754 deplibs_check_method \
19755 file_magic_cmd \
19756 file_magic_glob \
19757 want_nocaseglob \
19758 DLLTOOL \
19759 sharedlib_from_linklib_cmd \
19760 AR \
19761 AR_FLAGS \
19762 archiver_list_spec \
19763 STRIP \
19764 RANLIB \
19765 CC \
19766 CFLAGS \
19767 compiler \
19768 lt_cv_sys_global_symbol_pipe \
19769 lt_cv_sys_global_symbol_to_cdecl \
19770 lt_cv_sys_global_symbol_to_c_name_address \
19771 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19772 nm_file_list_spec \
19773 lt_prog_compiler_no_builtin_flag \
19774 lt_prog_compiler_pic \
19775 lt_prog_compiler_wl \
19776 lt_prog_compiler_static \
19777 lt_cv_prog_compiler_c_o \
19778 need_locks \
19779 MANIFEST_TOOL \
19780 DSYMUTIL \
19781 NMEDIT \
19782 LIPO \
19783 OTOOL \
19784 OTOOL64 \
19785 shrext_cmds \
19786 export_dynamic_flag_spec \
19787 whole_archive_flag_spec \
19788 compiler_needs_object \
19789 with_gnu_ld \
19790 allow_undefined_flag \
19791 no_undefined_flag \
19792 hardcode_libdir_flag_spec \
19793 hardcode_libdir_separator \
19794 exclude_expsyms \
19795 include_expsyms \
19796 file_list_spec \
19797 variables_saved_for_relink \
19798 libname_spec \
19799 library_names_spec \
19800 soname_spec \
19801 install_override_mode \
19802 finish_eval \
19803 old_striplib \
19804 striplib; do
19805 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19806 *[\\\\\\\`\\"\\\$]*)
19807 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19808 ;;
19809 *)
19810 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19811 ;;
19812 esac
19813 done
19814
19815 # Double-quote double-evaled strings.
19816 for var in reload_cmds \
19817 old_postinstall_cmds \
19818 old_postuninstall_cmds \
19819 old_archive_cmds \
19820 extract_expsyms_cmds \
19821 old_archive_from_new_cmds \
19822 old_archive_from_expsyms_cmds \
19823 archive_cmds \
19824 archive_expsym_cmds \
19825 module_cmds \
19826 module_expsym_cmds \
19827 export_symbols_cmds \
19828 prelink_cmds \
19829 postlink_cmds \
19830 postinstall_cmds \
19831 postuninstall_cmds \
19832 finish_cmds \
19833 sys_lib_search_path_spec \
19834 sys_lib_dlsearch_path_spec; do
19835 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19836 *[\\\\\\\`\\"\\\$]*)
19837 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19838 ;;
19839 *)
19840 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19841 ;;
19842 esac
19843 done
19844
19845 ac_aux_dir='$ac_aux_dir'
19846 xsi_shell='$xsi_shell'
19847 lt_shell_append='$lt_shell_append'
19848
19849 # See if we are running on zsh, and set the options which allow our
19850 # commands through without removal of \ escapes INIT.
19851 if test -n "\${ZSH_VERSION+set}" ; then
19852 setopt NO_GLOB_SUBST
19853 fi
19854
19855
19856 PACKAGE='$PACKAGE'
19857 VERSION='$VERSION'
19858 TIMESTAMP='$TIMESTAMP'
19859 RM='$RM'
19860 ofile='$ofile'
19861
19862
19863
19864
19865 _ACEOF
19866
19867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19868
19869 # Handling of arguments.
19870 for ac_config_target in $ac_config_targets
19871 do
19872 case $ac_config_target in
19873 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19874 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19875 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19876 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19877 "shared/Makefile") CONFIG_FILES="$CONFIG_FILES shared/Makefile" ;;
19878 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19879 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
19880 "fdi/Makefile") CONFIG_FILES="$CONFIG_FILES fdi/Makefile" ;;
19881 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19882
19883 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19884 esac
19885 done
19886
19887
19888 # If the user did not use the arguments to specify the items to instantiate,
19889 # then the envvar interface is used. Set only those that are not.
19890 # We use the long form for the default assignment because of an extremely
19891 # bizarre bug on SunOS 4.1.3.
19892 if $ac_need_defaults; then
19893 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19894 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19895 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19896 fi
19897
19898 # Have a temporary directory for convenience. Make it in the build tree
19899 # simply because there is no reason against having it here, and in addition,
19900 # creating and moving files from /tmp can sometimes cause problems.
19901 # Hook for its removal unless debugging.
19902 # Note that there is a small window in which the directory will not be cleaned:
19903 # after its creation but before its name has been assigned to `$tmp'.
19904 $debug ||
19905 {
19906 tmp= ac_tmp=
19907 trap 'exit_status=$?
19908 : "${ac_tmp:=$tmp}"
19909 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19910 ' 0
19911 trap 'as_fn_exit 1' 1 2 13 15
19912 }
19913 # Create a (secure) tmp directory for tmp files.
19914
19915 {
19916 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19917 test -d "$tmp"
19918 } ||
19919 {
19920 tmp=./conf$$-$RANDOM
19921 (umask 077 && mkdir "$tmp")
19922 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19923 ac_tmp=$tmp
19924
19925 # Set up the scripts for CONFIG_FILES section.
19926 # No need to generate them if there are no CONFIG_FILES.
19927 # This happens for instance with `./config.status config.h'.
19928 if test -n "$CONFIG_FILES"; then
19929
19930
19931 ac_cr=`echo X | tr X '\015'`
19932 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19933 # But we know of no other shell where ac_cr would be empty at this
19934 # point, so we can use a bashism as a fallback.
19935 if test "x$ac_cr" = x; then
19936 eval ac_cr=\$\'\\r\'
19937 fi
19938 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19939 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19940 ac_cs_awk_cr='\\r'
19941 else
19942 ac_cs_awk_cr=$ac_cr
19943 fi
19944
19945 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19946 _ACEOF
19947
19948
19949 {
19950 echo "cat >conf$$subs.awk <<_ACEOF" &&
19951 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19952 echo "_ACEOF"
19953 } >conf$$subs.sh ||
19954 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19955 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19956 ac_delim='%!_!# '
19957 for ac_last_try in false false false false false :; do
19958 . ./conf$$subs.sh ||
19959 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19960
19961 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19962 if test $ac_delim_n = $ac_delim_num; then
19963 break
19964 elif $ac_last_try; then
19965 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19966 else
19967 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19968 fi
19969 done
19970 rm -f conf$$subs.sh
19971
19972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19973 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19974 _ACEOF
19975 sed -n '
19976 h
19977 s/^/S["/; s/!.*/"]=/
19978 p
19979 g
19980 s/^[^!]*!//
19981 :repl
19982 t repl
19983 s/'"$ac_delim"'$//
19984 t delim
19985 :nl
19986 h
19987 s/\(.\{148\}\)..*/\1/
19988 t more1
19989 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19990 p
19991 n
19992 b repl
19993 :more1
19994 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19995 p
19996 g
19997 s/.\{148\}//
19998 t nl
19999 :delim
20000 h
20001 s/\(.\{148\}\)..*/\1/
20002 t more2
20003 s/["\\]/\\&/g; s/^/"/; s/$/"/
20004 p
20005 b
20006 :more2
20007 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20008 p
20009 g
20010 s/.\{148\}//
20011 t delim
20012 ' <conf$$subs.awk | sed '
20013 /^[^""]/{
20014 N
20015 s/\n//
20016 }
20017 ' >>$CONFIG_STATUS || ac_write_fail=1
20018 rm -f conf$$subs.awk
20019 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20020 _ACAWK
20021 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20022 for (key in S) S_is_set[key] = 1
20023 FS = ""
20024
20025 }
20026 {
20027 line = $ 0
20028 nfields = split(line, field, "@")
20029 substed = 0
20030 len = length(field[1])
20031 for (i = 2; i < nfields; i++) {
20032 key = field[i]
20033 keylen = length(key)
20034 if (S_is_set[key]) {
20035 value = S[key]
20036 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20037 len += length(value) + length(field[++i])
20038 substed = 1
20039 } else
20040 len += 1 + keylen
20041 }
20042
20043 print line
20044 }
20045
20046 _ACAWK
20047 _ACEOF
20048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20049 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20050 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20051 else
20052 cat
20053 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20054 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20055 _ACEOF
20056
20057 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20058 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20059 # trailing colons and then remove the whole line if VPATH becomes empty
20060 # (actually we leave an empty line to preserve line numbers).
20061 if test "x$srcdir" = x.; then
20062 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20063 h
20064 s///
20065 s/^/:/
20066 s/[ ]*$/:/
20067 s/:\$(srcdir):/:/g
20068 s/:\${srcdir}:/:/g
20069 s/:@srcdir@:/:/g
20070 s/^:*//
20071 s/:*$//
20072 x
20073 s/\(=[ ]*\).*/\1/
20074 G
20075 s/\n//
20076 s/^[^=]*=[ ]*$//
20077 }'
20078 fi
20079
20080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20081 fi # test -n "$CONFIG_FILES"
20082
20083 # Set up the scripts for CONFIG_HEADERS section.
20084 # No need to generate them if there are no CONFIG_HEADERS.
20085 # This happens for instance with `./config.status Makefile'.
20086 if test -n "$CONFIG_HEADERS"; then
20087 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20088 BEGIN {
20089 _ACEOF
20090
20091 # Transform confdefs.h into an awk script `defines.awk', embedded as
20092 # here-document in config.status, that substitutes the proper values into
20093 # config.h.in to produce config.h.
20094
20095 # Create a delimiter string that does not exist in confdefs.h, to ease
20096 # handling of long lines.
20097 ac_delim='%!_!# '
20098 for ac_last_try in false false :; do
20099 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20100 if test -z "$ac_tt"; then
20101 break
20102 elif $ac_last_try; then
20103 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20104 else
20105 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20106 fi
20107 done
20108
20109 # For the awk script, D is an array of macro values keyed by name,
20110 # likewise P contains macro parameters if any. Preserve backslash
20111 # newline sequences.
20112
20113 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20114 sed -n '
20115 s/.\{148\}/&'"$ac_delim"'/g
20116 t rset
20117 :rset
20118 s/^[ ]*#[ ]*define[ ][ ]*/ /
20119 t def
20120 d
20121 :def
20122 s/\\$//
20123 t bsnl
20124 s/["\\]/\\&/g
20125 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20126 D["\1"]=" \3"/p
20127 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20128 d
20129 :bsnl
20130 s/["\\]/\\&/g
20131 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20132 D["\1"]=" \3\\\\\\n"\\/p
20133 t cont
20134 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20135 t cont
20136 d
20137 :cont
20138 n
20139 s/.\{148\}/&'"$ac_delim"'/g
20140 t clear
20141 :clear
20142 s/\\$//
20143 t bsnlc
20144 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20145 d
20146 :bsnlc
20147 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20148 b cont
20149 ' <confdefs.h | sed '
20150 s/'"$ac_delim"'/"\\\
20151 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20152
20153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20154 for (key in D) D_is_set[key] = 1
20155 FS = ""
20156 }
20157 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20158 line = \$ 0
20159 split(line, arg, " ")
20160 if (arg[1] == "#") {
20161 defundef = arg[2]
20162 mac1 = arg[3]
20163 } else {
20164 defundef = substr(arg[1], 2)
20165 mac1 = arg[2]
20166 }
20167 split(mac1, mac2, "(") #)
20168 macro = mac2[1]
20169 prefix = substr(line, 1, index(line, defundef) - 1)
20170 if (D_is_set[macro]) {
20171 # Preserve the white space surrounding the "#".
20172 print prefix "define", macro P[macro] D[macro]
20173 next
20174 } else {
20175 # Replace #undef with comments. This is necessary, for example,
20176 # in the case of _POSIX_SOURCE, which is predefined and required
20177 # on some systems where configure will not decide to define it.
20178 if (defundef == "undef") {
20179 print "/*", prefix defundef, macro, "*/"
20180 next
20181 }
20182 }
20183 }
20184 { print }
20185 _ACAWK
20186 _ACEOF
20187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20188 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20189 fi # test -n "$CONFIG_HEADERS"
20190
20191
20192 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20193 shift
20194 for ac_tag
20195 do
20196 case $ac_tag in
20197 :[FHLC]) ac_mode=$ac_tag; continue;;
20198 esac
20199 case $ac_mode$ac_tag in
20200 :[FHL]*:*);;
20201 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20202 :[FH]-) ac_tag=-:-;;
20203 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20204 esac
20205 ac_save_IFS=$IFS
20206 IFS=:
20207 set x $ac_tag
20208 IFS=$ac_save_IFS
20209 shift
20210 ac_file=$1
20211 shift
20212
20213 case $ac_mode in
20214 :L) ac_source=$1;;
20215 :[FH])
20216 ac_file_inputs=
20217 for ac_f
20218 do
20219 case $ac_f in
20220 -) ac_f="$ac_tmp/stdin";;
20221 *) # Look for the file first in the build tree, then in the source tree
20222 # (if the path is not absolute). The absolute path cannot be DOS-style,
20223 # because $ac_f cannot contain `:'.
20224 test -f "$ac_f" ||
20225 case $ac_f in
20226 [\\/$]*) false;;
20227 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20228 esac ||
20229 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20230 esac
20231 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20232 as_fn_append ac_file_inputs " '$ac_f'"
20233 done
20234
20235 # Let's still pretend it is `configure' which instantiates (i.e., don't
20236 # use $as_me), people would be surprised to read:
20237 # /* config.h. Generated by config.status. */
20238 configure_input='Generated from '`
20239 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20240 `' by configure.'
20241 if test x"$ac_file" != x-; then
20242 configure_input="$ac_file. $configure_input"
20243 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20244 $as_echo "$as_me: creating $ac_file" >&6;}
20245 fi
20246 # Neutralize special characters interpreted by sed in replacement strings.
20247 case $configure_input in #(
20248 *\&* | *\|* | *\\* )
20249 ac_sed_conf_input=`$as_echo "$configure_input" |
20250 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20251 *) ac_sed_conf_input=$configure_input;;
20252 esac
20253
20254 case $ac_tag in
20255 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20256 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20257 esac
20258 ;;
20259 esac
20260
20261 ac_dir=`$as_dirname -- "$ac_file" ||
20262 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20263 X"$ac_file" : 'X\(//\)[^/]' \| \
20264 X"$ac_file" : 'X\(//\)$' \| \
20265 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20266 $as_echo X"$ac_file" |
20267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20268 s//\1/
20269 q
20270 }
20271 /^X\(\/\/\)[^/].*/{
20272 s//\1/
20273 q
20274 }
20275 /^X\(\/\/\)$/{
20276 s//\1/
20277 q
20278 }
20279 /^X\(\/\).*/{
20280 s//\1/
20281 q
20282 }
20283 s/.*/./; q'`
20284 as_dir="$ac_dir"; as_fn_mkdir_p
20285 ac_builddir=.
20286
20287 case "$ac_dir" in
20288 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20289 *)
20290 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20291 # A ".." for each directory in $ac_dir_suffix.
20292 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20293 case $ac_top_builddir_sub in
20294 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20295 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20296 esac ;;
20297 esac
20298 ac_abs_top_builddir=$ac_pwd
20299 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20300 # for backward compatibility:
20301 ac_top_builddir=$ac_top_build_prefix
20302
20303 case $srcdir in
20304 .) # We are building in place.
20305 ac_srcdir=.
20306 ac_top_srcdir=$ac_top_builddir_sub
20307 ac_abs_top_srcdir=$ac_pwd ;;
20308 [\\/]* | ?:[\\/]* ) # Absolute name.
20309 ac_srcdir=$srcdir$ac_dir_suffix;
20310 ac_top_srcdir=$srcdir
20311 ac_abs_top_srcdir=$srcdir ;;
20312 *) # Relative name.
20313 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20314 ac_top_srcdir=$ac_top_build_prefix$srcdir
20315 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20316 esac
20317 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20318
20319
20320 case $ac_mode in
20321 :F)
20322 #
20323 # CONFIG_FILE
20324 #
20325
20326 case $INSTALL in
20327 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20328 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20329 esac
20330 ac_MKDIR_P=$MKDIR_P
20331 case $MKDIR_P in
20332 [\\/$]* | ?:[\\/]* ) ;;
20333 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20334 esac
20335 _ACEOF
20336
20337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20338 # If the template does not know about datarootdir, expand it.
20339 # FIXME: This hack should be removed a few years after 2.60.
20340 ac_datarootdir_hack=; ac_datarootdir_seen=
20341 ac_sed_dataroot='
20342 /datarootdir/ {
20343 p
20344 q
20345 }
20346 /@datadir@/p
20347 /@docdir@/p
20348 /@infodir@/p
20349 /@localedir@/p
20350 /@mandir@/p'
20351 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20352 *datarootdir*) ac_datarootdir_seen=yes;;
20353 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20355 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20356 _ACEOF
20357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20358 ac_datarootdir_hack='
20359 s&@datadir@&$datadir&g
20360 s&@docdir@&$docdir&g
20361 s&@infodir@&$infodir&g
20362 s&@localedir@&$localedir&g
20363 s&@mandir@&$mandir&g
20364 s&\\\${datarootdir}&$datarootdir&g' ;;
20365 esac
20366 _ACEOF
20367
20368 # Neutralize VPATH when `$srcdir' = `.'.
20369 # Shell code in configure.ac might set extrasub.
20370 # FIXME: do we really want to maintain this feature?
20371 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20372 ac_sed_extra="$ac_vpsub
20373 $extrasub
20374 _ACEOF
20375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20376 :t
20377 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20378 s|@configure_input@|$ac_sed_conf_input|;t t
20379 s&@top_builddir@&$ac_top_builddir_sub&;t t
20380 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20381 s&@srcdir@&$ac_srcdir&;t t
20382 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20383 s&@top_srcdir@&$ac_top_srcdir&;t t
20384 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20385 s&@builddir@&$ac_builddir&;t t
20386 s&@abs_builddir@&$ac_abs_builddir&;t t
20387 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20388 s&@INSTALL@&$ac_INSTALL&;t t
20389 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20390 $ac_datarootdir_hack
20391 "
20392 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20393 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20394
20395 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20396 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20397 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20398 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20400 which seems to be undefined. Please make sure it is defined" >&5
20401 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20402 which seems to be undefined. Please make sure it is defined" >&2;}
20403
20404 rm -f "$ac_tmp/stdin"
20405 case $ac_file in
20406 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20407 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20408 esac \
20409 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20410 ;;
20411 :H)
20412 #
20413 # CONFIG_HEADER
20414 #
20415 if test x"$ac_file" != x-; then
20416 {
20417 $as_echo "/* $configure_input */" \
20418 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20419 } >"$ac_tmp/config.h" \
20420 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20421 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20422 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20423 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20424 else
20425 rm -f "$ac_file"
20426 mv "$ac_tmp/config.h" "$ac_file" \
20427 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20428 fi
20429 else
20430 $as_echo "/* $configure_input */" \
20431 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20432 || as_fn_error $? "could not create -" "$LINENO" 5
20433 fi
20434 # Compute "$ac_file"'s index in $config_headers.
20435 _am_arg="$ac_file"
20436 _am_stamp_count=1
20437 for _am_header in $config_headers :; do
20438 case $_am_header in
20439 $_am_arg | $_am_arg:* )
20440 break ;;
20441 * )
20442 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20443 esac
20444 done
20445 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20446 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20447 X"$_am_arg" : 'X\(//\)[^/]' \| \
20448 X"$_am_arg" : 'X\(//\)$' \| \
20449 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20450 $as_echo X"$_am_arg" |
20451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20452 s//\1/
20453 q
20454 }
20455 /^X\(\/\/\)[^/].*/{
20456 s//\1/
20457 q
20458 }
20459 /^X\(\/\/\)$/{
20460 s//\1/
20461 q
20462 }
20463 /^X\(\/\).*/{
20464 s//\1/
20465 q
20466 }
20467 s/.*/./; q'`/stamp-h$_am_stamp_count
20468 ;;
20469
20470 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20471 $as_echo "$as_me: executing $ac_file commands" >&6;}
20472 ;;
20473 esac
20474
20475
20476 case $ac_file$ac_mode in
20477 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20478 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20479 # are listed without --file. Let's play safe and only enable the eval
20480 # if we detect the quoting.
20481 case $CONFIG_FILES in
20482 *\'*) eval set x "$CONFIG_FILES" ;;
20483 *) set x $CONFIG_FILES ;;
20484 esac
20485 shift
20486 for mf
20487 do
20488 # Strip MF so we end up with the name of the file.
20489 mf=`echo "$mf" | sed -e 's/:.*$//'`
20490 # Check whether this is an Automake generated Makefile or not.
20491 # We used to match only the files named `Makefile.in', but
20492 # some people rename them; so instead we look at the file content.
20493 # Grep'ing the first line is not enough: some people post-process
20494 # each Makefile.in and add a new line on top of each file to say so.
20495 # Grep'ing the whole file is not good either: AIX grep has a line
20496 # limit of 2048, but all sed's we know have understand at least 4000.
20497 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20498 dirpart=`$as_dirname -- "$mf" ||
20499 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20500 X"$mf" : 'X\(//\)[^/]' \| \
20501 X"$mf" : 'X\(//\)$' \| \
20502 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20503 $as_echo X"$mf" |
20504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20505 s//\1/
20506 q
20507 }
20508 /^X\(\/\/\)[^/].*/{
20509 s//\1/
20510 q
20511 }
20512 /^X\(\/\/\)$/{
20513 s//\1/
20514 q
20515 }
20516 /^X\(\/\).*/{
20517 s//\1/
20518 q
20519 }
20520 s/.*/./; q'`
20521 else
20522 continue
20523 fi
20524 # Extract the definition of DEPDIR, am__include, and am__quote
20525 # from the Makefile without running `make'.
20526 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20527 test -z "$DEPDIR" && continue
20528 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20529 test -z "am__include" && continue
20530 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20531 # When using ansi2knr, U may be empty or an underscore; expand it
20532 U=`sed -n 's/^U = //p' < "$mf"`
20533 # Find all dependency output files, they are included files with
20534 # $(DEPDIR) in their names. We invoke sed twice because it is the
20535 # simplest approach to changing $(DEPDIR) to its actual value in the
20536 # expansion.
20537 for file in `sed -n "
20538 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20539 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20540 # Make sure the directory exists.
20541 test -f "$dirpart/$file" && continue
20542 fdir=`$as_dirname -- "$file" ||
20543 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20544 X"$file" : 'X\(//\)[^/]' \| \
20545 X"$file" : 'X\(//\)$' \| \
20546 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20547 $as_echo X"$file" |
20548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20549 s//\1/
20550 q
20551 }
20552 /^X\(\/\/\)[^/].*/{
20553 s//\1/
20554 q
20555 }
20556 /^X\(\/\/\)$/{
20557 s//\1/
20558 q
20559 }
20560 /^X\(\/\).*/{
20561 s//\1/
20562 q
20563 }
20564 s/.*/./; q'`
20565 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20566 # echo "creating $dirpart/$file"
20567 echo '# dummy' > "$dirpart/$file"
20568 done
20569 done
20570 }
20571 ;;
20572 "libtool":C)
20573
20574 # See if we are running on zsh, and set the options which allow our
20575 # commands through without removal of \ escapes.
20576 if test -n "${ZSH_VERSION+set}" ; then
20577 setopt NO_GLOB_SUBST
20578 fi
20579
20580 cfgfile="${ofile}T"
20581 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20582 $RM "$cfgfile"
20583
20584 cat <<_LT_EOF >> "$cfgfile"
20585 #! $SHELL
20586
20587 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20588 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20589 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20590 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20591 #
20592 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20593 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20594 # Foundation, Inc.
20595 # Written by Gordon Matzigkeit, 1996
20596 #
20597 # This file is part of GNU Libtool.
20598 #
20599 # GNU Libtool is free software; you can redistribute it and/or
20600 # modify it under the terms of the GNU General Public License as
20601 # published by the Free Software Foundation; either version 2 of
20602 # the License, or (at your option) any later version.
20603 #
20604 # As a special exception to the GNU General Public License,
20605 # if you distribute this file as part of a program or library that
20606 # is built using GNU Libtool, you may include this file under the
20607 # same distribution terms that you use for the rest of that program.
20608 #
20609 # GNU Libtool is distributed in the hope that it will be useful,
20610 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20611 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20612 # GNU General Public License for more details.
20613 #
20614 # You should have received a copy of the GNU General Public License
20615 # along with GNU Libtool; see the file COPYING. If not, a copy
20616 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20617 # obtained by writing to the Free Software Foundation, Inc.,
20618 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20619
20620
20621 # The names of the tagged configurations supported by this script.
20622 available_tags=""
20623
20624 # ### BEGIN LIBTOOL CONFIG
20625
20626 # Whether or not to build static libraries.
20627 build_old_libs=$enable_static
20628
20629 # Which release of libtool.m4 was used?
20630 macro_version=$macro_version
20631 macro_revision=$macro_revision
20632
20633 # Whether or not to build shared libraries.
20634 build_libtool_libs=$enable_shared
20635
20636 # What type of objects to build.
20637 pic_mode=$pic_mode
20638
20639 # Whether or not to optimize for fast installation.
20640 fast_install=$enable_fast_install
20641
20642 # Shell to use when invoking shell scripts.
20643 SHELL=$lt_SHELL
20644
20645 # An echo program that protects backslashes.
20646 ECHO=$lt_ECHO
20647
20648 # The PATH separator for the build system.
20649 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20650
20651 # The host system.
20652 host_alias=$host_alias
20653 host=$host
20654 host_os=$host_os
20655
20656 # The build system.
20657 build_alias=$build_alias
20658 build=$build
20659 build_os=$build_os
20660
20661 # A sed program that does not truncate output.
20662 SED=$lt_SED
20663
20664 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20665 Xsed="\$SED -e 1s/^X//"
20666
20667 # A grep program that handles long lines.
20668 GREP=$lt_GREP
20669
20670 # An ERE matcher.
20671 EGREP=$lt_EGREP
20672
20673 # A literal string matcher.
20674 FGREP=$lt_FGREP
20675
20676 # A BSD- or MS-compatible name lister.
20677 NM=$lt_NM
20678
20679 # Whether we need soft or hard links.
20680 LN_S=$lt_LN_S
20681
20682 # What is the maximum length of a command?
20683 max_cmd_len=$max_cmd_len
20684
20685 # Object file suffix (normally "o").
20686 objext=$ac_objext
20687
20688 # Executable file suffix (normally "").
20689 exeext=$exeext
20690
20691 # whether the shell understands "unset".
20692 lt_unset=$lt_unset
20693
20694 # turn spaces into newlines.
20695 SP2NL=$lt_lt_SP2NL
20696
20697 # turn newlines into spaces.
20698 NL2SP=$lt_lt_NL2SP
20699
20700 # convert \$build file names to \$host format.
20701 to_host_file_cmd=$lt_cv_to_host_file_cmd
20702
20703 # convert \$build files to toolchain format.
20704 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20705
20706 # An object symbol dumper.
20707 OBJDUMP=$lt_OBJDUMP
20708
20709 # Method to check whether dependent libraries are shared objects.
20710 deplibs_check_method=$lt_deplibs_check_method
20711
20712 # Command to use when deplibs_check_method = "file_magic".
20713 file_magic_cmd=$lt_file_magic_cmd
20714
20715 # How to find potential files when deplibs_check_method = "file_magic".
20716 file_magic_glob=$lt_file_magic_glob
20717
20718 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20719 want_nocaseglob=$lt_want_nocaseglob
20720
20721 # DLL creation program.
20722 DLLTOOL=$lt_DLLTOOL
20723
20724 # Command to associate shared and link libraries.
20725 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20726
20727 # The archiver.
20728 AR=$lt_AR
20729
20730 # Flags to create an archive.
20731 AR_FLAGS=$lt_AR_FLAGS
20732
20733 # How to feed a file listing to the archiver.
20734 archiver_list_spec=$lt_archiver_list_spec
20735
20736 # A symbol stripping program.
20737 STRIP=$lt_STRIP
20738
20739 # Commands used to install an old-style archive.
20740 RANLIB=$lt_RANLIB
20741 old_postinstall_cmds=$lt_old_postinstall_cmds
20742 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20743
20744 # Whether to use a lock for old archive extraction.
20745 lock_old_archive_extraction=$lock_old_archive_extraction
20746
20747 # A C compiler.
20748 LTCC=$lt_CC
20749
20750 # LTCC compiler flags.
20751 LTCFLAGS=$lt_CFLAGS
20752
20753 # Take the output of nm and produce a listing of raw symbols and C names.
20754 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20755
20756 # Transform the output of nm in a proper C declaration.
20757 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20758
20759 # Transform the output of nm in a C name address pair.
20760 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20761
20762 # Transform the output of nm in a C name address pair when lib prefix is needed.
20763 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20764
20765 # Specify filename containing input files for \$NM.
20766 nm_file_list_spec=$lt_nm_file_list_spec
20767
20768 # The root where to search for dependent libraries,and in which our libraries should be installed.
20769 lt_sysroot=$lt_sysroot
20770
20771 # The name of the directory that contains temporary libtool files.
20772 objdir=$objdir
20773
20774 # Used to examine libraries when file_magic_cmd begins with "file".
20775 MAGIC_CMD=$MAGIC_CMD
20776
20777 # Must we lock files when doing compilation?
20778 need_locks=$lt_need_locks
20779
20780 # Manifest tool.
20781 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20782
20783 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20784 DSYMUTIL=$lt_DSYMUTIL
20785
20786 # Tool to change global to local symbols on Mac OS X.
20787 NMEDIT=$lt_NMEDIT
20788
20789 # Tool to manipulate fat objects and archives on Mac OS X.
20790 LIPO=$lt_LIPO
20791
20792 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20793 OTOOL=$lt_OTOOL
20794
20795 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20796 OTOOL64=$lt_OTOOL64
20797
20798 # Old archive suffix (normally "a").
20799 libext=$libext
20800
20801 # Shared library suffix (normally ".so").
20802 shrext_cmds=$lt_shrext_cmds
20803
20804 # The commands to extract the exported symbol list from a shared archive.
20805 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20806
20807 # Variables whose values should be saved in libtool wrapper scripts and
20808 # restored at link time.
20809 variables_saved_for_relink=$lt_variables_saved_for_relink
20810
20811 # Do we need the "lib" prefix for modules?
20812 need_lib_prefix=$need_lib_prefix
20813
20814 # Do we need a version for libraries?
20815 need_version=$need_version
20816
20817 # Library versioning type.
20818 version_type=$version_type
20819
20820 # Shared library runtime path variable.
20821 runpath_var=$runpath_var
20822
20823 # Shared library path variable.
20824 shlibpath_var=$shlibpath_var
20825
20826 # Is shlibpath searched before the hard-coded library search path?
20827 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20828
20829 # Format of library name prefix.
20830 libname_spec=$lt_libname_spec
20831
20832 # List of archive names. First name is the real one, the rest are links.
20833 # The last name is the one that the linker finds with -lNAME
20834 library_names_spec=$lt_library_names_spec
20835
20836 # The coded name of the library, if different from the real name.
20837 soname_spec=$lt_soname_spec
20838
20839 # Permission mode override for installation of shared libraries.
20840 install_override_mode=$lt_install_override_mode
20841
20842 # Command to use after installation of a shared archive.
20843 postinstall_cmds=$lt_postinstall_cmds
20844
20845 # Command to use after uninstallation of a shared archive.
20846 postuninstall_cmds=$lt_postuninstall_cmds
20847
20848 # Commands used to finish a libtool library installation in a directory.
20849 finish_cmds=$lt_finish_cmds
20850
20851 # As "finish_cmds", except a single script fragment to be evaled but
20852 # not shown.
20853 finish_eval=$lt_finish_eval
20854
20855 # Whether we should hardcode library paths into libraries.
20856 hardcode_into_libs=$hardcode_into_libs
20857
20858 # Compile-time system search path for libraries.
20859 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20860
20861 # Run-time system search path for libraries.
20862 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20863
20864 # Whether dlopen is supported.
20865 dlopen_support=$enable_dlopen
20866
20867 # Whether dlopen of programs is supported.
20868 dlopen_self=$enable_dlopen_self
20869
20870 # Whether dlopen of statically linked programs is supported.
20871 dlopen_self_static=$enable_dlopen_self_static
20872
20873 # Commands to strip libraries.
20874 old_striplib=$lt_old_striplib
20875 striplib=$lt_striplib
20876
20877
20878 # The linker used to build libraries.
20879 LD=$lt_LD
20880
20881 # How to create reloadable object files.
20882 reload_flag=$lt_reload_flag
20883 reload_cmds=$lt_reload_cmds
20884
20885 # Commands used to build an old-style archive.
20886 old_archive_cmds=$lt_old_archive_cmds
20887
20888 # A language specific compiler.
20889 CC=$lt_compiler
20890
20891 # Is the compiler the GNU compiler?
20892 with_gcc=$GCC
20893
20894 # Compiler flag to turn off builtin functions.
20895 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20896
20897 # Additional compiler flags for building library objects.
20898 pic_flag=$lt_lt_prog_compiler_pic
20899
20900 # How to pass a linker flag through the compiler.
20901 wl=$lt_lt_prog_compiler_wl
20902
20903 # Compiler flag to prevent dynamic linking.
20904 link_static_flag=$lt_lt_prog_compiler_static
20905
20906 # Does compiler simultaneously support -c and -o options?
20907 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20908
20909 # Whether or not to add -lc for building shared libraries.
20910 build_libtool_need_lc=$archive_cmds_need_lc
20911
20912 # Whether or not to disallow shared libs when runtime libs are static.
20913 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20914
20915 # Compiler flag to allow reflexive dlopens.
20916 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20917
20918 # Compiler flag to generate shared objects directly from archives.
20919 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20920
20921 # Whether the compiler copes with passing no objects directly.
20922 compiler_needs_object=$lt_compiler_needs_object
20923
20924 # Create an old-style archive from a shared archive.
20925 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20926
20927 # Create a temporary old-style archive to link instead of a shared archive.
20928 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20929
20930 # Commands used to build a shared archive.
20931 archive_cmds=$lt_archive_cmds
20932 archive_expsym_cmds=$lt_archive_expsym_cmds
20933
20934 # Commands used to build a loadable module if different from building
20935 # a shared archive.
20936 module_cmds=$lt_module_cmds
20937 module_expsym_cmds=$lt_module_expsym_cmds
20938
20939 # Whether we are building with GNU ld or not.
20940 with_gnu_ld=$lt_with_gnu_ld
20941
20942 # Flag that allows shared libraries with undefined symbols to be built.
20943 allow_undefined_flag=$lt_allow_undefined_flag
20944
20945 # Flag that enforces no undefined symbols.
20946 no_undefined_flag=$lt_no_undefined_flag
20947
20948 # Flag to hardcode \$libdir into a binary during linking.
20949 # This must work even if \$libdir does not exist
20950 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20951
20952 # Whether we need a single "-rpath" flag with a separated argument.
20953 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20954
20955 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20956 # DIR into the resulting binary.
20957 hardcode_direct=$hardcode_direct
20958
20959 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20960 # DIR into the resulting binary and the resulting library dependency is
20961 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20962 # library is relocated.
20963 hardcode_direct_absolute=$hardcode_direct_absolute
20964
20965 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20966 # into the resulting binary.
20967 hardcode_minus_L=$hardcode_minus_L
20968
20969 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20970 # into the resulting binary.
20971 hardcode_shlibpath_var=$hardcode_shlibpath_var
20972
20973 # Set to "yes" if building a shared library automatically hardcodes DIR
20974 # into the library and all subsequent libraries and executables linked
20975 # against it.
20976 hardcode_automatic=$hardcode_automatic
20977
20978 # Set to yes if linker adds runtime paths of dependent libraries
20979 # to runtime path list.
20980 inherit_rpath=$inherit_rpath
20981
20982 # Whether libtool must link a program against all its dependency libraries.
20983 link_all_deplibs=$link_all_deplibs
20984
20985 # Set to "yes" if exported symbols are required.
20986 always_export_symbols=$always_export_symbols
20987
20988 # The commands to list exported symbols.
20989 export_symbols_cmds=$lt_export_symbols_cmds
20990
20991 # Symbols that should not be listed in the preloaded symbols.
20992 exclude_expsyms=$lt_exclude_expsyms
20993
20994 # Symbols that must always be exported.
20995 include_expsyms=$lt_include_expsyms
20996
20997 # Commands necessary for linking programs (against libraries) with templates.
20998 prelink_cmds=$lt_prelink_cmds
20999
21000 # Commands necessary for finishing linking programs.
21001 postlink_cmds=$lt_postlink_cmds
21002
21003 # Specify filename containing input files.
21004 file_list_spec=$lt_file_list_spec
21005
21006 # How to hardcode a shared library path into an executable.
21007 hardcode_action=$hardcode_action
21008
21009 # ### END LIBTOOL CONFIG
21010
21011 _LT_EOF
21012
21013 case $host_os in
21014 aix3*)
21015 cat <<\_LT_EOF >> "$cfgfile"
21016 # AIX sometimes has problems with the GCC collect2 program. For some
21017 # reason, if we set the COLLECT_NAMES environment variable, the problems
21018 # vanish in a puff of smoke.
21019 if test "X${COLLECT_NAMES+set}" != Xset; then
21020 COLLECT_NAMES=
21021 export COLLECT_NAMES
21022 fi
21023 _LT_EOF
21024 ;;
21025 esac
21026
21027
21028 ltmain="$ac_aux_dir/ltmain.sh"
21029
21030
21031 # We use sed instead of cat because bash on DJGPP gets confused if
21032 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21033 # text mode, it properly converts lines to CR/LF. This bash problem
21034 # is reportedly fixed, but why not run on old versions too?
21035 sed '$q' "$ltmain" >> "$cfgfile" \
21036 || (rm -f "$cfgfile"; exit 1)
21037
21038 if test x"$xsi_shell" = xyes; then
21039 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21040 func_dirname ()\
21041 {\
21042 \ case ${1} in\
21043 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21044 \ * ) func_dirname_result="${3}" ;;\
21045 \ esac\
21046 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21047 && mv -f "$cfgfile.tmp" "$cfgfile" \
21048 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21049 test 0 -eq $? || _lt_function_replace_fail=:
21050
21051
21052 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21053 func_basename ()\
21054 {\
21055 \ func_basename_result="${1##*/}"\
21056 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21057 && mv -f "$cfgfile.tmp" "$cfgfile" \
21058 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21059 test 0 -eq $? || _lt_function_replace_fail=:
21060
21061
21062 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21063 func_dirname_and_basename ()\
21064 {\
21065 \ case ${1} in\
21066 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21067 \ * ) func_dirname_result="${3}" ;;\
21068 \ esac\
21069 \ func_basename_result="${1##*/}"\
21070 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21071 && mv -f "$cfgfile.tmp" "$cfgfile" \
21072 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21073 test 0 -eq $? || _lt_function_replace_fail=:
21074
21075
21076 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21077 func_stripname ()\
21078 {\
21079 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21080 \ # positional parameters, so assign one to ordinary parameter first.\
21081 \ func_stripname_result=${3}\
21082 \ func_stripname_result=${func_stripname_result#"${1}"}\
21083 \ func_stripname_result=${func_stripname_result%"${2}"}\
21084 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21085 && mv -f "$cfgfile.tmp" "$cfgfile" \
21086 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21087 test 0 -eq $? || _lt_function_replace_fail=:
21088
21089
21090 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21091 func_split_long_opt ()\
21092 {\
21093 \ func_split_long_opt_name=${1%%=*}\
21094 \ func_split_long_opt_arg=${1#*=}\
21095 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21096 && mv -f "$cfgfile.tmp" "$cfgfile" \
21097 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21098 test 0 -eq $? || _lt_function_replace_fail=:
21099
21100
21101 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21102 func_split_short_opt ()\
21103 {\
21104 \ func_split_short_opt_arg=${1#??}\
21105 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21106 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21107 && mv -f "$cfgfile.tmp" "$cfgfile" \
21108 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21109 test 0 -eq $? || _lt_function_replace_fail=:
21110
21111
21112 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21113 func_lo2o ()\
21114 {\
21115 \ case ${1} in\
21116 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21117 \ *) func_lo2o_result=${1} ;;\
21118 \ esac\
21119 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21120 && mv -f "$cfgfile.tmp" "$cfgfile" \
21121 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21122 test 0 -eq $? || _lt_function_replace_fail=:
21123
21124
21125 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21126 func_xform ()\
21127 {\
21128 func_xform_result=${1%.*}.lo\
21129 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21130 && mv -f "$cfgfile.tmp" "$cfgfile" \
21131 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21132 test 0 -eq $? || _lt_function_replace_fail=:
21133
21134
21135 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21136 func_arith ()\
21137 {\
21138 func_arith_result=$(( $* ))\
21139 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21140 && mv -f "$cfgfile.tmp" "$cfgfile" \
21141 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21142 test 0 -eq $? || _lt_function_replace_fail=:
21143
21144
21145 sed -e '/^func_len ()$/,/^} # func_len /c\
21146 func_len ()\
21147 {\
21148 func_len_result=${#1}\
21149 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21150 && mv -f "$cfgfile.tmp" "$cfgfile" \
21151 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21152 test 0 -eq $? || _lt_function_replace_fail=:
21153
21154 fi
21155
21156 if test x"$lt_shell_append" = xyes; then
21157 sed -e '/^func_append ()$/,/^} # func_append /c\
21158 func_append ()\
21159 {\
21160 eval "${1}+=\\${2}"\
21161 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21162 && mv -f "$cfgfile.tmp" "$cfgfile" \
21163 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21164 test 0 -eq $? || _lt_function_replace_fail=:
21165
21166
21167 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21168 func_append_quoted ()\
21169 {\
21170 \ func_quote_for_eval "${2}"\
21171 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21172 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21173 && mv -f "$cfgfile.tmp" "$cfgfile" \
21174 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21175 test 0 -eq $? || _lt_function_replace_fail=:
21176
21177
21178 # Save a `func_append' function call where possible by direct use of '+='
21179 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21180 && mv -f "$cfgfile.tmp" "$cfgfile" \
21181 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21182 test 0 -eq $? || _lt_function_replace_fail=:
21183 else
21184 # Save a `func_append' function call even when '+=' is not available
21185 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21186 && mv -f "$cfgfile.tmp" "$cfgfile" \
21187 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21188 test 0 -eq $? || _lt_function_replace_fail=:
21189 fi
21190
21191 if test x"$_lt_function_replace_fail" = x":"; then
21192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21193 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21194 fi
21195
21196
21197 mv -f "$cfgfile" "$ofile" ||
21198 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21199 chmod +x "$ofile"
21200
21201 ;;
21202
21203 esac
21204 done # for ac_tag
21205
21206
21207 as_fn_exit 0
21208 _ACEOF
21209 ac_clean_files=$ac_clean_files_save
21210
21211 test $ac_write_fail = 0 ||
21212 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21213
21214
21215 # configure is writing to config.log, and then calls config.status.
21216 # config.status does its own redirection, appending to config.log.
21217 # Unfortunately, on DOS this fails, as config.log is still kept open
21218 # by configure, so config.status won't be able to write to it; its
21219 # output is simply discarded. So we exec the FD to /dev/null,
21220 # effectively closing config.log, so it can be properly (re)opened and
21221 # appended to by config.status. When coming back to configure, we
21222 # need to make the FD available again.
21223 if test "$no_create" != yes; then
21224 ac_cs_success=:
21225 ac_config_status_args=
21226 test "$silent" = yes &&
21227 ac_config_status_args="$ac_config_status_args --quiet"
21228 exec 5>/dev/null
21229 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21230 exec 5>>config.log
21231 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21232 # would make configure fail if this is the last instruction.
21233 $ac_cs_success || as_fn_exit 1
21234 fi
21235 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21237 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21238 fi
21239
21240