configure revision 1.1.1.8 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libXvMC 1.0.11.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXvMC/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
278 $0: https://gitlab.freedesktop.org/xorg/lib/libXvMC/issues
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='libXvMC'
593 PACKAGE_TARNAME='libXvMC'
594 PACKAGE_VERSION='1.0.11'
595 PACKAGE_STRING='libXvMC 1.0.11'
596 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libXvMC/issues'
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 LINT_FALSE
641 LINT_TRUE
642 LINT_FLAGS
643 LINT
644 DLOPEN_LIBS
645 XVMC_LIBS
646 XVMC_CFLAGS
647 XTMALLOC_ZERO_CFLAGS
648 XMALLOC_ZERO_CFLAGS
649 MALLOC_ZERO_CFLAGS
650 MAN_SUBSTS
651 XORG_MAN_PAGE
652 ADMIN_MAN_DIR
653 DRIVER_MAN_DIR
654 MISC_MAN_DIR
655 FILE_MAN_DIR
656 LIB_MAN_DIR
657 APP_MAN_DIR
658 ADMIN_MAN_SUFFIX
659 DRIVER_MAN_SUFFIX
660 MISC_MAN_SUFFIX
661 FILE_MAN_SUFFIX
662 LIB_MAN_SUFFIX
663 APP_MAN_SUFFIX
664 INSTALL_CMD
665 PKG_CONFIG_LIBDIR
666 PKG_CONFIG_PATH
667 PKG_CONFIG
668 CHANGELOG_CMD
669 STRICT_CFLAGS
670 CWARNFLAGS
671 BASE_CFLAGS
672 CPP
673 LT_SYS_LIBRARY_PATH
674 OTOOL64
675 OTOOL
676 LIPO
677 NMEDIT
678 DSYMUTIL
679 MANIFEST_TOOL
680 RANLIB
681 ac_ct_AR
682 AR
683 DLLTOOL
684 OBJDUMP
685 LN_S
686 NM
687 ac_ct_DUMPBIN
688 DUMPBIN
689 LD
690 FGREP
691 EGREP
692 GREP
693 SED
694 am__fastdepCC_FALSE
695 am__fastdepCC_TRUE
696 CCDEPMODE
697 am__nodep
698 AMDEPBACKSLASH
699 AMDEP_FALSE
700 AMDEP_TRUE
701 am__quote
702 am__include
703 DEPDIR
704 OBJEXT
705 EXEEXT
706 ac_ct_CC
707 CPPFLAGS
708 LDFLAGS
709 CFLAGS
710 CC
711 host_os
712 host_vendor
713 host_cpu
714 host
715 build_os
716 build_vendor
717 build_cpu
718 build
719 LIBTOOL
720 AM_BACKSLASH
721 AM_DEFAULT_VERBOSITY
722 AM_DEFAULT_V
723 AM_V
724 am__untar
725 am__tar
726 AMTAR
727 am__leading_dot
728 SET_MAKE
729 AWK
730 mkdir_p
731 MKDIR_P
732 INSTALL_STRIP_PROGRAM
733 STRIP
734 install_sh
735 MAKEINFO
736 AUTOHEADER
737 AUTOMAKE
738 AUTOCONF
739 ACLOCAL
740 VERSION
741 PACKAGE
742 CYGPATH_W
743 am__isrc
744 INSTALL_DATA
745 INSTALL_SCRIPT
746 INSTALL_PROGRAM
747 target_alias
748 host_alias
749 build_alias
750 LIBS
751 ECHO_T
752 ECHO_N
753 ECHO_C
754 DEFS
755 mandir
756 localedir
757 libdir
758 psdir
759 pdfdir
760 dvidir
761 htmldir
762 infodir
763 docdir
764 oldincludedir
765 includedir
766 localstatedir
767 sharedstatedir
768 sysconfdir
769 datadir
770 datarootdir
771 libexecdir
772 sbindir
773 bindir
774 program_transform_name
775 prefix
776 exec_prefix
777 PACKAGE_URL
778 PACKAGE_BUGREPORT
779 PACKAGE_STRING
780 PACKAGE_VERSION
781 PACKAGE_TARNAME
782 PACKAGE_NAME
783 PATH_SEPARATOR
784 SHELL'
785 ac_subst_files=''
786 ac_user_opts='
787 enable_option_checking
788 enable_silent_rules
789 enable_shared
790 enable_static
791 with_pic
792 enable_fast_install
793 with_aix_soname
794 enable_dependency_tracking
795 with_gnu_ld
796 with_sysroot
797 enable_libtool_lock
798 enable_selective_werror
799 enable_strict_compilation
800 enable_malloc0returnsnull
801 with_lint
802 '
803 ac_precious_vars='build_alias
804 host_alias
805 target_alias
806 CC
807 CFLAGS
808 LDFLAGS
809 LIBS
810 CPPFLAGS
811 LT_SYS_LIBRARY_PATH
812 CPP
813 PKG_CONFIG
814 PKG_CONFIG_PATH
815 PKG_CONFIG_LIBDIR
816 XVMC_CFLAGS
817 XVMC_LIBS
818 LINT
819 LINT_FLAGS'
820
821
822 # Initialize some variables set by options.
823 ac_init_help=
824 ac_init_version=false
825 ac_unrecognized_opts=
826 ac_unrecognized_sep=
827 # The variables have the same names as the options, with
828 # dashes changed to underlines.
829 cache_file=/dev/null
830 exec_prefix=NONE
831 no_create=
832 no_recursion=
833 prefix=NONE
834 program_prefix=NONE
835 program_suffix=NONE
836 program_transform_name=s,x,x,
837 silent=
838 site=
839 srcdir=
840 verbose=
841 x_includes=NONE
842 x_libraries=NONE
843
844 # Installation directory options.
845 # These are left unexpanded so users can "make install exec_prefix=/foo"
846 # and all the variables that are supposed to be based on exec_prefix
847 # by default will actually change.
848 # Use braces instead of parens because sh, perl, etc. also accept them.
849 # (The list follows the same order as the GNU Coding Standards.)
850 bindir='${exec_prefix}/bin'
851 sbindir='${exec_prefix}/sbin'
852 libexecdir='${exec_prefix}/libexec'
853 datarootdir='${prefix}/share'
854 datadir='${datarootdir}'
855 sysconfdir='${prefix}/etc'
856 sharedstatedir='${prefix}/com'
857 localstatedir='${prefix}/var'
858 includedir='${prefix}/include'
859 oldincludedir='/usr/include'
860 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861 infodir='${datarootdir}/info'
862 htmldir='${docdir}'
863 dvidir='${docdir}'
864 pdfdir='${docdir}'
865 psdir='${docdir}'
866 libdir='${exec_prefix}/lib'
867 localedir='${datarootdir}/locale'
868 mandir='${datarootdir}/man'
869
870 ac_prev=
871 ac_dashdash=
872 for ac_option
873 do
874 # If the previous option needs an argument, assign it.
875 if test -n "$ac_prev"; then
876 eval $ac_prev=\$ac_option
877 ac_prev=
878 continue
879 fi
880
881 case $ac_option in
882 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 *=) ac_optarg= ;;
884 *) ac_optarg=yes ;;
885 esac
886
887 # Accept the important Cygnus configure options, so we can diagnose typos.
888
889 case $ac_dashdash$ac_option in
890 --)
891 ac_dashdash=yes ;;
892
893 -bindir | --bindir | --bindi | --bind | --bin | --bi)
894 ac_prev=bindir ;;
895 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896 bindir=$ac_optarg ;;
897
898 -build | --build | --buil | --bui | --bu)
899 ac_prev=build_alias ;;
900 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901 build_alias=$ac_optarg ;;
902
903 -cache-file | --cache-file | --cache-fil | --cache-fi \
904 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905 ac_prev=cache_file ;;
906 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908 cache_file=$ac_optarg ;;
909
910 --config-cache | -C)
911 cache_file=config.cache ;;
912
913 -datadir | --datadir | --datadi | --datad)
914 ac_prev=datadir ;;
915 -datadir=* | --datadir=* | --datadi=* | --datad=*)
916 datadir=$ac_optarg ;;
917
918 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919 | --dataroo | --dataro | --datar)
920 ac_prev=datarootdir ;;
921 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923 datarootdir=$ac_optarg ;;
924
925 -disable-* | --disable-*)
926 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929 as_fn_error $? "invalid feature name: $ac_useropt"
930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
933 *"
934 "enable_$ac_useropt"
935 "*) ;;
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
938 esac
939 eval enable_$ac_useropt=no ;;
940
941 -docdir | --docdir | --docdi | --doc | --do)
942 ac_prev=docdir ;;
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 docdir=$ac_optarg ;;
945
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947 ac_prev=dvidir ;;
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 dvidir=$ac_optarg ;;
950
951 -enable-* | --enable-*)
952 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 as_fn_error $? "invalid feature name: $ac_useropt"
956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
959 *"
960 "enable_$ac_useropt"
961 "*) ;;
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
964 esac
965 eval enable_$ac_useropt=\$ac_optarg ;;
966
967 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
968 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
969 | --exec | --exe | --ex)
970 ac_prev=exec_prefix ;;
971 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
972 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
973 | --exec=* | --exe=* | --ex=*)
974 exec_prefix=$ac_optarg ;;
975
976 -gas | --gas | --ga | --g)
977 # Obsolete; use --with-gas.
978 with_gas=yes ;;
979
980 -help | --help | --hel | --he | -h)
981 ac_init_help=long ;;
982 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
983 ac_init_help=recursive ;;
984 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
985 ac_init_help=short ;;
986
987 -host | --host | --hos | --ho)
988 ac_prev=host_alias ;;
989 -host=* | --host=* | --hos=* | --ho=*)
990 host_alias=$ac_optarg ;;
991
992 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
993 ac_prev=htmldir ;;
994 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
995 | --ht=*)
996 htmldir=$ac_optarg ;;
997
998 -includedir | --includedir | --includedi | --included | --include \
999 | --includ | --inclu | --incl | --inc)
1000 ac_prev=includedir ;;
1001 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1002 | --includ=* | --inclu=* | --incl=* | --inc=*)
1003 includedir=$ac_optarg ;;
1004
1005 -infodir | --infodir | --infodi | --infod | --info | --inf)
1006 ac_prev=infodir ;;
1007 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1008 infodir=$ac_optarg ;;
1009
1010 -libdir | --libdir | --libdi | --libd)
1011 ac_prev=libdir ;;
1012 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1013 libdir=$ac_optarg ;;
1014
1015 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1016 | --libexe | --libex | --libe)
1017 ac_prev=libexecdir ;;
1018 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1019 | --libexe=* | --libex=* | --libe=*)
1020 libexecdir=$ac_optarg ;;
1021
1022 -localedir | --localedir | --localedi | --localed | --locale)
1023 ac_prev=localedir ;;
1024 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1025 localedir=$ac_optarg ;;
1026
1027 -localstatedir | --localstatedir | --localstatedi | --localstated \
1028 | --localstate | --localstat | --localsta | --localst | --locals)
1029 ac_prev=localstatedir ;;
1030 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1031 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1032 localstatedir=$ac_optarg ;;
1033
1034 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1035 ac_prev=mandir ;;
1036 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1037 mandir=$ac_optarg ;;
1038
1039 -nfp | --nfp | --nf)
1040 # Obsolete; use --without-fp.
1041 with_fp=no ;;
1042
1043 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1044 | --no-cr | --no-c | -n)
1045 no_create=yes ;;
1046
1047 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1048 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1049 no_recursion=yes ;;
1050
1051 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1052 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1053 | --oldin | --oldi | --old | --ol | --o)
1054 ac_prev=oldincludedir ;;
1055 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1056 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1057 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1058 oldincludedir=$ac_optarg ;;
1059
1060 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1061 ac_prev=prefix ;;
1062 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1063 prefix=$ac_optarg ;;
1064
1065 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1066 | --program-pre | --program-pr | --program-p)
1067 ac_prev=program_prefix ;;
1068 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1069 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1070 program_prefix=$ac_optarg ;;
1071
1072 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1073 | --program-suf | --program-su | --program-s)
1074 ac_prev=program_suffix ;;
1075 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1076 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1077 program_suffix=$ac_optarg ;;
1078
1079 -program-transform-name | --program-transform-name \
1080 | --program-transform-nam | --program-transform-na \
1081 | --program-transform-n | --program-transform- \
1082 | --program-transform | --program-transfor \
1083 | --program-transfo | --program-transf \
1084 | --program-trans | --program-tran \
1085 | --progr-tra | --program-tr | --program-t)
1086 ac_prev=program_transform_name ;;
1087 -program-transform-name=* | --program-transform-name=* \
1088 | --program-transform-nam=* | --program-transform-na=* \
1089 | --program-transform-n=* | --program-transform-=* \
1090 | --program-transform=* | --program-transfor=* \
1091 | --program-transfo=* | --program-transf=* \
1092 | --program-trans=* | --program-tran=* \
1093 | --progr-tra=* | --program-tr=* | --program-t=*)
1094 program_transform_name=$ac_optarg ;;
1095
1096 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1097 ac_prev=pdfdir ;;
1098 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1099 pdfdir=$ac_optarg ;;
1100
1101 -psdir | --psdir | --psdi | --psd | --ps)
1102 ac_prev=psdir ;;
1103 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1104 psdir=$ac_optarg ;;
1105
1106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1107 | -silent | --silent | --silen | --sile | --sil)
1108 silent=yes ;;
1109
1110 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1111 ac_prev=sbindir ;;
1112 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1113 | --sbi=* | --sb=*)
1114 sbindir=$ac_optarg ;;
1115
1116 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1117 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1118 | --sharedst | --shareds | --shared | --share | --shar \
1119 | --sha | --sh)
1120 ac_prev=sharedstatedir ;;
1121 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1122 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1123 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1124 | --sha=* | --sh=*)
1125 sharedstatedir=$ac_optarg ;;
1126
1127 -site | --site | --sit)
1128 ac_prev=site ;;
1129 -site=* | --site=* | --sit=*)
1130 site=$ac_optarg ;;
1131
1132 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1133 ac_prev=srcdir ;;
1134 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1135 srcdir=$ac_optarg ;;
1136
1137 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1138 | --syscon | --sysco | --sysc | --sys | --sy)
1139 ac_prev=sysconfdir ;;
1140 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1141 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1142 sysconfdir=$ac_optarg ;;
1143
1144 -target | --target | --targe | --targ | --tar | --ta | --t)
1145 ac_prev=target_alias ;;
1146 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1147 target_alias=$ac_optarg ;;
1148
1149 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1150 verbose=yes ;;
1151
1152 -version | --version | --versio | --versi | --vers | -V)
1153 ac_init_version=: ;;
1154
1155 -with-* | --with-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error $? "invalid package name: $ac_useropt"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1163 *"
1164 "with_$ac_useropt"
1165 "*) ;;
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1168 esac
1169 eval with_$ac_useropt=\$ac_optarg ;;
1170
1171 -without-* | --without-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error $? "invalid package name: $ac_useropt"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1179 *"
1180 "with_$ac_useropt"
1181 "*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=no ;;
1186
1187 --x)
1188 # Obsolete; use --with-x.
1189 with_x=yes ;;
1190
1191 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1192 | --x-incl | --x-inc | --x-in | --x-i)
1193 ac_prev=x_includes ;;
1194 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1195 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1196 x_includes=$ac_optarg ;;
1197
1198 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1199 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1200 ac_prev=x_libraries ;;
1201 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1202 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1203 x_libraries=$ac_optarg ;;
1204
1205 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1206 Try \`$0 --help' for more information"
1207 ;;
1208
1209 *=*)
1210 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211 # Reject names that are not valid shell variable names.
1212 case $ac_envvar in #(
1213 '' | [0-9]* | *[!_$as_cr_alnum]* )
1214 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1215 esac
1216 eval $ac_envvar=\$ac_optarg
1217 export $ac_envvar ;;
1218
1219 *)
1220 # FIXME: should be removed in autoconf 3.0.
1221 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1222 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1224 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1225 ;;
1226
1227 esac
1228 done
1229
1230 if test -n "$ac_prev"; then
1231 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1232 as_fn_error $? "missing argument to $ac_option"
1233 fi
1234
1235 if test -n "$ac_unrecognized_opts"; then
1236 case $enable_option_checking in
1237 no) ;;
1238 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1239 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1240 esac
1241 fi
1242
1243 # Check all directory arguments for consistency.
1244 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1245 datadir sysconfdir sharedstatedir localstatedir includedir \
1246 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1247 libdir localedir mandir
1248 do
1249 eval ac_val=\$$ac_var
1250 # Remove trailing slashes.
1251 case $ac_val in
1252 */ )
1253 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1254 eval $ac_var=\$ac_val;;
1255 esac
1256 # Be sure to have absolute directory names.
1257 case $ac_val in
1258 [\\/$]* | ?:[\\/]* ) continue;;
1259 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1260 esac
1261 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1262 done
1263
1264 # There might be people who depend on the old broken behavior: `$host'
1265 # used to hold the argument of --host etc.
1266 # FIXME: To remove some day.
1267 build=$build_alias
1268 host=$host_alias
1269 target=$target_alias
1270
1271 # FIXME: To remove some day.
1272 if test "x$host_alias" != x; then
1273 if test "x$build_alias" = x; then
1274 cross_compiling=maybe
1275 elif test "x$build_alias" != "x$host_alias"; then
1276 cross_compiling=yes
1277 fi
1278 fi
1279
1280 ac_tool_prefix=
1281 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282
1283 test "$silent" = yes && exec 6>/dev/null
1284
1285
1286 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287 ac_ls_di=`ls -di .` &&
1288 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289 as_fn_error $? "working directory cannot be determined"
1290 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291 as_fn_error $? "pwd does not report name of working directory"
1292
1293
1294 # Find the source files, if location was not specified.
1295 if test -z "$srcdir"; then
1296 ac_srcdir_defaulted=yes
1297 # Try the directory containing this script, then the parent directory.
1298 ac_confdir=`$as_dirname -- "$as_myself" ||
1299 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300 X"$as_myself" : 'X\(//\)[^/]' \| \
1301 X"$as_myself" : 'X\(//\)$' \| \
1302 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303 $as_echo X"$as_myself" |
1304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\/\)[^/].*/{
1309 s//\1/
1310 q
1311 }
1312 /^X\(\/\/\)$/{
1313 s//\1/
1314 q
1315 }
1316 /^X\(\/\).*/{
1317 s//\1/
1318 q
1319 }
1320 s/.*/./; q'`
1321 srcdir=$ac_confdir
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323 srcdir=..
1324 fi
1325 else
1326 ac_srcdir_defaulted=no
1327 fi
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1331 fi
1332 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1333 ac_abs_confdir=`(
1334 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1335 pwd)`
1336 # When building in place, set srcdir=.
1337 if test "$ac_abs_confdir" = "$ac_pwd"; then
1338 srcdir=.
1339 fi
1340 # Remove unnecessary trailing slashes from srcdir.
1341 # Double slashes in file names in object file debugging info
1342 # mess up M-x gdb in Emacs.
1343 case $srcdir in
1344 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345 esac
1346 for ac_var in $ac_precious_vars; do
1347 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_env_${ac_var}_value=\$${ac_var}
1349 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351 done
1352
1353 #
1354 # Report the --help message.
1355 #
1356 if test "$ac_init_help" = "long"; then
1357 # Omit some internal or obsolete options to make the list less imposing.
1358 # This message is too long to be a string in the A/UX 3.1 sh.
1359 cat <<_ACEOF
1360 \`configure' configures libXvMC 1.0.11 to adapt to many kinds of systems.
1361
1362 Usage: $0 [OPTION]... [VAR=VALUE]...
1363
1364 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365 VAR=VALUE. See below for descriptions of some of the useful variables.
1366
1367 Defaults for the options are specified in brackets.
1368
1369 Configuration:
1370 -h, --help display this help and exit
1371 --help=short display options specific to this package
1372 --help=recursive display the short help of all the included packages
1373 -V, --version display version information and exit
1374 -q, --quiet, --silent do not print \`checking ...' messages
1375 --cache-file=FILE cache test results in FILE [disabled]
1376 -C, --config-cache alias for \`--cache-file=config.cache'
1377 -n, --no-create do not create output files
1378 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1379
1380 Installation directories:
1381 --prefix=PREFIX install architecture-independent files in PREFIX
1382 [$ac_default_prefix]
1383 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1384 [PREFIX]
1385
1386 By default, \`make install' will install all the files in
1387 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1388 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389 for instance \`--prefix=\$HOME'.
1390
1391 For better control, use the options below.
1392
1393 Fine tuning of the installation directories:
1394 --bindir=DIR user executables [EPREFIX/bin]
1395 --sbindir=DIR system admin executables [EPREFIX/sbin]
1396 --libexecdir=DIR program executables [EPREFIX/libexec]
1397 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1398 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1399 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1400 --libdir=DIR object code libraries [EPREFIX/lib]
1401 --includedir=DIR C header files [PREFIX/include]
1402 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1403 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1404 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1405 --infodir=DIR info documentation [DATAROOTDIR/info]
1406 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1407 --mandir=DIR man documentation [DATAROOTDIR/man]
1408 --docdir=DIR documentation root [DATAROOTDIR/doc/libXvMC]
1409 --htmldir=DIR html documentation [DOCDIR]
1410 --dvidir=DIR dvi documentation [DOCDIR]
1411 --pdfdir=DIR pdf documentation [DOCDIR]
1412 --psdir=DIR ps documentation [DOCDIR]
1413 _ACEOF
1414
1415 cat <<\_ACEOF
1416
1417 Program names:
1418 --program-prefix=PREFIX prepend PREFIX to installed program names
1419 --program-suffix=SUFFIX append SUFFIX to installed program names
1420 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1421
1422 System types:
1423 --build=BUILD configure for building on BUILD [guessed]
1424 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1425 _ACEOF
1426 fi
1427
1428 if test -n "$ac_init_help"; then
1429 case $ac_init_help in
1430 short | recursive ) echo "Configuration of libXvMC 1.0.11:";;
1431 esac
1432 cat <<\_ACEOF
1433
1434 Optional Features:
1435 --disable-option-checking ignore unrecognized --enable/--with options
1436 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1437 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1438 --enable-silent-rules less verbose build output (undo: "make V=1")
1439 --disable-silent-rules verbose build output (undo: "make V=0")
1440 --enable-shared[=PKGS] build shared libraries [default=yes]
1441 --enable-static[=PKGS] build static libraries [default=yes]
1442 --enable-fast-install[=PKGS]
1443 optimize for fast installation [default=yes]
1444 --enable-dependency-tracking
1445 do not reject slow dependency extractors
1446 --disable-dependency-tracking
1447 speeds up one-time build
1448 --disable-libtool-lock avoid locking (might break parallel builds)
1449 --disable-selective-werror
1450 Turn off selective compiler errors. (default:
1451 enabled)
1452 --enable-strict-compilation
1453 Enable all warnings from compiler and make them
1454 errors (default: disabled)
1455 --enable-malloc0returnsnull
1456 malloc(0) returns NULL (default: auto)
1457
1458 Optional Packages:
1459 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1460 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1461 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1462 both]
1463 --with-aix-soname=aix|svr4|both
1464 shared library versioning (aka "SONAME") variant to
1465 provide on AIX, [default=aix].
1466 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1467 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1468 compiler's sysroot if not specified).
1469 --with-lint Use a lint-style source code checker (default:
1470 disabled)
1471
1472 Some influential environment variables:
1473 CC C compiler command
1474 CFLAGS C compiler flags
1475 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1476 nonstandard directory <lib dir>
1477 LIBS libraries to pass to the linker, e.g. -l<library>
1478 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1479 you have headers in a nonstandard directory <include dir>
1480 LT_SYS_LIBRARY_PATH
1481 User-defined run-time library search path.
1482 CPP C preprocessor
1483 PKG_CONFIG path to pkg-config utility
1484 PKG_CONFIG_PATH
1485 directories to add to pkg-config's search path
1486 PKG_CONFIG_LIBDIR
1487 path overriding pkg-config's built-in search path
1488 XVMC_CFLAGS C compiler flags for XVMC, overriding pkg-config
1489 XVMC_LIBS linker flags for XVMC, overriding pkg-config
1490 LINT Path to a lint-style command
1491 LINT_FLAGS Flags for the lint-style command
1492
1493 Use these variables to override the choices made by `configure' or to help
1494 it to find libraries and programs with nonstandard names/locations.
1495
1496 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXvMC/issues>.
1497 _ACEOF
1498 ac_status=$?
1499 fi
1500
1501 if test "$ac_init_help" = "recursive"; then
1502 # If there are subdirs, report their specific --help.
1503 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1504 test -d "$ac_dir" ||
1505 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1506 continue
1507 ac_builddir=.
1508
1509 case "$ac_dir" in
1510 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 *)
1512 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1513 # A ".." for each directory in $ac_dir_suffix.
1514 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1515 case $ac_top_builddir_sub in
1516 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1518 esac ;;
1519 esac
1520 ac_abs_top_builddir=$ac_pwd
1521 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522 # for backward compatibility:
1523 ac_top_builddir=$ac_top_build_prefix
1524
1525 case $srcdir in
1526 .) # We are building in place.
1527 ac_srcdir=.
1528 ac_top_srcdir=$ac_top_builddir_sub
1529 ac_abs_top_srcdir=$ac_pwd ;;
1530 [\\/]* | ?:[\\/]* ) # Absolute name.
1531 ac_srcdir=$srcdir$ac_dir_suffix;
1532 ac_top_srcdir=$srcdir
1533 ac_abs_top_srcdir=$srcdir ;;
1534 *) # Relative name.
1535 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536 ac_top_srcdir=$ac_top_build_prefix$srcdir
1537 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1538 esac
1539 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1540
1541 cd "$ac_dir" || { ac_status=$?; continue; }
1542 # Check for guested configure.
1543 if test -f "$ac_srcdir/configure.gnu"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546 elif test -f "$ac_srcdir/configure"; then
1547 echo &&
1548 $SHELL "$ac_srcdir/configure" --help=recursive
1549 else
1550 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1551 fi || ac_status=$?
1552 cd "$ac_pwd" || { ac_status=$?; break; }
1553 done
1554 fi
1555
1556 test -n "$ac_init_help" && exit $ac_status
1557 if $ac_init_version; then
1558 cat <<\_ACEOF
1559 libXvMC configure 1.0.11
1560 generated by GNU Autoconf 2.69
1561
1562 Copyright (C) 2012 Free Software Foundation, Inc.
1563 This configure script is free software; the Free Software Foundation
1564 gives unlimited permission to copy, distribute and modify it.
1565 _ACEOF
1566 exit
1567 fi
1568
1569 ## ------------------------ ##
1570 ## Autoconf initialization. ##
1571 ## ------------------------ ##
1572
1573 # ac_fn_c_try_compile LINENO
1574 # --------------------------
1575 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1576 ac_fn_c_try_compile ()
1577 {
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 rm -f conftest.$ac_objext
1580 if { { ac_try="$ac_compile"
1581 case "(($ac_try" in
1582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583 *) ac_try_echo=$ac_try;;
1584 esac
1585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586 $as_echo "$ac_try_echo"; } >&5
1587 (eval "$ac_compile") 2>conftest.err
1588 ac_status=$?
1589 if test -s conftest.err; then
1590 grep -v '^ *+' conftest.err >conftest.er1
1591 cat conftest.er1 >&5
1592 mv -f conftest.er1 conftest.err
1593 fi
1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595 test $ac_status = 0; } && {
1596 test -z "$ac_c_werror_flag" ||
1597 test ! -s conftest.err
1598 } && test -s conftest.$ac_objext; then :
1599 ac_retval=0
1600 else
1601 $as_echo "$as_me: failed program was:" >&5
1602 sed 's/^/| /' conftest.$ac_ext >&5
1603
1604 ac_retval=1
1605 fi
1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607 as_fn_set_status $ac_retval
1608
1609 } # ac_fn_c_try_compile
1610
1611 # ac_fn_c_try_link LINENO
1612 # -----------------------
1613 # Try to link conftest.$ac_ext, and return whether this succeeded.
1614 ac_fn_c_try_link ()
1615 {
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 rm -f conftest.$ac_objext conftest$ac_exeext
1618 if { { ac_try="$ac_link"
1619 case "(($ac_try" in
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1622 esac
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_link") 2>conftest.err
1626 ac_status=$?
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1631 fi
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } && {
1634 test -z "$ac_c_werror_flag" ||
1635 test ! -s conftest.err
1636 } && test -s conftest$ac_exeext && {
1637 test "$cross_compiling" = yes ||
1638 test -x conftest$ac_exeext
1639 }; then :
1640 ac_retval=0
1641 else
1642 $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1644
1645 ac_retval=1
1646 fi
1647 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1648 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1649 # interfere with the next link command; also delete a directory that is
1650 # left behind by Apple's compiler. We do this before executing the actions.
1651 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653 as_fn_set_status $ac_retval
1654
1655 } # ac_fn_c_try_link
1656
1657 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1658 # -------------------------------------------------------
1659 # Tests whether HEADER exists and can be compiled using the include files in
1660 # INCLUDES, setting the cache variable VAR accordingly.
1661 ac_fn_c_check_header_compile ()
1662 {
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1665 $as_echo_n "checking for $2... " >&6; }
1666 if eval \${$3+:} false; then :
1667 $as_echo_n "(cached) " >&6
1668 else
1669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670 /* end confdefs.h. */
1671 $4
1672 #include <$2>
1673 _ACEOF
1674 if ac_fn_c_try_compile "$LINENO"; then :
1675 eval "$3=yes"
1676 else
1677 eval "$3=no"
1678 fi
1679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1680 fi
1681 eval ac_res=\$$3
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 $as_echo "$ac_res" >&6; }
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685
1686 } # ac_fn_c_check_header_compile
1687
1688 # ac_fn_c_try_cpp LINENO
1689 # ----------------------
1690 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_cpp ()
1692 {
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 if { { ac_try="$ac_cpp conftest.$ac_ext"
1695 case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1702 ac_status=$?
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1707 fi
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } > conftest.i && {
1710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1712 }; then :
1713 ac_retval=0
1714 else
1715 $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1717
1718 ac_retval=1
1719 fi
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721 as_fn_set_status $ac_retval
1722
1723 } # ac_fn_c_try_cpp
1724
1725 # ac_fn_c_try_run LINENO
1726 # ----------------------
1727 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1728 # that executables *can* be run.
1729 ac_fn_c_try_run ()
1730 {
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 if { { ac_try="$ac_link"
1733 case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736 esac
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_link") 2>&5
1740 ac_status=$?
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1743 { { case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_try") 2>&5
1750 ac_status=$?
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; }; }; then :
1753 ac_retval=0
1754 else
1755 $as_echo "$as_me: program exited with status $ac_status" >&5
1756 $as_echo "$as_me: failed program was:" >&5
1757 sed 's/^/| /' conftest.$ac_ext >&5
1758
1759 ac_retval=$ac_status
1760 fi
1761 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763 as_fn_set_status $ac_retval
1764
1765 } # ac_fn_c_try_run
1766
1767 # ac_fn_c_check_func LINENO FUNC VAR
1768 # ----------------------------------
1769 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1770 ac_fn_c_check_func ()
1771 {
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774 $as_echo_n "checking for $2... " >&6; }
1775 if eval \${$3+:} false; then :
1776 $as_echo_n "(cached) " >&6
1777 else
1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779 /* end confdefs.h. */
1780 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1782 #define $2 innocuous_$2
1783
1784 /* System header to define __stub macros and hopefully few prototypes,
1785 which can conflict with char $2 (); below.
1786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1787 <limits.h> exists even on freestanding compilers. */
1788
1789 #ifdef __STDC__
1790 # include <limits.h>
1791 #else
1792 # include <assert.h>
1793 #endif
1794
1795 #undef $2
1796
1797 /* Override any GCC internal prototype to avoid an error.
1798 Use char because int might match the return type of a GCC
1799 builtin and then its argument prototype would still apply. */
1800 #ifdef __cplusplus
1801 extern "C"
1802 #endif
1803 char $2 ();
1804 /* The GNU C library defines this for functions which it implements
1805 to always fail with ENOSYS. Some functions are actually named
1806 something starting with __ and the normal name is an alias. */
1807 #if defined __stub_$2 || defined __stub___$2
1808 choke me
1809 #endif
1810
1811 int
1812 main ()
1813 {
1814 return $2 ();
1815 ;
1816 return 0;
1817 }
1818 _ACEOF
1819 if ac_fn_c_try_link "$LINENO"; then :
1820 eval "$3=yes"
1821 else
1822 eval "$3=no"
1823 fi
1824 rm -f core conftest.err conftest.$ac_objext \
1825 conftest$ac_exeext conftest.$ac_ext
1826 fi
1827 eval ac_res=\$$3
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829 $as_echo "$ac_res" >&6; }
1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831
1832 } # ac_fn_c_check_func
1833
1834 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1835 # ---------------------------------------------
1836 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1837 # accordingly.
1838 ac_fn_c_check_decl ()
1839 {
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 as_decl_name=`echo $2|sed 's/ *(.*//'`
1842 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1844 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1845 if eval \${$3+:} false; then :
1846 $as_echo_n "(cached) " >&6
1847 else
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1850 $4
1851 int
1852 main ()
1853 {
1854 #ifndef $as_decl_name
1855 #ifdef __cplusplus
1856 (void) $as_decl_use;
1857 #else
1858 (void) $as_decl_name;
1859 #endif
1860 #endif
1861
1862 ;
1863 return 0;
1864 }
1865 _ACEOF
1866 if ac_fn_c_try_compile "$LINENO"; then :
1867 eval "$3=yes"
1868 else
1869 eval "$3=no"
1870 fi
1871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1872 fi
1873 eval ac_res=\$$3
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877
1878 } # ac_fn_c_check_decl
1879 cat >config.log <<_ACEOF
1880 This file contains any messages produced by compilers while
1881 running configure, to aid debugging if configure makes a mistake.
1882
1883 It was created by libXvMC $as_me 1.0.11, which was
1884 generated by GNU Autoconf 2.69. Invocation command line was
1885
1886 $ $0 $@
1887
1888 _ACEOF
1889 exec 5>>config.log
1890 {
1891 cat <<_ASUNAME
1892 ## --------- ##
1893 ## Platform. ##
1894 ## --------- ##
1895
1896 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1897 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1898 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1899 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1900 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1901
1902 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1903 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1904
1905 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1906 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1907 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1908 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1909 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1910 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1911 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1912
1913 _ASUNAME
1914
1915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 for as_dir in $PATH
1917 do
1918 IFS=$as_save_IFS
1919 test -z "$as_dir" && as_dir=.
1920 $as_echo "PATH: $as_dir"
1921 done
1922 IFS=$as_save_IFS
1923
1924 } >&5
1925
1926 cat >&5 <<_ACEOF
1927
1928
1929 ## ----------- ##
1930 ## Core tests. ##
1931 ## ----------- ##
1932
1933 _ACEOF
1934
1935
1936 # Keep a trace of the command line.
1937 # Strip out --no-create and --no-recursion so they do not pile up.
1938 # Strip out --silent because we don't want to record it for future runs.
1939 # Also quote any args containing shell meta-characters.
1940 # Make two passes to allow for proper duplicate-argument suppression.
1941 ac_configure_args=
1942 ac_configure_args0=
1943 ac_configure_args1=
1944 ac_must_keep_next=false
1945 for ac_pass in 1 2
1946 do
1947 for ac_arg
1948 do
1949 case $ac_arg in
1950 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1951 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1952 | -silent | --silent | --silen | --sile | --sil)
1953 continue ;;
1954 *\'*)
1955 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1956 esac
1957 case $ac_pass in
1958 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1959 2)
1960 as_fn_append ac_configure_args1 " '$ac_arg'"
1961 if test $ac_must_keep_next = true; then
1962 ac_must_keep_next=false # Got value, back to normal.
1963 else
1964 case $ac_arg in
1965 *=* | --config-cache | -C | -disable-* | --disable-* \
1966 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1967 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1968 | -with-* | --with-* | -without-* | --without-* | --x)
1969 case "$ac_configure_args0 " in
1970 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1971 esac
1972 ;;
1973 -* ) ac_must_keep_next=true ;;
1974 esac
1975 fi
1976 as_fn_append ac_configure_args " '$ac_arg'"
1977 ;;
1978 esac
1979 done
1980 done
1981 { ac_configure_args0=; unset ac_configure_args0;}
1982 { ac_configure_args1=; unset ac_configure_args1;}
1983
1984 # When interrupted or exit'd, cleanup temporary files, and complete
1985 # config.log. We remove comments because anyway the quotes in there
1986 # would cause problems or look ugly.
1987 # WARNING: Use '\'' to represent an apostrophe within the trap.
1988 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1989 trap 'exit_status=$?
1990 # Save into config.log some information that might help in debugging.
1991 {
1992 echo
1993
1994 $as_echo "## ---------------- ##
1995 ## Cache variables. ##
1996 ## ---------------- ##"
1997 echo
1998 # The following way of writing the cache mishandles newlines in values,
1999 (
2000 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2001 eval ac_val=\$$ac_var
2002 case $ac_val in #(
2003 *${as_nl}*)
2004 case $ac_var in #(
2005 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2006 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2007 esac
2008 case $ac_var in #(
2009 _ | IFS | as_nl) ;; #(
2010 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2011 *) { eval $ac_var=; unset $ac_var;} ;;
2012 esac ;;
2013 esac
2014 done
2015 (set) 2>&1 |
2016 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2017 *${as_nl}ac_space=\ *)
2018 sed -n \
2019 "s/'\''/'\''\\\\'\'''\''/g;
2020 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2021 ;; #(
2022 *)
2023 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2024 ;;
2025 esac |
2026 sort
2027 )
2028 echo
2029
2030 $as_echo "## ----------------- ##
2031 ## Output variables. ##
2032 ## ----------------- ##"
2033 echo
2034 for ac_var in $ac_subst_vars
2035 do
2036 eval ac_val=\$$ac_var
2037 case $ac_val in
2038 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2039 esac
2040 $as_echo "$ac_var='\''$ac_val'\''"
2041 done | sort
2042 echo
2043
2044 if test -n "$ac_subst_files"; then
2045 $as_echo "## ------------------- ##
2046 ## File substitutions. ##
2047 ## ------------------- ##"
2048 echo
2049 for ac_var in $ac_subst_files
2050 do
2051 eval ac_val=\$$ac_var
2052 case $ac_val in
2053 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2054 esac
2055 $as_echo "$ac_var='\''$ac_val'\''"
2056 done | sort
2057 echo
2058 fi
2059
2060 if test -s confdefs.h; then
2061 $as_echo "## ----------- ##
2062 ## confdefs.h. ##
2063 ## ----------- ##"
2064 echo
2065 cat confdefs.h
2066 echo
2067 fi
2068 test "$ac_signal" != 0 &&
2069 $as_echo "$as_me: caught signal $ac_signal"
2070 $as_echo "$as_me: exit $exit_status"
2071 } >&5
2072 rm -f core *.core core.conftest.* &&
2073 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2074 exit $exit_status
2075 ' 0
2076 for ac_signal in 1 2 13 15; do
2077 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2078 done
2079 ac_signal=0
2080
2081 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2082 rm -f -r conftest* confdefs.h
2083
2084 $as_echo "/* confdefs.h */" > confdefs.h
2085
2086 # Predefined preprocessor variables.
2087
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_NAME "$PACKAGE_NAME"
2090 _ACEOF
2091
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2094 _ACEOF
2095
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2098 _ACEOF
2099
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_STRING "$PACKAGE_STRING"
2102 _ACEOF
2103
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2106 _ACEOF
2107
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_URL "$PACKAGE_URL"
2110 _ACEOF
2111
2112
2113 # Let the site file select an alternate cache file if it wants to.
2114 # Prefer an explicitly selected file to automatically selected ones.
2115 ac_site_file1=NONE
2116 ac_site_file2=NONE
2117 if test -n "$CONFIG_SITE"; then
2118 # We do not want a PATH search for config.site.
2119 case $CONFIG_SITE in #((
2120 -*) ac_site_file1=./$CONFIG_SITE;;
2121 */*) ac_site_file1=$CONFIG_SITE;;
2122 *) ac_site_file1=./$CONFIG_SITE;;
2123 esac
2124 elif test "x$prefix" != xNONE; then
2125 ac_site_file1=$prefix/share/config.site
2126 ac_site_file2=$prefix/etc/config.site
2127 else
2128 ac_site_file1=$ac_default_prefix/share/config.site
2129 ac_site_file2=$ac_default_prefix/etc/config.site
2130 fi
2131 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2132 do
2133 test "x$ac_site_file" = xNONE && continue
2134 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2136 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2137 sed 's/^/| /' "$ac_site_file" >&5
2138 . "$ac_site_file" \
2139 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2141 as_fn_error $? "failed to load site script $ac_site_file
2142 See \`config.log' for more details" "$LINENO" 5; }
2143 fi
2144 done
2145
2146 if test -r "$cache_file"; then
2147 # Some versions of bash will fail to source /dev/null (special files
2148 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2149 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2151 $as_echo "$as_me: loading cache $cache_file" >&6;}
2152 case $cache_file in
2153 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2154 *) . "./$cache_file";;
2155 esac
2156 fi
2157 else
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2159 $as_echo "$as_me: creating cache $cache_file" >&6;}
2160 >$cache_file
2161 fi
2162
2163 # Check that the precious variables saved in the cache have kept the same
2164 # value.
2165 ac_cache_corrupted=false
2166 for ac_var in $ac_precious_vars; do
2167 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2168 eval ac_new_set=\$ac_env_${ac_var}_set
2169 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2170 eval ac_new_val=\$ac_env_${ac_var}_value
2171 case $ac_old_set,$ac_new_set in
2172 set,)
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2174 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2175 ac_cache_corrupted=: ;;
2176 ,set)
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2178 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2179 ac_cache_corrupted=: ;;
2180 ,);;
2181 *)
2182 if test "x$ac_old_val" != "x$ac_new_val"; then
2183 # differences in whitespace do not lead to failure.
2184 ac_old_val_w=`echo x $ac_old_val`
2185 ac_new_val_w=`echo x $ac_new_val`
2186 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2188 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2189 ac_cache_corrupted=:
2190 else
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2192 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2193 eval $ac_var=\$ac_old_val
2194 fi
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2196 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2198 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2199 fi;;
2200 esac
2201 # Pass precious variables to config.status.
2202 if test "$ac_new_set" = set; then
2203 case $ac_new_val in
2204 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2205 *) ac_arg=$ac_var=$ac_new_val ;;
2206 esac
2207 case " $ac_configure_args " in
2208 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2209 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2210 esac
2211 fi
2212 done
2213 if $ac_cache_corrupted; then
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2217 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2218 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2219 fi
2220 ## -------------------- ##
2221 ## Main body of script. ##
2222 ## -------------------- ##
2223
2224 ac_ext=c
2225 ac_cpp='$CPP $CPPFLAGS'
2226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2229
2230
2231
2232 ac_config_headers="$ac_config_headers config.h"
2233
2234
2235 # Initialize Automake
2236 am__api_version='1.15'
2237
2238 ac_aux_dir=
2239 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2240 if test -f "$ac_dir/install-sh"; then
2241 ac_aux_dir=$ac_dir
2242 ac_install_sh="$ac_aux_dir/install-sh -c"
2243 break
2244 elif test -f "$ac_dir/install.sh"; then
2245 ac_aux_dir=$ac_dir
2246 ac_install_sh="$ac_aux_dir/install.sh -c"
2247 break
2248 elif test -f "$ac_dir/shtool"; then
2249 ac_aux_dir=$ac_dir
2250 ac_install_sh="$ac_aux_dir/shtool install -c"
2251 break
2252 fi
2253 done
2254 if test -z "$ac_aux_dir"; then
2255 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2256 fi
2257
2258 # These three variables are undocumented and unsupported,
2259 # and are intended to be withdrawn in a future Autoconf release.
2260 # They can cause serious problems if a builder's source tree is in a directory
2261 # whose full name contains unusual characters.
2262 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2263 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2264 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2265
2266
2267 # Find a good install program. We prefer a C program (faster),
2268 # so one script is as good as another. But avoid the broken or
2269 # incompatible versions:
2270 # SysV /etc/install, /usr/sbin/install
2271 # SunOS /usr/etc/install
2272 # IRIX /sbin/install
2273 # AIX /bin/install
2274 # AmigaOS /C/install, which installs bootblocks on floppy discs
2275 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2276 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2277 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2278 # OS/2's system install, which has a completely different semantic
2279 # ./install, which can be erroneously created by make from ./install.sh.
2280 # Reject install programs that cannot install multiple files.
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2282 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2283 if test -z "$INSTALL"; then
2284 if ${ac_cv_path_install+:} false; then :
2285 $as_echo_n "(cached) " >&6
2286 else
2287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288 for as_dir in $PATH
2289 do
2290 IFS=$as_save_IFS
2291 test -z "$as_dir" && as_dir=.
2292 # Account for people who put trailing slashes in PATH elements.
2293 case $as_dir/ in #((
2294 ./ | .// | /[cC]/* | \
2295 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2296 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2297 /usr/ucb/* ) ;;
2298 *)
2299 # OSF1 and SCO ODT 3.0 have their own names for install.
2300 # Don't use installbsd from OSF since it installs stuff as root
2301 # by default.
2302 for ac_prog in ginstall scoinst install; do
2303 for ac_exec_ext in '' $ac_executable_extensions; do
2304 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2305 if test $ac_prog = install &&
2306 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2307 # AIX install. It has an incompatible calling convention.
2308 :
2309 elif test $ac_prog = install &&
2310 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2311 # program-specific install script used by HP pwplus--don't use.
2312 :
2313 else
2314 rm -rf conftest.one conftest.two conftest.dir
2315 echo one > conftest.one
2316 echo two > conftest.two
2317 mkdir conftest.dir
2318 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2319 test -s conftest.one && test -s conftest.two &&
2320 test -s conftest.dir/conftest.one &&
2321 test -s conftest.dir/conftest.two
2322 then
2323 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2324 break 3
2325 fi
2326 fi
2327 fi
2328 done
2329 done
2330 ;;
2331 esac
2332
2333 done
2334 IFS=$as_save_IFS
2335
2336 rm -rf conftest.one conftest.two conftest.dir
2337
2338 fi
2339 if test "${ac_cv_path_install+set}" = set; then
2340 INSTALL=$ac_cv_path_install
2341 else
2342 # As a last resort, use the slow shell script. Don't cache a
2343 # value for INSTALL within a source directory, because that will
2344 # break other packages using the cache if that directory is
2345 # removed, or if the value is a relative name.
2346 INSTALL=$ac_install_sh
2347 fi
2348 fi
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2350 $as_echo "$INSTALL" >&6; }
2351
2352 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2353 # It thinks the first close brace ends the variable substitution.
2354 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2355
2356 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2357
2358 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2359
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2361 $as_echo_n "checking whether build environment is sane... " >&6; }
2362 # Reject unsafe characters in $srcdir or the absolute working directory
2363 # name. Accept space and tab only in the latter.
2364 am_lf='
2365 '
2366 case `pwd` in
2367 *[\\\"\#\$\&\'\`$am_lf]*)
2368 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2369 esac
2370 case $srcdir in
2371 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2372 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2373 esac
2374
2375 # Do 'set' in a subshell so we don't clobber the current shell's
2376 # arguments. Must try -L first in case configure is actually a
2377 # symlink; some systems play weird games with the mod time of symlinks
2378 # (eg FreeBSD returns the mod time of the symlink's containing
2379 # directory).
2380 if (
2381 am_has_slept=no
2382 for am_try in 1 2; do
2383 echo "timestamp, slept: $am_has_slept" > conftest.file
2384 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2385 if test "$*" = "X"; then
2386 # -L didn't work.
2387 set X `ls -t "$srcdir/configure" conftest.file`
2388 fi
2389 if test "$*" != "X $srcdir/configure conftest.file" \
2390 && test "$*" != "X conftest.file $srcdir/configure"; then
2391
2392 # If neither matched, then we have a broken ls. This can happen
2393 # if, for instance, CONFIG_SHELL is bash and it inherits a
2394 # broken ls alias from the environment. This has actually
2395 # happened. Such a system could not be considered "sane".
2396 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2397 alias in your environment" "$LINENO" 5
2398 fi
2399 if test "$2" = conftest.file || test $am_try -eq 2; then
2400 break
2401 fi
2402 # Just in case.
2403 sleep 1
2404 am_has_slept=yes
2405 done
2406 test "$2" = conftest.file
2407 )
2408 then
2409 # Ok.
2410 :
2411 else
2412 as_fn_error $? "newly created file is older than distributed files!
2413 Check your system clock" "$LINENO" 5
2414 fi
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2416 $as_echo "yes" >&6; }
2417 # If we didn't sleep, we still need to ensure time stamps of config.status and
2418 # generated files are strictly newer.
2419 am_sleep_pid=
2420 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2421 ( sleep 1 ) &
2422 am_sleep_pid=$!
2423 fi
2424
2425 rm -f conftest.file
2426
2427 test "$program_prefix" != NONE &&
2428 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2429 # Use a double $ so make ignores it.
2430 test "$program_suffix" != NONE &&
2431 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2432 # Double any \ or $.
2433 # By default was `s,x,x', remove it if useless.
2434 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2435 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2436
2437 # Expand $ac_aux_dir to an absolute path.
2438 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2439
2440 if test x"${MISSING+set}" != xset; then
2441 case $am_aux_dir in
2442 *\ * | *\ *)
2443 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2444 *)
2445 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2446 esac
2447 fi
2448 # Use eval to expand $SHELL
2449 if eval "$MISSING --is-lightweight"; then
2450 am_missing_run="$MISSING "
2451 else
2452 am_missing_run=
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2454 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2455 fi
2456
2457 if test x"${install_sh+set}" != xset; then
2458 case $am_aux_dir in
2459 *\ * | *\ *)
2460 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2461 *)
2462 install_sh="\${SHELL} $am_aux_dir/install-sh"
2463 esac
2464 fi
2465
2466 # Installed binaries are usually stripped using 'strip' when the user
2467 # run "make install-strip". However 'strip' might not be the right
2468 # tool to use in cross-compilation environments, therefore Automake
2469 # will honor the 'STRIP' environment variable to overrule this program.
2470 if test "$cross_compiling" != no; then
2471 if test -n "$ac_tool_prefix"; then
2472 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2473 set dummy ${ac_tool_prefix}strip; ac_word=$2
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2475 $as_echo_n "checking for $ac_word... " >&6; }
2476 if ${ac_cv_prog_STRIP+:} false; then :
2477 $as_echo_n "(cached) " >&6
2478 else
2479 if test -n "$STRIP"; then
2480 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2481 else
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 for as_dir in $PATH
2484 do
2485 IFS=$as_save_IFS
2486 test -z "$as_dir" && as_dir=.
2487 for ac_exec_ext in '' $ac_executable_extensions; do
2488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2489 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2491 break 2
2492 fi
2493 done
2494 done
2495 IFS=$as_save_IFS
2496
2497 fi
2498 fi
2499 STRIP=$ac_cv_prog_STRIP
2500 if test -n "$STRIP"; then
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2502 $as_echo "$STRIP" >&6; }
2503 else
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2505 $as_echo "no" >&6; }
2506 fi
2507
2508
2509 fi
2510 if test -z "$ac_cv_prog_STRIP"; then
2511 ac_ct_STRIP=$STRIP
2512 # Extract the first word of "strip", so it can be a program name with args.
2513 set dummy strip; ac_word=$2
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2515 $as_echo_n "checking for $ac_word... " >&6; }
2516 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2517 $as_echo_n "(cached) " >&6
2518 else
2519 if test -n "$ac_ct_STRIP"; then
2520 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2521 else
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523 for as_dir in $PATH
2524 do
2525 IFS=$as_save_IFS
2526 test -z "$as_dir" && as_dir=.
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2529 ac_cv_prog_ac_ct_STRIP="strip"
2530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2531 break 2
2532 fi
2533 done
2534 done
2535 IFS=$as_save_IFS
2536
2537 fi
2538 fi
2539 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2540 if test -n "$ac_ct_STRIP"; then
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2542 $as_echo "$ac_ct_STRIP" >&6; }
2543 else
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2545 $as_echo "no" >&6; }
2546 fi
2547
2548 if test "x$ac_ct_STRIP" = x; then
2549 STRIP=":"
2550 else
2551 case $cross_compiling:$ac_tool_warned in
2552 yes:)
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2555 ac_tool_warned=yes ;;
2556 esac
2557 STRIP=$ac_ct_STRIP
2558 fi
2559 else
2560 STRIP="$ac_cv_prog_STRIP"
2561 fi
2562
2563 fi
2564 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2565
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2567 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2568 if test -z "$MKDIR_P"; then
2569 if ${ac_cv_path_mkdir+:} false; then :
2570 $as_echo_n "(cached) " >&6
2571 else
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2574 do
2575 IFS=$as_save_IFS
2576 test -z "$as_dir" && as_dir=.
2577 for ac_prog in mkdir gmkdir; do
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2580 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2581 'mkdir (GNU coreutils) '* | \
2582 'mkdir (coreutils) '* | \
2583 'mkdir (fileutils) '4.1*)
2584 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2585 break 3;;
2586 esac
2587 done
2588 done
2589 done
2590 IFS=$as_save_IFS
2591
2592 fi
2593
2594 test -d ./--version && rmdir ./--version
2595 if test "${ac_cv_path_mkdir+set}" = set; then
2596 MKDIR_P="$ac_cv_path_mkdir -p"
2597 else
2598 # As a last resort, use the slow shell script. Don't cache a
2599 # value for MKDIR_P within a source directory, because that will
2600 # break other packages using the cache if that directory is
2601 # removed, or if the value is a relative name.
2602 MKDIR_P="$ac_install_sh -d"
2603 fi
2604 fi
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2606 $as_echo "$MKDIR_P" >&6; }
2607
2608 for ac_prog in gawk mawk nawk awk
2609 do
2610 # Extract the first word of "$ac_prog", so it can be a program name with args.
2611 set dummy $ac_prog; ac_word=$2
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2613 $as_echo_n "checking for $ac_word... " >&6; }
2614 if ${ac_cv_prog_AWK+:} false; then :
2615 $as_echo_n "(cached) " >&6
2616 else
2617 if test -n "$AWK"; then
2618 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2619 else
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 for as_dir in $PATH
2622 do
2623 IFS=$as_save_IFS
2624 test -z "$as_dir" && as_dir=.
2625 for ac_exec_ext in '' $ac_executable_extensions; do
2626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2627 ac_cv_prog_AWK="$ac_prog"
2628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 break 2
2630 fi
2631 done
2632 done
2633 IFS=$as_save_IFS
2634
2635 fi
2636 fi
2637 AWK=$ac_cv_prog_AWK
2638 if test -n "$AWK"; then
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2640 $as_echo "$AWK" >&6; }
2641 else
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2643 $as_echo "no" >&6; }
2644 fi
2645
2646
2647 test -n "$AWK" && break
2648 done
2649
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2651 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2652 set x ${MAKE-make}
2653 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2654 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2655 $as_echo_n "(cached) " >&6
2656 else
2657 cat >conftest.make <<\_ACEOF
2658 SHELL = /bin/sh
2659 all:
2660 @echo '@@@%%%=$(MAKE)=@@@%%%'
2661 _ACEOF
2662 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2663 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2664 *@@@%%%=?*=@@@%%%*)
2665 eval ac_cv_prog_make_${ac_make}_set=yes;;
2666 *)
2667 eval ac_cv_prog_make_${ac_make}_set=no;;
2668 esac
2669 rm -f conftest.make
2670 fi
2671 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2673 $as_echo "yes" >&6; }
2674 SET_MAKE=
2675 else
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2677 $as_echo "no" >&6; }
2678 SET_MAKE="MAKE=${MAKE-make}"
2679 fi
2680
2681 rm -rf .tst 2>/dev/null
2682 mkdir .tst 2>/dev/null
2683 if test -d .tst; then
2684 am__leading_dot=.
2685 else
2686 am__leading_dot=_
2687 fi
2688 rmdir .tst 2>/dev/null
2689
2690 # Check whether --enable-silent-rules was given.
2691 if test "${enable_silent_rules+set}" = set; then :
2692 enableval=$enable_silent_rules;
2693 fi
2694
2695 case $enable_silent_rules in # (((
2696 yes) AM_DEFAULT_VERBOSITY=0;;
2697 no) AM_DEFAULT_VERBOSITY=1;;
2698 *) AM_DEFAULT_VERBOSITY=1;;
2699 esac
2700 am_make=${MAKE-make}
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2702 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2703 if ${am_cv_make_support_nested_variables+:} false; then :
2704 $as_echo_n "(cached) " >&6
2705 else
2706 if $as_echo 'TRUE=$(BAR$(V))
2707 BAR0=false
2708 BAR1=true
2709 V=1
2710 am__doit:
2711 @$(TRUE)
2712 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2713 am_cv_make_support_nested_variables=yes
2714 else
2715 am_cv_make_support_nested_variables=no
2716 fi
2717 fi
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2719 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2720 if test $am_cv_make_support_nested_variables = yes; then
2721 AM_V='$(V)'
2722 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2723 else
2724 AM_V=$AM_DEFAULT_VERBOSITY
2725 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2726 fi
2727 AM_BACKSLASH='\'
2728
2729 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2730 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2731 # is not polluted with repeated "-I."
2732 am__isrc=' -I$(srcdir)'
2733 # test to see if srcdir already configured
2734 if test -f $srcdir/config.status; then
2735 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2736 fi
2737 fi
2738
2739 # test whether we have cygpath
2740 if test -z "$CYGPATH_W"; then
2741 if (cygpath --version) >/dev/null 2>/dev/null; then
2742 CYGPATH_W='cygpath -w'
2743 else
2744 CYGPATH_W=echo
2745 fi
2746 fi
2747
2748
2749 # Define the identity of the package.
2750 PACKAGE='libXvMC'
2751 VERSION='1.0.11'
2752
2753
2754 cat >>confdefs.h <<_ACEOF
2755 #define PACKAGE "$PACKAGE"
2756 _ACEOF
2757
2758
2759 cat >>confdefs.h <<_ACEOF
2760 #define VERSION "$VERSION"
2761 _ACEOF
2762
2763 # Some tools Automake needs.
2764
2765 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2766
2767
2768 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2769
2770
2771 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2772
2773
2774 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2775
2776
2777 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2778
2779 # For better backward compatibility. To be removed once Automake 1.9.x
2780 # dies out for good. For more background, see:
2781 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2782 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2783 mkdir_p='$(MKDIR_P)'
2784
2785 # We need awk for the "check" target (and possibly the TAP driver). The
2786 # system "awk" is bad on some platforms.
2787 # Always define AMTAR for backward compatibility. Yes, it's still used
2788 # in the wild :-( We should find a proper way to deprecate it ...
2789 AMTAR='$${TAR-tar}'
2790
2791
2792 # We'll loop over all known methods to create a tar archive until one works.
2793 _am_tools='gnutar pax cpio none'
2794
2795 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2796
2797
2798
2799
2800
2801
2802 # POSIX will say in a future version that running "rm -f" with no argument
2803 # is OK; and we want to be able to make that assumption in our Makefile
2804 # recipes. So use an aggressive probe to check that the usage we want is
2805 # actually supported "in the wild" to an acceptable degree.
2806 # See automake bug#10828.
2807 # To make any issue more visible, cause the running configure to be aborted
2808 # by default if the 'rm' program in use doesn't match our expectations; the
2809 # user can still override this though.
2810 if rm -f && rm -fr && rm -rf; then : OK; else
2811 cat >&2 <<'END'
2812 Oops!
2813
2814 Your 'rm' program seems unable to run without file operands specified
2815 on the command line, even when the '-f' option is present. This is contrary
2816 to the behaviour of most rm programs out there, and not conforming with
2817 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2818
2819 Please tell bug-automake@gnu.org about your system, including the value
2820 of your $PATH and any error possibly output before this message. This
2821 can help us improve future automake versions.
2822
2823 END
2824 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2825 echo 'Configuration will proceed anyway, since you have set the' >&2
2826 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2827 echo >&2
2828 else
2829 cat >&2 <<'END'
2830 Aborting the configuration process, to ensure you take notice of the issue.
2831
2832 You can download and install GNU coreutils to get an 'rm' implementation
2833 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2834
2835 If you want to complete the configuration process using your problematic
2836 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2837 to "yes", and re-run configure.
2838
2839 END
2840 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2841 fi
2842 fi
2843
2844
2845 # Initialize libtool
2846 case `pwd` in
2847 *\ * | *\ *)
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2849 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2850 esac
2851
2852
2853
2854 macro_version='2.4.6'
2855 macro_revision='2.4.6'
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869 ltmain=$ac_aux_dir/ltmain.sh
2870
2871 # Make sure we can run config.sub.
2872 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2873 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2874
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2876 $as_echo_n "checking build system type... " >&6; }
2877 if ${ac_cv_build+:} false; then :
2878 $as_echo_n "(cached) " >&6
2879 else
2880 ac_build_alias=$build_alias
2881 test "x$ac_build_alias" = x &&
2882 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2883 test "x$ac_build_alias" = x &&
2884 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2885 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2886 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2887
2888 fi
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2890 $as_echo "$ac_cv_build" >&6; }
2891 case $ac_cv_build in
2892 *-*-*) ;;
2893 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2894 esac
2895 build=$ac_cv_build
2896 ac_save_IFS=$IFS; IFS='-'
2897 set x $ac_cv_build
2898 shift
2899 build_cpu=$1
2900 build_vendor=$2
2901 shift; shift
2902 # Remember, the first character of IFS is used to create $*,
2903 # except with old shells:
2904 build_os=$*
2905 IFS=$ac_save_IFS
2906 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2907
2908
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2910 $as_echo_n "checking host system type... " >&6; }
2911 if ${ac_cv_host+:} false; then :
2912 $as_echo_n "(cached) " >&6
2913 else
2914 if test "x$host_alias" = x; then
2915 ac_cv_host=$ac_cv_build
2916 else
2917 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2918 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2919 fi
2920
2921 fi
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2923 $as_echo "$ac_cv_host" >&6; }
2924 case $ac_cv_host in
2925 *-*-*) ;;
2926 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2927 esac
2928 host=$ac_cv_host
2929 ac_save_IFS=$IFS; IFS='-'
2930 set x $ac_cv_host
2931 shift
2932 host_cpu=$1
2933 host_vendor=$2
2934 shift; shift
2935 # Remember, the first character of IFS is used to create $*,
2936 # except with old shells:
2937 host_os=$*
2938 IFS=$ac_save_IFS
2939 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2940
2941
2942 # Backslashify metacharacters that are still active within
2943 # double-quoted strings.
2944 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2945
2946 # Same as above, but do not quote variable references.
2947 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2948
2949 # Sed substitution to delay expansion of an escaped shell variable in a
2950 # double_quote_subst'ed string.
2951 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2952
2953 # Sed substitution to delay expansion of an escaped single quote.
2954 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2955
2956 # Sed substitution to avoid accidental globbing in evaled expressions
2957 no_glob_subst='s/\*/\\\*/g'
2958
2959 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2960 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2961 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2962
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2964 $as_echo_n "checking how to print strings... " >&6; }
2965 # Test print first, because it will be a builtin if present.
2966 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2967 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2968 ECHO='print -r --'
2969 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2970 ECHO='printf %s\n'
2971 else
2972 # Use this function as a fallback that always works.
2973 func_fallback_echo ()
2974 {
2975 eval 'cat <<_LTECHO_EOF
2976 $1
2977 _LTECHO_EOF'
2978 }
2979 ECHO='func_fallback_echo'
2980 fi
2981
2982 # func_echo_all arg...
2983 # Invoke $ECHO with all args, space-separated.
2984 func_echo_all ()
2985 {
2986 $ECHO ""
2987 }
2988
2989 case $ECHO in
2990 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2991 $as_echo "printf" >&6; } ;;
2992 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2993 $as_echo "print -r" >&6; } ;;
2994 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2995 $as_echo "cat" >&6; } ;;
2996 esac
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011 DEPDIR="${am__leading_dot}deps"
3012
3013 ac_config_commands="$ac_config_commands depfiles"
3014
3015
3016 am_make=${MAKE-make}
3017 cat > confinc << 'END'
3018 am__doit:
3019 @echo this is the am__doit target
3020 .PHONY: am__doit
3021 END
3022 # If we don't find an include directive, just comment out the code.
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3024 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3025 am__include="#"
3026 am__quote=
3027 _am_result=none
3028 # First try GNU make style include.
3029 echo "include confinc" > confmf
3030 # Ignore all kinds of additional output from 'make'.
3031 case `$am_make -s -f confmf 2> /dev/null` in #(
3032 *the\ am__doit\ target*)
3033 am__include=include
3034 am__quote=
3035 _am_result=GNU
3036 ;;
3037 esac
3038 # Now try BSD make style include.
3039 if test "$am__include" = "#"; then
3040 echo '.include "confinc"' > confmf
3041 case `$am_make -s -f confmf 2> /dev/null` in #(
3042 *the\ am__doit\ target*)
3043 am__include=.include
3044 am__quote="\""
3045 _am_result=BSD
3046 ;;
3047 esac
3048 fi
3049
3050
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3052 $as_echo "$_am_result" >&6; }
3053 rm -f confinc confmf
3054
3055 # Check whether --enable-dependency-tracking was given.
3056 if test "${enable_dependency_tracking+set}" = set; then :
3057 enableval=$enable_dependency_tracking;
3058 fi
3059
3060 if test "x$enable_dependency_tracking" != xno; then
3061 am_depcomp="$ac_aux_dir/depcomp"
3062 AMDEPBACKSLASH='\'
3063 am__nodep='_no'
3064 fi
3065 if test "x$enable_dependency_tracking" != xno; then
3066 AMDEP_TRUE=
3067 AMDEP_FALSE='#'
3068 else
3069 AMDEP_TRUE='#'
3070 AMDEP_FALSE=
3071 fi
3072
3073
3074 ac_ext=c
3075 ac_cpp='$CPP $CPPFLAGS'
3076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3079 if test -n "$ac_tool_prefix"; then
3080 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3081 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3083 $as_echo_n "checking for $ac_word... " >&6; }
3084 if ${ac_cv_prog_CC+:} false; then :
3085 $as_echo_n "(cached) " >&6
3086 else
3087 if test -n "$CC"; then
3088 ac_cv_prog_CC="$CC" # Let the user override the test.
3089 else
3090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091 for as_dir in $PATH
3092 do
3093 IFS=$as_save_IFS
3094 test -z "$as_dir" && as_dir=.
3095 for ac_exec_ext in '' $ac_executable_extensions; do
3096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3097 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3099 break 2
3100 fi
3101 done
3102 done
3103 IFS=$as_save_IFS
3104
3105 fi
3106 fi
3107 CC=$ac_cv_prog_CC
3108 if test -n "$CC"; then
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3110 $as_echo "$CC" >&6; }
3111 else
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113 $as_echo "no" >&6; }
3114 fi
3115
3116
3117 fi
3118 if test -z "$ac_cv_prog_CC"; then
3119 ac_ct_CC=$CC
3120 # Extract the first word of "gcc", so it can be a program name with args.
3121 set dummy gcc; ac_word=$2
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3123 $as_echo_n "checking for $ac_word... " >&6; }
3124 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3125 $as_echo_n "(cached) " >&6
3126 else
3127 if test -n "$ac_ct_CC"; then
3128 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3129 else
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 for as_dir in $PATH
3132 do
3133 IFS=$as_save_IFS
3134 test -z "$as_dir" && as_dir=.
3135 for ac_exec_ext in '' $ac_executable_extensions; do
3136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3137 ac_cv_prog_ac_ct_CC="gcc"
3138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3139 break 2
3140 fi
3141 done
3142 done
3143 IFS=$as_save_IFS
3144
3145 fi
3146 fi
3147 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3148 if test -n "$ac_ct_CC"; then
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3150 $as_echo "$ac_ct_CC" >&6; }
3151 else
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153 $as_echo "no" >&6; }
3154 fi
3155
3156 if test "x$ac_ct_CC" = x; then
3157 CC=""
3158 else
3159 case $cross_compiling:$ac_tool_warned in
3160 yes:)
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3163 ac_tool_warned=yes ;;
3164 esac
3165 CC=$ac_ct_CC
3166 fi
3167 else
3168 CC="$ac_cv_prog_CC"
3169 fi
3170
3171 if test -z "$CC"; then
3172 if test -n "$ac_tool_prefix"; then
3173 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3174 set dummy ${ac_tool_prefix}cc; ac_word=$2
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3176 $as_echo_n "checking for $ac_word... " >&6; }
3177 if ${ac_cv_prog_CC+:} false; then :
3178 $as_echo_n "(cached) " >&6
3179 else
3180 if test -n "$CC"; then
3181 ac_cv_prog_CC="$CC" # Let the user override the test.
3182 else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3185 do
3186 IFS=$as_save_IFS
3187 test -z "$as_dir" && as_dir=.
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190 ac_cv_prog_CC="${ac_tool_prefix}cc"
3191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192 break 2
3193 fi
3194 done
3195 done
3196 IFS=$as_save_IFS
3197
3198 fi
3199 fi
3200 CC=$ac_cv_prog_CC
3201 if test -n "$CC"; then
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3203 $as_echo "$CC" >&6; }
3204 else
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206 $as_echo "no" >&6; }
3207 fi
3208
3209
3210 fi
3211 fi
3212 if test -z "$CC"; then
3213 # Extract the first word of "cc", so it can be a program name with args.
3214 set dummy cc; ac_word=$2
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3216 $as_echo_n "checking for $ac_word... " >&6; }
3217 if ${ac_cv_prog_CC+:} false; then :
3218 $as_echo_n "(cached) " >&6
3219 else
3220 if test -n "$CC"; then
3221 ac_cv_prog_CC="$CC" # Let the user override the test.
3222 else
3223 ac_prog_rejected=no
3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 for as_dir in $PATH
3226 do
3227 IFS=$as_save_IFS
3228 test -z "$as_dir" && as_dir=.
3229 for ac_exec_ext in '' $ac_executable_extensions; do
3230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3231 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3232 ac_prog_rejected=yes
3233 continue
3234 fi
3235 ac_cv_prog_CC="cc"
3236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3237 break 2
3238 fi
3239 done
3240 done
3241 IFS=$as_save_IFS
3242
3243 if test $ac_prog_rejected = yes; then
3244 # We found a bogon in the path, so make sure we never use it.
3245 set dummy $ac_cv_prog_CC
3246 shift
3247 if test $# != 0; then
3248 # We chose a different compiler from the bogus one.
3249 # However, it has the same basename, so the bogon will be chosen
3250 # first if we set CC to just the basename; use the full file name.
3251 shift
3252 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3253 fi
3254 fi
3255 fi
3256 fi
3257 CC=$ac_cv_prog_CC
3258 if test -n "$CC"; then
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3260 $as_echo "$CC" >&6; }
3261 else
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263 $as_echo "no" >&6; }
3264 fi
3265
3266
3267 fi
3268 if test -z "$CC"; then
3269 if test -n "$ac_tool_prefix"; then
3270 for ac_prog in cl.exe
3271 do
3272 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3273 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3275 $as_echo_n "checking for $ac_word... " >&6; }
3276 if ${ac_cv_prog_CC+:} false; then :
3277 $as_echo_n "(cached) " >&6
3278 else
3279 if test -n "$CC"; then
3280 ac_cv_prog_CC="$CC" # Let the user override the test.
3281 else
3282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283 for as_dir in $PATH
3284 do
3285 IFS=$as_save_IFS
3286 test -z "$as_dir" && as_dir=.
3287 for ac_exec_ext in '' $ac_executable_extensions; do
3288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3289 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3291 break 2
3292 fi
3293 done
3294 done
3295 IFS=$as_save_IFS
3296
3297 fi
3298 fi
3299 CC=$ac_cv_prog_CC
3300 if test -n "$CC"; then
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3302 $as_echo "$CC" >&6; }
3303 else
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305 $as_echo "no" >&6; }
3306 fi
3307
3308
3309 test -n "$CC" && break
3310 done
3311 fi
3312 if test -z "$CC"; then
3313 ac_ct_CC=$CC
3314 for ac_prog in cl.exe
3315 do
3316 # Extract the first word of "$ac_prog", so it can be a program name with args.
3317 set dummy $ac_prog; ac_word=$2
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3319 $as_echo_n "checking for $ac_word... " >&6; }
3320 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3321 $as_echo_n "(cached) " >&6
3322 else
3323 if test -n "$ac_ct_CC"; then
3324 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3325 else
3326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3327 for as_dir in $PATH
3328 do
3329 IFS=$as_save_IFS
3330 test -z "$as_dir" && as_dir=.
3331 for ac_exec_ext in '' $ac_executable_extensions; do
3332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3333 ac_cv_prog_ac_ct_CC="$ac_prog"
3334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3335 break 2
3336 fi
3337 done
3338 done
3339 IFS=$as_save_IFS
3340
3341 fi
3342 fi
3343 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3344 if test -n "$ac_ct_CC"; then
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3346 $as_echo "$ac_ct_CC" >&6; }
3347 else
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3349 $as_echo "no" >&6; }
3350 fi
3351
3352
3353 test -n "$ac_ct_CC" && break
3354 done
3355
3356 if test "x$ac_ct_CC" = x; then
3357 CC=""
3358 else
3359 case $cross_compiling:$ac_tool_warned in
3360 yes:)
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3363 ac_tool_warned=yes ;;
3364 esac
3365 CC=$ac_ct_CC
3366 fi
3367 fi
3368
3369 fi
3370
3371
3372 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3374 as_fn_error $? "no acceptable C compiler found in \$PATH
3375 See \`config.log' for more details" "$LINENO" 5; }
3376
3377 # Provide some information about the compiler.
3378 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3379 set X $ac_compile
3380 ac_compiler=$2
3381 for ac_option in --version -v -V -qversion; do
3382 { { ac_try="$ac_compiler $ac_option >&5"
3383 case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3386 esac
3387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3388 $as_echo "$ac_try_echo"; } >&5
3389 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3390 ac_status=$?
3391 if test -s conftest.err; then
3392 sed '10a\
3393 ... rest of stderr output deleted ...
3394 10q' conftest.err >conftest.er1
3395 cat conftest.er1 >&5
3396 fi
3397 rm -f conftest.er1 conftest.err
3398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3399 test $ac_status = 0; }
3400 done
3401
3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403 /* end confdefs.h. */
3404
3405 int
3406 main ()
3407 {
3408
3409 ;
3410 return 0;
3411 }
3412 _ACEOF
3413 ac_clean_files_save=$ac_clean_files
3414 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3415 # Try to create an executable without -o first, disregard a.out.
3416 # It will help us diagnose broken compilers, and finding out an intuition
3417 # of exeext.
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3419 $as_echo_n "checking whether the C compiler works... " >&6; }
3420 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3421
3422 # The possible output files:
3423 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3424
3425 ac_rmfiles=
3426 for ac_file in $ac_files
3427 do
3428 case $ac_file in
3429 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3430 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3431 esac
3432 done
3433 rm -f $ac_rmfiles
3434
3435 if { { ac_try="$ac_link_default"
3436 case "(($ac_try" in
3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438 *) ac_try_echo=$ac_try;;
3439 esac
3440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3441 $as_echo "$ac_try_echo"; } >&5
3442 (eval "$ac_link_default") 2>&5
3443 ac_status=$?
3444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3445 test $ac_status = 0; }; then :
3446 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3447 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3448 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3449 # so that the user can short-circuit this test for compilers unknown to
3450 # Autoconf.
3451 for ac_file in $ac_files ''
3452 do
3453 test -f "$ac_file" || continue
3454 case $ac_file in
3455 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3456 ;;
3457 [ab].out )
3458 # We found the default executable, but exeext='' is most
3459 # certainly right.
3460 break;;
3461 *.* )
3462 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3463 then :; else
3464 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3465 fi
3466 # We set ac_cv_exeext here because the later test for it is not
3467 # safe: cross compilers may not add the suffix if given an `-o'
3468 # argument, so we may need to know it at that point already.
3469 # Even if this section looks crufty: it has the advantage of
3470 # actually working.
3471 break;;
3472 * )
3473 break;;
3474 esac
3475 done
3476 test "$ac_cv_exeext" = no && ac_cv_exeext=
3477
3478 else
3479 ac_file=''
3480 fi
3481 if test -z "$ac_file"; then :
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483 $as_echo "no" >&6; }
3484 $as_echo "$as_me: failed program was:" >&5
3485 sed 's/^/| /' conftest.$ac_ext >&5
3486
3487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3489 as_fn_error 77 "C compiler cannot create executables
3490 See \`config.log' for more details" "$LINENO" 5; }
3491 else
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3493 $as_echo "yes" >&6; }
3494 fi
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3496 $as_echo_n "checking for C compiler default output file name... " >&6; }
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3498 $as_echo "$ac_file" >&6; }
3499 ac_exeext=$ac_cv_exeext
3500
3501 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3502 ac_clean_files=$ac_clean_files_save
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3504 $as_echo_n "checking for suffix of executables... " >&6; }
3505 if { { ac_try="$ac_link"
3506 case "(($ac_try" in
3507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508 *) ac_try_echo=$ac_try;;
3509 esac
3510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3511 $as_echo "$ac_try_echo"; } >&5
3512 (eval "$ac_link") 2>&5
3513 ac_status=$?
3514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3515 test $ac_status = 0; }; then :
3516 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3517 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3518 # work properly (i.e., refer to `conftest.exe'), while it won't with
3519 # `rm'.
3520 for ac_file in conftest.exe conftest conftest.*; do
3521 test -f "$ac_file" || continue
3522 case $ac_file in
3523 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3524 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3525 break;;
3526 * ) break;;
3527 esac
3528 done
3529 else
3530 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3532 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3533 See \`config.log' for more details" "$LINENO" 5; }
3534 fi
3535 rm -f conftest conftest$ac_cv_exeext
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3537 $as_echo "$ac_cv_exeext" >&6; }
3538
3539 rm -f conftest.$ac_ext
3540 EXEEXT=$ac_cv_exeext
3541 ac_exeext=$EXEEXT
3542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543 /* end confdefs.h. */
3544 #include <stdio.h>
3545 int
3546 main ()
3547 {
3548 FILE *f = fopen ("conftest.out", "w");
3549 return ferror (f) || fclose (f) != 0;
3550
3551 ;
3552 return 0;
3553 }
3554 _ACEOF
3555 ac_clean_files="$ac_clean_files conftest.out"
3556 # Check that the compiler produces executables we can run. If not, either
3557 # the compiler is broken, or we cross compile.
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3559 $as_echo_n "checking whether we are cross compiling... " >&6; }
3560 if test "$cross_compiling" != yes; then
3561 { { ac_try="$ac_link"
3562 case "(($ac_try" in
3563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564 *) ac_try_echo=$ac_try;;
3565 esac
3566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3567 $as_echo "$ac_try_echo"; } >&5
3568 (eval "$ac_link") 2>&5
3569 ac_status=$?
3570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3571 test $ac_status = 0; }
3572 if { ac_try='./conftest$ac_cv_exeext'
3573 { { case "(($ac_try" in
3574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575 *) ac_try_echo=$ac_try;;
3576 esac
3577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3578 $as_echo "$ac_try_echo"; } >&5
3579 (eval "$ac_try") 2>&5
3580 ac_status=$?
3581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3582 test $ac_status = 0; }; }; then
3583 cross_compiling=no
3584 else
3585 if test "$cross_compiling" = maybe; then
3586 cross_compiling=yes
3587 else
3588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590 as_fn_error $? "cannot run C compiled programs.
3591 If you meant to cross compile, use \`--host'.
3592 See \`config.log' for more details" "$LINENO" 5; }
3593 fi
3594 fi
3595 fi
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3597 $as_echo "$cross_compiling" >&6; }
3598
3599 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3600 ac_clean_files=$ac_clean_files_save
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3602 $as_echo_n "checking for suffix of object files... " >&6; }
3603 if ${ac_cv_objext+:} false; then :
3604 $as_echo_n "(cached) " >&6
3605 else
3606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607 /* end confdefs.h. */
3608
3609 int
3610 main ()
3611 {
3612
3613 ;
3614 return 0;
3615 }
3616 _ACEOF
3617 rm -f conftest.o conftest.obj
3618 if { { ac_try="$ac_compile"
3619 case "(($ac_try" in
3620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621 *) ac_try_echo=$ac_try;;
3622 esac
3623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3624 $as_echo "$ac_try_echo"; } >&5
3625 (eval "$ac_compile") 2>&5
3626 ac_status=$?
3627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3628 test $ac_status = 0; }; then :
3629 for ac_file in conftest.o conftest.obj conftest.*; do
3630 test -f "$ac_file" || continue;
3631 case $ac_file in
3632 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3633 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3634 break;;
3635 esac
3636 done
3637 else
3638 $as_echo "$as_me: failed program was:" >&5
3639 sed 's/^/| /' conftest.$ac_ext >&5
3640
3641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3643 as_fn_error $? "cannot compute suffix of object files: cannot compile
3644 See \`config.log' for more details" "$LINENO" 5; }
3645 fi
3646 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3647 fi
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3649 $as_echo "$ac_cv_objext" >&6; }
3650 OBJEXT=$ac_cv_objext
3651 ac_objext=$OBJEXT
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3653 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3654 if ${ac_cv_c_compiler_gnu+:} false; then :
3655 $as_echo_n "(cached) " >&6
3656 else
3657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658 /* end confdefs.h. */
3659
3660 int
3661 main ()
3662 {
3663 #ifndef __GNUC__
3664 choke me
3665 #endif
3666
3667 ;
3668 return 0;
3669 }
3670 _ACEOF
3671 if ac_fn_c_try_compile "$LINENO"; then :
3672 ac_compiler_gnu=yes
3673 else
3674 ac_compiler_gnu=no
3675 fi
3676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3677 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3678
3679 fi
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3681 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3682 if test $ac_compiler_gnu = yes; then
3683 GCC=yes
3684 else
3685 GCC=
3686 fi
3687 ac_test_CFLAGS=${CFLAGS+set}
3688 ac_save_CFLAGS=$CFLAGS
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3690 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3691 if ${ac_cv_prog_cc_g+:} false; then :
3692 $as_echo_n "(cached) " >&6
3693 else
3694 ac_save_c_werror_flag=$ac_c_werror_flag
3695 ac_c_werror_flag=yes
3696 ac_cv_prog_cc_g=no
3697 CFLAGS="-g"
3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699 /* end confdefs.h. */
3700
3701 int
3702 main ()
3703 {
3704
3705 ;
3706 return 0;
3707 }
3708 _ACEOF
3709 if ac_fn_c_try_compile "$LINENO"; then :
3710 ac_cv_prog_cc_g=yes
3711 else
3712 CFLAGS=""
3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714 /* end confdefs.h. */
3715
3716 int
3717 main ()
3718 {
3719
3720 ;
3721 return 0;
3722 }
3723 _ACEOF
3724 if ac_fn_c_try_compile "$LINENO"; then :
3725
3726 else
3727 ac_c_werror_flag=$ac_save_c_werror_flag
3728 CFLAGS="-g"
3729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730 /* end confdefs.h. */
3731
3732 int
3733 main ()
3734 {
3735
3736 ;
3737 return 0;
3738 }
3739 _ACEOF
3740 if ac_fn_c_try_compile "$LINENO"; then :
3741 ac_cv_prog_cc_g=yes
3742 fi
3743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3744 fi
3745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746 fi
3747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3748 ac_c_werror_flag=$ac_save_c_werror_flag
3749 fi
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3751 $as_echo "$ac_cv_prog_cc_g" >&6; }
3752 if test "$ac_test_CFLAGS" = set; then
3753 CFLAGS=$ac_save_CFLAGS
3754 elif test $ac_cv_prog_cc_g = yes; then
3755 if test "$GCC" = yes; then
3756 CFLAGS="-g -O2"
3757 else
3758 CFLAGS="-g"
3759 fi
3760 else
3761 if test "$GCC" = yes; then
3762 CFLAGS="-O2"
3763 else
3764 CFLAGS=
3765 fi
3766 fi
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3768 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3769 if ${ac_cv_prog_cc_c89+:} false; then :
3770 $as_echo_n "(cached) " >&6
3771 else
3772 ac_cv_prog_cc_c89=no
3773 ac_save_CC=$CC
3774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775 /* end confdefs.h. */
3776 #include <stdarg.h>
3777 #include <stdio.h>
3778 struct stat;
3779 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3780 struct buf { int x; };
3781 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3782 static char *e (p, i)
3783 char **p;
3784 int i;
3785 {
3786 return p[i];
3787 }
3788 static char *f (char * (*g) (char **, int), char **p, ...)
3789 {
3790 char *s;
3791 va_list v;
3792 va_start (v,p);
3793 s = g (p, va_arg (v,int));
3794 va_end (v);
3795 return s;
3796 }
3797
3798 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3799 function prototypes and stuff, but not '\xHH' hex character constants.
3800 These don't provoke an error unfortunately, instead are silently treated
3801 as 'x'. The following induces an error, until -std is added to get
3802 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3803 array size at least. It's necessary to write '\x00'==0 to get something
3804 that's true only with -std. */
3805 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3806
3807 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3808 inside strings and character constants. */
3809 #define FOO(x) 'x'
3810 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3811
3812 int test (int i, double x);
3813 struct s1 {int (*f) (int a);};
3814 struct s2 {int (*f) (double a);};
3815 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3816 int argc;
3817 char **argv;
3818 int
3819 main ()
3820 {
3821 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3822 ;
3823 return 0;
3824 }
3825 _ACEOF
3826 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3827 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3828 do
3829 CC="$ac_save_CC $ac_arg"
3830 if ac_fn_c_try_compile "$LINENO"; then :
3831 ac_cv_prog_cc_c89=$ac_arg
3832 fi
3833 rm -f core conftest.err conftest.$ac_objext
3834 test "x$ac_cv_prog_cc_c89" != "xno" && break
3835 done
3836 rm -f conftest.$ac_ext
3837 CC=$ac_save_CC
3838
3839 fi
3840 # AC_CACHE_VAL
3841 case "x$ac_cv_prog_cc_c89" in
3842 x)
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3844 $as_echo "none needed" >&6; } ;;
3845 xno)
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3847 $as_echo "unsupported" >&6; } ;;
3848 *)
3849 CC="$CC $ac_cv_prog_cc_c89"
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3851 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3852 esac
3853 if test "x$ac_cv_prog_cc_c89" != xno; then :
3854
3855 fi
3856
3857 ac_ext=c
3858 ac_cpp='$CPP $CPPFLAGS'
3859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3862
3863 ac_ext=c
3864 ac_cpp='$CPP $CPPFLAGS'
3865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3869 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3870 if ${am_cv_prog_cc_c_o+:} false; then :
3871 $as_echo_n "(cached) " >&6
3872 else
3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h. */
3875
3876 int
3877 main ()
3878 {
3879
3880 ;
3881 return 0;
3882 }
3883 _ACEOF
3884 # Make sure it works both with $CC and with simple cc.
3885 # Following AC_PROG_CC_C_O, we do the test twice because some
3886 # compilers refuse to overwrite an existing .o file with -o,
3887 # though they will create one.
3888 am_cv_prog_cc_c_o=yes
3889 for am_i in 1 2; do
3890 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3891 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3892 ac_status=$?
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); } \
3895 && test -f conftest2.$ac_objext; then
3896 : OK
3897 else
3898 am_cv_prog_cc_c_o=no
3899 break
3900 fi
3901 done
3902 rm -f core conftest*
3903 unset am_i
3904 fi
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3906 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3907 if test "$am_cv_prog_cc_c_o" != yes; then
3908 # Losing compiler, so override with the script.
3909 # FIXME: It is wrong to rewrite CC.
3910 # But if we don't then we get into trouble of one sort or another.
3911 # A longer-term fix would be to have automake use am__CC in this case,
3912 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3913 CC="$am_aux_dir/compile $CC"
3914 fi
3915 ac_ext=c
3916 ac_cpp='$CPP $CPPFLAGS'
3917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3920
3921
3922 depcc="$CC" am_compiler_list=
3923
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3925 $as_echo_n "checking dependency style of $depcc... " >&6; }
3926 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3927 $as_echo_n "(cached) " >&6
3928 else
3929 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3930 # We make a subdir and do the tests there. Otherwise we can end up
3931 # making bogus files that we don't know about and never remove. For
3932 # instance it was reported that on HP-UX the gcc test will end up
3933 # making a dummy file named 'D' -- because '-MD' means "put the output
3934 # in D".
3935 rm -rf conftest.dir
3936 mkdir conftest.dir
3937 # Copy depcomp to subdir because otherwise we won't find it if we're
3938 # using a relative directory.
3939 cp "$am_depcomp" conftest.dir
3940 cd conftest.dir
3941 # We will build objects and dependencies in a subdirectory because
3942 # it helps to detect inapplicable dependency modes. For instance
3943 # both Tru64's cc and ICC support -MD to output dependencies as a
3944 # side effect of compilation, but ICC will put the dependencies in
3945 # the current directory while Tru64 will put them in the object
3946 # directory.
3947 mkdir sub
3948
3949 am_cv_CC_dependencies_compiler_type=none
3950 if test "$am_compiler_list" = ""; then
3951 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3952 fi
3953 am__universal=false
3954 case " $depcc " in #(
3955 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3956 esac
3957
3958 for depmode in $am_compiler_list; do
3959 # Setup a source with many dependencies, because some compilers
3960 # like to wrap large dependency lists on column 80 (with \), and
3961 # we should not choose a depcomp mode which is confused by this.
3962 #
3963 # We need to recreate these files for each test, as the compiler may
3964 # overwrite some of them when testing with obscure command lines.
3965 # This happens at least with the AIX C compiler.
3966 : > sub/conftest.c
3967 for i in 1 2 3 4 5 6; do
3968 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3969 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3970 # Solaris 10 /bin/sh.
3971 echo '/* dummy */' > sub/conftst$i.h
3972 done
3973 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3974
3975 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3976 # mode. It turns out that the SunPro C++ compiler does not properly
3977 # handle '-M -o', and we need to detect this. Also, some Intel
3978 # versions had trouble with output in subdirs.
3979 am__obj=sub/conftest.${OBJEXT-o}
3980 am__minus_obj="-o $am__obj"
3981 case $depmode in
3982 gcc)
3983 # This depmode causes a compiler race in universal mode.
3984 test "$am__universal" = false || continue
3985 ;;
3986 nosideeffect)
3987 # After this tag, mechanisms are not by side-effect, so they'll
3988 # only be used when explicitly requested.
3989 if test "x$enable_dependency_tracking" = xyes; then
3990 continue
3991 else
3992 break
3993 fi
3994 ;;
3995 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3996 # This compiler won't grok '-c -o', but also, the minuso test has
3997 # not run yet. These depmodes are late enough in the game, and
3998 # so weak that their functioning should not be impacted.
3999 am__obj=conftest.${OBJEXT-o}
4000 am__minus_obj=
4001 ;;
4002 none) break ;;
4003 esac
4004 if depmode=$depmode \
4005 source=sub/conftest.c object=$am__obj \
4006 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4007 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4008 >/dev/null 2>conftest.err &&
4009 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4010 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4011 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4012 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4013 # icc doesn't choke on unknown options, it will just issue warnings
4014 # or remarks (even with -Werror). So we grep stderr for any message
4015 # that says an option was ignored or not supported.
4016 # When given -MP, icc 7.0 and 7.1 complain thusly:
4017 # icc: Command line warning: ignoring option '-M'; no argument required
4018 # The diagnosis changed in icc 8.0:
4019 # icc: Command line remark: option '-MP' not supported
4020 if (grep 'ignoring option' conftest.err ||
4021 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4022 am_cv_CC_dependencies_compiler_type=$depmode
4023 break
4024 fi
4025 fi
4026 done
4027
4028 cd ..
4029 rm -rf conftest.dir
4030 else
4031 am_cv_CC_dependencies_compiler_type=none
4032 fi
4033
4034 fi
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4036 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4037 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4038
4039 if
4040 test "x$enable_dependency_tracking" != xno \
4041 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4042 am__fastdepCC_TRUE=
4043 am__fastdepCC_FALSE='#'
4044 else
4045 am__fastdepCC_TRUE='#'
4046 am__fastdepCC_FALSE=
4047 fi
4048
4049
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4051 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4052 if ${ac_cv_path_SED+:} false; then :
4053 $as_echo_n "(cached) " >&6
4054 else
4055 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4056 for ac_i in 1 2 3 4 5 6 7; do
4057 ac_script="$ac_script$as_nl$ac_script"
4058 done
4059 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4060 { ac_script=; unset ac_script;}
4061 if test -z "$SED"; then
4062 ac_path_SED_found=false
4063 # Loop through the user's path and test for each of PROGNAME-LIST
4064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4065 for as_dir in $PATH
4066 do
4067 IFS=$as_save_IFS
4068 test -z "$as_dir" && as_dir=.
4069 for ac_prog in sed gsed; do
4070 for ac_exec_ext in '' $ac_executable_extensions; do
4071 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4072 as_fn_executable_p "$ac_path_SED" || continue
4073 # Check for GNU ac_path_SED and select it if it is found.
4074 # Check for GNU $ac_path_SED
4075 case `"$ac_path_SED" --version 2>&1` in
4076 *GNU*)
4077 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4078 *)
4079 ac_count=0
4080 $as_echo_n 0123456789 >"conftest.in"
4081 while :
4082 do
4083 cat "conftest.in" "conftest.in" >"conftest.tmp"
4084 mv "conftest.tmp" "conftest.in"
4085 cp "conftest.in" "conftest.nl"
4086 $as_echo '' >> "conftest.nl"
4087 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4088 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4089 as_fn_arith $ac_count + 1 && ac_count=$as_val
4090 if test $ac_count -gt ${ac_path_SED_max-0}; then
4091 # Best one so far, save it but keep looking for a better one
4092 ac_cv_path_SED="$ac_path_SED"
4093 ac_path_SED_max=$ac_count
4094 fi
4095 # 10*(2^10) chars as input seems more than enough
4096 test $ac_count -gt 10 && break
4097 done
4098 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4099 esac
4100
4101 $ac_path_SED_found && break 3
4102 done
4103 done
4104 done
4105 IFS=$as_save_IFS
4106 if test -z "$ac_cv_path_SED"; then
4107 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4108 fi
4109 else
4110 ac_cv_path_SED=$SED
4111 fi
4112
4113 fi
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4115 $as_echo "$ac_cv_path_SED" >&6; }
4116 SED="$ac_cv_path_SED"
4117 rm -f conftest.sed
4118
4119 test -z "$SED" && SED=sed
4120 Xsed="$SED -e 1s/^X//"
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4133 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4134 if ${ac_cv_path_GREP+:} false; then :
4135 $as_echo_n "(cached) " >&6
4136 else
4137 if test -z "$GREP"; then
4138 ac_path_GREP_found=false
4139 # Loop through the user's path and test for each of PROGNAME-LIST
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4142 do
4143 IFS=$as_save_IFS
4144 test -z "$as_dir" && as_dir=.
4145 for ac_prog in grep ggrep; do
4146 for ac_exec_ext in '' $ac_executable_extensions; do
4147 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4148 as_fn_executable_p "$ac_path_GREP" || continue
4149 # Check for GNU ac_path_GREP and select it if it is found.
4150 # Check for GNU $ac_path_GREP
4151 case `"$ac_path_GREP" --version 2>&1` in
4152 *GNU*)
4153 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4154 *)
4155 ac_count=0
4156 $as_echo_n 0123456789 >"conftest.in"
4157 while :
4158 do
4159 cat "conftest.in" "conftest.in" >"conftest.tmp"
4160 mv "conftest.tmp" "conftest.in"
4161 cp "conftest.in" "conftest.nl"
4162 $as_echo 'GREP' >> "conftest.nl"
4163 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4164 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4165 as_fn_arith $ac_count + 1 && ac_count=$as_val
4166 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4167 # Best one so far, save it but keep looking for a better one
4168 ac_cv_path_GREP="$ac_path_GREP"
4169 ac_path_GREP_max=$ac_count
4170 fi
4171 # 10*(2^10) chars as input seems more than enough
4172 test $ac_count -gt 10 && break
4173 done
4174 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4175 esac
4176
4177 $ac_path_GREP_found && break 3
4178 done
4179 done
4180 done
4181 IFS=$as_save_IFS
4182 if test -z "$ac_cv_path_GREP"; then
4183 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4184 fi
4185 else
4186 ac_cv_path_GREP=$GREP
4187 fi
4188
4189 fi
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4191 $as_echo "$ac_cv_path_GREP" >&6; }
4192 GREP="$ac_cv_path_GREP"
4193
4194
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4196 $as_echo_n "checking for egrep... " >&6; }
4197 if ${ac_cv_path_EGREP+:} false; then :
4198 $as_echo_n "(cached) " >&6
4199 else
4200 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4201 then ac_cv_path_EGREP="$GREP -E"
4202 else
4203 if test -z "$EGREP"; then
4204 ac_path_EGREP_found=false
4205 # Loop through the user's path and test for each of PROGNAME-LIST
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4208 do
4209 IFS=$as_save_IFS
4210 test -z "$as_dir" && as_dir=.
4211 for ac_prog in egrep; do
4212 for ac_exec_ext in '' $ac_executable_extensions; do
4213 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4214 as_fn_executable_p "$ac_path_EGREP" || continue
4215 # Check for GNU ac_path_EGREP and select it if it is found.
4216 # Check for GNU $ac_path_EGREP
4217 case `"$ac_path_EGREP" --version 2>&1` in
4218 *GNU*)
4219 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4220 *)
4221 ac_count=0
4222 $as_echo_n 0123456789 >"conftest.in"
4223 while :
4224 do
4225 cat "conftest.in" "conftest.in" >"conftest.tmp"
4226 mv "conftest.tmp" "conftest.in"
4227 cp "conftest.in" "conftest.nl"
4228 $as_echo 'EGREP' >> "conftest.nl"
4229 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4230 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4231 as_fn_arith $ac_count + 1 && ac_count=$as_val
4232 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4233 # Best one so far, save it but keep looking for a better one
4234 ac_cv_path_EGREP="$ac_path_EGREP"
4235 ac_path_EGREP_max=$ac_count
4236 fi
4237 # 10*(2^10) chars as input seems more than enough
4238 test $ac_count -gt 10 && break
4239 done
4240 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4241 esac
4242
4243 $ac_path_EGREP_found && break 3
4244 done
4245 done
4246 done
4247 IFS=$as_save_IFS
4248 if test -z "$ac_cv_path_EGREP"; then
4249 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4250 fi
4251 else
4252 ac_cv_path_EGREP=$EGREP
4253 fi
4254
4255 fi
4256 fi
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4258 $as_echo "$ac_cv_path_EGREP" >&6; }
4259 EGREP="$ac_cv_path_EGREP"
4260
4261
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4263 $as_echo_n "checking for fgrep... " >&6; }
4264 if ${ac_cv_path_FGREP+:} false; then :
4265 $as_echo_n "(cached) " >&6
4266 else
4267 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4268 then ac_cv_path_FGREP="$GREP -F"
4269 else
4270 if test -z "$FGREP"; then
4271 ac_path_FGREP_found=false
4272 # Loop through the user's path and test for each of PROGNAME-LIST
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4275 do
4276 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
4278 for ac_prog in fgrep; do
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4281 as_fn_executable_p "$ac_path_FGREP" || continue
4282 # Check for GNU ac_path_FGREP and select it if it is found.
4283 # Check for GNU $ac_path_FGREP
4284 case `"$ac_path_FGREP" --version 2>&1` in
4285 *GNU*)
4286 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4287 *)
4288 ac_count=0
4289 $as_echo_n 0123456789 >"conftest.in"
4290 while :
4291 do
4292 cat "conftest.in" "conftest.in" >"conftest.tmp"
4293 mv "conftest.tmp" "conftest.in"
4294 cp "conftest.in" "conftest.nl"
4295 $as_echo 'FGREP' >> "conftest.nl"
4296 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4297 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4298 as_fn_arith $ac_count + 1 && ac_count=$as_val
4299 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4300 # Best one so far, save it but keep looking for a better one
4301 ac_cv_path_FGREP="$ac_path_FGREP"
4302 ac_path_FGREP_max=$ac_count
4303 fi
4304 # 10*(2^10) chars as input seems more than enough
4305 test $ac_count -gt 10 && break
4306 done
4307 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4308 esac
4309
4310 $ac_path_FGREP_found && break 3
4311 done
4312 done
4313 done
4314 IFS=$as_save_IFS
4315 if test -z "$ac_cv_path_FGREP"; then
4316 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4317 fi
4318 else
4319 ac_cv_path_FGREP=$FGREP
4320 fi
4321
4322 fi
4323 fi
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4325 $as_echo "$ac_cv_path_FGREP" >&6; }
4326 FGREP="$ac_cv_path_FGREP"
4327
4328
4329 test -z "$GREP" && GREP=grep
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349 # Check whether --with-gnu-ld was given.
4350 if test "${with_gnu_ld+set}" = set; then :
4351 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4352 else
4353 with_gnu_ld=no
4354 fi
4355
4356 ac_prog=ld
4357 if test yes = "$GCC"; then
4358 # Check if gcc -print-prog-name=ld gives a path.
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4360 $as_echo_n "checking for ld used by $CC... " >&6; }
4361 case $host in
4362 *-*-mingw*)
4363 # gcc leaves a trailing carriage return, which upsets mingw
4364 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4365 *)
4366 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4367 esac
4368 case $ac_prog in
4369 # Accept absolute paths.
4370 [\\/]* | ?:[\\/]*)
4371 re_direlt='/[^/][^/]*/\.\./'
4372 # Canonicalize the pathname of ld
4373 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4374 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4375 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4376 done
4377 test -z "$LD" && LD=$ac_prog
4378 ;;
4379 "")
4380 # If it fails, then pretend we aren't using GCC.
4381 ac_prog=ld
4382 ;;
4383 *)
4384 # If it is relative, then search for the first ld in PATH.
4385 with_gnu_ld=unknown
4386 ;;
4387 esac
4388 elif test yes = "$with_gnu_ld"; then
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4390 $as_echo_n "checking for GNU ld... " >&6; }
4391 else
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4393 $as_echo_n "checking for non-GNU ld... " >&6; }
4394 fi
4395 if ${lt_cv_path_LD+:} false; then :
4396 $as_echo_n "(cached) " >&6
4397 else
4398 if test -z "$LD"; then
4399 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4400 for ac_dir in $PATH; do
4401 IFS=$lt_save_ifs
4402 test -z "$ac_dir" && ac_dir=.
4403 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4404 lt_cv_path_LD=$ac_dir/$ac_prog
4405 # Check to see if the program is GNU ld. I'd rather use --version,
4406 # but apparently some variants of GNU ld only accept -v.
4407 # Break only if it was the GNU/non-GNU ld that we prefer.
4408 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4409 *GNU* | *'with BFD'*)
4410 test no != "$with_gnu_ld" && break
4411 ;;
4412 *)
4413 test yes != "$with_gnu_ld" && break
4414 ;;
4415 esac
4416 fi
4417 done
4418 IFS=$lt_save_ifs
4419 else
4420 lt_cv_path_LD=$LD # Let the user override the test with a path.
4421 fi
4422 fi
4423
4424 LD=$lt_cv_path_LD
4425 if test -n "$LD"; then
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4427 $as_echo "$LD" >&6; }
4428 else
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4430 $as_echo "no" >&6; }
4431 fi
4432 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4434 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4435 if ${lt_cv_prog_gnu_ld+:} false; then :
4436 $as_echo_n "(cached) " >&6
4437 else
4438 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4439 case `$LD -v 2>&1 </dev/null` in
4440 *GNU* | *'with BFD'*)
4441 lt_cv_prog_gnu_ld=yes
4442 ;;
4443 *)
4444 lt_cv_prog_gnu_ld=no
4445 ;;
4446 esac
4447 fi
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4449 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4450 with_gnu_ld=$lt_cv_prog_gnu_ld
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4461 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4462 if ${lt_cv_path_NM+:} false; then :
4463 $as_echo_n "(cached) " >&6
4464 else
4465 if test -n "$NM"; then
4466 # Let the user override the test.
4467 lt_cv_path_NM=$NM
4468 else
4469 lt_nm_to_check=${ac_tool_prefix}nm
4470 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4471 lt_nm_to_check="$lt_nm_to_check nm"
4472 fi
4473 for lt_tmp_nm in $lt_nm_to_check; do
4474 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4475 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4476 IFS=$lt_save_ifs
4477 test -z "$ac_dir" && ac_dir=.
4478 tmp_nm=$ac_dir/$lt_tmp_nm
4479 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4480 # Check to see if the nm accepts a BSD-compat flag.
4481 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4482 # nm: unknown option "B" ignored
4483 # Tru64's nm complains that /dev/null is an invalid object file
4484 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4485 case $build_os in
4486 mingw*) lt_bad_file=conftest.nm/nofile ;;
4487 *) lt_bad_file=/dev/null ;;
4488 esac
4489 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4490 *$lt_bad_file* | *'Invalid file or object type'*)
4491 lt_cv_path_NM="$tmp_nm -B"
4492 break 2
4493 ;;
4494 *)
4495 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4496 */dev/null*)
4497 lt_cv_path_NM="$tmp_nm -p"
4498 break 2
4499 ;;
4500 *)
4501 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4502 continue # so that we can try to find one that supports BSD flags
4503 ;;
4504 esac
4505 ;;
4506 esac
4507 fi
4508 done
4509 IFS=$lt_save_ifs
4510 done
4511 : ${lt_cv_path_NM=no}
4512 fi
4513 fi
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4515 $as_echo "$lt_cv_path_NM" >&6; }
4516 if test no != "$lt_cv_path_NM"; then
4517 NM=$lt_cv_path_NM
4518 else
4519 # Didn't find any BSD compatible name lister, look for dumpbin.
4520 if test -n "$DUMPBIN"; then :
4521 # Let the user override the test.
4522 else
4523 if test -n "$ac_tool_prefix"; then
4524 for ac_prog in dumpbin "link -dump"
4525 do
4526 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4527 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4529 $as_echo_n "checking for $ac_word... " >&6; }
4530 if ${ac_cv_prog_DUMPBIN+:} false; then :
4531 $as_echo_n "(cached) " >&6
4532 else
4533 if test -n "$DUMPBIN"; then
4534 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4535 else
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH
4538 do
4539 IFS=$as_save_IFS
4540 test -z "$as_dir" && as_dir=.
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4543 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4545 break 2
4546 fi
4547 done
4548 done
4549 IFS=$as_save_IFS
4550
4551 fi
4552 fi
4553 DUMPBIN=$ac_cv_prog_DUMPBIN
4554 if test -n "$DUMPBIN"; then
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4556 $as_echo "$DUMPBIN" >&6; }
4557 else
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559 $as_echo "no" >&6; }
4560 fi
4561
4562
4563 test -n "$DUMPBIN" && break
4564 done
4565 fi
4566 if test -z "$DUMPBIN"; then
4567 ac_ct_DUMPBIN=$DUMPBIN
4568 for ac_prog in dumpbin "link -dump"
4569 do
4570 # Extract the first word of "$ac_prog", so it can be a program name with args.
4571 set dummy $ac_prog; ac_word=$2
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4573 $as_echo_n "checking for $ac_word... " >&6; }
4574 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4575 $as_echo_n "(cached) " >&6
4576 else
4577 if test -n "$ac_ct_DUMPBIN"; then
4578 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4579 else
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH
4582 do
4583 IFS=$as_save_IFS
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4587 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 break 2
4590 fi
4591 done
4592 done
4593 IFS=$as_save_IFS
4594
4595 fi
4596 fi
4597 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4598 if test -n "$ac_ct_DUMPBIN"; then
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4600 $as_echo "$ac_ct_DUMPBIN" >&6; }
4601 else
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4603 $as_echo "no" >&6; }
4604 fi
4605
4606
4607 test -n "$ac_ct_DUMPBIN" && break
4608 done
4609
4610 if test "x$ac_ct_DUMPBIN" = x; then
4611 DUMPBIN=":"
4612 else
4613 case $cross_compiling:$ac_tool_warned in
4614 yes:)
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4617 ac_tool_warned=yes ;;
4618 esac
4619 DUMPBIN=$ac_ct_DUMPBIN
4620 fi
4621 fi
4622
4623 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4624 *COFF*)
4625 DUMPBIN="$DUMPBIN -symbols -headers"
4626 ;;
4627 *)
4628 DUMPBIN=:
4629 ;;
4630 esac
4631 fi
4632
4633 if test : != "$DUMPBIN"; then
4634 NM=$DUMPBIN
4635 fi
4636 fi
4637 test -z "$NM" && NM=nm
4638
4639
4640
4641
4642
4643
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4645 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4646 if ${lt_cv_nm_interface+:} false; then :
4647 $as_echo_n "(cached) " >&6
4648 else
4649 lt_cv_nm_interface="BSD nm"
4650 echo "int some_variable = 0;" > conftest.$ac_ext
4651 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4652 (eval "$ac_compile" 2>conftest.err)
4653 cat conftest.err >&5
4654 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4655 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4656 cat conftest.err >&5
4657 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4658 cat conftest.out >&5
4659 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4660 lt_cv_nm_interface="MS dumpbin"
4661 fi
4662 rm -f conftest*
4663 fi
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4665 $as_echo "$lt_cv_nm_interface" >&6; }
4666
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4668 $as_echo_n "checking whether ln -s works... " >&6; }
4669 LN_S=$as_ln_s
4670 if test "$LN_S" = "ln -s"; then
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4672 $as_echo "yes" >&6; }
4673 else
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4675 $as_echo "no, using $LN_S" >&6; }
4676 fi
4677
4678 # find the maximum length of command line arguments
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4680 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4681 if ${lt_cv_sys_max_cmd_len+:} false; then :
4682 $as_echo_n "(cached) " >&6
4683 else
4684 i=0
4685 teststring=ABCD
4686
4687 case $build_os in
4688 msdosdjgpp*)
4689 # On DJGPP, this test can blow up pretty badly due to problems in libc
4690 # (any single argument exceeding 2000 bytes causes a buffer overrun
4691 # during glob expansion). Even if it were fixed, the result of this
4692 # check would be larger than it should be.
4693 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4694 ;;
4695
4696 gnu*)
4697 # Under GNU Hurd, this test is not required because there is
4698 # no limit to the length of command line arguments.
4699 # Libtool will interpret -1 as no limit whatsoever
4700 lt_cv_sys_max_cmd_len=-1;
4701 ;;
4702
4703 cygwin* | mingw* | cegcc*)
4704 # On Win9x/ME, this test blows up -- it succeeds, but takes
4705 # about 5 minutes as the teststring grows exponentially.
4706 # Worse, since 9x/ME are not pre-emptively multitasking,
4707 # you end up with a "frozen" computer, even though with patience
4708 # the test eventually succeeds (with a max line length of 256k).
4709 # Instead, let's just punt: use the minimum linelength reported by
4710 # all of the supported platforms: 8192 (on NT/2K/XP).
4711 lt_cv_sys_max_cmd_len=8192;
4712 ;;
4713
4714 mint*)
4715 # On MiNT this can take a long time and run out of memory.
4716 lt_cv_sys_max_cmd_len=8192;
4717 ;;
4718
4719 amigaos*)
4720 # On AmigaOS with pdksh, this test takes hours, literally.
4721 # So we just punt and use a minimum line length of 8192.
4722 lt_cv_sys_max_cmd_len=8192;
4723 ;;
4724
4725 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4726 # This has been around since 386BSD, at least. Likely further.
4727 if test -x /sbin/sysctl; then
4728 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4729 elif test -x /usr/sbin/sysctl; then
4730 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4731 else
4732 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4733 fi
4734 # And add a safety zone
4735 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4736 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4737 ;;
4738
4739 interix*)
4740 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4741 lt_cv_sys_max_cmd_len=196608
4742 ;;
4743
4744 os2*)
4745 # The test takes a long time on OS/2.
4746 lt_cv_sys_max_cmd_len=8192
4747 ;;
4748
4749 osf*)
4750 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4751 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4752 # nice to cause kernel panics so lets avoid the loop below.
4753 # First set a reasonable default.
4754 lt_cv_sys_max_cmd_len=16384
4755 #
4756 if test -x /sbin/sysconfig; then
4757 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4758 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4759 esac
4760 fi
4761 ;;
4762 sco3.2v5*)
4763 lt_cv_sys_max_cmd_len=102400
4764 ;;
4765 sysv5* | sco5v6* | sysv4.2uw2*)
4766 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4767 if test -n "$kargmax"; then
4768 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4769 else
4770 lt_cv_sys_max_cmd_len=32768
4771 fi
4772 ;;
4773 *)
4774 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4775 if test -n "$lt_cv_sys_max_cmd_len" && \
4776 test undefined != "$lt_cv_sys_max_cmd_len"; then
4777 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4778 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4779 else
4780 # Make teststring a little bigger before we do anything with it.
4781 # a 1K string should be a reasonable start.
4782 for i in 1 2 3 4 5 6 7 8; do
4783 teststring=$teststring$teststring
4784 done
4785 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4786 # If test is not a shell built-in, we'll probably end up computing a
4787 # maximum length that is only half of the actual maximum length, but
4788 # we can't tell.
4789 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4790 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4791 test 17 != "$i" # 1/2 MB should be enough
4792 do
4793 i=`expr $i + 1`
4794 teststring=$teststring$teststring
4795 done
4796 # Only check the string length outside the loop.
4797 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4798 teststring=
4799 # Add a significant safety factor because C++ compilers can tack on
4800 # massive amounts of additional arguments before passing them to the
4801 # linker. It appears as though 1/2 is a usable value.
4802 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4803 fi
4804 ;;
4805 esac
4806
4807 fi
4808
4809 if test -n "$lt_cv_sys_max_cmd_len"; then
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4811 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4812 else
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4814 $as_echo "none" >&6; }
4815 fi
4816 max_cmd_len=$lt_cv_sys_max_cmd_len
4817
4818
4819
4820
4821
4822
4823 : ${CP="cp -f"}
4824 : ${MV="mv -f"}
4825 : ${RM="rm -f"}
4826
4827 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4828 lt_unset=unset
4829 else
4830 lt_unset=false
4831 fi
4832
4833
4834
4835
4836
4837 # test EBCDIC or ASCII
4838 case `echo X|tr X '\101'` in
4839 A) # ASCII based system
4840 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4841 lt_SP2NL='tr \040 \012'
4842 lt_NL2SP='tr \015\012 \040\040'
4843 ;;
4844 *) # EBCDIC based system
4845 lt_SP2NL='tr \100 \n'
4846 lt_NL2SP='tr \r\n \100\100'
4847 ;;
4848 esac
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4859 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4860 if ${lt_cv_to_host_file_cmd+:} false; then :
4861 $as_echo_n "(cached) " >&6
4862 else
4863 case $host in
4864 *-*-mingw* )
4865 case $build in
4866 *-*-mingw* ) # actually msys
4867 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4868 ;;
4869 *-*-cygwin* )
4870 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4871 ;;
4872 * ) # otherwise, assume *nix
4873 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4874 ;;
4875 esac
4876 ;;
4877 *-*-cygwin* )
4878 case $build in
4879 *-*-mingw* ) # actually msys
4880 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4881 ;;
4882 *-*-cygwin* )
4883 lt_cv_to_host_file_cmd=func_convert_file_noop
4884 ;;
4885 * ) # otherwise, assume *nix
4886 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4887 ;;
4888 esac
4889 ;;
4890 * ) # unhandled hosts (and "normal" native builds)
4891 lt_cv_to_host_file_cmd=func_convert_file_noop
4892 ;;
4893 esac
4894
4895 fi
4896
4897 to_host_file_cmd=$lt_cv_to_host_file_cmd
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4899 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4900
4901
4902
4903
4904
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4906 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4907 if ${lt_cv_to_tool_file_cmd+:} false; then :
4908 $as_echo_n "(cached) " >&6
4909 else
4910 #assume ordinary cross tools, or native build.
4911 lt_cv_to_tool_file_cmd=func_convert_file_noop
4912 case $host in
4913 *-*-mingw* )
4914 case $build in
4915 *-*-mingw* ) # actually msys
4916 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4917 ;;
4918 esac
4919 ;;
4920 esac
4921
4922 fi
4923
4924 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4926 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4927
4928
4929
4930
4931
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4933 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4934 if ${lt_cv_ld_reload_flag+:} false; then :
4935 $as_echo_n "(cached) " >&6
4936 else
4937 lt_cv_ld_reload_flag='-r'
4938 fi
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4940 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4941 reload_flag=$lt_cv_ld_reload_flag
4942 case $reload_flag in
4943 "" | " "*) ;;
4944 *) reload_flag=" $reload_flag" ;;
4945 esac
4946 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4947 case $host_os in
4948 cygwin* | mingw* | pw32* | cegcc*)
4949 if test yes != "$GCC"; then
4950 reload_cmds=false
4951 fi
4952 ;;
4953 darwin*)
4954 if test yes = "$GCC"; then
4955 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4956 else
4957 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4958 fi
4959 ;;
4960 esac
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970 if test -n "$ac_tool_prefix"; then
4971 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4972 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4974 $as_echo_n "checking for $ac_word... " >&6; }
4975 if ${ac_cv_prog_OBJDUMP+:} false; then :
4976 $as_echo_n "(cached) " >&6
4977 else
4978 if test -n "$OBJDUMP"; then
4979 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4980 else
4981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982 for as_dir in $PATH
4983 do
4984 IFS=$as_save_IFS
4985 test -z "$as_dir" && as_dir=.
4986 for ac_exec_ext in '' $ac_executable_extensions; do
4987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4988 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4990 break 2
4991 fi
4992 done
4993 done
4994 IFS=$as_save_IFS
4995
4996 fi
4997 fi
4998 OBJDUMP=$ac_cv_prog_OBJDUMP
4999 if test -n "$OBJDUMP"; then
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5001 $as_echo "$OBJDUMP" >&6; }
5002 else
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004 $as_echo "no" >&6; }
5005 fi
5006
5007
5008 fi
5009 if test -z "$ac_cv_prog_OBJDUMP"; then
5010 ac_ct_OBJDUMP=$OBJDUMP
5011 # Extract the first word of "objdump", so it can be a program name with args.
5012 set dummy objdump; ac_word=$2
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5014 $as_echo_n "checking for $ac_word... " >&6; }
5015 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5016 $as_echo_n "(cached) " >&6
5017 else
5018 if test -n "$ac_ct_OBJDUMP"; then
5019 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5020 else
5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 for as_dir in $PATH
5023 do
5024 IFS=$as_save_IFS
5025 test -z "$as_dir" && as_dir=.
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5028 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5030 break 2
5031 fi
5032 done
5033 done
5034 IFS=$as_save_IFS
5035
5036 fi
5037 fi
5038 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5039 if test -n "$ac_ct_OBJDUMP"; then
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5041 $as_echo "$ac_ct_OBJDUMP" >&6; }
5042 else
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5044 $as_echo "no" >&6; }
5045 fi
5046
5047 if test "x$ac_ct_OBJDUMP" = x; then
5048 OBJDUMP="false"
5049 else
5050 case $cross_compiling:$ac_tool_warned in
5051 yes:)
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5054 ac_tool_warned=yes ;;
5055 esac
5056 OBJDUMP=$ac_ct_OBJDUMP
5057 fi
5058 else
5059 OBJDUMP="$ac_cv_prog_OBJDUMP"
5060 fi
5061
5062 test -z "$OBJDUMP" && OBJDUMP=objdump
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5073 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5074 if ${lt_cv_deplibs_check_method+:} false; then :
5075 $as_echo_n "(cached) " >&6
5076 else
5077 lt_cv_file_magic_cmd='$MAGIC_CMD'
5078 lt_cv_file_magic_test_file=
5079 lt_cv_deplibs_check_method='unknown'
5080 # Need to set the preceding variable on all platforms that support
5081 # interlibrary dependencies.
5082 # 'none' -- dependencies not supported.
5083 # 'unknown' -- same as none, but documents that we really don't know.
5084 # 'pass_all' -- all dependencies passed with no checks.
5085 # 'test_compile' -- check by making test program.
5086 # 'file_magic [[regex]]' -- check by looking for files in library path
5087 # that responds to the $file_magic_cmd with a given extended regex.
5088 # If you have 'file' or equivalent on your system and you're not sure
5089 # whether 'pass_all' will *always* work, you probably want this one.
5090
5091 case $host_os in
5092 aix[4-9]*)
5093 lt_cv_deplibs_check_method=pass_all
5094 ;;
5095
5096 beos*)
5097 lt_cv_deplibs_check_method=pass_all
5098 ;;
5099
5100 bsdi[45]*)
5101 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5102 lt_cv_file_magic_cmd='/usr/bin/file -L'
5103 lt_cv_file_magic_test_file=/shlib/libc.so
5104 ;;
5105
5106 cygwin*)
5107 # func_win32_libid is a shell function defined in ltmain.sh
5108 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5109 lt_cv_file_magic_cmd='func_win32_libid'
5110 ;;
5111
5112 mingw* | pw32*)
5113 # Base MSYS/MinGW do not provide the 'file' command needed by
5114 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5115 # unless we find 'file', for example because we are cross-compiling.
5116 if ( file / ) >/dev/null 2>&1; then
5117 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5118 lt_cv_file_magic_cmd='func_win32_libid'
5119 else
5120 # Keep this pattern in sync with the one in func_win32_libid.
5121 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5122 lt_cv_file_magic_cmd='$OBJDUMP -f'
5123 fi
5124 ;;
5125
5126 cegcc*)
5127 # use the weaker test based on 'objdump'. See mingw*.
5128 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5129 lt_cv_file_magic_cmd='$OBJDUMP -f'
5130 ;;
5131
5132 darwin* | rhapsody*)
5133 lt_cv_deplibs_check_method=pass_all
5134 ;;
5135
5136 freebsd* | dragonfly*)
5137 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5138 case $host_cpu in
5139 i*86 )
5140 # Not sure whether the presence of OpenBSD here was a mistake.
5141 # Let's accept both of them until this is cleared up.
5142 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5143 lt_cv_file_magic_cmd=/usr/bin/file
5144 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5145 ;;
5146 esac
5147 else
5148 lt_cv_deplibs_check_method=pass_all
5149 fi
5150 ;;
5151
5152 haiku*)
5153 lt_cv_deplibs_check_method=pass_all
5154 ;;
5155
5156 hpux10.20* | hpux11*)
5157 lt_cv_file_magic_cmd=/usr/bin/file
5158 case $host_cpu in
5159 ia64*)
5160 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5161 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5162 ;;
5163 hppa*64*)
5164 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]'
5165 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5166 ;;
5167 *)
5168 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5169 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5170 ;;
5171 esac
5172 ;;
5173
5174 interix[3-9]*)
5175 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5176 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5177 ;;
5178
5179 irix5* | irix6* | nonstopux*)
5180 case $LD in
5181 *-32|*"-32 ") libmagic=32-bit;;
5182 *-n32|*"-n32 ") libmagic=N32;;
5183 *-64|*"-64 ") libmagic=64-bit;;
5184 *) libmagic=never-match;;
5185 esac
5186 lt_cv_deplibs_check_method=pass_all
5187 ;;
5188
5189 # This must be glibc/ELF.
5190 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5191 lt_cv_deplibs_check_method=pass_all
5192 ;;
5193
5194 netbsd*)
5195 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5196 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5197 else
5198 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5199 fi
5200 ;;
5201
5202 newos6*)
5203 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5204 lt_cv_file_magic_cmd=/usr/bin/file
5205 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5206 ;;
5207
5208 *nto* | *qnx*)
5209 lt_cv_deplibs_check_method=pass_all
5210 ;;
5211
5212 openbsd* | bitrig*)
5213 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5214 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5215 else
5216 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5217 fi
5218 ;;
5219
5220 osf3* | osf4* | osf5*)
5221 lt_cv_deplibs_check_method=pass_all
5222 ;;
5223
5224 rdos*)
5225 lt_cv_deplibs_check_method=pass_all
5226 ;;
5227
5228 solaris*)
5229 lt_cv_deplibs_check_method=pass_all
5230 ;;
5231
5232 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5233 lt_cv_deplibs_check_method=pass_all
5234 ;;
5235
5236 sysv4 | sysv4.3*)
5237 case $host_vendor in
5238 motorola)
5239 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]'
5240 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5241 ;;
5242 ncr)
5243 lt_cv_deplibs_check_method=pass_all
5244 ;;
5245 sequent)
5246 lt_cv_file_magic_cmd='/bin/file'
5247 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5248 ;;
5249 sni)
5250 lt_cv_file_magic_cmd='/bin/file'
5251 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5252 lt_cv_file_magic_test_file=/lib/libc.so
5253 ;;
5254 siemens)
5255 lt_cv_deplibs_check_method=pass_all
5256 ;;
5257 pc)
5258 lt_cv_deplibs_check_method=pass_all
5259 ;;
5260 esac
5261 ;;
5262
5263 tpf*)
5264 lt_cv_deplibs_check_method=pass_all
5265 ;;
5266 os2*)
5267 lt_cv_deplibs_check_method=pass_all
5268 ;;
5269 esac
5270
5271 fi
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5273 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5274
5275 file_magic_glob=
5276 want_nocaseglob=no
5277 if test "$build" = "$host"; then
5278 case $host_os in
5279 mingw* | pw32*)
5280 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5281 want_nocaseglob=yes
5282 else
5283 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5284 fi
5285 ;;
5286 esac
5287 fi
5288
5289 file_magic_cmd=$lt_cv_file_magic_cmd
5290 deplibs_check_method=$lt_cv_deplibs_check_method
5291 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314 if test -n "$ac_tool_prefix"; then
5315 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5316 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5318 $as_echo_n "checking for $ac_word... " >&6; }
5319 if ${ac_cv_prog_DLLTOOL+:} false; then :
5320 $as_echo_n "(cached) " >&6
5321 else
5322 if test -n "$DLLTOOL"; then
5323 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5324 else
5325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326 for as_dir in $PATH
5327 do
5328 IFS=$as_save_IFS
5329 test -z "$as_dir" && as_dir=.
5330 for ac_exec_ext in '' $ac_executable_extensions; do
5331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5332 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5334 break 2
5335 fi
5336 done
5337 done
5338 IFS=$as_save_IFS
5339
5340 fi
5341 fi
5342 DLLTOOL=$ac_cv_prog_DLLTOOL
5343 if test -n "$DLLTOOL"; then
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5345 $as_echo "$DLLTOOL" >&6; }
5346 else
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5348 $as_echo "no" >&6; }
5349 fi
5350
5351
5352 fi
5353 if test -z "$ac_cv_prog_DLLTOOL"; then
5354 ac_ct_DLLTOOL=$DLLTOOL
5355 # Extract the first word of "dlltool", so it can be a program name with args.
5356 set dummy dlltool; ac_word=$2
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5358 $as_echo_n "checking for $ac_word... " >&6; }
5359 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5360 $as_echo_n "(cached) " >&6
5361 else
5362 if test -n "$ac_ct_DLLTOOL"; then
5363 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5364 else
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366 for as_dir in $PATH
5367 do
5368 IFS=$as_save_IFS
5369 test -z "$as_dir" && as_dir=.
5370 for ac_exec_ext in '' $ac_executable_extensions; do
5371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5372 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5374 break 2
5375 fi
5376 done
5377 done
5378 IFS=$as_save_IFS
5379
5380 fi
5381 fi
5382 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5383 if test -n "$ac_ct_DLLTOOL"; then
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5385 $as_echo "$ac_ct_DLLTOOL" >&6; }
5386 else
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388 $as_echo "no" >&6; }
5389 fi
5390
5391 if test "x$ac_ct_DLLTOOL" = x; then
5392 DLLTOOL="false"
5393 else
5394 case $cross_compiling:$ac_tool_warned in
5395 yes:)
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5398 ac_tool_warned=yes ;;
5399 esac
5400 DLLTOOL=$ac_ct_DLLTOOL
5401 fi
5402 else
5403 DLLTOOL="$ac_cv_prog_DLLTOOL"
5404 fi
5405
5406 test -z "$DLLTOOL" && DLLTOOL=dlltool
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5418 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5419 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5420 $as_echo_n "(cached) " >&6
5421 else
5422 lt_cv_sharedlib_from_linklib_cmd='unknown'
5423
5424 case $host_os in
5425 cygwin* | mingw* | pw32* | cegcc*)
5426 # two different shell functions defined in ltmain.sh;
5427 # decide which one to use based on capabilities of $DLLTOOL
5428 case `$DLLTOOL --help 2>&1` in
5429 *--identify-strict*)
5430 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5431 ;;
5432 *)
5433 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5434 ;;
5435 esac
5436 ;;
5437 *)
5438 # fallback: assume linklib IS sharedlib
5439 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5440 ;;
5441 esac
5442
5443 fi
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5445 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5446 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5447 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5448
5449
5450
5451
5452
5453
5454
5455
5456 if test -n "$ac_tool_prefix"; then
5457 for ac_prog in ar
5458 do
5459 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5460 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5462 $as_echo_n "checking for $ac_word... " >&6; }
5463 if ${ac_cv_prog_AR+:} false; then :
5464 $as_echo_n "(cached) " >&6
5465 else
5466 if test -n "$AR"; then
5467 ac_cv_prog_AR="$AR" # Let the user override the test.
5468 else
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 for as_dir in $PATH
5471 do
5472 IFS=$as_save_IFS
5473 test -z "$as_dir" && as_dir=.
5474 for ac_exec_ext in '' $ac_executable_extensions; do
5475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5476 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5478 break 2
5479 fi
5480 done
5481 done
5482 IFS=$as_save_IFS
5483
5484 fi
5485 fi
5486 AR=$ac_cv_prog_AR
5487 if test -n "$AR"; then
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5489 $as_echo "$AR" >&6; }
5490 else
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492 $as_echo "no" >&6; }
5493 fi
5494
5495
5496 test -n "$AR" && break
5497 done
5498 fi
5499 if test -z "$AR"; then
5500 ac_ct_AR=$AR
5501 for ac_prog in ar
5502 do
5503 # Extract the first word of "$ac_prog", so it can be a program name with args.
5504 set dummy $ac_prog; ac_word=$2
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5506 $as_echo_n "checking for $ac_word... " >&6; }
5507 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5508 $as_echo_n "(cached) " >&6
5509 else
5510 if test -n "$ac_ct_AR"; then
5511 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5512 else
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 for as_dir in $PATH
5515 do
5516 IFS=$as_save_IFS
5517 test -z "$as_dir" && as_dir=.
5518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5520 ac_cv_prog_ac_ct_AR="$ac_prog"
5521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5522 break 2
5523 fi
5524 done
5525 done
5526 IFS=$as_save_IFS
5527
5528 fi
5529 fi
5530 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5531 if test -n "$ac_ct_AR"; then
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5533 $as_echo "$ac_ct_AR" >&6; }
5534 else
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536 $as_echo "no" >&6; }
5537 fi
5538
5539
5540 test -n "$ac_ct_AR" && break
5541 done
5542
5543 if test "x$ac_ct_AR" = x; then
5544 AR="false"
5545 else
5546 case $cross_compiling:$ac_tool_warned in
5547 yes:)
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5550 ac_tool_warned=yes ;;
5551 esac
5552 AR=$ac_ct_AR
5553 fi
5554 fi
5555
5556 : ${AR=ar}
5557 : ${AR_FLAGS=cru}
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5570 $as_echo_n "checking for archiver @FILE support... " >&6; }
5571 if ${lt_cv_ar_at_file+:} false; then :
5572 $as_echo_n "(cached) " >&6
5573 else
5574 lt_cv_ar_at_file=no
5575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576 /* end confdefs.h. */
5577
5578 int
5579 main ()
5580 {
5581
5582 ;
5583 return 0;
5584 }
5585 _ACEOF
5586 if ac_fn_c_try_compile "$LINENO"; then :
5587 echo conftest.$ac_objext > conftest.lst
5588 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5589 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5590 (eval $lt_ar_try) 2>&5
5591 ac_status=$?
5592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5593 test $ac_status = 0; }
5594 if test 0 -eq "$ac_status"; then
5595 # Ensure the archiver fails upon bogus file names.
5596 rm -f conftest.$ac_objext libconftest.a
5597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5598 (eval $lt_ar_try) 2>&5
5599 ac_status=$?
5600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5601 test $ac_status = 0; }
5602 if test 0 -ne "$ac_status"; then
5603 lt_cv_ar_at_file=@
5604 fi
5605 fi
5606 rm -f conftest.* libconftest.a
5607
5608 fi
5609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5610
5611 fi
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5613 $as_echo "$lt_cv_ar_at_file" >&6; }
5614
5615 if test no = "$lt_cv_ar_at_file"; then
5616 archiver_list_spec=
5617 else
5618 archiver_list_spec=$lt_cv_ar_at_file
5619 fi
5620
5621
5622
5623
5624
5625
5626
5627 if test -n "$ac_tool_prefix"; then
5628 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5629 set dummy ${ac_tool_prefix}strip; ac_word=$2
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5631 $as_echo_n "checking for $ac_word... " >&6; }
5632 if ${ac_cv_prog_STRIP+:} false; then :
5633 $as_echo_n "(cached) " >&6
5634 else
5635 if test -n "$STRIP"; then
5636 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5637 else
5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639 for as_dir in $PATH
5640 do
5641 IFS=$as_save_IFS
5642 test -z "$as_dir" && as_dir=.
5643 for ac_exec_ext in '' $ac_executable_extensions; do
5644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5645 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5647 break 2
5648 fi
5649 done
5650 done
5651 IFS=$as_save_IFS
5652
5653 fi
5654 fi
5655 STRIP=$ac_cv_prog_STRIP
5656 if test -n "$STRIP"; then
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5658 $as_echo "$STRIP" >&6; }
5659 else
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5661 $as_echo "no" >&6; }
5662 fi
5663
5664
5665 fi
5666 if test -z "$ac_cv_prog_STRIP"; then
5667 ac_ct_STRIP=$STRIP
5668 # Extract the first word of "strip", so it can be a program name with args.
5669 set dummy strip; ac_word=$2
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5671 $as_echo_n "checking for $ac_word... " >&6; }
5672 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5673 $as_echo_n "(cached) " >&6
5674 else
5675 if test -n "$ac_ct_STRIP"; then
5676 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5677 else
5678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5679 for as_dir in $PATH
5680 do
5681 IFS=$as_save_IFS
5682 test -z "$as_dir" && as_dir=.
5683 for ac_exec_ext in '' $ac_executable_extensions; do
5684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5685 ac_cv_prog_ac_ct_STRIP="strip"
5686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5687 break 2
5688 fi
5689 done
5690 done
5691 IFS=$as_save_IFS
5692
5693 fi
5694 fi
5695 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5696 if test -n "$ac_ct_STRIP"; then
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5698 $as_echo "$ac_ct_STRIP" >&6; }
5699 else
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5701 $as_echo "no" >&6; }
5702 fi
5703
5704 if test "x$ac_ct_STRIP" = x; then
5705 STRIP=":"
5706 else
5707 case $cross_compiling:$ac_tool_warned in
5708 yes:)
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5711 ac_tool_warned=yes ;;
5712 esac
5713 STRIP=$ac_ct_STRIP
5714 fi
5715 else
5716 STRIP="$ac_cv_prog_STRIP"
5717 fi
5718
5719 test -z "$STRIP" && STRIP=:
5720
5721
5722
5723
5724
5725
5726 if test -n "$ac_tool_prefix"; then
5727 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5728 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5730 $as_echo_n "checking for $ac_word... " >&6; }
5731 if ${ac_cv_prog_RANLIB+:} false; then :
5732 $as_echo_n "(cached) " >&6
5733 else
5734 if test -n "$RANLIB"; then
5735 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5736 else
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 for as_dir in $PATH
5739 do
5740 IFS=$as_save_IFS
5741 test -z "$as_dir" && as_dir=.
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5744 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5746 break 2
5747 fi
5748 done
5749 done
5750 IFS=$as_save_IFS
5751
5752 fi
5753 fi
5754 RANLIB=$ac_cv_prog_RANLIB
5755 if test -n "$RANLIB"; then
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5757 $as_echo "$RANLIB" >&6; }
5758 else
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760 $as_echo "no" >&6; }
5761 fi
5762
5763
5764 fi
5765 if test -z "$ac_cv_prog_RANLIB"; then
5766 ac_ct_RANLIB=$RANLIB
5767 # Extract the first word of "ranlib", so it can be a program name with args.
5768 set dummy ranlib; ac_word=$2
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5770 $as_echo_n "checking for $ac_word... " >&6; }
5771 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5772 $as_echo_n "(cached) " >&6
5773 else
5774 if test -n "$ac_ct_RANLIB"; then
5775 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5776 else
5777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778 for as_dir in $PATH
5779 do
5780 IFS=$as_save_IFS
5781 test -z "$as_dir" && as_dir=.
5782 for ac_exec_ext in '' $ac_executable_extensions; do
5783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5784 ac_cv_prog_ac_ct_RANLIB="ranlib"
5785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5786 break 2
5787 fi
5788 done
5789 done
5790 IFS=$as_save_IFS
5791
5792 fi
5793 fi
5794 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5795 if test -n "$ac_ct_RANLIB"; then
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5797 $as_echo "$ac_ct_RANLIB" >&6; }
5798 else
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5800 $as_echo "no" >&6; }
5801 fi
5802
5803 if test "x$ac_ct_RANLIB" = x; then
5804 RANLIB=":"
5805 else
5806 case $cross_compiling:$ac_tool_warned in
5807 yes:)
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5810 ac_tool_warned=yes ;;
5811 esac
5812 RANLIB=$ac_ct_RANLIB
5813 fi
5814 else
5815 RANLIB="$ac_cv_prog_RANLIB"
5816 fi
5817
5818 test -z "$RANLIB" && RANLIB=:
5819
5820
5821
5822
5823
5824
5825 # Determine commands to create old-style static archives.
5826 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5827 old_postinstall_cmds='chmod 644 $oldlib'
5828 old_postuninstall_cmds=
5829
5830 if test -n "$RANLIB"; then
5831 case $host_os in
5832 bitrig* | openbsd*)
5833 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5834 ;;
5835 *)
5836 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5837 ;;
5838 esac
5839 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5840 fi
5841
5842 case $host_os in
5843 darwin*)
5844 lock_old_archive_extraction=yes ;;
5845 *)
5846 lock_old_archive_extraction=no ;;
5847 esac
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887 # If no C compiler was specified, use CC.
5888 LTCC=${LTCC-"$CC"}
5889
5890 # If no C compiler flags were specified, use CFLAGS.
5891 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5892
5893 # Allow CC to be a program name with arguments.
5894 compiler=$CC
5895
5896
5897 # Check for command to grab the raw symbol name followed by C symbol from nm.
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5899 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5900 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5901 $as_echo_n "(cached) " >&6
5902 else
5903
5904 # These are sane defaults that work on at least a few old systems.
5905 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5906
5907 # Character class describing NM global symbol codes.
5908 symcode='[BCDEGRST]'
5909
5910 # Regexp to match symbols that can be accessed directly from C.
5911 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5912
5913 # Define system-specific variables.
5914 case $host_os in
5915 aix*)
5916 symcode='[BCDT]'
5917 ;;
5918 cygwin* | mingw* | pw32* | cegcc*)
5919 symcode='[ABCDGISTW]'
5920 ;;
5921 hpux*)
5922 if test ia64 = "$host_cpu"; then
5923 symcode='[ABCDEGRST]'
5924 fi
5925 ;;
5926 irix* | nonstopux*)
5927 symcode='[BCDEGRST]'
5928 ;;
5929 osf*)
5930 symcode='[BCDEGQRST]'
5931 ;;
5932 solaris*)
5933 symcode='[BDRT]'
5934 ;;
5935 sco3.2v5*)
5936 symcode='[DT]'
5937 ;;
5938 sysv4.2uw2*)
5939 symcode='[DT]'
5940 ;;
5941 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5942 symcode='[ABDT]'
5943 ;;
5944 sysv4)
5945 symcode='[DFNSTU]'
5946 ;;
5947 esac
5948
5949 # If we're using GNU nm, then use its standard symbol codes.
5950 case `$NM -V 2>&1` in
5951 *GNU* | *'with BFD'*)
5952 symcode='[ABCDGIRSTW]' ;;
5953 esac
5954
5955 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5956 # Gets list of data symbols to import.
5957 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5958 # Adjust the below global symbol transforms to fixup imported variables.
5959 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5960 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5961 lt_c_name_lib_hook="\
5962 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5963 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5964 else
5965 # Disable hooks by default.
5966 lt_cv_sys_global_symbol_to_import=
5967 lt_cdecl_hook=
5968 lt_c_name_hook=
5969 lt_c_name_lib_hook=
5970 fi
5971
5972 # Transform an extracted symbol line into a proper C declaration.
5973 # Some systems (esp. on ia64) link data and code symbols differently,
5974 # so use this general approach.
5975 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5976 $lt_cdecl_hook\
5977 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5978 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5979
5980 # Transform an extracted symbol line into symbol name and symbol address
5981 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5982 $lt_c_name_hook\
5983 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5984 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
5985
5986 # Transform an extracted symbol line into symbol name with lib prefix and
5987 # symbol address.
5988 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5989 $lt_c_name_lib_hook\
5990 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5991 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
5992 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
5993
5994 # Handle CRLF in mingw tool chain
5995 opt_cr=
5996 case $build_os in
5997 mingw*)
5998 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5999 ;;
6000 esac
6001
6002 # Try without a prefix underscore, then with it.
6003 for ac_symprfx in "" "_"; do
6004
6005 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6006 symxfrm="\\1 $ac_symprfx\\2 \\2"
6007
6008 # Write the raw and C identifiers.
6009 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6010 # Fake it for dumpbin and say T for any non-static function,
6011 # D for any global variable and I for any imported variable.
6012 # Also find C++ and __fastcall symbols from MSVC++,
6013 # which start with @ or ?.
6014 lt_cv_sys_global_symbol_pipe="$AWK '"\
6015 " {last_section=section; section=\$ 3};"\
6016 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6017 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6018 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6019 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6020 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6021 " \$ 0!~/External *\|/{next};"\
6022 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6023 " {if(hide[section]) next};"\
6024 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6025 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6026 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6027 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6028 " ' prfx=^$ac_symprfx"
6029 else
6030 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6031 fi
6032 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6033
6034 # Check to see that the pipe works correctly.
6035 pipe_works=no
6036
6037 rm -f conftest*
6038 cat > conftest.$ac_ext <<_LT_EOF
6039 #ifdef __cplusplus
6040 extern "C" {
6041 #endif
6042 char nm_test_var;
6043 void nm_test_func(void);
6044 void nm_test_func(void){}
6045 #ifdef __cplusplus
6046 }
6047 #endif
6048 int main(){nm_test_var='a';nm_test_func();return(0);}
6049 _LT_EOF
6050
6051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6052 (eval $ac_compile) 2>&5
6053 ac_status=$?
6054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6055 test $ac_status = 0; }; then
6056 # Now try to grab the symbols.
6057 nlist=conftest.nm
6058 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6059 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6060 ac_status=$?
6061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6062 test $ac_status = 0; } && test -s "$nlist"; then
6063 # Try sorting and uniquifying the output.
6064 if sort "$nlist" | uniq > "$nlist"T; then
6065 mv -f "$nlist"T "$nlist"
6066 else
6067 rm -f "$nlist"T
6068 fi
6069
6070 # Make sure that we snagged all the symbols we need.
6071 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6072 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6073 cat <<_LT_EOF > conftest.$ac_ext
6074 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6075 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6076 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6077 relocations are performed -- see ld's documentation on pseudo-relocs. */
6078 # define LT_DLSYM_CONST
6079 #elif defined __osf__
6080 /* This system does not cope well with relocations in const data. */
6081 # define LT_DLSYM_CONST
6082 #else
6083 # define LT_DLSYM_CONST const
6084 #endif
6085
6086 #ifdef __cplusplus
6087 extern "C" {
6088 #endif
6089
6090 _LT_EOF
6091 # Now generate the symbol file.
6092 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6093
6094 cat <<_LT_EOF >> conftest.$ac_ext
6095
6096 /* The mapping between symbol names and symbols. */
6097 LT_DLSYM_CONST struct {
6098 const char *name;
6099 void *address;
6100 }
6101 lt__PROGRAM__LTX_preloaded_symbols[] =
6102 {
6103 { "@PROGRAM@", (void *) 0 },
6104 _LT_EOF
6105 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6106 cat <<\_LT_EOF >> conftest.$ac_ext
6107 {0, (void *) 0}
6108 };
6109
6110 /* This works around a problem in FreeBSD linker */
6111 #ifdef FREEBSD_WORKAROUND
6112 static const void *lt_preloaded_setup() {
6113 return lt__PROGRAM__LTX_preloaded_symbols;
6114 }
6115 #endif
6116
6117 #ifdef __cplusplus
6118 }
6119 #endif
6120 _LT_EOF
6121 # Now try linking the two files.
6122 mv conftest.$ac_objext conftstm.$ac_objext
6123 lt_globsym_save_LIBS=$LIBS
6124 lt_globsym_save_CFLAGS=$CFLAGS
6125 LIBS=conftstm.$ac_objext
6126 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6128 (eval $ac_link) 2>&5
6129 ac_status=$?
6130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6131 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6132 pipe_works=yes
6133 fi
6134 LIBS=$lt_globsym_save_LIBS
6135 CFLAGS=$lt_globsym_save_CFLAGS
6136 else
6137 echo "cannot find nm_test_func in $nlist" >&5
6138 fi
6139 else
6140 echo "cannot find nm_test_var in $nlist" >&5
6141 fi
6142 else
6143 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6144 fi
6145 else
6146 echo "$progname: failed program was:" >&5
6147 cat conftest.$ac_ext >&5
6148 fi
6149 rm -rf conftest* conftst*
6150
6151 # Do not use the global_symbol_pipe unless it works.
6152 if test yes = "$pipe_works"; then
6153 break
6154 else
6155 lt_cv_sys_global_symbol_pipe=
6156 fi
6157 done
6158
6159 fi
6160
6161 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6162 lt_cv_sys_global_symbol_to_cdecl=
6163 fi
6164 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6166 $as_echo "failed" >&6; }
6167 else
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6169 $as_echo "ok" >&6; }
6170 fi
6171
6172 # Response file support.
6173 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6174 nm_file_list_spec='@'
6175 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6176 nm_file_list_spec='@'
6177 fi
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6216 $as_echo_n "checking for sysroot... " >&6; }
6217
6218 # Check whether --with-sysroot was given.
6219 if test "${with_sysroot+set}" = set; then :
6220 withval=$with_sysroot;
6221 else
6222 with_sysroot=no
6223 fi
6224
6225
6226 lt_sysroot=
6227 case $with_sysroot in #(
6228 yes)
6229 if test yes = "$GCC"; then
6230 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6231 fi
6232 ;; #(
6233 /*)
6234 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6235 ;; #(
6236 no|'')
6237 ;; #(
6238 *)
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6240 $as_echo "$with_sysroot" >&6; }
6241 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6242 ;;
6243 esac
6244
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6246 $as_echo "${lt_sysroot:-no}" >&6; }
6247
6248
6249
6250
6251
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6253 $as_echo_n "checking for a working dd... " >&6; }
6254 if ${ac_cv_path_lt_DD+:} false; then :
6255 $as_echo_n "(cached) " >&6
6256 else
6257 printf 0123456789abcdef0123456789abcdef >conftest.i
6258 cat conftest.i conftest.i >conftest2.i
6259 : ${lt_DD:=$DD}
6260 if test -z "$lt_DD"; then
6261 ac_path_lt_DD_found=false
6262 # Loop through the user's path and test for each of PROGNAME-LIST
6263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 for as_dir in $PATH
6265 do
6266 IFS=$as_save_IFS
6267 test -z "$as_dir" && as_dir=.
6268 for ac_prog in dd; do
6269 for ac_exec_ext in '' $ac_executable_extensions; do
6270 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6271 as_fn_executable_p "$ac_path_lt_DD" || continue
6272 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6273 cmp -s conftest.i conftest.out \
6274 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6275 fi
6276 $ac_path_lt_DD_found && break 3
6277 done
6278 done
6279 done
6280 IFS=$as_save_IFS
6281 if test -z "$ac_cv_path_lt_DD"; then
6282 :
6283 fi
6284 else
6285 ac_cv_path_lt_DD=$lt_DD
6286 fi
6287
6288 rm -f conftest.i conftest2.i conftest.out
6289 fi
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6291 $as_echo "$ac_cv_path_lt_DD" >&6; }
6292
6293
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6295 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6296 if ${lt_cv_truncate_bin+:} false; then :
6297 $as_echo_n "(cached) " >&6
6298 else
6299 printf 0123456789abcdef0123456789abcdef >conftest.i
6300 cat conftest.i conftest.i >conftest2.i
6301 lt_cv_truncate_bin=
6302 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6303 cmp -s conftest.i conftest.out \
6304 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6305 fi
6306 rm -f conftest.i conftest2.i conftest.out
6307 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6308 fi
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6310 $as_echo "$lt_cv_truncate_bin" >&6; }
6311
6312
6313
6314
6315
6316
6317
6318 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6319 func_cc_basename ()
6320 {
6321 for cc_temp in $*""; do
6322 case $cc_temp in
6323 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6324 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6325 \-*) ;;
6326 *) break;;
6327 esac
6328 done
6329 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6330 }
6331
6332 # Check whether --enable-libtool-lock was given.
6333 if test "${enable_libtool_lock+set}" = set; then :
6334 enableval=$enable_libtool_lock;
6335 fi
6336
6337 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6338
6339 # Some flags need to be propagated to the compiler or linker for good
6340 # libtool support.
6341 case $host in
6342 ia64-*-hpux*)
6343 # Find out what ABI is being produced by ac_compile, and set mode
6344 # options accordingly.
6345 echo 'int i;' > conftest.$ac_ext
6346 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6347 (eval $ac_compile) 2>&5
6348 ac_status=$?
6349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6350 test $ac_status = 0; }; then
6351 case `/usr/bin/file conftest.$ac_objext` in
6352 *ELF-32*)
6353 HPUX_IA64_MODE=32
6354 ;;
6355 *ELF-64*)
6356 HPUX_IA64_MODE=64
6357 ;;
6358 esac
6359 fi
6360 rm -rf conftest*
6361 ;;
6362 *-*-irix6*)
6363 # Find out what ABI is being produced by ac_compile, and set linker
6364 # options accordingly.
6365 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6367 (eval $ac_compile) 2>&5
6368 ac_status=$?
6369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6370 test $ac_status = 0; }; then
6371 if test yes = "$lt_cv_prog_gnu_ld"; then
6372 case `/usr/bin/file conftest.$ac_objext` in
6373 *32-bit*)
6374 LD="${LD-ld} -melf32bsmip"
6375 ;;
6376 *N32*)
6377 LD="${LD-ld} -melf32bmipn32"
6378 ;;
6379 *64-bit*)
6380 LD="${LD-ld} -melf64bmip"
6381 ;;
6382 esac
6383 else
6384 case `/usr/bin/file conftest.$ac_objext` in
6385 *32-bit*)
6386 LD="${LD-ld} -32"
6387 ;;
6388 *N32*)
6389 LD="${LD-ld} -n32"
6390 ;;
6391 *64-bit*)
6392 LD="${LD-ld} -64"
6393 ;;
6394 esac
6395 fi
6396 fi
6397 rm -rf conftest*
6398 ;;
6399
6400 mips64*-*linux*)
6401 # Find out what ABI is being produced by ac_compile, and set linker
6402 # options accordingly.
6403 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6405 (eval $ac_compile) 2>&5
6406 ac_status=$?
6407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6408 test $ac_status = 0; }; then
6409 emul=elf
6410 case `/usr/bin/file conftest.$ac_objext` in
6411 *32-bit*)
6412 emul="${emul}32"
6413 ;;
6414 *64-bit*)
6415 emul="${emul}64"
6416 ;;
6417 esac
6418 case `/usr/bin/file conftest.$ac_objext` in
6419 *MSB*)
6420 emul="${emul}btsmip"
6421 ;;
6422 *LSB*)
6423 emul="${emul}ltsmip"
6424 ;;
6425 esac
6426 case `/usr/bin/file conftest.$ac_objext` in
6427 *N32*)
6428 emul="${emul}n32"
6429 ;;
6430 esac
6431 LD="${LD-ld} -m $emul"
6432 fi
6433 rm -rf conftest*
6434 ;;
6435
6436 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6437 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6438 # Find out what ABI is being produced by ac_compile, and set linker
6439 # options accordingly. Note that the listed cases only cover the
6440 # situations where additional linker options are needed (such as when
6441 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6442 # vice versa); the common cases where no linker options are needed do
6443 # not appear in the list.
6444 echo 'int i;' > conftest.$ac_ext
6445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6446 (eval $ac_compile) 2>&5
6447 ac_status=$?
6448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6449 test $ac_status = 0; }; then
6450 case `/usr/bin/file conftest.o` in
6451 *32-bit*)
6452 case $host in
6453 x86_64-*kfreebsd*-gnu)
6454 LD="${LD-ld} -m elf_i386_fbsd"
6455 ;;
6456 x86_64-*linux*)
6457 case `/usr/bin/file conftest.o` in
6458 *x86-64*)
6459 LD="${LD-ld} -m elf32_x86_64"
6460 ;;
6461 *)
6462 LD="${LD-ld} -m elf_i386"
6463 ;;
6464 esac
6465 ;;
6466 powerpc64le-*linux*)
6467 LD="${LD-ld} -m elf32lppclinux"
6468 ;;
6469 powerpc64-*linux*)
6470 LD="${LD-ld} -m elf32ppclinux"
6471 ;;
6472 s390x-*linux*)
6473 LD="${LD-ld} -m elf_s390"
6474 ;;
6475 sparc64-*linux*)
6476 LD="${LD-ld} -m elf32_sparc"
6477 ;;
6478 esac
6479 ;;
6480 *64-bit*)
6481 case $host in
6482 x86_64-*kfreebsd*-gnu)
6483 LD="${LD-ld} -m elf_x86_64_fbsd"
6484 ;;
6485 x86_64-*linux*)
6486 LD="${LD-ld} -m elf_x86_64"
6487 ;;
6488 powerpcle-*linux*)
6489 LD="${LD-ld} -m elf64lppc"
6490 ;;
6491 powerpc-*linux*)
6492 LD="${LD-ld} -m elf64ppc"
6493 ;;
6494 s390*-*linux*|s390*-*tpf*)
6495 LD="${LD-ld} -m elf64_s390"
6496 ;;
6497 sparc*-*linux*)
6498 LD="${LD-ld} -m elf64_sparc"
6499 ;;
6500 esac
6501 ;;
6502 esac
6503 fi
6504 rm -rf conftest*
6505 ;;
6506
6507 *-*-sco3.2v5*)
6508 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6509 SAVE_CFLAGS=$CFLAGS
6510 CFLAGS="$CFLAGS -belf"
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6512 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6513 if ${lt_cv_cc_needs_belf+:} false; then :
6514 $as_echo_n "(cached) " >&6
6515 else
6516 ac_ext=c
6517 ac_cpp='$CPP $CPPFLAGS'
6518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6521
6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523 /* end confdefs.h. */
6524
6525 int
6526 main ()
6527 {
6528
6529 ;
6530 return 0;
6531 }
6532 _ACEOF
6533 if ac_fn_c_try_link "$LINENO"; then :
6534 lt_cv_cc_needs_belf=yes
6535 else
6536 lt_cv_cc_needs_belf=no
6537 fi
6538 rm -f core conftest.err conftest.$ac_objext \
6539 conftest$ac_exeext conftest.$ac_ext
6540 ac_ext=c
6541 ac_cpp='$CPP $CPPFLAGS'
6542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6545
6546 fi
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6548 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6549 if test yes != "$lt_cv_cc_needs_belf"; then
6550 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6551 CFLAGS=$SAVE_CFLAGS
6552 fi
6553 ;;
6554 *-*solaris*)
6555 # Find out what ABI is being produced by ac_compile, and set linker
6556 # options accordingly.
6557 echo 'int i;' > conftest.$ac_ext
6558 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6559 (eval $ac_compile) 2>&5
6560 ac_status=$?
6561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6562 test $ac_status = 0; }; then
6563 case `/usr/bin/file conftest.o` in
6564 *64-bit*)
6565 case $lt_cv_prog_gnu_ld in
6566 yes*)
6567 case $host in
6568 i?86-*-solaris*|x86_64-*-solaris*)
6569 LD="${LD-ld} -m elf_x86_64"
6570 ;;
6571 sparc*-*-solaris*)
6572 LD="${LD-ld} -m elf64_sparc"
6573 ;;
6574 esac
6575 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6576 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6577 LD=${LD-ld}_sol2
6578 fi
6579 ;;
6580 *)
6581 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6582 LD="${LD-ld} -64"
6583 fi
6584 ;;
6585 esac
6586 ;;
6587 esac
6588 fi
6589 rm -rf conftest*
6590 ;;
6591 esac
6592
6593 need_locks=$enable_libtool_lock
6594
6595 if test -n "$ac_tool_prefix"; then
6596 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6597 set dummy ${ac_tool_prefix}mt; ac_word=$2
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6599 $as_echo_n "checking for $ac_word... " >&6; }
6600 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6601 $as_echo_n "(cached) " >&6
6602 else
6603 if test -n "$MANIFEST_TOOL"; then
6604 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6605 else
6606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607 for as_dir in $PATH
6608 do
6609 IFS=$as_save_IFS
6610 test -z "$as_dir" && as_dir=.
6611 for ac_exec_ext in '' $ac_executable_extensions; do
6612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6613 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6615 break 2
6616 fi
6617 done
6618 done
6619 IFS=$as_save_IFS
6620
6621 fi
6622 fi
6623 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6624 if test -n "$MANIFEST_TOOL"; then
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6626 $as_echo "$MANIFEST_TOOL" >&6; }
6627 else
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6629 $as_echo "no" >&6; }
6630 fi
6631
6632
6633 fi
6634 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6635 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6636 # Extract the first word of "mt", so it can be a program name with args.
6637 set dummy mt; ac_word=$2
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6639 $as_echo_n "checking for $ac_word... " >&6; }
6640 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6641 $as_echo_n "(cached) " >&6
6642 else
6643 if test -n "$ac_ct_MANIFEST_TOOL"; then
6644 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6645 else
6646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647 for as_dir in $PATH
6648 do
6649 IFS=$as_save_IFS
6650 test -z "$as_dir" && as_dir=.
6651 for ac_exec_ext in '' $ac_executable_extensions; do
6652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6653 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6655 break 2
6656 fi
6657 done
6658 done
6659 IFS=$as_save_IFS
6660
6661 fi
6662 fi
6663 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6664 if test -n "$ac_ct_MANIFEST_TOOL"; then
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6666 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6667 else
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6669 $as_echo "no" >&6; }
6670 fi
6671
6672 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6673 MANIFEST_TOOL=":"
6674 else
6675 case $cross_compiling:$ac_tool_warned in
6676 yes:)
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6679 ac_tool_warned=yes ;;
6680 esac
6681 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6682 fi
6683 else
6684 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6685 fi
6686
6687 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6689 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6690 if ${lt_cv_path_mainfest_tool+:} false; then :
6691 $as_echo_n "(cached) " >&6
6692 else
6693 lt_cv_path_mainfest_tool=no
6694 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6695 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6696 cat conftest.err >&5
6697 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6698 lt_cv_path_mainfest_tool=yes
6699 fi
6700 rm -f conftest*
6701 fi
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6703 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6704 if test yes != "$lt_cv_path_mainfest_tool"; then
6705 MANIFEST_TOOL=:
6706 fi
6707
6708
6709
6710
6711
6712
6713 case $host_os in
6714 rhapsody* | darwin*)
6715 if test -n "$ac_tool_prefix"; then
6716 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6717 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719 $as_echo_n "checking for $ac_word... " >&6; }
6720 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6721 $as_echo_n "(cached) " >&6
6722 else
6723 if test -n "$DSYMUTIL"; then
6724 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6725 else
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 for as_dir in $PATH
6728 do
6729 IFS=$as_save_IFS
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6733 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6735 break 2
6736 fi
6737 done
6738 done
6739 IFS=$as_save_IFS
6740
6741 fi
6742 fi
6743 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6744 if test -n "$DSYMUTIL"; then
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6746 $as_echo "$DSYMUTIL" >&6; }
6747 else
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749 $as_echo "no" >&6; }
6750 fi
6751
6752
6753 fi
6754 if test -z "$ac_cv_prog_DSYMUTIL"; then
6755 ac_ct_DSYMUTIL=$DSYMUTIL
6756 # Extract the first word of "dsymutil", so it can be a program name with args.
6757 set dummy dsymutil; ac_word=$2
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6759 $as_echo_n "checking for $ac_word... " >&6; }
6760 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6761 $as_echo_n "(cached) " >&6
6762 else
6763 if test -n "$ac_ct_DSYMUTIL"; then
6764 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6765 else
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 for as_dir in $PATH
6768 do
6769 IFS=$as_save_IFS
6770 test -z "$as_dir" && as_dir=.
6771 for ac_exec_ext in '' $ac_executable_extensions; do
6772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6773 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6775 break 2
6776 fi
6777 done
6778 done
6779 IFS=$as_save_IFS
6780
6781 fi
6782 fi
6783 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6784 if test -n "$ac_ct_DSYMUTIL"; then
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6786 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6787 else
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6789 $as_echo "no" >&6; }
6790 fi
6791
6792 if test "x$ac_ct_DSYMUTIL" = x; then
6793 DSYMUTIL=":"
6794 else
6795 case $cross_compiling:$ac_tool_warned in
6796 yes:)
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6799 ac_tool_warned=yes ;;
6800 esac
6801 DSYMUTIL=$ac_ct_DSYMUTIL
6802 fi
6803 else
6804 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6805 fi
6806
6807 if test -n "$ac_tool_prefix"; then
6808 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6809 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811 $as_echo_n "checking for $ac_word... " >&6; }
6812 if ${ac_cv_prog_NMEDIT+:} false; then :
6813 $as_echo_n "(cached) " >&6
6814 else
6815 if test -n "$NMEDIT"; then
6816 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6817 else
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 for as_dir in $PATH
6820 do
6821 IFS=$as_save_IFS
6822 test -z "$as_dir" && as_dir=.
6823 for ac_exec_ext in '' $ac_executable_extensions; do
6824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6825 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6827 break 2
6828 fi
6829 done
6830 done
6831 IFS=$as_save_IFS
6832
6833 fi
6834 fi
6835 NMEDIT=$ac_cv_prog_NMEDIT
6836 if test -n "$NMEDIT"; then
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6838 $as_echo "$NMEDIT" >&6; }
6839 else
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841 $as_echo "no" >&6; }
6842 fi
6843
6844
6845 fi
6846 if test -z "$ac_cv_prog_NMEDIT"; then
6847 ac_ct_NMEDIT=$NMEDIT
6848 # Extract the first word of "nmedit", so it can be a program name with args.
6849 set dummy nmedit; ac_word=$2
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6851 $as_echo_n "checking for $ac_word... " >&6; }
6852 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6853 $as_echo_n "(cached) " >&6
6854 else
6855 if test -n "$ac_ct_NMEDIT"; then
6856 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6857 else
6858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859 for as_dir in $PATH
6860 do
6861 IFS=$as_save_IFS
6862 test -z "$as_dir" && as_dir=.
6863 for ac_exec_ext in '' $ac_executable_extensions; do
6864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6865 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6867 break 2
6868 fi
6869 done
6870 done
6871 IFS=$as_save_IFS
6872
6873 fi
6874 fi
6875 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6876 if test -n "$ac_ct_NMEDIT"; then
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6878 $as_echo "$ac_ct_NMEDIT" >&6; }
6879 else
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6881 $as_echo "no" >&6; }
6882 fi
6883
6884 if test "x$ac_ct_NMEDIT" = x; then
6885 NMEDIT=":"
6886 else
6887 case $cross_compiling:$ac_tool_warned in
6888 yes:)
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6891 ac_tool_warned=yes ;;
6892 esac
6893 NMEDIT=$ac_ct_NMEDIT
6894 fi
6895 else
6896 NMEDIT="$ac_cv_prog_NMEDIT"
6897 fi
6898
6899 if test -n "$ac_tool_prefix"; then
6900 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6901 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6903 $as_echo_n "checking for $ac_word... " >&6; }
6904 if ${ac_cv_prog_LIPO+:} false; then :
6905 $as_echo_n "(cached) " >&6
6906 else
6907 if test -n "$LIPO"; then
6908 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6909 else
6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911 for as_dir in $PATH
6912 do
6913 IFS=$as_save_IFS
6914 test -z "$as_dir" && as_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
6916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6917 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6919 break 2
6920 fi
6921 done
6922 done
6923 IFS=$as_save_IFS
6924
6925 fi
6926 fi
6927 LIPO=$ac_cv_prog_LIPO
6928 if test -n "$LIPO"; then
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6930 $as_echo "$LIPO" >&6; }
6931 else
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933 $as_echo "no" >&6; }
6934 fi
6935
6936
6937 fi
6938 if test -z "$ac_cv_prog_LIPO"; then
6939 ac_ct_LIPO=$LIPO
6940 # Extract the first word of "lipo", so it can be a program name with args.
6941 set dummy lipo; ac_word=$2
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6943 $as_echo_n "checking for $ac_word... " >&6; }
6944 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6945 $as_echo_n "(cached) " >&6
6946 else
6947 if test -n "$ac_ct_LIPO"; then
6948 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6949 else
6950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951 for as_dir in $PATH
6952 do
6953 IFS=$as_save_IFS
6954 test -z "$as_dir" && as_dir=.
6955 for ac_exec_ext in '' $ac_executable_extensions; do
6956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6957 ac_cv_prog_ac_ct_LIPO="lipo"
6958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6959 break 2
6960 fi
6961 done
6962 done
6963 IFS=$as_save_IFS
6964
6965 fi
6966 fi
6967 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6968 if test -n "$ac_ct_LIPO"; then
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6970 $as_echo "$ac_ct_LIPO" >&6; }
6971 else
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6973 $as_echo "no" >&6; }
6974 fi
6975
6976 if test "x$ac_ct_LIPO" = x; then
6977 LIPO=":"
6978 else
6979 case $cross_compiling:$ac_tool_warned in
6980 yes:)
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6983 ac_tool_warned=yes ;;
6984 esac
6985 LIPO=$ac_ct_LIPO
6986 fi
6987 else
6988 LIPO="$ac_cv_prog_LIPO"
6989 fi
6990
6991 if test -n "$ac_tool_prefix"; then
6992 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6993 set dummy ${ac_tool_prefix}otool; ac_word=$2
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6995 $as_echo_n "checking for $ac_word... " >&6; }
6996 if ${ac_cv_prog_OTOOL+:} false; then :
6997 $as_echo_n "(cached) " >&6
6998 else
6999 if test -n "$OTOOL"; then
7000 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7001 else
7002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003 for as_dir in $PATH
7004 do
7005 IFS=$as_save_IFS
7006 test -z "$as_dir" && as_dir=.
7007 for ac_exec_ext in '' $ac_executable_extensions; do
7008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7009 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7011 break 2
7012 fi
7013 done
7014 done
7015 IFS=$as_save_IFS
7016
7017 fi
7018 fi
7019 OTOOL=$ac_cv_prog_OTOOL
7020 if test -n "$OTOOL"; then
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7022 $as_echo "$OTOOL" >&6; }
7023 else
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7025 $as_echo "no" >&6; }
7026 fi
7027
7028
7029 fi
7030 if test -z "$ac_cv_prog_OTOOL"; then
7031 ac_ct_OTOOL=$OTOOL
7032 # Extract the first word of "otool", so it can be a program name with args.
7033 set dummy otool; ac_word=$2
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7035 $as_echo_n "checking for $ac_word... " >&6; }
7036 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7037 $as_echo_n "(cached) " >&6
7038 else
7039 if test -n "$ac_ct_OTOOL"; then
7040 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7041 else
7042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043 for as_dir in $PATH
7044 do
7045 IFS=$as_save_IFS
7046 test -z "$as_dir" && as_dir=.
7047 for ac_exec_ext in '' $ac_executable_extensions; do
7048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7049 ac_cv_prog_ac_ct_OTOOL="otool"
7050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7051 break 2
7052 fi
7053 done
7054 done
7055 IFS=$as_save_IFS
7056
7057 fi
7058 fi
7059 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7060 if test -n "$ac_ct_OTOOL"; then
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7062 $as_echo "$ac_ct_OTOOL" >&6; }
7063 else
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065 $as_echo "no" >&6; }
7066 fi
7067
7068 if test "x$ac_ct_OTOOL" = x; then
7069 OTOOL=":"
7070 else
7071 case $cross_compiling:$ac_tool_warned in
7072 yes:)
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7075 ac_tool_warned=yes ;;
7076 esac
7077 OTOOL=$ac_ct_OTOOL
7078 fi
7079 else
7080 OTOOL="$ac_cv_prog_OTOOL"
7081 fi
7082
7083 if test -n "$ac_tool_prefix"; then
7084 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7085 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7087 $as_echo_n "checking for $ac_word... " >&6; }
7088 if ${ac_cv_prog_OTOOL64+:} false; then :
7089 $as_echo_n "(cached) " >&6
7090 else
7091 if test -n "$OTOOL64"; then
7092 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7093 else
7094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095 for as_dir in $PATH
7096 do
7097 IFS=$as_save_IFS
7098 test -z "$as_dir" && as_dir=.
7099 for ac_exec_ext in '' $ac_executable_extensions; do
7100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7101 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7103 break 2
7104 fi
7105 done
7106 done
7107 IFS=$as_save_IFS
7108
7109 fi
7110 fi
7111 OTOOL64=$ac_cv_prog_OTOOL64
7112 if test -n "$OTOOL64"; then
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7114 $as_echo "$OTOOL64" >&6; }
7115 else
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7117 $as_echo "no" >&6; }
7118 fi
7119
7120
7121 fi
7122 if test -z "$ac_cv_prog_OTOOL64"; then
7123 ac_ct_OTOOL64=$OTOOL64
7124 # Extract the first word of "otool64", so it can be a program name with args.
7125 set dummy otool64; ac_word=$2
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7127 $as_echo_n "checking for $ac_word... " >&6; }
7128 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7129 $as_echo_n "(cached) " >&6
7130 else
7131 if test -n "$ac_ct_OTOOL64"; then
7132 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7133 else
7134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135 for as_dir in $PATH
7136 do
7137 IFS=$as_save_IFS
7138 test -z "$as_dir" && as_dir=.
7139 for ac_exec_ext in '' $ac_executable_extensions; do
7140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7141 ac_cv_prog_ac_ct_OTOOL64="otool64"
7142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7143 break 2
7144 fi
7145 done
7146 done
7147 IFS=$as_save_IFS
7148
7149 fi
7150 fi
7151 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7152 if test -n "$ac_ct_OTOOL64"; then
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7154 $as_echo "$ac_ct_OTOOL64" >&6; }
7155 else
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7157 $as_echo "no" >&6; }
7158 fi
7159
7160 if test "x$ac_ct_OTOOL64" = x; then
7161 OTOOL64=":"
7162 else
7163 case $cross_compiling:$ac_tool_warned in
7164 yes:)
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7167 ac_tool_warned=yes ;;
7168 esac
7169 OTOOL64=$ac_ct_OTOOL64
7170 fi
7171 else
7172 OTOOL64="$ac_cv_prog_OTOOL64"
7173 fi
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7202 $as_echo_n "checking for -single_module linker flag... " >&6; }
7203 if ${lt_cv_apple_cc_single_mod+:} false; then :
7204 $as_echo_n "(cached) " >&6
7205 else
7206 lt_cv_apple_cc_single_mod=no
7207 if test -z "$LT_MULTI_MODULE"; then
7208 # By default we will add the -single_module flag. You can override
7209 # by either setting the environment variable LT_MULTI_MODULE
7210 # non-empty at configure time, or by adding -multi_module to the
7211 # link flags.
7212 rm -rf libconftest.dylib*
7213 echo "int foo(void){return 1;}" > conftest.c
7214 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7215 -dynamiclib -Wl,-single_module conftest.c" >&5
7216 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7217 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7218 _lt_result=$?
7219 # If there is a non-empty error log, and "single_module"
7220 # appears in it, assume the flag caused a linker warning
7221 if test -s conftest.err && $GREP single_module conftest.err; then
7222 cat conftest.err >&5
7223 # Otherwise, if the output was created with a 0 exit code from
7224 # the compiler, it worked.
7225 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7226 lt_cv_apple_cc_single_mod=yes
7227 else
7228 cat conftest.err >&5
7229 fi
7230 rm -rf libconftest.dylib*
7231 rm -f conftest.*
7232 fi
7233 fi
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7235 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7236
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7238 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7239 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7240 $as_echo_n "(cached) " >&6
7241 else
7242 lt_cv_ld_exported_symbols_list=no
7243 save_LDFLAGS=$LDFLAGS
7244 echo "_main" > conftest.sym
7245 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247 /* end confdefs.h. */
7248
7249 int
7250 main ()
7251 {
7252
7253 ;
7254 return 0;
7255 }
7256 _ACEOF
7257 if ac_fn_c_try_link "$LINENO"; then :
7258 lt_cv_ld_exported_symbols_list=yes
7259 else
7260 lt_cv_ld_exported_symbols_list=no
7261 fi
7262 rm -f core conftest.err conftest.$ac_objext \
7263 conftest$ac_exeext conftest.$ac_ext
7264 LDFLAGS=$save_LDFLAGS
7265
7266 fi
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7268 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7269
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7271 $as_echo_n "checking for -force_load linker flag... " >&6; }
7272 if ${lt_cv_ld_force_load+:} false; then :
7273 $as_echo_n "(cached) " >&6
7274 else
7275 lt_cv_ld_force_load=no
7276 cat > conftest.c << _LT_EOF
7277 int forced_loaded() { return 2;}
7278 _LT_EOF
7279 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7280 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7281 echo "$AR cru libconftest.a conftest.o" >&5
7282 $AR cru libconftest.a conftest.o 2>&5
7283 echo "$RANLIB libconftest.a" >&5
7284 $RANLIB libconftest.a 2>&5
7285 cat > conftest.c << _LT_EOF
7286 int main() { return 0;}
7287 _LT_EOF
7288 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7289 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7290 _lt_result=$?
7291 if test -s conftest.err && $GREP force_load conftest.err; then
7292 cat conftest.err >&5
7293 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7294 lt_cv_ld_force_load=yes
7295 else
7296 cat conftest.err >&5
7297 fi
7298 rm -f conftest.err libconftest.a conftest conftest.c
7299 rm -rf conftest.dSYM
7300
7301 fi
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7303 $as_echo "$lt_cv_ld_force_load" >&6; }
7304 case $host_os in
7305 rhapsody* | darwin1.[012])
7306 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7307 darwin1.*)
7308 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7309 darwin*) # darwin 5.x on
7310 # if running on 10.5 or later, the deployment target defaults
7311 # to the OS version, if on x86, and 10.4, the deployment
7312 # target defaults to 10.4. Don't you love it?
7313 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7314 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7315 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7316 10.[012][,.]*)
7317 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7318 10.*)
7319 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7320 esac
7321 ;;
7322 esac
7323 if test yes = "$lt_cv_apple_cc_single_mod"; then
7324 _lt_dar_single_mod='$single_module'
7325 fi
7326 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7327 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7328 else
7329 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7330 fi
7331 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7332 _lt_dsymutil='~$DSYMUTIL $lib || :'
7333 else
7334 _lt_dsymutil=
7335 fi
7336 ;;
7337 esac
7338
7339 # func_munge_path_list VARIABLE PATH
7340 # -----------------------------------
7341 # VARIABLE is name of variable containing _space_ separated list of
7342 # directories to be munged by the contents of PATH, which is string
7343 # having a format:
7344 # "DIR[:DIR]:"
7345 # string "DIR[ DIR]" will be prepended to VARIABLE
7346 # ":DIR[:DIR]"
7347 # string "DIR[ DIR]" will be appended to VARIABLE
7348 # "DIRP[:DIRP]::[DIRA:]DIRA"
7349 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7350 # "DIRA[ DIRA]" will be appended to VARIABLE
7351 # "DIR[:DIR]"
7352 # VARIABLE will be replaced by "DIR[ DIR]"
7353 func_munge_path_list ()
7354 {
7355 case x$2 in
7356 x)
7357 ;;
7358 *:)
7359 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7360 ;;
7361 x:*)
7362 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7363 ;;
7364 *::*)
7365 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7366 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7367 ;;
7368 *)
7369 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7370 ;;
7371 esac
7372 }
7373
7374 ac_ext=c
7375 ac_cpp='$CPP $CPPFLAGS'
7376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7380 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7381 # On Suns, sometimes $CPP names a directory.
7382 if test -n "$CPP" && test -d "$CPP"; then
7383 CPP=
7384 fi
7385 if test -z "$CPP"; then
7386 if ${ac_cv_prog_CPP+:} false; then :
7387 $as_echo_n "(cached) " >&6
7388 else
7389 # Double quotes because CPP needs to be expanded
7390 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7391 do
7392 ac_preproc_ok=false
7393 for ac_c_preproc_warn_flag in '' yes
7394 do
7395 # Use a header file that comes with gcc, so configuring glibc
7396 # with a fresh cross-compiler works.
7397 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7398 # <limits.h> exists even on freestanding compilers.
7399 # On the NeXT, cc -E runs the code through the compiler's parser,
7400 # not just through cpp. "Syntax error" is here to catch this case.
7401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7402 /* end confdefs.h. */
7403 #ifdef __STDC__
7404 # include <limits.h>
7405 #else
7406 # include <assert.h>
7407 #endif
7408 Syntax error
7409 _ACEOF
7410 if ac_fn_c_try_cpp "$LINENO"; then :
7411
7412 else
7413 # Broken: fails on valid input.
7414 continue
7415 fi
7416 rm -f conftest.err conftest.i conftest.$ac_ext
7417
7418 # OK, works on sane cases. Now check whether nonexistent headers
7419 # can be detected and how.
7420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7421 /* end confdefs.h. */
7422 #include <ac_nonexistent.h>
7423 _ACEOF
7424 if ac_fn_c_try_cpp "$LINENO"; then :
7425 # Broken: success on invalid input.
7426 continue
7427 else
7428 # Passes both tests.
7429 ac_preproc_ok=:
7430 break
7431 fi
7432 rm -f conftest.err conftest.i conftest.$ac_ext
7433
7434 done
7435 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7436 rm -f conftest.i conftest.err conftest.$ac_ext
7437 if $ac_preproc_ok; then :
7438 break
7439 fi
7440
7441 done
7442 ac_cv_prog_CPP=$CPP
7443
7444 fi
7445 CPP=$ac_cv_prog_CPP
7446 else
7447 ac_cv_prog_CPP=$CPP
7448 fi
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7450 $as_echo "$CPP" >&6; }
7451 ac_preproc_ok=false
7452 for ac_c_preproc_warn_flag in '' yes
7453 do
7454 # Use a header file that comes with gcc, so configuring glibc
7455 # with a fresh cross-compiler works.
7456 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7457 # <limits.h> exists even on freestanding compilers.
7458 # On the NeXT, cc -E runs the code through the compiler's parser,
7459 # not just through cpp. "Syntax error" is here to catch this case.
7460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7461 /* end confdefs.h. */
7462 #ifdef __STDC__
7463 # include <limits.h>
7464 #else
7465 # include <assert.h>
7466 #endif
7467 Syntax error
7468 _ACEOF
7469 if ac_fn_c_try_cpp "$LINENO"; then :
7470
7471 else
7472 # Broken: fails on valid input.
7473 continue
7474 fi
7475 rm -f conftest.err conftest.i conftest.$ac_ext
7476
7477 # OK, works on sane cases. Now check whether nonexistent headers
7478 # can be detected and how.
7479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7480 /* end confdefs.h. */
7481 #include <ac_nonexistent.h>
7482 _ACEOF
7483 if ac_fn_c_try_cpp "$LINENO"; then :
7484 # Broken: success on invalid input.
7485 continue
7486 else
7487 # Passes both tests.
7488 ac_preproc_ok=:
7489 break
7490 fi
7491 rm -f conftest.err conftest.i conftest.$ac_ext
7492
7493 done
7494 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7495 rm -f conftest.i conftest.err conftest.$ac_ext
7496 if $ac_preproc_ok; then :
7497
7498 else
7499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7501 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7502 See \`config.log' for more details" "$LINENO" 5; }
7503 fi
7504
7505 ac_ext=c
7506 ac_cpp='$CPP $CPPFLAGS'
7507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7510
7511
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7513 $as_echo_n "checking for ANSI C header files... " >&6; }
7514 if ${ac_cv_header_stdc+:} false; then :
7515 $as_echo_n "(cached) " >&6
7516 else
7517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518 /* end confdefs.h. */
7519 #include <stdlib.h>
7520 #include <stdarg.h>
7521 #include <string.h>
7522 #include <float.h>
7523
7524 int
7525 main ()
7526 {
7527
7528 ;
7529 return 0;
7530 }
7531 _ACEOF
7532 if ac_fn_c_try_compile "$LINENO"; then :
7533 ac_cv_header_stdc=yes
7534 else
7535 ac_cv_header_stdc=no
7536 fi
7537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7538
7539 if test $ac_cv_header_stdc = yes; then
7540 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542 /* end confdefs.h. */
7543 #include <string.h>
7544
7545 _ACEOF
7546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7547 $EGREP "memchr" >/dev/null 2>&1; then :
7548
7549 else
7550 ac_cv_header_stdc=no
7551 fi
7552 rm -f conftest*
7553
7554 fi
7555
7556 if test $ac_cv_header_stdc = yes; then
7557 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7559 /* end confdefs.h. */
7560 #include <stdlib.h>
7561
7562 _ACEOF
7563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7564 $EGREP "free" >/dev/null 2>&1; then :
7565
7566 else
7567 ac_cv_header_stdc=no
7568 fi
7569 rm -f conftest*
7570
7571 fi
7572
7573 if test $ac_cv_header_stdc = yes; then
7574 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7575 if test "$cross_compiling" = yes; then :
7576 :
7577 else
7578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7579 /* end confdefs.h. */
7580 #include <ctype.h>
7581 #include <stdlib.h>
7582 #if ((' ' & 0x0FF) == 0x020)
7583 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7584 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7585 #else
7586 # define ISLOWER(c) \
7587 (('a' <= (c) && (c) <= 'i') \
7588 || ('j' <= (c) && (c) <= 'r') \
7589 || ('s' <= (c) && (c) <= 'z'))
7590 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7591 #endif
7592
7593 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7594 int
7595 main ()
7596 {
7597 int i;
7598 for (i = 0; i < 256; i++)
7599 if (XOR (islower (i), ISLOWER (i))
7600 || toupper (i) != TOUPPER (i))
7601 return 2;
7602 return 0;
7603 }
7604 _ACEOF
7605 if ac_fn_c_try_run "$LINENO"; then :
7606
7607 else
7608 ac_cv_header_stdc=no
7609 fi
7610 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7611 conftest.$ac_objext conftest.beam conftest.$ac_ext
7612 fi
7613
7614 fi
7615 fi
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7617 $as_echo "$ac_cv_header_stdc" >&6; }
7618 if test $ac_cv_header_stdc = yes; then
7619
7620 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7621
7622 fi
7623
7624 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7625 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7626 inttypes.h stdint.h unistd.h
7627 do :
7628 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7629 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7630 "
7631 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7632 cat >>confdefs.h <<_ACEOF
7633 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7634 _ACEOF
7635
7636 fi
7637
7638 done
7639
7640
7641 for ac_header in dlfcn.h
7642 do :
7643 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7644 "
7645 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7646 cat >>confdefs.h <<_ACEOF
7647 #define HAVE_DLFCN_H 1
7648 _ACEOF
7649
7650 fi
7651
7652 done
7653
7654
7655
7656
7657
7658 # Set options
7659
7660
7661
7662 enable_dlopen=no
7663
7664
7665 enable_win32_dll=no
7666
7667
7668 # Check whether --enable-shared was given.
7669 if test "${enable_shared+set}" = set; then :
7670 enableval=$enable_shared; p=${PACKAGE-default}
7671 case $enableval in
7672 yes) enable_shared=yes ;;
7673 no) enable_shared=no ;;
7674 *)
7675 enable_shared=no
7676 # Look at the argument we got. We use all the common list separators.
7677 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7678 for pkg in $enableval; do
7679 IFS=$lt_save_ifs
7680 if test "X$pkg" = "X$p"; then
7681 enable_shared=yes
7682 fi
7683 done
7684 IFS=$lt_save_ifs
7685 ;;
7686 esac
7687 else
7688 enable_shared=yes
7689 fi
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699 # Check whether --enable-static was given.
7700 if test "${enable_static+set}" = set; then :
7701 enableval=$enable_static; p=${PACKAGE-default}
7702 case $enableval in
7703 yes) enable_static=yes ;;
7704 no) enable_static=no ;;
7705 *)
7706 enable_static=no
7707 # Look at the argument we got. We use all the common list separators.
7708 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7709 for pkg in $enableval; do
7710 IFS=$lt_save_ifs
7711 if test "X$pkg" = "X$p"; then
7712 enable_static=yes
7713 fi
7714 done
7715 IFS=$lt_save_ifs
7716 ;;
7717 esac
7718 else
7719 enable_static=yes
7720 fi
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731 # Check whether --with-pic was given.
7732 if test "${with_pic+set}" = set; then :
7733 withval=$with_pic; lt_p=${PACKAGE-default}
7734 case $withval in
7735 yes|no) pic_mode=$withval ;;
7736 *)
7737 pic_mode=default
7738 # Look at the argument we got. We use all the common list separators.
7739 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7740 for lt_pkg in $withval; do
7741 IFS=$lt_save_ifs
7742 if test "X$lt_pkg" = "X$lt_p"; then
7743 pic_mode=yes
7744 fi
7745 done
7746 IFS=$lt_save_ifs
7747 ;;
7748 esac
7749 else
7750 pic_mode=default
7751 fi
7752
7753
7754
7755
7756
7757
7758
7759
7760 # Check whether --enable-fast-install was given.
7761 if test "${enable_fast_install+set}" = set; then :
7762 enableval=$enable_fast_install; p=${PACKAGE-default}
7763 case $enableval in
7764 yes) enable_fast_install=yes ;;
7765 no) enable_fast_install=no ;;
7766 *)
7767 enable_fast_install=no
7768 # Look at the argument we got. We use all the common list separators.
7769 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7770 for pkg in $enableval; do
7771 IFS=$lt_save_ifs
7772 if test "X$pkg" = "X$p"; then
7773 enable_fast_install=yes
7774 fi
7775 done
7776 IFS=$lt_save_ifs
7777 ;;
7778 esac
7779 else
7780 enable_fast_install=yes
7781 fi
7782
7783
7784
7785
7786
7787
7788
7789
7790 shared_archive_member_spec=
7791 case $host,$enable_shared in
7792 power*-*-aix[5-9]*,yes)
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7794 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7795
7796 # Check whether --with-aix-soname was given.
7797 if test "${with_aix_soname+set}" = set; then :
7798 withval=$with_aix_soname; case $withval in
7799 aix|svr4|both)
7800 ;;
7801 *)
7802 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7803 ;;
7804 esac
7805 lt_cv_with_aix_soname=$with_aix_soname
7806 else
7807 if ${lt_cv_with_aix_soname+:} false; then :
7808 $as_echo_n "(cached) " >&6
7809 else
7810 lt_cv_with_aix_soname=aix
7811 fi
7812
7813 with_aix_soname=$lt_cv_with_aix_soname
7814 fi
7815
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7817 $as_echo "$with_aix_soname" >&6; }
7818 if test aix != "$with_aix_soname"; then
7819 # For the AIX way of multilib, we name the shared archive member
7820 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7821 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7822 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7823 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7824 if test 64 = "${OBJECT_MODE-32}"; then
7825 shared_archive_member_spec=shr_64
7826 else
7827 shared_archive_member_spec=shr
7828 fi
7829 fi
7830 ;;
7831 *)
7832 with_aix_soname=aix
7833 ;;
7834 esac
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845 # This can be used to rebuild libtool when needed
7846 LIBTOOL_DEPS=$ltmain
7847
7848 # Always use our own libtool.
7849 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880 test -z "$LN_S" && LN_S="ln -s"
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895 if test -n "${ZSH_VERSION+set}"; then
7896 setopt NO_GLOB_SUBST
7897 fi
7898
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7900 $as_echo_n "checking for objdir... " >&6; }
7901 if ${lt_cv_objdir+:} false; then :
7902 $as_echo_n "(cached) " >&6
7903 else
7904 rm -f .libs 2>/dev/null
7905 mkdir .libs 2>/dev/null
7906 if test -d .libs; then
7907 lt_cv_objdir=.libs
7908 else
7909 # MS-DOS does not allow filenames that begin with a dot.
7910 lt_cv_objdir=_libs
7911 fi
7912 rmdir .libs 2>/dev/null
7913 fi
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7915 $as_echo "$lt_cv_objdir" >&6; }
7916 objdir=$lt_cv_objdir
7917
7918
7919
7920
7921
7922 cat >>confdefs.h <<_ACEOF
7923 #define LT_OBJDIR "$lt_cv_objdir/"
7924 _ACEOF
7925
7926
7927
7928
7929 case $host_os in
7930 aix3*)
7931 # AIX sometimes has problems with the GCC collect2 program. For some
7932 # reason, if we set the COLLECT_NAMES environment variable, the problems
7933 # vanish in a puff of smoke.
7934 if test set != "${COLLECT_NAMES+set}"; then
7935 COLLECT_NAMES=
7936 export COLLECT_NAMES
7937 fi
7938 ;;
7939 esac
7940
7941 # Global variables:
7942 ofile=libtool
7943 can_build_shared=yes
7944
7945 # All known linkers require a '.a' archive for static linking (except MSVC,
7946 # which needs '.lib').
7947 libext=a
7948
7949 with_gnu_ld=$lt_cv_prog_gnu_ld
7950
7951 old_CC=$CC
7952 old_CFLAGS=$CFLAGS
7953
7954 # Set sane defaults for various variables
7955 test -z "$CC" && CC=cc
7956 test -z "$LTCC" && LTCC=$CC
7957 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7958 test -z "$LD" && LD=ld
7959 test -z "$ac_objext" && ac_objext=o
7960
7961 func_cc_basename $compiler
7962 cc_basename=$func_cc_basename_result
7963
7964
7965 # Only perform the check for file, if the check method requires it
7966 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7967 case $deplibs_check_method in
7968 file_magic*)
7969 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7971 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7972 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7973 $as_echo_n "(cached) " >&6
7974 else
7975 case $MAGIC_CMD in
7976 [\\/*] | ?:[\\/]*)
7977 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7978 ;;
7979 *)
7980 lt_save_MAGIC_CMD=$MAGIC_CMD
7981 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7982 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7983 for ac_dir in $ac_dummy; do
7984 IFS=$lt_save_ifs
7985 test -z "$ac_dir" && ac_dir=.
7986 if test -f "$ac_dir/${ac_tool_prefix}file"; then
7987 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7988 if test -n "$file_magic_test_file"; then
7989 case $deplibs_check_method in
7990 "file_magic "*)
7991 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7992 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7993 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7994 $EGREP "$file_magic_regex" > /dev/null; then
7995 :
7996 else
7997 cat <<_LT_EOF 1>&2
7998
7999 *** Warning: the command libtool uses to detect shared libraries,
8000 *** $file_magic_cmd, produces output that libtool cannot recognize.
8001 *** The result is that libtool may fail to recognize shared libraries
8002 *** as such. This will affect the creation of libtool libraries that
8003 *** depend on shared libraries, but programs linked with such libtool
8004 *** libraries will work regardless of this problem. Nevertheless, you
8005 *** may want to report the problem to your system manager and/or to
8006 *** bug-libtool (at] gnu.org
8007
8008 _LT_EOF
8009 fi ;;
8010 esac
8011 fi
8012 break
8013 fi
8014 done
8015 IFS=$lt_save_ifs
8016 MAGIC_CMD=$lt_save_MAGIC_CMD
8017 ;;
8018 esac
8019 fi
8020
8021 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8022 if test -n "$MAGIC_CMD"; then
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8024 $as_echo "$MAGIC_CMD" >&6; }
8025 else
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8027 $as_echo "no" >&6; }
8028 fi
8029
8030
8031
8032
8033
8034 if test -z "$lt_cv_path_MAGIC_CMD"; then
8035 if test -n "$ac_tool_prefix"; then
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8037 $as_echo_n "checking for file... " >&6; }
8038 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8039 $as_echo_n "(cached) " >&6
8040 else
8041 case $MAGIC_CMD in
8042 [\\/*] | ?:[\\/]*)
8043 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8044 ;;
8045 *)
8046 lt_save_MAGIC_CMD=$MAGIC_CMD
8047 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8048 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8049 for ac_dir in $ac_dummy; do
8050 IFS=$lt_save_ifs
8051 test -z "$ac_dir" && ac_dir=.
8052 if test -f "$ac_dir/file"; then
8053 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8054 if test -n "$file_magic_test_file"; then
8055 case $deplibs_check_method in
8056 "file_magic "*)
8057 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8058 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8059 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8060 $EGREP "$file_magic_regex" > /dev/null; then
8061 :
8062 else
8063 cat <<_LT_EOF 1>&2
8064
8065 *** Warning: the command libtool uses to detect shared libraries,
8066 *** $file_magic_cmd, produces output that libtool cannot recognize.
8067 *** The result is that libtool may fail to recognize shared libraries
8068 *** as such. This will affect the creation of libtool libraries that
8069 *** depend on shared libraries, but programs linked with such libtool
8070 *** libraries will work regardless of this problem. Nevertheless, you
8071 *** may want to report the problem to your system manager and/or to
8072 *** bug-libtool (at] gnu.org
8073
8074 _LT_EOF
8075 fi ;;
8076 esac
8077 fi
8078 break
8079 fi
8080 done
8081 IFS=$lt_save_ifs
8082 MAGIC_CMD=$lt_save_MAGIC_CMD
8083 ;;
8084 esac
8085 fi
8086
8087 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8088 if test -n "$MAGIC_CMD"; then
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8090 $as_echo "$MAGIC_CMD" >&6; }
8091 else
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093 $as_echo "no" >&6; }
8094 fi
8095
8096
8097 else
8098 MAGIC_CMD=:
8099 fi
8100 fi
8101
8102 fi
8103 ;;
8104 esac
8105
8106 # Use C for the default configuration in the libtool script
8107
8108 lt_save_CC=$CC
8109 ac_ext=c
8110 ac_cpp='$CPP $CPPFLAGS'
8111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8114
8115
8116 # Source file extension for C test sources.
8117 ac_ext=c
8118
8119 # Object file extension for compiled C test sources.
8120 objext=o
8121 objext=$objext
8122
8123 # Code to be used in simple compile tests
8124 lt_simple_compile_test_code="int some_variable = 0;"
8125
8126 # Code to be used in simple link tests
8127 lt_simple_link_test_code='int main(){return(0);}'
8128
8129
8130
8131
8132
8133
8134
8135 # If no C compiler was specified, use CC.
8136 LTCC=${LTCC-"$CC"}
8137
8138 # If no C compiler flags were specified, use CFLAGS.
8139 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8140
8141 # Allow CC to be a program name with arguments.
8142 compiler=$CC
8143
8144 # Save the default compiler, since it gets overwritten when the other
8145 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8146 compiler_DEFAULT=$CC
8147
8148 # save warnings/boilerplate of simple test code
8149 ac_outfile=conftest.$ac_objext
8150 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8151 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8152 _lt_compiler_boilerplate=`cat conftest.err`
8153 $RM conftest*
8154
8155 ac_outfile=conftest.$ac_objext
8156 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8157 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8158 _lt_linker_boilerplate=`cat conftest.err`
8159 $RM -r conftest*
8160
8161
8162 if test -n "$compiler"; then
8163
8164 lt_prog_compiler_no_builtin_flag=
8165
8166 if test yes = "$GCC"; then
8167 case $cc_basename in
8168 nvcc*)
8169 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8170 *)
8171 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8172 esac
8173
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8175 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8176 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8177 $as_echo_n "(cached) " >&6
8178 else
8179 lt_cv_prog_compiler_rtti_exceptions=no
8180 ac_outfile=conftest.$ac_objext
8181 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8182 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8183 # Insert the option either (1) after the last *FLAGS variable, or
8184 # (2) before a word containing "conftest.", or (3) at the end.
8185 # Note that $ac_compile itself does not contain backslashes and begins
8186 # with a dollar sign (not a hyphen), so the echo should work correctly.
8187 # The option is referenced via a variable to avoid confusing sed.
8188 lt_compile=`echo "$ac_compile" | $SED \
8189 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8190 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8191 -e 's:$: $lt_compiler_flag:'`
8192 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8193 (eval "$lt_compile" 2>conftest.err)
8194 ac_status=$?
8195 cat conftest.err >&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 if (exit $ac_status) && test -s "$ac_outfile"; then
8198 # The compiler can only warn and ignore the option if not recognized
8199 # So say no if there are warnings other than the usual output.
8200 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8201 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8202 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8203 lt_cv_prog_compiler_rtti_exceptions=yes
8204 fi
8205 fi
8206 $RM conftest*
8207
8208 fi
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8210 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8211
8212 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8213 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8214 else
8215 :
8216 fi
8217
8218 fi
8219
8220
8221
8222
8223
8224
8225 lt_prog_compiler_wl=
8226 lt_prog_compiler_pic=
8227 lt_prog_compiler_static=
8228
8229
8230 if test yes = "$GCC"; then
8231 lt_prog_compiler_wl='-Wl,'
8232 lt_prog_compiler_static='-static'
8233
8234 case $host_os in
8235 aix*)
8236 # All AIX code is PIC.
8237 if test ia64 = "$host_cpu"; then
8238 # AIX 5 now supports IA64 processor
8239 lt_prog_compiler_static='-Bstatic'
8240 fi
8241 lt_prog_compiler_pic='-fPIC'
8242 ;;
8243
8244 amigaos*)
8245 case $host_cpu in
8246 powerpc)
8247 # see comment about AmigaOS4 .so support
8248 lt_prog_compiler_pic='-fPIC'
8249 ;;
8250 m68k)
8251 # FIXME: we need at least 68020 code to build shared libraries, but
8252 # adding the '-m68020' flag to GCC prevents building anything better,
8253 # like '-m68040'.
8254 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8255 ;;
8256 esac
8257 ;;
8258
8259 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8260 # PIC is the default for these OSes.
8261 ;;
8262
8263 mingw* | cygwin* | pw32* | os2* | cegcc*)
8264 # This hack is so that the source file can tell whether it is being
8265 # built for inclusion in a dll (and should export symbols for example).
8266 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8267 # (--disable-auto-import) libraries
8268 lt_prog_compiler_pic='-DDLL_EXPORT'
8269 case $host_os in
8270 os2*)
8271 lt_prog_compiler_static='$wl-static'
8272 ;;
8273 esac
8274 ;;
8275
8276 darwin* | rhapsody*)
8277 # PIC is the default on this platform
8278 # Common symbols not allowed in MH_DYLIB files
8279 lt_prog_compiler_pic='-fno-common'
8280 ;;
8281
8282 haiku*)
8283 # PIC is the default for Haiku.
8284 # The "-static" flag exists, but is broken.
8285 lt_prog_compiler_static=
8286 ;;
8287
8288 hpux*)
8289 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8290 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8291 # sets the default TLS model and affects inlining.
8292 case $host_cpu in
8293 hppa*64*)
8294 # +Z the default
8295 ;;
8296 *)
8297 lt_prog_compiler_pic='-fPIC'
8298 ;;
8299 esac
8300 ;;
8301
8302 interix[3-9]*)
8303 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8304 # Instead, we relocate shared libraries at runtime.
8305 ;;
8306
8307 msdosdjgpp*)
8308 # Just because we use GCC doesn't mean we suddenly get shared libraries
8309 # on systems that don't support them.
8310 lt_prog_compiler_can_build_shared=no
8311 enable_shared=no
8312 ;;
8313
8314 *nto* | *qnx*)
8315 # QNX uses GNU C++, but need to define -shared option too, otherwise
8316 # it will coredump.
8317 lt_prog_compiler_pic='-fPIC -shared'
8318 ;;
8319
8320 sysv4*MP*)
8321 if test -d /usr/nec; then
8322 lt_prog_compiler_pic=-Kconform_pic
8323 fi
8324 ;;
8325
8326 *)
8327 lt_prog_compiler_pic='-fPIC'
8328 ;;
8329 esac
8330
8331 case $cc_basename in
8332 nvcc*) # Cuda Compiler Driver 2.2
8333 lt_prog_compiler_wl='-Xlinker '
8334 if test -n "$lt_prog_compiler_pic"; then
8335 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8336 fi
8337 ;;
8338 esac
8339 else
8340 # PORTME Check for flag to pass linker flags through the system compiler.
8341 case $host_os in
8342 aix*)
8343 lt_prog_compiler_wl='-Wl,'
8344 if test ia64 = "$host_cpu"; then
8345 # AIX 5 now supports IA64 processor
8346 lt_prog_compiler_static='-Bstatic'
8347 else
8348 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8349 fi
8350 ;;
8351
8352 darwin* | rhapsody*)
8353 # PIC is the default on this platform
8354 # Common symbols not allowed in MH_DYLIB files
8355 lt_prog_compiler_pic='-fno-common'
8356 case $cc_basename in
8357 nagfor*)
8358 # NAG Fortran compiler
8359 lt_prog_compiler_wl='-Wl,-Wl,,'
8360 lt_prog_compiler_pic='-PIC'
8361 lt_prog_compiler_static='-Bstatic'
8362 ;;
8363 esac
8364 ;;
8365
8366 mingw* | cygwin* | pw32* | os2* | cegcc*)
8367 # This hack is so that the source file can tell whether it is being
8368 # built for inclusion in a dll (and should export symbols for example).
8369 lt_prog_compiler_pic='-DDLL_EXPORT'
8370 case $host_os in
8371 os2*)
8372 lt_prog_compiler_static='$wl-static'
8373 ;;
8374 esac
8375 ;;
8376
8377 hpux9* | hpux10* | hpux11*)
8378 lt_prog_compiler_wl='-Wl,'
8379 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8380 # not for PA HP-UX.
8381 case $host_cpu in
8382 hppa*64*|ia64*)
8383 # +Z the default
8384 ;;
8385 *)
8386 lt_prog_compiler_pic='+Z'
8387 ;;
8388 esac
8389 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8390 lt_prog_compiler_static='$wl-a ${wl}archive'
8391 ;;
8392
8393 irix5* | irix6* | nonstopux*)
8394 lt_prog_compiler_wl='-Wl,'
8395 # PIC (with -KPIC) is the default.
8396 lt_prog_compiler_static='-non_shared'
8397 ;;
8398
8399 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8400 case $cc_basename in
8401 # old Intel for x86_64, which still supported -KPIC.
8402 ecc*)
8403 lt_prog_compiler_wl='-Wl,'
8404 lt_prog_compiler_pic='-KPIC'
8405 lt_prog_compiler_static='-static'
8406 ;;
8407 # icc used to be incompatible with GCC.
8408 # ICC 10 doesn't accept -KPIC any more.
8409 icc* | ifort*)
8410 lt_prog_compiler_wl='-Wl,'
8411 lt_prog_compiler_pic='-fPIC'
8412 lt_prog_compiler_static='-static'
8413 ;;
8414 # Lahey Fortran 8.1.
8415 lf95*)
8416 lt_prog_compiler_wl='-Wl,'
8417 lt_prog_compiler_pic='--shared'
8418 lt_prog_compiler_static='--static'
8419 ;;
8420 nagfor*)
8421 # NAG Fortran compiler
8422 lt_prog_compiler_wl='-Wl,-Wl,,'
8423 lt_prog_compiler_pic='-PIC'
8424 lt_prog_compiler_static='-Bstatic'
8425 ;;
8426 tcc*)
8427 # Fabrice Bellard et al's Tiny C Compiler
8428 lt_prog_compiler_wl='-Wl,'
8429 lt_prog_compiler_pic='-fPIC'
8430 lt_prog_compiler_static='-static'
8431 ;;
8432 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8433 # Portland Group compilers (*not* the Pentium gcc compiler,
8434 # which looks to be a dead project)
8435 lt_prog_compiler_wl='-Wl,'
8436 lt_prog_compiler_pic='-fpic'
8437 lt_prog_compiler_static='-Bstatic'
8438 ;;
8439 ccc*)
8440 lt_prog_compiler_wl='-Wl,'
8441 # All Alpha code is PIC.
8442 lt_prog_compiler_static='-non_shared'
8443 ;;
8444 xl* | bgxl* | bgf* | mpixl*)
8445 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8446 lt_prog_compiler_wl='-Wl,'
8447 lt_prog_compiler_pic='-qpic'
8448 lt_prog_compiler_static='-qstaticlink'
8449 ;;
8450 *)
8451 case `$CC -V 2>&1 | sed 5q` in
8452 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8453 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8454 lt_prog_compiler_pic='-KPIC'
8455 lt_prog_compiler_static='-Bstatic'
8456 lt_prog_compiler_wl=''
8457 ;;
8458 *Sun\ F* | *Sun*Fortran*)
8459 lt_prog_compiler_pic='-KPIC'
8460 lt_prog_compiler_static='-Bstatic'
8461 lt_prog_compiler_wl='-Qoption ld '
8462 ;;
8463 *Sun\ C*)
8464 # Sun C 5.9
8465 lt_prog_compiler_pic='-KPIC'
8466 lt_prog_compiler_static='-Bstatic'
8467 lt_prog_compiler_wl='-Wl,'
8468 ;;
8469 *Intel*\ [CF]*Compiler*)
8470 lt_prog_compiler_wl='-Wl,'
8471 lt_prog_compiler_pic='-fPIC'
8472 lt_prog_compiler_static='-static'
8473 ;;
8474 *Portland\ Group*)
8475 lt_prog_compiler_wl='-Wl,'
8476 lt_prog_compiler_pic='-fpic'
8477 lt_prog_compiler_static='-Bstatic'
8478 ;;
8479 esac
8480 ;;
8481 esac
8482 ;;
8483
8484 newsos6)
8485 lt_prog_compiler_pic='-KPIC'
8486 lt_prog_compiler_static='-Bstatic'
8487 ;;
8488
8489 *nto* | *qnx*)
8490 # QNX uses GNU C++, but need to define -shared option too, otherwise
8491 # it will coredump.
8492 lt_prog_compiler_pic='-fPIC -shared'
8493 ;;
8494
8495 osf3* | osf4* | osf5*)
8496 lt_prog_compiler_wl='-Wl,'
8497 # All OSF/1 code is PIC.
8498 lt_prog_compiler_static='-non_shared'
8499 ;;
8500
8501 rdos*)
8502 lt_prog_compiler_static='-non_shared'
8503 ;;
8504
8505 solaris*)
8506 lt_prog_compiler_pic='-KPIC'
8507 lt_prog_compiler_static='-Bstatic'
8508 case $cc_basename in
8509 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8510 lt_prog_compiler_wl='-Qoption ld ';;
8511 *)
8512 lt_prog_compiler_wl='-Wl,';;
8513 esac
8514 ;;
8515
8516 sunos4*)
8517 lt_prog_compiler_wl='-Qoption ld '
8518 lt_prog_compiler_pic='-PIC'
8519 lt_prog_compiler_static='-Bstatic'
8520 ;;
8521
8522 sysv4 | sysv4.2uw2* | sysv4.3*)
8523 lt_prog_compiler_wl='-Wl,'
8524 lt_prog_compiler_pic='-KPIC'
8525 lt_prog_compiler_static='-Bstatic'
8526 ;;
8527
8528 sysv4*MP*)
8529 if test -d /usr/nec; then
8530 lt_prog_compiler_pic='-Kconform_pic'
8531 lt_prog_compiler_static='-Bstatic'
8532 fi
8533 ;;
8534
8535 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8536 lt_prog_compiler_wl='-Wl,'
8537 lt_prog_compiler_pic='-KPIC'
8538 lt_prog_compiler_static='-Bstatic'
8539 ;;
8540
8541 unicos*)
8542 lt_prog_compiler_wl='-Wl,'
8543 lt_prog_compiler_can_build_shared=no
8544 ;;
8545
8546 uts4*)
8547 lt_prog_compiler_pic='-pic'
8548 lt_prog_compiler_static='-Bstatic'
8549 ;;
8550
8551 *)
8552 lt_prog_compiler_can_build_shared=no
8553 ;;
8554 esac
8555 fi
8556
8557 case $host_os in
8558 # For platforms that do not support PIC, -DPIC is meaningless:
8559 *djgpp*)
8560 lt_prog_compiler_pic=
8561 ;;
8562 *)
8563 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8564 ;;
8565 esac
8566
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8568 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8569 if ${lt_cv_prog_compiler_pic+:} false; then :
8570 $as_echo_n "(cached) " >&6
8571 else
8572 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8573 fi
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8575 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8576 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8577
8578 #
8579 # Check to make sure the PIC flag actually works.
8580 #
8581 if test -n "$lt_prog_compiler_pic"; then
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8583 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8584 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8585 $as_echo_n "(cached) " >&6
8586 else
8587 lt_cv_prog_compiler_pic_works=no
8588 ac_outfile=conftest.$ac_objext
8589 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8590 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8591 # Insert the option either (1) after the last *FLAGS variable, or
8592 # (2) before a word containing "conftest.", or (3) at the end.
8593 # Note that $ac_compile itself does not contain backslashes and begins
8594 # with a dollar sign (not a hyphen), so the echo should work correctly.
8595 # The option is referenced via a variable to avoid confusing sed.
8596 lt_compile=`echo "$ac_compile" | $SED \
8597 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8598 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8599 -e 's:$: $lt_compiler_flag:'`
8600 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8601 (eval "$lt_compile" 2>conftest.err)
8602 ac_status=$?
8603 cat conftest.err >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 if (exit $ac_status) && test -s "$ac_outfile"; then
8606 # The compiler can only warn and ignore the option if not recognized
8607 # So say no if there are warnings other than the usual output.
8608 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8609 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8610 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8611 lt_cv_prog_compiler_pic_works=yes
8612 fi
8613 fi
8614 $RM conftest*
8615
8616 fi
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8618 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8619
8620 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8621 case $lt_prog_compiler_pic in
8622 "" | " "*) ;;
8623 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8624 esac
8625 else
8626 lt_prog_compiler_pic=
8627 lt_prog_compiler_can_build_shared=no
8628 fi
8629
8630 fi
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642 #
8643 # Check to make sure the static flag actually works.
8644 #
8645 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8647 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8648 if ${lt_cv_prog_compiler_static_works+:} false; then :
8649 $as_echo_n "(cached) " >&6
8650 else
8651 lt_cv_prog_compiler_static_works=no
8652 save_LDFLAGS=$LDFLAGS
8653 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8654 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8655 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8656 # The linker can only warn and ignore the option if not recognized
8657 # So say no if there are warnings
8658 if test -s conftest.err; then
8659 # Append any errors to the config.log.
8660 cat conftest.err 1>&5
8661 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8662 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8663 if diff conftest.exp conftest.er2 >/dev/null; then
8664 lt_cv_prog_compiler_static_works=yes
8665 fi
8666 else
8667 lt_cv_prog_compiler_static_works=yes
8668 fi
8669 fi
8670 $RM -r conftest*
8671 LDFLAGS=$save_LDFLAGS
8672
8673 fi
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8675 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8676
8677 if test yes = "$lt_cv_prog_compiler_static_works"; then
8678 :
8679 else
8680 lt_prog_compiler_static=
8681 fi
8682
8683
8684
8685
8686
8687
8688
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8690 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8691 if ${lt_cv_prog_compiler_c_o+:} false; then :
8692 $as_echo_n "(cached) " >&6
8693 else
8694 lt_cv_prog_compiler_c_o=no
8695 $RM -r conftest 2>/dev/null
8696 mkdir conftest
8697 cd conftest
8698 mkdir out
8699 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8700
8701 lt_compiler_flag="-o out/conftest2.$ac_objext"
8702 # Insert the option either (1) after the last *FLAGS variable, or
8703 # (2) before a word containing "conftest.", or (3) at the end.
8704 # Note that $ac_compile itself does not contain backslashes and begins
8705 # with a dollar sign (not a hyphen), so the echo should work correctly.
8706 lt_compile=`echo "$ac_compile" | $SED \
8707 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8708 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8709 -e 's:$: $lt_compiler_flag:'`
8710 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8711 (eval "$lt_compile" 2>out/conftest.err)
8712 ac_status=$?
8713 cat out/conftest.err >&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8716 then
8717 # The compiler can only warn and ignore the option if not recognized
8718 # So say no if there are warnings
8719 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8720 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8721 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8722 lt_cv_prog_compiler_c_o=yes
8723 fi
8724 fi
8725 chmod u+w . 2>&5
8726 $RM conftest*
8727 # SGI C++ compiler will create directory out/ii_files/ for
8728 # template instantiation
8729 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8730 $RM out/* && rmdir out
8731 cd ..
8732 $RM -r conftest
8733 $RM conftest*
8734
8735 fi
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8737 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8738
8739
8740
8741
8742
8743
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8745 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8746 if ${lt_cv_prog_compiler_c_o+:} false; then :
8747 $as_echo_n "(cached) " >&6
8748 else
8749 lt_cv_prog_compiler_c_o=no
8750 $RM -r conftest 2>/dev/null
8751 mkdir conftest
8752 cd conftest
8753 mkdir out
8754 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8755
8756 lt_compiler_flag="-o out/conftest2.$ac_objext"
8757 # Insert the option either (1) after the last *FLAGS variable, or
8758 # (2) before a word containing "conftest.", or (3) at the end.
8759 # Note that $ac_compile itself does not contain backslashes and begins
8760 # with a dollar sign (not a hyphen), so the echo should work correctly.
8761 lt_compile=`echo "$ac_compile" | $SED \
8762 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8763 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8764 -e 's:$: $lt_compiler_flag:'`
8765 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8766 (eval "$lt_compile" 2>out/conftest.err)
8767 ac_status=$?
8768 cat out/conftest.err >&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8771 then
8772 # The compiler can only warn and ignore the option if not recognized
8773 # So say no if there are warnings
8774 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8775 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8776 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8777 lt_cv_prog_compiler_c_o=yes
8778 fi
8779 fi
8780 chmod u+w . 2>&5
8781 $RM conftest*
8782 # SGI C++ compiler will create directory out/ii_files/ for
8783 # template instantiation
8784 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8785 $RM out/* && rmdir out
8786 cd ..
8787 $RM -r conftest
8788 $RM conftest*
8789
8790 fi
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8792 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8793
8794
8795
8796
8797 hard_links=nottested
8798 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8799 # do not overwrite the value of need_locks provided by the user
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8801 $as_echo_n "checking if we can lock with hard links... " >&6; }
8802 hard_links=yes
8803 $RM conftest*
8804 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8805 touch conftest.a
8806 ln conftest.a conftest.b 2>&5 || hard_links=no
8807 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8809 $as_echo "$hard_links" >&6; }
8810 if test no = "$hard_links"; then
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8812 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8813 need_locks=warn
8814 fi
8815 else
8816 need_locks=no
8817 fi
8818
8819
8820
8821
8822
8823
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8825 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8826
8827 runpath_var=
8828 allow_undefined_flag=
8829 always_export_symbols=no
8830 archive_cmds=
8831 archive_expsym_cmds=
8832 compiler_needs_object=no
8833 enable_shared_with_static_runtimes=no
8834 export_dynamic_flag_spec=
8835 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8836 hardcode_automatic=no
8837 hardcode_direct=no
8838 hardcode_direct_absolute=no
8839 hardcode_libdir_flag_spec=
8840 hardcode_libdir_separator=
8841 hardcode_minus_L=no
8842 hardcode_shlibpath_var=unsupported
8843 inherit_rpath=no
8844 link_all_deplibs=unknown
8845 module_cmds=
8846 module_expsym_cmds=
8847 old_archive_from_new_cmds=
8848 old_archive_from_expsyms_cmds=
8849 thread_safe_flag_spec=
8850 whole_archive_flag_spec=
8851 # include_expsyms should be a list of space-separated symbols to be *always*
8852 # included in the symbol list
8853 include_expsyms=
8854 # exclude_expsyms can be an extended regexp of symbols to exclude
8855 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8856 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8857 # as well as any symbol that contains 'd'.
8858 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8859 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8860 # platforms (ab)use it in PIC code, but their linkers get confused if
8861 # the symbol is explicitly referenced. Since portable code cannot
8862 # rely on this symbol name, it's probably fine to never include it in
8863 # preloaded symbol tables.
8864 # Exclude shared library initialization/finalization symbols.
8865 extract_expsyms_cmds=
8866
8867 case $host_os in
8868 cygwin* | mingw* | pw32* | cegcc*)
8869 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8870 # When not using gcc, we currently assume that we are using
8871 # Microsoft Visual C++.
8872 if test yes != "$GCC"; then
8873 with_gnu_ld=no
8874 fi
8875 ;;
8876 interix*)
8877 # we just hope/assume this is gcc and not c89 (= MSVC++)
8878 with_gnu_ld=yes
8879 ;;
8880 openbsd* | bitrig*)
8881 with_gnu_ld=no
8882 ;;
8883 esac
8884
8885 ld_shlibs=yes
8886
8887 # On some targets, GNU ld is compatible enough with the native linker
8888 # that we're better off using the native interface for both.
8889 lt_use_gnu_ld_interface=no
8890 if test yes = "$with_gnu_ld"; then
8891 case $host_os in
8892 aix*)
8893 # The AIX port of GNU ld has always aspired to compatibility
8894 # with the native linker. However, as the warning in the GNU ld
8895 # block says, versions before 2.19.5* couldn't really create working
8896 # shared libraries, regardless of the interface used.
8897 case `$LD -v 2>&1` in
8898 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8899 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8900 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8901 *)
8902 lt_use_gnu_ld_interface=yes
8903 ;;
8904 esac
8905 ;;
8906 *)
8907 lt_use_gnu_ld_interface=yes
8908 ;;
8909 esac
8910 fi
8911
8912 if test yes = "$lt_use_gnu_ld_interface"; then
8913 # If archive_cmds runs LD, not CC, wlarc should be empty
8914 wlarc='$wl'
8915
8916 # Set some defaults for GNU ld with shared library support. These
8917 # are reset later if shared libraries are not supported. Putting them
8918 # here allows them to be overridden if necessary.
8919 runpath_var=LD_RUN_PATH
8920 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8921 export_dynamic_flag_spec='$wl--export-dynamic'
8922 # ancient GNU ld didn't support --whole-archive et. al.
8923 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8924 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8925 else
8926 whole_archive_flag_spec=
8927 fi
8928 supports_anon_versioning=no
8929 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8930 *GNU\ gold*) supports_anon_versioning=yes ;;
8931 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8932 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8933 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8934 *\ 2.11.*) ;; # other 2.11 versions
8935 *) supports_anon_versioning=yes ;;
8936 esac
8937
8938 # See if GNU ld supports shared libraries.
8939 case $host_os in
8940 aix[3-9]*)
8941 # On AIX/PPC, the GNU linker is very broken
8942 if test ia64 != "$host_cpu"; then
8943 ld_shlibs=no
8944 cat <<_LT_EOF 1>&2
8945
8946 *** Warning: the GNU linker, at least up to release 2.19, is reported
8947 *** to be unable to reliably create shared libraries on AIX.
8948 *** Therefore, libtool is disabling shared libraries support. If you
8949 *** really care for shared libraries, you may want to install binutils
8950 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8951 *** You will then need to restart the configuration process.
8952
8953 _LT_EOF
8954 fi
8955 ;;
8956
8957 amigaos*)
8958 case $host_cpu in
8959 powerpc)
8960 # see comment about AmigaOS4 .so support
8961 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8962 archive_expsym_cmds=''
8963 ;;
8964 m68k)
8965 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)'
8966 hardcode_libdir_flag_spec='-L$libdir'
8967 hardcode_minus_L=yes
8968 ;;
8969 esac
8970 ;;
8971
8972 beos*)
8973 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8974 allow_undefined_flag=unsupported
8975 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8976 # support --undefined. This deserves some investigation. FIXME
8977 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8978 else
8979 ld_shlibs=no
8980 fi
8981 ;;
8982
8983 cygwin* | mingw* | pw32* | cegcc*)
8984 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8985 # as there is no search path for DLLs.
8986 hardcode_libdir_flag_spec='-L$libdir'
8987 export_dynamic_flag_spec='$wl--export-all-symbols'
8988 allow_undefined_flag=unsupported
8989 always_export_symbols=no
8990 enable_shared_with_static_runtimes=yes
8991 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'
8992 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8993
8994 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8995 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8996 # If the export-symbols file already is a .def file, use it as
8997 # is; otherwise, prepend EXPORTS...
8998 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8999 cp $export_symbols $output_objdir/$soname.def;
9000 else
9001 echo EXPORTS > $output_objdir/$soname.def;
9002 cat $export_symbols >> $output_objdir/$soname.def;
9003 fi~
9004 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9005 else
9006 ld_shlibs=no
9007 fi
9008 ;;
9009
9010 haiku*)
9011 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9012 link_all_deplibs=yes
9013 ;;
9014
9015 os2*)
9016 hardcode_libdir_flag_spec='-L$libdir'
9017 hardcode_minus_L=yes
9018 allow_undefined_flag=unsupported
9019 shrext_cmds=.dll
9020 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9021 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9022 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9023 $ECHO EXPORTS >> $output_objdir/$libname.def~
9024 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9025 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9026 emximp -o $lib $output_objdir/$libname.def'
9027 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9028 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9029 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9030 $ECHO EXPORTS >> $output_objdir/$libname.def~
9031 prefix_cmds="$SED"~
9032 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9033 prefix_cmds="$prefix_cmds -e 1d";
9034 fi~
9035 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9036 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9037 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9038 emximp -o $lib $output_objdir/$libname.def'
9039 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9040 enable_shared_with_static_runtimes=yes
9041 ;;
9042
9043 interix[3-9]*)
9044 hardcode_direct=no
9045 hardcode_shlibpath_var=no
9046 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9047 export_dynamic_flag_spec='$wl-E'
9048 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9049 # Instead, shared libraries are loaded at an image base (0x10000000 by
9050 # default) and relocated if they conflict, which is a slow very memory
9051 # consuming and fragmenting process. To avoid this, we pick a random,
9052 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9053 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9054 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9055 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'
9056 ;;
9057
9058 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9059 tmp_diet=no
9060 if test linux-dietlibc = "$host_os"; then
9061 case $cc_basename in
9062 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9063 esac
9064 fi
9065 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9066 && test no = "$tmp_diet"
9067 then
9068 tmp_addflag=' $pic_flag'
9069 tmp_sharedflag='-shared'
9070 case $cc_basename,$host_cpu in
9071 pgcc*) # Portland Group C compiler
9072 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'
9073 tmp_addflag=' $pic_flag'
9074 ;;
9075 pgf77* | pgf90* | pgf95* | pgfortran*)
9076 # Portland Group f77 and f90 compilers
9077 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'
9078 tmp_addflag=' $pic_flag -Mnomain' ;;
9079 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9080 tmp_addflag=' -i_dynamic' ;;
9081 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9082 tmp_addflag=' -i_dynamic -nofor_main' ;;
9083 ifc* | ifort*) # Intel Fortran compiler
9084 tmp_addflag=' -nofor_main' ;;
9085 lf95*) # Lahey Fortran 8.1
9086 whole_archive_flag_spec=
9087 tmp_sharedflag='--shared' ;;
9088 nagfor*) # NAGFOR 5.3
9089 tmp_sharedflag='-Wl,-shared' ;;
9090 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9091 tmp_sharedflag='-qmkshrobj'
9092 tmp_addflag= ;;
9093 nvcc*) # Cuda Compiler Driver 2.2
9094 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'
9095 compiler_needs_object=yes
9096 ;;
9097 esac
9098 case `$CC -V 2>&1 | sed 5q` in
9099 *Sun\ C*) # Sun C 5.9
9100 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'
9101 compiler_needs_object=yes
9102 tmp_sharedflag='-G' ;;
9103 *Sun\ F*) # Sun Fortran 8.3
9104 tmp_sharedflag='-G' ;;
9105 esac
9106 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9107
9108 if test yes = "$supports_anon_versioning"; then
9109 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9110 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9111 echo "local: *; };" >> $output_objdir/$libname.ver~
9112 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9113 fi
9114
9115 case $cc_basename in
9116 tcc*)
9117 export_dynamic_flag_spec='-rdynamic'
9118 ;;
9119 xlf* | bgf* | bgxlf* | mpixlf*)
9120 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9121 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9122 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9123 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9124 if test yes = "$supports_anon_versioning"; then
9125 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9126 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9127 echo "local: *; };" >> $output_objdir/$libname.ver~
9128 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9129 fi
9130 ;;
9131 esac
9132 else
9133 ld_shlibs=no
9134 fi
9135 ;;
9136
9137 netbsd*)
9138 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9139 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9140 wlarc=
9141 else
9142 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9143 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9144 fi
9145 ;;
9146
9147 solaris*)
9148 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9149 ld_shlibs=no
9150 cat <<_LT_EOF 1>&2
9151
9152 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9153 *** create shared libraries on Solaris systems. Therefore, libtool
9154 *** is disabling shared libraries support. We urge you to upgrade GNU
9155 *** binutils to release 2.9.1 or newer. Another option is to modify
9156 *** your PATH or compiler configuration so that the native linker is
9157 *** used, and then restart.
9158
9159 _LT_EOF
9160 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9161 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9162 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9163 else
9164 ld_shlibs=no
9165 fi
9166 ;;
9167
9168 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9169 case `$LD -v 2>&1` in
9170 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9171 ld_shlibs=no
9172 cat <<_LT_EOF 1>&2
9173
9174 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9175 *** reliably create shared libraries on SCO systems. Therefore, libtool
9176 *** is disabling shared libraries support. We urge you to upgrade GNU
9177 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9178 *** your PATH or compiler configuration so that the native linker is
9179 *** used, and then restart.
9180
9181 _LT_EOF
9182 ;;
9183 *)
9184 # For security reasons, it is highly recommended that you always
9185 # use absolute paths for naming shared libraries, and exclude the
9186 # DT_RUNPATH tag from executables and libraries. But doing so
9187 # requires that you compile everything twice, which is a pain.
9188 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9189 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9190 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9191 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9192 else
9193 ld_shlibs=no
9194 fi
9195 ;;
9196 esac
9197 ;;
9198
9199 sunos4*)
9200 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9201 wlarc=
9202 hardcode_direct=yes
9203 hardcode_shlibpath_var=no
9204 ;;
9205
9206 *)
9207 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9208 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9209 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9210 else
9211 ld_shlibs=no
9212 fi
9213 ;;
9214 esac
9215
9216 if test no = "$ld_shlibs"; then
9217 runpath_var=
9218 hardcode_libdir_flag_spec=
9219 export_dynamic_flag_spec=
9220 whole_archive_flag_spec=
9221 fi
9222 else
9223 # PORTME fill in a description of your system's linker (not GNU ld)
9224 case $host_os in
9225 aix3*)
9226 allow_undefined_flag=unsupported
9227 always_export_symbols=yes
9228 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'
9229 # Note: this linker hardcodes the directories in LIBPATH if there
9230 # are no directories specified by -L.
9231 hardcode_minus_L=yes
9232 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9233 # Neither direct hardcoding nor static linking is supported with a
9234 # broken collect2.
9235 hardcode_direct=unsupported
9236 fi
9237 ;;
9238
9239 aix[4-9]*)
9240 if test ia64 = "$host_cpu"; then
9241 # On IA64, the linker does run time linking by default, so we don't
9242 # have to do anything special.
9243 aix_use_runtimelinking=no
9244 exp_sym_flag='-Bexport'
9245 no_entry_flag=
9246 else
9247 # If we're using GNU nm, then we don't want the "-C" option.
9248 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9249 # Without the "-l" option, or with the "-B" option, AIX nm treats
9250 # weak defined symbols like other global defined symbols, whereas
9251 # GNU nm marks them as "W".
9252 # While the 'weak' keyword is ignored in the Export File, we need
9253 # it in the Import File for the 'aix-soname' feature, so we have
9254 # to replace the "-B" option with "-P" for AIX nm.
9255 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9256 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9257 else
9258 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9259 fi
9260 aix_use_runtimelinking=no
9261
9262 # Test if we are trying to use run time linking or normal
9263 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9264 # have runtime linking enabled, and use it for executables.
9265 # For shared libraries, we enable/disable runtime linking
9266 # depending on the kind of the shared library created -
9267 # when "with_aix_soname,aix_use_runtimelinking" is:
9268 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9269 # "aix,yes" lib.so shared, rtl:yes, for executables
9270 # lib.a static archive
9271 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9272 # lib.a(lib.so.V) shared, rtl:no, for executables
9273 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9274 # lib.a(lib.so.V) shared, rtl:no
9275 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9276 # lib.a static archive
9277 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9278 for ld_flag in $LDFLAGS; do
9279 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9280 aix_use_runtimelinking=yes
9281 break
9282 fi
9283 done
9284 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9285 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9286 # so we don't have lib.a shared libs to link our executables.
9287 # We have to force runtime linking in this case.
9288 aix_use_runtimelinking=yes
9289 LDFLAGS="$LDFLAGS -Wl,-brtl"
9290 fi
9291 ;;
9292 esac
9293
9294 exp_sym_flag='-bexport'
9295 no_entry_flag='-bnoentry'
9296 fi
9297
9298 # When large executables or shared objects are built, AIX ld can
9299 # have problems creating the table of contents. If linking a library
9300 # or program results in "error TOC overflow" add -mminimal-toc to
9301 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9302 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9303
9304 archive_cmds=''
9305 hardcode_direct=yes
9306 hardcode_direct_absolute=yes
9307 hardcode_libdir_separator=':'
9308 link_all_deplibs=yes
9309 file_list_spec='$wl-f,'
9310 case $with_aix_soname,$aix_use_runtimelinking in
9311 aix,*) ;; # traditional, no import file
9312 svr4,* | *,yes) # use import file
9313 # The Import File defines what to hardcode.
9314 hardcode_direct=no
9315 hardcode_direct_absolute=no
9316 ;;
9317 esac
9318
9319 if test yes = "$GCC"; then
9320 case $host_os in aix4.[012]|aix4.[012].*)
9321 # We only want to do this on AIX 4.2 and lower, the check
9322 # below for broken collect2 doesn't work under 4.3+
9323 collect2name=`$CC -print-prog-name=collect2`
9324 if test -f "$collect2name" &&
9325 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9326 then
9327 # We have reworked collect2
9328 :
9329 else
9330 # We have old collect2
9331 hardcode_direct=unsupported
9332 # It fails to find uninstalled libraries when the uninstalled
9333 # path is not listed in the libpath. Setting hardcode_minus_L
9334 # to unsupported forces relinking
9335 hardcode_minus_L=yes
9336 hardcode_libdir_flag_spec='-L$libdir'
9337 hardcode_libdir_separator=
9338 fi
9339 ;;
9340 esac
9341 shared_flag='-shared'
9342 if test yes = "$aix_use_runtimelinking"; then
9343 shared_flag="$shared_flag "'$wl-G'
9344 fi
9345 # Need to ensure runtime linking is disabled for the traditional
9346 # shared library, or the linker may eventually find shared libraries
9347 # /with/ Import File - we do not want to mix them.
9348 shared_flag_aix='-shared'
9349 shared_flag_svr4='-shared $wl-G'
9350 else
9351 # not using gcc
9352 if test ia64 = "$host_cpu"; then
9353 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9354 # chokes on -Wl,-G. The following line is correct:
9355 shared_flag='-G'
9356 else
9357 if test yes = "$aix_use_runtimelinking"; then
9358 shared_flag='$wl-G'
9359 else
9360 shared_flag='$wl-bM:SRE'
9361 fi
9362 shared_flag_aix='$wl-bM:SRE'
9363 shared_flag_svr4='$wl-G'
9364 fi
9365 fi
9366
9367 export_dynamic_flag_spec='$wl-bexpall'
9368 # It seems that -bexpall does not export symbols beginning with
9369 # underscore (_), so it is better to generate a list of symbols to export.
9370 always_export_symbols=yes
9371 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9372 # Warning - without using the other runtime loading flags (-brtl),
9373 # -berok will link without error, but may produce a broken library.
9374 allow_undefined_flag='-berok'
9375 # Determine the default libpath from the value encoded in an
9376 # empty executable.
9377 if test set = "${lt_cv_aix_libpath+set}"; then
9378 aix_libpath=$lt_cv_aix_libpath
9379 else
9380 if ${lt_cv_aix_libpath_+:} false; then :
9381 $as_echo_n "(cached) " >&6
9382 else
9383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9384 /* end confdefs.h. */
9385
9386 int
9387 main ()
9388 {
9389
9390 ;
9391 return 0;
9392 }
9393 _ACEOF
9394 if ac_fn_c_try_link "$LINENO"; then :
9395
9396 lt_aix_libpath_sed='
9397 /Import File Strings/,/^$/ {
9398 /^0/ {
9399 s/^0 *\([^ ]*\) *$/\1/
9400 p
9401 }
9402 }'
9403 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9404 # Check for a 64-bit object if we didn't find anything.
9405 if test -z "$lt_cv_aix_libpath_"; then
9406 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9407 fi
9408 fi
9409 rm -f core conftest.err conftest.$ac_objext \
9410 conftest$ac_exeext conftest.$ac_ext
9411 if test -z "$lt_cv_aix_libpath_"; then
9412 lt_cv_aix_libpath_=/usr/lib:/lib
9413 fi
9414
9415 fi
9416
9417 aix_libpath=$lt_cv_aix_libpath_
9418 fi
9419
9420 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9421 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9422 else
9423 if test ia64 = "$host_cpu"; then
9424 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9425 allow_undefined_flag="-z nodefs"
9426 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"
9427 else
9428 # Determine the default libpath from the value encoded in an
9429 # empty executable.
9430 if test set = "${lt_cv_aix_libpath+set}"; then
9431 aix_libpath=$lt_cv_aix_libpath
9432 else
9433 if ${lt_cv_aix_libpath_+:} false; then :
9434 $as_echo_n "(cached) " >&6
9435 else
9436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9437 /* end confdefs.h. */
9438
9439 int
9440 main ()
9441 {
9442
9443 ;
9444 return 0;
9445 }
9446 _ACEOF
9447 if ac_fn_c_try_link "$LINENO"; then :
9448
9449 lt_aix_libpath_sed='
9450 /Import File Strings/,/^$/ {
9451 /^0/ {
9452 s/^0 *\([^ ]*\) *$/\1/
9453 p
9454 }
9455 }'
9456 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9457 # Check for a 64-bit object if we didn't find anything.
9458 if test -z "$lt_cv_aix_libpath_"; then
9459 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9460 fi
9461 fi
9462 rm -f core conftest.err conftest.$ac_objext \
9463 conftest$ac_exeext conftest.$ac_ext
9464 if test -z "$lt_cv_aix_libpath_"; then
9465 lt_cv_aix_libpath_=/usr/lib:/lib
9466 fi
9467
9468 fi
9469
9470 aix_libpath=$lt_cv_aix_libpath_
9471 fi
9472
9473 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9474 # Warning - without using the other run time loading flags,
9475 # -berok will link without error, but may produce a broken library.
9476 no_undefined_flag=' $wl-bernotok'
9477 allow_undefined_flag=' $wl-berok'
9478 if test yes = "$with_gnu_ld"; then
9479 # We only use this code for GNU lds that support --whole-archive.
9480 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9481 else
9482 # Exported symbols can be pulled into shared objects from archives
9483 whole_archive_flag_spec='$convenience'
9484 fi
9485 archive_cmds_need_lc=yes
9486 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9487 # -brtl affects multiple linker settings, -berok does not and is overridden later
9488 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9489 if test svr4 != "$with_aix_soname"; then
9490 # This is similar to how AIX traditionally builds its shared libraries.
9491 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9492 fi
9493 if test aix != "$with_aix_soname"; then
9494 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9495 else
9496 # used by -dlpreopen to get the symbols
9497 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9498 fi
9499 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9500 fi
9501 fi
9502 ;;
9503
9504 amigaos*)
9505 case $host_cpu in
9506 powerpc)
9507 # see comment about AmigaOS4 .so support
9508 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9509 archive_expsym_cmds=''
9510 ;;
9511 m68k)
9512 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)'
9513 hardcode_libdir_flag_spec='-L$libdir'
9514 hardcode_minus_L=yes
9515 ;;
9516 esac
9517 ;;
9518
9519 bsdi[45]*)
9520 export_dynamic_flag_spec=-rdynamic
9521 ;;
9522
9523 cygwin* | mingw* | pw32* | cegcc*)
9524 # When not using gcc, we currently assume that we are using
9525 # Microsoft Visual C++.
9526 # hardcode_libdir_flag_spec is actually meaningless, as there is
9527 # no search path for DLLs.
9528 case $cc_basename in
9529 cl*)
9530 # Native MSVC
9531 hardcode_libdir_flag_spec=' '
9532 allow_undefined_flag=unsupported
9533 always_export_symbols=yes
9534 file_list_spec='@'
9535 # Tell ltmain to make .lib files, not .a files.
9536 libext=lib
9537 # Tell ltmain to make .dll files, not .so files.
9538 shrext_cmds=.dll
9539 # FIXME: Setting linknames here is a bad hack.
9540 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9541 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9542 cp "$export_symbols" "$output_objdir/$soname.def";
9543 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9544 else
9545 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9546 fi~
9547 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9548 linknames='
9549 # The linker will not automatically build a static lib if we build a DLL.
9550 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9551 enable_shared_with_static_runtimes=yes
9552 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9553 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9554 # Don't use ranlib
9555 old_postinstall_cmds='chmod 644 $oldlib'
9556 postlink_cmds='lt_outputfile="@OUTPUT@"~
9557 lt_tool_outputfile="@TOOL_OUTPUT@"~
9558 case $lt_outputfile in
9559 *.exe|*.EXE) ;;
9560 *)
9561 lt_outputfile=$lt_outputfile.exe
9562 lt_tool_outputfile=$lt_tool_outputfile.exe
9563 ;;
9564 esac~
9565 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9566 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9567 $RM "$lt_outputfile.manifest";
9568 fi'
9569 ;;
9570 *)
9571 # Assume MSVC wrapper
9572 hardcode_libdir_flag_spec=' '
9573 allow_undefined_flag=unsupported
9574 # Tell ltmain to make .lib files, not .a files.
9575 libext=lib
9576 # Tell ltmain to make .dll files, not .so files.
9577 shrext_cmds=.dll
9578 # FIXME: Setting linknames here is a bad hack.
9579 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9580 # The linker will automatically build a .lib file if we build a DLL.
9581 old_archive_from_new_cmds='true'
9582 # FIXME: Should let the user specify the lib program.
9583 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9584 enable_shared_with_static_runtimes=yes
9585 ;;
9586 esac
9587 ;;
9588
9589 darwin* | rhapsody*)
9590
9591
9592 archive_cmds_need_lc=no
9593 hardcode_direct=no
9594 hardcode_automatic=yes
9595 hardcode_shlibpath_var=unsupported
9596 if test yes = "$lt_cv_ld_force_load"; then
9597 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\"`'
9598
9599 else
9600 whole_archive_flag_spec=''
9601 fi
9602 link_all_deplibs=yes
9603 allow_undefined_flag=$_lt_dar_allow_undefined
9604 case $cc_basename in
9605 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9606 *) _lt_dar_can_shared=$GCC ;;
9607 esac
9608 if test yes = "$_lt_dar_can_shared"; then
9609 output_verbose_link_cmd=func_echo_all
9610 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9611 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9612 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"
9613 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"
9614
9615 else
9616 ld_shlibs=no
9617 fi
9618
9619 ;;
9620
9621 dgux*)
9622 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9623 hardcode_libdir_flag_spec='-L$libdir'
9624 hardcode_shlibpath_var=no
9625 ;;
9626
9627 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9628 # support. Future versions do this automatically, but an explicit c++rt0.o
9629 # does not break anything, and helps significantly (at the cost of a little
9630 # extra space).
9631 freebsd2.2*)
9632 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9633 hardcode_libdir_flag_spec='-R$libdir'
9634 hardcode_direct=yes
9635 hardcode_shlibpath_var=no
9636 ;;
9637
9638 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9639 freebsd2.*)
9640 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9641 hardcode_direct=yes
9642 hardcode_minus_L=yes
9643 hardcode_shlibpath_var=no
9644 ;;
9645
9646 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9647 freebsd* | dragonfly*)
9648 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9649 hardcode_libdir_flag_spec='-R$libdir'
9650 hardcode_direct=yes
9651 hardcode_shlibpath_var=no
9652 ;;
9653
9654 hpux9*)
9655 if test yes = "$GCC"; then
9656 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9657 else
9658 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9659 fi
9660 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9661 hardcode_libdir_separator=:
9662 hardcode_direct=yes
9663
9664 # hardcode_minus_L: Not really in the search PATH,
9665 # but as the default location of the library.
9666 hardcode_minus_L=yes
9667 export_dynamic_flag_spec='$wl-E'
9668 ;;
9669
9670 hpux10*)
9671 if test yes,no = "$GCC,$with_gnu_ld"; then
9672 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9673 else
9674 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9675 fi
9676 if test no = "$with_gnu_ld"; then
9677 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9678 hardcode_libdir_separator=:
9679 hardcode_direct=yes
9680 hardcode_direct_absolute=yes
9681 export_dynamic_flag_spec='$wl-E'
9682 # hardcode_minus_L: Not really in the search PATH,
9683 # but as the default location of the library.
9684 hardcode_minus_L=yes
9685 fi
9686 ;;
9687
9688 hpux11*)
9689 if test yes,no = "$GCC,$with_gnu_ld"; then
9690 case $host_cpu in
9691 hppa*64*)
9692 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9693 ;;
9694 ia64*)
9695 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9696 ;;
9697 *)
9698 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9699 ;;
9700 esac
9701 else
9702 case $host_cpu in
9703 hppa*64*)
9704 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9705 ;;
9706 ia64*)
9707 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9708 ;;
9709 *)
9710
9711 # Older versions of the 11.00 compiler do not understand -b yet
9712 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9714 $as_echo_n "checking if $CC understands -b... " >&6; }
9715 if ${lt_cv_prog_compiler__b+:} false; then :
9716 $as_echo_n "(cached) " >&6
9717 else
9718 lt_cv_prog_compiler__b=no
9719 save_LDFLAGS=$LDFLAGS
9720 LDFLAGS="$LDFLAGS -b"
9721 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9722 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9723 # The linker can only warn and ignore the option if not recognized
9724 # So say no if there are warnings
9725 if test -s conftest.err; then
9726 # Append any errors to the config.log.
9727 cat conftest.err 1>&5
9728 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9729 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9730 if diff conftest.exp conftest.er2 >/dev/null; then
9731 lt_cv_prog_compiler__b=yes
9732 fi
9733 else
9734 lt_cv_prog_compiler__b=yes
9735 fi
9736 fi
9737 $RM -r conftest*
9738 LDFLAGS=$save_LDFLAGS
9739
9740 fi
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9742 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9743
9744 if test yes = "$lt_cv_prog_compiler__b"; then
9745 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9746 else
9747 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9748 fi
9749
9750 ;;
9751 esac
9752 fi
9753 if test no = "$with_gnu_ld"; then
9754 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9755 hardcode_libdir_separator=:
9756
9757 case $host_cpu in
9758 hppa*64*|ia64*)
9759 hardcode_direct=no
9760 hardcode_shlibpath_var=no
9761 ;;
9762 *)
9763 hardcode_direct=yes
9764 hardcode_direct_absolute=yes
9765 export_dynamic_flag_spec='$wl-E'
9766
9767 # hardcode_minus_L: Not really in the search PATH,
9768 # but as the default location of the library.
9769 hardcode_minus_L=yes
9770 ;;
9771 esac
9772 fi
9773 ;;
9774
9775 irix5* | irix6* | nonstopux*)
9776 if test yes = "$GCC"; then
9777 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'
9778 # Try to use the -exported_symbol ld option, if it does not
9779 # work, assume that -exports_file does not work either and
9780 # implicitly export all symbols.
9781 # This should be the same for all languages, so no per-tag cache variable.
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9783 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9784 if ${lt_cv_irix_exported_symbol+:} false; then :
9785 $as_echo_n "(cached) " >&6
9786 else
9787 save_LDFLAGS=$LDFLAGS
9788 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9790 /* end confdefs.h. */
9791 int foo (void) { return 0; }
9792 _ACEOF
9793 if ac_fn_c_try_link "$LINENO"; then :
9794 lt_cv_irix_exported_symbol=yes
9795 else
9796 lt_cv_irix_exported_symbol=no
9797 fi
9798 rm -f core conftest.err conftest.$ac_objext \
9799 conftest$ac_exeext conftest.$ac_ext
9800 LDFLAGS=$save_LDFLAGS
9801 fi
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9803 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9804 if test yes = "$lt_cv_irix_exported_symbol"; then
9805 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'
9806 fi
9807 else
9808 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'
9809 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'
9810 fi
9811 archive_cmds_need_lc='no'
9812 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9813 hardcode_libdir_separator=:
9814 inherit_rpath=yes
9815 link_all_deplibs=yes
9816 ;;
9817
9818 linux*)
9819 case $cc_basename in
9820 tcc*)
9821 # Fabrice Bellard et al's Tiny C Compiler
9822 ld_shlibs=yes
9823 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9824 ;;
9825 esac
9826 ;;
9827
9828 netbsd*)
9829 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9830 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9831 else
9832 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9833 fi
9834 hardcode_libdir_flag_spec='-R$libdir'
9835 hardcode_direct=yes
9836 hardcode_shlibpath_var=no
9837 ;;
9838
9839 newsos6)
9840 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9841 hardcode_direct=yes
9842 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9843 hardcode_libdir_separator=:
9844 hardcode_shlibpath_var=no
9845 ;;
9846
9847 *nto* | *qnx*)
9848 ;;
9849
9850 openbsd* | bitrig*)
9851 if test -f /usr/libexec/ld.so; then
9852 hardcode_direct=yes
9853 hardcode_shlibpath_var=no
9854 hardcode_direct_absolute=yes
9855 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9856 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9857 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9858 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9859 export_dynamic_flag_spec='$wl-E'
9860 else
9861 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9862 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9863 fi
9864 else
9865 ld_shlibs=no
9866 fi
9867 ;;
9868
9869 os2*)
9870 hardcode_libdir_flag_spec='-L$libdir'
9871 hardcode_minus_L=yes
9872 allow_undefined_flag=unsupported
9873 shrext_cmds=.dll
9874 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9875 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9876 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9877 $ECHO EXPORTS >> $output_objdir/$libname.def~
9878 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9879 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9880 emximp -o $lib $output_objdir/$libname.def'
9881 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9882 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9883 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9884 $ECHO EXPORTS >> $output_objdir/$libname.def~
9885 prefix_cmds="$SED"~
9886 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9887 prefix_cmds="$prefix_cmds -e 1d";
9888 fi~
9889 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9890 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9891 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9892 emximp -o $lib $output_objdir/$libname.def'
9893 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9894 enable_shared_with_static_runtimes=yes
9895 ;;
9896
9897 osf3*)
9898 if test yes = "$GCC"; then
9899 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9900 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'
9901 else
9902 allow_undefined_flag=' -expect_unresolved \*'
9903 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'
9904 fi
9905 archive_cmds_need_lc='no'
9906 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9907 hardcode_libdir_separator=:
9908 ;;
9909
9910 osf4* | osf5*) # as osf3* with the addition of -msym flag
9911 if test yes = "$GCC"; then
9912 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9913 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'
9914 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9915 else
9916 allow_undefined_flag=' -expect_unresolved \*'
9917 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'
9918 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~
9919 $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'
9920
9921 # Both c and cxx compiler support -rpath directly
9922 hardcode_libdir_flag_spec='-rpath $libdir'
9923 fi
9924 archive_cmds_need_lc='no'
9925 hardcode_libdir_separator=:
9926 ;;
9927
9928 solaris*)
9929 no_undefined_flag=' -z defs'
9930 if test yes = "$GCC"; then
9931 wlarc='$wl'
9932 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9933 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9934 $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'
9935 else
9936 case `$CC -V 2>&1` in
9937 *"Compilers 5.0"*)
9938 wlarc=''
9939 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9940 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9941 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9942 ;;
9943 *)
9944 wlarc='$wl'
9945 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9946 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9947 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9948 ;;
9949 esac
9950 fi
9951 hardcode_libdir_flag_spec='-R$libdir'
9952 hardcode_shlibpath_var=no
9953 case $host_os in
9954 solaris2.[0-5] | solaris2.[0-5].*) ;;
9955 *)
9956 # The compiler driver will combine and reorder linker options,
9957 # but understands '-z linker_flag'. GCC discards it without '$wl',
9958 # but is careful enough not to reorder.
9959 # Supported since Solaris 2.6 (maybe 2.5.1?)
9960 if test yes = "$GCC"; then
9961 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9962 else
9963 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9964 fi
9965 ;;
9966 esac
9967 link_all_deplibs=yes
9968 ;;
9969
9970 sunos4*)
9971 if test sequent = "$host_vendor"; then
9972 # Use $CC to link under sequent, because it throws in some extra .o
9973 # files that make .init and .fini sections work.
9974 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9975 else
9976 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9977 fi
9978 hardcode_libdir_flag_spec='-L$libdir'
9979 hardcode_direct=yes
9980 hardcode_minus_L=yes
9981 hardcode_shlibpath_var=no
9982 ;;
9983
9984 sysv4)
9985 case $host_vendor in
9986 sni)
9987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9988 hardcode_direct=yes # is this really true???
9989 ;;
9990 siemens)
9991 ## LD is ld it makes a PLAMLIB
9992 ## CC just makes a GrossModule.
9993 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9994 reload_cmds='$CC -r -o $output$reload_objs'
9995 hardcode_direct=no
9996 ;;
9997 motorola)
9998 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9999 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10000 ;;
10001 esac
10002 runpath_var='LD_RUN_PATH'
10003 hardcode_shlibpath_var=no
10004 ;;
10005
10006 sysv4.3*)
10007 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10008 hardcode_shlibpath_var=no
10009 export_dynamic_flag_spec='-Bexport'
10010 ;;
10011
10012 sysv4*MP*)
10013 if test -d /usr/nec; then
10014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10015 hardcode_shlibpath_var=no
10016 runpath_var=LD_RUN_PATH
10017 hardcode_runpath_var=yes
10018 ld_shlibs=yes
10019 fi
10020 ;;
10021
10022 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10023 no_undefined_flag='$wl-z,text'
10024 archive_cmds_need_lc=no
10025 hardcode_shlibpath_var=no
10026 runpath_var='LD_RUN_PATH'
10027
10028 if test yes = "$GCC"; then
10029 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10030 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10031 else
10032 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10033 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10034 fi
10035 ;;
10036
10037 sysv5* | sco3.2v5* | sco5v6*)
10038 # Note: We CANNOT use -z defs as we might desire, because we do not
10039 # link with -lc, and that would cause any symbols used from libc to
10040 # always be unresolved, which means just about no library would
10041 # ever link correctly. If we're not using GNU ld we use -z text
10042 # though, which does catch some bad symbols but isn't as heavy-handed
10043 # as -z defs.
10044 no_undefined_flag='$wl-z,text'
10045 allow_undefined_flag='$wl-z,nodefs'
10046 archive_cmds_need_lc=no
10047 hardcode_shlibpath_var=no
10048 hardcode_libdir_flag_spec='$wl-R,$libdir'
10049 hardcode_libdir_separator=':'
10050 link_all_deplibs=yes
10051 export_dynamic_flag_spec='$wl-Bexport'
10052 runpath_var='LD_RUN_PATH'
10053
10054 if test yes = "$GCC"; then
10055 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10056 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10057 else
10058 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10059 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10060 fi
10061 ;;
10062
10063 uts4*)
10064 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10065 hardcode_libdir_flag_spec='-L$libdir'
10066 hardcode_shlibpath_var=no
10067 ;;
10068
10069 *)
10070 ld_shlibs=no
10071 ;;
10072 esac
10073
10074 if test sni = "$host_vendor"; then
10075 case $host in
10076 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10077 export_dynamic_flag_spec='$wl-Blargedynsym'
10078 ;;
10079 esac
10080 fi
10081 fi
10082
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10084 $as_echo "$ld_shlibs" >&6; }
10085 test no = "$ld_shlibs" && can_build_shared=no
10086
10087 with_gnu_ld=$with_gnu_ld
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103 #
10104 # Do we need to explicitly link libc?
10105 #
10106 case "x$archive_cmds_need_lc" in
10107 x|xyes)
10108 # Assume -lc should be added
10109 archive_cmds_need_lc=yes
10110
10111 if test yes,yes = "$GCC,$enable_shared"; then
10112 case $archive_cmds in
10113 *'~'*)
10114 # FIXME: we may have to deal with multi-command sequences.
10115 ;;
10116 '$CC '*)
10117 # Test whether the compiler implicitly links with -lc since on some
10118 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10119 # to ld, don't add -lc before -lgcc.
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10121 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10122 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10123 $as_echo_n "(cached) " >&6
10124 else
10125 $RM conftest*
10126 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10127
10128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10129 (eval $ac_compile) 2>&5
10130 ac_status=$?
10131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10132 test $ac_status = 0; } 2>conftest.err; then
10133 soname=conftest
10134 lib=conftest
10135 libobjs=conftest.$ac_objext
10136 deplibs=
10137 wl=$lt_prog_compiler_wl
10138 pic_flag=$lt_prog_compiler_pic
10139 compiler_flags=-v
10140 linker_flags=-v
10141 verstring=
10142 output_objdir=.
10143 libname=conftest
10144 lt_save_allow_undefined_flag=$allow_undefined_flag
10145 allow_undefined_flag=
10146 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10147 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10148 ac_status=$?
10149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10150 test $ac_status = 0; }
10151 then
10152 lt_cv_archive_cmds_need_lc=no
10153 else
10154 lt_cv_archive_cmds_need_lc=yes
10155 fi
10156 allow_undefined_flag=$lt_save_allow_undefined_flag
10157 else
10158 cat conftest.err 1>&5
10159 fi
10160 $RM conftest*
10161
10162 fi
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10164 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10165 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10166 ;;
10167 esac
10168 fi
10169 ;;
10170 esac
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10324 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10325
10326 if test yes = "$GCC"; then
10327 case $host_os in
10328 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10329 *) lt_awk_arg='/^libraries:/' ;;
10330 esac
10331 case $host_os in
10332 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10333 *) lt_sed_strip_eq='s|=/|/|g' ;;
10334 esac
10335 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10336 case $lt_search_path_spec in
10337 *\;*)
10338 # if the path contains ";" then we assume it to be the separator
10339 # otherwise default to the standard path separator (i.e. ":") - it is
10340 # assumed that no part of a normal pathname contains ";" but that should
10341 # okay in the real world where ";" in dirpaths is itself problematic.
10342 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10343 ;;
10344 *)
10345 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10346 ;;
10347 esac
10348 # Ok, now we have the path, separated by spaces, we can step through it
10349 # and add multilib dir if necessary...
10350 lt_tmp_lt_search_path_spec=
10351 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10352 # ...but if some path component already ends with the multilib dir we assume
10353 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10354 case "$lt_multi_os_dir; $lt_search_path_spec " in
10355 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10356 lt_multi_os_dir=
10357 ;;
10358 esac
10359 for lt_sys_path in $lt_search_path_spec; do
10360 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10361 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10362 elif test -n "$lt_multi_os_dir"; then
10363 test -d "$lt_sys_path" && \
10364 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10365 fi
10366 done
10367 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10368 BEGIN {RS = " "; FS = "/|\n";} {
10369 lt_foo = "";
10370 lt_count = 0;
10371 for (lt_i = NF; lt_i > 0; lt_i--) {
10372 if ($lt_i != "" && $lt_i != ".") {
10373 if ($lt_i == "..") {
10374 lt_count++;
10375 } else {
10376 if (lt_count == 0) {
10377 lt_foo = "/" $lt_i lt_foo;
10378 } else {
10379 lt_count--;
10380 }
10381 }
10382 }
10383 }
10384 if (lt_foo != "") { lt_freq[lt_foo]++; }
10385 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10386 }'`
10387 # AWK program above erroneously prepends '/' to C:/dos/paths
10388 # for these hosts.
10389 case $host_os in
10390 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10391 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10392 esac
10393 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10394 else
10395 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10396 fi
10397 library_names_spec=
10398 libname_spec='lib$name'
10399 soname_spec=
10400 shrext_cmds=.so
10401 postinstall_cmds=
10402 postuninstall_cmds=
10403 finish_cmds=
10404 finish_eval=
10405 shlibpath_var=
10406 shlibpath_overrides_runpath=unknown
10407 version_type=none
10408 dynamic_linker="$host_os ld.so"
10409 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10410 need_lib_prefix=unknown
10411 hardcode_into_libs=no
10412
10413 # when you set need_version to no, make sure it does not cause -set_version
10414 # flags to be left without arguments
10415 need_version=unknown
10416
10417
10418
10419 case $host_os in
10420 aix3*)
10421 version_type=linux # correct to gnu/linux during the next big refactor
10422 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10423 shlibpath_var=LIBPATH
10424
10425 # AIX 3 has no versioning support, so we append a major version to the name.
10426 soname_spec='$libname$release$shared_ext$major'
10427 ;;
10428
10429 aix[4-9]*)
10430 version_type=linux # correct to gnu/linux during the next big refactor
10431 need_lib_prefix=no
10432 need_version=no
10433 hardcode_into_libs=yes
10434 if test ia64 = "$host_cpu"; then
10435 # AIX 5 supports IA64
10436 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10437 shlibpath_var=LD_LIBRARY_PATH
10438 else
10439 # With GCC up to 2.95.x, collect2 would create an import file
10440 # for dependence libraries. The import file would start with
10441 # the line '#! .'. This would cause the generated library to
10442 # depend on '.', always an invalid library. This was fixed in
10443 # development snapshots of GCC prior to 3.0.
10444 case $host_os in
10445 aix4 | aix4.[01] | aix4.[01].*)
10446 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10447 echo ' yes '
10448 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10449 :
10450 else
10451 can_build_shared=no
10452 fi
10453 ;;
10454 esac
10455 # Using Import Files as archive members, it is possible to support
10456 # filename-based versioning of shared library archives on AIX. While
10457 # this would work for both with and without runtime linking, it will
10458 # prevent static linking of such archives. So we do filename-based
10459 # shared library versioning with .so extension only, which is used
10460 # when both runtime linking and shared linking is enabled.
10461 # Unfortunately, runtime linking may impact performance, so we do
10462 # not want this to be the default eventually. Also, we use the
10463 # versioned .so libs for executables only if there is the -brtl
10464 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10465 # To allow for filename-based versioning support, we need to create
10466 # libNAME.so.V as an archive file, containing:
10467 # *) an Import File, referring to the versioned filename of the
10468 # archive as well as the shared archive member, telling the
10469 # bitwidth (32 or 64) of that shared object, and providing the
10470 # list of exported symbols of that shared object, eventually
10471 # decorated with the 'weak' keyword
10472 # *) the shared object with the F_LOADONLY flag set, to really avoid
10473 # it being seen by the linker.
10474 # At run time we better use the real file rather than another symlink,
10475 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10476
10477 case $with_aix_soname,$aix_use_runtimelinking in
10478 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10479 # soname into executable. Probably we can add versioning support to
10480 # collect2, so additional links can be useful in future.
10481 aix,yes) # traditional libtool
10482 dynamic_linker='AIX unversionable lib.so'
10483 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10484 # instead of lib<name>.a to let people know that these are not
10485 # typical AIX shared libraries.
10486 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10487 ;;
10488 aix,no) # traditional AIX only
10489 dynamic_linker='AIX lib.a(lib.so.V)'
10490 # We preserve .a as extension for shared libraries through AIX4.2
10491 # and later when we are not doing run time linking.
10492 library_names_spec='$libname$release.a $libname.a'
10493 soname_spec='$libname$release$shared_ext$major'
10494 ;;
10495 svr4,*) # full svr4 only
10496 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10497 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10498 # We do not specify a path in Import Files, so LIBPATH fires.
10499 shlibpath_overrides_runpath=yes
10500 ;;
10501 *,yes) # both, prefer svr4
10502 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10503 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10504 # unpreferred sharedlib libNAME.a needs extra handling
10505 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10506 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10507 # We do not specify a path in Import Files, so LIBPATH fires.
10508 shlibpath_overrides_runpath=yes
10509 ;;
10510 *,no) # both, prefer aix
10511 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10512 library_names_spec='$libname$release.a $libname.a'
10513 soname_spec='$libname$release$shared_ext$major'
10514 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10515 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10516 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10517 ;;
10518 esac
10519 shlibpath_var=LIBPATH
10520 fi
10521 ;;
10522
10523 amigaos*)
10524 case $host_cpu in
10525 powerpc)
10526 # Since July 2007 AmigaOS4 officially supports .so libraries.
10527 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10528 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10529 ;;
10530 m68k)
10531 library_names_spec='$libname.ixlibrary $libname.a'
10532 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10533 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
10534 ;;
10535 esac
10536 ;;
10537
10538 beos*)
10539 library_names_spec='$libname$shared_ext'
10540 dynamic_linker="$host_os ld.so"
10541 shlibpath_var=LIBRARY_PATH
10542 ;;
10543
10544 bsdi[45]*)
10545 version_type=linux # correct to gnu/linux during the next big refactor
10546 need_version=no
10547 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10548 soname_spec='$libname$release$shared_ext$major'
10549 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10550 shlibpath_var=LD_LIBRARY_PATH
10551 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10552 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10553 # the default ld.so.conf also contains /usr/contrib/lib and
10554 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10555 # libtool to hard-code these into programs
10556 ;;
10557
10558 cygwin* | mingw* | pw32* | cegcc*)
10559 version_type=windows
10560 shrext_cmds=.dll
10561 need_version=no
10562 need_lib_prefix=no
10563
10564 case $GCC,$cc_basename in
10565 yes,*)
10566 # gcc
10567 library_names_spec='$libname.dll.a'
10568 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10569 postinstall_cmds='base_file=`basename \$file`~
10570 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10571 dldir=$destdir/`dirname \$dlpath`~
10572 test -d \$dldir || mkdir -p \$dldir~
10573 $install_prog $dir/$dlname \$dldir/$dlname~
10574 chmod a+x \$dldir/$dlname~
10575 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10576 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10577 fi'
10578 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10579 dlpath=$dir/\$dldll~
10580 $RM \$dlpath'
10581 shlibpath_overrides_runpath=yes
10582
10583 case $host_os in
10584 cygwin*)
10585 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10586 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10587
10588 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10589 ;;
10590 mingw* | cegcc*)
10591 # MinGW DLLs use traditional 'lib' prefix
10592 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10593 ;;
10594 pw32*)
10595 # pw32 DLLs use 'pw' prefix rather than 'lib'
10596 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10597 ;;
10598 esac
10599 dynamic_linker='Win32 ld.exe'
10600 ;;
10601
10602 *,cl*)
10603 # Native MSVC
10604 libname_spec='$name'
10605 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10606 library_names_spec='$libname.dll.lib'
10607
10608 case $build_os in
10609 mingw*)
10610 sys_lib_search_path_spec=
10611 lt_save_ifs=$IFS
10612 IFS=';'
10613 for lt_path in $LIB
10614 do
10615 IFS=$lt_save_ifs
10616 # Let DOS variable expansion print the short 8.3 style file name.
10617 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10618 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10619 done
10620 IFS=$lt_save_ifs
10621 # Convert to MSYS style.
10622 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10623 ;;
10624 cygwin*)
10625 # Convert to unix form, then to dos form, then back to unix form
10626 # but this time dos style (no spaces!) so that the unix form looks
10627 # like /cygdrive/c/PROGRA~1:/cygdr...
10628 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10629 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10630 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10631 ;;
10632 *)
10633 sys_lib_search_path_spec=$LIB
10634 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10635 # It is most probably a Windows format PATH.
10636 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10637 else
10638 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10639 fi
10640 # FIXME: find the short name or the path components, as spaces are
10641 # common. (e.g. "Program Files" -> "PROGRA~1")
10642 ;;
10643 esac
10644
10645 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10646 postinstall_cmds='base_file=`basename \$file`~
10647 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10648 dldir=$destdir/`dirname \$dlpath`~
10649 test -d \$dldir || mkdir -p \$dldir~
10650 $install_prog $dir/$dlname \$dldir/$dlname'
10651 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10652 dlpath=$dir/\$dldll~
10653 $RM \$dlpath'
10654 shlibpath_overrides_runpath=yes
10655 dynamic_linker='Win32 link.exe'
10656 ;;
10657
10658 *)
10659 # Assume MSVC wrapper
10660 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10661 dynamic_linker='Win32 ld.exe'
10662 ;;
10663 esac
10664 # FIXME: first we should search . and the directory the executable is in
10665 shlibpath_var=PATH
10666 ;;
10667
10668 darwin* | rhapsody*)
10669 dynamic_linker="$host_os dyld"
10670 version_type=darwin
10671 need_lib_prefix=no
10672 need_version=no
10673 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10674 soname_spec='$libname$release$major$shared_ext'
10675 shlibpath_overrides_runpath=yes
10676 shlibpath_var=DYLD_LIBRARY_PATH
10677 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10678
10679 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10680 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10681 ;;
10682
10683 dgux*)
10684 version_type=linux # correct to gnu/linux during the next big refactor
10685 need_lib_prefix=no
10686 need_version=no
10687 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10688 soname_spec='$libname$release$shared_ext$major'
10689 shlibpath_var=LD_LIBRARY_PATH
10690 ;;
10691
10692 freebsd* | dragonfly*)
10693 # DragonFly does not have aout. When/if they implement a new
10694 # versioning mechanism, adjust this.
10695 if test -x /usr/bin/objformat; then
10696 objformat=`/usr/bin/objformat`
10697 else
10698 case $host_os in
10699 freebsd[23].*) objformat=aout ;;
10700 *) objformat=elf ;;
10701 esac
10702 fi
10703 version_type=freebsd-$objformat
10704 case $version_type in
10705 freebsd-elf*)
10706 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10707 soname_spec='$libname$release$shared_ext$major'
10708 need_version=no
10709 need_lib_prefix=no
10710 ;;
10711 freebsd-*)
10712 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10713 need_version=yes
10714 ;;
10715 esac
10716 shlibpath_var=LD_LIBRARY_PATH
10717 case $host_os in
10718 freebsd2.*)
10719 shlibpath_overrides_runpath=yes
10720 ;;
10721 freebsd3.[01]* | freebsdelf3.[01]*)
10722 shlibpath_overrides_runpath=yes
10723 hardcode_into_libs=yes
10724 ;;
10725 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10726 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10727 shlibpath_overrides_runpath=no
10728 hardcode_into_libs=yes
10729 ;;
10730 *) # from 4.6 on, and DragonFly
10731 shlibpath_overrides_runpath=yes
10732 hardcode_into_libs=yes
10733 ;;
10734 esac
10735 ;;
10736
10737 haiku*)
10738 version_type=linux # correct to gnu/linux during the next big refactor
10739 need_lib_prefix=no
10740 need_version=no
10741 dynamic_linker="$host_os runtime_loader"
10742 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10743 soname_spec='$libname$release$shared_ext$major'
10744 shlibpath_var=LIBRARY_PATH
10745 shlibpath_overrides_runpath=no
10746 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10747 hardcode_into_libs=yes
10748 ;;
10749
10750 hpux9* | hpux10* | hpux11*)
10751 # Give a soname corresponding to the major version so that dld.sl refuses to
10752 # link against other versions.
10753 version_type=sunos
10754 need_lib_prefix=no
10755 need_version=no
10756 case $host_cpu in
10757 ia64*)
10758 shrext_cmds='.so'
10759 hardcode_into_libs=yes
10760 dynamic_linker="$host_os dld.so"
10761 shlibpath_var=LD_LIBRARY_PATH
10762 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10763 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10764 soname_spec='$libname$release$shared_ext$major'
10765 if test 32 = "$HPUX_IA64_MODE"; then
10766 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10767 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10768 else
10769 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10770 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10771 fi
10772 ;;
10773 hppa*64*)
10774 shrext_cmds='.sl'
10775 hardcode_into_libs=yes
10776 dynamic_linker="$host_os dld.sl"
10777 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10778 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10779 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10780 soname_spec='$libname$release$shared_ext$major'
10781 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10782 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10783 ;;
10784 *)
10785 shrext_cmds='.sl'
10786 dynamic_linker="$host_os dld.sl"
10787 shlibpath_var=SHLIB_PATH
10788 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10789 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10790 soname_spec='$libname$release$shared_ext$major'
10791 ;;
10792 esac
10793 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10794 postinstall_cmds='chmod 555 $lib'
10795 # or fails outright, so override atomically:
10796 install_override_mode=555
10797 ;;
10798
10799 interix[3-9]*)
10800 version_type=linux # correct to gnu/linux during the next big refactor
10801 need_lib_prefix=no
10802 need_version=no
10803 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10804 soname_spec='$libname$release$shared_ext$major'
10805 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10806 shlibpath_var=LD_LIBRARY_PATH
10807 shlibpath_overrides_runpath=no
10808 hardcode_into_libs=yes
10809 ;;
10810
10811 irix5* | irix6* | nonstopux*)
10812 case $host_os in
10813 nonstopux*) version_type=nonstopux ;;
10814 *)
10815 if test yes = "$lt_cv_prog_gnu_ld"; then
10816 version_type=linux # correct to gnu/linux during the next big refactor
10817 else
10818 version_type=irix
10819 fi ;;
10820 esac
10821 need_lib_prefix=no
10822 need_version=no
10823 soname_spec='$libname$release$shared_ext$major'
10824 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10825 case $host_os in
10826 irix5* | nonstopux*)
10827 libsuff= shlibsuff=
10828 ;;
10829 *)
10830 case $LD in # libtool.m4 will add one of these switches to LD
10831 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10832 libsuff= shlibsuff= libmagic=32-bit;;
10833 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10834 libsuff=32 shlibsuff=N32 libmagic=N32;;
10835 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10836 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10837 *) libsuff= shlibsuff= libmagic=never-match;;
10838 esac
10839 ;;
10840 esac
10841 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10842 shlibpath_overrides_runpath=no
10843 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10844 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10845 hardcode_into_libs=yes
10846 ;;
10847
10848 # No shared lib support for Linux oldld, aout, or coff.
10849 linux*oldld* | linux*aout* | linux*coff*)
10850 dynamic_linker=no
10851 ;;
10852
10853 linux*android*)
10854 version_type=none # Android doesn't support versioned libraries.
10855 need_lib_prefix=no
10856 need_version=no
10857 library_names_spec='$libname$release$shared_ext'
10858 soname_spec='$libname$release$shared_ext'
10859 finish_cmds=
10860 shlibpath_var=LD_LIBRARY_PATH
10861 shlibpath_overrides_runpath=yes
10862
10863 # This implies no fast_install, which is unacceptable.
10864 # Some rework will be needed to allow for fast_install
10865 # before this can be enabled.
10866 hardcode_into_libs=yes
10867
10868 dynamic_linker='Android linker'
10869 # Don't embed -rpath directories since the linker doesn't support them.
10870 hardcode_libdir_flag_spec='-L$libdir'
10871 ;;
10872
10873 # This must be glibc/ELF.
10874 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10875 version_type=linux # correct to gnu/linux during the next big refactor
10876 need_lib_prefix=no
10877 need_version=no
10878 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10879 soname_spec='$libname$release$shared_ext$major'
10880 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10881 shlibpath_var=LD_LIBRARY_PATH
10882 shlibpath_overrides_runpath=no
10883
10884 # Some binutils ld are patched to set DT_RUNPATH
10885 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10886 $as_echo_n "(cached) " >&6
10887 else
10888 lt_cv_shlibpath_overrides_runpath=no
10889 save_LDFLAGS=$LDFLAGS
10890 save_libdir=$libdir
10891 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10892 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10894 /* end confdefs.h. */
10895
10896 int
10897 main ()
10898 {
10899
10900 ;
10901 return 0;
10902 }
10903 _ACEOF
10904 if ac_fn_c_try_link "$LINENO"; then :
10905 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10906 lt_cv_shlibpath_overrides_runpath=yes
10907 fi
10908 fi
10909 rm -f core conftest.err conftest.$ac_objext \
10910 conftest$ac_exeext conftest.$ac_ext
10911 LDFLAGS=$save_LDFLAGS
10912 libdir=$save_libdir
10913
10914 fi
10915
10916 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10917
10918 # This implies no fast_install, which is unacceptable.
10919 # Some rework will be needed to allow for fast_install
10920 # before this can be enabled.
10921 hardcode_into_libs=yes
10922
10923 # Ideally, we could use ldconfig to report *all* directores which are
10924 # searched for libraries, however this is still not possible. Aside from not
10925 # being certain /sbin/ldconfig is available, command
10926 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10927 # even though it is searched at run-time. Try to do the best guess by
10928 # appending ld.so.conf contents (and includes) to the search path.
10929 if test -f /etc/ld.so.conf; then
10930 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' ' '`
10931 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10932 fi
10933
10934 # We used to test for /lib/ld.so.1 and disable shared libraries on
10935 # powerpc, because MkLinux only supported shared libraries with the
10936 # GNU dynamic linker. Since this was broken with cross compilers,
10937 # most powerpc-linux boxes support dynamic linking these days and
10938 # people can always --disable-shared, the test was removed, and we
10939 # assume the GNU/Linux dynamic linker is in use.
10940 dynamic_linker='GNU/Linux ld.so'
10941 ;;
10942
10943 netbsd*)
10944 version_type=sunos
10945 need_lib_prefix=no
10946 need_version=no
10947 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10948 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10949 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10950 dynamic_linker='NetBSD (a.out) ld.so'
10951 else
10952 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10953 soname_spec='$libname$release$shared_ext$major'
10954 dynamic_linker='NetBSD ld.elf_so'
10955 fi
10956 shlibpath_var=LD_LIBRARY_PATH
10957 shlibpath_overrides_runpath=yes
10958 hardcode_into_libs=yes
10959 ;;
10960
10961 newsos6)
10962 version_type=linux # correct to gnu/linux during the next big refactor
10963 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10964 shlibpath_var=LD_LIBRARY_PATH
10965 shlibpath_overrides_runpath=yes
10966 ;;
10967
10968 *nto* | *qnx*)
10969 version_type=qnx
10970 need_lib_prefix=no
10971 need_version=no
10972 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10973 soname_spec='$libname$release$shared_ext$major'
10974 shlibpath_var=LD_LIBRARY_PATH
10975 shlibpath_overrides_runpath=no
10976 hardcode_into_libs=yes
10977 dynamic_linker='ldqnx.so'
10978 ;;
10979
10980 openbsd* | bitrig*)
10981 version_type=sunos
10982 sys_lib_dlsearch_path_spec=/usr/lib
10983 need_lib_prefix=no
10984 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10985 need_version=no
10986 else
10987 need_version=yes
10988 fi
10989 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10990 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10991 shlibpath_var=LD_LIBRARY_PATH
10992 shlibpath_overrides_runpath=yes
10993 ;;
10994
10995 os2*)
10996 libname_spec='$name'
10997 version_type=windows
10998 shrext_cmds=.dll
10999 need_version=no
11000 need_lib_prefix=no
11001 # OS/2 can only load a DLL with a base name of 8 characters or less.
11002 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11003 v=$($ECHO $release$versuffix | tr -d .-);
11004 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11005 $ECHO $n$v`$shared_ext'
11006 library_names_spec='${libname}_dll.$libext'
11007 dynamic_linker='OS/2 ld.exe'
11008 shlibpath_var=BEGINLIBPATH
11009 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11010 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11011 postinstall_cmds='base_file=`basename \$file`~
11012 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11013 dldir=$destdir/`dirname \$dlpath`~
11014 test -d \$dldir || mkdir -p \$dldir~
11015 $install_prog $dir/$dlname \$dldir/$dlname~
11016 chmod a+x \$dldir/$dlname~
11017 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11018 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11019 fi'
11020 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11021 dlpath=$dir/\$dldll~
11022 $RM \$dlpath'
11023 ;;
11024
11025 osf3* | osf4* | osf5*)
11026 version_type=osf
11027 need_lib_prefix=no
11028 need_version=no
11029 soname_spec='$libname$release$shared_ext$major'
11030 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11031 shlibpath_var=LD_LIBRARY_PATH
11032 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11033 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11034 ;;
11035
11036 rdos*)
11037 dynamic_linker=no
11038 ;;
11039
11040 solaris*)
11041 version_type=linux # correct to gnu/linux during the next big refactor
11042 need_lib_prefix=no
11043 need_version=no
11044 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11045 soname_spec='$libname$release$shared_ext$major'
11046 shlibpath_var=LD_LIBRARY_PATH
11047 shlibpath_overrides_runpath=yes
11048 hardcode_into_libs=yes
11049 # ldd complains unless libraries are executable
11050 postinstall_cmds='chmod +x $lib'
11051 ;;
11052
11053 sunos4*)
11054 version_type=sunos
11055 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11056 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11057 shlibpath_var=LD_LIBRARY_PATH
11058 shlibpath_overrides_runpath=yes
11059 if test yes = "$with_gnu_ld"; then
11060 need_lib_prefix=no
11061 fi
11062 need_version=yes
11063 ;;
11064
11065 sysv4 | sysv4.3*)
11066 version_type=linux # correct to gnu/linux during the next big refactor
11067 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11068 soname_spec='$libname$release$shared_ext$major'
11069 shlibpath_var=LD_LIBRARY_PATH
11070 case $host_vendor in
11071 sni)
11072 shlibpath_overrides_runpath=no
11073 need_lib_prefix=no
11074 runpath_var=LD_RUN_PATH
11075 ;;
11076 siemens)
11077 need_lib_prefix=no
11078 ;;
11079 motorola)
11080 need_lib_prefix=no
11081 need_version=no
11082 shlibpath_overrides_runpath=no
11083 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11084 ;;
11085 esac
11086 ;;
11087
11088 sysv4*MP*)
11089 if test -d /usr/nec; then
11090 version_type=linux # correct to gnu/linux during the next big refactor
11091 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11092 soname_spec='$libname$shared_ext.$major'
11093 shlibpath_var=LD_LIBRARY_PATH
11094 fi
11095 ;;
11096
11097 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11098 version_type=sco
11099 need_lib_prefix=no
11100 need_version=no
11101 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11102 soname_spec='$libname$release$shared_ext$major'
11103 shlibpath_var=LD_LIBRARY_PATH
11104 shlibpath_overrides_runpath=yes
11105 hardcode_into_libs=yes
11106 if test yes = "$with_gnu_ld"; then
11107 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11108 else
11109 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11110 case $host_os in
11111 sco3.2v5*)
11112 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11113 ;;
11114 esac
11115 fi
11116 sys_lib_dlsearch_path_spec='/usr/lib'
11117 ;;
11118
11119 tpf*)
11120 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11121 version_type=linux # correct to gnu/linux during the next big refactor
11122 need_lib_prefix=no
11123 need_version=no
11124 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11125 shlibpath_var=LD_LIBRARY_PATH
11126 shlibpath_overrides_runpath=no
11127 hardcode_into_libs=yes
11128 ;;
11129
11130 uts4*)
11131 version_type=linux # correct to gnu/linux during the next big refactor
11132 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11133 soname_spec='$libname$release$shared_ext$major'
11134 shlibpath_var=LD_LIBRARY_PATH
11135 ;;
11136
11137 *)
11138 dynamic_linker=no
11139 ;;
11140 esac
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11142 $as_echo "$dynamic_linker" >&6; }
11143 test no = "$dynamic_linker" && can_build_shared=no
11144
11145 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11146 if test yes = "$GCC"; then
11147 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11148 fi
11149
11150 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11151 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11152 fi
11153
11154 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11155 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11156 fi
11157
11158 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11159 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11160
11161 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11162 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11163
11164 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11165 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11264 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11265 hardcode_action=
11266 if test -n "$hardcode_libdir_flag_spec" ||
11267 test -n "$runpath_var" ||
11268 test yes = "$hardcode_automatic"; then
11269
11270 # We can hardcode non-existent directories.
11271 if test no != "$hardcode_direct" &&
11272 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11273 # have to relink, otherwise we might link with an installed library
11274 # when we should be linking with a yet-to-be-installed one
11275 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11276 test no != "$hardcode_minus_L"; then
11277 # Linking always hardcodes the temporary library directory.
11278 hardcode_action=relink
11279 else
11280 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11281 hardcode_action=immediate
11282 fi
11283 else
11284 # We cannot hardcode anything, or else we can only hardcode existing
11285 # directories.
11286 hardcode_action=unsupported
11287 fi
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11289 $as_echo "$hardcode_action" >&6; }
11290
11291 if test relink = "$hardcode_action" ||
11292 test yes = "$inherit_rpath"; then
11293 # Fast installation is not supported
11294 enable_fast_install=no
11295 elif test yes = "$shlibpath_overrides_runpath" ||
11296 test no = "$enable_shared"; then
11297 # Fast installation is not necessary
11298 enable_fast_install=needless
11299 fi
11300
11301
11302
11303
11304
11305
11306 if test yes != "$enable_dlopen"; then
11307 enable_dlopen=unknown
11308 enable_dlopen_self=unknown
11309 enable_dlopen_self_static=unknown
11310 else
11311 lt_cv_dlopen=no
11312 lt_cv_dlopen_libs=
11313
11314 case $host_os in
11315 beos*)
11316 lt_cv_dlopen=load_add_on
11317 lt_cv_dlopen_libs=
11318 lt_cv_dlopen_self=yes
11319 ;;
11320
11321 mingw* | pw32* | cegcc*)
11322 lt_cv_dlopen=LoadLibrary
11323 lt_cv_dlopen_libs=
11324 ;;
11325
11326 cygwin*)
11327 lt_cv_dlopen=dlopen
11328 lt_cv_dlopen_libs=
11329 ;;
11330
11331 darwin*)
11332 # if libdl is installed we need to link against it
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11334 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11335 if ${ac_cv_lib_dl_dlopen+:} false; then :
11336 $as_echo_n "(cached) " >&6
11337 else
11338 ac_check_lib_save_LIBS=$LIBS
11339 LIBS="-ldl $LIBS"
11340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11341 /* end confdefs.h. */
11342
11343 /* Override any GCC internal prototype to avoid an error.
11344 Use char because int might match the return type of a GCC
11345 builtin and then its argument prototype would still apply. */
11346 #ifdef __cplusplus
11347 extern "C"
11348 #endif
11349 char dlopen ();
11350 int
11351 main ()
11352 {
11353 return dlopen ();
11354 ;
11355 return 0;
11356 }
11357 _ACEOF
11358 if ac_fn_c_try_link "$LINENO"; then :
11359 ac_cv_lib_dl_dlopen=yes
11360 else
11361 ac_cv_lib_dl_dlopen=no
11362 fi
11363 rm -f core conftest.err conftest.$ac_objext \
11364 conftest$ac_exeext conftest.$ac_ext
11365 LIBS=$ac_check_lib_save_LIBS
11366 fi
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11368 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11369 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11370 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11371 else
11372
11373 lt_cv_dlopen=dyld
11374 lt_cv_dlopen_libs=
11375 lt_cv_dlopen_self=yes
11376
11377 fi
11378
11379 ;;
11380
11381 tpf*)
11382 # Don't try to run any link tests for TPF. We know it's impossible
11383 # because TPF is a cross-compiler, and we know how we open DSOs.
11384 lt_cv_dlopen=dlopen
11385 lt_cv_dlopen_libs=
11386 lt_cv_dlopen_self=no
11387 ;;
11388
11389 *)
11390 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11391 if test "x$ac_cv_func_shl_load" = xyes; then :
11392 lt_cv_dlopen=shl_load
11393 else
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11395 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11396 if ${ac_cv_lib_dld_shl_load+:} false; then :
11397 $as_echo_n "(cached) " >&6
11398 else
11399 ac_check_lib_save_LIBS=$LIBS
11400 LIBS="-ldld $LIBS"
11401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11402 /* end confdefs.h. */
11403
11404 /* Override any GCC internal prototype to avoid an error.
11405 Use char because int might match the return type of a GCC
11406 builtin and then its argument prototype would still apply. */
11407 #ifdef __cplusplus
11408 extern "C"
11409 #endif
11410 char shl_load ();
11411 int
11412 main ()
11413 {
11414 return shl_load ();
11415 ;
11416 return 0;
11417 }
11418 _ACEOF
11419 if ac_fn_c_try_link "$LINENO"; then :
11420 ac_cv_lib_dld_shl_load=yes
11421 else
11422 ac_cv_lib_dld_shl_load=no
11423 fi
11424 rm -f core conftest.err conftest.$ac_objext \
11425 conftest$ac_exeext conftest.$ac_ext
11426 LIBS=$ac_check_lib_save_LIBS
11427 fi
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11429 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11430 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11431 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11432 else
11433 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11434 if test "x$ac_cv_func_dlopen" = xyes; then :
11435 lt_cv_dlopen=dlopen
11436 else
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11438 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11439 if ${ac_cv_lib_dl_dlopen+:} false; then :
11440 $as_echo_n "(cached) " >&6
11441 else
11442 ac_check_lib_save_LIBS=$LIBS
11443 LIBS="-ldl $LIBS"
11444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11445 /* end confdefs.h. */
11446
11447 /* Override any GCC internal prototype to avoid an error.
11448 Use char because int might match the return type of a GCC
11449 builtin and then its argument prototype would still apply. */
11450 #ifdef __cplusplus
11451 extern "C"
11452 #endif
11453 char dlopen ();
11454 int
11455 main ()
11456 {
11457 return dlopen ();
11458 ;
11459 return 0;
11460 }
11461 _ACEOF
11462 if ac_fn_c_try_link "$LINENO"; then :
11463 ac_cv_lib_dl_dlopen=yes
11464 else
11465 ac_cv_lib_dl_dlopen=no
11466 fi
11467 rm -f core conftest.err conftest.$ac_objext \
11468 conftest$ac_exeext conftest.$ac_ext
11469 LIBS=$ac_check_lib_save_LIBS
11470 fi
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11472 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11473 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11474 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11475 else
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11477 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11478 if ${ac_cv_lib_svld_dlopen+:} false; then :
11479 $as_echo_n "(cached) " >&6
11480 else
11481 ac_check_lib_save_LIBS=$LIBS
11482 LIBS="-lsvld $LIBS"
11483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11484 /* end confdefs.h. */
11485
11486 /* Override any GCC internal prototype to avoid an error.
11487 Use char because int might match the return type of a GCC
11488 builtin and then its argument prototype would still apply. */
11489 #ifdef __cplusplus
11490 extern "C"
11491 #endif
11492 char dlopen ();
11493 int
11494 main ()
11495 {
11496 return dlopen ();
11497 ;
11498 return 0;
11499 }
11500 _ACEOF
11501 if ac_fn_c_try_link "$LINENO"; then :
11502 ac_cv_lib_svld_dlopen=yes
11503 else
11504 ac_cv_lib_svld_dlopen=no
11505 fi
11506 rm -f core conftest.err conftest.$ac_objext \
11507 conftest$ac_exeext conftest.$ac_ext
11508 LIBS=$ac_check_lib_save_LIBS
11509 fi
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11511 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11512 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11513 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11514 else
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11516 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11517 if ${ac_cv_lib_dld_dld_link+:} false; then :
11518 $as_echo_n "(cached) " >&6
11519 else
11520 ac_check_lib_save_LIBS=$LIBS
11521 LIBS="-ldld $LIBS"
11522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11523 /* end confdefs.h. */
11524
11525 /* Override any GCC internal prototype to avoid an error.
11526 Use char because int might match the return type of a GCC
11527 builtin and then its argument prototype would still apply. */
11528 #ifdef __cplusplus
11529 extern "C"
11530 #endif
11531 char dld_link ();
11532 int
11533 main ()
11534 {
11535 return dld_link ();
11536 ;
11537 return 0;
11538 }
11539 _ACEOF
11540 if ac_fn_c_try_link "$LINENO"; then :
11541 ac_cv_lib_dld_dld_link=yes
11542 else
11543 ac_cv_lib_dld_dld_link=no
11544 fi
11545 rm -f core conftest.err conftest.$ac_objext \
11546 conftest$ac_exeext conftest.$ac_ext
11547 LIBS=$ac_check_lib_save_LIBS
11548 fi
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11550 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11551 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11552 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11553 fi
11554
11555
11556 fi
11557
11558
11559 fi
11560
11561
11562 fi
11563
11564
11565 fi
11566
11567
11568 fi
11569
11570 ;;
11571 esac
11572
11573 if test no = "$lt_cv_dlopen"; then
11574 enable_dlopen=no
11575 else
11576 enable_dlopen=yes
11577 fi
11578
11579 case $lt_cv_dlopen in
11580 dlopen)
11581 save_CPPFLAGS=$CPPFLAGS
11582 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11583
11584 save_LDFLAGS=$LDFLAGS
11585 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11586
11587 save_LIBS=$LIBS
11588 LIBS="$lt_cv_dlopen_libs $LIBS"
11589
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11591 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11592 if ${lt_cv_dlopen_self+:} false; then :
11593 $as_echo_n "(cached) " >&6
11594 else
11595 if test yes = "$cross_compiling"; then :
11596 lt_cv_dlopen_self=cross
11597 else
11598 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11599 lt_status=$lt_dlunknown
11600 cat > conftest.$ac_ext <<_LT_EOF
11601 #line $LINENO "configure"
11602 #include "confdefs.h"
11603
11604 #if HAVE_DLFCN_H
11605 #include <dlfcn.h>
11606 #endif
11607
11608 #include <stdio.h>
11609
11610 #ifdef RTLD_GLOBAL
11611 # define LT_DLGLOBAL RTLD_GLOBAL
11612 #else
11613 # ifdef DL_GLOBAL
11614 # define LT_DLGLOBAL DL_GLOBAL
11615 # else
11616 # define LT_DLGLOBAL 0
11617 # endif
11618 #endif
11619
11620 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11621 find out it does not work in some platform. */
11622 #ifndef LT_DLLAZY_OR_NOW
11623 # ifdef RTLD_LAZY
11624 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11625 # else
11626 # ifdef DL_LAZY
11627 # define LT_DLLAZY_OR_NOW DL_LAZY
11628 # else
11629 # ifdef RTLD_NOW
11630 # define LT_DLLAZY_OR_NOW RTLD_NOW
11631 # else
11632 # ifdef DL_NOW
11633 # define LT_DLLAZY_OR_NOW DL_NOW
11634 # else
11635 # define LT_DLLAZY_OR_NOW 0
11636 # endif
11637 # endif
11638 # endif
11639 # endif
11640 #endif
11641
11642 /* When -fvisibility=hidden is used, assume the code has been annotated
11643 correspondingly for the symbols needed. */
11644 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11645 int fnord () __attribute__((visibility("default")));
11646 #endif
11647
11648 int fnord () { return 42; }
11649 int main ()
11650 {
11651 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11652 int status = $lt_dlunknown;
11653
11654 if (self)
11655 {
11656 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11657 else
11658 {
11659 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11660 else puts (dlerror ());
11661 }
11662 /* dlclose (self); */
11663 }
11664 else
11665 puts (dlerror ());
11666
11667 return status;
11668 }
11669 _LT_EOF
11670 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11671 (eval $ac_link) 2>&5
11672 ac_status=$?
11673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11674 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11675 (./conftest; exit; ) >&5 2>/dev/null
11676 lt_status=$?
11677 case x$lt_status in
11678 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11679 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11680 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11681 esac
11682 else :
11683 # compilation failed
11684 lt_cv_dlopen_self=no
11685 fi
11686 fi
11687 rm -fr conftest*
11688
11689
11690 fi
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11692 $as_echo "$lt_cv_dlopen_self" >&6; }
11693
11694 if test yes = "$lt_cv_dlopen_self"; then
11695 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11697 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11698 if ${lt_cv_dlopen_self_static+:} false; then :
11699 $as_echo_n "(cached) " >&6
11700 else
11701 if test yes = "$cross_compiling"; then :
11702 lt_cv_dlopen_self_static=cross
11703 else
11704 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11705 lt_status=$lt_dlunknown
11706 cat > conftest.$ac_ext <<_LT_EOF
11707 #line $LINENO "configure"
11708 #include "confdefs.h"
11709
11710 #if HAVE_DLFCN_H
11711 #include <dlfcn.h>
11712 #endif
11713
11714 #include <stdio.h>
11715
11716 #ifdef RTLD_GLOBAL
11717 # define LT_DLGLOBAL RTLD_GLOBAL
11718 #else
11719 # ifdef DL_GLOBAL
11720 # define LT_DLGLOBAL DL_GLOBAL
11721 # else
11722 # define LT_DLGLOBAL 0
11723 # endif
11724 #endif
11725
11726 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11727 find out it does not work in some platform. */
11728 #ifndef LT_DLLAZY_OR_NOW
11729 # ifdef RTLD_LAZY
11730 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11731 # else
11732 # ifdef DL_LAZY
11733 # define LT_DLLAZY_OR_NOW DL_LAZY
11734 # else
11735 # ifdef RTLD_NOW
11736 # define LT_DLLAZY_OR_NOW RTLD_NOW
11737 # else
11738 # ifdef DL_NOW
11739 # define LT_DLLAZY_OR_NOW DL_NOW
11740 # else
11741 # define LT_DLLAZY_OR_NOW 0
11742 # endif
11743 # endif
11744 # endif
11745 # endif
11746 #endif
11747
11748 /* When -fvisibility=hidden is used, assume the code has been annotated
11749 correspondingly for the symbols needed. */
11750 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11751 int fnord () __attribute__((visibility("default")));
11752 #endif
11753
11754 int fnord () { return 42; }
11755 int main ()
11756 {
11757 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11758 int status = $lt_dlunknown;
11759
11760 if (self)
11761 {
11762 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11763 else
11764 {
11765 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11766 else puts (dlerror ());
11767 }
11768 /* dlclose (self); */
11769 }
11770 else
11771 puts (dlerror ());
11772
11773 return status;
11774 }
11775 _LT_EOF
11776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11777 (eval $ac_link) 2>&5
11778 ac_status=$?
11779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11780 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11781 (./conftest; exit; ) >&5 2>/dev/null
11782 lt_status=$?
11783 case x$lt_status in
11784 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11785 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11786 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11787 esac
11788 else :
11789 # compilation failed
11790 lt_cv_dlopen_self_static=no
11791 fi
11792 fi
11793 rm -fr conftest*
11794
11795
11796 fi
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11798 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11799 fi
11800
11801 CPPFLAGS=$save_CPPFLAGS
11802 LDFLAGS=$save_LDFLAGS
11803 LIBS=$save_LIBS
11804 ;;
11805 esac
11806
11807 case $lt_cv_dlopen_self in
11808 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11809 *) enable_dlopen_self=unknown ;;
11810 esac
11811
11812 case $lt_cv_dlopen_self_static in
11813 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11814 *) enable_dlopen_self_static=unknown ;;
11815 esac
11816 fi
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834 striplib=
11835 old_striplib=
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11837 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11838 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11839 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11840 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11842 $as_echo "yes" >&6; }
11843 else
11844 # FIXME - insert some real tests, host_os isn't really good enough
11845 case $host_os in
11846 darwin*)
11847 if test -n "$STRIP"; then
11848 striplib="$STRIP -x"
11849 old_striplib="$STRIP -S"
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11851 $as_echo "yes" >&6; }
11852 else
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11854 $as_echo "no" >&6; }
11855 fi
11856 ;;
11857 *)
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11859 $as_echo "no" >&6; }
11860 ;;
11861 esac
11862 fi
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875 # Report what library types will actually be built
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11877 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11879 $as_echo "$can_build_shared" >&6; }
11880
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11882 $as_echo_n "checking whether to build shared libraries... " >&6; }
11883 test no = "$can_build_shared" && enable_shared=no
11884
11885 # On AIX, shared libraries and static libraries use the same namespace, and
11886 # are all built from PIC.
11887 case $host_os in
11888 aix3*)
11889 test yes = "$enable_shared" && enable_static=no
11890 if test -n "$RANLIB"; then
11891 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11892 postinstall_cmds='$RANLIB $lib'
11893 fi
11894 ;;
11895
11896 aix[4-9]*)
11897 if test ia64 != "$host_cpu"; then
11898 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11899 yes,aix,yes) ;; # shared object as lib.so file only
11900 yes,svr4,*) ;; # shared object as lib.so archive member only
11901 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11902 esac
11903 fi
11904 ;;
11905 esac
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11907 $as_echo "$enable_shared" >&6; }
11908
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11910 $as_echo_n "checking whether to build static libraries... " >&6; }
11911 # Make sure either enable_shared or enable_static is yes.
11912 test yes = "$enable_shared" || enable_static=yes
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11914 $as_echo "$enable_static" >&6; }
11915
11916
11917
11918
11919 fi
11920 ac_ext=c
11921 ac_cpp='$CPP $CPPFLAGS'
11922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11925
11926 CC=$lt_save_CC
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942 ac_config_commands="$ac_config_commands libtool"
11943
11944
11945
11946
11947 # Only expand once:
11948
11949
11950
11951 # Require X.Org macros 1.8 or later for AC_PROG_INSTALL
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11964 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11965 if ${ac_cv_prog_cc_c99+:} false; then :
11966 $as_echo_n "(cached) " >&6
11967 else
11968 ac_cv_prog_cc_c99=no
11969 ac_save_CC=$CC
11970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11971 /* end confdefs.h. */
11972 #include <stdarg.h>
11973 #include <stdbool.h>
11974 #include <stdlib.h>
11975 #include <wchar.h>
11976 #include <stdio.h>
11977
11978 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11979 #define debug(...) fprintf (stderr, __VA_ARGS__)
11980 #define showlist(...) puts (#__VA_ARGS__)
11981 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11982 static void
11983 test_varargs_macros (void)
11984 {
11985 int x = 1234;
11986 int y = 5678;
11987 debug ("Flag");
11988 debug ("X = %d\n", x);
11989 showlist (The first, second, and third items.);
11990 report (x>y, "x is %d but y is %d", x, y);
11991 }
11992
11993 // Check long long types.
11994 #define BIG64 18446744073709551615ull
11995 #define BIG32 4294967295ul
11996 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11997 #if !BIG_OK
11998 your preprocessor is broken;
11999 #endif
12000 #if BIG_OK
12001 #else
12002 your preprocessor is broken;
12003 #endif
12004 static long long int bignum = -9223372036854775807LL;
12005 static unsigned long long int ubignum = BIG64;
12006
12007 struct incomplete_array
12008 {
12009 int datasize;
12010 double data[];
12011 };
12012
12013 struct named_init {
12014 int number;
12015 const wchar_t *name;
12016 double average;
12017 };
12018
12019 typedef const char *ccp;
12020
12021 static inline int
12022 test_restrict (ccp restrict text)
12023 {
12024 // See if C++-style comments work.
12025 // Iterate through items via the restricted pointer.
12026 // Also check for declarations in for loops.
12027 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12028 continue;
12029 return 0;
12030 }
12031
12032 // Check varargs and va_copy.
12033 static void
12034 test_varargs (const char *format, ...)
12035 {
12036 va_list args;
12037 va_start (args, format);
12038 va_list args_copy;
12039 va_copy (args_copy, args);
12040
12041 const char *str;
12042 int number;
12043 float fnumber;
12044
12045 while (*format)
12046 {
12047 switch (*format++)
12048 {
12049 case 's': // string
12050 str = va_arg (args_copy, const char *);
12051 break;
12052 case 'd': // int
12053 number = va_arg (args_copy, int);
12054 break;
12055 case 'f': // float
12056 fnumber = va_arg (args_copy, double);
12057 break;
12058 default:
12059 break;
12060 }
12061 }
12062 va_end (args_copy);
12063 va_end (args);
12064 }
12065
12066 int
12067 main ()
12068 {
12069
12070 // Check bool.
12071 _Bool success = false;
12072
12073 // Check restrict.
12074 if (test_restrict ("String literal") == 0)
12075 success = true;
12076 char *restrict newvar = "Another string";
12077
12078 // Check varargs.
12079 test_varargs ("s, d' f .", "string", 65, 34.234);
12080 test_varargs_macros ();
12081
12082 // Check flexible array members.
12083 struct incomplete_array *ia =
12084 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12085 ia->datasize = 10;
12086 for (int i = 0; i < ia->datasize; ++i)
12087 ia->data[i] = i * 1.234;
12088
12089 // Check named initializers.
12090 struct named_init ni = {
12091 .number = 34,
12092 .name = L"Test wide string",
12093 .average = 543.34343,
12094 };
12095
12096 ni.number = 58;
12097
12098 int dynamic_array[ni.number];
12099 dynamic_array[ni.number - 1] = 543;
12100
12101 // work around unused variable warnings
12102 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12103 || dynamic_array[ni.number - 1] != 543);
12104
12105 ;
12106 return 0;
12107 }
12108 _ACEOF
12109 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12110 do
12111 CC="$ac_save_CC $ac_arg"
12112 if ac_fn_c_try_compile "$LINENO"; then :
12113 ac_cv_prog_cc_c99=$ac_arg
12114 fi
12115 rm -f core conftest.err conftest.$ac_objext
12116 test "x$ac_cv_prog_cc_c99" != "xno" && break
12117 done
12118 rm -f conftest.$ac_ext
12119 CC=$ac_save_CC
12120
12121 fi
12122 # AC_CACHE_VAL
12123 case "x$ac_cv_prog_cc_c99" in
12124 x)
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12126 $as_echo "none needed" >&6; } ;;
12127 xno)
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12129 $as_echo "unsupported" >&6; } ;;
12130 *)
12131 CC="$CC $ac_cv_prog_cc_c99"
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12133 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12134 esac
12135 if test "x$ac_cv_prog_cc_c99" != xno; then :
12136
12137 fi
12138
12139
12140
12141
12142
12143
12144 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12145 if test "x$ac_cv_have_decl___clang__" = xyes; then :
12146 CLANGCC="yes"
12147 else
12148 CLANGCC="no"
12149 fi
12150
12151 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12152 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12153 INTELCC="yes"
12154 else
12155 INTELCC="no"
12156 fi
12157
12158 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12159 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12160 SUNCC="yes"
12161 else
12162 SUNCC="no"
12163 fi
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12174 if test -n "$ac_tool_prefix"; then
12175 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12176 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12178 $as_echo_n "checking for $ac_word... " >&6; }
12179 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12180 $as_echo_n "(cached) " >&6
12181 else
12182 case $PKG_CONFIG in
12183 [\\/]* | ?:[\\/]*)
12184 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12185 ;;
12186 *)
12187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12188 for as_dir in $PATH
12189 do
12190 IFS=$as_save_IFS
12191 test -z "$as_dir" && as_dir=.
12192 for ac_exec_ext in '' $ac_executable_extensions; do
12193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12194 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12196 break 2
12197 fi
12198 done
12199 done
12200 IFS=$as_save_IFS
12201
12202 ;;
12203 esac
12204 fi
12205 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12206 if test -n "$PKG_CONFIG"; then
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12208 $as_echo "$PKG_CONFIG" >&6; }
12209 else
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12211 $as_echo "no" >&6; }
12212 fi
12213
12214
12215 fi
12216 if test -z "$ac_cv_path_PKG_CONFIG"; then
12217 ac_pt_PKG_CONFIG=$PKG_CONFIG
12218 # Extract the first word of "pkg-config", so it can be a program name with args.
12219 set dummy pkg-config; ac_word=$2
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12221 $as_echo_n "checking for $ac_word... " >&6; }
12222 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12223 $as_echo_n "(cached) " >&6
12224 else
12225 case $ac_pt_PKG_CONFIG in
12226 [\\/]* | ?:[\\/]*)
12227 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12228 ;;
12229 *)
12230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12231 for as_dir in $PATH
12232 do
12233 IFS=$as_save_IFS
12234 test -z "$as_dir" && as_dir=.
12235 for ac_exec_ext in '' $ac_executable_extensions; do
12236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12237 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12239 break 2
12240 fi
12241 done
12242 done
12243 IFS=$as_save_IFS
12244
12245 ;;
12246 esac
12247 fi
12248 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12249 if test -n "$ac_pt_PKG_CONFIG"; then
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12251 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12252 else
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12254 $as_echo "no" >&6; }
12255 fi
12256
12257 if test "x$ac_pt_PKG_CONFIG" = x; then
12258 PKG_CONFIG=""
12259 else
12260 case $cross_compiling:$ac_tool_warned in
12261 yes:)
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12264 ac_tool_warned=yes ;;
12265 esac
12266 PKG_CONFIG=$ac_pt_PKG_CONFIG
12267 fi
12268 else
12269 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12270 fi
12271
12272 fi
12273 if test -n "$PKG_CONFIG"; then
12274 _pkg_min_version=0.9.0
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12276 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12277 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12279 $as_echo "yes" >&6; }
12280 else
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12282 $as_echo "no" >&6; }
12283 PKG_CONFIG=""
12284 fi
12285 fi
12286
12287
12288
12289
12290
12291 # Check whether --enable-selective-werror was given.
12292 if test "${enable_selective_werror+set}" = set; then :
12293 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12294 else
12295 SELECTIVE_WERROR=yes
12296 fi
12297
12298
12299
12300
12301
12302 # -v is too short to test reliably with XORG_TESTSET_CFLAG
12303 if test "x$SUNCC" = "xyes"; then
12304 BASE_CFLAGS="-v"
12305 else
12306 BASE_CFLAGS=""
12307 fi
12308
12309 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323 xorg_testset_save_CFLAGS="$CFLAGS"
12324
12325 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12328 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12329 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12330 $as_echo_n "(cached) " >&6
12331 else
12332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12333 /* end confdefs.h. */
12334 int i;
12335 _ACEOF
12336 if ac_fn_c_try_compile "$LINENO"; then :
12337 xorg_cv_cc_flag_unknown_warning_option=yes
12338 else
12339 xorg_cv_cc_flag_unknown_warning_option=no
12340 fi
12341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12342 fi
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12344 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12345 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12346 CFLAGS="$xorg_testset_save_CFLAGS"
12347 fi
12348
12349 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12352 fi
12353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12355 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12356 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12357 $as_echo_n "(cached) " >&6
12358 else
12359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12360 /* end confdefs.h. */
12361 int i;
12362 _ACEOF
12363 if ac_fn_c_try_compile "$LINENO"; then :
12364 xorg_cv_cc_flag_unused_command_line_argument=yes
12365 else
12366 xorg_cv_cc_flag_unused_command_line_argument=no
12367 fi
12368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12369 fi
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12371 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12372 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12373 CFLAGS="$xorg_testset_save_CFLAGS"
12374 fi
12375
12376 found="no"
12377
12378 if test $found = "no" ; then
12379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12381 fi
12382
12383 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12385 fi
12386
12387 CFLAGS="$CFLAGS -Wall"
12388
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12390 $as_echo_n "checking if $CC supports -Wall... " >&6; }
12391 cacheid=xorg_cv_cc_flag__Wall
12392 if eval \${$cacheid+:} false; then :
12393 $as_echo_n "(cached) " >&6
12394 else
12395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12396 /* end confdefs.h. */
12397 int i;
12398 int
12399 main ()
12400 {
12401
12402 ;
12403 return 0;
12404 }
12405 _ACEOF
12406 if ac_fn_c_try_link "$LINENO"; then :
12407 eval $cacheid=yes
12408 else
12409 eval $cacheid=no
12410 fi
12411 rm -f core conftest.err conftest.$ac_objext \
12412 conftest$ac_exeext conftest.$ac_ext
12413 fi
12414
12415
12416 CFLAGS="$xorg_testset_save_CFLAGS"
12417
12418 eval supported=\$$cacheid
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12420 $as_echo "$supported" >&6; }
12421 if test "$supported" = "yes" ; then
12422 BASE_CFLAGS="$BASE_CFLAGS -Wall"
12423 found="yes"
12424 fi
12425 fi
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441 xorg_testset_save_CFLAGS="$CFLAGS"
12442
12443 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12446 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12447 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12448 $as_echo_n "(cached) " >&6
12449 else
12450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12451 /* end confdefs.h. */
12452 int i;
12453 _ACEOF
12454 if ac_fn_c_try_compile "$LINENO"; then :
12455 xorg_cv_cc_flag_unknown_warning_option=yes
12456 else
12457 xorg_cv_cc_flag_unknown_warning_option=no
12458 fi
12459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12460 fi
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12462 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12464 CFLAGS="$xorg_testset_save_CFLAGS"
12465 fi
12466
12467 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12470 fi
12471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12473 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12474 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12475 $as_echo_n "(cached) " >&6
12476 else
12477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12478 /* end confdefs.h. */
12479 int i;
12480 _ACEOF
12481 if ac_fn_c_try_compile "$LINENO"; then :
12482 xorg_cv_cc_flag_unused_command_line_argument=yes
12483 else
12484 xorg_cv_cc_flag_unused_command_line_argument=no
12485 fi
12486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12487 fi
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12489 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12490 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12491 CFLAGS="$xorg_testset_save_CFLAGS"
12492 fi
12493
12494 found="no"
12495
12496 if test $found = "no" ; then
12497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12499 fi
12500
12501 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12503 fi
12504
12505 CFLAGS="$CFLAGS -Wpointer-arith"
12506
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12508 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12509 cacheid=xorg_cv_cc_flag__Wpointer_arith
12510 if eval \${$cacheid+:} false; then :
12511 $as_echo_n "(cached) " >&6
12512 else
12513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12514 /* end confdefs.h. */
12515 int i;
12516 int
12517 main ()
12518 {
12519
12520 ;
12521 return 0;
12522 }
12523 _ACEOF
12524 if ac_fn_c_try_link "$LINENO"; then :
12525 eval $cacheid=yes
12526 else
12527 eval $cacheid=no
12528 fi
12529 rm -f core conftest.err conftest.$ac_objext \
12530 conftest$ac_exeext conftest.$ac_ext
12531 fi
12532
12533
12534 CFLAGS="$xorg_testset_save_CFLAGS"
12535
12536 eval supported=\$$cacheid
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12538 $as_echo "$supported" >&6; }
12539 if test "$supported" = "yes" ; then
12540 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12541 found="yes"
12542 fi
12543 fi
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559 xorg_testset_save_CFLAGS="$CFLAGS"
12560
12561 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12564 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12565 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12566 $as_echo_n "(cached) " >&6
12567 else
12568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12569 /* end confdefs.h. */
12570 int i;
12571 _ACEOF
12572 if ac_fn_c_try_compile "$LINENO"; then :
12573 xorg_cv_cc_flag_unknown_warning_option=yes
12574 else
12575 xorg_cv_cc_flag_unknown_warning_option=no
12576 fi
12577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12578 fi
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12580 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12581 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12582 CFLAGS="$xorg_testset_save_CFLAGS"
12583 fi
12584
12585 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12588 fi
12589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12591 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12592 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12593 $as_echo_n "(cached) " >&6
12594 else
12595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12596 /* end confdefs.h. */
12597 int i;
12598 _ACEOF
12599 if ac_fn_c_try_compile "$LINENO"; then :
12600 xorg_cv_cc_flag_unused_command_line_argument=yes
12601 else
12602 xorg_cv_cc_flag_unused_command_line_argument=no
12603 fi
12604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12605 fi
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12607 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12608 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12609 CFLAGS="$xorg_testset_save_CFLAGS"
12610 fi
12611
12612 found="no"
12613
12614 if test $found = "no" ; then
12615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12617 fi
12618
12619 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12621 fi
12622
12623 CFLAGS="$CFLAGS -Wmissing-declarations"
12624
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12626 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12627 cacheid=xorg_cv_cc_flag__Wmissing_declarations
12628 if eval \${$cacheid+:} false; then :
12629 $as_echo_n "(cached) " >&6
12630 else
12631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12632 /* end confdefs.h. */
12633 int i;
12634 int
12635 main ()
12636 {
12637
12638 ;
12639 return 0;
12640 }
12641 _ACEOF
12642 if ac_fn_c_try_link "$LINENO"; then :
12643 eval $cacheid=yes
12644 else
12645 eval $cacheid=no
12646 fi
12647 rm -f core conftest.err conftest.$ac_objext \
12648 conftest$ac_exeext conftest.$ac_ext
12649 fi
12650
12651
12652 CFLAGS="$xorg_testset_save_CFLAGS"
12653
12654 eval supported=\$$cacheid
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12656 $as_echo "$supported" >&6; }
12657 if test "$supported" = "yes" ; then
12658 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12659 found="yes"
12660 fi
12661 fi
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677 xorg_testset_save_CFLAGS="$CFLAGS"
12678
12679 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12680 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12682 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12683 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12684 $as_echo_n "(cached) " >&6
12685 else
12686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12687 /* end confdefs.h. */
12688 int i;
12689 _ACEOF
12690 if ac_fn_c_try_compile "$LINENO"; then :
12691 xorg_cv_cc_flag_unknown_warning_option=yes
12692 else
12693 xorg_cv_cc_flag_unknown_warning_option=no
12694 fi
12695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12696 fi
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12698 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12699 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12700 CFLAGS="$xorg_testset_save_CFLAGS"
12701 fi
12702
12703 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12704 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12705 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12706 fi
12707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12709 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12710 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12711 $as_echo_n "(cached) " >&6
12712 else
12713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12714 /* end confdefs.h. */
12715 int i;
12716 _ACEOF
12717 if ac_fn_c_try_compile "$LINENO"; then :
12718 xorg_cv_cc_flag_unused_command_line_argument=yes
12719 else
12720 xorg_cv_cc_flag_unused_command_line_argument=no
12721 fi
12722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12723 fi
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12725 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12726 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12727 CFLAGS="$xorg_testset_save_CFLAGS"
12728 fi
12729
12730 found="no"
12731
12732 if test $found = "no" ; then
12733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12734 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12735 fi
12736
12737 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12739 fi
12740
12741 CFLAGS="$CFLAGS -Wformat=2"
12742
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12744 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12745 cacheid=xorg_cv_cc_flag__Wformat_2
12746 if eval \${$cacheid+:} false; then :
12747 $as_echo_n "(cached) " >&6
12748 else
12749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12750 /* end confdefs.h. */
12751 int i;
12752 int
12753 main ()
12754 {
12755
12756 ;
12757 return 0;
12758 }
12759 _ACEOF
12760 if ac_fn_c_try_link "$LINENO"; then :
12761 eval $cacheid=yes
12762 else
12763 eval $cacheid=no
12764 fi
12765 rm -f core conftest.err conftest.$ac_objext \
12766 conftest$ac_exeext conftest.$ac_ext
12767 fi
12768
12769
12770 CFLAGS="$xorg_testset_save_CFLAGS"
12771
12772 eval supported=\$$cacheid
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12774 $as_echo "$supported" >&6; }
12775 if test "$supported" = "yes" ; then
12776 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12777 found="yes"
12778 fi
12779 fi
12780
12781 if test $found = "no" ; then
12782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12783 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12784 fi
12785
12786 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12788 fi
12789
12790 CFLAGS="$CFLAGS -Wformat"
12791
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12793 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12794 cacheid=xorg_cv_cc_flag__Wformat
12795 if eval \${$cacheid+:} false; then :
12796 $as_echo_n "(cached) " >&6
12797 else
12798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12799 /* end confdefs.h. */
12800 int i;
12801 int
12802 main ()
12803 {
12804
12805 ;
12806 return 0;
12807 }
12808 _ACEOF
12809 if ac_fn_c_try_link "$LINENO"; then :
12810 eval $cacheid=yes
12811 else
12812 eval $cacheid=no
12813 fi
12814 rm -f core conftest.err conftest.$ac_objext \
12815 conftest$ac_exeext conftest.$ac_ext
12816 fi
12817
12818
12819 CFLAGS="$xorg_testset_save_CFLAGS"
12820
12821 eval supported=\$$cacheid
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12823 $as_echo "$supported" >&6; }
12824 if test "$supported" = "yes" ; then
12825 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12826 found="yes"
12827 fi
12828 fi
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846 xorg_testset_save_CFLAGS="$CFLAGS"
12847
12848 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12849 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12851 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12852 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12853 $as_echo_n "(cached) " >&6
12854 else
12855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12856 /* end confdefs.h. */
12857 int i;
12858 _ACEOF
12859 if ac_fn_c_try_compile "$LINENO"; then :
12860 xorg_cv_cc_flag_unknown_warning_option=yes
12861 else
12862 xorg_cv_cc_flag_unknown_warning_option=no
12863 fi
12864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12865 fi
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12867 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12868 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12869 CFLAGS="$xorg_testset_save_CFLAGS"
12870 fi
12871
12872 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12875 fi
12876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12878 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12879 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12880 $as_echo_n "(cached) " >&6
12881 else
12882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12883 /* end confdefs.h. */
12884 int i;
12885 _ACEOF
12886 if ac_fn_c_try_compile "$LINENO"; then :
12887 xorg_cv_cc_flag_unused_command_line_argument=yes
12888 else
12889 xorg_cv_cc_flag_unused_command_line_argument=no
12890 fi
12891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12892 fi
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12894 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12895 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12896 CFLAGS="$xorg_testset_save_CFLAGS"
12897 fi
12898
12899 found="no"
12900
12901 if test $found = "no" ; then
12902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12903 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12904 fi
12905
12906 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12908 fi
12909
12910 CFLAGS="$CFLAGS -Wstrict-prototypes"
12911
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12913 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12914 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12915 if eval \${$cacheid+:} false; then :
12916 $as_echo_n "(cached) " >&6
12917 else
12918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12919 /* end confdefs.h. */
12920 int i;
12921 int
12922 main ()
12923 {
12924
12925 ;
12926 return 0;
12927 }
12928 _ACEOF
12929 if ac_fn_c_try_link "$LINENO"; then :
12930 eval $cacheid=yes
12931 else
12932 eval $cacheid=no
12933 fi
12934 rm -f core conftest.err conftest.$ac_objext \
12935 conftest$ac_exeext conftest.$ac_ext
12936 fi
12937
12938
12939 CFLAGS="$xorg_testset_save_CFLAGS"
12940
12941 eval supported=\$$cacheid
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12943 $as_echo "$supported" >&6; }
12944 if test "$supported" = "yes" ; then
12945 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12946 found="yes"
12947 fi
12948 fi
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964 xorg_testset_save_CFLAGS="$CFLAGS"
12965
12966 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12969 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12970 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12971 $as_echo_n "(cached) " >&6
12972 else
12973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12974 /* end confdefs.h. */
12975 int i;
12976 _ACEOF
12977 if ac_fn_c_try_compile "$LINENO"; then :
12978 xorg_cv_cc_flag_unknown_warning_option=yes
12979 else
12980 xorg_cv_cc_flag_unknown_warning_option=no
12981 fi
12982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12983 fi
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12985 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12987 CFLAGS="$xorg_testset_save_CFLAGS"
12988 fi
12989
12990 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12993 fi
12994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12996 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12997 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12998 $as_echo_n "(cached) " >&6
12999 else
13000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13001 /* end confdefs.h. */
13002 int i;
13003 _ACEOF
13004 if ac_fn_c_try_compile "$LINENO"; then :
13005 xorg_cv_cc_flag_unused_command_line_argument=yes
13006 else
13007 xorg_cv_cc_flag_unused_command_line_argument=no
13008 fi
13009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13010 fi
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13012 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13014 CFLAGS="$xorg_testset_save_CFLAGS"
13015 fi
13016
13017 found="no"
13018
13019 if test $found = "no" ; then
13020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13021 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13022 fi
13023
13024 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13026 fi
13027
13028 CFLAGS="$CFLAGS -Wmissing-prototypes"
13029
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13031 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13032 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13033 if eval \${$cacheid+:} false; then :
13034 $as_echo_n "(cached) " >&6
13035 else
13036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13037 /* end confdefs.h. */
13038 int i;
13039 int
13040 main ()
13041 {
13042
13043 ;
13044 return 0;
13045 }
13046 _ACEOF
13047 if ac_fn_c_try_link "$LINENO"; then :
13048 eval $cacheid=yes
13049 else
13050 eval $cacheid=no
13051 fi
13052 rm -f core conftest.err conftest.$ac_objext \
13053 conftest$ac_exeext conftest.$ac_ext
13054 fi
13055
13056
13057 CFLAGS="$xorg_testset_save_CFLAGS"
13058
13059 eval supported=\$$cacheid
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13061 $as_echo "$supported" >&6; }
13062 if test "$supported" = "yes" ; then
13063 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13064 found="yes"
13065 fi
13066 fi
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082 xorg_testset_save_CFLAGS="$CFLAGS"
13083
13084 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13087 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13088 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13089 $as_echo_n "(cached) " >&6
13090 else
13091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13092 /* end confdefs.h. */
13093 int i;
13094 _ACEOF
13095 if ac_fn_c_try_compile "$LINENO"; then :
13096 xorg_cv_cc_flag_unknown_warning_option=yes
13097 else
13098 xorg_cv_cc_flag_unknown_warning_option=no
13099 fi
13100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13101 fi
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13103 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13104 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13105 CFLAGS="$xorg_testset_save_CFLAGS"
13106 fi
13107
13108 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13111 fi
13112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13114 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13115 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13116 $as_echo_n "(cached) " >&6
13117 else
13118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13119 /* end confdefs.h. */
13120 int i;
13121 _ACEOF
13122 if ac_fn_c_try_compile "$LINENO"; then :
13123 xorg_cv_cc_flag_unused_command_line_argument=yes
13124 else
13125 xorg_cv_cc_flag_unused_command_line_argument=no
13126 fi
13127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13128 fi
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13130 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13131 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13132 CFLAGS="$xorg_testset_save_CFLAGS"
13133 fi
13134
13135 found="no"
13136
13137 if test $found = "no" ; then
13138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13140 fi
13141
13142 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13144 fi
13145
13146 CFLAGS="$CFLAGS -Wnested-externs"
13147
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13149 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13150 cacheid=xorg_cv_cc_flag__Wnested_externs
13151 if eval \${$cacheid+:} false; then :
13152 $as_echo_n "(cached) " >&6
13153 else
13154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13155 /* end confdefs.h. */
13156 int i;
13157 int
13158 main ()
13159 {
13160
13161 ;
13162 return 0;
13163 }
13164 _ACEOF
13165 if ac_fn_c_try_link "$LINENO"; then :
13166 eval $cacheid=yes
13167 else
13168 eval $cacheid=no
13169 fi
13170 rm -f core conftest.err conftest.$ac_objext \
13171 conftest$ac_exeext conftest.$ac_ext
13172 fi
13173
13174
13175 CFLAGS="$xorg_testset_save_CFLAGS"
13176
13177 eval supported=\$$cacheid
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13179 $as_echo "$supported" >&6; }
13180 if test "$supported" = "yes" ; then
13181 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13182 found="yes"
13183 fi
13184 fi
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200 xorg_testset_save_CFLAGS="$CFLAGS"
13201
13202 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13205 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13206 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13207 $as_echo_n "(cached) " >&6
13208 else
13209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13210 /* end confdefs.h. */
13211 int i;
13212 _ACEOF
13213 if ac_fn_c_try_compile "$LINENO"; then :
13214 xorg_cv_cc_flag_unknown_warning_option=yes
13215 else
13216 xorg_cv_cc_flag_unknown_warning_option=no
13217 fi
13218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13219 fi
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13221 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13222 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13223 CFLAGS="$xorg_testset_save_CFLAGS"
13224 fi
13225
13226 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13229 fi
13230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13232 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13233 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13234 $as_echo_n "(cached) " >&6
13235 else
13236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13237 /* end confdefs.h. */
13238 int i;
13239 _ACEOF
13240 if ac_fn_c_try_compile "$LINENO"; then :
13241 xorg_cv_cc_flag_unused_command_line_argument=yes
13242 else
13243 xorg_cv_cc_flag_unused_command_line_argument=no
13244 fi
13245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13246 fi
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13248 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13249 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13250 CFLAGS="$xorg_testset_save_CFLAGS"
13251 fi
13252
13253 found="no"
13254
13255 if test $found = "no" ; then
13256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13258 fi
13259
13260 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13262 fi
13263
13264 CFLAGS="$CFLAGS -Wbad-function-cast"
13265
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13267 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13268 cacheid=xorg_cv_cc_flag__Wbad_function_cast
13269 if eval \${$cacheid+:} false; then :
13270 $as_echo_n "(cached) " >&6
13271 else
13272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13273 /* end confdefs.h. */
13274 int i;
13275 int
13276 main ()
13277 {
13278
13279 ;
13280 return 0;
13281 }
13282 _ACEOF
13283 if ac_fn_c_try_link "$LINENO"; then :
13284 eval $cacheid=yes
13285 else
13286 eval $cacheid=no
13287 fi
13288 rm -f core conftest.err conftest.$ac_objext \
13289 conftest$ac_exeext conftest.$ac_ext
13290 fi
13291
13292
13293 CFLAGS="$xorg_testset_save_CFLAGS"
13294
13295 eval supported=\$$cacheid
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13297 $as_echo "$supported" >&6; }
13298 if test "$supported" = "yes" ; then
13299 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13300 found="yes"
13301 fi
13302 fi
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318 xorg_testset_save_CFLAGS="$CFLAGS"
13319
13320 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13323 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13324 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13325 $as_echo_n "(cached) " >&6
13326 else
13327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13328 /* end confdefs.h. */
13329 int i;
13330 _ACEOF
13331 if ac_fn_c_try_compile "$LINENO"; then :
13332 xorg_cv_cc_flag_unknown_warning_option=yes
13333 else
13334 xorg_cv_cc_flag_unknown_warning_option=no
13335 fi
13336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13337 fi
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13339 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13341 CFLAGS="$xorg_testset_save_CFLAGS"
13342 fi
13343
13344 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13347 fi
13348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13350 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13351 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13352 $as_echo_n "(cached) " >&6
13353 else
13354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13355 /* end confdefs.h. */
13356 int i;
13357 _ACEOF
13358 if ac_fn_c_try_compile "$LINENO"; then :
13359 xorg_cv_cc_flag_unused_command_line_argument=yes
13360 else
13361 xorg_cv_cc_flag_unused_command_line_argument=no
13362 fi
13363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13364 fi
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13366 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13368 CFLAGS="$xorg_testset_save_CFLAGS"
13369 fi
13370
13371 found="no"
13372
13373 if test $found = "no" ; then
13374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13376 fi
13377
13378 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13380 fi
13381
13382 CFLAGS="$CFLAGS -Wold-style-definition"
13383
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13385 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13386 cacheid=xorg_cv_cc_flag__Wold_style_definition
13387 if eval \${$cacheid+:} false; then :
13388 $as_echo_n "(cached) " >&6
13389 else
13390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13391 /* end confdefs.h. */
13392 int i;
13393 int
13394 main ()
13395 {
13396
13397 ;
13398 return 0;
13399 }
13400 _ACEOF
13401 if ac_fn_c_try_link "$LINENO"; then :
13402 eval $cacheid=yes
13403 else
13404 eval $cacheid=no
13405 fi
13406 rm -f core conftest.err conftest.$ac_objext \
13407 conftest$ac_exeext conftest.$ac_ext
13408 fi
13409
13410
13411 CFLAGS="$xorg_testset_save_CFLAGS"
13412
13413 eval supported=\$$cacheid
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13415 $as_echo "$supported" >&6; }
13416 if test "$supported" = "yes" ; then
13417 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13418 found="yes"
13419 fi
13420 fi
13421
13422 if test $found = "no" ; then
13423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13424 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13425 fi
13426
13427 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13428 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13429 fi
13430
13431 CFLAGS="$CFLAGS -fd"
13432
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13434 $as_echo_n "checking if $CC supports -fd... " >&6; }
13435 cacheid=xorg_cv_cc_flag__fd
13436 if eval \${$cacheid+:} false; then :
13437 $as_echo_n "(cached) " >&6
13438 else
13439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13440 /* end confdefs.h. */
13441 int i;
13442 int
13443 main ()
13444 {
13445
13446 ;
13447 return 0;
13448 }
13449 _ACEOF
13450 if ac_fn_c_try_link "$LINENO"; then :
13451 eval $cacheid=yes
13452 else
13453 eval $cacheid=no
13454 fi
13455 rm -f core conftest.err conftest.$ac_objext \
13456 conftest$ac_exeext conftest.$ac_ext
13457 fi
13458
13459
13460 CFLAGS="$xorg_testset_save_CFLAGS"
13461
13462 eval supported=\$$cacheid
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13464 $as_echo "$supported" >&6; }
13465 if test "$supported" = "yes" ; then
13466 BASE_CFLAGS="$BASE_CFLAGS -fd"
13467 found="yes"
13468 fi
13469 fi
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485 xorg_testset_save_CFLAGS="$CFLAGS"
13486
13487 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13488 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13490 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13491 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13492 $as_echo_n "(cached) " >&6
13493 else
13494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13495 /* end confdefs.h. */
13496 int i;
13497 _ACEOF
13498 if ac_fn_c_try_compile "$LINENO"; then :
13499 xorg_cv_cc_flag_unknown_warning_option=yes
13500 else
13501 xorg_cv_cc_flag_unknown_warning_option=no
13502 fi
13503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13504 fi
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13506 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13507 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13508 CFLAGS="$xorg_testset_save_CFLAGS"
13509 fi
13510
13511 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13514 fi
13515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13517 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13518 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13519 $as_echo_n "(cached) " >&6
13520 else
13521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13522 /* end confdefs.h. */
13523 int i;
13524 _ACEOF
13525 if ac_fn_c_try_compile "$LINENO"; then :
13526 xorg_cv_cc_flag_unused_command_line_argument=yes
13527 else
13528 xorg_cv_cc_flag_unused_command_line_argument=no
13529 fi
13530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13531 fi
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13533 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13534 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13535 CFLAGS="$xorg_testset_save_CFLAGS"
13536 fi
13537
13538 found="no"
13539
13540 if test $found = "no" ; then
13541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13543 fi
13544
13545 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13547 fi
13548
13549 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13550
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13552 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13553 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13554 if eval \${$cacheid+:} false; then :
13555 $as_echo_n "(cached) " >&6
13556 else
13557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13558 /* end confdefs.h. */
13559 int i;
13560 int
13561 main ()
13562 {
13563
13564 ;
13565 return 0;
13566 }
13567 _ACEOF
13568 if ac_fn_c_try_link "$LINENO"; then :
13569 eval $cacheid=yes
13570 else
13571 eval $cacheid=no
13572 fi
13573 rm -f core conftest.err conftest.$ac_objext \
13574 conftest$ac_exeext conftest.$ac_ext
13575 fi
13576
13577
13578 CFLAGS="$xorg_testset_save_CFLAGS"
13579
13580 eval supported=\$$cacheid
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13582 $as_echo "$supported" >&6; }
13583 if test "$supported" = "yes" ; then
13584 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13585 found="yes"
13586 fi
13587 fi
13588
13589
13590
13591
13592
13593 # This chunk adds additional warnings that could catch undesired effects.
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607 xorg_testset_save_CFLAGS="$CFLAGS"
13608
13609 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13612 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13613 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13614 $as_echo_n "(cached) " >&6
13615 else
13616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13617 /* end confdefs.h. */
13618 int i;
13619 _ACEOF
13620 if ac_fn_c_try_compile "$LINENO"; then :
13621 xorg_cv_cc_flag_unknown_warning_option=yes
13622 else
13623 xorg_cv_cc_flag_unknown_warning_option=no
13624 fi
13625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13626 fi
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13628 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13629 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13630 CFLAGS="$xorg_testset_save_CFLAGS"
13631 fi
13632
13633 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13634 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13635 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13636 fi
13637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13639 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13640 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13641 $as_echo_n "(cached) " >&6
13642 else
13643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13644 /* end confdefs.h. */
13645 int i;
13646 _ACEOF
13647 if ac_fn_c_try_compile "$LINENO"; then :
13648 xorg_cv_cc_flag_unused_command_line_argument=yes
13649 else
13650 xorg_cv_cc_flag_unused_command_line_argument=no
13651 fi
13652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13653 fi
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13655 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13656 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13657 CFLAGS="$xorg_testset_save_CFLAGS"
13658 fi
13659
13660 found="no"
13661
13662 if test $found = "no" ; then
13663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13665 fi
13666
13667 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13669 fi
13670
13671 CFLAGS="$CFLAGS -Wunused"
13672
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13674 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13675 cacheid=xorg_cv_cc_flag__Wunused
13676 if eval \${$cacheid+:} false; then :
13677 $as_echo_n "(cached) " >&6
13678 else
13679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13680 /* end confdefs.h. */
13681 int i;
13682 int
13683 main ()
13684 {
13685
13686 ;
13687 return 0;
13688 }
13689 _ACEOF
13690 if ac_fn_c_try_link "$LINENO"; then :
13691 eval $cacheid=yes
13692 else
13693 eval $cacheid=no
13694 fi
13695 rm -f core conftest.err conftest.$ac_objext \
13696 conftest$ac_exeext conftest.$ac_ext
13697 fi
13698
13699
13700 CFLAGS="$xorg_testset_save_CFLAGS"
13701
13702 eval supported=\$$cacheid
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13704 $as_echo "$supported" >&6; }
13705 if test "$supported" = "yes" ; then
13706 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13707 found="yes"
13708 fi
13709 fi
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725 xorg_testset_save_CFLAGS="$CFLAGS"
13726
13727 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13730 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13731 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13732 $as_echo_n "(cached) " >&6
13733 else
13734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13735 /* end confdefs.h. */
13736 int i;
13737 _ACEOF
13738 if ac_fn_c_try_compile "$LINENO"; then :
13739 xorg_cv_cc_flag_unknown_warning_option=yes
13740 else
13741 xorg_cv_cc_flag_unknown_warning_option=no
13742 fi
13743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13744 fi
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13746 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13747 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13748 CFLAGS="$xorg_testset_save_CFLAGS"
13749 fi
13750
13751 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13754 fi
13755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13757 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13758 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13759 $as_echo_n "(cached) " >&6
13760 else
13761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13762 /* end confdefs.h. */
13763 int i;
13764 _ACEOF
13765 if ac_fn_c_try_compile "$LINENO"; then :
13766 xorg_cv_cc_flag_unused_command_line_argument=yes
13767 else
13768 xorg_cv_cc_flag_unused_command_line_argument=no
13769 fi
13770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13771 fi
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13773 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13774 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13775 CFLAGS="$xorg_testset_save_CFLAGS"
13776 fi
13777
13778 found="no"
13779
13780 if test $found = "no" ; then
13781 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13783 fi
13784
13785 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13787 fi
13788
13789 CFLAGS="$CFLAGS -Wuninitialized"
13790
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13792 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13793 cacheid=xorg_cv_cc_flag__Wuninitialized
13794 if eval \${$cacheid+:} false; then :
13795 $as_echo_n "(cached) " >&6
13796 else
13797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13798 /* end confdefs.h. */
13799 int i;
13800 int
13801 main ()
13802 {
13803
13804 ;
13805 return 0;
13806 }
13807 _ACEOF
13808 if ac_fn_c_try_link "$LINENO"; then :
13809 eval $cacheid=yes
13810 else
13811 eval $cacheid=no
13812 fi
13813 rm -f core conftest.err conftest.$ac_objext \
13814 conftest$ac_exeext conftest.$ac_ext
13815 fi
13816
13817
13818 CFLAGS="$xorg_testset_save_CFLAGS"
13819
13820 eval supported=\$$cacheid
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13822 $as_echo "$supported" >&6; }
13823 if test "$supported" = "yes" ; then
13824 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13825 found="yes"
13826 fi
13827 fi
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843 xorg_testset_save_CFLAGS="$CFLAGS"
13844
13845 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13848 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13849 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13850 $as_echo_n "(cached) " >&6
13851 else
13852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13853 /* end confdefs.h. */
13854 int i;
13855 _ACEOF
13856 if ac_fn_c_try_compile "$LINENO"; then :
13857 xorg_cv_cc_flag_unknown_warning_option=yes
13858 else
13859 xorg_cv_cc_flag_unknown_warning_option=no
13860 fi
13861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13862 fi
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13864 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13865 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13866 CFLAGS="$xorg_testset_save_CFLAGS"
13867 fi
13868
13869 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13872 fi
13873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13875 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13876 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13877 $as_echo_n "(cached) " >&6
13878 else
13879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13880 /* end confdefs.h. */
13881 int i;
13882 _ACEOF
13883 if ac_fn_c_try_compile "$LINENO"; then :
13884 xorg_cv_cc_flag_unused_command_line_argument=yes
13885 else
13886 xorg_cv_cc_flag_unused_command_line_argument=no
13887 fi
13888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13889 fi
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13891 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13892 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13893 CFLAGS="$xorg_testset_save_CFLAGS"
13894 fi
13895
13896 found="no"
13897
13898 if test $found = "no" ; then
13899 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13901 fi
13902
13903 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13905 fi
13906
13907 CFLAGS="$CFLAGS -Wshadow"
13908
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13910 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13911 cacheid=xorg_cv_cc_flag__Wshadow
13912 if eval \${$cacheid+:} false; then :
13913 $as_echo_n "(cached) " >&6
13914 else
13915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13916 /* end confdefs.h. */
13917 int i;
13918 int
13919 main ()
13920 {
13921
13922 ;
13923 return 0;
13924 }
13925 _ACEOF
13926 if ac_fn_c_try_link "$LINENO"; then :
13927 eval $cacheid=yes
13928 else
13929 eval $cacheid=no
13930 fi
13931 rm -f core conftest.err conftest.$ac_objext \
13932 conftest$ac_exeext conftest.$ac_ext
13933 fi
13934
13935
13936 CFLAGS="$xorg_testset_save_CFLAGS"
13937
13938 eval supported=\$$cacheid
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13940 $as_echo "$supported" >&6; }
13941 if test "$supported" = "yes" ; then
13942 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13943 found="yes"
13944 fi
13945 fi
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961 xorg_testset_save_CFLAGS="$CFLAGS"
13962
13963 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13964 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13966 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13967 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13968 $as_echo_n "(cached) " >&6
13969 else
13970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13971 /* end confdefs.h. */
13972 int i;
13973 _ACEOF
13974 if ac_fn_c_try_compile "$LINENO"; then :
13975 xorg_cv_cc_flag_unknown_warning_option=yes
13976 else
13977 xorg_cv_cc_flag_unknown_warning_option=no
13978 fi
13979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13980 fi
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13982 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13984 CFLAGS="$xorg_testset_save_CFLAGS"
13985 fi
13986
13987 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13990 fi
13991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13993 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13994 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13995 $as_echo_n "(cached) " >&6
13996 else
13997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13998 /* end confdefs.h. */
13999 int i;
14000 _ACEOF
14001 if ac_fn_c_try_compile "$LINENO"; then :
14002 xorg_cv_cc_flag_unused_command_line_argument=yes
14003 else
14004 xorg_cv_cc_flag_unused_command_line_argument=no
14005 fi
14006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14007 fi
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14009 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14010 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14011 CFLAGS="$xorg_testset_save_CFLAGS"
14012 fi
14013
14014 found="no"
14015
14016 if test $found = "no" ; then
14017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14019 fi
14020
14021 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14023 fi
14024
14025 CFLAGS="$CFLAGS -Wmissing-noreturn"
14026
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14028 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14029 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14030 if eval \${$cacheid+:} false; then :
14031 $as_echo_n "(cached) " >&6
14032 else
14033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14034 /* end confdefs.h. */
14035 int i;
14036 int
14037 main ()
14038 {
14039
14040 ;
14041 return 0;
14042 }
14043 _ACEOF
14044 if ac_fn_c_try_link "$LINENO"; then :
14045 eval $cacheid=yes
14046 else
14047 eval $cacheid=no
14048 fi
14049 rm -f core conftest.err conftest.$ac_objext \
14050 conftest$ac_exeext conftest.$ac_ext
14051 fi
14052
14053
14054 CFLAGS="$xorg_testset_save_CFLAGS"
14055
14056 eval supported=\$$cacheid
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14058 $as_echo "$supported" >&6; }
14059 if test "$supported" = "yes" ; then
14060 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14061 found="yes"
14062 fi
14063 fi
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079 xorg_testset_save_CFLAGS="$CFLAGS"
14080
14081 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14084 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14085 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14086 $as_echo_n "(cached) " >&6
14087 else
14088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14089 /* end confdefs.h. */
14090 int i;
14091 _ACEOF
14092 if ac_fn_c_try_compile "$LINENO"; then :
14093 xorg_cv_cc_flag_unknown_warning_option=yes
14094 else
14095 xorg_cv_cc_flag_unknown_warning_option=no
14096 fi
14097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14098 fi
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14100 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14101 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14102 CFLAGS="$xorg_testset_save_CFLAGS"
14103 fi
14104
14105 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14108 fi
14109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14111 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14112 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14113 $as_echo_n "(cached) " >&6
14114 else
14115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14116 /* end confdefs.h. */
14117 int i;
14118 _ACEOF
14119 if ac_fn_c_try_compile "$LINENO"; then :
14120 xorg_cv_cc_flag_unused_command_line_argument=yes
14121 else
14122 xorg_cv_cc_flag_unused_command_line_argument=no
14123 fi
14124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14125 fi
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14127 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14128 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14129 CFLAGS="$xorg_testset_save_CFLAGS"
14130 fi
14131
14132 found="no"
14133
14134 if test $found = "no" ; then
14135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14137 fi
14138
14139 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14141 fi
14142
14143 CFLAGS="$CFLAGS -Wmissing-format-attribute"
14144
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14146 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14147 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14148 if eval \${$cacheid+:} false; then :
14149 $as_echo_n "(cached) " >&6
14150 else
14151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14152 /* end confdefs.h. */
14153 int i;
14154 int
14155 main ()
14156 {
14157
14158 ;
14159 return 0;
14160 }
14161 _ACEOF
14162 if ac_fn_c_try_link "$LINENO"; then :
14163 eval $cacheid=yes
14164 else
14165 eval $cacheid=no
14166 fi
14167 rm -f core conftest.err conftest.$ac_objext \
14168 conftest$ac_exeext conftest.$ac_ext
14169 fi
14170
14171
14172 CFLAGS="$xorg_testset_save_CFLAGS"
14173
14174 eval supported=\$$cacheid
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14176 $as_echo "$supported" >&6; }
14177 if test "$supported" = "yes" ; then
14178 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14179 found="yes"
14180 fi
14181 fi
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197 xorg_testset_save_CFLAGS="$CFLAGS"
14198
14199 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14202 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14203 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14204 $as_echo_n "(cached) " >&6
14205 else
14206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14207 /* end confdefs.h. */
14208 int i;
14209 _ACEOF
14210 if ac_fn_c_try_compile "$LINENO"; then :
14211 xorg_cv_cc_flag_unknown_warning_option=yes
14212 else
14213 xorg_cv_cc_flag_unknown_warning_option=no
14214 fi
14215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14216 fi
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14218 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14219 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14220 CFLAGS="$xorg_testset_save_CFLAGS"
14221 fi
14222
14223 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14226 fi
14227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14229 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14230 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14231 $as_echo_n "(cached) " >&6
14232 else
14233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14234 /* end confdefs.h. */
14235 int i;
14236 _ACEOF
14237 if ac_fn_c_try_compile "$LINENO"; then :
14238 xorg_cv_cc_flag_unused_command_line_argument=yes
14239 else
14240 xorg_cv_cc_flag_unused_command_line_argument=no
14241 fi
14242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14243 fi
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14245 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14246 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14247 CFLAGS="$xorg_testset_save_CFLAGS"
14248 fi
14249
14250 found="no"
14251
14252 if test $found = "no" ; then
14253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14255 fi
14256
14257 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14259 fi
14260
14261 CFLAGS="$CFLAGS -Wredundant-decls"
14262
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14264 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14265 cacheid=xorg_cv_cc_flag__Wredundant_decls
14266 if eval \${$cacheid+:} false; then :
14267 $as_echo_n "(cached) " >&6
14268 else
14269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14270 /* end confdefs.h. */
14271 int i;
14272 int
14273 main ()
14274 {
14275
14276 ;
14277 return 0;
14278 }
14279 _ACEOF
14280 if ac_fn_c_try_link "$LINENO"; then :
14281 eval $cacheid=yes
14282 else
14283 eval $cacheid=no
14284 fi
14285 rm -f core conftest.err conftest.$ac_objext \
14286 conftest$ac_exeext conftest.$ac_ext
14287 fi
14288
14289
14290 CFLAGS="$xorg_testset_save_CFLAGS"
14291
14292 eval supported=\$$cacheid
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14294 $as_echo "$supported" >&6; }
14295 if test "$supported" = "yes" ; then
14296 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14297 found="yes"
14298 fi
14299 fi
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315 xorg_testset_save_CFLAGS="$CFLAGS"
14316
14317 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14320 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14321 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14322 $as_echo_n "(cached) " >&6
14323 else
14324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14325 /* end confdefs.h. */
14326 int i;
14327 _ACEOF
14328 if ac_fn_c_try_compile "$LINENO"; then :
14329 xorg_cv_cc_flag_unknown_warning_option=yes
14330 else
14331 xorg_cv_cc_flag_unknown_warning_option=no
14332 fi
14333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14334 fi
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14336 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14337 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14338 CFLAGS="$xorg_testset_save_CFLAGS"
14339 fi
14340
14341 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14344 fi
14345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14347 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14348 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14349 $as_echo_n "(cached) " >&6
14350 else
14351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14352 /* end confdefs.h. */
14353 int i;
14354 _ACEOF
14355 if ac_fn_c_try_compile "$LINENO"; then :
14356 xorg_cv_cc_flag_unused_command_line_argument=yes
14357 else
14358 xorg_cv_cc_flag_unused_command_line_argument=no
14359 fi
14360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14361 fi
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14363 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14365 CFLAGS="$xorg_testset_save_CFLAGS"
14366 fi
14367
14368 found="no"
14369
14370 if test $found = "no" ; then
14371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14373 fi
14374
14375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14377 fi
14378
14379 CFLAGS="$CFLAGS -Wlogical-op"
14380
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14382 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14383 cacheid=xorg_cv_cc_flag__Wlogical_op
14384 if eval \${$cacheid+:} false; then :
14385 $as_echo_n "(cached) " >&6
14386 else
14387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14388 /* end confdefs.h. */
14389 int i;
14390 int
14391 main ()
14392 {
14393
14394 ;
14395 return 0;
14396 }
14397 _ACEOF
14398 if ac_fn_c_try_link "$LINENO"; then :
14399 eval $cacheid=yes
14400 else
14401 eval $cacheid=no
14402 fi
14403 rm -f core conftest.err conftest.$ac_objext \
14404 conftest$ac_exeext conftest.$ac_ext
14405 fi
14406
14407
14408 CFLAGS="$xorg_testset_save_CFLAGS"
14409
14410 eval supported=\$$cacheid
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14412 $as_echo "$supported" >&6; }
14413 if test "$supported" = "yes" ; then
14414 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14415 found="yes"
14416 fi
14417 fi
14418
14419
14420
14421 # These are currently disabled because they are noisy. They will be enabled
14422 # in the future once the codebase is sufficiently modernized to silence
14423 # them. For now, I don't want them to drown out the other warnings.
14424 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14425 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14426 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14427
14428 # Turn some warnings into errors, so we don't accidently get successful builds
14429 # when there are problems that should be fixed.
14430
14431 if test "x$SELECTIVE_WERROR" = "xyes" ; then
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445 xorg_testset_save_CFLAGS="$CFLAGS"
14446
14447 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14448 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14450 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14451 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14452 $as_echo_n "(cached) " >&6
14453 else
14454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14455 /* end confdefs.h. */
14456 int i;
14457 _ACEOF
14458 if ac_fn_c_try_compile "$LINENO"; then :
14459 xorg_cv_cc_flag_unknown_warning_option=yes
14460 else
14461 xorg_cv_cc_flag_unknown_warning_option=no
14462 fi
14463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14464 fi
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14466 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14467 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14468 CFLAGS="$xorg_testset_save_CFLAGS"
14469 fi
14470
14471 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14473 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14474 fi
14475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14477 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14478 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14479 $as_echo_n "(cached) " >&6
14480 else
14481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14482 /* end confdefs.h. */
14483 int i;
14484 _ACEOF
14485 if ac_fn_c_try_compile "$LINENO"; then :
14486 xorg_cv_cc_flag_unused_command_line_argument=yes
14487 else
14488 xorg_cv_cc_flag_unused_command_line_argument=no
14489 fi
14490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14491 fi
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14493 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14494 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14495 CFLAGS="$xorg_testset_save_CFLAGS"
14496 fi
14497
14498 found="no"
14499
14500 if test $found = "no" ; then
14501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14503 fi
14504
14505 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14507 fi
14508
14509 CFLAGS="$CFLAGS -Werror=implicit"
14510
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14512 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14513 cacheid=xorg_cv_cc_flag__Werror_implicit
14514 if eval \${$cacheid+:} false; then :
14515 $as_echo_n "(cached) " >&6
14516 else
14517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14518 /* end confdefs.h. */
14519 int i;
14520 int
14521 main ()
14522 {
14523
14524 ;
14525 return 0;
14526 }
14527 _ACEOF
14528 if ac_fn_c_try_link "$LINENO"; then :
14529 eval $cacheid=yes
14530 else
14531 eval $cacheid=no
14532 fi
14533 rm -f core conftest.err conftest.$ac_objext \
14534 conftest$ac_exeext conftest.$ac_ext
14535 fi
14536
14537
14538 CFLAGS="$xorg_testset_save_CFLAGS"
14539
14540 eval supported=\$$cacheid
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14542 $as_echo "$supported" >&6; }
14543 if test "$supported" = "yes" ; then
14544 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14545 found="yes"
14546 fi
14547 fi
14548
14549 if test $found = "no" ; then
14550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14552 fi
14553
14554 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14556 fi
14557
14558 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14559
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14561 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14562 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14563 if eval \${$cacheid+:} false; then :
14564 $as_echo_n "(cached) " >&6
14565 else
14566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14567 /* end confdefs.h. */
14568 int i;
14569 int
14570 main ()
14571 {
14572
14573 ;
14574 return 0;
14575 }
14576 _ACEOF
14577 if ac_fn_c_try_link "$LINENO"; then :
14578 eval $cacheid=yes
14579 else
14580 eval $cacheid=no
14581 fi
14582 rm -f core conftest.err conftest.$ac_objext \
14583 conftest$ac_exeext conftest.$ac_ext
14584 fi
14585
14586
14587 CFLAGS="$xorg_testset_save_CFLAGS"
14588
14589 eval supported=\$$cacheid
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14591 $as_echo "$supported" >&6; }
14592 if test "$supported" = "yes" ; then
14593 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14594 found="yes"
14595 fi
14596 fi
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612 xorg_testset_save_CFLAGS="$CFLAGS"
14613
14614 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14615 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14617 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14618 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14619 $as_echo_n "(cached) " >&6
14620 else
14621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14622 /* end confdefs.h. */
14623 int i;
14624 _ACEOF
14625 if ac_fn_c_try_compile "$LINENO"; then :
14626 xorg_cv_cc_flag_unknown_warning_option=yes
14627 else
14628 xorg_cv_cc_flag_unknown_warning_option=no
14629 fi
14630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14631 fi
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14633 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14634 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14635 CFLAGS="$xorg_testset_save_CFLAGS"
14636 fi
14637
14638 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14640 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14641 fi
14642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14644 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14645 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14646 $as_echo_n "(cached) " >&6
14647 else
14648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14649 /* end confdefs.h. */
14650 int i;
14651 _ACEOF
14652 if ac_fn_c_try_compile "$LINENO"; then :
14653 xorg_cv_cc_flag_unused_command_line_argument=yes
14654 else
14655 xorg_cv_cc_flag_unused_command_line_argument=no
14656 fi
14657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14658 fi
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14660 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14661 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14662 CFLAGS="$xorg_testset_save_CFLAGS"
14663 fi
14664
14665 found="no"
14666
14667 if test $found = "no" ; then
14668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14669 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14670 fi
14671
14672 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14674 fi
14675
14676 CFLAGS="$CFLAGS -Werror=nonnull"
14677
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14679 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14680 cacheid=xorg_cv_cc_flag__Werror_nonnull
14681 if eval \${$cacheid+:} false; then :
14682 $as_echo_n "(cached) " >&6
14683 else
14684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14685 /* end confdefs.h. */
14686 int i;
14687 int
14688 main ()
14689 {
14690
14691 ;
14692 return 0;
14693 }
14694 _ACEOF
14695 if ac_fn_c_try_link "$LINENO"; then :
14696 eval $cacheid=yes
14697 else
14698 eval $cacheid=no
14699 fi
14700 rm -f core conftest.err conftest.$ac_objext \
14701 conftest$ac_exeext conftest.$ac_ext
14702 fi
14703
14704
14705 CFLAGS="$xorg_testset_save_CFLAGS"
14706
14707 eval supported=\$$cacheid
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14709 $as_echo "$supported" >&6; }
14710 if test "$supported" = "yes" ; then
14711 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14712 found="yes"
14713 fi
14714 fi
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730 xorg_testset_save_CFLAGS="$CFLAGS"
14731
14732 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14733 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14735 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14736 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14737 $as_echo_n "(cached) " >&6
14738 else
14739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14740 /* end confdefs.h. */
14741 int i;
14742 _ACEOF
14743 if ac_fn_c_try_compile "$LINENO"; then :
14744 xorg_cv_cc_flag_unknown_warning_option=yes
14745 else
14746 xorg_cv_cc_flag_unknown_warning_option=no
14747 fi
14748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14749 fi
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14751 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14752 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14753 CFLAGS="$xorg_testset_save_CFLAGS"
14754 fi
14755
14756 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14758 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14759 fi
14760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14762 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14763 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14764 $as_echo_n "(cached) " >&6
14765 else
14766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14767 /* end confdefs.h. */
14768 int i;
14769 _ACEOF
14770 if ac_fn_c_try_compile "$LINENO"; then :
14771 xorg_cv_cc_flag_unused_command_line_argument=yes
14772 else
14773 xorg_cv_cc_flag_unused_command_line_argument=no
14774 fi
14775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14776 fi
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14778 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14779 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14780 CFLAGS="$xorg_testset_save_CFLAGS"
14781 fi
14782
14783 found="no"
14784
14785 if test $found = "no" ; then
14786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14787 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14788 fi
14789
14790 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14792 fi
14793
14794 CFLAGS="$CFLAGS -Werror=init-self"
14795
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14797 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14798 cacheid=xorg_cv_cc_flag__Werror_init_self
14799 if eval \${$cacheid+:} false; then :
14800 $as_echo_n "(cached) " >&6
14801 else
14802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14803 /* end confdefs.h. */
14804 int i;
14805 int
14806 main ()
14807 {
14808
14809 ;
14810 return 0;
14811 }
14812 _ACEOF
14813 if ac_fn_c_try_link "$LINENO"; then :
14814 eval $cacheid=yes
14815 else
14816 eval $cacheid=no
14817 fi
14818 rm -f core conftest.err conftest.$ac_objext \
14819 conftest$ac_exeext conftest.$ac_ext
14820 fi
14821
14822
14823 CFLAGS="$xorg_testset_save_CFLAGS"
14824
14825 eval supported=\$$cacheid
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14827 $as_echo "$supported" >&6; }
14828 if test "$supported" = "yes" ; then
14829 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14830 found="yes"
14831 fi
14832 fi
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848 xorg_testset_save_CFLAGS="$CFLAGS"
14849
14850 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14851 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14853 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14854 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14855 $as_echo_n "(cached) " >&6
14856 else
14857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14858 /* end confdefs.h. */
14859 int i;
14860 _ACEOF
14861 if ac_fn_c_try_compile "$LINENO"; then :
14862 xorg_cv_cc_flag_unknown_warning_option=yes
14863 else
14864 xorg_cv_cc_flag_unknown_warning_option=no
14865 fi
14866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14867 fi
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14869 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14870 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14871 CFLAGS="$xorg_testset_save_CFLAGS"
14872 fi
14873
14874 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14877 fi
14878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14880 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14881 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14882 $as_echo_n "(cached) " >&6
14883 else
14884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14885 /* end confdefs.h. */
14886 int i;
14887 _ACEOF
14888 if ac_fn_c_try_compile "$LINENO"; then :
14889 xorg_cv_cc_flag_unused_command_line_argument=yes
14890 else
14891 xorg_cv_cc_flag_unused_command_line_argument=no
14892 fi
14893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14894 fi
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14896 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14897 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14898 CFLAGS="$xorg_testset_save_CFLAGS"
14899 fi
14900
14901 found="no"
14902
14903 if test $found = "no" ; then
14904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14905 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14906 fi
14907
14908 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14910 fi
14911
14912 CFLAGS="$CFLAGS -Werror=main"
14913
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14915 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14916 cacheid=xorg_cv_cc_flag__Werror_main
14917 if eval \${$cacheid+:} false; then :
14918 $as_echo_n "(cached) " >&6
14919 else
14920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14921 /* end confdefs.h. */
14922 int i;
14923 int
14924 main ()
14925 {
14926
14927 ;
14928 return 0;
14929 }
14930 _ACEOF
14931 if ac_fn_c_try_link "$LINENO"; then :
14932 eval $cacheid=yes
14933 else
14934 eval $cacheid=no
14935 fi
14936 rm -f core conftest.err conftest.$ac_objext \
14937 conftest$ac_exeext conftest.$ac_ext
14938 fi
14939
14940
14941 CFLAGS="$xorg_testset_save_CFLAGS"
14942
14943 eval supported=\$$cacheid
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14945 $as_echo "$supported" >&6; }
14946 if test "$supported" = "yes" ; then
14947 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14948 found="yes"
14949 fi
14950 fi
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966 xorg_testset_save_CFLAGS="$CFLAGS"
14967
14968 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14969 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14971 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14972 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14973 $as_echo_n "(cached) " >&6
14974 else
14975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14976 /* end confdefs.h. */
14977 int i;
14978 _ACEOF
14979 if ac_fn_c_try_compile "$LINENO"; then :
14980 xorg_cv_cc_flag_unknown_warning_option=yes
14981 else
14982 xorg_cv_cc_flag_unknown_warning_option=no
14983 fi
14984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14985 fi
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14987 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14988 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14989 CFLAGS="$xorg_testset_save_CFLAGS"
14990 fi
14991
14992 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14994 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14995 fi
14996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14998 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14999 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15000 $as_echo_n "(cached) " >&6
15001 else
15002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15003 /* end confdefs.h. */
15004 int i;
15005 _ACEOF
15006 if ac_fn_c_try_compile "$LINENO"; then :
15007 xorg_cv_cc_flag_unused_command_line_argument=yes
15008 else
15009 xorg_cv_cc_flag_unused_command_line_argument=no
15010 fi
15011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15012 fi
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15014 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15015 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15016 CFLAGS="$xorg_testset_save_CFLAGS"
15017 fi
15018
15019 found="no"
15020
15021 if test $found = "no" ; then
15022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15024 fi
15025
15026 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15028 fi
15029
15030 CFLAGS="$CFLAGS -Werror=missing-braces"
15031
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15033 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15034 cacheid=xorg_cv_cc_flag__Werror_missing_braces
15035 if eval \${$cacheid+:} false; then :
15036 $as_echo_n "(cached) " >&6
15037 else
15038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15039 /* end confdefs.h. */
15040 int i;
15041 int
15042 main ()
15043 {
15044
15045 ;
15046 return 0;
15047 }
15048 _ACEOF
15049 if ac_fn_c_try_link "$LINENO"; then :
15050 eval $cacheid=yes
15051 else
15052 eval $cacheid=no
15053 fi
15054 rm -f core conftest.err conftest.$ac_objext \
15055 conftest$ac_exeext conftest.$ac_ext
15056 fi
15057
15058
15059 CFLAGS="$xorg_testset_save_CFLAGS"
15060
15061 eval supported=\$$cacheid
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15063 $as_echo "$supported" >&6; }
15064 if test "$supported" = "yes" ; then
15065 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15066 found="yes"
15067 fi
15068 fi
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084 xorg_testset_save_CFLAGS="$CFLAGS"
15085
15086 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15087 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15089 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15090 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15091 $as_echo_n "(cached) " >&6
15092 else
15093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15094 /* end confdefs.h. */
15095 int i;
15096 _ACEOF
15097 if ac_fn_c_try_compile "$LINENO"; then :
15098 xorg_cv_cc_flag_unknown_warning_option=yes
15099 else
15100 xorg_cv_cc_flag_unknown_warning_option=no
15101 fi
15102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15103 fi
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15105 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15106 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15107 CFLAGS="$xorg_testset_save_CFLAGS"
15108 fi
15109
15110 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15113 fi
15114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15116 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15117 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15118 $as_echo_n "(cached) " >&6
15119 else
15120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15121 /* end confdefs.h. */
15122 int i;
15123 _ACEOF
15124 if ac_fn_c_try_compile "$LINENO"; then :
15125 xorg_cv_cc_flag_unused_command_line_argument=yes
15126 else
15127 xorg_cv_cc_flag_unused_command_line_argument=no
15128 fi
15129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15130 fi
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15132 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15133 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15134 CFLAGS="$xorg_testset_save_CFLAGS"
15135 fi
15136
15137 found="no"
15138
15139 if test $found = "no" ; then
15140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15142 fi
15143
15144 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15146 fi
15147
15148 CFLAGS="$CFLAGS -Werror=sequence-point"
15149
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15151 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15152 cacheid=xorg_cv_cc_flag__Werror_sequence_point
15153 if eval \${$cacheid+:} false; then :
15154 $as_echo_n "(cached) " >&6
15155 else
15156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15157 /* end confdefs.h. */
15158 int i;
15159 int
15160 main ()
15161 {
15162
15163 ;
15164 return 0;
15165 }
15166 _ACEOF
15167 if ac_fn_c_try_link "$LINENO"; then :
15168 eval $cacheid=yes
15169 else
15170 eval $cacheid=no
15171 fi
15172 rm -f core conftest.err conftest.$ac_objext \
15173 conftest$ac_exeext conftest.$ac_ext
15174 fi
15175
15176
15177 CFLAGS="$xorg_testset_save_CFLAGS"
15178
15179 eval supported=\$$cacheid
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15181 $as_echo "$supported" >&6; }
15182 if test "$supported" = "yes" ; then
15183 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15184 found="yes"
15185 fi
15186 fi
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202 xorg_testset_save_CFLAGS="$CFLAGS"
15203
15204 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15207 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15208 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15209 $as_echo_n "(cached) " >&6
15210 else
15211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15212 /* end confdefs.h. */
15213 int i;
15214 _ACEOF
15215 if ac_fn_c_try_compile "$LINENO"; then :
15216 xorg_cv_cc_flag_unknown_warning_option=yes
15217 else
15218 xorg_cv_cc_flag_unknown_warning_option=no
15219 fi
15220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15221 fi
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15223 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15224 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15225 CFLAGS="$xorg_testset_save_CFLAGS"
15226 fi
15227
15228 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15230 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15231 fi
15232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15234 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15235 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15236 $as_echo_n "(cached) " >&6
15237 else
15238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15239 /* end confdefs.h. */
15240 int i;
15241 _ACEOF
15242 if ac_fn_c_try_compile "$LINENO"; then :
15243 xorg_cv_cc_flag_unused_command_line_argument=yes
15244 else
15245 xorg_cv_cc_flag_unused_command_line_argument=no
15246 fi
15247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15248 fi
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15250 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15251 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15252 CFLAGS="$xorg_testset_save_CFLAGS"
15253 fi
15254
15255 found="no"
15256
15257 if test $found = "no" ; then
15258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15259 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15260 fi
15261
15262 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15264 fi
15265
15266 CFLAGS="$CFLAGS -Werror=return-type"
15267
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15269 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15270 cacheid=xorg_cv_cc_flag__Werror_return_type
15271 if eval \${$cacheid+:} false; then :
15272 $as_echo_n "(cached) " >&6
15273 else
15274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15275 /* end confdefs.h. */
15276 int i;
15277 int
15278 main ()
15279 {
15280
15281 ;
15282 return 0;
15283 }
15284 _ACEOF
15285 if ac_fn_c_try_link "$LINENO"; then :
15286 eval $cacheid=yes
15287 else
15288 eval $cacheid=no
15289 fi
15290 rm -f core conftest.err conftest.$ac_objext \
15291 conftest$ac_exeext conftest.$ac_ext
15292 fi
15293
15294
15295 CFLAGS="$xorg_testset_save_CFLAGS"
15296
15297 eval supported=\$$cacheid
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15299 $as_echo "$supported" >&6; }
15300 if test "$supported" = "yes" ; then
15301 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15302 found="yes"
15303 fi
15304 fi
15305
15306 if test $found = "no" ; then
15307 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15308 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15309 fi
15310
15311 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15313 fi
15314
15315 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15316
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15318 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15319 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15320 if eval \${$cacheid+:} false; then :
15321 $as_echo_n "(cached) " >&6
15322 else
15323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15324 /* end confdefs.h. */
15325 int i;
15326 int
15327 main ()
15328 {
15329
15330 ;
15331 return 0;
15332 }
15333 _ACEOF
15334 if ac_fn_c_try_link "$LINENO"; then :
15335 eval $cacheid=yes
15336 else
15337 eval $cacheid=no
15338 fi
15339 rm -f core conftest.err conftest.$ac_objext \
15340 conftest$ac_exeext conftest.$ac_ext
15341 fi
15342
15343
15344 CFLAGS="$xorg_testset_save_CFLAGS"
15345
15346 eval supported=\$$cacheid
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15348 $as_echo "$supported" >&6; }
15349 if test "$supported" = "yes" ; then
15350 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15351 found="yes"
15352 fi
15353 fi
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369 xorg_testset_save_CFLAGS="$CFLAGS"
15370
15371 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15374 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15375 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15376 $as_echo_n "(cached) " >&6
15377 else
15378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15379 /* end confdefs.h. */
15380 int i;
15381 _ACEOF
15382 if ac_fn_c_try_compile "$LINENO"; then :
15383 xorg_cv_cc_flag_unknown_warning_option=yes
15384 else
15385 xorg_cv_cc_flag_unknown_warning_option=no
15386 fi
15387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15388 fi
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15390 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15391 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15392 CFLAGS="$xorg_testset_save_CFLAGS"
15393 fi
15394
15395 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15398 fi
15399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15401 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15402 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15403 $as_echo_n "(cached) " >&6
15404 else
15405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15406 /* end confdefs.h. */
15407 int i;
15408 _ACEOF
15409 if ac_fn_c_try_compile "$LINENO"; then :
15410 xorg_cv_cc_flag_unused_command_line_argument=yes
15411 else
15412 xorg_cv_cc_flag_unused_command_line_argument=no
15413 fi
15414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15415 fi
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15417 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15418 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15419 CFLAGS="$xorg_testset_save_CFLAGS"
15420 fi
15421
15422 found="no"
15423
15424 if test $found = "no" ; then
15425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15426 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15427 fi
15428
15429 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15431 fi
15432
15433 CFLAGS="$CFLAGS -Werror=trigraphs"
15434
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15436 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15437 cacheid=xorg_cv_cc_flag__Werror_trigraphs
15438 if eval \${$cacheid+:} false; then :
15439 $as_echo_n "(cached) " >&6
15440 else
15441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15442 /* end confdefs.h. */
15443 int i;
15444 int
15445 main ()
15446 {
15447
15448 ;
15449 return 0;
15450 }
15451 _ACEOF
15452 if ac_fn_c_try_link "$LINENO"; then :
15453 eval $cacheid=yes
15454 else
15455 eval $cacheid=no
15456 fi
15457 rm -f core conftest.err conftest.$ac_objext \
15458 conftest$ac_exeext conftest.$ac_ext
15459 fi
15460
15461
15462 CFLAGS="$xorg_testset_save_CFLAGS"
15463
15464 eval supported=\$$cacheid
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15466 $as_echo "$supported" >&6; }
15467 if test "$supported" = "yes" ; then
15468 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15469 found="yes"
15470 fi
15471 fi
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487 xorg_testset_save_CFLAGS="$CFLAGS"
15488
15489 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15492 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15493 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15494 $as_echo_n "(cached) " >&6
15495 else
15496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15497 /* end confdefs.h. */
15498 int i;
15499 _ACEOF
15500 if ac_fn_c_try_compile "$LINENO"; then :
15501 xorg_cv_cc_flag_unknown_warning_option=yes
15502 else
15503 xorg_cv_cc_flag_unknown_warning_option=no
15504 fi
15505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15506 fi
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15508 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15509 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15510 CFLAGS="$xorg_testset_save_CFLAGS"
15511 fi
15512
15513 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15515 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15516 fi
15517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15519 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15520 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15521 $as_echo_n "(cached) " >&6
15522 else
15523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15524 /* end confdefs.h. */
15525 int i;
15526 _ACEOF
15527 if ac_fn_c_try_compile "$LINENO"; then :
15528 xorg_cv_cc_flag_unused_command_line_argument=yes
15529 else
15530 xorg_cv_cc_flag_unused_command_line_argument=no
15531 fi
15532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15533 fi
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15535 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15536 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15537 CFLAGS="$xorg_testset_save_CFLAGS"
15538 fi
15539
15540 found="no"
15541
15542 if test $found = "no" ; then
15543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15544 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15545 fi
15546
15547 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15549 fi
15550
15551 CFLAGS="$CFLAGS -Werror=array-bounds"
15552
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15554 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15555 cacheid=xorg_cv_cc_flag__Werror_array_bounds
15556 if eval \${$cacheid+:} false; then :
15557 $as_echo_n "(cached) " >&6
15558 else
15559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15560 /* end confdefs.h. */
15561 int i;
15562 int
15563 main ()
15564 {
15565
15566 ;
15567 return 0;
15568 }
15569 _ACEOF
15570 if ac_fn_c_try_link "$LINENO"; then :
15571 eval $cacheid=yes
15572 else
15573 eval $cacheid=no
15574 fi
15575 rm -f core conftest.err conftest.$ac_objext \
15576 conftest$ac_exeext conftest.$ac_ext
15577 fi
15578
15579
15580 CFLAGS="$xorg_testset_save_CFLAGS"
15581
15582 eval supported=\$$cacheid
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15584 $as_echo "$supported" >&6; }
15585 if test "$supported" = "yes" ; then
15586 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15587 found="yes"
15588 fi
15589 fi
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605 xorg_testset_save_CFLAGS="$CFLAGS"
15606
15607 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15610 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15611 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15612 $as_echo_n "(cached) " >&6
15613 else
15614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15615 /* end confdefs.h. */
15616 int i;
15617 _ACEOF
15618 if ac_fn_c_try_compile "$LINENO"; then :
15619 xorg_cv_cc_flag_unknown_warning_option=yes
15620 else
15621 xorg_cv_cc_flag_unknown_warning_option=no
15622 fi
15623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15624 fi
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15626 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15627 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15628 CFLAGS="$xorg_testset_save_CFLAGS"
15629 fi
15630
15631 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15634 fi
15635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15637 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15638 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15639 $as_echo_n "(cached) " >&6
15640 else
15641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15642 /* end confdefs.h. */
15643 int i;
15644 _ACEOF
15645 if ac_fn_c_try_compile "$LINENO"; then :
15646 xorg_cv_cc_flag_unused_command_line_argument=yes
15647 else
15648 xorg_cv_cc_flag_unused_command_line_argument=no
15649 fi
15650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15651 fi
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15653 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15654 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15655 CFLAGS="$xorg_testset_save_CFLAGS"
15656 fi
15657
15658 found="no"
15659
15660 if test $found = "no" ; then
15661 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15662 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15663 fi
15664
15665 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15667 fi
15668
15669 CFLAGS="$CFLAGS -Werror=write-strings"
15670
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15672 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15673 cacheid=xorg_cv_cc_flag__Werror_write_strings
15674 if eval \${$cacheid+:} false; then :
15675 $as_echo_n "(cached) " >&6
15676 else
15677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15678 /* end confdefs.h. */
15679 int i;
15680 int
15681 main ()
15682 {
15683
15684 ;
15685 return 0;
15686 }
15687 _ACEOF
15688 if ac_fn_c_try_link "$LINENO"; then :
15689 eval $cacheid=yes
15690 else
15691 eval $cacheid=no
15692 fi
15693 rm -f core conftest.err conftest.$ac_objext \
15694 conftest$ac_exeext conftest.$ac_ext
15695 fi
15696
15697
15698 CFLAGS="$xorg_testset_save_CFLAGS"
15699
15700 eval supported=\$$cacheid
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15702 $as_echo "$supported" >&6; }
15703 if test "$supported" = "yes" ; then
15704 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15705 found="yes"
15706 fi
15707 fi
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723 xorg_testset_save_CFLAGS="$CFLAGS"
15724
15725 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15728 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15729 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15730 $as_echo_n "(cached) " >&6
15731 else
15732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15733 /* end confdefs.h. */
15734 int i;
15735 _ACEOF
15736 if ac_fn_c_try_compile "$LINENO"; then :
15737 xorg_cv_cc_flag_unknown_warning_option=yes
15738 else
15739 xorg_cv_cc_flag_unknown_warning_option=no
15740 fi
15741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15742 fi
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15744 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15745 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15746 CFLAGS="$xorg_testset_save_CFLAGS"
15747 fi
15748
15749 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15752 fi
15753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15755 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15756 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15757 $as_echo_n "(cached) " >&6
15758 else
15759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15760 /* end confdefs.h. */
15761 int i;
15762 _ACEOF
15763 if ac_fn_c_try_compile "$LINENO"; then :
15764 xorg_cv_cc_flag_unused_command_line_argument=yes
15765 else
15766 xorg_cv_cc_flag_unused_command_line_argument=no
15767 fi
15768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15769 fi
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15771 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15772 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15773 CFLAGS="$xorg_testset_save_CFLAGS"
15774 fi
15775
15776 found="no"
15777
15778 if test $found = "no" ; then
15779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15781 fi
15782
15783 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15785 fi
15786
15787 CFLAGS="$CFLAGS -Werror=address"
15788
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15790 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15791 cacheid=xorg_cv_cc_flag__Werror_address
15792 if eval \${$cacheid+:} false; then :
15793 $as_echo_n "(cached) " >&6
15794 else
15795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15796 /* end confdefs.h. */
15797 int i;
15798 int
15799 main ()
15800 {
15801
15802 ;
15803 return 0;
15804 }
15805 _ACEOF
15806 if ac_fn_c_try_link "$LINENO"; then :
15807 eval $cacheid=yes
15808 else
15809 eval $cacheid=no
15810 fi
15811 rm -f core conftest.err conftest.$ac_objext \
15812 conftest$ac_exeext conftest.$ac_ext
15813 fi
15814
15815
15816 CFLAGS="$xorg_testset_save_CFLAGS"
15817
15818 eval supported=\$$cacheid
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15820 $as_echo "$supported" >&6; }
15821 if test "$supported" = "yes" ; then
15822 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15823 found="yes"
15824 fi
15825 fi
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841 xorg_testset_save_CFLAGS="$CFLAGS"
15842
15843 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15846 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15847 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15848 $as_echo_n "(cached) " >&6
15849 else
15850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15851 /* end confdefs.h. */
15852 int i;
15853 _ACEOF
15854 if ac_fn_c_try_compile "$LINENO"; then :
15855 xorg_cv_cc_flag_unknown_warning_option=yes
15856 else
15857 xorg_cv_cc_flag_unknown_warning_option=no
15858 fi
15859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15860 fi
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15862 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15863 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15864 CFLAGS="$xorg_testset_save_CFLAGS"
15865 fi
15866
15867 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15869 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15870 fi
15871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15873 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15874 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15875 $as_echo_n "(cached) " >&6
15876 else
15877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15878 /* end confdefs.h. */
15879 int i;
15880 _ACEOF
15881 if ac_fn_c_try_compile "$LINENO"; then :
15882 xorg_cv_cc_flag_unused_command_line_argument=yes
15883 else
15884 xorg_cv_cc_flag_unused_command_line_argument=no
15885 fi
15886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15887 fi
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15889 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15890 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15891 CFLAGS="$xorg_testset_save_CFLAGS"
15892 fi
15893
15894 found="no"
15895
15896 if test $found = "no" ; then
15897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15899 fi
15900
15901 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15903 fi
15904
15905 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15906
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15908 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15909 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
15910 if eval \${$cacheid+:} false; then :
15911 $as_echo_n "(cached) " >&6
15912 else
15913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15914 /* end confdefs.h. */
15915 int i;
15916 int
15917 main ()
15918 {
15919
15920 ;
15921 return 0;
15922 }
15923 _ACEOF
15924 if ac_fn_c_try_link "$LINENO"; then :
15925 eval $cacheid=yes
15926 else
15927 eval $cacheid=no
15928 fi
15929 rm -f core conftest.err conftest.$ac_objext \
15930 conftest$ac_exeext conftest.$ac_ext
15931 fi
15932
15933
15934 CFLAGS="$xorg_testset_save_CFLAGS"
15935
15936 eval supported=\$$cacheid
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15938 $as_echo "$supported" >&6; }
15939 if test "$supported" = "yes" ; then
15940 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15941 found="yes"
15942 fi
15943 fi
15944
15945 if test $found = "no" ; then
15946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15948 fi
15949
15950 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15952 fi
15953
15954 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15955
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15957 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15958 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
15959 if eval \${$cacheid+:} false; then :
15960 $as_echo_n "(cached) " >&6
15961 else
15962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15963 /* end confdefs.h. */
15964 int i;
15965 int
15966 main ()
15967 {
15968
15969 ;
15970 return 0;
15971 }
15972 _ACEOF
15973 if ac_fn_c_try_link "$LINENO"; then :
15974 eval $cacheid=yes
15975 else
15976 eval $cacheid=no
15977 fi
15978 rm -f core conftest.err conftest.$ac_objext \
15979 conftest$ac_exeext conftest.$ac_ext
15980 fi
15981
15982
15983 CFLAGS="$xorg_testset_save_CFLAGS"
15984
15985 eval supported=\$$cacheid
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15987 $as_echo "$supported" >&6; }
15988 if test "$supported" = "yes" ; then
15989 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15990 found="yes"
15991 fi
15992 fi
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008 xorg_testset_save_CFLAGS="$CFLAGS"
16009
16010 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16013 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16014 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16015 $as_echo_n "(cached) " >&6
16016 else
16017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16018 /* end confdefs.h. */
16019 int i;
16020 _ACEOF
16021 if ac_fn_c_try_compile "$LINENO"; then :
16022 xorg_cv_cc_flag_unknown_warning_option=yes
16023 else
16024 xorg_cv_cc_flag_unknown_warning_option=no
16025 fi
16026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16027 fi
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16029 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16030 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16031 CFLAGS="$xorg_testset_save_CFLAGS"
16032 fi
16033
16034 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16036 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16037 fi
16038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16040 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16041 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16042 $as_echo_n "(cached) " >&6
16043 else
16044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16045 /* end confdefs.h. */
16046 int i;
16047 _ACEOF
16048 if ac_fn_c_try_compile "$LINENO"; then :
16049 xorg_cv_cc_flag_unused_command_line_argument=yes
16050 else
16051 xorg_cv_cc_flag_unused_command_line_argument=no
16052 fi
16053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16054 fi
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16056 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16057 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16058 CFLAGS="$xorg_testset_save_CFLAGS"
16059 fi
16060
16061 found="no"
16062
16063 if test $found = "no" ; then
16064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16065 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16066 fi
16067
16068 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16070 fi
16071
16072 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16073
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16075 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16076 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16077 if eval \${$cacheid+:} false; then :
16078 $as_echo_n "(cached) " >&6
16079 else
16080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16081 /* end confdefs.h. */
16082 int i;
16083 int
16084 main ()
16085 {
16086
16087 ;
16088 return 0;
16089 }
16090 _ACEOF
16091 if ac_fn_c_try_link "$LINENO"; then :
16092 eval $cacheid=yes
16093 else
16094 eval $cacheid=no
16095 fi
16096 rm -f core conftest.err conftest.$ac_objext \
16097 conftest$ac_exeext conftest.$ac_ext
16098 fi
16099
16100
16101 CFLAGS="$xorg_testset_save_CFLAGS"
16102
16103 eval supported=\$$cacheid
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16105 $as_echo "$supported" >&6; }
16106 if test "$supported" = "yes" ; then
16107 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16108 found="yes"
16109 fi
16110 fi
16111
16112 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16113 else
16114 { $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
16115 $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;}
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129 xorg_testset_save_CFLAGS="$CFLAGS"
16130
16131 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16132 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16134 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16135 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16136 $as_echo_n "(cached) " >&6
16137 else
16138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16139 /* end confdefs.h. */
16140 int i;
16141 _ACEOF
16142 if ac_fn_c_try_compile "$LINENO"; then :
16143 xorg_cv_cc_flag_unknown_warning_option=yes
16144 else
16145 xorg_cv_cc_flag_unknown_warning_option=no
16146 fi
16147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16148 fi
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16150 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16151 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16152 CFLAGS="$xorg_testset_save_CFLAGS"
16153 fi
16154
16155 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16158 fi
16159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16161 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16162 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16163 $as_echo_n "(cached) " >&6
16164 else
16165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16166 /* end confdefs.h. */
16167 int i;
16168 _ACEOF
16169 if ac_fn_c_try_compile "$LINENO"; then :
16170 xorg_cv_cc_flag_unused_command_line_argument=yes
16171 else
16172 xorg_cv_cc_flag_unused_command_line_argument=no
16173 fi
16174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16175 fi
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16177 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16178 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16179 CFLAGS="$xorg_testset_save_CFLAGS"
16180 fi
16181
16182 found="no"
16183
16184 if test $found = "no" ; then
16185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16187 fi
16188
16189 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16191 fi
16192
16193 CFLAGS="$CFLAGS -Wimplicit"
16194
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16196 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16197 cacheid=xorg_cv_cc_flag__Wimplicit
16198 if eval \${$cacheid+:} false; then :
16199 $as_echo_n "(cached) " >&6
16200 else
16201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16202 /* end confdefs.h. */
16203 int i;
16204 int
16205 main ()
16206 {
16207
16208 ;
16209 return 0;
16210 }
16211 _ACEOF
16212 if ac_fn_c_try_link "$LINENO"; then :
16213 eval $cacheid=yes
16214 else
16215 eval $cacheid=no
16216 fi
16217 rm -f core conftest.err conftest.$ac_objext \
16218 conftest$ac_exeext conftest.$ac_ext
16219 fi
16220
16221
16222 CFLAGS="$xorg_testset_save_CFLAGS"
16223
16224 eval supported=\$$cacheid
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16226 $as_echo "$supported" >&6; }
16227 if test "$supported" = "yes" ; then
16228 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16229 found="yes"
16230 fi
16231 fi
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247 xorg_testset_save_CFLAGS="$CFLAGS"
16248
16249 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16250 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16252 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16253 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16254 $as_echo_n "(cached) " >&6
16255 else
16256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16257 /* end confdefs.h. */
16258 int i;
16259 _ACEOF
16260 if ac_fn_c_try_compile "$LINENO"; then :
16261 xorg_cv_cc_flag_unknown_warning_option=yes
16262 else
16263 xorg_cv_cc_flag_unknown_warning_option=no
16264 fi
16265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16266 fi
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16268 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16269 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16270 CFLAGS="$xorg_testset_save_CFLAGS"
16271 fi
16272
16273 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16276 fi
16277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16279 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16280 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16281 $as_echo_n "(cached) " >&6
16282 else
16283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16284 /* end confdefs.h. */
16285 int i;
16286 _ACEOF
16287 if ac_fn_c_try_compile "$LINENO"; then :
16288 xorg_cv_cc_flag_unused_command_line_argument=yes
16289 else
16290 xorg_cv_cc_flag_unused_command_line_argument=no
16291 fi
16292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16293 fi
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16295 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16296 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16297 CFLAGS="$xorg_testset_save_CFLAGS"
16298 fi
16299
16300 found="no"
16301
16302 if test $found = "no" ; then
16303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16305 fi
16306
16307 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16309 fi
16310
16311 CFLAGS="$CFLAGS -Wnonnull"
16312
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16314 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16315 cacheid=xorg_cv_cc_flag__Wnonnull
16316 if eval \${$cacheid+:} false; then :
16317 $as_echo_n "(cached) " >&6
16318 else
16319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16320 /* end confdefs.h. */
16321 int i;
16322 int
16323 main ()
16324 {
16325
16326 ;
16327 return 0;
16328 }
16329 _ACEOF
16330 if ac_fn_c_try_link "$LINENO"; then :
16331 eval $cacheid=yes
16332 else
16333 eval $cacheid=no
16334 fi
16335 rm -f core conftest.err conftest.$ac_objext \
16336 conftest$ac_exeext conftest.$ac_ext
16337 fi
16338
16339
16340 CFLAGS="$xorg_testset_save_CFLAGS"
16341
16342 eval supported=\$$cacheid
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16344 $as_echo "$supported" >&6; }
16345 if test "$supported" = "yes" ; then
16346 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16347 found="yes"
16348 fi
16349 fi
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365 xorg_testset_save_CFLAGS="$CFLAGS"
16366
16367 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16370 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16371 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16372 $as_echo_n "(cached) " >&6
16373 else
16374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16375 /* end confdefs.h. */
16376 int i;
16377 _ACEOF
16378 if ac_fn_c_try_compile "$LINENO"; then :
16379 xorg_cv_cc_flag_unknown_warning_option=yes
16380 else
16381 xorg_cv_cc_flag_unknown_warning_option=no
16382 fi
16383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16384 fi
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16386 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16387 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16388 CFLAGS="$xorg_testset_save_CFLAGS"
16389 fi
16390
16391 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16394 fi
16395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16397 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16398 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16399 $as_echo_n "(cached) " >&6
16400 else
16401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16402 /* end confdefs.h. */
16403 int i;
16404 _ACEOF
16405 if ac_fn_c_try_compile "$LINENO"; then :
16406 xorg_cv_cc_flag_unused_command_line_argument=yes
16407 else
16408 xorg_cv_cc_flag_unused_command_line_argument=no
16409 fi
16410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16411 fi
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16413 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16414 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16415 CFLAGS="$xorg_testset_save_CFLAGS"
16416 fi
16417
16418 found="no"
16419
16420 if test $found = "no" ; then
16421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16423 fi
16424
16425 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16427 fi
16428
16429 CFLAGS="$CFLAGS -Winit-self"
16430
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16432 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16433 cacheid=xorg_cv_cc_flag__Winit_self
16434 if eval \${$cacheid+:} false; then :
16435 $as_echo_n "(cached) " >&6
16436 else
16437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16438 /* end confdefs.h. */
16439 int i;
16440 int
16441 main ()
16442 {
16443
16444 ;
16445 return 0;
16446 }
16447 _ACEOF
16448 if ac_fn_c_try_link "$LINENO"; then :
16449 eval $cacheid=yes
16450 else
16451 eval $cacheid=no
16452 fi
16453 rm -f core conftest.err conftest.$ac_objext \
16454 conftest$ac_exeext conftest.$ac_ext
16455 fi
16456
16457
16458 CFLAGS="$xorg_testset_save_CFLAGS"
16459
16460 eval supported=\$$cacheid
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16462 $as_echo "$supported" >&6; }
16463 if test "$supported" = "yes" ; then
16464 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16465 found="yes"
16466 fi
16467 fi
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483 xorg_testset_save_CFLAGS="$CFLAGS"
16484
16485 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16486 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16488 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16489 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16490 $as_echo_n "(cached) " >&6
16491 else
16492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16493 /* end confdefs.h. */
16494 int i;
16495 _ACEOF
16496 if ac_fn_c_try_compile "$LINENO"; then :
16497 xorg_cv_cc_flag_unknown_warning_option=yes
16498 else
16499 xorg_cv_cc_flag_unknown_warning_option=no
16500 fi
16501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16502 fi
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16504 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16505 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16506 CFLAGS="$xorg_testset_save_CFLAGS"
16507 fi
16508
16509 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16511 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16512 fi
16513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16515 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16516 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16517 $as_echo_n "(cached) " >&6
16518 else
16519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16520 /* end confdefs.h. */
16521 int i;
16522 _ACEOF
16523 if ac_fn_c_try_compile "$LINENO"; then :
16524 xorg_cv_cc_flag_unused_command_line_argument=yes
16525 else
16526 xorg_cv_cc_flag_unused_command_line_argument=no
16527 fi
16528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16529 fi
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16531 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16532 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16533 CFLAGS="$xorg_testset_save_CFLAGS"
16534 fi
16535
16536 found="no"
16537
16538 if test $found = "no" ; then
16539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16540 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16541 fi
16542
16543 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16545 fi
16546
16547 CFLAGS="$CFLAGS -Wmain"
16548
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16550 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
16551 cacheid=xorg_cv_cc_flag__Wmain
16552 if eval \${$cacheid+:} false; then :
16553 $as_echo_n "(cached) " >&6
16554 else
16555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16556 /* end confdefs.h. */
16557 int i;
16558 int
16559 main ()
16560 {
16561
16562 ;
16563 return 0;
16564 }
16565 _ACEOF
16566 if ac_fn_c_try_link "$LINENO"; then :
16567 eval $cacheid=yes
16568 else
16569 eval $cacheid=no
16570 fi
16571 rm -f core conftest.err conftest.$ac_objext \
16572 conftest$ac_exeext conftest.$ac_ext
16573 fi
16574
16575
16576 CFLAGS="$xorg_testset_save_CFLAGS"
16577
16578 eval supported=\$$cacheid
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16580 $as_echo "$supported" >&6; }
16581 if test "$supported" = "yes" ; then
16582 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16583 found="yes"
16584 fi
16585 fi
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601 xorg_testset_save_CFLAGS="$CFLAGS"
16602
16603 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16604 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16606 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16607 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16608 $as_echo_n "(cached) " >&6
16609 else
16610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16611 /* end confdefs.h. */
16612 int i;
16613 _ACEOF
16614 if ac_fn_c_try_compile "$LINENO"; then :
16615 xorg_cv_cc_flag_unknown_warning_option=yes
16616 else
16617 xorg_cv_cc_flag_unknown_warning_option=no
16618 fi
16619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16620 fi
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16622 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16623 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16624 CFLAGS="$xorg_testset_save_CFLAGS"
16625 fi
16626
16627 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16630 fi
16631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16633 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16634 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16635 $as_echo_n "(cached) " >&6
16636 else
16637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16638 /* end confdefs.h. */
16639 int i;
16640 _ACEOF
16641 if ac_fn_c_try_compile "$LINENO"; then :
16642 xorg_cv_cc_flag_unused_command_line_argument=yes
16643 else
16644 xorg_cv_cc_flag_unused_command_line_argument=no
16645 fi
16646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16647 fi
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16649 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16650 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16651 CFLAGS="$xorg_testset_save_CFLAGS"
16652 fi
16653
16654 found="no"
16655
16656 if test $found = "no" ; then
16657 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16659 fi
16660
16661 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16663 fi
16664
16665 CFLAGS="$CFLAGS -Wmissing-braces"
16666
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16668 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16669 cacheid=xorg_cv_cc_flag__Wmissing_braces
16670 if eval \${$cacheid+:} false; then :
16671 $as_echo_n "(cached) " >&6
16672 else
16673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16674 /* end confdefs.h. */
16675 int i;
16676 int
16677 main ()
16678 {
16679
16680 ;
16681 return 0;
16682 }
16683 _ACEOF
16684 if ac_fn_c_try_link "$LINENO"; then :
16685 eval $cacheid=yes
16686 else
16687 eval $cacheid=no
16688 fi
16689 rm -f core conftest.err conftest.$ac_objext \
16690 conftest$ac_exeext conftest.$ac_ext
16691 fi
16692
16693
16694 CFLAGS="$xorg_testset_save_CFLAGS"
16695
16696 eval supported=\$$cacheid
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16698 $as_echo "$supported" >&6; }
16699 if test "$supported" = "yes" ; then
16700 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16701 found="yes"
16702 fi
16703 fi
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719 xorg_testset_save_CFLAGS="$CFLAGS"
16720
16721 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16724 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16725 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16726 $as_echo_n "(cached) " >&6
16727 else
16728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16729 /* end confdefs.h. */
16730 int i;
16731 _ACEOF
16732 if ac_fn_c_try_compile "$LINENO"; then :
16733 xorg_cv_cc_flag_unknown_warning_option=yes
16734 else
16735 xorg_cv_cc_flag_unknown_warning_option=no
16736 fi
16737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16738 fi
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16740 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16741 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16742 CFLAGS="$xorg_testset_save_CFLAGS"
16743 fi
16744
16745 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16747 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16748 fi
16749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16751 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16752 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16753 $as_echo_n "(cached) " >&6
16754 else
16755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16756 /* end confdefs.h. */
16757 int i;
16758 _ACEOF
16759 if ac_fn_c_try_compile "$LINENO"; then :
16760 xorg_cv_cc_flag_unused_command_line_argument=yes
16761 else
16762 xorg_cv_cc_flag_unused_command_line_argument=no
16763 fi
16764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16765 fi
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16767 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16768 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16769 CFLAGS="$xorg_testset_save_CFLAGS"
16770 fi
16771
16772 found="no"
16773
16774 if test $found = "no" ; then
16775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16776 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16777 fi
16778
16779 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16781 fi
16782
16783 CFLAGS="$CFLAGS -Wsequence-point"
16784
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16786 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16787 cacheid=xorg_cv_cc_flag__Wsequence_point
16788 if eval \${$cacheid+:} false; then :
16789 $as_echo_n "(cached) " >&6
16790 else
16791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16792 /* end confdefs.h. */
16793 int i;
16794 int
16795 main ()
16796 {
16797
16798 ;
16799 return 0;
16800 }
16801 _ACEOF
16802 if ac_fn_c_try_link "$LINENO"; then :
16803 eval $cacheid=yes
16804 else
16805 eval $cacheid=no
16806 fi
16807 rm -f core conftest.err conftest.$ac_objext \
16808 conftest$ac_exeext conftest.$ac_ext
16809 fi
16810
16811
16812 CFLAGS="$xorg_testset_save_CFLAGS"
16813
16814 eval supported=\$$cacheid
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16816 $as_echo "$supported" >&6; }
16817 if test "$supported" = "yes" ; then
16818 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16819 found="yes"
16820 fi
16821 fi
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837 xorg_testset_save_CFLAGS="$CFLAGS"
16838
16839 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16840 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16842 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16843 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16844 $as_echo_n "(cached) " >&6
16845 else
16846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16847 /* end confdefs.h. */
16848 int i;
16849 _ACEOF
16850 if ac_fn_c_try_compile "$LINENO"; then :
16851 xorg_cv_cc_flag_unknown_warning_option=yes
16852 else
16853 xorg_cv_cc_flag_unknown_warning_option=no
16854 fi
16855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16856 fi
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16858 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16859 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16860 CFLAGS="$xorg_testset_save_CFLAGS"
16861 fi
16862
16863 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16866 fi
16867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16869 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16870 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16871 $as_echo_n "(cached) " >&6
16872 else
16873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16874 /* end confdefs.h. */
16875 int i;
16876 _ACEOF
16877 if ac_fn_c_try_compile "$LINENO"; then :
16878 xorg_cv_cc_flag_unused_command_line_argument=yes
16879 else
16880 xorg_cv_cc_flag_unused_command_line_argument=no
16881 fi
16882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16883 fi
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16885 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16886 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16887 CFLAGS="$xorg_testset_save_CFLAGS"
16888 fi
16889
16890 found="no"
16891
16892 if test $found = "no" ; then
16893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16895 fi
16896
16897 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16899 fi
16900
16901 CFLAGS="$CFLAGS -Wreturn-type"
16902
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16904 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16905 cacheid=xorg_cv_cc_flag__Wreturn_type
16906 if eval \${$cacheid+:} false; then :
16907 $as_echo_n "(cached) " >&6
16908 else
16909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16910 /* end confdefs.h. */
16911 int i;
16912 int
16913 main ()
16914 {
16915
16916 ;
16917 return 0;
16918 }
16919 _ACEOF
16920 if ac_fn_c_try_link "$LINENO"; then :
16921 eval $cacheid=yes
16922 else
16923 eval $cacheid=no
16924 fi
16925 rm -f core conftest.err conftest.$ac_objext \
16926 conftest$ac_exeext conftest.$ac_ext
16927 fi
16928
16929
16930 CFLAGS="$xorg_testset_save_CFLAGS"
16931
16932 eval supported=\$$cacheid
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16934 $as_echo "$supported" >&6; }
16935 if test "$supported" = "yes" ; then
16936 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16937 found="yes"
16938 fi
16939 fi
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955 xorg_testset_save_CFLAGS="$CFLAGS"
16956
16957 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16960 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16961 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16962 $as_echo_n "(cached) " >&6
16963 else
16964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16965 /* end confdefs.h. */
16966 int i;
16967 _ACEOF
16968 if ac_fn_c_try_compile "$LINENO"; then :
16969 xorg_cv_cc_flag_unknown_warning_option=yes
16970 else
16971 xorg_cv_cc_flag_unknown_warning_option=no
16972 fi
16973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16974 fi
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16976 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16977 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16978 CFLAGS="$xorg_testset_save_CFLAGS"
16979 fi
16980
16981 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16983 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16984 fi
16985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16987 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16988 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16989 $as_echo_n "(cached) " >&6
16990 else
16991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16992 /* end confdefs.h. */
16993 int i;
16994 _ACEOF
16995 if ac_fn_c_try_compile "$LINENO"; then :
16996 xorg_cv_cc_flag_unused_command_line_argument=yes
16997 else
16998 xorg_cv_cc_flag_unused_command_line_argument=no
16999 fi
17000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17001 fi
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17003 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17004 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17005 CFLAGS="$xorg_testset_save_CFLAGS"
17006 fi
17007
17008 found="no"
17009
17010 if test $found = "no" ; then
17011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17013 fi
17014
17015 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17017 fi
17018
17019 CFLAGS="$CFLAGS -Wtrigraphs"
17020
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17022 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17023 cacheid=xorg_cv_cc_flag__Wtrigraphs
17024 if eval \${$cacheid+:} false; then :
17025 $as_echo_n "(cached) " >&6
17026 else
17027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17028 /* end confdefs.h. */
17029 int i;
17030 int
17031 main ()
17032 {
17033
17034 ;
17035 return 0;
17036 }
17037 _ACEOF
17038 if ac_fn_c_try_link "$LINENO"; then :
17039 eval $cacheid=yes
17040 else
17041 eval $cacheid=no
17042 fi
17043 rm -f core conftest.err conftest.$ac_objext \
17044 conftest$ac_exeext conftest.$ac_ext
17045 fi
17046
17047
17048 CFLAGS="$xorg_testset_save_CFLAGS"
17049
17050 eval supported=\$$cacheid
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17052 $as_echo "$supported" >&6; }
17053 if test "$supported" = "yes" ; then
17054 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17055 found="yes"
17056 fi
17057 fi
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073 xorg_testset_save_CFLAGS="$CFLAGS"
17074
17075 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17078 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17079 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17080 $as_echo_n "(cached) " >&6
17081 else
17082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17083 /* end confdefs.h. */
17084 int i;
17085 _ACEOF
17086 if ac_fn_c_try_compile "$LINENO"; then :
17087 xorg_cv_cc_flag_unknown_warning_option=yes
17088 else
17089 xorg_cv_cc_flag_unknown_warning_option=no
17090 fi
17091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17092 fi
17093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17094 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17095 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17096 CFLAGS="$xorg_testset_save_CFLAGS"
17097 fi
17098
17099 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17102 fi
17103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17105 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17106 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17107 $as_echo_n "(cached) " >&6
17108 else
17109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17110 /* end confdefs.h. */
17111 int i;
17112 _ACEOF
17113 if ac_fn_c_try_compile "$LINENO"; then :
17114 xorg_cv_cc_flag_unused_command_line_argument=yes
17115 else
17116 xorg_cv_cc_flag_unused_command_line_argument=no
17117 fi
17118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17119 fi
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17121 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17122 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17123 CFLAGS="$xorg_testset_save_CFLAGS"
17124 fi
17125
17126 found="no"
17127
17128 if test $found = "no" ; then
17129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17131 fi
17132
17133 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17135 fi
17136
17137 CFLAGS="$CFLAGS -Warray-bounds"
17138
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17140 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17141 cacheid=xorg_cv_cc_flag__Warray_bounds
17142 if eval \${$cacheid+:} false; then :
17143 $as_echo_n "(cached) " >&6
17144 else
17145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17146 /* end confdefs.h. */
17147 int i;
17148 int
17149 main ()
17150 {
17151
17152 ;
17153 return 0;
17154 }
17155 _ACEOF
17156 if ac_fn_c_try_link "$LINENO"; then :
17157 eval $cacheid=yes
17158 else
17159 eval $cacheid=no
17160 fi
17161 rm -f core conftest.err conftest.$ac_objext \
17162 conftest$ac_exeext conftest.$ac_ext
17163 fi
17164
17165
17166 CFLAGS="$xorg_testset_save_CFLAGS"
17167
17168 eval supported=\$$cacheid
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17170 $as_echo "$supported" >&6; }
17171 if test "$supported" = "yes" ; then
17172 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17173 found="yes"
17174 fi
17175 fi
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191 xorg_testset_save_CFLAGS="$CFLAGS"
17192
17193 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17194 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17196 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17197 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17198 $as_echo_n "(cached) " >&6
17199 else
17200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17201 /* end confdefs.h. */
17202 int i;
17203 _ACEOF
17204 if ac_fn_c_try_compile "$LINENO"; then :
17205 xorg_cv_cc_flag_unknown_warning_option=yes
17206 else
17207 xorg_cv_cc_flag_unknown_warning_option=no
17208 fi
17209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17210 fi
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17212 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17213 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17214 CFLAGS="$xorg_testset_save_CFLAGS"
17215 fi
17216
17217 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17219 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17220 fi
17221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17223 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17224 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17225 $as_echo_n "(cached) " >&6
17226 else
17227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17228 /* end confdefs.h. */
17229 int i;
17230 _ACEOF
17231 if ac_fn_c_try_compile "$LINENO"; then :
17232 xorg_cv_cc_flag_unused_command_line_argument=yes
17233 else
17234 xorg_cv_cc_flag_unused_command_line_argument=no
17235 fi
17236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17237 fi
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17239 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17240 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17241 CFLAGS="$xorg_testset_save_CFLAGS"
17242 fi
17243
17244 found="no"
17245
17246 if test $found = "no" ; then
17247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17249 fi
17250
17251 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17253 fi
17254
17255 CFLAGS="$CFLAGS -Wwrite-strings"
17256
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17258 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17259 cacheid=xorg_cv_cc_flag__Wwrite_strings
17260 if eval \${$cacheid+:} false; then :
17261 $as_echo_n "(cached) " >&6
17262 else
17263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17264 /* end confdefs.h. */
17265 int i;
17266 int
17267 main ()
17268 {
17269
17270 ;
17271 return 0;
17272 }
17273 _ACEOF
17274 if ac_fn_c_try_link "$LINENO"; then :
17275 eval $cacheid=yes
17276 else
17277 eval $cacheid=no
17278 fi
17279 rm -f core conftest.err conftest.$ac_objext \
17280 conftest$ac_exeext conftest.$ac_ext
17281 fi
17282
17283
17284 CFLAGS="$xorg_testset_save_CFLAGS"
17285
17286 eval supported=\$$cacheid
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17288 $as_echo "$supported" >&6; }
17289 if test "$supported" = "yes" ; then
17290 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17291 found="yes"
17292 fi
17293 fi
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309 xorg_testset_save_CFLAGS="$CFLAGS"
17310
17311 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17314 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17315 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17316 $as_echo_n "(cached) " >&6
17317 else
17318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17319 /* end confdefs.h. */
17320 int i;
17321 _ACEOF
17322 if ac_fn_c_try_compile "$LINENO"; then :
17323 xorg_cv_cc_flag_unknown_warning_option=yes
17324 else
17325 xorg_cv_cc_flag_unknown_warning_option=no
17326 fi
17327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17328 fi
17329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17330 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17331 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17332 CFLAGS="$xorg_testset_save_CFLAGS"
17333 fi
17334
17335 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17338 fi
17339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17341 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17342 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17343 $as_echo_n "(cached) " >&6
17344 else
17345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17346 /* end confdefs.h. */
17347 int i;
17348 _ACEOF
17349 if ac_fn_c_try_compile "$LINENO"; then :
17350 xorg_cv_cc_flag_unused_command_line_argument=yes
17351 else
17352 xorg_cv_cc_flag_unused_command_line_argument=no
17353 fi
17354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17355 fi
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17357 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17358 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17359 CFLAGS="$xorg_testset_save_CFLAGS"
17360 fi
17361
17362 found="no"
17363
17364 if test $found = "no" ; then
17365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17366 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17367 fi
17368
17369 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17371 fi
17372
17373 CFLAGS="$CFLAGS -Waddress"
17374
17375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17376 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
17377 cacheid=xorg_cv_cc_flag__Waddress
17378 if eval \${$cacheid+:} false; then :
17379 $as_echo_n "(cached) " >&6
17380 else
17381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17382 /* end confdefs.h. */
17383 int i;
17384 int
17385 main ()
17386 {
17387
17388 ;
17389 return 0;
17390 }
17391 _ACEOF
17392 if ac_fn_c_try_link "$LINENO"; then :
17393 eval $cacheid=yes
17394 else
17395 eval $cacheid=no
17396 fi
17397 rm -f core conftest.err conftest.$ac_objext \
17398 conftest$ac_exeext conftest.$ac_ext
17399 fi
17400
17401
17402 CFLAGS="$xorg_testset_save_CFLAGS"
17403
17404 eval supported=\$$cacheid
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17406 $as_echo "$supported" >&6; }
17407 if test "$supported" = "yes" ; then
17408 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17409 found="yes"
17410 fi
17411 fi
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427 xorg_testset_save_CFLAGS="$CFLAGS"
17428
17429 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17432 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17433 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17434 $as_echo_n "(cached) " >&6
17435 else
17436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17437 /* end confdefs.h. */
17438 int i;
17439 _ACEOF
17440 if ac_fn_c_try_compile "$LINENO"; then :
17441 xorg_cv_cc_flag_unknown_warning_option=yes
17442 else
17443 xorg_cv_cc_flag_unknown_warning_option=no
17444 fi
17445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17446 fi
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17448 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17449 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17450 CFLAGS="$xorg_testset_save_CFLAGS"
17451 fi
17452
17453 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17455 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17456 fi
17457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17459 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17460 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17461 $as_echo_n "(cached) " >&6
17462 else
17463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17464 /* end confdefs.h. */
17465 int i;
17466 _ACEOF
17467 if ac_fn_c_try_compile "$LINENO"; then :
17468 xorg_cv_cc_flag_unused_command_line_argument=yes
17469 else
17470 xorg_cv_cc_flag_unused_command_line_argument=no
17471 fi
17472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17473 fi
17474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17475 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17476 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17477 CFLAGS="$xorg_testset_save_CFLAGS"
17478 fi
17479
17480 found="no"
17481
17482 if test $found = "no" ; then
17483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17484 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17485 fi
17486
17487 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17489 fi
17490
17491 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17492
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17494 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17495 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17496 if eval \${$cacheid+:} false; then :
17497 $as_echo_n "(cached) " >&6
17498 else
17499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17500 /* end confdefs.h. */
17501 int i;
17502 int
17503 main ()
17504 {
17505
17506 ;
17507 return 0;
17508 }
17509 _ACEOF
17510 if ac_fn_c_try_link "$LINENO"; then :
17511 eval $cacheid=yes
17512 else
17513 eval $cacheid=no
17514 fi
17515 rm -f core conftest.err conftest.$ac_objext \
17516 conftest$ac_exeext conftest.$ac_ext
17517 fi
17518
17519
17520 CFLAGS="$xorg_testset_save_CFLAGS"
17521
17522 eval supported=\$$cacheid
17523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17524 $as_echo "$supported" >&6; }
17525 if test "$supported" = "yes" ; then
17526 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17527 found="yes"
17528 fi
17529 fi
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545 xorg_testset_save_CFLAGS="$CFLAGS"
17546
17547 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17548 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17550 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17551 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17552 $as_echo_n "(cached) " >&6
17553 else
17554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17555 /* end confdefs.h. */
17556 int i;
17557 _ACEOF
17558 if ac_fn_c_try_compile "$LINENO"; then :
17559 xorg_cv_cc_flag_unknown_warning_option=yes
17560 else
17561 xorg_cv_cc_flag_unknown_warning_option=no
17562 fi
17563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17564 fi
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17566 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17567 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17568 CFLAGS="$xorg_testset_save_CFLAGS"
17569 fi
17570
17571 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17573 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17574 fi
17575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17577 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17578 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17579 $as_echo_n "(cached) " >&6
17580 else
17581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17582 /* end confdefs.h. */
17583 int i;
17584 _ACEOF
17585 if ac_fn_c_try_compile "$LINENO"; then :
17586 xorg_cv_cc_flag_unused_command_line_argument=yes
17587 else
17588 xorg_cv_cc_flag_unused_command_line_argument=no
17589 fi
17590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17591 fi
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17593 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17594 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17595 CFLAGS="$xorg_testset_save_CFLAGS"
17596 fi
17597
17598 found="no"
17599
17600 if test $found = "no" ; then
17601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17603 fi
17604
17605 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17607 fi
17608
17609 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17610
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17612 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17613 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17614 if eval \${$cacheid+:} false; then :
17615 $as_echo_n "(cached) " >&6
17616 else
17617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17618 /* end confdefs.h. */
17619 int i;
17620 int
17621 main ()
17622 {
17623
17624 ;
17625 return 0;
17626 }
17627 _ACEOF
17628 if ac_fn_c_try_link "$LINENO"; then :
17629 eval $cacheid=yes
17630 else
17631 eval $cacheid=no
17632 fi
17633 rm -f core conftest.err conftest.$ac_objext \
17634 conftest$ac_exeext conftest.$ac_ext
17635 fi
17636
17637
17638 CFLAGS="$xorg_testset_save_CFLAGS"
17639
17640 eval supported=\$$cacheid
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17642 $as_echo "$supported" >&6; }
17643 if test "$supported" = "yes" ; then
17644 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17645 found="yes"
17646 fi
17647 fi
17648
17649
17650 fi
17651
17652
17653
17654
17655
17656
17657
17658 CWARNFLAGS="$BASE_CFLAGS"
17659 if test "x$GCC" = xyes ; then
17660 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17661 fi
17662
17663
17664
17665
17666
17667
17668
17669
17670 # Check whether --enable-strict-compilation was given.
17671 if test "${enable_strict_compilation+set}" = set; then :
17672 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17673 else
17674 STRICT_COMPILE=no
17675 fi
17676
17677
17678
17679
17680
17681
17682 STRICT_CFLAGS=""
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696 xorg_testset_save_CFLAGS="$CFLAGS"
17697
17698 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17701 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17702 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17703 $as_echo_n "(cached) " >&6
17704 else
17705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17706 /* end confdefs.h. */
17707 int i;
17708 _ACEOF
17709 if ac_fn_c_try_compile "$LINENO"; then :
17710 xorg_cv_cc_flag_unknown_warning_option=yes
17711 else
17712 xorg_cv_cc_flag_unknown_warning_option=no
17713 fi
17714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17715 fi
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17717 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17718 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17719 CFLAGS="$xorg_testset_save_CFLAGS"
17720 fi
17721
17722 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17723 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17724 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17725 fi
17726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17728 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17729 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17730 $as_echo_n "(cached) " >&6
17731 else
17732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17733 /* end confdefs.h. */
17734 int i;
17735 _ACEOF
17736 if ac_fn_c_try_compile "$LINENO"; then :
17737 xorg_cv_cc_flag_unused_command_line_argument=yes
17738 else
17739 xorg_cv_cc_flag_unused_command_line_argument=no
17740 fi
17741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17742 fi
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17744 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17745 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17746 CFLAGS="$xorg_testset_save_CFLAGS"
17747 fi
17748
17749 found="no"
17750
17751 if test $found = "no" ; then
17752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17754 fi
17755
17756 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17758 fi
17759
17760 CFLAGS="$CFLAGS -pedantic"
17761
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17763 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17764 cacheid=xorg_cv_cc_flag__pedantic
17765 if eval \${$cacheid+:} false; then :
17766 $as_echo_n "(cached) " >&6
17767 else
17768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17769 /* end confdefs.h. */
17770 int i;
17771 int
17772 main ()
17773 {
17774
17775 ;
17776 return 0;
17777 }
17778 _ACEOF
17779 if ac_fn_c_try_link "$LINENO"; then :
17780 eval $cacheid=yes
17781 else
17782 eval $cacheid=no
17783 fi
17784 rm -f core conftest.err conftest.$ac_objext \
17785 conftest$ac_exeext conftest.$ac_ext
17786 fi
17787
17788
17789 CFLAGS="$xorg_testset_save_CFLAGS"
17790
17791 eval supported=\$$cacheid
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17793 $as_echo "$supported" >&6; }
17794 if test "$supported" = "yes" ; then
17795 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17796 found="yes"
17797 fi
17798 fi
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814 xorg_testset_save_CFLAGS="$CFLAGS"
17815
17816 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17817 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17819 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17820 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17821 $as_echo_n "(cached) " >&6
17822 else
17823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17824 /* end confdefs.h. */
17825 int i;
17826 _ACEOF
17827 if ac_fn_c_try_compile "$LINENO"; then :
17828 xorg_cv_cc_flag_unknown_warning_option=yes
17829 else
17830 xorg_cv_cc_flag_unknown_warning_option=no
17831 fi
17832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17833 fi
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17835 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17836 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17837 CFLAGS="$xorg_testset_save_CFLAGS"
17838 fi
17839
17840 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17842 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17843 fi
17844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17846 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17847 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17848 $as_echo_n "(cached) " >&6
17849 else
17850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17851 /* end confdefs.h. */
17852 int i;
17853 _ACEOF
17854 if ac_fn_c_try_compile "$LINENO"; then :
17855 xorg_cv_cc_flag_unused_command_line_argument=yes
17856 else
17857 xorg_cv_cc_flag_unused_command_line_argument=no
17858 fi
17859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17860 fi
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17862 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17863 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17864 CFLAGS="$xorg_testset_save_CFLAGS"
17865 fi
17866
17867 found="no"
17868
17869 if test $found = "no" ; then
17870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17872 fi
17873
17874 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17876 fi
17877
17878 CFLAGS="$CFLAGS -Werror"
17879
17880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17881 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17882 cacheid=xorg_cv_cc_flag__Werror
17883 if eval \${$cacheid+:} false; then :
17884 $as_echo_n "(cached) " >&6
17885 else
17886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17887 /* end confdefs.h. */
17888 int i;
17889 int
17890 main ()
17891 {
17892
17893 ;
17894 return 0;
17895 }
17896 _ACEOF
17897 if ac_fn_c_try_link "$LINENO"; then :
17898 eval $cacheid=yes
17899 else
17900 eval $cacheid=no
17901 fi
17902 rm -f core conftest.err conftest.$ac_objext \
17903 conftest$ac_exeext conftest.$ac_ext
17904 fi
17905
17906
17907 CFLAGS="$xorg_testset_save_CFLAGS"
17908
17909 eval supported=\$$cacheid
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17911 $as_echo "$supported" >&6; }
17912 if test "$supported" = "yes" ; then
17913 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17914 found="yes"
17915 fi
17916 fi
17917
17918 if test $found = "no" ; then
17919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17921 fi
17922
17923 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17925 fi
17926
17927 CFLAGS="$CFLAGS -errwarn"
17928
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17930 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17931 cacheid=xorg_cv_cc_flag__errwarn
17932 if eval \${$cacheid+:} false; then :
17933 $as_echo_n "(cached) " >&6
17934 else
17935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17936 /* end confdefs.h. */
17937 int i;
17938 int
17939 main ()
17940 {
17941
17942 ;
17943 return 0;
17944 }
17945 _ACEOF
17946 if ac_fn_c_try_link "$LINENO"; then :
17947 eval $cacheid=yes
17948 else
17949 eval $cacheid=no
17950 fi
17951 rm -f core conftest.err conftest.$ac_objext \
17952 conftest$ac_exeext conftest.$ac_ext
17953 fi
17954
17955
17956 CFLAGS="$xorg_testset_save_CFLAGS"
17957
17958 eval supported=\$$cacheid
17959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17960 $as_echo "$supported" >&6; }
17961 if test "$supported" = "yes" ; then
17962 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17963 found="yes"
17964 fi
17965 fi
17966
17967
17968
17969 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17970 # activate it with -Werror, so we add it here explicitly.
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984 xorg_testset_save_CFLAGS="$CFLAGS"
17985
17986 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17989 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17990 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17991 $as_echo_n "(cached) " >&6
17992 else
17993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17994 /* end confdefs.h. */
17995 int i;
17996 _ACEOF
17997 if ac_fn_c_try_compile "$LINENO"; then :
17998 xorg_cv_cc_flag_unknown_warning_option=yes
17999 else
18000 xorg_cv_cc_flag_unknown_warning_option=no
18001 fi
18002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18003 fi
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18005 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18006 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18007 CFLAGS="$xorg_testset_save_CFLAGS"
18008 fi
18009
18010 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18013 fi
18014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18016 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18017 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18018 $as_echo_n "(cached) " >&6
18019 else
18020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18021 /* end confdefs.h. */
18022 int i;
18023 _ACEOF
18024 if ac_fn_c_try_compile "$LINENO"; then :
18025 xorg_cv_cc_flag_unused_command_line_argument=yes
18026 else
18027 xorg_cv_cc_flag_unused_command_line_argument=no
18028 fi
18029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18030 fi
18031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18032 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18033 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18034 CFLAGS="$xorg_testset_save_CFLAGS"
18035 fi
18036
18037 found="no"
18038
18039 if test $found = "no" ; then
18040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18041 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18042 fi
18043
18044 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18046 fi
18047
18048 CFLAGS="$CFLAGS -Werror=attributes"
18049
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18051 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18052 cacheid=xorg_cv_cc_flag__Werror_attributes
18053 if eval \${$cacheid+:} false; then :
18054 $as_echo_n "(cached) " >&6
18055 else
18056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18057 /* end confdefs.h. */
18058 int i;
18059 int
18060 main ()
18061 {
18062
18063 ;
18064 return 0;
18065 }
18066 _ACEOF
18067 if ac_fn_c_try_link "$LINENO"; then :
18068 eval $cacheid=yes
18069 else
18070 eval $cacheid=no
18071 fi
18072 rm -f core conftest.err conftest.$ac_objext \
18073 conftest$ac_exeext conftest.$ac_ext
18074 fi
18075
18076
18077 CFLAGS="$xorg_testset_save_CFLAGS"
18078
18079 eval supported=\$$cacheid
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18081 $as_echo "$supported" >&6; }
18082 if test "$supported" = "yes" ; then
18083 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18084 found="yes"
18085 fi
18086 fi
18087
18088
18089
18090 if test "x$STRICT_COMPILE" = "xyes"; then
18091 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18092 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18093 fi
18094
18095
18096
18097
18098
18099
18100 cat >>confdefs.h <<_ACEOF
18101 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18102 _ACEOF
18103
18104 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18105 if test "x$PVM" = "x"; then
18106 PVM="0"
18107 fi
18108
18109 cat >>confdefs.h <<_ACEOF
18110 #define PACKAGE_VERSION_MINOR $PVM
18111 _ACEOF
18112
18113 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18114 if test "x$PVP" = "x"; then
18115 PVP="0"
18116 fi
18117
18118 cat >>confdefs.h <<_ACEOF
18119 #define PACKAGE_VERSION_PATCHLEVEL $PVP
18120 _ACEOF
18121
18122
18123
18124 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
18125 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18126 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
18127 echo 'git directory not found: installing possibly empty changelog.' >&2)"
18128
18129
18130
18131
18132 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18133 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18134 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18135 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
18136 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
18137
18138
18139
18140
18141
18142
18143 if test x$APP_MAN_SUFFIX = x ; then
18144 APP_MAN_SUFFIX=1
18145 fi
18146 if test x$APP_MAN_DIR = x ; then
18147 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18148 fi
18149
18150 if test x$LIB_MAN_SUFFIX = x ; then
18151 LIB_MAN_SUFFIX=3
18152 fi
18153 if test x$LIB_MAN_DIR = x ; then
18154 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18155 fi
18156
18157 if test x$FILE_MAN_SUFFIX = x ; then
18158 case $host_os in
18159 # Solaris 2.0 - 11 use SysV man page sections
18160 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;;
18161 *) FILE_MAN_SUFFIX=5 ;;
18162 esac
18163 fi
18164 if test x$FILE_MAN_DIR = x ; then
18165 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18166 fi
18167
18168 if test x$MISC_MAN_SUFFIX = x ; then
18169 case $host_os in
18170 # Solaris 2.0 - 11 use SysV man page sections
18171 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;;
18172 *) MISC_MAN_SUFFIX=7 ;;
18173 esac
18174 fi
18175 if test x$MISC_MAN_DIR = x ; then
18176 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18177 fi
18178
18179 if test x$DRIVER_MAN_SUFFIX = x ; then
18180 case $host_os in
18181 # Solaris 2.0 - 11 use SysV man page sections
18182 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;;
18183 *) DRIVER_MAN_SUFFIX=4 ;;
18184 esac
18185 fi
18186 if test x$DRIVER_MAN_DIR = x ; then
18187 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18188 fi
18189
18190 if test x$ADMIN_MAN_SUFFIX = x ; then
18191 case $host_os in
18192 # Solaris 2.0 - 11 use SysV man page sections
18193 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;;
18194 *) ADMIN_MAN_SUFFIX=8 ;;
18195 esac
18196 fi
18197 if test x$ADMIN_MAN_DIR = x ; then
18198 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18199 fi
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215 XORG_MAN_PAGE="X Version 11"
18216
18217 MAN_SUBSTS="\
18218 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18219 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18220 -e 's|__xservername__|Xorg|g' \
18221 -e 's|__xconfigfile__|xorg.conf|g' \
18222 -e 's|__projectroot__|\$(prefix)|g' \
18223 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
18224 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18225 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18226 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18227 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18228 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18229 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18230
18231
18232
18233 # Check whether --enable-silent-rules was given.
18234 if test "${enable_silent_rules+set}" = set; then :
18235 enableval=$enable_silent_rules;
18236 fi
18237
18238 case $enable_silent_rules in # (((
18239 yes) AM_DEFAULT_VERBOSITY=0;;
18240 no) AM_DEFAULT_VERBOSITY=1;;
18241 *) AM_DEFAULT_VERBOSITY=0;;
18242 esac
18243 am_make=${MAKE-make}
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18245 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18246 if ${am_cv_make_support_nested_variables+:} false; then :
18247 $as_echo_n "(cached) " >&6
18248 else
18249 if $as_echo 'TRUE=$(BAR$(V))
18250 BAR0=false
18251 BAR1=true
18252 V=1
18253 am__doit:
18254 @$(TRUE)
18255 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18256 am_cv_make_support_nested_variables=yes
18257 else
18258 am_cv_make_support_nested_variables=no
18259 fi
18260 fi
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18262 $as_echo "$am_cv_make_support_nested_variables" >&6; }
18263 if test $am_cv_make_support_nested_variables = yes; then
18264 AM_V='$(V)'
18265 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18266 else
18267 AM_V=$AM_DEFAULT_VERBOSITY
18268 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18269 fi
18270 AM_BACKSLASH='\'
18271
18272
18273
18274 # Check whether --enable-malloc0returnsnull was given.
18275 if test "${enable_malloc0returnsnull+set}" = set; then :
18276 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
18277 else
18278 MALLOC_ZERO_RETURNS_NULL=auto
18279 fi
18280
18281
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
18283 $as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
18284 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
18285 if ${xorg_cv_malloc0_returns_null+:} false; then :
18286 $as_echo_n "(cached) " >&6
18287 else
18288 if test "$cross_compiling" = yes; then :
18289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18291 as_fn_error $? "cannot run test program while cross compiling
18292 See \`config.log' for more details" "$LINENO" 5; }
18293 else
18294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18295 /* end confdefs.h. */
18296
18297 #include <stdlib.h>
18298
18299 int
18300 main ()
18301 {
18302
18303 char *m0, *r0, *c0, *p;
18304 m0 = malloc(0);
18305 p = malloc(10);
18306 r0 = realloc(p,0);
18307 c0 = calloc(0,10);
18308 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
18309
18310 ;
18311 return 0;
18312 }
18313 _ACEOF
18314 if ac_fn_c_try_run "$LINENO"; then :
18315 xorg_cv_malloc0_returns_null=yes
18316 else
18317 xorg_cv_malloc0_returns_null=no
18318 fi
18319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18320 conftest.$ac_objext conftest.beam conftest.$ac_ext
18321 fi
18322
18323 fi
18324
18325 MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
18326 fi
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
18328 $as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
18329
18330 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
18331 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
18332 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
18333 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
18334 else
18335 MALLOC_ZERO_CFLAGS=""
18336 XMALLOC_ZERO_CFLAGS=""
18337 XTMALLOC_ZERO_CFLAGS=""
18338 fi
18339
18340
18341
18342
18343
18344
18345 # Obtain compiler/linker options for depedencies
18346
18347 pkg_failed=no
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XVMC" >&5
18349 $as_echo_n "checking for XVMC... " >&6; }
18350
18351 if test -n "$XVMC_CFLAGS"; then
18352 pkg_cv_XVMC_CFLAGS="$XVMC_CFLAGS"
18353 elif test -n "$PKG_CONFIG"; then
18354 if test -n "$PKG_CONFIG" && \
18355 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext xv xextproto videoproto\""; } >&5
18356 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext xv xextproto videoproto") 2>&5
18357 ac_status=$?
18358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18359 test $ac_status = 0; }; then
18360 pkg_cv_XVMC_CFLAGS=`$PKG_CONFIG --cflags "x11 >= 1.6 xext xv xextproto videoproto" 2>/dev/null`
18361 test "x$?" != "x0" && pkg_failed=yes
18362 else
18363 pkg_failed=yes
18364 fi
18365 else
18366 pkg_failed=untried
18367 fi
18368 if test -n "$XVMC_LIBS"; then
18369 pkg_cv_XVMC_LIBS="$XVMC_LIBS"
18370 elif test -n "$PKG_CONFIG"; then
18371 if test -n "$PKG_CONFIG" && \
18372 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext xv xextproto videoproto\""; } >&5
18373 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext xv xextproto videoproto") 2>&5
18374 ac_status=$?
18375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18376 test $ac_status = 0; }; then
18377 pkg_cv_XVMC_LIBS=`$PKG_CONFIG --libs "x11 >= 1.6 xext xv xextproto videoproto" 2>/dev/null`
18378 test "x$?" != "x0" && pkg_failed=yes
18379 else
18380 pkg_failed=yes
18381 fi
18382 else
18383 pkg_failed=untried
18384 fi
18385
18386
18387
18388 if test $pkg_failed = yes; then
18389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18390 $as_echo "no" >&6; }
18391
18392 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18393 _pkg_short_errors_supported=yes
18394 else
18395 _pkg_short_errors_supported=no
18396 fi
18397 if test $_pkg_short_errors_supported = yes; then
18398 XVMC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 >= 1.6 xext xv xextproto videoproto" 2>&1`
18399 else
18400 XVMC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 >= 1.6 xext xv xextproto videoproto" 2>&1`
18401 fi
18402 # Put the nasty error message in config.log where it belongs
18403 echo "$XVMC_PKG_ERRORS" >&5
18404
18405 as_fn_error $? "Package requirements (x11 >= 1.6 xext xv xextproto videoproto) were not met:
18406
18407 $XVMC_PKG_ERRORS
18408
18409 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18410 installed software in a non-standard prefix.
18411
18412 Alternatively, you may set the environment variables XVMC_CFLAGS
18413 and XVMC_LIBS to avoid the need to call pkg-config.
18414 See the pkg-config man page for more details." "$LINENO" 5
18415 elif test $pkg_failed = untried; then
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18417 $as_echo "no" >&6; }
18418 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18420 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18421 is in your PATH or set the PKG_CONFIG environment variable to the full
18422 path to pkg-config.
18423
18424 Alternatively, you may set the environment variables XVMC_CFLAGS
18425 and XVMC_LIBS to avoid the need to call pkg-config.
18426 See the pkg-config man page for more details.
18427
18428 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18429 See \`config.log' for more details" "$LINENO" 5; }
18430 else
18431 XVMC_CFLAGS=$pkg_cv_XVMC_CFLAGS
18432 XVMC_LIBS=$pkg_cv_XVMC_LIBS
18433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18434 $as_echo "yes" >&6; }
18435
18436 fi
18437
18438 # Checks for library functions.
18439 for ac_func in shmat
18440 do :
18441 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
18442 if test "x$ac_cv_func_shmat" = xyes; then :
18443 cat >>confdefs.h <<_ACEOF
18444 #define HAVE_SHMAT 1
18445 _ACEOF
18446
18447 fi
18448 done
18449
18450
18451 # Check to see if dlopen is in default libraries (like Solaris, which
18452 # has it in libc), or if libdl is needed to get it.
18453 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18454 if test "x$ac_cv_func_dlopen" = xyes; then :
18455
18456 else
18457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18458 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18459 if ${ac_cv_lib_dl_dlopen+:} false; then :
18460 $as_echo_n "(cached) " >&6
18461 else
18462 ac_check_lib_save_LIBS=$LIBS
18463 LIBS="-ldl $LIBS"
18464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18465 /* end confdefs.h. */
18466
18467 /* Override any GCC internal prototype to avoid an error.
18468 Use char because int might match the return type of a GCC
18469 builtin and then its argument prototype would still apply. */
18470 #ifdef __cplusplus
18471 extern "C"
18472 #endif
18473 char dlopen ();
18474 int
18475 main ()
18476 {
18477 return dlopen ();
18478 ;
18479 return 0;
18480 }
18481 _ACEOF
18482 if ac_fn_c_try_link "$LINENO"; then :
18483 ac_cv_lib_dl_dlopen=yes
18484 else
18485 ac_cv_lib_dl_dlopen=no
18486 fi
18487 rm -f core conftest.err conftest.$ac_objext \
18488 conftest$ac_exeext conftest.$ac_ext
18489 LIBS=$ac_check_lib_save_LIBS
18490 fi
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18492 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18493 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18494 DLOPEN_LIBS="-ldl"
18495 fi
18496
18497 fi
18498
18499
18500
18501 # Allow checking code with lint, sparse, etc.
18502
18503
18504
18505
18506
18507 # Check whether --with-lint was given.
18508 if test "${with_lint+set}" = set; then :
18509 withval=$with_lint; use_lint=$withval
18510 else
18511 use_lint=no
18512 fi
18513
18514
18515 # Obtain platform specific info like program name and options
18516 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
18517 case $host_os in
18518 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
18519 lint_name=splint
18520 lint_options="-badflag"
18521 ;;
18522 *freebsd* | *netbsd*)
18523 lint_name=lint
18524 lint_options="-u -b"
18525 ;;
18526 *solaris*)
18527 lint_name=lint
18528 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
18529 ;;
18530 esac
18531
18532 # Test for the presence of the program (either guessed by the code or spelled out by the user)
18533 if test "x$use_lint" = x"yes" ; then
18534 # Extract the first word of "$lint_name", so it can be a program name with args.
18535 set dummy $lint_name; ac_word=$2
18536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18537 $as_echo_n "checking for $ac_word... " >&6; }
18538 if ${ac_cv_path_LINT+:} false; then :
18539 $as_echo_n "(cached) " >&6
18540 else
18541 case $LINT in
18542 [\\/]* | ?:[\\/]*)
18543 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
18544 ;;
18545 *)
18546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18547 for as_dir in $PATH
18548 do
18549 IFS=$as_save_IFS
18550 test -z "$as_dir" && as_dir=.
18551 for ac_exec_ext in '' $ac_executable_extensions; do
18552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18553 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
18554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18555 break 2
18556 fi
18557 done
18558 done
18559 IFS=$as_save_IFS
18560
18561 ;;
18562 esac
18563 fi
18564 LINT=$ac_cv_path_LINT
18565 if test -n "$LINT"; then
18566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
18567 $as_echo "$LINT" >&6; }
18568 else
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18570 $as_echo "no" >&6; }
18571 fi
18572
18573
18574 if test "x$LINT" = "x"; then
18575 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
18576 fi
18577 elif test "x$use_lint" = x"no" ; then
18578 if test "x$LINT" != "x"; then
18579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
18580 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
18581 fi
18582 else
18583 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
18584 fi
18585
18586 # User supplied flags override default flags
18587 if test "x$LINT_FLAGS" != "x"; then
18588 lint_options=$LINT_FLAGS
18589 fi
18590
18591 LINT_FLAGS=$lint_options
18592
18593 if test "x$LINT" != x; then
18594 LINT_TRUE=
18595 LINT_FALSE='#'
18596 else
18597 LINT_TRUE='#'
18598 LINT_FALSE=
18599 fi
18600
18601
18602
18603 LINT_FLAGS="${LINT_FLAGS} ${XVMC_CFLAGS}"
18604
18605 ac_config_files="$ac_config_files Makefile include/Makefile include/X11/Makefile include/X11/extensions/Makefile src/Makefile wrapper/Makefile xvmc.pc"
18606
18607 cat >confcache <<\_ACEOF
18608 # This file is a shell script that caches the results of configure
18609 # tests run on this system so they can be shared between configure
18610 # scripts and configure runs, see configure's option --config-cache.
18611 # It is not useful on other systems. If it contains results you don't
18612 # want to keep, you may remove or edit it.
18613 #
18614 # config.status only pays attention to the cache file if you give it
18615 # the --recheck option to rerun configure.
18616 #
18617 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18618 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18619 # following values.
18620
18621 _ACEOF
18622
18623 # The following way of writing the cache mishandles newlines in values,
18624 # but we know of no workaround that is simple, portable, and efficient.
18625 # So, we kill variables containing newlines.
18626 # Ultrix sh set writes to stderr and can't be redirected directly,
18627 # and sets the high bit in the cache file unless we assign to the vars.
18628 (
18629 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18630 eval ac_val=\$$ac_var
18631 case $ac_val in #(
18632 *${as_nl}*)
18633 case $ac_var in #(
18634 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18635 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18636 esac
18637 case $ac_var in #(
18638 _ | IFS | as_nl) ;; #(
18639 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18640 *) { eval $ac_var=; unset $ac_var;} ;;
18641 esac ;;
18642 esac
18643 done
18644
18645 (set) 2>&1 |
18646 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18647 *${as_nl}ac_space=\ *)
18648 # `set' does not quote correctly, so add quotes: double-quote
18649 # substitution turns \\\\ into \\, and sed turns \\ into \.
18650 sed -n \
18651 "s/'/'\\\\''/g;
18652 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18653 ;; #(
18654 *)
18655 # `set' quotes correctly as required by POSIX, so do not add quotes.
18656 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18657 ;;
18658 esac |
18659 sort
18660 ) |
18661 sed '
18662 /^ac_cv_env_/b end
18663 t clear
18664 :clear
18665 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18666 t end
18667 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18668 :end' >>confcache
18669 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18670 if test -w "$cache_file"; then
18671 if test "x$cache_file" != "x/dev/null"; then
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18673 $as_echo "$as_me: updating cache $cache_file" >&6;}
18674 if test ! -f "$cache_file" || test -h "$cache_file"; then
18675 cat confcache >"$cache_file"
18676 else
18677 case $cache_file in #(
18678 */* | ?:*)
18679 mv -f confcache "$cache_file"$$ &&
18680 mv -f "$cache_file"$$ "$cache_file" ;; #(
18681 *)
18682 mv -f confcache "$cache_file" ;;
18683 esac
18684 fi
18685 fi
18686 else
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18688 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18689 fi
18690 fi
18691 rm -f confcache
18692
18693 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18694 # Let make expand exec_prefix.
18695 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18696
18697 DEFS=-DHAVE_CONFIG_H
18698
18699 ac_libobjs=
18700 ac_ltlibobjs=
18701 U=
18702 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18703 # 1. Remove the extension, and $U if already installed.
18704 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18705 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18706 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18707 # will be set to the directory where LIBOBJS objects are built.
18708 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18709 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18710 done
18711 LIBOBJS=$ac_libobjs
18712
18713 LTLIBOBJS=$ac_ltlibobjs
18714
18715
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18717 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18718 if test -n "$am_sleep_pid"; then
18719 # Hide warnings about reused PIDs.
18720 wait $am_sleep_pid 2>/dev/null
18721 fi
18722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18723 $as_echo "done" >&6; }
18724 if test -n "$EXEEXT"; then
18725 am__EXEEXT_TRUE=
18726 am__EXEEXT_FALSE='#'
18727 else
18728 am__EXEEXT_TRUE='#'
18729 am__EXEEXT_FALSE=
18730 fi
18731
18732 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18733 as_fn_error $? "conditional \"AMDEP\" was never defined.
18734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18735 fi
18736 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18737 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18739 fi
18740 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
18741 as_fn_error $? "conditional \"LINT\" was never defined.
18742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18743 fi
18744
18745 : "${CONFIG_STATUS=./config.status}"
18746 ac_write_fail=0
18747 ac_clean_files_save=$ac_clean_files
18748 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18749 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18750 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18751 as_write_fail=0
18752 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18753 #! $SHELL
18754 # Generated by $as_me.
18755 # Run this file to recreate the current configuration.
18756 # Compiler output produced by configure, useful for debugging
18757 # configure, is in config.log if it exists.
18758
18759 debug=false
18760 ac_cs_recheck=false
18761 ac_cs_silent=false
18762
18763 SHELL=\${CONFIG_SHELL-$SHELL}
18764 export SHELL
18765 _ASEOF
18766 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18767 ## -------------------- ##
18768 ## M4sh Initialization. ##
18769 ## -------------------- ##
18770
18771 # Be more Bourne compatible
18772 DUALCASE=1; export DUALCASE # for MKS sh
18773 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18774 emulate sh
18775 NULLCMD=:
18776 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18777 # is contrary to our usage. Disable this feature.
18778 alias -g '${1+"$@"}'='"$@"'
18779 setopt NO_GLOB_SUBST
18780 else
18781 case `(set -o) 2>/dev/null` in #(
18782 *posix*) :
18783 set -o posix ;; #(
18784 *) :
18785 ;;
18786 esac
18787 fi
18788
18789
18790 as_nl='
18791 '
18792 export as_nl
18793 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18794 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18795 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18796 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18797 # Prefer a ksh shell builtin over an external printf program on Solaris,
18798 # but without wasting forks for bash or zsh.
18799 if test -z "$BASH_VERSION$ZSH_VERSION" \
18800 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18801 as_echo='print -r --'
18802 as_echo_n='print -rn --'
18803 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18804 as_echo='printf %s\n'
18805 as_echo_n='printf %s'
18806 else
18807 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18808 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18809 as_echo_n='/usr/ucb/echo -n'
18810 else
18811 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18812 as_echo_n_body='eval
18813 arg=$1;
18814 case $arg in #(
18815 *"$as_nl"*)
18816 expr "X$arg" : "X\\(.*\\)$as_nl";
18817 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18818 esac;
18819 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18820 '
18821 export as_echo_n_body
18822 as_echo_n='sh -c $as_echo_n_body as_echo'
18823 fi
18824 export as_echo_body
18825 as_echo='sh -c $as_echo_body as_echo'
18826 fi
18827
18828 # The user is always right.
18829 if test "${PATH_SEPARATOR+set}" != set; then
18830 PATH_SEPARATOR=:
18831 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18832 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18833 PATH_SEPARATOR=';'
18834 }
18835 fi
18836
18837
18838 # IFS
18839 # We need space, tab and new line, in precisely that order. Quoting is
18840 # there to prevent editors from complaining about space-tab.
18841 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18842 # splitting by setting IFS to empty value.)
18843 IFS=" "" $as_nl"
18844
18845 # Find who we are. Look in the path if we contain no directory separator.
18846 as_myself=
18847 case $0 in #((
18848 *[\\/]* ) as_myself=$0 ;;
18849 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18850 for as_dir in $PATH
18851 do
18852 IFS=$as_save_IFS
18853 test -z "$as_dir" && as_dir=.
18854 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18855 done
18856 IFS=$as_save_IFS
18857
18858 ;;
18859 esac
18860 # We did not find ourselves, most probably we were run as `sh COMMAND'
18861 # in which case we are not to be found in the path.
18862 if test "x$as_myself" = x; then
18863 as_myself=$0
18864 fi
18865 if test ! -f "$as_myself"; then
18866 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18867 exit 1
18868 fi
18869
18870 # Unset variables that we do not need and which cause bugs (e.g. in
18871 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18872 # suppresses any "Segmentation fault" message there. '((' could
18873 # trigger a bug in pdksh 5.2.14.
18874 for as_var in BASH_ENV ENV MAIL MAILPATH
18875 do eval test x\${$as_var+set} = xset \
18876 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18877 done
18878 PS1='$ '
18879 PS2='> '
18880 PS4='+ '
18881
18882 # NLS nuisances.
18883 LC_ALL=C
18884 export LC_ALL
18885 LANGUAGE=C
18886 export LANGUAGE
18887
18888 # CDPATH.
18889 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18890
18891
18892 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18893 # ----------------------------------------
18894 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18895 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18896 # script with STATUS, using 1 if that was 0.
18897 as_fn_error ()
18898 {
18899 as_status=$1; test $as_status -eq 0 && as_status=1
18900 if test "$4"; then
18901 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18902 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18903 fi
18904 $as_echo "$as_me: error: $2" >&2
18905 as_fn_exit $as_status
18906 } # as_fn_error
18907
18908
18909 # as_fn_set_status STATUS
18910 # -----------------------
18911 # Set $? to STATUS, without forking.
18912 as_fn_set_status ()
18913 {
18914 return $1
18915 } # as_fn_set_status
18916
18917 # as_fn_exit STATUS
18918 # -----------------
18919 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18920 as_fn_exit ()
18921 {
18922 set +e
18923 as_fn_set_status $1
18924 exit $1
18925 } # as_fn_exit
18926
18927 # as_fn_unset VAR
18928 # ---------------
18929 # Portably unset VAR.
18930 as_fn_unset ()
18931 {
18932 { eval $1=; unset $1;}
18933 }
18934 as_unset=as_fn_unset
18935 # as_fn_append VAR VALUE
18936 # ----------------------
18937 # Append the text in VALUE to the end of the definition contained in VAR. Take
18938 # advantage of any shell optimizations that allow amortized linear growth over
18939 # repeated appends, instead of the typical quadratic growth present in naive
18940 # implementations.
18941 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18942 eval 'as_fn_append ()
18943 {
18944 eval $1+=\$2
18945 }'
18946 else
18947 as_fn_append ()
18948 {
18949 eval $1=\$$1\$2
18950 }
18951 fi # as_fn_append
18952
18953 # as_fn_arith ARG...
18954 # ------------------
18955 # Perform arithmetic evaluation on the ARGs, and store the result in the
18956 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18957 # must be portable across $(()) and expr.
18958 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18959 eval 'as_fn_arith ()
18960 {
18961 as_val=$(( $* ))
18962 }'
18963 else
18964 as_fn_arith ()
18965 {
18966 as_val=`expr "$@" || test $? -eq 1`
18967 }
18968 fi # as_fn_arith
18969
18970
18971 if expr a : '\(a\)' >/dev/null 2>&1 &&
18972 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18973 as_expr=expr
18974 else
18975 as_expr=false
18976 fi
18977
18978 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18979 as_basename=basename
18980 else
18981 as_basename=false
18982 fi
18983
18984 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18985 as_dirname=dirname
18986 else
18987 as_dirname=false
18988 fi
18989
18990 as_me=`$as_basename -- "$0" ||
18991 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18992 X"$0" : 'X\(//\)$' \| \
18993 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18994 $as_echo X/"$0" |
18995 sed '/^.*\/\([^/][^/]*\)\/*$/{
18996 s//\1/
18997 q
18998 }
18999 /^X\/\(\/\/\)$/{
19000 s//\1/
19001 q
19002 }
19003 /^X\/\(\/\).*/{
19004 s//\1/
19005 q
19006 }
19007 s/.*/./; q'`
19008
19009 # Avoid depending upon Character Ranges.
19010 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19011 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19012 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19013 as_cr_digits='0123456789'
19014 as_cr_alnum=$as_cr_Letters$as_cr_digits
19015
19016 ECHO_C= ECHO_N= ECHO_T=
19017 case `echo -n x` in #(((((
19018 -n*)
19019 case `echo 'xy\c'` in
19020 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19021 xy) ECHO_C='\c';;
19022 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19023 ECHO_T=' ';;
19024 esac;;
19025 *)
19026 ECHO_N='-n';;
19027 esac
19028
19029 rm -f conf$$ conf$$.exe conf$$.file
19030 if test -d conf$$.dir; then
19031 rm -f conf$$.dir/conf$$.file
19032 else
19033 rm -f conf$$.dir
19034 mkdir conf$$.dir 2>/dev/null
19035 fi
19036 if (echo >conf$$.file) 2>/dev/null; then
19037 if ln -s conf$$.file conf$$ 2>/dev/null; then
19038 as_ln_s='ln -s'
19039 # ... but there are two gotchas:
19040 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19041 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19042 # In both cases, we have to default to `cp -pR'.
19043 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19044 as_ln_s='cp -pR'
19045 elif ln conf$$.file conf$$ 2>/dev/null; then
19046 as_ln_s=ln
19047 else
19048 as_ln_s='cp -pR'
19049 fi
19050 else
19051 as_ln_s='cp -pR'
19052 fi
19053 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19054 rmdir conf$$.dir 2>/dev/null
19055
19056
19057 # as_fn_mkdir_p
19058 # -------------
19059 # Create "$as_dir" as a directory, including parents if necessary.
19060 as_fn_mkdir_p ()
19061 {
19062
19063 case $as_dir in #(
19064 -*) as_dir=./$as_dir;;
19065 esac
19066 test -d "$as_dir" || eval $as_mkdir_p || {
19067 as_dirs=
19068 while :; do
19069 case $as_dir in #(
19070 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19071 *) as_qdir=$as_dir;;
19072 esac
19073 as_dirs="'$as_qdir' $as_dirs"
19074 as_dir=`$as_dirname -- "$as_dir" ||
19075 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19076 X"$as_dir" : 'X\(//\)[^/]' \| \
19077 X"$as_dir" : 'X\(//\)$' \| \
19078 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19079 $as_echo X"$as_dir" |
19080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19081 s//\1/
19082 q
19083 }
19084 /^X\(\/\/\)[^/].*/{
19085 s//\1/
19086 q
19087 }
19088 /^X\(\/\/\)$/{
19089 s//\1/
19090 q
19091 }
19092 /^X\(\/\).*/{
19093 s//\1/
19094 q
19095 }
19096 s/.*/./; q'`
19097 test -d "$as_dir" && break
19098 done
19099 test -z "$as_dirs" || eval "mkdir $as_dirs"
19100 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19101
19102
19103 } # as_fn_mkdir_p
19104 if mkdir -p . 2>/dev/null; then
19105 as_mkdir_p='mkdir -p "$as_dir"'
19106 else
19107 test -d ./-p && rmdir ./-p
19108 as_mkdir_p=false
19109 fi
19110
19111
19112 # as_fn_executable_p FILE
19113 # -----------------------
19114 # Test if FILE is an executable regular file.
19115 as_fn_executable_p ()
19116 {
19117 test -f "$1" && test -x "$1"
19118 } # as_fn_executable_p
19119 as_test_x='test -x'
19120 as_executable_p=as_fn_executable_p
19121
19122 # Sed expression to map a string onto a valid CPP name.
19123 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19124
19125 # Sed expression to map a string onto a valid variable name.
19126 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19127
19128
19129 exec 6>&1
19130 ## ----------------------------------- ##
19131 ## Main body of $CONFIG_STATUS script. ##
19132 ## ----------------------------------- ##
19133 _ASEOF
19134 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19135
19136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19137 # Save the log message, to keep $0 and so on meaningful, and to
19138 # report actual input values of CONFIG_FILES etc. instead of their
19139 # values after options handling.
19140 ac_log="
19141 This file was extended by libXvMC $as_me 1.0.11, which was
19142 generated by GNU Autoconf 2.69. Invocation command line was
19143
19144 CONFIG_FILES = $CONFIG_FILES
19145 CONFIG_HEADERS = $CONFIG_HEADERS
19146 CONFIG_LINKS = $CONFIG_LINKS
19147 CONFIG_COMMANDS = $CONFIG_COMMANDS
19148 $ $0 $@
19149
19150 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19151 "
19152
19153 _ACEOF
19154
19155 case $ac_config_files in *"
19156 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19157 esac
19158
19159 case $ac_config_headers in *"
19160 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19161 esac
19162
19163
19164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19165 # Files that config.status was made for.
19166 config_files="$ac_config_files"
19167 config_headers="$ac_config_headers"
19168 config_commands="$ac_config_commands"
19169
19170 _ACEOF
19171
19172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19173 ac_cs_usage="\
19174 \`$as_me' instantiates files and other configuration actions
19175 from templates according to the current configuration. Unless the files
19176 and actions are specified as TAGs, all are instantiated by default.
19177
19178 Usage: $0 [OPTION]... [TAG]...
19179
19180 -h, --help print this help, then exit
19181 -V, --version print version number and configuration settings, then exit
19182 --config print configuration, then exit
19183 -q, --quiet, --silent
19184 do not print progress messages
19185 -d, --debug don't remove temporary files
19186 --recheck update $as_me by reconfiguring in the same conditions
19187 --file=FILE[:TEMPLATE]
19188 instantiate the configuration file FILE
19189 --header=FILE[:TEMPLATE]
19190 instantiate the configuration header FILE
19191
19192 Configuration files:
19193 $config_files
19194
19195 Configuration headers:
19196 $config_headers
19197
19198 Configuration commands:
19199 $config_commands
19200
19201 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXvMC/issues>."
19202
19203 _ACEOF
19204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19205 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19206 ac_cs_version="\\
19207 libXvMC config.status 1.0.11
19208 configured by $0, generated by GNU Autoconf 2.69,
19209 with options \\"\$ac_cs_config\\"
19210
19211 Copyright (C) 2012 Free Software Foundation, Inc.
19212 This config.status script is free software; the Free Software Foundation
19213 gives unlimited permission to copy, distribute and modify it."
19214
19215 ac_pwd='$ac_pwd'
19216 srcdir='$srcdir'
19217 INSTALL='$INSTALL'
19218 MKDIR_P='$MKDIR_P'
19219 AWK='$AWK'
19220 test -n "\$AWK" || AWK=awk
19221 _ACEOF
19222
19223 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19224 # The default lists apply if the user does not specify any file.
19225 ac_need_defaults=:
19226 while test $# != 0
19227 do
19228 case $1 in
19229 --*=?*)
19230 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19231 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19232 ac_shift=:
19233 ;;
19234 --*=)
19235 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19236 ac_optarg=
19237 ac_shift=:
19238 ;;
19239 *)
19240 ac_option=$1
19241 ac_optarg=$2
19242 ac_shift=shift
19243 ;;
19244 esac
19245
19246 case $ac_option in
19247 # Handling of the options.
19248 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19249 ac_cs_recheck=: ;;
19250 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19251 $as_echo "$ac_cs_version"; exit ;;
19252 --config | --confi | --conf | --con | --co | --c )
19253 $as_echo "$ac_cs_config"; exit ;;
19254 --debug | --debu | --deb | --de | --d | -d )
19255 debug=: ;;
19256 --file | --fil | --fi | --f )
19257 $ac_shift
19258 case $ac_optarg in
19259 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19260 '') as_fn_error $? "missing file argument" ;;
19261 esac
19262 as_fn_append CONFIG_FILES " '$ac_optarg'"
19263 ac_need_defaults=false;;
19264 --header | --heade | --head | --hea )
19265 $ac_shift
19266 case $ac_optarg in
19267 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19268 esac
19269 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19270 ac_need_defaults=false;;
19271 --he | --h)
19272 # Conflict between --help and --header
19273 as_fn_error $? "ambiguous option: \`$1'
19274 Try \`$0 --help' for more information.";;
19275 --help | --hel | -h )
19276 $as_echo "$ac_cs_usage"; exit ;;
19277 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19278 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19279 ac_cs_silent=: ;;
19280
19281 # This is an error.
19282 -*) as_fn_error $? "unrecognized option: \`$1'
19283 Try \`$0 --help' for more information." ;;
19284
19285 *) as_fn_append ac_config_targets " $1"
19286 ac_need_defaults=false ;;
19287
19288 esac
19289 shift
19290 done
19291
19292 ac_configure_extra_args=
19293
19294 if $ac_cs_silent; then
19295 exec 6>/dev/null
19296 ac_configure_extra_args="$ac_configure_extra_args --silent"
19297 fi
19298
19299 _ACEOF
19300 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19301 if \$ac_cs_recheck; then
19302 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19303 shift
19304 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19305 CONFIG_SHELL='$SHELL'
19306 export CONFIG_SHELL
19307 exec "\$@"
19308 fi
19309
19310 _ACEOF
19311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19312 exec 5>>config.log
19313 {
19314 echo
19315 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19316 ## Running $as_me. ##
19317 _ASBOX
19318 $as_echo "$ac_log"
19319 } >&5
19320
19321 _ACEOF
19322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19323 #
19324 # INIT-COMMANDS
19325 #
19326 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19327
19328
19329 # The HP-UX ksh and POSIX shell print the target directory to stdout
19330 # if CDPATH is set.
19331 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19332
19333 sed_quote_subst='$sed_quote_subst'
19334 double_quote_subst='$double_quote_subst'
19335 delay_variable_subst='$delay_variable_subst'
19336 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19337 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19338 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19339 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19340 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19341 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19342 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19343 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19344 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19345 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19346 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19347 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19348 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19349 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19350 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19351 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19352 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19353 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19354 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19355 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19356 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19357 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19358 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19359 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19360 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19361 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19362 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19363 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19364 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19365 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19366 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19367 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19368 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19369 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19370 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19371 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19372 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19373 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19374 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19375 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19376 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19377 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19378 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19379 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19380 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19381 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19382 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19383 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19384 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19385 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19386 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19387 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19388 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19389 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19390 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19391 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19392 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19393 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19394 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"`'
19395 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19396 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19397 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19398 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19399 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19400 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19401 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19402 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19403 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19404 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19405 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19406 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19407 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19408 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19409 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19410 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19411 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19412 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19413 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19414 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19415 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19416 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19417 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19418 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19419 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19420 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19421 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19422 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19423 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19424 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19425 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19426 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19427 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19428 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19429 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19430 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19431 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19432 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19433 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19434 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19435 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19436 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19437 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19438 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19439 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19440 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19441 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19442 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19443 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19444 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19445 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19446 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19447 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19448 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19449 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19450 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19451 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19452 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19453 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19454 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19455 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19456 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19457 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19458 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19459 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19460 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19461 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19462 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19463 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19464 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19465 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19466 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19467 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19468 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19469 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19470 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19471
19472 LTCC='$LTCC'
19473 LTCFLAGS='$LTCFLAGS'
19474 compiler='$compiler_DEFAULT'
19475
19476 # A function that is used when there is no print builtin or printf.
19477 func_fallback_echo ()
19478 {
19479 eval 'cat <<_LTECHO_EOF
19480 \$1
19481 _LTECHO_EOF'
19482 }
19483
19484 # Quote evaled strings.
19485 for var in SHELL \
19486 ECHO \
19487 PATH_SEPARATOR \
19488 SED \
19489 GREP \
19490 EGREP \
19491 FGREP \
19492 LD \
19493 NM \
19494 LN_S \
19495 lt_SP2NL \
19496 lt_NL2SP \
19497 reload_flag \
19498 OBJDUMP \
19499 deplibs_check_method \
19500 file_magic_cmd \
19501 file_magic_glob \
19502 want_nocaseglob \
19503 DLLTOOL \
19504 sharedlib_from_linklib_cmd \
19505 AR \
19506 AR_FLAGS \
19507 archiver_list_spec \
19508 STRIP \
19509 RANLIB \
19510 CC \
19511 CFLAGS \
19512 compiler \
19513 lt_cv_sys_global_symbol_pipe \
19514 lt_cv_sys_global_symbol_to_cdecl \
19515 lt_cv_sys_global_symbol_to_import \
19516 lt_cv_sys_global_symbol_to_c_name_address \
19517 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19518 lt_cv_nm_interface \
19519 nm_file_list_spec \
19520 lt_cv_truncate_bin \
19521 lt_prog_compiler_no_builtin_flag \
19522 lt_prog_compiler_pic \
19523 lt_prog_compiler_wl \
19524 lt_prog_compiler_static \
19525 lt_cv_prog_compiler_c_o \
19526 need_locks \
19527 MANIFEST_TOOL \
19528 DSYMUTIL \
19529 NMEDIT \
19530 LIPO \
19531 OTOOL \
19532 OTOOL64 \
19533 shrext_cmds \
19534 export_dynamic_flag_spec \
19535 whole_archive_flag_spec \
19536 compiler_needs_object \
19537 with_gnu_ld \
19538 allow_undefined_flag \
19539 no_undefined_flag \
19540 hardcode_libdir_flag_spec \
19541 hardcode_libdir_separator \
19542 exclude_expsyms \
19543 include_expsyms \
19544 file_list_spec \
19545 variables_saved_for_relink \
19546 libname_spec \
19547 library_names_spec \
19548 soname_spec \
19549 install_override_mode \
19550 finish_eval \
19551 old_striplib \
19552 striplib; do
19553 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19554 *[\\\\\\\`\\"\\\$]*)
19555 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19556 ;;
19557 *)
19558 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19559 ;;
19560 esac
19561 done
19562
19563 # Double-quote double-evaled strings.
19564 for var in reload_cmds \
19565 old_postinstall_cmds \
19566 old_postuninstall_cmds \
19567 old_archive_cmds \
19568 extract_expsyms_cmds \
19569 old_archive_from_new_cmds \
19570 old_archive_from_expsyms_cmds \
19571 archive_cmds \
19572 archive_expsym_cmds \
19573 module_cmds \
19574 module_expsym_cmds \
19575 export_symbols_cmds \
19576 prelink_cmds \
19577 postlink_cmds \
19578 postinstall_cmds \
19579 postuninstall_cmds \
19580 finish_cmds \
19581 sys_lib_search_path_spec \
19582 configure_time_dlsearch_path \
19583 configure_time_lt_sys_library_path; do
19584 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19585 *[\\\\\\\`\\"\\\$]*)
19586 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19587 ;;
19588 *)
19589 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19590 ;;
19591 esac
19592 done
19593
19594 ac_aux_dir='$ac_aux_dir'
19595
19596 # See if we are running on zsh, and set the options that allow our
19597 # commands through without removal of \ escapes INIT.
19598 if test -n "\${ZSH_VERSION+set}"; then
19599 setopt NO_GLOB_SUBST
19600 fi
19601
19602
19603 PACKAGE='$PACKAGE'
19604 VERSION='$VERSION'
19605 RM='$RM'
19606 ofile='$ofile'
19607
19608
19609
19610
19611 _ACEOF
19612
19613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19614
19615 # Handling of arguments.
19616 for ac_config_target in $ac_config_targets
19617 do
19618 case $ac_config_target in
19619 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19620 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19621 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19622 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19623 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19624 "include/X11/Makefile") CONFIG_FILES="$CONFIG_FILES include/X11/Makefile" ;;
19625 "include/X11/extensions/Makefile") CONFIG_FILES="$CONFIG_FILES include/X11/extensions/Makefile" ;;
19626 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19627 "wrapper/Makefile") CONFIG_FILES="$CONFIG_FILES wrapper/Makefile" ;;
19628 "xvmc.pc") CONFIG_FILES="$CONFIG_FILES xvmc.pc" ;;
19629
19630 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19631 esac
19632 done
19633
19634
19635 # If the user did not use the arguments to specify the items to instantiate,
19636 # then the envvar interface is used. Set only those that are not.
19637 # We use the long form for the default assignment because of an extremely
19638 # bizarre bug on SunOS 4.1.3.
19639 if $ac_need_defaults; then
19640 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19641 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19642 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19643 fi
19644
19645 # Have a temporary directory for convenience. Make it in the build tree
19646 # simply because there is no reason against having it here, and in addition,
19647 # creating and moving files from /tmp can sometimes cause problems.
19648 # Hook for its removal unless debugging.
19649 # Note that there is a small window in which the directory will not be cleaned:
19650 # after its creation but before its name has been assigned to `$tmp'.
19651 $debug ||
19652 {
19653 tmp= ac_tmp=
19654 trap 'exit_status=$?
19655 : "${ac_tmp:=$tmp}"
19656 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19657 ' 0
19658 trap 'as_fn_exit 1' 1 2 13 15
19659 }
19660 # Create a (secure) tmp directory for tmp files.
19661
19662 {
19663 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19664 test -d "$tmp"
19665 } ||
19666 {
19667 tmp=./conf$$-$RANDOM
19668 (umask 077 && mkdir "$tmp")
19669 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19670 ac_tmp=$tmp
19671
19672 # Set up the scripts for CONFIG_FILES section.
19673 # No need to generate them if there are no CONFIG_FILES.
19674 # This happens for instance with `./config.status config.h'.
19675 if test -n "$CONFIG_FILES"; then
19676
19677
19678 ac_cr=`echo X | tr X '\015'`
19679 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19680 # But we know of no other shell where ac_cr would be empty at this
19681 # point, so we can use a bashism as a fallback.
19682 if test "x$ac_cr" = x; then
19683 eval ac_cr=\$\'\\r\'
19684 fi
19685 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19686 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19687 ac_cs_awk_cr='\\r'
19688 else
19689 ac_cs_awk_cr=$ac_cr
19690 fi
19691
19692 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19693 _ACEOF
19694
19695
19696 {
19697 echo "cat >conf$$subs.awk <<_ACEOF" &&
19698 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19699 echo "_ACEOF"
19700 } >conf$$subs.sh ||
19701 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19702 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19703 ac_delim='%!_!# '
19704 for ac_last_try in false false false false false :; do
19705 . ./conf$$subs.sh ||
19706 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19707
19708 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19709 if test $ac_delim_n = $ac_delim_num; then
19710 break
19711 elif $ac_last_try; then
19712 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19713 else
19714 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19715 fi
19716 done
19717 rm -f conf$$subs.sh
19718
19719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19720 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19721 _ACEOF
19722 sed -n '
19723 h
19724 s/^/S["/; s/!.*/"]=/
19725 p
19726 g
19727 s/^[^!]*!//
19728 :repl
19729 t repl
19730 s/'"$ac_delim"'$//
19731 t delim
19732 :nl
19733 h
19734 s/\(.\{148\}\)..*/\1/
19735 t more1
19736 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19737 p
19738 n
19739 b repl
19740 :more1
19741 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19742 p
19743 g
19744 s/.\{148\}//
19745 t nl
19746 :delim
19747 h
19748 s/\(.\{148\}\)..*/\1/
19749 t more2
19750 s/["\\]/\\&/g; s/^/"/; s/$/"/
19751 p
19752 b
19753 :more2
19754 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19755 p
19756 g
19757 s/.\{148\}//
19758 t delim
19759 ' <conf$$subs.awk | sed '
19760 /^[^""]/{
19761 N
19762 s/\n//
19763 }
19764 ' >>$CONFIG_STATUS || ac_write_fail=1
19765 rm -f conf$$subs.awk
19766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19767 _ACAWK
19768 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19769 for (key in S) S_is_set[key] = 1
19770 FS = ""
19771
19772 }
19773 {
19774 line = $ 0
19775 nfields = split(line, field, "@")
19776 substed = 0
19777 len = length(field[1])
19778 for (i = 2; i < nfields; i++) {
19779 key = field[i]
19780 keylen = length(key)
19781 if (S_is_set[key]) {
19782 value = S[key]
19783 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19784 len += length(value) + length(field[++i])
19785 substed = 1
19786 } else
19787 len += 1 + keylen
19788 }
19789
19790 print line
19791 }
19792
19793 _ACAWK
19794 _ACEOF
19795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19796 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19797 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19798 else
19799 cat
19800 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19801 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19802 _ACEOF
19803
19804 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19805 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19806 # trailing colons and then remove the whole line if VPATH becomes empty
19807 # (actually we leave an empty line to preserve line numbers).
19808 if test "x$srcdir" = x.; then
19809 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19810 h
19811 s///
19812 s/^/:/
19813 s/[ ]*$/:/
19814 s/:\$(srcdir):/:/g
19815 s/:\${srcdir}:/:/g
19816 s/:@srcdir@:/:/g
19817 s/^:*//
19818 s/:*$//
19819 x
19820 s/\(=[ ]*\).*/\1/
19821 G
19822 s/\n//
19823 s/^[^=]*=[ ]*$//
19824 }'
19825 fi
19826
19827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19828 fi # test -n "$CONFIG_FILES"
19829
19830 # Set up the scripts for CONFIG_HEADERS section.
19831 # No need to generate them if there are no CONFIG_HEADERS.
19832 # This happens for instance with `./config.status Makefile'.
19833 if test -n "$CONFIG_HEADERS"; then
19834 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19835 BEGIN {
19836 _ACEOF
19837
19838 # Transform confdefs.h into an awk script `defines.awk', embedded as
19839 # here-document in config.status, that substitutes the proper values into
19840 # config.h.in to produce config.h.
19841
19842 # Create a delimiter string that does not exist in confdefs.h, to ease
19843 # handling of long lines.
19844 ac_delim='%!_!# '
19845 for ac_last_try in false false :; do
19846 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19847 if test -z "$ac_tt"; then
19848 break
19849 elif $ac_last_try; then
19850 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19851 else
19852 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19853 fi
19854 done
19855
19856 # For the awk script, D is an array of macro values keyed by name,
19857 # likewise P contains macro parameters if any. Preserve backslash
19858 # newline sequences.
19859
19860 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19861 sed -n '
19862 s/.\{148\}/&'"$ac_delim"'/g
19863 t rset
19864 :rset
19865 s/^[ ]*#[ ]*define[ ][ ]*/ /
19866 t def
19867 d
19868 :def
19869 s/\\$//
19870 t bsnl
19871 s/["\\]/\\&/g
19872 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19873 D["\1"]=" \3"/p
19874 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19875 d
19876 :bsnl
19877 s/["\\]/\\&/g
19878 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19879 D["\1"]=" \3\\\\\\n"\\/p
19880 t cont
19881 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19882 t cont
19883 d
19884 :cont
19885 n
19886 s/.\{148\}/&'"$ac_delim"'/g
19887 t clear
19888 :clear
19889 s/\\$//
19890 t bsnlc
19891 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19892 d
19893 :bsnlc
19894 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19895 b cont
19896 ' <confdefs.h | sed '
19897 s/'"$ac_delim"'/"\\\
19898 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19899
19900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19901 for (key in D) D_is_set[key] = 1
19902 FS = ""
19903 }
19904 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19905 line = \$ 0
19906 split(line, arg, " ")
19907 if (arg[1] == "#") {
19908 defundef = arg[2]
19909 mac1 = arg[3]
19910 } else {
19911 defundef = substr(arg[1], 2)
19912 mac1 = arg[2]
19913 }
19914 split(mac1, mac2, "(") #)
19915 macro = mac2[1]
19916 prefix = substr(line, 1, index(line, defundef) - 1)
19917 if (D_is_set[macro]) {
19918 # Preserve the white space surrounding the "#".
19919 print prefix "define", macro P[macro] D[macro]
19920 next
19921 } else {
19922 # Replace #undef with comments. This is necessary, for example,
19923 # in the case of _POSIX_SOURCE, which is predefined and required
19924 # on some systems where configure will not decide to define it.
19925 if (defundef == "undef") {
19926 print "/*", prefix defundef, macro, "*/"
19927 next
19928 }
19929 }
19930 }
19931 { print }
19932 _ACAWK
19933 _ACEOF
19934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19935 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19936 fi # test -n "$CONFIG_HEADERS"
19937
19938
19939 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19940 shift
19941 for ac_tag
19942 do
19943 case $ac_tag in
19944 :[FHLC]) ac_mode=$ac_tag; continue;;
19945 esac
19946 case $ac_mode$ac_tag in
19947 :[FHL]*:*);;
19948 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19949 :[FH]-) ac_tag=-:-;;
19950 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19951 esac
19952 ac_save_IFS=$IFS
19953 IFS=:
19954 set x $ac_tag
19955 IFS=$ac_save_IFS
19956 shift
19957 ac_file=$1
19958 shift
19959
19960 case $ac_mode in
19961 :L) ac_source=$1;;
19962 :[FH])
19963 ac_file_inputs=
19964 for ac_f
19965 do
19966 case $ac_f in
19967 -) ac_f="$ac_tmp/stdin";;
19968 *) # Look for the file first in the build tree, then in the source tree
19969 # (if the path is not absolute). The absolute path cannot be DOS-style,
19970 # because $ac_f cannot contain `:'.
19971 test -f "$ac_f" ||
19972 case $ac_f in
19973 [\\/$]*) false;;
19974 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19975 esac ||
19976 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19977 esac
19978 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19979 as_fn_append ac_file_inputs " '$ac_f'"
19980 done
19981
19982 # Let's still pretend it is `configure' which instantiates (i.e., don't
19983 # use $as_me), people would be surprised to read:
19984 # /* config.h. Generated by config.status. */
19985 configure_input='Generated from '`
19986 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19987 `' by configure.'
19988 if test x"$ac_file" != x-; then
19989 configure_input="$ac_file. $configure_input"
19990 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19991 $as_echo "$as_me: creating $ac_file" >&6;}
19992 fi
19993 # Neutralize special characters interpreted by sed in replacement strings.
19994 case $configure_input in #(
19995 *\&* | *\|* | *\\* )
19996 ac_sed_conf_input=`$as_echo "$configure_input" |
19997 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19998 *) ac_sed_conf_input=$configure_input;;
19999 esac
20000
20001 case $ac_tag in
20002 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20003 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20004 esac
20005 ;;
20006 esac
20007
20008 ac_dir=`$as_dirname -- "$ac_file" ||
20009 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20010 X"$ac_file" : 'X\(//\)[^/]' \| \
20011 X"$ac_file" : 'X\(//\)$' \| \
20012 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20013 $as_echo X"$ac_file" |
20014 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20015 s//\1/
20016 q
20017 }
20018 /^X\(\/\/\)[^/].*/{
20019 s//\1/
20020 q
20021 }
20022 /^X\(\/\/\)$/{
20023 s//\1/
20024 q
20025 }
20026 /^X\(\/\).*/{
20027 s//\1/
20028 q
20029 }
20030 s/.*/./; q'`
20031 as_dir="$ac_dir"; as_fn_mkdir_p
20032 ac_builddir=.
20033
20034 case "$ac_dir" in
20035 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20036 *)
20037 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20038 # A ".." for each directory in $ac_dir_suffix.
20039 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20040 case $ac_top_builddir_sub in
20041 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20042 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20043 esac ;;
20044 esac
20045 ac_abs_top_builddir=$ac_pwd
20046 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20047 # for backward compatibility:
20048 ac_top_builddir=$ac_top_build_prefix
20049
20050 case $srcdir in
20051 .) # We are building in place.
20052 ac_srcdir=.
20053 ac_top_srcdir=$ac_top_builddir_sub
20054 ac_abs_top_srcdir=$ac_pwd ;;
20055 [\\/]* | ?:[\\/]* ) # Absolute name.
20056 ac_srcdir=$srcdir$ac_dir_suffix;
20057 ac_top_srcdir=$srcdir
20058 ac_abs_top_srcdir=$srcdir ;;
20059 *) # Relative name.
20060 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20061 ac_top_srcdir=$ac_top_build_prefix$srcdir
20062 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20063 esac
20064 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20065
20066
20067 case $ac_mode in
20068 :F)
20069 #
20070 # CONFIG_FILE
20071 #
20072
20073 case $INSTALL in
20074 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20075 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20076 esac
20077 ac_MKDIR_P=$MKDIR_P
20078 case $MKDIR_P in
20079 [\\/$]* | ?:[\\/]* ) ;;
20080 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20081 esac
20082 _ACEOF
20083
20084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20085 # If the template does not know about datarootdir, expand it.
20086 # FIXME: This hack should be removed a few years after 2.60.
20087 ac_datarootdir_hack=; ac_datarootdir_seen=
20088 ac_sed_dataroot='
20089 /datarootdir/ {
20090 p
20091 q
20092 }
20093 /@datadir@/p
20094 /@docdir@/p
20095 /@infodir@/p
20096 /@localedir@/p
20097 /@mandir@/p'
20098 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20099 *datarootdir*) ac_datarootdir_seen=yes;;
20100 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20102 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20103 _ACEOF
20104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20105 ac_datarootdir_hack='
20106 s&@datadir@&$datadir&g
20107 s&@docdir@&$docdir&g
20108 s&@infodir@&$infodir&g
20109 s&@localedir@&$localedir&g
20110 s&@mandir@&$mandir&g
20111 s&\\\${datarootdir}&$datarootdir&g' ;;
20112 esac
20113 _ACEOF
20114
20115 # Neutralize VPATH when `$srcdir' = `.'.
20116 # Shell code in configure.ac might set extrasub.
20117 # FIXME: do we really want to maintain this feature?
20118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20119 ac_sed_extra="$ac_vpsub
20120 $extrasub
20121 _ACEOF
20122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20123 :t
20124 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20125 s|@configure_input@|$ac_sed_conf_input|;t t
20126 s&@top_builddir@&$ac_top_builddir_sub&;t t
20127 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20128 s&@srcdir@&$ac_srcdir&;t t
20129 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20130 s&@top_srcdir@&$ac_top_srcdir&;t t
20131 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20132 s&@builddir@&$ac_builddir&;t t
20133 s&@abs_builddir@&$ac_abs_builddir&;t t
20134 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20135 s&@INSTALL@&$ac_INSTALL&;t t
20136 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20137 $ac_datarootdir_hack
20138 "
20139 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20140 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20141
20142 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20143 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20144 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20145 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20147 which seems to be undefined. Please make sure it is defined" >&5
20148 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20149 which seems to be undefined. Please make sure it is defined" >&2;}
20150
20151 rm -f "$ac_tmp/stdin"
20152 case $ac_file in
20153 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20154 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20155 esac \
20156 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20157 ;;
20158 :H)
20159 #
20160 # CONFIG_HEADER
20161 #
20162 if test x"$ac_file" != x-; then
20163 {
20164 $as_echo "/* $configure_input */" \
20165 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20166 } >"$ac_tmp/config.h" \
20167 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20168 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20169 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20170 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20171 else
20172 rm -f "$ac_file"
20173 mv "$ac_tmp/config.h" "$ac_file" \
20174 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20175 fi
20176 else
20177 $as_echo "/* $configure_input */" \
20178 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20179 || as_fn_error $? "could not create -" "$LINENO" 5
20180 fi
20181 # Compute "$ac_file"'s index in $config_headers.
20182 _am_arg="$ac_file"
20183 _am_stamp_count=1
20184 for _am_header in $config_headers :; do
20185 case $_am_header in
20186 $_am_arg | $_am_arg:* )
20187 break ;;
20188 * )
20189 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20190 esac
20191 done
20192 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20193 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20194 X"$_am_arg" : 'X\(//\)[^/]' \| \
20195 X"$_am_arg" : 'X\(//\)$' \| \
20196 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20197 $as_echo X"$_am_arg" |
20198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20199 s//\1/
20200 q
20201 }
20202 /^X\(\/\/\)[^/].*/{
20203 s//\1/
20204 q
20205 }
20206 /^X\(\/\/\)$/{
20207 s//\1/
20208 q
20209 }
20210 /^X\(\/\).*/{
20211 s//\1/
20212 q
20213 }
20214 s/.*/./; q'`/stamp-h$_am_stamp_count
20215 ;;
20216
20217 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20218 $as_echo "$as_me: executing $ac_file commands" >&6;}
20219 ;;
20220 esac
20221
20222
20223 case $ac_file$ac_mode in
20224 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20225 # Older Autoconf quotes --file arguments for eval, but not when files
20226 # are listed without --file. Let's play safe and only enable the eval
20227 # if we detect the quoting.
20228 case $CONFIG_FILES in
20229 *\'*) eval set x "$CONFIG_FILES" ;;
20230 *) set x $CONFIG_FILES ;;
20231 esac
20232 shift
20233 for mf
20234 do
20235 # Strip MF so we end up with the name of the file.
20236 mf=`echo "$mf" | sed -e 's/:.*$//'`
20237 # Check whether this is an Automake generated Makefile or not.
20238 # We used to match only the files named 'Makefile.in', but
20239 # some people rename them; so instead we look at the file content.
20240 # Grep'ing the first line is not enough: some people post-process
20241 # each Makefile.in and add a new line on top of each file to say so.
20242 # Grep'ing the whole file is not good either: AIX grep has a line
20243 # limit of 2048, but all sed's we know have understand at least 4000.
20244 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20245 dirpart=`$as_dirname -- "$mf" ||
20246 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20247 X"$mf" : 'X\(//\)[^/]' \| \
20248 X"$mf" : 'X\(//\)$' \| \
20249 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20250 $as_echo X"$mf" |
20251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20252 s//\1/
20253 q
20254 }
20255 /^X\(\/\/\)[^/].*/{
20256 s//\1/
20257 q
20258 }
20259 /^X\(\/\/\)$/{
20260 s//\1/
20261 q
20262 }
20263 /^X\(\/\).*/{
20264 s//\1/
20265 q
20266 }
20267 s/.*/./; q'`
20268 else
20269 continue
20270 fi
20271 # Extract the definition of DEPDIR, am__include, and am__quote
20272 # from the Makefile without running 'make'.
20273 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20274 test -z "$DEPDIR" && continue
20275 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20276 test -z "$am__include" && continue
20277 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20278 # Find all dependency output files, they are included files with
20279 # $(DEPDIR) in their names. We invoke sed twice because it is the
20280 # simplest approach to changing $(DEPDIR) to its actual value in the
20281 # expansion.
20282 for file in `sed -n "
20283 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20284 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20285 # Make sure the directory exists.
20286 test -f "$dirpart/$file" && continue
20287 fdir=`$as_dirname -- "$file" ||
20288 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20289 X"$file" : 'X\(//\)[^/]' \| \
20290 X"$file" : 'X\(//\)$' \| \
20291 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20292 $as_echo X"$file" |
20293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20294 s//\1/
20295 q
20296 }
20297 /^X\(\/\/\)[^/].*/{
20298 s//\1/
20299 q
20300 }
20301 /^X\(\/\/\)$/{
20302 s//\1/
20303 q
20304 }
20305 /^X\(\/\).*/{
20306 s//\1/
20307 q
20308 }
20309 s/.*/./; q'`
20310 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20311 # echo "creating $dirpart/$file"
20312 echo '# dummy' > "$dirpart/$file"
20313 done
20314 done
20315 }
20316 ;;
20317 "libtool":C)
20318
20319 # See if we are running on zsh, and set the options that allow our
20320 # commands through without removal of \ escapes.
20321 if test -n "${ZSH_VERSION+set}"; then
20322 setopt NO_GLOB_SUBST
20323 fi
20324
20325 cfgfile=${ofile}T
20326 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20327 $RM "$cfgfile"
20328
20329 cat <<_LT_EOF >> "$cfgfile"
20330 #! $SHELL
20331 # Generated automatically by $as_me ($PACKAGE) $VERSION
20332 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20333 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20334
20335 # Provide generalized library-building support services.
20336 # Written by Gordon Matzigkeit, 1996
20337
20338 # Copyright (C) 2014 Free Software Foundation, Inc.
20339 # This is free software; see the source for copying conditions. There is NO
20340 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20341
20342 # GNU Libtool is free software; you can redistribute it and/or modify
20343 # it under the terms of the GNU General Public License as published by
20344 # the Free Software Foundation; either version 2 of of the License, or
20345 # (at your option) any later version.
20346 #
20347 # As a special exception to the GNU General Public License, if you
20348 # distribute this file as part of a program or library that is built
20349 # using GNU Libtool, you may include this file under the same
20350 # distribution terms that you use for the rest of that program.
20351 #
20352 # GNU Libtool is distributed in the hope that it will be useful, but
20353 # WITHOUT ANY WARRANTY; without even the implied warranty of
20354 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20355 # GNU General Public License for more details.
20356 #
20357 # You should have received a copy of the GNU General Public License
20358 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20359
20360
20361 # The names of the tagged configurations supported by this script.
20362 available_tags=''
20363
20364 # Configured defaults for sys_lib_dlsearch_path munging.
20365 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20366
20367 # ### BEGIN LIBTOOL CONFIG
20368
20369 # Which release of libtool.m4 was used?
20370 macro_version=$macro_version
20371 macro_revision=$macro_revision
20372
20373 # Whether or not to build shared libraries.
20374 build_libtool_libs=$enable_shared
20375
20376 # Whether or not to build static libraries.
20377 build_old_libs=$enable_static
20378
20379 # What type of objects to build.
20380 pic_mode=$pic_mode
20381
20382 # Whether or not to optimize for fast installation.
20383 fast_install=$enable_fast_install
20384
20385 # Shared archive member basename,for filename based shared library versioning on AIX.
20386 shared_archive_member_spec=$shared_archive_member_spec
20387
20388 # Shell to use when invoking shell scripts.
20389 SHELL=$lt_SHELL
20390
20391 # An echo program that protects backslashes.
20392 ECHO=$lt_ECHO
20393
20394 # The PATH separator for the build system.
20395 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20396
20397 # The host system.
20398 host_alias=$host_alias
20399 host=$host
20400 host_os=$host_os
20401
20402 # The build system.
20403 build_alias=$build_alias
20404 build=$build
20405 build_os=$build_os
20406
20407 # A sed program that does not truncate output.
20408 SED=$lt_SED
20409
20410 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20411 Xsed="\$SED -e 1s/^X//"
20412
20413 # A grep program that handles long lines.
20414 GREP=$lt_GREP
20415
20416 # An ERE matcher.
20417 EGREP=$lt_EGREP
20418
20419 # A literal string matcher.
20420 FGREP=$lt_FGREP
20421
20422 # A BSD- or MS-compatible name lister.
20423 NM=$lt_NM
20424
20425 # Whether we need soft or hard links.
20426 LN_S=$lt_LN_S
20427
20428 # What is the maximum length of a command?
20429 max_cmd_len=$max_cmd_len
20430
20431 # Object file suffix (normally "o").
20432 objext=$ac_objext
20433
20434 # Executable file suffix (normally "").
20435 exeext=$exeext
20436
20437 # whether the shell understands "unset".
20438 lt_unset=$lt_unset
20439
20440 # turn spaces into newlines.
20441 SP2NL=$lt_lt_SP2NL
20442
20443 # turn newlines into spaces.
20444 NL2SP=$lt_lt_NL2SP
20445
20446 # convert \$build file names to \$host format.
20447 to_host_file_cmd=$lt_cv_to_host_file_cmd
20448
20449 # convert \$build files to toolchain format.
20450 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20451
20452 # An object symbol dumper.
20453 OBJDUMP=$lt_OBJDUMP
20454
20455 # Method to check whether dependent libraries are shared objects.
20456 deplibs_check_method=$lt_deplibs_check_method
20457
20458 # Command to use when deplibs_check_method = "file_magic".
20459 file_magic_cmd=$lt_file_magic_cmd
20460
20461 # How to find potential files when deplibs_check_method = "file_magic".
20462 file_magic_glob=$lt_file_magic_glob
20463
20464 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20465 want_nocaseglob=$lt_want_nocaseglob
20466
20467 # DLL creation program.
20468 DLLTOOL=$lt_DLLTOOL
20469
20470 # Command to associate shared and link libraries.
20471 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20472
20473 # The archiver.
20474 AR=$lt_AR
20475
20476 # Flags to create an archive.
20477 AR_FLAGS=$lt_AR_FLAGS
20478
20479 # How to feed a file listing to the archiver.
20480 archiver_list_spec=$lt_archiver_list_spec
20481
20482 # A symbol stripping program.
20483 STRIP=$lt_STRIP
20484
20485 # Commands used to install an old-style archive.
20486 RANLIB=$lt_RANLIB
20487 old_postinstall_cmds=$lt_old_postinstall_cmds
20488 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20489
20490 # Whether to use a lock for old archive extraction.
20491 lock_old_archive_extraction=$lock_old_archive_extraction
20492
20493 # A C compiler.
20494 LTCC=$lt_CC
20495
20496 # LTCC compiler flags.
20497 LTCFLAGS=$lt_CFLAGS
20498
20499 # Take the output of nm and produce a listing of raw symbols and C names.
20500 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20501
20502 # Transform the output of nm in a proper C declaration.
20503 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20504
20505 # Transform the output of nm into a list of symbols to manually relocate.
20506 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20507
20508 # Transform the output of nm in a C name address pair.
20509 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20510
20511 # Transform the output of nm in a C name address pair when lib prefix is needed.
20512 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20513
20514 # The name lister interface.
20515 nm_interface=$lt_lt_cv_nm_interface
20516
20517 # Specify filename containing input files for \$NM.
20518 nm_file_list_spec=$lt_nm_file_list_spec
20519
20520 # The root where to search for dependent libraries,and where our libraries should be installed.
20521 lt_sysroot=$lt_sysroot
20522
20523 # Command to truncate a binary pipe.
20524 lt_truncate_bin=$lt_lt_cv_truncate_bin
20525
20526 # The name of the directory that contains temporary libtool files.
20527 objdir=$objdir
20528
20529 # Used to examine libraries when file_magic_cmd begins with "file".
20530 MAGIC_CMD=$MAGIC_CMD
20531
20532 # Must we lock files when doing compilation?
20533 need_locks=$lt_need_locks
20534
20535 # Manifest tool.
20536 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20537
20538 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20539 DSYMUTIL=$lt_DSYMUTIL
20540
20541 # Tool to change global to local symbols on Mac OS X.
20542 NMEDIT=$lt_NMEDIT
20543
20544 # Tool to manipulate fat objects and archives on Mac OS X.
20545 LIPO=$lt_LIPO
20546
20547 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20548 OTOOL=$lt_OTOOL
20549
20550 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20551 OTOOL64=$lt_OTOOL64
20552
20553 # Old archive suffix (normally "a").
20554 libext=$libext
20555
20556 # Shared library suffix (normally ".so").
20557 shrext_cmds=$lt_shrext_cmds
20558
20559 # The commands to extract the exported symbol list from a shared archive.
20560 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20561
20562 # Variables whose values should be saved in libtool wrapper scripts and
20563 # restored at link time.
20564 variables_saved_for_relink=$lt_variables_saved_for_relink
20565
20566 # Do we need the "lib" prefix for modules?
20567 need_lib_prefix=$need_lib_prefix
20568
20569 # Do we need a version for libraries?
20570 need_version=$need_version
20571
20572 # Library versioning type.
20573 version_type=$version_type
20574
20575 # Shared library runtime path variable.
20576 runpath_var=$runpath_var
20577
20578 # Shared library path variable.
20579 shlibpath_var=$shlibpath_var
20580
20581 # Is shlibpath searched before the hard-coded library search path?
20582 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20583
20584 # Format of library name prefix.
20585 libname_spec=$lt_libname_spec
20586
20587 # List of archive names. First name is the real one, the rest are links.
20588 # The last name is the one that the linker finds with -lNAME
20589 library_names_spec=$lt_library_names_spec
20590
20591 # The coded name of the library, if different from the real name.
20592 soname_spec=$lt_soname_spec
20593
20594 # Permission mode override for installation of shared libraries.
20595 install_override_mode=$lt_install_override_mode
20596
20597 # Command to use after installation of a shared archive.
20598 postinstall_cmds=$lt_postinstall_cmds
20599
20600 # Command to use after uninstallation of a shared archive.
20601 postuninstall_cmds=$lt_postuninstall_cmds
20602
20603 # Commands used to finish a libtool library installation in a directory.
20604 finish_cmds=$lt_finish_cmds
20605
20606 # As "finish_cmds", except a single script fragment to be evaled but
20607 # not shown.
20608 finish_eval=$lt_finish_eval
20609
20610 # Whether we should hardcode library paths into libraries.
20611 hardcode_into_libs=$hardcode_into_libs
20612
20613 # Compile-time system search path for libraries.
20614 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20615
20616 # Detected run-time system search path for libraries.
20617 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20618
20619 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20620 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20621
20622 # Whether dlopen is supported.
20623 dlopen_support=$enable_dlopen
20624
20625 # Whether dlopen of programs is supported.
20626 dlopen_self=$enable_dlopen_self
20627
20628 # Whether dlopen of statically linked programs is supported.
20629 dlopen_self_static=$enable_dlopen_self_static
20630
20631 # Commands to strip libraries.
20632 old_striplib=$lt_old_striplib
20633 striplib=$lt_striplib
20634
20635
20636 # The linker used to build libraries.
20637 LD=$lt_LD
20638
20639 # How to create reloadable object files.
20640 reload_flag=$lt_reload_flag
20641 reload_cmds=$lt_reload_cmds
20642
20643 # Commands used to build an old-style archive.
20644 old_archive_cmds=$lt_old_archive_cmds
20645
20646 # A language specific compiler.
20647 CC=$lt_compiler
20648
20649 # Is the compiler the GNU compiler?
20650 with_gcc=$GCC
20651
20652 # Compiler flag to turn off builtin functions.
20653 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20654
20655 # Additional compiler flags for building library objects.
20656 pic_flag=$lt_lt_prog_compiler_pic
20657
20658 # How to pass a linker flag through the compiler.
20659 wl=$lt_lt_prog_compiler_wl
20660
20661 # Compiler flag to prevent dynamic linking.
20662 link_static_flag=$lt_lt_prog_compiler_static
20663
20664 # Does compiler simultaneously support -c and -o options?
20665 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20666
20667 # Whether or not to add -lc for building shared libraries.
20668 build_libtool_need_lc=$archive_cmds_need_lc
20669
20670 # Whether or not to disallow shared libs when runtime libs are static.
20671 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20672
20673 # Compiler flag to allow reflexive dlopens.
20674 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20675
20676 # Compiler flag to generate shared objects directly from archives.
20677 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20678
20679 # Whether the compiler copes with passing no objects directly.
20680 compiler_needs_object=$lt_compiler_needs_object
20681
20682 # Create an old-style archive from a shared archive.
20683 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20684
20685 # Create a temporary old-style archive to link instead of a shared archive.
20686 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20687
20688 # Commands used to build a shared archive.
20689 archive_cmds=$lt_archive_cmds
20690 archive_expsym_cmds=$lt_archive_expsym_cmds
20691
20692 # Commands used to build a loadable module if different from building
20693 # a shared archive.
20694 module_cmds=$lt_module_cmds
20695 module_expsym_cmds=$lt_module_expsym_cmds
20696
20697 # Whether we are building with GNU ld or not.
20698 with_gnu_ld=$lt_with_gnu_ld
20699
20700 # Flag that allows shared libraries with undefined symbols to be built.
20701 allow_undefined_flag=$lt_allow_undefined_flag
20702
20703 # Flag that enforces no undefined symbols.
20704 no_undefined_flag=$lt_no_undefined_flag
20705
20706 # Flag to hardcode \$libdir into a binary during linking.
20707 # This must work even if \$libdir does not exist
20708 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20709
20710 # Whether we need a single "-rpath" flag with a separated argument.
20711 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20712
20713 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20714 # DIR into the resulting binary.
20715 hardcode_direct=$hardcode_direct
20716
20717 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20718 # DIR into the resulting binary and the resulting library dependency is
20719 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20720 # library is relocated.
20721 hardcode_direct_absolute=$hardcode_direct_absolute
20722
20723 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20724 # into the resulting binary.
20725 hardcode_minus_L=$hardcode_minus_L
20726
20727 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20728 # into the resulting binary.
20729 hardcode_shlibpath_var=$hardcode_shlibpath_var
20730
20731 # Set to "yes" if building a shared library automatically hardcodes DIR
20732 # into the library and all subsequent libraries and executables linked
20733 # against it.
20734 hardcode_automatic=$hardcode_automatic
20735
20736 # Set to yes if linker adds runtime paths of dependent libraries
20737 # to runtime path list.
20738 inherit_rpath=$inherit_rpath
20739
20740 # Whether libtool must link a program against all its dependency libraries.
20741 link_all_deplibs=$link_all_deplibs
20742
20743 # Set to "yes" if exported symbols are required.
20744 always_export_symbols=$always_export_symbols
20745
20746 # The commands to list exported symbols.
20747 export_symbols_cmds=$lt_export_symbols_cmds
20748
20749 # Symbols that should not be listed in the preloaded symbols.
20750 exclude_expsyms=$lt_exclude_expsyms
20751
20752 # Symbols that must always be exported.
20753 include_expsyms=$lt_include_expsyms
20754
20755 # Commands necessary for linking programs (against libraries) with templates.
20756 prelink_cmds=$lt_prelink_cmds
20757
20758 # Commands necessary for finishing linking programs.
20759 postlink_cmds=$lt_postlink_cmds
20760
20761 # Specify filename containing input files.
20762 file_list_spec=$lt_file_list_spec
20763
20764 # How to hardcode a shared library path into an executable.
20765 hardcode_action=$hardcode_action
20766
20767 # ### END LIBTOOL CONFIG
20768
20769 _LT_EOF
20770
20771 cat <<'_LT_EOF' >> "$cfgfile"
20772
20773 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20774
20775 # func_munge_path_list VARIABLE PATH
20776 # -----------------------------------
20777 # VARIABLE is name of variable containing _space_ separated list of
20778 # directories to be munged by the contents of PATH, which is string
20779 # having a format:
20780 # "DIR[:DIR]:"
20781 # string "DIR[ DIR]" will be prepended to VARIABLE
20782 # ":DIR[:DIR]"
20783 # string "DIR[ DIR]" will be appended to VARIABLE
20784 # "DIRP[:DIRP]::[DIRA:]DIRA"
20785 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20786 # "DIRA[ DIRA]" will be appended to VARIABLE
20787 # "DIR[:DIR]"
20788 # VARIABLE will be replaced by "DIR[ DIR]"
20789 func_munge_path_list ()
20790 {
20791 case x$2 in
20792 x)
20793 ;;
20794 *:)
20795 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20796 ;;
20797 x:*)
20798 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20799 ;;
20800 *::*)
20801 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20802 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20803 ;;
20804 *)
20805 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20806 ;;
20807 esac
20808 }
20809
20810
20811 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20812 func_cc_basename ()
20813 {
20814 for cc_temp in $*""; do
20815 case $cc_temp in
20816 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20817 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20818 \-*) ;;
20819 *) break;;
20820 esac
20821 done
20822 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20823 }
20824
20825
20826 # ### END FUNCTIONS SHARED WITH CONFIGURE
20827
20828 _LT_EOF
20829
20830 case $host_os in
20831 aix3*)
20832 cat <<\_LT_EOF >> "$cfgfile"
20833 # AIX sometimes has problems with the GCC collect2 program. For some
20834 # reason, if we set the COLLECT_NAMES environment variable, the problems
20835 # vanish in a puff of smoke.
20836 if test set != "${COLLECT_NAMES+set}"; then
20837 COLLECT_NAMES=
20838 export COLLECT_NAMES
20839 fi
20840 _LT_EOF
20841 ;;
20842 esac
20843
20844
20845 ltmain=$ac_aux_dir/ltmain.sh
20846
20847
20848 # We use sed instead of cat because bash on DJGPP gets confused if
20849 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20850 # text mode, it properly converts lines to CR/LF. This bash problem
20851 # is reportedly fixed, but why not run on old versions too?
20852 sed '$q' "$ltmain" >> "$cfgfile" \
20853 || (rm -f "$cfgfile"; exit 1)
20854
20855 mv -f "$cfgfile" "$ofile" ||
20856 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20857 chmod +x "$ofile"
20858
20859 ;;
20860
20861 esac
20862 done # for ac_tag
20863
20864
20865 as_fn_exit 0
20866 _ACEOF
20867 ac_clean_files=$ac_clean_files_save
20868
20869 test $ac_write_fail = 0 ||
20870 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20871
20872
20873 # configure is writing to config.log, and then calls config.status.
20874 # config.status does its own redirection, appending to config.log.
20875 # Unfortunately, on DOS this fails, as config.log is still kept open
20876 # by configure, so config.status won't be able to write to it; its
20877 # output is simply discarded. So we exec the FD to /dev/null,
20878 # effectively closing config.log, so it can be properly (re)opened and
20879 # appended to by config.status. When coming back to configure, we
20880 # need to make the FD available again.
20881 if test "$no_create" != yes; then
20882 ac_cs_success=:
20883 ac_config_status_args=
20884 test "$silent" = yes &&
20885 ac_config_status_args="$ac_config_status_args --quiet"
20886 exec 5>/dev/null
20887 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20888 exec 5>>config.log
20889 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20890 # would make configure fail if this is the last instruction.
20891 $ac_cs_success || as_fn_exit 1
20892 fi
20893 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20895 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20896 fi
20897
20898