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 xf86-video-mga 1.6.4.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
278 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='xf86-video-mga'
593 PACKAGE_TARNAME='xf86-video-mga'
594 PACKAGE_VERSION='1.6.4'
595 PACKAGE_STRING='xf86-video-mga 1.6.4'
596 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
597 PACKAGE_URL=''
598
599 ac_unique_file="Makefile.am"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 DRIVER_NAME
641 moduledir
642 USE_EXA_FALSE
643 USE_EXA_TRUE
644 XAA_FALSE
645 XAA_TRUE
646 XSERVER_LIBPCIACCESS_FALSE
647 XSERVER_LIBPCIACCESS_TRUE
648 PCIACCESS_LIBS
649 PCIACCESS_CFLAGS
650 DRI_LIBS
651 DRI_CFLAGS
652 DRI_FALSE
653 DRI_TRUE
654 XORG_LIBS
655 XORG_CFLAGS
656 OTOOL64
657 OTOOL
658 LIPO
659 NMEDIT
660 DSYMUTIL
661 MANIFEST_TOOL
662 RANLIB
663 ac_ct_AR
664 AR
665 DLLTOOL
666 OBJDUMP
667 LN_S
668 NM
669 ac_ct_DUMPBIN
670 DUMPBIN
671 LD
672 FGREP
673 LIBTOOL
674 MAINT
675 MAINTAINER_MODE_FALSE
676 MAINTAINER_MODE_TRUE
677 am__fastdepCC_FALSE
678 am__fastdepCC_TRUE
679 CCDEPMODE
680 am__nodep
681 AMDEPBACKSLASH
682 AMDEP_FALSE
683 AMDEP_TRUE
684 am__quote
685 am__include
686 DEPDIR
687 am__untar
688 am__tar
689 AMTAR
690 am__leading_dot
691 SET_MAKE
692 AWK
693 mkdir_p
694 MKDIR_P
695 INSTALL_STRIP_PROGRAM
696 STRIP
697 install_sh
698 MAKEINFO
699 AUTOHEADER
700 AUTOMAKE
701 AUTOCONF
702 ACLOCAL
703 VERSION
704 PACKAGE
705 CYGPATH_W
706 am__isrc
707 AM_BACKSLASH
708 AM_DEFAULT_VERBOSITY
709 AM_DEFAULT_V
710 AM_V
711 MAN_SUBSTS
712 XORG_MAN_PAGE
713 ADMIN_MAN_DIR
714 DRIVER_MAN_DIR
715 MISC_MAN_DIR
716 FILE_MAN_DIR
717 LIB_MAN_DIR
718 APP_MAN_DIR
719 ADMIN_MAN_SUFFIX
720 DRIVER_MAN_SUFFIX
721 MISC_MAN_SUFFIX
722 FILE_MAN_SUFFIX
723 LIB_MAN_SUFFIX
724 APP_MAN_SUFFIX
725 SED
726 host_os
727 host_vendor
728 host_cpu
729 host
730 build_os
731 build_vendor
732 build_cpu
733 build
734 INSTALL_CMD
735 PKG_CONFIG_LIBDIR
736 PKG_CONFIG_PATH
737 PKG_CONFIG
738 CHANGELOG_CMD
739 STRICT_CFLAGS
740 CWARNFLAGS
741 BASE_CFLAGS
742 EGREP
743 GREP
744 CPP
745 OBJEXT
746 EXEEXT
747 ac_ct_CC
748 CPPFLAGS
749 LDFLAGS
750 CFLAGS
751 CC
752 INSTALL_DATA
753 INSTALL_SCRIPT
754 INSTALL_PROGRAM
755 target_alias
756 host_alias
757 build_alias
758 LIBS
759 ECHO_T
760 ECHO_N
761 ECHO_C
762 DEFS
763 mandir
764 localedir
765 libdir
766 psdir
767 pdfdir
768 dvidir
769 htmldir
770 infodir
771 docdir
772 oldincludedir
773 includedir
774 localstatedir
775 sharedstatedir
776 sysconfdir
777 datadir
778 datarootdir
779 libexecdir
780 sbindir
781 bindir
782 program_transform_name
783 prefix
784 exec_prefix
785 PACKAGE_URL
786 PACKAGE_BUGREPORT
787 PACKAGE_STRING
788 PACKAGE_VERSION
789 PACKAGE_TARNAME
790 PACKAGE_NAME
791 PATH_SEPARATOR
792 SHELL'
793 ac_subst_files=''
794 ac_user_opts='
795 enable_option_checking
796 enable_selective_werror
797 enable_strict_compilation
798 enable_silent_rules
799 enable_dependency_tracking
800 enable_maintainer_mode
801 enable_static
802 enable_shared
803 with_pic
804 enable_fast_install
805 with_aix_soname
806 with_gnu_ld
807 with_sysroot
808 enable_libtool_lock
809 with_xorg_module_dir
810 enable_dri
811 enable_exa
812 enable_xaa
813 '
814 ac_precious_vars='build_alias
815 host_alias
816 target_alias
817 CC
818 CFLAGS
819 LDFLAGS
820 LIBS
821 CPPFLAGS
822 CPP
823 PKG_CONFIG
824 PKG_CONFIG_PATH
825 PKG_CONFIG_LIBDIR
826 XORG_CFLAGS
827 XORG_LIBS
828 DRI_CFLAGS
829 DRI_LIBS
830 PCIACCESS_CFLAGS
831 PCIACCESS_LIBS'
832
833
834 # Initialize some variables set by options.
835 ac_init_help=
836 ac_init_version=false
837 ac_unrecognized_opts=
838 ac_unrecognized_sep=
839 # The variables have the same names as the options, with
840 # dashes changed to underlines.
841 cache_file=/dev/null
842 exec_prefix=NONE
843 no_create=
844 no_recursion=
845 prefix=NONE
846 program_prefix=NONE
847 program_suffix=NONE
848 program_transform_name=s,x,x,
849 silent=
850 site=
851 srcdir=
852 verbose=
853 x_includes=NONE
854 x_libraries=NONE
855
856 # Installation directory options.
857 # These are left unexpanded so users can "make install exec_prefix=/foo"
858 # and all the variables that are supposed to be based on exec_prefix
859 # by default will actually change.
860 # Use braces instead of parens because sh, perl, etc. also accept them.
861 # (The list follows the same order as the GNU Coding Standards.)
862 bindir='${exec_prefix}/bin'
863 sbindir='${exec_prefix}/sbin'
864 libexecdir='${exec_prefix}/libexec'
865 datarootdir='${prefix}/share'
866 datadir='${datarootdir}'
867 sysconfdir='${prefix}/etc'
868 sharedstatedir='${prefix}/com'
869 localstatedir='${prefix}/var'
870 includedir='${prefix}/include'
871 oldincludedir='/usr/include'
872 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
873 infodir='${datarootdir}/info'
874 htmldir='${docdir}'
875 dvidir='${docdir}'
876 pdfdir='${docdir}'
877 psdir='${docdir}'
878 libdir='${exec_prefix}/lib'
879 localedir='${datarootdir}/locale'
880 mandir='${datarootdir}/man'
881
882 ac_prev=
883 ac_dashdash=
884 for ac_option
885 do
886 # If the previous option needs an argument, assign it.
887 if test -n "$ac_prev"; then
888 eval $ac_prev=\$ac_option
889 ac_prev=
890 continue
891 fi
892
893 case $ac_option in
894 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895 *=) ac_optarg= ;;
896 *) ac_optarg=yes ;;
897 esac
898
899 # Accept the important Cygnus configure options, so we can diagnose typos.
900
901 case $ac_dashdash$ac_option in
902 --)
903 ac_dashdash=yes ;;
904
905 -bindir | --bindir | --bindi | --bind | --bin | --bi)
906 ac_prev=bindir ;;
907 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
908 bindir=$ac_optarg ;;
909
910 -build | --build | --buil | --bui | --bu)
911 ac_prev=build_alias ;;
912 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
913 build_alias=$ac_optarg ;;
914
915 -cache-file | --cache-file | --cache-fil | --cache-fi \
916 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
917 ac_prev=cache_file ;;
918 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
919 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
920 cache_file=$ac_optarg ;;
921
922 --config-cache | -C)
923 cache_file=config.cache ;;
924
925 -datadir | --datadir | --datadi | --datad)
926 ac_prev=datadir ;;
927 -datadir=* | --datadir=* | --datadi=* | --datad=*)
928 datadir=$ac_optarg ;;
929
930 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
931 | --dataroo | --dataro | --datar)
932 ac_prev=datarootdir ;;
933 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
934 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
935 datarootdir=$ac_optarg ;;
936
937 -disable-* | --disable-*)
938 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941 as_fn_error $? "invalid feature name: $ac_useropt"
942 ac_useropt_orig=$ac_useropt
943 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944 case $ac_user_opts in
945 *"
946 "enable_$ac_useropt"
947 "*) ;;
948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
949 ac_unrecognized_sep=', ';;
950 esac
951 eval enable_$ac_useropt=no ;;
952
953 -docdir | --docdir | --docdi | --doc | --do)
954 ac_prev=docdir ;;
955 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
956 docdir=$ac_optarg ;;
957
958 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
959 ac_prev=dvidir ;;
960 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
961 dvidir=$ac_optarg ;;
962
963 -enable-* | --enable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 as_fn_error $? "invalid feature name: $ac_useropt"
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
971 *"
972 "enable_$ac_useropt"
973 "*) ;;
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
976 esac
977 eval enable_$ac_useropt=\$ac_optarg ;;
978
979 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
980 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
981 | --exec | --exe | --ex)
982 ac_prev=exec_prefix ;;
983 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
984 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
985 | --exec=* | --exe=* | --ex=*)
986 exec_prefix=$ac_optarg ;;
987
988 -gas | --gas | --ga | --g)
989 # Obsolete; use --with-gas.
990 with_gas=yes ;;
991
992 -help | --help | --hel | --he | -h)
993 ac_init_help=long ;;
994 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
995 ac_init_help=recursive ;;
996 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
997 ac_init_help=short ;;
998
999 -host | --host | --hos | --ho)
1000 ac_prev=host_alias ;;
1001 -host=* | --host=* | --hos=* | --ho=*)
1002 host_alias=$ac_optarg ;;
1003
1004 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1005 ac_prev=htmldir ;;
1006 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1007 | --ht=*)
1008 htmldir=$ac_optarg ;;
1009
1010 -includedir | --includedir | --includedi | --included | --include \
1011 | --includ | --inclu | --incl | --inc)
1012 ac_prev=includedir ;;
1013 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1014 | --includ=* | --inclu=* | --incl=* | --inc=*)
1015 includedir=$ac_optarg ;;
1016
1017 -infodir | --infodir | --infodi | --infod | --info | --inf)
1018 ac_prev=infodir ;;
1019 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1020 infodir=$ac_optarg ;;
1021
1022 -libdir | --libdir | --libdi | --libd)
1023 ac_prev=libdir ;;
1024 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1025 libdir=$ac_optarg ;;
1026
1027 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1028 | --libexe | --libex | --libe)
1029 ac_prev=libexecdir ;;
1030 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1031 | --libexe=* | --libex=* | --libe=*)
1032 libexecdir=$ac_optarg ;;
1033
1034 -localedir | --localedir | --localedi | --localed | --locale)
1035 ac_prev=localedir ;;
1036 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1037 localedir=$ac_optarg ;;
1038
1039 -localstatedir | --localstatedir | --localstatedi | --localstated \
1040 | --localstate | --localstat | --localsta | --localst | --locals)
1041 ac_prev=localstatedir ;;
1042 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1043 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1044 localstatedir=$ac_optarg ;;
1045
1046 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1047 ac_prev=mandir ;;
1048 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1049 mandir=$ac_optarg ;;
1050
1051 -nfp | --nfp | --nf)
1052 # Obsolete; use --without-fp.
1053 with_fp=no ;;
1054
1055 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1056 | --no-cr | --no-c | -n)
1057 no_create=yes ;;
1058
1059 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1060 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1061 no_recursion=yes ;;
1062
1063 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1064 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1065 | --oldin | --oldi | --old | --ol | --o)
1066 ac_prev=oldincludedir ;;
1067 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1068 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1069 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1070 oldincludedir=$ac_optarg ;;
1071
1072 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1073 ac_prev=prefix ;;
1074 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1075 prefix=$ac_optarg ;;
1076
1077 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1078 | --program-pre | --program-pr | --program-p)
1079 ac_prev=program_prefix ;;
1080 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1081 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1082 program_prefix=$ac_optarg ;;
1083
1084 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1085 | --program-suf | --program-su | --program-s)
1086 ac_prev=program_suffix ;;
1087 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1088 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1089 program_suffix=$ac_optarg ;;
1090
1091 -program-transform-name | --program-transform-name \
1092 | --program-transform-nam | --program-transform-na \
1093 | --program-transform-n | --program-transform- \
1094 | --program-transform | --program-transfor \
1095 | --program-transfo | --program-transf \
1096 | --program-trans | --program-tran \
1097 | --progr-tra | --program-tr | --program-t)
1098 ac_prev=program_transform_name ;;
1099 -program-transform-name=* | --program-transform-name=* \
1100 | --program-transform-nam=* | --program-transform-na=* \
1101 | --program-transform-n=* | --program-transform-=* \
1102 | --program-transform=* | --program-transfor=* \
1103 | --program-transfo=* | --program-transf=* \
1104 | --program-trans=* | --program-tran=* \
1105 | --progr-tra=* | --program-tr=* | --program-t=*)
1106 program_transform_name=$ac_optarg ;;
1107
1108 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1109 ac_prev=pdfdir ;;
1110 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1111 pdfdir=$ac_optarg ;;
1112
1113 -psdir | --psdir | --psdi | --psd | --ps)
1114 ac_prev=psdir ;;
1115 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1116 psdir=$ac_optarg ;;
1117
1118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119 | -silent | --silent | --silen | --sile | --sil)
1120 silent=yes ;;
1121
1122 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1123 ac_prev=sbindir ;;
1124 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1125 | --sbi=* | --sb=*)
1126 sbindir=$ac_optarg ;;
1127
1128 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1129 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1130 | --sharedst | --shareds | --shared | --share | --shar \
1131 | --sha | --sh)
1132 ac_prev=sharedstatedir ;;
1133 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1134 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1135 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1136 | --sha=* | --sh=*)
1137 sharedstatedir=$ac_optarg ;;
1138
1139 -site | --site | --sit)
1140 ac_prev=site ;;
1141 -site=* | --site=* | --sit=*)
1142 site=$ac_optarg ;;
1143
1144 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1145 ac_prev=srcdir ;;
1146 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1147 srcdir=$ac_optarg ;;
1148
1149 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1150 | --syscon | --sysco | --sysc | --sys | --sy)
1151 ac_prev=sysconfdir ;;
1152 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1153 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1154 sysconfdir=$ac_optarg ;;
1155
1156 -target | --target | --targe | --targ | --tar | --ta | --t)
1157 ac_prev=target_alias ;;
1158 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1159 target_alias=$ac_optarg ;;
1160
1161 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1162 verbose=yes ;;
1163
1164 -version | --version | --versio | --versi | --vers | -V)
1165 ac_init_version=: ;;
1166
1167 -with-* | --with-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error $? "invalid package name: $ac_useropt"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1175 *"
1176 "with_$ac_useropt"
1177 "*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=\$ac_optarg ;;
1182
1183 -without-* | --without-*)
1184 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1187 as_fn_error $? "invalid package name: $ac_useropt"
1188 ac_useropt_orig=$ac_useropt
1189 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1191 *"
1192 "with_$ac_useropt"
1193 "*) ;;
1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1195 ac_unrecognized_sep=', ';;
1196 esac
1197 eval with_$ac_useropt=no ;;
1198
1199 --x)
1200 # Obsolete; use --with-x.
1201 with_x=yes ;;
1202
1203 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1204 | --x-incl | --x-inc | --x-in | --x-i)
1205 ac_prev=x_includes ;;
1206 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1207 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1208 x_includes=$ac_optarg ;;
1209
1210 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1211 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1212 ac_prev=x_libraries ;;
1213 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1214 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1215 x_libraries=$ac_optarg ;;
1216
1217 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1218 Try \`$0 --help' for more information"
1219 ;;
1220
1221 *=*)
1222 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1223 # Reject names that are not valid shell variable names.
1224 case $ac_envvar in #(
1225 '' | [0-9]* | *[!_$as_cr_alnum]* )
1226 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1227 esac
1228 eval $ac_envvar=\$ac_optarg
1229 export $ac_envvar ;;
1230
1231 *)
1232 # FIXME: should be removed in autoconf 3.0.
1233 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1234 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1236 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1237 ;;
1238
1239 esac
1240 done
1241
1242 if test -n "$ac_prev"; then
1243 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1244 as_fn_error $? "missing argument to $ac_option"
1245 fi
1246
1247 if test -n "$ac_unrecognized_opts"; then
1248 case $enable_option_checking in
1249 no) ;;
1250 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1251 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1252 esac
1253 fi
1254
1255 # Check all directory arguments for consistency.
1256 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1257 datadir sysconfdir sharedstatedir localstatedir includedir \
1258 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1259 libdir localedir mandir
1260 do
1261 eval ac_val=\$$ac_var
1262 # Remove trailing slashes.
1263 case $ac_val in
1264 */ )
1265 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1266 eval $ac_var=\$ac_val;;
1267 esac
1268 # Be sure to have absolute directory names.
1269 case $ac_val in
1270 [\\/$]* | ?:[\\/]* ) continue;;
1271 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1272 esac
1273 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1274 done
1275
1276 # There might be people who depend on the old broken behavior: `$host'
1277 # used to hold the argument of --host etc.
1278 # FIXME: To remove some day.
1279 build=$build_alias
1280 host=$host_alias
1281 target=$target_alias
1282
1283 # FIXME: To remove some day.
1284 if test "x$host_alias" != x; then
1285 if test "x$build_alias" = x; then
1286 cross_compiling=maybe
1287 elif test "x$build_alias" != "x$host_alias"; then
1288 cross_compiling=yes
1289 fi
1290 fi
1291
1292 ac_tool_prefix=
1293 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1294
1295 test "$silent" = yes && exec 6>/dev/null
1296
1297
1298 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1299 ac_ls_di=`ls -di .` &&
1300 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1301 as_fn_error $? "working directory cannot be determined"
1302 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1303 as_fn_error $? "pwd does not report name of working directory"
1304
1305
1306 # Find the source files, if location was not specified.
1307 if test -z "$srcdir"; then
1308 ac_srcdir_defaulted=yes
1309 # Try the directory containing this script, then the parent directory.
1310 ac_confdir=`$as_dirname -- "$as_myself" ||
1311 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312 X"$as_myself" : 'X\(//\)[^/]' \| \
1313 X"$as_myself" : 'X\(//\)$' \| \
1314 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1315 $as_echo X"$as_myself" |
1316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317 s//\1/
1318 q
1319 }
1320 /^X\(\/\/\)[^/].*/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\/\)$/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\).*/{
1329 s//\1/
1330 q
1331 }
1332 s/.*/./; q'`
1333 srcdir=$ac_confdir
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 srcdir=..
1336 fi
1337 else
1338 ac_srcdir_defaulted=no
1339 fi
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1342 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1343 fi
1344 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1345 ac_abs_confdir=`(
1346 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1347 pwd)`
1348 # When building in place, set srcdir=.
1349 if test "$ac_abs_confdir" = "$ac_pwd"; then
1350 srcdir=.
1351 fi
1352 # Remove unnecessary trailing slashes from srcdir.
1353 # Double slashes in file names in object file debugging info
1354 # mess up M-x gdb in Emacs.
1355 case $srcdir in
1356 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357 esac
1358 for ac_var in $ac_precious_vars; do
1359 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_env_${ac_var}_value=\$${ac_var}
1361 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363 done
1364
1365 #
1366 # Report the --help message.
1367 #
1368 if test "$ac_init_help" = "long"; then
1369 # Omit some internal or obsolete options to make the list less imposing.
1370 # This message is too long to be a string in the A/UX 3.1 sh.
1371 cat <<_ACEOF
1372 \`configure' configures xf86-video-mga 1.6.4 to adapt to many kinds of systems.
1373
1374 Usage: $0 [OPTION]... [VAR=VALUE]...
1375
1376 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377 VAR=VALUE. See below for descriptions of some of the useful variables.
1378
1379 Defaults for the options are specified in brackets.
1380
1381 Configuration:
1382 -h, --help display this help and exit
1383 --help=short display options specific to this package
1384 --help=recursive display the short help of all the included packages
1385 -V, --version display version information and exit
1386 -q, --quiet, --silent do not print \`checking ...' messages
1387 --cache-file=FILE cache test results in FILE [disabled]
1388 -C, --config-cache alias for \`--cache-file=config.cache'
1389 -n, --no-create do not create output files
1390 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1391
1392 Installation directories:
1393 --prefix=PREFIX install architecture-independent files in PREFIX
1394 [$ac_default_prefix]
1395 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1396 [PREFIX]
1397
1398 By default, \`make install' will install all the files in
1399 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1400 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401 for instance \`--prefix=\$HOME'.
1402
1403 For better control, use the options below.
1404
1405 Fine tuning of the installation directories:
1406 --bindir=DIR user executables [EPREFIX/bin]
1407 --sbindir=DIR system admin executables [EPREFIX/sbin]
1408 --libexecdir=DIR program executables [EPREFIX/libexec]
1409 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1410 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1411 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1412 --libdir=DIR object code libraries [EPREFIX/lib]
1413 --includedir=DIR C header files [PREFIX/include]
1414 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1417 --infodir=DIR info documentation [DATAROOTDIR/info]
1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1419 --mandir=DIR man documentation [DATAROOTDIR/man]
1420 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-mga]
1421 --htmldir=DIR html documentation [DOCDIR]
1422 --dvidir=DIR dvi documentation [DOCDIR]
1423 --pdfdir=DIR pdf documentation [DOCDIR]
1424 --psdir=DIR ps documentation [DOCDIR]
1425 _ACEOF
1426
1427 cat <<\_ACEOF
1428
1429 Program names:
1430 --program-prefix=C prepend C to installed program names
1431 --program-suffix=SUFFIX append SUFFIX to installed program names
1432 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1433
1434 System types:
1435 --build=BUILD configure for building on BUILD [guessed]
1436 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1437 _ACEOF
1438 fi
1439
1440 if test -n "$ac_init_help"; then
1441 case $ac_init_help in
1442 short | recursive ) echo "Configuration of xf86-video-mga 1.6.4:";;
1443 esac
1444 cat <<\_ACEOF
1445
1446 Optional Features:
1447 --disable-option-checking ignore unrecognized --enable/--with options
1448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1450 --disable-selective-werror
1451 Turn off selective compiler errors. (default:
1452 enabled)
1453 --enable-strict-compilation
1454 Enable all warnings from compiler and make them
1455 errors (default: disabled)
1456 --enable-silent-rules less verbose build output (undo: "make V=1")
1457 --disable-silent-rules verbose build output (undo: "make V=0")
1458 --enable-dependency-tracking
1459 do not reject slow dependency extractors
1460 --disable-dependency-tracking
1461 speeds up one-time build
1462 --enable-maintainer-mode
1463 enable make rules and dependencies not useful (and
1464 sometimes confusing) to the casual installer
1465 --enable-static[=PKGS] build static libraries [default=no]
1466 --enable-shared[=PKGS] build shared libraries [default=yes]
1467 --enable-fast-install[=PKGS]
1468 optimize for fast installation [default=yes]
1469 --disable-libtool-lock avoid locking (might break parallel builds)
1470 --disable-dri Disable DRI support [[default=auto]]
1471 --disable-exa Disable EXA support [[default=enabled]]
1472 --enable-xaa Enable legacy X Acceleration Architecture (XAA)
1473 [default=auto]
1474
1475 Optional Packages:
1476 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1477 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1478 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1479 both]
1480 --with-aix-soname=aix|svr4|both
1481 shared library versioning (aka "SONAME") variant to
1482 provide on AIX, [default=aix].
1483 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1484 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1485 compiler's sysroot if not specified).
1486 --with-xorg-module-dir=DIR
1487 Default xorg module directory
1488 [[default=$libdir/xorg/modules]]
1489
1490 Some influential environment variables:
1491 CC C compiler command
1492 CFLAGS C compiler flags
1493 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1494 nonstandard directory <lib dir>
1495 LIBS libraries to pass to the linker, e.g. -l<library>
1496 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1497 you have headers in a nonstandard directory <include dir>
1498 CPP C preprocessor
1499 PKG_CONFIG path to pkg-config utility
1500 PKG_CONFIG_PATH
1501 directories to add to pkg-config's search path
1502 PKG_CONFIG_LIBDIR
1503 path overriding pkg-config's built-in search path
1504 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1505 XORG_LIBS linker flags for XORG, overriding pkg-config
1506 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config
1507 DRI_LIBS linker flags for DRI, overriding pkg-config
1508 PCIACCESS_CFLAGS
1509 C compiler flags for PCIACCESS, overriding pkg-config
1510 PCIACCESS_LIBS
1511 linker flags for PCIACCESS, overriding pkg-config
1512
1513 Use these variables to override the choices made by `configure' or to help
1514 it to find libraries and programs with nonstandard names/locations.
1515
1516 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1517 _ACEOF
1518 ac_status=$?
1519 fi
1520
1521 if test "$ac_init_help" = "recursive"; then
1522 # If there are subdirs, report their specific --help.
1523 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1524 test -d "$ac_dir" ||
1525 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1526 continue
1527 ac_builddir=.
1528
1529 case "$ac_dir" in
1530 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531 *)
1532 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1533 # A ".." for each directory in $ac_dir_suffix.
1534 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1535 case $ac_top_builddir_sub in
1536 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1538 esac ;;
1539 esac
1540 ac_abs_top_builddir=$ac_pwd
1541 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1542 # for backward compatibility:
1543 ac_top_builddir=$ac_top_build_prefix
1544
1545 case $srcdir in
1546 .) # We are building in place.
1547 ac_srcdir=.
1548 ac_top_srcdir=$ac_top_builddir_sub
1549 ac_abs_top_srcdir=$ac_pwd ;;
1550 [\\/]* | ?:[\\/]* ) # Absolute name.
1551 ac_srcdir=$srcdir$ac_dir_suffix;
1552 ac_top_srcdir=$srcdir
1553 ac_abs_top_srcdir=$srcdir ;;
1554 *) # Relative name.
1555 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1556 ac_top_srcdir=$ac_top_build_prefix$srcdir
1557 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1558 esac
1559 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1560
1561 cd "$ac_dir" || { ac_status=$?; continue; }
1562 # Check for guested configure.
1563 if test -f "$ac_srcdir/configure.gnu"; then
1564 echo &&
1565 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1566 elif test -f "$ac_srcdir/configure"; then
1567 echo &&
1568 $SHELL "$ac_srcdir/configure" --help=recursive
1569 else
1570 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1571 fi || ac_status=$?
1572 cd "$ac_pwd" || { ac_status=$?; break; }
1573 done
1574 fi
1575
1576 test -n "$ac_init_help" && exit $ac_status
1577 if $ac_init_version; then
1578 cat <<\_ACEOF
1579 xf86-video-mga configure 1.6.4
1580 generated by GNU Autoconf 2.69
1581
1582 Copyright (C) 2012 Free Software Foundation, Inc.
1583 This configure script is free software; the Free Software Foundation
1584 gives unlimited permission to copy, distribute and modify it.
1585 _ACEOF
1586 exit
1587 fi
1588
1589 ## ------------------------ ##
1590 ## Autoconf initialization. ##
1591 ## ------------------------ ##
1592
1593 # ac_fn_c_try_compile LINENO
1594 # --------------------------
1595 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1596 ac_fn_c_try_compile ()
1597 {
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 rm -f conftest.$ac_objext
1600 if { { ac_try="$ac_compile"
1601 case "(($ac_try" in
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1604 esac
1605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606 $as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_compile") 2>conftest.err
1608 ac_status=$?
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1613 fi
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } && {
1616 test -z "$ac_c_werror_flag" ||
1617 test ! -s conftest.err
1618 } && test -s conftest.$ac_objext; then :
1619 ac_retval=0
1620 else
1621 $as_echo "$as_me: failed program was:" >&5
1622 sed 's/^/| /' conftest.$ac_ext >&5
1623
1624 ac_retval=1
1625 fi
1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627 as_fn_set_status $ac_retval
1628
1629 } # ac_fn_c_try_compile
1630
1631 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1632 # ---------------------------------------------
1633 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1634 # accordingly.
1635 ac_fn_c_check_decl ()
1636 {
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 as_decl_name=`echo $2|sed 's/ *(.*//'`
1639 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1641 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1642 if eval \${$3+:} false; then :
1643 $as_echo_n "(cached) " >&6
1644 else
1645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1646 /* end confdefs.h. */
1647 $4
1648 int
1649 main ()
1650 {
1651 #ifndef $as_decl_name
1652 #ifdef __cplusplus
1653 (void) $as_decl_use;
1654 #else
1655 (void) $as_decl_name;
1656 #endif
1657 #endif
1658
1659 ;
1660 return 0;
1661 }
1662 _ACEOF
1663 if ac_fn_c_try_compile "$LINENO"; then :
1664 eval "$3=yes"
1665 else
1666 eval "$3=no"
1667 fi
1668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1669 fi
1670 eval ac_res=\$$3
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1672 $as_echo "$ac_res" >&6; }
1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674
1675 } # ac_fn_c_check_decl
1676
1677 # ac_fn_c_try_cpp LINENO
1678 # ----------------------
1679 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1680 ac_fn_c_try_cpp ()
1681 {
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 if { { ac_try="$ac_cpp conftest.$ac_ext"
1684 case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1687 esac
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1691 ac_status=$?
1692 if test -s conftest.err; then
1693 grep -v '^ *+' conftest.err >conftest.er1
1694 cat conftest.er1 >&5
1695 mv -f conftest.er1 conftest.err
1696 fi
1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698 test $ac_status = 0; } > conftest.i && {
1699 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1700 test ! -s conftest.err
1701 }; then :
1702 ac_retval=0
1703 else
1704 $as_echo "$as_me: failed program was:" >&5
1705 sed 's/^/| /' conftest.$ac_ext >&5
1706
1707 ac_retval=1
1708 fi
1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710 as_fn_set_status $ac_retval
1711
1712 } # ac_fn_c_try_cpp
1713
1714 # ac_fn_c_try_run LINENO
1715 # ----------------------
1716 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1717 # that executables *can* be run.
1718 ac_fn_c_try_run ()
1719 {
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 if { { ac_try="$ac_link"
1722 case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725 esac
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 $as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_link") 2>&5
1729 ac_status=$?
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1732 { { case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_try") 2>&5
1739 ac_status=$?
1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; }; }; then :
1742 ac_retval=0
1743 else
1744 $as_echo "$as_me: program exited with status $ac_status" >&5
1745 $as_echo "$as_me: failed program was:" >&5
1746 sed 's/^/| /' conftest.$ac_ext >&5
1747
1748 ac_retval=$ac_status
1749 fi
1750 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752 as_fn_set_status $ac_retval
1753
1754 } # ac_fn_c_try_run
1755
1756 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1757 # -------------------------------------------------------
1758 # Tests whether HEADER exists and can be compiled using the include files in
1759 # INCLUDES, setting the cache variable VAR accordingly.
1760 ac_fn_c_check_header_compile ()
1761 {
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764 $as_echo_n "checking for $2... " >&6; }
1765 if eval \${$3+:} false; then :
1766 $as_echo_n "(cached) " >&6
1767 else
1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h. */
1770 $4
1771 #include <$2>
1772 _ACEOF
1773 if ac_fn_c_try_compile "$LINENO"; then :
1774 eval "$3=yes"
1775 else
1776 eval "$3=no"
1777 fi
1778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1779 fi
1780 eval ac_res=\$$3
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782 $as_echo "$ac_res" >&6; }
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784
1785 } # ac_fn_c_check_header_compile
1786
1787 # ac_fn_c_try_link LINENO
1788 # -----------------------
1789 # Try to link conftest.$ac_ext, and return whether this succeeded.
1790 ac_fn_c_try_link ()
1791 {
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 rm -f conftest.$ac_objext conftest$ac_exeext
1794 if { { ac_try="$ac_link"
1795 case "(($ac_try" in
1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797 *) ac_try_echo=$ac_try;;
1798 esac
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_link") 2>conftest.err
1802 ac_status=$?
1803 if test -s conftest.err; then
1804 grep -v '^ *+' conftest.err >conftest.er1
1805 cat conftest.er1 >&5
1806 mv -f conftest.er1 conftest.err
1807 fi
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && {
1810 test -z "$ac_c_werror_flag" ||
1811 test ! -s conftest.err
1812 } && test -s conftest$ac_exeext && {
1813 test "$cross_compiling" = yes ||
1814 test -x conftest$ac_exeext
1815 }; then :
1816 ac_retval=0
1817 else
1818 $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1820
1821 ac_retval=1
1822 fi
1823 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1824 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1825 # interfere with the next link command; also delete a directory that is
1826 # left behind by Apple's compiler. We do this before executing the actions.
1827 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 as_fn_set_status $ac_retval
1830
1831 } # ac_fn_c_try_link
1832
1833 # ac_fn_c_check_func LINENO FUNC VAR
1834 # ----------------------------------
1835 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1836 ac_fn_c_check_func ()
1837 {
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840 $as_echo_n "checking for $2... " >&6; }
1841 if eval \${$3+:} false; then :
1842 $as_echo_n "(cached) " >&6
1843 else
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h. */
1846 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1848 #define $2 innocuous_$2
1849
1850 /* System header to define __stub macros and hopefully few prototypes,
1851 which can conflict with char $2 (); below.
1852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1853 <limits.h> exists even on freestanding compilers. */
1854
1855 #ifdef __STDC__
1856 # include <limits.h>
1857 #else
1858 # include <assert.h>
1859 #endif
1860
1861 #undef $2
1862
1863 /* Override any GCC internal prototype to avoid an error.
1864 Use char because int might match the return type of a GCC
1865 builtin and then its argument prototype would still apply. */
1866 #ifdef __cplusplus
1867 extern "C"
1868 #endif
1869 char $2 ();
1870 /* The GNU C library defines this for functions which it implements
1871 to always fail with ENOSYS. Some functions are actually named
1872 something starting with __ and the normal name is an alias. */
1873 #if defined __stub_$2 || defined __stub___$2
1874 choke me
1875 #endif
1876
1877 int
1878 main ()
1879 {
1880 return $2 ();
1881 ;
1882 return 0;
1883 }
1884 _ACEOF
1885 if ac_fn_c_try_link "$LINENO"; then :
1886 eval "$3=yes"
1887 else
1888 eval "$3=no"
1889 fi
1890 rm -f core conftest.err conftest.$ac_objext \
1891 conftest$ac_exeext conftest.$ac_ext
1892 fi
1893 eval ac_res=\$$3
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895 $as_echo "$ac_res" >&6; }
1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897
1898 } # ac_fn_c_check_func
1899
1900 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1901 # -------------------------------------------------------
1902 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1903 # the include files in INCLUDES and setting the cache variable VAR
1904 # accordingly.
1905 ac_fn_c_check_header_mongrel ()
1906 {
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 if eval \${$3+:} false; then :
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1910 $as_echo_n "checking for $2... " >&6; }
1911 if eval \${$3+:} false; then :
1912 $as_echo_n "(cached) " >&6
1913 fi
1914 eval ac_res=\$$3
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916 $as_echo "$ac_res" >&6; }
1917 else
1918 # Is the header compilable?
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1920 $as_echo_n "checking $2 usability... " >&6; }
1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h. */
1923 $4
1924 #include <$2>
1925 _ACEOF
1926 if ac_fn_c_try_compile "$LINENO"; then :
1927 ac_header_compiler=yes
1928 else
1929 ac_header_compiler=no
1930 fi
1931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1933 $as_echo "$ac_header_compiler" >&6; }
1934
1935 # Is the header present?
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1937 $as_echo_n "checking $2 presence... " >&6; }
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1940 #include <$2>
1941 _ACEOF
1942 if ac_fn_c_try_cpp "$LINENO"; then :
1943 ac_header_preproc=yes
1944 else
1945 ac_header_preproc=no
1946 fi
1947 rm -f conftest.err conftest.i conftest.$ac_ext
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1949 $as_echo "$ac_header_preproc" >&6; }
1950
1951 # So? What about this header?
1952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1953 yes:no: )
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1955 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1957 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1958 ;;
1959 no:yes:* )
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1961 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1963 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1965 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1967 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1969 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1970 ( $as_echo "## ---------------------------------------------------------------------- ##
1971 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1972 ## ---------------------------------------------------------------------- ##"
1973 ) | sed "s/^/$as_me: WARNING: /" >&2
1974 ;;
1975 esac
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1977 $as_echo_n "checking for $2... " >&6; }
1978 if eval \${$3+:} false; then :
1979 $as_echo_n "(cached) " >&6
1980 else
1981 eval "$3=\$ac_header_compiler"
1982 fi
1983 eval ac_res=\$$3
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1985 $as_echo "$ac_res" >&6; }
1986 fi
1987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1988
1989 } # ac_fn_c_check_header_mongrel
1990 cat >config.log <<_ACEOF
1991 This file contains any messages produced by compilers while
1992 running configure, to aid debugging if configure makes a mistake.
1993
1994 It was created by xf86-video-mga $as_me 1.6.4, which was
1995 generated by GNU Autoconf 2.69. Invocation command line was
1996
1997 $ $0 $@
1998
1999 _ACEOF
2000 exec 5>>config.log
2001 {
2002 cat <<_ASUNAME
2003 ## --------- ##
2004 ## Platform. ##
2005 ## --------- ##
2006
2007 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2008 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2009 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2010 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2011 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2012
2013 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2014 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2015
2016 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2017 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2018 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2019 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2020 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2021 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2022 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2023
2024 _ASUNAME
2025
2026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027 for as_dir in $PATH
2028 do
2029 IFS=$as_save_IFS
2030 test -z "$as_dir" && as_dir=.
2031 $as_echo "PATH: $as_dir"
2032 done
2033 IFS=$as_save_IFS
2034
2035 } >&5
2036
2037 cat >&5 <<_ACEOF
2038
2039
2040 ## ----------- ##
2041 ## Core tests. ##
2042 ## ----------- ##
2043
2044 _ACEOF
2045
2046
2047 # Keep a trace of the command line.
2048 # Strip out --no-create and --no-recursion so they do not pile up.
2049 # Strip out --silent because we don't want to record it for future runs.
2050 # Also quote any args containing shell meta-characters.
2051 # Make two passes to allow for proper duplicate-argument suppression.
2052 ac_configure_args=
2053 ac_configure_args0=
2054 ac_configure_args1=
2055 ac_must_keep_next=false
2056 for ac_pass in 1 2
2057 do
2058 for ac_arg
2059 do
2060 case $ac_arg in
2061 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2063 | -silent | --silent | --silen | --sile | --sil)
2064 continue ;;
2065 *\'*)
2066 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2067 esac
2068 case $ac_pass in
2069 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2070 2)
2071 as_fn_append ac_configure_args1 " '$ac_arg'"
2072 if test $ac_must_keep_next = true; then
2073 ac_must_keep_next=false # Got value, back to normal.
2074 else
2075 case $ac_arg in
2076 *=* | --config-cache | -C | -disable-* | --disable-* \
2077 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2078 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2079 | -with-* | --with-* | -without-* | --without-* | --x)
2080 case "$ac_configure_args0 " in
2081 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2082 esac
2083 ;;
2084 -* ) ac_must_keep_next=true ;;
2085 esac
2086 fi
2087 as_fn_append ac_configure_args " '$ac_arg'"
2088 ;;
2089 esac
2090 done
2091 done
2092 { ac_configure_args0=; unset ac_configure_args0;}
2093 { ac_configure_args1=; unset ac_configure_args1;}
2094
2095 # When interrupted or exit'd, cleanup temporary files, and complete
2096 # config.log. We remove comments because anyway the quotes in there
2097 # would cause problems or look ugly.
2098 # WARNING: Use '\'' to represent an apostrophe within the trap.
2099 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2100 trap 'exit_status=$?
2101 # Save into config.log some information that might help in debugging.
2102 {
2103 echo
2104
2105 $as_echo "## ---------------- ##
2106 ## Cache variables. ##
2107 ## ---------------- ##"
2108 echo
2109 # The following way of writing the cache mishandles newlines in values,
2110 (
2111 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2112 eval ac_val=\$$ac_var
2113 case $ac_val in #(
2114 *${as_nl}*)
2115 case $ac_var in #(
2116 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2117 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2118 esac
2119 case $ac_var in #(
2120 _ | IFS | as_nl) ;; #(
2121 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2122 *) { eval $ac_var=; unset $ac_var;} ;;
2123 esac ;;
2124 esac
2125 done
2126 (set) 2>&1 |
2127 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2128 *${as_nl}ac_space=\ *)
2129 sed -n \
2130 "s/'\''/'\''\\\\'\'''\''/g;
2131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2132 ;; #(
2133 *)
2134 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2135 ;;
2136 esac |
2137 sort
2138 )
2139 echo
2140
2141 $as_echo "## ----------------- ##
2142 ## Output variables. ##
2143 ## ----------------- ##"
2144 echo
2145 for ac_var in $ac_subst_vars
2146 do
2147 eval ac_val=\$$ac_var
2148 case $ac_val in
2149 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2150 esac
2151 $as_echo "$ac_var='\''$ac_val'\''"
2152 done | sort
2153 echo
2154
2155 if test -n "$ac_subst_files"; then
2156 $as_echo "## ------------------- ##
2157 ## File substitutions. ##
2158 ## ------------------- ##"
2159 echo
2160 for ac_var in $ac_subst_files
2161 do
2162 eval ac_val=\$$ac_var
2163 case $ac_val in
2164 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2165 esac
2166 $as_echo "$ac_var='\''$ac_val'\''"
2167 done | sort
2168 echo
2169 fi
2170
2171 if test -s confdefs.h; then
2172 $as_echo "## ----------- ##
2173 ## confdefs.h. ##
2174 ## ----------- ##"
2175 echo
2176 cat confdefs.h
2177 echo
2178 fi
2179 test "$ac_signal" != 0 &&
2180 $as_echo "$as_me: caught signal $ac_signal"
2181 $as_echo "$as_me: exit $exit_status"
2182 } >&5
2183 rm -f core *.core core.conftest.* &&
2184 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2185 exit $exit_status
2186 ' 0
2187 for ac_signal in 1 2 13 15; do
2188 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2189 done
2190 ac_signal=0
2191
2192 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2193 rm -f -r conftest* confdefs.h
2194
2195 $as_echo "/* confdefs.h */" > confdefs.h
2196
2197 # Predefined preprocessor variables.
2198
2199 cat >>confdefs.h <<_ACEOF
2200 #define PACKAGE_NAME "$PACKAGE_NAME"
2201 _ACEOF
2202
2203 cat >>confdefs.h <<_ACEOF
2204 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2205 _ACEOF
2206
2207 cat >>confdefs.h <<_ACEOF
2208 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2209 _ACEOF
2210
2211 cat >>confdefs.h <<_ACEOF
2212 #define PACKAGE_STRING "$PACKAGE_STRING"
2213 _ACEOF
2214
2215 cat >>confdefs.h <<_ACEOF
2216 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2217 _ACEOF
2218
2219 cat >>confdefs.h <<_ACEOF
2220 #define PACKAGE_URL "$PACKAGE_URL"
2221 _ACEOF
2222
2223
2224 # Let the site file select an alternate cache file if it wants to.
2225 # Prefer an explicitly selected file to automatically selected ones.
2226 ac_site_file1=NONE
2227 ac_site_file2=NONE
2228 if test -n "$CONFIG_SITE"; then
2229 # We do not want a PATH search for config.site.
2230 case $CONFIG_SITE in #((
2231 -*) ac_site_file1=./$CONFIG_SITE;;
2232 */*) ac_site_file1=$CONFIG_SITE;;
2233 *) ac_site_file1=./$CONFIG_SITE;;
2234 esac
2235 elif test "x$prefix" != xNONE; then
2236 ac_site_file1=$prefix/share/config.site
2237 ac_site_file2=$prefix/etc/config.site
2238 else
2239 ac_site_file1=$ac_default_prefix/share/config.site
2240 ac_site_file2=$ac_default_prefix/etc/config.site
2241 fi
2242 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2243 do
2244 test "x$ac_site_file" = xNONE && continue
2245 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2247 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2248 sed 's/^/| /' "$ac_site_file" >&5
2249 . "$ac_site_file" \
2250 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2252 as_fn_error $? "failed to load site script $ac_site_file
2253 See \`config.log' for more details" "$LINENO" 5; }
2254 fi
2255 done
2256
2257 if test -r "$cache_file"; then
2258 # Some versions of bash will fail to source /dev/null (special files
2259 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2260 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2262 $as_echo "$as_me: loading cache $cache_file" >&6;}
2263 case $cache_file in
2264 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2265 *) . "./$cache_file";;
2266 esac
2267 fi
2268 else
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2270 $as_echo "$as_me: creating cache $cache_file" >&6;}
2271 >$cache_file
2272 fi
2273
2274 # Check that the precious variables saved in the cache have kept the same
2275 # value.
2276 ac_cache_corrupted=false
2277 for ac_var in $ac_precious_vars; do
2278 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2279 eval ac_new_set=\$ac_env_${ac_var}_set
2280 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2281 eval ac_new_val=\$ac_env_${ac_var}_value
2282 case $ac_old_set,$ac_new_set in
2283 set,)
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2285 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2286 ac_cache_corrupted=: ;;
2287 ,set)
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2289 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2290 ac_cache_corrupted=: ;;
2291 ,);;
2292 *)
2293 if test "x$ac_old_val" != "x$ac_new_val"; then
2294 # differences in whitespace do not lead to failure.
2295 ac_old_val_w=`echo x $ac_old_val`
2296 ac_new_val_w=`echo x $ac_new_val`
2297 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2299 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2300 ac_cache_corrupted=:
2301 else
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2303 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2304 eval $ac_var=\$ac_old_val
2305 fi
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2307 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2309 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2310 fi;;
2311 esac
2312 # Pass precious variables to config.status.
2313 if test "$ac_new_set" = set; then
2314 case $ac_new_val in
2315 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2316 *) ac_arg=$ac_var=$ac_new_val ;;
2317 esac
2318 case " $ac_configure_args " in
2319 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2320 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2321 esac
2322 fi
2323 done
2324 if $ac_cache_corrupted; then
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2328 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2329 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2330 fi
2331 ## -------------------- ##
2332 ## Main body of script. ##
2333 ## -------------------- ##
2334
2335 ac_ext=c
2336 ac_cpp='$CPP $CPPFLAGS'
2337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2340
2341
2342
2343 ac_config_headers="$ac_config_headers config.h"
2344
2345
2346 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358 ac_aux_dir=
2359 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2360 if test -f "$ac_dir/install-sh"; then
2361 ac_aux_dir=$ac_dir
2362 ac_install_sh="$ac_aux_dir/install-sh -c"
2363 break
2364 elif test -f "$ac_dir/install.sh"; then
2365 ac_aux_dir=$ac_dir
2366 ac_install_sh="$ac_aux_dir/install.sh -c"
2367 break
2368 elif test -f "$ac_dir/shtool"; then
2369 ac_aux_dir=$ac_dir
2370 ac_install_sh="$ac_aux_dir/shtool install -c"
2371 break
2372 fi
2373 done
2374 if test -z "$ac_aux_dir"; then
2375 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2376 fi
2377
2378 # These three variables are undocumented and unsupported,
2379 # and are intended to be withdrawn in a future Autoconf release.
2380 # They can cause serious problems if a builder's source tree is in a directory
2381 # whose full name contains unusual characters.
2382 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2383 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2384 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2385
2386
2387 # Find a good install program. We prefer a C program (faster),
2388 # so one script is as good as another. But avoid the broken or
2389 # incompatible versions:
2390 # SysV /etc/install, /usr/sbin/install
2391 # SunOS /usr/etc/install
2392 # IRIX /sbin/install
2393 # AIX /bin/install
2394 # AmigaOS /C/install, which installs bootblocks on floppy discs
2395 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2396 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2397 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2398 # OS/2's system install, which has a completely different semantic
2399 # ./install, which can be erroneously created by make from ./install.sh.
2400 # Reject install programs that cannot install multiple files.
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2402 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2403 if test -z "$INSTALL"; then
2404 if ${ac_cv_path_install+:} false; then :
2405 $as_echo_n "(cached) " >&6
2406 else
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408 for as_dir in $PATH
2409 do
2410 IFS=$as_save_IFS
2411 test -z "$as_dir" && as_dir=.
2412 # Account for people who put trailing slashes in PATH elements.
2413 case $as_dir/ in #((
2414 ./ | .// | /[cC]/* | \
2415 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2416 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2417 /usr/ucb/* ) ;;
2418 *)
2419 # OSF1 and SCO ODT 3.0 have their own names for install.
2420 # Don't use installbsd from OSF since it installs stuff as root
2421 # by default.
2422 for ac_prog in ginstall scoinst install; do
2423 for ac_exec_ext in '' $ac_executable_extensions; do
2424 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2425 if test $ac_prog = install &&
2426 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2427 # AIX install. It has an incompatible calling convention.
2428 :
2429 elif test $ac_prog = install &&
2430 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2431 # program-specific install script used by HP pwplus--don't use.
2432 :
2433 else
2434 rm -rf conftest.one conftest.two conftest.dir
2435 echo one > conftest.one
2436 echo two > conftest.two
2437 mkdir conftest.dir
2438 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2439 test -s conftest.one && test -s conftest.two &&
2440 test -s conftest.dir/conftest.one &&
2441 test -s conftest.dir/conftest.two
2442 then
2443 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2444 break 3
2445 fi
2446 fi
2447 fi
2448 done
2449 done
2450 ;;
2451 esac
2452
2453 done
2454 IFS=$as_save_IFS
2455
2456 rm -rf conftest.one conftest.two conftest.dir
2457
2458 fi
2459 if test "${ac_cv_path_install+set}" = set; then
2460 INSTALL=$ac_cv_path_install
2461 else
2462 # As a last resort, use the slow shell script. Don't cache a
2463 # value for INSTALL within a source directory, because that will
2464 # break other packages using the cache if that directory is
2465 # removed, or if the value is a relative name.
2466 INSTALL=$ac_install_sh
2467 fi
2468 fi
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2470 $as_echo "$INSTALL" >&6; }
2471
2472 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2473 # It thinks the first close brace ends the variable substitution.
2474 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2475
2476 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2477
2478 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2479
2480 # expand $ac_aux_dir to an absolute path
2481 am_aux_dir=`cd $ac_aux_dir && pwd`
2482
2483 ac_ext=c
2484 ac_cpp='$CPP $CPPFLAGS'
2485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2488 if test -n "$ac_tool_prefix"; then
2489 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2490 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2492 $as_echo_n "checking for $ac_word... " >&6; }
2493 if ${ac_cv_prog_CC+:} false; then :
2494 $as_echo_n "(cached) " >&6
2495 else
2496 if test -n "$CC"; then
2497 ac_cv_prog_CC="$CC" # Let the user override the test.
2498 else
2499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500 for as_dir in $PATH
2501 do
2502 IFS=$as_save_IFS
2503 test -z "$as_dir" && as_dir=.
2504 for ac_exec_ext in '' $ac_executable_extensions; do
2505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2506 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2508 break 2
2509 fi
2510 done
2511 done
2512 IFS=$as_save_IFS
2513
2514 fi
2515 fi
2516 CC=$ac_cv_prog_CC
2517 if test -n "$CC"; then
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2519 $as_echo "$CC" >&6; }
2520 else
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2522 $as_echo "no" >&6; }
2523 fi
2524
2525
2526 fi
2527 if test -z "$ac_cv_prog_CC"; then
2528 ac_ct_CC=$CC
2529 # Extract the first word of "gcc", so it can be a program name with args.
2530 set dummy gcc; ac_word=$2
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2532 $as_echo_n "checking for $ac_word... " >&6; }
2533 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2534 $as_echo_n "(cached) " >&6
2535 else
2536 if test -n "$ac_ct_CC"; then
2537 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2538 else
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 for as_dir in $PATH
2541 do
2542 IFS=$as_save_IFS
2543 test -z "$as_dir" && as_dir=.
2544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2546 ac_cv_prog_ac_ct_CC="gcc"
2547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2548 break 2
2549 fi
2550 done
2551 done
2552 IFS=$as_save_IFS
2553
2554 fi
2555 fi
2556 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2557 if test -n "$ac_ct_CC"; then
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2559 $as_echo "$ac_ct_CC" >&6; }
2560 else
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2562 $as_echo "no" >&6; }
2563 fi
2564
2565 if test "x$ac_ct_CC" = x; then
2566 CC=""
2567 else
2568 case $cross_compiling:$ac_tool_warned in
2569 yes:)
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2572 ac_tool_warned=yes ;;
2573 esac
2574 CC=$ac_ct_CC
2575 fi
2576 else
2577 CC="$ac_cv_prog_CC"
2578 fi
2579
2580 if test -z "$CC"; then
2581 if test -n "$ac_tool_prefix"; then
2582 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2583 set dummy ${ac_tool_prefix}cc; ac_word=$2
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2585 $as_echo_n "checking for $ac_word... " >&6; }
2586 if ${ac_cv_prog_CC+:} false; then :
2587 $as_echo_n "(cached) " >&6
2588 else
2589 if test -n "$CC"; then
2590 ac_cv_prog_CC="$CC" # Let the user override the test.
2591 else
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 for as_dir in $PATH
2594 do
2595 IFS=$as_save_IFS
2596 test -z "$as_dir" && as_dir=.
2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2599 ac_cv_prog_CC="${ac_tool_prefix}cc"
2600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2601 break 2
2602 fi
2603 done
2604 done
2605 IFS=$as_save_IFS
2606
2607 fi
2608 fi
2609 CC=$ac_cv_prog_CC
2610 if test -n "$CC"; then
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2612 $as_echo "$CC" >&6; }
2613 else
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2615 $as_echo "no" >&6; }
2616 fi
2617
2618
2619 fi
2620 fi
2621 if test -z "$CC"; then
2622 # Extract the first word of "cc", so it can be a program name with args.
2623 set dummy cc; ac_word=$2
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2625 $as_echo_n "checking for $ac_word... " >&6; }
2626 if ${ac_cv_prog_CC+:} false; then :
2627 $as_echo_n "(cached) " >&6
2628 else
2629 if test -n "$CC"; then
2630 ac_cv_prog_CC="$CC" # Let the user override the test.
2631 else
2632 ac_prog_rejected=no
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 for as_dir in $PATH
2635 do
2636 IFS=$as_save_IFS
2637 test -z "$as_dir" && as_dir=.
2638 for ac_exec_ext in '' $ac_executable_extensions; do
2639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2640 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2641 ac_prog_rejected=yes
2642 continue
2643 fi
2644 ac_cv_prog_CC="cc"
2645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2646 break 2
2647 fi
2648 done
2649 done
2650 IFS=$as_save_IFS
2651
2652 if test $ac_prog_rejected = yes; then
2653 # We found a bogon in the path, so make sure we never use it.
2654 set dummy $ac_cv_prog_CC
2655 shift
2656 if test $# != 0; then
2657 # We chose a different compiler from the bogus one.
2658 # However, it has the same basename, so the bogon will be chosen
2659 # first if we set CC to just the basename; use the full file name.
2660 shift
2661 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2662 fi
2663 fi
2664 fi
2665 fi
2666 CC=$ac_cv_prog_CC
2667 if test -n "$CC"; then
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2669 $as_echo "$CC" >&6; }
2670 else
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2672 $as_echo "no" >&6; }
2673 fi
2674
2675
2676 fi
2677 if test -z "$CC"; then
2678 if test -n "$ac_tool_prefix"; then
2679 for ac_prog in cl.exe
2680 do
2681 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2682 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2684 $as_echo_n "checking for $ac_word... " >&6; }
2685 if ${ac_cv_prog_CC+:} false; then :
2686 $as_echo_n "(cached) " >&6
2687 else
2688 if test -n "$CC"; then
2689 ac_cv_prog_CC="$CC" # Let the user override the test.
2690 else
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH
2693 do
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
2696 for ac_exec_ext in '' $ac_executable_extensions; do
2697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2698 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2700 break 2
2701 fi
2702 done
2703 done
2704 IFS=$as_save_IFS
2705
2706 fi
2707 fi
2708 CC=$ac_cv_prog_CC
2709 if test -n "$CC"; then
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2711 $as_echo "$CC" >&6; }
2712 else
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2714 $as_echo "no" >&6; }
2715 fi
2716
2717
2718 test -n "$CC" && break
2719 done
2720 fi
2721 if test -z "$CC"; then
2722 ac_ct_CC=$CC
2723 for ac_prog in cl.exe
2724 do
2725 # Extract the first word of "$ac_prog", so it can be a program name with args.
2726 set dummy $ac_prog; ac_word=$2
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2728 $as_echo_n "checking for $ac_word... " >&6; }
2729 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2730 $as_echo_n "(cached) " >&6
2731 else
2732 if test -n "$ac_ct_CC"; then
2733 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2734 else
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736 for as_dir in $PATH
2737 do
2738 IFS=$as_save_IFS
2739 test -z "$as_dir" && as_dir=.
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2742 ac_cv_prog_ac_ct_CC="$ac_prog"
2743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2744 break 2
2745 fi
2746 done
2747 done
2748 IFS=$as_save_IFS
2749
2750 fi
2751 fi
2752 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2753 if test -n "$ac_ct_CC"; then
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2755 $as_echo "$ac_ct_CC" >&6; }
2756 else
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2758 $as_echo "no" >&6; }
2759 fi
2760
2761
2762 test -n "$ac_ct_CC" && break
2763 done
2764
2765 if test "x$ac_ct_CC" = x; then
2766 CC=""
2767 else
2768 case $cross_compiling:$ac_tool_warned in
2769 yes:)
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2772 ac_tool_warned=yes ;;
2773 esac
2774 CC=$ac_ct_CC
2775 fi
2776 fi
2777
2778 fi
2779
2780
2781 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2782 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2783 as_fn_error $? "no acceptable C compiler found in \$PATH
2784 See \`config.log' for more details" "$LINENO" 5; }
2785
2786 # Provide some information about the compiler.
2787 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2788 set X $ac_compile
2789 ac_compiler=$2
2790 for ac_option in --version -v -V -qversion; do
2791 { { ac_try="$ac_compiler $ac_option >&5"
2792 case "(($ac_try" in
2793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2794 *) ac_try_echo=$ac_try;;
2795 esac
2796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2797 $as_echo "$ac_try_echo"; } >&5
2798 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2799 ac_status=$?
2800 if test -s conftest.err; then
2801 sed '10a\
2802 ... rest of stderr output deleted ...
2803 10q' conftest.err >conftest.er1
2804 cat conftest.er1 >&5
2805 fi
2806 rm -f conftest.er1 conftest.err
2807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2808 test $ac_status = 0; }
2809 done
2810
2811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2812 /* end confdefs.h. */
2813
2814 int
2815 main ()
2816 {
2817
2818 ;
2819 return 0;
2820 }
2821 _ACEOF
2822 ac_clean_files_save=$ac_clean_files
2823 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2824 # Try to create an executable without -o first, disregard a.out.
2825 # It will help us diagnose broken compilers, and finding out an intuition
2826 # of exeext.
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2828 $as_echo_n "checking whether the C compiler works... " >&6; }
2829 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2830
2831 # The possible output files:
2832 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2833
2834 ac_rmfiles=
2835 for ac_file in $ac_files
2836 do
2837 case $ac_file in
2838 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2839 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2840 esac
2841 done
2842 rm -f $ac_rmfiles
2843
2844 if { { ac_try="$ac_link_default"
2845 case "(($ac_try" in
2846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847 *) ac_try_echo=$ac_try;;
2848 esac
2849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2850 $as_echo "$ac_try_echo"; } >&5
2851 (eval "$ac_link_default") 2>&5
2852 ac_status=$?
2853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2854 test $ac_status = 0; }; then :
2855 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2856 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2857 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2858 # so that the user can short-circuit this test for compilers unknown to
2859 # Autoconf.
2860 for ac_file in $ac_files ''
2861 do
2862 test -f "$ac_file" || continue
2863 case $ac_file in
2864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2865 ;;
2866 [ab].out )
2867 # We found the default executable, but exeext='' is most
2868 # certainly right.
2869 break;;
2870 *.* )
2871 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2872 then :; else
2873 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2874 fi
2875 # We set ac_cv_exeext here because the later test for it is not
2876 # safe: cross compilers may not add the suffix if given an `-o'
2877 # argument, so we may need to know it at that point already.
2878 # Even if this section looks crufty: it has the advantage of
2879 # actually working.
2880 break;;
2881 * )
2882 break;;
2883 esac
2884 done
2885 test "$ac_cv_exeext" = no && ac_cv_exeext=
2886
2887 else
2888 ac_file=''
2889 fi
2890 if test -z "$ac_file"; then :
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892 $as_echo "no" >&6; }
2893 $as_echo "$as_me: failed program was:" >&5
2894 sed 's/^/| /' conftest.$ac_ext >&5
2895
2896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2898 as_fn_error 77 "C compiler cannot create executables
2899 See \`config.log' for more details" "$LINENO" 5; }
2900 else
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2902 $as_echo "yes" >&6; }
2903 fi
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2905 $as_echo_n "checking for C compiler default output file name... " >&6; }
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2907 $as_echo "$ac_file" >&6; }
2908 ac_exeext=$ac_cv_exeext
2909
2910 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2911 ac_clean_files=$ac_clean_files_save
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2913 $as_echo_n "checking for suffix of executables... " >&6; }
2914 if { { ac_try="$ac_link"
2915 case "(($ac_try" in
2916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2917 *) ac_try_echo=$ac_try;;
2918 esac
2919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2920 $as_echo "$ac_try_echo"; } >&5
2921 (eval "$ac_link") 2>&5
2922 ac_status=$?
2923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2924 test $ac_status = 0; }; then :
2925 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2926 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2927 # work properly (i.e., refer to `conftest.exe'), while it won't with
2928 # `rm'.
2929 for ac_file in conftest.exe conftest conftest.*; do
2930 test -f "$ac_file" || continue
2931 case $ac_file in
2932 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2933 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2934 break;;
2935 * ) break;;
2936 esac
2937 done
2938 else
2939 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2941 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2942 See \`config.log' for more details" "$LINENO" 5; }
2943 fi
2944 rm -f conftest conftest$ac_cv_exeext
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2946 $as_echo "$ac_cv_exeext" >&6; }
2947
2948 rm -f conftest.$ac_ext
2949 EXEEXT=$ac_cv_exeext
2950 ac_exeext=$EXEEXT
2951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2952 /* end confdefs.h. */
2953 #include <stdio.h>
2954 int
2955 main ()
2956 {
2957 FILE *f = fopen ("conftest.out", "w");
2958 return ferror (f) || fclose (f) != 0;
2959
2960 ;
2961 return 0;
2962 }
2963 _ACEOF
2964 ac_clean_files="$ac_clean_files conftest.out"
2965 # Check that the compiler produces executables we can run. If not, either
2966 # the compiler is broken, or we cross compile.
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2968 $as_echo_n "checking whether we are cross compiling... " >&6; }
2969 if test "$cross_compiling" != yes; then
2970 { { ac_try="$ac_link"
2971 case "(($ac_try" in
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2974 esac
2975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2976 $as_echo "$ac_try_echo"; } >&5
2977 (eval "$ac_link") 2>&5
2978 ac_status=$?
2979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2980 test $ac_status = 0; }
2981 if { ac_try='./conftest$ac_cv_exeext'
2982 { { case "(($ac_try" in
2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2985 esac
2986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2987 $as_echo "$ac_try_echo"; } >&5
2988 (eval "$ac_try") 2>&5
2989 ac_status=$?
2990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2991 test $ac_status = 0; }; }; then
2992 cross_compiling=no
2993 else
2994 if test "$cross_compiling" = maybe; then
2995 cross_compiling=yes
2996 else
2997 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2999 as_fn_error $? "cannot run C compiled programs.
3000 If you meant to cross compile, use \`--host'.
3001 See \`config.log' for more details" "$LINENO" 5; }
3002 fi
3003 fi
3004 fi
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3006 $as_echo "$cross_compiling" >&6; }
3007
3008 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3009 ac_clean_files=$ac_clean_files_save
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3011 $as_echo_n "checking for suffix of object files... " >&6; }
3012 if ${ac_cv_objext+:} false; then :
3013 $as_echo_n "(cached) " >&6
3014 else
3015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3016 /* end confdefs.h. */
3017
3018 int
3019 main ()
3020 {
3021
3022 ;
3023 return 0;
3024 }
3025 _ACEOF
3026 rm -f conftest.o conftest.obj
3027 if { { ac_try="$ac_compile"
3028 case "(($ac_try" in
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3031 esac
3032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3033 $as_echo "$ac_try_echo"; } >&5
3034 (eval "$ac_compile") 2>&5
3035 ac_status=$?
3036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3037 test $ac_status = 0; }; then :
3038 for ac_file in conftest.o conftest.obj conftest.*; do
3039 test -f "$ac_file" || continue;
3040 case $ac_file in
3041 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3042 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3043 break;;
3044 esac
3045 done
3046 else
3047 $as_echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3049
3050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3052 as_fn_error $? "cannot compute suffix of object files: cannot compile
3053 See \`config.log' for more details" "$LINENO" 5; }
3054 fi
3055 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3056 fi
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3058 $as_echo "$ac_cv_objext" >&6; }
3059 OBJEXT=$ac_cv_objext
3060 ac_objext=$OBJEXT
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3062 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3063 if ${ac_cv_c_compiler_gnu+:} false; then :
3064 $as_echo_n "(cached) " >&6
3065 else
3066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3067 /* end confdefs.h. */
3068
3069 int
3070 main ()
3071 {
3072 #ifndef __GNUC__
3073 choke me
3074 #endif
3075
3076 ;
3077 return 0;
3078 }
3079 _ACEOF
3080 if ac_fn_c_try_compile "$LINENO"; then :
3081 ac_compiler_gnu=yes
3082 else
3083 ac_compiler_gnu=no
3084 fi
3085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3086 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3087
3088 fi
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3090 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3091 if test $ac_compiler_gnu = yes; then
3092 GCC=yes
3093 else
3094 GCC=
3095 fi
3096 ac_test_CFLAGS=${CFLAGS+set}
3097 ac_save_CFLAGS=$CFLAGS
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3099 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3100 if ${ac_cv_prog_cc_g+:} false; then :
3101 $as_echo_n "(cached) " >&6
3102 else
3103 ac_save_c_werror_flag=$ac_c_werror_flag
3104 ac_c_werror_flag=yes
3105 ac_cv_prog_cc_g=no
3106 CFLAGS="-g"
3107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3108 /* end confdefs.h. */
3109
3110 int
3111 main ()
3112 {
3113
3114 ;
3115 return 0;
3116 }
3117 _ACEOF
3118 if ac_fn_c_try_compile "$LINENO"; then :
3119 ac_cv_prog_cc_g=yes
3120 else
3121 CFLAGS=""
3122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3123 /* end confdefs.h. */
3124
3125 int
3126 main ()
3127 {
3128
3129 ;
3130 return 0;
3131 }
3132 _ACEOF
3133 if ac_fn_c_try_compile "$LINENO"; then :
3134
3135 else
3136 ac_c_werror_flag=$ac_save_c_werror_flag
3137 CFLAGS="-g"
3138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3139 /* end confdefs.h. */
3140
3141 int
3142 main ()
3143 {
3144
3145 ;
3146 return 0;
3147 }
3148 _ACEOF
3149 if ac_fn_c_try_compile "$LINENO"; then :
3150 ac_cv_prog_cc_g=yes
3151 fi
3152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3153 fi
3154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3155 fi
3156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3157 ac_c_werror_flag=$ac_save_c_werror_flag
3158 fi
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3160 $as_echo "$ac_cv_prog_cc_g" >&6; }
3161 if test "$ac_test_CFLAGS" = set; then
3162 CFLAGS=$ac_save_CFLAGS
3163 elif test $ac_cv_prog_cc_g = yes; then
3164 if test "$GCC" = yes; then
3165 CFLAGS="-g -O2"
3166 else
3167 CFLAGS="-g"
3168 fi
3169 else
3170 if test "$GCC" = yes; then
3171 CFLAGS="-O2"
3172 else
3173 CFLAGS=
3174 fi
3175 fi
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3177 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3178 if ${ac_cv_prog_cc_c89+:} false; then :
3179 $as_echo_n "(cached) " >&6
3180 else
3181 ac_cv_prog_cc_c89=no
3182 ac_save_CC=$CC
3183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3184 /* end confdefs.h. */
3185 #include <stdarg.h>
3186 #include <stdio.h>
3187 struct stat;
3188 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3189 struct buf { int x; };
3190 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3191 static char *e (p, i)
3192 char **p;
3193 int i;
3194 {
3195 return p[i];
3196 }
3197 static char *f (char * (*g) (char **, int), char **p, ...)
3198 {
3199 char *s;
3200 va_list v;
3201 va_start (v,p);
3202 s = g (p, va_arg (v,int));
3203 va_end (v);
3204 return s;
3205 }
3206
3207 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3208 function prototypes and stuff, but not '\xHH' hex character constants.
3209 These don't provoke an error unfortunately, instead are silently treated
3210 as 'x'. The following induces an error, until -std is added to get
3211 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3212 array size at least. It's necessary to write '\x00'==0 to get something
3213 that's true only with -std. */
3214 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3215
3216 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3217 inside strings and character constants. */
3218 #define FOO(x) 'x'
3219 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3220
3221 int test (int i, double x);
3222 struct s1 {int (*f) (int a);};
3223 struct s2 {int (*f) (double a);};
3224 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3225 int argc;
3226 char **argv;
3227 int
3228 main ()
3229 {
3230 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3231 ;
3232 return 0;
3233 }
3234 _ACEOF
3235 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3236 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3237 do
3238 CC="$ac_save_CC $ac_arg"
3239 if ac_fn_c_try_compile "$LINENO"; then :
3240 ac_cv_prog_cc_c89=$ac_arg
3241 fi
3242 rm -f core conftest.err conftest.$ac_objext
3243 test "x$ac_cv_prog_cc_c89" != "xno" && break
3244 done
3245 rm -f conftest.$ac_ext
3246 CC=$ac_save_CC
3247
3248 fi
3249 # AC_CACHE_VAL
3250 case "x$ac_cv_prog_cc_c89" in
3251 x)
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3253 $as_echo "none needed" >&6; } ;;
3254 xno)
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3256 $as_echo "unsupported" >&6; } ;;
3257 *)
3258 CC="$CC $ac_cv_prog_cc_c89"
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3260 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3261 esac
3262 if test "x$ac_cv_prog_cc_c89" != xno; then :
3263
3264 fi
3265
3266 ac_ext=c
3267 ac_cpp='$CPP $CPPFLAGS'
3268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3271
3272 ac_ext=c
3273 ac_cpp='$CPP $CPPFLAGS'
3274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3278 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3279 if ${am_cv_prog_cc_c_o+:} false; then :
3280 $as_echo_n "(cached) " >&6
3281 else
3282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3283 /* end confdefs.h. */
3284
3285 int
3286 main ()
3287 {
3288
3289 ;
3290 return 0;
3291 }
3292 _ACEOF
3293 # Make sure it works both with $CC and with simple cc.
3294 # Following AC_PROG_CC_C_O, we do the test twice because some
3295 # compilers refuse to overwrite an existing .o file with -o,
3296 # though they will create one.
3297 am_cv_prog_cc_c_o=yes
3298 for am_i in 1 2; do
3299 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3300 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3301 ac_status=$?
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); } \
3304 && test -f conftest2.$ac_objext; then
3305 : OK
3306 else
3307 am_cv_prog_cc_c_o=no
3308 break
3309 fi
3310 done
3311 rm -f core conftest*
3312 unset am_i
3313 fi
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3315 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3316 if test "$am_cv_prog_cc_c_o" != yes; then
3317 # Losing compiler, so override with the script.
3318 # FIXME: It is wrong to rewrite CC.
3319 # But if we don't then we get into trouble of one sort or another.
3320 # A longer-term fix would be to have automake use am__CC in this case,
3321 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3322 CC="$am_aux_dir/compile $CC"
3323 fi
3324 ac_ext=c
3325 ac_cpp='$CPP $CPPFLAGS'
3326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3329
3330
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3332 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3333 if ${ac_cv_prog_cc_c99+:} false; then :
3334 $as_echo_n "(cached) " >&6
3335 else
3336 ac_cv_prog_cc_c99=no
3337 ac_save_CC=$CC
3338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3339 /* end confdefs.h. */
3340 #include <stdarg.h>
3341 #include <stdbool.h>
3342 #include <stdlib.h>
3343 #include <wchar.h>
3344 #include <stdio.h>
3345
3346 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3347 #define debug(...) fprintf (stderr, __VA_ARGS__)
3348 #define showlist(...) puts (#__VA_ARGS__)
3349 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3350 static void
3351 test_varargs_macros (void)
3352 {
3353 int x = 1234;
3354 int y = 5678;
3355 debug ("Flag");
3356 debug ("X = %d\n", x);
3357 showlist (The first, second, and third items.);
3358 report (x>y, "x is %d but y is %d", x, y);
3359 }
3360
3361 // Check long long types.
3362 #define BIG64 18446744073709551615ull
3363 #define BIG32 4294967295ul
3364 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3365 #if !BIG_OK
3366 your preprocessor is broken;
3367 #endif
3368 #if BIG_OK
3369 #else
3370 your preprocessor is broken;
3371 #endif
3372 static long long int bignum = -9223372036854775807LL;
3373 static unsigned long long int ubignum = BIG64;
3374
3375 struct incomplete_array
3376 {
3377 int datasize;
3378 double data[];
3379 };
3380
3381 struct named_init {
3382 int number;
3383 const wchar_t *name;
3384 double average;
3385 };
3386
3387 typedef const char *ccp;
3388
3389 static inline int
3390 test_restrict (ccp restrict text)
3391 {
3392 // See if C++-style comments work.
3393 // Iterate through items via the restricted pointer.
3394 // Also check for declarations in for loops.
3395 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3396 continue;
3397 return 0;
3398 }
3399
3400 // Check varargs and va_copy.
3401 static void
3402 test_varargs (const char *format, ...)
3403 {
3404 va_list args;
3405 va_start (args, format);
3406 va_list args_copy;
3407 va_copy (args_copy, args);
3408
3409 const char *str;
3410 int number;
3411 float fnumber;
3412
3413 while (*format)
3414 {
3415 switch (*format++)
3416 {
3417 case 's': // string
3418 str = va_arg (args_copy, const char *);
3419 break;
3420 case 'd': // int
3421 number = va_arg (args_copy, int);
3422 break;
3423 case 'f': // float
3424 fnumber = va_arg (args_copy, double);
3425 break;
3426 default:
3427 break;
3428 }
3429 }
3430 va_end (args_copy);
3431 va_end (args);
3432 }
3433
3434 int
3435 main ()
3436 {
3437
3438 // Check bool.
3439 _Bool success = false;
3440
3441 // Check restrict.
3442 if (test_restrict ("String literal") == 0)
3443 success = true;
3444 char *restrict newvar = "Another string";
3445
3446 // Check varargs.
3447 test_varargs ("s, d' f .", "string", 65, 34.234);
3448 test_varargs_macros ();
3449
3450 // Check flexible array members.
3451 struct incomplete_array *ia =
3452 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3453 ia->datasize = 10;
3454 for (int i = 0; i < ia->datasize; ++i)
3455 ia->data[i] = i * 1.234;
3456
3457 // Check named initializers.
3458 struct named_init ni = {
3459 .number = 34,
3460 .name = L"Test wide string",
3461 .average = 543.34343,
3462 };
3463
3464 ni.number = 58;
3465
3466 int dynamic_array[ni.number];
3467 dynamic_array[ni.number - 1] = 543;
3468
3469 // work around unused variable warnings
3470 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3471 || dynamic_array[ni.number - 1] != 543);
3472
3473 ;
3474 return 0;
3475 }
3476 _ACEOF
3477 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3478 do
3479 CC="$ac_save_CC $ac_arg"
3480 if ac_fn_c_try_compile "$LINENO"; then :
3481 ac_cv_prog_cc_c99=$ac_arg
3482 fi
3483 rm -f core conftest.err conftest.$ac_objext
3484 test "x$ac_cv_prog_cc_c99" != "xno" && break
3485 done
3486 rm -f conftest.$ac_ext
3487 CC=$ac_save_CC
3488
3489 fi
3490 # AC_CACHE_VAL
3491 case "x$ac_cv_prog_cc_c99" in
3492 x)
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3494 $as_echo "none needed" >&6; } ;;
3495 xno)
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3497 $as_echo "unsupported" >&6; } ;;
3498 *)
3499 CC="$CC $ac_cv_prog_cc_c99"
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3501 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3502 esac
3503 if test "x$ac_cv_prog_cc_c99" != xno; then :
3504
3505 fi
3506
3507
3508
3509 ac_ext=c
3510 ac_cpp='$CPP $CPPFLAGS'
3511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3515 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3516 # On Suns, sometimes $CPP names a directory.
3517 if test -n "$CPP" && test -d "$CPP"; then
3518 CPP=
3519 fi
3520 if test -z "$CPP"; then
3521 if ${ac_cv_prog_CPP+:} false; then :
3522 $as_echo_n "(cached) " >&6
3523 else
3524 # Double quotes because CPP needs to be expanded
3525 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3526 do
3527 ac_preproc_ok=false
3528 for ac_c_preproc_warn_flag in '' yes
3529 do
3530 # Use a header file that comes with gcc, so configuring glibc
3531 # with a fresh cross-compiler works.
3532 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3533 # <limits.h> exists even on freestanding compilers.
3534 # On the NeXT, cc -E runs the code through the compiler's parser,
3535 # not just through cpp. "Syntax error" is here to catch this case.
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h. */
3538 #ifdef __STDC__
3539 # include <limits.h>
3540 #else
3541 # include <assert.h>
3542 #endif
3543 Syntax error
3544 _ACEOF
3545 if ac_fn_c_try_cpp "$LINENO"; then :
3546
3547 else
3548 # Broken: fails on valid input.
3549 continue
3550 fi
3551 rm -f conftest.err conftest.i conftest.$ac_ext
3552
3553 # OK, works on sane cases. Now check whether nonexistent headers
3554 # can be detected and how.
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3557 #include <ac_nonexistent.h>
3558 _ACEOF
3559 if ac_fn_c_try_cpp "$LINENO"; then :
3560 # Broken: success on invalid input.
3561 continue
3562 else
3563 # Passes both tests.
3564 ac_preproc_ok=:
3565 break
3566 fi
3567 rm -f conftest.err conftest.i conftest.$ac_ext
3568
3569 done
3570 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3571 rm -f conftest.i conftest.err conftest.$ac_ext
3572 if $ac_preproc_ok; then :
3573 break
3574 fi
3575
3576 done
3577 ac_cv_prog_CPP=$CPP
3578
3579 fi
3580 CPP=$ac_cv_prog_CPP
3581 else
3582 ac_cv_prog_CPP=$CPP
3583 fi
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3585 $as_echo "$CPP" >&6; }
3586 ac_preproc_ok=false
3587 for ac_c_preproc_warn_flag in '' yes
3588 do
3589 # Use a header file that comes with gcc, so configuring glibc
3590 # with a fresh cross-compiler works.
3591 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3592 # <limits.h> exists even on freestanding compilers.
3593 # On the NeXT, cc -E runs the code through the compiler's parser,
3594 # not just through cpp. "Syntax error" is here to catch this case.
3595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596 /* end confdefs.h. */
3597 #ifdef __STDC__
3598 # include <limits.h>
3599 #else
3600 # include <assert.h>
3601 #endif
3602 Syntax error
3603 _ACEOF
3604 if ac_fn_c_try_cpp "$LINENO"; then :
3605
3606 else
3607 # Broken: fails on valid input.
3608 continue
3609 fi
3610 rm -f conftest.err conftest.i conftest.$ac_ext
3611
3612 # OK, works on sane cases. Now check whether nonexistent headers
3613 # can be detected and how.
3614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615 /* end confdefs.h. */
3616 #include <ac_nonexistent.h>
3617 _ACEOF
3618 if ac_fn_c_try_cpp "$LINENO"; then :
3619 # Broken: success on invalid input.
3620 continue
3621 else
3622 # Passes both tests.
3623 ac_preproc_ok=:
3624 break
3625 fi
3626 rm -f conftest.err conftest.i conftest.$ac_ext
3627
3628 done
3629 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3630 rm -f conftest.i conftest.err conftest.$ac_ext
3631 if $ac_preproc_ok; then :
3632
3633 else
3634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3636 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3637 See \`config.log' for more details" "$LINENO" 5; }
3638 fi
3639
3640 ac_ext=c
3641 ac_cpp='$CPP $CPPFLAGS'
3642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3645
3646
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3648 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3649 if ${ac_cv_path_GREP+:} false; then :
3650 $as_echo_n "(cached) " >&6
3651 else
3652 if test -z "$GREP"; then
3653 ac_path_GREP_found=false
3654 # Loop through the user's path and test for each of PROGNAME-LIST
3655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3657 do
3658 IFS=$as_save_IFS
3659 test -z "$as_dir" && as_dir=.
3660 for ac_prog in grep ggrep; do
3661 for ac_exec_ext in '' $ac_executable_extensions; do
3662 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3663 as_fn_executable_p "$ac_path_GREP" || continue
3664 # Check for GNU ac_path_GREP and select it if it is found.
3665 # Check for GNU $ac_path_GREP
3666 case `"$ac_path_GREP" --version 2>&1` in
3667 *GNU*)
3668 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3669 *)
3670 ac_count=0
3671 $as_echo_n 0123456789 >"conftest.in"
3672 while :
3673 do
3674 cat "conftest.in" "conftest.in" >"conftest.tmp"
3675 mv "conftest.tmp" "conftest.in"
3676 cp "conftest.in" "conftest.nl"
3677 $as_echo 'GREP' >> "conftest.nl"
3678 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3679 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3680 as_fn_arith $ac_count + 1 && ac_count=$as_val
3681 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3682 # Best one so far, save it but keep looking for a better one
3683 ac_cv_path_GREP="$ac_path_GREP"
3684 ac_path_GREP_max=$ac_count
3685 fi
3686 # 10*(2^10) chars as input seems more than enough
3687 test $ac_count -gt 10 && break
3688 done
3689 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3690 esac
3691
3692 $ac_path_GREP_found && break 3
3693 done
3694 done
3695 done
3696 IFS=$as_save_IFS
3697 if test -z "$ac_cv_path_GREP"; then
3698 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3699 fi
3700 else
3701 ac_cv_path_GREP=$GREP
3702 fi
3703
3704 fi
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3706 $as_echo "$ac_cv_path_GREP" >&6; }
3707 GREP="$ac_cv_path_GREP"
3708
3709
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3711 $as_echo_n "checking for egrep... " >&6; }
3712 if ${ac_cv_path_EGREP+:} false; then :
3713 $as_echo_n "(cached) " >&6
3714 else
3715 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3716 then ac_cv_path_EGREP="$GREP -E"
3717 else
3718 if test -z "$EGREP"; then
3719 ac_path_EGREP_found=false
3720 # Loop through the user's path and test for each of PROGNAME-LIST
3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3723 do
3724 IFS=$as_save_IFS
3725 test -z "$as_dir" && as_dir=.
3726 for ac_prog in egrep; do
3727 for ac_exec_ext in '' $ac_executable_extensions; do
3728 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3729 as_fn_executable_p "$ac_path_EGREP" || continue
3730 # Check for GNU ac_path_EGREP and select it if it is found.
3731 # Check for GNU $ac_path_EGREP
3732 case `"$ac_path_EGREP" --version 2>&1` in
3733 *GNU*)
3734 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3735 *)
3736 ac_count=0
3737 $as_echo_n 0123456789 >"conftest.in"
3738 while :
3739 do
3740 cat "conftest.in" "conftest.in" >"conftest.tmp"
3741 mv "conftest.tmp" "conftest.in"
3742 cp "conftest.in" "conftest.nl"
3743 $as_echo 'EGREP' >> "conftest.nl"
3744 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3745 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3746 as_fn_arith $ac_count + 1 && ac_count=$as_val
3747 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3748 # Best one so far, save it but keep looking for a better one
3749 ac_cv_path_EGREP="$ac_path_EGREP"
3750 ac_path_EGREP_max=$ac_count
3751 fi
3752 # 10*(2^10) chars as input seems more than enough
3753 test $ac_count -gt 10 && break
3754 done
3755 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3756 esac
3757
3758 $ac_path_EGREP_found && break 3
3759 done
3760 done
3761 done
3762 IFS=$as_save_IFS
3763 if test -z "$ac_cv_path_EGREP"; then
3764 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3765 fi
3766 else
3767 ac_cv_path_EGREP=$EGREP
3768 fi
3769
3770 fi
3771 fi
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3773 $as_echo "$ac_cv_path_EGREP" >&6; }
3774 EGREP="$ac_cv_path_EGREP"
3775
3776
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3778 $as_echo_n "checking for ANSI C header files... " >&6; }
3779 if ${ac_cv_header_stdc+:} false; then :
3780 $as_echo_n "(cached) " >&6
3781 else
3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h. */
3784 #include <stdlib.h>
3785 #include <stdarg.h>
3786 #include <string.h>
3787 #include <float.h>
3788
3789 int
3790 main ()
3791 {
3792
3793 ;
3794 return 0;
3795 }
3796 _ACEOF
3797 if ac_fn_c_try_compile "$LINENO"; then :
3798 ac_cv_header_stdc=yes
3799 else
3800 ac_cv_header_stdc=no
3801 fi
3802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3803
3804 if test $ac_cv_header_stdc = yes; then
3805 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807 /* end confdefs.h. */
3808 #include <string.h>
3809
3810 _ACEOF
3811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3812 $EGREP "memchr" >/dev/null 2>&1; then :
3813
3814 else
3815 ac_cv_header_stdc=no
3816 fi
3817 rm -f conftest*
3818
3819 fi
3820
3821 if test $ac_cv_header_stdc = yes; then
3822 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824 /* end confdefs.h. */
3825 #include <stdlib.h>
3826
3827 _ACEOF
3828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3829 $EGREP "free" >/dev/null 2>&1; then :
3830
3831 else
3832 ac_cv_header_stdc=no
3833 fi
3834 rm -f conftest*
3835
3836 fi
3837
3838 if test $ac_cv_header_stdc = yes; then
3839 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3840 if test "$cross_compiling" = yes; then :
3841 :
3842 else
3843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3844 /* end confdefs.h. */
3845 #include <ctype.h>
3846 #include <stdlib.h>
3847 #if ((' ' & 0x0FF) == 0x020)
3848 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3849 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3850 #else
3851 # define ISLOWER(c) \
3852 (('a' <= (c) && (c) <= 'i') \
3853 || ('j' <= (c) && (c) <= 'r') \
3854 || ('s' <= (c) && (c) <= 'z'))
3855 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3856 #endif
3857
3858 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3859 int
3860 main ()
3861 {
3862 int i;
3863 for (i = 0; i < 256; i++)
3864 if (XOR (islower (i), ISLOWER (i))
3865 || toupper (i) != TOUPPER (i))
3866 return 2;
3867 return 0;
3868 }
3869 _ACEOF
3870 if ac_fn_c_try_run "$LINENO"; then :
3871
3872 else
3873 ac_cv_header_stdc=no
3874 fi
3875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3876 conftest.$ac_objext conftest.beam conftest.$ac_ext
3877 fi
3878
3879 fi
3880 fi
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3882 $as_echo "$ac_cv_header_stdc" >&6; }
3883 if test $ac_cv_header_stdc = yes; then
3884
3885 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3886
3887 fi
3888
3889 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3890 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3891 inttypes.h stdint.h unistd.h
3892 do :
3893 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3894 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3895 "
3896 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3897 cat >>confdefs.h <<_ACEOF
3898 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3899 _ACEOF
3900
3901 fi
3902
3903 done
3904
3905
3906
3907
3908
3909
3910 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
3911 if test "x$ac_cv_have_decl___clang__" = xyes; then :
3912 CLANGCC="yes"
3913 else
3914 CLANGCC="no"
3915 fi
3916
3917 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
3918 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
3919 INTELCC="yes"
3920 else
3921 INTELCC="no"
3922 fi
3923
3924 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
3925 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
3926 SUNCC="yes"
3927 else
3928 SUNCC="no"
3929 fi
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3940 if test -n "$ac_tool_prefix"; then
3941 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3942 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3944 $as_echo_n "checking for $ac_word... " >&6; }
3945 if ${ac_cv_path_PKG_CONFIG+:} false; then :
3946 $as_echo_n "(cached) " >&6
3947 else
3948 case $PKG_CONFIG in
3949 [\\/]* | ?:[\\/]*)
3950 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3951 ;;
3952 *)
3953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3954 for as_dir in $PATH
3955 do
3956 IFS=$as_save_IFS
3957 test -z "$as_dir" && as_dir=.
3958 for ac_exec_ext in '' $ac_executable_extensions; do
3959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3960 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3962 break 2
3963 fi
3964 done
3965 done
3966 IFS=$as_save_IFS
3967
3968 ;;
3969 esac
3970 fi
3971 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3972 if test -n "$PKG_CONFIG"; then
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3974 $as_echo "$PKG_CONFIG" >&6; }
3975 else
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3977 $as_echo "no" >&6; }
3978 fi
3979
3980
3981 fi
3982 if test -z "$ac_cv_path_PKG_CONFIG"; then
3983 ac_pt_PKG_CONFIG=$PKG_CONFIG
3984 # Extract the first word of "pkg-config", so it can be a program name with args.
3985 set dummy pkg-config; ac_word=$2
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3987 $as_echo_n "checking for $ac_word... " >&6; }
3988 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3989 $as_echo_n "(cached) " >&6
3990 else
3991 case $ac_pt_PKG_CONFIG in
3992 [\\/]* | ?:[\\/]*)
3993 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3994 ;;
3995 *)
3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 for as_dir in $PATH
3998 do
3999 IFS=$as_save_IFS
4000 test -z "$as_dir" && as_dir=.
4001 for ac_exec_ext in '' $ac_executable_extensions; do
4002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4003 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4005 break 2
4006 fi
4007 done
4008 done
4009 IFS=$as_save_IFS
4010
4011 ;;
4012 esac
4013 fi
4014 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4015 if test -n "$ac_pt_PKG_CONFIG"; then
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4017 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4018 else
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4020 $as_echo "no" >&6; }
4021 fi
4022
4023 if test "x$ac_pt_PKG_CONFIG" = x; then
4024 PKG_CONFIG=""
4025 else
4026 case $cross_compiling:$ac_tool_warned in
4027 yes:)
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4030 ac_tool_warned=yes ;;
4031 esac
4032 PKG_CONFIG=$ac_pt_PKG_CONFIG
4033 fi
4034 else
4035 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4036 fi
4037
4038 fi
4039 if test -n "$PKG_CONFIG"; then
4040 _pkg_min_version=0.9.0
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4042 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4043 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4045 $as_echo "yes" >&6; }
4046 else
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4048 $as_echo "no" >&6; }
4049 PKG_CONFIG=""
4050 fi
4051 fi
4052 # Make sure we can run config.sub.
4053 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4054 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4055
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4057 $as_echo_n "checking build system type... " >&6; }
4058 if ${ac_cv_build+:} false; then :
4059 $as_echo_n "(cached) " >&6
4060 else
4061 ac_build_alias=$build_alias
4062 test "x$ac_build_alias" = x &&
4063 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4064 test "x$ac_build_alias" = x &&
4065 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4066 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4067 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4068
4069 fi
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4071 $as_echo "$ac_cv_build" >&6; }
4072 case $ac_cv_build in
4073 *-*-*) ;;
4074 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4075 esac
4076 build=$ac_cv_build
4077 ac_save_IFS=$IFS; IFS='-'
4078 set x $ac_cv_build
4079 shift
4080 build_cpu=$1
4081 build_vendor=$2
4082 shift; shift
4083 # Remember, the first character of IFS is used to create $*,
4084 # except with old shells:
4085 build_os=$*
4086 IFS=$ac_save_IFS
4087 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4088
4089
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4091 $as_echo_n "checking host system type... " >&6; }
4092 if ${ac_cv_host+:} false; then :
4093 $as_echo_n "(cached) " >&6
4094 else
4095 if test "x$host_alias" = x; then
4096 ac_cv_host=$ac_cv_build
4097 else
4098 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4099 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4100 fi
4101
4102 fi
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4104 $as_echo "$ac_cv_host" >&6; }
4105 case $ac_cv_host in
4106 *-*-*) ;;
4107 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4108 esac
4109 host=$ac_cv_host
4110 ac_save_IFS=$IFS; IFS='-'
4111 set x $ac_cv_host
4112 shift
4113 host_cpu=$1
4114 host_vendor=$2
4115 shift; shift
4116 # Remember, the first character of IFS is used to create $*,
4117 # except with old shells:
4118 host_os=$*
4119 IFS=$ac_save_IFS
4120 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4121
4122
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4124 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4125 if ${ac_cv_path_SED+:} false; then :
4126 $as_echo_n "(cached) " >&6
4127 else
4128 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4129 for ac_i in 1 2 3 4 5 6 7; do
4130 ac_script="$ac_script$as_nl$ac_script"
4131 done
4132 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4133 { ac_script=; unset ac_script;}
4134 if test -z "$SED"; then
4135 ac_path_SED_found=false
4136 # Loop through the user's path and test for each of PROGNAME-LIST
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 for as_dir in $PATH
4139 do
4140 IFS=$as_save_IFS
4141 test -z "$as_dir" && as_dir=.
4142 for ac_prog in sed gsed; do
4143 for ac_exec_ext in '' $ac_executable_extensions; do
4144 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4145 as_fn_executable_p "$ac_path_SED" || continue
4146 # Check for GNU ac_path_SED and select it if it is found.
4147 # Check for GNU $ac_path_SED
4148 case `"$ac_path_SED" --version 2>&1` in
4149 *GNU*)
4150 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4151 *)
4152 ac_count=0
4153 $as_echo_n 0123456789 >"conftest.in"
4154 while :
4155 do
4156 cat "conftest.in" "conftest.in" >"conftest.tmp"
4157 mv "conftest.tmp" "conftest.in"
4158 cp "conftest.in" "conftest.nl"
4159 $as_echo '' >> "conftest.nl"
4160 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4161 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4162 as_fn_arith $ac_count + 1 && ac_count=$as_val
4163 if test $ac_count -gt ${ac_path_SED_max-0}; then
4164 # Best one so far, save it but keep looking for a better one
4165 ac_cv_path_SED="$ac_path_SED"
4166 ac_path_SED_max=$ac_count
4167 fi
4168 # 10*(2^10) chars as input seems more than enough
4169 test $ac_count -gt 10 && break
4170 done
4171 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4172 esac
4173
4174 $ac_path_SED_found && break 3
4175 done
4176 done
4177 done
4178 IFS=$as_save_IFS
4179 if test -z "$ac_cv_path_SED"; then
4180 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4181 fi
4182 else
4183 ac_cv_path_SED=$SED
4184 fi
4185
4186 fi
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4188 $as_echo "$ac_cv_path_SED" >&6; }
4189 SED="$ac_cv_path_SED"
4190 rm -f conftest.sed
4191
4192
4193
4194
4195
4196
4197 # Check whether --enable-selective-werror was given.
4198 if test "${enable_selective_werror+set}" = set; then :
4199 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4200 else
4201 SELECTIVE_WERROR=yes
4202 fi
4203
4204
4205
4206
4207
4208 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4209 if test "x$SUNCC" = "xyes"; then
4210 BASE_CFLAGS="-v"
4211 else
4212 BASE_CFLAGS=""
4213 fi
4214
4215 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229 xorg_testset_save_CFLAGS="$CFLAGS"
4230
4231 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4232 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4234 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4235 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4236 $as_echo_n "(cached) " >&6
4237 else
4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h. */
4240 int i;
4241 _ACEOF
4242 if ac_fn_c_try_compile "$LINENO"; then :
4243 xorg_cv_cc_flag_unknown_warning_option=yes
4244 else
4245 xorg_cv_cc_flag_unknown_warning_option=no
4246 fi
4247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4248 fi
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4250 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4251 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4252 CFLAGS="$xorg_testset_save_CFLAGS"
4253 fi
4254
4255 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4258 fi
4259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4261 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4262 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4263 $as_echo_n "(cached) " >&6
4264 else
4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4267 int i;
4268 _ACEOF
4269 if ac_fn_c_try_compile "$LINENO"; then :
4270 xorg_cv_cc_flag_unused_command_line_argument=yes
4271 else
4272 xorg_cv_cc_flag_unused_command_line_argument=no
4273 fi
4274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4275 fi
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4277 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4278 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4279 CFLAGS="$xorg_testset_save_CFLAGS"
4280 fi
4281
4282 found="no"
4283
4284 if test $found = "no" ; then
4285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4286 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4287 fi
4288
4289 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4291 fi
4292
4293 CFLAGS="$CFLAGS -Wall"
4294
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4296 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4297 cacheid=xorg_cv_cc_flag__Wall
4298 if eval \${$cacheid+:} false; then :
4299 $as_echo_n "(cached) " >&6
4300 else
4301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4302 /* end confdefs.h. */
4303 int i;
4304 int
4305 main ()
4306 {
4307
4308 ;
4309 return 0;
4310 }
4311 _ACEOF
4312 if ac_fn_c_try_link "$LINENO"; then :
4313 eval $cacheid=yes
4314 else
4315 eval $cacheid=no
4316 fi
4317 rm -f core conftest.err conftest.$ac_objext \
4318 conftest$ac_exeext conftest.$ac_ext
4319 fi
4320
4321
4322 CFLAGS="$xorg_testset_save_CFLAGS"
4323
4324 eval supported=\$$cacheid
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4326 $as_echo "$supported" >&6; }
4327 if test "$supported" = "yes" ; then
4328 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4329 found="yes"
4330 fi
4331 fi
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347 xorg_testset_save_CFLAGS="$CFLAGS"
4348
4349 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4350 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4352 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4353 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4354 $as_echo_n "(cached) " >&6
4355 else
4356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4357 /* end confdefs.h. */
4358 int i;
4359 _ACEOF
4360 if ac_fn_c_try_compile "$LINENO"; then :
4361 xorg_cv_cc_flag_unknown_warning_option=yes
4362 else
4363 xorg_cv_cc_flag_unknown_warning_option=no
4364 fi
4365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4366 fi
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4368 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4369 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4370 CFLAGS="$xorg_testset_save_CFLAGS"
4371 fi
4372
4373 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4376 fi
4377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4379 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4380 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4381 $as_echo_n "(cached) " >&6
4382 else
4383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4384 /* end confdefs.h. */
4385 int i;
4386 _ACEOF
4387 if ac_fn_c_try_compile "$LINENO"; then :
4388 xorg_cv_cc_flag_unused_command_line_argument=yes
4389 else
4390 xorg_cv_cc_flag_unused_command_line_argument=no
4391 fi
4392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4393 fi
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4395 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4396 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4397 CFLAGS="$xorg_testset_save_CFLAGS"
4398 fi
4399
4400 found="no"
4401
4402 if test $found = "no" ; then
4403 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4404 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4405 fi
4406
4407 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4409 fi
4410
4411 CFLAGS="$CFLAGS -Wpointer-arith"
4412
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4414 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4415 cacheid=xorg_cv_cc_flag__Wpointer_arith
4416 if eval \${$cacheid+:} false; then :
4417 $as_echo_n "(cached) " >&6
4418 else
4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420 /* end confdefs.h. */
4421 int i;
4422 int
4423 main ()
4424 {
4425
4426 ;
4427 return 0;
4428 }
4429 _ACEOF
4430 if ac_fn_c_try_link "$LINENO"; then :
4431 eval $cacheid=yes
4432 else
4433 eval $cacheid=no
4434 fi
4435 rm -f core conftest.err conftest.$ac_objext \
4436 conftest$ac_exeext conftest.$ac_ext
4437 fi
4438
4439
4440 CFLAGS="$xorg_testset_save_CFLAGS"
4441
4442 eval supported=\$$cacheid
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4444 $as_echo "$supported" >&6; }
4445 if test "$supported" = "yes" ; then
4446 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4447 found="yes"
4448 fi
4449 fi
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465 xorg_testset_save_CFLAGS="$CFLAGS"
4466
4467 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4468 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4470 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4471 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4472 $as_echo_n "(cached) " >&6
4473 else
4474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h. */
4476 int i;
4477 _ACEOF
4478 if ac_fn_c_try_compile "$LINENO"; then :
4479 xorg_cv_cc_flag_unknown_warning_option=yes
4480 else
4481 xorg_cv_cc_flag_unknown_warning_option=no
4482 fi
4483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484 fi
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4486 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4487 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4488 CFLAGS="$xorg_testset_save_CFLAGS"
4489 fi
4490
4491 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4494 fi
4495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4497 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4498 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4499 $as_echo_n "(cached) " >&6
4500 else
4501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502 /* end confdefs.h. */
4503 int i;
4504 _ACEOF
4505 if ac_fn_c_try_compile "$LINENO"; then :
4506 xorg_cv_cc_flag_unused_command_line_argument=yes
4507 else
4508 xorg_cv_cc_flag_unused_command_line_argument=no
4509 fi
4510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4511 fi
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4513 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4514 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4515 CFLAGS="$xorg_testset_save_CFLAGS"
4516 fi
4517
4518 found="no"
4519
4520 if test $found = "no" ; then
4521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4522 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4523 fi
4524
4525 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4527 fi
4528
4529 CFLAGS="$CFLAGS -Wmissing-declarations"
4530
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4532 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4533 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4534 if eval \${$cacheid+:} false; then :
4535 $as_echo_n "(cached) " >&6
4536 else
4537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h. */
4539 int i;
4540 int
4541 main ()
4542 {
4543
4544 ;
4545 return 0;
4546 }
4547 _ACEOF
4548 if ac_fn_c_try_link "$LINENO"; then :
4549 eval $cacheid=yes
4550 else
4551 eval $cacheid=no
4552 fi
4553 rm -f core conftest.err conftest.$ac_objext \
4554 conftest$ac_exeext conftest.$ac_ext
4555 fi
4556
4557
4558 CFLAGS="$xorg_testset_save_CFLAGS"
4559
4560 eval supported=\$$cacheid
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4562 $as_echo "$supported" >&6; }
4563 if test "$supported" = "yes" ; then
4564 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4565 found="yes"
4566 fi
4567 fi
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583 xorg_testset_save_CFLAGS="$CFLAGS"
4584
4585 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4586 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4588 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4589 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4590 $as_echo_n "(cached) " >&6
4591 else
4592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4593 /* end confdefs.h. */
4594 int i;
4595 _ACEOF
4596 if ac_fn_c_try_compile "$LINENO"; then :
4597 xorg_cv_cc_flag_unknown_warning_option=yes
4598 else
4599 xorg_cv_cc_flag_unknown_warning_option=no
4600 fi
4601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4602 fi
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4604 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4605 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4606 CFLAGS="$xorg_testset_save_CFLAGS"
4607 fi
4608
4609 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4611 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4612 fi
4613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4615 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4616 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4617 $as_echo_n "(cached) " >&6
4618 else
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4621 int i;
4622 _ACEOF
4623 if ac_fn_c_try_compile "$LINENO"; then :
4624 xorg_cv_cc_flag_unused_command_line_argument=yes
4625 else
4626 xorg_cv_cc_flag_unused_command_line_argument=no
4627 fi
4628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4629 fi
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4631 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4632 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4633 CFLAGS="$xorg_testset_save_CFLAGS"
4634 fi
4635
4636 found="no"
4637
4638 if test $found = "no" ; then
4639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4640 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4641 fi
4642
4643 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4645 fi
4646
4647 CFLAGS="$CFLAGS -Wformat=2"
4648
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
4650 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
4651 cacheid=xorg_cv_cc_flag__Wformat_2
4652 if eval \${$cacheid+:} false; then :
4653 $as_echo_n "(cached) " >&6
4654 else
4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h. */
4657 int i;
4658 int
4659 main ()
4660 {
4661
4662 ;
4663 return 0;
4664 }
4665 _ACEOF
4666 if ac_fn_c_try_link "$LINENO"; then :
4667 eval $cacheid=yes
4668 else
4669 eval $cacheid=no
4670 fi
4671 rm -f core conftest.err conftest.$ac_objext \
4672 conftest$ac_exeext conftest.$ac_ext
4673 fi
4674
4675
4676 CFLAGS="$xorg_testset_save_CFLAGS"
4677
4678 eval supported=\$$cacheid
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4680 $as_echo "$supported" >&6; }
4681 if test "$supported" = "yes" ; then
4682 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
4683 found="yes"
4684 fi
4685 fi
4686
4687 if test $found = "no" ; then
4688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4689 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4690 fi
4691
4692 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4694 fi
4695
4696 CFLAGS="$CFLAGS -Wformat"
4697
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
4699 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
4700 cacheid=xorg_cv_cc_flag__Wformat
4701 if eval \${$cacheid+:} false; then :
4702 $as_echo_n "(cached) " >&6
4703 else
4704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4705 /* end confdefs.h. */
4706 int i;
4707 int
4708 main ()
4709 {
4710
4711 ;
4712 return 0;
4713 }
4714 _ACEOF
4715 if ac_fn_c_try_link "$LINENO"; then :
4716 eval $cacheid=yes
4717 else
4718 eval $cacheid=no
4719 fi
4720 rm -f core conftest.err conftest.$ac_objext \
4721 conftest$ac_exeext conftest.$ac_ext
4722 fi
4723
4724
4725 CFLAGS="$xorg_testset_save_CFLAGS"
4726
4727 eval supported=\$$cacheid
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4729 $as_echo "$supported" >&6; }
4730 if test "$supported" = "yes" ; then
4731 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
4732 found="yes"
4733 fi
4734 fi
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752 xorg_testset_save_CFLAGS="$CFLAGS"
4753
4754 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4755 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4757 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4758 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4759 $as_echo_n "(cached) " >&6
4760 else
4761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762 /* end confdefs.h. */
4763 int i;
4764 _ACEOF
4765 if ac_fn_c_try_compile "$LINENO"; then :
4766 xorg_cv_cc_flag_unknown_warning_option=yes
4767 else
4768 xorg_cv_cc_flag_unknown_warning_option=no
4769 fi
4770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4771 fi
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4773 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4774 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4775 CFLAGS="$xorg_testset_save_CFLAGS"
4776 fi
4777
4778 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4781 fi
4782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4784 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4785 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4786 $as_echo_n "(cached) " >&6
4787 else
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4790 int i;
4791 _ACEOF
4792 if ac_fn_c_try_compile "$LINENO"; then :
4793 xorg_cv_cc_flag_unused_command_line_argument=yes
4794 else
4795 xorg_cv_cc_flag_unused_command_line_argument=no
4796 fi
4797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4798 fi
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4800 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4801 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4802 CFLAGS="$xorg_testset_save_CFLAGS"
4803 fi
4804
4805 found="no"
4806
4807 if test $found = "no" ; then
4808 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4809 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4810 fi
4811
4812 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4814 fi
4815
4816 CFLAGS="$CFLAGS -Wstrict-prototypes"
4817
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
4819 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
4820 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
4821 if eval \${$cacheid+:} false; then :
4822 $as_echo_n "(cached) " >&6
4823 else
4824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4825 /* end confdefs.h. */
4826 int i;
4827 int
4828 main ()
4829 {
4830
4831 ;
4832 return 0;
4833 }
4834 _ACEOF
4835 if ac_fn_c_try_link "$LINENO"; then :
4836 eval $cacheid=yes
4837 else
4838 eval $cacheid=no
4839 fi
4840 rm -f core conftest.err conftest.$ac_objext \
4841 conftest$ac_exeext conftest.$ac_ext
4842 fi
4843
4844
4845 CFLAGS="$xorg_testset_save_CFLAGS"
4846
4847 eval supported=\$$cacheid
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4849 $as_echo "$supported" >&6; }
4850 if test "$supported" = "yes" ; then
4851 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
4852 found="yes"
4853 fi
4854 fi
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870 xorg_testset_save_CFLAGS="$CFLAGS"
4871
4872 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4873 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4875 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4876 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4877 $as_echo_n "(cached) " >&6
4878 else
4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h. */
4881 int i;
4882 _ACEOF
4883 if ac_fn_c_try_compile "$LINENO"; then :
4884 xorg_cv_cc_flag_unknown_warning_option=yes
4885 else
4886 xorg_cv_cc_flag_unknown_warning_option=no
4887 fi
4888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4889 fi
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4891 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4892 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4893 CFLAGS="$xorg_testset_save_CFLAGS"
4894 fi
4895
4896 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4899 fi
4900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4902 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4903 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4904 $as_echo_n "(cached) " >&6
4905 else
4906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4907 /* end confdefs.h. */
4908 int i;
4909 _ACEOF
4910 if ac_fn_c_try_compile "$LINENO"; then :
4911 xorg_cv_cc_flag_unused_command_line_argument=yes
4912 else
4913 xorg_cv_cc_flag_unused_command_line_argument=no
4914 fi
4915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4916 fi
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4918 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4919 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4920 CFLAGS="$xorg_testset_save_CFLAGS"
4921 fi
4922
4923 found="no"
4924
4925 if test $found = "no" ; then
4926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4927 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4928 fi
4929
4930 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4932 fi
4933
4934 CFLAGS="$CFLAGS -Wmissing-prototypes"
4935
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
4937 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
4938 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
4939 if eval \${$cacheid+:} false; then :
4940 $as_echo_n "(cached) " >&6
4941 else
4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4944 int i;
4945 int
4946 main ()
4947 {
4948
4949 ;
4950 return 0;
4951 }
4952 _ACEOF
4953 if ac_fn_c_try_link "$LINENO"; then :
4954 eval $cacheid=yes
4955 else
4956 eval $cacheid=no
4957 fi
4958 rm -f core conftest.err conftest.$ac_objext \
4959 conftest$ac_exeext conftest.$ac_ext
4960 fi
4961
4962
4963 CFLAGS="$xorg_testset_save_CFLAGS"
4964
4965 eval supported=\$$cacheid
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4967 $as_echo "$supported" >&6; }
4968 if test "$supported" = "yes" ; then
4969 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
4970 found="yes"
4971 fi
4972 fi
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988 xorg_testset_save_CFLAGS="$CFLAGS"
4989
4990 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4991 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4993 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4994 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4995 $as_echo_n "(cached) " >&6
4996 else
4997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h. */
4999 int i;
5000 _ACEOF
5001 if ac_fn_c_try_compile "$LINENO"; then :
5002 xorg_cv_cc_flag_unknown_warning_option=yes
5003 else
5004 xorg_cv_cc_flag_unknown_warning_option=no
5005 fi
5006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5007 fi
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5009 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5010 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5011 CFLAGS="$xorg_testset_save_CFLAGS"
5012 fi
5013
5014 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5017 fi
5018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5020 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5021 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5022 $as_echo_n "(cached) " >&6
5023 else
5024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5025 /* end confdefs.h. */
5026 int i;
5027 _ACEOF
5028 if ac_fn_c_try_compile "$LINENO"; then :
5029 xorg_cv_cc_flag_unused_command_line_argument=yes
5030 else
5031 xorg_cv_cc_flag_unused_command_line_argument=no
5032 fi
5033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5034 fi
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5036 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5037 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5038 CFLAGS="$xorg_testset_save_CFLAGS"
5039 fi
5040
5041 found="no"
5042
5043 if test $found = "no" ; then
5044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5045 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5046 fi
5047
5048 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5050 fi
5051
5052 CFLAGS="$CFLAGS -Wnested-externs"
5053
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5055 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5056 cacheid=xorg_cv_cc_flag__Wnested_externs
5057 if eval \${$cacheid+:} false; then :
5058 $as_echo_n "(cached) " >&6
5059 else
5060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5061 /* end confdefs.h. */
5062 int i;
5063 int
5064 main ()
5065 {
5066
5067 ;
5068 return 0;
5069 }
5070 _ACEOF
5071 if ac_fn_c_try_link "$LINENO"; then :
5072 eval $cacheid=yes
5073 else
5074 eval $cacheid=no
5075 fi
5076 rm -f core conftest.err conftest.$ac_objext \
5077 conftest$ac_exeext conftest.$ac_ext
5078 fi
5079
5080
5081 CFLAGS="$xorg_testset_save_CFLAGS"
5082
5083 eval supported=\$$cacheid
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5085 $as_echo "$supported" >&6; }
5086 if test "$supported" = "yes" ; then
5087 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5088 found="yes"
5089 fi
5090 fi
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106 xorg_testset_save_CFLAGS="$CFLAGS"
5107
5108 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5111 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5112 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5113 $as_echo_n "(cached) " >&6
5114 else
5115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5116 /* end confdefs.h. */
5117 int i;
5118 _ACEOF
5119 if ac_fn_c_try_compile "$LINENO"; then :
5120 xorg_cv_cc_flag_unknown_warning_option=yes
5121 else
5122 xorg_cv_cc_flag_unknown_warning_option=no
5123 fi
5124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5125 fi
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5127 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5128 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5129 CFLAGS="$xorg_testset_save_CFLAGS"
5130 fi
5131
5132 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5135 fi
5136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5138 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5139 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5140 $as_echo_n "(cached) " >&6
5141 else
5142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h. */
5144 int i;
5145 _ACEOF
5146 if ac_fn_c_try_compile "$LINENO"; then :
5147 xorg_cv_cc_flag_unused_command_line_argument=yes
5148 else
5149 xorg_cv_cc_flag_unused_command_line_argument=no
5150 fi
5151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5152 fi
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5154 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5155 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5156 CFLAGS="$xorg_testset_save_CFLAGS"
5157 fi
5158
5159 found="no"
5160
5161 if test $found = "no" ; then
5162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5163 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5164 fi
5165
5166 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5168 fi
5169
5170 CFLAGS="$CFLAGS -Wbad-function-cast"
5171
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5173 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5174 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5175 if eval \${$cacheid+:} false; then :
5176 $as_echo_n "(cached) " >&6
5177 else
5178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5179 /* end confdefs.h. */
5180 int i;
5181 int
5182 main ()
5183 {
5184
5185 ;
5186 return 0;
5187 }
5188 _ACEOF
5189 if ac_fn_c_try_link "$LINENO"; then :
5190 eval $cacheid=yes
5191 else
5192 eval $cacheid=no
5193 fi
5194 rm -f core conftest.err conftest.$ac_objext \
5195 conftest$ac_exeext conftest.$ac_ext
5196 fi
5197
5198
5199 CFLAGS="$xorg_testset_save_CFLAGS"
5200
5201 eval supported=\$$cacheid
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5203 $as_echo "$supported" >&6; }
5204 if test "$supported" = "yes" ; then
5205 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5206 found="yes"
5207 fi
5208 fi
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224 xorg_testset_save_CFLAGS="$CFLAGS"
5225
5226 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5227 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5229 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5230 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5231 $as_echo_n "(cached) " >&6
5232 else
5233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234 /* end confdefs.h. */
5235 int i;
5236 _ACEOF
5237 if ac_fn_c_try_compile "$LINENO"; then :
5238 xorg_cv_cc_flag_unknown_warning_option=yes
5239 else
5240 xorg_cv_cc_flag_unknown_warning_option=no
5241 fi
5242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5243 fi
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5245 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5246 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5247 CFLAGS="$xorg_testset_save_CFLAGS"
5248 fi
5249
5250 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5252 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5253 fi
5254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5256 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5257 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5258 $as_echo_n "(cached) " >&6
5259 else
5260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5261 /* end confdefs.h. */
5262 int i;
5263 _ACEOF
5264 if ac_fn_c_try_compile "$LINENO"; then :
5265 xorg_cv_cc_flag_unused_command_line_argument=yes
5266 else
5267 xorg_cv_cc_flag_unused_command_line_argument=no
5268 fi
5269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5270 fi
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5272 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5273 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5274 CFLAGS="$xorg_testset_save_CFLAGS"
5275 fi
5276
5277 found="no"
5278
5279 if test $found = "no" ; then
5280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5281 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5282 fi
5283
5284 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5286 fi
5287
5288 CFLAGS="$CFLAGS -Wold-style-definition"
5289
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5291 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5292 cacheid=xorg_cv_cc_flag__Wold_style_definition
5293 if eval \${$cacheid+:} false; then :
5294 $as_echo_n "(cached) " >&6
5295 else
5296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297 /* end confdefs.h. */
5298 int i;
5299 int
5300 main ()
5301 {
5302
5303 ;
5304 return 0;
5305 }
5306 _ACEOF
5307 if ac_fn_c_try_link "$LINENO"; then :
5308 eval $cacheid=yes
5309 else
5310 eval $cacheid=no
5311 fi
5312 rm -f core conftest.err conftest.$ac_objext \
5313 conftest$ac_exeext conftest.$ac_ext
5314 fi
5315
5316
5317 CFLAGS="$xorg_testset_save_CFLAGS"
5318
5319 eval supported=\$$cacheid
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5321 $as_echo "$supported" >&6; }
5322 if test "$supported" = "yes" ; then
5323 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5324 found="yes"
5325 fi
5326 fi
5327
5328 if test $found = "no" ; then
5329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5330 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5331 fi
5332
5333 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5335 fi
5336
5337 CFLAGS="$CFLAGS -fd"
5338
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5340 $as_echo_n "checking if $CC supports -fd... " >&6; }
5341 cacheid=xorg_cv_cc_flag__fd
5342 if eval \${$cacheid+:} false; then :
5343 $as_echo_n "(cached) " >&6
5344 else
5345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346 /* end confdefs.h. */
5347 int i;
5348 int
5349 main ()
5350 {
5351
5352 ;
5353 return 0;
5354 }
5355 _ACEOF
5356 if ac_fn_c_try_link "$LINENO"; then :
5357 eval $cacheid=yes
5358 else
5359 eval $cacheid=no
5360 fi
5361 rm -f core conftest.err conftest.$ac_objext \
5362 conftest$ac_exeext conftest.$ac_ext
5363 fi
5364
5365
5366 CFLAGS="$xorg_testset_save_CFLAGS"
5367
5368 eval supported=\$$cacheid
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5370 $as_echo "$supported" >&6; }
5371 if test "$supported" = "yes" ; then
5372 BASE_CFLAGS="$BASE_CFLAGS -fd"
5373 found="yes"
5374 fi
5375 fi
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391 xorg_testset_save_CFLAGS="$CFLAGS"
5392
5393 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5394 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5396 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5397 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5398 $as_echo_n "(cached) " >&6
5399 else
5400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401 /* end confdefs.h. */
5402 int i;
5403 _ACEOF
5404 if ac_fn_c_try_compile "$LINENO"; then :
5405 xorg_cv_cc_flag_unknown_warning_option=yes
5406 else
5407 xorg_cv_cc_flag_unknown_warning_option=no
5408 fi
5409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5410 fi
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5412 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5413 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5414 CFLAGS="$xorg_testset_save_CFLAGS"
5415 fi
5416
5417 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5419 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5420 fi
5421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5423 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5424 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5425 $as_echo_n "(cached) " >&6
5426 else
5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h. */
5429 int i;
5430 _ACEOF
5431 if ac_fn_c_try_compile "$LINENO"; then :
5432 xorg_cv_cc_flag_unused_command_line_argument=yes
5433 else
5434 xorg_cv_cc_flag_unused_command_line_argument=no
5435 fi
5436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5437 fi
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5439 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5440 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5441 CFLAGS="$xorg_testset_save_CFLAGS"
5442 fi
5443
5444 found="no"
5445
5446 if test $found = "no" ; then
5447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5448 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5449 fi
5450
5451 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5453 fi
5454
5455 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5456
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5458 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5459 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5460 if eval \${$cacheid+:} false; then :
5461 $as_echo_n "(cached) " >&6
5462 else
5463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464 /* end confdefs.h. */
5465 int i;
5466 int
5467 main ()
5468 {
5469
5470 ;
5471 return 0;
5472 }
5473 _ACEOF
5474 if ac_fn_c_try_link "$LINENO"; then :
5475 eval $cacheid=yes
5476 else
5477 eval $cacheid=no
5478 fi
5479 rm -f core conftest.err conftest.$ac_objext \
5480 conftest$ac_exeext conftest.$ac_ext
5481 fi
5482
5483
5484 CFLAGS="$xorg_testset_save_CFLAGS"
5485
5486 eval supported=\$$cacheid
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5488 $as_echo "$supported" >&6; }
5489 if test "$supported" = "yes" ; then
5490 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5491 found="yes"
5492 fi
5493 fi
5494
5495
5496
5497
5498
5499 # This chunk adds additional warnings that could catch undesired effects.
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513 xorg_testset_save_CFLAGS="$CFLAGS"
5514
5515 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5516 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5518 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5519 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5520 $as_echo_n "(cached) " >&6
5521 else
5522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5523 /* end confdefs.h. */
5524 int i;
5525 _ACEOF
5526 if ac_fn_c_try_compile "$LINENO"; then :
5527 xorg_cv_cc_flag_unknown_warning_option=yes
5528 else
5529 xorg_cv_cc_flag_unknown_warning_option=no
5530 fi
5531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5532 fi
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5534 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5535 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5536 CFLAGS="$xorg_testset_save_CFLAGS"
5537 fi
5538
5539 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5542 fi
5543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5545 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5546 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5547 $as_echo_n "(cached) " >&6
5548 else
5549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550 /* end confdefs.h. */
5551 int i;
5552 _ACEOF
5553 if ac_fn_c_try_compile "$LINENO"; then :
5554 xorg_cv_cc_flag_unused_command_line_argument=yes
5555 else
5556 xorg_cv_cc_flag_unused_command_line_argument=no
5557 fi
5558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5559 fi
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5561 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5562 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5563 CFLAGS="$xorg_testset_save_CFLAGS"
5564 fi
5565
5566 found="no"
5567
5568 if test $found = "no" ; then
5569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5570 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5571 fi
5572
5573 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5575 fi
5576
5577 CFLAGS="$CFLAGS -Wunused"
5578
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5580 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
5581 cacheid=xorg_cv_cc_flag__Wunused
5582 if eval \${$cacheid+:} false; then :
5583 $as_echo_n "(cached) " >&6
5584 else
5585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5586 /* end confdefs.h. */
5587 int i;
5588 int
5589 main ()
5590 {
5591
5592 ;
5593 return 0;
5594 }
5595 _ACEOF
5596 if ac_fn_c_try_link "$LINENO"; then :
5597 eval $cacheid=yes
5598 else
5599 eval $cacheid=no
5600 fi
5601 rm -f core conftest.err conftest.$ac_objext \
5602 conftest$ac_exeext conftest.$ac_ext
5603 fi
5604
5605
5606 CFLAGS="$xorg_testset_save_CFLAGS"
5607
5608 eval supported=\$$cacheid
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5610 $as_echo "$supported" >&6; }
5611 if test "$supported" = "yes" ; then
5612 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5613 found="yes"
5614 fi
5615 fi
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631 xorg_testset_save_CFLAGS="$CFLAGS"
5632
5633 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5636 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5637 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5638 $as_echo_n "(cached) " >&6
5639 else
5640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641 /* end confdefs.h. */
5642 int i;
5643 _ACEOF
5644 if ac_fn_c_try_compile "$LINENO"; then :
5645 xorg_cv_cc_flag_unknown_warning_option=yes
5646 else
5647 xorg_cv_cc_flag_unknown_warning_option=no
5648 fi
5649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5650 fi
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5652 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5653 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5654 CFLAGS="$xorg_testset_save_CFLAGS"
5655 fi
5656
5657 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5660 fi
5661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5663 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5664 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5665 $as_echo_n "(cached) " >&6
5666 else
5667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5668 /* end confdefs.h. */
5669 int i;
5670 _ACEOF
5671 if ac_fn_c_try_compile "$LINENO"; then :
5672 xorg_cv_cc_flag_unused_command_line_argument=yes
5673 else
5674 xorg_cv_cc_flag_unused_command_line_argument=no
5675 fi
5676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5677 fi
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5679 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5680 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5681 CFLAGS="$xorg_testset_save_CFLAGS"
5682 fi
5683
5684 found="no"
5685
5686 if test $found = "no" ; then
5687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5688 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5689 fi
5690
5691 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5693 fi
5694
5695 CFLAGS="$CFLAGS -Wuninitialized"
5696
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5698 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5699 cacheid=xorg_cv_cc_flag__Wuninitialized
5700 if eval \${$cacheid+:} false; then :
5701 $as_echo_n "(cached) " >&6
5702 else
5703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5704 /* end confdefs.h. */
5705 int i;
5706 int
5707 main ()
5708 {
5709
5710 ;
5711 return 0;
5712 }
5713 _ACEOF
5714 if ac_fn_c_try_link "$LINENO"; then :
5715 eval $cacheid=yes
5716 else
5717 eval $cacheid=no
5718 fi
5719 rm -f core conftest.err conftest.$ac_objext \
5720 conftest$ac_exeext conftest.$ac_ext
5721 fi
5722
5723
5724 CFLAGS="$xorg_testset_save_CFLAGS"
5725
5726 eval supported=\$$cacheid
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5728 $as_echo "$supported" >&6; }
5729 if test "$supported" = "yes" ; then
5730 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5731 found="yes"
5732 fi
5733 fi
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749 xorg_testset_save_CFLAGS="$CFLAGS"
5750
5751 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5754 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5755 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5756 $as_echo_n "(cached) " >&6
5757 else
5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h. */
5760 int i;
5761 _ACEOF
5762 if ac_fn_c_try_compile "$LINENO"; then :
5763 xorg_cv_cc_flag_unknown_warning_option=yes
5764 else
5765 xorg_cv_cc_flag_unknown_warning_option=no
5766 fi
5767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5768 fi
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5770 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5771 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5772 CFLAGS="$xorg_testset_save_CFLAGS"
5773 fi
5774
5775 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5778 fi
5779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5781 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5782 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5783 $as_echo_n "(cached) " >&6
5784 else
5785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5786 /* end confdefs.h. */
5787 int i;
5788 _ACEOF
5789 if ac_fn_c_try_compile "$LINENO"; then :
5790 xorg_cv_cc_flag_unused_command_line_argument=yes
5791 else
5792 xorg_cv_cc_flag_unused_command_line_argument=no
5793 fi
5794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5795 fi
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5797 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5798 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5799 CFLAGS="$xorg_testset_save_CFLAGS"
5800 fi
5801
5802 found="no"
5803
5804 if test $found = "no" ; then
5805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5806 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5807 fi
5808
5809 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5811 fi
5812
5813 CFLAGS="$CFLAGS -Wshadow"
5814
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
5816 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
5817 cacheid=xorg_cv_cc_flag__Wshadow
5818 if eval \${$cacheid+:} false; then :
5819 $as_echo_n "(cached) " >&6
5820 else
5821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5822 /* end confdefs.h. */
5823 int i;
5824 int
5825 main ()
5826 {
5827
5828 ;
5829 return 0;
5830 }
5831 _ACEOF
5832 if ac_fn_c_try_link "$LINENO"; then :
5833 eval $cacheid=yes
5834 else
5835 eval $cacheid=no
5836 fi
5837 rm -f core conftest.err conftest.$ac_objext \
5838 conftest$ac_exeext conftest.$ac_ext
5839 fi
5840
5841
5842 CFLAGS="$xorg_testset_save_CFLAGS"
5843
5844 eval supported=\$$cacheid
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5846 $as_echo "$supported" >&6; }
5847 if test "$supported" = "yes" ; then
5848 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
5849 found="yes"
5850 fi
5851 fi
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867 xorg_testset_save_CFLAGS="$CFLAGS"
5868
5869 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5870 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5872 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5873 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5874 $as_echo_n "(cached) " >&6
5875 else
5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877 /* end confdefs.h. */
5878 int i;
5879 _ACEOF
5880 if ac_fn_c_try_compile "$LINENO"; then :
5881 xorg_cv_cc_flag_unknown_warning_option=yes
5882 else
5883 xorg_cv_cc_flag_unknown_warning_option=no
5884 fi
5885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5886 fi
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5888 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5889 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5890 CFLAGS="$xorg_testset_save_CFLAGS"
5891 fi
5892
5893 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5895 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5896 fi
5897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5899 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5900 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5901 $as_echo_n "(cached) " >&6
5902 else
5903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904 /* end confdefs.h. */
5905 int i;
5906 _ACEOF
5907 if ac_fn_c_try_compile "$LINENO"; then :
5908 xorg_cv_cc_flag_unused_command_line_argument=yes
5909 else
5910 xorg_cv_cc_flag_unused_command_line_argument=no
5911 fi
5912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5913 fi
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5915 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5916 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5917 CFLAGS="$xorg_testset_save_CFLAGS"
5918 fi
5919
5920 found="no"
5921
5922 if test $found = "no" ; then
5923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5924 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5925 fi
5926
5927 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5929 fi
5930
5931 CFLAGS="$CFLAGS -Wmissing-noreturn"
5932
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
5934 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
5935 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
5936 if eval \${$cacheid+:} false; then :
5937 $as_echo_n "(cached) " >&6
5938 else
5939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5940 /* end confdefs.h. */
5941 int i;
5942 int
5943 main ()
5944 {
5945
5946 ;
5947 return 0;
5948 }
5949 _ACEOF
5950 if ac_fn_c_try_link "$LINENO"; then :
5951 eval $cacheid=yes
5952 else
5953 eval $cacheid=no
5954 fi
5955 rm -f core conftest.err conftest.$ac_objext \
5956 conftest$ac_exeext conftest.$ac_ext
5957 fi
5958
5959
5960 CFLAGS="$xorg_testset_save_CFLAGS"
5961
5962 eval supported=\$$cacheid
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5964 $as_echo "$supported" >&6; }
5965 if test "$supported" = "yes" ; then
5966 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
5967 found="yes"
5968 fi
5969 fi
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985 xorg_testset_save_CFLAGS="$CFLAGS"
5986
5987 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5990 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5991 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5992 $as_echo_n "(cached) " >&6
5993 else
5994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5995 /* end confdefs.h. */
5996 int i;
5997 _ACEOF
5998 if ac_fn_c_try_compile "$LINENO"; then :
5999 xorg_cv_cc_flag_unknown_warning_option=yes
6000 else
6001 xorg_cv_cc_flag_unknown_warning_option=no
6002 fi
6003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6004 fi
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6006 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6007 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6008 CFLAGS="$xorg_testset_save_CFLAGS"
6009 fi
6010
6011 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6013 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6014 fi
6015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6017 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6018 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6019 $as_echo_n "(cached) " >&6
6020 else
6021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6022 /* end confdefs.h. */
6023 int i;
6024 _ACEOF
6025 if ac_fn_c_try_compile "$LINENO"; then :
6026 xorg_cv_cc_flag_unused_command_line_argument=yes
6027 else
6028 xorg_cv_cc_flag_unused_command_line_argument=no
6029 fi
6030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6031 fi
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6033 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6034 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6035 CFLAGS="$xorg_testset_save_CFLAGS"
6036 fi
6037
6038 found="no"
6039
6040 if test $found = "no" ; then
6041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6043 fi
6044
6045 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6047 fi
6048
6049 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6050
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6052 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6053 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6054 if eval \${$cacheid+:} false; then :
6055 $as_echo_n "(cached) " >&6
6056 else
6057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6058 /* end confdefs.h. */
6059 int i;
6060 int
6061 main ()
6062 {
6063
6064 ;
6065 return 0;
6066 }
6067 _ACEOF
6068 if ac_fn_c_try_link "$LINENO"; then :
6069 eval $cacheid=yes
6070 else
6071 eval $cacheid=no
6072 fi
6073 rm -f core conftest.err conftest.$ac_objext \
6074 conftest$ac_exeext conftest.$ac_ext
6075 fi
6076
6077
6078 CFLAGS="$xorg_testset_save_CFLAGS"
6079
6080 eval supported=\$$cacheid
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6082 $as_echo "$supported" >&6; }
6083 if test "$supported" = "yes" ; then
6084 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6085 found="yes"
6086 fi
6087 fi
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103 xorg_testset_save_CFLAGS="$CFLAGS"
6104
6105 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6108 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6109 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6110 $as_echo_n "(cached) " >&6
6111 else
6112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6113 /* end confdefs.h. */
6114 int i;
6115 _ACEOF
6116 if ac_fn_c_try_compile "$LINENO"; then :
6117 xorg_cv_cc_flag_unknown_warning_option=yes
6118 else
6119 xorg_cv_cc_flag_unknown_warning_option=no
6120 fi
6121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6122 fi
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6124 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6125 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6126 CFLAGS="$xorg_testset_save_CFLAGS"
6127 fi
6128
6129 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6131 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6132 fi
6133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6135 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6136 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6137 $as_echo_n "(cached) " >&6
6138 else
6139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6140 /* end confdefs.h. */
6141 int i;
6142 _ACEOF
6143 if ac_fn_c_try_compile "$LINENO"; then :
6144 xorg_cv_cc_flag_unused_command_line_argument=yes
6145 else
6146 xorg_cv_cc_flag_unused_command_line_argument=no
6147 fi
6148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6149 fi
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6151 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6152 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6153 CFLAGS="$xorg_testset_save_CFLAGS"
6154 fi
6155
6156 found="no"
6157
6158 if test $found = "no" ; then
6159 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6160 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6161 fi
6162
6163 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6164 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6165 fi
6166
6167 CFLAGS="$CFLAGS -Wredundant-decls"
6168
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6170 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6171 cacheid=xorg_cv_cc_flag__Wredundant_decls
6172 if eval \${$cacheid+:} false; then :
6173 $as_echo_n "(cached) " >&6
6174 else
6175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6176 /* end confdefs.h. */
6177 int i;
6178 int
6179 main ()
6180 {
6181
6182 ;
6183 return 0;
6184 }
6185 _ACEOF
6186 if ac_fn_c_try_link "$LINENO"; then :
6187 eval $cacheid=yes
6188 else
6189 eval $cacheid=no
6190 fi
6191 rm -f core conftest.err conftest.$ac_objext \
6192 conftest$ac_exeext conftest.$ac_ext
6193 fi
6194
6195
6196 CFLAGS="$xorg_testset_save_CFLAGS"
6197
6198 eval supported=\$$cacheid
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6200 $as_echo "$supported" >&6; }
6201 if test "$supported" = "yes" ; then
6202 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6203 found="yes"
6204 fi
6205 fi
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221 xorg_testset_save_CFLAGS="$CFLAGS"
6222
6223 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6226 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6227 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6228 $as_echo_n "(cached) " >&6
6229 else
6230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6231 /* end confdefs.h. */
6232 int i;
6233 _ACEOF
6234 if ac_fn_c_try_compile "$LINENO"; then :
6235 xorg_cv_cc_flag_unknown_warning_option=yes
6236 else
6237 xorg_cv_cc_flag_unknown_warning_option=no
6238 fi
6239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6240 fi
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6242 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6243 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6244 CFLAGS="$xorg_testset_save_CFLAGS"
6245 fi
6246
6247 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6249 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6250 fi
6251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6253 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6254 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6255 $as_echo_n "(cached) " >&6
6256 else
6257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6258 /* end confdefs.h. */
6259 int i;
6260 _ACEOF
6261 if ac_fn_c_try_compile "$LINENO"; then :
6262 xorg_cv_cc_flag_unused_command_line_argument=yes
6263 else
6264 xorg_cv_cc_flag_unused_command_line_argument=no
6265 fi
6266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6267 fi
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6269 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6270 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6271 CFLAGS="$xorg_testset_save_CFLAGS"
6272 fi
6273
6274 found="no"
6275
6276 if test $found = "no" ; then
6277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6278 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6279 fi
6280
6281 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6283 fi
6284
6285 CFLAGS="$CFLAGS -Wlogical-op"
6286
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6288 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6289 cacheid=xorg_cv_cc_flag__Wlogical_op
6290 if eval \${$cacheid+:} false; then :
6291 $as_echo_n "(cached) " >&6
6292 else
6293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6294 /* end confdefs.h. */
6295 int i;
6296 int
6297 main ()
6298 {
6299
6300 ;
6301 return 0;
6302 }
6303 _ACEOF
6304 if ac_fn_c_try_link "$LINENO"; then :
6305 eval $cacheid=yes
6306 else
6307 eval $cacheid=no
6308 fi
6309 rm -f core conftest.err conftest.$ac_objext \
6310 conftest$ac_exeext conftest.$ac_ext
6311 fi
6312
6313
6314 CFLAGS="$xorg_testset_save_CFLAGS"
6315
6316 eval supported=\$$cacheid
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6318 $as_echo "$supported" >&6; }
6319 if test "$supported" = "yes" ; then
6320 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6321 found="yes"
6322 fi
6323 fi
6324
6325
6326
6327 # These are currently disabled because they are noisy. They will be enabled
6328 # in the future once the codebase is sufficiently modernized to silence
6329 # them. For now, I don't want them to drown out the other warnings.
6330 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6331 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6332 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6333
6334 # Turn some warnings into errors, so we don't accidently get successful builds
6335 # when there are problems that should be fixed.
6336
6337 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351 xorg_testset_save_CFLAGS="$CFLAGS"
6352
6353 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6354 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6356 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6357 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6358 $as_echo_n "(cached) " >&6
6359 else
6360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361 /* end confdefs.h. */
6362 int i;
6363 _ACEOF
6364 if ac_fn_c_try_compile "$LINENO"; then :
6365 xorg_cv_cc_flag_unknown_warning_option=yes
6366 else
6367 xorg_cv_cc_flag_unknown_warning_option=no
6368 fi
6369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370 fi
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6372 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6373 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6374 CFLAGS="$xorg_testset_save_CFLAGS"
6375 fi
6376
6377 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6379 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6380 fi
6381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6383 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6384 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6385 $as_echo_n "(cached) " >&6
6386 else
6387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6388 /* end confdefs.h. */
6389 int i;
6390 _ACEOF
6391 if ac_fn_c_try_compile "$LINENO"; then :
6392 xorg_cv_cc_flag_unused_command_line_argument=yes
6393 else
6394 xorg_cv_cc_flag_unused_command_line_argument=no
6395 fi
6396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6397 fi
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6399 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6400 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6401 CFLAGS="$xorg_testset_save_CFLAGS"
6402 fi
6403
6404 found="no"
6405
6406 if test $found = "no" ; then
6407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6408 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6409 fi
6410
6411 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6413 fi
6414
6415 CFLAGS="$CFLAGS -Werror=implicit"
6416
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6418 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6419 cacheid=xorg_cv_cc_flag__Werror_implicit
6420 if eval \${$cacheid+:} false; then :
6421 $as_echo_n "(cached) " >&6
6422 else
6423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6424 /* end confdefs.h. */
6425 int i;
6426 int
6427 main ()
6428 {
6429
6430 ;
6431 return 0;
6432 }
6433 _ACEOF
6434 if ac_fn_c_try_link "$LINENO"; then :
6435 eval $cacheid=yes
6436 else
6437 eval $cacheid=no
6438 fi
6439 rm -f core conftest.err conftest.$ac_objext \
6440 conftest$ac_exeext conftest.$ac_ext
6441 fi
6442
6443
6444 CFLAGS="$xorg_testset_save_CFLAGS"
6445
6446 eval supported=\$$cacheid
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6448 $as_echo "$supported" >&6; }
6449 if test "$supported" = "yes" ; then
6450 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6451 found="yes"
6452 fi
6453 fi
6454
6455 if test $found = "no" ; then
6456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6457 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6458 fi
6459
6460 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6462 fi
6463
6464 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6465
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6467 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6468 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6469 if eval \${$cacheid+:} false; then :
6470 $as_echo_n "(cached) " >&6
6471 else
6472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6473 /* end confdefs.h. */
6474 int i;
6475 int
6476 main ()
6477 {
6478
6479 ;
6480 return 0;
6481 }
6482 _ACEOF
6483 if ac_fn_c_try_link "$LINENO"; then :
6484 eval $cacheid=yes
6485 else
6486 eval $cacheid=no
6487 fi
6488 rm -f core conftest.err conftest.$ac_objext \
6489 conftest$ac_exeext conftest.$ac_ext
6490 fi
6491
6492
6493 CFLAGS="$xorg_testset_save_CFLAGS"
6494
6495 eval supported=\$$cacheid
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6497 $as_echo "$supported" >&6; }
6498 if test "$supported" = "yes" ; then
6499 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6500 found="yes"
6501 fi
6502 fi
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518 xorg_testset_save_CFLAGS="$CFLAGS"
6519
6520 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6521 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6523 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6524 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6525 $as_echo_n "(cached) " >&6
6526 else
6527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6528 /* end confdefs.h. */
6529 int i;
6530 _ACEOF
6531 if ac_fn_c_try_compile "$LINENO"; then :
6532 xorg_cv_cc_flag_unknown_warning_option=yes
6533 else
6534 xorg_cv_cc_flag_unknown_warning_option=no
6535 fi
6536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6537 fi
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6539 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6540 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6541 CFLAGS="$xorg_testset_save_CFLAGS"
6542 fi
6543
6544 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6547 fi
6548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6550 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6551 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6552 $as_echo_n "(cached) " >&6
6553 else
6554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555 /* end confdefs.h. */
6556 int i;
6557 _ACEOF
6558 if ac_fn_c_try_compile "$LINENO"; then :
6559 xorg_cv_cc_flag_unused_command_line_argument=yes
6560 else
6561 xorg_cv_cc_flag_unused_command_line_argument=no
6562 fi
6563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6564 fi
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6566 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6567 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6568 CFLAGS="$xorg_testset_save_CFLAGS"
6569 fi
6570
6571 found="no"
6572
6573 if test $found = "no" ; then
6574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6575 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6576 fi
6577
6578 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6580 fi
6581
6582 CFLAGS="$CFLAGS -Werror=nonnull"
6583
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6585 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6586 cacheid=xorg_cv_cc_flag__Werror_nonnull
6587 if eval \${$cacheid+:} false; then :
6588 $as_echo_n "(cached) " >&6
6589 else
6590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h. */
6592 int i;
6593 int
6594 main ()
6595 {
6596
6597 ;
6598 return 0;
6599 }
6600 _ACEOF
6601 if ac_fn_c_try_link "$LINENO"; then :
6602 eval $cacheid=yes
6603 else
6604 eval $cacheid=no
6605 fi
6606 rm -f core conftest.err conftest.$ac_objext \
6607 conftest$ac_exeext conftest.$ac_ext
6608 fi
6609
6610
6611 CFLAGS="$xorg_testset_save_CFLAGS"
6612
6613 eval supported=\$$cacheid
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6615 $as_echo "$supported" >&6; }
6616 if test "$supported" = "yes" ; then
6617 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6618 found="yes"
6619 fi
6620 fi
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636 xorg_testset_save_CFLAGS="$CFLAGS"
6637
6638 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6641 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6642 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6643 $as_echo_n "(cached) " >&6
6644 else
6645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646 /* end confdefs.h. */
6647 int i;
6648 _ACEOF
6649 if ac_fn_c_try_compile "$LINENO"; then :
6650 xorg_cv_cc_flag_unknown_warning_option=yes
6651 else
6652 xorg_cv_cc_flag_unknown_warning_option=no
6653 fi
6654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6655 fi
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6657 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6658 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6659 CFLAGS="$xorg_testset_save_CFLAGS"
6660 fi
6661
6662 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6665 fi
6666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6668 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6669 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6670 $as_echo_n "(cached) " >&6
6671 else
6672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6673 /* end confdefs.h. */
6674 int i;
6675 _ACEOF
6676 if ac_fn_c_try_compile "$LINENO"; then :
6677 xorg_cv_cc_flag_unused_command_line_argument=yes
6678 else
6679 xorg_cv_cc_flag_unused_command_line_argument=no
6680 fi
6681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6682 fi
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6684 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6685 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6686 CFLAGS="$xorg_testset_save_CFLAGS"
6687 fi
6688
6689 found="no"
6690
6691 if test $found = "no" ; then
6692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6693 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6694 fi
6695
6696 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6698 fi
6699
6700 CFLAGS="$CFLAGS -Werror=init-self"
6701
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6703 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6704 cacheid=xorg_cv_cc_flag__Werror_init_self
6705 if eval \${$cacheid+:} false; then :
6706 $as_echo_n "(cached) " >&6
6707 else
6708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709 /* end confdefs.h. */
6710 int i;
6711 int
6712 main ()
6713 {
6714
6715 ;
6716 return 0;
6717 }
6718 _ACEOF
6719 if ac_fn_c_try_link "$LINENO"; then :
6720 eval $cacheid=yes
6721 else
6722 eval $cacheid=no
6723 fi
6724 rm -f core conftest.err conftest.$ac_objext \
6725 conftest$ac_exeext conftest.$ac_ext
6726 fi
6727
6728
6729 CFLAGS="$xorg_testset_save_CFLAGS"
6730
6731 eval supported=\$$cacheid
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6733 $as_echo "$supported" >&6; }
6734 if test "$supported" = "yes" ; then
6735 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6736 found="yes"
6737 fi
6738 fi
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754 xorg_testset_save_CFLAGS="$CFLAGS"
6755
6756 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6759 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6760 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6761 $as_echo_n "(cached) " >&6
6762 else
6763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764 /* end confdefs.h. */
6765 int i;
6766 _ACEOF
6767 if ac_fn_c_try_compile "$LINENO"; then :
6768 xorg_cv_cc_flag_unknown_warning_option=yes
6769 else
6770 xorg_cv_cc_flag_unknown_warning_option=no
6771 fi
6772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6773 fi
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6775 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6776 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6777 CFLAGS="$xorg_testset_save_CFLAGS"
6778 fi
6779
6780 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6781 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6783 fi
6784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6786 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6787 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6788 $as_echo_n "(cached) " >&6
6789 else
6790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6791 /* end confdefs.h. */
6792 int i;
6793 _ACEOF
6794 if ac_fn_c_try_compile "$LINENO"; then :
6795 xorg_cv_cc_flag_unused_command_line_argument=yes
6796 else
6797 xorg_cv_cc_flag_unused_command_line_argument=no
6798 fi
6799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6800 fi
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6802 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6803 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6804 CFLAGS="$xorg_testset_save_CFLAGS"
6805 fi
6806
6807 found="no"
6808
6809 if test $found = "no" ; then
6810 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6811 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6812 fi
6813
6814 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6816 fi
6817
6818 CFLAGS="$CFLAGS -Werror=main"
6819
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
6821 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
6822 cacheid=xorg_cv_cc_flag__Werror_main
6823 if eval \${$cacheid+:} false; then :
6824 $as_echo_n "(cached) " >&6
6825 else
6826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827 /* end confdefs.h. */
6828 int i;
6829 int
6830 main ()
6831 {
6832
6833 ;
6834 return 0;
6835 }
6836 _ACEOF
6837 if ac_fn_c_try_link "$LINENO"; then :
6838 eval $cacheid=yes
6839 else
6840 eval $cacheid=no
6841 fi
6842 rm -f core conftest.err conftest.$ac_objext \
6843 conftest$ac_exeext conftest.$ac_ext
6844 fi
6845
6846
6847 CFLAGS="$xorg_testset_save_CFLAGS"
6848
6849 eval supported=\$$cacheid
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6851 $as_echo "$supported" >&6; }
6852 if test "$supported" = "yes" ; then
6853 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
6854 found="yes"
6855 fi
6856 fi
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872 xorg_testset_save_CFLAGS="$CFLAGS"
6873
6874 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6875 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6877 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6878 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6879 $as_echo_n "(cached) " >&6
6880 else
6881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6882 /* end confdefs.h. */
6883 int i;
6884 _ACEOF
6885 if ac_fn_c_try_compile "$LINENO"; then :
6886 xorg_cv_cc_flag_unknown_warning_option=yes
6887 else
6888 xorg_cv_cc_flag_unknown_warning_option=no
6889 fi
6890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6891 fi
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6893 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6894 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6895 CFLAGS="$xorg_testset_save_CFLAGS"
6896 fi
6897
6898 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6899 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6901 fi
6902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6904 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6905 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6906 $as_echo_n "(cached) " >&6
6907 else
6908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6909 /* end confdefs.h. */
6910 int i;
6911 _ACEOF
6912 if ac_fn_c_try_compile "$LINENO"; then :
6913 xorg_cv_cc_flag_unused_command_line_argument=yes
6914 else
6915 xorg_cv_cc_flag_unused_command_line_argument=no
6916 fi
6917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6918 fi
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6920 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6921 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6922 CFLAGS="$xorg_testset_save_CFLAGS"
6923 fi
6924
6925 found="no"
6926
6927 if test $found = "no" ; then
6928 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6929 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6930 fi
6931
6932 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6934 fi
6935
6936 CFLAGS="$CFLAGS -Werror=missing-braces"
6937
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
6939 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
6940 cacheid=xorg_cv_cc_flag__Werror_missing_braces
6941 if eval \${$cacheid+:} false; then :
6942 $as_echo_n "(cached) " >&6
6943 else
6944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6945 /* end confdefs.h. */
6946 int i;
6947 int
6948 main ()
6949 {
6950
6951 ;
6952 return 0;
6953 }
6954 _ACEOF
6955 if ac_fn_c_try_link "$LINENO"; then :
6956 eval $cacheid=yes
6957 else
6958 eval $cacheid=no
6959 fi
6960 rm -f core conftest.err conftest.$ac_objext \
6961 conftest$ac_exeext conftest.$ac_ext
6962 fi
6963
6964
6965 CFLAGS="$xorg_testset_save_CFLAGS"
6966
6967 eval supported=\$$cacheid
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6969 $as_echo "$supported" >&6; }
6970 if test "$supported" = "yes" ; then
6971 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
6972 found="yes"
6973 fi
6974 fi
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990 xorg_testset_save_CFLAGS="$CFLAGS"
6991
6992 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6993 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6995 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6996 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6997 $as_echo_n "(cached) " >&6
6998 else
6999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7000 /* end confdefs.h. */
7001 int i;
7002 _ACEOF
7003 if ac_fn_c_try_compile "$LINENO"; then :
7004 xorg_cv_cc_flag_unknown_warning_option=yes
7005 else
7006 xorg_cv_cc_flag_unknown_warning_option=no
7007 fi
7008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7009 fi
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7011 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7012 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7013 CFLAGS="$xorg_testset_save_CFLAGS"
7014 fi
7015
7016 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7019 fi
7020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7022 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7023 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7024 $as_echo_n "(cached) " >&6
7025 else
7026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7027 /* end confdefs.h. */
7028 int i;
7029 _ACEOF
7030 if ac_fn_c_try_compile "$LINENO"; then :
7031 xorg_cv_cc_flag_unused_command_line_argument=yes
7032 else
7033 xorg_cv_cc_flag_unused_command_line_argument=no
7034 fi
7035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7036 fi
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7038 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7039 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7040 CFLAGS="$xorg_testset_save_CFLAGS"
7041 fi
7042
7043 found="no"
7044
7045 if test $found = "no" ; then
7046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7047 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7048 fi
7049
7050 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7052 fi
7053
7054 CFLAGS="$CFLAGS -Werror=sequence-point"
7055
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7057 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7058 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7059 if eval \${$cacheid+:} false; then :
7060 $as_echo_n "(cached) " >&6
7061 else
7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h. */
7064 int i;
7065 int
7066 main ()
7067 {
7068
7069 ;
7070 return 0;
7071 }
7072 _ACEOF
7073 if ac_fn_c_try_link "$LINENO"; then :
7074 eval $cacheid=yes
7075 else
7076 eval $cacheid=no
7077 fi
7078 rm -f core conftest.err conftest.$ac_objext \
7079 conftest$ac_exeext conftest.$ac_ext
7080 fi
7081
7082
7083 CFLAGS="$xorg_testset_save_CFLAGS"
7084
7085 eval supported=\$$cacheid
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7087 $as_echo "$supported" >&6; }
7088 if test "$supported" = "yes" ; then
7089 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7090 found="yes"
7091 fi
7092 fi
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108 xorg_testset_save_CFLAGS="$CFLAGS"
7109
7110 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7113 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7114 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7115 $as_echo_n "(cached) " >&6
7116 else
7117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7118 /* end confdefs.h. */
7119 int i;
7120 _ACEOF
7121 if ac_fn_c_try_compile "$LINENO"; then :
7122 xorg_cv_cc_flag_unknown_warning_option=yes
7123 else
7124 xorg_cv_cc_flag_unknown_warning_option=no
7125 fi
7126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7127 fi
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7129 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7130 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7131 CFLAGS="$xorg_testset_save_CFLAGS"
7132 fi
7133
7134 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7137 fi
7138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7140 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7141 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7142 $as_echo_n "(cached) " >&6
7143 else
7144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145 /* end confdefs.h. */
7146 int i;
7147 _ACEOF
7148 if ac_fn_c_try_compile "$LINENO"; then :
7149 xorg_cv_cc_flag_unused_command_line_argument=yes
7150 else
7151 xorg_cv_cc_flag_unused_command_line_argument=no
7152 fi
7153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7154 fi
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7156 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7157 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7158 CFLAGS="$xorg_testset_save_CFLAGS"
7159 fi
7160
7161 found="no"
7162
7163 if test $found = "no" ; then
7164 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7165 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7166 fi
7167
7168 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7170 fi
7171
7172 CFLAGS="$CFLAGS -Werror=return-type"
7173
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7175 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7176 cacheid=xorg_cv_cc_flag__Werror_return_type
7177 if eval \${$cacheid+:} false; then :
7178 $as_echo_n "(cached) " >&6
7179 else
7180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7181 /* end confdefs.h. */
7182 int i;
7183 int
7184 main ()
7185 {
7186
7187 ;
7188 return 0;
7189 }
7190 _ACEOF
7191 if ac_fn_c_try_link "$LINENO"; then :
7192 eval $cacheid=yes
7193 else
7194 eval $cacheid=no
7195 fi
7196 rm -f core conftest.err conftest.$ac_objext \
7197 conftest$ac_exeext conftest.$ac_ext
7198 fi
7199
7200
7201 CFLAGS="$xorg_testset_save_CFLAGS"
7202
7203 eval supported=\$$cacheid
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7205 $as_echo "$supported" >&6; }
7206 if test "$supported" = "yes" ; then
7207 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7208 found="yes"
7209 fi
7210 fi
7211
7212 if test $found = "no" ; then
7213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7215 fi
7216
7217 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7219 fi
7220
7221 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7222
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7224 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7225 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7226 if eval \${$cacheid+:} false; then :
7227 $as_echo_n "(cached) " >&6
7228 else
7229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7230 /* end confdefs.h. */
7231 int i;
7232 int
7233 main ()
7234 {
7235
7236 ;
7237 return 0;
7238 }
7239 _ACEOF
7240 if ac_fn_c_try_link "$LINENO"; then :
7241 eval $cacheid=yes
7242 else
7243 eval $cacheid=no
7244 fi
7245 rm -f core conftest.err conftest.$ac_objext \
7246 conftest$ac_exeext conftest.$ac_ext
7247 fi
7248
7249
7250 CFLAGS="$xorg_testset_save_CFLAGS"
7251
7252 eval supported=\$$cacheid
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7254 $as_echo "$supported" >&6; }
7255 if test "$supported" = "yes" ; then
7256 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7257 found="yes"
7258 fi
7259 fi
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275 xorg_testset_save_CFLAGS="$CFLAGS"
7276
7277 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7278 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7280 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7281 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7282 $as_echo_n "(cached) " >&6
7283 else
7284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285 /* end confdefs.h. */
7286 int i;
7287 _ACEOF
7288 if ac_fn_c_try_compile "$LINENO"; then :
7289 xorg_cv_cc_flag_unknown_warning_option=yes
7290 else
7291 xorg_cv_cc_flag_unknown_warning_option=no
7292 fi
7293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7294 fi
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7296 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7297 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7298 CFLAGS="$xorg_testset_save_CFLAGS"
7299 fi
7300
7301 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7304 fi
7305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7307 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7308 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7309 $as_echo_n "(cached) " >&6
7310 else
7311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7312 /* end confdefs.h. */
7313 int i;
7314 _ACEOF
7315 if ac_fn_c_try_compile "$LINENO"; then :
7316 xorg_cv_cc_flag_unused_command_line_argument=yes
7317 else
7318 xorg_cv_cc_flag_unused_command_line_argument=no
7319 fi
7320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7321 fi
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7323 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7324 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7325 CFLAGS="$xorg_testset_save_CFLAGS"
7326 fi
7327
7328 found="no"
7329
7330 if test $found = "no" ; then
7331 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7333 fi
7334
7335 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7337 fi
7338
7339 CFLAGS="$CFLAGS -Werror=trigraphs"
7340
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7342 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7343 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7344 if eval \${$cacheid+:} false; then :
7345 $as_echo_n "(cached) " >&6
7346 else
7347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7348 /* end confdefs.h. */
7349 int i;
7350 int
7351 main ()
7352 {
7353
7354 ;
7355 return 0;
7356 }
7357 _ACEOF
7358 if ac_fn_c_try_link "$LINENO"; then :
7359 eval $cacheid=yes
7360 else
7361 eval $cacheid=no
7362 fi
7363 rm -f core conftest.err conftest.$ac_objext \
7364 conftest$ac_exeext conftest.$ac_ext
7365 fi
7366
7367
7368 CFLAGS="$xorg_testset_save_CFLAGS"
7369
7370 eval supported=\$$cacheid
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7372 $as_echo "$supported" >&6; }
7373 if test "$supported" = "yes" ; then
7374 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7375 found="yes"
7376 fi
7377 fi
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393 xorg_testset_save_CFLAGS="$CFLAGS"
7394
7395 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7398 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7399 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7400 $as_echo_n "(cached) " >&6
7401 else
7402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7403 /* end confdefs.h. */
7404 int i;
7405 _ACEOF
7406 if ac_fn_c_try_compile "$LINENO"; then :
7407 xorg_cv_cc_flag_unknown_warning_option=yes
7408 else
7409 xorg_cv_cc_flag_unknown_warning_option=no
7410 fi
7411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7412 fi
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7414 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7415 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7416 CFLAGS="$xorg_testset_save_CFLAGS"
7417 fi
7418
7419 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7420 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7421 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7422 fi
7423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7425 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7426 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7427 $as_echo_n "(cached) " >&6
7428 else
7429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7430 /* end confdefs.h. */
7431 int i;
7432 _ACEOF
7433 if ac_fn_c_try_compile "$LINENO"; then :
7434 xorg_cv_cc_flag_unused_command_line_argument=yes
7435 else
7436 xorg_cv_cc_flag_unused_command_line_argument=no
7437 fi
7438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7439 fi
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7441 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7442 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7443 CFLAGS="$xorg_testset_save_CFLAGS"
7444 fi
7445
7446 found="no"
7447
7448 if test $found = "no" ; then
7449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7450 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7451 fi
7452
7453 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7455 fi
7456
7457 CFLAGS="$CFLAGS -Werror=array-bounds"
7458
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7460 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7461 cacheid=xorg_cv_cc_flag__Werror_array_bounds
7462 if eval \${$cacheid+:} false; then :
7463 $as_echo_n "(cached) " >&6
7464 else
7465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7466 /* end confdefs.h. */
7467 int i;
7468 int
7469 main ()
7470 {
7471
7472 ;
7473 return 0;
7474 }
7475 _ACEOF
7476 if ac_fn_c_try_link "$LINENO"; then :
7477 eval $cacheid=yes
7478 else
7479 eval $cacheid=no
7480 fi
7481 rm -f core conftest.err conftest.$ac_objext \
7482 conftest$ac_exeext conftest.$ac_ext
7483 fi
7484
7485
7486 CFLAGS="$xorg_testset_save_CFLAGS"
7487
7488 eval supported=\$$cacheid
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7490 $as_echo "$supported" >&6; }
7491 if test "$supported" = "yes" ; then
7492 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7493 found="yes"
7494 fi
7495 fi
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511 xorg_testset_save_CFLAGS="$CFLAGS"
7512
7513 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7514 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7516 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7517 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7518 $as_echo_n "(cached) " >&6
7519 else
7520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7521 /* end confdefs.h. */
7522 int i;
7523 _ACEOF
7524 if ac_fn_c_try_compile "$LINENO"; then :
7525 xorg_cv_cc_flag_unknown_warning_option=yes
7526 else
7527 xorg_cv_cc_flag_unknown_warning_option=no
7528 fi
7529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7530 fi
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7532 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7533 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7534 CFLAGS="$xorg_testset_save_CFLAGS"
7535 fi
7536
7537 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7539 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7540 fi
7541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7543 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7544 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7545 $as_echo_n "(cached) " >&6
7546 else
7547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7548 /* end confdefs.h. */
7549 int i;
7550 _ACEOF
7551 if ac_fn_c_try_compile "$LINENO"; then :
7552 xorg_cv_cc_flag_unused_command_line_argument=yes
7553 else
7554 xorg_cv_cc_flag_unused_command_line_argument=no
7555 fi
7556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7557 fi
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7559 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7560 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7561 CFLAGS="$xorg_testset_save_CFLAGS"
7562 fi
7563
7564 found="no"
7565
7566 if test $found = "no" ; then
7567 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7568 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7569 fi
7570
7571 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7573 fi
7574
7575 CFLAGS="$CFLAGS -Werror=write-strings"
7576
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7578 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7579 cacheid=xorg_cv_cc_flag__Werror_write_strings
7580 if eval \${$cacheid+:} false; then :
7581 $as_echo_n "(cached) " >&6
7582 else
7583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7584 /* end confdefs.h. */
7585 int i;
7586 int
7587 main ()
7588 {
7589
7590 ;
7591 return 0;
7592 }
7593 _ACEOF
7594 if ac_fn_c_try_link "$LINENO"; then :
7595 eval $cacheid=yes
7596 else
7597 eval $cacheid=no
7598 fi
7599 rm -f core conftest.err conftest.$ac_objext \
7600 conftest$ac_exeext conftest.$ac_ext
7601 fi
7602
7603
7604 CFLAGS="$xorg_testset_save_CFLAGS"
7605
7606 eval supported=\$$cacheid
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7608 $as_echo "$supported" >&6; }
7609 if test "$supported" = "yes" ; then
7610 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7611 found="yes"
7612 fi
7613 fi
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629 xorg_testset_save_CFLAGS="$CFLAGS"
7630
7631 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7634 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7635 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7636 $as_echo_n "(cached) " >&6
7637 else
7638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7639 /* end confdefs.h. */
7640 int i;
7641 _ACEOF
7642 if ac_fn_c_try_compile "$LINENO"; then :
7643 xorg_cv_cc_flag_unknown_warning_option=yes
7644 else
7645 xorg_cv_cc_flag_unknown_warning_option=no
7646 fi
7647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7648 fi
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7650 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7651 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7652 CFLAGS="$xorg_testset_save_CFLAGS"
7653 fi
7654
7655 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7657 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7658 fi
7659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7661 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7662 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7663 $as_echo_n "(cached) " >&6
7664 else
7665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7666 /* end confdefs.h. */
7667 int i;
7668 _ACEOF
7669 if ac_fn_c_try_compile "$LINENO"; then :
7670 xorg_cv_cc_flag_unused_command_line_argument=yes
7671 else
7672 xorg_cv_cc_flag_unused_command_line_argument=no
7673 fi
7674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7675 fi
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7677 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7678 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7679 CFLAGS="$xorg_testset_save_CFLAGS"
7680 fi
7681
7682 found="no"
7683
7684 if test $found = "no" ; then
7685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7686 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7687 fi
7688
7689 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7691 fi
7692
7693 CFLAGS="$CFLAGS -Werror=address"
7694
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7696 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
7697 cacheid=xorg_cv_cc_flag__Werror_address
7698 if eval \${$cacheid+:} false; then :
7699 $as_echo_n "(cached) " >&6
7700 else
7701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7702 /* end confdefs.h. */
7703 int i;
7704 int
7705 main ()
7706 {
7707
7708 ;
7709 return 0;
7710 }
7711 _ACEOF
7712 if ac_fn_c_try_link "$LINENO"; then :
7713 eval $cacheid=yes
7714 else
7715 eval $cacheid=no
7716 fi
7717 rm -f core conftest.err conftest.$ac_objext \
7718 conftest$ac_exeext conftest.$ac_ext
7719 fi
7720
7721
7722 CFLAGS="$xorg_testset_save_CFLAGS"
7723
7724 eval supported=\$$cacheid
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7726 $as_echo "$supported" >&6; }
7727 if test "$supported" = "yes" ; then
7728 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7729 found="yes"
7730 fi
7731 fi
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747 xorg_testset_save_CFLAGS="$CFLAGS"
7748
7749 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7752 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7753 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7754 $as_echo_n "(cached) " >&6
7755 else
7756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7757 /* end confdefs.h. */
7758 int i;
7759 _ACEOF
7760 if ac_fn_c_try_compile "$LINENO"; then :
7761 xorg_cv_cc_flag_unknown_warning_option=yes
7762 else
7763 xorg_cv_cc_flag_unknown_warning_option=no
7764 fi
7765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7766 fi
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7768 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7769 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7770 CFLAGS="$xorg_testset_save_CFLAGS"
7771 fi
7772
7773 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7775 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7776 fi
7777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7779 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7780 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7781 $as_echo_n "(cached) " >&6
7782 else
7783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7784 /* end confdefs.h. */
7785 int i;
7786 _ACEOF
7787 if ac_fn_c_try_compile "$LINENO"; then :
7788 xorg_cv_cc_flag_unused_command_line_argument=yes
7789 else
7790 xorg_cv_cc_flag_unused_command_line_argument=no
7791 fi
7792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7793 fi
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7795 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7796 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7797 CFLAGS="$xorg_testset_save_CFLAGS"
7798 fi
7799
7800 found="no"
7801
7802 if test $found = "no" ; then
7803 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7804 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7805 fi
7806
7807 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7809 fi
7810
7811 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
7812
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
7814 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
7815 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
7816 if eval \${$cacheid+:} false; then :
7817 $as_echo_n "(cached) " >&6
7818 else
7819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7820 /* end confdefs.h. */
7821 int i;
7822 int
7823 main ()
7824 {
7825
7826 ;
7827 return 0;
7828 }
7829 _ACEOF
7830 if ac_fn_c_try_link "$LINENO"; then :
7831 eval $cacheid=yes
7832 else
7833 eval $cacheid=no
7834 fi
7835 rm -f core conftest.err conftest.$ac_objext \
7836 conftest$ac_exeext conftest.$ac_ext
7837 fi
7838
7839
7840 CFLAGS="$xorg_testset_save_CFLAGS"
7841
7842 eval supported=\$$cacheid
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7844 $as_echo "$supported" >&6; }
7845 if test "$supported" = "yes" ; then
7846 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
7847 found="yes"
7848 fi
7849 fi
7850
7851 if test $found = "no" ; then
7852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7853 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7854 fi
7855
7856 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7858 fi
7859
7860 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7861
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
7863 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
7864 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
7865 if eval \${$cacheid+:} false; then :
7866 $as_echo_n "(cached) " >&6
7867 else
7868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7869 /* end confdefs.h. */
7870 int i;
7871 int
7872 main ()
7873 {
7874
7875 ;
7876 return 0;
7877 }
7878 _ACEOF
7879 if ac_fn_c_try_link "$LINENO"; then :
7880 eval $cacheid=yes
7881 else
7882 eval $cacheid=no
7883 fi
7884 rm -f core conftest.err conftest.$ac_objext \
7885 conftest$ac_exeext conftest.$ac_ext
7886 fi
7887
7888
7889 CFLAGS="$xorg_testset_save_CFLAGS"
7890
7891 eval supported=\$$cacheid
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7893 $as_echo "$supported" >&6; }
7894 if test "$supported" = "yes" ; then
7895 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7896 found="yes"
7897 fi
7898 fi
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914 xorg_testset_save_CFLAGS="$CFLAGS"
7915
7916 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7917 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7919 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7920 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7921 $as_echo_n "(cached) " >&6
7922 else
7923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924 /* end confdefs.h. */
7925 int i;
7926 _ACEOF
7927 if ac_fn_c_try_compile "$LINENO"; then :
7928 xorg_cv_cc_flag_unknown_warning_option=yes
7929 else
7930 xorg_cv_cc_flag_unknown_warning_option=no
7931 fi
7932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7933 fi
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7935 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7936 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7937 CFLAGS="$xorg_testset_save_CFLAGS"
7938 fi
7939
7940 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7942 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7943 fi
7944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7946 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7947 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7948 $as_echo_n "(cached) " >&6
7949 else
7950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7951 /* end confdefs.h. */
7952 int i;
7953 _ACEOF
7954 if ac_fn_c_try_compile "$LINENO"; then :
7955 xorg_cv_cc_flag_unused_command_line_argument=yes
7956 else
7957 xorg_cv_cc_flag_unused_command_line_argument=no
7958 fi
7959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7960 fi
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7962 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7963 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7964 CFLAGS="$xorg_testset_save_CFLAGS"
7965 fi
7966
7967 found="no"
7968
7969 if test $found = "no" ; then
7970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7971 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7972 fi
7973
7974 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7976 fi
7977
7978 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
7979
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
7981 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
7982 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
7983 if eval \${$cacheid+:} false; then :
7984 $as_echo_n "(cached) " >&6
7985 else
7986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987 /* end confdefs.h. */
7988 int i;
7989 int
7990 main ()
7991 {
7992
7993 ;
7994 return 0;
7995 }
7996 _ACEOF
7997 if ac_fn_c_try_link "$LINENO"; then :
7998 eval $cacheid=yes
7999 else
8000 eval $cacheid=no
8001 fi
8002 rm -f core conftest.err conftest.$ac_objext \
8003 conftest$ac_exeext conftest.$ac_ext
8004 fi
8005
8006
8007 CFLAGS="$xorg_testset_save_CFLAGS"
8008
8009 eval supported=\$$cacheid
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8011 $as_echo "$supported" >&6; }
8012 if test "$supported" = "yes" ; then
8013 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8014 found="yes"
8015 fi
8016 fi
8017
8018 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8019 else
8020 { $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
8021 $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;}
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035 xorg_testset_save_CFLAGS="$CFLAGS"
8036
8037 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8038 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8040 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8041 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8042 $as_echo_n "(cached) " >&6
8043 else
8044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8045 /* end confdefs.h. */
8046 int i;
8047 _ACEOF
8048 if ac_fn_c_try_compile "$LINENO"; then :
8049 xorg_cv_cc_flag_unknown_warning_option=yes
8050 else
8051 xorg_cv_cc_flag_unknown_warning_option=no
8052 fi
8053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8054 fi
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8056 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8057 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8058 CFLAGS="$xorg_testset_save_CFLAGS"
8059 fi
8060
8061 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8063 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8064 fi
8065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8067 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8068 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8069 $as_echo_n "(cached) " >&6
8070 else
8071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8072 /* end confdefs.h. */
8073 int i;
8074 _ACEOF
8075 if ac_fn_c_try_compile "$LINENO"; then :
8076 xorg_cv_cc_flag_unused_command_line_argument=yes
8077 else
8078 xorg_cv_cc_flag_unused_command_line_argument=no
8079 fi
8080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8081 fi
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8083 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8084 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8085 CFLAGS="$xorg_testset_save_CFLAGS"
8086 fi
8087
8088 found="no"
8089
8090 if test $found = "no" ; then
8091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8092 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8093 fi
8094
8095 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8097 fi
8098
8099 CFLAGS="$CFLAGS -Wimplicit"
8100
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8102 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8103 cacheid=xorg_cv_cc_flag__Wimplicit
8104 if eval \${$cacheid+:} false; then :
8105 $as_echo_n "(cached) " >&6
8106 else
8107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8108 /* end confdefs.h. */
8109 int i;
8110 int
8111 main ()
8112 {
8113
8114 ;
8115 return 0;
8116 }
8117 _ACEOF
8118 if ac_fn_c_try_link "$LINENO"; then :
8119 eval $cacheid=yes
8120 else
8121 eval $cacheid=no
8122 fi
8123 rm -f core conftest.err conftest.$ac_objext \
8124 conftest$ac_exeext conftest.$ac_ext
8125 fi
8126
8127
8128 CFLAGS="$xorg_testset_save_CFLAGS"
8129
8130 eval supported=\$$cacheid
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8132 $as_echo "$supported" >&6; }
8133 if test "$supported" = "yes" ; then
8134 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8135 found="yes"
8136 fi
8137 fi
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153 xorg_testset_save_CFLAGS="$CFLAGS"
8154
8155 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8156 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8158 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8159 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8160 $as_echo_n "(cached) " >&6
8161 else
8162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8163 /* end confdefs.h. */
8164 int i;
8165 _ACEOF
8166 if ac_fn_c_try_compile "$LINENO"; then :
8167 xorg_cv_cc_flag_unknown_warning_option=yes
8168 else
8169 xorg_cv_cc_flag_unknown_warning_option=no
8170 fi
8171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8172 fi
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8174 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8175 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8176 CFLAGS="$xorg_testset_save_CFLAGS"
8177 fi
8178
8179 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8181 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8182 fi
8183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8185 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8186 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8187 $as_echo_n "(cached) " >&6
8188 else
8189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8190 /* end confdefs.h. */
8191 int i;
8192 _ACEOF
8193 if ac_fn_c_try_compile "$LINENO"; then :
8194 xorg_cv_cc_flag_unused_command_line_argument=yes
8195 else
8196 xorg_cv_cc_flag_unused_command_line_argument=no
8197 fi
8198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8199 fi
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8201 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8202 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8203 CFLAGS="$xorg_testset_save_CFLAGS"
8204 fi
8205
8206 found="no"
8207
8208 if test $found = "no" ; then
8209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8211 fi
8212
8213 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8215 fi
8216
8217 CFLAGS="$CFLAGS -Wnonnull"
8218
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8220 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8221 cacheid=xorg_cv_cc_flag__Wnonnull
8222 if eval \${$cacheid+:} false; then :
8223 $as_echo_n "(cached) " >&6
8224 else
8225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8226 /* end confdefs.h. */
8227 int i;
8228 int
8229 main ()
8230 {
8231
8232 ;
8233 return 0;
8234 }
8235 _ACEOF
8236 if ac_fn_c_try_link "$LINENO"; then :
8237 eval $cacheid=yes
8238 else
8239 eval $cacheid=no
8240 fi
8241 rm -f core conftest.err conftest.$ac_objext \
8242 conftest$ac_exeext conftest.$ac_ext
8243 fi
8244
8245
8246 CFLAGS="$xorg_testset_save_CFLAGS"
8247
8248 eval supported=\$$cacheid
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8250 $as_echo "$supported" >&6; }
8251 if test "$supported" = "yes" ; then
8252 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8253 found="yes"
8254 fi
8255 fi
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271 xorg_testset_save_CFLAGS="$CFLAGS"
8272
8273 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8274 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8276 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8277 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8278 $as_echo_n "(cached) " >&6
8279 else
8280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8281 /* end confdefs.h. */
8282 int i;
8283 _ACEOF
8284 if ac_fn_c_try_compile "$LINENO"; then :
8285 xorg_cv_cc_flag_unknown_warning_option=yes
8286 else
8287 xorg_cv_cc_flag_unknown_warning_option=no
8288 fi
8289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8290 fi
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8292 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8293 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8294 CFLAGS="$xorg_testset_save_CFLAGS"
8295 fi
8296
8297 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8300 fi
8301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8303 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8304 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8305 $as_echo_n "(cached) " >&6
8306 else
8307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8308 /* end confdefs.h. */
8309 int i;
8310 _ACEOF
8311 if ac_fn_c_try_compile "$LINENO"; then :
8312 xorg_cv_cc_flag_unused_command_line_argument=yes
8313 else
8314 xorg_cv_cc_flag_unused_command_line_argument=no
8315 fi
8316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8317 fi
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8319 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8320 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8321 CFLAGS="$xorg_testset_save_CFLAGS"
8322 fi
8323
8324 found="no"
8325
8326 if test $found = "no" ; then
8327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8328 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8329 fi
8330
8331 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8333 fi
8334
8335 CFLAGS="$CFLAGS -Winit-self"
8336
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8338 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8339 cacheid=xorg_cv_cc_flag__Winit_self
8340 if eval \${$cacheid+:} false; then :
8341 $as_echo_n "(cached) " >&6
8342 else
8343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8344 /* end confdefs.h. */
8345 int i;
8346 int
8347 main ()
8348 {
8349
8350 ;
8351 return 0;
8352 }
8353 _ACEOF
8354 if ac_fn_c_try_link "$LINENO"; then :
8355 eval $cacheid=yes
8356 else
8357 eval $cacheid=no
8358 fi
8359 rm -f core conftest.err conftest.$ac_objext \
8360 conftest$ac_exeext conftest.$ac_ext
8361 fi
8362
8363
8364 CFLAGS="$xorg_testset_save_CFLAGS"
8365
8366 eval supported=\$$cacheid
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8368 $as_echo "$supported" >&6; }
8369 if test "$supported" = "yes" ; then
8370 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8371 found="yes"
8372 fi
8373 fi
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389 xorg_testset_save_CFLAGS="$CFLAGS"
8390
8391 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8392 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8394 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8395 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8396 $as_echo_n "(cached) " >&6
8397 else
8398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8399 /* end confdefs.h. */
8400 int i;
8401 _ACEOF
8402 if ac_fn_c_try_compile "$LINENO"; then :
8403 xorg_cv_cc_flag_unknown_warning_option=yes
8404 else
8405 xorg_cv_cc_flag_unknown_warning_option=no
8406 fi
8407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8408 fi
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8410 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8411 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8412 CFLAGS="$xorg_testset_save_CFLAGS"
8413 fi
8414
8415 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8417 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8418 fi
8419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8421 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8422 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8423 $as_echo_n "(cached) " >&6
8424 else
8425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8426 /* end confdefs.h. */
8427 int i;
8428 _ACEOF
8429 if ac_fn_c_try_compile "$LINENO"; then :
8430 xorg_cv_cc_flag_unused_command_line_argument=yes
8431 else
8432 xorg_cv_cc_flag_unused_command_line_argument=no
8433 fi
8434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8435 fi
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8437 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8438 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8439 CFLAGS="$xorg_testset_save_CFLAGS"
8440 fi
8441
8442 found="no"
8443
8444 if test $found = "no" ; then
8445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8447 fi
8448
8449 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8451 fi
8452
8453 CFLAGS="$CFLAGS -Wmain"
8454
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8456 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8457 cacheid=xorg_cv_cc_flag__Wmain
8458 if eval \${$cacheid+:} false; then :
8459 $as_echo_n "(cached) " >&6
8460 else
8461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8462 /* end confdefs.h. */
8463 int i;
8464 int
8465 main ()
8466 {
8467
8468 ;
8469 return 0;
8470 }
8471 _ACEOF
8472 if ac_fn_c_try_link "$LINENO"; then :
8473 eval $cacheid=yes
8474 else
8475 eval $cacheid=no
8476 fi
8477 rm -f core conftest.err conftest.$ac_objext \
8478 conftest$ac_exeext conftest.$ac_ext
8479 fi
8480
8481
8482 CFLAGS="$xorg_testset_save_CFLAGS"
8483
8484 eval supported=\$$cacheid
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8486 $as_echo "$supported" >&6; }
8487 if test "$supported" = "yes" ; then
8488 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8489 found="yes"
8490 fi
8491 fi
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507 xorg_testset_save_CFLAGS="$CFLAGS"
8508
8509 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8510 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8512 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8513 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8514 $as_echo_n "(cached) " >&6
8515 else
8516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8517 /* end confdefs.h. */
8518 int i;
8519 _ACEOF
8520 if ac_fn_c_try_compile "$LINENO"; then :
8521 xorg_cv_cc_flag_unknown_warning_option=yes
8522 else
8523 xorg_cv_cc_flag_unknown_warning_option=no
8524 fi
8525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8526 fi
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8528 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8529 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8530 CFLAGS="$xorg_testset_save_CFLAGS"
8531 fi
8532
8533 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8535 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8536 fi
8537 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8539 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8540 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8541 $as_echo_n "(cached) " >&6
8542 else
8543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8544 /* end confdefs.h. */
8545 int i;
8546 _ACEOF
8547 if ac_fn_c_try_compile "$LINENO"; then :
8548 xorg_cv_cc_flag_unused_command_line_argument=yes
8549 else
8550 xorg_cv_cc_flag_unused_command_line_argument=no
8551 fi
8552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8553 fi
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8555 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8556 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8557 CFLAGS="$xorg_testset_save_CFLAGS"
8558 fi
8559
8560 found="no"
8561
8562 if test $found = "no" ; then
8563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8565 fi
8566
8567 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8569 fi
8570
8571 CFLAGS="$CFLAGS -Wmissing-braces"
8572
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8574 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8575 cacheid=xorg_cv_cc_flag__Wmissing_braces
8576 if eval \${$cacheid+:} false; then :
8577 $as_echo_n "(cached) " >&6
8578 else
8579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8580 /* end confdefs.h. */
8581 int i;
8582 int
8583 main ()
8584 {
8585
8586 ;
8587 return 0;
8588 }
8589 _ACEOF
8590 if ac_fn_c_try_link "$LINENO"; then :
8591 eval $cacheid=yes
8592 else
8593 eval $cacheid=no
8594 fi
8595 rm -f core conftest.err conftest.$ac_objext \
8596 conftest$ac_exeext conftest.$ac_ext
8597 fi
8598
8599
8600 CFLAGS="$xorg_testset_save_CFLAGS"
8601
8602 eval supported=\$$cacheid
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8604 $as_echo "$supported" >&6; }
8605 if test "$supported" = "yes" ; then
8606 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8607 found="yes"
8608 fi
8609 fi
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625 xorg_testset_save_CFLAGS="$CFLAGS"
8626
8627 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8630 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8631 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8632 $as_echo_n "(cached) " >&6
8633 else
8634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8635 /* end confdefs.h. */
8636 int i;
8637 _ACEOF
8638 if ac_fn_c_try_compile "$LINENO"; then :
8639 xorg_cv_cc_flag_unknown_warning_option=yes
8640 else
8641 xorg_cv_cc_flag_unknown_warning_option=no
8642 fi
8643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8644 fi
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8646 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8647 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8648 CFLAGS="$xorg_testset_save_CFLAGS"
8649 fi
8650
8651 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8653 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8654 fi
8655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8657 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8658 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8659 $as_echo_n "(cached) " >&6
8660 else
8661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8662 /* end confdefs.h. */
8663 int i;
8664 _ACEOF
8665 if ac_fn_c_try_compile "$LINENO"; then :
8666 xorg_cv_cc_flag_unused_command_line_argument=yes
8667 else
8668 xorg_cv_cc_flag_unused_command_line_argument=no
8669 fi
8670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8671 fi
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8673 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8674 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8675 CFLAGS="$xorg_testset_save_CFLAGS"
8676 fi
8677
8678 found="no"
8679
8680 if test $found = "no" ; then
8681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8682 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8683 fi
8684
8685 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8687 fi
8688
8689 CFLAGS="$CFLAGS -Wsequence-point"
8690
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8692 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
8693 cacheid=xorg_cv_cc_flag__Wsequence_point
8694 if eval \${$cacheid+:} false; then :
8695 $as_echo_n "(cached) " >&6
8696 else
8697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8698 /* end confdefs.h. */
8699 int i;
8700 int
8701 main ()
8702 {
8703
8704 ;
8705 return 0;
8706 }
8707 _ACEOF
8708 if ac_fn_c_try_link "$LINENO"; then :
8709 eval $cacheid=yes
8710 else
8711 eval $cacheid=no
8712 fi
8713 rm -f core conftest.err conftest.$ac_objext \
8714 conftest$ac_exeext conftest.$ac_ext
8715 fi
8716
8717
8718 CFLAGS="$xorg_testset_save_CFLAGS"
8719
8720 eval supported=\$$cacheid
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8722 $as_echo "$supported" >&6; }
8723 if test "$supported" = "yes" ; then
8724 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
8725 found="yes"
8726 fi
8727 fi
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743 xorg_testset_save_CFLAGS="$CFLAGS"
8744
8745 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8746 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8748 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8749 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8750 $as_echo_n "(cached) " >&6
8751 else
8752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8753 /* end confdefs.h. */
8754 int i;
8755 _ACEOF
8756 if ac_fn_c_try_compile "$LINENO"; then :
8757 xorg_cv_cc_flag_unknown_warning_option=yes
8758 else
8759 xorg_cv_cc_flag_unknown_warning_option=no
8760 fi
8761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8762 fi
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8764 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8765 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8766 CFLAGS="$xorg_testset_save_CFLAGS"
8767 fi
8768
8769 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8771 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8772 fi
8773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8775 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8776 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8777 $as_echo_n "(cached) " >&6
8778 else
8779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8780 /* end confdefs.h. */
8781 int i;
8782 _ACEOF
8783 if ac_fn_c_try_compile "$LINENO"; then :
8784 xorg_cv_cc_flag_unused_command_line_argument=yes
8785 else
8786 xorg_cv_cc_flag_unused_command_line_argument=no
8787 fi
8788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8789 fi
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8791 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8792 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8793 CFLAGS="$xorg_testset_save_CFLAGS"
8794 fi
8795
8796 found="no"
8797
8798 if test $found = "no" ; then
8799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8800 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8801 fi
8802
8803 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8805 fi
8806
8807 CFLAGS="$CFLAGS -Wreturn-type"
8808
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
8810 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
8811 cacheid=xorg_cv_cc_flag__Wreturn_type
8812 if eval \${$cacheid+:} false; then :
8813 $as_echo_n "(cached) " >&6
8814 else
8815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8816 /* end confdefs.h. */
8817 int i;
8818 int
8819 main ()
8820 {
8821
8822 ;
8823 return 0;
8824 }
8825 _ACEOF
8826 if ac_fn_c_try_link "$LINENO"; then :
8827 eval $cacheid=yes
8828 else
8829 eval $cacheid=no
8830 fi
8831 rm -f core conftest.err conftest.$ac_objext \
8832 conftest$ac_exeext conftest.$ac_ext
8833 fi
8834
8835
8836 CFLAGS="$xorg_testset_save_CFLAGS"
8837
8838 eval supported=\$$cacheid
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8840 $as_echo "$supported" >&6; }
8841 if test "$supported" = "yes" ; then
8842 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
8843 found="yes"
8844 fi
8845 fi
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861 xorg_testset_save_CFLAGS="$CFLAGS"
8862
8863 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8864 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8866 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8867 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8868 $as_echo_n "(cached) " >&6
8869 else
8870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8871 /* end confdefs.h. */
8872 int i;
8873 _ACEOF
8874 if ac_fn_c_try_compile "$LINENO"; then :
8875 xorg_cv_cc_flag_unknown_warning_option=yes
8876 else
8877 xorg_cv_cc_flag_unknown_warning_option=no
8878 fi
8879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8880 fi
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8882 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8883 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8884 CFLAGS="$xorg_testset_save_CFLAGS"
8885 fi
8886
8887 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8889 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8890 fi
8891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8893 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8894 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8895 $as_echo_n "(cached) " >&6
8896 else
8897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8898 /* end confdefs.h. */
8899 int i;
8900 _ACEOF
8901 if ac_fn_c_try_compile "$LINENO"; then :
8902 xorg_cv_cc_flag_unused_command_line_argument=yes
8903 else
8904 xorg_cv_cc_flag_unused_command_line_argument=no
8905 fi
8906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8907 fi
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8909 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8910 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8911 CFLAGS="$xorg_testset_save_CFLAGS"
8912 fi
8913
8914 found="no"
8915
8916 if test $found = "no" ; then
8917 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8918 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8919 fi
8920
8921 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8922 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8923 fi
8924
8925 CFLAGS="$CFLAGS -Wtrigraphs"
8926
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
8928 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
8929 cacheid=xorg_cv_cc_flag__Wtrigraphs
8930 if eval \${$cacheid+:} false; then :
8931 $as_echo_n "(cached) " >&6
8932 else
8933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8934 /* end confdefs.h. */
8935 int i;
8936 int
8937 main ()
8938 {
8939
8940 ;
8941 return 0;
8942 }
8943 _ACEOF
8944 if ac_fn_c_try_link "$LINENO"; then :
8945 eval $cacheid=yes
8946 else
8947 eval $cacheid=no
8948 fi
8949 rm -f core conftest.err conftest.$ac_objext \
8950 conftest$ac_exeext conftest.$ac_ext
8951 fi
8952
8953
8954 CFLAGS="$xorg_testset_save_CFLAGS"
8955
8956 eval supported=\$$cacheid
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8958 $as_echo "$supported" >&6; }
8959 if test "$supported" = "yes" ; then
8960 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
8961 found="yes"
8962 fi
8963 fi
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979 xorg_testset_save_CFLAGS="$CFLAGS"
8980
8981 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8984 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8985 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8986 $as_echo_n "(cached) " >&6
8987 else
8988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8989 /* end confdefs.h. */
8990 int i;
8991 _ACEOF
8992 if ac_fn_c_try_compile "$LINENO"; then :
8993 xorg_cv_cc_flag_unknown_warning_option=yes
8994 else
8995 xorg_cv_cc_flag_unknown_warning_option=no
8996 fi
8997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8998 fi
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9000 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9001 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9002 CFLAGS="$xorg_testset_save_CFLAGS"
9003 fi
9004
9005 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9007 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9008 fi
9009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9011 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9012 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9013 $as_echo_n "(cached) " >&6
9014 else
9015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9016 /* end confdefs.h. */
9017 int i;
9018 _ACEOF
9019 if ac_fn_c_try_compile "$LINENO"; then :
9020 xorg_cv_cc_flag_unused_command_line_argument=yes
9021 else
9022 xorg_cv_cc_flag_unused_command_line_argument=no
9023 fi
9024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9025 fi
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9027 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9028 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9029 CFLAGS="$xorg_testset_save_CFLAGS"
9030 fi
9031
9032 found="no"
9033
9034 if test $found = "no" ; then
9035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9036 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9037 fi
9038
9039 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9041 fi
9042
9043 CFLAGS="$CFLAGS -Warray-bounds"
9044
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9046 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9047 cacheid=xorg_cv_cc_flag__Warray_bounds
9048 if eval \${$cacheid+:} false; then :
9049 $as_echo_n "(cached) " >&6
9050 else
9051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9052 /* end confdefs.h. */
9053 int i;
9054 int
9055 main ()
9056 {
9057
9058 ;
9059 return 0;
9060 }
9061 _ACEOF
9062 if ac_fn_c_try_link "$LINENO"; then :
9063 eval $cacheid=yes
9064 else
9065 eval $cacheid=no
9066 fi
9067 rm -f core conftest.err conftest.$ac_objext \
9068 conftest$ac_exeext conftest.$ac_ext
9069 fi
9070
9071
9072 CFLAGS="$xorg_testset_save_CFLAGS"
9073
9074 eval supported=\$$cacheid
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9076 $as_echo "$supported" >&6; }
9077 if test "$supported" = "yes" ; then
9078 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9079 found="yes"
9080 fi
9081 fi
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097 xorg_testset_save_CFLAGS="$CFLAGS"
9098
9099 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9100 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9102 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9103 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9104 $as_echo_n "(cached) " >&6
9105 else
9106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9107 /* end confdefs.h. */
9108 int i;
9109 _ACEOF
9110 if ac_fn_c_try_compile "$LINENO"; then :
9111 xorg_cv_cc_flag_unknown_warning_option=yes
9112 else
9113 xorg_cv_cc_flag_unknown_warning_option=no
9114 fi
9115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9116 fi
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9118 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9119 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9120 CFLAGS="$xorg_testset_save_CFLAGS"
9121 fi
9122
9123 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9125 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9126 fi
9127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9129 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9130 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9131 $as_echo_n "(cached) " >&6
9132 else
9133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9134 /* end confdefs.h. */
9135 int i;
9136 _ACEOF
9137 if ac_fn_c_try_compile "$LINENO"; then :
9138 xorg_cv_cc_flag_unused_command_line_argument=yes
9139 else
9140 xorg_cv_cc_flag_unused_command_line_argument=no
9141 fi
9142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9143 fi
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9145 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9146 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9147 CFLAGS="$xorg_testset_save_CFLAGS"
9148 fi
9149
9150 found="no"
9151
9152 if test $found = "no" ; then
9153 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9154 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9155 fi
9156
9157 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9159 fi
9160
9161 CFLAGS="$CFLAGS -Wwrite-strings"
9162
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9164 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9165 cacheid=xorg_cv_cc_flag__Wwrite_strings
9166 if eval \${$cacheid+:} false; then :
9167 $as_echo_n "(cached) " >&6
9168 else
9169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9170 /* end confdefs.h. */
9171 int i;
9172 int
9173 main ()
9174 {
9175
9176 ;
9177 return 0;
9178 }
9179 _ACEOF
9180 if ac_fn_c_try_link "$LINENO"; then :
9181 eval $cacheid=yes
9182 else
9183 eval $cacheid=no
9184 fi
9185 rm -f core conftest.err conftest.$ac_objext \
9186 conftest$ac_exeext conftest.$ac_ext
9187 fi
9188
9189
9190 CFLAGS="$xorg_testset_save_CFLAGS"
9191
9192 eval supported=\$$cacheid
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9194 $as_echo "$supported" >&6; }
9195 if test "$supported" = "yes" ; then
9196 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9197 found="yes"
9198 fi
9199 fi
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215 xorg_testset_save_CFLAGS="$CFLAGS"
9216
9217 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9220 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9221 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9222 $as_echo_n "(cached) " >&6
9223 else
9224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225 /* end confdefs.h. */
9226 int i;
9227 _ACEOF
9228 if ac_fn_c_try_compile "$LINENO"; then :
9229 xorg_cv_cc_flag_unknown_warning_option=yes
9230 else
9231 xorg_cv_cc_flag_unknown_warning_option=no
9232 fi
9233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9234 fi
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9236 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9237 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9238 CFLAGS="$xorg_testset_save_CFLAGS"
9239 fi
9240
9241 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9243 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9244 fi
9245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9247 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9248 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9249 $as_echo_n "(cached) " >&6
9250 else
9251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9252 /* end confdefs.h. */
9253 int i;
9254 _ACEOF
9255 if ac_fn_c_try_compile "$LINENO"; then :
9256 xorg_cv_cc_flag_unused_command_line_argument=yes
9257 else
9258 xorg_cv_cc_flag_unused_command_line_argument=no
9259 fi
9260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9261 fi
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9263 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9264 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9265 CFLAGS="$xorg_testset_save_CFLAGS"
9266 fi
9267
9268 found="no"
9269
9270 if test $found = "no" ; then
9271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9272 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9273 fi
9274
9275 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9277 fi
9278
9279 CFLAGS="$CFLAGS -Waddress"
9280
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9282 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9283 cacheid=xorg_cv_cc_flag__Waddress
9284 if eval \${$cacheid+:} false; then :
9285 $as_echo_n "(cached) " >&6
9286 else
9287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9288 /* end confdefs.h. */
9289 int i;
9290 int
9291 main ()
9292 {
9293
9294 ;
9295 return 0;
9296 }
9297 _ACEOF
9298 if ac_fn_c_try_link "$LINENO"; then :
9299 eval $cacheid=yes
9300 else
9301 eval $cacheid=no
9302 fi
9303 rm -f core conftest.err conftest.$ac_objext \
9304 conftest$ac_exeext conftest.$ac_ext
9305 fi
9306
9307
9308 CFLAGS="$xorg_testset_save_CFLAGS"
9309
9310 eval supported=\$$cacheid
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9312 $as_echo "$supported" >&6; }
9313 if test "$supported" = "yes" ; then
9314 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9315 found="yes"
9316 fi
9317 fi
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333 xorg_testset_save_CFLAGS="$CFLAGS"
9334
9335 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9336 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9338 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9339 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9340 $as_echo_n "(cached) " >&6
9341 else
9342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9343 /* end confdefs.h. */
9344 int i;
9345 _ACEOF
9346 if ac_fn_c_try_compile "$LINENO"; then :
9347 xorg_cv_cc_flag_unknown_warning_option=yes
9348 else
9349 xorg_cv_cc_flag_unknown_warning_option=no
9350 fi
9351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9352 fi
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9354 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9355 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9356 CFLAGS="$xorg_testset_save_CFLAGS"
9357 fi
9358
9359 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9361 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9362 fi
9363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9365 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9366 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9367 $as_echo_n "(cached) " >&6
9368 else
9369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9370 /* end confdefs.h. */
9371 int i;
9372 _ACEOF
9373 if ac_fn_c_try_compile "$LINENO"; then :
9374 xorg_cv_cc_flag_unused_command_line_argument=yes
9375 else
9376 xorg_cv_cc_flag_unused_command_line_argument=no
9377 fi
9378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9379 fi
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9381 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9382 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9383 CFLAGS="$xorg_testset_save_CFLAGS"
9384 fi
9385
9386 found="no"
9387
9388 if test $found = "no" ; then
9389 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9390 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9391 fi
9392
9393 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9395 fi
9396
9397 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9398
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9400 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9401 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9402 if eval \${$cacheid+:} false; then :
9403 $as_echo_n "(cached) " >&6
9404 else
9405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9406 /* end confdefs.h. */
9407 int i;
9408 int
9409 main ()
9410 {
9411
9412 ;
9413 return 0;
9414 }
9415 _ACEOF
9416 if ac_fn_c_try_link "$LINENO"; then :
9417 eval $cacheid=yes
9418 else
9419 eval $cacheid=no
9420 fi
9421 rm -f core conftest.err conftest.$ac_objext \
9422 conftest$ac_exeext conftest.$ac_ext
9423 fi
9424
9425
9426 CFLAGS="$xorg_testset_save_CFLAGS"
9427
9428 eval supported=\$$cacheid
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9430 $as_echo "$supported" >&6; }
9431 if test "$supported" = "yes" ; then
9432 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9433 found="yes"
9434 fi
9435 fi
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451 xorg_testset_save_CFLAGS="$CFLAGS"
9452
9453 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9454 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9456 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9457 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9458 $as_echo_n "(cached) " >&6
9459 else
9460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9461 /* end confdefs.h. */
9462 int i;
9463 _ACEOF
9464 if ac_fn_c_try_compile "$LINENO"; then :
9465 xorg_cv_cc_flag_unknown_warning_option=yes
9466 else
9467 xorg_cv_cc_flag_unknown_warning_option=no
9468 fi
9469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9470 fi
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9472 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9473 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9474 CFLAGS="$xorg_testset_save_CFLAGS"
9475 fi
9476
9477 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9478 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9479 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9480 fi
9481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9483 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9484 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9485 $as_echo_n "(cached) " >&6
9486 else
9487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9488 /* end confdefs.h. */
9489 int i;
9490 _ACEOF
9491 if ac_fn_c_try_compile "$LINENO"; then :
9492 xorg_cv_cc_flag_unused_command_line_argument=yes
9493 else
9494 xorg_cv_cc_flag_unused_command_line_argument=no
9495 fi
9496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9497 fi
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9499 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9500 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9501 CFLAGS="$xorg_testset_save_CFLAGS"
9502 fi
9503
9504 found="no"
9505
9506 if test $found = "no" ; then
9507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9509 fi
9510
9511 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9513 fi
9514
9515 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9516
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9518 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9519 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9520 if eval \${$cacheid+:} false; then :
9521 $as_echo_n "(cached) " >&6
9522 else
9523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9524 /* end confdefs.h. */
9525 int i;
9526 int
9527 main ()
9528 {
9529
9530 ;
9531 return 0;
9532 }
9533 _ACEOF
9534 if ac_fn_c_try_link "$LINENO"; then :
9535 eval $cacheid=yes
9536 else
9537 eval $cacheid=no
9538 fi
9539 rm -f core conftest.err conftest.$ac_objext \
9540 conftest$ac_exeext conftest.$ac_ext
9541 fi
9542
9543
9544 CFLAGS="$xorg_testset_save_CFLAGS"
9545
9546 eval supported=\$$cacheid
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9548 $as_echo "$supported" >&6; }
9549 if test "$supported" = "yes" ; then
9550 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9551 found="yes"
9552 fi
9553 fi
9554
9555
9556 fi
9557
9558
9559
9560
9561
9562
9563
9564 CWARNFLAGS="$BASE_CFLAGS"
9565 if test "x$GCC" = xyes ; then
9566 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9567 fi
9568
9569
9570
9571
9572
9573
9574
9575
9576 # Check whether --enable-strict-compilation was given.
9577 if test "${enable_strict_compilation+set}" = set; then :
9578 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9579 else
9580 STRICT_COMPILE=no
9581 fi
9582
9583
9584
9585
9586
9587
9588 STRICT_CFLAGS=""
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602 xorg_testset_save_CFLAGS="$CFLAGS"
9603
9604 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9607 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9608 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9609 $as_echo_n "(cached) " >&6
9610 else
9611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9612 /* end confdefs.h. */
9613 int i;
9614 _ACEOF
9615 if ac_fn_c_try_compile "$LINENO"; then :
9616 xorg_cv_cc_flag_unknown_warning_option=yes
9617 else
9618 xorg_cv_cc_flag_unknown_warning_option=no
9619 fi
9620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9621 fi
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9623 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9624 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9625 CFLAGS="$xorg_testset_save_CFLAGS"
9626 fi
9627
9628 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9631 fi
9632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9634 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9635 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9636 $as_echo_n "(cached) " >&6
9637 else
9638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9639 /* end confdefs.h. */
9640 int i;
9641 _ACEOF
9642 if ac_fn_c_try_compile "$LINENO"; then :
9643 xorg_cv_cc_flag_unused_command_line_argument=yes
9644 else
9645 xorg_cv_cc_flag_unused_command_line_argument=no
9646 fi
9647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9648 fi
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9650 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9651 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9652 CFLAGS="$xorg_testset_save_CFLAGS"
9653 fi
9654
9655 found="no"
9656
9657 if test $found = "no" ; then
9658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9660 fi
9661
9662 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9664 fi
9665
9666 CFLAGS="$CFLAGS -pedantic"
9667
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9669 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
9670 cacheid=xorg_cv_cc_flag__pedantic
9671 if eval \${$cacheid+:} false; then :
9672 $as_echo_n "(cached) " >&6
9673 else
9674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9675 /* end confdefs.h. */
9676 int i;
9677 int
9678 main ()
9679 {
9680
9681 ;
9682 return 0;
9683 }
9684 _ACEOF
9685 if ac_fn_c_try_link "$LINENO"; then :
9686 eval $cacheid=yes
9687 else
9688 eval $cacheid=no
9689 fi
9690 rm -f core conftest.err conftest.$ac_objext \
9691 conftest$ac_exeext conftest.$ac_ext
9692 fi
9693
9694
9695 CFLAGS="$xorg_testset_save_CFLAGS"
9696
9697 eval supported=\$$cacheid
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9699 $as_echo "$supported" >&6; }
9700 if test "$supported" = "yes" ; then
9701 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9702 found="yes"
9703 fi
9704 fi
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720 xorg_testset_save_CFLAGS="$CFLAGS"
9721
9722 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9725 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9726 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9727 $as_echo_n "(cached) " >&6
9728 else
9729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9730 /* end confdefs.h. */
9731 int i;
9732 _ACEOF
9733 if ac_fn_c_try_compile "$LINENO"; then :
9734 xorg_cv_cc_flag_unknown_warning_option=yes
9735 else
9736 xorg_cv_cc_flag_unknown_warning_option=no
9737 fi
9738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9739 fi
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9741 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9742 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9743 CFLAGS="$xorg_testset_save_CFLAGS"
9744 fi
9745
9746 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9749 fi
9750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9752 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9753 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9754 $as_echo_n "(cached) " >&6
9755 else
9756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9757 /* end confdefs.h. */
9758 int i;
9759 _ACEOF
9760 if ac_fn_c_try_compile "$LINENO"; then :
9761 xorg_cv_cc_flag_unused_command_line_argument=yes
9762 else
9763 xorg_cv_cc_flag_unused_command_line_argument=no
9764 fi
9765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9766 fi
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9768 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9769 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9770 CFLAGS="$xorg_testset_save_CFLAGS"
9771 fi
9772
9773 found="no"
9774
9775 if test $found = "no" ; then
9776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9778 fi
9779
9780 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9782 fi
9783
9784 CFLAGS="$CFLAGS -Werror"
9785
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
9787 $as_echo_n "checking if $CC supports -Werror... " >&6; }
9788 cacheid=xorg_cv_cc_flag__Werror
9789 if eval \${$cacheid+:} false; then :
9790 $as_echo_n "(cached) " >&6
9791 else
9792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9793 /* end confdefs.h. */
9794 int i;
9795 int
9796 main ()
9797 {
9798
9799 ;
9800 return 0;
9801 }
9802 _ACEOF
9803 if ac_fn_c_try_link "$LINENO"; then :
9804 eval $cacheid=yes
9805 else
9806 eval $cacheid=no
9807 fi
9808 rm -f core conftest.err conftest.$ac_objext \
9809 conftest$ac_exeext conftest.$ac_ext
9810 fi
9811
9812
9813 CFLAGS="$xorg_testset_save_CFLAGS"
9814
9815 eval supported=\$$cacheid
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9817 $as_echo "$supported" >&6; }
9818 if test "$supported" = "yes" ; then
9819 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
9820 found="yes"
9821 fi
9822 fi
9823
9824 if test $found = "no" ; then
9825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9826 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9827 fi
9828
9829 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9831 fi
9832
9833 CFLAGS="$CFLAGS -errwarn"
9834
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
9836 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
9837 cacheid=xorg_cv_cc_flag__errwarn
9838 if eval \${$cacheid+:} false; then :
9839 $as_echo_n "(cached) " >&6
9840 else
9841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9842 /* end confdefs.h. */
9843 int i;
9844 int
9845 main ()
9846 {
9847
9848 ;
9849 return 0;
9850 }
9851 _ACEOF
9852 if ac_fn_c_try_link "$LINENO"; then :
9853 eval $cacheid=yes
9854 else
9855 eval $cacheid=no
9856 fi
9857 rm -f core conftest.err conftest.$ac_objext \
9858 conftest$ac_exeext conftest.$ac_ext
9859 fi
9860
9861
9862 CFLAGS="$xorg_testset_save_CFLAGS"
9863
9864 eval supported=\$$cacheid
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9866 $as_echo "$supported" >&6; }
9867 if test "$supported" = "yes" ; then
9868 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
9869 found="yes"
9870 fi
9871 fi
9872
9873
9874
9875 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
9876 # activate it with -Werror, so we add it here explicitly.
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890 xorg_testset_save_CFLAGS="$CFLAGS"
9891
9892 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9893 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9895 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9896 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9897 $as_echo_n "(cached) " >&6
9898 else
9899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9900 /* end confdefs.h. */
9901 int i;
9902 _ACEOF
9903 if ac_fn_c_try_compile "$LINENO"; then :
9904 xorg_cv_cc_flag_unknown_warning_option=yes
9905 else
9906 xorg_cv_cc_flag_unknown_warning_option=no
9907 fi
9908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9909 fi
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9911 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9912 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9913 CFLAGS="$xorg_testset_save_CFLAGS"
9914 fi
9915
9916 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9917 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9918 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9919 fi
9920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9922 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9923 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9924 $as_echo_n "(cached) " >&6
9925 else
9926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927 /* end confdefs.h. */
9928 int i;
9929 _ACEOF
9930 if ac_fn_c_try_compile "$LINENO"; then :
9931 xorg_cv_cc_flag_unused_command_line_argument=yes
9932 else
9933 xorg_cv_cc_flag_unused_command_line_argument=no
9934 fi
9935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9936 fi
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9938 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9939 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9940 CFLAGS="$xorg_testset_save_CFLAGS"
9941 fi
9942
9943 found="no"
9944
9945 if test $found = "no" ; then
9946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9948 fi
9949
9950 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9952 fi
9953
9954 CFLAGS="$CFLAGS -Werror=attributes"
9955
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
9957 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
9958 cacheid=xorg_cv_cc_flag__Werror_attributes
9959 if eval \${$cacheid+:} false; then :
9960 $as_echo_n "(cached) " >&6
9961 else
9962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9963 /* end confdefs.h. */
9964 int i;
9965 int
9966 main ()
9967 {
9968
9969 ;
9970 return 0;
9971 }
9972 _ACEOF
9973 if ac_fn_c_try_link "$LINENO"; then :
9974 eval $cacheid=yes
9975 else
9976 eval $cacheid=no
9977 fi
9978 rm -f core conftest.err conftest.$ac_objext \
9979 conftest$ac_exeext conftest.$ac_ext
9980 fi
9981
9982
9983 CFLAGS="$xorg_testset_save_CFLAGS"
9984
9985 eval supported=\$$cacheid
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9987 $as_echo "$supported" >&6; }
9988 if test "$supported" = "yes" ; then
9989 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
9990 found="yes"
9991 fi
9992 fi
9993
9994
9995
9996 if test "x$STRICT_COMPILE" = "xyes"; then
9997 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
9998 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
9999 fi
10000
10001
10002
10003
10004
10005
10006 cat >>confdefs.h <<_ACEOF
10007 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10008 _ACEOF
10009
10010 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10011 if test "x$PVM" = "x"; then
10012 PVM="0"
10013 fi
10014
10015 cat >>confdefs.h <<_ACEOF
10016 #define PACKAGE_VERSION_MINOR $PVM
10017 _ACEOF
10018
10019 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10020 if test "x$PVP" = "x"; then
10021 PVP="0"
10022 fi
10023
10024 cat >>confdefs.h <<_ACEOF
10025 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10026 _ACEOF
10027
10028
10029
10030 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10031 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10032 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10033 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10034
10035
10036
10037
10038 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10039 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10040 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10041 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10042 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10043
10044
10045
10046
10047
10048
10049 if test x$APP_MAN_SUFFIX = x ; then
10050 APP_MAN_SUFFIX=1
10051 fi
10052 if test x$APP_MAN_DIR = x ; then
10053 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10054 fi
10055
10056 if test x$LIB_MAN_SUFFIX = x ; then
10057 LIB_MAN_SUFFIX=3
10058 fi
10059 if test x$LIB_MAN_DIR = x ; then
10060 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10061 fi
10062
10063 if test x$FILE_MAN_SUFFIX = x ; then
10064 case $host_os in
10065 solaris*) FILE_MAN_SUFFIX=4 ;;
10066 *) FILE_MAN_SUFFIX=5 ;;
10067 esac
10068 fi
10069 if test x$FILE_MAN_DIR = x ; then
10070 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10071 fi
10072
10073 if test x$MISC_MAN_SUFFIX = x ; then
10074 case $host_os in
10075 solaris*) MISC_MAN_SUFFIX=5 ;;
10076 *) MISC_MAN_SUFFIX=7 ;;
10077 esac
10078 fi
10079 if test x$MISC_MAN_DIR = x ; then
10080 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10081 fi
10082
10083 if test x$DRIVER_MAN_SUFFIX = x ; then
10084 case $host_os in
10085 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10086 *) DRIVER_MAN_SUFFIX=4 ;;
10087 esac
10088 fi
10089 if test x$DRIVER_MAN_DIR = x ; then
10090 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10091 fi
10092
10093 if test x$ADMIN_MAN_SUFFIX = x ; then
10094 case $host_os in
10095 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10096 *) ADMIN_MAN_SUFFIX=8 ;;
10097 esac
10098 fi
10099 if test x$ADMIN_MAN_DIR = x ; then
10100 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10101 fi
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117 XORG_MAN_PAGE="X Version 11"
10118
10119 MAN_SUBSTS="\
10120 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10121 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10122 -e 's|__xservername__|Xorg|g' \
10123 -e 's|__xconfigfile__|xorg.conf|g' \
10124 -e 's|__projectroot__|\$(prefix)|g' \
10125 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10126 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10127 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10128 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10129 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10130 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10131 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10132
10133
10134
10135 # Check whether --enable-silent-rules was given.
10136 if test "${enable_silent_rules+set}" = set; then :
10137 enableval=$enable_silent_rules;
10138 fi
10139
10140 case $enable_silent_rules in # (((
10141 yes) AM_DEFAULT_VERBOSITY=0;;
10142 no) AM_DEFAULT_VERBOSITY=1;;
10143 *) AM_DEFAULT_VERBOSITY=0;;
10144 esac
10145 am_make=${MAKE-make}
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10147 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10148 if ${am_cv_make_support_nested_variables+:} false; then :
10149 $as_echo_n "(cached) " >&6
10150 else
10151 if $as_echo 'TRUE=$(BAR$(V))
10152 BAR0=false
10153 BAR1=true
10154 V=1
10155 am__doit:
10156 @$(TRUE)
10157 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10158 am_cv_make_support_nested_variables=yes
10159 else
10160 am_cv_make_support_nested_variables=no
10161 fi
10162 fi
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10164 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10165 if test $am_cv_make_support_nested_variables = yes; then
10166 AM_V='$(V)'
10167 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10168 else
10169 AM_V=$AM_DEFAULT_VERBOSITY
10170 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10171 fi
10172 AM_BACKSLASH='\'
10173
10174
10175
10176 ac_aux_dir=
10177 for ac_dir in . "$srcdir"/.; do
10178 if test -f "$ac_dir/install-sh"; then
10179 ac_aux_dir=$ac_dir
10180 ac_install_sh="$ac_aux_dir/install-sh -c"
10181 break
10182 elif test -f "$ac_dir/install.sh"; then
10183 ac_aux_dir=$ac_dir
10184 ac_install_sh="$ac_aux_dir/install.sh -c"
10185 break
10186 elif test -f "$ac_dir/shtool"; then
10187 ac_aux_dir=$ac_dir
10188 ac_install_sh="$ac_aux_dir/shtool install -c"
10189 break
10190 fi
10191 done
10192 if test -z "$ac_aux_dir"; then
10193 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
10194 fi
10195
10196 # These three variables are undocumented and unsupported,
10197 # and are intended to be withdrawn in a future Autoconf release.
10198 # They can cause serious problems if a builder's source tree is in a directory
10199 # whose full name contains unusual characters.
10200 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
10201 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
10202 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
10203
10204
10205
10206 # Initialize Automake
10207 am__api_version='1.14'
10208
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
10210 $as_echo_n "checking whether build environment is sane... " >&6; }
10211 # Reject unsafe characters in $srcdir or the absolute working directory
10212 # name. Accept space and tab only in the latter.
10213 am_lf='
10214 '
10215 case `pwd` in
10216 *[\\\"\#\$\&\'\`$am_lf]*)
10217 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
10218 esac
10219 case $srcdir in
10220 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
10221 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
10222 esac
10223
10224 # Do 'set' in a subshell so we don't clobber the current shell's
10225 # arguments. Must try -L first in case configure is actually a
10226 # symlink; some systems play weird games with the mod time of symlinks
10227 # (eg FreeBSD returns the mod time of the symlink's containing
10228 # directory).
10229 if (
10230 am_has_slept=no
10231 for am_try in 1 2; do
10232 echo "timestamp, slept: $am_has_slept" > conftest.file
10233 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10234 if test "$*" = "X"; then
10235 # -L didn't work.
10236 set X `ls -t "$srcdir/configure" conftest.file`
10237 fi
10238 if test "$*" != "X $srcdir/configure conftest.file" \
10239 && test "$*" != "X conftest.file $srcdir/configure"; then
10240
10241 # If neither matched, then we have a broken ls. This can happen
10242 # if, for instance, CONFIG_SHELL is bash and it inherits a
10243 # broken ls alias from the environment. This has actually
10244 # happened. Such a system could not be considered "sane".
10245 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
10246 alias in your environment" "$LINENO" 5
10247 fi
10248 if test "$2" = conftest.file || test $am_try -eq 2; then
10249 break
10250 fi
10251 # Just in case.
10252 sleep 1
10253 am_has_slept=yes
10254 done
10255 test "$2" = conftest.file
10256 )
10257 then
10258 # Ok.
10259 :
10260 else
10261 as_fn_error $? "newly created file is older than distributed files!
10262 Check your system clock" "$LINENO" 5
10263 fi
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10265 $as_echo "yes" >&6; }
10266 # If we didn't sleep, we still need to ensure time stamps of config.status and
10267 # generated files are strictly newer.
10268 am_sleep_pid=
10269 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
10270 ( sleep 1 ) &
10271 am_sleep_pid=$!
10272 fi
10273
10274 rm -f conftest.file
10275
10276 test "$program_prefix" != NONE &&
10277 program_transform_name="s&^&$program_prefix&;$program_transform_name"
10278 # Use a double $ so make ignores it.
10279 test "$program_suffix" != NONE &&
10280 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
10281 # Double any \ or $.
10282 # By default was `s,x,x', remove it if useless.
10283 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
10284 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
10285
10286 if test x"${MISSING+set}" != xset; then
10287 case $am_aux_dir in
10288 *\ * | *\ *)
10289 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10290 *)
10291 MISSING="\${SHELL} $am_aux_dir/missing" ;;
10292 esac
10293 fi
10294 # Use eval to expand $SHELL
10295 if eval "$MISSING --is-lightweight"; then
10296 am_missing_run="$MISSING "
10297 else
10298 am_missing_run=
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
10300 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
10301 fi
10302
10303 if test x"${install_sh}" != xset; then
10304 case $am_aux_dir in
10305 *\ * | *\ *)
10306 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10307 *)
10308 install_sh="\${SHELL} $am_aux_dir/install-sh"
10309 esac
10310 fi
10311
10312 # Installed binaries are usually stripped using 'strip' when the user
10313 # run "make install-strip". However 'strip' might not be the right
10314 # tool to use in cross-compilation environments, therefore Automake
10315 # will honor the 'STRIP' environment variable to overrule this program.
10316 if test "$cross_compiling" != no; then
10317 if test -n "$ac_tool_prefix"; then
10318 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10319 set dummy ${ac_tool_prefix}strip; ac_word=$2
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10321 $as_echo_n "checking for $ac_word... " >&6; }
10322 if ${ac_cv_prog_STRIP+:} false; then :
10323 $as_echo_n "(cached) " >&6
10324 else
10325 if test -n "$STRIP"; then
10326 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10327 else
10328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10329 for as_dir in $PATH
10330 do
10331 IFS=$as_save_IFS
10332 test -z "$as_dir" && as_dir=.
10333 for ac_exec_ext in '' $ac_executable_extensions; do
10334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10335 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10337 break 2
10338 fi
10339 done
10340 done
10341 IFS=$as_save_IFS
10342
10343 fi
10344 fi
10345 STRIP=$ac_cv_prog_STRIP
10346 if test -n "$STRIP"; then
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10348 $as_echo "$STRIP" >&6; }
10349 else
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10351 $as_echo "no" >&6; }
10352 fi
10353
10354
10355 fi
10356 if test -z "$ac_cv_prog_STRIP"; then
10357 ac_ct_STRIP=$STRIP
10358 # Extract the first word of "strip", so it can be a program name with args.
10359 set dummy strip; ac_word=$2
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10361 $as_echo_n "checking for $ac_word... " >&6; }
10362 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10363 $as_echo_n "(cached) " >&6
10364 else
10365 if test -n "$ac_ct_STRIP"; then
10366 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10367 else
10368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10369 for as_dir in $PATH
10370 do
10371 IFS=$as_save_IFS
10372 test -z "$as_dir" && as_dir=.
10373 for ac_exec_ext in '' $ac_executable_extensions; do
10374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10375 ac_cv_prog_ac_ct_STRIP="strip"
10376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10377 break 2
10378 fi
10379 done
10380 done
10381 IFS=$as_save_IFS
10382
10383 fi
10384 fi
10385 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10386 if test -n "$ac_ct_STRIP"; then
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10388 $as_echo "$ac_ct_STRIP" >&6; }
10389 else
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10391 $as_echo "no" >&6; }
10392 fi
10393
10394 if test "x$ac_ct_STRIP" = x; then
10395 STRIP=":"
10396 else
10397 case $cross_compiling:$ac_tool_warned in
10398 yes:)
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10401 ac_tool_warned=yes ;;
10402 esac
10403 STRIP=$ac_ct_STRIP
10404 fi
10405 else
10406 STRIP="$ac_cv_prog_STRIP"
10407 fi
10408
10409 fi
10410 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10411
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
10413 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10414 if test -z "$MKDIR_P"; then
10415 if ${ac_cv_path_mkdir+:} false; then :
10416 $as_echo_n "(cached) " >&6
10417 else
10418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10419 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10420 do
10421 IFS=$as_save_IFS
10422 test -z "$as_dir" && as_dir=.
10423 for ac_prog in mkdir gmkdir; do
10424 for ac_exec_ext in '' $ac_executable_extensions; do
10425 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
10426 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10427 'mkdir (GNU coreutils) '* | \
10428 'mkdir (coreutils) '* | \
10429 'mkdir (fileutils) '4.1*)
10430 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10431 break 3;;
10432 esac
10433 done
10434 done
10435 done
10436 IFS=$as_save_IFS
10437
10438 fi
10439
10440 test -d ./--version && rmdir ./--version
10441 if test "${ac_cv_path_mkdir+set}" = set; then
10442 MKDIR_P="$ac_cv_path_mkdir -p"
10443 else
10444 # As a last resort, use the slow shell script. Don't cache a
10445 # value for MKDIR_P within a source directory, because that will
10446 # break other packages using the cache if that directory is
10447 # removed, or if the value is a relative name.
10448 MKDIR_P="$ac_install_sh -d"
10449 fi
10450 fi
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10452 $as_echo "$MKDIR_P" >&6; }
10453
10454 for ac_prog in gawk mawk nawk awk
10455 do
10456 # Extract the first word of "$ac_prog", so it can be a program name with args.
10457 set dummy $ac_prog; ac_word=$2
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10459 $as_echo_n "checking for $ac_word... " >&6; }
10460 if ${ac_cv_prog_AWK+:} false; then :
10461 $as_echo_n "(cached) " >&6
10462 else
10463 if test -n "$AWK"; then
10464 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10465 else
10466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10467 for as_dir in $PATH
10468 do
10469 IFS=$as_save_IFS
10470 test -z "$as_dir" && as_dir=.
10471 for ac_exec_ext in '' $ac_executable_extensions; do
10472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10473 ac_cv_prog_AWK="$ac_prog"
10474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10475 break 2
10476 fi
10477 done
10478 done
10479 IFS=$as_save_IFS
10480
10481 fi
10482 fi
10483 AWK=$ac_cv_prog_AWK
10484 if test -n "$AWK"; then
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
10486 $as_echo "$AWK" >&6; }
10487 else
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10489 $as_echo "no" >&6; }
10490 fi
10491
10492
10493 test -n "$AWK" && break
10494 done
10495
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10497 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10498 set x ${MAKE-make}
10499 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10500 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
10501 $as_echo_n "(cached) " >&6
10502 else
10503 cat >conftest.make <<\_ACEOF
10504 SHELL = /bin/sh
10505 all:
10506 @echo '@@@%%%=$(MAKE)=@@@%%%'
10507 _ACEOF
10508 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10509 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10510 *@@@%%%=?*=@@@%%%*)
10511 eval ac_cv_prog_make_${ac_make}_set=yes;;
10512 *)
10513 eval ac_cv_prog_make_${ac_make}_set=no;;
10514 esac
10515 rm -f conftest.make
10516 fi
10517 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10519 $as_echo "yes" >&6; }
10520 SET_MAKE=
10521 else
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10523 $as_echo "no" >&6; }
10524 SET_MAKE="MAKE=${MAKE-make}"
10525 fi
10526
10527 rm -rf .tst 2>/dev/null
10528 mkdir .tst 2>/dev/null
10529 if test -d .tst; then
10530 am__leading_dot=.
10531 else
10532 am__leading_dot=_
10533 fi
10534 rmdir .tst 2>/dev/null
10535
10536 DEPDIR="${am__leading_dot}deps"
10537
10538 ac_config_commands="$ac_config_commands depfiles"
10539
10540
10541 am_make=${MAKE-make}
10542 cat > confinc << 'END'
10543 am__doit:
10544 @echo this is the am__doit target
10545 .PHONY: am__doit
10546 END
10547 # If we don't find an include directive, just comment out the code.
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
10549 $as_echo_n "checking for style of include used by $am_make... " >&6; }
10550 am__include="#"
10551 am__quote=
10552 _am_result=none
10553 # First try GNU make style include.
10554 echo "include confinc" > confmf
10555 # Ignore all kinds of additional output from 'make'.
10556 case `$am_make -s -f confmf 2> /dev/null` in #(
10557 *the\ am__doit\ target*)
10558 am__include=include
10559 am__quote=
10560 _am_result=GNU
10561 ;;
10562 esac
10563 # Now try BSD make style include.
10564 if test "$am__include" = "#"; then
10565 echo '.include "confinc"' > confmf
10566 case `$am_make -s -f confmf 2> /dev/null` in #(
10567 *the\ am__doit\ target*)
10568 am__include=.include
10569 am__quote="\""
10570 _am_result=BSD
10571 ;;
10572 esac
10573 fi
10574
10575
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
10577 $as_echo "$_am_result" >&6; }
10578 rm -f confinc confmf
10579
10580 # Check whether --enable-dependency-tracking was given.
10581 if test "${enable_dependency_tracking+set}" = set; then :
10582 enableval=$enable_dependency_tracking;
10583 fi
10584
10585 if test "x$enable_dependency_tracking" != xno; then
10586 am_depcomp="$ac_aux_dir/depcomp"
10587 AMDEPBACKSLASH='\'
10588 am__nodep='_no'
10589 fi
10590 if test "x$enable_dependency_tracking" != xno; then
10591 AMDEP_TRUE=
10592 AMDEP_FALSE='#'
10593 else
10594 AMDEP_TRUE='#'
10595 AMDEP_FALSE=
10596 fi
10597
10598
10599 if test "`cd $srcdir && pwd`" != "`pwd`"; then
10600 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
10601 # is not polluted with repeated "-I."
10602 am__isrc=' -I$(srcdir)'
10603 # test to see if srcdir already configured
10604 if test -f $srcdir/config.status; then
10605 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
10606 fi
10607 fi
10608
10609 # test whether we have cygpath
10610 if test -z "$CYGPATH_W"; then
10611 if (cygpath --version) >/dev/null 2>/dev/null; then
10612 CYGPATH_W='cygpath -w'
10613 else
10614 CYGPATH_W=echo
10615 fi
10616 fi
10617
10618
10619 # Define the identity of the package.
10620 PACKAGE='xf86-video-mga'
10621 VERSION='1.6.4'
10622
10623
10624 cat >>confdefs.h <<_ACEOF
10625 #define PACKAGE "$PACKAGE"
10626 _ACEOF
10627
10628
10629 cat >>confdefs.h <<_ACEOF
10630 #define VERSION "$VERSION"
10631 _ACEOF
10632
10633 # Some tools Automake needs.
10634
10635 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
10636
10637
10638 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
10639
10640
10641 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
10642
10643
10644 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
10645
10646
10647 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
10648
10649 # For better backward compatibility. To be removed once Automake 1.9.x
10650 # dies out for good. For more background, see:
10651 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
10652 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
10653 mkdir_p='$(MKDIR_P)'
10654
10655 # We need awk for the "check" target. The system "awk" is bad on
10656 # some platforms.
10657 # Always define AMTAR for backward compatibility. Yes, it's still used
10658 # in the wild :-( We should find a proper way to deprecate it ...
10659 AMTAR='$${TAR-tar}'
10660
10661
10662 # We'll loop over all known methods to create a tar archive until one works.
10663 _am_tools='gnutar pax cpio none'
10664
10665 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
10666
10667
10668
10669
10670
10671 depcc="$CC" am_compiler_list=
10672
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10674 $as_echo_n "checking dependency style of $depcc... " >&6; }
10675 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
10676 $as_echo_n "(cached) " >&6
10677 else
10678 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10679 # We make a subdir and do the tests there. Otherwise we can end up
10680 # making bogus files that we don't know about and never remove. For
10681 # instance it was reported that on HP-UX the gcc test will end up
10682 # making a dummy file named 'D' -- because '-MD' means "put the output
10683 # in D".
10684 rm -rf conftest.dir
10685 mkdir conftest.dir
10686 # Copy depcomp to subdir because otherwise we won't find it if we're
10687 # using a relative directory.
10688 cp "$am_depcomp" conftest.dir
10689 cd conftest.dir
10690 # We will build objects and dependencies in a subdirectory because
10691 # it helps to detect inapplicable dependency modes. For instance
10692 # both Tru64's cc and ICC support -MD to output dependencies as a
10693 # side effect of compilation, but ICC will put the dependencies in
10694 # the current directory while Tru64 will put them in the object
10695 # directory.
10696 mkdir sub
10697
10698 am_cv_CC_dependencies_compiler_type=none
10699 if test "$am_compiler_list" = ""; then
10700 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10701 fi
10702 am__universal=false
10703 case " $depcc " in #(
10704 *\ -arch\ *\ -arch\ *) am__universal=true ;;
10705 esac
10706
10707 for depmode in $am_compiler_list; do
10708 # Setup a source with many dependencies, because some compilers
10709 # like to wrap large dependency lists on column 80 (with \), and
10710 # we should not choose a depcomp mode which is confused by this.
10711 #
10712 # We need to recreate these files for each test, as the compiler may
10713 # overwrite some of them when testing with obscure command lines.
10714 # This happens at least with the AIX C compiler.
10715 : > sub/conftest.c
10716 for i in 1 2 3 4 5 6; do
10717 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10718 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
10719 # Solaris 10 /bin/sh.
10720 echo '/* dummy */' > sub/conftst$i.h
10721 done
10722 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10723
10724 # We check with '-c' and '-o' for the sake of the "dashmstdout"
10725 # mode. It turns out that the SunPro C++ compiler does not properly
10726 # handle '-M -o', and we need to detect this. Also, some Intel
10727 # versions had trouble with output in subdirs.
10728 am__obj=sub/conftest.${OBJEXT-o}
10729 am__minus_obj="-o $am__obj"
10730 case $depmode in
10731 gcc)
10732 # This depmode causes a compiler race in universal mode.
10733 test "$am__universal" = false || continue
10734 ;;
10735 nosideeffect)
10736 # After this tag, mechanisms are not by side-effect, so they'll
10737 # only be used when explicitly requested.
10738 if test "x$enable_dependency_tracking" = xyes; then
10739 continue
10740 else
10741 break
10742 fi
10743 ;;
10744 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
10745 # This compiler won't grok '-c -o', but also, the minuso test has
10746 # not run yet. These depmodes are late enough in the game, and
10747 # so weak that their functioning should not be impacted.
10748 am__obj=conftest.${OBJEXT-o}
10749 am__minus_obj=
10750 ;;
10751 none) break ;;
10752 esac
10753 if depmode=$depmode \
10754 source=sub/conftest.c object=$am__obj \
10755 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10756 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10757 >/dev/null 2>conftest.err &&
10758 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10759 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10760 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10761 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10762 # icc doesn't choke on unknown options, it will just issue warnings
10763 # or remarks (even with -Werror). So we grep stderr for any message
10764 # that says an option was ignored or not supported.
10765 # When given -MP, icc 7.0 and 7.1 complain thusly:
10766 # icc: Command line warning: ignoring option '-M'; no argument required
10767 # The diagnosis changed in icc 8.0:
10768 # icc: Command line remark: option '-MP' not supported
10769 if (grep 'ignoring option' conftest.err ||
10770 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10771 am_cv_CC_dependencies_compiler_type=$depmode
10772 break
10773 fi
10774 fi
10775 done
10776
10777 cd ..
10778 rm -rf conftest.dir
10779 else
10780 am_cv_CC_dependencies_compiler_type=none
10781 fi
10782
10783 fi
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
10785 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
10786 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
10787
10788 if
10789 test "x$enable_dependency_tracking" != xno \
10790 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
10791 am__fastdepCC_TRUE=
10792 am__fastdepCC_FALSE='#'
10793 else
10794 am__fastdepCC_TRUE='#'
10795 am__fastdepCC_FALSE=
10796 fi
10797
10798
10799
10800 # POSIX will say in a future version that running "rm -f" with no argument
10801 # is OK; and we want to be able to make that assumption in our Makefile
10802 # recipes. So use an aggressive probe to check that the usage we want is
10803 # actually supported "in the wild" to an acceptable degree.
10804 # See automake bug#10828.
10805 # To make any issue more visible, cause the running configure to be aborted
10806 # by default if the 'rm' program in use doesn't match our expectations; the
10807 # user can still override this though.
10808 if rm -f && rm -fr && rm -rf; then : OK; else
10809 cat >&2 <<'END'
10810 Oops!
10811
10812 Your 'rm' program seems unable to run without file operands specified
10813 on the command line, even when the '-f' option is present. This is contrary
10814 to the behaviour of most rm programs out there, and not conforming with
10815 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
10816
10817 Please tell bug-automake@gnu.org about your system, including the value
10818 of your $PATH and any error possibly output before this message. This
10819 can help us improve future automake versions.
10820
10821 END
10822 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
10823 echo 'Configuration will proceed anyway, since you have set the' >&2
10824 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
10825 echo >&2
10826 else
10827 cat >&2 <<'END'
10828 Aborting the configuration process, to ensure you take notice of the issue.
10829
10830 You can download and install GNU coreutils to get an 'rm' implementation
10831 that behaves properly: <http://www.gnu.org/software/coreutils/>.
10832
10833 If you want to complete the configuration process using your problematic
10834 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
10835 to "yes", and re-run configure.
10836
10837 END
10838 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
10839 fi
10840 fi
10841
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10843 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10844 # Check whether --enable-maintainer-mode was given.
10845 if test "${enable_maintainer_mode+set}" = set; then :
10846 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10847 else
10848 USE_MAINTAINER_MODE=no
10849 fi
10850
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10852 $as_echo "$USE_MAINTAINER_MODE" >&6; }
10853 if test $USE_MAINTAINER_MODE = yes; then
10854 MAINTAINER_MODE_TRUE=
10855 MAINTAINER_MODE_FALSE='#'
10856 else
10857 MAINTAINER_MODE_TRUE='#'
10858 MAINTAINER_MODE_FALSE=
10859 fi
10860
10861 MAINT=$MAINTAINER_MODE_TRUE
10862
10863
10864
10865 # Initialize libtool
10866 # Check whether --enable-static was given.
10867 if test "${enable_static+set}" = set; then :
10868 enableval=$enable_static; p=${PACKAGE-default}
10869 case $enableval in
10870 yes) enable_static=yes ;;
10871 no) enable_static=no ;;
10872 *)
10873 enable_static=no
10874 # Look at the argument we got. We use all the common list separators.
10875 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10876 for pkg in $enableval; do
10877 IFS=$lt_save_ifs
10878 if test "X$pkg" = "X$p"; then
10879 enable_static=yes
10880 fi
10881 done
10882 IFS=$lt_save_ifs
10883 ;;
10884 esac
10885 else
10886 enable_static=no
10887 fi
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897 case `pwd` in
10898 *\ * | *\ *)
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10900 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10901 esac
10902
10903
10904
10905 macro_version='2.4.4'
10906 macro_revision='2.4.4'
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920 ltmain=$ac_aux_dir/ltmain.sh
10921
10922 # Backslashify metacharacters that are still active within
10923 # double-quoted strings.
10924 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10925
10926 # Same as above, but do not quote variable references.
10927 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10928
10929 # Sed substitution to delay expansion of an escaped shell variable in a
10930 # double_quote_subst'ed string.
10931 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10932
10933 # Sed substitution to delay expansion of an escaped single quote.
10934 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10935
10936 # Sed substitution to avoid accidental globbing in evaled expressions
10937 no_glob_subst='s/\*/\\\*/g'
10938
10939 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10940 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10941 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10942
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10944 $as_echo_n "checking how to print strings... " >&6; }
10945 # Test print first, because it will be a builtin if present.
10946 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10947 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10948 ECHO='print -r --'
10949 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10950 ECHO='printf %s\n'
10951 else
10952 # Use this function as a fallback that always works.
10953 func_fallback_echo ()
10954 {
10955 eval 'cat <<_LTECHO_EOF
10956 $1
10957 _LTECHO_EOF'
10958 }
10959 ECHO='func_fallback_echo'
10960 fi
10961
10962 # func_echo_all arg...
10963 # Invoke $ECHO with all args, space-separated.
10964 func_echo_all ()
10965 {
10966 $ECHO ""
10967 }
10968
10969 case $ECHO in
10970 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10971 $as_echo "printf" >&6; } ;;
10972 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10973 $as_echo "print -r" >&6; } ;;
10974 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10975 $as_echo "cat" >&6; } ;;
10976 esac
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10992 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10993 if ${ac_cv_path_SED+:} false; then :
10994 $as_echo_n "(cached) " >&6
10995 else
10996 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10997 for ac_i in 1 2 3 4 5 6 7; do
10998 ac_script="$ac_script$as_nl$ac_script"
10999 done
11000 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11001 { ac_script=; unset ac_script;}
11002 if test -z "$SED"; then
11003 ac_path_SED_found=false
11004 # Loop through the user's path and test for each of PROGNAME-LIST
11005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11006 for as_dir in $PATH
11007 do
11008 IFS=$as_save_IFS
11009 test -z "$as_dir" && as_dir=.
11010 for ac_prog in sed gsed; do
11011 for ac_exec_ext in '' $ac_executable_extensions; do
11012 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11013 as_fn_executable_p "$ac_path_SED" || continue
11014 # Check for GNU ac_path_SED and select it if it is found.
11015 # Check for GNU $ac_path_SED
11016 case `"$ac_path_SED" --version 2>&1` in
11017 *GNU*)
11018 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11019 *)
11020 ac_count=0
11021 $as_echo_n 0123456789 >"conftest.in"
11022 while :
11023 do
11024 cat "conftest.in" "conftest.in" >"conftest.tmp"
11025 mv "conftest.tmp" "conftest.in"
11026 cp "conftest.in" "conftest.nl"
11027 $as_echo '' >> "conftest.nl"
11028 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11029 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11030 as_fn_arith $ac_count + 1 && ac_count=$as_val
11031 if test $ac_count -gt ${ac_path_SED_max-0}; then
11032 # Best one so far, save it but keep looking for a better one
11033 ac_cv_path_SED="$ac_path_SED"
11034 ac_path_SED_max=$ac_count
11035 fi
11036 # 10*(2^10) chars as input seems more than enough
11037 test $ac_count -gt 10 && break
11038 done
11039 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11040 esac
11041
11042 $ac_path_SED_found && break 3
11043 done
11044 done
11045 done
11046 IFS=$as_save_IFS
11047 if test -z "$ac_cv_path_SED"; then
11048 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11049 fi
11050 else
11051 ac_cv_path_SED=$SED
11052 fi
11053
11054 fi
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11056 $as_echo "$ac_cv_path_SED" >&6; }
11057 SED="$ac_cv_path_SED"
11058 rm -f conftest.sed
11059
11060 test -z "$SED" && SED=sed
11061 Xsed="$SED -e 1s/^X//"
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11074 $as_echo_n "checking for fgrep... " >&6; }
11075 if ${ac_cv_path_FGREP+:} false; then :
11076 $as_echo_n "(cached) " >&6
11077 else
11078 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11079 then ac_cv_path_FGREP="$GREP -F"
11080 else
11081 if test -z "$FGREP"; then
11082 ac_path_FGREP_found=false
11083 # Loop through the user's path and test for each of PROGNAME-LIST
11084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11085 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11086 do
11087 IFS=$as_save_IFS
11088 test -z "$as_dir" && as_dir=.
11089 for ac_prog in fgrep; do
11090 for ac_exec_ext in '' $ac_executable_extensions; do
11091 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11092 as_fn_executable_p "$ac_path_FGREP" || continue
11093 # Check for GNU ac_path_FGREP and select it if it is found.
11094 # Check for GNU $ac_path_FGREP
11095 case `"$ac_path_FGREP" --version 2>&1` in
11096 *GNU*)
11097 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11098 *)
11099 ac_count=0
11100 $as_echo_n 0123456789 >"conftest.in"
11101 while :
11102 do
11103 cat "conftest.in" "conftest.in" >"conftest.tmp"
11104 mv "conftest.tmp" "conftest.in"
11105 cp "conftest.in" "conftest.nl"
11106 $as_echo 'FGREP' >> "conftest.nl"
11107 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11108 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11109 as_fn_arith $ac_count + 1 && ac_count=$as_val
11110 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11111 # Best one so far, save it but keep looking for a better one
11112 ac_cv_path_FGREP="$ac_path_FGREP"
11113 ac_path_FGREP_max=$ac_count
11114 fi
11115 # 10*(2^10) chars as input seems more than enough
11116 test $ac_count -gt 10 && break
11117 done
11118 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11119 esac
11120
11121 $ac_path_FGREP_found && break 3
11122 done
11123 done
11124 done
11125 IFS=$as_save_IFS
11126 if test -z "$ac_cv_path_FGREP"; then
11127 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11128 fi
11129 else
11130 ac_cv_path_FGREP=$FGREP
11131 fi
11132
11133 fi
11134 fi
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11136 $as_echo "$ac_cv_path_FGREP" >&6; }
11137 FGREP="$ac_cv_path_FGREP"
11138
11139
11140 test -z "$GREP" && GREP=grep
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160 # Check whether --with-gnu-ld was given.
11161 if test "${with_gnu_ld+set}" = set; then :
11162 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11163 else
11164 with_gnu_ld=no
11165 fi
11166
11167 ac_prog=ld
11168 if test yes = "$GCC"; then
11169 # Check if gcc -print-prog-name=ld gives a path.
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11171 $as_echo_n "checking for ld used by $CC... " >&6; }
11172 case $host in
11173 *-*-mingw*)
11174 # gcc leaves a trailing carriage return, which upsets mingw
11175 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11176 *)
11177 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11178 esac
11179 case $ac_prog in
11180 # Accept absolute paths.
11181 [\\/]* | ?:[\\/]*)
11182 re_direlt='/[^/][^/]*/\.\./'
11183 # Canonicalize the pathname of ld
11184 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11185 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11186 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11187 done
11188 test -z "$LD" && LD=$ac_prog
11189 ;;
11190 "")
11191 # If it fails, then pretend we aren't using GCC.
11192 ac_prog=ld
11193 ;;
11194 *)
11195 # If it is relative, then search for the first ld in PATH.
11196 with_gnu_ld=unknown
11197 ;;
11198 esac
11199 elif test yes = "$with_gnu_ld"; then
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11201 $as_echo_n "checking for GNU ld... " >&6; }
11202 else
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11204 $as_echo_n "checking for non-GNU ld... " >&6; }
11205 fi
11206 if ${lt_cv_path_LD+:} false; then :
11207 $as_echo_n "(cached) " >&6
11208 else
11209 if test -z "$LD"; then
11210 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11211 for ac_dir in $PATH; do
11212 IFS=$lt_save_ifs
11213 test -z "$ac_dir" && ac_dir=.
11214 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11215 lt_cv_path_LD=$ac_dir/$ac_prog
11216 # Check to see if the program is GNU ld. I'd rather use --version,
11217 # but apparently some variants of GNU ld only accept -v.
11218 # Break only if it was the GNU/non-GNU ld that we prefer.
11219 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11220 *GNU* | *'with BFD'*)
11221 test no != "$with_gnu_ld" && break
11222 ;;
11223 *)
11224 test yes != "$with_gnu_ld" && break
11225 ;;
11226 esac
11227 fi
11228 done
11229 IFS=$lt_save_ifs
11230 else
11231 lt_cv_path_LD=$LD # Let the user override the test with a path.
11232 fi
11233 fi
11234
11235 LD=$lt_cv_path_LD
11236 if test -n "$LD"; then
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11238 $as_echo "$LD" >&6; }
11239 else
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11241 $as_echo "no" >&6; }
11242 fi
11243 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11245 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11246 if ${lt_cv_prog_gnu_ld+:} false; then :
11247 $as_echo_n "(cached) " >&6
11248 else
11249 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11250 case `$LD -v 2>&1 </dev/null` in
11251 *GNU* | *'with BFD'*)
11252 lt_cv_prog_gnu_ld=yes
11253 ;;
11254 *)
11255 lt_cv_prog_gnu_ld=no
11256 ;;
11257 esac
11258 fi
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11260 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11261 with_gnu_ld=$lt_cv_prog_gnu_ld
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11272 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11273 if ${lt_cv_path_NM+:} false; then :
11274 $as_echo_n "(cached) " >&6
11275 else
11276 if test -n "$NM"; then
11277 # Let the user override the test.
11278 lt_cv_path_NM=$NM
11279 else
11280 lt_nm_to_check=${ac_tool_prefix}nm
11281 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11282 lt_nm_to_check="$lt_nm_to_check nm"
11283 fi
11284 for lt_tmp_nm in $lt_nm_to_check; do
11285 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11286 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11287 IFS=$lt_save_ifs
11288 test -z "$ac_dir" && ac_dir=.
11289 tmp_nm=$ac_dir/$lt_tmp_nm
11290 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11291 # Check to see if the nm accepts a BSD-compat flag.
11292 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11293 # nm: unknown option "B" ignored
11294 # Tru64's nm complains that /dev/null is an invalid object file
11295 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11296 case $build_os in
11297 mingw*) lt_bad_file=conftest.nm/nofile ;;
11298 *) lt_bad_file=/dev/null ;;
11299 esac
11300 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11301 *$lt_bad_file* | *'Invalid file or object type'*)
11302 lt_cv_path_NM="$tmp_nm -B"
11303 break 2
11304 ;;
11305 *)
11306 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11307 */dev/null*)
11308 lt_cv_path_NM="$tmp_nm -p"
11309 break 2
11310 ;;
11311 *)
11312 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11313 continue # so that we can try to find one that supports BSD flags
11314 ;;
11315 esac
11316 ;;
11317 esac
11318 fi
11319 done
11320 IFS=$lt_save_ifs
11321 done
11322 : ${lt_cv_path_NM=no}
11323 fi
11324 fi
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11326 $as_echo "$lt_cv_path_NM" >&6; }
11327 if test no != "$lt_cv_path_NM"; then
11328 NM=$lt_cv_path_NM
11329 else
11330 # Didn't find any BSD compatible name lister, look for dumpbin.
11331 if test -n "$DUMPBIN"; then :
11332 # Let the user override the test.
11333 else
11334 if test -n "$ac_tool_prefix"; then
11335 for ac_prog in dumpbin "link -dump"
11336 do
11337 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11338 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11340 $as_echo_n "checking for $ac_word... " >&6; }
11341 if ${ac_cv_prog_DUMPBIN+:} false; then :
11342 $as_echo_n "(cached) " >&6
11343 else
11344 if test -n "$DUMPBIN"; then
11345 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11346 else
11347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11348 for as_dir in $PATH
11349 do
11350 IFS=$as_save_IFS
11351 test -z "$as_dir" && as_dir=.
11352 for ac_exec_ext in '' $ac_executable_extensions; do
11353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11354 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11356 break 2
11357 fi
11358 done
11359 done
11360 IFS=$as_save_IFS
11361
11362 fi
11363 fi
11364 DUMPBIN=$ac_cv_prog_DUMPBIN
11365 if test -n "$DUMPBIN"; then
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11367 $as_echo "$DUMPBIN" >&6; }
11368 else
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11370 $as_echo "no" >&6; }
11371 fi
11372
11373
11374 test -n "$DUMPBIN" && break
11375 done
11376 fi
11377 if test -z "$DUMPBIN"; then
11378 ac_ct_DUMPBIN=$DUMPBIN
11379 for ac_prog in dumpbin "link -dump"
11380 do
11381 # Extract the first word of "$ac_prog", so it can be a program name with args.
11382 set dummy $ac_prog; ac_word=$2
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11384 $as_echo_n "checking for $ac_word... " >&6; }
11385 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11386 $as_echo_n "(cached) " >&6
11387 else
11388 if test -n "$ac_ct_DUMPBIN"; then
11389 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11390 else
11391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392 for as_dir in $PATH
11393 do
11394 IFS=$as_save_IFS
11395 test -z "$as_dir" && as_dir=.
11396 for ac_exec_ext in '' $ac_executable_extensions; do
11397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11398 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11400 break 2
11401 fi
11402 done
11403 done
11404 IFS=$as_save_IFS
11405
11406 fi
11407 fi
11408 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11409 if test -n "$ac_ct_DUMPBIN"; then
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11411 $as_echo "$ac_ct_DUMPBIN" >&6; }
11412 else
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11414 $as_echo "no" >&6; }
11415 fi
11416
11417
11418 test -n "$ac_ct_DUMPBIN" && break
11419 done
11420
11421 if test "x$ac_ct_DUMPBIN" = x; then
11422 DUMPBIN=":"
11423 else
11424 case $cross_compiling:$ac_tool_warned in
11425 yes:)
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11428 ac_tool_warned=yes ;;
11429 esac
11430 DUMPBIN=$ac_ct_DUMPBIN
11431 fi
11432 fi
11433
11434 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
11435 *COFF*)
11436 DUMPBIN="$DUMPBIN -symbols -headers"
11437 ;;
11438 *)
11439 DUMPBIN=:
11440 ;;
11441 esac
11442 fi
11443
11444 if test : != "$DUMPBIN"; then
11445 NM=$DUMPBIN
11446 fi
11447 fi
11448 test -z "$NM" && NM=nm
11449
11450
11451
11452
11453
11454
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11456 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11457 if ${lt_cv_nm_interface+:} false; then :
11458 $as_echo_n "(cached) " >&6
11459 else
11460 lt_cv_nm_interface="BSD nm"
11461 echo "int some_variable = 0;" > conftest.$ac_ext
11462 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11463 (eval "$ac_compile" 2>conftest.err)
11464 cat conftest.err >&5
11465 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11466 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11467 cat conftest.err >&5
11468 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11469 cat conftest.out >&5
11470 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11471 lt_cv_nm_interface="MS dumpbin"
11472 fi
11473 rm -f conftest*
11474 fi
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11476 $as_echo "$lt_cv_nm_interface" >&6; }
11477
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11479 $as_echo_n "checking whether ln -s works... " >&6; }
11480 LN_S=$as_ln_s
11481 if test "$LN_S" = "ln -s"; then
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11483 $as_echo "yes" >&6; }
11484 else
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11486 $as_echo "no, using $LN_S" >&6; }
11487 fi
11488
11489 # find the maximum length of command line arguments
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11491 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11492 if ${lt_cv_sys_max_cmd_len+:} false; then :
11493 $as_echo_n "(cached) " >&6
11494 else
11495 i=0
11496 teststring=ABCD
11497
11498 case $build_os in
11499 msdosdjgpp*)
11500 # On DJGPP, this test can blow up pretty badly due to problems in libc
11501 # (any single argument exceeding 2000 bytes causes a buffer overrun
11502 # during glob expansion). Even if it were fixed, the result of this
11503 # check would be larger than it should be.
11504 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11505 ;;
11506
11507 gnu*)
11508 # Under GNU Hurd, this test is not required because there is
11509 # no limit to the length of command line arguments.
11510 # Libtool will interpret -1 as no limit whatsoever
11511 lt_cv_sys_max_cmd_len=-1;
11512 ;;
11513
11514 cygwin* | mingw* | cegcc*)
11515 # On Win9x/ME, this test blows up -- it succeeds, but takes
11516 # about 5 minutes as the teststring grows exponentially.
11517 # Worse, since 9x/ME are not pre-emptively multitasking,
11518 # you end up with a "frozen" computer, even though with patience
11519 # the test eventually succeeds (with a max line length of 256k).
11520 # Instead, let's just punt: use the minimum linelength reported by
11521 # all of the supported platforms: 8192 (on NT/2K/XP).
11522 lt_cv_sys_max_cmd_len=8192;
11523 ;;
11524
11525 mint*)
11526 # On MiNT this can take a long time and run out of memory.
11527 lt_cv_sys_max_cmd_len=8192;
11528 ;;
11529
11530 amigaos*)
11531 # On AmigaOS with pdksh, this test takes hours, literally.
11532 # So we just punt and use a minimum line length of 8192.
11533 lt_cv_sys_max_cmd_len=8192;
11534 ;;
11535
11536 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
11537 # This has been around since 386BSD, at least. Likely further.
11538 if test -x /sbin/sysctl; then
11539 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11540 elif test -x /usr/sbin/sysctl; then
11541 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11542 else
11543 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11544 fi
11545 # And add a safety zone
11546 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11547 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11548 ;;
11549
11550 interix*)
11551 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11552 lt_cv_sys_max_cmd_len=196608
11553 ;;
11554
11555 os2*)
11556 # The test takes a long time on OS/2.
11557 lt_cv_sys_max_cmd_len=8192
11558 ;;
11559
11560 osf*)
11561 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11562 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11563 # nice to cause kernel panics so lets avoid the loop below.
11564 # First set a reasonable default.
11565 lt_cv_sys_max_cmd_len=16384
11566 #
11567 if test -x /sbin/sysconfig; then
11568 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11569 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11570 esac
11571 fi
11572 ;;
11573 sco3.2v5*)
11574 lt_cv_sys_max_cmd_len=102400
11575 ;;
11576 sysv5* | sco5v6* | sysv4.2uw2*)
11577 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11578 if test -n "$kargmax"; then
11579 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11580 else
11581 lt_cv_sys_max_cmd_len=32768
11582 fi
11583 ;;
11584 *)
11585 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11586 if test -n "$lt_cv_sys_max_cmd_len" && \
11587 test undefined != "$lt_cv_sys_max_cmd_len"; then
11588 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11589 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11590 else
11591 # Make teststring a little bigger before we do anything with it.
11592 # a 1K string should be a reasonable start.
11593 for i in 1 2 3 4 5 6 7 8; do
11594 teststring=$teststring$teststring
11595 done
11596 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11597 # If test is not a shell built-in, we'll probably end up computing a
11598 # maximum length that is only half of the actual maximum length, but
11599 # we can't tell.
11600 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
11601 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11602 test 17 != "$i" # 1/2 MB should be enough
11603 do
11604 i=`expr $i + 1`
11605 teststring=$teststring$teststring
11606 done
11607 # Only check the string length outside the loop.
11608 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11609 teststring=
11610 # Add a significant safety factor because C++ compilers can tack on
11611 # massive amounts of additional arguments before passing them to the
11612 # linker. It appears as though 1/2 is a usable value.
11613 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11614 fi
11615 ;;
11616 esac
11617
11618 fi
11619
11620 if test -n "$lt_cv_sys_max_cmd_len"; then
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11622 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11623 else
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11625 $as_echo "none" >&6; }
11626 fi
11627 max_cmd_len=$lt_cv_sys_max_cmd_len
11628
11629
11630
11631
11632
11633
11634 : ${CP="cp -f"}
11635 : ${MV="mv -f"}
11636 : ${RM="rm -f"}
11637
11638 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11639 lt_unset=unset
11640 else
11641 lt_unset=false
11642 fi
11643
11644
11645
11646
11647
11648 # test EBCDIC or ASCII
11649 case `echo X|tr X '\101'` in
11650 A) # ASCII based system
11651 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11652 lt_SP2NL='tr \040 \012'
11653 lt_NL2SP='tr \015\012 \040\040'
11654 ;;
11655 *) # EBCDIC based system
11656 lt_SP2NL='tr \100 \n'
11657 lt_NL2SP='tr \r\n \100\100'
11658 ;;
11659 esac
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11670 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11671 if ${lt_cv_to_host_file_cmd+:} false; then :
11672 $as_echo_n "(cached) " >&6
11673 else
11674 case $host in
11675 *-*-mingw* )
11676 case $build in
11677 *-*-mingw* ) # actually msys
11678 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11679 ;;
11680 *-*-cygwin* )
11681 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11682 ;;
11683 * ) # otherwise, assume *nix
11684 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11685 ;;
11686 esac
11687 ;;
11688 *-*-cygwin* )
11689 case $build in
11690 *-*-mingw* ) # actually msys
11691 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11692 ;;
11693 *-*-cygwin* )
11694 lt_cv_to_host_file_cmd=func_convert_file_noop
11695 ;;
11696 * ) # otherwise, assume *nix
11697 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11698 ;;
11699 esac
11700 ;;
11701 * ) # unhandled hosts (and "normal" native builds)
11702 lt_cv_to_host_file_cmd=func_convert_file_noop
11703 ;;
11704 esac
11705
11706 fi
11707
11708 to_host_file_cmd=$lt_cv_to_host_file_cmd
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11710 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11711
11712
11713
11714
11715
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11717 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11718 if ${lt_cv_to_tool_file_cmd+:} false; then :
11719 $as_echo_n "(cached) " >&6
11720 else
11721 #assume ordinary cross tools, or native build.
11722 lt_cv_to_tool_file_cmd=func_convert_file_noop
11723 case $host in
11724 *-*-mingw* )
11725 case $build in
11726 *-*-mingw* ) # actually msys
11727 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11728 ;;
11729 esac
11730 ;;
11731 esac
11732
11733 fi
11734
11735 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11737 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11738
11739
11740
11741
11742
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11744 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11745 if ${lt_cv_ld_reload_flag+:} false; then :
11746 $as_echo_n "(cached) " >&6
11747 else
11748 lt_cv_ld_reload_flag='-r'
11749 fi
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11751 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11752 reload_flag=$lt_cv_ld_reload_flag
11753 case $reload_flag in
11754 "" | " "*) ;;
11755 *) reload_flag=" $reload_flag" ;;
11756 esac
11757 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11758 case $host_os in
11759 cygwin* | mingw* | pw32* | cegcc*)
11760 if test yes != "$GCC"; then
11761 reload_cmds=false
11762 fi
11763 ;;
11764 darwin*)
11765 if test yes = "$GCC"; then
11766 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
11767 else
11768 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11769 fi
11770 ;;
11771 esac
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781 if test -n "$ac_tool_prefix"; then
11782 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11783 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11785 $as_echo_n "checking for $ac_word... " >&6; }
11786 if ${ac_cv_prog_OBJDUMP+:} false; then :
11787 $as_echo_n "(cached) " >&6
11788 else
11789 if test -n "$OBJDUMP"; then
11790 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11791 else
11792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11793 for as_dir in $PATH
11794 do
11795 IFS=$as_save_IFS
11796 test -z "$as_dir" && as_dir=.
11797 for ac_exec_ext in '' $ac_executable_extensions; do
11798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11799 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11801 break 2
11802 fi
11803 done
11804 done
11805 IFS=$as_save_IFS
11806
11807 fi
11808 fi
11809 OBJDUMP=$ac_cv_prog_OBJDUMP
11810 if test -n "$OBJDUMP"; then
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11812 $as_echo "$OBJDUMP" >&6; }
11813 else
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11815 $as_echo "no" >&6; }
11816 fi
11817
11818
11819 fi
11820 if test -z "$ac_cv_prog_OBJDUMP"; then
11821 ac_ct_OBJDUMP=$OBJDUMP
11822 # Extract the first word of "objdump", so it can be a program name with args.
11823 set dummy objdump; ac_word=$2
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11825 $as_echo_n "checking for $ac_word... " >&6; }
11826 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11827 $as_echo_n "(cached) " >&6
11828 else
11829 if test -n "$ac_ct_OBJDUMP"; then
11830 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11831 else
11832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11833 for as_dir in $PATH
11834 do
11835 IFS=$as_save_IFS
11836 test -z "$as_dir" && as_dir=.
11837 for ac_exec_ext in '' $ac_executable_extensions; do
11838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11839 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11841 break 2
11842 fi
11843 done
11844 done
11845 IFS=$as_save_IFS
11846
11847 fi
11848 fi
11849 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11850 if test -n "$ac_ct_OBJDUMP"; then
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11852 $as_echo "$ac_ct_OBJDUMP" >&6; }
11853 else
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11855 $as_echo "no" >&6; }
11856 fi
11857
11858 if test "x$ac_ct_OBJDUMP" = x; then
11859 OBJDUMP="false"
11860 else
11861 case $cross_compiling:$ac_tool_warned in
11862 yes:)
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11865 ac_tool_warned=yes ;;
11866 esac
11867 OBJDUMP=$ac_ct_OBJDUMP
11868 fi
11869 else
11870 OBJDUMP="$ac_cv_prog_OBJDUMP"
11871 fi
11872
11873 test -z "$OBJDUMP" && OBJDUMP=objdump
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11884 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11885 if ${lt_cv_deplibs_check_method+:} false; then :
11886 $as_echo_n "(cached) " >&6
11887 else
11888 lt_cv_file_magic_cmd='$MAGIC_CMD'
11889 lt_cv_file_magic_test_file=
11890 lt_cv_deplibs_check_method='unknown'
11891 # Need to set the preceding variable on all platforms that support
11892 # interlibrary dependencies.
11893 # 'none' -- dependencies not supported.
11894 # 'unknown' -- same as none, but documents that we really don't know.
11895 # 'pass_all' -- all dependencies passed with no checks.
11896 # 'test_compile' -- check by making test program.
11897 # 'file_magic [[regex]]' -- check by looking for files in library path
11898 # that responds to the $file_magic_cmd with a given extended regex.
11899 # If you have 'file' or equivalent on your system and you're not sure
11900 # whether 'pass_all' will *always* work, you probably want this one.
11901
11902 case $host_os in
11903 aix[4-9]*)
11904 lt_cv_deplibs_check_method=pass_all
11905 ;;
11906
11907 beos*)
11908 lt_cv_deplibs_check_method=pass_all
11909 ;;
11910
11911 bsdi[45]*)
11912 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11913 lt_cv_file_magic_cmd='/usr/bin/file -L'
11914 lt_cv_file_magic_test_file=/shlib/libc.so
11915 ;;
11916
11917 cygwin*)
11918 # func_win32_libid is a shell function defined in ltmain.sh
11919 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11920 lt_cv_file_magic_cmd='func_win32_libid'
11921 ;;
11922
11923 mingw* | pw32*)
11924 # Base MSYS/MinGW do not provide the 'file' command needed by
11925 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11926 # unless we find 'file', for example because we are cross-compiling.
11927 if ( file / ) >/dev/null 2>&1; then
11928 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11929 lt_cv_file_magic_cmd='func_win32_libid'
11930 else
11931 # Keep this pattern in sync with the one in func_win32_libid.
11932 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11933 lt_cv_file_magic_cmd='$OBJDUMP -f'
11934 fi
11935 ;;
11936
11937 cegcc*)
11938 # use the weaker test based on 'objdump'. See mingw*.
11939 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11940 lt_cv_file_magic_cmd='$OBJDUMP -f'
11941 ;;
11942
11943 darwin* | rhapsody*)
11944 lt_cv_deplibs_check_method=pass_all
11945 ;;
11946
11947 freebsd* | dragonfly*)
11948 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11949 case $host_cpu in
11950 i*86 )
11951 # Not sure whether the presence of OpenBSD here was a mistake.
11952 # Let's accept both of them until this is cleared up.
11953 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11954 lt_cv_file_magic_cmd=/usr/bin/file
11955 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11956 ;;
11957 esac
11958 else
11959 lt_cv_deplibs_check_method=pass_all
11960 fi
11961 ;;
11962
11963 haiku*)
11964 lt_cv_deplibs_check_method=pass_all
11965 ;;
11966
11967 hpux10.20* | hpux11*)
11968 lt_cv_file_magic_cmd=/usr/bin/file
11969 case $host_cpu in
11970 ia64*)
11971 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11972 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11973 ;;
11974 hppa*64*)
11975 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]'
11976 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11977 ;;
11978 *)
11979 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11980 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11981 ;;
11982 esac
11983 ;;
11984
11985 interix[3-9]*)
11986 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11987 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11988 ;;
11989
11990 irix5* | irix6* | nonstopux*)
11991 case $LD in
11992 *-32|*"-32 ") libmagic=32-bit;;
11993 *-n32|*"-n32 ") libmagic=N32;;
11994 *-64|*"-64 ") libmagic=64-bit;;
11995 *) libmagic=never-match;;
11996 esac
11997 lt_cv_deplibs_check_method=pass_all
11998 ;;
11999
12000 # This must be glibc/ELF.
12001 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12002 lt_cv_deplibs_check_method=pass_all
12003 ;;
12004
12005 netbsd*)
12006 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12007 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12008 else
12009 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12010 fi
12011 ;;
12012
12013 newos6*)
12014 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12015 lt_cv_file_magic_cmd=/usr/bin/file
12016 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12017 ;;
12018
12019 *nto* | *qnx*)
12020 lt_cv_deplibs_check_method=pass_all
12021 ;;
12022
12023 openbsd* | bitrig*)
12024 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12025 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12026 else
12027 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12028 fi
12029 ;;
12030
12031 osf3* | osf4* | osf5*)
12032 lt_cv_deplibs_check_method=pass_all
12033 ;;
12034
12035 rdos*)
12036 lt_cv_deplibs_check_method=pass_all
12037 ;;
12038
12039 solaris*)
12040 lt_cv_deplibs_check_method=pass_all
12041 ;;
12042
12043 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12044 lt_cv_deplibs_check_method=pass_all
12045 ;;
12046
12047 sysv4 | sysv4.3*)
12048 case $host_vendor in
12049 motorola)
12050 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]'
12051 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12052 ;;
12053 ncr)
12054 lt_cv_deplibs_check_method=pass_all
12055 ;;
12056 sequent)
12057 lt_cv_file_magic_cmd='/bin/file'
12058 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12059 ;;
12060 sni)
12061 lt_cv_file_magic_cmd='/bin/file'
12062 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12063 lt_cv_file_magic_test_file=/lib/libc.so
12064 ;;
12065 siemens)
12066 lt_cv_deplibs_check_method=pass_all
12067 ;;
12068 pc)
12069 lt_cv_deplibs_check_method=pass_all
12070 ;;
12071 esac
12072 ;;
12073
12074 tpf*)
12075 lt_cv_deplibs_check_method=pass_all
12076 ;;
12077 os2*)
12078 lt_cv_deplibs_check_method=pass_all
12079 ;;
12080 esac
12081
12082 fi
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12084 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12085
12086 file_magic_glob=
12087 want_nocaseglob=no
12088 if test "$build" = "$host"; then
12089 case $host_os in
12090 mingw* | pw32*)
12091 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12092 want_nocaseglob=yes
12093 else
12094 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12095 fi
12096 ;;
12097 esac
12098 fi
12099
12100 file_magic_cmd=$lt_cv_file_magic_cmd
12101 deplibs_check_method=$lt_cv_deplibs_check_method
12102 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125 if test -n "$ac_tool_prefix"; then
12126 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12127 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12129 $as_echo_n "checking for $ac_word... " >&6; }
12130 if ${ac_cv_prog_DLLTOOL+:} false; then :
12131 $as_echo_n "(cached) " >&6
12132 else
12133 if test -n "$DLLTOOL"; then
12134 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12135 else
12136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12137 for as_dir in $PATH
12138 do
12139 IFS=$as_save_IFS
12140 test -z "$as_dir" && as_dir=.
12141 for ac_exec_ext in '' $ac_executable_extensions; do
12142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12143 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12145 break 2
12146 fi
12147 done
12148 done
12149 IFS=$as_save_IFS
12150
12151 fi
12152 fi
12153 DLLTOOL=$ac_cv_prog_DLLTOOL
12154 if test -n "$DLLTOOL"; then
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12156 $as_echo "$DLLTOOL" >&6; }
12157 else
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12159 $as_echo "no" >&6; }
12160 fi
12161
12162
12163 fi
12164 if test -z "$ac_cv_prog_DLLTOOL"; then
12165 ac_ct_DLLTOOL=$DLLTOOL
12166 # Extract the first word of "dlltool", so it can be a program name with args.
12167 set dummy dlltool; ac_word=$2
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12169 $as_echo_n "checking for $ac_word... " >&6; }
12170 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12171 $as_echo_n "(cached) " >&6
12172 else
12173 if test -n "$ac_ct_DLLTOOL"; then
12174 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12175 else
12176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12177 for as_dir in $PATH
12178 do
12179 IFS=$as_save_IFS
12180 test -z "$as_dir" && as_dir=.
12181 for ac_exec_ext in '' $ac_executable_extensions; do
12182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12183 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12185 break 2
12186 fi
12187 done
12188 done
12189 IFS=$as_save_IFS
12190
12191 fi
12192 fi
12193 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12194 if test -n "$ac_ct_DLLTOOL"; then
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12196 $as_echo "$ac_ct_DLLTOOL" >&6; }
12197 else
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12199 $as_echo "no" >&6; }
12200 fi
12201
12202 if test "x$ac_ct_DLLTOOL" = x; then
12203 DLLTOOL="false"
12204 else
12205 case $cross_compiling:$ac_tool_warned in
12206 yes:)
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12209 ac_tool_warned=yes ;;
12210 esac
12211 DLLTOOL=$ac_ct_DLLTOOL
12212 fi
12213 else
12214 DLLTOOL="$ac_cv_prog_DLLTOOL"
12215 fi
12216
12217 test -z "$DLLTOOL" && DLLTOOL=dlltool
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12229 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12230 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12231 $as_echo_n "(cached) " >&6
12232 else
12233 lt_cv_sharedlib_from_linklib_cmd='unknown'
12234
12235 case $host_os in
12236 cygwin* | mingw* | pw32* | cegcc*)
12237 # two different shell functions defined in ltmain.sh;
12238 # decide which one to use based on capabilities of $DLLTOOL
12239 case `$DLLTOOL --help 2>&1` in
12240 *--identify-strict*)
12241 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12242 ;;
12243 *)
12244 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12245 ;;
12246 esac
12247 ;;
12248 *)
12249 # fallback: assume linklib IS sharedlib
12250 lt_cv_sharedlib_from_linklib_cmd=$ECHO
12251 ;;
12252 esac
12253
12254 fi
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12256 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12257 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12258 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12259
12260
12261
12262
12263
12264
12265
12266 if test -n "$ac_tool_prefix"; then
12267 for ac_prog in ar
12268 do
12269 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12270 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12272 $as_echo_n "checking for $ac_word... " >&6; }
12273 if ${ac_cv_prog_AR+:} false; then :
12274 $as_echo_n "(cached) " >&6
12275 else
12276 if test -n "$AR"; then
12277 ac_cv_prog_AR="$AR" # Let the user override the test.
12278 else
12279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12280 for as_dir in $PATH
12281 do
12282 IFS=$as_save_IFS
12283 test -z "$as_dir" && as_dir=.
12284 for ac_exec_ext in '' $ac_executable_extensions; do
12285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12286 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12288 break 2
12289 fi
12290 done
12291 done
12292 IFS=$as_save_IFS
12293
12294 fi
12295 fi
12296 AR=$ac_cv_prog_AR
12297 if test -n "$AR"; then
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12299 $as_echo "$AR" >&6; }
12300 else
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12302 $as_echo "no" >&6; }
12303 fi
12304
12305
12306 test -n "$AR" && break
12307 done
12308 fi
12309 if test -z "$AR"; then
12310 ac_ct_AR=$AR
12311 for ac_prog in ar
12312 do
12313 # Extract the first word of "$ac_prog", so it can be a program name with args.
12314 set dummy $ac_prog; ac_word=$2
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12316 $as_echo_n "checking for $ac_word... " >&6; }
12317 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12318 $as_echo_n "(cached) " >&6
12319 else
12320 if test -n "$ac_ct_AR"; then
12321 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12322 else
12323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12324 for as_dir in $PATH
12325 do
12326 IFS=$as_save_IFS
12327 test -z "$as_dir" && as_dir=.
12328 for ac_exec_ext in '' $ac_executable_extensions; do
12329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12330 ac_cv_prog_ac_ct_AR="$ac_prog"
12331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12332 break 2
12333 fi
12334 done
12335 done
12336 IFS=$as_save_IFS
12337
12338 fi
12339 fi
12340 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12341 if test -n "$ac_ct_AR"; then
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12343 $as_echo "$ac_ct_AR" >&6; }
12344 else
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12346 $as_echo "no" >&6; }
12347 fi
12348
12349
12350 test -n "$ac_ct_AR" && break
12351 done
12352
12353 if test "x$ac_ct_AR" = x; then
12354 AR="false"
12355 else
12356 case $cross_compiling:$ac_tool_warned in
12357 yes:)
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12360 ac_tool_warned=yes ;;
12361 esac
12362 AR=$ac_ct_AR
12363 fi
12364 fi
12365
12366 : ${AR=ar}
12367 : ${AR_FLAGS=cru}
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12380 $as_echo_n "checking for archiver @FILE support... " >&6; }
12381 if ${lt_cv_ar_at_file+:} false; then :
12382 $as_echo_n "(cached) " >&6
12383 else
12384 lt_cv_ar_at_file=no
12385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12386 /* end confdefs.h. */
12387
12388 int
12389 main ()
12390 {
12391
12392 ;
12393 return 0;
12394 }
12395 _ACEOF
12396 if ac_fn_c_try_compile "$LINENO"; then :
12397 echo conftest.$ac_objext > conftest.lst
12398 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12400 (eval $lt_ar_try) 2>&5
12401 ac_status=$?
12402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12403 test $ac_status = 0; }
12404 if test 0 -eq "$ac_status"; then
12405 # Ensure the archiver fails upon bogus file names.
12406 rm -f conftest.$ac_objext libconftest.a
12407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12408 (eval $lt_ar_try) 2>&5
12409 ac_status=$?
12410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12411 test $ac_status = 0; }
12412 if test 0 -ne "$ac_status"; then
12413 lt_cv_ar_at_file=@
12414 fi
12415 fi
12416 rm -f conftest.* libconftest.a
12417
12418 fi
12419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12420
12421 fi
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12423 $as_echo "$lt_cv_ar_at_file" >&6; }
12424
12425 if test no = "$lt_cv_ar_at_file"; then
12426 archiver_list_spec=
12427 else
12428 archiver_list_spec=$lt_cv_ar_at_file
12429 fi
12430
12431
12432
12433
12434
12435
12436
12437 if test -n "$ac_tool_prefix"; then
12438 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12439 set dummy ${ac_tool_prefix}strip; ac_word=$2
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12441 $as_echo_n "checking for $ac_word... " >&6; }
12442 if ${ac_cv_prog_STRIP+:} false; then :
12443 $as_echo_n "(cached) " >&6
12444 else
12445 if test -n "$STRIP"; then
12446 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12447 else
12448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12449 for as_dir in $PATH
12450 do
12451 IFS=$as_save_IFS
12452 test -z "$as_dir" && as_dir=.
12453 for ac_exec_ext in '' $ac_executable_extensions; do
12454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12455 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12457 break 2
12458 fi
12459 done
12460 done
12461 IFS=$as_save_IFS
12462
12463 fi
12464 fi
12465 STRIP=$ac_cv_prog_STRIP
12466 if test -n "$STRIP"; then
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12468 $as_echo "$STRIP" >&6; }
12469 else
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12471 $as_echo "no" >&6; }
12472 fi
12473
12474
12475 fi
12476 if test -z "$ac_cv_prog_STRIP"; then
12477 ac_ct_STRIP=$STRIP
12478 # Extract the first word of "strip", so it can be a program name with args.
12479 set dummy strip; ac_word=$2
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12481 $as_echo_n "checking for $ac_word... " >&6; }
12482 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12483 $as_echo_n "(cached) " >&6
12484 else
12485 if test -n "$ac_ct_STRIP"; then
12486 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12487 else
12488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12489 for as_dir in $PATH
12490 do
12491 IFS=$as_save_IFS
12492 test -z "$as_dir" && as_dir=.
12493 for ac_exec_ext in '' $ac_executable_extensions; do
12494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12495 ac_cv_prog_ac_ct_STRIP="strip"
12496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12497 break 2
12498 fi
12499 done
12500 done
12501 IFS=$as_save_IFS
12502
12503 fi
12504 fi
12505 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12506 if test -n "$ac_ct_STRIP"; then
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12508 $as_echo "$ac_ct_STRIP" >&6; }
12509 else
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12511 $as_echo "no" >&6; }
12512 fi
12513
12514 if test "x$ac_ct_STRIP" = x; then
12515 STRIP=":"
12516 else
12517 case $cross_compiling:$ac_tool_warned in
12518 yes:)
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12521 ac_tool_warned=yes ;;
12522 esac
12523 STRIP=$ac_ct_STRIP
12524 fi
12525 else
12526 STRIP="$ac_cv_prog_STRIP"
12527 fi
12528
12529 test -z "$STRIP" && STRIP=:
12530
12531
12532
12533
12534
12535
12536 if test -n "$ac_tool_prefix"; then
12537 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12538 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12540 $as_echo_n "checking for $ac_word... " >&6; }
12541 if ${ac_cv_prog_RANLIB+:} false; then :
12542 $as_echo_n "(cached) " >&6
12543 else
12544 if test -n "$RANLIB"; then
12545 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12546 else
12547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12548 for as_dir in $PATH
12549 do
12550 IFS=$as_save_IFS
12551 test -z "$as_dir" && as_dir=.
12552 for ac_exec_ext in '' $ac_executable_extensions; do
12553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12554 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12556 break 2
12557 fi
12558 done
12559 done
12560 IFS=$as_save_IFS
12561
12562 fi
12563 fi
12564 RANLIB=$ac_cv_prog_RANLIB
12565 if test -n "$RANLIB"; then
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12567 $as_echo "$RANLIB" >&6; }
12568 else
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12570 $as_echo "no" >&6; }
12571 fi
12572
12573
12574 fi
12575 if test -z "$ac_cv_prog_RANLIB"; then
12576 ac_ct_RANLIB=$RANLIB
12577 # Extract the first word of "ranlib", so it can be a program name with args.
12578 set dummy ranlib; ac_word=$2
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12580 $as_echo_n "checking for $ac_word... " >&6; }
12581 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12582 $as_echo_n "(cached) " >&6
12583 else
12584 if test -n "$ac_ct_RANLIB"; then
12585 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12586 else
12587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12588 for as_dir in $PATH
12589 do
12590 IFS=$as_save_IFS
12591 test -z "$as_dir" && as_dir=.
12592 for ac_exec_ext in '' $ac_executable_extensions; do
12593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12594 ac_cv_prog_ac_ct_RANLIB="ranlib"
12595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12596 break 2
12597 fi
12598 done
12599 done
12600 IFS=$as_save_IFS
12601
12602 fi
12603 fi
12604 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12605 if test -n "$ac_ct_RANLIB"; then
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12607 $as_echo "$ac_ct_RANLIB" >&6; }
12608 else
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12610 $as_echo "no" >&6; }
12611 fi
12612
12613 if test "x$ac_ct_RANLIB" = x; then
12614 RANLIB=":"
12615 else
12616 case $cross_compiling:$ac_tool_warned in
12617 yes:)
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12620 ac_tool_warned=yes ;;
12621 esac
12622 RANLIB=$ac_ct_RANLIB
12623 fi
12624 else
12625 RANLIB="$ac_cv_prog_RANLIB"
12626 fi
12627
12628 test -z "$RANLIB" && RANLIB=:
12629
12630
12631
12632
12633
12634
12635 # Determine commands to create old-style static archives.
12636 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12637 old_postinstall_cmds='chmod 644 $oldlib'
12638 old_postuninstall_cmds=
12639
12640 if test -n "$RANLIB"; then
12641 case $host_os in
12642 bitrig* | openbsd*)
12643 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12644 ;;
12645 *)
12646 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12647 ;;
12648 esac
12649 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12650 fi
12651
12652 case $host_os in
12653 darwin*)
12654 lock_old_archive_extraction=yes ;;
12655 *)
12656 lock_old_archive_extraction=no ;;
12657 esac
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697 # If no C compiler was specified, use CC.
12698 LTCC=${LTCC-"$CC"}
12699
12700 # If no C compiler flags were specified, use CFLAGS.
12701 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12702
12703 # Allow CC to be a program name with arguments.
12704 compiler=$CC
12705
12706
12707 # Check for command to grab the raw symbol name followed by C symbol from nm.
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12709 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12710 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12711 $as_echo_n "(cached) " >&6
12712 else
12713
12714 # These are sane defaults that work on at least a few old systems.
12715 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12716
12717 # Character class describing NM global symbol codes.
12718 symcode='[BCDEGRST]'
12719
12720 # Regexp to match symbols that can be accessed directly from C.
12721 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12722
12723 # Define system-specific variables.
12724 case $host_os in
12725 aix*)
12726 symcode='[BCDT]'
12727 ;;
12728 cygwin* | mingw* | pw32* | cegcc*)
12729 symcode='[ABCDGISTW]'
12730 ;;
12731 hpux*)
12732 if test ia64 = "$host_cpu"; then
12733 symcode='[ABCDEGRST]'
12734 fi
12735 ;;
12736 irix* | nonstopux*)
12737 symcode='[BCDEGRST]'
12738 ;;
12739 osf*)
12740 symcode='[BCDEGQRST]'
12741 ;;
12742 solaris*)
12743 symcode='[BDRT]'
12744 ;;
12745 sco3.2v5*)
12746 symcode='[DT]'
12747 ;;
12748 sysv4.2uw2*)
12749 symcode='[DT]'
12750 ;;
12751 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12752 symcode='[ABDT]'
12753 ;;
12754 sysv4)
12755 symcode='[DFNSTU]'
12756 ;;
12757 esac
12758
12759 # If we're using GNU nm, then use its standard symbol codes.
12760 case `$NM -V 2>&1` in
12761 *GNU* | *'with BFD'*)
12762 symcode='[ABCDGIRSTW]' ;;
12763 esac
12764
12765 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12766 # Gets list of data symbols to import.
12767 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
12768 # Adjust the below global symbol transforms to fixup imported variables.
12769 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
12770 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
12771 lt_c_name_lib_hook="\
12772 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
12773 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
12774 else
12775 # Disable hooks by default.
12776 lt_cv_sys_global_symbol_to_import=
12777 lt_cdecl_hook=
12778 lt_c_name_hook=
12779 lt_c_name_lib_hook=
12780 fi
12781
12782 # Transform an extracted symbol line into a proper C declaration.
12783 # Some systems (esp. on ia64) link data and code symbols differently,
12784 # so use this general approach.
12785 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
12786 $lt_cdecl_hook\
12787 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
12788 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
12789
12790 # Transform an extracted symbol line into symbol name and symbol address
12791 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
12792 $lt_c_name_hook\
12793 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
12794 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
12795
12796 # Transform an extracted symbol line into symbol name with lib prefix and
12797 # symbol address.
12798 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
12799 $lt_c_name_lib_hook\
12800 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
12801 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
12802 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
12803
12804 # Handle CRLF in mingw tool chain
12805 opt_cr=
12806 case $build_os in
12807 mingw*)
12808 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12809 ;;
12810 esac
12811
12812 # Try without a prefix underscore, then with it.
12813 for ac_symprfx in "" "_"; do
12814
12815 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12816 symxfrm="\\1 $ac_symprfx\\2 \\2"
12817
12818 # Write the raw and C identifiers.
12819 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12820 # Fake it for dumpbin and say T for any non-static function,
12821 # D for any global variable and I for any imported variable.
12822 # Also find C++ and __fastcall symbols from MSVC++,
12823 # which start with @ or ?.
12824 lt_cv_sys_global_symbol_pipe="$AWK '"\
12825 " {last_section=section; section=\$ 3};"\
12826 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12827 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12828 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
12829 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
12830 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
12831 " \$ 0!~/External *\|/{next};"\
12832 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12833 " {if(hide[section]) next};"\
12834 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
12835 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
12836 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
12837 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
12838 " ' prfx=^$ac_symprfx"
12839 else
12840 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12841 fi
12842 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12843
12844 # Check to see that the pipe works correctly.
12845 pipe_works=no
12846
12847 rm -f conftest*
12848 cat > conftest.$ac_ext <<_LT_EOF
12849 #ifdef __cplusplus
12850 extern "C" {
12851 #endif
12852 char nm_test_var;
12853 void nm_test_func(void);
12854 void nm_test_func(void){}
12855 #ifdef __cplusplus
12856 }
12857 #endif
12858 int main(){nm_test_var='a';nm_test_func();return(0);}
12859 _LT_EOF
12860
12861 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12862 (eval $ac_compile) 2>&5
12863 ac_status=$?
12864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12865 test $ac_status = 0; }; then
12866 # Now try to grab the symbols.
12867 nlist=conftest.nm
12868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12869 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12870 ac_status=$?
12871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12872 test $ac_status = 0; } && test -s "$nlist"; then
12873 # Try sorting and uniquifying the output.
12874 if sort "$nlist" | uniq > "$nlist"T; then
12875 mv -f "$nlist"T "$nlist"
12876 else
12877 rm -f "$nlist"T
12878 fi
12879
12880 # Make sure that we snagged all the symbols we need.
12881 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12882 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12883 cat <<_LT_EOF > conftest.$ac_ext
12884 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12885 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
12886 /* DATA imports from DLLs on WIN32 can't be const, because runtime
12887 relocations are performed -- see ld's documentation on pseudo-relocs. */
12888 # define LT_DLSYM_CONST
12889 #elif defined __osf__
12890 /* This system does not cope well with relocations in const data. */
12891 # define LT_DLSYM_CONST
12892 #else
12893 # define LT_DLSYM_CONST const
12894 #endif
12895
12896 #ifdef __cplusplus
12897 extern "C" {
12898 #endif
12899
12900 _LT_EOF
12901 # Now generate the symbol file.
12902 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12903
12904 cat <<_LT_EOF >> conftest.$ac_ext
12905
12906 /* The mapping between symbol names and symbols. */
12907 LT_DLSYM_CONST struct {
12908 const char *name;
12909 void *address;
12910 }
12911 lt__PROGRAM__LTX_preloaded_symbols[] =
12912 {
12913 { "@PROGRAM@", (void *) 0 },
12914 _LT_EOF
12915 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12916 cat <<\_LT_EOF >> conftest.$ac_ext
12917 {0, (void *) 0}
12918 };
12919
12920 /* This works around a problem in FreeBSD linker */
12921 #ifdef FREEBSD_WORKAROUND
12922 static const void *lt_preloaded_setup() {
12923 return lt__PROGRAM__LTX_preloaded_symbols;
12924 }
12925 #endif
12926
12927 #ifdef __cplusplus
12928 }
12929 #endif
12930 _LT_EOF
12931 # Now try linking the two files.
12932 mv conftest.$ac_objext conftstm.$ac_objext
12933 lt_globsym_save_LIBS=$LIBS
12934 lt_globsym_save_CFLAGS=$CFLAGS
12935 LIBS=conftstm.$ac_objext
12936 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12937 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12938 (eval $ac_link) 2>&5
12939 ac_status=$?
12940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12941 test $ac_status = 0; } && test -s conftest$ac_exeext; then
12942 pipe_works=yes
12943 fi
12944 LIBS=$lt_globsym_save_LIBS
12945 CFLAGS=$lt_globsym_save_CFLAGS
12946 else
12947 echo "cannot find nm_test_func in $nlist" >&5
12948 fi
12949 else
12950 echo "cannot find nm_test_var in $nlist" >&5
12951 fi
12952 else
12953 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12954 fi
12955 else
12956 echo "$progname: failed program was:" >&5
12957 cat conftest.$ac_ext >&5
12958 fi
12959 rm -rf conftest* conftst*
12960
12961 # Do not use the global_symbol_pipe unless it works.
12962 if test yes = "$pipe_works"; then
12963 break
12964 else
12965 lt_cv_sys_global_symbol_pipe=
12966 fi
12967 done
12968
12969 fi
12970
12971 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12972 lt_cv_sys_global_symbol_to_cdecl=
12973 fi
12974 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12976 $as_echo "failed" >&6; }
12977 else
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12979 $as_echo "ok" >&6; }
12980 fi
12981
12982 # Response file support.
12983 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12984 nm_file_list_spec='@'
12985 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12986 nm_file_list_spec='@'
12987 fi
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13026 $as_echo_n "checking for sysroot... " >&6; }
13027
13028 # Check whether --with-sysroot was given.
13029 if test "${with_sysroot+set}" = set; then :
13030 withval=$with_sysroot;
13031 else
13032 with_sysroot=no
13033 fi
13034
13035
13036 lt_sysroot=
13037 case $with_sysroot in #(
13038 yes)
13039 if test yes = "$GCC"; then
13040 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13041 fi
13042 ;; #(
13043 /*)
13044 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13045 ;; #(
13046 no|'')
13047 ;; #(
13048 *)
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13050 $as_echo "$with_sysroot" >&6; }
13051 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13052 ;;
13053 esac
13054
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13056 $as_echo "${lt_sysroot:-no}" >&6; }
13057
13058
13059
13060
13061
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13063 $as_echo_n "checking for a working dd... " >&6; }
13064 if ${ac_cv_path_lt_DD+:} false; then :
13065 $as_echo_n "(cached) " >&6
13066 else
13067 printf 0123456789abcdef0123456789abcdef >conftest.i
13068 cat conftest.i conftest.i >conftest2.i
13069 : ${lt_DD:=$DD}
13070 if test -z "$lt_DD"; then
13071 ac_path_lt_DD_found=false
13072 # Loop through the user's path and test for each of PROGNAME-LIST
13073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13074 for as_dir in $PATH
13075 do
13076 IFS=$as_save_IFS
13077 test -z "$as_dir" && as_dir=.
13078 for ac_prog in dd; do
13079 for ac_exec_ext in '' $ac_executable_extensions; do
13080 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
13081 as_fn_executable_p "$ac_path_lt_DD" || continue
13082 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13083 cmp -s conftest.i conftest.out \
13084 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13085 fi
13086 $ac_path_lt_DD_found && break 3
13087 done
13088 done
13089 done
13090 IFS=$as_save_IFS
13091 if test -z "$ac_cv_path_lt_DD"; then
13092 :
13093 fi
13094 else
13095 ac_cv_path_lt_DD=$lt_DD
13096 fi
13097
13098 rm -f conftest.i conftest2.i conftest.out
13099 fi
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13101 $as_echo "$ac_cv_path_lt_DD" >&6; }
13102
13103
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13105 $as_echo_n "checking how to truncate binary pipes... " >&6; }
13106 if ${lt_cv_truncate_bin+:} false; then :
13107 $as_echo_n "(cached) " >&6
13108 else
13109 printf 0123456789abcdef0123456789abcdef >conftest.i
13110 cat conftest.i conftest.i >conftest2.i
13111 lt_cv_truncate_bin=
13112 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13113 cmp -s conftest.i conftest.out \
13114 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13115 fi
13116 rm -f conftest.i conftest2.i conftest.out
13117 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13118 fi
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13120 $as_echo "$lt_cv_truncate_bin" >&6; }
13121
13122
13123
13124
13125
13126
13127 # Check whether --enable-libtool-lock was given.
13128 if test "${enable_libtool_lock+set}" = set; then :
13129 enableval=$enable_libtool_lock;
13130 fi
13131
13132 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13133
13134 # Some flags need to be propagated to the compiler or linker for good
13135 # libtool support.
13136 case $host in
13137 ia64-*-hpux*)
13138 # Find out what ABI is being produced by ac_compile, and set mode
13139 # options accordingly.
13140 echo 'int i;' > conftest.$ac_ext
13141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13142 (eval $ac_compile) 2>&5
13143 ac_status=$?
13144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13145 test $ac_status = 0; }; then
13146 case `/usr/bin/file conftest.$ac_objext` in
13147 *ELF-32*)
13148 HPUX_IA64_MODE=32
13149 ;;
13150 *ELF-64*)
13151 HPUX_IA64_MODE=64
13152 ;;
13153 esac
13154 fi
13155 rm -rf conftest*
13156 ;;
13157 *-*-irix6*)
13158 # Find out what ABI is being produced by ac_compile, and set linker
13159 # options accordingly.
13160 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13162 (eval $ac_compile) 2>&5
13163 ac_status=$?
13164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13165 test $ac_status = 0; }; then
13166 if test yes = "$lt_cv_prog_gnu_ld"; then
13167 case `/usr/bin/file conftest.$ac_objext` in
13168 *32-bit*)
13169 LD="${LD-ld} -melf32bsmip"
13170 ;;
13171 *N32*)
13172 LD="${LD-ld} -melf32bmipn32"
13173 ;;
13174 *64-bit*)
13175 LD="${LD-ld} -melf64bmip"
13176 ;;
13177 esac
13178 else
13179 case `/usr/bin/file conftest.$ac_objext` in
13180 *32-bit*)
13181 LD="${LD-ld} -32"
13182 ;;
13183 *N32*)
13184 LD="${LD-ld} -n32"
13185 ;;
13186 *64-bit*)
13187 LD="${LD-ld} -64"
13188 ;;
13189 esac
13190 fi
13191 fi
13192 rm -rf conftest*
13193 ;;
13194
13195 mips64*-*linux*)
13196 # Find out what ABI is being produced by ac_compile, and set linker
13197 # options accordingly.
13198 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13200 (eval $ac_compile) 2>&5
13201 ac_status=$?
13202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13203 test $ac_status = 0; }; then
13204 emul=elf
13205 case `/usr/bin/file conftest.$ac_objext` in
13206 *32-bit*)
13207 emul="${emul}32"
13208 ;;
13209 *64-bit*)
13210 emul="${emul}64"
13211 ;;
13212 esac
13213 case `/usr/bin/file conftest.$ac_objext` in
13214 *MSB*)
13215 emul="${emul}btsmip"
13216 ;;
13217 *LSB*)
13218 emul="${emul}ltsmip"
13219 ;;
13220 esac
13221 case `/usr/bin/file conftest.$ac_objext` in
13222 *N32*)
13223 emul="${emul}n32"
13224 ;;
13225 esac
13226 LD="${LD-ld} -m $emul"
13227 fi
13228 rm -rf conftest*
13229 ;;
13230
13231 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13232 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13233 # Find out what ABI is being produced by ac_compile, and set linker
13234 # options accordingly. Note that the listed cases only cover the
13235 # situations where additional linker options are needed (such as when
13236 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13237 # vice versa); the common cases where no linker options are needed do
13238 # not appear in the list.
13239 echo 'int i;' > conftest.$ac_ext
13240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13241 (eval $ac_compile) 2>&5
13242 ac_status=$?
13243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13244 test $ac_status = 0; }; then
13245 case `/usr/bin/file conftest.o` in
13246 *32-bit*)
13247 case $host in
13248 x86_64-*kfreebsd*-gnu)
13249 LD="${LD-ld} -m elf_i386_fbsd"
13250 ;;
13251 x86_64-*linux*)
13252 case `/usr/bin/file conftest.o` in
13253 *x86-64*)
13254 LD="${LD-ld} -m elf32_x86_64"
13255 ;;
13256 *)
13257 LD="${LD-ld} -m elf_i386"
13258 ;;
13259 esac
13260 ;;
13261 powerpc64le-*linux*)
13262 LD="${LD-ld} -m elf32lppclinux"
13263 ;;
13264 powerpc64-*linux*)
13265 LD="${LD-ld} -m elf32ppclinux"
13266 ;;
13267 s390x-*linux*)
13268 LD="${LD-ld} -m elf_s390"
13269 ;;
13270 sparc64-*linux*)
13271 LD="${LD-ld} -m elf32_sparc"
13272 ;;
13273 esac
13274 ;;
13275 *64-bit*)
13276 case $host in
13277 x86_64-*kfreebsd*-gnu)
13278 LD="${LD-ld} -m elf_x86_64_fbsd"
13279 ;;
13280 x86_64-*linux*)
13281 LD="${LD-ld} -m elf_x86_64"
13282 ;;
13283 powerpcle-*linux*)
13284 LD="${LD-ld} -m elf64lppc"
13285 ;;
13286 powerpc-*linux*)
13287 LD="${LD-ld} -m elf64ppc"
13288 ;;
13289 s390*-*linux*|s390*-*tpf*)
13290 LD="${LD-ld} -m elf64_s390"
13291 ;;
13292 sparc*-*linux*)
13293 LD="${LD-ld} -m elf64_sparc"
13294 ;;
13295 esac
13296 ;;
13297 esac
13298 fi
13299 rm -rf conftest*
13300 ;;
13301
13302 *-*-sco3.2v5*)
13303 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13304 SAVE_CFLAGS=$CFLAGS
13305 CFLAGS="$CFLAGS -belf"
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13307 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13308 if ${lt_cv_cc_needs_belf+:} false; then :
13309 $as_echo_n "(cached) " >&6
13310 else
13311 ac_ext=c
13312 ac_cpp='$CPP $CPPFLAGS'
13313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13316
13317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13318 /* end confdefs.h. */
13319
13320 int
13321 main ()
13322 {
13323
13324 ;
13325 return 0;
13326 }
13327 _ACEOF
13328 if ac_fn_c_try_link "$LINENO"; then :
13329 lt_cv_cc_needs_belf=yes
13330 else
13331 lt_cv_cc_needs_belf=no
13332 fi
13333 rm -f core conftest.err conftest.$ac_objext \
13334 conftest$ac_exeext conftest.$ac_ext
13335 ac_ext=c
13336 ac_cpp='$CPP $CPPFLAGS'
13337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13340
13341 fi
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13343 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13344 if test yes != "$lt_cv_cc_needs_belf"; then
13345 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13346 CFLAGS=$SAVE_CFLAGS
13347 fi
13348 ;;
13349 *-*solaris*)
13350 # Find out what ABI is being produced by ac_compile, and set linker
13351 # options accordingly.
13352 echo 'int i;' > conftest.$ac_ext
13353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13354 (eval $ac_compile) 2>&5
13355 ac_status=$?
13356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13357 test $ac_status = 0; }; then
13358 case `/usr/bin/file conftest.o` in
13359 *64-bit*)
13360 case $lt_cv_prog_gnu_ld in
13361 yes*)
13362 case $host in
13363 i?86-*-solaris*|x86_64-*-solaris*)
13364 LD="${LD-ld} -m elf_x86_64"
13365 ;;
13366 sparc*-*-solaris*)
13367 LD="${LD-ld} -m elf64_sparc"
13368 ;;
13369 esac
13370 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13371 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13372 LD=${LD-ld}_sol2
13373 fi
13374 ;;
13375 *)
13376 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13377 LD="${LD-ld} -64"
13378 fi
13379 ;;
13380 esac
13381 ;;
13382 esac
13383 fi
13384 rm -rf conftest*
13385 ;;
13386 esac
13387
13388 need_locks=$enable_libtool_lock
13389
13390 if test -n "$ac_tool_prefix"; then
13391 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13392 set dummy ${ac_tool_prefix}mt; ac_word=$2
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13394 $as_echo_n "checking for $ac_word... " >&6; }
13395 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13396 $as_echo_n "(cached) " >&6
13397 else
13398 if test -n "$MANIFEST_TOOL"; then
13399 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13400 else
13401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13402 for as_dir in $PATH
13403 do
13404 IFS=$as_save_IFS
13405 test -z "$as_dir" && as_dir=.
13406 for ac_exec_ext in '' $ac_executable_extensions; do
13407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13408 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13410 break 2
13411 fi
13412 done
13413 done
13414 IFS=$as_save_IFS
13415
13416 fi
13417 fi
13418 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13419 if test -n "$MANIFEST_TOOL"; then
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13421 $as_echo "$MANIFEST_TOOL" >&6; }
13422 else
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13424 $as_echo "no" >&6; }
13425 fi
13426
13427
13428 fi
13429 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13430 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13431 # Extract the first word of "mt", so it can be a program name with args.
13432 set dummy mt; ac_word=$2
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13434 $as_echo_n "checking for $ac_word... " >&6; }
13435 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13436 $as_echo_n "(cached) " >&6
13437 else
13438 if test -n "$ac_ct_MANIFEST_TOOL"; then
13439 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13440 else
13441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13442 for as_dir in $PATH
13443 do
13444 IFS=$as_save_IFS
13445 test -z "$as_dir" && as_dir=.
13446 for ac_exec_ext in '' $ac_executable_extensions; do
13447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13448 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13450 break 2
13451 fi
13452 done
13453 done
13454 IFS=$as_save_IFS
13455
13456 fi
13457 fi
13458 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13459 if test -n "$ac_ct_MANIFEST_TOOL"; then
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13461 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13462 else
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13464 $as_echo "no" >&6; }
13465 fi
13466
13467 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13468 MANIFEST_TOOL=":"
13469 else
13470 case $cross_compiling:$ac_tool_warned in
13471 yes:)
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13474 ac_tool_warned=yes ;;
13475 esac
13476 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13477 fi
13478 else
13479 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13480 fi
13481
13482 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13484 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13485 if ${lt_cv_path_mainfest_tool+:} false; then :
13486 $as_echo_n "(cached) " >&6
13487 else
13488 lt_cv_path_mainfest_tool=no
13489 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13490 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13491 cat conftest.err >&5
13492 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13493 lt_cv_path_mainfest_tool=yes
13494 fi
13495 rm -f conftest*
13496 fi
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13498 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13499 if test yes != "$lt_cv_path_mainfest_tool"; then
13500 MANIFEST_TOOL=:
13501 fi
13502
13503
13504
13505
13506
13507
13508 case $host_os in
13509 rhapsody* | darwin*)
13510 if test -n "$ac_tool_prefix"; then
13511 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13512 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13514 $as_echo_n "checking for $ac_word... " >&6; }
13515 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13516 $as_echo_n "(cached) " >&6
13517 else
13518 if test -n "$DSYMUTIL"; then
13519 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13520 else
13521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13522 for as_dir in $PATH
13523 do
13524 IFS=$as_save_IFS
13525 test -z "$as_dir" && as_dir=.
13526 for ac_exec_ext in '' $ac_executable_extensions; do
13527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13528 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13530 break 2
13531 fi
13532 done
13533 done
13534 IFS=$as_save_IFS
13535
13536 fi
13537 fi
13538 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13539 if test -n "$DSYMUTIL"; then
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13541 $as_echo "$DSYMUTIL" >&6; }
13542 else
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13544 $as_echo "no" >&6; }
13545 fi
13546
13547
13548 fi
13549 if test -z "$ac_cv_prog_DSYMUTIL"; then
13550 ac_ct_DSYMUTIL=$DSYMUTIL
13551 # Extract the first word of "dsymutil", so it can be a program name with args.
13552 set dummy dsymutil; ac_word=$2
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13554 $as_echo_n "checking for $ac_word... " >&6; }
13555 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13556 $as_echo_n "(cached) " >&6
13557 else
13558 if test -n "$ac_ct_DSYMUTIL"; then
13559 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13560 else
13561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13562 for as_dir in $PATH
13563 do
13564 IFS=$as_save_IFS
13565 test -z "$as_dir" && as_dir=.
13566 for ac_exec_ext in '' $ac_executable_extensions; do
13567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13568 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13570 break 2
13571 fi
13572 done
13573 done
13574 IFS=$as_save_IFS
13575
13576 fi
13577 fi
13578 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13579 if test -n "$ac_ct_DSYMUTIL"; then
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13581 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13582 else
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13584 $as_echo "no" >&6; }
13585 fi
13586
13587 if test "x$ac_ct_DSYMUTIL" = x; then
13588 DSYMUTIL=":"
13589 else
13590 case $cross_compiling:$ac_tool_warned in
13591 yes:)
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13594 ac_tool_warned=yes ;;
13595 esac
13596 DSYMUTIL=$ac_ct_DSYMUTIL
13597 fi
13598 else
13599 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13600 fi
13601
13602 if test -n "$ac_tool_prefix"; then
13603 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13604 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13606 $as_echo_n "checking for $ac_word... " >&6; }
13607 if ${ac_cv_prog_NMEDIT+:} false; then :
13608 $as_echo_n "(cached) " >&6
13609 else
13610 if test -n "$NMEDIT"; then
13611 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13612 else
13613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13614 for as_dir in $PATH
13615 do
13616 IFS=$as_save_IFS
13617 test -z "$as_dir" && as_dir=.
13618 for ac_exec_ext in '' $ac_executable_extensions; do
13619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13620 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13622 break 2
13623 fi
13624 done
13625 done
13626 IFS=$as_save_IFS
13627
13628 fi
13629 fi
13630 NMEDIT=$ac_cv_prog_NMEDIT
13631 if test -n "$NMEDIT"; then
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13633 $as_echo "$NMEDIT" >&6; }
13634 else
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13636 $as_echo "no" >&6; }
13637 fi
13638
13639
13640 fi
13641 if test -z "$ac_cv_prog_NMEDIT"; then
13642 ac_ct_NMEDIT=$NMEDIT
13643 # Extract the first word of "nmedit", so it can be a program name with args.
13644 set dummy nmedit; ac_word=$2
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13646 $as_echo_n "checking for $ac_word... " >&6; }
13647 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13648 $as_echo_n "(cached) " >&6
13649 else
13650 if test -n "$ac_ct_NMEDIT"; then
13651 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13652 else
13653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13654 for as_dir in $PATH
13655 do
13656 IFS=$as_save_IFS
13657 test -z "$as_dir" && as_dir=.
13658 for ac_exec_ext in '' $ac_executable_extensions; do
13659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13660 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13662 break 2
13663 fi
13664 done
13665 done
13666 IFS=$as_save_IFS
13667
13668 fi
13669 fi
13670 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13671 if test -n "$ac_ct_NMEDIT"; then
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13673 $as_echo "$ac_ct_NMEDIT" >&6; }
13674 else
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13676 $as_echo "no" >&6; }
13677 fi
13678
13679 if test "x$ac_ct_NMEDIT" = x; then
13680 NMEDIT=":"
13681 else
13682 case $cross_compiling:$ac_tool_warned in
13683 yes:)
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13686 ac_tool_warned=yes ;;
13687 esac
13688 NMEDIT=$ac_ct_NMEDIT
13689 fi
13690 else
13691 NMEDIT="$ac_cv_prog_NMEDIT"
13692 fi
13693
13694 if test -n "$ac_tool_prefix"; then
13695 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13696 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13698 $as_echo_n "checking for $ac_word... " >&6; }
13699 if ${ac_cv_prog_LIPO+:} false; then :
13700 $as_echo_n "(cached) " >&6
13701 else
13702 if test -n "$LIPO"; then
13703 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13704 else
13705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13706 for as_dir in $PATH
13707 do
13708 IFS=$as_save_IFS
13709 test -z "$as_dir" && as_dir=.
13710 for ac_exec_ext in '' $ac_executable_extensions; do
13711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13712 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13714 break 2
13715 fi
13716 done
13717 done
13718 IFS=$as_save_IFS
13719
13720 fi
13721 fi
13722 LIPO=$ac_cv_prog_LIPO
13723 if test -n "$LIPO"; then
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13725 $as_echo "$LIPO" >&6; }
13726 else
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13728 $as_echo "no" >&6; }
13729 fi
13730
13731
13732 fi
13733 if test -z "$ac_cv_prog_LIPO"; then
13734 ac_ct_LIPO=$LIPO
13735 # Extract the first word of "lipo", so it can be a program name with args.
13736 set dummy lipo; ac_word=$2
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13738 $as_echo_n "checking for $ac_word... " >&6; }
13739 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13740 $as_echo_n "(cached) " >&6
13741 else
13742 if test -n "$ac_ct_LIPO"; then
13743 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13744 else
13745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13746 for as_dir in $PATH
13747 do
13748 IFS=$as_save_IFS
13749 test -z "$as_dir" && as_dir=.
13750 for ac_exec_ext in '' $ac_executable_extensions; do
13751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13752 ac_cv_prog_ac_ct_LIPO="lipo"
13753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13754 break 2
13755 fi
13756 done
13757 done
13758 IFS=$as_save_IFS
13759
13760 fi
13761 fi
13762 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13763 if test -n "$ac_ct_LIPO"; then
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13765 $as_echo "$ac_ct_LIPO" >&6; }
13766 else
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13768 $as_echo "no" >&6; }
13769 fi
13770
13771 if test "x$ac_ct_LIPO" = x; then
13772 LIPO=":"
13773 else
13774 case $cross_compiling:$ac_tool_warned in
13775 yes:)
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13778 ac_tool_warned=yes ;;
13779 esac
13780 LIPO=$ac_ct_LIPO
13781 fi
13782 else
13783 LIPO="$ac_cv_prog_LIPO"
13784 fi
13785
13786 if test -n "$ac_tool_prefix"; then
13787 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13788 set dummy ${ac_tool_prefix}otool; ac_word=$2
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13790 $as_echo_n "checking for $ac_word... " >&6; }
13791 if ${ac_cv_prog_OTOOL+:} false; then :
13792 $as_echo_n "(cached) " >&6
13793 else
13794 if test -n "$OTOOL"; then
13795 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13796 else
13797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13798 for as_dir in $PATH
13799 do
13800 IFS=$as_save_IFS
13801 test -z "$as_dir" && as_dir=.
13802 for ac_exec_ext in '' $ac_executable_extensions; do
13803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13804 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13806 break 2
13807 fi
13808 done
13809 done
13810 IFS=$as_save_IFS
13811
13812 fi
13813 fi
13814 OTOOL=$ac_cv_prog_OTOOL
13815 if test -n "$OTOOL"; then
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13817 $as_echo "$OTOOL" >&6; }
13818 else
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13820 $as_echo "no" >&6; }
13821 fi
13822
13823
13824 fi
13825 if test -z "$ac_cv_prog_OTOOL"; then
13826 ac_ct_OTOOL=$OTOOL
13827 # Extract the first word of "otool", so it can be a program name with args.
13828 set dummy otool; ac_word=$2
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13830 $as_echo_n "checking for $ac_word... " >&6; }
13831 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13832 $as_echo_n "(cached) " >&6
13833 else
13834 if test -n "$ac_ct_OTOOL"; then
13835 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13836 else
13837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13838 for as_dir in $PATH
13839 do
13840 IFS=$as_save_IFS
13841 test -z "$as_dir" && as_dir=.
13842 for ac_exec_ext in '' $ac_executable_extensions; do
13843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13844 ac_cv_prog_ac_ct_OTOOL="otool"
13845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13846 break 2
13847 fi
13848 done
13849 done
13850 IFS=$as_save_IFS
13851
13852 fi
13853 fi
13854 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13855 if test -n "$ac_ct_OTOOL"; then
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13857 $as_echo "$ac_ct_OTOOL" >&6; }
13858 else
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13860 $as_echo "no" >&6; }
13861 fi
13862
13863 if test "x$ac_ct_OTOOL" = x; then
13864 OTOOL=":"
13865 else
13866 case $cross_compiling:$ac_tool_warned in
13867 yes:)
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13870 ac_tool_warned=yes ;;
13871 esac
13872 OTOOL=$ac_ct_OTOOL
13873 fi
13874 else
13875 OTOOL="$ac_cv_prog_OTOOL"
13876 fi
13877
13878 if test -n "$ac_tool_prefix"; then
13879 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13880 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13882 $as_echo_n "checking for $ac_word... " >&6; }
13883 if ${ac_cv_prog_OTOOL64+:} false; then :
13884 $as_echo_n "(cached) " >&6
13885 else
13886 if test -n "$OTOOL64"; then
13887 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13888 else
13889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13890 for as_dir in $PATH
13891 do
13892 IFS=$as_save_IFS
13893 test -z "$as_dir" && as_dir=.
13894 for ac_exec_ext in '' $ac_executable_extensions; do
13895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13896 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13898 break 2
13899 fi
13900 done
13901 done
13902 IFS=$as_save_IFS
13903
13904 fi
13905 fi
13906 OTOOL64=$ac_cv_prog_OTOOL64
13907 if test -n "$OTOOL64"; then
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13909 $as_echo "$OTOOL64" >&6; }
13910 else
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13912 $as_echo "no" >&6; }
13913 fi
13914
13915
13916 fi
13917 if test -z "$ac_cv_prog_OTOOL64"; then
13918 ac_ct_OTOOL64=$OTOOL64
13919 # Extract the first word of "otool64", so it can be a program name with args.
13920 set dummy otool64; ac_word=$2
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13922 $as_echo_n "checking for $ac_word... " >&6; }
13923 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13924 $as_echo_n "(cached) " >&6
13925 else
13926 if test -n "$ac_ct_OTOOL64"; then
13927 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13928 else
13929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13930 for as_dir in $PATH
13931 do
13932 IFS=$as_save_IFS
13933 test -z "$as_dir" && as_dir=.
13934 for ac_exec_ext in '' $ac_executable_extensions; do
13935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13936 ac_cv_prog_ac_ct_OTOOL64="otool64"
13937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13938 break 2
13939 fi
13940 done
13941 done
13942 IFS=$as_save_IFS
13943
13944 fi
13945 fi
13946 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13947 if test -n "$ac_ct_OTOOL64"; then
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13949 $as_echo "$ac_ct_OTOOL64" >&6; }
13950 else
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13952 $as_echo "no" >&6; }
13953 fi
13954
13955 if test "x$ac_ct_OTOOL64" = x; then
13956 OTOOL64=":"
13957 else
13958 case $cross_compiling:$ac_tool_warned in
13959 yes:)
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13962 ac_tool_warned=yes ;;
13963 esac
13964 OTOOL64=$ac_ct_OTOOL64
13965 fi
13966 else
13967 OTOOL64="$ac_cv_prog_OTOOL64"
13968 fi
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13997 $as_echo_n "checking for -single_module linker flag... " >&6; }
13998 if ${lt_cv_apple_cc_single_mod+:} false; then :
13999 $as_echo_n "(cached) " >&6
14000 else
14001 lt_cv_apple_cc_single_mod=no
14002 if test -z "$LT_MULTI_MODULE"; then
14003 # By default we will add the -single_module flag. You can override
14004 # by either setting the environment variable LT_MULTI_MODULE
14005 # non-empty at configure time, or by adding -multi_module to the
14006 # link flags.
14007 rm -rf libconftest.dylib*
14008 echo "int foo(void){return 1;}" > conftest.c
14009 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14010 -dynamiclib -Wl,-single_module conftest.c" >&5
14011 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14012 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14013 _lt_result=$?
14014 # If there is a non-empty error log, and "single_module"
14015 # appears in it, assume the flag caused a linker warning
14016 if test -s conftest.err && $GREP single_module conftest.err; then
14017 cat conftest.err >&5
14018 # Otherwise, if the output was created with a 0 exit code from
14019 # the compiler, it worked.
14020 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14021 lt_cv_apple_cc_single_mod=yes
14022 else
14023 cat conftest.err >&5
14024 fi
14025 rm -rf libconftest.dylib*
14026 rm -f conftest.*
14027 fi
14028 fi
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14030 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14031
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14033 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14034 if ${lt_cv_ld_exported_symbols_list+:} false; then :
14035 $as_echo_n "(cached) " >&6
14036 else
14037 lt_cv_ld_exported_symbols_list=no
14038 save_LDFLAGS=$LDFLAGS
14039 echo "_main" > conftest.sym
14040 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14042 /* end confdefs.h. */
14043
14044 int
14045 main ()
14046 {
14047
14048 ;
14049 return 0;
14050 }
14051 _ACEOF
14052 if ac_fn_c_try_link "$LINENO"; then :
14053 lt_cv_ld_exported_symbols_list=yes
14054 else
14055 lt_cv_ld_exported_symbols_list=no
14056 fi
14057 rm -f core conftest.err conftest.$ac_objext \
14058 conftest$ac_exeext conftest.$ac_ext
14059 LDFLAGS=$save_LDFLAGS
14060
14061 fi
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14063 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14064
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14066 $as_echo_n "checking for -force_load linker flag... " >&6; }
14067 if ${lt_cv_ld_force_load+:} false; then :
14068 $as_echo_n "(cached) " >&6
14069 else
14070 lt_cv_ld_force_load=no
14071 cat > conftest.c << _LT_EOF
14072 int forced_loaded() { return 2;}
14073 _LT_EOF
14074 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14075 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14076 echo "$AR cru libconftest.a conftest.o" >&5
14077 $AR cru libconftest.a conftest.o 2>&5
14078 echo "$RANLIB libconftest.a" >&5
14079 $RANLIB libconftest.a 2>&5
14080 cat > conftest.c << _LT_EOF
14081 int main() { return 0;}
14082 _LT_EOF
14083 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14084 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14085 _lt_result=$?
14086 if test -s conftest.err && $GREP force_load conftest.err; then
14087 cat conftest.err >&5
14088 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14089 lt_cv_ld_force_load=yes
14090 else
14091 cat conftest.err >&5
14092 fi
14093 rm -f conftest.err libconftest.a conftest conftest.c
14094 rm -rf conftest.dSYM
14095
14096 fi
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14098 $as_echo "$lt_cv_ld_force_load" >&6; }
14099 case $host_os in
14100 rhapsody* | darwin1.[012])
14101 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14102 darwin1.*)
14103 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14104 darwin*) # darwin 5.x on
14105 # if running on 10.5 or later, the deployment target defaults
14106 # to the OS version, if on x86, and 10.4, the deployment
14107 # target defaults to 10.4. Don't you love it?
14108 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14109 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14110 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14111 10.[012][,.]*)
14112 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14113 10.*)
14114 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14115 esac
14116 ;;
14117 esac
14118 if test yes = "$lt_cv_apple_cc_single_mod"; then
14119 _lt_dar_single_mod='$single_module'
14120 fi
14121 if test yes = "$lt_cv_ld_exported_symbols_list"; then
14122 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14123 else
14124 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14125 fi
14126 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14127 _lt_dsymutil='~$DSYMUTIL $lib || :'
14128 else
14129 _lt_dsymutil=
14130 fi
14131 ;;
14132 esac
14133
14134 for ac_header in dlfcn.h
14135 do :
14136 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14137 "
14138 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14139 cat >>confdefs.h <<_ACEOF
14140 #define HAVE_DLFCN_H 1
14141 _ACEOF
14142
14143 fi
14144
14145 done
14146
14147
14148
14149
14150
14151 # Set options
14152
14153
14154
14155 enable_dlopen=no
14156
14157
14158 enable_win32_dll=no
14159
14160
14161 # Check whether --enable-shared was given.
14162 if test "${enable_shared+set}" = set; then :
14163 enableval=$enable_shared; p=${PACKAGE-default}
14164 case $enableval in
14165 yes) enable_shared=yes ;;
14166 no) enable_shared=no ;;
14167 *)
14168 enable_shared=no
14169 # Look at the argument we got. We use all the common list separators.
14170 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14171 for pkg in $enableval; do
14172 IFS=$lt_save_ifs
14173 if test "X$pkg" = "X$p"; then
14174 enable_shared=yes
14175 fi
14176 done
14177 IFS=$lt_save_ifs
14178 ;;
14179 esac
14180 else
14181 enable_shared=yes
14182 fi
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194 # Check whether --with-pic was given.
14195 if test "${with_pic+set}" = set; then :
14196 withval=$with_pic; lt_p=${PACKAGE-default}
14197 case $withval in
14198 yes|no) pic_mode=$withval ;;
14199 *)
14200 pic_mode=default
14201 # Look at the argument we got. We use all the common list separators.
14202 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14203 for lt_pkg in $withval; do
14204 IFS=$lt_save_ifs
14205 if test "X$lt_pkg" = "X$lt_p"; then
14206 pic_mode=yes
14207 fi
14208 done
14209 IFS=$lt_save_ifs
14210 ;;
14211 esac
14212 else
14213 pic_mode=default
14214 fi
14215
14216
14217
14218
14219
14220
14221
14222
14223 # Check whether --enable-fast-install was given.
14224 if test "${enable_fast_install+set}" = set; then :
14225 enableval=$enable_fast_install; p=${PACKAGE-default}
14226 case $enableval in
14227 yes) enable_fast_install=yes ;;
14228 no) enable_fast_install=no ;;
14229 *)
14230 enable_fast_install=no
14231 # Look at the argument we got. We use all the common list separators.
14232 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14233 for pkg in $enableval; do
14234 IFS=$lt_save_ifs
14235 if test "X$pkg" = "X$p"; then
14236 enable_fast_install=yes
14237 fi
14238 done
14239 IFS=$lt_save_ifs
14240 ;;
14241 esac
14242 else
14243 enable_fast_install=yes
14244 fi
14245
14246
14247
14248
14249
14250
14251
14252
14253 shared_archive_member_spec=
14254 case $host,$enable_shared in
14255 power*-*-aix[5-9]*,yes)
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
14257 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
14258
14259 # Check whether --with-aix-soname was given.
14260 if test "${with_aix_soname+set}" = set; then :
14261 withval=$with_aix_soname; case $withval in
14262 aix|svr4|both)
14263 ;;
14264 *)
14265 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
14266 ;;
14267 esac
14268 lt_cv_with_aix_soname=$with_aix_soname
14269 else
14270 if ${lt_cv_with_aix_soname+:} false; then :
14271 $as_echo_n "(cached) " >&6
14272 else
14273 lt_cv_with_aix_soname=aix
14274 fi
14275
14276 with_aix_soname=$lt_cv_with_aix_soname
14277 fi
14278
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
14280 $as_echo "$with_aix_soname" >&6; }
14281 if test aix != "$with_aix_soname"; then
14282 # For the AIX way of multilib, we name the shared archive member
14283 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
14284 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
14285 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
14286 # the AIX toolchain works better with OBJECT_MODE set (default 32).
14287 if test 64 = "${OBJECT_MODE-32}"; then
14288 shared_archive_member_spec=shr_64
14289 else
14290 shared_archive_member_spec=shr
14291 fi
14292 fi
14293 ;;
14294 *)
14295 with_aix_soname=aix
14296 ;;
14297 esac
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308 # This can be used to rebuild libtool when needed
14309 LIBTOOL_DEPS=$ltmain
14310
14311 # Always use our own libtool.
14312 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343 test -z "$LN_S" && LN_S="ln -s"
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358 if test -n "${ZSH_VERSION+set}"; then
14359 setopt NO_GLOB_SUBST
14360 fi
14361
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14363 $as_echo_n "checking for objdir... " >&6; }
14364 if ${lt_cv_objdir+:} false; then :
14365 $as_echo_n "(cached) " >&6
14366 else
14367 rm -f .libs 2>/dev/null
14368 mkdir .libs 2>/dev/null
14369 if test -d .libs; then
14370 lt_cv_objdir=.libs
14371 else
14372 # MS-DOS does not allow filenames that begin with a dot.
14373 lt_cv_objdir=_libs
14374 fi
14375 rmdir .libs 2>/dev/null
14376 fi
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14378 $as_echo "$lt_cv_objdir" >&6; }
14379 objdir=$lt_cv_objdir
14380
14381
14382
14383
14384
14385 cat >>confdefs.h <<_ACEOF
14386 #define LT_OBJDIR "$lt_cv_objdir/"
14387 _ACEOF
14388
14389
14390
14391
14392 case $host_os in
14393 aix3*)
14394 # AIX sometimes has problems with the GCC collect2 program. For some
14395 # reason, if we set the COLLECT_NAMES environment variable, the problems
14396 # vanish in a puff of smoke.
14397 if test set != "${COLLECT_NAMES+set}"; then
14398 COLLECT_NAMES=
14399 export COLLECT_NAMES
14400 fi
14401 ;;
14402 esac
14403
14404 # Global variables:
14405 ofile=libtool
14406 can_build_shared=yes
14407
14408 # All known linkers require a '.a' archive for static linking (except MSVC,
14409 # which needs '.lib').
14410 libext=a
14411
14412 with_gnu_ld=$lt_cv_prog_gnu_ld
14413
14414 old_CC=$CC
14415 old_CFLAGS=$CFLAGS
14416
14417 # Set sane defaults for various variables
14418 test -z "$CC" && CC=cc
14419 test -z "$LTCC" && LTCC=$CC
14420 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14421 test -z "$LD" && LD=ld
14422 test -z "$ac_objext" && ac_objext=o
14423
14424 for cc_temp in $compiler""; do
14425 case $cc_temp in
14426 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14427 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14428 \-*) ;;
14429 *) break;;
14430 esac
14431 done
14432 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14433
14434
14435 # Only perform the check for file, if the check method requires it
14436 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14437 case $deplibs_check_method in
14438 file_magic*)
14439 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14441 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14442 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14443 $as_echo_n "(cached) " >&6
14444 else
14445 case $MAGIC_CMD in
14446 [\\/*] | ?:[\\/]*)
14447 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14448 ;;
14449 *)
14450 lt_save_MAGIC_CMD=$MAGIC_CMD
14451 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14452 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14453 for ac_dir in $ac_dummy; do
14454 IFS=$lt_save_ifs
14455 test -z "$ac_dir" && ac_dir=.
14456 if test -f "$ac_dir/${ac_tool_prefix}file"; then
14457 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
14458 if test -n "$file_magic_test_file"; then
14459 case $deplibs_check_method in
14460 "file_magic "*)
14461 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14462 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14463 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14464 $EGREP "$file_magic_regex" > /dev/null; then
14465 :
14466 else
14467 cat <<_LT_EOF 1>&2
14468
14469 *** Warning: the command libtool uses to detect shared libraries,
14470 *** $file_magic_cmd, produces output that libtool cannot recognize.
14471 *** The result is that libtool may fail to recognize shared libraries
14472 *** as such. This will affect the creation of libtool libraries that
14473 *** depend on shared libraries, but programs linked with such libtool
14474 *** libraries will work regardless of this problem. Nevertheless, you
14475 *** may want to report the problem to your system manager and/or to
14476 *** bug-libtool@gnu.org
14477
14478 _LT_EOF
14479 fi ;;
14480 esac
14481 fi
14482 break
14483 fi
14484 done
14485 IFS=$lt_save_ifs
14486 MAGIC_CMD=$lt_save_MAGIC_CMD
14487 ;;
14488 esac
14489 fi
14490
14491 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14492 if test -n "$MAGIC_CMD"; then
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14494 $as_echo "$MAGIC_CMD" >&6; }
14495 else
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14497 $as_echo "no" >&6; }
14498 fi
14499
14500
14501
14502
14503
14504 if test -z "$lt_cv_path_MAGIC_CMD"; then
14505 if test -n "$ac_tool_prefix"; then
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14507 $as_echo_n "checking for file... " >&6; }
14508 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14509 $as_echo_n "(cached) " >&6
14510 else
14511 case $MAGIC_CMD in
14512 [\\/*] | ?:[\\/]*)
14513 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14514 ;;
14515 *)
14516 lt_save_MAGIC_CMD=$MAGIC_CMD
14517 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14518 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14519 for ac_dir in $ac_dummy; do
14520 IFS=$lt_save_ifs
14521 test -z "$ac_dir" && ac_dir=.
14522 if test -f "$ac_dir/file"; then
14523 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
14524 if test -n "$file_magic_test_file"; then
14525 case $deplibs_check_method in
14526 "file_magic "*)
14527 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14528 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14529 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14530 $EGREP "$file_magic_regex" > /dev/null; then
14531 :
14532 else
14533 cat <<_LT_EOF 1>&2
14534
14535 *** Warning: the command libtool uses to detect shared libraries,
14536 *** $file_magic_cmd, produces output that libtool cannot recognize.
14537 *** The result is that libtool may fail to recognize shared libraries
14538 *** as such. This will affect the creation of libtool libraries that
14539 *** depend on shared libraries, but programs linked with such libtool
14540 *** libraries will work regardless of this problem. Nevertheless, you
14541 *** may want to report the problem to your system manager and/or to
14542 *** bug-libtool@gnu.org
14543
14544 _LT_EOF
14545 fi ;;
14546 esac
14547 fi
14548 break
14549 fi
14550 done
14551 IFS=$lt_save_ifs
14552 MAGIC_CMD=$lt_save_MAGIC_CMD
14553 ;;
14554 esac
14555 fi
14556
14557 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14558 if test -n "$MAGIC_CMD"; then
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14560 $as_echo "$MAGIC_CMD" >&6; }
14561 else
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14563 $as_echo "no" >&6; }
14564 fi
14565
14566
14567 else
14568 MAGIC_CMD=:
14569 fi
14570 fi
14571
14572 fi
14573 ;;
14574 esac
14575
14576 # Use C for the default configuration in the libtool script
14577
14578 lt_save_CC=$CC
14579 ac_ext=c
14580 ac_cpp='$CPP $CPPFLAGS'
14581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14584
14585
14586 # Source file extension for C test sources.
14587 ac_ext=c
14588
14589 # Object file extension for compiled C test sources.
14590 objext=o
14591 objext=$objext
14592
14593 # Code to be used in simple compile tests
14594 lt_simple_compile_test_code="int some_variable = 0;"
14595
14596 # Code to be used in simple link tests
14597 lt_simple_link_test_code='int main(){return(0);}'
14598
14599
14600
14601
14602
14603
14604
14605 # If no C compiler was specified, use CC.
14606 LTCC=${LTCC-"$CC"}
14607
14608 # If no C compiler flags were specified, use CFLAGS.
14609 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14610
14611 # Allow CC to be a program name with arguments.
14612 compiler=$CC
14613
14614 # Save the default compiler, since it gets overwritten when the other
14615 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14616 compiler_DEFAULT=$CC
14617
14618 # save warnings/boilerplate of simple test code
14619 ac_outfile=conftest.$ac_objext
14620 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14621 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14622 _lt_compiler_boilerplate=`cat conftest.err`
14623 $RM conftest*
14624
14625 ac_outfile=conftest.$ac_objext
14626 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14627 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14628 _lt_linker_boilerplate=`cat conftest.err`
14629 $RM -r conftest*
14630
14631
14632 if test -n "$compiler"; then
14633
14634 lt_prog_compiler_no_builtin_flag=
14635
14636 if test yes = "$GCC"; then
14637 case $cc_basename in
14638 nvcc*)
14639 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14640 *)
14641 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14642 esac
14643
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14645 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14646 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14647 $as_echo_n "(cached) " >&6
14648 else
14649 lt_cv_prog_compiler_rtti_exceptions=no
14650 ac_outfile=conftest.$ac_objext
14651 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14652 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
14653 # Insert the option either (1) after the last *FLAGS variable, or
14654 # (2) before a word containing "conftest.", or (3) at the end.
14655 # Note that $ac_compile itself does not contain backslashes and begins
14656 # with a dollar sign (not a hyphen), so the echo should work correctly.
14657 # The option is referenced via a variable to avoid confusing sed.
14658 lt_compile=`echo "$ac_compile" | $SED \
14659 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14660 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14661 -e 's:$: $lt_compiler_flag:'`
14662 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14663 (eval "$lt_compile" 2>conftest.err)
14664 ac_status=$?
14665 cat conftest.err >&5
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 if (exit $ac_status) && test -s "$ac_outfile"; then
14668 # The compiler can only warn and ignore the option if not recognized
14669 # So say no if there are warnings other than the usual output.
14670 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14671 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14672 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14673 lt_cv_prog_compiler_rtti_exceptions=yes
14674 fi
14675 fi
14676 $RM conftest*
14677
14678 fi
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14680 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14681
14682 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
14683 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14684 else
14685 :
14686 fi
14687
14688 fi
14689
14690
14691
14692
14693
14694
14695 lt_prog_compiler_wl=
14696 lt_prog_compiler_pic=
14697 lt_prog_compiler_static=
14698
14699
14700 if test yes = "$GCC"; then
14701 lt_prog_compiler_wl='-Wl,'
14702 lt_prog_compiler_static='-static'
14703
14704 case $host_os in
14705 aix*)
14706 # All AIX code is PIC.
14707 if test ia64 = "$host_cpu"; then
14708 # AIX 5 now supports IA64 processor
14709 lt_prog_compiler_static='-Bstatic'
14710 fi
14711 lt_prog_compiler_pic='-fPIC'
14712 ;;
14713
14714 amigaos*)
14715 case $host_cpu in
14716 powerpc)
14717 # see comment about AmigaOS4 .so support
14718 lt_prog_compiler_pic='-fPIC'
14719 ;;
14720 m68k)
14721 # FIXME: we need at least 68020 code to build shared libraries, but
14722 # adding the '-m68020' flag to GCC prevents building anything better,
14723 # like '-m68040'.
14724 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14725 ;;
14726 esac
14727 ;;
14728
14729 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14730 # PIC is the default for these OSes.
14731 ;;
14732
14733 mingw* | cygwin* | pw32* | os2* | cegcc*)
14734 # This hack is so that the source file can tell whether it is being
14735 # built for inclusion in a dll (and should export symbols for example).
14736 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14737 # (--disable-auto-import) libraries
14738 lt_prog_compiler_pic='-DDLL_EXPORT'
14739 case $host_os in
14740 os2*)
14741 lt_prog_compiler_static='$wl-static'
14742 ;;
14743 esac
14744 ;;
14745
14746 darwin* | rhapsody*)
14747 # PIC is the default on this platform
14748 # Common symbols not allowed in MH_DYLIB files
14749 lt_prog_compiler_pic='-fno-common'
14750 ;;
14751
14752 haiku*)
14753 # PIC is the default for Haiku.
14754 # The "-static" flag exists, but is broken.
14755 lt_prog_compiler_static=
14756 ;;
14757
14758 hpux*)
14759 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14760 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14761 # sets the default TLS model and affects inlining.
14762 case $host_cpu in
14763 hppa*64*)
14764 # +Z the default
14765 ;;
14766 *)
14767 lt_prog_compiler_pic='-fPIC'
14768 ;;
14769 esac
14770 ;;
14771
14772 interix[3-9]*)
14773 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14774 # Instead, we relocate shared libraries at runtime.
14775 ;;
14776
14777 msdosdjgpp*)
14778 # Just because we use GCC doesn't mean we suddenly get shared libraries
14779 # on systems that don't support them.
14780 lt_prog_compiler_can_build_shared=no
14781 enable_shared=no
14782 ;;
14783
14784 *nto* | *qnx*)
14785 # QNX uses GNU C++, but need to define -shared option too, otherwise
14786 # it will coredump.
14787 lt_prog_compiler_pic='-fPIC -shared'
14788 ;;
14789
14790 sysv4*MP*)
14791 if test -d /usr/nec; then
14792 lt_prog_compiler_pic=-Kconform_pic
14793 fi
14794 ;;
14795
14796 *)
14797 lt_prog_compiler_pic='-fPIC'
14798 ;;
14799 esac
14800
14801 case $cc_basename in
14802 nvcc*) # Cuda Compiler Driver 2.2
14803 lt_prog_compiler_wl='-Xlinker '
14804 if test -n "$lt_prog_compiler_pic"; then
14805 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14806 fi
14807 ;;
14808 esac
14809 else
14810 # PORTME Check for flag to pass linker flags through the system compiler.
14811 case $host_os in
14812 aix*)
14813 lt_prog_compiler_wl='-Wl,'
14814 if test ia64 = "$host_cpu"; then
14815 # AIX 5 now supports IA64 processor
14816 lt_prog_compiler_static='-Bstatic'
14817 else
14818 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14819 fi
14820 ;;
14821
14822 darwin* | rhapsody*)
14823 # PIC is the default on this platform
14824 # Common symbols not allowed in MH_DYLIB files
14825 lt_prog_compiler_pic='-fno-common'
14826 case $cc_basename in
14827 nagfor*)
14828 # NAG Fortran compiler
14829 lt_prog_compiler_wl='-Wl,-Wl,,'
14830 lt_prog_compiler_pic='-PIC'
14831 lt_prog_compiler_static='-Bstatic'
14832 ;;
14833 esac
14834 ;;
14835
14836 mingw* | cygwin* | pw32* | os2* | cegcc*)
14837 # This hack is so that the source file can tell whether it is being
14838 # built for inclusion in a dll (and should export symbols for example).
14839 lt_prog_compiler_pic='-DDLL_EXPORT'
14840 case $host_os in
14841 os2*)
14842 lt_prog_compiler_static='$wl-static'
14843 ;;
14844 esac
14845 ;;
14846
14847 hpux9* | hpux10* | hpux11*)
14848 lt_prog_compiler_wl='-Wl,'
14849 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14850 # not for PA HP-UX.
14851 case $host_cpu in
14852 hppa*64*|ia64*)
14853 # +Z the default
14854 ;;
14855 *)
14856 lt_prog_compiler_pic='+Z'
14857 ;;
14858 esac
14859 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14860 lt_prog_compiler_static='$wl-a ${wl}archive'
14861 ;;
14862
14863 irix5* | irix6* | nonstopux*)
14864 lt_prog_compiler_wl='-Wl,'
14865 # PIC (with -KPIC) is the default.
14866 lt_prog_compiler_static='-non_shared'
14867 ;;
14868
14869 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14870 case $cc_basename in
14871 # old Intel for x86_64, which still supported -KPIC.
14872 ecc*)
14873 lt_prog_compiler_wl='-Wl,'
14874 lt_prog_compiler_pic='-KPIC'
14875 lt_prog_compiler_static='-static'
14876 ;;
14877 # icc used to be incompatible with GCC.
14878 # ICC 10 doesn't accept -KPIC any more.
14879 icc* | ifort*)
14880 lt_prog_compiler_wl='-Wl,'
14881 lt_prog_compiler_pic='-fPIC'
14882 lt_prog_compiler_static='-static'
14883 ;;
14884 # Lahey Fortran 8.1.
14885 lf95*)
14886 lt_prog_compiler_wl='-Wl,'
14887 lt_prog_compiler_pic='--shared'
14888 lt_prog_compiler_static='--static'
14889 ;;
14890 nagfor*)
14891 # NAG Fortran compiler
14892 lt_prog_compiler_wl='-Wl,-Wl,,'
14893 lt_prog_compiler_pic='-PIC'
14894 lt_prog_compiler_static='-Bstatic'
14895 ;;
14896 tcc*)
14897 # Fabrice Bellard et al's Tiny C Compiler
14898 lt_prog_compiler_wl='-Wl,'
14899 lt_prog_compiler_pic='-fPIC'
14900 lt_prog_compiler_static='-static'
14901 ;;
14902 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14903 # Portland Group compilers (*not* the Pentium gcc compiler,
14904 # which looks to be a dead project)
14905 lt_prog_compiler_wl='-Wl,'
14906 lt_prog_compiler_pic='-fpic'
14907 lt_prog_compiler_static='-Bstatic'
14908 ;;
14909 ccc*)
14910 lt_prog_compiler_wl='-Wl,'
14911 # All Alpha code is PIC.
14912 lt_prog_compiler_static='-non_shared'
14913 ;;
14914 xl* | bgxl* | bgf* | mpixl*)
14915 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14916 lt_prog_compiler_wl='-Wl,'
14917 lt_prog_compiler_pic='-qpic'
14918 lt_prog_compiler_static='-qstaticlink'
14919 ;;
14920 *)
14921 case `$CC -V 2>&1 | sed 5q` in
14922 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14923 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14924 lt_prog_compiler_pic='-KPIC'
14925 lt_prog_compiler_static='-Bstatic'
14926 lt_prog_compiler_wl=''
14927 ;;
14928 *Sun\ F* | *Sun*Fortran*)
14929 lt_prog_compiler_pic='-KPIC'
14930 lt_prog_compiler_static='-Bstatic'
14931 lt_prog_compiler_wl='-Qoption ld '
14932 ;;
14933 *Sun\ C*)
14934 # Sun C 5.9
14935 lt_prog_compiler_pic='-KPIC'
14936 lt_prog_compiler_static='-Bstatic'
14937 lt_prog_compiler_wl='-Wl,'
14938 ;;
14939 *Intel*\ [CF]*Compiler*)
14940 lt_prog_compiler_wl='-Wl,'
14941 lt_prog_compiler_pic='-fPIC'
14942 lt_prog_compiler_static='-static'
14943 ;;
14944 *Portland\ Group*)
14945 lt_prog_compiler_wl='-Wl,'
14946 lt_prog_compiler_pic='-fpic'
14947 lt_prog_compiler_static='-Bstatic'
14948 ;;
14949 esac
14950 ;;
14951 esac
14952 ;;
14953
14954 newsos6)
14955 lt_prog_compiler_pic='-KPIC'
14956 lt_prog_compiler_static='-Bstatic'
14957 ;;
14958
14959 *nto* | *qnx*)
14960 # QNX uses GNU C++, but need to define -shared option too, otherwise
14961 # it will coredump.
14962 lt_prog_compiler_pic='-fPIC -shared'
14963 ;;
14964
14965 osf3* | osf4* | osf5*)
14966 lt_prog_compiler_wl='-Wl,'
14967 # All OSF/1 code is PIC.
14968 lt_prog_compiler_static='-non_shared'
14969 ;;
14970
14971 rdos*)
14972 lt_prog_compiler_static='-non_shared'
14973 ;;
14974
14975 solaris*)
14976 lt_prog_compiler_pic='-KPIC'
14977 lt_prog_compiler_static='-Bstatic'
14978 case $cc_basename in
14979 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14980 lt_prog_compiler_wl='-Qoption ld ';;
14981 *)
14982 lt_prog_compiler_wl='-Wl,';;
14983 esac
14984 ;;
14985
14986 sunos4*)
14987 lt_prog_compiler_wl='-Qoption ld '
14988 lt_prog_compiler_pic='-PIC'
14989 lt_prog_compiler_static='-Bstatic'
14990 ;;
14991
14992 sysv4 | sysv4.2uw2* | sysv4.3*)
14993 lt_prog_compiler_wl='-Wl,'
14994 lt_prog_compiler_pic='-KPIC'
14995 lt_prog_compiler_static='-Bstatic'
14996 ;;
14997
14998 sysv4*MP*)
14999 if test -d /usr/nec; then
15000 lt_prog_compiler_pic='-Kconform_pic'
15001 lt_prog_compiler_static='-Bstatic'
15002 fi
15003 ;;
15004
15005 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15006 lt_prog_compiler_wl='-Wl,'
15007 lt_prog_compiler_pic='-KPIC'
15008 lt_prog_compiler_static='-Bstatic'
15009 ;;
15010
15011 unicos*)
15012 lt_prog_compiler_wl='-Wl,'
15013 lt_prog_compiler_can_build_shared=no
15014 ;;
15015
15016 uts4*)
15017 lt_prog_compiler_pic='-pic'
15018 lt_prog_compiler_static='-Bstatic'
15019 ;;
15020
15021 *)
15022 lt_prog_compiler_can_build_shared=no
15023 ;;
15024 esac
15025 fi
15026
15027 case $host_os in
15028 # For platforms that do not support PIC, -DPIC is meaningless:
15029 *djgpp*)
15030 lt_prog_compiler_pic=
15031 ;;
15032 *)
15033 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15034 ;;
15035 esac
15036
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15038 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15039 if ${lt_cv_prog_compiler_pic+:} false; then :
15040 $as_echo_n "(cached) " >&6
15041 else
15042 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15043 fi
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15045 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
15046 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15047
15048 #
15049 # Check to make sure the PIC flag actually works.
15050 #
15051 if test -n "$lt_prog_compiler_pic"; then
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15053 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15054 if ${lt_cv_prog_compiler_pic_works+:} false; then :
15055 $as_echo_n "(cached) " >&6
15056 else
15057 lt_cv_prog_compiler_pic_works=no
15058 ac_outfile=conftest.$ac_objext
15059 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15060 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
15061 # Insert the option either (1) after the last *FLAGS variable, or
15062 # (2) before a word containing "conftest.", or (3) at the end.
15063 # Note that $ac_compile itself does not contain backslashes and begins
15064 # with a dollar sign (not a hyphen), so the echo should work correctly.
15065 # The option is referenced via a variable to avoid confusing sed.
15066 lt_compile=`echo "$ac_compile" | $SED \
15067 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15068 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15069 -e 's:$: $lt_compiler_flag:'`
15070 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15071 (eval "$lt_compile" 2>conftest.err)
15072 ac_status=$?
15073 cat conftest.err >&5
15074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075 if (exit $ac_status) && test -s "$ac_outfile"; then
15076 # The compiler can only warn and ignore the option if not recognized
15077 # So say no if there are warnings other than the usual output.
15078 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15079 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15080 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15081 lt_cv_prog_compiler_pic_works=yes
15082 fi
15083 fi
15084 $RM conftest*
15085
15086 fi
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15088 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15089
15090 if test yes = "$lt_cv_prog_compiler_pic_works"; then
15091 case $lt_prog_compiler_pic in
15092 "" | " "*) ;;
15093 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15094 esac
15095 else
15096 lt_prog_compiler_pic=
15097 lt_prog_compiler_can_build_shared=no
15098 fi
15099
15100 fi
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112 #
15113 # Check to make sure the static flag actually works.
15114 #
15115 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15117 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15118 if ${lt_cv_prog_compiler_static_works+:} false; then :
15119 $as_echo_n "(cached) " >&6
15120 else
15121 lt_cv_prog_compiler_static_works=no
15122 save_LDFLAGS=$LDFLAGS
15123 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15124 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15125 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15126 # The linker can only warn and ignore the option if not recognized
15127 # So say no if there are warnings
15128 if test -s conftest.err; then
15129 # Append any errors to the config.log.
15130 cat conftest.err 1>&5
15131 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15132 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15133 if diff conftest.exp conftest.er2 >/dev/null; then
15134 lt_cv_prog_compiler_static_works=yes
15135 fi
15136 else
15137 lt_cv_prog_compiler_static_works=yes
15138 fi
15139 fi
15140 $RM -r conftest*
15141 LDFLAGS=$save_LDFLAGS
15142
15143 fi
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15145 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15146
15147 if test yes = "$lt_cv_prog_compiler_static_works"; then
15148 :
15149 else
15150 lt_prog_compiler_static=
15151 fi
15152
15153
15154
15155
15156
15157
15158
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15160 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15161 if ${lt_cv_prog_compiler_c_o+:} false; then :
15162 $as_echo_n "(cached) " >&6
15163 else
15164 lt_cv_prog_compiler_c_o=no
15165 $RM -r conftest 2>/dev/null
15166 mkdir conftest
15167 cd conftest
15168 mkdir out
15169 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15170
15171 lt_compiler_flag="-o out/conftest2.$ac_objext"
15172 # Insert the option either (1) after the last *FLAGS variable, or
15173 # (2) before a word containing "conftest.", or (3) at the end.
15174 # Note that $ac_compile itself does not contain backslashes and begins
15175 # with a dollar sign (not a hyphen), so the echo should work correctly.
15176 lt_compile=`echo "$ac_compile" | $SED \
15177 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15178 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15179 -e 's:$: $lt_compiler_flag:'`
15180 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15181 (eval "$lt_compile" 2>out/conftest.err)
15182 ac_status=$?
15183 cat out/conftest.err >&5
15184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15186 then
15187 # The compiler can only warn and ignore the option if not recognized
15188 # So say no if there are warnings
15189 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15190 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15191 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15192 lt_cv_prog_compiler_c_o=yes
15193 fi
15194 fi
15195 chmod u+w . 2>&5
15196 $RM conftest*
15197 # SGI C++ compiler will create directory out/ii_files/ for
15198 # template instantiation
15199 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15200 $RM out/* && rmdir out
15201 cd ..
15202 $RM -r conftest
15203 $RM conftest*
15204
15205 fi
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15207 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15208
15209
15210
15211
15212
15213
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15215 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15216 if ${lt_cv_prog_compiler_c_o+:} false; then :
15217 $as_echo_n "(cached) " >&6
15218 else
15219 lt_cv_prog_compiler_c_o=no
15220 $RM -r conftest 2>/dev/null
15221 mkdir conftest
15222 cd conftest
15223 mkdir out
15224 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15225
15226 lt_compiler_flag="-o out/conftest2.$ac_objext"
15227 # Insert the option either (1) after the last *FLAGS variable, or
15228 # (2) before a word containing "conftest.", or (3) at the end.
15229 # Note that $ac_compile itself does not contain backslashes and begins
15230 # with a dollar sign (not a hyphen), so the echo should work correctly.
15231 lt_compile=`echo "$ac_compile" | $SED \
15232 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15234 -e 's:$: $lt_compiler_flag:'`
15235 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15236 (eval "$lt_compile" 2>out/conftest.err)
15237 ac_status=$?
15238 cat out/conftest.err >&5
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15241 then
15242 # The compiler can only warn and ignore the option if not recognized
15243 # So say no if there are warnings
15244 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15245 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15246 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15247 lt_cv_prog_compiler_c_o=yes
15248 fi
15249 fi
15250 chmod u+w . 2>&5
15251 $RM conftest*
15252 # SGI C++ compiler will create directory out/ii_files/ for
15253 # template instantiation
15254 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15255 $RM out/* && rmdir out
15256 cd ..
15257 $RM -r conftest
15258 $RM conftest*
15259
15260 fi
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15262 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15263
15264
15265
15266
15267 hard_links=nottested
15268 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
15269 # do not overwrite the value of need_locks provided by the user
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15271 $as_echo_n "checking if we can lock with hard links... " >&6; }
15272 hard_links=yes
15273 $RM conftest*
15274 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15275 touch conftest.a
15276 ln conftest.a conftest.b 2>&5 || hard_links=no
15277 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15279 $as_echo "$hard_links" >&6; }
15280 if test no = "$hard_links"; then
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15282 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15283 need_locks=warn
15284 fi
15285 else
15286 need_locks=no
15287 fi
15288
15289
15290
15291
15292
15293
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15295 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15296
15297 runpath_var=
15298 allow_undefined_flag=
15299 always_export_symbols=no
15300 archive_cmds=
15301 archive_expsym_cmds=
15302 compiler_needs_object=no
15303 enable_shared_with_static_runtimes=no
15304 export_dynamic_flag_spec=
15305 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15306 hardcode_automatic=no
15307 hardcode_direct=no
15308 hardcode_direct_absolute=no
15309 hardcode_libdir_flag_spec=
15310 hardcode_libdir_separator=
15311 hardcode_minus_L=no
15312 hardcode_shlibpath_var=unsupported
15313 inherit_rpath=no
15314 link_all_deplibs=unknown
15315 module_cmds=
15316 module_expsym_cmds=
15317 old_archive_from_new_cmds=
15318 old_archive_from_expsyms_cmds=
15319 thread_safe_flag_spec=
15320 whole_archive_flag_spec=
15321 # include_expsyms should be a list of space-separated symbols to be *always*
15322 # included in the symbol list
15323 include_expsyms=
15324 # exclude_expsyms can be an extended regexp of symbols to exclude
15325 # it will be wrapped by ' (' and ')$', so one must not match beginning or
15326 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
15327 # as well as any symbol that contains 'd'.
15328 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15329 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15330 # platforms (ab)use it in PIC code, but their linkers get confused if
15331 # the symbol is explicitly referenced. Since portable code cannot
15332 # rely on this symbol name, it's probably fine to never include it in
15333 # preloaded symbol tables.
15334 # Exclude shared library initialization/finalization symbols.
15335 extract_expsyms_cmds=
15336
15337 case $host_os in
15338 cygwin* | mingw* | pw32* | cegcc*)
15339 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15340 # When not using gcc, we currently assume that we are using
15341 # Microsoft Visual C++.
15342 if test yes != "$GCC"; then
15343 with_gnu_ld=no
15344 fi
15345 ;;
15346 interix*)
15347 # we just hope/assume this is gcc and not c89 (= MSVC++)
15348 with_gnu_ld=yes
15349 ;;
15350 openbsd* | bitrig*)
15351 with_gnu_ld=no
15352 ;;
15353 esac
15354
15355 ld_shlibs=yes
15356
15357 # On some targets, GNU ld is compatible enough with the native linker
15358 # that we're better off using the native interface for both.
15359 lt_use_gnu_ld_interface=no
15360 if test yes = "$with_gnu_ld"; then
15361 case $host_os in
15362 aix*)
15363 # The AIX port of GNU ld has always aspired to compatibility
15364 # with the native linker. However, as the warning in the GNU ld
15365 # block says, versions before 2.19.5* couldn't really create working
15366 # shared libraries, regardless of the interface used.
15367 case `$LD -v 2>&1` in
15368 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15369 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15370 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15371 *)
15372 lt_use_gnu_ld_interface=yes
15373 ;;
15374 esac
15375 ;;
15376 *)
15377 lt_use_gnu_ld_interface=yes
15378 ;;
15379 esac
15380 fi
15381
15382 if test yes = "$lt_use_gnu_ld_interface"; then
15383 # If archive_cmds runs LD, not CC, wlarc should be empty
15384 wlarc='$wl'
15385
15386 # Set some defaults for GNU ld with shared library support. These
15387 # are reset later if shared libraries are not supported. Putting them
15388 # here allows them to be overridden if necessary.
15389 runpath_var=LD_RUN_PATH
15390 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15391 export_dynamic_flag_spec='$wl--export-dynamic'
15392 # ancient GNU ld didn't support --whole-archive et. al.
15393 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15394 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15395 else
15396 whole_archive_flag_spec=
15397 fi
15398 supports_anon_versioning=no
15399 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
15400 *GNU\ gold*) supports_anon_versioning=yes ;;
15401 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15402 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15403 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15404 *\ 2.11.*) ;; # other 2.11 versions
15405 *) supports_anon_versioning=yes ;;
15406 esac
15407
15408 # See if GNU ld supports shared libraries.
15409 case $host_os in
15410 aix[3-9]*)
15411 # On AIX/PPC, the GNU linker is very broken
15412 if test ia64 != "$host_cpu"; then
15413 ld_shlibs=no
15414 cat <<_LT_EOF 1>&2
15415
15416 *** Warning: the GNU linker, at least up to release 2.19, is reported
15417 *** to be unable to reliably create shared libraries on AIX.
15418 *** Therefore, libtool is disabling shared libraries support. If you
15419 *** really care for shared libraries, you may want to install binutils
15420 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15421 *** You will then need to restart the configuration process.
15422
15423 _LT_EOF
15424 fi
15425 ;;
15426
15427 amigaos*)
15428 case $host_cpu in
15429 powerpc)
15430 # see comment about AmigaOS4 .so support
15431 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15432 archive_expsym_cmds=''
15433 ;;
15434 m68k)
15435 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)'
15436 hardcode_libdir_flag_spec='-L$libdir'
15437 hardcode_minus_L=yes
15438 ;;
15439 esac
15440 ;;
15441
15442 beos*)
15443 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15444 allow_undefined_flag=unsupported
15445 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
15446 # support --undefined. This deserves some investigation. FIXME
15447 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15448 else
15449 ld_shlibs=no
15450 fi
15451 ;;
15452
15453 cygwin* | mingw* | pw32* | cegcc*)
15454 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15455 # as there is no search path for DLLs.
15456 hardcode_libdir_flag_spec='-L$libdir'
15457 export_dynamic_flag_spec='$wl--export-all-symbols'
15458 allow_undefined_flag=unsupported
15459 always_export_symbols=no
15460 enable_shared_with_static_runtimes=yes
15461 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'
15462 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15463
15464 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15465 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15466 # If the export-symbols file already is a .def file, use it as
15467 # is; otherwise, prepend EXPORTS...
15468 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15469 cp $export_symbols $output_objdir/$soname.def;
15470 else
15471 echo EXPORTS > $output_objdir/$soname.def;
15472 cat $export_symbols >> $output_objdir/$soname.def;
15473 fi~
15474 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15475 else
15476 ld_shlibs=no
15477 fi
15478 ;;
15479
15480 haiku*)
15481 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15482 link_all_deplibs=yes
15483 ;;
15484
15485 os2*)
15486 hardcode_libdir_flag_spec='-L$libdir'
15487 hardcode_minus_L=yes
15488 allow_undefined_flag=unsupported
15489 shrext_cmds=.dll
15490 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15491 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15492 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15493 $ECHO EXPORTS >> $output_objdir/$libname.def~
15494 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15495 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15496 emximp -o $lib $output_objdir/$libname.def'
15497 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15498 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15499 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15500 $ECHO EXPORTS >> $output_objdir/$libname.def~
15501 prefix_cmds="$SED"~
15502 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15503 prefix_cmds="$prefix_cmds -e 1d";
15504 fi~
15505 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15506 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15507 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15508 emximp -o $lib $output_objdir/$libname.def'
15509 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15510 enable_shared_with_static_runtimes=yes
15511 ;;
15512
15513 interix[3-9]*)
15514 hardcode_direct=no
15515 hardcode_shlibpath_var=no
15516 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15517 export_dynamic_flag_spec='$wl-E'
15518 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15519 # Instead, shared libraries are loaded at an image base (0x10000000 by
15520 # default) and relocated if they conflict, which is a slow very memory
15521 # consuming and fragmenting process. To avoid this, we pick a random,
15522 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15523 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15524 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15525 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'
15526 ;;
15527
15528 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15529 tmp_diet=no
15530 if test linux-dietlibc = "$host_os"; then
15531 case $cc_basename in
15532 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15533 esac
15534 fi
15535 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15536 && test no = "$tmp_diet"
15537 then
15538 tmp_addflag=' $pic_flag'
15539 tmp_sharedflag='-shared'
15540 case $cc_basename,$host_cpu in
15541 pgcc*) # Portland Group C compiler
15542 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'
15543 tmp_addflag=' $pic_flag'
15544 ;;
15545 pgf77* | pgf90* | pgf95* | pgfortran*)
15546 # Portland Group f77 and f90 compilers
15547 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'
15548 tmp_addflag=' $pic_flag -Mnomain' ;;
15549 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15550 tmp_addflag=' -i_dynamic' ;;
15551 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15552 tmp_addflag=' -i_dynamic -nofor_main' ;;
15553 ifc* | ifort*) # Intel Fortran compiler
15554 tmp_addflag=' -nofor_main' ;;
15555 lf95*) # Lahey Fortran 8.1
15556 whole_archive_flag_spec=
15557 tmp_sharedflag='--shared' ;;
15558 nagfor*) # NAGFOR 5.3
15559 tmp_sharedflag='-Wl,-shared' ;;
15560 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15561 tmp_sharedflag='-qmkshrobj'
15562 tmp_addflag= ;;
15563 nvcc*) # Cuda Compiler Driver 2.2
15564 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'
15565 compiler_needs_object=yes
15566 ;;
15567 esac
15568 case `$CC -V 2>&1 | sed 5q` in
15569 *Sun\ C*) # Sun C 5.9
15570 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'
15571 compiler_needs_object=yes
15572 tmp_sharedflag='-G' ;;
15573 *Sun\ F*) # Sun Fortran 8.3
15574 tmp_sharedflag='-G' ;;
15575 esac
15576 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15577
15578 if test yes = "$supports_anon_versioning"; then
15579 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15580 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15581 echo "local: *; };" >> $output_objdir/$libname.ver~
15582 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15583 fi
15584
15585 case $cc_basename in
15586 tcc*)
15587 export_dynamic_flag_spec='-rdynamic'
15588 ;;
15589 xlf* | bgf* | bgxlf* | mpixlf*)
15590 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15591 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15592 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15593 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15594 if test yes = "$supports_anon_versioning"; then
15595 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15596 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15597 echo "local: *; };" >> $output_objdir/$libname.ver~
15598 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15599 fi
15600 ;;
15601 esac
15602 else
15603 ld_shlibs=no
15604 fi
15605 ;;
15606
15607 netbsd*)
15608 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15609 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15610 wlarc=
15611 else
15612 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15613 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15614 fi
15615 ;;
15616
15617 solaris*)
15618 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15619 ld_shlibs=no
15620 cat <<_LT_EOF 1>&2
15621
15622 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15623 *** create shared libraries on Solaris systems. Therefore, libtool
15624 *** is disabling shared libraries support. We urge you to upgrade GNU
15625 *** binutils to release 2.9.1 or newer. Another option is to modify
15626 *** your PATH or compiler configuration so that the native linker is
15627 *** used, and then restart.
15628
15629 _LT_EOF
15630 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15631 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15632 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15633 else
15634 ld_shlibs=no
15635 fi
15636 ;;
15637
15638 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15639 case `$LD -v 2>&1` in
15640 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15641 ld_shlibs=no
15642 cat <<_LT_EOF 1>&2
15643
15644 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
15645 *** reliably create shared libraries on SCO systems. Therefore, libtool
15646 *** is disabling shared libraries support. We urge you to upgrade GNU
15647 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15648 *** your PATH or compiler configuration so that the native linker is
15649 *** used, and then restart.
15650
15651 _LT_EOF
15652 ;;
15653 *)
15654 # For security reasons, it is highly recommended that you always
15655 # use absolute paths for naming shared libraries, and exclude the
15656 # DT_RUNPATH tag from executables and libraries. But doing so
15657 # requires that you compile everything twice, which is a pain.
15658 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15659 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15660 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15661 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15662 else
15663 ld_shlibs=no
15664 fi
15665 ;;
15666 esac
15667 ;;
15668
15669 sunos4*)
15670 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15671 wlarc=
15672 hardcode_direct=yes
15673 hardcode_shlibpath_var=no
15674 ;;
15675
15676 *)
15677 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15678 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15679 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15680 else
15681 ld_shlibs=no
15682 fi
15683 ;;
15684 esac
15685
15686 if test no = "$ld_shlibs"; then
15687 runpath_var=
15688 hardcode_libdir_flag_spec=
15689 export_dynamic_flag_spec=
15690 whole_archive_flag_spec=
15691 fi
15692 else
15693 # PORTME fill in a description of your system's linker (not GNU ld)
15694 case $host_os in
15695 aix3*)
15696 allow_undefined_flag=unsupported
15697 always_export_symbols=yes
15698 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'
15699 # Note: this linker hardcodes the directories in LIBPATH if there
15700 # are no directories specified by -L.
15701 hardcode_minus_L=yes
15702 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
15703 # Neither direct hardcoding nor static linking is supported with a
15704 # broken collect2.
15705 hardcode_direct=unsupported
15706 fi
15707 ;;
15708
15709 aix[4-9]*)
15710 if test ia64 = "$host_cpu"; then
15711 # On IA64, the linker does run time linking by default, so we don't
15712 # have to do anything special.
15713 aix_use_runtimelinking=no
15714 exp_sym_flag='-Bexport'
15715 no_entry_flag=
15716 else
15717 # If we're using GNU nm, then we don't want the "-C" option.
15718 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15719 # Without the "-l" option, or with the "-B" option, AIX nm treats
15720 # weak defined symbols like other global defined symbols, whereas
15721 # GNU nm marks them as "W".
15722 # While the 'weak' keyword is ignored in the Export File, we need
15723 # it in the Import File for the 'aix-soname' feature, so we have
15724 # to replace the "-B" option with "-P" for AIX nm.
15725 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15726 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'
15727 else
15728 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'
15729 fi
15730 aix_use_runtimelinking=no
15731
15732 # Test if we are trying to use run time linking or normal
15733 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15734 # have runtime linking enabled, and use it for executables.
15735 # For shared libraries, we enable/disable runtime linking
15736 # depending on the kind of the shared library created -
15737 # when "with_aix_soname,aix_use_runtimelinking" is:
15738 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15739 # "aix,yes" lib.so shared, rtl:yes, for executables
15740 # lib.a static archive
15741 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15742 # lib.a(lib.so.V) shared, rtl:no, for executables
15743 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15744 # lib.a(lib.so.V) shared, rtl:no
15745 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15746 # lib.a static archive
15747 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15748 for ld_flag in $LDFLAGS; do
15749 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
15750 aix_use_runtimelinking=yes
15751 break
15752 fi
15753 done
15754 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15755 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15756 # so we don't have lib.a shared libs to link our executables.
15757 # We have to force runtime linking in this case.
15758 aix_use_runtimelinking=yes
15759 LDFLAGS="$LDFLAGS -Wl,-brtl"
15760 fi
15761 ;;
15762 esac
15763
15764 exp_sym_flag='-bexport'
15765 no_entry_flag='-bnoentry'
15766 fi
15767
15768 # When large executables or shared objects are built, AIX ld can
15769 # have problems creating the table of contents. If linking a library
15770 # or program results in "error TOC overflow" add -mminimal-toc to
15771 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15772 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15773
15774 archive_cmds=''
15775 hardcode_direct=yes
15776 hardcode_direct_absolute=yes
15777 hardcode_libdir_separator=':'
15778 link_all_deplibs=yes
15779 file_list_spec='$wl-f,'
15780 case $with_aix_soname,$aix_use_runtimelinking in
15781 aix,*) ;; # traditional, no import file
15782 svr4,* | *,yes) # use import file
15783 # The Import File defines what to hardcode.
15784 hardcode_direct=no
15785 hardcode_direct_absolute=no
15786 ;;
15787 esac
15788
15789 if test yes = "$GCC"; then
15790 case $host_os in aix4.[012]|aix4.[012].*)
15791 # We only want to do this on AIX 4.2 and lower, the check
15792 # below for broken collect2 doesn't work under 4.3+
15793 collect2name=`$CC -print-prog-name=collect2`
15794 if test -f "$collect2name" &&
15795 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15796 then
15797 # We have reworked collect2
15798 :
15799 else
15800 # We have old collect2
15801 hardcode_direct=unsupported
15802 # It fails to find uninstalled libraries when the uninstalled
15803 # path is not listed in the libpath. Setting hardcode_minus_L
15804 # to unsupported forces relinking
15805 hardcode_minus_L=yes
15806 hardcode_libdir_flag_spec='-L$libdir'
15807 hardcode_libdir_separator=
15808 fi
15809 ;;
15810 esac
15811 shared_flag='-shared'
15812 if test yes = "$aix_use_runtimelinking"; then
15813 shared_flag="$shared_flag "'$wl-G'
15814 fi
15815 # Need to ensure runtime linking is disabled for the traditional
15816 # shared library, or the linker may eventually find shared libraries
15817 # /with/ Import File - we do not want to mix them.
15818 shared_flag_aix='-shared'
15819 shared_flag_svr4='-shared $wl-G'
15820 else
15821 # not using gcc
15822 if test ia64 = "$host_cpu"; then
15823 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15824 # chokes on -Wl,-G. The following line is correct:
15825 shared_flag='-G'
15826 else
15827 if test yes = "$aix_use_runtimelinking"; then
15828 shared_flag='$wl-G'
15829 else
15830 shared_flag='$wl-bM:SRE'
15831 fi
15832 shared_flag_aix='$wl-bM:SRE'
15833 shared_flag_svr4='$wl-G'
15834 fi
15835 fi
15836
15837 export_dynamic_flag_spec='$wl-bexpall'
15838 # It seems that -bexpall does not export symbols beginning with
15839 # underscore (_), so it is better to generate a list of symbols to export.
15840 always_export_symbols=yes
15841 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15842 # Warning - without using the other runtime loading flags (-brtl),
15843 # -berok will link without error, but may produce a broken library.
15844 allow_undefined_flag='-berok'
15845 # Determine the default libpath from the value encoded in an
15846 # empty executable.
15847 if test set = "${lt_cv_aix_libpath+set}"; then
15848 aix_libpath=$lt_cv_aix_libpath
15849 else
15850 if ${lt_cv_aix_libpath_+:} false; then :
15851 $as_echo_n "(cached) " >&6
15852 else
15853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15854 /* end confdefs.h. */
15855
15856 int
15857 main ()
15858 {
15859
15860 ;
15861 return 0;
15862 }
15863 _ACEOF
15864 if ac_fn_c_try_link "$LINENO"; then :
15865
15866 lt_aix_libpath_sed='
15867 /Import File Strings/,/^$/ {
15868 /^0/ {
15869 s/^0 *\([^ ]*\) *$/\1/
15870 p
15871 }
15872 }'
15873 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15874 # Check for a 64-bit object if we didn't find anything.
15875 if test -z "$lt_cv_aix_libpath_"; then
15876 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15877 fi
15878 fi
15879 rm -f core conftest.err conftest.$ac_objext \
15880 conftest$ac_exeext conftest.$ac_ext
15881 if test -z "$lt_cv_aix_libpath_"; then
15882 lt_cv_aix_libpath_=/usr/lib:/lib
15883 fi
15884
15885 fi
15886
15887 aix_libpath=$lt_cv_aix_libpath_
15888 fi
15889
15890 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15891 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
15892 else
15893 if test ia64 = "$host_cpu"; then
15894 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
15895 allow_undefined_flag="-z nodefs"
15896 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"
15897 else
15898 # Determine the default libpath from the value encoded in an
15899 # empty executable.
15900 if test set = "${lt_cv_aix_libpath+set}"; then
15901 aix_libpath=$lt_cv_aix_libpath
15902 else
15903 if ${lt_cv_aix_libpath_+:} false; then :
15904 $as_echo_n "(cached) " >&6
15905 else
15906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15907 /* end confdefs.h. */
15908
15909 int
15910 main ()
15911 {
15912
15913 ;
15914 return 0;
15915 }
15916 _ACEOF
15917 if ac_fn_c_try_link "$LINENO"; then :
15918
15919 lt_aix_libpath_sed='
15920 /Import File Strings/,/^$/ {
15921 /^0/ {
15922 s/^0 *\([^ ]*\) *$/\1/
15923 p
15924 }
15925 }'
15926 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15927 # Check for a 64-bit object if we didn't find anything.
15928 if test -z "$lt_cv_aix_libpath_"; then
15929 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15930 fi
15931 fi
15932 rm -f core conftest.err conftest.$ac_objext \
15933 conftest$ac_exeext conftest.$ac_ext
15934 if test -z "$lt_cv_aix_libpath_"; then
15935 lt_cv_aix_libpath_=/usr/lib:/lib
15936 fi
15937
15938 fi
15939
15940 aix_libpath=$lt_cv_aix_libpath_
15941 fi
15942
15943 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15944 # Warning - without using the other run time loading flags,
15945 # -berok will link without error, but may produce a broken library.
15946 no_undefined_flag=' $wl-bernotok'
15947 allow_undefined_flag=' $wl-berok'
15948 if test yes = "$with_gnu_ld"; then
15949 # We only use this code for GNU lds that support --whole-archive.
15950 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
15951 else
15952 # Exported symbols can be pulled into shared objects from archives
15953 whole_archive_flag_spec='$convenience'
15954 fi
15955 archive_cmds_need_lc=yes
15956 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15957 # -brtl affects multiple linker settings, -berok does not and is overridden later
15958 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15959 if test svr4 != "$with_aix_soname"; then
15960 # This is similar to how AIX traditionally builds its shared libraries.
15961 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'
15962 fi
15963 if test aix != "$with_aix_soname"; then
15964 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'
15965 else
15966 # used by -dlpreopen to get the symbols
15967 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15968 fi
15969 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
15970 fi
15971 fi
15972 ;;
15973
15974 amigaos*)
15975 case $host_cpu in
15976 powerpc)
15977 # see comment about AmigaOS4 .so support
15978 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15979 archive_expsym_cmds=''
15980 ;;
15981 m68k)
15982 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)'
15983 hardcode_libdir_flag_spec='-L$libdir'
15984 hardcode_minus_L=yes
15985 ;;
15986 esac
15987 ;;
15988
15989 bsdi[45]*)
15990 export_dynamic_flag_spec=-rdynamic
15991 ;;
15992
15993 cygwin* | mingw* | pw32* | cegcc*)
15994 # When not using gcc, we currently assume that we are using
15995 # Microsoft Visual C++.
15996 # hardcode_libdir_flag_spec is actually meaningless, as there is
15997 # no search path for DLLs.
15998 case $cc_basename in
15999 cl*)
16000 # Native MSVC
16001 hardcode_libdir_flag_spec=' '
16002 allow_undefined_flag=unsupported
16003 always_export_symbols=yes
16004 file_list_spec='@'
16005 # Tell ltmain to make .lib files, not .a files.
16006 libext=lib
16007 # Tell ltmain to make .dll files, not .so files.
16008 shrext_cmds=.dll
16009 # FIXME: Setting linknames here is a bad hack.
16010 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16011 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16012 cp "$export_symbols" "$output_objdir/$soname.def";
16013 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16014 else
16015 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16016 fi~
16017 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16018 linknames='
16019 # The linker will not automatically build a static lib if we build a DLL.
16020 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16021 enable_shared_with_static_runtimes=yes
16022 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16023 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16024 # Don't use ranlib
16025 old_postinstall_cmds='chmod 644 $oldlib'
16026 postlink_cmds='lt_outputfile="@OUTPUT@"~
16027 lt_tool_outputfile="@TOOL_OUTPUT@"~
16028 case $lt_outputfile in
16029 *.exe|*.EXE) ;;
16030 *)
16031 lt_outputfile=$lt_outputfile.exe
16032 lt_tool_outputfile=$lt_tool_outputfile.exe
16033 ;;
16034 esac~
16035 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16036 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16037 $RM "$lt_outputfile.manifest";
16038 fi'
16039 ;;
16040 *)
16041 # Assume MSVC wrapper
16042 hardcode_libdir_flag_spec=' '
16043 allow_undefined_flag=unsupported
16044 # Tell ltmain to make .lib files, not .a files.
16045 libext=lib
16046 # Tell ltmain to make .dll files, not .so files.
16047 shrext_cmds=.dll
16048 # FIXME: Setting linknames here is a bad hack.
16049 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16050 # The linker will automatically build a .lib file if we build a DLL.
16051 old_archive_from_new_cmds='true'
16052 # FIXME: Should let the user specify the lib program.
16053 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16054 enable_shared_with_static_runtimes=yes
16055 ;;
16056 esac
16057 ;;
16058
16059 darwin* | rhapsody*)
16060
16061
16062 archive_cmds_need_lc=no
16063 hardcode_direct=no
16064 hardcode_automatic=yes
16065 hardcode_shlibpath_var=unsupported
16066 if test yes = "$lt_cv_ld_force_load"; then
16067 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\"`'
16068
16069 else
16070 whole_archive_flag_spec=''
16071 fi
16072 link_all_deplibs=yes
16073 allow_undefined_flag=$_lt_dar_allow_undefined
16074 case $cc_basename in
16075 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16076 *) _lt_dar_can_shared=$GCC ;;
16077 esac
16078 if test yes = "$_lt_dar_can_shared"; then
16079 output_verbose_link_cmd=func_echo_all
16080 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16081 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16082 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"
16083 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"
16084
16085 else
16086 ld_shlibs=no
16087 fi
16088
16089 ;;
16090
16091 dgux*)
16092 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16093 hardcode_libdir_flag_spec='-L$libdir'
16094 hardcode_shlibpath_var=no
16095 ;;
16096
16097 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16098 # support. Future versions do this automatically, but an explicit c++rt0.o
16099 # does not break anything, and helps significantly (at the cost of a little
16100 # extra space).
16101 freebsd2.2*)
16102 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16103 hardcode_libdir_flag_spec='-R$libdir'
16104 hardcode_direct=yes
16105 hardcode_shlibpath_var=no
16106 ;;
16107
16108 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16109 freebsd2.*)
16110 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16111 hardcode_direct=yes
16112 hardcode_minus_L=yes
16113 hardcode_shlibpath_var=no
16114 ;;
16115
16116 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16117 freebsd* | dragonfly*)
16118 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16119 hardcode_libdir_flag_spec='-R$libdir'
16120 hardcode_direct=yes
16121 hardcode_shlibpath_var=no
16122 ;;
16123
16124 hpux9*)
16125 if test yes = "$GCC"; then
16126 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'
16127 else
16128 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'
16129 fi
16130 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16131 hardcode_libdir_separator=:
16132 hardcode_direct=yes
16133
16134 # hardcode_minus_L: Not really in the search PATH,
16135 # but as the default location of the library.
16136 hardcode_minus_L=yes
16137 export_dynamic_flag_spec='$wl-E'
16138 ;;
16139
16140 hpux10*)
16141 if test yes,no = "$GCC,$with_gnu_ld"; then
16142 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16143 else
16144 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16145 fi
16146 if test no = "$with_gnu_ld"; then
16147 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16148 hardcode_libdir_separator=:
16149 hardcode_direct=yes
16150 hardcode_direct_absolute=yes
16151 export_dynamic_flag_spec='$wl-E'
16152 # hardcode_minus_L: Not really in the search PATH,
16153 # but as the default location of the library.
16154 hardcode_minus_L=yes
16155 fi
16156 ;;
16157
16158 hpux11*)
16159 if test yes,no = "$GCC,$with_gnu_ld"; then
16160 case $host_cpu in
16161 hppa*64*)
16162 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16163 ;;
16164 ia64*)
16165 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16166 ;;
16167 *)
16168 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16169 ;;
16170 esac
16171 else
16172 case $host_cpu in
16173 hppa*64*)
16174 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16175 ;;
16176 ia64*)
16177 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16178 ;;
16179 *)
16180
16181 # Older versions of the 11.00 compiler do not understand -b yet
16182 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16184 $as_echo_n "checking if $CC understands -b... " >&6; }
16185 if ${lt_cv_prog_compiler__b+:} false; then :
16186 $as_echo_n "(cached) " >&6
16187 else
16188 lt_cv_prog_compiler__b=no
16189 save_LDFLAGS=$LDFLAGS
16190 LDFLAGS="$LDFLAGS -b"
16191 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16192 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16193 # The linker can only warn and ignore the option if not recognized
16194 # So say no if there are warnings
16195 if test -s conftest.err; then
16196 # Append any errors to the config.log.
16197 cat conftest.err 1>&5
16198 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16199 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16200 if diff conftest.exp conftest.er2 >/dev/null; then
16201 lt_cv_prog_compiler__b=yes
16202 fi
16203 else
16204 lt_cv_prog_compiler__b=yes
16205 fi
16206 fi
16207 $RM -r conftest*
16208 LDFLAGS=$save_LDFLAGS
16209
16210 fi
16211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16212 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16213
16214 if test yes = "$lt_cv_prog_compiler__b"; then
16215 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16216 else
16217 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16218 fi
16219
16220 ;;
16221 esac
16222 fi
16223 if test no = "$with_gnu_ld"; then
16224 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16225 hardcode_libdir_separator=:
16226
16227 case $host_cpu in
16228 hppa*64*|ia64*)
16229 hardcode_direct=no
16230 hardcode_shlibpath_var=no
16231 ;;
16232 *)
16233 hardcode_direct=yes
16234 hardcode_direct_absolute=yes
16235 export_dynamic_flag_spec='$wl-E'
16236
16237 # hardcode_minus_L: Not really in the search PATH,
16238 # but as the default location of the library.
16239 hardcode_minus_L=yes
16240 ;;
16241 esac
16242 fi
16243 ;;
16244
16245 irix5* | irix6* | nonstopux*)
16246 if test yes = "$GCC"; then
16247 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'
16248 # Try to use the -exported_symbol ld option, if it does not
16249 # work, assume that -exports_file does not work either and
16250 # implicitly export all symbols.
16251 # This should be the same for all languages, so no per-tag cache variable.
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16253 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16254 if ${lt_cv_irix_exported_symbol+:} false; then :
16255 $as_echo_n "(cached) " >&6
16256 else
16257 save_LDFLAGS=$LDFLAGS
16258 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
16259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16260 /* end confdefs.h. */
16261 int foo (void) { return 0; }
16262 _ACEOF
16263 if ac_fn_c_try_link "$LINENO"; then :
16264 lt_cv_irix_exported_symbol=yes
16265 else
16266 lt_cv_irix_exported_symbol=no
16267 fi
16268 rm -f core conftest.err conftest.$ac_objext \
16269 conftest$ac_exeext conftest.$ac_ext
16270 LDFLAGS=$save_LDFLAGS
16271 fi
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16273 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
16274 if test yes = "$lt_cv_irix_exported_symbol"; then
16275 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'
16276 fi
16277 else
16278 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'
16279 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'
16280 fi
16281 archive_cmds_need_lc='no'
16282 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16283 hardcode_libdir_separator=:
16284 inherit_rpath=yes
16285 link_all_deplibs=yes
16286 ;;
16287
16288 linux*)
16289 case $cc_basename in
16290 tcc*)
16291 # Fabrice Bellard et al's Tiny C Compiler
16292 ld_shlibs=yes
16293 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16294 ;;
16295 esac
16296 ;;
16297
16298 netbsd*)
16299 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16300 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16301 else
16302 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16303 fi
16304 hardcode_libdir_flag_spec='-R$libdir'
16305 hardcode_direct=yes
16306 hardcode_shlibpath_var=no
16307 ;;
16308
16309 newsos6)
16310 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16311 hardcode_direct=yes
16312 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16313 hardcode_libdir_separator=:
16314 hardcode_shlibpath_var=no
16315 ;;
16316
16317 *nto* | *qnx*)
16318 ;;
16319
16320 openbsd* | bitrig*)
16321 if test -f /usr/libexec/ld.so; then
16322 hardcode_direct=yes
16323 hardcode_shlibpath_var=no
16324 hardcode_direct_absolute=yes
16325 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16326 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16327 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
16328 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16329 export_dynamic_flag_spec='$wl-E'
16330 else
16331 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16332 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16333 fi
16334 else
16335 ld_shlibs=no
16336 fi
16337 ;;
16338
16339 os2*)
16340 hardcode_libdir_flag_spec='-L$libdir'
16341 hardcode_minus_L=yes
16342 allow_undefined_flag=unsupported
16343 shrext_cmds=.dll
16344 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16345 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16346 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16347 $ECHO EXPORTS >> $output_objdir/$libname.def~
16348 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16349 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16350 emximp -o $lib $output_objdir/$libname.def'
16351 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16352 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16353 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16354 $ECHO EXPORTS >> $output_objdir/$libname.def~
16355 prefix_cmds="$SED"~
16356 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16357 prefix_cmds="$prefix_cmds -e 1d";
16358 fi~
16359 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16360 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16361 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16362 emximp -o $lib $output_objdir/$libname.def'
16363 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16364 enable_shared_with_static_runtimes=yes
16365 ;;
16366
16367 osf3*)
16368 if test yes = "$GCC"; then
16369 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16370 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'
16371 else
16372 allow_undefined_flag=' -expect_unresolved \*'
16373 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'
16374 fi
16375 archive_cmds_need_lc='no'
16376 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16377 hardcode_libdir_separator=:
16378 ;;
16379
16380 osf4* | osf5*) # as osf3* with the addition of -msym flag
16381 if test yes = "$GCC"; then
16382 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16383 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'
16384 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16385 else
16386 allow_undefined_flag=' -expect_unresolved \*'
16387 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'
16388 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~
16389 $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'
16390
16391 # Both c and cxx compiler support -rpath directly
16392 hardcode_libdir_flag_spec='-rpath $libdir'
16393 fi
16394 archive_cmds_need_lc='no'
16395 hardcode_libdir_separator=:
16396 ;;
16397
16398 solaris*)
16399 no_undefined_flag=' -z defs'
16400 if test yes = "$GCC"; then
16401 wlarc='$wl'
16402 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16403 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16404 $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'
16405 else
16406 case `$CC -V 2>&1` in
16407 *"Compilers 5.0"*)
16408 wlarc=''
16409 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
16410 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16411 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16412 ;;
16413 *)
16414 wlarc='$wl'
16415 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16416 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16417 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16418 ;;
16419 esac
16420 fi
16421 hardcode_libdir_flag_spec='-R$libdir'
16422 hardcode_shlibpath_var=no
16423 case $host_os in
16424 solaris2.[0-5] | solaris2.[0-5].*) ;;
16425 *)
16426 # The compiler driver will combine and reorder linker options,
16427 # but understands '-z linker_flag'. GCC discards it without '$wl',
16428 # but is careful enough not to reorder.
16429 # Supported since Solaris 2.6 (maybe 2.5.1?)
16430 if test yes = "$GCC"; then
16431 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16432 else
16433 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16434 fi
16435 ;;
16436 esac
16437 link_all_deplibs=yes
16438 ;;
16439
16440 sunos4*)
16441 if test sequent = "$host_vendor"; then
16442 # Use $CC to link under sequent, because it throws in some extra .o
16443 # files that make .init and .fini sections work.
16444 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16445 else
16446 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16447 fi
16448 hardcode_libdir_flag_spec='-L$libdir'
16449 hardcode_direct=yes
16450 hardcode_minus_L=yes
16451 hardcode_shlibpath_var=no
16452 ;;
16453
16454 sysv4)
16455 case $host_vendor in
16456 sni)
16457 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16458 hardcode_direct=yes # is this really true???
16459 ;;
16460 siemens)
16461 ## LD is ld it makes a PLAMLIB
16462 ## CC just makes a GrossModule.
16463 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16464 reload_cmds='$CC -r -o $output$reload_objs'
16465 hardcode_direct=no
16466 ;;
16467 motorola)
16468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16469 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16470 ;;
16471 esac
16472 runpath_var='LD_RUN_PATH'
16473 hardcode_shlibpath_var=no
16474 ;;
16475
16476 sysv4.3*)
16477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16478 hardcode_shlibpath_var=no
16479 export_dynamic_flag_spec='-Bexport'
16480 ;;
16481
16482 sysv4*MP*)
16483 if test -d /usr/nec; then
16484 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16485 hardcode_shlibpath_var=no
16486 runpath_var=LD_RUN_PATH
16487 hardcode_runpath_var=yes
16488 ld_shlibs=yes
16489 fi
16490 ;;
16491
16492 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16493 no_undefined_flag='$wl-z,text'
16494 archive_cmds_need_lc=no
16495 hardcode_shlibpath_var=no
16496 runpath_var='LD_RUN_PATH'
16497
16498 if test yes = "$GCC"; then
16499 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16500 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16501 else
16502 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16503 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16504 fi
16505 ;;
16506
16507 sysv5* | sco3.2v5* | sco5v6*)
16508 # Note: We CANNOT use -z defs as we might desire, because we do not
16509 # link with -lc, and that would cause any symbols used from libc to
16510 # always be unresolved, which means just about no library would
16511 # ever link correctly. If we're not using GNU ld we use -z text
16512 # though, which does catch some bad symbols but isn't as heavy-handed
16513 # as -z defs.
16514 no_undefined_flag='$wl-z,text'
16515 allow_undefined_flag='$wl-z,nodefs'
16516 archive_cmds_need_lc=no
16517 hardcode_shlibpath_var=no
16518 hardcode_libdir_flag_spec='$wl-R,$libdir'
16519 hardcode_libdir_separator=':'
16520 link_all_deplibs=yes
16521 export_dynamic_flag_spec='$wl-Bexport'
16522 runpath_var='LD_RUN_PATH'
16523
16524 if test yes = "$GCC"; then
16525 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16526 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16527 else
16528 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16529 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16530 fi
16531 ;;
16532
16533 uts4*)
16534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16535 hardcode_libdir_flag_spec='-L$libdir'
16536 hardcode_shlibpath_var=no
16537 ;;
16538
16539 *)
16540 ld_shlibs=no
16541 ;;
16542 esac
16543
16544 if test sni = "$host_vendor"; then
16545 case $host in
16546 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16547 export_dynamic_flag_spec='$wl-Blargedynsym'
16548 ;;
16549 esac
16550 fi
16551 fi
16552
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16554 $as_echo "$ld_shlibs" >&6; }
16555 test no = "$ld_shlibs" && can_build_shared=no
16556
16557 with_gnu_ld=$with_gnu_ld
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573 #
16574 # Do we need to explicitly link libc?
16575 #
16576 case "x$archive_cmds_need_lc" in
16577 x|xyes)
16578 # Assume -lc should be added
16579 archive_cmds_need_lc=yes
16580
16581 if test yes,yes = "$GCC,$enable_shared"; then
16582 case $archive_cmds in
16583 *'~'*)
16584 # FIXME: we may have to deal with multi-command sequences.
16585 ;;
16586 '$CC '*)
16587 # Test whether the compiler implicitly links with -lc since on some
16588 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16589 # to ld, don't add -lc before -lgcc.
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16591 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16592 if ${lt_cv_archive_cmds_need_lc+:} false; then :
16593 $as_echo_n "(cached) " >&6
16594 else
16595 $RM conftest*
16596 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16597
16598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16599 (eval $ac_compile) 2>&5
16600 ac_status=$?
16601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16602 test $ac_status = 0; } 2>conftest.err; then
16603 soname=conftest
16604 lib=conftest
16605 libobjs=conftest.$ac_objext
16606 deplibs=
16607 wl=$lt_prog_compiler_wl
16608 pic_flag=$lt_prog_compiler_pic
16609 compiler_flags=-v
16610 linker_flags=-v
16611 verstring=
16612 output_objdir=.
16613 libname=conftest
16614 lt_save_allow_undefined_flag=$allow_undefined_flag
16615 allow_undefined_flag=
16616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16617 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16618 ac_status=$?
16619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16620 test $ac_status = 0; }
16621 then
16622 lt_cv_archive_cmds_need_lc=no
16623 else
16624 lt_cv_archive_cmds_need_lc=yes
16625 fi
16626 allow_undefined_flag=$lt_save_allow_undefined_flag
16627 else
16628 cat conftest.err 1>&5
16629 fi
16630 $RM conftest*
16631
16632 fi
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16634 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16635 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16636 ;;
16637 esac
16638 fi
16639 ;;
16640 esac
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16794 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16795
16796 if test yes = "$GCC"; then
16797 case $host_os in
16798 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
16799 *) lt_awk_arg='/^libraries:/' ;;
16800 esac
16801 case $host_os in
16802 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
16803 *) lt_sed_strip_eq='s|=/|/|g' ;;
16804 esac
16805 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16806 case $lt_search_path_spec in
16807 *\;*)
16808 # if the path contains ";" then we assume it to be the separator
16809 # otherwise default to the standard path separator (i.e. ":") - it is
16810 # assumed that no part of a normal pathname contains ";" but that should
16811 # okay in the real world where ";" in dirpaths is itself problematic.
16812 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16813 ;;
16814 *)
16815 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16816 ;;
16817 esac
16818 # Ok, now we have the path, separated by spaces, we can step through it
16819 # and add multilib dir if necessary...
16820 lt_tmp_lt_search_path_spec=
16821 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16822 # ...but if some path component already ends with the multilib dir we assume
16823 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
16824 case "$lt_multi_os_dir; $lt_search_path_spec " in
16825 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
16826 lt_multi_os_dir=
16827 ;;
16828 esac
16829 for lt_sys_path in $lt_search_path_spec; do
16830 if test -d "$lt_sys_path$lt_multi_os_dir"; then
16831 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
16832 elif test -n "$lt_multi_os_dir"; then
16833 test -d "$lt_sys_path" && \
16834 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16835 fi
16836 done
16837 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16838 BEGIN {RS = " "; FS = "/|\n";} {
16839 lt_foo = "";
16840 lt_count = 0;
16841 for (lt_i = NF; lt_i > 0; lt_i--) {
16842 if ($lt_i != "" && $lt_i != ".") {
16843 if ($lt_i == "..") {
16844 lt_count++;
16845 } else {
16846 if (lt_count == 0) {
16847 lt_foo = "/" $lt_i lt_foo;
16848 } else {
16849 lt_count--;
16850 }
16851 }
16852 }
16853 }
16854 if (lt_foo != "") { lt_freq[lt_foo]++; }
16855 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16856 }'`
16857 # AWK program above erroneously prepends '/' to C:/dos/paths
16858 # for these hosts.
16859 case $host_os in
16860 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16861 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
16862 esac
16863 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16864 else
16865 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16866 fi
16867 library_names_spec=
16868 libname_spec='lib$name'
16869 soname_spec=
16870 shrext_cmds=.so
16871 postinstall_cmds=
16872 postuninstall_cmds=
16873 finish_cmds=
16874 finish_eval=
16875 shlibpath_var=
16876 shlibpath_overrides_runpath=unknown
16877 version_type=none
16878 dynamic_linker="$host_os ld.so"
16879 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16880 need_lib_prefix=unknown
16881 hardcode_into_libs=no
16882
16883 # when you set need_version to no, make sure it does not cause -set_version
16884 # flags to be left without arguments
16885 need_version=unknown
16886
16887 case $host_os in
16888 aix3*)
16889 version_type=linux # correct to gnu/linux during the next big refactor
16890 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16891 shlibpath_var=LIBPATH
16892
16893 # AIX 3 has no versioning support, so we append a major version to the name.
16894 soname_spec='$libname$release$shared_ext$major'
16895 ;;
16896
16897 aix[4-9]*)
16898 version_type=linux # correct to gnu/linux during the next big refactor
16899 need_lib_prefix=no
16900 need_version=no
16901 hardcode_into_libs=yes
16902 if test ia64 = "$host_cpu"; then
16903 # AIX 5 supports IA64
16904 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16905 shlibpath_var=LD_LIBRARY_PATH
16906 else
16907 # With GCC up to 2.95.x, collect2 would create an import file
16908 # for dependence libraries. The import file would start with
16909 # the line '#! .'. This would cause the generated library to
16910 # depend on '.', always an invalid library. This was fixed in
16911 # development snapshots of GCC prior to 3.0.
16912 case $host_os in
16913 aix4 | aix4.[01] | aix4.[01].*)
16914 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16915 echo ' yes '
16916 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16917 :
16918 else
16919 can_build_shared=no
16920 fi
16921 ;;
16922 esac
16923 # Using Import Files as archive members, it is possible to support
16924 # filename-based versioning of shared library archives on AIX. While
16925 # this would work for both with and without runtime linking, it will
16926 # prevent static linking of such archives. So we do filename-based
16927 # shared library versioning with .so extension only, which is used
16928 # when both runtime linking and shared linking is enabled.
16929 # Unfortunately, runtime linking may impact performance, so we do
16930 # not want this to be the default eventually. Also, we use the
16931 # versioned .so libs for executables only if there is the -brtl
16932 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16933 # To allow for filename-based versioning support, we need to create
16934 # libNAME.so.V as an archive file, containing:
16935 # *) an Import File, referring to the versioned filename of the
16936 # archive as well as the shared archive member, telling the
16937 # bitwidth (32 or 64) of that shared object, and providing the
16938 # list of exported symbols of that shared object, eventually
16939 # decorated with the 'weak' keyword
16940 # *) the shared object with the F_LOADONLY flag set, to really avoid
16941 # it being seen by the linker.
16942 # At run time we better use the real file rather than another symlink,
16943 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16944
16945 case $with_aix_soname,$aix_use_runtimelinking in
16946 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16947 # soname into executable. Probably we can add versioning support to
16948 # collect2, so additional links can be useful in future.
16949 aix,yes) # traditional libtool
16950 dynamic_linker='AIX unversionable lib.so'
16951 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16952 # instead of lib<name>.a to let people know that these are not
16953 # typical AIX shared libraries.
16954 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16955 ;;
16956 aix,no) # traditional AIX only
16957 dynamic_linker='AIX lib.a(lib.so.V)'
16958 # We preserve .a as extension for shared libraries through AIX4.2
16959 # and later when we are not doing run time linking.
16960 library_names_spec='$libname$release.a $libname.a'
16961 soname_spec='$libname$release$shared_ext$major'
16962 ;;
16963 svr4,*) # full svr4 only
16964 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16965 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16966 # We do not specify a path in Import Files, so LIBPATH fires.
16967 shlibpath_overrides_runpath=yes
16968 ;;
16969 *,yes) # both, prefer svr4
16970 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16971 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16972 # unpreferred sharedlib libNAME.a needs extra handling
16973 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"'
16974 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"'
16975 # We do not specify a path in Import Files, so LIBPATH fires.
16976 shlibpath_overrides_runpath=yes
16977 ;;
16978 *,no) # both, prefer aix
16979 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16980 library_names_spec='$libname$release.a $libname.a'
16981 soname_spec='$libname$release$shared_ext$major'
16982 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16983 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)'
16984 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"'
16985 ;;
16986 esac
16987 shlibpath_var=LIBPATH
16988 fi
16989 ;;
16990
16991 amigaos*)
16992 case $host_cpu in
16993 powerpc)
16994 # Since July 2007 AmigaOS4 officially supports .so libraries.
16995 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16996 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16997 ;;
16998 m68k)
16999 library_names_spec='$libname.ixlibrary $libname.a'
17000 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17001 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'
17002 ;;
17003 esac
17004 ;;
17005
17006 beos*)
17007 library_names_spec='$libname$shared_ext'
17008 dynamic_linker="$host_os ld.so"
17009 shlibpath_var=LIBRARY_PATH
17010 ;;
17011
17012 bsdi[45]*)
17013 version_type=linux # correct to gnu/linux during the next big refactor
17014 need_version=no
17015 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17016 soname_spec='$libname$release$shared_ext$major'
17017 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17018 shlibpath_var=LD_LIBRARY_PATH
17019 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17020 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17021 # the default ld.so.conf also contains /usr/contrib/lib and
17022 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17023 # libtool to hard-code these into programs
17024 ;;
17025
17026 cygwin* | mingw* | pw32* | cegcc*)
17027 version_type=windows
17028 shrext_cmds=.dll
17029 need_version=no
17030 need_lib_prefix=no
17031
17032 case $GCC,$cc_basename in
17033 yes,*)
17034 # gcc
17035 library_names_spec='$libname.dll.a'
17036 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17037 postinstall_cmds='base_file=`basename \$file`~
17038 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17039 dldir=$destdir/`dirname \$dlpath`~
17040 test -d \$dldir || mkdir -p \$dldir~
17041 $install_prog $dir/$dlname \$dldir/$dlname~
17042 chmod a+x \$dldir/$dlname~
17043 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17044 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17045 fi'
17046 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17047 dlpath=$dir/\$dldll~
17048 $RM \$dlpath'
17049 shlibpath_overrides_runpath=yes
17050
17051 case $host_os in
17052 cygwin*)
17053 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17054 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17055
17056 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17057 ;;
17058 mingw* | cegcc*)
17059 # MinGW DLLs use traditional 'lib' prefix
17060 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17061 ;;
17062 pw32*)
17063 # pw32 DLLs use 'pw' prefix rather than 'lib'
17064 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17065 ;;
17066 esac
17067 dynamic_linker='Win32 ld.exe'
17068 ;;
17069
17070 *,cl*)
17071 # Native MSVC
17072 libname_spec='$name'
17073 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17074 library_names_spec='$libname.dll.lib'
17075
17076 case $build_os in
17077 mingw*)
17078 sys_lib_search_path_spec=
17079 lt_save_ifs=$IFS
17080 IFS=';'
17081 for lt_path in $LIB
17082 do
17083 IFS=$lt_save_ifs
17084 # Let DOS variable expansion print the short 8.3 style file name.
17085 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17086 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17087 done
17088 IFS=$lt_save_ifs
17089 # Convert to MSYS style.
17090 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17091 ;;
17092 cygwin*)
17093 # Convert to unix form, then to dos form, then back to unix form
17094 # but this time dos style (no spaces!) so that the unix form looks
17095 # like /cygdrive/c/PROGRA~1:/cygdr...
17096 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17097 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17098 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17099 ;;
17100 *)
17101 sys_lib_search_path_spec=$LIB
17102 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17103 # It is most probably a Windows format PATH.
17104 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17105 else
17106 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17107 fi
17108 # FIXME: find the short name or the path components, as spaces are
17109 # common. (e.g. "Program Files" -> "PROGRA~1")
17110 ;;
17111 esac
17112
17113 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17114 postinstall_cmds='base_file=`basename \$file`~
17115 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17116 dldir=$destdir/`dirname \$dlpath`~
17117 test -d \$dldir || mkdir -p \$dldir~
17118 $install_prog $dir/$dlname \$dldir/$dlname'
17119 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17120 dlpath=$dir/\$dldll~
17121 $RM \$dlpath'
17122 shlibpath_overrides_runpath=yes
17123 dynamic_linker='Win32 link.exe'
17124 ;;
17125
17126 *)
17127 # Assume MSVC wrapper
17128 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17129 dynamic_linker='Win32 ld.exe'
17130 ;;
17131 esac
17132 # FIXME: first we should search . and the directory the executable is in
17133 shlibpath_var=PATH
17134 ;;
17135
17136 darwin* | rhapsody*)
17137 dynamic_linker="$host_os dyld"
17138 version_type=darwin
17139 need_lib_prefix=no
17140 need_version=no
17141 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17142 soname_spec='$libname$release$major$shared_ext'
17143 shlibpath_overrides_runpath=yes
17144 shlibpath_var=DYLD_LIBRARY_PATH
17145 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17146
17147 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17148 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17149 ;;
17150
17151 dgux*)
17152 version_type=linux # correct to gnu/linux during the next big refactor
17153 need_lib_prefix=no
17154 need_version=no
17155 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17156 soname_spec='$libname$release$shared_ext$major'
17157 shlibpath_var=LD_LIBRARY_PATH
17158 ;;
17159
17160 freebsd* | dragonfly*)
17161 # DragonFly does not have aout. When/if they implement a new
17162 # versioning mechanism, adjust this.
17163 if test -x /usr/bin/objformat; then
17164 objformat=`/usr/bin/objformat`
17165 else
17166 case $host_os in
17167 freebsd[23].*) objformat=aout ;;
17168 *) objformat=elf ;;
17169 esac
17170 fi
17171 # Handle Gentoo/FreeBSD as it was Linux
17172 case $host_vendor in
17173 gentoo)
17174 version_type=linux ;;
17175 *)
17176 version_type=freebsd-$objformat ;;
17177 esac
17178
17179 case $version_type in
17180 freebsd-elf*)
17181 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17182 need_version=no
17183 need_lib_prefix=no
17184 ;;
17185 freebsd-*)
17186 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17187 need_version=yes
17188 ;;
17189 linux)
17190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17191 soname_spec='${libname}${release}${shared_ext}$major'
17192 need_lib_prefix=no
17193 need_version=no
17194 ;;
17195 esac
17196 shlibpath_var=LD_LIBRARY_PATH
17197 case $host_os in
17198 freebsd2.*)
17199 shlibpath_overrides_runpath=yes
17200 ;;
17201 freebsd3.[01]* | freebsdelf3.[01]*)
17202 shlibpath_overrides_runpath=yes
17203 hardcode_into_libs=yes
17204 ;;
17205 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17206 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17207 shlibpath_overrides_runpath=no
17208 hardcode_into_libs=yes
17209 ;;
17210 *) # from 4.6 on, and DragonFly
17211 shlibpath_overrides_runpath=yes
17212 hardcode_into_libs=yes
17213 ;;
17214 esac
17215 ;;
17216
17217 haiku*)
17218 version_type=linux # correct to gnu/linux during the next big refactor
17219 need_lib_prefix=no
17220 need_version=no
17221 dynamic_linker="$host_os runtime_loader"
17222 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17223 soname_spec='$libname$release$shared_ext$major'
17224 shlibpath_var=LIBRARY_PATH
17225 shlibpath_overrides_runpath=no
17226 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17227 hardcode_into_libs=yes
17228 ;;
17229
17230 hpux9* | hpux10* | hpux11*)
17231 # Give a soname corresponding to the major version so that dld.sl refuses to
17232 # link against other versions.
17233 version_type=sunos
17234 need_lib_prefix=no
17235 need_version=no
17236 case $host_cpu in
17237 ia64*)
17238 shrext_cmds='.so'
17239 hardcode_into_libs=yes
17240 dynamic_linker="$host_os dld.so"
17241 shlibpath_var=LD_LIBRARY_PATH
17242 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17243 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17244 soname_spec='$libname$release$shared_ext$major'
17245 if test 32 = "$HPUX_IA64_MODE"; then
17246 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17247 else
17248 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17249 fi
17250 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17251 ;;
17252 hppa*64*)
17253 shrext_cmds='.sl'
17254 hardcode_into_libs=yes
17255 dynamic_linker="$host_os dld.sl"
17256 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17257 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17258 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17259 soname_spec='$libname$release$shared_ext$major'
17260 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17261 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17262 ;;
17263 *)
17264 shrext_cmds='.sl'
17265 dynamic_linker="$host_os dld.sl"
17266 shlibpath_var=SHLIB_PATH
17267 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17268 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17269 soname_spec='$libname$release$shared_ext$major'
17270 ;;
17271 esac
17272 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17273 postinstall_cmds='chmod 555 $lib'
17274 # or fails outright, so override atomically:
17275 install_override_mode=555
17276 ;;
17277
17278 interix[3-9]*)
17279 version_type=linux # correct to gnu/linux during the next big refactor
17280 need_lib_prefix=no
17281 need_version=no
17282 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17283 soname_spec='$libname$release$shared_ext$major'
17284 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17285 shlibpath_var=LD_LIBRARY_PATH
17286 shlibpath_overrides_runpath=no
17287 hardcode_into_libs=yes
17288 ;;
17289
17290 irix5* | irix6* | nonstopux*)
17291 case $host_os in
17292 nonstopux*) version_type=nonstopux ;;
17293 *)
17294 if test yes = "$lt_cv_prog_gnu_ld"; then
17295 version_type=linux # correct to gnu/linux during the next big refactor
17296 else
17297 version_type=irix
17298 fi ;;
17299 esac
17300 need_lib_prefix=no
17301 need_version=no
17302 soname_spec='$libname$release$shared_ext$major'
17303 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17304 case $host_os in
17305 irix5* | nonstopux*)
17306 libsuff= shlibsuff=
17307 ;;
17308 *)
17309 case $LD in # libtool.m4 will add one of these switches to LD
17310 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17311 libsuff= shlibsuff= libmagic=32-bit;;
17312 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17313 libsuff=32 shlibsuff=N32 libmagic=N32;;
17314 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17315 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17316 *) libsuff= shlibsuff= libmagic=never-match;;
17317 esac
17318 ;;
17319 esac
17320 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17321 shlibpath_overrides_runpath=no
17322 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17323 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17324 hardcode_into_libs=yes
17325 ;;
17326
17327 # No shared lib support for Linux oldld, aout, or coff.
17328 linux*oldld* | linux*aout* | linux*coff*)
17329 dynamic_linker=no
17330 ;;
17331
17332 linux*android*)
17333 version_type=none # Android doesn't support versioned libraries.
17334 need_lib_prefix=no
17335 need_version=no
17336 library_names_spec='$libname$release$shared_ext'
17337 soname_spec='$libname$release$shared_ext'
17338 finish_cmds=
17339 shlibpath_var=LD_LIBRARY_PATH
17340 shlibpath_overrides_runpath=yes
17341
17342 # This implies no fast_install, which is unacceptable.
17343 # Some rework will be needed to allow for fast_install
17344 # before this can be enabled.
17345 hardcode_into_libs=yes
17346
17347 dynamic_linker='Android linker'
17348 # Don't embed -rpath directories since the linker doesn't support them.
17349 hardcode_libdir_flag_spec='-L$libdir'
17350 ;;
17351
17352 # This must be glibc/ELF.
17353 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17354 version_type=linux # correct to gnu/linux during the next big refactor
17355 need_lib_prefix=no
17356 need_version=no
17357 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17358 soname_spec='$libname$release$shared_ext$major'
17359 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17360 shlibpath_var=LD_LIBRARY_PATH
17361 shlibpath_overrides_runpath=no
17362
17363 # Some binutils ld are patched to set DT_RUNPATH
17364 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17365 $as_echo_n "(cached) " >&6
17366 else
17367 lt_cv_shlibpath_overrides_runpath=no
17368 save_LDFLAGS=$LDFLAGS
17369 save_libdir=$libdir
17370 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17371 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17373 /* end confdefs.h. */
17374
17375 int
17376 main ()
17377 {
17378
17379 ;
17380 return 0;
17381 }
17382 _ACEOF
17383 if ac_fn_c_try_link "$LINENO"; then :
17384 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17385 lt_cv_shlibpath_overrides_runpath=yes
17386 fi
17387 fi
17388 rm -f core conftest.err conftest.$ac_objext \
17389 conftest$ac_exeext conftest.$ac_ext
17390 LDFLAGS=$save_LDFLAGS
17391 libdir=$save_libdir
17392
17393 fi
17394
17395 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17396
17397 # This implies no fast_install, which is unacceptable.
17398 # Some rework will be needed to allow for fast_install
17399 # before this can be enabled.
17400 hardcode_into_libs=yes
17401
17402 # Append ld.so.conf contents to the search path
17403 if test -f /etc/ld.so.conf; then
17404 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' ' '`
17405 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17406 fi
17407
17408 # We used to test for /lib/ld.so.1 and disable shared libraries on
17409 # powerpc, because MkLinux only supported shared libraries with the
17410 # GNU dynamic linker. Since this was broken with cross compilers,
17411 # most powerpc-linux boxes support dynamic linking these days and
17412 # people can always --disable-shared, the test was removed, and we
17413 # assume the GNU/Linux dynamic linker is in use.
17414 dynamic_linker='GNU/Linux ld.so'
17415 ;;
17416
17417 netbsd*)
17418 version_type=sunos
17419 need_lib_prefix=no
17420 need_version=no
17421 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17422 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17423 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17424 dynamic_linker='NetBSD (a.out) ld.so'
17425 else
17426 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17427 soname_spec='$libname$release$shared_ext$major'
17428 dynamic_linker='NetBSD ld.elf_so'
17429 fi
17430 shlibpath_var=LD_LIBRARY_PATH
17431 shlibpath_overrides_runpath=yes
17432 hardcode_into_libs=yes
17433 ;;
17434
17435 newsos6)
17436 version_type=linux # correct to gnu/linux during the next big refactor
17437 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17438 shlibpath_var=LD_LIBRARY_PATH
17439 shlibpath_overrides_runpath=yes
17440 ;;
17441
17442 *nto* | *qnx*)
17443 version_type=qnx
17444 need_lib_prefix=no
17445 need_version=no
17446 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17447 soname_spec='$libname$release$shared_ext$major'
17448 shlibpath_var=LD_LIBRARY_PATH
17449 shlibpath_overrides_runpath=no
17450 hardcode_into_libs=yes
17451 dynamic_linker='ldqnx.so'
17452 ;;
17453
17454 openbsd* | bitrig*)
17455 version_type=sunos
17456 sys_lib_dlsearch_path_spec=/usr/lib
17457 need_lib_prefix=no
17458 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17459 need_version=no
17460 else
17461 need_version=yes
17462 fi
17463 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17464 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17465 shlibpath_var=LD_LIBRARY_PATH
17466 shlibpath_overrides_runpath=yes
17467 ;;
17468
17469 os2*)
17470 libname_spec='$name'
17471 version_type=windows
17472 shrext_cmds=.dll
17473 need_version=no
17474 need_lib_prefix=no
17475 # OS/2 can only load a DLL with a base name of 8 characters or less.
17476 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17477 v=$($ECHO $release$versuffix | tr -d .-);
17478 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17479 $ECHO $n$v`$shared_ext'
17480 library_names_spec='${libname}_dll.$libext'
17481 dynamic_linker='OS/2 ld.exe'
17482 shlibpath_var=BEGINLIBPATH
17483 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17484 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17485 postinstall_cmds='base_file=`basename \$file`~
17486 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17487 dldir=$destdir/`dirname \$dlpath`~
17488 test -d \$dldir || mkdir -p \$dldir~
17489 $install_prog $dir/$dlname \$dldir/$dlname~
17490 chmod a+x \$dldir/$dlname~
17491 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17492 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17493 fi'
17494 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17495 dlpath=$dir/\$dldll~
17496 $RM \$dlpath'
17497 ;;
17498
17499 osf3* | osf4* | osf5*)
17500 version_type=osf
17501 need_lib_prefix=no
17502 need_version=no
17503 soname_spec='$libname$release$shared_ext$major'
17504 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17505 shlibpath_var=LD_LIBRARY_PATH
17506 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17507 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17508 ;;
17509
17510 rdos*)
17511 dynamic_linker=no
17512 ;;
17513
17514 solaris*)
17515 version_type=linux # correct to gnu/linux during the next big refactor
17516 need_lib_prefix=no
17517 need_version=no
17518 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17519 soname_spec='$libname$release$shared_ext$major'
17520 shlibpath_var=LD_LIBRARY_PATH
17521 shlibpath_overrides_runpath=yes
17522 hardcode_into_libs=yes
17523 # ldd complains unless libraries are executable
17524 postinstall_cmds='chmod +x $lib'
17525 ;;
17526
17527 sunos4*)
17528 version_type=sunos
17529 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17530 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17531 shlibpath_var=LD_LIBRARY_PATH
17532 shlibpath_overrides_runpath=yes
17533 if test yes = "$with_gnu_ld"; then
17534 need_lib_prefix=no
17535 fi
17536 need_version=yes
17537 ;;
17538
17539 sysv4 | sysv4.3*)
17540 version_type=linux # correct to gnu/linux during the next big refactor
17541 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17542 soname_spec='$libname$release$shared_ext$major'
17543 shlibpath_var=LD_LIBRARY_PATH
17544 case $host_vendor in
17545 sni)
17546 shlibpath_overrides_runpath=no
17547 need_lib_prefix=no
17548 runpath_var=LD_RUN_PATH
17549 ;;
17550 siemens)
17551 need_lib_prefix=no
17552 ;;
17553 motorola)
17554 need_lib_prefix=no
17555 need_version=no
17556 shlibpath_overrides_runpath=no
17557 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17558 ;;
17559 esac
17560 ;;
17561
17562 sysv4*MP*)
17563 if test -d /usr/nec; then
17564 version_type=linux # correct to gnu/linux during the next big refactor
17565 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17566 soname_spec='$libname$shared_ext.$major'
17567 shlibpath_var=LD_LIBRARY_PATH
17568 fi
17569 ;;
17570
17571 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17572 version_type=sco
17573 need_lib_prefix=no
17574 need_version=no
17575 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17576 soname_spec='$libname$release$shared_ext$major'
17577 shlibpath_var=LD_LIBRARY_PATH
17578 shlibpath_overrides_runpath=yes
17579 hardcode_into_libs=yes
17580 if test yes = "$with_gnu_ld"; then
17581 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17582 else
17583 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17584 case $host_os in
17585 sco3.2v5*)
17586 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17587 ;;
17588 esac
17589 fi
17590 sys_lib_dlsearch_path_spec='/usr/lib'
17591 ;;
17592
17593 tpf*)
17594 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17595 version_type=linux # correct to gnu/linux during the next big refactor
17596 need_lib_prefix=no
17597 need_version=no
17598 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17599 shlibpath_var=LD_LIBRARY_PATH
17600 shlibpath_overrides_runpath=no
17601 hardcode_into_libs=yes
17602 ;;
17603
17604 uts4*)
17605 version_type=linux # correct to gnu/linux during the next big refactor
17606 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17607 soname_spec='$libname$release$shared_ext$major'
17608 shlibpath_var=LD_LIBRARY_PATH
17609 ;;
17610
17611 *)
17612 dynamic_linker=no
17613 ;;
17614 esac
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17616 $as_echo "$dynamic_linker" >&6; }
17617 test no = "$dynamic_linker" && can_build_shared=no
17618
17619 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17620 if test yes = "$GCC"; then
17621 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17622 fi
17623
17624 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17625 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17626 fi
17627 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17628 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17629 fi
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17723 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17724 hardcode_action=
17725 if test -n "$hardcode_libdir_flag_spec" ||
17726 test -n "$runpath_var" ||
17727 test yes = "$hardcode_automatic"; then
17728
17729 # We can hardcode non-existent directories.
17730 if test no != "$hardcode_direct" &&
17731 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17732 # have to relink, otherwise we might link with an installed library
17733 # when we should be linking with a yet-to-be-installed one
17734 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
17735 test no != "$hardcode_minus_L"; then
17736 # Linking always hardcodes the temporary library directory.
17737 hardcode_action=relink
17738 else
17739 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17740 hardcode_action=immediate
17741 fi
17742 else
17743 # We cannot hardcode anything, or else we can only hardcode existing
17744 # directories.
17745 hardcode_action=unsupported
17746 fi
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17748 $as_echo "$hardcode_action" >&6; }
17749
17750 if test relink = "$hardcode_action" ||
17751 test yes = "$inherit_rpath"; then
17752 # Fast installation is not supported
17753 enable_fast_install=no
17754 elif test yes = "$shlibpath_overrides_runpath" ||
17755 test no = "$enable_shared"; then
17756 # Fast installation is not necessary
17757 enable_fast_install=needless
17758 fi
17759
17760
17761
17762
17763
17764
17765 if test yes != "$enable_dlopen"; then
17766 enable_dlopen=unknown
17767 enable_dlopen_self=unknown
17768 enable_dlopen_self_static=unknown
17769 else
17770 lt_cv_dlopen=no
17771 lt_cv_dlopen_libs=
17772
17773 case $host_os in
17774 beos*)
17775 lt_cv_dlopen=load_add_on
17776 lt_cv_dlopen_libs=
17777 lt_cv_dlopen_self=yes
17778 ;;
17779
17780 mingw* | pw32* | cegcc*)
17781 lt_cv_dlopen=LoadLibrary
17782 lt_cv_dlopen_libs=
17783 ;;
17784
17785 cygwin*)
17786 lt_cv_dlopen=dlopen
17787 lt_cv_dlopen_libs=
17788 ;;
17789
17790 darwin*)
17791 # if libdl is installed we need to link against it
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17793 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17794 if ${ac_cv_lib_dl_dlopen+:} false; then :
17795 $as_echo_n "(cached) " >&6
17796 else
17797 ac_check_lib_save_LIBS=$LIBS
17798 LIBS="-ldl $LIBS"
17799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17800 /* end confdefs.h. */
17801
17802 /* Override any GCC internal prototype to avoid an error.
17803 Use char because int might match the return type of a GCC
17804 builtin and then its argument prototype would still apply. */
17805 #ifdef __cplusplus
17806 extern "C"
17807 #endif
17808 char dlopen ();
17809 int
17810 main ()
17811 {
17812 return dlopen ();
17813 ;
17814 return 0;
17815 }
17816 _ACEOF
17817 if ac_fn_c_try_link "$LINENO"; then :
17818 ac_cv_lib_dl_dlopen=yes
17819 else
17820 ac_cv_lib_dl_dlopen=no
17821 fi
17822 rm -f core conftest.err conftest.$ac_objext \
17823 conftest$ac_exeext conftest.$ac_ext
17824 LIBS=$ac_check_lib_save_LIBS
17825 fi
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17827 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17828 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17829 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17830 else
17831
17832 lt_cv_dlopen=dyld
17833 lt_cv_dlopen_libs=
17834 lt_cv_dlopen_self=yes
17835
17836 fi
17837
17838 ;;
17839
17840 tpf*)
17841 # Don't try to run any link tests for TPF. We know it's impossible
17842 # because TPF is a cross-compiler, and we know how we open DSOs.
17843 lt_cv_dlopen=dlopen
17844 lt_cv_dlopen_libs=
17845 lt_cv_dlopen_self=no
17846 ;;
17847
17848 *)
17849 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17850 if test "x$ac_cv_func_shl_load" = xyes; then :
17851 lt_cv_dlopen=shl_load
17852 else
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17854 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17855 if ${ac_cv_lib_dld_shl_load+:} false; then :
17856 $as_echo_n "(cached) " >&6
17857 else
17858 ac_check_lib_save_LIBS=$LIBS
17859 LIBS="-ldld $LIBS"
17860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17861 /* end confdefs.h. */
17862
17863 /* Override any GCC internal prototype to avoid an error.
17864 Use char because int might match the return type of a GCC
17865 builtin and then its argument prototype would still apply. */
17866 #ifdef __cplusplus
17867 extern "C"
17868 #endif
17869 char shl_load ();
17870 int
17871 main ()
17872 {
17873 return shl_load ();
17874 ;
17875 return 0;
17876 }
17877 _ACEOF
17878 if ac_fn_c_try_link "$LINENO"; then :
17879 ac_cv_lib_dld_shl_load=yes
17880 else
17881 ac_cv_lib_dld_shl_load=no
17882 fi
17883 rm -f core conftest.err conftest.$ac_objext \
17884 conftest$ac_exeext conftest.$ac_ext
17885 LIBS=$ac_check_lib_save_LIBS
17886 fi
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17888 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17889 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17890 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
17891 else
17892 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17893 if test "x$ac_cv_func_dlopen" = xyes; then :
17894 lt_cv_dlopen=dlopen
17895 else
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17897 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17898 if ${ac_cv_lib_dl_dlopen+:} false; then :
17899 $as_echo_n "(cached) " >&6
17900 else
17901 ac_check_lib_save_LIBS=$LIBS
17902 LIBS="-ldl $LIBS"
17903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17904 /* end confdefs.h. */
17905
17906 /* Override any GCC internal prototype to avoid an error.
17907 Use char because int might match the return type of a GCC
17908 builtin and then its argument prototype would still apply. */
17909 #ifdef __cplusplus
17910 extern "C"
17911 #endif
17912 char dlopen ();
17913 int
17914 main ()
17915 {
17916 return dlopen ();
17917 ;
17918 return 0;
17919 }
17920 _ACEOF
17921 if ac_fn_c_try_link "$LINENO"; then :
17922 ac_cv_lib_dl_dlopen=yes
17923 else
17924 ac_cv_lib_dl_dlopen=no
17925 fi
17926 rm -f core conftest.err conftest.$ac_objext \
17927 conftest$ac_exeext conftest.$ac_ext
17928 LIBS=$ac_check_lib_save_LIBS
17929 fi
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17931 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17932 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17933 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17934 else
17935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17936 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17937 if ${ac_cv_lib_svld_dlopen+:} false; then :
17938 $as_echo_n "(cached) " >&6
17939 else
17940 ac_check_lib_save_LIBS=$LIBS
17941 LIBS="-lsvld $LIBS"
17942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17943 /* end confdefs.h. */
17944
17945 /* Override any GCC internal prototype to avoid an error.
17946 Use char because int might match the return type of a GCC
17947 builtin and then its argument prototype would still apply. */
17948 #ifdef __cplusplus
17949 extern "C"
17950 #endif
17951 char dlopen ();
17952 int
17953 main ()
17954 {
17955 return dlopen ();
17956 ;
17957 return 0;
17958 }
17959 _ACEOF
17960 if ac_fn_c_try_link "$LINENO"; then :
17961 ac_cv_lib_svld_dlopen=yes
17962 else
17963 ac_cv_lib_svld_dlopen=no
17964 fi
17965 rm -f core conftest.err conftest.$ac_objext \
17966 conftest$ac_exeext conftest.$ac_ext
17967 LIBS=$ac_check_lib_save_LIBS
17968 fi
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17970 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17971 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17972 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
17973 else
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17975 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17976 if ${ac_cv_lib_dld_dld_link+:} false; then :
17977 $as_echo_n "(cached) " >&6
17978 else
17979 ac_check_lib_save_LIBS=$LIBS
17980 LIBS="-ldld $LIBS"
17981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17982 /* end confdefs.h. */
17983
17984 /* Override any GCC internal prototype to avoid an error.
17985 Use char because int might match the return type of a GCC
17986 builtin and then its argument prototype would still apply. */
17987 #ifdef __cplusplus
17988 extern "C"
17989 #endif
17990 char dld_link ();
17991 int
17992 main ()
17993 {
17994 return dld_link ();
17995 ;
17996 return 0;
17997 }
17998 _ACEOF
17999 if ac_fn_c_try_link "$LINENO"; then :
18000 ac_cv_lib_dld_dld_link=yes
18001 else
18002 ac_cv_lib_dld_dld_link=no
18003 fi
18004 rm -f core conftest.err conftest.$ac_objext \
18005 conftest$ac_exeext conftest.$ac_ext
18006 LIBS=$ac_check_lib_save_LIBS
18007 fi
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18009 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18010 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18011 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18012 fi
18013
18014
18015 fi
18016
18017
18018 fi
18019
18020
18021 fi
18022
18023
18024 fi
18025
18026
18027 fi
18028
18029 ;;
18030 esac
18031
18032 if test no = "$lt_cv_dlopen"; then
18033 enable_dlopen=no
18034 else
18035 enable_dlopen=yes
18036 fi
18037
18038 case $lt_cv_dlopen in
18039 dlopen)
18040 save_CPPFLAGS=$CPPFLAGS
18041 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18042
18043 save_LDFLAGS=$LDFLAGS
18044 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18045
18046 save_LIBS=$LIBS
18047 LIBS="$lt_cv_dlopen_libs $LIBS"
18048
18049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18050 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18051 if ${lt_cv_dlopen_self+:} false; then :
18052 $as_echo_n "(cached) " >&6
18053 else
18054 if test yes = "$cross_compiling"; then :
18055 lt_cv_dlopen_self=cross
18056 else
18057 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18058 lt_status=$lt_dlunknown
18059 cat > conftest.$ac_ext <<_LT_EOF
18060 #line $LINENO "configure"
18061 #include "confdefs.h"
18062
18063 #if HAVE_DLFCN_H
18064 #include <dlfcn.h>
18065 #endif
18066
18067 #include <stdio.h>
18068
18069 #ifdef RTLD_GLOBAL
18070 # define LT_DLGLOBAL RTLD_GLOBAL
18071 #else
18072 # ifdef DL_GLOBAL
18073 # define LT_DLGLOBAL DL_GLOBAL
18074 # else
18075 # define LT_DLGLOBAL 0
18076 # endif
18077 #endif
18078
18079 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18080 find out it does not work in some platform. */
18081 #ifndef LT_DLLAZY_OR_NOW
18082 # ifdef RTLD_LAZY
18083 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18084 # else
18085 # ifdef DL_LAZY
18086 # define LT_DLLAZY_OR_NOW DL_LAZY
18087 # else
18088 # ifdef RTLD_NOW
18089 # define LT_DLLAZY_OR_NOW RTLD_NOW
18090 # else
18091 # ifdef DL_NOW
18092 # define LT_DLLAZY_OR_NOW DL_NOW
18093 # else
18094 # define LT_DLLAZY_OR_NOW 0
18095 # endif
18096 # endif
18097 # endif
18098 # endif
18099 #endif
18100
18101 /* When -fvisibility=hidden is used, assume the code has been annotated
18102 correspondingly for the symbols needed. */
18103 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18104 int fnord () __attribute__((visibility("default")));
18105 #endif
18106
18107 int fnord () { return 42; }
18108 int main ()
18109 {
18110 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18111 int status = $lt_dlunknown;
18112
18113 if (self)
18114 {
18115 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18116 else
18117 {
18118 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18119 else puts (dlerror ());
18120 }
18121 /* dlclose (self); */
18122 }
18123 else
18124 puts (dlerror ());
18125
18126 return status;
18127 }
18128 _LT_EOF
18129 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18130 (eval $ac_link) 2>&5
18131 ac_status=$?
18132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18133 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18134 (./conftest; exit; ) >&5 2>/dev/null
18135 lt_status=$?
18136 case x$lt_status in
18137 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18138 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18139 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18140 esac
18141 else :
18142 # compilation failed
18143 lt_cv_dlopen_self=no
18144 fi
18145 fi
18146 rm -fr conftest*
18147
18148
18149 fi
18150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18151 $as_echo "$lt_cv_dlopen_self" >&6; }
18152
18153 if test yes = "$lt_cv_dlopen_self"; then
18154 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18156 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18157 if ${lt_cv_dlopen_self_static+:} false; then :
18158 $as_echo_n "(cached) " >&6
18159 else
18160 if test yes = "$cross_compiling"; then :
18161 lt_cv_dlopen_self_static=cross
18162 else
18163 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18164 lt_status=$lt_dlunknown
18165 cat > conftest.$ac_ext <<_LT_EOF
18166 #line $LINENO "configure"
18167 #include "confdefs.h"
18168
18169 #if HAVE_DLFCN_H
18170 #include <dlfcn.h>
18171 #endif
18172
18173 #include <stdio.h>
18174
18175 #ifdef RTLD_GLOBAL
18176 # define LT_DLGLOBAL RTLD_GLOBAL
18177 #else
18178 # ifdef DL_GLOBAL
18179 # define LT_DLGLOBAL DL_GLOBAL
18180 # else
18181 # define LT_DLGLOBAL 0
18182 # endif
18183 #endif
18184
18185 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18186 find out it does not work in some platform. */
18187 #ifndef LT_DLLAZY_OR_NOW
18188 # ifdef RTLD_LAZY
18189 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18190 # else
18191 # ifdef DL_LAZY
18192 # define LT_DLLAZY_OR_NOW DL_LAZY
18193 # else
18194 # ifdef RTLD_NOW
18195 # define LT_DLLAZY_OR_NOW RTLD_NOW
18196 # else
18197 # ifdef DL_NOW
18198 # define LT_DLLAZY_OR_NOW DL_NOW
18199 # else
18200 # define LT_DLLAZY_OR_NOW 0
18201 # endif
18202 # endif
18203 # endif
18204 # endif
18205 #endif
18206
18207 /* When -fvisibility=hidden is used, assume the code has been annotated
18208 correspondingly for the symbols needed. */
18209 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18210 int fnord () __attribute__((visibility("default")));
18211 #endif
18212
18213 int fnord () { return 42; }
18214 int main ()
18215 {
18216 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18217 int status = $lt_dlunknown;
18218
18219 if (self)
18220 {
18221 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18222 else
18223 {
18224 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18225 else puts (dlerror ());
18226 }
18227 /* dlclose (self); */
18228 }
18229 else
18230 puts (dlerror ());
18231
18232 return status;
18233 }
18234 _LT_EOF
18235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18236 (eval $ac_link) 2>&5
18237 ac_status=$?
18238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18239 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18240 (./conftest; exit; ) >&5 2>/dev/null
18241 lt_status=$?
18242 case x$lt_status in
18243 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18244 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18245 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18246 esac
18247 else :
18248 # compilation failed
18249 lt_cv_dlopen_self_static=no
18250 fi
18251 fi
18252 rm -fr conftest*
18253
18254
18255 fi
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18257 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18258 fi
18259
18260 CPPFLAGS=$save_CPPFLAGS
18261 LDFLAGS=$save_LDFLAGS
18262 LIBS=$save_LIBS
18263 ;;
18264 esac
18265
18266 case $lt_cv_dlopen_self in
18267 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18268 *) enable_dlopen_self=unknown ;;
18269 esac
18270
18271 case $lt_cv_dlopen_self_static in
18272 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18273 *) enable_dlopen_self_static=unknown ;;
18274 esac
18275 fi
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293 striplib=
18294 old_striplib=
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18296 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18297 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18298 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18299 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18301 $as_echo "yes" >&6; }
18302 else
18303 # FIXME - insert some real tests, host_os isn't really good enough
18304 case $host_os in
18305 darwin*)
18306 if test -n "$STRIP"; then
18307 striplib="$STRIP -x"
18308 old_striplib="$STRIP -S"
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18310 $as_echo "yes" >&6; }
18311 else
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18313 $as_echo "no" >&6; }
18314 fi
18315 ;;
18316 *)
18317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18318 $as_echo "no" >&6; }
18319 ;;
18320 esac
18321 fi
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334 # Report what library types will actually be built
18335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18336 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18338 $as_echo "$can_build_shared" >&6; }
18339
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18341 $as_echo_n "checking whether to build shared libraries... " >&6; }
18342 test no = "$can_build_shared" && enable_shared=no
18343
18344 # On AIX, shared libraries and static libraries use the same namespace, and
18345 # are all built from PIC.
18346 case $host_os in
18347 aix3*)
18348 test yes = "$enable_shared" && enable_static=no
18349 if test -n "$RANLIB"; then
18350 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18351 postinstall_cmds='$RANLIB $lib'
18352 fi
18353 ;;
18354
18355 aix[4-9]*)
18356 if test ia64 != "$host_cpu"; then
18357 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
18358 yes,aix,yes) ;; # shared object as lib.so file only
18359 yes,svr4,*) ;; # shared object as lib.so archive member only
18360 yes,*) enable_static=no ;; # shared object in lib.a archive as well
18361 esac
18362 fi
18363 ;;
18364 esac
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18366 $as_echo "$enable_shared" >&6; }
18367
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18369 $as_echo_n "checking whether to build static libraries... " >&6; }
18370 # Make sure either enable_shared or enable_static is yes.
18371 test yes = "$enable_shared" || enable_static=yes
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18373 $as_echo "$enable_static" >&6; }
18374
18375
18376
18377
18378 fi
18379 ac_ext=c
18380 ac_cpp='$CPP $CPPFLAGS'
18381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18384
18385 CC=$lt_save_CC
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401 ac_config_commands="$ac_config_commands libtool"
18402
18403
18404
18405
18406 # Only expand once:
18407
18408
18409
18410
18411
18412 # Define a configure option for an alternate module directory
18413
18414 # Check whether --with-xorg-module-dir was given.
18415 if test "${with_xorg_module_dir+set}" = set; then :
18416 withval=$with_xorg_module_dir; moduledir="$withval"
18417 else
18418 moduledir="$libdir/xorg/modules"
18419 fi
18420
18421
18422 # Check whether --enable-dri was given.
18423 if test "${enable_dri+set}" = set; then :
18424 enableval=$enable_dri; DRI="$enableval"
18425 else
18426 DRI=auto
18427 fi
18428
18429 # Check whether --enable-exa was given.
18430 if test "${enable_exa+set}" = set; then :
18431 enableval=$enable_exa; EXA="$enableval"
18432 else
18433 EXA=yes
18434 fi
18435
18436
18437 # Store the list of server defined optional extensions in REQUIRED_MODULES
18438
18439
18440 SAVE_CFLAGS="$CFLAGS"
18441 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18443 /* end confdefs.h. */
18444
18445 #include "xorg-server.h"
18446 #if !defined RANDR
18447 #error RANDR not defined
18448 #endif
18449
18450 int
18451 main ()
18452 {
18453
18454 ;
18455 return 0;
18456 }
18457 _ACEOF
18458 if ac_fn_c_try_compile "$LINENO"; then :
18459 _EXT_CHECK=yes
18460 else
18461 _EXT_CHECK=no
18462 fi
18463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18464 CFLAGS="$SAVE_CFLAGS"
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
18466 $as_echo_n "checking if RANDR is defined... " >&6; }
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18468 $as_echo "$_EXT_CHECK" >&6; }
18469 if test "$_EXT_CHECK" != no; then
18470 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
18471 fi
18472
18473
18474
18475 SAVE_CFLAGS="$CFLAGS"
18476 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18478 /* end confdefs.h. */
18479
18480 #include "xorg-server.h"
18481 #if !defined RENDER
18482 #error RENDER not defined
18483 #endif
18484
18485 int
18486 main ()
18487 {
18488
18489 ;
18490 return 0;
18491 }
18492 _ACEOF
18493 if ac_fn_c_try_compile "$LINENO"; then :
18494 _EXT_CHECK=yes
18495 else
18496 _EXT_CHECK=no
18497 fi
18498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18499 CFLAGS="$SAVE_CFLAGS"
18500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
18501 $as_echo_n "checking if RENDER is defined... " >&6; }
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18503 $as_echo "$_EXT_CHECK" >&6; }
18504 if test "$_EXT_CHECK" != no; then
18505 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
18506 fi
18507
18508
18509
18510 SAVE_CFLAGS="$CFLAGS"
18511 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18513 /* end confdefs.h. */
18514
18515 #include "xorg-server.h"
18516 #if !defined XV
18517 #error XV not defined
18518 #endif
18519
18520 int
18521 main ()
18522 {
18523
18524 ;
18525 return 0;
18526 }
18527 _ACEOF
18528 if ac_fn_c_try_compile "$LINENO"; then :
18529 _EXT_CHECK=yes
18530 else
18531 _EXT_CHECK=no
18532 fi
18533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18534 CFLAGS="$SAVE_CFLAGS"
18535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
18536 $as_echo_n "checking if XV is defined... " >&6; }
18537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18538 $as_echo "$_EXT_CHECK" >&6; }
18539 if test "$_EXT_CHECK" != no; then
18540 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
18541 fi
18542
18543
18544
18545 SAVE_CFLAGS="$CFLAGS"
18546 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18548 /* end confdefs.h. */
18549
18550 #include "xorg-server.h"
18551 #if !defined DPMSExtension
18552 #error DPMSExtension not defined
18553 #endif
18554
18555 int
18556 main ()
18557 {
18558
18559 ;
18560 return 0;
18561 }
18562 _ACEOF
18563 if ac_fn_c_try_compile "$LINENO"; then :
18564 _EXT_CHECK=yes
18565 else
18566 _EXT_CHECK=no
18567 fi
18568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18569 CFLAGS="$SAVE_CFLAGS"
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
18571 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18573 $as_echo "$_EXT_CHECK" >&6; }
18574 if test "$_EXT_CHECK" != no; then
18575 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
18576 fi
18577
18578
18579 # Obtain compiler/linker options for the driver dependencies
18580
18581 pkg_failed=no
18582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18583 $as_echo_n "checking for XORG... " >&6; }
18584
18585 if test -n "$XORG_CFLAGS"; then
18586 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18587 elif test -n "$PKG_CONFIG"; then
18588 if test -n "$PKG_CONFIG" && \
18589 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18590 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5
18591 ac_status=$?
18592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18593 test $ac_status = 0; }; then
18594 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18595 test "x$?" != "x0" && pkg_failed=yes
18596 else
18597 pkg_failed=yes
18598 fi
18599 else
18600 pkg_failed=untried
18601 fi
18602 if test -n "$XORG_LIBS"; then
18603 pkg_cv_XORG_LIBS="$XORG_LIBS"
18604 elif test -n "$PKG_CONFIG"; then
18605 if test -n "$PKG_CONFIG" && \
18606 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18607 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5
18608 ac_status=$?
18609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18610 test $ac_status = 0; }; then
18611 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18612 test "x$?" != "x0" && pkg_failed=yes
18613 else
18614 pkg_failed=yes
18615 fi
18616 else
18617 pkg_failed=untried
18618 fi
18619
18620
18621
18622 if test $pkg_failed = yes; then
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18624 $as_echo "no" >&6; }
18625
18626 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18627 _pkg_short_errors_supported=yes
18628 else
18629 _pkg_short_errors_supported=no
18630 fi
18631 if test $_pkg_short_errors_supported = yes; then
18632 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18633 else
18634 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18635 fi
18636 # Put the nasty error message in config.log where it belongs
18637 echo "$XORG_PKG_ERRORS" >&5
18638
18639 as_fn_error $? "Package requirements (xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES) were not met:
18640
18641 $XORG_PKG_ERRORS
18642
18643 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18644 installed software in a non-standard prefix.
18645
18646 Alternatively, you may set the environment variables XORG_CFLAGS
18647 and XORG_LIBS to avoid the need to call pkg-config.
18648 See the pkg-config man page for more details." "$LINENO" 5
18649 elif test $pkg_failed = untried; then
18650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18651 $as_echo "no" >&6; }
18652 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18654 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18655 is in your PATH or set the PKG_CONFIG environment variable to the full
18656 path to pkg-config.
18657
18658 Alternatively, you may set the environment variables XORG_CFLAGS
18659 and XORG_LIBS to avoid the need to call pkg-config.
18660 See the pkg-config man page for more details.
18661
18662 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18663 See \`config.log' for more details" "$LINENO" 5; }
18664 else
18665 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18666 XORG_LIBS=$pkg_cv_XORG_LIBS
18667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18668 $as_echo "yes" >&6; }
18669
18670 fi
18671 sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
18672
18673 # Checks for libraries.
18674
18675 if test "x$DRI" != xno; then
18676 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dri.h" >&5
18678 $as_echo_n "checking for ${sdkdir}/dri.h... " >&6; }
18679 if eval \${$as_ac_File+:} false; then :
18680 $as_echo_n "(cached) " >&6
18681 else
18682 test "$cross_compiling" = yes &&
18683 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18684 if test -r "${sdkdir}/dri.h"; then
18685 eval "$as_ac_File=yes"
18686 else
18687 eval "$as_ac_File=no"
18688 fi
18689 fi
18690 eval ac_res=\$$as_ac_File
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18692 $as_echo "$ac_res" >&6; }
18693 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18694 have_dri_h="yes"
18695 else
18696 have_dri_h="no"
18697 fi
18698
18699 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/sarea.h" >&5
18701 $as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; }
18702 if eval \${$as_ac_File+:} false; then :
18703 $as_echo_n "(cached) " >&6
18704 else
18705 test "$cross_compiling" = yes &&
18706 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18707 if test -r "${sdkdir}/sarea.h"; then
18708 eval "$as_ac_File=yes"
18709 else
18710 eval "$as_ac_File=no"
18711 fi
18712 fi
18713 eval ac_res=\$$as_ac_File
18714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18715 $as_echo "$ac_res" >&6; }
18716 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18717 have_sarea_h="yes"
18718 else
18719 have_sarea_h="no"
18720 fi
18721
18722 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
18723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dristruct.h" >&5
18724 $as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; }
18725 if eval \${$as_ac_File+:} false; then :
18726 $as_echo_n "(cached) " >&6
18727 else
18728 test "$cross_compiling" = yes &&
18729 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18730 if test -r "${sdkdir}/dristruct.h"; then
18731 eval "$as_ac_File=yes"
18732 else
18733 eval "$as_ac_File=no"
18734 fi
18735 fi
18736 eval ac_res=\$$as_ac_File
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18738 $as_echo "$ac_res" >&6; }
18739 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18740 have_dristruct_h="yes"
18741 else
18742 have_dristruct_h="no"
18743 fi
18744
18745 fi
18746
18747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5
18748 $as_echo_n "checking whether to include DRI support... " >&6; }
18749 if test "x$DRI" = xauto; then
18750 if test "x$have_dri_h" = xyes && \
18751 test "x$have_sarea_h" = xyes && \
18752 test "x$have_dristruct_h" = xyes; then
18753 DRI="yes"
18754 else
18755 DRI="no"
18756 fi
18757 fi
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5
18759 $as_echo "$DRI" >&6; }
18760
18761 if test "x$DRI" = xyes; then
18762 DRI_TRUE=
18763 DRI_FALSE='#'
18764 else
18765 DRI_TRUE='#'
18766 DRI_FALSE=
18767 fi
18768
18769 if test "x$DRI" = xyes; then
18770
18771 pkg_failed=no
18772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5
18773 $as_echo_n "checking for DRI... " >&6; }
18774
18775 if test -n "$DRI_CFLAGS"; then
18776 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
18777 elif test -n "$PKG_CONFIG"; then
18778 if test -n "$PKG_CONFIG" && \
18779 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5
18780 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
18781 ac_status=$?
18782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18783 test $ac_status = 0; }; then
18784 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null`
18785 test "x$?" != "x0" && pkg_failed=yes
18786 else
18787 pkg_failed=yes
18788 fi
18789 else
18790 pkg_failed=untried
18791 fi
18792 if test -n "$DRI_LIBS"; then
18793 pkg_cv_DRI_LIBS="$DRI_LIBS"
18794 elif test -n "$PKG_CONFIG"; then
18795 if test -n "$PKG_CONFIG" && \
18796 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5
18797 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
18798 ac_status=$?
18799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18800 test $ac_status = 0; }; then
18801 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null`
18802 test "x$?" != "x0" && pkg_failed=yes
18803 else
18804 pkg_failed=yes
18805 fi
18806 else
18807 pkg_failed=untried
18808 fi
18809
18810
18811
18812 if test $pkg_failed = yes; then
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18814 $as_echo "no" >&6; }
18815
18816 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18817 _pkg_short_errors_supported=yes
18818 else
18819 _pkg_short_errors_supported=no
18820 fi
18821 if test $_pkg_short_errors_supported = yes; then
18822 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.0 xf86driproto" 2>&1`
18823 else
18824 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.0 xf86driproto" 2>&1`
18825 fi
18826 # Put the nasty error message in config.log where it belongs
18827 echo "$DRI_PKG_ERRORS" >&5
18828
18829 as_fn_error $? "Package requirements (libdrm >= 2.0 xf86driproto) were not met:
18830
18831 $DRI_PKG_ERRORS
18832
18833 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18834 installed software in a non-standard prefix.
18835
18836 Alternatively, you may set the environment variables DRI_CFLAGS
18837 and DRI_LIBS to avoid the need to call pkg-config.
18838 See the pkg-config man page for more details." "$LINENO" 5
18839 elif test $pkg_failed = untried; then
18840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18841 $as_echo "no" >&6; }
18842 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18844 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18845 is in your PATH or set the PKG_CONFIG environment variable to the full
18846 path to pkg-config.
18847
18848 Alternatively, you may set the environment variables DRI_CFLAGS
18849 and DRI_LIBS to avoid the need to call pkg-config.
18850 See the pkg-config man page for more details.
18851
18852 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18853 See \`config.log' for more details" "$LINENO" 5; }
18854 else
18855 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
18856 DRI_LIBS=$pkg_cv_DRI_LIBS
18857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18858 $as_echo "yes" >&6; }
18859
18860 fi
18861
18862 $as_echo "#define MGADRI 1" >>confdefs.h
18863
18864
18865 $as_echo "#define MGADRI_DEVEL 1" >>confdefs.h
18866
18867 fi
18868
18869 save_CFLAGS="$CFLAGS"
18870 CFLAGS="$XORG_CFLAGS"
18871 ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18872 "
18873 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18874 XSERVER_LIBPCIACCESS=yes
18875 else
18876 XSERVER_LIBPCIACCESS=no
18877 fi
18878
18879 CFLAGS="$save_CFLAGS"
18880
18881 save_CFLAGS="$CFLAGS"
18882 CFLAGS="$XORG_CFLAGS"
18883 ac_fn_c_check_decl "$LINENO" "xf86ModeBandwidth" "ac_cv_have_decl_xf86ModeBandwidth" "#include <X11/extensions/randr.h>
18884 #include \"xorg-server.h\"
18885 #include \"xf86Modes.h\"
18886 "
18887 if test "x$ac_cv_have_decl_xf86ModeBandwidth" = xyes; then :
18888
18889 $as_echo "#define HAVE_XF86MODEBANDWIDTH 1" >>confdefs.h
18890
18891 fi
18892
18893 CFLAGS="$save_CFLAGS"
18894
18895 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18896
18897 pkg_failed=no
18898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18899 $as_echo_n "checking for PCIACCESS... " >&6; }
18900
18901 if test -n "$PCIACCESS_CFLAGS"; then
18902 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18903 elif test -n "$PKG_CONFIG"; then
18904 if test -n "$PKG_CONFIG" && \
18905 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18906 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18907 ac_status=$?
18908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18909 test $ac_status = 0; }; then
18910 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
18911 test "x$?" != "x0" && pkg_failed=yes
18912 else
18913 pkg_failed=yes
18914 fi
18915 else
18916 pkg_failed=untried
18917 fi
18918 if test -n "$PCIACCESS_LIBS"; then
18919 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18920 elif test -n "$PKG_CONFIG"; then
18921 if test -n "$PKG_CONFIG" && \
18922 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18923 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18924 ac_status=$?
18925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18926 test $ac_status = 0; }; then
18927 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
18928 test "x$?" != "x0" && pkg_failed=yes
18929 else
18930 pkg_failed=yes
18931 fi
18932 else
18933 pkg_failed=untried
18934 fi
18935
18936
18937
18938 if test $pkg_failed = yes; then
18939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18940 $as_echo "no" >&6; }
18941
18942 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18943 _pkg_short_errors_supported=yes
18944 else
18945 _pkg_short_errors_supported=no
18946 fi
18947 if test $_pkg_short_errors_supported = yes; then
18948 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18949 else
18950 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18951 fi
18952 # Put the nasty error message in config.log where it belongs
18953 echo "$PCIACCESS_PKG_ERRORS" >&5
18954
18955 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
18956
18957 $PCIACCESS_PKG_ERRORS
18958
18959 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18960 installed software in a non-standard prefix.
18961
18962 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18963 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18964 See the pkg-config man page for more details." "$LINENO" 5
18965 elif test $pkg_failed = untried; then
18966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18967 $as_echo "no" >&6; }
18968 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18970 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18971 is in your PATH or set the PKG_CONFIG environment variable to the full
18972 path to pkg-config.
18973
18974 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18975 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18976 See the pkg-config man page for more details.
18977
18978 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18979 See \`config.log' for more details" "$LINENO" 5; }
18980 else
18981 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18982 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18984 $as_echo "yes" >&6; }
18985
18986 fi
18987 fi
18988 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18989 XSERVER_LIBPCIACCESS_TRUE=
18990 XSERVER_LIBPCIACCESS_FALSE='#'
18991 else
18992 XSERVER_LIBPCIACCESS_TRUE='#'
18993 XSERVER_LIBPCIACCESS_FALSE=
18994 fi
18995
18996
18997
18998 # Check whether --enable-xaa was given.
18999 if test "${enable_xaa+set}" = set; then :
19000 enableval=$enable_xaa; XAA="$enableval"
19001 else
19002 XAA=auto
19003 fi
19004
19005 if test "x$XAA" != xno; then
19006 save_CFLAGS=$CFLAGS
19007 save_CPPFLAGS=$CPPFLAGS
19008 CFLAGS=$XORG_CFLAGS
19009 CPPFLAGS="$XORG_CFLAGS"
19010 for ac_header in xaa.h
19011 do :
19012 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
19013 if test "x$ac_cv_header_xaa_h" = xyes; then :
19014 cat >>confdefs.h <<_ACEOF
19015 #define HAVE_XAA_H 1
19016 _ACEOF
19017 XAA=yes
19018 else
19019 XAA=no
19020 fi
19021
19022 done
19023
19024 CFLAGS=$save_CFLAGS
19025 CPPFLAGS=$save_CPPFLAGS
19026 fi
19027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
19028 $as_echo_n "checking whether to include XAA support... " >&6; }
19029 if test "x$XAA" = xyes; then
19030 XAA_TRUE=
19031 XAA_FALSE='#'
19032 else
19033 XAA_TRUE='#'
19034 XAA_FALSE=
19035 fi
19036
19037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
19038 $as_echo "$XAA" >&6; }
19039 if test "x$XAA" = xyes; then
19040
19041 $as_echo "#define USE_XAA 1" >>confdefs.h
19042
19043 fi
19044
19045 # Properly handle EXA.
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable EXA support" >&5
19047 $as_echo_n "checking whether to enable EXA support... " >&6; }
19048 if test "x$EXA" = xyes; then
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19050 $as_echo "yes" >&6; }
19051
19052 SAVE_CPPFLAGS="$CPPFLAGS"
19053 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
19054 ac_fn_c_check_header_mongrel "$LINENO" "exa.h" "ac_cv_header_exa_h" "$ac_includes_default"
19055 if test "x$ac_cv_header_exa_h" = xyes; then :
19056 have_exa_h="yes"
19057 else
19058 have_exa_h="no"
19059 fi
19060
19061
19062 CPPFLAGS="$SAVE_CPPFLAGS"
19063 else
19064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19065 $as_echo "no" >&6; }
19066 fi
19067
19068 SAVE_CPPFLAGS="$CPPFLAGS"
19069 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
19070 if test "x$have_exa_h" = xyes; then
19071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether EXA version is at least 2.0.0" >&5
19072 $as_echo_n "checking whether EXA version is at least 2.0.0... " >&6; }
19073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19074 /* end confdefs.h. */
19075
19076 #include "exa.h"
19077 #if EXA_VERSION_MAJOR < 2
19078 #error OLD EXA!
19079 #endif
19080
19081 int
19082 main ()
19083 {
19084
19085 ;
19086 return 0;
19087 }
19088 _ACEOF
19089 if ac_fn_c_try_cpp "$LINENO"; then :
19090 USE_EXA=yes
19091 else
19092 USE_EXA=no
19093 fi
19094 rm -f conftest.err conftest.i conftest.$ac_ext
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_EXA" >&5
19096 $as_echo "$USE_EXA" >&6; }
19097
19098 if test "x$USE_EXA" = xyes; then
19099
19100 $as_echo "#define USE_EXA 1" >>confdefs.h
19101
19102 fi
19103 fi
19104 CPPFLAGS="$SAVE_CPPFLAGS"
19105
19106 if test "x$USE_EXA" = xyes; then
19107 USE_EXA_TRUE=
19108 USE_EXA_FALSE='#'
19109 else
19110 USE_EXA_TRUE='#'
19111 USE_EXA_FALSE=
19112 fi
19113
19114
19115
19116
19117 DRIVER_NAME=mga
19118
19119
19120 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile util/Makefile"
19121
19122 cat >confcache <<\_ACEOF
19123 # This file is a shell script that caches the results of configure
19124 # tests run on this system so they can be shared between configure
19125 # scripts and configure runs, see configure's option --config-cache.
19126 # It is not useful on other systems. If it contains results you don't
19127 # want to keep, you may remove or edit it.
19128 #
19129 # config.status only pays attention to the cache file if you give it
19130 # the --recheck option to rerun configure.
19131 #
19132 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19133 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19134 # following values.
19135
19136 _ACEOF
19137
19138 # The following way of writing the cache mishandles newlines in values,
19139 # but we know of no workaround that is simple, portable, and efficient.
19140 # So, we kill variables containing newlines.
19141 # Ultrix sh set writes to stderr and can't be redirected directly,
19142 # and sets the high bit in the cache file unless we assign to the vars.
19143 (
19144 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19145 eval ac_val=\$$ac_var
19146 case $ac_val in #(
19147 *${as_nl}*)
19148 case $ac_var in #(
19149 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19150 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19151 esac
19152 case $ac_var in #(
19153 _ | IFS | as_nl) ;; #(
19154 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19155 *) { eval $ac_var=; unset $ac_var;} ;;
19156 esac ;;
19157 esac
19158 done
19159
19160 (set) 2>&1 |
19161 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19162 *${as_nl}ac_space=\ *)
19163 # `set' does not quote correctly, so add quotes: double-quote
19164 # substitution turns \\\\ into \\, and sed turns \\ into \.
19165 sed -n \
19166 "s/'/'\\\\''/g;
19167 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19168 ;; #(
19169 *)
19170 # `set' quotes correctly as required by POSIX, so do not add quotes.
19171 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19172 ;;
19173 esac |
19174 sort
19175 ) |
19176 sed '
19177 /^ac_cv_env_/b end
19178 t clear
19179 :clear
19180 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19181 t end
19182 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19183 :end' >>confcache
19184 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19185 if test -w "$cache_file"; then
19186 if test "x$cache_file" != "x/dev/null"; then
19187 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19188 $as_echo "$as_me: updating cache $cache_file" >&6;}
19189 if test ! -f "$cache_file" || test -h "$cache_file"; then
19190 cat confcache >"$cache_file"
19191 else
19192 case $cache_file in #(
19193 */* | ?:*)
19194 mv -f confcache "$cache_file"$$ &&
19195 mv -f "$cache_file"$$ "$cache_file" ;; #(
19196 *)
19197 mv -f confcache "$cache_file" ;;
19198 esac
19199 fi
19200 fi
19201 else
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19203 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19204 fi
19205 fi
19206 rm -f confcache
19207
19208 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19209 # Let make expand exec_prefix.
19210 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19211
19212 DEFS=-DHAVE_CONFIG_H
19213
19214 ac_libobjs=
19215 ac_ltlibobjs=
19216 U=
19217 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19218 # 1. Remove the extension, and $U if already installed.
19219 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19220 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19221 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19222 # will be set to the directory where LIBOBJS objects are built.
19223 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19224 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19225 done
19226 LIBOBJS=$ac_libobjs
19227
19228 LTLIBOBJS=$ac_ltlibobjs
19229
19230
19231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19232 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19233 if test -n "$am_sleep_pid"; then
19234 # Hide warnings about reused PIDs.
19235 wait $am_sleep_pid 2>/dev/null
19236 fi
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19238 $as_echo "done" >&6; }
19239 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19240 as_fn_error $? "conditional \"AMDEP\" was never defined.
19241 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19242 fi
19243 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19244 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19245 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19246 fi
19247 if test -n "$EXEEXT"; then
19248 am__EXEEXT_TRUE=
19249 am__EXEEXT_FALSE='#'
19250 else
19251 am__EXEEXT_TRUE='#'
19252 am__EXEEXT_FALSE=
19253 fi
19254
19255 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19256 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19257 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19258 fi
19259 if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
19260 as_fn_error $? "conditional \"DRI\" was never defined.
19261 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19262 fi
19263 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
19264 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
19265 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19266 fi
19267 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
19268 as_fn_error $? "conditional \"XAA\" was never defined.
19269 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19270 fi
19271 if test -z "${USE_EXA_TRUE}" && test -z "${USE_EXA_FALSE}"; then
19272 as_fn_error $? "conditional \"USE_EXA\" was never defined.
19273 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19274 fi
19275
19276 : "${CONFIG_STATUS=./config.status}"
19277 ac_write_fail=0
19278 ac_clean_files_save=$ac_clean_files
19279 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19280 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19281 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19282 as_write_fail=0
19283 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19284 #! $SHELL
19285 # Generated by $as_me.
19286 # Run this file to recreate the current configuration.
19287 # Compiler output produced by configure, useful for debugging
19288 # configure, is in config.log if it exists.
19289
19290 debug=false
19291 ac_cs_recheck=false
19292 ac_cs_silent=false
19293
19294 SHELL=\${CONFIG_SHELL-$SHELL}
19295 export SHELL
19296 _ASEOF
19297 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19298 ## -------------------- ##
19299 ## M4sh Initialization. ##
19300 ## -------------------- ##
19301
19302 # Be more Bourne compatible
19303 DUALCASE=1; export DUALCASE # for MKS sh
19304 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19305 emulate sh
19306 NULLCMD=:
19307 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19308 # is contrary to our usage. Disable this feature.
19309 alias -g '${1+"$@"}'='"$@"'
19310 setopt NO_GLOB_SUBST
19311 else
19312 case `(set -o) 2>/dev/null` in #(
19313 *posix*) :
19314 set -o posix ;; #(
19315 *) :
19316 ;;
19317 esac
19318 fi
19319
19320
19321 as_nl='
19322 '
19323 export as_nl
19324 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19325 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19326 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19327 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19328 # Prefer a ksh shell builtin over an external printf program on Solaris,
19329 # but without wasting forks for bash or zsh.
19330 if test -z "$BASH_VERSION$ZSH_VERSION" \
19331 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19332 as_echo='print -r --'
19333 as_echo_n='print -rn --'
19334 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19335 as_echo='printf %s\n'
19336 as_echo_n='printf %s'
19337 else
19338 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19339 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19340 as_echo_n='/usr/ucb/echo -n'
19341 else
19342 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19343 as_echo_n_body='eval
19344 arg=$1;
19345 case $arg in #(
19346 *"$as_nl"*)
19347 expr "X$arg" : "X\\(.*\\)$as_nl";
19348 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19349 esac;
19350 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19351 '
19352 export as_echo_n_body
19353 as_echo_n='sh -c $as_echo_n_body as_echo'
19354 fi
19355 export as_echo_body
19356 as_echo='sh -c $as_echo_body as_echo'
19357 fi
19358
19359 # The user is always right.
19360 if test "${PATH_SEPARATOR+set}" != set; then
19361 PATH_SEPARATOR=:
19362 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19363 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19364 PATH_SEPARATOR=';'
19365 }
19366 fi
19367
19368
19369 # IFS
19370 # We need space, tab and new line, in precisely that order. Quoting is
19371 # there to prevent editors from complaining about space-tab.
19372 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19373 # splitting by setting IFS to empty value.)
19374 IFS=" "" $as_nl"
19375
19376 # Find who we are. Look in the path if we contain no directory separator.
19377 as_myself=
19378 case $0 in #((
19379 *[\\/]* ) as_myself=$0 ;;
19380 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19381 for as_dir in $PATH
19382 do
19383 IFS=$as_save_IFS
19384 test -z "$as_dir" && as_dir=.
19385 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19386 done
19387 IFS=$as_save_IFS
19388
19389 ;;
19390 esac
19391 # We did not find ourselves, most probably we were run as `sh COMMAND'
19392 # in which case we are not to be found in the path.
19393 if test "x$as_myself" = x; then
19394 as_myself=$0
19395 fi
19396 if test ! -f "$as_myself"; then
19397 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19398 exit 1
19399 fi
19400
19401 # Unset variables that we do not need and which cause bugs (e.g. in
19402 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19403 # suppresses any "Segmentation fault" message there. '((' could
19404 # trigger a bug in pdksh 5.2.14.
19405 for as_var in BASH_ENV ENV MAIL MAILPATH
19406 do eval test x\${$as_var+set} = xset \
19407 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19408 done
19409 PS1='$ '
19410 PS2='> '
19411 PS4='+ '
19412
19413 # NLS nuisances.
19414 LC_ALL=C
19415 export LC_ALL
19416 LANGUAGE=C
19417 export LANGUAGE
19418
19419 # CDPATH.
19420 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19421
19422
19423 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19424 # ----------------------------------------
19425 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19426 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19427 # script with STATUS, using 1 if that was 0.
19428 as_fn_error ()
19429 {
19430 as_status=$1; test $as_status -eq 0 && as_status=1
19431 if test "$4"; then
19432 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19433 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19434 fi
19435 $as_echo "$as_me: error: $2" >&2
19436 as_fn_exit $as_status
19437 } # as_fn_error
19438
19439
19440 # as_fn_set_status STATUS
19441 # -----------------------
19442 # Set $? to STATUS, without forking.
19443 as_fn_set_status ()
19444 {
19445 return $1
19446 } # as_fn_set_status
19447
19448 # as_fn_exit STATUS
19449 # -----------------
19450 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19451 as_fn_exit ()
19452 {
19453 set +e
19454 as_fn_set_status $1
19455 exit $1
19456 } # as_fn_exit
19457
19458 # as_fn_unset VAR
19459 # ---------------
19460 # Portably unset VAR.
19461 as_fn_unset ()
19462 {
19463 { eval $1=; unset $1;}
19464 }
19465 as_unset=as_fn_unset
19466 # as_fn_append VAR VALUE
19467 # ----------------------
19468 # Append the text in VALUE to the end of the definition contained in VAR. Take
19469 # advantage of any shell optimizations that allow amortized linear growth over
19470 # repeated appends, instead of the typical quadratic growth present in naive
19471 # implementations.
19472 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19473 eval 'as_fn_append ()
19474 {
19475 eval $1+=\$2
19476 }'
19477 else
19478 as_fn_append ()
19479 {
19480 eval $1=\$$1\$2
19481 }
19482 fi # as_fn_append
19483
19484 # as_fn_arith ARG...
19485 # ------------------
19486 # Perform arithmetic evaluation on the ARGs, and store the result in the
19487 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19488 # must be portable across $(()) and expr.
19489 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19490 eval 'as_fn_arith ()
19491 {
19492 as_val=$(( $* ))
19493 }'
19494 else
19495 as_fn_arith ()
19496 {
19497 as_val=`expr "$@" || test $? -eq 1`
19498 }
19499 fi # as_fn_arith
19500
19501
19502 if expr a : '\(a\)' >/dev/null 2>&1 &&
19503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19504 as_expr=expr
19505 else
19506 as_expr=false
19507 fi
19508
19509 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19510 as_basename=basename
19511 else
19512 as_basename=false
19513 fi
19514
19515 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19516 as_dirname=dirname
19517 else
19518 as_dirname=false
19519 fi
19520
19521 as_me=`$as_basename -- "$0" ||
19522 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19523 X"$0" : 'X\(//\)$' \| \
19524 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19525 $as_echo X/"$0" |
19526 sed '/^.*\/\([^/][^/]*\)\/*$/{
19527 s//\1/
19528 q
19529 }
19530 /^X\/\(\/\/\)$/{
19531 s//\1/
19532 q
19533 }
19534 /^X\/\(\/\).*/{
19535 s//\1/
19536 q
19537 }
19538 s/.*/./; q'`
19539
19540 # Avoid depending upon Character Ranges.
19541 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19542 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19543 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19544 as_cr_digits='0123456789'
19545 as_cr_alnum=$as_cr_Letters$as_cr_digits
19546
19547 ECHO_C= ECHO_N= ECHO_T=
19548 case `echo -n x` in #(((((
19549 -n*)
19550 case `echo 'xy\c'` in
19551 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19552 xy) ECHO_C='\c';;
19553 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19554 ECHO_T=' ';;
19555 esac;;
19556 *)
19557 ECHO_N='-n';;
19558 esac
19559
19560 rm -f conf$$ conf$$.exe conf$$.file
19561 if test -d conf$$.dir; then
19562 rm -f conf$$.dir/conf$$.file
19563 else
19564 rm -f conf$$.dir
19565 mkdir conf$$.dir 2>/dev/null
19566 fi
19567 if (echo >conf$$.file) 2>/dev/null; then
19568 if ln -s conf$$.file conf$$ 2>/dev/null; then
19569 as_ln_s='ln -s'
19570 # ... but there are two gotchas:
19571 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19572 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19573 # In both cases, we have to default to `cp -pR'.
19574 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19575 as_ln_s='cp -pR'
19576 elif ln conf$$.file conf$$ 2>/dev/null; then
19577 as_ln_s=ln
19578 else
19579 as_ln_s='cp -pR'
19580 fi
19581 else
19582 as_ln_s='cp -pR'
19583 fi
19584 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19585 rmdir conf$$.dir 2>/dev/null
19586
19587
19588 # as_fn_mkdir_p
19589 # -------------
19590 # Create "$as_dir" as a directory, including parents if necessary.
19591 as_fn_mkdir_p ()
19592 {
19593
19594 case $as_dir in #(
19595 -*) as_dir=./$as_dir;;
19596 esac
19597 test -d "$as_dir" || eval $as_mkdir_p || {
19598 as_dirs=
19599 while :; do
19600 case $as_dir in #(
19601 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19602 *) as_qdir=$as_dir;;
19603 esac
19604 as_dirs="'$as_qdir' $as_dirs"
19605 as_dir=`$as_dirname -- "$as_dir" ||
19606 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19607 X"$as_dir" : 'X\(//\)[^/]' \| \
19608 X"$as_dir" : 'X\(//\)$' \| \
19609 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19610 $as_echo X"$as_dir" |
19611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19612 s//\1/
19613 q
19614 }
19615 /^X\(\/\/\)[^/].*/{
19616 s//\1/
19617 q
19618 }
19619 /^X\(\/\/\)$/{
19620 s//\1/
19621 q
19622 }
19623 /^X\(\/\).*/{
19624 s//\1/
19625 q
19626 }
19627 s/.*/./; q'`
19628 test -d "$as_dir" && break
19629 done
19630 test -z "$as_dirs" || eval "mkdir $as_dirs"
19631 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19632
19633
19634 } # as_fn_mkdir_p
19635 if mkdir -p . 2>/dev/null; then
19636 as_mkdir_p='mkdir -p "$as_dir"'
19637 else
19638 test -d ./-p && rmdir ./-p
19639 as_mkdir_p=false
19640 fi
19641
19642
19643 # as_fn_executable_p FILE
19644 # -----------------------
19645 # Test if FILE is an executable regular file.
19646 as_fn_executable_p ()
19647 {
19648 test -f "$1" && test -x "$1"
19649 } # as_fn_executable_p
19650 as_test_x='test -x'
19651 as_executable_p=as_fn_executable_p
19652
19653 # Sed expression to map a string onto a valid CPP name.
19654 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19655
19656 # Sed expression to map a string onto a valid variable name.
19657 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19658
19659
19660 exec 6>&1
19661 ## ----------------------------------- ##
19662 ## Main body of $CONFIG_STATUS script. ##
19663 ## ----------------------------------- ##
19664 _ASEOF
19665 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19666
19667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19668 # Save the log message, to keep $0 and so on meaningful, and to
19669 # report actual input values of CONFIG_FILES etc. instead of their
19670 # values after options handling.
19671 ac_log="
19672 This file was extended by xf86-video-mga $as_me 1.6.4, which was
19673 generated by GNU Autoconf 2.69. Invocation command line was
19674
19675 CONFIG_FILES = $CONFIG_FILES
19676 CONFIG_HEADERS = $CONFIG_HEADERS
19677 CONFIG_LINKS = $CONFIG_LINKS
19678 CONFIG_COMMANDS = $CONFIG_COMMANDS
19679 $ $0 $@
19680
19681 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19682 "
19683
19684 _ACEOF
19685
19686 case $ac_config_files in *"
19687 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19688 esac
19689
19690 case $ac_config_headers in *"
19691 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19692 esac
19693
19694
19695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19696 # Files that config.status was made for.
19697 config_files="$ac_config_files"
19698 config_headers="$ac_config_headers"
19699 config_commands="$ac_config_commands"
19700
19701 _ACEOF
19702
19703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19704 ac_cs_usage="\
19705 \`$as_me' instantiates files and other configuration actions
19706 from templates according to the current configuration. Unless the files
19707 and actions are specified as TAGs, all are instantiated by default.
19708
19709 Usage: $0 [OPTION]... [TAG]...
19710
19711 -h, --help print this help, then exit
19712 -V, --version print version number and configuration settings, then exit
19713 --config print configuration, then exit
19714 -q, --quiet, --silent
19715 do not print progress messages
19716 -d, --debug don't remove temporary files
19717 --recheck update $as_me by reconfiguring in the same conditions
19718 --file=FILE[:TEMPLATE]
19719 instantiate the configuration file FILE
19720 --header=FILE[:TEMPLATE]
19721 instantiate the configuration header FILE
19722
19723 Configuration files:
19724 $config_files
19725
19726 Configuration headers:
19727 $config_headers
19728
19729 Configuration commands:
19730 $config_commands
19731
19732 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19733
19734 _ACEOF
19735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19736 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19737 ac_cs_version="\\
19738 xf86-video-mga config.status 1.6.4
19739 configured by $0, generated by GNU Autoconf 2.69,
19740 with options \\"\$ac_cs_config\\"
19741
19742 Copyright (C) 2012 Free Software Foundation, Inc.
19743 This config.status script is free software; the Free Software Foundation
19744 gives unlimited permission to copy, distribute and modify it."
19745
19746 ac_pwd='$ac_pwd'
19747 srcdir='$srcdir'
19748 INSTALL='$INSTALL'
19749 MKDIR_P='$MKDIR_P'
19750 AWK='$AWK'
19751 test -n "\$AWK" || AWK=awk
19752 _ACEOF
19753
19754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19755 # The default lists apply if the user does not specify any file.
19756 ac_need_defaults=:
19757 while test $# != 0
19758 do
19759 case $1 in
19760 --*=?*)
19761 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19762 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19763 ac_shift=:
19764 ;;
19765 --*=)
19766 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19767 ac_optarg=
19768 ac_shift=:
19769 ;;
19770 *)
19771 ac_option=$1
19772 ac_optarg=$2
19773 ac_shift=shift
19774 ;;
19775 esac
19776
19777 case $ac_option in
19778 # Handling of the options.
19779 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19780 ac_cs_recheck=: ;;
19781 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19782 $as_echo "$ac_cs_version"; exit ;;
19783 --config | --confi | --conf | --con | --co | --c )
19784 $as_echo "$ac_cs_config"; exit ;;
19785 --debug | --debu | --deb | --de | --d | -d )
19786 debug=: ;;
19787 --file | --fil | --fi | --f )
19788 $ac_shift
19789 case $ac_optarg in
19790 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19791 '') as_fn_error $? "missing file argument" ;;
19792 esac
19793 as_fn_append CONFIG_FILES " '$ac_optarg'"
19794 ac_need_defaults=false;;
19795 --header | --heade | --head | --hea )
19796 $ac_shift
19797 case $ac_optarg in
19798 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19799 esac
19800 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19801 ac_need_defaults=false;;
19802 --he | --h)
19803 # Conflict between --help and --header
19804 as_fn_error $? "ambiguous option: \`$1'
19805 Try \`$0 --help' for more information.";;
19806 --help | --hel | -h )
19807 $as_echo "$ac_cs_usage"; exit ;;
19808 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19809 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19810 ac_cs_silent=: ;;
19811
19812 # This is an error.
19813 -*) as_fn_error $? "unrecognized option: \`$1'
19814 Try \`$0 --help' for more information." ;;
19815
19816 *) as_fn_append ac_config_targets " $1"
19817 ac_need_defaults=false ;;
19818
19819 esac
19820 shift
19821 done
19822
19823 ac_configure_extra_args=
19824
19825 if $ac_cs_silent; then
19826 exec 6>/dev/null
19827 ac_configure_extra_args="$ac_configure_extra_args --silent"
19828 fi
19829
19830 _ACEOF
19831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19832 if \$ac_cs_recheck; then
19833 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19834 shift
19835 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19836 CONFIG_SHELL='$SHELL'
19837 export CONFIG_SHELL
19838 exec "\$@"
19839 fi
19840
19841 _ACEOF
19842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19843 exec 5>>config.log
19844 {
19845 echo
19846 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19847 ## Running $as_me. ##
19848 _ASBOX
19849 $as_echo "$ac_log"
19850 } >&5
19851
19852 _ACEOF
19853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19854 #
19855 # INIT-COMMANDS
19856 #
19857 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19858
19859
19860 # The HP-UX ksh and POSIX shell print the target directory to stdout
19861 # if CDPATH is set.
19862 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19863
19864 sed_quote_subst='$sed_quote_subst'
19865 double_quote_subst='$double_quote_subst'
19866 delay_variable_subst='$delay_variable_subst'
19867 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19868 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19869 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19870 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19871 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19872 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19873 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19874 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19875 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19876 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19877 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19878 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19879 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19880 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19881 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19882 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19883 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19884 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19885 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19886 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19887 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19888 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19889 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19890 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19891 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19892 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19893 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19894 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19895 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19896 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19897 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19898 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19899 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19900 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19901 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19902 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19903 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19904 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19905 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19906 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19907 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19908 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19909 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19910 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19911 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19912 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19913 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19914 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19915 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19916 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19917 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19918 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19919 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19920 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19921 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19922 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19923 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19924 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19925 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"`'
19926 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19927 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19928 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19929 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19930 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19931 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19932 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19933 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19934 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19935 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19936 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19937 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19938 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19939 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19940 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19941 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19942 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19943 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19944 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19945 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19946 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19947 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19948 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19949 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19950 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19951 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19952 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19953 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19954 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19955 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19956 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19957 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19958 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19959 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19960 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19961 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19962 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19963 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19964 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19965 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19966 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19967 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19968 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19969 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19970 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19971 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19972 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19973 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19974 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19975 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19976 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19977 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19978 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19979 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19980 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19981 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19982 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19983 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19984 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19985 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19986 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19987 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19988 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19989 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19990 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19991 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19992 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19993 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19994 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19995 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19996 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19997 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19998 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19999 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20000 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20001
20002 LTCC='$LTCC'
20003 LTCFLAGS='$LTCFLAGS'
20004 compiler='$compiler_DEFAULT'
20005
20006 # A function that is used when there is no print builtin or printf.
20007 func_fallback_echo ()
20008 {
20009 eval 'cat <<_LTECHO_EOF
20010 \$1
20011 _LTECHO_EOF'
20012 }
20013
20014 # Quote evaled strings.
20015 for var in SHELL \
20016 ECHO \
20017 PATH_SEPARATOR \
20018 SED \
20019 GREP \
20020 EGREP \
20021 FGREP \
20022 LD \
20023 NM \
20024 LN_S \
20025 lt_SP2NL \
20026 lt_NL2SP \
20027 reload_flag \
20028 OBJDUMP \
20029 deplibs_check_method \
20030 file_magic_cmd \
20031 file_magic_glob \
20032 want_nocaseglob \
20033 DLLTOOL \
20034 sharedlib_from_linklib_cmd \
20035 AR \
20036 AR_FLAGS \
20037 archiver_list_spec \
20038 STRIP \
20039 RANLIB \
20040 CC \
20041 CFLAGS \
20042 compiler \
20043 lt_cv_sys_global_symbol_pipe \
20044 lt_cv_sys_global_symbol_to_cdecl \
20045 lt_cv_sys_global_symbol_to_import \
20046 lt_cv_sys_global_symbol_to_c_name_address \
20047 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20048 lt_cv_nm_interface \
20049 nm_file_list_spec \
20050 lt_cv_truncate_bin \
20051 lt_prog_compiler_no_builtin_flag \
20052 lt_prog_compiler_pic \
20053 lt_prog_compiler_wl \
20054 lt_prog_compiler_static \
20055 lt_cv_prog_compiler_c_o \
20056 need_locks \
20057 MANIFEST_TOOL \
20058 DSYMUTIL \
20059 NMEDIT \
20060 LIPO \
20061 OTOOL \
20062 OTOOL64 \
20063 shrext_cmds \
20064 export_dynamic_flag_spec \
20065 whole_archive_flag_spec \
20066 compiler_needs_object \
20067 with_gnu_ld \
20068 allow_undefined_flag \
20069 no_undefined_flag \
20070 hardcode_libdir_flag_spec \
20071 hardcode_libdir_separator \
20072 exclude_expsyms \
20073 include_expsyms \
20074 file_list_spec \
20075 variables_saved_for_relink \
20076 libname_spec \
20077 library_names_spec \
20078 soname_spec \
20079 install_override_mode \
20080 finish_eval \
20081 old_striplib \
20082 striplib; do
20083 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20084 *[\\\\\\\`\\"\\\$]*)
20085 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20086 ;;
20087 *)
20088 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20089 ;;
20090 esac
20091 done
20092
20093 # Double-quote double-evaled strings.
20094 for var in reload_cmds \
20095 old_postinstall_cmds \
20096 old_postuninstall_cmds \
20097 old_archive_cmds \
20098 extract_expsyms_cmds \
20099 old_archive_from_new_cmds \
20100 old_archive_from_expsyms_cmds \
20101 archive_cmds \
20102 archive_expsym_cmds \
20103 module_cmds \
20104 module_expsym_cmds \
20105 export_symbols_cmds \
20106 prelink_cmds \
20107 postlink_cmds \
20108 postinstall_cmds \
20109 postuninstall_cmds \
20110 finish_cmds \
20111 sys_lib_search_path_spec \
20112 sys_lib_dlsearch_path_spec; do
20113 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20114 *[\\\\\\\`\\"\\\$]*)
20115 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20116 ;;
20117 *)
20118 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20119 ;;
20120 esac
20121 done
20122
20123 ac_aux_dir='$ac_aux_dir'
20124
20125 # See if we are running on zsh, and set the options that allow our
20126 # commands through without removal of \ escapes INIT.
20127 if test -n "\${ZSH_VERSION+set}"; then
20128 setopt NO_GLOB_SUBST
20129 fi
20130
20131
20132 PACKAGE='$PACKAGE'
20133 VERSION='$VERSION'
20134 RM='$RM'
20135 ofile='$ofile'
20136
20137
20138
20139
20140 _ACEOF
20141
20142 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20143
20144 # Handling of arguments.
20145 for ac_config_target in $ac_config_targets
20146 do
20147 case $ac_config_target in
20148 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20149 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20150 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20151 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20152 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20153 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20154 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
20155
20156 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20157 esac
20158 done
20159
20160
20161 # If the user did not use the arguments to specify the items to instantiate,
20162 # then the envvar interface is used. Set only those that are not.
20163 # We use the long form for the default assignment because of an extremely
20164 # bizarre bug on SunOS 4.1.3.
20165 if $ac_need_defaults; then
20166 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20167 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20168 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20169 fi
20170
20171 # Have a temporary directory for convenience. Make it in the build tree
20172 # simply because there is no reason against having it here, and in addition,
20173 # creating and moving files from /tmp can sometimes cause problems.
20174 # Hook for its removal unless debugging.
20175 # Note that there is a small window in which the directory will not be cleaned:
20176 # after its creation but before its name has been assigned to `$tmp'.
20177 $debug ||
20178 {
20179 tmp= ac_tmp=
20180 trap 'exit_status=$?
20181 : "${ac_tmp:=$tmp}"
20182 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20183 ' 0
20184 trap 'as_fn_exit 1' 1 2 13 15
20185 }
20186 # Create a (secure) tmp directory for tmp files.
20187
20188 {
20189 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20190 test -d "$tmp"
20191 } ||
20192 {
20193 tmp=./conf$$-$RANDOM
20194 (umask 077 && mkdir "$tmp")
20195 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20196 ac_tmp=$tmp
20197
20198 # Set up the scripts for CONFIG_FILES section.
20199 # No need to generate them if there are no CONFIG_FILES.
20200 # This happens for instance with `./config.status config.h'.
20201 if test -n "$CONFIG_FILES"; then
20202
20203
20204 ac_cr=`echo X | tr X '\015'`
20205 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20206 # But we know of no other shell where ac_cr would be empty at this
20207 # point, so we can use a bashism as a fallback.
20208 if test "x$ac_cr" = x; then
20209 eval ac_cr=\$\'\\r\'
20210 fi
20211 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20212 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20213 ac_cs_awk_cr='\\r'
20214 else
20215 ac_cs_awk_cr=$ac_cr
20216 fi
20217
20218 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20219 _ACEOF
20220
20221
20222 {
20223 echo "cat >conf$$subs.awk <<_ACEOF" &&
20224 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20225 echo "_ACEOF"
20226 } >conf$$subs.sh ||
20227 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20228 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20229 ac_delim='%!_!# '
20230 for ac_last_try in false false false false false :; do
20231 . ./conf$$subs.sh ||
20232 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20233
20234 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20235 if test $ac_delim_n = $ac_delim_num; then
20236 break
20237 elif $ac_last_try; then
20238 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20239 else
20240 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20241 fi
20242 done
20243 rm -f conf$$subs.sh
20244
20245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20246 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20247 _ACEOF
20248 sed -n '
20249 h
20250 s/^/S["/; s/!.*/"]=/
20251 p
20252 g
20253 s/^[^!]*!//
20254 :repl
20255 t repl
20256 s/'"$ac_delim"'$//
20257 t delim
20258 :nl
20259 h
20260 s/\(.\{148\}\)..*/\1/
20261 t more1
20262 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20263 p
20264 n
20265 b repl
20266 :more1
20267 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20268 p
20269 g
20270 s/.\{148\}//
20271 t nl
20272 :delim
20273 h
20274 s/\(.\{148\}\)..*/\1/
20275 t more2
20276 s/["\\]/\\&/g; s/^/"/; s/$/"/
20277 p
20278 b
20279 :more2
20280 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20281 p
20282 g
20283 s/.\{148\}//
20284 t delim
20285 ' <conf$$subs.awk | sed '
20286 /^[^""]/{
20287 N
20288 s/\n//
20289 }
20290 ' >>$CONFIG_STATUS || ac_write_fail=1
20291 rm -f conf$$subs.awk
20292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20293 _ACAWK
20294 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20295 for (key in S) S_is_set[key] = 1
20296 FS = ""
20297
20298 }
20299 {
20300 line = $ 0
20301 nfields = split(line, field, "@")
20302 substed = 0
20303 len = length(field[1])
20304 for (i = 2; i < nfields; i++) {
20305 key = field[i]
20306 keylen = length(key)
20307 if (S_is_set[key]) {
20308 value = S[key]
20309 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20310 len += length(value) + length(field[++i])
20311 substed = 1
20312 } else
20313 len += 1 + keylen
20314 }
20315
20316 print line
20317 }
20318
20319 _ACAWK
20320 _ACEOF
20321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20322 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20323 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20324 else
20325 cat
20326 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20327 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20328 _ACEOF
20329
20330 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20331 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20332 # trailing colons and then remove the whole line if VPATH becomes empty
20333 # (actually we leave an empty line to preserve line numbers).
20334 if test "x$srcdir" = x.; then
20335 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20336 h
20337 s///
20338 s/^/:/
20339 s/[ ]*$/:/
20340 s/:\$(srcdir):/:/g
20341 s/:\${srcdir}:/:/g
20342 s/:@srcdir@:/:/g
20343 s/^:*//
20344 s/:*$//
20345 x
20346 s/\(=[ ]*\).*/\1/
20347 G
20348 s/\n//
20349 s/^[^=]*=[ ]*$//
20350 }'
20351 fi
20352
20353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20354 fi # test -n "$CONFIG_FILES"
20355
20356 # Set up the scripts for CONFIG_HEADERS section.
20357 # No need to generate them if there are no CONFIG_HEADERS.
20358 # This happens for instance with `./config.status Makefile'.
20359 if test -n "$CONFIG_HEADERS"; then
20360 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20361 BEGIN {
20362 _ACEOF
20363
20364 # Transform confdefs.h into an awk script `defines.awk', embedded as
20365 # here-document in config.status, that substitutes the proper values into
20366 # config.h.in to produce config.h.
20367
20368 # Create a delimiter string that does not exist in confdefs.h, to ease
20369 # handling of long lines.
20370 ac_delim='%!_!# '
20371 for ac_last_try in false false :; do
20372 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20373 if test -z "$ac_tt"; then
20374 break
20375 elif $ac_last_try; then
20376 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20377 else
20378 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20379 fi
20380 done
20381
20382 # For the awk script, D is an array of macro values keyed by name,
20383 # likewise P contains macro parameters if any. Preserve backslash
20384 # newline sequences.
20385
20386 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20387 sed -n '
20388 s/.\{148\}/&'"$ac_delim"'/g
20389 t rset
20390 :rset
20391 s/^[ ]*#[ ]*define[ ][ ]*/ /
20392 t def
20393 d
20394 :def
20395 s/\\$//
20396 t bsnl
20397 s/["\\]/\\&/g
20398 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20399 D["\1"]=" \3"/p
20400 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20401 d
20402 :bsnl
20403 s/["\\]/\\&/g
20404 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20405 D["\1"]=" \3\\\\\\n"\\/p
20406 t cont
20407 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20408 t cont
20409 d
20410 :cont
20411 n
20412 s/.\{148\}/&'"$ac_delim"'/g
20413 t clear
20414 :clear
20415 s/\\$//
20416 t bsnlc
20417 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20418 d
20419 :bsnlc
20420 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20421 b cont
20422 ' <confdefs.h | sed '
20423 s/'"$ac_delim"'/"\\\
20424 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20425
20426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20427 for (key in D) D_is_set[key] = 1
20428 FS = ""
20429 }
20430 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20431 line = \$ 0
20432 split(line, arg, " ")
20433 if (arg[1] == "#") {
20434 defundef = arg[2]
20435 mac1 = arg[3]
20436 } else {
20437 defundef = substr(arg[1], 2)
20438 mac1 = arg[2]
20439 }
20440 split(mac1, mac2, "(") #)
20441 macro = mac2[1]
20442 prefix = substr(line, 1, index(line, defundef) - 1)
20443 if (D_is_set[macro]) {
20444 # Preserve the white space surrounding the "#".
20445 print prefix "define", macro P[macro] D[macro]
20446 next
20447 } else {
20448 # Replace #undef with comments. This is necessary, for example,
20449 # in the case of _POSIX_SOURCE, which is predefined and required
20450 # on some systems where configure will not decide to define it.
20451 if (defundef == "undef") {
20452 print "/*", prefix defundef, macro, "*/"
20453 next
20454 }
20455 }
20456 }
20457 { print }
20458 _ACAWK
20459 _ACEOF
20460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20461 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20462 fi # test -n "$CONFIG_HEADERS"
20463
20464
20465 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20466 shift
20467 for ac_tag
20468 do
20469 case $ac_tag in
20470 :[FHLC]) ac_mode=$ac_tag; continue;;
20471 esac
20472 case $ac_mode$ac_tag in
20473 :[FHL]*:*);;
20474 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20475 :[FH]-) ac_tag=-:-;;
20476 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20477 esac
20478 ac_save_IFS=$IFS
20479 IFS=:
20480 set x $ac_tag
20481 IFS=$ac_save_IFS
20482 shift
20483 ac_file=$1
20484 shift
20485
20486 case $ac_mode in
20487 :L) ac_source=$1;;
20488 :[FH])
20489 ac_file_inputs=
20490 for ac_f
20491 do
20492 case $ac_f in
20493 -) ac_f="$ac_tmp/stdin";;
20494 *) # Look for the file first in the build tree, then in the source tree
20495 # (if the path is not absolute). The absolute path cannot be DOS-style,
20496 # because $ac_f cannot contain `:'.
20497 test -f "$ac_f" ||
20498 case $ac_f in
20499 [\\/$]*) false;;
20500 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20501 esac ||
20502 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20503 esac
20504 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20505 as_fn_append ac_file_inputs " '$ac_f'"
20506 done
20507
20508 # Let's still pretend it is `configure' which instantiates (i.e., don't
20509 # use $as_me), people would be surprised to read:
20510 # /* config.h. Generated by config.status. */
20511 configure_input='Generated from '`
20512 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20513 `' by configure.'
20514 if test x"$ac_file" != x-; then
20515 configure_input="$ac_file. $configure_input"
20516 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20517 $as_echo "$as_me: creating $ac_file" >&6;}
20518 fi
20519 # Neutralize special characters interpreted by sed in replacement strings.
20520 case $configure_input in #(
20521 *\&* | *\|* | *\\* )
20522 ac_sed_conf_input=`$as_echo "$configure_input" |
20523 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20524 *) ac_sed_conf_input=$configure_input;;
20525 esac
20526
20527 case $ac_tag in
20528 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20529 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20530 esac
20531 ;;
20532 esac
20533
20534 ac_dir=`$as_dirname -- "$ac_file" ||
20535 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20536 X"$ac_file" : 'X\(//\)[^/]' \| \
20537 X"$ac_file" : 'X\(//\)$' \| \
20538 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20539 $as_echo X"$ac_file" |
20540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20541 s//\1/
20542 q
20543 }
20544 /^X\(\/\/\)[^/].*/{
20545 s//\1/
20546 q
20547 }
20548 /^X\(\/\/\)$/{
20549 s//\1/
20550 q
20551 }
20552 /^X\(\/\).*/{
20553 s//\1/
20554 q
20555 }
20556 s/.*/./; q'`
20557 as_dir="$ac_dir"; as_fn_mkdir_p
20558 ac_builddir=.
20559
20560 case "$ac_dir" in
20561 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20562 *)
20563 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20564 # A ".." for each directory in $ac_dir_suffix.
20565 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20566 case $ac_top_builddir_sub in
20567 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20568 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20569 esac ;;
20570 esac
20571 ac_abs_top_builddir=$ac_pwd
20572 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20573 # for backward compatibility:
20574 ac_top_builddir=$ac_top_build_prefix
20575
20576 case $srcdir in
20577 .) # We are building in place.
20578 ac_srcdir=.
20579 ac_top_srcdir=$ac_top_builddir_sub
20580 ac_abs_top_srcdir=$ac_pwd ;;
20581 [\\/]* | ?:[\\/]* ) # Absolute name.
20582 ac_srcdir=$srcdir$ac_dir_suffix;
20583 ac_top_srcdir=$srcdir
20584 ac_abs_top_srcdir=$srcdir ;;
20585 *) # Relative name.
20586 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20587 ac_top_srcdir=$ac_top_build_prefix$srcdir
20588 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20589 esac
20590 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20591
20592
20593 case $ac_mode in
20594 :F)
20595 #
20596 # CONFIG_FILE
20597 #
20598
20599 case $INSTALL in
20600 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20601 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20602 esac
20603 ac_MKDIR_P=$MKDIR_P
20604 case $MKDIR_P in
20605 [\\/$]* | ?:[\\/]* ) ;;
20606 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20607 esac
20608 _ACEOF
20609
20610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20611 # If the template does not know about datarootdir, expand it.
20612 # FIXME: This hack should be removed a few years after 2.60.
20613 ac_datarootdir_hack=; ac_datarootdir_seen=
20614 ac_sed_dataroot='
20615 /datarootdir/ {
20616 p
20617 q
20618 }
20619 /@datadir@/p
20620 /@docdir@/p
20621 /@infodir@/p
20622 /@localedir@/p
20623 /@mandir@/p'
20624 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20625 *datarootdir*) ac_datarootdir_seen=yes;;
20626 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20628 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20629 _ACEOF
20630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20631 ac_datarootdir_hack='
20632 s&@datadir@&$datadir&g
20633 s&@docdir@&$docdir&g
20634 s&@infodir@&$infodir&g
20635 s&@localedir@&$localedir&g
20636 s&@mandir@&$mandir&g
20637 s&\\\${datarootdir}&$datarootdir&g' ;;
20638 esac
20639 _ACEOF
20640
20641 # Neutralize VPATH when `$srcdir' = `.'.
20642 # Shell code in configure.ac might set extrasub.
20643 # FIXME: do we really want to maintain this feature?
20644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20645 ac_sed_extra="$ac_vpsub
20646 $extrasub
20647 _ACEOF
20648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20649 :t
20650 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20651 s|@configure_input@|$ac_sed_conf_input|;t t
20652 s&@top_builddir@&$ac_top_builddir_sub&;t t
20653 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20654 s&@srcdir@&$ac_srcdir&;t t
20655 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20656 s&@top_srcdir@&$ac_top_srcdir&;t t
20657 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20658 s&@builddir@&$ac_builddir&;t t
20659 s&@abs_builddir@&$ac_abs_builddir&;t t
20660 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20661 s&@INSTALL@&$ac_INSTALL&;t t
20662 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20663 $ac_datarootdir_hack
20664 "
20665 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20666 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20667
20668 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20669 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20670 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20671 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20673 which seems to be undefined. Please make sure it is defined" >&5
20674 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20675 which seems to be undefined. Please make sure it is defined" >&2;}
20676
20677 rm -f "$ac_tmp/stdin"
20678 case $ac_file in
20679 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20680 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20681 esac \
20682 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20683 ;;
20684 :H)
20685 #
20686 # CONFIG_HEADER
20687 #
20688 if test x"$ac_file" != x-; then
20689 {
20690 $as_echo "/* $configure_input */" \
20691 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20692 } >"$ac_tmp/config.h" \
20693 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20694 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20695 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20696 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20697 else
20698 rm -f "$ac_file"
20699 mv "$ac_tmp/config.h" "$ac_file" \
20700 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20701 fi
20702 else
20703 $as_echo "/* $configure_input */" \
20704 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20705 || as_fn_error $? "could not create -" "$LINENO" 5
20706 fi
20707 # Compute "$ac_file"'s index in $config_headers.
20708 _am_arg="$ac_file"
20709 _am_stamp_count=1
20710 for _am_header in $config_headers :; do
20711 case $_am_header in
20712 $_am_arg | $_am_arg:* )
20713 break ;;
20714 * )
20715 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20716 esac
20717 done
20718 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20719 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20720 X"$_am_arg" : 'X\(//\)[^/]' \| \
20721 X"$_am_arg" : 'X\(//\)$' \| \
20722 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20723 $as_echo X"$_am_arg" |
20724 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20725 s//\1/
20726 q
20727 }
20728 /^X\(\/\/\)[^/].*/{
20729 s//\1/
20730 q
20731 }
20732 /^X\(\/\/\)$/{
20733 s//\1/
20734 q
20735 }
20736 /^X\(\/\).*/{
20737 s//\1/
20738 q
20739 }
20740 s/.*/./; q'`/stamp-h$_am_stamp_count
20741 ;;
20742
20743 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20744 $as_echo "$as_me: executing $ac_file commands" >&6;}
20745 ;;
20746 esac
20747
20748
20749 case $ac_file$ac_mode in
20750 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20751 # Older Autoconf quotes --file arguments for eval, but not when files
20752 # are listed without --file. Let's play safe and only enable the eval
20753 # if we detect the quoting.
20754 case $CONFIG_FILES in
20755 *\'*) eval set x "$CONFIG_FILES" ;;
20756 *) set x $CONFIG_FILES ;;
20757 esac
20758 shift
20759 for mf
20760 do
20761 # Strip MF so we end up with the name of the file.
20762 mf=`echo "$mf" | sed -e 's/:.*$//'`
20763 # Check whether this is an Automake generated Makefile or not.
20764 # We used to match only the files named 'Makefile.in', but
20765 # some people rename them; so instead we look at the file content.
20766 # Grep'ing the first line is not enough: some people post-process
20767 # each Makefile.in and add a new line on top of each file to say so.
20768 # Grep'ing the whole file is not good either: AIX grep has a line
20769 # limit of 2048, but all sed's we know have understand at least 4000.
20770 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20771 dirpart=`$as_dirname -- "$mf" ||
20772 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20773 X"$mf" : 'X\(//\)[^/]' \| \
20774 X"$mf" : 'X\(//\)$' \| \
20775 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20776 $as_echo X"$mf" |
20777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20778 s//\1/
20779 q
20780 }
20781 /^X\(\/\/\)[^/].*/{
20782 s//\1/
20783 q
20784 }
20785 /^X\(\/\/\)$/{
20786 s//\1/
20787 q
20788 }
20789 /^X\(\/\).*/{
20790 s//\1/
20791 q
20792 }
20793 s/.*/./; q'`
20794 else
20795 continue
20796 fi
20797 # Extract the definition of DEPDIR, am__include, and am__quote
20798 # from the Makefile without running 'make'.
20799 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20800 test -z "$DEPDIR" && continue
20801 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20802 test -z "$am__include" && continue
20803 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20804 # Find all dependency output files, they are included files with
20805 # $(DEPDIR) in their names. We invoke sed twice because it is the
20806 # simplest approach to changing $(DEPDIR) to its actual value in the
20807 # expansion.
20808 for file in `sed -n "
20809 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20810 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20811 # Make sure the directory exists.
20812 test -f "$dirpart/$file" && continue
20813 fdir=`$as_dirname -- "$file" ||
20814 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20815 X"$file" : 'X\(//\)[^/]' \| \
20816 X"$file" : 'X\(//\)$' \| \
20817 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20818 $as_echo X"$file" |
20819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20820 s//\1/
20821 q
20822 }
20823 /^X\(\/\/\)[^/].*/{
20824 s//\1/
20825 q
20826 }
20827 /^X\(\/\/\)$/{
20828 s//\1/
20829 q
20830 }
20831 /^X\(\/\).*/{
20832 s//\1/
20833 q
20834 }
20835 s/.*/./; q'`
20836 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20837 # echo "creating $dirpart/$file"
20838 echo '# dummy' > "$dirpart/$file"
20839 done
20840 done
20841 }
20842 ;;
20843 "libtool":C)
20844
20845 # See if we are running on zsh, and set the options that allow our
20846 # commands through without removal of \ escapes.
20847 if test -n "${ZSH_VERSION+set}"; then
20848 setopt NO_GLOB_SUBST
20849 fi
20850
20851 cfgfile=${ofile}T
20852 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20853 $RM "$cfgfile"
20854
20855 cat <<_LT_EOF >> "$cfgfile"
20856 #! $SHELL
20857 # Generated automatically by $as_me ($PACKAGE) $VERSION
20858 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20859 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20860
20861 # Provide generalized library-building support services.
20862 # Written by Gordon Matzigkeit, 1996
20863
20864 # Copyright (C) 2014 Free Software Foundation, Inc.
20865 # This is free software; see the source for copying conditions. There is NO
20866 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20867
20868 # GNU Libtool is free software; you can redistribute it and/or modify
20869 # it under the terms of the GNU General Public License as published by
20870 # the Free Software Foundation; either version 2 of of the License, or
20871 # (at your option) any later version.
20872 #
20873 # As a special exception to the GNU General Public License, if you
20874 # distribute this file as part of a program or library that is built
20875 # using GNU Libtool, you may include this file under the same
20876 # distribution terms that you use for the rest of that program.
20877 #
20878 # GNU Libtool is distributed in the hope that it will be useful, but
20879 # WITHOUT ANY WARRANTY; without even the implied warranty of
20880 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20881 # GNU General Public License for more details.
20882 #
20883 # You should have received a copy of the GNU General Public License
20884 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20885
20886
20887 # The names of the tagged configurations supported by this script.
20888 available_tags=''
20889
20890 # ### BEGIN LIBTOOL CONFIG
20891
20892 # Whether or not to build static libraries.
20893 build_old_libs=$enable_static
20894
20895 # Which release of libtool.m4 was used?
20896 macro_version=$macro_version
20897 macro_revision=$macro_revision
20898
20899 # Whether or not to build shared libraries.
20900 build_libtool_libs=$enable_shared
20901
20902 # What type of objects to build.
20903 pic_mode=$pic_mode
20904
20905 # Whether or not to optimize for fast installation.
20906 fast_install=$enable_fast_install
20907
20908 # Shared archive member basename,for filename based shared library versioning on AIX.
20909 shared_archive_member_spec=$shared_archive_member_spec
20910
20911 # Shell to use when invoking shell scripts.
20912 SHELL=$lt_SHELL
20913
20914 # An echo program that protects backslashes.
20915 ECHO=$lt_ECHO
20916
20917 # The PATH separator for the build system.
20918 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20919
20920 # The host system.
20921 host_alias=$host_alias
20922 host=$host
20923 host_os=$host_os
20924
20925 # The build system.
20926 build_alias=$build_alias
20927 build=$build
20928 build_os=$build_os
20929
20930 # A sed program that does not truncate output.
20931 SED=$lt_SED
20932
20933 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20934 Xsed="\$SED -e 1s/^X//"
20935
20936 # A grep program that handles long lines.
20937 GREP=$lt_GREP
20938
20939 # An ERE matcher.
20940 EGREP=$lt_EGREP
20941
20942 # A literal string matcher.
20943 FGREP=$lt_FGREP
20944
20945 # A BSD- or MS-compatible name lister.
20946 NM=$lt_NM
20947
20948 # Whether we need soft or hard links.
20949 LN_S=$lt_LN_S
20950
20951 # What is the maximum length of a command?
20952 max_cmd_len=$max_cmd_len
20953
20954 # Object file suffix (normally "o").
20955 objext=$ac_objext
20956
20957 # Executable file suffix (normally "").
20958 exeext=$exeext
20959
20960 # whether the shell understands "unset".
20961 lt_unset=$lt_unset
20962
20963 # turn spaces into newlines.
20964 SP2NL=$lt_lt_SP2NL
20965
20966 # turn newlines into spaces.
20967 NL2SP=$lt_lt_NL2SP
20968
20969 # convert \$build file names to \$host format.
20970 to_host_file_cmd=$lt_cv_to_host_file_cmd
20971
20972 # convert \$build files to toolchain format.
20973 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20974
20975 # An object symbol dumper.
20976 OBJDUMP=$lt_OBJDUMP
20977
20978 # Method to check whether dependent libraries are shared objects.
20979 deplibs_check_method=$lt_deplibs_check_method
20980
20981 # Command to use when deplibs_check_method = "file_magic".
20982 file_magic_cmd=$lt_file_magic_cmd
20983
20984 # How to find potential files when deplibs_check_method = "file_magic".
20985 file_magic_glob=$lt_file_magic_glob
20986
20987 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20988 want_nocaseglob=$lt_want_nocaseglob
20989
20990 # DLL creation program.
20991 DLLTOOL=$lt_DLLTOOL
20992
20993 # Command to associate shared and link libraries.
20994 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20995
20996 # The archiver.
20997 AR=$lt_AR
20998
20999 # Flags to create an archive.
21000 AR_FLAGS=$lt_AR_FLAGS
21001
21002 # How to feed a file listing to the archiver.
21003 archiver_list_spec=$lt_archiver_list_spec
21004
21005 # A symbol stripping program.
21006 STRIP=$lt_STRIP
21007
21008 # Commands used to install an old-style archive.
21009 RANLIB=$lt_RANLIB
21010 old_postinstall_cmds=$lt_old_postinstall_cmds
21011 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21012
21013 # Whether to use a lock for old archive extraction.
21014 lock_old_archive_extraction=$lock_old_archive_extraction
21015
21016 # A C compiler.
21017 LTCC=$lt_CC
21018
21019 # LTCC compiler flags.
21020 LTCFLAGS=$lt_CFLAGS
21021
21022 # Take the output of nm and produce a listing of raw symbols and C names.
21023 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21024
21025 # Transform the output of nm in a proper C declaration.
21026 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21027
21028 # Transform the output of nm into a list of symbols to manually relocate.
21029 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21030
21031 # Transform the output of nm in a C name address pair.
21032 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21033
21034 # Transform the output of nm in a C name address pair when lib prefix is needed.
21035 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21036
21037 # The name lister interface.
21038 nm_interface=$lt_lt_cv_nm_interface
21039
21040 # Specify filename containing input files for \$NM.
21041 nm_file_list_spec=$lt_nm_file_list_spec
21042
21043 # The root where to search for dependent libraries,and where our libraries should be installed.
21044 lt_sysroot=$lt_sysroot
21045
21046 # Command to truncate a binary pipe.
21047 lt_truncate_bin=$lt_lt_cv_truncate_bin
21048
21049 # The name of the directory that contains temporary libtool files.
21050 objdir=$objdir
21051
21052 # Used to examine libraries when file_magic_cmd begins with "file".
21053 MAGIC_CMD=$MAGIC_CMD
21054
21055 # Must we lock files when doing compilation?
21056 need_locks=$lt_need_locks
21057
21058 # Manifest tool.
21059 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21060
21061 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21062 DSYMUTIL=$lt_DSYMUTIL
21063
21064 # Tool to change global to local symbols on Mac OS X.
21065 NMEDIT=$lt_NMEDIT
21066
21067 # Tool to manipulate fat objects and archives on Mac OS X.
21068 LIPO=$lt_LIPO
21069
21070 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21071 OTOOL=$lt_OTOOL
21072
21073 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21074 OTOOL64=$lt_OTOOL64
21075
21076 # Old archive suffix (normally "a").
21077 libext=$libext
21078
21079 # Shared library suffix (normally ".so").
21080 shrext_cmds=$lt_shrext_cmds
21081
21082 # The commands to extract the exported symbol list from a shared archive.
21083 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21084
21085 # Variables whose values should be saved in libtool wrapper scripts and
21086 # restored at link time.
21087 variables_saved_for_relink=$lt_variables_saved_for_relink
21088
21089 # Do we need the "lib" prefix for modules?
21090 need_lib_prefix=$need_lib_prefix
21091
21092 # Do we need a version for libraries?
21093 need_version=$need_version
21094
21095 # Library versioning type.
21096 version_type=$version_type
21097
21098 # Shared library runtime path variable.
21099 runpath_var=$runpath_var
21100
21101 # Shared library path variable.
21102 shlibpath_var=$shlibpath_var
21103
21104 # Is shlibpath searched before the hard-coded library search path?
21105 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21106
21107 # Format of library name prefix.
21108 libname_spec=$lt_libname_spec
21109
21110 # List of archive names. First name is the real one, the rest are links.
21111 # The last name is the one that the linker finds with -lNAME
21112 library_names_spec=$lt_library_names_spec
21113
21114 # The coded name of the library, if different from the real name.
21115 soname_spec=$lt_soname_spec
21116
21117 # Permission mode override for installation of shared libraries.
21118 install_override_mode=$lt_install_override_mode
21119
21120 # Command to use after installation of a shared archive.
21121 postinstall_cmds=$lt_postinstall_cmds
21122
21123 # Command to use after uninstallation of a shared archive.
21124 postuninstall_cmds=$lt_postuninstall_cmds
21125
21126 # Commands used to finish a libtool library installation in a directory.
21127 finish_cmds=$lt_finish_cmds
21128
21129 # As "finish_cmds", except a single script fragment to be evaled but
21130 # not shown.
21131 finish_eval=$lt_finish_eval
21132
21133 # Whether we should hardcode library paths into libraries.
21134 hardcode_into_libs=$hardcode_into_libs
21135
21136 # Compile-time system search path for libraries.
21137 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21138
21139 # Run-time system search path for libraries.
21140 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21141
21142 # Whether dlopen is supported.
21143 dlopen_support=$enable_dlopen
21144
21145 # Whether dlopen of programs is supported.
21146 dlopen_self=$enable_dlopen_self
21147
21148 # Whether dlopen of statically linked programs is supported.
21149 dlopen_self_static=$enable_dlopen_self_static
21150
21151 # Commands to strip libraries.
21152 old_striplib=$lt_old_striplib
21153 striplib=$lt_striplib
21154
21155
21156 # The linker used to build libraries.
21157 LD=$lt_LD
21158
21159 # How to create reloadable object files.
21160 reload_flag=$lt_reload_flag
21161 reload_cmds=$lt_reload_cmds
21162
21163 # Commands used to build an old-style archive.
21164 old_archive_cmds=$lt_old_archive_cmds
21165
21166 # A language specific compiler.
21167 CC=$lt_compiler
21168
21169 # Is the compiler the GNU compiler?
21170 with_gcc=$GCC
21171
21172 # Compiler flag to turn off builtin functions.
21173 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21174
21175 # Additional compiler flags for building library objects.
21176 pic_flag=$lt_lt_prog_compiler_pic
21177
21178 # How to pass a linker flag through the compiler.
21179 wl=$lt_lt_prog_compiler_wl
21180
21181 # Compiler flag to prevent dynamic linking.
21182 link_static_flag=$lt_lt_prog_compiler_static
21183
21184 # Does compiler simultaneously support -c and -o options?
21185 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21186
21187 # Whether or not to add -lc for building shared libraries.
21188 build_libtool_need_lc=$archive_cmds_need_lc
21189
21190 # Whether or not to disallow shared libs when runtime libs are static.
21191 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21192
21193 # Compiler flag to allow reflexive dlopens.
21194 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21195
21196 # Compiler flag to generate shared objects directly from archives.
21197 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21198
21199 # Whether the compiler copes with passing no objects directly.
21200 compiler_needs_object=$lt_compiler_needs_object
21201
21202 # Create an old-style archive from a shared archive.
21203 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21204
21205 # Create a temporary old-style archive to link instead of a shared archive.
21206 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21207
21208 # Commands used to build a shared archive.
21209 archive_cmds=$lt_archive_cmds
21210 archive_expsym_cmds=$lt_archive_expsym_cmds
21211
21212 # Commands used to build a loadable module if different from building
21213 # a shared archive.
21214 module_cmds=$lt_module_cmds
21215 module_expsym_cmds=$lt_module_expsym_cmds
21216
21217 # Whether we are building with GNU ld or not.
21218 with_gnu_ld=$lt_with_gnu_ld
21219
21220 # Flag that allows shared libraries with undefined symbols to be built.
21221 allow_undefined_flag=$lt_allow_undefined_flag
21222
21223 # Flag that enforces no undefined symbols.
21224 no_undefined_flag=$lt_no_undefined_flag
21225
21226 # Flag to hardcode \$libdir into a binary during linking.
21227 # This must work even if \$libdir does not exist
21228 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21229
21230 # Whether we need a single "-rpath" flag with a separated argument.
21231 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21232
21233 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21234 # DIR into the resulting binary.
21235 hardcode_direct=$hardcode_direct
21236
21237 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21238 # DIR into the resulting binary and the resulting library dependency is
21239 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21240 # library is relocated.
21241 hardcode_direct_absolute=$hardcode_direct_absolute
21242
21243 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21244 # into the resulting binary.
21245 hardcode_minus_L=$hardcode_minus_L
21246
21247 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21248 # into the resulting binary.
21249 hardcode_shlibpath_var=$hardcode_shlibpath_var
21250
21251 # Set to "yes" if building a shared library automatically hardcodes DIR
21252 # into the library and all subsequent libraries and executables linked
21253 # against it.
21254 hardcode_automatic=$hardcode_automatic
21255
21256 # Set to yes if linker adds runtime paths of dependent libraries
21257 # to runtime path list.
21258 inherit_rpath=$inherit_rpath
21259
21260 # Whether libtool must link a program against all its dependency libraries.
21261 link_all_deplibs=$link_all_deplibs
21262
21263 # Set to "yes" if exported symbols are required.
21264 always_export_symbols=$always_export_symbols
21265
21266 # The commands to list exported symbols.
21267 export_symbols_cmds=$lt_export_symbols_cmds
21268
21269 # Symbols that should not be listed in the preloaded symbols.
21270 exclude_expsyms=$lt_exclude_expsyms
21271
21272 # Symbols that must always be exported.
21273 include_expsyms=$lt_include_expsyms
21274
21275 # Commands necessary for linking programs (against libraries) with templates.
21276 prelink_cmds=$lt_prelink_cmds
21277
21278 # Commands necessary for finishing linking programs.
21279 postlink_cmds=$lt_postlink_cmds
21280
21281 # Specify filename containing input files.
21282 file_list_spec=$lt_file_list_spec
21283
21284 # How to hardcode a shared library path into an executable.
21285 hardcode_action=$hardcode_action
21286
21287 # ### END LIBTOOL CONFIG
21288
21289 _LT_EOF
21290
21291 case $host_os in
21292 aix3*)
21293 cat <<\_LT_EOF >> "$cfgfile"
21294 # AIX sometimes has problems with the GCC collect2 program. For some
21295 # reason, if we set the COLLECT_NAMES environment variable, the problems
21296 # vanish in a puff of smoke.
21297 if test set != "${COLLECT_NAMES+set}"; then
21298 COLLECT_NAMES=
21299 export COLLECT_NAMES
21300 fi
21301 _LT_EOF
21302 ;;
21303 esac
21304
21305
21306 ltmain=$ac_aux_dir/ltmain.sh
21307
21308
21309 # We use sed instead of cat because bash on DJGPP gets confused if
21310 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21311 # text mode, it properly converts lines to CR/LF. This bash problem
21312 # is reportedly fixed, but why not run on old versions too?
21313 sed '$q' "$ltmain" >> "$cfgfile" \
21314 || (rm -f "$cfgfile"; exit 1)
21315
21316 mv -f "$cfgfile" "$ofile" ||
21317 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21318 chmod +x "$ofile"
21319
21320 ;;
21321
21322 esac
21323 done # for ac_tag
21324
21325
21326 as_fn_exit 0
21327 _ACEOF
21328 ac_clean_files=$ac_clean_files_save
21329
21330 test $ac_write_fail = 0 ||
21331 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21332
21333
21334 # configure is writing to config.log, and then calls config.status.
21335 # config.status does its own redirection, appending to config.log.
21336 # Unfortunately, on DOS this fails, as config.log is still kept open
21337 # by configure, so config.status won't be able to write to it; its
21338 # output is simply discarded. So we exec the FD to /dev/null,
21339 # effectively closing config.log, so it can be properly (re)opened and
21340 # appended to by config.status. When coming back to configure, we
21341 # need to make the FD available again.
21342 if test "$no_create" != yes; then
21343 ac_cs_success=:
21344 ac_config_status_args=
21345 test "$silent" = yes &&
21346 ac_config_status_args="$ac_config_status_args --quiet"
21347 exec 5>/dev/null
21348 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21349 exec 5>>config.log
21350 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21351 # would make configure fail if this is the last instruction.
21352 $ac_cs_success || as_fn_exit 1
21353 fi
21354 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21356 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21357 fi
21358
21359